@empathyco/x-components 6.0.0-alpha.235 → 6.0.0-alpha.236

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 (41) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/docs/API-reference/api/x-components.fetchandsavequerypreviewresultsenrichmentwire.md +13 -0
  3. package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
  4. package/docs/API-reference/api/x-components.md +11 -0
  5. package/docs/API-reference/api/x-components.queriespreviewactions.fetchandsavequerypreviewresultsenrichment.md +13 -0
  6. package/docs/API-reference/api/x-components.queriespreviewactions.md +19 -0
  7. package/docs/API-reference/api/x-components.queriespreviewmutations.md +19 -0
  8. package/docs/API-reference/api/x-components.queriespreviewmutations.updatequerypreviewresultsfromenrichment.md +16 -0
  9. package/docs/API-reference/api/x-components.queriespreviewxevents.md +19 -0
  10. package/docs/API-reference/api/x-components.queriespreviewxevents.querypreviewresultreceived.md +13 -0
  11. package/docs/API-reference/api/x-components.simplefilter.md +1 -0
  12. package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
  13. package/js/index.js +1 -1
  14. package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview-results-enrichment.action.js +21 -0
  15. package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview-results-enrichment.action.js.map +1 -0
  16. package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js +5 -2
  17. package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js.map +1 -1
  18. package/js/x-modules/queries-preview/store/module.js +9 -0
  19. package/js/x-modules/queries-preview/store/module.js.map +1 -1
  20. package/js/x-modules/queries-preview/wiring.js +11 -2
  21. package/js/x-modules/queries-preview/wiring.js.map +1 -1
  22. package/package.json +2 -2
  23. package/queries-preview/index.js +1 -1
  24. package/report/x-components.api.json +182 -5
  25. package/report/x-components.api.md +19 -4
  26. package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
  27. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
  28. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
  29. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  30. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
  31. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  32. package/types/src/x-modules/queries-preview/events.types.d.ts +5 -0
  33. package/types/src/x-modules/queries-preview/events.types.d.ts.map +1 -1
  34. package/types/src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview-results-enrichment.action.d.ts +3 -0
  35. package/types/src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview-results-enrichment.action.d.ts.map +1 -0
  36. package/types/src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts.map +1 -1
  37. package/types/src/x-modules/queries-preview/store/module.d.ts.map +1 -1
  38. package/types/src/x-modules/queries-preview/store/types.d.ts +17 -0
  39. package/types/src/x-modules/queries-preview/store/types.d.ts.map +1 -1
  40. package/types/src/x-modules/queries-preview/wiring.d.ts +9 -0
  41. package/types/src/x-modules/queries-preview/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
+ ## [6.0.0-alpha.236](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.235...@empathyco/x-components@6.0.0-alpha.236) (2026-04-07)
7
+
8
+ ### Features
9
+
10
+ * **queries-preview:** add result enrichment support (#2072)
11
+
12
+
6
13
  ## [6.0.0-alpha.235](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.234...@empathyco/x-components@6.0.0-alpha.235) (2026-04-06)
7
14
 
8
15
  **Note:** Version bump only for package @empathyco/x-components
@@ -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; [fetchAndSaveQueryPreviewResultsEnrichmentWire](./x-components.fetchandsavequerypreviewresultsenrichmentwire.md)
4
+
5
+ ## fetchAndSaveQueryPreviewResultsEnrichmentWire variable
6
+
7
+ Requests and stores the enrichment results for the query preview results.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ fetchAndSaveQueryPreviewResultsEnrichmentWire: import("../..").Wire<import("./store").QueryPreviewItem>
13
+ ```
@@ -116,6 +116,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
116
116
  cache: boolean;
117
117
  } | undefined;
118
118
  QueriesPreviewChanged?: Dictionary<import("../../../queries-preview").QueryPreviewItem> | undefined;
119
+ QueryPreviewResultReceived?: import("../../../queries-preview").QueryPreviewItem | undefined;
119
120
  QuerySuggestionsChanged?: import("@empathyco/x-types").Suggestion[] | undefined;
120
121
  QuerySuggestionsRequestUpdated?: import("@empathyco/x-types").QuerySuggestionsRequest | null | undefined;
121
122
  UserSelectedAQuerySuggestion?: import("@empathyco/x-types").Suggestion | undefined;
@@ -4724,6 +4724,17 @@ Requests and stores the enrichment results for the partial results.
4724
4724
  Default implementation for the [QueriesPreviewActions.fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md)<!-- -->.
4725
4725
 
4726
4726
 
4727
+ </td></tr>
4728
+ <tr><td>
4729
+
4730
+ [fetchAndSaveQueryPreviewResultsEnrichmentWire](./x-components.fetchandsavequerypreviewresultsenrichmentwire.md)
4731
+
4732
+
4733
+ </td><td>
4734
+
4735
+ Requests and stores the enrichment results for the query preview results.
4736
+
4737
+
4727
4738
  </td></tr>
4728
4739
  <tr><td>
4729
4740
 
@@ -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; [QueriesPreviewActions](./x-components.queriespreviewactions.md) &gt; [fetchAndSaveQueryPreviewResultsEnrichment](./x-components.queriespreviewactions.fetchandsavequerypreviewresultsenrichment.md)
4
+
5
+ ## QueriesPreviewActions.fetchAndSaveQueryPreviewResultsEnrichment property
6
+
7
+ Requests and stores the enrichment results for the query preview results.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ fetchAndSaveQueryPreviewResultsEnrichment: (queryPreviewItem: QueryPreviewItem) => void;
13
+ ```
@@ -53,6 +53,25 @@ Description
53
53
  Requests the results for a cacheable query preview and saves them in the state.
54
54
 
55
55
 
56
+ </td></tr>
57
+ <tr><td>
58
+
59
+ [fetchAndSaveQueryPreviewResultsEnrichment](./x-components.queriespreviewactions.fetchandsavequerypreviewresultsenrichment.md)
60
+
61
+
62
+ </td><td>
63
+
64
+
65
+ </td><td>
66
+
67
+ (queryPreviewItem: [QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->) =&gt; void
68
+
69
+
70
+ </td><td>
71
+
72
+ Requests and stores the enrichment results for the query preview results.
73
+
74
+
56
75
  </td></tr>
57
76
  <tr><td>
58
77
 
@@ -187,6 +187,25 @@ Sets the status of a query preview request.
187
187
  Updates a result with new fields.
188
188
 
189
189
 
190
+ </td></tr>
191
+ <tr><td>
192
+
193
+ [updateQueryPreviewResultsFromEnrichment](./x-components.queriespreviewmutations.updatequerypreviewresultsfromenrichment.md)
194
+
195
+
196
+ </td><td>
197
+
198
+
199
+ </td><td>
200
+
201
+ (enrichmentPayload: { queryPreviewItem: [QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->; enrichmentResults: any\[\]; }) =&gt; void
202
+
203
+
204
+ </td><td>
205
+
206
+ Updates the query preview results with the enrichment results.
207
+
208
+
190
209
  </td></tr>
191
210
  </tbody></table>
192
211
 
@@ -0,0 +1,16 @@
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; [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) &gt; [updateQueryPreviewResultsFromEnrichment](./x-components.queriespreviewmutations.updatequerypreviewresultsfromenrichment.md)
4
+
5
+ ## QueriesPreviewMutations.updateQueryPreviewResultsFromEnrichment property
6
+
7
+ Updates the query preview results with the enrichment results.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ updateQueryPreviewResultsFromEnrichment: (enrichmentPayload: {
13
+ queryPreviewItem: QueryPreviewItem;
14
+ enrichmentResults: any[];
15
+ }) => void;
16
+ ```
@@ -91,6 +91,25 @@ SearchRequest
91
91
  Any property of cacheable queries preview request has changed. Payload: The new [request](./x-types.searchrequest.md)<!-- -->.
92
92
 
93
93
 
94
+ </td></tr>
95
+ <tr><td>
96
+
97
+ [QueryPreviewResultReceived](./x-components.queriespreviewxevents.querypreviewresultreceived.md)
98
+
99
+
100
+ </td><td>
101
+
102
+
103
+ </td><td>
104
+
105
+ [QueryPreviewItem](./x-components.querypreviewitem.md)
106
+
107
+
108
+ </td><td>
109
+
110
+ A query preview result has been received and cached. Payload: The [QueryPreviewItem](./x-components.querypreviewitem.md) that was cached.
111
+
112
+
94
113
  </td></tr>
95
114
  <tr><td>
96
115
 
@@ -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; [QueriesPreviewXEvents](./x-components.queriespreviewxevents.md) &gt; [QueryPreviewResultReceived](./x-components.queriespreviewxevents.querypreviewresultreceived.md)
4
+
5
+ ## QueriesPreviewXEvents.QueryPreviewResultReceived property
6
+
7
+ A query preview result has been received and cached. Payload: The [QueryPreviewItem](./x-components.querypreviewitem.md) that was cached.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ QueryPreviewResultReceived: QueryPreviewItem;
13
+ ```
@@ -113,6 +113,7 @@ _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
113
113
  cache: boolean;
114
114
  } | undefined;
115
115
  QueriesPreviewChanged?: Dictionary<import("../../../queries-preview").QueryPreviewItem> | undefined;
116
+ QueryPreviewResultReceived?: import("../../../queries-preview").QueryPreviewItem | undefined;
116
117
  QuerySuggestionsChanged?: import("@empathyco/x-types").Suggestion[] | undefined;
117
118
  QuerySuggestionsRequestUpdated?: import("@empathyco/x-types").QuerySuggestionsRequest | null | undefined;
118
119
  UserSelectedAQuerySuggestion?: import("@empathyco/x-types").Suggestion | undefined;
@@ -103,6 +103,7 @@ _default: import("vue").DefineComponent<{}, {
103
103
  cache: boolean;
104
104
  }, metadata: WireMetadata) => unknown;
105
105
  QueriesPreviewChanged: (payload: import("@empathyco/x-utils").Dictionary<import("..").QueryPreviewItem>, metadata: WireMetadata) => unknown;
106
+ QueryPreviewResultReceived: (payload: import("..").QueryPreviewItem, metadata: WireMetadata) => unknown;
106
107
  QuerySuggestionsChanged: (payload: import("@empathyco/x-types").Suggestion[], metadata: WireMetadata) => unknown;
107
108
  QuerySuggestionsRequestUpdated: (payload: import("@empathyco/x-types").QuerySuggestionsRequest | null, metadata: WireMetadata) => unknown;
108
109
  UserSelectedAQuerySuggestion: (payload: import("@empathyco/x-types").Suggestion, metadata: WireMetadata) => unknown;
package/js/index.js CHANGED
@@ -340,7 +340,7 @@ export { fetchAndSaveQueryPreview } from './x-modules/queries-preview/store/acti
340
340
  export { fetchQueryPreview } from './x-modules/queries-preview/store/actions/fetch-query-preview.action.js';
341
341
  export { queriesPreviewEmitters } from './x-modules/queries-preview/store/emitters.js';
342
342
  export { queriesPreviewXStoreModule } from './x-modules/queries-preview/store/module.js';
343
- export { addQueryPreviewInstanceWire, clearQueryPreviewWire, clearSelectedQueryPreviewWire, fetchAndSaveQueryPreviewWire, queriesPreviewWiring, removeQueryPreviewInstanceWire, setQueriesPreviewExtraParamsWire, setSelectedQueryPreviewWire } from './x-modules/queries-preview/wiring.js';
343
+ export { addQueryPreviewInstanceWire, clearQueryPreviewWire, clearSelectedQueryPreviewWire, fetchAndSaveQueryPreviewResultsEnrichmentWire, fetchAndSaveQueryPreviewWire, queriesPreviewWiring, removeQueryPreviewInstanceWire, setQueriesPreviewExtraParamsWire, setSelectedQueryPreviewWire } from './x-modules/queries-preview/wiring.js';
344
344
  export { queriesPreviewXModule } from './x-modules/queries-preview/x-module.js';
345
345
  export { default as QuerySuggestion } from './x-modules/query-suggestions/components/query-suggestion.vue.js';
346
346
  export { default as QuerySuggestions } from './x-modules/query-suggestions/components/query-suggestions.vue.js';
@@ -0,0 +1,21 @@
1
+ import { DefaultResultsEnrichmentService } from '../../../../services/results-enrichment.service.js';
2
+
3
+ const fetchAndSaveQueryPreviewResultsEnrichment = async ({ commit }, queryPreviewItem) => {
4
+ if (!queryPreviewItem || !queryPreviewItem.results) {
5
+ return;
6
+ }
7
+ DefaultResultsEnrichmentService.instance
8
+ .fetchResults(queryPreviewItem.results)
9
+ .then(enrichmentResults => {
10
+ commit('updateQueryPreviewResultsFromEnrichment', {
11
+ queryPreviewItem,
12
+ enrichmentResults,
13
+ });
14
+ })
15
+ .catch(error => {
16
+ console.error(error);
17
+ });
18
+ };
19
+
20
+ export { fetchAndSaveQueryPreviewResultsEnrichment };
21
+ //# sourceMappingURL=fetch-and-save-query-preview-results-enrichment.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-and-save-query-preview-results-enrichment.action.js","sources":["../../../../../../src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview-results-enrichment.action.ts"],"sourcesContent":["import type { QueriesPreviewXStoreModule } from '../types'\nimport { DefaultResultsEnrichmentService } from '../../../../services/results-enrichment.service'\n\nexport const fetchAndSaveQueryPreviewResultsEnrichment: QueriesPreviewXStoreModule['actions']['fetchAndSaveQueryPreviewResultsEnrichment'] =\n async ({ commit }, queryPreviewItem) => {\n if (!queryPreviewItem || !queryPreviewItem.results) {\n return\n }\n\n DefaultResultsEnrichmentService.instance\n .fetchResults(queryPreviewItem.results)\n .then(enrichmentResults => {\n commit('updateQueryPreviewResultsFromEnrichment', {\n queryPreviewItem,\n enrichmentResults,\n })\n })\n .catch(error => {\n console.error(error)\n })\n }\n"],"names":[],"mappings":";;AAGO,MAAM,yCAAyC,GACpD,OAAO,EAAE,MAAM,EAAE,EAAE,gBAAgB,KAAI;IACrC,IAAI,CAAC,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE;QAClD;IACF;AAEA,IAAA,+BAA+B,CAAC;AAC7B,SAAA,YAAY,CAAC,gBAAgB,CAAC,OAAO;SACrC,IAAI,CAAC,iBAAiB,IAAG;QACxB,MAAM,CAAC,yCAAyC,EAAE;YAChD,gBAAgB;YAChB,iBAAiB;AAClB,SAAA,CAAC;AACJ,IAAA,CAAC;SACA,KAAK,CAAC,KAAK,IAAG;AACb,QAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACtB,IAAA,CAAC,CAAC;AACN;;;;"}
@@ -1,3 +1,4 @@
1
+ import { XPlugin } from '../../../../plugins/x-plugin.js';
1
2
  import { getHashFromQueryPreviewItem } from '../../utils/get-hash-from-query-preview.js';
2
3
 
3
4
  /**
@@ -25,7 +26,7 @@ const fetchAndSaveQueryPreview = async ({ dispatch, commit }, request) => {
25
26
  commit('setQueryPreviewCached', queryPreviewItem);
26
27
  return dispatch('fetchQueryPreview', request)
27
28
  .then(response => {
28
- commit('setQueryPreviewCached', {
29
+ const cachedItem = {
29
30
  request,
30
31
  results: response?.results ?? [],
31
32
  status: 'success',
@@ -33,7 +34,9 @@ const fetchAndSaveQueryPreview = async ({ dispatch, commit }, request) => {
33
34
  instances: 1,
34
35
  displayTagging: response?.displayTagging ?? undefined,
35
36
  queryTagging: response?.queryTagging ?? undefined,
36
- });
37
+ };
38
+ commit('setQueryPreviewCached', cachedItem);
39
+ void XPlugin.bus.emit('QueryPreviewResultReceived', cachedItem);
37
40
  })
38
41
  .catch(error => {
39
42
  console.error(error);
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-and-save-query-preview.action.js","sources":["../../../../../../src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.ts"],"sourcesContent":["import type { QueriesPreviewXStoreModule, QueryPreviewItem } from '../types'\nimport { getHashFromQueryPreviewItem } from '../../utils/get-hash-from-query-preview'\n\n/**\n * Default implementation for the {@link QueriesPreviewActions.fetchAndSaveQueryPreview}.\n *\n * @param _context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,\n * provided by Vuex.\n * @param request - The query preview request to make.\n * @returns A Promise of a SearchResponse when it fetches the results.\n *\n * @public\n */\n\nexport const fetchAndSaveQueryPreview: QueriesPreviewXStoreModule['actions']['fetchAndSaveQueryPreview'] =\n async ({ dispatch, commit }, request) => {\n const { query } = request\n\n if (!query) {\n return\n }\n\n const queryPreviewItem: QueryPreviewItem = {\n request,\n results: [],\n status: 'loading',\n totalResults: 0,\n instances: 1,\n }\n\n commit('setQueryPreviewCached', queryPreviewItem)\n\n return dispatch('fetchQueryPreview', request)\n .then(response => {\n commit('setQueryPreviewCached', {\n request,\n results: response?.results ?? [],\n status: 'success',\n totalResults: response?.totalResults ?? 0,\n instances: 1,\n displayTagging: response?.displayTagging ?? undefined,\n queryTagging: response?.queryTagging ?? undefined,\n })\n })\n .catch(error => {\n console.error(error)\n const queryPreviewHash = getHashFromQueryPreviewItem(queryPreviewItem)\n commit('setStatus', { queryPreviewHash, status: 'error' })\n })\n }\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;AAEI,MAAM,wBAAwB,GACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,KAAI;AACtC,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO;IAEzB,IAAI,CAAC,KAAK,EAAE;QACV;IACF;AAEA,IAAA,MAAM,gBAAgB,GAAqB;QACzC,OAAO;AACP,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,YAAY,EAAE,CAAC;AACf,QAAA,SAAS,EAAE,CAAC;KACb;AAED,IAAA,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAAC;AAEjD,IAAA,OAAO,QAAQ,CAAC,mBAAmB,EAAE,OAAO;SACzC,IAAI,CAAC,QAAQ,IAAG;QACf,MAAM,CAAC,uBAAuB,EAAE;YAC9B,OAAO;AACP,YAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,EAAE;AAChC,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,CAAC;AACzC,YAAA,SAAS,EAAE,CAAC;AACZ,YAAA,cAAc,EAAE,QAAQ,EAAE,cAAc,IAAI,SAAS;AACrD,YAAA,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,SAAS;AAClD,SAAA,CAAC;AACJ,IAAA,CAAC;SACA,KAAK,CAAC,KAAK,IAAG;AACb,QAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,QAAA,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,gBAAgB,CAAC;QACtE,MAAM,CAAC,WAAW,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC5D,IAAA,CAAC,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"fetch-and-save-query-preview.action.js","sources":["../../../../../../src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.ts"],"sourcesContent":["import type { QueriesPreviewXStoreModule, QueryPreviewItem } from '../types'\nimport { XPlugin } from '../../../../plugins/x-plugin'\nimport { getHashFromQueryPreviewItem } from '../../utils/get-hash-from-query-preview'\n\n/**\n * Default implementation for the {@link QueriesPreviewActions.fetchAndSaveQueryPreview}.\n *\n * @param _context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,\n * provided by Vuex.\n * @param request - The query preview request to make.\n * @returns A Promise of a SearchResponse when it fetches the results.\n *\n * @public\n */\nexport const fetchAndSaveQueryPreview: QueriesPreviewXStoreModule['actions']['fetchAndSaveQueryPreview'] =\n async ({ dispatch, commit }, request) => {\n const { query } = request\n\n if (!query) {\n return\n }\n\n const queryPreviewItem: QueryPreviewItem = {\n request,\n results: [],\n status: 'loading',\n totalResults: 0,\n instances: 1,\n }\n\n commit('setQueryPreviewCached', queryPreviewItem)\n\n return dispatch('fetchQueryPreview', request)\n .then(response => {\n const cachedItem: QueryPreviewItem = {\n request,\n results: response?.results ?? [],\n status: 'success',\n totalResults: response?.totalResults ?? 0,\n instances: 1,\n displayTagging: response?.displayTagging ?? undefined,\n queryTagging: response?.queryTagging ?? undefined,\n }\n commit('setQueryPreviewCached', cachedItem)\n void XPlugin.bus.emit('QueryPreviewResultReceived', cachedItem)\n })\n .catch(error => {\n console.error(error)\n const queryPreviewHash = getHashFromQueryPreviewItem(queryPreviewItem)\n commit('setStatus', { queryPreviewHash, status: 'error' })\n })\n }\n"],"names":[],"mappings":";;;AAIA;;;;;;;;;AASG;AACI,MAAM,wBAAwB,GACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,KAAI;AACtC,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO;IAEzB,IAAI,CAAC,KAAK,EAAE;QACV;IACF;AAEA,IAAA,MAAM,gBAAgB,GAAqB;QACzC,OAAO;AACP,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,YAAY,EAAE,CAAC;AACf,QAAA,SAAS,EAAE,CAAC;KACb;AAED,IAAA,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAAC;AAEjD,IAAA,OAAO,QAAQ,CAAC,mBAAmB,EAAE,OAAO;SACzC,IAAI,CAAC,QAAQ,IAAG;AACf,QAAA,MAAM,UAAU,GAAqB;YACnC,OAAO;AACP,YAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,EAAE;AAChC,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,CAAC;AACzC,YAAA,SAAS,EAAE,CAAC;AACZ,YAAA,cAAc,EAAE,QAAQ,EAAE,cAAc,IAAI,SAAS;AACrD,YAAA,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,SAAS;SAClD;AACD,QAAA,MAAM,CAAC,uBAAuB,EAAE,UAAU,CAAC;QAC3C,KAAK,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,UAAU,CAAC;AACjE,IAAA,CAAC;SACA,KAAK,CAAC,KAAK,IAAG;AACb,QAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,QAAA,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,gBAAgB,CAAC;QACtE,MAAM,CAAC,WAAW,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC5D,IAAA,CAAC,CAAC;AACN;;;;"}
@@ -1,5 +1,7 @@
1
+ import { DefaultResultsEnrichmentService } from '../../../services/results-enrichment.service.js';
1
2
  import { mergeConfig, setConfig } from '../../../store/utils/config-store.utils.js';
2
3
  import { getHashFromQueryPreviewItem } from '../utils/get-hash-from-query-preview.js';
4
+ import { fetchAndSaveQueryPreviewResultsEnrichment } from './actions/fetch-and-save-query-preview-results-enrichment.action.js';
3
5
  import { fetchAndSaveQueryPreview } from './actions/fetch-and-save-query-preview.action.js';
4
6
  import { fetchQueryPreview } from './actions/fetch-query-preview.action.js';
5
7
  import { loadedQueriesPreview } from './getters/loaded-queries-preview.getter.js';
@@ -60,10 +62,17 @@ const queriesPreviewXStoreModule = {
60
62
  Object.assign(queryPreviewResult, result);
61
63
  }
62
64
  },
65
+ updateQueryPreviewResultsFromEnrichment(state, { queryPreviewItem, enrichmentResults }) {
66
+ const queryPreview = state.queriesPreview[getHashFromQueryPreviewItem(queryPreviewItem)];
67
+ if (queryPreview) {
68
+ DefaultResultsEnrichmentService.instance.updateResults(queryPreview.results, enrichmentResults);
69
+ }
70
+ },
63
71
  },
64
72
  actions: {
65
73
  fetchQueryPreview,
66
74
  fetchAndSaveQueryPreview,
75
+ fetchAndSaveQueryPreviewResultsEnrichment,
67
76
  },
68
77
  };
69
78
 
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../../../../../src/x-modules/queries-preview/store/module.ts"],"sourcesContent":["import type { QueriesPreviewXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { getHashFromQueryPreviewItem } from '../utils/get-hash-from-query-preview'\nimport { fetchAndSaveQueryPreview } from './actions/fetch-and-save-query-preview.action'\nimport { fetchQueryPreview } from './actions/fetch-query-preview.action'\nimport { loadedQueriesPreview } from './getters/loaded-queries-preview.getter'\n\n/**\n * {@link XStoreModule} For the `queries-preview` module.\n *\n * @internal\n */\nexport const queriesPreviewXStoreModule: QueriesPreviewXStoreModule = {\n state: () => ({\n config: {\n maxItemsToRequest: 24,\n },\n queriesPreview: {},\n selectedQueryPreview: {\n query: '',\n extraParams: undefined,\n filters: undefined,\n },\n params: {},\n }),\n getters: { loadedQueriesPreview },\n mutations: {\n clearQueryPreview(state, queryPreviewHash) {\n delete state.queriesPreview[queryPreviewHash]\n },\n setParams(state, params) {\n state.params = params\n },\n setQueryPreviewCached(state, queryPreview) {\n state.queriesPreview[getHashFromQueryPreviewItem(queryPreview)] = queryPreview\n },\n setStatus(state, { queryPreviewHash, status }) {\n state.queriesPreview[queryPreviewHash].status = status\n },\n setSelectedQueryPreview(state, selectedQueryPreview) {\n state.selectedQueryPreview = selectedQueryPreview\n },\n setConfig,\n mergeConfig,\n addQueryPreviewInstance(state, queryPreviewHash) {\n if (state.queriesPreview[queryPreviewHash]) {\n state.queriesPreview[queryPreviewHash].instances += 1\n }\n },\n removeQueryPreviewInstance(state, { queryPreviewHash, cache }) {\n if (state.queriesPreview[queryPreviewHash]) {\n state.queriesPreview[queryPreviewHash].instances -= 1\n\n if (!cache && state.queriesPreview[queryPreviewHash].instances === 0) {\n delete state.queriesPreview[queryPreviewHash]\n }\n }\n },\n updateAQueryPreviewResult(state, { result, queryPreviewHash }) {\n const queryPreviewResult = state.queriesPreview[queryPreviewHash]?.results.find(\n resultPreview => resultPreview.id === result.id,\n )\n if (queryPreviewResult) {\n Object.assign(queryPreviewResult, result)\n }\n },\n },\n actions: {\n fetchQueryPreview,\n fetchAndSaveQueryPreview,\n },\n}\n"],"names":[],"mappings":";;;;;;AAOA;;;;AAIG;AACI,MAAM,0BAA0B,GAA+B;AACpE,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE;AACN,YAAA,iBAAiB,EAAE,EAAE;AACtB,SAAA;AACD,QAAA,cAAc,EAAE,EAAE;AAClB,QAAA,oBAAoB,EAAE;AACpB,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,WAAW,EAAE,SAAS;AACtB,YAAA,OAAO,EAAE,SAAS;AACnB,SAAA;AACD,QAAA,MAAM,EAAE,EAAE;KACX,CAAC;IACF,OAAO,EAAE,EAAE,oBAAoB,EAAE;AACjC,IAAA,SAAS,EAAE;QACT,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAA;AACvC,YAAA,OAAO,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;QAC/C,CAAC;QACD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM;QACvB,CAAC;QACD,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAA;YACvC,KAAK,CAAC,cAAc,CAAC,2BAA2B,CAAC,YAAY,CAAC,CAAC,GAAG,YAAY;QAChF,CAAC;AACD,QAAA,SAAS,CAAC,KAAK,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAA;YAC3C,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,MAAM,GAAG,MAAM;QACxD,CAAC;QACD,uBAAuB,CAAC,KAAK,EAAE,oBAAoB,EAAA;AACjD,YAAA,KAAK,CAAC,oBAAoB,GAAG,oBAAoB;QACnD,CAAC;QACD,SAAS;QACT,WAAW;QACX,uBAAuB,CAAC,KAAK,EAAE,gBAAgB,EAAA;AAC7C,YAAA,IAAI,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE;gBAC1C,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,SAAS,IAAI,CAAC;YACvD;QACF,CAAC;AACD,QAAA,0BAA0B,CAAC,KAAK,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAA;AAC3D,YAAA,IAAI,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE;gBAC1C,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,SAAS,IAAI,CAAC;AAErD,gBAAA,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,EAAE;AACpE,oBAAA,OAAO,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;gBAC/C;YACF;QACF,CAAC;AACD,QAAA,yBAAyB,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAA;YAC3D,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAC7E,aAAa,IAAI,aAAa,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAChD;YACD,IAAI,kBAAkB,EAAE;AACtB,gBAAA,MAAM,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC;YAC3C;QACF,CAAC;AACF,KAAA;AACD,IAAA,OAAO,EAAE;QACP,iBAAiB;QACjB,wBAAwB;AACzB,KAAA;;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../../../../../src/x-modules/queries-preview/store/module.ts"],"sourcesContent":["import type { QueriesPreviewXStoreModule } from './types'\nimport { DefaultResultsEnrichmentService } from '../../../services/results-enrichment.service'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { getHashFromQueryPreviewItem } from '../utils/get-hash-from-query-preview'\nimport { fetchAndSaveQueryPreviewResultsEnrichment } from './actions/fetch-and-save-query-preview-results-enrichment.action'\nimport { fetchAndSaveQueryPreview } from './actions/fetch-and-save-query-preview.action'\nimport { fetchQueryPreview } from './actions/fetch-query-preview.action'\nimport { loadedQueriesPreview } from './getters/loaded-queries-preview.getter'\n\n/**\n * {@link XStoreModule} For the `queries-preview` module.\n *\n * @internal\n */\nexport const queriesPreviewXStoreModule: QueriesPreviewXStoreModule = {\n state: () => ({\n config: {\n maxItemsToRequest: 24,\n },\n queriesPreview: {},\n selectedQueryPreview: {\n query: '',\n extraParams: undefined,\n filters: undefined,\n },\n params: {},\n }),\n getters: { loadedQueriesPreview },\n mutations: {\n clearQueryPreview(state, queryPreviewHash) {\n delete state.queriesPreview[queryPreviewHash]\n },\n setParams(state, params) {\n state.params = params\n },\n setQueryPreviewCached(state, queryPreview) {\n state.queriesPreview[getHashFromQueryPreviewItem(queryPreview)] = queryPreview\n },\n setStatus(state, { queryPreviewHash, status }) {\n state.queriesPreview[queryPreviewHash].status = status\n },\n setSelectedQueryPreview(state, selectedQueryPreview) {\n state.selectedQueryPreview = selectedQueryPreview\n },\n setConfig,\n mergeConfig,\n addQueryPreviewInstance(state, queryPreviewHash) {\n if (state.queriesPreview[queryPreviewHash]) {\n state.queriesPreview[queryPreviewHash].instances += 1\n }\n },\n removeQueryPreviewInstance(state, { queryPreviewHash, cache }) {\n if (state.queriesPreview[queryPreviewHash]) {\n state.queriesPreview[queryPreviewHash].instances -= 1\n\n if (!cache && state.queriesPreview[queryPreviewHash].instances === 0) {\n delete state.queriesPreview[queryPreviewHash]\n }\n }\n },\n updateAQueryPreviewResult(state, { result, queryPreviewHash }) {\n const queryPreviewResult = state.queriesPreview[queryPreviewHash]?.results.find(\n resultPreview => resultPreview.id === result.id,\n )\n if (queryPreviewResult) {\n Object.assign(queryPreviewResult, result)\n }\n },\n updateQueryPreviewResultsFromEnrichment(state, { queryPreviewItem, enrichmentResults }) {\n const queryPreview = state.queriesPreview[getHashFromQueryPreviewItem(queryPreviewItem)]\n if (queryPreview) {\n DefaultResultsEnrichmentService.instance.updateResults(\n queryPreview.results,\n enrichmentResults,\n )\n }\n },\n },\n actions: {\n fetchQueryPreview,\n fetchAndSaveQueryPreview,\n fetchAndSaveQueryPreviewResultsEnrichment,\n },\n}\n"],"names":[],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory.js';
1
+ import { namespacedWireDispatch, namespacedWireCommit } from '../../wiring/namespaced-wires.factory.js';
2
2
  import { createWiring } from '../../wiring/wiring.utils.js';
3
3
 
4
4
  /**
@@ -61,6 +61,12 @@ const addQueryPreviewInstanceWire = wireCommit('addQueryPreviewInstance');
61
61
  * @public
62
62
  */
63
63
  const removeQueryPreviewInstanceWire = wireCommit('removeQueryPreviewInstance');
64
+ /**
65
+ * Requests and stores the enrichment results for the query preview results.
66
+ *
67
+ * @public
68
+ */
69
+ const fetchAndSaveQueryPreviewResultsEnrichmentWire = wireDispatch('fetchAndSaveQueryPreviewResultsEnrichment');
64
70
  /**
65
71
  * Wiring configuration for the {@link QueriesPreviewXModule | queriesPreview module}.
66
72
  *
@@ -97,7 +103,10 @@ const queriesPreviewWiring = createWiring({
97
103
  QueryPreviewUnmounted: {
98
104
  removeQueryPreviewInstanceWire,
99
105
  },
106
+ QueryPreviewResultReceived: {
107
+ fetchAndSaveQueryPreviewResultsEnrichmentWire,
108
+ },
100
109
  });
101
110
 
102
- export { addQueryPreviewInstanceWire, clearQueryPreviewWire, clearSelectedQueryPreviewWire, fetchAndSaveQueryPreviewWire, queriesPreviewWiring, removeQueryPreviewInstanceWire, setQueriesPreviewExtraParamsWire, setSelectedQueryPreviewWire };
111
+ export { addQueryPreviewInstanceWire, clearQueryPreviewWire, clearSelectedQueryPreviewWire, fetchAndSaveQueryPreviewResultsEnrichmentWire, fetchAndSaveQueryPreviewWire, queriesPreviewWiring, removeQueryPreviewInstanceWire, setQueriesPreviewExtraParamsWire, setSelectedQueryPreviewWire };
103
112
  //# sourceMappingURL=wiring.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/queries-preview/wiring.ts"],"sourcesContent":["import { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory'\nimport { createWiring } from '../../wiring/wiring.utils'\n\n/**\n * `queriesPreview` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'queriesPreview'\n\n/**\n * WireCommit for {@link QueriesPreviewXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName)\n\n/**\n * WireDispatch for {@link QueriesPreviewXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName)\n\n/**\n * Requests and stores the cacheable query preview results.\n *\n * @public\n */\nexport const fetchAndSaveQueryPreviewWire = wireDispatch('fetchAndSaveQueryPreview')\n\n/**\n * Clears a query preview from queries preview module.\n *\n * @public\n */\nexport const clearQueryPreviewWire = wireCommit('clearQueryPreview')\n\n/**\n * Sets the queries preview state `params`.\n *\n * @public\n */\nexport const setQueriesPreviewExtraParamsWire = wireCommit('setParams')\n\n/**\n * Updates the state with the selected query preview object.\n *\n * @public\n */\nexport const setSelectedQueryPreviewWire = wireCommit('setSelectedQueryPreview')\n\n/**\n * Clears the selected query preview object from queries preview module.\n *\n * @public\n */\nexport const clearSelectedQueryPreviewWire = wireCommit('setSelectedQueryPreview', null)\n\n/**\n * Adds a new instance in a query preview.\n *\n * @public\n */\nexport const addQueryPreviewInstanceWire = wireCommit('addQueryPreviewInstance')\n\n/**\n * Removes an instance in a query preview.\n *\n * @public\n */\nexport const removeQueryPreviewInstanceWire = wireCommit('removeQueryPreviewInstance')\n\n/**\n * Wiring configuration for the {@link QueriesPreviewXModule | queriesPreview module}.\n *\n * @internal\n */\nexport const queriesPreviewWiring = createWiring({\n QueryPreviewRequestUpdated: {\n fetchAndSaveQueryPreviewWire,\n },\n NonCacheableQueryPreviewUnmounted: {\n clearQueryPreviewWire,\n },\n UserAcceptedAQueryPreview: {\n setSelectedQueryPreviewWire,\n },\n ExtraParamsChanged: {\n setQueriesPreviewExtraParamsWire,\n },\n UserClearedQuery: {\n clearSelectedQueryPreviewWire,\n },\n UserClickedCloseX: {\n clearSelectedQueryPreviewWire,\n },\n UserClickedOutOfMainModal: {\n clearSelectedQueryPreviewWire,\n },\n UserSelectedAHistoryQuery: {\n clearSelectedQueryPreviewWire,\n },\n QueryPreviewMounted: {\n addQueryPreviewInstanceWire,\n },\n QueryPreviewUnmounted: {\n removeQueryPreviewInstanceWire,\n },\n})\n"],"names":[],"mappings":";;;AAGA;;;;AAIG;AACH,MAAM,UAAU,GAAG,gBAAgB;AAEnC;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC;AAEnD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC;AAEvD;;;;AAIG;MACU,4BAA4B,GAAG,YAAY,CAAC,0BAA0B;AAEnF;;;;AAIG;MACU,qBAAqB,GAAG,UAAU,CAAC,mBAAmB;AAEnE;;;;AAIG;MACU,gCAAgC,GAAG,UAAU,CAAC,WAAW;AAEtE;;;;AAIG;MACU,2BAA2B,GAAG,UAAU,CAAC,yBAAyB;AAE/E;;;;AAIG;AACI,MAAM,6BAA6B,GAAG,UAAU,CAAC,yBAAyB,EAAE,IAAI;AAEvF;;;;AAIG;MACU,2BAA2B,GAAG,UAAU,CAAC,yBAAyB;AAE/E;;;;AAIG;MACU,8BAA8B,GAAG,UAAU,CAAC,4BAA4B;AAErF;;;;AAIG;AACI,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAC/C,IAAA,0BAA0B,EAAE;QAC1B,4BAA4B;AAC7B,KAAA;AACD,IAAA,iCAAiC,EAAE;QACjC,qBAAqB;AACtB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,2BAA2B;AAC5B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,gCAAgC;AACjC,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,6BAA6B;AAC9B,KAAA;AACD,IAAA,iBAAiB,EAAE;QACjB,6BAA6B;AAC9B,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,6BAA6B;AAC9B,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,6BAA6B;AAC9B,KAAA;AACD,IAAA,mBAAmB,EAAE;QACnB,2BAA2B;AAC5B,KAAA;AACD,IAAA,qBAAqB,EAAE;QACrB,8BAA8B;AAC/B,KAAA;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/queries-preview/wiring.ts"],"sourcesContent":["import { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory'\nimport { createWiring } from '../../wiring/wiring.utils'\n\n/**\n * `queriesPreview` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'queriesPreview'\n\n/**\n * WireCommit for {@link QueriesPreviewXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName)\n\n/**\n * WireDispatch for {@link QueriesPreviewXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName)\n\n/**\n * Requests and stores the cacheable query preview results.\n *\n * @public\n */\nexport const fetchAndSaveQueryPreviewWire = wireDispatch('fetchAndSaveQueryPreview')\n\n/**\n * Clears a query preview from queries preview module.\n *\n * @public\n */\nexport const clearQueryPreviewWire = wireCommit('clearQueryPreview')\n\n/**\n * Sets the queries preview state `params`.\n *\n * @public\n */\nexport const setQueriesPreviewExtraParamsWire = wireCommit('setParams')\n\n/**\n * Updates the state with the selected query preview object.\n *\n * @public\n */\nexport const setSelectedQueryPreviewWire = wireCommit('setSelectedQueryPreview')\n\n/**\n * Clears the selected query preview object from queries preview module.\n *\n * @public\n */\nexport const clearSelectedQueryPreviewWire = wireCommit('setSelectedQueryPreview', null)\n\n/**\n * Adds a new instance in a query preview.\n *\n * @public\n */\nexport const addQueryPreviewInstanceWire = wireCommit('addQueryPreviewInstance')\n\n/**\n * Removes an instance in a query preview.\n *\n * @public\n */\nexport const removeQueryPreviewInstanceWire = wireCommit('removeQueryPreviewInstance')\n\n/**\n * Requests and stores the enrichment results for the query preview results.\n *\n * @public\n */\nexport const fetchAndSaveQueryPreviewResultsEnrichmentWire = wireDispatch(\n 'fetchAndSaveQueryPreviewResultsEnrichment',\n)\n\n/**\n * Wiring configuration for the {@link QueriesPreviewXModule | queriesPreview module}.\n *\n * @internal\n */\nexport const queriesPreviewWiring = createWiring({\n QueryPreviewRequestUpdated: {\n fetchAndSaveQueryPreviewWire,\n },\n NonCacheableQueryPreviewUnmounted: {\n clearQueryPreviewWire,\n },\n UserAcceptedAQueryPreview: {\n setSelectedQueryPreviewWire,\n },\n ExtraParamsChanged: {\n setQueriesPreviewExtraParamsWire,\n },\n UserClearedQuery: {\n clearSelectedQueryPreviewWire,\n },\n UserClickedCloseX: {\n clearSelectedQueryPreviewWire,\n },\n UserClickedOutOfMainModal: {\n clearSelectedQueryPreviewWire,\n },\n UserSelectedAHistoryQuery: {\n clearSelectedQueryPreviewWire,\n },\n QueryPreviewMounted: {\n addQueryPreviewInstanceWire,\n },\n QueryPreviewUnmounted: {\n removeQueryPreviewInstanceWire,\n },\n QueryPreviewResultReceived: {\n fetchAndSaveQueryPreviewResultsEnrichmentWire,\n },\n})\n"],"names":[],"mappings":";;;AAGA;;;;AAIG;AACH,MAAM,UAAU,GAAG,gBAAgB;AAEnC;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC;AAEnD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC;AAEvD;;;;AAIG;MACU,4BAA4B,GAAG,YAAY,CAAC,0BAA0B;AAEnF;;;;AAIG;MACU,qBAAqB,GAAG,UAAU,CAAC,mBAAmB;AAEnE;;;;AAIG;MACU,gCAAgC,GAAG,UAAU,CAAC,WAAW;AAEtE;;;;AAIG;MACU,2BAA2B,GAAG,UAAU,CAAC,yBAAyB;AAE/E;;;;AAIG;AACI,MAAM,6BAA6B,GAAG,UAAU,CAAC,yBAAyB,EAAE,IAAI;AAEvF;;;;AAIG;MACU,2BAA2B,GAAG,UAAU,CAAC,yBAAyB;AAE/E;;;;AAIG;MACU,8BAA8B,GAAG,UAAU,CAAC,4BAA4B;AAErF;;;;AAIG;MACU,6CAA6C,GAAG,YAAY,CACvE,2CAA2C;AAG7C;;;;AAIG;AACI,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAC/C,IAAA,0BAA0B,EAAE;QAC1B,4BAA4B;AAC7B,KAAA;AACD,IAAA,iCAAiC,EAAE;QACjC,qBAAqB;AACtB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,2BAA2B;AAC5B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,gCAAgC;AACjC,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,6BAA6B;AAC9B,KAAA;AACD,IAAA,iBAAiB,EAAE;QACjB,6BAA6B;AAC9B,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,6BAA6B;AAC9B,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,6BAA6B;AAC9B,KAAA;AACD,IAAA,mBAAmB,EAAE;QACnB,2BAA2B;AAC5B,KAAA;AACD,IAAA,qBAAqB,EAAE;QACrB,8BAA8B;AAC/B,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,6CAA6C;AAC9C,KAAA;AACF,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "6.0.0-alpha.235",
3
+ "version": "6.0.0-alpha.236",
4
4
  "description": "Empathy X Components",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -122,5 +122,5 @@
122
122
  "access": "public",
123
123
  "directory": "dist"
124
124
  },
125
- "gitHead": "b01aaf8f64804f2ec094bff4a267f0dd8317c0d7"
125
+ "gitHead": "8f1cae0faf2ddc757c93e7fce615d660b1279c6f"
126
126
  }
@@ -6,5 +6,5 @@ export { fetchAndSaveQueryPreview } from '../js/x-modules/queries-preview/store/
6
6
  export { fetchQueryPreview } from '../js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js';
7
7
  export { queriesPreviewEmitters } from '../js/x-modules/queries-preview/store/emitters.js';
8
8
  export { queriesPreviewXStoreModule } from '../js/x-modules/queries-preview/store/module.js';
9
- export { addQueryPreviewInstanceWire, clearQueryPreviewWire, clearSelectedQueryPreviewWire, fetchAndSaveQueryPreviewWire, queriesPreviewWiring, removeQueryPreviewInstanceWire, setQueriesPreviewExtraParamsWire, setSelectedQueryPreviewWire } from '../js/x-modules/queries-preview/wiring.js';
9
+ export { addQueryPreviewInstanceWire, clearQueryPreviewWire, clearSelectedQueryPreviewWire, fetchAndSaveQueryPreviewResultsEnrichmentWire, fetchAndSaveQueryPreviewWire, queriesPreviewWiring, removeQueryPreviewInstanceWire, setQueriesPreviewExtraParamsWire, setSelectedQueryPreviewWire } from '../js/x-modules/queries-preview/wiring.js';
10
10
  export { queriesPreviewXModule } from '../js/x-modules/queries-preview/x-module.js';
@@ -30409,6 +30409,47 @@
30409
30409
  "endIndex": 3
30410
30410
  }
30411
30411
  },
30412
+ {
30413
+ "kind": "Variable",
30414
+ "canonicalReference": "@empathyco/x-components!fetchAndSaveQueryPreviewResultsEnrichmentWire:var",
30415
+ "docComment": "/**\n * Requests and stores the enrichment results for the query preview results.\n *\n * @public\n */\n",
30416
+ "excerptTokens": [
30417
+ {
30418
+ "kind": "Content",
30419
+ "text": "fetchAndSaveQueryPreviewResultsEnrichmentWire: "
30420
+ },
30421
+ {
30422
+ "kind": "Content",
30423
+ "text": "import(\"../..\")."
30424
+ },
30425
+ {
30426
+ "kind": "Reference",
30427
+ "text": "Wire",
30428
+ "canonicalReference": "@empathyco/x-components!Wire:type"
30429
+ },
30430
+ {
30431
+ "kind": "Content",
30432
+ "text": "<import(\"./store\")."
30433
+ },
30434
+ {
30435
+ "kind": "Reference",
30436
+ "text": "QueryPreviewItem",
30437
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
30438
+ },
30439
+ {
30440
+ "kind": "Content",
30441
+ "text": ">"
30442
+ }
30443
+ ],
30444
+ "fileUrlPath": "src/x-modules/queries-preview/wiring.ts",
30445
+ "isReadonly": true,
30446
+ "releaseTag": "Public",
30447
+ "name": "fetchAndSaveQueryPreviewResultsEnrichmentWire",
30448
+ "variableTypeTokenRange": {
30449
+ "startIndex": 1,
30450
+ "endIndex": 6
30451
+ }
30452
+ },
30412
30453
  {
30413
30454
  "kind": "Variable",
30414
30455
  "canonicalReference": "@empathyco/x-components!fetchAndSaveQueryPreviewWire:var",
@@ -34311,7 +34352,16 @@
34311
34352
  },
34312
34353
  {
34313
34354
  "kind": "Content",
34314
- "text": "> | undefined;\n QuerySuggestionsChanged?: import(\"@empathyco/x-types\")."
34355
+ "text": "> | undefined;\n QueryPreviewResultReceived?: import(\"../../../queries-preview\")."
34356
+ },
34357
+ {
34358
+ "kind": "Reference",
34359
+ "text": "QueryPreviewItem",
34360
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
34361
+ },
34362
+ {
34363
+ "kind": "Content",
34364
+ "text": " | undefined;\n QuerySuggestionsChanged?: import(\"@empathyco/x-types\")."
34315
34365
  },
34316
34366
  {
34317
34367
  "kind": "Reference",
@@ -34977,7 +35027,7 @@
34977
35027
  "name": "HierarchicalFilter",
34978
35028
  "variableTypeTokenRange": {
34979
35029
  "startIndex": 1,
34980
- "endIndex": 280
35030
+ "endIndex": 282
34981
35031
  }
34982
35032
  },
34983
35033
  {
@@ -50078,6 +50128,42 @@
50078
50128
  "endIndex": 4
50079
50129
  }
50080
50130
  },
50131
+ {
50132
+ "kind": "PropertySignature",
50133
+ "canonicalReference": "@empathyco/x-components!QueriesPreviewActions#fetchAndSaveQueryPreviewResultsEnrichment:member",
50134
+ "docComment": "/**\n * Requests and stores the enrichment results for the query preview results.\n *\n * @param queryPreviewItem - The query preview item containing results.\n */\n",
50135
+ "excerptTokens": [
50136
+ {
50137
+ "kind": "Content",
50138
+ "text": "fetchAndSaveQueryPreviewResultsEnrichment: "
50139
+ },
50140
+ {
50141
+ "kind": "Content",
50142
+ "text": "(queryPreviewItem: "
50143
+ },
50144
+ {
50145
+ "kind": "Reference",
50146
+ "text": "QueryPreviewItem",
50147
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
50148
+ },
50149
+ {
50150
+ "kind": "Content",
50151
+ "text": ") => void"
50152
+ },
50153
+ {
50154
+ "kind": "Content",
50155
+ "text": ";"
50156
+ }
50157
+ ],
50158
+ "isReadonly": false,
50159
+ "isOptional": false,
50160
+ "releaseTag": "Public",
50161
+ "name": "fetchAndSaveQueryPreviewResultsEnrichment",
50162
+ "propertyTypeTokenRange": {
50163
+ "startIndex": 1,
50164
+ "endIndex": 4
50165
+ }
50166
+ },
50081
50167
  {
50082
50168
  "kind": "PropertySignature",
50083
50169
  "canonicalReference": "@empathyco/x-components!QueriesPreviewActions#fetchQueryPreview:member",
@@ -50527,6 +50613,42 @@
50527
50613
  "startIndex": 1,
50528
50614
  "endIndex": 4
50529
50615
  }
50616
+ },
50617
+ {
50618
+ "kind": "PropertySignature",
50619
+ "canonicalReference": "@empathyco/x-components!QueriesPreviewMutations#updateQueryPreviewResultsFromEnrichment:member",
50620
+ "docComment": "/**\n * Updates the query preview results with the enrichment results.\n *\n * @param payload - Object containing the query preview item and the enrichment results.\n *\n * @param - payload.queryPreviewItem - The query preview item.\n *\n * @param - payload.enrichmentResults - The enrichment results.\n */\n",
50621
+ "excerptTokens": [
50622
+ {
50623
+ "kind": "Content",
50624
+ "text": "updateQueryPreviewResultsFromEnrichment: "
50625
+ },
50626
+ {
50627
+ "kind": "Content",
50628
+ "text": "(enrichmentPayload: {\n queryPreviewItem: "
50629
+ },
50630
+ {
50631
+ "kind": "Reference",
50632
+ "text": "QueryPreviewItem",
50633
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
50634
+ },
50635
+ {
50636
+ "kind": "Content",
50637
+ "text": ";\n enrichmentResults: any[];\n }) => void"
50638
+ },
50639
+ {
50640
+ "kind": "Content",
50641
+ "text": ";"
50642
+ }
50643
+ ],
50644
+ "isReadonly": false,
50645
+ "isOptional": false,
50646
+ "releaseTag": "Public",
50647
+ "name": "updateQueryPreviewResultsFromEnrichment",
50648
+ "propertyTypeTokenRange": {
50649
+ "startIndex": 1,
50650
+ "endIndex": 4
50651
+ }
50530
50652
  }
50531
50653
  ],
50532
50654
  "extendsTokenRanges": [
@@ -50798,6 +50920,34 @@
50798
50920
  "endIndex": 2
50799
50921
  }
50800
50922
  },
50923
+ {
50924
+ "kind": "PropertySignature",
50925
+ "canonicalReference": "@empathyco/x-components!QueriesPreviewXEvents#QueryPreviewResultReceived:member",
50926
+ "docComment": "/**\n * A query preview result has been received and cached. Payload: The {@link QueryPreviewItem} that was cached.\n */\n",
50927
+ "excerptTokens": [
50928
+ {
50929
+ "kind": "Content",
50930
+ "text": "QueryPreviewResultReceived: "
50931
+ },
50932
+ {
50933
+ "kind": "Reference",
50934
+ "text": "QueryPreviewItem",
50935
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
50936
+ },
50937
+ {
50938
+ "kind": "Content",
50939
+ "text": ";"
50940
+ }
50941
+ ],
50942
+ "isReadonly": false,
50943
+ "isOptional": false,
50944
+ "releaseTag": "Public",
50945
+ "name": "QueryPreviewResultReceived",
50946
+ "propertyTypeTokenRange": {
50947
+ "startIndex": 1,
50948
+ "endIndex": 2
50949
+ }
50950
+ },
50801
50951
  {
50802
50952
  "kind": "PropertySignature",
50803
50953
  "canonicalReference": "@empathyco/x-components!QueriesPreviewXEvents#QueryPreviewUnmounted:member",
@@ -72600,7 +72750,16 @@
72600
72750
  },
72601
72751
  {
72602
72752
  "kind": "Content",
72603
- "text": "> | undefined;\n QuerySuggestionsChanged?: import(\"@empathyco/x-types\")."
72753
+ "text": "> | undefined;\n QueryPreviewResultReceived?: import(\"../../../queries-preview\")."
72754
+ },
72755
+ {
72756
+ "kind": "Reference",
72757
+ "text": "QueryPreviewItem",
72758
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
72759
+ },
72760
+ {
72761
+ "kind": "Content",
72762
+ "text": " | undefined;\n QuerySuggestionsChanged?: import(\"@empathyco/x-types\")."
72604
72763
  },
72605
72764
  {
72606
72765
  "kind": "Reference",
@@ -73167,7 +73326,7 @@
73167
73326
  "name": "SimpleFilter",
73168
73327
  "variableTypeTokenRange": {
73169
73328
  "startIndex": 1,
73170
- "endIndex": 248
73329
+ "endIndex": 250
73171
73330
  }
73172
73331
  },
73173
73332
  {
@@ -75307,6 +75466,24 @@
75307
75466
  "text": "WireMetadata",
75308
75467
  "canonicalReference": "@empathyco/x-components!WireMetadata:interface"
75309
75468
  },
75469
+ {
75470
+ "kind": "Content",
75471
+ "text": ") => unknown;\n QueryPreviewResultReceived: (payload: import(\"..\")."
75472
+ },
75473
+ {
75474
+ "kind": "Reference",
75475
+ "text": "QueryPreviewItem",
75476
+ "canonicalReference": "@empathyco/x-components!QueryPreviewItem:interface"
75477
+ },
75478
+ {
75479
+ "kind": "Content",
75480
+ "text": ", metadata: "
75481
+ },
75482
+ {
75483
+ "kind": "Reference",
75484
+ "text": "WireMetadata",
75485
+ "canonicalReference": "@empathyco/x-components!WireMetadata:interface"
75486
+ },
75310
75487
  {
75311
75488
  "kind": "Content",
75312
75489
  "text": ") => unknown;\n QuerySuggestionsChanged: (payload: import(\"@empathyco/x-types\")."
@@ -76533,7 +76710,7 @@
76533
76710
  "name": "SnippetCallbacks",
76534
76711
  "variableTypeTokenRange": {
76535
76712
  "startIndex": 1,
76536
- "endIndex": 534
76713
+ "endIndex": 538
76537
76714
  }
76538
76715
  },
76539
76716
  {
@@ -3307,6 +3307,9 @@ export const fetchAndSavePopularSearches: (context: PopularSearchesActionContext
3307
3307
  // @public
3308
3308
  export const fetchAndSaveQueryPreview: QueriesPreviewXStoreModule['actions']['fetchAndSaveQueryPreview'];
3309
3309
 
3310
+ // @public
3311
+ export const fetchAndSaveQueryPreviewResultsEnrichmentWire: Wire<QueryPreviewItem>;
3312
+
3310
3313
  // Warning: (ae-forgotten-export) The symbol "SearchRequest" needs to be exported by the entry point index.d.ts
3311
3314
  //
3312
3315
  // @public
@@ -3728,6 +3731,7 @@ queryPreviewHash: string;
3728
3731
  cache: boolean;
3729
3732
  } | undefined;
3730
3733
  QueriesPreviewChanged?: Dictionary<QueryPreviewItem> | undefined;
3734
+ QueryPreviewResultReceived?: QueryPreviewItem | undefined;
3731
3735
  QuerySuggestionsChanged?: Suggestion[] | undefined;
3732
3736
  QuerySuggestionsRequestUpdated?: QuerySuggestionsRequest | null | undefined;
3733
3737
  UserSelectedAQuerySuggestion?: Suggestion | undefined;
@@ -5384,6 +5388,7 @@ export type QueriesPreviewActionContext = XActionContext<QueriesPreviewState, Qu
5384
5388
  // @public
5385
5389
  export interface QueriesPreviewActions {
5386
5390
  fetchAndSaveQueryPreview: (request: SearchRequest) => void;
5391
+ fetchAndSaveQueryPreviewResultsEnrichment: (queryPreviewItem: QueryPreviewItem) => void;
5387
5392
  fetchQueryPreview: (request: SearchRequest) => SearchResponse | null;
5388
5393
  }
5389
5394
 
@@ -5422,6 +5427,10 @@ export interface QueriesPreviewMutations extends ConfigMutations<QueriesPreviewS
5422
5427
  result: Result;
5423
5428
  queryPreviewHash: string;
5424
5429
  }) => void;
5430
+ updateQueryPreviewResultsFromEnrichment: (enrichmentPayload: {
5431
+ queryPreviewItem: QueryPreviewItem;
5432
+ enrichmentResults: any[];
5433
+ }) => void;
5425
5434
  }
5426
5435
 
5427
5436
  // @public
@@ -5467,6 +5476,9 @@ export const queriesPreviewWiring: {
5467
5476
  cache: boolean;
5468
5477
  }>;
5469
5478
  };
5479
+ QueryPreviewResultReceived: {
5480
+ fetchAndSaveQueryPreviewResultsEnrichmentWire: Wire<QueryPreviewItem>;
5481
+ };
5470
5482
  };
5471
5483
 
5472
5484
  // @public
@@ -5474,6 +5486,7 @@ export interface QueriesPreviewXEvents {
5474
5486
  QueriesPreviewChanged: Dictionary<QueryPreviewItem>;
5475
5487
  QueryPreviewMounted: string;
5476
5488
  QueryPreviewRequestUpdated: SearchRequest;
5489
+ QueryPreviewResultReceived: QueryPreviewItem;
5477
5490
  QueryPreviewUnmounted: {
5478
5491
  queryPreviewHash: string;
5479
5492
  cache: boolean;
@@ -7842,6 +7855,7 @@ queryPreviewHash: string;
7842
7855
  cache: boolean;
7843
7856
  } | undefined;
7844
7857
  QueriesPreviewChanged?: Dictionary<QueryPreviewItem> | undefined;
7858
+ QueryPreviewResultReceived?: QueryPreviewItem | undefined;
7845
7859
  QuerySuggestionsChanged?: Suggestion[] | undefined;
7846
7860
  QuerySuggestionsRequestUpdated?: QuerySuggestionsRequest | null | undefined;
7847
7861
  UserSelectedAQuerySuggestion?: Suggestion | undefined;
@@ -8189,6 +8203,7 @@ queryPreviewHash: string;
8189
8203
  cache: boolean;
8190
8204
  }, metadata: WireMetadata) => unknown;
8191
8205
  QueriesPreviewChanged: (payload: Dictionary<QueryPreviewItem>, metadata: WireMetadata) => unknown;
8206
+ QueryPreviewResultReceived: (payload: QueryPreviewItem, metadata: WireMetadata) => unknown;
8192
8207
  QuerySuggestionsChanged: (payload: Suggestion[], metadata: WireMetadata) => unknown;
8193
8208
  QuerySuggestionsRequestUpdated: (payload: QuerySuggestionsRequest | null, metadata: WireMetadata) => unknown;
8194
8209
  UserSelectedAQuerySuggestion: (payload: Suggestion, metadata: WireMetadata) => unknown;
@@ -9704,10 +9719,10 @@ export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModu
9704
9719
  // dist/types/src/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts:25:9 - (ae-forgotten-export) The symbol "EditableNumberRangeFilter_2" needs to be exported by the entry point index.d.ts
9705
9720
  // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:62:13 - (ae-forgotten-export) The symbol "ResultVariant" needs to be exported by the entry point index.d.ts
9706
9721
  // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:110:9 - (ae-forgotten-export) The symbol "NextQuery_2" needs to be exported by the entry point index.d.ts
9707
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:174:9 - (ae-forgotten-export) The symbol "Redirection_2" needs to be exported by the entry point index.d.ts
9708
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:175:9 - (ae-forgotten-export) The symbol "Promoted_2" needs to be exported by the entry point index.d.ts
9709
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:180:9 - (ae-forgotten-export) The symbol "SemanticQuery_2" needs to be exported by the entry point index.d.ts
9710
- // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:202:9 - (ae-forgotten-export) The symbol "RelatedPrompt_2" needs to be exported by the entry point index.d.ts
9722
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:175:9 - (ae-forgotten-export) The symbol "Redirection_2" needs to be exported by the entry point index.d.ts
9723
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:176:9 - (ae-forgotten-export) The symbol "Promoted_2" needs to be exported by the entry point index.d.ts
9724
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:181:9 - (ae-forgotten-export) The symbol "SemanticQuery_2" needs to be exported by the entry point index.d.ts
9725
+ // dist/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts:203:9 - (ae-forgotten-export) The symbol "RelatedPrompt_2" needs to be exported by the entry point index.d.ts
9711
9726
  // dist/types/src/x-modules/facets/components/lists/selected-filters-list.vue.d.ts:27:5 - (ae-forgotten-export) The symbol "RenderFilter" needs to be exported by the entry point index.d.ts
9712
9727
  // dist/types/src/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts:62:9 - (ae-forgotten-export) The symbol "RelatedPromptNextQuery" needs to be exported by the entry point index.d.ts
9713
9728
  // dist/types/src/x-modules/search/components/banner.vue.d.ts:23:9 - (ae-forgotten-export) The symbol "Banner_2" needs to be exported by the entry point index.d.ts
@@ -99,6 +99,7 @@ declare const _default: import("vue").DefineComponent<{}, {
99
99
  cache: boolean;
100
100
  }, metadata: WireMetadata) => unknown;
101
101
  QueriesPreviewChanged: (payload: import("@empathyco/x-utils").Dictionary<import("..").QueryPreviewItem>, metadata: WireMetadata) => unknown;
102
+ QueryPreviewResultReceived: (payload: import("..").QueryPreviewItem, metadata: WireMetadata) => unknown;
102
103
  QuerySuggestionsChanged: (payload: import("@empathyco/x-types").Suggestion[], metadata: WireMetadata) => unknown;
103
104
  QuerySuggestionsRequestUpdated: (payload: import("@empathyco/x-types").QuerySuggestionsRequest | null, metadata: WireMetadata) => unknown;
104
105
  UserSelectedAQuerySuggestion: (payload: import("@empathyco/x-types").Suggestion, metadata: WireMetadata) => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
1
+ {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
@@ -124,6 +124,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
124
124
  cache: boolean;
125
125
  } | undefined;
126
126
  QueriesPreviewChanged?: Dictionary<import("../../../queries-preview").QueryPreviewItem> | undefined;
127
+ QueryPreviewResultReceived?: import("../../../queries-preview").QueryPreviewItem | undefined;
127
128
  QuerySuggestionsChanged?: import("@empathyco/x-types").Suggestion[] | undefined;
128
129
  QuerySuggestionsRequestUpdated?: import("@empathyco/x-types").QuerySuggestionsRequest | null | undefined;
129
130
  UserSelectedAQuerySuggestion?: import("@empathyco/x-types").Suggestion | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
1
+ {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
@@ -114,6 +114,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
114
114
  cache: boolean;
115
115
  } | undefined;
116
116
  QueriesPreviewChanged?: Dictionary<import("../../../queries-preview").QueryPreviewItem> | undefined;
117
+ QueryPreviewResultReceived?: import("../../../queries-preview").QueryPreviewItem | undefined;
117
118
  QuerySuggestionsChanged?: import("@empathyco/x-types").Suggestion[] | undefined;
118
119
  QuerySuggestionsRequestUpdated?: import("@empathyco/x-types").QuerySuggestionsRequest | null | undefined;
119
120
  UserSelectedAQuerySuggestion?: import("@empathyco/x-types").Suggestion | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
1
+ {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
@@ -43,5 +43,10 @@ export interface QueriesPreviewXEvents {
43
43
  * Payload: The query preview item.
44
44
  */
45
45
  QueriesPreviewChanged: Dictionary<QueryPreviewItem>;
46
+ /**
47
+ * A query preview result has been received and cached.
48
+ * Payload: The {@link QueryPreviewItem} that was cached.
49
+ */
50
+ QueryPreviewResultReceived: QueryPreviewItem;
46
51
  }
47
52
  //# sourceMappingURL=events.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/queries-preview/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEjE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,0BAA0B,EAAE,aAAa,CAAA;IACzC;;;;OAIG;IACH,yBAAyB,EAAE,gBAAgB,CAAA;IAC3C;;;;OAIG;IACH,sBAAsB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3C;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,qBAAqB,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAA;IACnE;;;OAGG;IACH,qBAAqB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;CACpD"}
1
+ {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/queries-preview/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEjE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,0BAA0B,EAAE,aAAa,CAAA;IACzC;;;;OAIG;IACH,yBAAyB,EAAE,gBAAgB,CAAA;IAC3C;;;;OAIG;IACH,sBAAsB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3C;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;OAGG;IACH,qBAAqB,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAA;IACnE;;;OAGG;IACH,qBAAqB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IACnD;;;OAGG;IACH,0BAA0B,EAAE,gBAAgB,CAAA;CAC7C"}
@@ -0,0 +1,3 @@
1
+ import type { QueriesPreviewXStoreModule } from '../types';
2
+ export declare const fetchAndSaveQueryPreviewResultsEnrichment: QueriesPreviewXStoreModule['actions']['fetchAndSaveQueryPreviewResultsEnrichment'];
3
+ //# sourceMappingURL=fetch-and-save-query-preview-results-enrichment.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-and-save-query-preview-results-enrichment.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview-results-enrichment.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAG1D,eAAO,MAAM,yCAAyC,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,2CAA2C,CAiBtI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-and-save-query-preview.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAoB,MAAM,UAAU,CAAA;AAG5E;;;;;;;;;GASG;AAEH,eAAO,MAAM,wBAAwB,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAmCpG,CAAA"}
1
+ {"version":3,"file":"fetch-and-save-query-preview.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAoB,MAAM,UAAU,CAAA;AAI5E;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAqCpG,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/queries-preview/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAOzD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,0BA2DxC,CAAA"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/queries-preview/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AASzD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,0BAqExC,CAAA"}
@@ -137,6 +137,17 @@ export interface QueriesPreviewMutations extends ConfigMutations<QueriesPreviewS
137
137
  result: Result;
138
138
  queryPreviewHash: string;
139
139
  }) => void;
140
+ /**
141
+ * Updates the query preview results with the enrichment results.
142
+ *
143
+ * @param payload - Object containing the query preview item and the enrichment results.
144
+ * @param payload.queryPreviewItem - The query preview item.
145
+ * @param payload.enrichmentResults - The enrichment results.
146
+ */
147
+ updateQueryPreviewResultsFromEnrichment: (enrichmentPayload: {
148
+ queryPreviewItem: QueryPreviewItem;
149
+ enrichmentResults: any[];
150
+ }) => void;
140
151
  }
141
152
  /**
142
153
  * QueriesPreview store actions.
@@ -158,6 +169,12 @@ export interface QueriesPreviewActions {
158
169
  * @param request - The request object to retrieve the query preview.
159
170
  */
160
171
  fetchAndSaveQueryPreview: (request: SearchRequest) => void;
172
+ /**
173
+ * Requests and stores the enrichment results for the query preview results.
174
+ *
175
+ * @param queryPreviewItem - The query preview item containing results.
176
+ */
177
+ fetchAndSaveQueryPreviewResultsEnrichment: (queryPreviewItem: QueryPreviewItem) => void;
161
178
  }
162
179
  /**
163
180
  * QueriesPreview type safe store module.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/queries-preview/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AACzF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAE3D;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD;;;;;OAKG;IACH,OAAO,EAAE,aAAa,CAAA;IACtB,4CAA4C;IAC5C,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,4BAA4B;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,0BAA0B;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAA;IAC7B,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAA;IACpB,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,8CAA8C;IAC9C,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACjC,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mEAAmE;IACnE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C,cAAc,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAC5C,uDAAuD;IACvD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,8CAA8C;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3B,+CAA+C;IAC/C,oBAAoB,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC9C;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,oBAAoB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;CACnD;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe,CAAC,mBAAmB,CAAC;IACnF;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAChD;;;;OAIG;IACH,qBAAqB,EAAE,CAAC,YAAY,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC/D;;;;OAIG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,IAAI,CAAA;IACvD;;;;OAIG;IACH,uBAAuB,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAA;IAChF;;;;OAIG;IACH,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3D;;;;;;;OAOG;IACH,0BAA0B,EAAE,CAAC,EAC3B,gBAAgB,EAChB,KAAK,GACN,EAAE;QACD,gBAAgB,EAAE,MAAM,CAAA;QACxB,KAAK,EAAE,OAAO,CAAA;KACf,KAAK,IAAI,CAAA;IACV;;;;;;OAMG;IACH,yBAAyB,EAAE,CAAC,EAC1B,MAAM,EACN,gBAAgB,GACjB,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,gBAAgB,EAAE,MAAM,CAAA;KACzB,KAAK,IAAI,CAAA;CACX;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,iBAAiB,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,cAAc,GAAG,IAAI,CAAA;IAEpE;;;;OAIG;IACH,wBAAwB,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAA;CAC3D;AAED;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,cAAc,CACtD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAA;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/queries-preview/store/types.ts"],"names":[],"mappings":"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"}
@@ -43,6 +43,12 @@ export declare const removeQueryPreviewInstanceWire: import("../..").Wire<{
43
43
  queryPreviewHash: string;
44
44
  cache: boolean;
45
45
  }>;
46
+ /**
47
+ * Requests and stores the enrichment results for the query preview results.
48
+ *
49
+ * @public
50
+ */
51
+ export declare const fetchAndSaveQueryPreviewResultsEnrichmentWire: import("../..").Wire<import("./store").QueryPreviewItem>;
46
52
  /**
47
53
  * Wiring configuration for the {@link QueriesPreviewXModule | queriesPreview module}.
48
54
  *
@@ -82,5 +88,8 @@ export declare const queriesPreviewWiring: {
82
88
  cache: boolean;
83
89
  }>;
84
90
  };
91
+ QueryPreviewResultReceived: {
92
+ fetchAndSaveQueryPreviewResultsEnrichmentWire: import("../..").Wire<import("./store").QueryPreviewItem>;
93
+ };
85
94
  };
86
95
  //# sourceMappingURL=wiring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/queries-preview/wiring.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,kEAA2C,CAAA;AAEpF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,8BAAkC,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,wEAA0B,CAAA;AAEvE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,iEAAwC,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,yBAA8C,CAAA;AAExF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8BAAwC,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;EAA2C,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B/B,CAAA"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/queries-preview/wiring.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,kEAA2C,CAAA;AAEpF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,8BAAkC,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,wEAA0B,CAAA;AAEvE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,iEAAwC,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,yBAA8C,CAAA;AAExF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8BAAwC,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;EAA2C,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,6CAA6C,0DAEzD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC/B,CAAA"}