Skip to content

Migrate UX packages to Stimulus 2 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Chartjs/Resources/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@symfony/ux-chartjs",
"description": "Chart.js integration for Symfony",
"license": "MIT",
"version": "1.0.0",
"version": "1.1.0",
"symfony": {
"controllers": {
"chart": {
Expand All @@ -20,16 +20,16 @@
"chart.js": "^2.9.4"
},
"peerDependencies": {
"stimulus": "^1.0.0"
"stimulus": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@symfony/stimulus-testing": "^1.0.0",
"@symfony/stimulus-testing": "^1.1.0",
"jest-canvas-mock": "^2.3.0",
"stimulus": "^1.0.0"
"stimulus": "^2.0.0"
},
"jest": {
"testRegex": "test/.*\\.test.js",
Expand Down
8 changes: 4 additions & 4 deletions src/Cropperjs/Resources/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@symfony/ux-cropperjs",
"description": "Cropper.js integration for Symfony",
"license": "MIT",
"version": "1.0.0",
"version": "1.1.0",
"symfony": {
"controllers": {
"cropper": {
Expand All @@ -24,15 +24,15 @@
"cropperjs": "^1.5.9"
},
"peerDependencies": {
"stimulus": "^1.0.0"
"stimulus": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@symfony/stimulus-testing": "^1.0.0",
"stimulus": "^1.0.0"
"@symfony/stimulus-testing": "^1.1.0",
"stimulus": "^2.0.0"
},
"jest": {
"testRegex": "test/.*\\.test.js",
Expand Down
8 changes: 4 additions & 4 deletions src/Dropzone/Resources/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@symfony/ux-dropzone",
"description": "File input dropzones for Symfony Forms",
"license": "MIT",
"version": "1.0.0",
"version": "1.1.0",
"symfony": {
"controllers": {
"dropzone": {
Expand All @@ -20,15 +20,15 @@
"test": "babel src -d dist && jest"
},
"peerDependencies": {
"stimulus": "^1.0.0"
"stimulus": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@symfony/stimulus-testing": "^1.0.0",
"stimulus": "^1.0.0"
"@symfony/stimulus-testing": "^1.1.0",
"stimulus": "^2.0.0"
},
"jest": {
"testRegex": "test/.*\\.test.js",
Expand Down
12 changes: 6 additions & 6 deletions src/Dropzone/Resources/assets/test/controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,32 @@ describe('DropzoneController', () => {
<div class="dropzone-container" data-controller="check dropzone" data-testid="container">
<input type="file"
style="display: none"
data-target="dropzone.input"
data-dropzone-target="input"
data-testid="input" />

<div class="dropzone-placeholder"
data-target="dropzone.placeholder"
data-dropzone-target="placeholder"
data-testid="placeholder">
Placeholder
</div>

<div class="dropzone-preview"
data-target="dropzone.preview"
data-dropzone-target="preview"
data-testid="preview"
style="display: none">

<button type="button"
class="dropzone-preview-button"
data-target="dropzone.previewClearButton"
data-dropzone-target="previewClearButton"
data-testid="button"></button>

<div class="dropzone-preview-image"
data-target="dropzone.previewImage"
data-dropzone-target="previewImage"
data-testid="preview-image"
style="display: none"></div>

<div class="dropzone-preview-filename"
data-target="dropzone.previewFilename"
data-dropzone-target="previewFilename"
data-testid="preview-filename"></div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/LazyImage/Resources/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@symfony/ux-lazy-image",
"description": "Lazy image loader and utilities for Symfony",
"license": "MIT",
"version": "1.0.0",
"version": "1.1.0",
"symfony": {
"controllers": {
"lazy-image": {
Expand All @@ -17,15 +17,15 @@
"test": "babel src -d dist && jest"
},
"peerDependencies": {
"stimulus": "^1.0.0"
"stimulus": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@symfony/stimulus-testing": "^1.0.0",
"stimulus": "^1.0.0"
"@symfony/stimulus-testing": "^1.1.0",
"stimulus": "^2.0.0"
},
"jest": {
"testRegex": "test/.*\\.test.js",
Expand Down
8 changes: 4 additions & 4 deletions src/Swup/Resources/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@symfony/ux-swup",
"description": "Swup integration for Symfony",
"license": "MIT",
"version": "1.0.0",
"version": "1.1.0",
"symfony": {
"controllers": {
"swup": {
Expand All @@ -24,15 +24,15 @@
"swup": "^2.0"
},
"peerDependencies": {
"stimulus": "^1.0.0"
"stimulus": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@symfony/stimulus-testing": "^1.0.0",
"stimulus": "^1.0.0"
"@symfony/stimulus-testing": "^1.1.0",
"stimulus": "^2.0.0"
},
"jest": {
"testRegex": "test/.*\\.test.js",
Expand Down