@empathyco/x-components 9.4.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/docs/API-reference/api/x-adapter-platform.md +9 -0
  3. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearch.md +0 -19
  4. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.add2cart.md +11 -0
  5. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.checkout.md +11 -0
  6. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.click.md +11 -0
  7. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.display.md +11 -0
  8. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.displayclick.md +11 -0
  9. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.md +139 -0
  10. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearchtagging.query.md +11 -0
  11. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionssearchresponse.md +17 -0
  12. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionssearchresponse.tagging.md +11 -0
  13. package/docs/API-reference/api/x-components.aimutations.md +19 -0
  14. package/docs/API-reference/api/x-components.aimutations.setsuggestionssearchtagging.md +13 -0
  15. package/docs/API-reference/api/x-components.aistate.config.md +2 -0
  16. package/docs/API-reference/api/x-components.aistate.md +21 -0
  17. package/docs/API-reference/api/x-components.aistate.suggestionstagging.md +13 -0
  18. package/docs/API-reference/api/x-components.aixevents.aicomponentunmounted.md +11 -0
  19. package/docs/API-reference/api/x-components.aixevents.aisuggestionssearchtaggingchanged.md +11 -0
  20. package/docs/API-reference/api/x-components.aixevents.md +34 -0
  21. package/docs/API-reference/api/x-components.baseeventsmodalclose.md +1 -1
  22. package/docs/API-reference/api/x-components.baseeventsmodalopen.md +1 -1
  23. package/docs/API-reference/api/x-components.createtrackaicarouseltaggingwire.md +56 -0
  24. package/docs/API-reference/api/x-components.hierarchicalfilter.md +2 -0
  25. package/docs/API-reference/api/x-components.md +46 -2
  26. package/docs/API-reference/api/x-components.simplefilter.md +2 -0
  27. package/docs/API-reference/api/x-components.snippetcallbacks.md +2 -0
  28. package/docs/API-reference/api/x-components.tagging.md +9 -0
  29. package/docs/API-reference/api/x-components.taggingconfig.md +19 -0
  30. package/docs/API-reference/api/x-components.taggingconfig.noresultsfallbackmodules.md +13 -0
  31. package/docs/API-reference/api/x-components.trackaicarouseladdtocartwire.md +13 -0
  32. package/docs/API-reference/api/x-components.trackaicarouselquerytagginginfodebouncedwire.md +13 -0
  33. package/docs/API-reference/api/x-components.trackaicarouselquerytagginginfowire.md +13 -0
  34. package/docs/API-reference/api/x-components.trackaicarouselresultclickedwire.md +13 -0
  35. package/docs/API-reference/api/x-types.aisuggestionsearch.md +0 -17
  36. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.add2cart.md +11 -0
  37. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.checkout.md +11 -0
  38. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.click.md +11 -0
  39. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.display.md +11 -0
  40. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.displayclick.md +11 -0
  41. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.md +139 -0
  42. package/docs/API-reference/api/x-types.aisuggestionsearchtagging.query.md +11 -0
  43. package/docs/API-reference/api/x-types.aisuggestionssearchresponse.md +17 -0
  44. package/docs/API-reference/api/x-types.aisuggestionssearchresponse.suggestionstagging.md +11 -0
  45. package/docs/API-reference/api/x-types.md +9 -0
  46. package/docs/API-reference/components/tagging/x-components.tagging.md +8 -7
  47. package/js/index.js +1 -1
  48. package/js/x-modules/ai/components/ai-carousel.vue.js.map +1 -1
  49. package/js/x-modules/ai/components/ai-carousel.vue2.js +4 -1
  50. package/js/x-modules/ai/components/ai-carousel.vue2.js.map +1 -1
  51. package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js +1 -0
  52. package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js.map +1 -1
  53. package/js/x-modules/ai/store/emitters.js +4 -0
  54. package/js/x-modules/ai/store/emitters.js.map +1 -1
  55. package/js/x-modules/ai/store/module.js +4 -0
  56. package/js/x-modules/ai/store/module.js.map +1 -1
  57. package/js/x-modules/tagging/components/tagging.vue.js +8 -0
  58. package/js/x-modules/tagging/components/tagging.vue.js.map +1 -1
  59. package/js/x-modules/tagging/store/module.js +2 -1
  60. package/js/x-modules/tagging/store/module.js.map +1 -1
  61. package/js/x-modules/tagging/wiring.js +55 -8
  62. package/js/x-modules/tagging/wiring.js.map +1 -1
  63. package/package.json +4 -4
  64. package/report/x-adapter-platform.api.json +186 -5
  65. package/report/x-components.api.json +400 -21
  66. package/report/x-components.api.md +49 -6
  67. package/report/x-types.api.json +184 -6
  68. package/tagging/index.js +1 -1
  69. package/types/src/components/modals/base-events-modal-close.vue.d.ts +1 -1
  70. package/types/src/components/modals/base-events-modal-open.vue.d.ts +1 -1
  71. package/types/src/components/snippet-callbacks.vue.d.ts +2 -0
  72. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
  73. package/types/src/x-modules/ai/components/ai-carousel.vue.d.ts.map +1 -1
  74. package/types/src/x-modules/ai/events.types.d.ts +3 -1
  75. package/types/src/x-modules/ai/events.types.d.ts.map +1 -1
  76. package/types/src/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts.map +1 -1
  77. package/types/src/x-modules/ai/store/emitters.d.ts +4 -0
  78. package/types/src/x-modules/ai/store/emitters.d.ts.map +1 -1
  79. package/types/src/x-modules/ai/store/module.d.ts.map +1 -1
  80. package/types/src/x-modules/ai/store/types.d.ts +10 -1
  81. package/types/src/x-modules/ai/store/types.d.ts.map +1 -1
  82. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +2 -0
  83. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  84. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +2 -0
  85. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  86. package/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
  87. package/types/src/x-modules/tagging/components/tagging.vue.d.ts +16 -0
  88. package/types/src/x-modules/tagging/components/tagging.vue.d.ts.map +1 -1
  89. package/types/src/x-modules/tagging/config.types.d.ts +5 -0
  90. package/types/src/x-modules/tagging/config.types.d.ts.map +1 -1
  91. package/types/src/x-modules/tagging/store/module.d.ts.map +1 -1
  92. package/types/src/x-modules/tagging/wiring.d.ts +39 -4
  93. package/types/src/x-modules/tagging/wiring.d.ts.map +1 -1
  94. package/docs/API-reference/api/x-adapter-platform.platformaisuggestionsearch.tagging.md +0 -13
  95. package/docs/API-reference/api/x-components.trackaisuggestionssearchwire.md +0 -13
  96. package/docs/API-reference/api/x-types.aisuggestionsearch.tagging.md +0 -13
@@ -195,9 +195,11 @@ _default: import("vue").DefineComponent<{}, {
195
195
  AiSuggestionsRequestUpdated: (payload: import("@empathyco/x-types").AiSuggestionsRequest | null, metadata: WireMetadata) => unknown;
196
196
  AiSuggestionsSearchRequestUpdated: (payload: import("@empathyco/x-types").AiSuggestionsSearchRequest | null, metadata: WireMetadata) => unknown;
197
197
  AiSuggestionsSearchChanged: (payload: import("@empathyco/x-types").AiSuggestionSearch[], metadata: WireMetadata) => unknown;
198
+ AiSuggestionsSearchTaggingChanged: (payload: import("@empathyco/x-types").AiSuggestionSearchTagging, metadata: WireMetadata) => unknown;
198
199
  UserClickedAnAiCarouselResult: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
199
200
  UserClickedAnAiCarouselAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
200
201
  AiComponentMounted: (payload: undefined, metadata: WireMetadata) => unknown;
202
+ AiComponentUnmounted: (payload: undefined, metadata: WireMetadata) => unknown;
201
203
  VendorResultsChanged: (payload: Omit<import("..").VendorResult, "modelName">[], metadata: WireMetadata) => unknown;
202
204
  VendorResultMounted: (payload: import("..").VendorResult, metadata: WireMetadata) => unknown;
203
205
  UserViewedAVendorResult: (payload: import("..").VendorResult, metadata: WireMetadata) => unknown;
@@ -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) &gt; [@empathyco/x-components](./x-components.md) &gt; [TaggingConfig](./x-components.taggingconfig.md) &gt; [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
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [trackAiCarouselAddToCartWire](./x-components.trackaicarouseladdtocartwire.md)
4
+
5
+ ## trackAiCarouselAddToCartWire variable
6
+
7
+ Performs a track of an ai carousel result added to the cart.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ trackAiCarouselAddToCartWire: Wire<Taggable>
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [trackAiCarouselQueryTaggingInfoDebouncedWire](./x-components.trackaicarouselquerytagginginfodebouncedwire.md)
4
+
5
+ ## trackAiCarouselQueryTaggingInfoDebouncedWire variable
6
+
7
+ Debounced version of [trackAiCarouselQueryTaggingInfoWire](./x-components.trackaicarouselquerytagginginfowire.md)
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ trackAiCarouselQueryTaggingInfoDebouncedWire: Wire<any>
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [trackAiCarouselQueryTaggingInfoWire](./x-components.trackaicarouselquerytagginginfowire.md)
4
+
5
+ ## trackAiCarouselQueryTaggingInfoWire variable
6
+
7
+ Performs a track of a query with no results that used ai carousel as fallback. The query will be changed to the original query of the search in order to associate the return of related results to that query, instead of track a no results query.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ trackAiCarouselQueryTaggingInfoWire: Wire<any>
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [trackAiCarouselResultClickedWire](./x-components.trackaicarouselresultclickedwire.md)
4
+
5
+ ## trackAiCarouselResultClickedWire variable
6
+
7
+ Tracks the tagging of an ai carousel result clicked.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ trackAiCarouselResultClickedWire: Wire<Taggable>
13
+ ```
@@ -85,23 +85,6 @@ string
85
85
  </td><td>
86
86
 
87
87
 
88
- </td></tr>
89
- <tr><td>
90
-
91
- [tagging](./x-types.aisuggestionsearch.tagging.md)
92
-
93
-
94
- </td><td>
95
-
96
-
97
- </td><td>
98
-
99
- { query: [TaggingRequest](./x-types.taggingrequest.md)<!-- -->; }
100
-
101
-
102
- </td><td>
103
-
104
-
105
88
  </td></tr>
106
89
  </tbody></table>
107
90
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) &gt; [add2cart](./x-types.aisuggestionsearchtagging.add2cart.md)
4
+
5
+ ## AiSuggestionSearchTagging.add2cart property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ add2cart: TaggingRequest;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) &gt; [checkout](./x-types.aisuggestionsearchtagging.checkout.md)
4
+
5
+ ## AiSuggestionSearchTagging.checkout property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ checkout: TaggingRequest;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) &gt; [click](./x-types.aisuggestionsearchtagging.click.md)
4
+
5
+ ## AiSuggestionSearchTagging.click property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ click: TaggingRequest;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) &gt; [display](./x-types.aisuggestionsearchtagging.display.md)
4
+
5
+ ## AiSuggestionSearchTagging.display property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ display: TaggingRequest;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) &gt; [displayClick](./x-types.aisuggestionsearchtagging.displayclick.md)
4
+
5
+ ## AiSuggestionSearchTagging.displayClick property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ displayClick: TaggingRequest;
11
+ ```
@@ -0,0 +1,139 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md)
4
+
5
+ ## AiSuggestionSearchTagging interface
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export interface AiSuggestionSearchTagging
11
+ ```
12
+
13
+ ## Properties
14
+
15
+ <table><thead><tr><th>
16
+
17
+ Property
18
+
19
+
20
+ </th><th>
21
+
22
+ Modifiers
23
+
24
+
25
+ </th><th>
26
+
27
+ Type
28
+
29
+
30
+ </th><th>
31
+
32
+ Description
33
+
34
+
35
+ </th></tr></thead>
36
+ <tbody><tr><td>
37
+
38
+ [add2cart](./x-types.aisuggestionsearchtagging.add2cart.md)
39
+
40
+
41
+ </td><td>
42
+
43
+
44
+ </td><td>
45
+
46
+ [TaggingRequest](./x-types.taggingrequest.md)
47
+
48
+
49
+ </td><td>
50
+
51
+
52
+ </td></tr>
53
+ <tr><td>
54
+
55
+ [checkout](./x-types.aisuggestionsearchtagging.checkout.md)
56
+
57
+
58
+ </td><td>
59
+
60
+
61
+ </td><td>
62
+
63
+ [TaggingRequest](./x-types.taggingrequest.md)
64
+
65
+
66
+ </td><td>
67
+
68
+
69
+ </td></tr>
70
+ <tr><td>
71
+
72
+ [click](./x-types.aisuggestionsearchtagging.click.md)
73
+
74
+
75
+ </td><td>
76
+
77
+
78
+ </td><td>
79
+
80
+ [TaggingRequest](./x-types.taggingrequest.md)
81
+
82
+
83
+ </td><td>
84
+
85
+
86
+ </td></tr>
87
+ <tr><td>
88
+
89
+ [display](./x-types.aisuggestionsearchtagging.display.md)
90
+
91
+
92
+ </td><td>
93
+
94
+
95
+ </td><td>
96
+
97
+ [TaggingRequest](./x-types.taggingrequest.md)
98
+
99
+
100
+ </td><td>
101
+
102
+
103
+ </td></tr>
104
+ <tr><td>
105
+
106
+ [displayClick](./x-types.aisuggestionsearchtagging.displayclick.md)
107
+
108
+
109
+ </td><td>
110
+
111
+
112
+ </td><td>
113
+
114
+ [TaggingRequest](./x-types.taggingrequest.md)
115
+
116
+
117
+ </td><td>
118
+
119
+
120
+ </td></tr>
121
+ <tr><td>
122
+
123
+ [query](./x-types.aisuggestionsearchtagging.query.md)
124
+
125
+
126
+ </td><td>
127
+
128
+
129
+ </td><td>
130
+
131
+ [TaggingRequest](./x-types.taggingrequest.md)
132
+
133
+
134
+ </td><td>
135
+
136
+
137
+ </td></tr>
138
+ </tbody></table>
139
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md) &gt; [query](./x-types.aisuggestionsearchtagging.query.md)
4
+
5
+ ## AiSuggestionSearchTagging.query property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ query: TaggingRequest;
11
+ ```
@@ -51,6 +51,23 @@ Description
51
51
  </td><td>
52
52
 
53
53
 
54
+ </td></tr>
55
+ <tr><td>
56
+
57
+ [suggestionsTagging](./x-types.aisuggestionssearchresponse.suggestionstagging.md)
58
+
59
+
60
+ </td><td>
61
+
62
+
63
+ </td><td>
64
+
65
+ [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md)
66
+
67
+
68
+ </td><td>
69
+
70
+
54
71
  </td></tr>
55
72
  </tbody></table>
56
73
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [AiSuggestionsSearchResponse](./x-types.aisuggestionssearchresponse.md) &gt; [suggestionsTagging](./x-types.aisuggestionssearchresponse.suggestionstagging.md)
4
+
5
+ ## AiSuggestionsSearchResponse.suggestionsTagging property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ suggestionsTagging: AiSuggestionSearchTagging;
11
+ ```
@@ -246,6 +246,15 @@ Data for each query suggested.
246
246
  Each suggestion search is a query and the results of that query.
247
247
 
248
248
 
249
+ </td></tr>
250
+ <tr><td>
251
+
252
+ [AiSuggestionSearchTagging](./x-types.aisuggestionsearchtagging.md)
253
+
254
+
255
+ </td><td>
256
+
257
+
249
258
  </td></tr>
250
259
  <tr><td>
251
260
 
@@ -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 | 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> |
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
 
package/js/index.js CHANGED
@@ -454,7 +454,7 @@ export { DefaultExternalTaggingService } from './x-modules/tagging/service/exter
454
454
  export { track } from './x-modules/tagging/store/actions/track.action.js';
455
455
  export { taggingEmitters } from './x-modules/tagging/store/emitters.js';
456
456
  export { taggingXStoreModule } from './x-modules/tagging/store/module.js';
457
- export { createSetQueryTaggingFromQueryPreview, createTrackDisplayWire, createTrackRelatedPromptToolingDisplayClickWire, createTrackToolingAdd2CartWire, createTrackToolingDisplayWire, createTrackWire, setBrowseTaggingInfo, setConsent, setNoResultsTaggingEnabledWire, setQueryTaggingFromQueryPreview, setQueryTaggingInfo, setTaggingConfig, taggingWiring, trackAddToCartWire, trackAiSuggestionsSearchWire, trackBannerClickedWire, trackBrowseWire, trackDisplayClickedWire, trackElementDisplayedWire, trackNoResultsQueryWithFallbackWire, trackNoResultsQueryWithFallbackWireDebounced, trackNoResultsQueryWithSemanticsWire, trackNoResultsQueryWithSemanticsWireDebounced, trackPromotedClickedWire, trackQueryWire, trackRelatedPromptToolingDisplayClickWire, trackResultClickedWire, trackToolingAdd2CartWire, trackToolingDisplayClickedWire } from './x-modules/tagging/wiring.js';
457
+ 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 } from './x-modules/tagging/wiring.js';
458
458
  export { taggingXModule } from './x-modules/tagging/x-module.js';
459
459
  export { default as UrlHandler } from './x-modules/url/components/url-handler.vue.js';
460
460
  export { replaceableParams, urlEmitters } from './x-modules/url/store/emitters.js';
@@ -1 +1 @@
1
- {"version":3,"file":"ai-carousel.vue.js","sources":["../../../../../src/x-modules/ai/components/ai-carousel.vue"],"sourcesContent":["<template>\n <CollapseHeight>\n <div v-if=\"suggestionsSearch.length\" class=\"x-ai-carousel\">\n <DisplayEmitter\n :payload=\"tagging?.toolingDisplay ?? emptyTaggingRequest\"\n :event-metadata=\"{\n feature: 'ai_carousel',\n displayOriginalQuery: query || 'ai-carousel-without-query',\n replaceable: false,\n }\"\n data-test=\"ai-carousel-display-emitter\"\n >\n <span\n class=\"x-ai-carousel-title\"\n :class=\"{ 'x-ai-carousel-title--expanded': titleExpanded }\"\n data-test=\"ai-carousel-title\"\n @click=\"toggleTitleExpansion\"\n >\n <AIStarIcon class=\"x-ai-carousel-title-icon\" />\n <ChangeHeight>\n <span\n ref=\"titleRef\"\n class=\"x-ai-carousel-title-text\"\n :class=\"{ 'x-ai-carousel-title-text--expanded': titleExpanded }\"\n >\n {{ title }}\n </span>\n </ChangeHeight>\n <button\n v-if=\"isTitleOverflowing\"\n class=\"x-ai-carousel-title-button\"\n data-test=\"ai-carousel-title-button\"\n :aria-label=\"titleExpanded ? ariaLabels?.collapse : ariaLabels?.expand\"\n >\n <ChevronDownIcon\n class=\"x-ai-carousel-title-button-icon\"\n :class=\"{ 'x-ai-carousel-title-button-icon--expanded': titleExpanded }\"\n />\n </button>\n </span>\n </DisplayEmitter>\n\n <AiGroupedCarousel\n v-if=\"group\"\n :sliding-panel-classes=\"slidingPanelClasses\"\n :sliding-panel-container-classes=\"slidingPanelContainerClasses\"\n :sliding-panel-buttons-classes=\"slidingPanelButtonsClasses\"\n >\n <template #sliding-panels-addons=\"{ arrivedState }\">\n <slot name=\"sliding-panels-addons\" :arrived-state=\"arrivedState\" />\n </template>\n <template #sliding-panels-left-button>\n <slot name=\"sliding-panels-left-button\" />\n </template>\n <template #sliding-panels-right-button>\n <slot name=\"sliding-panels-right-button\" />\n </template>\n <template #result=\"{ result }\">\n <slot name=\"result\" :result=\"result\" />\n </template>\n </AiGroupedCarousel>\n\n <div v-else class=\"x-ai-carousel-suggestions\" data-test=\"ai-carousel-suggestions-container\">\n <DisplayEmitter\n v-for=\"{ query: suggestionQuery, results: queriesResults } in suggestionsSearch\"\n :key=\"suggestionQuery\"\n :payload=\"tagging?.searchQueries[suggestionQuery].toolingDisplay ?? emptyTaggingRequest\"\n :event-metadata=\"{\n feature: 'ai_carousel',\n displayOriginalQuery: query || 'ai-carousel-without-query',\n replaceable: false,\n }\"\n data-test=\"ai-carousel-query-display-emitter\"\n >\n <div class=\"x-ai-carousel-suggestion\" data-test=\"ai-carousel-suggestion\">\n <BaseEventButton\n class=\"x-ai-carousel-suggestion-query-btn\"\n :events=\"{ UserAcceptedAQuery: suggestionQuery }\"\n >\n {{ suggestionQuery }}\n <ArrowRightIcon class=\"x-ai-carousel-suggestion-query-btn-icon\" />\n </BaseEventButton>\n\n <DisplayClickProvider\n :tooling-display-tagging=\"tagging?.searchQueries[suggestionQuery].toolingDisplayClick\"\n :tooling-add2-cart-tagging=\"\n tagging?.searchQueries[suggestionQuery].toolingDisplayAdd2Cart\n \"\n result-feature=\"ai_carousel\"\n >\n <slot name=\"sliding-panel\" :results=\"queriesResults\">\n <SlidingPanel\n :class=\"slidingPanelClasses\"\n :scroll-container-class=\"slidingPanelContainerClasses\"\n :button-class=\"slidingPanelButtonsClasses\"\n :reset-on-content-change=\"false\"\n >\n <template #sliding-panel-addons=\"{ arrivedState }\">\n <slot name=\"sliding-panels-addons\" :arrived-state=\"arrivedState\" />\n </template>\n <template #sliding-panel-left-button>\n <slot name=\"sliding-panels-left-button\" />\n </template>\n <template #sliding-panel-right-button>\n <slot name=\"sliding-panels-right-button\" />\n </template>\n <ul class=\"x-ai-carousel-suggestion-results\">\n <li\n v-for=\"result in queriesResults\"\n :key=\"result.id\"\n data-test=\"ai-carousel-suggestion-result\"\n >\n <!-- @slot (required) result card -->\n <slot name=\"result\" :result=\"result\" />\n </li>\n </ul>\n </SlidingPanel>\n </slot>\n </DisplayClickProvider>\n </div>\n </DisplayEmitter>\n <slot name=\"suggestions-extra-content\" />\n </div>\n\n <slot name=\"extra-content\" />\n <slot name=\"cta-button\" />\n </div>\n </CollapseHeight>\n</template>\n\n<script lang=\"ts\">\nimport type { TaggingRequest } from '@empathyco/x-types'\nimport { useResizeObserver } from '@vueuse/core'\nimport { computed, defineComponent, onMounted, ref, watch } from 'vue'\nimport {\n AIStarIcon,\n ArrowRightIcon,\n BaseEventButton,\n ChangeHeight,\n ChevronDownIcon,\n CollapseHeight,\n DisplayClickProvider,\n DisplayEmitter,\n SlidingPanel,\n} from '../../../components'\nimport { use$x, useAccessibilityLabels, useState } from '../../../composables'\nimport { aiXModule } from '../x-module'\nimport AiGroupedCarousel from './ai-grouped-carousel.vue'\n\nexport default defineComponent({\n xModule: aiXModule.name,\n components: {\n AIStarIcon,\n AiGroupedCarousel,\n ArrowRightIcon,\n BaseEventButton,\n ChangeHeight,\n ChevronDownIcon,\n CollapseHeight,\n DisplayClickProvider,\n DisplayEmitter,\n SlidingPanel,\n },\n props: {\n /* The title text displayed */\n title: String,\n /* The classes added to the sliding panel. */\n slidingPanelClasses: String,\n /* The classes added to the sliding panel container. */\n slidingPanelContainerClasses: String,\n /* The classes added to the sliding panel buttons. */\n slidingPanelButtonsClasses: String,\n /* Controls whether the carousel should group results or display N carousels per N queries. */\n group: {\n type: Boolean,\n default: true,\n },\n },\n setup(props) {\n const $x = use$x()\n const { query, suggestionsSearch, queries, tagging } = useState('ai')\n const emptyTaggingRequest: TaggingRequest = { url: '', params: {} }\n\n const ariaLabels = useAccessibilityLabels('aiCarousel')\n\n const titleRef = ref<HTMLElement | null>(null)\n const titleExpanded = ref(false)\n const isTitleOverflowing = ref(false)\n\n /**\n * Checks if the title is overflowing and updates the state.\n */\n function updateTitleOverflow() {\n if (titleExpanded.value) {\n return\n }\n if (titleRef.value) {\n isTitleOverflowing.value = titleRef.value.scrollWidth > titleRef.value.clientWidth\n }\n }\n\n /**\n * Toggles the title expanded state if it is overflowing.\n */\n function toggleTitleExpansion() {\n if (isTitleOverflowing.value) {\n titleExpanded.value = !titleExpanded.value\n }\n }\n\n const title = computed(() => {\n if (!props.title) {\n const queriesList = new Intl.ListFormat('en', {\n style: 'long',\n type: 'conjunction',\n }).format(queries.value.map(({ query }) => query))\n return `Searching for ${queriesList}`\n }\n return props.title\n })\n\n watch(queries, () => {\n if (queries.value.length > 0) {\n $x.emit('AiSuggestionsSearchRequestUpdated')\n }\n })\n\n onMounted(() => {\n $x.emit('AiComponentMounted', undefined, { feature: 'ai_carousel' })\n })\n\n useResizeObserver(titleRef, updateTitleOverflow)\n\n return {\n ariaLabels,\n emptyTaggingRequest,\n isTitleOverflowing,\n queries,\n query,\n suggestionsSearch,\n tagging,\n title,\n titleExpanded,\n titleRef,\n toggleTitleExpansion,\n }\n },\n})\n</script>\n\n<style lang=\"css\">\n.x-ai-carousel {\n --color: var(--x-ai-carousel-color, #bbc9cf);\n --color-lighter: var(--x-ai-carousel-color-lighter, color-mix(in srgb, var(--color) 25%, white));\n\n padding: 8px 0;\n position: relative;\n border-radius: 1.5rem;\n background-color: var(--color-lighter);\n}\n\n.x-ai-carousel-title {\n display: flex;\n font-size: 12px;\n gap: 8px;\n align-items: flex-start;\n margin: 0 14px 8px;\n cursor: pointer;\n}\n.x-ai-carousel-title-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.x-ai-carousel-title-text--expanded {\n white-space: normal;\n}\n.x-ai-carousel-title-icon {\n height: 1rem;\n aspect-ratio: 1 / 1;\n color: var(--color);\n flex-shrink: 0;\n margin-bottom: auto;\n}\n.x-ai-carousel-title-button {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--color);\n margin-bottom: auto;\n}\n.x-ai-carousel-title-button-icon {\n height: 1rem;\n aspect-ratio: 1 / 1;\n transition: transform 0.3s ease;\n}\n.x-ai-carousel-title-button-icon--expanded {\n transform: rotate(180deg);\n}\n\n.x-ai-carousel-suggestions {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding-bottom: 1rem;\n}\n\n.x-ai-carousel-suggestion {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.x-ai-carousel-suggestion-query-btn {\n border-color: transparent;\n background-color: transparent;\n margin-left: 1rem;\n margin-right: 1rem;\n font-weight: 700;\n width: fit-content;\n display: flex;\n align-items: center;\n gap: 1rem;\n cursor: pointer;\n}\n\n.x-ai-carousel-suggestion-query-btn-icon {\n height: 1rem;\n aspect-ratio: 1 / 1;\n}\n\n.x-ai-carousel-suggestion-results {\n display: flex;\n gap: 1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n}\n</style>\n"],"names":["_createBlock","_withCtx","_openBlock","_createElementBlock","_createVNode","_createElementVNode","_normalizeClass","_renderSlot","_Fragment","_renderList","_createTextVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;EAEyC,KAAA,EAAM;;;;;EA4D7B,KAAA,EAAM,2BAAA;AAAA,EAA4B,WAAA,EAAU;;;EAY/C,KAAA,EAAM,0BAAA;AAAA,EAA2B,WAAA,EAAU;;AAgCpC,MAAA,UAAA,GAAA,EAAA,KAAA,EAAM,kCAAA,EAAkC;;;;;;;;;;;;sBAzG5DA,WAAA,CA8HiB,yBAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CA7Hf,MA4HM;AAAA,MA5HK,IAAA,CAAA,iBAAA,CAAkB,MAAA,IAAAC,SAAA,EAAA,EAA7BC,kBAAA,CA4HM,KAAA,EA5HN,UAAA,EA4HM;AAAA,QA3HJC,WAAA,CAqCiB,yBAAA,EAAA;AAAA,UApCd,OAAA,EAAS,cAAS,cAAA,IAAkB,IAAA,CAAA,mBAAA;AAAA,UACpC,gBAAA,EAAc;AAAA,YAAA,OAAA,EAAA,aAAA;kCAAsE,IAAA,CAAA,KAAA,IAAK,2BAAA;AAAA,YAAA,WAAA,EAAA;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A,IAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"ai-carousel.vue.js","sources":["../../../../../src/x-modules/ai/components/ai-carousel.vue"],"sourcesContent":["<template>\n <CollapseHeight>\n <div v-if=\"suggestionsSearch.length\" class=\"x-ai-carousel\">\n <DisplayEmitter\n :payload=\"tagging?.toolingDisplay ?? emptyTaggingRequest\"\n :event-metadata=\"{\n feature: 'ai_carousel',\n displayOriginalQuery: query || 'ai-carousel-without-query',\n replaceable: false,\n }\"\n data-test=\"ai-carousel-display-emitter\"\n >\n <span\n class=\"x-ai-carousel-title\"\n :class=\"{ 'x-ai-carousel-title--expanded': titleExpanded }\"\n data-test=\"ai-carousel-title\"\n @click=\"toggleTitleExpansion\"\n >\n <AIStarIcon class=\"x-ai-carousel-title-icon\" />\n <ChangeHeight>\n <span\n ref=\"titleRef\"\n class=\"x-ai-carousel-title-text\"\n :class=\"{ 'x-ai-carousel-title-text--expanded': titleExpanded }\"\n >\n {{ title }}\n </span>\n </ChangeHeight>\n <button\n v-if=\"isTitleOverflowing\"\n class=\"x-ai-carousel-title-button\"\n data-test=\"ai-carousel-title-button\"\n :aria-label=\"titleExpanded ? ariaLabels?.collapse : ariaLabels?.expand\"\n >\n <ChevronDownIcon\n class=\"x-ai-carousel-title-button-icon\"\n :class=\"{ 'x-ai-carousel-title-button-icon--expanded': titleExpanded }\"\n />\n </button>\n </span>\n </DisplayEmitter>\n\n <AiGroupedCarousel\n v-if=\"group\"\n :sliding-panel-classes=\"slidingPanelClasses\"\n :sliding-panel-container-classes=\"slidingPanelContainerClasses\"\n :sliding-panel-buttons-classes=\"slidingPanelButtonsClasses\"\n >\n <template #sliding-panels-addons=\"{ arrivedState }\">\n <slot name=\"sliding-panels-addons\" :arrived-state=\"arrivedState\" />\n </template>\n <template #sliding-panels-left-button>\n <slot name=\"sliding-panels-left-button\" />\n </template>\n <template #sliding-panels-right-button>\n <slot name=\"sliding-panels-right-button\" />\n </template>\n <template #result=\"{ result }\">\n <slot name=\"result\" :result=\"result\" />\n </template>\n </AiGroupedCarousel>\n\n <div v-else class=\"x-ai-carousel-suggestions\" data-test=\"ai-carousel-suggestions-container\">\n <DisplayEmitter\n v-for=\"{ query: suggestionQuery, results: queriesResults } in suggestionsSearch\"\n :key=\"suggestionQuery\"\n :payload=\"tagging?.searchQueries[suggestionQuery].toolingDisplay ?? emptyTaggingRequest\"\n :event-metadata=\"{\n feature: 'ai_carousel',\n displayOriginalQuery: query || 'ai-carousel-without-query',\n replaceable: false,\n }\"\n data-test=\"ai-carousel-query-display-emitter\"\n >\n <div class=\"x-ai-carousel-suggestion\" data-test=\"ai-carousel-suggestion\">\n <BaseEventButton\n class=\"x-ai-carousel-suggestion-query-btn\"\n :events=\"{ UserAcceptedAQuery: suggestionQuery }\"\n >\n {{ suggestionQuery }}\n <ArrowRightIcon class=\"x-ai-carousel-suggestion-query-btn-icon\" />\n </BaseEventButton>\n\n <DisplayClickProvider\n :tooling-display-tagging=\"tagging?.searchQueries[suggestionQuery].toolingDisplayClick\"\n :tooling-add2-cart-tagging=\"\n tagging?.searchQueries[suggestionQuery].toolingDisplayAdd2Cart\n \"\n result-feature=\"ai_carousel\"\n >\n <slot name=\"sliding-panel\" :results=\"queriesResults\">\n <SlidingPanel\n :class=\"slidingPanelClasses\"\n :scroll-container-class=\"slidingPanelContainerClasses\"\n :button-class=\"slidingPanelButtonsClasses\"\n :reset-on-content-change=\"false\"\n >\n <template #sliding-panel-addons=\"{ arrivedState }\">\n <slot name=\"sliding-panels-addons\" :arrived-state=\"arrivedState\" />\n </template>\n <template #sliding-panel-left-button>\n <slot name=\"sliding-panels-left-button\" />\n </template>\n <template #sliding-panel-right-button>\n <slot name=\"sliding-panels-right-button\" />\n </template>\n <ul class=\"x-ai-carousel-suggestion-results\">\n <li\n v-for=\"result in queriesResults\"\n :key=\"result.id\"\n data-test=\"ai-carousel-suggestion-result\"\n >\n <!-- @slot (required) result card -->\n <slot name=\"result\" :result=\"result\" />\n </li>\n </ul>\n </SlidingPanel>\n </slot>\n </DisplayClickProvider>\n </div>\n </DisplayEmitter>\n <slot name=\"suggestions-extra-content\" />\n </div>\n\n <slot name=\"extra-content\" />\n <slot name=\"cta-button\" />\n </div>\n </CollapseHeight>\n</template>\n\n<script lang=\"ts\">\nimport type { TaggingRequest } from '@empathyco/x-types'\nimport { useResizeObserver } from '@vueuse/core'\nimport { computed, defineComponent, onBeforeUnmount, onMounted, ref, watch } from 'vue'\nimport {\n AIStarIcon,\n ArrowRightIcon,\n BaseEventButton,\n ChangeHeight,\n ChevronDownIcon,\n CollapseHeight,\n DisplayClickProvider,\n DisplayEmitter,\n SlidingPanel,\n} from '../../../components'\nimport { use$x, useAccessibilityLabels, useState } from '../../../composables'\nimport { aiXModule } from '../x-module'\nimport AiGroupedCarousel from './ai-grouped-carousel.vue'\n\nexport default defineComponent({\n xModule: aiXModule.name,\n components: {\n AIStarIcon,\n AiGroupedCarousel,\n ArrowRightIcon,\n BaseEventButton,\n ChangeHeight,\n ChevronDownIcon,\n CollapseHeight,\n DisplayClickProvider,\n DisplayEmitter,\n SlidingPanel,\n },\n props: {\n /* The title text displayed */\n title: String,\n /* The classes added to the sliding panel. */\n slidingPanelClasses: String,\n /* The classes added to the sliding panel container. */\n slidingPanelContainerClasses: String,\n /* The classes added to the sliding panel buttons. */\n slidingPanelButtonsClasses: String,\n /* Controls whether the carousel should group results or display N carousels per N queries. */\n group: {\n type: Boolean,\n default: true,\n },\n },\n setup(props) {\n const $x = use$x()\n const { query, suggestionsSearch, queries, tagging } = useState('ai')\n const emptyTaggingRequest: TaggingRequest = { url: '', params: {} }\n\n const ariaLabels = useAccessibilityLabels('aiCarousel')\n\n const titleRef = ref<HTMLElement | null>(null)\n const titleExpanded = ref(false)\n const isTitleOverflowing = ref(false)\n\n /**\n * Checks if the title is overflowing and updates the state.\n */\n function updateTitleOverflow() {\n if (titleExpanded.value) {\n return\n }\n if (titleRef.value) {\n isTitleOverflowing.value = titleRef.value.scrollWidth > titleRef.value.clientWidth\n }\n }\n\n /**\n * Toggles the title expanded state if it is overflowing.\n */\n function toggleTitleExpansion() {\n if (isTitleOverflowing.value) {\n titleExpanded.value = !titleExpanded.value\n }\n }\n\n const title = computed(() => {\n if (!props.title) {\n const queriesList = new Intl.ListFormat('en', {\n style: 'long',\n type: 'conjunction',\n }).format(queries.value.map(({ query }) => query))\n return `Searching for ${queriesList}`\n }\n return props.title\n })\n\n watch(queries, () => {\n if (queries.value.length > 0) {\n $x.emit('AiSuggestionsSearchRequestUpdated')\n }\n })\n\n onMounted(() => {\n $x.emit('AiComponentMounted', undefined, { feature: 'ai_carousel' })\n })\n\n onBeforeUnmount(() => {\n $x.emit('AiComponentUnmounted')\n })\n\n useResizeObserver(titleRef, updateTitleOverflow)\n\n return {\n ariaLabels,\n emptyTaggingRequest,\n isTitleOverflowing,\n queries,\n query,\n suggestionsSearch,\n tagging,\n title,\n titleExpanded,\n titleRef,\n toggleTitleExpansion,\n }\n },\n})\n</script>\n\n<style lang=\"css\">\n.x-ai-carousel {\n --color: var(--x-ai-carousel-color, #bbc9cf);\n --color-lighter: var(--x-ai-carousel-color-lighter, color-mix(in srgb, var(--color) 25%, white));\n\n padding: 8px 0;\n position: relative;\n border-radius: 1.5rem;\n background-color: var(--color-lighter);\n}\n\n.x-ai-carousel-title {\n display: flex;\n font-size: 12px;\n gap: 8px;\n align-items: flex-start;\n margin: 0 14px 8px;\n cursor: pointer;\n}\n.x-ai-carousel-title-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.x-ai-carousel-title-text--expanded {\n white-space: normal;\n}\n.x-ai-carousel-title-icon {\n height: 1rem;\n aspect-ratio: 1 / 1;\n color: var(--color);\n flex-shrink: 0;\n margin-bottom: auto;\n}\n.x-ai-carousel-title-button {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--color);\n margin-bottom: auto;\n}\n.x-ai-carousel-title-button-icon {\n height: 1rem;\n aspect-ratio: 1 / 1;\n transition: transform 0.3s ease;\n}\n.x-ai-carousel-title-button-icon--expanded {\n transform: rotate(180deg);\n}\n\n.x-ai-carousel-suggestions {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding-bottom: 1rem;\n}\n\n.x-ai-carousel-suggestion {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.x-ai-carousel-suggestion-query-btn {\n border-color: transparent;\n background-color: transparent;\n margin-left: 1rem;\n margin-right: 1rem;\n font-weight: 700;\n width: fit-content;\n display: flex;\n align-items: center;\n gap: 1rem;\n cursor: pointer;\n}\n\n.x-ai-carousel-suggestion-query-btn-icon {\n height: 1rem;\n aspect-ratio: 1 / 1;\n}\n\n.x-ai-carousel-suggestion-results {\n display: flex;\n gap: 1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n}\n</style>\n"],"names":["_createBlock","_withCtx","_openBlock","_createElementBlock","_createVNode","_createElementVNode","_normalizeClass","_renderSlot","_Fragment","_renderList","_createTextVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;EAEyC,KAAA,EAAM;;;;;EA4D7B,KAAA,EAAM,2BAAA;AAAA,EAA4B,WAAA,EAAU;;;EAY/C,KAAA,EAAM,0BAAA;AAAA,EAA2B,WAAA,EAAU;;AAgCpC,MAAA,UAAA,GAAA,EAAA,KAAA,EAAM,kCAAA,EAAkC;;;;;;;;;;;;sBAzG5DA,WAAA,CA8HiB,yBAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CA7Hf,MA4HM;AAAA,MA5HK,IAAA,CAAA,iBAAA,CAAkB,MAAA,IAAAC,SAAA,EAAA,EAA7BC,kBAAA,CA4HM,KAAA,EA5HN,UAAA,EA4HM;AAAA,QA3HJC,WAAA,CAqCiB,yBAAA,EAAA;AAAA,UApCd,OAAA,EAAS,cAAS,cAAA,IAAkB,IAAA,CAAA,mBAAA;AAAA,UACpC,gBAAA,EAAc;AAAA,YAAA,OAAA,EAAA,aAA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MAAA,EAAA,YAAA;AAAA,OAAA,CAAA,IAAAK,kBAAA,CAAA,MAAA,EAAA,IAAA;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { defineComponent, ref, computed, watch, onMounted } from 'vue';
2
+ import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount } from 'vue';
3
3
  import '../../../components/animations/animate-clip-path.vue2.js';
4
4
  import '../../../components/animations/animate-scale.vue2.js';
5
5
  import '../../../components/animations/animate-translate.vue2.js';
@@ -178,6 +178,9 @@ var _sfc_main = defineComponent({
178
178
  onMounted(() => {
179
179
  $x.emit('AiComponentMounted', undefined, { feature: 'ai_carousel' });
180
180
  });
181
+ onBeforeUnmount(() => {
182
+ $x.emit('AiComponentUnmounted');
183
+ });
181
184
  useResizeObserver(titleRef, updateTitleOverflow);
182
185
  return {
183
186
  ariaLabels,