@empathyco/x-components 7.3.0 → 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 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
+ ## [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
+
6
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)
7
14
 
8
15
  ### Features
@@ -5868,6 +5868,17 @@ 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
+
5871
5882
  </td></tr>
5872
5883
  <tr><td>
5873
5884
 
@@ -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; [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
+ ```
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, resetNextQueriesWire, 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';
@@ -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
  *
@@ -116,6 +122,10 @@ const nextQueriesWiring = createWiring({
116
122
  resetNextQueriesWire,
117
123
  setNextQueriesQuery,
118
124
  },
125
+ UserClearedQuery: {
126
+ resetNextQueriesWire,
127
+ resetNextQueriesQuery,
128
+ },
119
129
  SelectedRelatedTagsChanged: {
120
130
  setNextQueriesRelatedTags,
121
131
  },
@@ -139,5 +149,5 @@ const nextQueriesWiring = createWiring({
139
149
  },
140
150
  });
141
151
 
142
- export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries };
152
+ export { fetchAndSaveNextQueriesWire, fetchAndSaveNextQueryPreviewWire, nextQueriesWiring, resetNextQueriesQuery, resetNextQueriesWire, resetResultsPreviewWire, setNextQueriesExtraParams, setNextQueriesExtraParamsFromPreview, setNextQueriesQuery, setNextQueriesQueryFromPreview, setNextQueriesRelatedTags, setQueryFromLastHistoryQueryWire, setSearchedQueries };
143
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 * 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 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,oBAAoB,GAAG,wBAAwB,CAAC,kBAAkB;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,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 },\n})\n"],"names":[],"mappings":";;;AAaA;;;;AAIG;AACH,MAAM,UAAU,GAAG,aAAa;AAEhC;;;;AAIG;AACH,MAAM,UAAU,GAA4C,oBAAoB,CA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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;;;;"}
@@ -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, resetNextQueriesWire, 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.0",
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": "58b790f477dc044d55d166ae0d287eb3ef8e8564"
120
+ "gitHead": "b77103a680e61a27e31f81669b87f763c221614a"
121
121
  }
@@ -59604,6 +59604,34 @@
59604
59604
  "endIndex": 3
59605
59605
  }
59606
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
+ },
59607
59635
  {
59608
59636
  "kind": "Variable",
59609
59637
  "canonicalReference": "@empathyco/x-components!resetNextQueriesWire:var",
@@ -4746,6 +4746,10 @@ export const nextQueriesWiring: {
4746
4746
  resetNextQueriesWire: AnyWire;
4747
4747
  setNextQueriesQuery: Wire<string>;
4748
4748
  };
4749
+ UserClearedQuery: {
4750
+ resetNextQueriesWire: AnyWire;
4751
+ resetNextQueriesQuery: AnyWire;
4752
+ };
4749
4753
  SelectedRelatedTagsChanged: {
4750
4754
  setNextQueriesRelatedTags: Wire<RelatedTag_2[]>;
4751
4755
  };
@@ -6423,6 +6427,9 @@ export const resetFromNoResultsWithFilters: AnyWire;
6423
6427
  // @public
6424
6428
  export const resetIsNoResults: AnyWire;
6425
6429
 
6430
+ // @public
6431
+ export const resetNextQueriesQuery: AnyWire;
6432
+
6426
6433
  // @public
6427
6434
  export const resetNextQueriesWire: AnyWire;
6428
6435
 
@@ -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
  *
@@ -80,6 +86,10 @@ export declare const nextQueriesWiring: {
80
86
  resetNextQueriesWire: import("../..").AnyWire;
81
87
  setNextQueriesQuery: import("../..").Wire<string>;
82
88
  };
89
+ UserClearedQuery: {
90
+ resetNextQueriesWire: import("../..").AnyWire;
91
+ resetNextQueriesQuery: import("../..").AnyWire;
92
+ };
83
93
  SelectedRelatedTagsChanged: {
84
94
  setNextQueriesRelatedTags: import("../..").Wire<import("@empathyco/x-types").RelatedTag[]>;
85
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;A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