diff --git a/package-lock.json b/package-lock.json index b3e9acd6..4a101e0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,11 +10,11 @@ "license": "Apache-2.0", "dependencies": { "@empathyco/x-adapter": "^8.1.0-alpha.0", - "@empathyco/x-adapter-platform": "^1.1.0-alpha.3", - "@empathyco/x-archetype-utils": "^2.0.0-alpha.1", - "@empathyco/x-components": "^6.0.0-alpha.3", + "@empathyco/x-adapter-platform": "^1.1.0-alpha.8", + "@empathyco/x-archetype-utils": "^2.0.0-alpha.2", + "@empathyco/x-components": "^6.0.0-alpha.18", "@empathyco/x-deep-merge": "^2.0.3-alpha.1", - "@empathyco/x-types": "^10.1.0-alpha.3", + "@empathyco/x-types": "^10.1.0-alpha.5", "@empathyco/x-utils": "^1.0.3-alpha.1", "tslib": "~2.6.0", "vue": "~3.4.38", @@ -1897,12 +1897,12 @@ } }, "node_modules/@empathyco/x-adapter-platform": { - "version": "1.1.0-alpha.3", - "resolved": "https://registry.npmjs.org/@empathyco/x-adapter-platform/-/x-adapter-platform-1.1.0-alpha.3.tgz", - "integrity": "sha512-K+s/7uwUyDzcDuefFCIoxpZXHuB/qAyw99zHstbek/OLpH/7k6h5Mtusgi/8c4Umupr+F9XFqQZ9gazBQtiLtA==", + "version": "1.1.0-alpha.8", + "resolved": "https://registry.npmjs.org/@empathyco/x-adapter-platform/-/x-adapter-platform-1.1.0-alpha.8.tgz", + "integrity": "sha512-mhgrEdoYkhudpklnQ+9kJr7NyY79c4cdpqbCc51ZbAF0Lbo+lqyqGK9yRwWIXrbeduR5EFuiWTXgIo1gvyfFwA==", "dependencies": { "@empathyco/x-adapter": "^8.1.0-alpha.0", - "@empathyco/x-types": "^10.1.0-alpha.3", + "@empathyco/x-types": "^10.1.0-alpha.5", "@empathyco/x-utils": "^1.0.3-alpha.1", "tslib": "~2.6.0" }, @@ -1911,9 +1911,9 @@ } }, "node_modules/@empathyco/x-archetype-utils": { - "version": "2.0.0-alpha.1", - "resolved": "https://registry.npmjs.org/@empathyco/x-archetype-utils/-/x-archetype-utils-2.0.0-alpha.1.tgz", - "integrity": "sha512-aBRlnxa0XUw9NlVFQkBVI3nRWnX4/TyX/nxkK3x8aFEbHncfqC7Bp07k4/mja5QNwvc4d2oxh0/LGpKhub6eow==", + "version": "2.0.0-alpha.2", + "resolved": "https://registry.npmjs.org/@empathyco/x-archetype-utils/-/x-archetype-utils-2.0.0-alpha.2.tgz", + "integrity": "sha512-tf8Le4paQv7s4yDwac8fCos52s6rsaulFPSuQmJ8W/3mGNCiDT6IwpOdfMR4kA3IPjgZaM9f7CgHiSn9e6K4vg==", "dependencies": { "@empathyco/x-deep-merge": "^2.0.3-alpha.1", "@empathyco/x-utils": "^1.0.3-alpha.1", @@ -1943,21 +1943,22 @@ } }, "node_modules/@empathyco/x-components": { - "version": "6.0.0-alpha.3", - "resolved": "https://registry.npmjs.org/@empathyco/x-components/-/x-components-6.0.0-alpha.3.tgz", - "integrity": "sha512-HTklNFr5rarXX0XX1Q1Ai4F/CeP4T6nEJwjI6eN5n/V+FVMsDIGg02StTeiKFYxRM9DoDeWneybsdCRIRCm+Ig==", + "version": "6.0.0-alpha.18", + "resolved": "https://registry.npmjs.org/@empathyco/x-components/-/x-components-6.0.0-alpha.18.tgz", + "integrity": "sha512-trFj7PRtjAiwqqpjdAEw3EFo+ylmuU5hAeo5UaF665uRhc6UXZ+LmHhntc7LVPBJyicI7MkX36K6O+IV83ofEQ==", "dependencies": { "@empathyco/x-adapter": "^8.1.0-alpha.0", - "@empathyco/x-adapter-platform": "^1.1.0-alpha.3", + "@empathyco/x-adapter-platform": "^1.1.0-alpha.8", "@empathyco/x-bus": "^1.0.3-alpha.1", "@empathyco/x-deep-merge": "^2.0.3-alpha.1", "@empathyco/x-logger": "^1.2.0-alpha.11", "@empathyco/x-storage-service": "^2.0.3-alpha.0", - "@empathyco/x-types": "^10.1.0-alpha.3", + "@empathyco/x-types": "^10.1.0-alpha.5", "@empathyco/x-utils": "^1.0.3-alpha.1", "@vue/devtools-api": "~6.5.0", "@vueuse/core": "~10.7.1", "js-md5": "~0.8.3", + "nouislider": "~15.7.1", "rxjs": "~7.8.0", "tslib": "~2.6.0", "vue-global-events": "~3.0.1" @@ -1966,7 +1967,7 @@ "node": ">=18" }, "peerDependencies": { - "vue": "~3.4.31", + "vue": "^3.5.12", "vuex": "4.0.2" } }, @@ -2115,9 +2116,9 @@ "dev": true }, "node_modules/@empathyco/x-types": { - "version": "10.1.0-alpha.3", - "resolved": "https://registry.npmjs.org/@empathyco/x-types/-/x-types-10.1.0-alpha.3.tgz", - "integrity": "sha512-Pdf/QX3uqRLyu+WMWgtpY5S7w3++PMlcV4r/mu8bxqchoRVuLDg4Sryit4efc+FRdOkjHJuhw8ZtwfborKoWZg==", + "version": "10.1.0-alpha.5", + "resolved": "https://registry.npmjs.org/@empathyco/x-types/-/x-types-10.1.0-alpha.5.tgz", + "integrity": "sha512-1Uc4ZD+67X8G2STv44xrhp85ujaoPQk7ikHDHdwVhJBe57Jo2hcuAHOthVdR+KyAT6+L//sQ/Psv2KANPZBmKg==", "dependencies": { "@empathyco/x-adapter": "^8.1.0-alpha.0", "@empathyco/x-utils": "^1.0.3-alpha.1", @@ -9590,6 +9591,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/nouislider": { + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/nouislider/-/nouislider-15.7.2.tgz", + "integrity": "sha512-Jn1xuJZk0cs7XdzFD2tKucedlvi5/eEAsyewPS70Qqba3a1vcyEey2VZFmp7JiS06QfgkD0kEFk8oMnJrLDWXQ==" + }, "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", diff --git a/package.json b/package.json index 6aa23d77..93ff6de2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "description": "Starting point to setup a X Components project", "private": true, "scripts": { - "serve": "vite dev", + "serve": "vite dev --host", "serve:docker": "VUE_APP_DEVELOPMENT_DOCKER=true vite dev", "serve:dist": "http-server dist -a localhost --cors --gzip", "build": "rollup -c", @@ -21,8 +21,8 @@ "lint": "eslint src tests --ext .ts,.tsx,.vue", "lint:fix": "npm run lint -- --fix", "install:local": "npm install file:../x/packages/x-components/empathyco-x-components-6.0.0-alpha.3.tgz --no-save", - "install:adapter-platform:local": "npm install file:../x/packages/x-adapter-platform/empathyco-x-adapter-platform-1.0.0-alpha.73.tgz --no-save", - "install:types:local": "npm install file:../x/packages/x-types/empathyco-x-types-10.0.0-alpha.68.tgz", + "install:adapter-platform:local": "npm install file:../x/packages/x-adapter-platform/empathyco-x-adapter-platform-1.1.0-alpha.9.tgz --no-save", + "install:types:local": "npm install file:../x/packages/x-types/empathyco-x-types-10.1.0-alpha.6.tgz --no-save", "install:utils:local": "npm install file:../x/packages/x-archetype-utils/empathyco-x-archetype-utils-0.1.0-alpha.20.tgz --no-save", "install:xds:local": "npm install file:../x/packages/x-tailwindcss/empathyco-x-tailwindcss-1.0.0-alpha.25.tgz --no-save", "json:csv": "json-csv ./src/i18n/messages", @@ -31,11 +31,11 @@ }, "dependencies": { "@empathyco/x-adapter": "^8.1.0-alpha.0", - "@empathyco/x-adapter-platform": "^1.1.0-alpha.3", - "@empathyco/x-archetype-utils": "^2.0.0-alpha.1", - "@empathyco/x-components": "^6.0.0-alpha.3", + "@empathyco/x-adapter-platform": "^1.1.0-alpha.8", + "@empathyco/x-archetype-utils": "^2.0.0-alpha.2", + "@empathyco/x-components": "^6.0.0-alpha.18", "@empathyco/x-deep-merge": "^2.0.3-alpha.1", - "@empathyco/x-types": "^10.1.0-alpha.3", + "@empathyco/x-types": "^10.1.0-alpha.5", "@empathyco/x-utils": "^1.0.3-alpha.1", "tslib": "~2.6.0", "vue": "~3.4.38", diff --git a/tests/e2e/cucumber/facets.feature b/tests/e2e/cucumber/facets.feature index 63fda628..51e9f920 100644 --- a/tests/e2e/cucumber/facets.feature +++ b/tests/e2e/cucumber/facets.feature @@ -34,8 +34,8 @@ Feature: Facets component Then filter from facet "" is selected is false Examples: | query | filterNumber | facetName | view | - | shirt | 1 | brand | macbook-13 | - | shirt | 1 | brand | iphone-x | + | shirt | 1 | gender | macbook-13 | + | shirt | 1 | gender | iphone-x | Scenario Outline: 3. Multiple filters from the same facet can be selected Given start page with "" size view @@ -52,9 +52,11 @@ Feature: Facets component And filter from facet "" is selected is true Examples: | query | filterNumber | facetName | filterNumber2 | view | - | shirt | 2 | brand | 1 | macbook-13 | - | shirt | 2 | brand | 1 | iphone-x | + | shirt | 0 | gender | 1 | macbook-13 | + | shirt | 0 | gender | 1 | iphone-x | + @skip + # TODO: Resume once the response returns multiple facets Scenario Outline: 4. Multiple filters from different facets can be selected Given start page with "" size view When search bar is clicked @@ -74,7 +76,7 @@ Feature: Facets component | shirt | 2 | brand | 1 | fit | macbook-13 | | shirt | 2 | brand | 1 | fit | iphone-x | - @skip + @skip # TODO: Resume once the response returns hierarchical filters Scenario Outline: 5. Hierarchical filters selection Given start page with "" size view diff --git a/tests/e2e/cucumber/multiple-interactions.feature b/tests/e2e/cucumber/multiple-interactions.feature index d1851a3c..45c17847 100644 --- a/tests/e2e/cucumber/multiple-interactions.feature +++ b/tests/e2e/cucumber/multiple-interactions.feature @@ -25,5 +25,5 @@ Feature: Multiple interactions Examples: | query | view | nextQueryItem | filterNumber | facetName | queryWithRTs | relatedTagItem | - | tshirt | macbook-13 | 1 | 2 | brand | tshirt | 1 | - | tshirt | iphone-x | 1 | 2 | brand | tshirt | 1 | + | tshirt | macbook-13 | 1 | 1 | gender | tshirt | 1 | + | tshirt | iphone-x | 1 | 1 | gender | tshirt | 1 | diff --git a/tests/e2e/cucumber/no-results.feature b/tests/e2e/cucumber/no-results.feature index 25b965ff..e5c73d7a 100644 --- a/tests/e2e/cucumber/no-results.feature +++ b/tests/e2e/cucumber/no-results.feature @@ -6,7 +6,7 @@ Feature: No-results component And "" is searched Then no results message is displayed And recommendations are displayed - And there are no results + Then there are no results Examples: | query | view | | asdfgh | macbook-13 |