@empathyco/x-components 6.0.0-alpha.75 → 6.0.0-alpha.77
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 +18 -0
- package/design-system/deprecated-full-theme.css +1624 -1624
- package/docs/API-reference/api/x-components.allfilter.md +3 -3
- package/docs/API-reference/api/x-components.baseeventsmodalclose.md +3 -3
- package/docs/API-reference/api/x-components.baseeventsmodalopen.md +3 -3
- package/docs/API-reference/api/x-components.facets.md +3 -3
- package/docs/API-reference/api/x-components.globalxbus.md +4 -0
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +2 -0
- package/docs/API-reference/api/x-components.historyqueries.md +1 -1
- package/docs/API-reference/api/x-components.historyquery.md +1 -1
- package/docs/API-reference/api/x-components.identifierresult.md +2 -2
- package/docs/API-reference/api/x-components.md +5 -3
- package/docs/API-reference/api/x-components.nextqueries.md +1 -1
- package/docs/API-reference/api/x-components.popularsearches.md +1 -1
- package/docs/API-reference/api/x-components.querysuggestion.md +1 -1
- package/docs/API-reference/api/x-components.querysuggestions.md +1 -1
- package/docs/API-reference/api/x-components.relatedpromptsxevents.md +2 -0
- package/docs/API-reference/api/x-components.relatedpromptsxevents.relatedpromptsresponsechanged.md +13 -0
- package/docs/API-reference/api/x-components.relatedpromptsxevents.relatedpromptsunmounted.md +13 -0
- package/docs/API-reference/api/x-components.semanticquery.md +1 -1
- package/docs/API-reference/api/x-components.simplefilter.md +2 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +2 -0
- package/docs/API-reference/api/x-components.tracknoresultsquerywithfallbackwire.md +13 -0
- package/docs/API-reference/api/x-components.tracknoresultsquerywithfallbackwiredebounced.md +13 -0
- package/docs/API-reference/api/x-components.tracknoresultsquerywithsemanticswire.md +6 -1
- package/docs/API-reference/api/x-components.tracknoresultsquerywithsemanticswiredebounced.md +6 -1
- package/docs/API-reference/api/x-components.usegetter.md +3 -17
- package/js/composables/use-getter.js +11 -11
- package/js/composables/use-getter.js.map +1 -1
- package/js/index.js +1 -1
- package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue2.js +1 -1
- package/js/x-modules/facets/components/facets/facets.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue2.js +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/composables/use-facets.js +1 -4
- package/js/x-modules/facets/composables/use-facets.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue2.js +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue2.js.map +1 -1
- package/js/x-modules/history-queries/components/history-query.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-query.vue2.js +1 -1
- package/js/x-modules/history-queries/components/history-query.vue2.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-result.vue.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-result.vue2.js +1 -3
- package/js/x-modules/identifier-results/components/identifier-result.vue2.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue.js +1 -3
- package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue2.js +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue2.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue2.js +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue2.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestion.vue.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +4 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/store/emitters.js +1 -0
- package/js/x-modules/related-prompts/store/emitters.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue2.js +1 -3
- package/js/x-modules/related-tags/components/related-tags.vue2.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-query.vue.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-query.vue2.js +2 -2
- package/js/x-modules/semantic-queries/components/semantic-query.vue2.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +27 -8
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +293 -144
- package/report/x-components.api.md +42 -18
- package/tagging/index.js +1 -1
- package/types/components/global-x-bus.vue.d.ts +4 -0
- package/types/components/global-x-bus.vue.d.ts.map +1 -1
- package/types/components/modals/base-events-modal-close.vue.d.ts +3 -3
- package/types/components/modals/base-events-modal-open.vue.d.ts +3 -3
- package/types/components/snippet-callbacks.vue.d.ts +2 -0
- package/types/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/composables/use-getter.d.ts +13 -3
- package/types/composables/use-getter.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets/facets.vue.d.ts +4 -4
- package/types/x-modules/facets/components/facets/facets.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/all-filter.vue.d.ts +4 -4
- package/types/x-modules/facets/components/filters/all-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +2 -0
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts +2 -0
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/history-queries.vue.d.ts +1 -1
- package/types/x-modules/history-queries/components/history-query.vue.d.ts +1 -1
- package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts +3 -3
- package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-queries.vue.d.ts +1 -1
- package/types/x-modules/popular-searches/components/popular-searches.vue.d.ts +1 -1
- package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts +1 -1
- package/types/x-modules/query-suggestions/components/query-suggestions.vue.d.ts +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/events.types.d.ts +10 -1
- package/types/x-modules/related-prompts/events.types.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/emitters.d.ts +1 -0
- package/types/x-modules/related-prompts/store/emitters.d.ts.map +1 -1
- package/types/x-modules/related-tags/components/related-tags.vue.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts +1 -1
- package/types/x-modules/tagging/wiring.d.ts +23 -4
- package/types/x-modules/tagging/wiring.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RelatedPromptsRequest, Result } from '@empathyco/x-types';
|
|
1
|
+
import type { RelatedPrompt, RelatedPromptsRequest, Result } from '@empathyco/x-types';
|
|
2
2
|
/**
|
|
3
3
|
* Dictionary of the events of RelatedPrompts XModule, where each key is the event name,
|
|
4
4
|
* and the value is the event payload type or `void` if it has no payload.
|
|
@@ -37,5 +37,14 @@ export interface RelatedPromptsXEvents {
|
|
|
37
37
|
* Payload: The result that the user clicked.
|
|
38
38
|
*/
|
|
39
39
|
UserClickedARelatedPromptAdd2Cart: Result;
|
|
40
|
+
/**
|
|
41
|
+
* The response list of related prompts has changed.
|
|
42
|
+
* Payload: The new related-prompts list.
|
|
43
|
+
*/
|
|
44
|
+
RelatedPromptsResponseChanged: RelatedPrompt[];
|
|
45
|
+
/**
|
|
46
|
+
* The related prompts has been unmounted.
|
|
47
|
+
*/
|
|
48
|
+
RelatedPromptsUnmounted: void;
|
|
40
49
|
}
|
|
41
50
|
//# sourceMappingURL=events.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/related-prompts/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/related-prompts/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEtF;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,4BAA4B,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC1D;;;OAGG;IACH,4BAA4B,EAAE,MAAM,CAAA;IACpC;;;OAGG;IACH,0BAA0B,EAAE,MAAM,CAAA;IAClC;;;OAGG;IACH,+BAA+B,EAAE,MAAM,CAAA;IACvC;;;OAGG;IACH,+BAA+B,EAAE,MAAM,CAAA;IACvC;;;OAGG;IACH,iCAAiC,EAAE,MAAM,CAAA;IACzC;;;OAGG;IACH,6BAA6B,EAAE,aAAa,EAAE,CAAA;IAC9C;;OAEG;IACH,uBAAuB,EAAE,IAAI,CAAA;CAC9B"}
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
export declare const relatedPromptsStoreEmitters: {
|
|
7
7
|
RelatedPromptsRequestUpdated: (_: import("./types").RelatedPromptsState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").RelatedPromptsState, import("./types").RelatedPromptsGetters>>) => import("@empathyco/x-types").RelatedPromptsRequest | null;
|
|
8
8
|
SelectedRelatedPromptChanged: (state: import("./types").RelatedPromptsState) => number;
|
|
9
|
+
RelatedPromptsResponseChanged: (state: import("./types").RelatedPromptsState) => import("@empathyco/x-types").RelatedPrompt[];
|
|
9
10
|
};
|
|
10
11
|
//# sourceMappingURL=emitters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/store/emitters.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/store/emitters.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;CAItC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-tags.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-tags/components/related-tags.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAOtC;;;;;;;;GAQG;;IAQC;;;;OAIG;;;;;IAMH;;;;OAIG;;IAGH;;;;OAIG;;;;;IAMH,0CAA0C;;;;;IA3B1C;;;;OAIG;;;;;IAMH;;;;OAIG;;IAGH;;;;OAIG;;;;;IAMH,0CAA0C;;;;;;AAlC9C,
|
|
1
|
+
{"version":3,"file":"related-tags.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-tags/components/related-tags.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAOtC;;;;;;;;GAQG;;IAQC;;;;OAIG;;;;;IAMH;;;;OAIG;;IAGH;;;;OAIG;;;;;IAMH,0CAA0C;;;;;IA3B1C;;;;OAIG;;;;;IAMH;;;;OAIG;;IAGH;;;;OAIG;;;;;IAMH,0CAA0C;;;;;;AAlC9C,wBAgDE"}
|
|
@@ -95,17 +95,33 @@ export declare const trackElementDisplayedWire: Wire<Taggable>;
|
|
|
95
95
|
*/
|
|
96
96
|
export declare function createTrackWire(property: keyof Tagging): Wire<Taggable>;
|
|
97
97
|
/**
|
|
98
|
-
* Performs a track of a query with no results that used
|
|
98
|
+
* Performs a track of a query with no results that used related prompts or semantic queries as fallback.
|
|
99
|
+
* The totalHits will be changed to -1 if related prompts or semantic queries are found in order to differentiate
|
|
100
|
+
* it from scenarios where the user encounters a no-results page without any related prompts or semantic queries.
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare const trackNoResultsQueryWithFallbackWire: Wire<any>;
|
|
105
|
+
/**.
|
|
106
|
+
* Debounced version of {@link trackNoResultsQueryWithFallbackWire}
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare const trackNoResultsQueryWithFallbackWireDebounced: Wire<any>;
|
|
111
|
+
/**
|
|
112
|
+
* Performs a track of a query with no results that used semantic queries as fallback.
|
|
99
113
|
* The totalHits will be changed to -1 if semantic queries are found in order to differentiate
|
|
100
114
|
* it from scenarios where the user encounters a no-results page without any semantic queries.
|
|
101
115
|
*
|
|
102
116
|
* @public
|
|
117
|
+
* @deprecated - Use {@link trackNoResultsQueryWithFallbackWire} instead.
|
|
103
118
|
*/
|
|
104
119
|
export declare const trackNoResultsQueryWithSemanticsWire: Wire<any>;
|
|
105
|
-
|
|
106
|
-
* Debounced version of {@link
|
|
120
|
+
/**
|
|
121
|
+
* Debounced version of {@link trackNoResultsQueryWithFallbackWire}
|
|
107
122
|
*
|
|
108
123
|
* @public
|
|
124
|
+
* @deprecated - Use {@link trackNoResultsQueryWithFallbackWireDebounced} instead.
|
|
109
125
|
*/
|
|
110
126
|
export declare const trackNoResultsQueryWithSemanticsWireDebounced: Wire<any>;
|
|
111
127
|
/**
|
|
@@ -199,7 +215,10 @@ export declare const taggingWiring: {
|
|
|
199
215
|
setQueryTaggingFromQueryPreview: Wire<Taggable>;
|
|
200
216
|
};
|
|
201
217
|
SemanticQueriesResponseChanged: {
|
|
202
|
-
|
|
218
|
+
trackNoResultsQueryWithFallbackWireDebounced: Wire<any>;
|
|
219
|
+
};
|
|
220
|
+
RelatedPromptsResponseChanged: {
|
|
221
|
+
trackNoResultsQueryWithFallbackWireDebounced: Wire<any>;
|
|
203
222
|
};
|
|
204
223
|
ModuleRegistered: {
|
|
205
224
|
setNoResultsTaggingEnabledWire: Wire<keyof import("../x-modules.types").XModulesTree>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/tagging/wiring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,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;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,sBAa/B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,gBAA0C,CAAA;AAEtF;;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