@empathyco/x-components 7.2.5 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/docs/API-reference/api/x-components.md +22 -0
- package/docs/API-reference/api/x-components.nextqueriesmutations.md +19 -0
- package/docs/API-reference/api/x-components.nextqueriesmutations.resetnextqueries.md +13 -0
- package/docs/API-reference/api/x-components.resetnextqueriesquery.md +13 -0
- package/docs/API-reference/api/x-components.resetnextquerieswire.md +13 -0
- package/js/index.js +1 -1
- package/js/x-modules/next-queries/store/module.js +3 -0
- package/js/x-modules/next-queries/store/module.js.map +1 -1
- package/js/x-modules/next-queries/wiring.js +18 -1
- package/js/x-modules/next-queries/wiring.js.map +1 -1
- package/next-queries/index.js +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +83 -0
- package/report/x-components.api.md +12 -0
- package/types/src/x-modules/next-queries/store/module.d.ts.map +1 -1
- package/types/src/x-modules/next-queries/store/types.d.ts +4 -0
- package/types/src/x-modules/next-queries/store/types.d.ts.map +1 -1
- package/types/src/x-modules/next-queries/wiring.d.ts +17 -0
- package/types/src/x-modules/next-queries/wiring.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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
|
+
## [7.3.1](https://github.com/empathyco/x/compare/@empathyco/x-components@7.3.0...@empathyco/x-components@7.3.1) (2026-07-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **next-queries:** reset wiring on user-cleared query event (#2132)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [7.3.0](https://github.com/empathyco/x/compare/@empathyco/x-components@7.2.5...@empathyco/x-components@7.3.0) (2026-07-06)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **next-queries:** add mutation and wiring to reset next queries state (#2131)
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [7.2.5](https://github.com/empathyco/x/compare/@empathyco/x-components@7.2.4...@empathyco/x-components@7.2.5) (2026-07-02)
|
|
7
21
|
|
|
8
22
|
### Code Refactoring
|
|
@@ -5868,6 +5868,28 @@ Resets the search state `fromNoResultsWithFilters`<!-- -->.
|
|
|
5868
5868
|
Resets the search state `isNoResults`<!-- -->.
|
|
5869
5869
|
|
|
5870
5870
|
|
|
5871
|
+
</td></tr>
|
|
5872
|
+
<tr><td>
|
|
5873
|
+
|
|
5874
|
+
[resetNextQueriesQuery](./x-components.resetnextqueriesquery.md)
|
|
5875
|
+
|
|
5876
|
+
|
|
5877
|
+
</td><td>
|
|
5878
|
+
|
|
5879
|
+
Reset the next queries state `query`<!-- -->.
|
|
5880
|
+
|
|
5881
|
+
|
|
5882
|
+
</td></tr>
|
|
5883
|
+
<tr><td>
|
|
5884
|
+
|
|
5885
|
+
[resetNextQueriesWire](./x-components.resetnextquerieswire.md)
|
|
5886
|
+
|
|
5887
|
+
|
|
5888
|
+
</td><td>
|
|
5889
|
+
|
|
5890
|
+
Resets the next queries list to an empty array.
|
|
5891
|
+
|
|
5892
|
+
|
|
5871
5893
|
</td></tr>
|
|
5872
5894
|
<tr><td>
|
|
5873
5895
|
|
|
@@ -38,6 +38,25 @@ Description
|
|
|
38
38
|
</th></tr></thead>
|
|
39
39
|
<tbody><tr><td>
|
|
40
40
|
|
|
41
|
+
[resetNextQueries](./x-components.nextqueriesmutations.resetnextqueries.md)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
</td><td>
|
|
48
|
+
|
|
49
|
+
() => void
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
Resets the next queries list to an empty array.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td></tr>
|
|
58
|
+
<tr><td>
|
|
59
|
+
|
|
41
60
|
[resetResultsPreview](./x-components.nextqueriesmutations.resetresultspreview.md)
|
|
42
61
|
|
|
43
62
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NextQueriesMutations](./x-components.nextqueriesmutations.md) > [resetNextQueries](./x-components.nextqueriesmutations.resetnextqueries.md)
|
|
4
|
+
|
|
5
|
+
## NextQueriesMutations.resetNextQueries property
|
|
6
|
+
|
|
7
|
+
Resets the next queries list to an empty array.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetNextQueries: () => void;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [resetNextQueriesQuery](./x-components.resetnextqueriesquery.md)
|
|
4
|
+
|
|
5
|
+
## resetNextQueriesQuery variable
|
|
6
|
+
|
|
7
|
+
Reset the next queries state `query`<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetNextQueriesQuery: import("../..").AnyWire
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [resetNextQueriesWire](./x-components.resetnextquerieswire.md)
|
|
4
|
+
|
|
5
|
+
## resetNextQueriesWire variable
|
|
6
|
+
|
|
7
|
+
Resets the next queries list to an empty array.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
resetNextQueriesWire: import("../..").AnyWire
|
|
13
|
+
```
|
package/js/index.js
CHANGED
|
@@ -315,7 +315,7 @@ export { query } from './x-modules/next-queries/store/getters/next-queries-query
|
|
|
315
315
|
export { nextQueries } from './x-modules/next-queries/store/getters/next-queries.getter.js';
|
|
316
316
|
export { request as nextQueriesRequest } from './x-modules/next-queries/store/getters/request.getter.js';
|
|
317
317
|
export { nextQueriesXStoreModule } from './x-modules/next-queries/store/module.js';
|
|
318
|
-
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from './x-modules/next-queries/wiring.js';
|
|
318
|
+
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesQuery, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from './x-modules/next-queries/wiring.js';
|
|
319
319
|
export { nextQueriesXModule } from './x-modules/next-queries/x-module.js';
|
|
320
320
|
export { default as PopularSearch } from './x-modules/popular-searches/components/popular-search.vue.js';
|
|
321
321
|
export { default as PopularSearches } from './x-modules/popular-searches/components/popular-searches.vue.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/next-queries/store/module.ts"],"sourcesContent":["import type { NextQueriesXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { setQuery } from '../../../store/utils/query.utils'\nimport { setStatus } from '../../../store/utils/status-store.utils'\nimport {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n} from './actions/fetch-and-save-next-queries.action'\nimport { fetchAndSaveNextQueryPreview } from './actions/fetch-and-save-next-query-preview.action'\nimport { fetchNextQueries } from './actions/fetch-next-queries.action'\nimport { fetchNextQueryPreview } from './actions/fetch-next-query-preview.action'\nimport { setQueryFromLastHistoryQuery } from './actions/set-query-from-last-history-query.action'\nimport { setUrlParams } from './actions/set-url-params.action'\nimport { query } from './getters/next-queries-query.getter'\nimport { nextQueries } from './getters/next-queries.getter'\nimport { request } from './getters/request.getter'\n\n/**\n * {@link XStoreModule} For the next-queries module.\n *\n * @internal\n */\nexport const nextQueriesXStoreModule: NextQueriesXStoreModule = {\n state: () => ({\n query: '',\n nextQueries: [],\n searchedQueries: [],\n relatedTags: [],\n status: 'initial',\n config: {\n maxItemsToRequest: 20,\n hideSessionQueries: true,\n loadOnInit: true,\n maxPreviewItemsToRequest: 8,\n },\n params: {},\n resultsPreview: {},\n }),\n getters: {\n request,\n nextQueries,\n query,\n },\n mutations: {\n setQuery,\n setNextQueries(state, nextQueries) {\n state.nextQueries = nextQueries\n },\n setSearchedQueries(state, searchedQueries) {\n state.searchedQueries = searchedQueries\n },\n setRelatedTags(state, relatedTags) {\n state.relatedTags = relatedTags\n },\n setStatus,\n setParams(state, params) {\n state.params = params\n },\n setResultsPreview(state, resultsPreview) {\n state.resultsPreview = { ...state.resultsPreview, ...resultsPreview }\n },\n resetResultsPreview(state) {\n state.resultsPreview = {}\n },\n setConfig,\n mergeConfig,\n },\n actions: {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n fetchNextQueries,\n setQueryFromLastHistoryQuery,\n setUrlParams,\n fetchNextQueryPreview,\n fetchAndSaveNextQueryPreview,\n },\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAiBA;;;;AAIG;AACI,MAAM,uBAAuB,GAA4B;AAC9D,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,WAAW,EAAE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-queries/store/module.ts"],"sourcesContent":["import type { NextQueriesXStoreModule } from './types'\nimport { mergeConfig, setConfig } from '../../../store/utils/config-store.utils'\nimport { setQuery } from '../../../store/utils/query.utils'\nimport { setStatus } from '../../../store/utils/status-store.utils'\nimport {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n} from './actions/fetch-and-save-next-queries.action'\nimport { fetchAndSaveNextQueryPreview } from './actions/fetch-and-save-next-query-preview.action'\nimport { fetchNextQueries } from './actions/fetch-next-queries.action'\nimport { fetchNextQueryPreview } from './actions/fetch-next-query-preview.action'\nimport { setQueryFromLastHistoryQuery } from './actions/set-query-from-last-history-query.action'\nimport { setUrlParams } from './actions/set-url-params.action'\nimport { query } from './getters/next-queries-query.getter'\nimport { nextQueries } from './getters/next-queries.getter'\nimport { request } from './getters/request.getter'\n\n/**\n * {@link XStoreModule} For the next-queries module.\n *\n * @internal\n */\nexport const nextQueriesXStoreModule: NextQueriesXStoreModule = {\n state: () => ({\n query: '',\n nextQueries: [],\n searchedQueries: [],\n relatedTags: [],\n status: 'initial',\n config: {\n maxItemsToRequest: 20,\n hideSessionQueries: true,\n loadOnInit: true,\n maxPreviewItemsToRequest: 8,\n },\n params: {},\n resultsPreview: {},\n }),\n getters: {\n request,\n nextQueries,\n query,\n },\n mutations: {\n setQuery,\n setNextQueries(state, nextQueries) {\n state.nextQueries = nextQueries\n },\n setSearchedQueries(state, searchedQueries) {\n state.searchedQueries = searchedQueries\n },\n setRelatedTags(state, relatedTags) {\n state.relatedTags = relatedTags\n },\n setStatus,\n setParams(state, params) {\n state.params = params\n },\n setResultsPreview(state, resultsPreview) {\n state.resultsPreview = { ...state.resultsPreview, ...resultsPreview }\n },\n resetResultsPreview(state) {\n state.resultsPreview = {}\n },\n resetNextQueries(state) {\n state.nextQueries = []\n },\n setConfig,\n mergeConfig,\n },\n actions: {\n cancelFetchAndSaveNextQueries,\n fetchAndSaveNextQueries,\n fetchNextQueries,\n setQueryFromLastHistoryQuery,\n set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,KAAK,CAAC,cAAc,GAAG,EAAE;QAC3B,CAAC;AACD,QAAA,gBAAgB,CAAC,KAAK,EAAA;AACpB,YAAA,KAAK,CAAC,WAAW,GAAG,EAAE;QACxB,CAAC;QACD,SAAS;QACT,WAAW;AACZ,KAAA;AACD,IAAA,OAAO,EAAE;QACP,6BAA6B;QAC7B,uBAAuB;QACvB,gBAAgB;QAChB,4BAA4B;QAC5B,YAAY;QACZ,qBAAqB;QACrB,4BAA4B;AAC7B,KAAA;;;;;"}
|
|
@@ -29,6 +29,12 @@ const wireDispatch = namespacedWireDispatch(moduleName);
|
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
31
|
const setNextQueriesQuery = wireCommit('setQuery');
|
|
32
|
+
/**
|
|
33
|
+
* Reset the next queries state `query`.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
const resetNextQueriesQuery = wireCommit('setQuery', '');
|
|
32
38
|
/**
|
|
33
39
|
* Sets the next queries state `relatedTags`.
|
|
34
40
|
*
|
|
@@ -88,6 +94,12 @@ const fetchAndSaveNextQueryPreviewWire = wireDispatch('fetchAndSaveNextQueryPrev
|
|
|
88
94
|
* @public
|
|
89
95
|
*/
|
|
90
96
|
const resetResultsPreviewWire = wireCommitWithoutPayload('resetResultsPreview');
|
|
97
|
+
/**
|
|
98
|
+
* Resets the next queries list to an empty array.
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
const resetNextQueriesWire = wireCommitWithoutPayload('resetNextQueries');
|
|
91
103
|
/**
|
|
92
104
|
* Sets the next queries state `searchedQueries` with the list of history queries.
|
|
93
105
|
*
|
|
@@ -107,8 +119,13 @@ const nextQueriesWiring = createWiring({
|
|
|
107
119
|
resetResultsPreviewWire,
|
|
108
120
|
},
|
|
109
121
|
UserAcceptedAQuery: {
|
|
122
|
+
resetNextQueriesWire,
|
|
110
123
|
setNextQueriesQuery,
|
|
111
124
|
},
|
|
125
|
+
UserClearedQuery: {
|
|
126
|
+
resetNextQueriesWire,
|
|
127
|
+
resetNextQueriesQuery,
|
|
128
|
+
},
|
|
112
129
|
SelectedRelatedTagsChanged: {
|
|
113
130
|
setNextQueriesRelatedTags,
|
|
114
131
|
},
|
|
@@ -132,5 +149,5 @@ const nextQueriesWiring = createWiring({
|
|
|
132
149
|
},
|
|
133
150
|
});
|
|
134
151
|
|
|
135
|
-
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries };
|
|
152
|
+
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesQuery, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries };
|
|
136
153
|
//# sourceMappingURL=wiring.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/next-queries/wiring.ts"],"sourcesContent":["import type {\n NamespacedWireCommit,\n NamespacedWireCommitWithoutPayload,\n NamespacedWireDispatch,\n NamespacedWiringData,\n} from '../../wiring/namespaced-wiring.types'\nimport {\n namespacedWireCommit,\n namespacedWireCommitWithoutPayload,\n namespacedWireDispatch,\n} from '../../wiring/namespaced-wires.factory'\nimport { createWiring } from '../../wiring/wiring.utils'\n\n/**\n * `nextQueries` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'nextQueries'\n\n/**\n * WireCommit for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireCommit: NamespacedWireCommit<typeof moduleName> = namespacedWireCommit(moduleName)\n\n/**\n * WireCommitWithoutPayload for {@link NextQueriesXModule}.\n */\nconst wireCommitWithoutPayload: NamespacedWireCommitWithoutPayload<typeof moduleName> =\n namespacedWireCommitWithoutPayload(moduleName)\n\n/**\n * WireDispatch for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireDispatch: NamespacedWireDispatch<typeof moduleName> = namespacedWireDispatch(moduleName)\n\n/**\n * Sets the next queries state `query`.\n *\n * @public\n */\nexport const setNextQueriesQuery = wireCommit('setQuery')\n\n/**\n * Sets the next queries state `relatedTags`.\n *\n * @public\n */\nexport const setNextQueriesRelatedTags = wireCommit('setRelatedTags')\n\n/**\n * Sets the next queries state `query` with a selectedQueryPreview's query.\n *\n * @public\n */\nexport const setNextQueriesQueryFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { query } }) => query,\n)\n\n/**\n * Sets the next queries state `query` from url.\n *\n * @public\n */\nconst setUrlParams = wireDispatch('setUrlParams')\n\n/**\n * Sets the next queries state `params`.\n *\n * @public\n */\nexport const setNextQueriesExtraParams = wireCommit('setParams')\n\n/**\n * Sets the next queries state `params` with a selectedQueryPreview's extraParams.\n *\n * @public\n */\nexport const setNextQueriesExtraParamsFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { extraParams } }) => extraParams,\n)\n\n/**\n * Requests and stores the next queries.\n *\n * @public\n */\nexport const fetchAndSaveNextQueriesWire = wireDispatch('fetchAndSaveNextQueries')\n\n/**\n * Sets the next queries state `query` with the last query in history queries.\n *\n * @public\n */\nexport const setQueryFromLastHistoryQueryWire = wireDispatch('setQueryFromLastHistoryQuery')\n\n/**\n * Requests and store the next query preview results.\n *\n * @public\n */\nexport const fetchAndSaveNextQueryPreviewWire = wireDispatch(\n 'fetchAndSaveNextQueryPreview',\n ({ eventPayload: query, metadata: { location } }: NamespacedWiringData<'nextQueries'>) => {\n return {\n query,\n location,\n }\n },\n)\n/**\n * Resets the next query preview results.\n *\n * @public\n */\nexport const resetResultsPreviewWire = wireCommitWithoutPayload('resetResultsPreview')\n\n/**\n * Sets the next queries state `searchedQueries` with the list of history queries.\n *\n * @public\n */\nexport const setSearchedQueries = wireCommit('setSearchedQueries')\n\n/**\n * Wiring configuration for the {@link NextQueriesXModule | next queries module}.\n *\n * @internal\n */\nexport const nextQueriesWiring = createWiring({\n ParamsLoadedFromUrl: {\n setUrlParams,\n },\n NextQueriesChanged: {\n resetResultsPreviewWire,\n },\n UserAcceptedAQuery: {\n setNextQueriesQuery,\n },\n SelectedRelatedTagsChanged: {\n setNextQueriesRelatedTags,\n },\n SessionHistoryQueriesChanged: {\n setSearchedQueries,\n // TODO setQueryFromLastHistoryQuery it has to be called only one time\n setQueryFromLastHistoryQueryWire,\n },\n NextQueriesRequestUpdated: {\n fetchAndSaveNextQueriesWire,\n },\n ExtraParamsChanged: {\n setNextQueriesExtraParams,\n },\n NextQueryPreviewMountedHook: {\n fetchAndSaveNextQueryPreviewWire,\n },\n UserAcceptedAQueryPreview: {\n setNextQueriesQueryFromPreview,\n setNextQueriesExtraParamsFromPreview,\n },\n})\n"],"names":[],"mappings":";;;AAaA;;;;AAIG;AACH,MAAM,UAAU,GAAG,aAAa;AAEhC;;;;AAIG;AACH,MAAM,UAAU,GAA4C,oBAAoB,CAAC,UAAU,CAAC;AAE5F;;AAEG;AACH,MAAM,wBAAwB,GAC5B,kCAAkC,CAAC,UAAU,CAAC;AAEhD;;;;AAIG;AACH,MAAM,YAAY,GAA8C,sBAAsB,CAAC,UAAU,CAAC;AAElG;;;;AAIG;MACU,mBAAmB,GAAG,UAAU,CAAC,UAAU;AAExD;;;;AAIG;MACU,yBAAyB,GAAG,UAAU,CAAC,gBAAgB;AAEpE;;;;AAIG;MACU,8BAA8B,GAAG,UAAU,CACtD,WAAW,EACX,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK;AAGxC;;;;AAIG;AACH,MAAM,YAAY,GAAG,YAAY,CAAC,cAAc,CAAC;AAEjD;;;;AAIG;MACU,yBAAyB,GAAG,UAAU,CAAC,WAAW;AAE/D;;;;AAIG;MACU,oCAAoC,GAAG,UAAU,CAC5D,WAAW,EACX,CAAC,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,WAAW;AAGpD;;;;AAIG;MACU,2BAA2B,GAAG,YAAY,CAAC,yBAAyB;AAEjF;;;;AAIG;MACU,gCAAgC,GAAG,YAAY,CAAC,8BAA8B;AAE3F;;;;AAIG;MACU,gCAAgC,GAAG,YAAY,CAC1D,8BAA8B,EAC9B,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,EAAuC,KAAI;IACvF,OAAO;QACL,KAAK;QACL,QAAQ;KACT;AACH,CAAC;AAEH;;;;AAIG;MACU,uBAAuB,GAAG,wBAAwB,CAAC,qBAAqB;AAErF;;;;AAIG;MACU,kBAAkB,GAAG,UAAU,CAAC,oBAAoB;AAEjE;;;;AAIG;AACI,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC5C,IAAA,mBAAmB,EAAE;QACnB,YAAY;AACb,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,uBAAuB;AACxB,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,mBAAmB;AACpB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,yBAAyB;AAC1B,KAAA;AACD,IAAA,4BAA4B,EAAE;QAC5B,kBAAkB;;QAElB,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,2BAA2B;AAC5B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,yBAAyB;AAC1B,KAAA;AACD,IAAA,2BAA2B,EAAE;QAC3B,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,8BAA8B;QAC9B,oCAAoC;AACrC,KAAA;AACF,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/next-queries/wiring.ts"],"sourcesContent":["import type {\n NamespacedWireCommit,\n NamespacedWireCommitWithoutPayload,\n NamespacedWireDispatch,\n NamespacedWiringData,\n} from '../../wiring/namespaced-wiring.types'\nimport {\n namespacedWireCommit,\n namespacedWireCommitWithoutPayload,\n namespacedWireDispatch,\n} from '../../wiring/namespaced-wires.factory'\nimport { createWiring } from '../../wiring/wiring.utils'\n\n/**\n * `nextQueries` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'nextQueries'\n\n/**\n * WireCommit for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireCommit: NamespacedWireCommit<typeof moduleName> = namespacedWireCommit(moduleName)\n\n/**\n * WireCommitWithoutPayload for {@link NextQueriesXModule}.\n */\nconst wireCommitWithoutPayload: NamespacedWireCommitWithoutPayload<typeof moduleName> =\n namespacedWireCommitWithoutPayload(moduleName)\n\n/**\n * WireDispatch for {@link NextQueriesXModule}.\n *\n * @internal\n */\nconst wireDispatch: NamespacedWireDispatch<typeof moduleName> = namespacedWireDispatch(moduleName)\n\n/**\n * Sets the next queries state `query`.\n *\n * @public\n */\nexport const setNextQueriesQuery = wireCommit('setQuery')\n\n/**\n * Reset the next queries state `query`.\n *\n * @public\n */\nexport const resetNextQueriesQuery = wireCommit('setQuery', '')\n\n/**\n * Sets the next queries state `relatedTags`.\n *\n * @public\n */\nexport const setNextQueriesRelatedTags = wireCommit('setRelatedTags')\n\n/**\n * Sets the next queries state `query` with a selectedQueryPreview's query.\n *\n * @public\n */\nexport const setNextQueriesQueryFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { query } }) => query,\n)\n\n/**\n * Sets the next queries state `query` from url.\n *\n * @public\n */\nconst setUrlParams = wireDispatch('setUrlParams')\n\n/**\n * Sets the next queries state `params`.\n *\n * @public\n */\nexport const setNextQueriesExtraParams = wireCommit('setParams')\n\n/**\n * Sets the next queries state `params` with a selectedQueryPreview's extraParams.\n *\n * @public\n */\nexport const setNextQueriesExtraParamsFromPreview = wireCommit(\n 'setParams',\n ({ eventPayload: { extraParams } }) => extraParams,\n)\n\n/**\n * Requests and stores the next queries.\n *\n * @public\n */\nexport const fetchAndSaveNextQueriesWire = wireDispatch('fetchAndSaveNextQueries')\n\n/**\n * Sets the next queries state `query` with the last query in history queries.\n *\n * @public\n */\nexport const setQueryFromLastHistoryQueryWire = wireDispatch('setQueryFromLastHistoryQuery')\n\n/**\n * Requests and store the next query preview results.\n *\n * @public\n */\nexport const fetchAndSaveNextQueryPreviewWire = wireDispatch(\n 'fetchAndSaveNextQueryPreview',\n ({ eventPayload: query, metadata: { location } }: NamespacedWiringData<'nextQueries'>) => {\n return {\n query,\n location,\n }\n },\n)\n/**\n * Resets the next query preview results.\n *\n * @public\n */\nexport const resetResultsPreviewWire = wireCommitWithoutPayload('resetResultsPreview')\n\n/**\n * Resets the next queries list to an empty array.\n *\n * @public\n */\nexport const resetNextQueriesWire = wireCommitWithoutPayload('resetNextQueries')\n\n/**\n * Sets the next queries state `searchedQueries` with the list of history queries.\n *\n * @public\n */\nexport const setSearchedQueries = wireCommit('setSearchedQueries')\n\n/**\n * Wiring configuration for the {@link NextQueriesXModule | next queries module}.\n *\n * @internal\n */\nexport const nextQueriesWiring = createWiring({\n ParamsLoadedFromUrl: {\n setUrlParams,\n },\n NextQueriesChanged: {\n resetResultsPreviewWire,\n },\n UserAcceptedAQuery: {\n resetNextQueriesWire,\n setNextQueriesQuery,\n },\n UserClearedQuery: {\n resetNextQueriesWire,\n resetNextQueriesQuery,\n },\n SelectedRelatedTagsChanged: {\n setNextQueriesRelatedTags,\n },\n SessionHistoryQueriesChanged: {\n setSearchedQueries,\n // TODO setQueryFromLastHistoryQuery it has to be called only one time\n setQueryFromLastHistoryQueryWire,\n },\n NextQueriesRequestUpdated: {\n fetchAndSaveNextQueriesWire,\n },\n ExtraParamsChanged: {\n setNextQueriesExtraParams,\n },\n NextQueryPreviewMountedHook: {\n fetchAndSaveNextQueryPreviewWire,\n },\n UserAcceptedAQueryPreview: {\n setNextQueriesQueryFromPreview,\n setNextQueriesExtraParamsFromPreview,\n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kB;AAE/E;;;;AAIG;MACU,kBAAkB,GAAG,UAAU,CAAC,oBAAoB;AAEjE;;;;AAIG;AACI,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC5C,IAAA,mBAAmB,EAAE;QACnB,YAAY;AACb,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,uBAAuB;AACxB,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,oBAAoB;QACpB,mBAAmB;AACpB,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,oBAAoB;QACpB,qBAAqB;AACtB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,yBAAyB;AAC1B,KAAA;AACD,IAAA,4BAA4B,EAAE;QAC5B,kBAAkB;;QAElB,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,2BAA2B;AAC5B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,yBAAyB;AAC1B,KAAA;AACD,IAAA,2BAA2B,EAAE;QAC3B,gCAAgC;AACjC,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,8BAA8B;QAC9B,oCAAoC;AACrC,KAAA;AACF,CAAA;;;;"}
|
package/next-queries/index.js
CHANGED
|
@@ -10,5 +10,5 @@ export { query } from '../js/x-modules/next-queries/store/getters/next-queries-q
|
|
|
10
10
|
export { nextQueries } from '../js/x-modules/next-queries/store/getters/next-queries.getter.js';
|
|
11
11
|
export { request as nextQueriesRequest } from '../js/x-modules/next-queries/store/getters/request.getter.js';
|
|
12
12
|
export { nextQueriesXStoreModule } from '../js/x-modules/next-queries/store/module.js';
|
|
13
|
-
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from '../js/x-modules/next-queries/wiring.js';
|
|
13
|
+
export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesQuery, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries } from '../js/x-modules/next-queries/wiring.js';
|
|
14
14
|
export { nextQueriesXModule } from '../js/x-modules/next-queries/x-module.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"access": "public",
|
|
118
118
|
"directory": "dist"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "b77103a680e61a27e31f81669b87f763c221614a"
|
|
121
121
|
}
|
|
@@ -44271,6 +44271,33 @@
|
|
|
44271
44271
|
"name": "NextQueriesMutations",
|
|
44272
44272
|
"preserveMemberOrder": false,
|
|
44273
44273
|
"members": [
|
|
44274
|
+
{
|
|
44275
|
+
"kind": "PropertySignature",
|
|
44276
|
+
"canonicalReference": "@empathyco/x-components!NextQueriesMutations#resetNextQueries:member",
|
|
44277
|
+
"docComment": "/**\n * Resets the next queries list to an empty array.\n */\n",
|
|
44278
|
+
"excerptTokens": [
|
|
44279
|
+
{
|
|
44280
|
+
"kind": "Content",
|
|
44281
|
+
"text": "resetNextQueries: "
|
|
44282
|
+
},
|
|
44283
|
+
{
|
|
44284
|
+
"kind": "Content",
|
|
44285
|
+
"text": "() => void"
|
|
44286
|
+
},
|
|
44287
|
+
{
|
|
44288
|
+
"kind": "Content",
|
|
44289
|
+
"text": ";"
|
|
44290
|
+
}
|
|
44291
|
+
],
|
|
44292
|
+
"isReadonly": false,
|
|
44293
|
+
"isOptional": false,
|
|
44294
|
+
"releaseTag": "Public",
|
|
44295
|
+
"name": "resetNextQueries",
|
|
44296
|
+
"propertyTypeTokenRange": {
|
|
44297
|
+
"startIndex": 1,
|
|
44298
|
+
"endIndex": 2
|
|
44299
|
+
}
|
|
44300
|
+
},
|
|
44274
44301
|
{
|
|
44275
44302
|
"kind": "PropertySignature",
|
|
44276
44303
|
"canonicalReference": "@empathyco/x-components!NextQueriesMutations#resetResultsPreview:member",
|
|
@@ -59577,6 +59604,62 @@
|
|
|
59577
59604
|
"endIndex": 3
|
|
59578
59605
|
}
|
|
59579
59606
|
},
|
|
59607
|
+
{
|
|
59608
|
+
"kind": "Variable",
|
|
59609
|
+
"canonicalReference": "@empathyco/x-components!resetNextQueriesQuery:var",
|
|
59610
|
+
"docComment": "/**\n * Reset the next queries state `query`.\n *\n * @public\n */\n",
|
|
59611
|
+
"excerptTokens": [
|
|
59612
|
+
{
|
|
59613
|
+
"kind": "Content",
|
|
59614
|
+
"text": "resetNextQueriesQuery: "
|
|
59615
|
+
},
|
|
59616
|
+
{
|
|
59617
|
+
"kind": "Content",
|
|
59618
|
+
"text": "import(\"../..\")."
|
|
59619
|
+
},
|
|
59620
|
+
{
|
|
59621
|
+
"kind": "Reference",
|
|
59622
|
+
"text": "AnyWire",
|
|
59623
|
+
"canonicalReference": "@empathyco/x-components!AnyWire:type"
|
|
59624
|
+
}
|
|
59625
|
+
],
|
|
59626
|
+
"fileUrlPath": "src/x-modules/next-queries/wiring.ts",
|
|
59627
|
+
"isReadonly": true,
|
|
59628
|
+
"releaseTag": "Public",
|
|
59629
|
+
"name": "resetNextQueriesQuery",
|
|
59630
|
+
"variableTypeTokenRange": {
|
|
59631
|
+
"startIndex": 1,
|
|
59632
|
+
"endIndex": 3
|
|
59633
|
+
}
|
|
59634
|
+
},
|
|
59635
|
+
{
|
|
59636
|
+
"kind": "Variable",
|
|
59637
|
+
"canonicalReference": "@empathyco/x-components!resetNextQueriesWire:var",
|
|
59638
|
+
"docComment": "/**\n * Resets the next queries list to an empty array.\n *\n * @public\n */\n",
|
|
59639
|
+
"excerptTokens": [
|
|
59640
|
+
{
|
|
59641
|
+
"kind": "Content",
|
|
59642
|
+
"text": "resetNextQueriesWire: "
|
|
59643
|
+
},
|
|
59644
|
+
{
|
|
59645
|
+
"kind": "Content",
|
|
59646
|
+
"text": "import(\"../..\")."
|
|
59647
|
+
},
|
|
59648
|
+
{
|
|
59649
|
+
"kind": "Reference",
|
|
59650
|
+
"text": "AnyWire",
|
|
59651
|
+
"canonicalReference": "@empathyco/x-components!AnyWire:type"
|
|
59652
|
+
}
|
|
59653
|
+
],
|
|
59654
|
+
"fileUrlPath": "src/x-modules/next-queries/wiring.ts",
|
|
59655
|
+
"isReadonly": true,
|
|
59656
|
+
"releaseTag": "Public",
|
|
59657
|
+
"name": "resetNextQueriesWire",
|
|
59658
|
+
"variableTypeTokenRange": {
|
|
59659
|
+
"startIndex": 1,
|
|
59660
|
+
"endIndex": 3
|
|
59661
|
+
}
|
|
59662
|
+
},
|
|
59580
59663
|
{
|
|
59581
59664
|
"kind": "Variable",
|
|
59582
59665
|
"canonicalReference": "@empathyco/x-components!resetRequestOnRefinement:var",
|
|
@@ -4711,6 +4711,7 @@ showOnlyAfterOffset: boolean;
|
|
|
4711
4711
|
|
|
4712
4712
|
// @public
|
|
4713
4713
|
export interface NextQueriesMutations extends StatusMutations, QueryMutations, ConfigMutations<NextQueriesState> {
|
|
4714
|
+
resetNextQueries: () => void;
|
|
4714
4715
|
resetResultsPreview: () => void;
|
|
4715
4716
|
setNextQueries: (nextQueries: NextQuery_2[]) => void;
|
|
4716
4717
|
setParams: (params: Dictionary<unknown>) => void;
|
|
@@ -4742,8 +4743,13 @@ export const nextQueriesWiring: {
|
|
|
4742
4743
|
resetResultsPreviewWire: AnyWire;
|
|
4743
4744
|
};
|
|
4744
4745
|
UserAcceptedAQuery: {
|
|
4746
|
+
resetNextQueriesWire: AnyWire;
|
|
4745
4747
|
setNextQueriesQuery: Wire<string>;
|
|
4746
4748
|
};
|
|
4749
|
+
UserClearedQuery: {
|
|
4750
|
+
resetNextQueriesWire: AnyWire;
|
|
4751
|
+
resetNextQueriesQuery: AnyWire;
|
|
4752
|
+
};
|
|
4747
4753
|
SelectedRelatedTagsChanged: {
|
|
4748
4754
|
setNextQueriesRelatedTags: Wire<RelatedTag_2[]>;
|
|
4749
4755
|
};
|
|
@@ -6421,6 +6427,12 @@ export const resetFromNoResultsWithFilters: AnyWire;
|
|
|
6421
6427
|
// @public
|
|
6422
6428
|
export const resetIsNoResults: AnyWire;
|
|
6423
6429
|
|
|
6430
|
+
// @public
|
|
6431
|
+
export const resetNextQueriesQuery: AnyWire;
|
|
6432
|
+
|
|
6433
|
+
// @public
|
|
6434
|
+
export const resetNextQueriesWire: AnyWire;
|
|
6435
|
+
|
|
6424
6436
|
// @public
|
|
6425
6437
|
export const resetRequestOnRefinement: SearchXStoreModule['actions']['resetRequestOnRefinement'];
|
|
6426
6438
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiBtD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiBtD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,uBAyDrC,CAAA"}
|
|
@@ -83,6 +83,10 @@ export interface NextQueriesMutations extends StatusMutations, QueryMutations, C
|
|
|
83
83
|
* Resets the result's dictionary.
|
|
84
84
|
*/
|
|
85
85
|
resetResultsPreview: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Resets the next queries list to an empty array.
|
|
88
|
+
*/
|
|
89
|
+
resetNextQueries: () => void;
|
|
86
90
|
}
|
|
87
91
|
/**
|
|
88
92
|
* Next queries module actions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW,EAAE,UAAU;IAC/D,kFAAkF;IAClF,WAAW,EAAE,SAAS,EAAE,CAAA;IACxB,sFAAsF;IAEtF,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,kFAAkF;IAClF,WAAW,EAAE,UAAU,EAAE,CAAA;IACzB,wDAAwD;IACxD,MAAM,EAAE,iBAAiB,CAAA;IACzB,8CAA8C;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3B,4CAA4C;IAC5C,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;CAC3C;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAA;IAClC,+DAA+D;IAC/D,WAAW,EAAE,SAAS,EAAE,CAAA;IACxB,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,oBACf,SAAQ,eAAe,EAAE,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC;IAC1E;;;;OAIG;IACH,cAAc,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,KAAK,IAAI,CAAA;IAClD;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;IAC7D;;;;OAIG;IACH,cAAc,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACnD;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAChD;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IACvE;;OAEG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/next-queries/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,cA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AAc,CACnD,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,CACnB,CAAA"}
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export declare const setNextQueriesQuery: import("../..").Wire<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Reset the next queries state `query`.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare const resetNextQueriesQuery: import("../..").AnyWire;
|
|
7
13
|
/**
|
|
8
14
|
* Sets the next queries state `relatedTags`.
|
|
9
15
|
*
|
|
@@ -52,6 +58,12 @@ export declare const fetchAndSaveNextQueryPreviewWire: import("../..").AnyWire;
|
|
|
52
58
|
* @public
|
|
53
59
|
*/
|
|
54
60
|
export declare const resetResultsPreviewWire: import("../..").AnyWire;
|
|
61
|
+
/**
|
|
62
|
+
* Resets the next queries list to an empty array.
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export declare const resetNextQueriesWire: import("../..").AnyWire;
|
|
55
67
|
/**
|
|
56
68
|
* Sets the next queries state `searchedQueries` with the list of history queries.
|
|
57
69
|
*
|
|
@@ -71,8 +83,13 @@ export declare const nextQueriesWiring: {
|
|
|
71
83
|
resetResultsPreviewWire: import("../..").AnyWire;
|
|
72
84
|
};
|
|
73
85
|
UserAcceptedAQuery: {
|
|
86
|
+
resetNextQueriesWire: import("../..").AnyWire;
|
|
74
87
|
setNextQueriesQuery: import("../..").Wire<string>;
|
|
75
88
|
};
|
|
89
|
+
UserClearedQuery: {
|
|
90
|
+
resetNextQueriesWire: import("../..").AnyWire;
|
|
91
|
+
resetNextQueriesQuery: import("../..").AnyWire;
|
|
92
|
+
};
|
|
76
93
|
SelectedRelatedTagsChanged: {
|
|
77
94
|
setNextQueriesRelatedTags: import("../..").Wire<import("@empathyco/x-types").RelatedTag[]>;
|
|
78
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/wiring.ts"],"names":[],"mappings":"AAwCA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,8BAAyB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,iEAA+B,CAAA;AAErE;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,yBAG1C,CAAA;AASD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wEAA0B,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,yBAGhD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8EAA0C,CAAA;AAElF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,mEAA+C,CAAA;AAE5F;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,yBAQ5C,CAAA;AACD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,yBAAkD,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,mEAAmC,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/wiring.ts"],"names":[],"mappings":"AAwCA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,8BAAyB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,yBAA6B,CAAA;AAE/D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,iEAA+B,CAAA;AAErE;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,yBAG1C,CAAA;AASD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wEAA0B,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,yBAGhD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8EAA0C,CAAA;AAElF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,mEAA+C,CAAA;AAE5F;;;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