From b86783784ae4e2a00d6a6e4c5c7ceef29830ea1b Mon Sep 17 00:00:00 2001 From: Laura Martinez Garcia Date: Wed, 14 Aug 2024 15:55:38 +0200 Subject: [PATCH 1/8] feat: bump packages versions and migrate to defineComponent --- package-lock.json | 68 +++---------------- package.json | 4 +- .../desktop-header-floating-predictive.vue | 1 + .../desktop-header-full-predictive.vue | 1 + src/components/desktop/desktop-sub-header.vue | 1 + src/components/desktop/desktop-toolbar.vue | 1 + .../desktop/desktop-top-section.vue | 1 + src/components/desktop/desktop.vue | 16 +++-- src/components/mobile/mobile-close-aside.vue | 12 ++-- src/components/mobile/mobile-open-aside.vue | 8 +-- src/components/mobile/mobile-sub-header.vue | 1 + src/components/mobile/mobile-toolbar.vue | 8 +-- src/components/mobile/mobile.vue | 23 ++++--- .../my-history/custom-my-history.vue | 1 + .../my-history/my-history-aside.vue | 7 +- .../my-history-confirm-disable-modal.vue | 5 +- .../pre-search/custom-query-preview.vue | 35 ++++------ .../pre-search/pre-search-manager.vue | 1 + .../results/custom-recommendations.vue | 1 + src/components/results/result.vue | 1 + .../search/facets/selected-filters.vue | 4 +- src/components/search/redirection.vue | 14 ++-- 22 files changed, 93 insertions(+), 121 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1bb60f38..c024cef6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@empathyco/x-adapter": "^8.1.0-alpha.0", "@empathyco/x-adapter-platform": "^1.1.0-alpha.3", "@empathyco/x-archetype-utils": "^1.1.0-alpha.2", - "@empathyco/x-components": "^5.0.0-alpha.52", + "@empathyco/x-components": "^5.0.0-alpha.79", "@empathyco/x-deep-merge": "^2.0.3-alpha.1", "@empathyco/x-types": "^10.1.0-alpha.3", "@empathyco/x-utils": "^1.0.3-alpha.1", @@ -27,7 +27,7 @@ "devDependencies": { "@cypress/webpack-preprocessor": "~5.17.0", "@empathyco/eslint-plugin-x": "^2.0.0-alpha.27", - "@empathyco/x-tailwindcss": "^1.0.0-alpha.31", + "@empathyco/x-tailwindcss": "^1.2.0-alpha.4", "@empathyco/x-translations": "^1.1.0-alpha.33", "@rollup/plugin-commonjs": "~25.0.7", "@rollup/plugin-json": "~6.1.0", @@ -2280,9 +2280,9 @@ } }, "node_modules/@empathyco/x-components": { - "version": "5.0.0-alpha.53", - "resolved": "https://registry.npmjs.org/@empathyco/x-components/-/x-components-5.0.0-alpha.53.tgz", - "integrity": "sha512-pX1RPzNCAMdXt37XU64UP/wmhZN8M0CMYWIHqonypC8n4hiEQxKaMj92jU+E1+SXRQ6P/NHFHr0+jFGNQabNgQ==", + "version": "5.0.0-alpha.79", + "resolved": "https://registry.npmjs.org/@empathyco/x-components/-/x-components-5.0.0-alpha.79.tgz", + "integrity": "sha512-1AA42XX5J/woRmeuLF5ligYqxDeZ5XpOKlSjgjHqw457GxEidqymolWzolRhHhCDiI5IjzqXWkLo9tuUVs/TGw==", "dependencies": { "@empathyco/x-adapter": "^8.1.0-alpha.0", "@empathyco/x-adapter-platform": "^1.1.0-alpha.3", @@ -2363,14 +2363,14 @@ } }, "node_modules/@empathyco/x-tailwindcss": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@empathyco/x-tailwindcss/-/x-tailwindcss-1.1.1.tgz", - "integrity": "sha512-2NtK4OXmfCN+bd8/KzQM01PdNOn3c93VrBuXRvmWteJzVk2PHyKOwh1F/MePSqo3jxO+C2rPEQWJVeZ3+o8iiQ==", + "version": "1.2.0-alpha.4", + "resolved": "https://registry.npmjs.org/@empathyco/x-tailwindcss/-/x-tailwindcss-1.2.0-alpha.4.tgz", + "integrity": "sha512-A9dG8wQ1ACa7O+k8wdxkwXBnU+zlO4EvFjuo6O5UhVgafErj0m4EyNb/zF7KH6l2N3dHdyeJKYVAZW1Lhks63Q==", "dev": true, "dependencies": { - "@empathyco/x-deep-merge": "^2.0.2", - "@empathyco/x-utils": "^1.0.2", - "tslib": "~2.5.0" + "@empathyco/x-deep-merge": "^2.0.3-alpha.1", + "@empathyco/x-utils": "^1.0.3-alpha.1", + "tslib": "~2.6.0" }, "engines": { "node": ">=18" @@ -2392,52 +2392,6 @@ } } }, - "node_modules/@empathyco/x-tailwindcss/node_modules/@empathyco/x-deep-merge": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@empathyco/x-deep-merge/-/x-deep-merge-2.0.2.tgz", - "integrity": "sha512-t0Uz3PGaaKTj85MHWsZcT7/VkJMu5UZaCwyrF+mXVNMdKWT9KQgfZ5Yj1I3tuIl9CYk9y82E1vOmyTh7HrAMnw==", - "dev": true, - "dependencies": { - "@empathyco/x-utils": "^1.0.2", - "tslib": "~2.5.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@empathyco/x-tailwindcss/node_modules/@empathyco/x-storage-service": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@empathyco/x-storage-service/-/x-storage-service-2.0.2.tgz", - "integrity": "sha512-WShS4zPmSCWkB+pJU6qpIo8r8Dr4gTGAE6ev1yMPcseqbdqnLxwC/8Oa3z4OnMHXdS6e6Vl/mP2WtNwOvlXgVw==", - "dev": true, - "dependencies": { - "@empathyco/x-logger": "^1.2.0-alpha.11", - "tslib": "~2.5.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@empathyco/x-tailwindcss/node_modules/@empathyco/x-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@empathyco/x-utils/-/x-utils-1.0.2.tgz", - "integrity": "sha512-Bs5c/9eu3HlKJ9z+KIQlipZ5rUjYaFhkmx/kxHKK1VnQxaUHwAiPDkqugcHfQF8DkyPw4i9FA/L49SsL471KhA==", - "dev": true, - "dependencies": { - "@empathyco/x-storage-service": "^2.0.2", - "nanoid": "~3.3.0", - "tslib": "~2.5.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@empathyco/x-tailwindcss/node_modules/tslib": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", - "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==", - "dev": true - }, "node_modules/@empathyco/x-translations": { "version": "1.1.0-alpha.38", "resolved": "https://registry.npmjs.org/@empathyco/x-translations/-/x-translations-1.1.0-alpha.38.tgz", diff --git a/package.json b/package.json index afd30ee9..4669c804 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@empathyco/x-adapter": "^8.1.0-alpha.0", "@empathyco/x-adapter-platform": "^1.1.0-alpha.3", "@empathyco/x-archetype-utils": "^1.1.0-alpha.2", - "@empathyco/x-components": "^5.0.0-alpha.52", + "@empathyco/x-components": "^5.0.0-alpha.79", "@empathyco/x-deep-merge": "^2.0.3-alpha.1", "@empathyco/x-types": "^10.1.0-alpha.3", "@empathyco/x-utils": "^1.0.3-alpha.1", @@ -49,7 +49,7 @@ "devDependencies": { "@cypress/webpack-preprocessor": "~5.17.0", "@empathyco/eslint-plugin-x": "^2.0.0-alpha.27", - "@empathyco/x-tailwindcss": "^1.0.0-alpha.31", + "@empathyco/x-tailwindcss": "^1.2.0-alpha.4", "@empathyco/x-translations": "^1.1.0-alpha.33", "@rollup/plugin-commonjs": "~25.0.7", "@rollup/plugin-json": "~6.1.0", diff --git a/src/components/desktop/desktop-header-floating-predictive.vue b/src/components/desktop/desktop-header-floating-predictive.vue index 68ad53b9..56aa38a4 100644 --- a/src/components/desktop/desktop-header-floating-predictive.vue +++ b/src/components/desktop/desktop-header-floating-predictive.vue @@ -28,6 +28,7 @@ import MaxDesktopWidthItem from '../max-desktop-width-item.vue'; export default defineComponent({ + name: 'DesktopHeaderFloatingPredictive', components: { MaxDesktopWidthItem, CloseMainModal, diff --git a/src/components/desktop/desktop-header-full-predictive.vue b/src/components/desktop/desktop-header-full-predictive.vue index 4ea70fb1..b66dda1b 100644 --- a/src/components/desktop/desktop-header-full-predictive.vue +++ b/src/components/desktop/desktop-header-full-predictive.vue @@ -31,6 +31,7 @@ import MaxDesktopWidthItem from '../max-desktop-width-item.vue'; export default defineComponent({ + name: 'DesktopHeaderFullPredictive', components: { MaxDesktopWidthItem, FullWidthPredictive, diff --git a/src/components/desktop/desktop-sub-header.vue b/src/components/desktop/desktop-sub-header.vue index b2facc8a..38005555 100644 --- a/src/components/desktop/desktop-sub-header.vue +++ b/src/components/desktop/desktop-sub-header.vue @@ -30,6 +30,7 @@ import DesktopToolbar from './desktop-toolbar.vue'; export default defineComponent({ + name: 'DesktopSubHeader', components: { MaxDesktopWidthItem, LocationProvider, diff --git a/src/components/desktop/desktop-toolbar.vue b/src/components/desktop/desktop-toolbar.vue index fff019a9..7c2c2b7a 100644 --- a/src/components/desktop/desktop-toolbar.vue +++ b/src/components/desktop/desktop-toolbar.vue @@ -42,6 +42,7 @@ import ColumnPicker from '../column-picker.vue'; export default defineComponent({ + name: 'DesktopToolbar', components: { BaseIdModalOpen, FiltersIcon, diff --git a/src/components/desktop/desktop-top-section.vue b/src/components/desktop/desktop-top-section.vue index c9944899..01cc6b3c 100644 --- a/src/components/desktop/desktop-top-section.vue +++ b/src/components/desktop/desktop-top-section.vue @@ -18,6 +18,7 @@ import DesktopSubHeader from './desktop-sub-header.vue'; export default defineComponent({ + name: 'DesktopTopSection', components: { DesktopSubHeader, DesktopHeaderFullPredictive }, mixins: [HasSearchedMixin] }); diff --git a/src/components/desktop/desktop.vue b/src/components/desktop/desktop.vue index a9bc936a..79b657f1 100644 --- a/src/components/desktop/desktop.vue +++ b/src/components/desktop/desktop.vue @@ -53,8 +53,8 @@