From 7300ed7ed85486a4feb57924a8767140928195ff Mon Sep 17 00:00:00 2001 From: herrardo Date: Mon, 30 Oct 2023 09:20:19 +0100 Subject: [PATCH 1/2] feat(next-queries): add displayClick track to next queries preview --- .../search/results/custom-next-query-preview.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/search/results/custom-next-query-preview.vue b/src/components/search/results/custom-next-query-preview.vue index 5d5af49d..0778b5cb 100644 --- a/src/components/search/results/custom-next-query-preview.vue +++ b/src/components/search/results/custom-next-query-preview.vue @@ -27,7 +27,9 @@ itemClass="x-flex-shrink-0" > @@ -42,6 +44,7 @@ import { useDevice } from '../../../composables/use-device.composable'; import Result from '../../results/result.vue'; import CustomSlidingPanel from '../../custom-sliding-panel.vue'; + import DisplayClickProvider from '../display-click-provider.vue'; export default defineComponent({ components: { @@ -50,7 +53,8 @@ Result, ArrowRightIcon, ItemsList, - NextQueryPreview + NextQueryPreview, + DisplayClickProvider }, props: { nextQuery: { type: Object as PropType, required: true } From 6fd93427e3cc72a067b8cd6ea7b242b45db841cf Mon Sep 17 00:00:00 2001 From: herrardo Date: Tue, 31 Oct 2023 09:45:28 +0100 Subject: [PATCH 2/2] feat(tagging): set proper resultFeatures values for displayClick event --- package-lock.json | 165 +++++++++++++++--- package.json | 2 +- .../sliding-recommendations.vue | 2 +- .../results/custom-recommendations.vue | 2 +- .../search/custom-semantic-queries.vue | 2 +- .../results/custom-next-query-preview.vue | 2 +- 6 files changed, 145 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0a95b65..be504f3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@empathyco/x-adapter": "^8.0.0-alpha.34", "@empathyco/x-adapter-platform": "^1.0.0-alpha.88", "@empathyco/x-archetype-utils": "^1.0.0-alpha.4", - "@empathyco/x-components": "^3.0.0-alpha.422", + "@empathyco/x-components": "^3.0.1-alpha.4", "@empathyco/x-deep-merge": "^1.3.0-alpha.34", "@empathyco/x-types": "^10.0.0-alpha.75", "@empathyco/x-utils": "^1.0.0-alpha.23", @@ -2164,12 +2164,12 @@ "integrity": "sha512-C5GZjs1tYlAqjwymaaCPDjCyGo10ajUphiwA922jKt9n7KPpqR7oM1PCwYzhB/E7+nT3wfdG3oRre5raIT1rKA==" }, "node_modules/@empathyco/x-bus": { - "version": "1.0.0-alpha.4", - "resolved": "https://registry.npmjs.org/@empathyco/x-bus/-/x-bus-1.0.0-alpha.4.tgz", - "integrity": "sha512-zbQlnSdO5/YrCmMP9OKzbYpeMqa08gLOg07O4+zGgrtwFxdl+a7OH52fDaOb8p3lWVG6LN1kgWFOut07eZryTA==", + "version": "1.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-bus/-/x-bus-1.0.1-alpha.0.tgz", + "integrity": "sha512-rzSkpEntThStgY4AFNm/h2MgDaggLyWV40mG88MyNioXXBQ98sUYgK7iV5sIJ4+Zak9emDUTKmmGxDdA5p8Gdw==", "dependencies": { - "@empathyco/x-priority-queue": "^1.0.0-alpha.4", - "@empathyco/x-utils": "^1.0.0-alpha.23", + "@empathyco/x-priority-queue": "^1.0.1-alpha.0", + "@empathyco/x-utils": "^1.0.1-alpha.0", "rxjs": "~7.8.0", "tslib": "~2.5.0" }, @@ -2177,24 +2177,49 @@ "node": ">=18" } }, + "node_modules/@empathyco/x-bus/node_modules/@empathyco/x-storage-service": { + "version": "2.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-storage-service/-/x-storage-service-2.0.1-alpha.0.tgz", + "integrity": "sha512-9PVc19WHRzNN55epdznaCrdRwpn7O676/8YEAI9dVcDIBfe+aWhLQSv6Q270OF85wQX/oiLiWilVm9JiJOO8fA==", + "dependencies": { + "@empathyco/x-logger": "^1.2.0-alpha.11", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-bus/node_modules/@empathyco/x-utils": { + "version": "1.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-utils/-/x-utils-1.0.1-alpha.0.tgz", + "integrity": "sha512-diXGPshBlxbe03M+ldv/mCXb+Yzpxg4cv/5tLTd8PaakdbVaQSHjeeMQEWMuZ8RFrx8sVxEqYmWQd5HOFiuHSg==", + "dependencies": { + "@empathyco/x-storage-service": "^2.0.1-alpha.0", + "nanoid": "~3.3.0", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/@empathyco/x-bus/node_modules/tslib": { "version": "2.5.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" }, "node_modules/@empathyco/x-components": { - "version": "3.0.0-alpha.422", - "resolved": "https://registry.npmjs.org/@empathyco/x-components/-/x-components-3.0.0-alpha.422.tgz", - "integrity": "sha512-prYfv/TVvJUTnbxrsembCqyhdfuVrlpGoEW0speP/9G2Xm2DzE+E5NMvugYkzNaVU+hkZHx3S2eRK5Z1TH8yoA==", - "dependencies": { - "@empathyco/x-adapter": "^8.0.0-alpha.34", - "@empathyco/x-adapter-platform": "^1.0.0-alpha.88", - "@empathyco/x-bus": "^1.0.0-alpha.4", - "@empathyco/x-deep-merge": "^2.0.0-alpha.3", + "version": "3.0.1-alpha.4", + "resolved": "https://registry.npmjs.org/@empathyco/x-components/-/x-components-3.0.1-alpha.4.tgz", + "integrity": "sha512-N8O40mhdhlFgMC4TNXhLLm0fZD1NIJfAsSr8+OAbnccu3TCmpB1VqrAHwL+nZM4w4EaI5HvmCg1+9LoCBQ4btg==", + "dependencies": { + "@empathyco/x-adapter": "^8.0.1-alpha.0", + "@empathyco/x-adapter-platform": "^1.0.1-alpha.0", + "@empathyco/x-bus": "^1.0.1-alpha.0", + "@empathyco/x-deep-merge": "^2.0.1-alpha.0", "@empathyco/x-logger": "^1.2.0-alpha.11", - "@empathyco/x-storage-service": "^2.0.0-alpha.15", - "@empathyco/x-types": "^10.0.0-alpha.75", - "@empathyco/x-utils": "^1.0.0-alpha.23", + "@empathyco/x-storage-service": "^2.0.1-alpha.0", + "@empathyco/x-types": "^10.0.1-alpha.0", + "@empathyco/x-utils": "^1.0.1-alpha.0", "@vue/devtools-api": "~6.5.0", "@vueuse/core": "~10.1.0", "rxjs": "~7.8.0", @@ -2212,12 +2237,77 @@ "vuex": "^3.0.0" } }, + "node_modules/@empathyco/x-components/node_modules/@empathyco/x-adapter": { + "version": "8.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-adapter/-/x-adapter-8.0.1-alpha.0.tgz", + "integrity": "sha512-dGKzHvEXHY0QE1Y7x4Hba//E/KjNu/vqOhcDSrSxP2gEQhXuxBvlD0Z3c0bZiSKgoAhqOnMQRk5iqLNtdsjW+A==", + "dependencies": { + "@empathyco/x-deep-merge": "^2.0.1-alpha.0", + "@empathyco/x-utils": "^1.0.1-alpha.0", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-components/node_modules/@empathyco/x-adapter-platform": { + "version": "1.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-adapter-platform/-/x-adapter-platform-1.0.1-alpha.0.tgz", + "integrity": "sha512-hOOtLxCEqbB+cLmovxNagar1j5CbRUwa7ej2LMn8nms2ZFFX16ik6gas0FEc8oa5NKFXinLnms/Lxfj5esKTAg==", + "dependencies": { + "@empathyco/x-adapter": "^8.0.1-alpha.0", + "@empathyco/x-types": "^10.0.1-alpha.0", + "@empathyco/x-utils": "^1.0.1-alpha.0", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/@empathyco/x-components/node_modules/@empathyco/x-deep-merge": { - "version": "2.0.0-alpha.3", - "resolved": "https://registry.npmjs.org/@empathyco/x-deep-merge/-/x-deep-merge-2.0.0-alpha.3.tgz", - "integrity": "sha512-qvHvEVt3FoZXdlfxvEQExxF/q6F+wgTKdd9TIOxWUjZUlajrLdLXXWPnmBp5iEnz4Xzz4yxeHKdPRV1kv9aU2g==", + "version": "2.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-deep-merge/-/x-deep-merge-2.0.1-alpha.0.tgz", + "integrity": "sha512-URqUYme4StnCZ/noCK1VB1zaWtgaiLwbvcEQryI1nAgNqqnlnE/+WLN0CA0Q9QAqP6SGkiiyND28XTFJaoL9Bw==", "dependencies": { - "@empathyco/x-utils": "^1.0.0-alpha.23", + "@empathyco/x-utils": "^1.0.1-alpha.0", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-components/node_modules/@empathyco/x-storage-service": { + "version": "2.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-storage-service/-/x-storage-service-2.0.1-alpha.0.tgz", + "integrity": "sha512-9PVc19WHRzNN55epdznaCrdRwpn7O676/8YEAI9dVcDIBfe+aWhLQSv6Q270OF85wQX/oiLiWilVm9JiJOO8fA==", + "dependencies": { + "@empathyco/x-logger": "^1.2.0-alpha.11", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-components/node_modules/@empathyco/x-types": { + "version": "10.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-types/-/x-types-10.0.1-alpha.0.tgz", + "integrity": "sha512-hvawqQdMUYgL4dWl5j287Prs+11EUVGLVl4a21jUJMOme6B4W5wIgizgZaJSPxz3xhETuyUOc5cVz3m6SBz7hw==", + "dependencies": { + "@empathyco/x-adapter": "^8.0.1-alpha.0", + "@empathyco/x-utils": "^1.0.1-alpha.0", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-components/node_modules/@empathyco/x-utils": { + "version": "1.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-utils/-/x-utils-1.0.1-alpha.0.tgz", + "integrity": "sha512-diXGPshBlxbe03M+ldv/mCXb+Yzpxg4cv/5tLTd8PaakdbVaQSHjeeMQEWMuZ8RFrx8sVxEqYmWQd5HOFiuHSg==", + "dependencies": { + "@empathyco/x-storage-service": "^2.0.1-alpha.0", + "nanoid": "~3.3.0", "tslib": "~2.5.0" }, "engines": { @@ -2274,11 +2364,36 @@ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" }, "node_modules/@empathyco/x-priority-queue": { - "version": "1.0.0-alpha.4", - "resolved": "https://registry.npmjs.org/@empathyco/x-priority-queue/-/x-priority-queue-1.0.0-alpha.4.tgz", - "integrity": "sha512-K2HuGukVcW3+nK0MLTF52sghqm8kJQatMQls83Oe4Q8iPrbbPML/EcQc/SMoU3cqfeADUraPVuz4lxwPnOPzgw==", + "version": "1.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-priority-queue/-/x-priority-queue-1.0.1-alpha.0.tgz", + "integrity": "sha512-imeFgpICMEGKctzZvqwib8Y4mzr551g3fMieKnYqATYju9AF3rFAvnd/AJ82hkSj98jAPYA+5Os5G0lgK4qzhw==", "dependencies": { - "@empathyco/x-utils": "^1.0.0-alpha.23", + "@empathyco/x-utils": "^1.0.1-alpha.0", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-priority-queue/node_modules/@empathyco/x-storage-service": { + "version": "2.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-storage-service/-/x-storage-service-2.0.1-alpha.0.tgz", + "integrity": "sha512-9PVc19WHRzNN55epdznaCrdRwpn7O676/8YEAI9dVcDIBfe+aWhLQSv6Q270OF85wQX/oiLiWilVm9JiJOO8fA==", + "dependencies": { + "@empathyco/x-logger": "^1.2.0-alpha.11", + "tslib": "~2.5.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@empathyco/x-priority-queue/node_modules/@empathyco/x-utils": { + "version": "1.0.1-alpha.0", + "resolved": "https://registry.npmjs.org/@empathyco/x-utils/-/x-utils-1.0.1-alpha.0.tgz", + "integrity": "sha512-diXGPshBlxbe03M+ldv/mCXb+Yzpxg4cv/5tLTd8PaakdbVaQSHjeeMQEWMuZ8RFrx8sVxEqYmWQd5HOFiuHSg==", + "dependencies": { + "@empathyco/x-storage-service": "^2.0.1-alpha.0", + "nanoid": "~3.3.0", "tslib": "~2.5.0" }, "engines": { diff --git a/package.json b/package.json index 5b944564..e8cc0caa 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@empathyco/x-adapter": "^8.0.0-alpha.34", "@empathyco/x-adapter-platform": "^1.0.0-alpha.88", "@empathyco/x-archetype-utils": "^1.0.0-alpha.4", - "@empathyco/x-components": "^3.0.0-alpha.422", + "@empathyco/x-components": "^3.0.1-alpha.4", "@empathyco/x-deep-merge": "^1.3.0-alpha.34", "@empathyco/x-types": "^10.0.0-alpha.75", "@empathyco/x-utils": "^1.0.0-alpha.23", diff --git a/src/components/predictive-layer/sliding-recommendations.vue b/src/components/predictive-layer/sliding-recommendations.vue index 80c569ba..06482974 100644 --- a/src/components/predictive-layer/sliding-recommendations.vue +++ b/src/components/predictive-layer/sliding-recommendations.vue @@ -18,7 +18,7 @@