@empathyco/x-components 9.3.2 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/docs/API-reference/api/x-adapter-platform.md +9 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearch.md +0 -19
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.add2cart.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.checkout.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.click.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.display.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.displayclick.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.md +139 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.query.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionssearchresponse.md +17 -0
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionssearchresponse.tagging.md +11 -0
- package/docs/API-reference/api/x-components.aimutations.md +19 -0
- package/docs/API-reference/api/x-components.aimutations.setsuggestionssearchtagging.md +13 -0
- package/docs/API-reference/api/x-components.aistate.config.md +2 -0
- package/docs/API-reference/api/x-components.aistate.md +21 -0
- package/docs/API-reference/api/x-components.aistate.suggestionstagging.md +13 -0
- package/docs/API-reference/api/x-components.aixevents.aicomponentunmounted.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.aisuggestionssearchtaggingchanged.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.md +34 -0
- package/docs/API-reference/api/x-components.basecurrency.md +2 -0
- package/docs/API-reference/api/x-components.baseeventsmodalclose.md +1 -1
- package/docs/API-reference/api/x-components.baseeventsmodalopen.md +1 -1
- package/docs/API-reference/api/x-components.basepricefilterlabel.md +2 -0
- package/docs/API-reference/api/x-components.baseresultcurrentprice.md +2 -0
- package/docs/API-reference/api/x-components.baseresultpreviousprice.md +2 -0
- package/docs/API-reference/api/x-components.createtrackaicarouseltaggingwire.md +56 -0
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +2 -0
- package/docs/API-reference/api/x-components.md +46 -2
- package/docs/API-reference/api/x-components.simplefilter.md +2 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +2 -0
- package/docs/API-reference/api/x-components.trackaicarouseladdtocartwire.md +13 -0
- package/docs/API-reference/api/x-components.trackaicarouselquerytagginginfodebouncedwire.md +13 -0
- package/docs/API-reference/api/x-components.trackaicarouselquerytagginginfowire.md +13 -0
- package/docs/API-reference/api/x-components.trackaicarouselresultclickedwire.md +13 -0
- package/docs/API-reference/api/x-types.aisuggestionsearch.md +0 -17
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.add2cart.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.checkout.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.click.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.display.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.displayclick.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.md +139 -0
- package/docs/API-reference/api/x-types.aisuggestionsearchtagging.query.md +11 -0
- package/docs/API-reference/api/x-types.aisuggestionssearchresponse.md +17 -0
- package/docs/API-reference/api/x-types.aisuggestionssearchresponse.suggestionstagging.md +11 -0
- package/docs/API-reference/api/x-types.md +9 -0
- package/docs/API-reference/components/common/currency/x-components.base-currency.md +19 -0
- package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +37 -0
- package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +21 -0
- package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +22 -0
- package/js/components/currency/base-currency.vue.js.map +1 -1
- package/js/components/currency/base-currency.vue2.js +8 -1
- package/js/components/currency/base-currency.vue2.js.map +1 -1
- package/js/components/filters/labels/base-price-filter-label.vue.js +8 -0
- package/js/components/filters/labels/base-price-filter-label.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js +3 -2
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue2.js +6 -0
- package/js/components/result/base-result-current-price.vue2.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue.js +3 -2
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue2.js +6 -0
- package/js/components/result/base-result-previous-price.vue2.js.map +1 -1
- package/js/index.js +1 -1
- package/js/x-modules/ai/components/ai-carousel.vue.js.map +1 -1
- package/js/x-modules/ai/components/ai-carousel.vue2.js +4 -1
- package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js +1 -0
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js.map +1 -1
- package/js/x-modules/ai/store/emitters.js +4 -0
- package/js/x-modules/ai/store/emitters.js.map +1 -1
- package/js/x-modules/ai/store/module.js +4 -0
- package/js/x-modules/ai/store/module.js.map +1 -1
- package/js/x-modules/tagging/store/module.js +1 -1
- package/js/x-modules/tagging/store/module.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +52 -7
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/package.json +4 -4
- package/report/x-adapter-platform.api.json +186 -5
- package/report/x-components.api.json +435 -29
- package/report/x-components.api.md +47 -6
- package/report/x-types.api.json +184 -6
- package/tagging/index.js +1 -1
- package/types/src/components/currency/base-currency.vue.d.ts +12 -0
- package/types/src/components/currency/base-currency.vue.d.ts.map +1 -1
- package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts +12 -0
- package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts.map +1 -1
- package/types/src/components/modals/base-events-modal-close.vue.d.ts +1 -1
- package/types/src/components/modals/base-events-modal-open.vue.d.ts +1 -1
- package/types/src/components/result/base-result-current-price.vue.d.ts +12 -0
- package/types/src/components/result/base-result-current-price.vue.d.ts.map +1 -1
- package/types/src/components/result/base-result-previous-price.vue.d.ts +12 -0
- package/types/src/components/result/base-result-previous-price.vue.d.ts.map +1 -1
- package/types/src/components/snippet-callbacks.vue.d.ts +2 -0
- package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/src/x-modules/ai/components/ai-carousel.vue.d.ts.map +1 -1
- package/types/src/x-modules/ai/events.types.d.ts +3 -1
- package/types/src/x-modules/ai/events.types.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/emitters.d.ts +4 -0
- package/types/src/x-modules/ai/store/emitters.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/module.d.ts.map +1 -1
- package/types/src/x-modules/ai/store/types.d.ts +10 -1
- package/types/src/x-modules/ai/store/types.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +2 -0
- package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +2 -0
- package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/types/src/x-modules/tagging/wiring.d.ts +39 -4
- package/types/src/x-modules/tagging/wiring.d.ts.map +1 -1
- package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearch.tagging.md +0 -13
- package/docs/API-reference/api/x-components.trackaisuggestionssearchwire.md +0 -13
- package/docs/API-reference/api/x-types.aisuggestionsearch.tagging.md +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultSessionService } from '@empathyco/x-utils';
|
|
2
2
|
import { createOrigin } from '../../utils/origin.js';
|
|
3
3
|
import '../../utils/storage.js';
|
|
4
|
-
import {
|
|
4
|
+
import { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory.js';
|
|
5
5
|
import { namespacedDebounce } from '../../wiring/namespaced-wires.operators.js';
|
|
6
6
|
import { wireServiceWithoutPayload, wireService } from '../../wiring/wires.factory.js';
|
|
7
7
|
import { filter, mapWire } from '../../wiring/wires.operators.js';
|
|
@@ -231,7 +231,7 @@ const trackNoResultsQueryWithFallbackWire = filter(wireDispatch('track', ({ even
|
|
|
231
231
|
*
|
|
232
232
|
* @public
|
|
233
233
|
*/
|
|
234
|
-
const trackNoResultsQueryWithFallbackWireDebounced = moduleDebounce(trackNoResultsQueryWithFallbackWire, ({ state }) => state.config.queryTaggingDebounceMs, { cancelOn: ['QueryPreviewUnmounted', 'RelatedPromptsUnmounted'] });
|
|
234
|
+
const trackNoResultsQueryWithFallbackWireDebounced = moduleDebounce(trackNoResultsQueryWithFallbackWire, ({ state }) => state.config.queryTaggingDebounceMs, { cancelOn: ['QueryPreviewUnmounted', 'RelatedPromptsUnmounted', 'AiComponentUnmounted'] });
|
|
235
235
|
/**
|
|
236
236
|
* Performs a track of a query with no results that used semantic queries as fallback.
|
|
237
237
|
* The totalHits will be changed to -1 if semantic queries are found in order to differentiate
|
|
@@ -349,10 +349,50 @@ function createSetQueryTaggingFromQueryPreview() {
|
|
|
349
349
|
return filter(wireCommit('setQueryTaggingInfo', ({ metadata: { queryTagging } }) => queryTagging), ({ metadata: { queryTagging } }) => !!queryTagging);
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
|
-
*
|
|
352
|
+
* Performs a track of a query with no results that used ai carousel as fallback.
|
|
353
|
+
* The query will be changed to the original query of the search in order to associate
|
|
354
|
+
* the return of related results to that query, instead of track a no results query.
|
|
355
|
+
*
|
|
356
|
+
* @public
|
|
357
|
+
*/
|
|
358
|
+
const trackAiCarouselQueryTaggingInfoWire = filter(wireDispatch('track', ({ eventPayload, state }) => {
|
|
359
|
+
const queryTaggingInfoNoResults = eventPayload.query;
|
|
360
|
+
queryTaggingInfoNoResults.params.q = state.queryTaggingInfo.params.q;
|
|
361
|
+
return queryTaggingInfoNoResults;
|
|
362
|
+
}), ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0);
|
|
363
|
+
/**
|
|
364
|
+
* Debounced version of {@link trackAiCarouselQueryTaggingInfoWire}
|
|
365
|
+
*
|
|
366
|
+
* @public
|
|
367
|
+
*/
|
|
368
|
+
const trackAiCarouselQueryTaggingInfoDebouncedWire = moduleDebounce(trackAiCarouselQueryTaggingInfoWire, ({ state }) => state.config.queryTaggingDebounceMs);
|
|
369
|
+
/**
|
|
370
|
+
* Factory helper to create a wire for the track of an ai carousel taggable element.
|
|
371
|
+
*
|
|
372
|
+
* @param property - Key of the tagging object to track.
|
|
373
|
+
* @returns A new wire for the given property of the ai carousel taggable element.
|
|
374
|
+
*
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
function createTrackAiCarouselTaggingWire(property) {
|
|
378
|
+
return wireDispatch('track', ({ eventPayload: { tagging }, state }) => {
|
|
379
|
+
const taggingInfo = tagging[property];
|
|
380
|
+
taggingInfo.params.q = state.queryTaggingInfo.params.q;
|
|
381
|
+
return taggingInfo;
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Tracks the tagging of an ai carousel result clicked.
|
|
386
|
+
*
|
|
353
387
|
* @public
|
|
354
388
|
*/
|
|
355
|
-
const
|
|
389
|
+
const trackAiCarouselResultClickedWire = createTrackAiCarouselTaggingWire('click');
|
|
390
|
+
/**
|
|
391
|
+
* Performs a track of an ai carousel result added to the cart.
|
|
392
|
+
*
|
|
393
|
+
* @public
|
|
394
|
+
*/
|
|
395
|
+
const trackAiCarouselAddToCartWire = createTrackAiCarouselTaggingWire('add2cart');
|
|
356
396
|
/**
|
|
357
397
|
* Wiring configuration for the {@link TaggingXModule | tagging module}.
|
|
358
398
|
*
|
|
@@ -429,16 +469,21 @@ const taggingWiring = createWiring({
|
|
|
429
469
|
UserSelectedARelatedPrompt: {
|
|
430
470
|
trackRelatedPromptToolingDisplayClickWire,
|
|
431
471
|
},
|
|
432
|
-
|
|
433
|
-
|
|
472
|
+
AiSuggestionsSearchTaggingChanged: {
|
|
473
|
+
trackAiCarouselQueryTaggingInfoDebouncedWire,
|
|
434
474
|
},
|
|
435
475
|
UserClickedAnAiCarouselResult: {
|
|
436
476
|
trackToolingDisplayClickedWire,
|
|
477
|
+
trackAiCarouselResultClickedWire,
|
|
478
|
+
storeClickedResultWire,
|
|
437
479
|
},
|
|
438
480
|
UserClickedAnAiCarouselAdd2Cart: {
|
|
439
481
|
trackToolingAdd2CartWire,
|
|
482
|
+
trackAiCarouselAddToCartWire,
|
|
483
|
+
trackAiCarouselResultClickedWire,
|
|
484
|
+
storeAddToCartWire,
|
|
440
485
|
},
|
|
441
486
|
});
|
|
442
487
|
|
|
443
|
-
export { createSetQueryTaggingFromQueryPreview, createTrackDisplayWire, createTrackRelatedPromptToolingDisplayClickWire, createTrackToolingAdd2CartWire, createTrackToolingDisplayWire, createTrackWire, setBrowseTaggingInfo, setConsent, setNoResultsTaggingEnabledWire, setQueryTaggingFromQueryPreview, setQueryTaggingInfo, setTaggingConfig, taggingWiring, trackAddToCartWire,
|
|
488
|
+
export { createSetQueryTaggingFromQueryPreview, createTrackAiCarouselTaggingWire, createTrackDisplayWire, createTrackRelatedPromptToolingDisplayClickWire, createTrackToolingAdd2CartWire, createTrackToolingDisplayWire, createTrackWire, setBrowseTaggingInfo, setConsent, setNoResultsTaggingEnabledWire, setQueryTaggingFromQueryPreview, setQueryTaggingInfo, setTaggingConfig, taggingWiring, trackAddToCartWire, trackAiCarouselAddToCartWire, trackAiCarouselQueryTaggingInfoDebouncedWire, trackAiCarouselQueryTaggingInfoWire, trackAiCarouselResultClickedWire, trackBannerClickedWire, trackBrowseWire, trackDisplayClickedWire, trackElementDisplayedWire, trackNoResultsQueryWithFallbackWire, trackNoResultsQueryWithFallbackWireDebounced, trackNoResultsQueryWithSemanticsWire, trackNoResultsQueryWithSemanticsWireDebounced, trackPromotedClickedWire, trackQueryWire, trackRelatedPromptToolingDisplayClickWire, trackResultClickedWire, trackToolingAdd2CartWire, trackToolingDisplayClickedWire };
|
|
444
489
|
//# sourceMappingURL=wiring.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/tagging/wiring.ts"],"sourcesContent":["import type {\n AiSuggestionSearch,\n RelatedPrompt,\n Result,\n SemanticQuery,\n Taggable,\n Tagging,\n TaggingRequest,\n} from '@empathyco/x-types'\nimport type { FeatureLocation } from '../../types/index'\nimport type { DisplayWireMetadata, Wire } from '../../wiring/wiring.types'\nimport { DefaultSessionService } from '@empathyco/x-utils'\nimport { createOrigin } from '../../utils/index'\nimport { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory'\nimport { namespacedDebounce } from '../../wiring/namespaced-wires.operators'\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory'\nimport { filter, mapWire } from '../../wiring/wires.operators'\nimport { createWiring } from '../../wiring/wiring.utils'\nimport { DefaultExternalTaggingService } from './service/external-tagging.service'\n\n/**\n * `tagging` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'tagging'\n\n/**\n * Debounce function for the module.\n */\nconst moduleDebounce = namespacedDebounce(moduleName)\n\n/**\n * WireCommit for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName)\n\n/**\n * WireDispatch for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName)\n\n/**\n * Wires without payload factory for {@link DefaultSessionService}.\n */\nconst wireSessionServiceWithoutPayload = wireServiceWithoutPayload(DefaultSessionService.instance)\n\n/**\n * Wires factory for {@link DefaultExternalTaggingService}.\n */\nconst wireExternalTaggingService = wireService(DefaultExternalTaggingService.instance)\n\n/**\n * Stores the given result on the local storage.\n *\n * @public\n */\nconst storeClickedResultWire = wireExternalTaggingService('storeResultClicked')\n\n/**\n * Stores the result added to cart on the local storage.\n *\n * @public\n */\nconst storeAddToCartWire = wireExternalTaggingService('storeAddToCart')\n\n/**\n * Moves the result information from the local storage to session storage.\n *\n * @public\n */\nconst moveClickedResultToSessionWire = mapWire(\n wireExternalTaggingService('moveToSessionStorage'),\n (payload: string) => {\n return payload === 'url' ? undefined : payload\n },\n)\n\n/**\n * Triggers the add to cart tracking.\n *\n * @public\n */\nconst trackAddToCartFromSessionStorage = wireExternalTaggingService('trackAddToCart')\n\n/**\n * Clears the session id.\n *\n * @public\n */\nconst clearSessionWire = filter(\n wireSessionServiceWithoutPayload('clearSessionId'),\n ({ eventPayload: consent }) => !consent,\n)\n\n/**\n * Sets the tagging state `consent`.\n *\n * @public\n */\nexport const setConsent = wireCommit('setConsent')\n\n/**\n * Sets the tagging state `noResultsTaggingEnabled`.\n *\n * @public\n */\nexport const setNoResultsTaggingEnabledWire = wireCommit('setNoResultsTaggingEnabled')\n\n/**\n * Sets the tagging config state.\n *\n * @public\n */\nexport const setTaggingConfig = wireCommit('mergeConfig')\n\n/**\n * Tracks the tagging of the query.\n *\n * @public\n */\nexport const trackQueryWire = filter(\n wireDispatch('track'),\n ({ eventPayload, store }) =>\n ((eventPayload as TaggingRequest).params.totalHits as number) > 0 ||\n !store.state.x.tagging.noResultsTaggingEnabled,\n)\n\n/**\n * Tracks the tagging of the browse category.\n *\n * @public\n */\nexport const trackBrowseWire = filter(\n wireDispatch('track'),\n ({ eventPayload, store }) =>\n ((eventPayload as TaggingRequest).params.totalHits as number) > 0 ||\n !store.state.x.tagging.noResultsTaggingEnabled,\n)\n\n/**\n * Sets the tagging state of the query tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setQueryTaggingInfo = moduleDebounce(\n wireCommit('setQueryTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: 'UserClearedQuery',\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd',\n ],\n },\n)\n\n/**\n * Sets the tagging state of the browse tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setBrowseTaggingInfo = moduleDebounce(\n wireCommit('setBrowseTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: ['UserClickedOpenX', 'UserOpenXProgrammatically'],\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd',\n ],\n },\n)\n\n/**\n * Sets the tagging state of the query tagging info using.\n *\n * @public\n */\nexport const setQueryTaggingFromQueryPreview = createSetQueryTaggingFromQueryPreview()\n\n/**\n * Tracks the tagging of the result.\n *\n * @public\n */\nexport const trackResultClickedWire = createTrackWire('click')\n\n/**\n * Tracks the tagging of the banner.\n *\n * @public\n */\nexport const trackBannerClickedWire = createTrackWire('click')\n\n/**\n * Tracks the click on a promoted result.\n *\n * @public\n */\nexport const trackPromotedClickedWire = createTrackWire('click')\n\n/**\n * Performs a track of a result added to the cart.\n *\n * @public\n */\nexport const trackAddToCartWire = createTrackWire('add2cart')\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackDisplayClickedWire = createTrackDisplayWire('displayClick')\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackToolingDisplayClickedWire = createTrackToolingDisplayWire()\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackToolingAdd2CartWire = createTrackToolingAdd2CartWire()\n\n/**\n * Performs a track of a clicked related prompt.\n *\n * @public\n */\nexport const trackRelatedPromptToolingDisplayClickWire =\n createTrackRelatedPromptToolingDisplayClickWire()\n\n/**\n * Performs a track of a display element appearing.\n *\n * @public\n */\nexport const trackElementDisplayedWire = createTrackDisplayWire('display')\n\n/**\n * Factory helper to create a wire for the track of a taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the taggable element.\n *\n * @public\n */\nexport function createTrackWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata: { location } }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n taggingInfo.params.location = location as string\n return taggingInfo\n }),\n ({ eventPayload: { tagging }, metadata: { ignoreInModules } }) =>\n // eslint-disable-next-line ts/no-unsafe-member-access\n !!tagging?.[property] && !ignoreInModules?.includes(moduleName),\n )\n}\n\n/**\n * Performs a track of a query with no results that used related prompts or semantic queries as fallback.\n * The totalHits will be changed to -1 if related prompts or semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any related prompts or semantic queries.\n *\n * @public\n */\nexport const trackNoResultsQueryWithFallbackWire = filter(\n wireDispatch('track', ({ eventPayload, state }) => {\n const { queryTaggingInfo } = state\n const totalHits = (eventPayload as RelatedPrompt[] | SemanticQuery[]).length > 0 ? -1 : 0\n return {\n params: { ...queryTaggingInfo?.params, totalHits },\n url: queryTaggingInfo?.url ?? '',\n }\n }),\n ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0,\n)\n\n/**.\n * Debounced version of {@link trackNoResultsQueryWithFallbackWire}\n *\n * @public\n */\nexport const trackNoResultsQueryWithFallbackWireDebounced = moduleDebounce(\n trackNoResultsQueryWithFallbackWire,\n ({ state }) => state.config.queryTaggingDebounceMs,\n { cancelOn: ['QueryPreviewUnmounted', 'RelatedPromptsUnmounted'] },\n)\n\n/**\n * Performs a track of a query with no results that used semantic queries as fallback.\n * The totalHits will be changed to -1 if semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any semantic queries.\n *\n * @public\n * @deprecated - Use {@link trackNoResultsQueryWithFallbackWire} instead.\n */\nexport const trackNoResultsQueryWithSemanticsWire = trackNoResultsQueryWithFallbackWire\n\n/**\n * Debounced version of {@link trackNoResultsQueryWithFallbackWire}\n *\n * @public\n * @deprecated - Use {@link trackNoResultsQueryWithFallbackWireDebounced} instead.\n */\nexport const trackNoResultsQueryWithSemanticsWireDebounced =\n trackNoResultsQueryWithFallbackWireDebounced\n\n/**\n * Factory helper to create a wire for the track of the display click.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the display click of the taggable element.\n *\n * @public\n */\nexport function createTrackDisplayWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n const location = metadata.location as FeatureLocation\n\n taggingInfo.params.location = location\n taggingInfo.params.displayFamily = createOrigin({\n feature: metadata.feature,\n location,\n })!\n taggingInfo.params.q = (metadata as DisplayWireMetadata).displayOriginalQuery\n\n return taggingInfo\n }),\n // eslint-disable-next-line ts/no-unsafe-member-access\n ({ eventPayload: { tagging } }) => !!tagging?.[property]?.url,\n )\n}\n\n/**\n * Update the tooling tagging params with the result information.\n *\n * @param taggingRequest - The tooling tagging request to be updated.\n * @param result - The clicked result.\n * @returns The tagging request updated.\n *\n * @internal\n */\nfunction updateToolingTaggingWithResult(\n taggingRequest: TaggingRequest,\n result: Result,\n): TaggingRequest {\n taggingRequest.params.productId = result.id\n taggingRequest.params.title = result.name!\n taggingRequest.params.url = result.url!\n\n return taggingRequest\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display click.\n *\n * @returns A new wire for the tooling display click of the taggable element.\n *\n * @public\n */\nexport function createTrackToolingDisplayWire(): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload, metadata }) => {\n const taggingInfo: TaggingRequest = metadata.toolingTagging as TaggingRequest\n const resultInfo = eventPayload as Result\n\n updateToolingTaggingWithResult(taggingInfo, resultInfo)\n\n return taggingInfo\n }),\n ({ metadata }) => !!metadata?.toolingTagging,\n )\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display add to cart.\n *\n * @returns A new wire for the tooling display add to cart of the taggable element.\n *\n * @public\n */\nexport function createTrackToolingAdd2CartWire(): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload, metadata }) => {\n const taggingInfo: TaggingRequest = metadata.toolingAdd2CartTagging as TaggingRequest\n const resultInfo = eventPayload as Result\n\n updateToolingTaggingWithResult(taggingInfo, resultInfo)\n\n return taggingInfo\n }),\n ({ metadata }) => !!metadata?.toolingAdd2CartTagging,\n )\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display click in a related prompt.\n *\n * @returns A new wire for the tooling display click of the taggable element.\n *\n * @public\n */\nexport function createTrackRelatedPromptToolingDisplayClickWire() {\n return filter(\n wireDispatch('track', ({ metadata }) => {\n const relatedPrompt = metadata.relatedPrompt as RelatedPrompt\n const taggingInfo = relatedPrompt.tagging!.toolingDisplayClickTagging as TaggingRequest\n\n taggingInfo.params.productId = 'EXPAND'\n taggingInfo.params.title = relatedPrompt.suggestionText\n taggingInfo.params.url = 'none'\n\n return taggingInfo\n }),\n ({ metadata }) => {\n const relatedPrompt = metadata.relatedPrompt as RelatedPrompt | undefined\n const isUnselected = metadata?.selectedPrompt === -1\n const taggingInfo = relatedPrompt?.tagging?.toolingDisplayClickTagging\n return isUnselected && !!taggingInfo\n },\n )\n}\n\n/**\n * Factory helper to create a wire to set the queryTagging.\n *\n * @returns A new wire for the query of a result of a queryPreview.\n *\n * @public\n */\nexport function createSetQueryTaggingFromQueryPreview(): Wire<Taggable> {\n return filter(\n wireCommit(\n 'setQueryTaggingInfo',\n ({ metadata: { queryTagging } }) => queryTagging as TaggingRequest,\n ),\n ({ metadata: { queryTagging } }) => !!queryTagging,\n )\n}\n\n/**\n * Tracks query tagging of the AI suggestions-search.\n * @public\n */\nexport const trackAiSuggestionsSearchWire = wireDispatch('track', ({ eventPayload }) =>\n (eventPayload as AiSuggestionSearch[]).map(({ tagging }) => tagging.query),\n)\n\n/**\n * Wiring configuration for the {@link TaggingXModule | tagging module}.\n *\n * @internal\n */\nexport const taggingWiring = createWiring({\n ConsentProvided: {\n setConsent,\n },\n ConsentChanged: {\n clearSessionWire,\n },\n PDPIsLoaded: {\n moveClickedResultToSessionWire,\n },\n ResultURLTrackingEnabled: {\n moveClickedResultToSessionWire,\n },\n SearchTaggingChanged: {\n setQueryTaggingInfo,\n },\n SearchTaggingReceived: {\n trackQueryWire,\n },\n BrowseTaggingChanged: {\n setBrowseTaggingInfo,\n },\n BrowseTaggingReceived: {\n trackBrowseWire,\n },\n TrackableElementDisplayed: {\n trackElementDisplayedWire,\n },\n TaggingConfigProvided: {\n setTaggingConfig,\n },\n UserClickedAResult: {\n trackResultClickedWire,\n storeClickedResultWire,\n },\n UserClickedResultAddToCart: {\n trackAddToCartWire,\n trackResultClickedWire,\n storeAddToCartWire,\n },\n UserClickedPDPAddToCart: {\n trackAddToCartFromSessionStorage,\n },\n UserClickedABanner: {\n trackBannerClickedWire,\n },\n UserClickedAPromoted: {\n trackPromotedClickedWire,\n },\n UserClickedADisplayResult: {\n trackDisplayClickedWire,\n setQueryTaggingFromQueryPreview,\n },\n SemanticQueriesResponseChanged: {\n trackNoResultsQueryWithFallbackWireDebounced,\n },\n RelatedPromptsResponseChanged: {\n trackNoResultsQueryWithFallbackWireDebounced,\n },\n ModuleRegistered: {\n setNoResultsTaggingEnabledWire,\n },\n UserClickedARelatedPromptResult: {\n trackToolingDisplayClickedWire,\n },\n UserClickedARelatedPromptAdd2Cart: {\n trackToolingAdd2CartWire,\n },\n UserSelectedARelatedPrompt: {\n trackRelatedPromptToolingDisplayClickWire,\n },\n AiSuggestionsSearchChanged: {\n trackAiSuggestionsSearchWire,\n },\n UserClickedAnAiCarouselResult: {\n trackToolingDisplayClickedWire,\n },\n UserClickedAnAiCarouselAdd2Cart: {\n trackToolingAdd2CartWire,\n },\n})\n"],"names":[],"mappings":";;;;;;;;;;AAoBA;;;;AAIG;AACH,MAAM,UAAU,GAAG,SAAS;AAE5B;;AAEG;AACH,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC;AAErD;;;;AAIG;AACH,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eAAe;AAChB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,yBAAyB;AAC1B,KAAA;AACD,IAAA,qBAAqB,EAAE;QACrB,gBAAgB;AACjB,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;QACtB,sBAAsB;AACvB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,kBAAkB;QAClB,sBAAsB;QACtB,kBAAkB;AACnB,KAAA;AACD,IAAA,uBAAuB,EAAE;QACvB,gCAAgC;AACjC,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;AACvB,KAAA;AACD,IAAA,oBAAoB,EAAE;QACpB,wBAAwB;AACzB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,uBAAuB;QACvB,+BAA+B;AAChC,KAAA;AACD,IAAA,8BAA8B,EAAE;QAC9B,4CAA4C;AAC7C,KAAA;AACD,IAAA,6BAA6B,EAAE;QAC7B,4CAA4C;AAC7C,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,8BAA8B;AAC/B,KAAA;AACD,IAAA,+BAA+B,EAAE;QAC/B,8BAA8B;AAC/B,KAAA;AACD,IAAA,iCAAiC,EAAE;QACjC,wBAAwB;AACzB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,yCAAyC;AAC1C,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,4BAA4B;AAC7B,KAAA;AACD,IAAA,6BAA6B,EAAE;QAC7B,8BAA8B;AAC/B,KAAA;AACD,IAAA,+BAA+B,EAAE;QAC/B,wBAAwB;AACzB,KAAA;AACF,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/tagging/wiring.ts"],"sourcesContent":["import type {\n AiSuggestionSearchTagging,\n RelatedPrompt,\n Result,\n SemanticQuery,\n Taggable,\n Tagging,\n TaggingRequest,\n} from '@empathyco/x-types'\nimport type { FeatureLocation } from '../../types/index'\nimport type { DisplayWireMetadata, Wire } from '../../wiring/wiring.types'\nimport { DefaultSessionService } from '@empathyco/x-utils'\nimport { createOrigin } from '../../utils/index'\nimport { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory'\nimport { namespacedDebounce } from '../../wiring/namespaced-wires.operators'\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory'\nimport { filter, mapWire } from '../../wiring/wires.operators'\nimport { createWiring } from '../../wiring/wiring.utils'\nimport { DefaultExternalTaggingService } from './service/external-tagging.service'\n\n/**\n * `tagging` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'tagging'\n\n/**\n * Debounce function for the module.\n */\nconst moduleDebounce = namespacedDebounce(moduleName)\n\n/**\n * WireCommit for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName)\n\n/**\n * WireDispatch for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName)\n\n/**\n * Wires without payload factory for {@link DefaultSessionService}.\n */\nconst wireSessionServiceWithoutPayload = wireServiceWithoutPayload(DefaultSessionService.instance)\n\n/**\n * Wires factory for {@link DefaultExternalTaggingService}.\n */\nconst wireExternalTaggingService = wireService(DefaultExternalTaggingService.instance)\n\n/**\n * Stores the given result on the local storage.\n *\n * @public\n */\nconst storeClickedResultWire = wireExternalTaggingService('storeResultClicked')\n\n/**\n * Stores the result added to cart on the local storage.\n *\n * @public\n */\nconst storeAddToCartWire = wireExternalTaggingService('storeAddToCart')\n\n/**\n * Moves the result information from the local storage to session storage.\n *\n * @public\n */\nconst moveClickedResultToSessionWire = mapWire(\n wireExternalTaggingService('moveToSessionStorage'),\n (payload: string) => {\n return payload === 'url' ? undefined : payload\n },\n)\n\n/**\n * Triggers the add to cart tracking.\n *\n * @public\n */\nconst trackAddToCartFromSessionStorage = wireExternalTaggingService('trackAddToCart')\n\n/**\n * Clears the session id.\n *\n * @public\n */\nconst clearSessionWire = filter(\n wireSessionServiceWithoutPayload('clearSessionId'),\n ({ eventPayload: consent }) => !consent,\n)\n\n/**\n * Sets the tagging state `consent`.\n *\n * @public\n */\nexport const setConsent = wireCommit('setConsent')\n\n/**\n * Sets the tagging state `noResultsTaggingEnabled`.\n *\n * @public\n */\nexport const setNoResultsTaggingEnabledWire = wireCommit('setNoResultsTaggingEnabled')\n\n/**\n * Sets the tagging config state.\n *\n * @public\n */\nexport const setTaggingConfig = wireCommit('mergeConfig')\n\n/**\n * Tracks the tagging of the query.\n *\n * @public\n */\nexport const trackQueryWire = filter(\n wireDispatch('track'),\n ({ eventPayload, store }) =>\n ((eventPayload as TaggingRequest).params.totalHits as number) > 0 ||\n !store.state.x.tagging.noResultsTaggingEnabled,\n)\n\n/**\n * Tracks the tagging of the browse category.\n *\n * @public\n */\nexport const trackBrowseWire = filter(\n wireDispatch('track'),\n ({ eventPayload, store }) =>\n ((eventPayload as TaggingRequest).params.totalHits as number) > 0 ||\n !store.state.x.tagging.noResultsTaggingEnabled,\n)\n\n/**\n * Sets the tagging state of the query tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setQueryTaggingInfo = moduleDebounce(\n wireCommit('setQueryTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: 'UserClearedQuery',\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd',\n ],\n },\n)\n\n/**\n * Sets the tagging state of the browse tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setBrowseTaggingInfo = moduleDebounce(\n wireCommit('setBrowseTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: ['UserClickedOpenX', 'UserOpenXProgrammatically'],\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd',\n ],\n },\n)\n\n/**\n * Sets the tagging state of the query tagging info using.\n *\n * @public\n */\nexport const setQueryTaggingFromQueryPreview = createSetQueryTaggingFromQueryPreview()\n\n/**\n * Tracks the tagging of the result.\n *\n * @public\n */\nexport const trackResultClickedWire = createTrackWire('click')\n\n/**\n * Tracks the tagging of the banner.\n *\n * @public\n */\nexport const trackBannerClickedWire = createTrackWire('click')\n\n/**\n * Tracks the click on a promoted result.\n *\n * @public\n */\nexport const trackPromotedClickedWire = createTrackWire('click')\n\n/**\n * Performs a track of a result added to the cart.\n *\n * @public\n */\nexport const trackAddToCartWire = createTrackWire('add2cart')\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackDisplayClickedWire = createTrackDisplayWire('displayClick')\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackToolingDisplayClickedWire = createTrackToolingDisplayWire()\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackToolingAdd2CartWire = createTrackToolingAdd2CartWire()\n\n/**\n * Performs a track of a clicked related prompt.\n *\n * @public\n */\nexport const trackRelatedPromptToolingDisplayClickWire =\n createTrackRelatedPromptToolingDisplayClickWire()\n\n/**\n * Performs a track of a display element appearing.\n *\n * @public\n */\nexport const trackElementDisplayedWire = createTrackDisplayWire('display')\n\n/**\n * Factory helper to create a wire for the track of a taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the taggable element.\n *\n * @public\n */\nexport function createTrackWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata: { location } }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n taggingInfo.params.location = location as string\n return taggingInfo\n }),\n ({ eventPayload: { tagging }, metadata: { ignoreInModules } }) =>\n // eslint-disable-next-line ts/no-unsafe-member-access\n !!tagging?.[property] && !ignoreInModules?.includes(moduleName),\n )\n}\n\n/**\n * Performs a track of a query with no results that used related prompts or semantic queries as fallback.\n * The totalHits will be changed to -1 if related prompts or semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any related prompts or semantic queries.\n *\n * @public\n */\nexport const trackNoResultsQueryWithFallbackWire = filter(\n wireDispatch('track', ({ eventPayload, state }) => {\n const { queryTaggingInfo } = state\n const totalHits = (eventPayload as RelatedPrompt[] | SemanticQuery[]).length > 0 ? -1 : 0\n return {\n params: { ...queryTaggingInfo?.params, totalHits },\n url: queryTaggingInfo?.url ?? '',\n }\n }),\n ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0,\n)\n\n/**.\n * Debounced version of {@link trackNoResultsQueryWithFallbackWire}\n *\n * @public\n */\nexport const trackNoResultsQueryWithFallbackWireDebounced = moduleDebounce(\n trackNoResultsQueryWithFallbackWire,\n ({ state }) => state.config.queryTaggingDebounceMs,\n { cancelOn: ['QueryPreviewUnmounted', 'RelatedPromptsUnmounted', 'AiComponentUnmounted'] },\n)\n\n/**\n * Performs a track of a query with no results that used semantic queries as fallback.\n * The totalHits will be changed to -1 if semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any semantic queries.\n *\n * @public\n * @deprecated - Use {@link trackNoResultsQueryWithFallbackWire} instead.\n */\nexport const trackNoResultsQueryWithSemanticsWire = trackNoResultsQueryWithFallbackWire\n\n/**\n * Debounced version of {@link trackNoResultsQueryWithFallbackWire}\n *\n * @public\n * @deprecated - Use {@link trackNoResultsQueryWithFallbackWireDebounced} instead.\n */\nexport const trackNoResultsQueryWithSemanticsWireDebounced =\n trackNoResultsQueryWithFallbackWireDebounced\n\n/**\n * Factory helper to create a wire for the track of the display click.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the display click of the taggable element.\n *\n * @public\n */\nexport function createTrackDisplayWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n const location = metadata.location as FeatureLocation\n\n taggingInfo.params.location = location\n taggingInfo.params.displayFamily = createOrigin({\n feature: metadata.feature,\n location,\n })!\n taggingInfo.params.q = (metadata as DisplayWireMetadata).displayOriginalQuery\n\n return taggingInfo\n }),\n // eslint-disable-next-line ts/no-unsafe-member-access\n ({ eventPayload: { tagging } }) => !!tagging?.[property]?.url,\n )\n}\n\n/**\n * Update the tooling tagging params with the result information.\n *\n * @param taggingRequest - The tooling tagging request to be updated.\n * @param result - The clicked result.\n * @returns The tagging request updated.\n *\n * @internal\n */\nfunction updateToolingTaggingWithResult(\n taggingRequest: TaggingRequest,\n result: Result,\n): TaggingRequest {\n taggingRequest.params.productId = result.id\n taggingRequest.params.title = result.name!\n taggingRequest.params.url = result.url!\n\n return taggingRequest\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display click.\n *\n * @returns A new wire for the tooling display click of the taggable element.\n *\n * @public\n */\nexport function createTrackToolingDisplayWire(): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload, metadata }) => {\n const taggingInfo: TaggingRequest = metadata.toolingTagging as TaggingRequest\n const resultInfo = eventPayload as Result\n\n updateToolingTaggingWithResult(taggingInfo, resultInfo)\n\n return taggingInfo\n }),\n ({ metadata }) => !!metadata?.toolingTagging,\n )\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display add to cart.\n *\n * @returns A new wire for the tooling display add to cart of the taggable element.\n *\n * @public\n */\nexport function createTrackToolingAdd2CartWire(): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload, metadata }) => {\n const taggingInfo: TaggingRequest = metadata.toolingAdd2CartTagging as TaggingRequest\n const resultInfo = eventPayload as Result\n\n updateToolingTaggingWithResult(taggingInfo, resultInfo)\n\n return taggingInfo\n }),\n ({ metadata }) => !!metadata?.toolingAdd2CartTagging,\n )\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display click in a related prompt.\n *\n * @returns A new wire for the tooling display click of the taggable element.\n *\n * @public\n */\nexport function createTrackRelatedPromptToolingDisplayClickWire() {\n return filter(\n wireDispatch('track', ({ metadata }) => {\n const relatedPrompt = metadata.relatedPrompt as RelatedPrompt\n const taggingInfo = relatedPrompt.tagging!.toolingDisplayClickTagging as TaggingRequest\n\n taggingInfo.params.productId = 'EXPAND'\n taggingInfo.params.title = relatedPrompt.suggestionText\n taggingInfo.params.url = 'none'\n\n return taggingInfo\n }),\n ({ metadata }) => {\n const relatedPrompt = metadata.relatedPrompt as RelatedPrompt | undefined\n const isUnselected = metadata?.selectedPrompt === -1\n const taggingInfo = relatedPrompt?.tagging?.toolingDisplayClickTagging\n return isUnselected && !!taggingInfo\n },\n )\n}\n\n/**\n * Factory helper to create a wire to set the queryTagging.\n *\n * @returns A new wire for the query of a result of a queryPreview.\n *\n * @public\n */\nexport function createSetQueryTaggingFromQueryPreview(): Wire<Taggable> {\n return filter(\n wireCommit(\n 'setQueryTaggingInfo',\n ({ metadata: { queryTagging } }) => queryTagging as TaggingRequest,\n ),\n ({ metadata: { queryTagging } }) => !!queryTagging,\n )\n}\n\n/**\n * Performs a track of a query with no results that used ai carousel as fallback.\n * The query will be changed to the original query of the search in order to associate\n * the return of related results to that query, instead of track a no results query.\n *\n * @public\n */\nexport const trackAiCarouselQueryTaggingInfoWire = filter(\n wireDispatch('track', ({ eventPayload, state }) => {\n const queryTaggingInfoNoResults = (eventPayload as AiSuggestionSearchTagging).query\n\n queryTaggingInfoNoResults.params.q = state.queryTaggingInfo!.params.q\n\n return queryTaggingInfoNoResults\n }),\n ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0,\n)\n\n/**\n * Debounced version of {@link trackAiCarouselQueryTaggingInfoWire}\n *\n * @public\n */\nexport const trackAiCarouselQueryTaggingInfoDebouncedWire = moduleDebounce(\n trackAiCarouselQueryTaggingInfoWire,\n ({ state }) => state.config.queryTaggingDebounceMs,\n)\n\n/**\n * Factory helper to create a wire for the track of an ai carousel taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the ai carousel taggable element.\n *\n * @public\n */\nexport function createTrackAiCarouselTaggingWire(property: keyof Tagging): Wire<Taggable> {\n return wireDispatch('track', ({ eventPayload: { tagging }, state }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n taggingInfo.params.q = state.queryTaggingInfo!.params.q\n return taggingInfo\n })\n}\n\n/**\n * Tracks the tagging of an ai carousel result clicked.\n *\n * @public\n */\nexport const trackAiCarouselResultClickedWire = createTrackAiCarouselTaggingWire('click')\n\n/**\n * Performs a track of an ai carousel result added to the cart.\n *\n * @public\n */\nexport const trackAiCarouselAddToCartWire = createTrackAiCarouselTaggingWire('add2cart')\n\n/**\n * Wiring configuration for the {@link TaggingXModule | tagging module}.\n *\n * @internal\n */\nexport const taggingWiring = createWiring({\n ConsentProvided: {\n setConsent,\n },\n ConsentChanged: {\n clearSessionWire,\n },\n PDPIsLoaded: {\n moveClickedResultToSessionWire,\n },\n ResultURLTrackingEnabled: {\n moveClickedResultToSessionWire,\n },\n SearchTaggingChanged: {\n setQueryTaggingInfo,\n },\n SearchTaggingReceived: {\n trackQueryWire,\n },\n BrowseTaggingChanged: {\n setBrowseTaggingInfo,\n },\n BrowseTaggingReceived: {\n trackBrowseWire,\n },\n TrackableElementDisplayed: {\n trackElementDisplayedWire,\n },\n TaggingConfigProvided: {\n setTaggingConfig,\n },\n UserClickedAResult: {\n trackResultClickedWire,\n storeClickedResultWire,\n },\n UserClickedResultAddToCart: {\n trackAddToCartWire,\n trackResultClickedWire,\n storeAddToCartWire,\n },\n UserClickedPDPAddToCart: {\n trackAddToCartFromSessionStorage,\n },\n UserClickedABanner: {\n trackBannerClickedWire,\n },\n UserClickedAPromoted: {\n trackPromotedClickedWire,\n },\n UserClickedADisplayResult: {\n trackDisplayClickedWire,\n setQueryTaggingFromQueryPreview,\n },\n SemanticQueriesResponseChanged: {\n trackNoResultsQueryWithFallbackWireDebounced,\n },\n RelatedPromptsResponseChanged: {\n trackNoResultsQueryWithFallbackWireDebounced,\n },\n ModuleRegistered: {\n setNoResultsTaggingEnabledWire,\n },\n UserClickedARelatedPromptResult: {\n trackToolingDisplayClickedWire,\n },\n UserClickedARelatedPromptAdd2Cart: {\n trackToolingAdd2CartWire,\n },\n UserSelectedARelatedPrompt: {\n trackRelatedPromptToolingDisplayClickWire,\n },\n AiSuggestionsSearchTaggingChanged: {\n trackAiCarouselQueryTaggingInfoDebouncedWire,\n },\n UserClickedAnAiCarouselResult: {\n trackToolingDisplayClickedWire,\n trackAiCarouselResultClickedWire,\n storeClickedResultWire,\n },\n UserClickedAnAiCarouselAdd2Cart: {\n trackToolingAdd2CartWire,\n trackAiCarouselAddToCartWire,\n trackAiCarouselResultClickedWire,\n storeAddToCartWire,\n },\n})\n"],"names":[],"mappings":";;;;;;;;;;AAoBA;;;;AAIG;AACH,MAAM,UAAU,GAAG,SAAS;AAE5B;;AAEG;AACH,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC;AAErD;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC;AAEnD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC;AAEvD;;AAEG;AACH,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,qBAAqB,CAAC,QAAQ,CAAC;AAElG;;AAEG;AACH,MAAM,0BAA0B,GAAG,WAAW,CAAC,6BAA6B,CAAC,QAAQ,CAAC;AAEtF;;;;AAIG;AACH,MAAM,sBAAsB,GAAG,0BAA0B,CAAC,oBAAoB,CAAC;AAE/E;;;;AAIG;AACH,MAAM,kBAAkB,GAAG,0BAA0B,CAAC,gBAAgB,CAAC;AAEvE;;;;AAIG;AACH,MAAM,8BAA8B,GAAG,OAAO,CAC5C,0BAA0B,CAAC,sBAAsB,CAAC,EAClD,CAAC,OAAe,KAAI;IAClB,OAAO,OAAO,KAAK,KAAK,GAAG,SAAS,GAAG,OAAO;AAChD,CAAC,CACF;AAED;;;;AAIG;AACH,MAAM,gCAAgC,GAAG,0BAA0B,CAAC,gBAAgB,CAAC;AAErF;;;;AAIG;AACH,MAAM,gBAAgB,GAAG,MAAM,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B;AACnB,KAAA;AACF,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@empathyco/x-adapter": "8.2.0",
|
|
71
|
-
"@empathyco/x-adapter-platform": "
|
|
72
|
-
"@empathyco/x-types": "
|
|
71
|
+
"@empathyco/x-adapter-platform": "2.0.0",
|
|
72
|
+
"@empathyco/x-types": "11.0.0",
|
|
73
73
|
"@empathyco/x-utils": "1.1.0",
|
|
74
74
|
"@vue/devtools-api": "~6.6.4",
|
|
75
75
|
"@vueuse/core": "~12.8.2",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"access": "public",
|
|
118
118
|
"directory": "dist"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "806036d1d7b7e5dd5fb939259f1cdb5123aa3e7a"
|
|
121
121
|
}
|
|
@@ -3347,19 +3347,64 @@
|
|
|
3347
3347
|
"startIndex": 1,
|
|
3348
3348
|
"endIndex": 3
|
|
3349
3349
|
}
|
|
3350
|
+
}
|
|
3351
|
+
],
|
|
3352
|
+
"extendsTokenRanges": []
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
"kind": "Interface",
|
|
3356
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging:interface",
|
|
3357
|
+
"docComment": "",
|
|
3358
|
+
"excerptTokens": [
|
|
3359
|
+
{
|
|
3360
|
+
"kind": "Content",
|
|
3361
|
+
"text": "export interface PlatformAiSuggestionSearchTagging "
|
|
3362
|
+
}
|
|
3363
|
+
],
|
|
3364
|
+
"fileUrlPath": "dist/types/types/models/ai/suggestion-search.model.d.ts",
|
|
3365
|
+
"releaseTag": "Public",
|
|
3366
|
+
"name": "PlatformAiSuggestionSearchTagging",
|
|
3367
|
+
"preserveMemberOrder": false,
|
|
3368
|
+
"members": [
|
|
3369
|
+
{
|
|
3370
|
+
"kind": "PropertySignature",
|
|
3371
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#add2cart:member",
|
|
3372
|
+
"docComment": "",
|
|
3373
|
+
"excerptTokens": [
|
|
3374
|
+
{
|
|
3375
|
+
"kind": "Content",
|
|
3376
|
+
"text": "add2cart: "
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
"kind": "Content",
|
|
3380
|
+
"text": "string"
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
"kind": "Content",
|
|
3384
|
+
"text": ";"
|
|
3385
|
+
}
|
|
3386
|
+
],
|
|
3387
|
+
"isReadonly": false,
|
|
3388
|
+
"isOptional": false,
|
|
3389
|
+
"releaseTag": "Public",
|
|
3390
|
+
"name": "add2cart",
|
|
3391
|
+
"propertyTypeTokenRange": {
|
|
3392
|
+
"startIndex": 1,
|
|
3393
|
+
"endIndex": 2
|
|
3394
|
+
}
|
|
3350
3395
|
},
|
|
3351
3396
|
{
|
|
3352
3397
|
"kind": "PropertySignature",
|
|
3353
|
-
"canonicalReference": "@empathyco/x-adapter-platform!
|
|
3398
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#checkout:member",
|
|
3354
3399
|
"docComment": "",
|
|
3355
3400
|
"excerptTokens": [
|
|
3356
3401
|
{
|
|
3357
3402
|
"kind": "Content",
|
|
3358
|
-
"text": "
|
|
3403
|
+
"text": "checkout: "
|
|
3359
3404
|
},
|
|
3360
3405
|
{
|
|
3361
3406
|
"kind": "Content",
|
|
3362
|
-
"text": "
|
|
3407
|
+
"text": "string"
|
|
3363
3408
|
},
|
|
3364
3409
|
{
|
|
3365
3410
|
"kind": "Content",
|
|
@@ -3367,9 +3412,117 @@
|
|
|
3367
3412
|
}
|
|
3368
3413
|
],
|
|
3369
3414
|
"isReadonly": false,
|
|
3370
|
-
"isOptional":
|
|
3415
|
+
"isOptional": false,
|
|
3371
3416
|
"releaseTag": "Public",
|
|
3372
|
-
"name": "
|
|
3417
|
+
"name": "checkout",
|
|
3418
|
+
"propertyTypeTokenRange": {
|
|
3419
|
+
"startIndex": 1,
|
|
3420
|
+
"endIndex": 2
|
|
3421
|
+
}
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"kind": "PropertySignature",
|
|
3425
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#click:member",
|
|
3426
|
+
"docComment": "",
|
|
3427
|
+
"excerptTokens": [
|
|
3428
|
+
{
|
|
3429
|
+
"kind": "Content",
|
|
3430
|
+
"text": "click: "
|
|
3431
|
+
},
|
|
3432
|
+
{
|
|
3433
|
+
"kind": "Content",
|
|
3434
|
+
"text": "string"
|
|
3435
|
+
},
|
|
3436
|
+
{
|
|
3437
|
+
"kind": "Content",
|
|
3438
|
+
"text": ";"
|
|
3439
|
+
}
|
|
3440
|
+
],
|
|
3441
|
+
"isReadonly": false,
|
|
3442
|
+
"isOptional": false,
|
|
3443
|
+
"releaseTag": "Public",
|
|
3444
|
+
"name": "click",
|
|
3445
|
+
"propertyTypeTokenRange": {
|
|
3446
|
+
"startIndex": 1,
|
|
3447
|
+
"endIndex": 2
|
|
3448
|
+
}
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"kind": "PropertySignature",
|
|
3452
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#display:member",
|
|
3453
|
+
"docComment": "",
|
|
3454
|
+
"excerptTokens": [
|
|
3455
|
+
{
|
|
3456
|
+
"kind": "Content",
|
|
3457
|
+
"text": "display: "
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"kind": "Content",
|
|
3461
|
+
"text": "string"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"kind": "Content",
|
|
3465
|
+
"text": ";"
|
|
3466
|
+
}
|
|
3467
|
+
],
|
|
3468
|
+
"isReadonly": false,
|
|
3469
|
+
"isOptional": false,
|
|
3470
|
+
"releaseTag": "Public",
|
|
3471
|
+
"name": "display",
|
|
3472
|
+
"propertyTypeTokenRange": {
|
|
3473
|
+
"startIndex": 1,
|
|
3474
|
+
"endIndex": 2
|
|
3475
|
+
}
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"kind": "PropertySignature",
|
|
3479
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#displayClick:member",
|
|
3480
|
+
"docComment": "",
|
|
3481
|
+
"excerptTokens": [
|
|
3482
|
+
{
|
|
3483
|
+
"kind": "Content",
|
|
3484
|
+
"text": "displayClick: "
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"kind": "Content",
|
|
3488
|
+
"text": "string"
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"kind": "Content",
|
|
3492
|
+
"text": ";"
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3495
|
+
"isReadonly": false,
|
|
3496
|
+
"isOptional": false,
|
|
3497
|
+
"releaseTag": "Public",
|
|
3498
|
+
"name": "displayClick",
|
|
3499
|
+
"propertyTypeTokenRange": {
|
|
3500
|
+
"startIndex": 1,
|
|
3501
|
+
"endIndex": 2
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
"kind": "PropertySignature",
|
|
3506
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#query:member",
|
|
3507
|
+
"docComment": "",
|
|
3508
|
+
"excerptTokens": [
|
|
3509
|
+
{
|
|
3510
|
+
"kind": "Content",
|
|
3511
|
+
"text": "query: "
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
"kind": "Content",
|
|
3515
|
+
"text": "string"
|
|
3516
|
+
},
|
|
3517
|
+
{
|
|
3518
|
+
"kind": "Content",
|
|
3519
|
+
"text": ";"
|
|
3520
|
+
}
|
|
3521
|
+
],
|
|
3522
|
+
"isReadonly": false,
|
|
3523
|
+
"isOptional": false,
|
|
3524
|
+
"releaseTag": "Public",
|
|
3525
|
+
"name": "query",
|
|
3373
3526
|
"propertyTypeTokenRange": {
|
|
3374
3527
|
"startIndex": 1,
|
|
3375
3528
|
"endIndex": 2
|
|
@@ -3595,6 +3748,34 @@
|
|
|
3595
3748
|
"startIndex": 1,
|
|
3596
3749
|
"endIndex": 3
|
|
3597
3750
|
}
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
"kind": "PropertySignature",
|
|
3754
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionsSearchResponse#tagging:member",
|
|
3755
|
+
"docComment": "",
|
|
3756
|
+
"excerptTokens": [
|
|
3757
|
+
{
|
|
3758
|
+
"kind": "Content",
|
|
3759
|
+
"text": "tagging: "
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"kind": "Reference",
|
|
3763
|
+
"text": "PlatformAiSuggestionSearchTagging",
|
|
3764
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging:interface"
|
|
3765
|
+
},
|
|
3766
|
+
{
|
|
3767
|
+
"kind": "Content",
|
|
3768
|
+
"text": ";"
|
|
3769
|
+
}
|
|
3770
|
+
],
|
|
3771
|
+
"isReadonly": false,
|
|
3772
|
+
"isOptional": false,
|
|
3773
|
+
"releaseTag": "Public",
|
|
3774
|
+
"name": "tagging",
|
|
3775
|
+
"propertyTypeTokenRange": {
|
|
3776
|
+
"startIndex": 1,
|
|
3777
|
+
"endIndex": 2
|
|
3778
|
+
}
|
|
3598
3779
|
}
|
|
3599
3780
|
],
|
|
3600
3781
|
"extendsTokenRanges": []
|