From fea2345d5e3dbb252cade8b8a121a661c97f1305 Mon Sep 17 00:00:00 2001 From: Guillaume Lepoetre Date: Fri, 6 Sep 2024 10:34:40 +0200 Subject: [PATCH 1/3] docs: update readme --- playground/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playground/README.md b/playground/README.md index f3a69e52..bc0605f5 100644 --- a/playground/README.md +++ b/playground/README.md @@ -14,10 +14,13 @@ Since TypeScript cannot handle type information for `.vue` imports, they are shi The Playground is a test application built on Vue3 and Vue Router. To use it, follow the steps below: -1. **Copy the example files**: The files `/src/views/VueComponentsViewExample.vue` and `/src/views/WebComponentsViewExample.vue` are example views that you can use as a starting point. Copy each of these files. +1. **Copy the example files**: The files `/src/views/VueComponentsViewExample.vue`, `/src/views/WebComponentsViewExample.vue` and `/src/AppExample.vue` are example views that you can use as a starting point. Copy each of these files. 2. **Rename the copied files**: Rename the copied example files by removing `Example` from their name. The files should be renamed as follows to match vue router configuration: - `/src/views/VueComponentsViewExample.vue` becomes `/src/views/VueComponentsView.vue` - `/src/views/WebComponentsViewExample.vue` becomes `/src/views/WebComponentsView.vue` + - `/src/AppExample.vue` becomes `/src/App.vue` 3. **Modify the copied files**: Make the necessary modifications to the copied files based on your specific needs for the Playground. + +4. **Run**: `pnpm build` to update the css packages before run the project. From 781038b09f94ebd931d098c7ad91a26308594cfd Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Mon, 16 Sep 2024 10:22:03 +0200 Subject: [PATCH 2/3] chore: related #374 - add MIT license for each package --- packages/components/LICENSE | 21 +++++++++++++++++++++ packages/locale/LICENSE | 21 +++++++++++++++++++++ packages/puik/LICENSE | 21 +++++++++++++++++++++ packages/resolver/LICENSE | 21 +++++++++++++++++++++ packages/tailwind-preset/LICENSE | 21 +++++++++++++++++++++ packages/theme/LICENSE | 21 +++++++++++++++++++++ packages/utils/LICENSE | 21 +++++++++++++++++++++ packages/web-components/LICENSE | 21 +++++++++++++++++++++ 8 files changed, 168 insertions(+) create mode 100644 packages/components/LICENSE create mode 100644 packages/locale/LICENSE create mode 100644 packages/puik/LICENSE create mode 100644 packages/resolver/LICENSE create mode 100644 packages/tailwind-preset/LICENSE create mode 100644 packages/theme/LICENSE create mode 100644 packages/utils/LICENSE create mode 100644 packages/web-components/LICENSE diff --git a/packages/components/LICENSE b/packages/components/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/components/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/locale/LICENSE b/packages/locale/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/locale/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/puik/LICENSE b/packages/puik/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/puik/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/resolver/LICENSE b/packages/resolver/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/resolver/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/tailwind-preset/LICENSE b/packages/tailwind-preset/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/tailwind-preset/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/theme/LICENSE b/packages/theme/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/theme/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/utils/LICENSE b/packages/utils/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/utils/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/web-components/LICENSE b/packages/web-components/LICENSE new file mode 100644 index 00000000..65fe8637 --- /dev/null +++ b/packages/web-components/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 PrestaShopCorp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 8b9328fa2c143d00d2b163a6657a9546131a583f Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Mon, 16 Sep 2024 14:14:59 +0200 Subject: [PATCH 3/3] chore: related #374 - same Vue version for dev and peer dependencies, update unplugin-vue-component (resolver package) --- packages/components/package.json | 2 +- packages/puik/package.json | 4 ++-- packages/resolver/package.json | 6 +++--- packages/web-components/package.json | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index c08d6c09..e83e3f95 100755 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -17,7 +17,7 @@ "radix-vue": "^1.7.4" }, "devDependencies": { - "vue": "3.3.10", + "vue": "^3.3.7", "vue-router": "^4.3.2", "vue-tsc": "^1.8.27" }, diff --git a/packages/puik/package.json b/packages/puik/package.json index f94f0794..bf04a13b 100644 --- a/packages/puik/package.json +++ b/packages/puik/package.json @@ -9,7 +9,7 @@ "build": "vue-tsc --noEmit --project ./tsconfig.build.json && vite build" }, "peerDependencies": { - "vue": "^3.3.0" + "vue": "^3.3.7" }, "dependencies": { "@prestashopcorp/puik-components": "workspace:*", @@ -19,7 +19,7 @@ "@prestashopcorp/puik-theme": "workspace:*" }, "devDependencies": { - "vue": "3.3.10" + "vue": "^3.3.7" }, "files": [ "dist", diff --git a/packages/resolver/package.json b/packages/resolver/package.json index 5e34e015..5787c6e1 100644 --- a/packages/resolver/package.json +++ b/packages/resolver/package.json @@ -13,11 +13,11 @@ "@prestashopcorp/puik-components": "workspace:*", "@prestashopcorp/puik-theme": "workspace:*", "unplugin-vue-components": "^0.25.0", - "vue": "^3.3.0" + "vue": "^3.3.7" }, "devDependencies": { - "unplugin-vue-components": "^0.26.0", - "vue": "3.3.10" + "unplugin-vue-components": "<1.0.0", + "vue": "^3.3.7" }, "sideEffects": false, "publishConfig": { diff --git a/packages/web-components/package.json b/packages/web-components/package.json index 17a103ca..4772c60f 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@prestashopcorp/puik-components": "workspace:*", - "vue": "3.3.10" + "vue": "^3.3.7" }, "devDependencies": { "vue-tsc": "^1.8.27" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f41d22b..07287065 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -195,7 +195,7 @@ importers: version: 1.7.4(vue@3.3.10(typescript@5.4.5)) devDependencies: vue: - specifier: 3.3.10 + specifier: ^3.3.7 version: 3.3.10(typescript@5.4.5) vue-router: specifier: ^4.3.2 @@ -225,7 +225,7 @@ importers: version: link:../web-components devDependencies: vue: - specifier: 3.3.10 + specifier: ^3.3.7 version: 3.3.10(typescript@5.4.5) packages/resolver: @@ -238,10 +238,10 @@ importers: version: link:../theme devDependencies: unplugin-vue-components: - specifier: ^0.26.0 + specifier: <1.0.0 version: 0.26.0(@babel/parser@7.24.5)(rollup@4.17.2)(vue@3.3.10(typescript@5.4.5)) vue: - specifier: 3.3.10 + specifier: ^3.3.7 version: 3.3.10(typescript@5.4.5) packages/tailwind-preset: @@ -279,7 +279,7 @@ importers: specifier: workspace:* version: link:../components vue: - specifier: 3.3.10 + specifier: ^3.3.7 version: 3.3.10(typescript@5.4.5) devDependencies: vue-tsc: @@ -6623,8 +6623,8 @@ packages: vue-component-type-helpers@2.0.19: resolution: {integrity: sha512-cN3f1aTxxKo4lzNeQAkVopswuImUrb5Iurll9Gaw5cqpnbTAxtEMM1mgi6ou4X79OCyqYv1U1mzBHJkzmiK82w==} - vue-component-type-helpers@2.0.26: - resolution: {integrity: sha512-sO9qQ8oC520SW6kqlls0iqDak53gsTVSrYylajgjmkt1c0vcgjsGSy1KzlDrbEx8pm02IEYhlUkU5hCYf8rwtg==} + vue-component-type-helpers@2.1.6: + resolution: {integrity: sha512-ng11B8B/ZADUMMOsRbqv0arc442q7lifSubD0v8oDXIFoMg/mXwAPUunrroIDkY+mcD0dHKccdaznSVp8EoX3w==} vue-demi@0.14.7: resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==} @@ -9354,7 +9354,7 @@ snapshots: ts-dedent: 2.2.0 type-fest: 2.19.0 vue: 3.3.10(typescript@5.4.5) - vue-component-type-helpers: 2.0.26 + vue-component-type-helpers: 2.1.6 transitivePeerDependencies: - encoding - supports-color @@ -14344,7 +14344,7 @@ snapshots: vue-component-type-helpers@2.0.19: {} - vue-component-type-helpers@2.0.26: {} + vue-component-type-helpers@2.1.6: {} vue-demi@0.14.7(vue@3.3.10(typescript@5.4.5)): dependencies: