@empathyco/x-components 10.0.0 → 10.0.1
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 +7 -0
- package/docs/API-reference/api/x-components.tagging.md +9 -0
- package/docs/API-reference/api/x-components.taggingconfig.md +19 -0
- package/docs/API-reference/api/x-components.taggingconfig.noresultsfallbackmodules.md +13 -0
- package/docs/API-reference/components/tagging/x-components.tagging.md +8 -7
- package/js/x-modules/tagging/components/tagging.vue.js +8 -0
- package/js/x-modules/tagging/components/tagging.vue.js.map +1 -1
- package/js/x-modules/tagging/store/module.js +2 -1
- package/js/x-modules/tagging/store/module.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +3 -1
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +49 -4
- package/report/x-components.api.md +10 -0
- package/types/src/x-modules/tagging/components/tagging.vue.d.ts +16 -0
- package/types/src/x-modules/tagging/components/tagging.vue.d.ts.map +1 -1
- package/types/src/x-modules/tagging/config.types.d.ts +5 -0
- package/types/src/x-modules/tagging/config.types.d.ts.map +1 -1
- package/types/src/x-modules/tagging/store/module.d.ts.map +1 -1
- package/types/src/x-modules/tagging/wiring.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.0.1](https://github.com/empathyco/x/compare/@empathyco/x-components@10.0.0...@empathyco/x-components@10.0.1) (2026-10-15)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix no-results fallback tagging (#2187)
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [10.0.0](https://github.com/empathyco/x/compare/@empathyco/x-components@9.4.0...@empathyco/x-components@10.0.0) (2026-10-13)
|
|
7
14
|
|
|
8
15
|
### ⚠ BREAKING CHANGES
|
|
@@ -27,6 +27,10 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: null;
|
|
29
29
|
};
|
|
30
|
+
noResultsFallbackModules: {
|
|
31
|
+
type: PropType<string[]>;
|
|
32
|
+
default: () => string[];
|
|
33
|
+
};
|
|
30
34
|
}>, () => void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
35
|
storageTTLMs: {
|
|
32
36
|
type: NumberConstructor;
|
|
@@ -45,10 +49,15 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
45
49
|
type: BooleanConstructor;
|
|
46
50
|
default: null;
|
|
47
51
|
};
|
|
52
|
+
noResultsFallbackModules: {
|
|
53
|
+
type: PropType<string[]>;
|
|
54
|
+
default: () => string[];
|
|
55
|
+
};
|
|
48
56
|
}>> & Readonly<{}>, {
|
|
49
57
|
storageTTLMs: number;
|
|
50
58
|
storageKey: string;
|
|
51
59
|
queryTaggingDebounceMs: number;
|
|
52
60
|
consent: boolean;
|
|
61
|
+
noResultsFallbackModules: string[];
|
|
53
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
|
|
54
63
|
```
|
|
@@ -37,6 +37,25 @@ Description
|
|
|
37
37
|
</th></tr></thead>
|
|
38
38
|
<tbody><tr><td>
|
|
39
39
|
|
|
40
|
+
[noResultsFallbackModules](./x-components.taggingconfig.noresultsfallbackmodules.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
string\[\]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
Modules to enable the tagging of the fallback solution to no results page.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
40
59
|
[queryTaggingDebounceMs](./x-components.taggingconfig.querytaggingdebouncems.md)
|
|
41
60
|
|
|
42
61
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [TaggingConfig](./x-components.taggingconfig.md) > [noResultsFallbackModules](./x-components.taggingconfig.noresultsfallbackmodules.md)
|
|
4
|
+
|
|
5
|
+
## TaggingConfig.noResultsFallbackModules property
|
|
6
|
+
|
|
7
|
+
Modules to enable the tagging of the fallback solution to no results page.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
noResultsFallbackModules: string[];
|
|
13
|
+
```
|
|
@@ -12,13 +12,14 @@ It allows you to activate or deactivate the session id management through the `c
|
|
|
12
12
|
|
|
13
13
|
## Props
|
|
14
14
|
|
|
15
|
-
| Name
|
|
16
|
-
|
|
|
17
|
-
| <code>storageTTLMs</code>
|
|
18
|
-
| <code>storageKey</code>
|
|
19
|
-
| <code>sessionTTLMs</code>
|
|
20
|
-
| <code>queryTaggingDebounceMs</code>
|
|
21
|
-
| <code>consent</code>
|
|
15
|
+
| Name | Description | Type | Default |
|
|
16
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ------------------------- |
|
|
17
|
+
| <code>storageTTLMs</code> | The TTL in milliseconds for storing the result info. | <code>number</code> | <code>30000</code> |
|
|
18
|
+
| <code>storageKey</code> | The Object key of the @empathyco/x-types#Result clicked or added to the cart by the user<br />that will be used as id for the storage.<br />By default, the Result url will be used. | <code>string</code> | <code>'url'</code> |
|
|
19
|
+
| <code>sessionTTLMs</code> | The session TTL in milliseconds. | <code>number</code> | <code></code> |
|
|
20
|
+
| <code>queryTaggingDebounceMs</code> | The debounce time in milliseconds to track the query. | <code>number</code> | <code>2000</code> |
|
|
21
|
+
| <code>consent</code> | The consent to be emitted. | <code>boolean</code> | <code>null</code> |
|
|
22
|
+
| <code>noResultsFallbackModules</code> | Modules used into no results fallback. | <code>string[]</code> | <code>() => ['ai']</code> |
|
|
22
23
|
|
|
23
24
|
## Events
|
|
24
25
|
|
|
@@ -47,6 +47,13 @@ var _sfc_main = defineComponent({
|
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: null,
|
|
49
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* Modules used into no results fallback.
|
|
52
|
+
*/
|
|
53
|
+
noResultsFallbackModules: {
|
|
54
|
+
type: Array,
|
|
55
|
+
default: () => ['ai'],
|
|
56
|
+
},
|
|
50
57
|
},
|
|
51
58
|
setup(props) {
|
|
52
59
|
const xBus = useXBus();
|
|
@@ -73,6 +80,7 @@ var _sfc_main = defineComponent({
|
|
|
73
80
|
sessionTTLMs: props.sessionTTLMs,
|
|
74
81
|
storageTTLMs: props.storageTTLMs,
|
|
75
82
|
storageKey: props.storageKey,
|
|
83
|
+
noResultsFallbackModules: props.noResultsFallbackModules,
|
|
76
84
|
};
|
|
77
85
|
});
|
|
78
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagging.vue.js","sources":["../../../../../src/x-modules/tagging/components/tagging.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { SnippetConfig } from '../../../x-installer/api/api.types'\nimport type { TaggingConfig } from '../config.types'\nimport { computed, defineComponent, inject, onMounted, watch } from 'vue'\nimport { useXBus } from '../../../composables/use-x-bus'\nimport { taggingXModule } from '../x-module'\n/**\n * This component enables and manages the sending of information to the\n * [Empathy Tagging API](https://docs.empathy.co/develop-empathy-platform/api-reference/tagging-api.html).\n * It allows you to activate or deactivate the session id management through the `consent` prop.\n *\n * @public\n */\nexport default defineComponent({\n name: 'Tagging',\n xModule: taggingXModule.name,\n props: {\n /**\n * The TTL in milliseconds for storing the result info.\n */\n storageTTLMs: {\n type: Number,\n default: 30000,\n },\n /**\n * The Object key of the {@link @empathyco/x-types#Result} clicked or added to the cart by the user\n * that will be used as id for the storage.\n * By default, the Result url will be used.\n */\n storageKey: {\n type: String,\n default: 'url',\n },\n /**\n * The session TTL in milliseconds.\n */\n sessionTTLMs: Number,\n /**\n * The debounce time in milliseconds to track the query.\n */\n queryTaggingDebounceMs: {\n type: Number,\n default: 2000,\n },\n /**\n * The consent to be emitted.\n */\n consent: {\n type: Boolean,\n default: null,\n },\n },\n setup(props) {\n const xBus = useXBus()\n\n /**\n * It injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n */\n const snippetConfig = inject<SnippetConfig | undefined>('snippetConfig')\n\n /**\n * The active consent, selected from the `consent` prop and the `snippetConfig.consent`\n * property. False by default.\n *\n * @remarks If the consent is undefined in the prop and in the snippetConfig, it will return\n * false.\n *\n * @returns A boolean that represents if the consent is accepted or not.\n */\n const activeConsent = computed(() => props.consent ?? snippetConfig?.consent ?? false)\n\n /**\n * The tagging config to be emitted.\n */\n const taggingConfig = computed<TaggingConfig>(() => {\n return {\n queryTaggingDebounceMs: props.queryTaggingDebounceMs,\n sessionTTLMs: props.sessionTTLMs as number,\n storageTTLMs: props.storageTTLMs,\n storageKey: props.storageKey,\n }\n })\n\n /**\n * Emits the {@link TaggingXEvents.PDPIsLoaded} XEvent if the snippet config contains\n * a product id.\n */\n onMounted(() => {\n if (snippetConfig?.productId) {\n xBus.emit('PDPIsLoaded', snippetConfig.productId)\n }\n })\n\n /**\n * Emmits the consent when it changes.\n */\n watch(activeConsent, () => xBus.emit('ConsentProvided', activeConsent.value), {\n immediate: true,\n })\n\n /**\n * Emmits the tagging config when it changes.\n */\n watch(taggingConfig, () => xBus.emit('TaggingConfigProvided', taggingConfig.value), {\n immediate: true,\n })\n\n return () => {}\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`ConsentProvided`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`TaggingConfigProvided`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n\n## See it in action\n\nThis component manages the tagging of the API to track the different features. This component\ndoesn't render elements to the DOM.\n\n```vue\n<template>\n <Tagging />\n</template>\n\n<script setup>\nimport { Tagging } from '@empathyco/x-components/tagging'\n</script>\n```\n\n### Play with props\n\nIn this example, the `Tagging` component will emit `ConsentProvided` with payload false by default\nif the consent is not provided, the `TaggingConfigProvided` event will be emitted only if the props\n`queryTaggingDebounceMs`, `sessionDurationMs`, `storageTTLMs` or `storageKey` are defined.\n\nEvery time the user clicks a result or adds a result to the cart, the information for the product\nwill be stored on the browser during 30 seconds which is the default value for the prop\n`storageTTLMs`. To distinguish the storage information for the different results the product url\nwill be used since `storageKey` default value is 'url'.\n\n```vue\n<template>\n <Tagging :consent=\"true\" :queryTaggingDebounceMs=\"300\" :sessionDurationMs=\"30000\" />\n</template>\n\n<script setup>\nimport { Tagging } from '@empathyco/x-components/tagging'\n</script>\n```\n\nIn this example, the clicked or added to cart result information will be stored on the browser\nduring 60 seconds and the product id will be used as storage key\n\n```vue\n<template>\n <Tagging :storageTTLMs=\"60000\" :storageKey=\"'id'\" />\n</template>\n\n<script setup>\nimport { Tagging } from '@empathyco/x-components/tagging'\n</script>\n```\n\n### Play with events\n\nThe `Tagging` will emit the `ConsentProvided` when the component is loaded and the consent is set by\nthe prop or getting the value from the snippet config.\n\nThe `Tagging` will emit the `TaggingConfigProvided` when the component is loaded with the new\n[`TaggingConfig`](./../../api/x-components.taggingconfig.md) using the prop values.\n</docs>\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"tagging.vue.js","sources":["../../../../../src/x-modules/tagging/components/tagging.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { PropType } from 'vue'\nimport type { SnippetConfig } from '../../../x-installer/api/api.types'\nimport type { TaggingConfig } from '../config.types'\nimport { computed, defineComponent, inject, onMounted, watch } from 'vue'\nimport { useXBus } from '../../../composables/use-x-bus'\nimport { taggingXModule } from '../x-module'\n/**\n * This component enables and manages the sending of information to the\n * [Empathy Tagging API](https://docs.empathy.co/develop-empathy-platform/api-reference/tagging-api.html).\n * It allows you to activate or deactivate the session id management through the `consent` prop.\n *\n * @public\n */\nexport default defineComponent({\n name: 'Tagging',\n xModule: taggingXModule.name,\n props: {\n /**\n * The TTL in milliseconds for storing the result info.\n */\n storageTTLMs: {\n type: Number,\n default: 30000,\n },\n /**\n * The Object key of the {@link @empathyco/x-types#Result} clicked or added to the cart by the user\n * that will be used as id for the storage.\n * By default, the Result url will be used.\n */\n storageKey: {\n type: String,\n default: 'url',\n },\n /**\n * The session TTL in milliseconds.\n */\n sessionTTLMs: Number,\n /**\n * The debounce time in milliseconds to track the query.\n */\n queryTaggingDebounceMs: {\n type: Number,\n default: 2000,\n },\n /**\n * The consent to be emitted.\n */\n consent: {\n type: Boolean,\n default: null,\n },\n /**\n * Modules used into no results fallback.\n */\n noResultsFallbackModules: {\n type: Array as PropType<string[]>,\n default: () => ['ai'],\n },\n },\n setup(props) {\n const xBus = useXBus()\n\n /**\n * It injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n */\n const snippetConfig = inject<SnippetConfig | undefined>('snippetConfig')\n\n /**\n * The active consent, selected from the `consent` prop and the `snippetConfig.consent`\n * property. False by default.\n *\n * @remarks If the consent is undefined in the prop and in the snippetConfig, it will return\n * false.\n *\n * @returns A boolean that represents if the consent is accepted or not.\n */\n const activeConsent = computed(() => props.consent ?? snippetConfig?.consent ?? false)\n\n /**\n * The tagging config to be emitted.\n */\n const taggingConfig = computed<TaggingConfig>(() => {\n return {\n queryTaggingDebounceMs: props.queryTaggingDebounceMs,\n sessionTTLMs: props.sessionTTLMs as number,\n storageTTLMs: props.storageTTLMs,\n storageKey: props.storageKey,\n noResultsFallbackModules: props.noResultsFallbackModules,\n }\n })\n\n /**\n * Emits the {@link TaggingXEvents.PDPIsLoaded} XEvent if the snippet config contains\n * a product id.\n */\n onMounted(() => {\n if (snippetConfig?.productId) {\n xBus.emit('PDPIsLoaded', snippetConfig.productId)\n }\n })\n\n /**\n * Emmits the consent when it changes.\n */\n watch(activeConsent, () => xBus.emit('ConsentProvided', activeConsent.value), {\n immediate: true,\n })\n\n /**\n * Emmits the tagging config when it changes.\n */\n watch(taggingConfig, () => xBus.emit('TaggingConfigProvided', taggingConfig.value), {\n immediate: true,\n })\n\n return () => {}\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`ConsentProvided`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`TaggingConfigProvided`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n\n## See it in action\n\nThis component manages the tagging of the API to track the different features. This component\ndoesn't render elements to the DOM.\n\n```vue\n<template>\n <Tagging />\n</template>\n\n<script setup>\nimport { Tagging } from '@empathyco/x-components/tagging'\n</script>\n```\n\n### Play with props\n\nIn this example, the `Tagging` component will emit `ConsentProvided` with payload false by default\nif the consent is not provided, the `TaggingConfigProvided` event will be emitted only if the props\n`queryTaggingDebounceMs`, `sessionDurationMs`, `storageTTLMs` or `storageKey` are defined.\n\nEvery time the user clicks a result or adds a result to the cart, the information for the product\nwill be stored on the browser during 30 seconds which is the default value for the prop\n`storageTTLMs`. To distinguish the storage information for the different results the product url\nwill be used since `storageKey` default value is 'url'.\n\n```vue\n<template>\n <Tagging :consent=\"true\" :queryTaggingDebounceMs=\"300\" :sessionDurationMs=\"30000\" />\n</template>\n\n<script setup>\nimport { Tagging } from '@empathyco/x-components/tagging'\n</script>\n```\n\nIn this example, the clicked or added to cart result information will be stored on the browser\nduring 60 seconds and the product id will be used as storage key\n\n```vue\n<template>\n <Tagging :storageTTLMs=\"60000\" :storageKey=\"'id'\" />\n</template>\n\n<script setup>\nimport { Tagging } from '@empathyco/x-components/tagging'\n</script>\n```\n\n### Play with events\n\nThe `Tagging` will emit the `ConsentProvided` when the component is loaded and the consent is set by\nthe prop or getting the value from the snippet config.\n\nThe `Tagging` will emit the `TaggingConfigProvided` when the component is loaded with the new\n[`TaggingConfig`](./../../api/x-components.taggingconfig.md) using the prop values.\n</docs>\n"],"names":[],"mappings":";;;;AAOA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,cAAc,CAAC,IAAI;AAC5B,IAAA,KAAK,EAAE;AACL;;AAEE;AACF,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;AAEE;AACF,QAAA,YAAY,EAAE,MAAM;AACpB;;AAEE;AACF,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;AACD;;AAEE;AACF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;AACD;;AAEE;AACF,QAAA,wBAAwB,EAAE;AACxB,YAAA,IAAI,EAAE,KAA2B;AACjC,YAAA,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC;AACtB,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,IAAG,GAAI,OAAO,EAAC;AAErB;;AAEE;AACF,QAAA,MAAM,aAAY,GAAI,MAAM,CAA4B,eAAe,CAAA;AAEvE;;;;;;;;AAQE;AACF,QAAA,MAAM,aAAY,GAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,WAAW,aAAa,EAAE,OAAM,IAAK,KAAK,CAAA;AAErF;;AAEE;AACF,QAAA,MAAM,gBAAgB,QAAQ,CAAgB,MAAI;YAChD,OAAO;gBACL,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;gBACpD,YAAY,EAAE,KAAK,CAAC,YAAsB;gBAC1C,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;aAC1D;AACF,QAAA,CAAC,CAAA;AAED;;;AAGE;QACF,SAAS,CAAC,MAAI;AACZ,YAAA,IAAI,aAAa,EAAE,SAAS,EAAE;gBAC5B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,SAAS,CAAA;YAClD;AACF,QAAA,CAAC,CAAA;AAED;;AAEE;AACF,QAAA,KAAK,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;AAC5E,YAAA,SAAS,EAAE,IAAI;AAChB,SAAA,CAAA;AAED;;AAEE;AACF,QAAA,KAAK,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;AAClF,YAAA,SAAS,EAAE,IAAI;AAChB,SAAA,CAAA;AAED,QAAA,OAAO,MAAI,EAAG,CAAA;IAChB,CAAC;AACF,CAAA,CAAA;;;;"}
|
|
@@ -13,6 +13,7 @@ const taggingXStoreModule = {
|
|
|
13
13
|
queryTaggingDebounceMs: 2000,
|
|
14
14
|
storageKey: null,
|
|
15
15
|
storageTTLMs: null,
|
|
16
|
+
noResultsFallbackModules: ['ai'],
|
|
16
17
|
},
|
|
17
18
|
consent: null,
|
|
18
19
|
noResultsTaggingEnabled: false,
|
|
@@ -35,7 +36,7 @@ const taggingXStoreModule = {
|
|
|
35
36
|
state.browseTaggingInfo = browseTaggingInfo;
|
|
36
37
|
},
|
|
37
38
|
setNoResultsTaggingEnabled(state, module) {
|
|
38
|
-
if (module
|
|
39
|
+
if (state.config.noResultsFallbackModules.includes(module)) {
|
|
39
40
|
state.noResultsTaggingEnabled = true;
|
|
40
41
|
}
|
|
41
42
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/tagging/store/module.ts"],"sourcesContent":["import type { TaggingRequest } from '@empathyco/x-types'\nimport type { TaggingXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { track } from './actions/track.action'\n\n/**\n * {@link XStoreModule} For the tagging module.\n *\n * @internal\n */\nexport const taggingXStoreModule: TaggingXStoreModule = {\n state: () => ({\n config: {\n sessionTTLMs: 30 * 60 * 1000,\n queryTaggingDebounceMs: 2000,\n storageKey: null,\n storageTTLMs: null,\n },\n consent: null,\n noResultsTaggingEnabled: false,\n queryTaggingInfo: null,\n toolingTaggingInfo: {\n toolingDisplayClick: null,\n toolingDisplayAdd2Cart: null,\n },\n browseTaggingInfo: null,\n }),\n getters: {},\n mutations: {\n setConsent(state, consent) {\n state.consent = consent\n },\n setQueryTaggingInfo(state, queryTaggingInfo: TaggingRequest) {\n state.queryTaggingInfo = queryTaggingInfo\n },\n setBrowseTaggingInfo(state, browseTaggingInfo: TaggingRequest) {\n state.browseTaggingInfo = browseTaggingInfo\n },\n setNoResultsTaggingEnabled(state, module) {\n if (module
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/tagging/store/module.ts"],"sourcesContent":["import type { TaggingRequest } from '@empathyco/x-types'\nimport type { TaggingXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { track } from './actions/track.action'\n\n/**\n * {@link XStoreModule} For the tagging module.\n *\n * @internal\n */\nexport const taggingXStoreModule: TaggingXStoreModule = {\n state: () => ({\n config: {\n sessionTTLMs: 30 * 60 * 1000,\n queryTaggingDebounceMs: 2000,\n storageKey: null,\n storageTTLMs: null,\n noResultsFallbackModules: ['ai'],\n },\n consent: null,\n noResultsTaggingEnabled: false,\n queryTaggingInfo: null,\n toolingTaggingInfo: {\n toolingDisplayClick: null,\n toolingDisplayAdd2Cart: null,\n },\n browseTaggingInfo: null,\n }),\n getters: {},\n mutations: {\n setConsent(state, consent) {\n state.consent = consent\n },\n setQueryTaggingInfo(state, queryTaggingInfo: TaggingRequest) {\n state.queryTaggingInfo = queryTaggingInfo\n },\n setBrowseTaggingInfo(state, browseTaggingInfo: TaggingRequest) {\n state.browseTaggingInfo = browseTaggingInfo\n },\n setNoResultsTaggingEnabled(state, module) {\n if (state.config.noResultsFallbackModules.includes(module)) {\n state.noResultsTaggingEnabled = true\n }\n },\n setConfig,\n mergeConfig,\n },\n actions: {\n track,\n },\n}\n"],"names":[],"mappings":";;;AAKA;;;;AAIG;AACI,MAAM,mBAAmB,GAAwB;AACtD,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE;AACN,YAAA,YAAY,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;AAC5B,YAAA,sBAAsB,EAAE,IAAI;AAC5B,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,YAAY,EAAE,IAAI;YAClB,wBAAwB,EAAE,CAAC,IAAI,CAAC;AACjC,SAAA;AACD,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,uBAAuB,EAAE,KAAK;AAC9B,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,kBAAkB,EAAE;AAClB,YAAA,mBAAmB,EAAE,IAAI;AACzB,YAAA,sBAAsB,EAAE,IAAI;AAC7B,SAAA;AACD,QAAA,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACF,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,SAAS,EAAE;QACT,UAAU,CAAC,KAAK,EAAE,OAAO,EAAA;AACvB,YAAA,KAAK,CAAC,OAAO,GAAG,OAAO;QACzB,CAAC;QACD,mBAAmB,CAAC,KAAK,EAAE,gBAAgC,EAAA;AACzD,YAAA,KAAK,CAAC,gBAAgB,GAAG,gBAAgB;QAC3C,CAAC;QACD,oBAAoB,CAAC,KAAK,EAAE,iBAAiC,EAAA;AAC3D,YAAA,KAAK,CAAC,iBAAiB,GAAG,iBAAiB;QAC7C,CAAC;QACD,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAA;YACtC,IAAI,KAAK,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC1D,gBAAA,KAAK,CAAC,uBAAuB,GAAG,IAAI;YACtC;QACF,CAAC;QACD,SAAS;QACT,WAAW;AACZ,KAAA;AACD,IAAA,OAAO,EAAE;QACP,KAAK;AACN,KAAA;;;;;"}
|
|
@@ -225,7 +225,9 @@ const trackNoResultsQueryWithFallbackWire = filter(wireDispatch('track', ({ even
|
|
|
225
225
|
params: { ...queryTaggingInfo?.params, totalHits },
|
|
226
226
|
url: queryTaggingInfo?.url ?? '',
|
|
227
227
|
};
|
|
228
|
-
}), ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0
|
|
228
|
+
}), ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0 &&
|
|
229
|
+
(store.state.x.tagging.config.noResultsFallbackModules.includes('semanticQueries') ||
|
|
230
|
+
store.state.x.tagging.config.noResultsFallbackModules.includes('relatedPrompts')));
|
|
229
231
|
/**.
|
|
230
232
|
* Debounced version of {@link trackNoResultsQueryWithFallbackWire}
|
|
231
233
|
*
|
|
@@ -1 +1 @@
|
|
|
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,CAC7B,gCAAgC,CAAC,gBAAgB,CAAC,EAClD,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CACxC;AAED;;;;AAIG;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AACD,IAAA,oBAAoB,EAAE;QACpB,oBAAoB;AACrB,KAAA;AACD,IAAA,qBAAqB,EAAE;QACrB,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,iCAAiC,EAAE;QACjC,4CAA4C;AAC7C,KAAA;AACD,IAAA,6BAA6B,EAAE;QAC7B,8BAA8B;QAC9B,gCAAgC;QAChC,sBAAsB;AACvB,KAAA;AACD,IAAA,+BAA+B,EAAE;QAC/B,wBAAwB;QACxB,4BAA4B;QAC5B,gCAAgC;QAChC,kBAAkB;AACnB,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 }) =>\n Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0 &&\n (store.state.x.tagging.config.noResultsFallbackModules.includes('semanticQueries') ||\n store.state.x.tagging.config.noResultsFallbackModules.includes('relatedPrompts')),\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,O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ACD,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,iCAAiC,EAAE;QACjC,4CAA4C;AAC7C,KAAA;AACD,IAAA,6BAA6B,EAAE;QAC7B,8BAA8B;QAC9B,gCAAgC;QAChC,sBAAsB;AACvB,KAAA;AACD,IAAA,+BAA+B,EAAE;QAC/B,wBAAwB;QACxB,4BAA4B;QAC5B,gCAAgC;QAChC,kBAAkB;AACnB,KAAA;AACF,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"access": "public",
|
|
118
118
|
"directory": "dist"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "785b96bc42f079143dfb9fb5aec4db7b2cd58be6"
|
|
121
121
|
}
|
|
@@ -84181,7 +84181,16 @@
|
|
|
84181
84181
|
},
|
|
84182
84182
|
{
|
|
84183
84183
|
"kind": "Content",
|
|
84184
|
-
"text": ";\n default: null;\n };\n
|
|
84184
|
+
"text": ";\n default: null;\n };\n noResultsFallbackModules: {\n type: "
|
|
84185
|
+
},
|
|
84186
|
+
{
|
|
84187
|
+
"kind": "Reference",
|
|
84188
|
+
"text": "PropType",
|
|
84189
|
+
"canonicalReference": "@vue/runtime-core!PropType:type"
|
|
84190
|
+
},
|
|
84191
|
+
{
|
|
84192
|
+
"kind": "Content",
|
|
84193
|
+
"text": "<string[]>;\n default: () => string[];\n };\n}>, () => void, {}, {}, {}, import(\"vue\")."
|
|
84185
84194
|
},
|
|
84186
84195
|
{
|
|
84187
84196
|
"kind": "Reference",
|
|
@@ -84271,7 +84280,16 @@
|
|
|
84271
84280
|
},
|
|
84272
84281
|
{
|
|
84273
84282
|
"kind": "Content",
|
|
84274
|
-
"text": ";\n default: null;\n };\n
|
|
84283
|
+
"text": ";\n default: null;\n };\n noResultsFallbackModules: {\n type: "
|
|
84284
|
+
},
|
|
84285
|
+
{
|
|
84286
|
+
"kind": "Reference",
|
|
84287
|
+
"text": "PropType",
|
|
84288
|
+
"canonicalReference": "@vue/runtime-core!PropType:type"
|
|
84289
|
+
},
|
|
84290
|
+
{
|
|
84291
|
+
"kind": "Content",
|
|
84292
|
+
"text": "<string[]>;\n default: () => string[];\n };\n}>> & "
|
|
84275
84293
|
},
|
|
84276
84294
|
{
|
|
84277
84295
|
"kind": "Reference",
|
|
@@ -84280,7 +84298,7 @@
|
|
|
84280
84298
|
},
|
|
84281
84299
|
{
|
|
84282
84300
|
"kind": "Content",
|
|
84283
|
-
"text": "<{}>, {\n storageTTLMs: number;\n storageKey: string;\n queryTaggingDebounceMs: number;\n consent: boolean;\n}, {}, {}, {}, string, import(\"vue\")."
|
|
84301
|
+
"text": "<{}>, {\n storageTTLMs: number;\n storageKey: string;\n queryTaggingDebounceMs: number;\n consent: boolean;\n noResultsFallbackModules: string[];\n}, {}, {}, {}, string, import(\"vue\")."
|
|
84284
84302
|
},
|
|
84285
84303
|
{
|
|
84286
84304
|
"kind": "Reference",
|
|
@@ -84298,7 +84316,7 @@
|
|
|
84298
84316
|
"name": "Tagging",
|
|
84299
84317
|
"variableTypeTokenRange": {
|
|
84300
84318
|
"startIndex": 1,
|
|
84301
|
-
"endIndex":
|
|
84319
|
+
"endIndex": 44
|
|
84302
84320
|
}
|
|
84303
84321
|
},
|
|
84304
84322
|
{
|
|
@@ -84379,6 +84397,33 @@
|
|
|
84379
84397
|
"name": "TaggingConfig",
|
|
84380
84398
|
"preserveMemberOrder": false,
|
|
84381
84399
|
"members": [
|
|
84400
|
+
{
|
|
84401
|
+
"kind": "PropertySignature",
|
|
84402
|
+
"canonicalReference": "@empathyco/x-components!TaggingConfig#noResultsFallbackModules:member",
|
|
84403
|
+
"docComment": "/**\n * Modules to enable the tagging of the fallback solution to no results page.\n */\n",
|
|
84404
|
+
"excerptTokens": [
|
|
84405
|
+
{
|
|
84406
|
+
"kind": "Content",
|
|
84407
|
+
"text": "noResultsFallbackModules: "
|
|
84408
|
+
},
|
|
84409
|
+
{
|
|
84410
|
+
"kind": "Content",
|
|
84411
|
+
"text": "string[]"
|
|
84412
|
+
},
|
|
84413
|
+
{
|
|
84414
|
+
"kind": "Content",
|
|
84415
|
+
"text": ";"
|
|
84416
|
+
}
|
|
84417
|
+
],
|
|
84418
|
+
"isReadonly": false,
|
|
84419
|
+
"isOptional": false,
|
|
84420
|
+
"releaseTag": "Public",
|
|
84421
|
+
"name": "noResultsFallbackModules",
|
|
84422
|
+
"propertyTypeTokenRange": {
|
|
84423
|
+
"startIndex": 1,
|
|
84424
|
+
"endIndex": 2
|
|
84425
|
+
}
|
|
84426
|
+
},
|
|
84382
84427
|
{
|
|
84383
84428
|
"kind": "PropertySignature",
|
|
84384
84429
|
"canonicalReference": "@empathyco/x-components!TaggingConfig#queryTaggingDebounceMs:member",
|
|
@@ -9219,6 +9219,10 @@ consent: {
|
|
|
9219
9219
|
type: BooleanConstructor;
|
|
9220
9220
|
default: null;
|
|
9221
9221
|
};
|
|
9222
|
+
noResultsFallbackModules: {
|
|
9223
|
+
type: PropType<string[]>;
|
|
9224
|
+
default: () => string[];
|
|
9225
|
+
};
|
|
9222
9226
|
}>, () => void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
9223
9227
|
storageTTLMs: {
|
|
9224
9228
|
type: NumberConstructor;
|
|
@@ -9237,11 +9241,16 @@ consent: {
|
|
|
9237
9241
|
type: BooleanConstructor;
|
|
9238
9242
|
default: null;
|
|
9239
9243
|
};
|
|
9244
|
+
noResultsFallbackModules: {
|
|
9245
|
+
type: PropType<string[]>;
|
|
9246
|
+
default: () => string[];
|
|
9247
|
+
};
|
|
9240
9248
|
}>> & Readonly<{}>, {
|
|
9241
9249
|
storageTTLMs: number;
|
|
9242
9250
|
storageKey: string;
|
|
9243
9251
|
queryTaggingDebounceMs: number;
|
|
9244
9252
|
consent: boolean;
|
|
9253
|
+
noResultsFallbackModules: string[];
|
|
9245
9254
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9246
9255
|
|
|
9247
9256
|
// @public
|
|
@@ -9251,6 +9260,7 @@ export interface TaggingActions {
|
|
|
9251
9260
|
|
|
9252
9261
|
// @public
|
|
9253
9262
|
export interface TaggingConfig {
|
|
9263
|
+
noResultsFallbackModules: string[];
|
|
9254
9264
|
queryTaggingDebounceMs: number;
|
|
9255
9265
|
sessionTTLMs: number;
|
|
9256
9266
|
storageKey: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
1
2
|
/**
|
|
2
3
|
* This component enables and manages the sending of information to the
|
|
3
4
|
* [Empathy Tagging API](https://docs.empathy.co/develop-empathy-platform/api-reference/tagging-api.html).
|
|
@@ -40,6 +41,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
40
41
|
type: BooleanConstructor;
|
|
41
42
|
default: null;
|
|
42
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Modules used into no results fallback.
|
|
46
|
+
*/
|
|
47
|
+
noResultsFallbackModules: {
|
|
48
|
+
type: PropType<string[]>;
|
|
49
|
+
default: () => string[];
|
|
50
|
+
};
|
|
43
51
|
}>, () => void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
52
|
/**
|
|
45
53
|
* The TTL in milliseconds for storing the result info.
|
|
@@ -75,11 +83,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
83
|
type: BooleanConstructor;
|
|
76
84
|
default: null;
|
|
77
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* Modules used into no results fallback.
|
|
88
|
+
*/
|
|
89
|
+
noResultsFallbackModules: {
|
|
90
|
+
type: PropType<string[]>;
|
|
91
|
+
default: () => string[];
|
|
92
|
+
};
|
|
78
93
|
}>> & Readonly<{}>, {
|
|
79
94
|
storageTTLMs: number;
|
|
80
95
|
storageKey: string;
|
|
81
96
|
queryTaggingDebounceMs: number;
|
|
82
97
|
consent: boolean;
|
|
98
|
+
noResultsFallbackModules: string[];
|
|
83
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
100
|
export default _default;
|
|
85
101
|
//# sourceMappingURL=tagging.vue?vue&type=script&lang.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagging.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/tagging/components/tagging.vue?vue&type=script&lang.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tagging.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/tagging/components/tagging.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC;;;;;;GAMG;;IAKC;;OAEG;;;;;IAKH;;;;OAIG;;;;;IAKH;;OAEG;;IAEH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;cAEc,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;IAtCnC;;OAEG;;;;;IAKH;;;;OAIG;;;;;IAKH;;OAEG;;IAEH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;cAEc,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;AA1CvC,wBAwGE"}
|
|
@@ -22,5 +22,10 @@ export interface TaggingConfig {
|
|
|
22
22
|
* information.
|
|
23
23
|
*/
|
|
24
24
|
storageKey: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Modules to enable the tagging of the fallback solution to
|
|
27
|
+
* no results page.
|
|
28
|
+
*/
|
|
29
|
+
noResultsFallbackModules: string[];
|
|
25
30
|
}
|
|
26
31
|
//# sourceMappingURL=config.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/config.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/config.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;;OAGG;IACH,wBAAwB,EAAE,MAAM,EAAE,CAAA;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/tagging/store/module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAIlD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/tagging/store/module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAIlD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAwCjC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/wiring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,MAAM,EAEN,QAAQ,EACR,OAAO,EACP,cAAc,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAuB,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAyF1E;;;;GAIG;AACH,eAAO,MAAM,UAAU,eAA2B,CAAA;AAElD;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,uDAA2C,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8CAA4B,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,cAAc,yCAK1B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,yCAK3B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,sBAa/B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,sBAahC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,gBAA0C,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAA2B,CAAA;AAE9D;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAA2B,CAAA;AAE9D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,gBAA2B,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,gBAA8B,CAAA;A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