@empathyco/x-components 3.0.0-alpha.37 → 3.0.0-alpha.41

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 (208) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/core/index.js +1 -1
  3. package/design-system/.-variables.css +0 -0
  4. package/design-system/base.css +4 -2
  5. package/design-system/default-theme.css +28 -18
  6. package/design-system/full-theme.css +159 -131
  7. package/design-system/suggestion-default.css +4 -2
  8. package/design-system/tag-default.css +19 -14
  9. package/design-system/typography-accent.token.css +1 -1
  10. package/design-system/utilities-background-color.css +9 -0
  11. package/design-system/utilities-border-color.css +9 -0
  12. package/design-system/utilities-border-radius.css +0 -24
  13. package/design-system/utilities-border-width.css +40 -40
  14. package/design-system/utilities-box-shadow.css +64 -1
  15. package/design-system/utilities-font-color.css +9 -0
  16. package/design-system/utilities-margin.css +0 -24
  17. package/design-system/utilities-padding.css +0 -24
  18. package/docs/API-reference/api/x-adapter.empathynextquery.md +1 -0
  19. package/docs/API-reference/api/x-adapter.empathynextquery.source.md +11 -0
  20. package/docs/API-reference/api/x-components.cancelfetchandsavesearchresponsewire.md +1 -1
  21. package/docs/API-reference/api/x-components.fetchandsavesearchresponse.md +1 -1
  22. package/docs/API-reference/api/x-components.fetchandsavesearchresponsewire.md +1 -1
  23. package/docs/API-reference/api/x-components.getnewandupdatedkeys.md +27 -0
  24. package/docs/API-reference/api/x-components.increasepageappendingresults.md +1 -1
  25. package/docs/API-reference/api/x-components.internalsearchrequest.md +21 -0
  26. package/docs/API-reference/api/x-components.internalsearchrequest.page.md +13 -0
  27. package/docs/API-reference/api/x-components.md +8 -6
  28. package/docs/API-reference/api/x-components.nextqueries.highlightcurated.md +13 -0
  29. package/docs/API-reference/api/x-components.nextquery.highlightcurated.md +13 -0
  30. package/docs/API-reference/api/x-components.nextquery.md +1 -0
  31. package/docs/API-reference/api/x-components.resetappending.md +1 -1
  32. package/docs/API-reference/api/x-components.resetspellcheckquery.md +1 -1
  33. package/docs/API-reference/api/x-components.resetstatewire.md +13 -0
  34. package/docs/API-reference/api/x-components.saveoriginwire.md +1 -1
  35. package/docs/API-reference/api/x-components.scroll.md +1 -3
  36. package/docs/API-reference/api/x-components.scrollmixin.md +1 -0
  37. package/docs/API-reference/api/x-components.scrollmixin.reseton.md +13 -0
  38. package/docs/API-reference/api/x-components.searchactions.fetchandsavesearchresponse.md +2 -2
  39. package/docs/API-reference/api/x-components.searchactions.md +1 -0
  40. package/docs/API-reference/api/x-components.searchactions.resetstate.md +24 -0
  41. package/docs/API-reference/api/x-components.searchgetters.md +1 -1
  42. package/docs/API-reference/api/x-components.searchgetters.request.md +1 -1
  43. package/docs/API-reference/api/x-components.searchxevents.md +2 -1
  44. package/docs/API-reference/api/x-components.searchxevents.searchrequestchanged.md +1 -1
  45. package/docs/API-reference/api/x-components.searchxevents.searchrequestupdated.md +13 -0
  46. package/docs/API-reference/api/x-components.setpagesize.md +1 -1
  47. package/docs/API-reference/api/x-components.setquerytagginginfo.md +13 -0
  48. package/docs/API-reference/api/x-components.setrelatedtags.md +1 -1
  49. package/docs/API-reference/api/x-components.setsearchextraparams.md +1 -1
  50. package/docs/API-reference/api/x-components.setsearchpage.md +1 -1
  51. package/docs/API-reference/api/x-components.setsearchquery.md +1 -1
  52. package/docs/API-reference/api/x-components.setselectedfilters.md +1 -1
  53. package/docs/API-reference/api/x-components.setsort.md +1 -1
  54. package/docs/API-reference/api/x-components.seturlparams.md +1 -1
  55. package/docs/API-reference/api/x-components.slidingpanel.md +2 -12
  56. package/docs/API-reference/api/x-components.slidingpanel.resetoncontentchange.md +13 -0
  57. package/docs/API-reference/api/x-components.slidingpanel.scrollfactor.md +1 -1
  58. package/docs/API-reference/api/x-components.slidingpanel.showbuttons.md +1 -1
  59. package/docs/API-reference/api/x-components.taggingmutations.md +1 -0
  60. package/docs/API-reference/api/x-components.taggingmutations.setquerytagginginfo.md +24 -0
  61. package/docs/API-reference/api/x-components.taggingstate.md +1 -0
  62. package/docs/API-reference/api/x-components.taggingstate.querytagginginfo.md +13 -0
  63. package/docs/API-reference/api/x-components.taggingxevents.md +1 -0
  64. package/docs/API-reference/api/x-components.taggingxevents.searchtaggingreceived.md +13 -0
  65. package/docs/API-reference/api/x-components.trackquerywire.md +1 -1
  66. package/docs/API-reference/api/x-components.watchedinternalsearchrequest.md +21 -0
  67. package/docs/API-reference/api/x-components.watchedinternalsearchrequest.newrequest.md +11 -0
  68. package/docs/API-reference/api/x-components.watchedinternalsearchrequest.oldrequest.md +11 -0
  69. package/docs/API-reference/api/x-components.wiremetadata.md +1 -0
  70. package/docs/API-reference/api/x-components.wiremetadata.oldvalue.md +13 -0
  71. package/docs/API-reference/api/x-components.xcomponentaliasapi.md +1 -0
  72. package/docs/API-reference/api/x-components.xcomponentaliasapi.selectedsort.md +13 -0
  73. package/docs/API-reference/api/x-types.nextquery.iscurated.md +13 -0
  74. package/docs/API-reference/api/x-types.nextquery.md +6 -0
  75. package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +52 -33
  76. package/docs/API-reference/components/common/x-components.sliding-panel.md +192 -33
  77. package/docs/API-reference/components/next-queries/x-components.next-queries.md +17 -11
  78. package/docs/API-reference/components/next-queries/x-components.next-query.md +16 -7
  79. package/docs/API-reference/components/scroll/x-components.scroll.md +5 -8
  80. package/js/components/currency/base-currency.vue.js +3 -2
  81. package/js/components/currency/base-currency.vue.js.map +1 -1
  82. package/js/components/layouts/single-column-layout.vue.js +12 -4
  83. package/js/components/layouts/single-column-layout.vue.js.map +1 -1
  84. package/js/components/layouts/single-column-layout.vue_rollup-plugin-vue=script.js.map +1 -1
  85. package/js/components/result/base-result-image.vue.js +3 -2
  86. package/js/components/result/base-result-image.vue.js.map +1 -1
  87. package/js/components/result/base-result-image.vue_rollup-plugin-vue=script.js.map +1 -1
  88. package/js/components/scroll/base-scroll.vue.js +2 -2
  89. package/js/components/scroll/base-scroll.vue.js.map +1 -1
  90. package/js/components/scroll/scroll.mixin.js +12 -6
  91. package/js/components/scroll/scroll.mixin.js.map +1 -1
  92. package/js/components/sliding-panel.vue.js +2 -2
  93. package/js/components/sliding-panel.vue.js.map +1 -1
  94. package/js/components/sliding-panel.vue_rollup-plugin-vue=script.js +56 -40
  95. package/js/components/sliding-panel.vue_rollup-plugin-vue=script.js.map +1 -1
  96. package/js/directives/infinite-scroll/infinite-scroll.js +2 -1
  97. package/js/directives/infinite-scroll/infinite-scroll.js.map +1 -1
  98. package/js/index.js +3 -3
  99. package/js/plugins/x-emitters.js +3 -3
  100. package/js/plugins/x-emitters.js.map +1 -1
  101. package/js/plugins/x-plugin.alias.js +4 -0
  102. package/js/plugins/x-plugin.alias.js.map +1 -1
  103. package/js/utils/object.js +17 -1
  104. package/js/utils/object.js.map +1 -1
  105. package/js/x-modules/facets/wiring.js +3 -0
  106. package/js/x-modules/facets/wiring.js.map +1 -1
  107. package/js/x-modules/next-queries/components/next-queries.vue.js +15 -4
  108. package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
  109. package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue=script.js +3 -0
  110. package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue=script.js.map +1 -1
  111. package/js/x-modules/next-queries/components/next-query.vue.js +6 -1
  112. package/js/x-modules/next-queries/components/next-query.vue.js.map +1 -1
  113. package/js/x-modules/next-queries/components/next-query.vue_rollup-plugin-vue=script.js +18 -0
  114. package/js/x-modules/next-queries/components/next-query.vue_rollup-plugin-vue=script.js.map +1 -1
  115. package/js/x-modules/related-tags/wiring.js +3 -0
  116. package/js/x-modules/related-tags/wiring.js.map +1 -1
  117. package/js/x-modules/scroll/components/scroll.vue.js +14 -13
  118. package/js/x-modules/scroll/components/scroll.vue.js.map +1 -1
  119. package/js/x-modules/scroll/components/scroll.vue_rollup-plugin-vue=script.js +2 -9
  120. package/js/x-modules/scroll/components/scroll.vue_rollup-plugin-vue=script.js.map +1 -1
  121. package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js +19 -5
  122. package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js.map +1 -1
  123. package/js/x-modules/search/store/actions/increase-page-apending-results.action.js +1 -1
  124. package/js/x-modules/search/store/actions/increase-page-apending-results.action.js.map +1 -1
  125. package/js/x-modules/search/store/actions/reset-state.action.js +32 -0
  126. package/js/x-modules/search/store/actions/reset-state.action.js.map +1 -0
  127. package/js/x-modules/search/store/emitters.js +6 -0
  128. package/js/x-modules/search/store/emitters.js.map +1 -1
  129. package/js/x-modules/search/store/getters/request.getter.js +2 -2
  130. package/js/x-modules/search/store/getters/request.getter.js.map +1 -1
  131. package/js/x-modules/search/store/module.js +2 -3
  132. package/js/x-modules/search/store/module.js.map +1 -1
  133. package/js/x-modules/search/wiring.js +15 -32
  134. package/js/x-modules/search/wiring.js.map +1 -1
  135. package/js/x-modules/tagging/store/emitters.js +2 -4
  136. package/js/x-modules/tagging/store/emitters.js.map +1 -1
  137. package/js/x-modules/tagging/store/module.js +5 -1
  138. package/js/x-modules/tagging/store/module.js.map +1 -1
  139. package/js/x-modules/tagging/wiring.js +15 -6
  140. package/js/x-modules/tagging/wiring.js.map +1 -1
  141. package/package.json +4 -4
  142. package/report/x-adapter.api.json +26 -0
  143. package/report/x-components.api.json +595 -300
  144. package/report/x-components.api.md +70 -43
  145. package/report/x-types.api.json +28 -1
  146. package/search/index.js +1 -1
  147. package/tagging/index.js +1 -1
  148. package/types/components/layouts/single-column-layout.vue.d.ts.map +1 -1
  149. package/types/components/result/base-result-image.vue.d.ts.map +1 -1
  150. package/types/components/scroll/scroll.mixin.d.ts +7 -0
  151. package/types/components/scroll/scroll.mixin.d.ts.map +1 -1
  152. package/types/components/sliding-panel.vue.d.ts +35 -18
  153. package/types/components/sliding-panel.vue.d.ts.map +1 -1
  154. package/types/plugins/x-plugin.alias.d.ts.map +1 -1
  155. package/types/plugins/x-plugin.types.d.ts +2 -0
  156. package/types/plugins/x-plugin.types.d.ts.map +1 -1
  157. package/types/utils/object.d.ts +11 -0
  158. package/types/utils/object.d.ts.map +1 -1
  159. package/types/wiring/wiring.types.d.ts +2 -0
  160. package/types/wiring/wiring.types.d.ts.map +1 -1
  161. package/types/x-modules/facets/wiring.d.ts +3 -0
  162. package/types/x-modules/facets/wiring.d.ts.map +1 -1
  163. package/types/x-modules/next-queries/components/next-queries.vue.d.ts +6 -0
  164. package/types/x-modules/next-queries/components/next-queries.vue.d.ts.map +1 -1
  165. package/types/x-modules/next-queries/components/next-query.vue.d.ts +14 -0
  166. package/types/x-modules/next-queries/components/next-query.vue.d.ts.map +1 -1
  167. package/types/x-modules/related-tags/wiring.d.ts +3 -0
  168. package/types/x-modules/related-tags/wiring.d.ts.map +1 -1
  169. package/types/x-modules/scroll/components/scroll.vue.d.ts +2 -17
  170. package/types/x-modules/scroll/components/scroll.vue.d.ts.map +1 -1
  171. package/types/x-modules/search/events.types.d.ts +7 -2
  172. package/types/x-modules/search/events.types.d.ts.map +1 -1
  173. package/types/x-modules/search/index.d.ts +1 -0
  174. package/types/x-modules/search/index.d.ts.map +1 -1
  175. package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts +2 -2
  176. package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -1
  177. package/types/x-modules/search/store/actions/reset-state.action.d.ts +11 -0
  178. package/types/x-modules/search/store/actions/reset-state.action.d.ts.map +1 -0
  179. package/types/x-modules/search/store/emitters.d.ts +5 -1
  180. package/types/x-modules/search/store/emitters.d.ts.map +1 -1
  181. package/types/x-modules/search/store/getters/request.getter.d.ts.map +1 -1
  182. package/types/x-modules/search/store/module.d.ts.map +1 -1
  183. package/types/x-modules/search/store/types.d.ts +9 -2
  184. package/types/x-modules/search/store/types.d.ts.map +1 -1
  185. package/types/x-modules/search/types.d.ts +22 -0
  186. package/types/x-modules/search/types.d.ts.map +1 -0
  187. package/types/x-modules/search/wiring.d.ts +37 -59
  188. package/types/x-modules/search/wiring.d.ts.map +1 -1
  189. package/types/x-modules/tagging/events.types.d.ts +6 -0
  190. package/types/x-modules/tagging/events.types.d.ts.map +1 -1
  191. package/types/x-modules/tagging/store/emitters.d.ts +1 -0
  192. package/types/x-modules/tagging/store/emitters.d.ts.map +1 -1
  193. package/types/x-modules/tagging/store/module.d.ts.map +1 -1
  194. package/types/x-modules/tagging/store/types.d.ts +10 -0
  195. package/types/x-modules/tagging/store/types.d.ts.map +1 -1
  196. package/types/x-modules/tagging/wiring.d.ts +14 -5
  197. package/types/x-modules/tagging/wiring.d.ts.map +1 -1
  198. package/docs/API-reference/api/x-components.resetfacets.md +0 -13
  199. package/docs/API-reference/api/x-components.resetpage.md +0 -13
  200. package/docs/API-reference/api/x-components.resetsort.md +0 -13
  201. package/docs/API-reference/api/x-components.scroll.distancetobottom.md +0 -13
  202. package/docs/API-reference/api/x-components.scroll.throttlems.md +0 -13
  203. package/docs/API-reference/api/x-components.slidingpanel._refs.md +0 -15
  204. package/docs/API-reference/api/x-components.slidingpanel.beforedestroy.md +0 -15
  205. package/docs/API-reference/api/x-components.slidingpanel.isscrollatend.md +0 -13
  206. package/docs/API-reference/api/x-components.slidingpanel.isscrollatstart.md +0 -13
  207. package/docs/API-reference/api/x-components.slidingpanel.mounted.md +0 -15
  208. package/docs/API-reference/api/x-components.slidingpanel.scrollobserver.md +0 -13
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/facets/wiring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA6EnD;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BvB,CAAC"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/facets/wiring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA6EnD;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BvB,CAAC"}
@@ -28,5 +28,11 @@ export default class NextQueries extends Vue {
28
28
  * @internal
29
29
  */
30
30
  nextQueries: NextQueryModel[];
31
+ /**
32
+ * Flag to indicate if the curated next queries should be displayed different.
33
+ *
34
+ * @public
35
+ */
36
+ protected highlightCurated: boolean;
31
37
  }
32
38
  //# sourceMappingURL=next-queries.vue?rollup-plugin-vue=script.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next-queries.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-queries.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;;;GAQG;AAKH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,GAAG;IAC1C;;;;OAIG;IAEH,SAAS,CAAC,SAAS,EAAG,GAAG,CAAC;IAE1B;;;;OAIG;IAEH,SAAS,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;OAIG;IAEI,WAAW,EAAG,cAAc,EAAE,CAAC;CACvC"}
1
+ {"version":3,"file":"next-queries.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-queries.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAqCA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,GAAG,MAAM,KAAK,CAAC;AAQtB;;;;;;;;GAQG;AAKH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,GAAG;IAC1C;;;;OAIG;IAEH,SAAS,CAAC,SAAS,EAAG,GAAG,CAAC;IAE1B;;;;OAIG;IAEH,SAAS,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;OAIG;IAEI,WAAW,EAAG,cAAc,EAAE,CAAC;IAEtC;;;;OAIG;IAEH,SAAS,CAAC,gBAAgB,EAAG,OAAO,CAAC;CACtC"}
@@ -15,6 +15,12 @@ export default class NextQuery extends Vue {
15
15
  * @public
16
16
  */
17
17
  protected suggestion: NextQueryModel;
18
+ /**
19
+ * Indicates if the curated next query should be highlighted.
20
+ *
21
+ * @public
22
+ */
23
+ protected highlightCurated: boolean;
18
24
  /**
19
25
  * Events list which are going to be emitted when a next query is selected.
20
26
  *
@@ -22,5 +28,13 @@ export default class NextQuery extends Vue {
22
28
  * @public
23
29
  */
24
30
  protected get events(): Partial<XEventsTypes>;
31
+ /**
32
+ * Checks if the next query is curated and if it should be highlighted.
33
+ *
34
+ * @returns True if the next query is curated and should be highlighted.
35
+ *
36
+ * @internal
37
+ */
38
+ protected get shouldHighlightCurated(): boolean;
25
39
  }
26
40
  //# sourceMappingURL=next-query.vue?rollup-plugin-vue=script.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next-query.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-query.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,GAAG,MAAM,KAAK,CAAC;AAItB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D;;;;;;GAMG;AAKH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,GAAG;IACxC;;;;OAIG;IAEH,SAAS,CAAC,UAAU,EAAG,cAAc,CAAC;IAEtC;;;;;OAKG;IACH,SAAS,KAAK,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC,CAI5C;CACF"}
1
+ {"version":3,"file":"next-query.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/next-queries/components/next-query.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,GAAG,MAAM,KAAK,CAAC;AAItB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D;;;;;;GAMG;AAKH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,GAAG;IACxC;;;;OAIG;IAEH,SAAS,CAAC,UAAU,EAAG,cAAc,CAAC;IAEtC;;;;OAIG;IAEH,SAAS,CAAC,gBAAgB,EAAG,OAAO,CAAC;IAErC;;;;;OAKG;IACH,SAAS,KAAK,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC,CAI5C;IAED;;;;;;OAMG;IACH,SAAS,KAAK,sBAAsB,IAAI,OAAO,CAE9C;CACF"}
@@ -59,6 +59,9 @@ export declare const relatedTagsWiring: {
59
59
  UserPickedARelatedTag: {
60
60
  toggleRelatedTagWire: import("../..").Wire<import("@empathyco/x-types").RelatedTag>;
61
61
  };
62
+ UserChangedExtraParams: {
63
+ clearSelectedRelatedTags: import("../..").AnyWire;
64
+ };
62
65
  RelatedTagsRequestChanged: {
63
66
  fetchAndSaveRelatedTagsWire: import("../..").Wire<import("@empathyco/x-adapter").RelatedTagsRequest | null>;
64
67
  };
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/related-tags/wiring.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,8BAAyB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,2DAA0B,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,gFAA0C,CAAC;AAEnF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,yBAE7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+DAAmC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,yBAA2C,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,yBAA6B,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,iDAA+B,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CAsB5B,CAAC"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/related-tags/wiring.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,8BAAyB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,2DAA0B,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,gFAA0C,CAAC;AAEnF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,yBAE7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+DAAmC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,yBAA2C,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,yBAA6B,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,iDAA+B,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAC"}
@@ -2,27 +2,12 @@ import Vue from 'vue';
2
2
  import { WireMetadata } from '../../../wiring/wiring.types';
3
3
  import { ScrollDirection } from '../../../components/scroll/scroll.types';
4
4
  /**
5
- * Base scroll component that depending on base scroll component and the user interaction emits
6
- * different x events for knowing when the user scrolls, the direction of scroll and if user
7
- * reaches the start or end.
5
+ * Scrollable container that emits scroll related X Events. It exposes all the listeners
6
+ * and props from the {@link BaseScroll} component.
8
7
  *
9
8
  * @public
10
9
  */
11
10
  export default class Scroll extends Vue {
12
- /**
13
- * Time duration to ignore the subsequent scroll events after an emission.
14
- * Higher values will decrease events precision but can prevent performance issues.
15
- *
16
- * @public
17
- */
18
- throttleMs: number;
19
- /**
20
- * Distance to the end of the scroll that when reached will emit the
21
- * `scroll:about-to-end` event.
22
- *
23
- * @public
24
- */
25
- distanceToBottom: number;
26
11
  /**
27
12
  * Id to identify the component.
28
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/scroll/components/scroll.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAI1E;;;;;;GAMG;AAKH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,GAAG;IACrC;;;;;OAKG;IAEI,UAAU,EAAG,MAAM,CAAC;IAE3B;;;;;OAKG;IAEI,gBAAgB,EAAG,MAAM,CAAC;IAEjC;;;;OAIG;IAEI,EAAE,EAAG,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI5C;;;;;OAKG;IACH,SAAS,CAAC,yBAAyB,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAIrE;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAIrD;;;;;OAKG;IACH,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI;IAI7D;;;;;OAKG;IACH,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAIjD;;;;;OAKG;IACH,SAAS,CAAC,mBAAmB,IAAI,OAAO,CAAC,YAAY,CAAC;IAItD;;;;;OAKG;IAEH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAKpC"}
1
+ {"version":3,"file":"scroll.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/scroll/components/scroll.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAI1E;;;;;GAKG;AAKH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,GAAG;IACrC;;;;OAIG;IAEI,EAAE,EAAG,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI5C;;;;;OAKG;IACH,SAAS,CAAC,yBAAyB,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAIrE;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAIrD;;;;;OAKG;IACH,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI;IAI7D;;;;;OAKG;IACH,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAIjD;;;;;OAKG;IACH,SAAS,CAAC,mBAAmB,IAAI,OAAO,CAAC,YAAY,CAAC;IAItD;;;;;OAKG;IAEH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAKpC"}
@@ -1,5 +1,5 @@
1
- import { SearchRequest } from '@empathyco/x-adapter';
2
1
  import { Facet, Result, Sort, Redirection, TaggingInfo, Promoted, Banner } from '@empathyco/x-types';
2
+ import { InternalSearchRequest } from './types';
3
3
  /**
4
4
  * Dictionary of the events of Search XModule, where each key is the event name, and the value is
5
5
  * the event payload type or `void` if it has no payload.
@@ -27,7 +27,12 @@ export interface SearchXEvents {
27
27
  * * Payload: The new search request or `null` if there is not enough data in the state
28
28
  * to conform a valid request.
29
29
  */
30
- SearchRequestChanged: SearchRequest | null;
30
+ SearchRequestChanged: InternalSearchRequest | null;
31
+ /**
32
+ * Any property of the search request has been updated.
33
+ * * Payload: The new internal request object.
34
+ */
35
+ SearchRequestUpdated: InternalSearchRequest;
31
36
  /**
32
37
  * Query tagging has been changed.
33
38
  * * Payload: The new query tagging object.
@@ -1 +1 @@
1
- {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,KAAK,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACP,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,aAAa,EAAE,KAAK,EAAE,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,oBAAoB,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3C;;;OAGG;IACH,oBAAoB,EAAE,WAAW,CAAC;IAClC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,EAAE,IAAI,CAAC;IACvB;;;;;;OAMG;IACH,oBAAoB,EAAE,IAAI,CAAC;IAC3B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,yBAAyB,EAAE,IAAI,CAAC;IAChC;;;OAGG;IACH,uBAAuB,EAAE,WAAW,CAAC;IACrC;;;OAGG;IACH,oBAAoB,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,4BAA4B,EAAE,IAAI,CAAC;CACpC"}
1
+ {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,aAAa,EAAE,KAAK,EAAE,CAAC;IACvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,oBAAoB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACnD;;;OAGG;IACH,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C;;;OAGG;IACH,oBAAoB,EAAE,WAAW,CAAC;IAClC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,EAAE,IAAI,CAAC;IACvB;;;;;;OAMG;IACH,oBAAoB,EAAE,IAAI,CAAC;IAC3B;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,yBAAyB,EAAE,IAAI,CAAC;IAChC;;;OAGG;IACH,uBAAuB,EAAE,WAAW,CAAC;IACrC;;;OAGG;IACH,oBAAoB,EAAE,QAAQ,CAAC;IAC/B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,4BAA4B,EAAE,IAAI,CAAC;CACpC"}
@@ -2,6 +2,7 @@ export * from './components';
2
2
  export * from './config.types';
3
3
  export * from './events.types';
4
4
  export * from './store';
5
+ export * from './types';
5
6
  export * from './wiring';
6
7
  export * from './x-module';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -1,11 +1,11 @@
1
- import { SearchRequest } from '@empathyco/x-adapter';
1
+ import { InternalSearchRequest } from '../../types';
2
2
  import { SearchActionContext } from '../types';
3
3
  /**
4
4
  * Default implementation for {@link SearchActions.fetchAndSaveSearchResponse} action.
5
5
  *
6
6
  * @public
7
7
  */
8
- export declare const fetchAndSaveSearchResponse: (context: SearchActionContext, request: SearchRequest | null) => void | Promise<void>;
8
+ export declare const fetchAndSaveSearchResponse: (context: SearchActionContext, request: InternalSearchRequest | null) => void | Promise<void>;
9
9
  /**
10
10
  * Default implementation for {@link SearchActions.cancelFetchAndSaveSearchResponse} action.
11
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-and-save-search-response.action.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/actions/fetch-and-save-search-response.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAmD/C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,uFAAe,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,YAAiB,CAAC"}
1
+ {"version":3,"file":"fetch-and-save-search-response.action.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/actions/fetch-and-save-search-response.action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAe,MAAM,UAAU,CAAC;AA2E5D;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,+FAAe,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,YAAiB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { SearchXStoreModule } from '../types';
2
+ /**
3
+ * Default implementation for the {@link SearchActions.resetState}.
4
+ *
5
+ * @param context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,
6
+ * provided by Vuex.
7
+ *
8
+ * @public
9
+ */
10
+ export declare const resetState: SearchXStoreModule['actions']['resetState'];
11
+ //# sourceMappingURL=reset-state.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-state.action.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/actions/reset-state.action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,YAAY,CAoBlE,CAAC"}
@@ -10,7 +10,11 @@ export declare const searchEmitters: {
10
10
  };
11
11
  PageChanged: (state: import("./types").SearchState) => number;
12
12
  ResultsChanged: (state: import("./types").SearchState) => import("@empathyco/x-types").Result[];
13
- SearchRequestChanged: (_: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => import("@empathyco/x-adapter").SearchRequest | null;
13
+ SearchRequestChanged: (_: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => import("..").InternalSearchRequest | null;
14
+ SearchRequestUpdated: {
15
+ selector: (_: import("./types").SearchState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").SearchState, import("./types").SearchGetters>>) => import("..").InternalSearchRequest;
16
+ filter(newValue: import("..").InternalSearchRequest, oldValue: import("..").InternalSearchRequest): boolean;
17
+ };
14
18
  SearchTaggingChanged: {
15
19
  selector: (state: import("./types").SearchState) => import("@empathyco/x-types").TaggingInfo;
16
20
  filter: ({ url }: import("@empathyco/x-types").TaggingInfo) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/store/emitters.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;gHAGK,OAAO;;;;;;;;;;;CAarC,CAAC"}
1
+ {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/store/emitters.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;gHAGK,OAAO;;;;;;;4GASP,OAAO;;;;;;;;CAUrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"request.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/getters/request.getter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,SAAS,CAqB5D,CAAC"}
1
+ {"version":3,"file":"request.getter.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/search/store/getters/request.getter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,SAAS,CAkB5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/store/module.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAuGhC,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/search/store/module.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAqGhC,CAAC"}
@@ -6,6 +6,7 @@ import { QueryOrigin, QueryOriginInit } from '../../../types/origin';
6
6
  import { UrlParams } from '../../../types/url-params';
7
7
  import { Dictionary } from '../../../utils/types';
8
8
  import { SearchConfig } from '../config.types';
9
+ import { InternalSearchRequest, WatchedInternalSearchRequest } from '../types';
9
10
  /**
10
11
  * Search store state.
11
12
  *
@@ -58,7 +59,7 @@ export interface SearchState extends StatusState {
58
59
  export interface SearchGetters {
59
60
  /** The adapter request object for retrieving the results, or null if there is not
60
61
  * valid data to create a request. */
61
- request: SearchRequest | null;
62
+ request: InternalSearchRequest | null;
62
63
  }
63
64
  /**
64
65
  * Search store mutations.
@@ -187,6 +188,12 @@ export interface SearchMutations extends StatusMutations {
187
188
  * @public
188
189
  */
189
190
  export interface SearchActions {
191
+ /**
192
+ * Batches state resets in a single action after {@link SearchGetters.request} parameters update.
193
+ *
194
+ * @param watchedRequest - The watched internal search request object.
195
+ */
196
+ resetState(watchedRequest: WatchedInternalSearchRequest): void;
190
197
  /**
191
198
  * Cancels / interrupt {@link SearchActions.fetchAndSaveSearchResponse} synchronous promise.
192
199
  */
@@ -194,7 +201,7 @@ export interface SearchActions {
194
201
  /**
195
202
  * Fetches a new search response and stores them in the module state.
196
203
  */
197
- fetchAndSaveSearchResponse(request: SearchRequest | null): void;
204
+ fetchAndSaveSearchResponse(request: InternalSearchRequest | null): void;
198
205
  /**
199
206
  * Fetches the search response and returns them.
200
207
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AAE,aAAa,GAAG,IAAI,GAAG,cAAc,CAAC;IACnE;;;;;;OAMG;IACH,4BAA4B,IAAI,IAAI,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,UAAU,CAAC,UAAU,EAAE,eAAe,GAAG,IAAI,CAAC;CAC/C;AAED;;;;GAIG;AACH,oBAAY,kBAAkB,GAAG,YAAY,CAC3C,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,CACd,CAAC;AAEF;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,cAAc,CAC9C,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,CACd,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { SearchRequest } from '@empathyco/x-adapter';
2
+ /**
3
+ * An internal search request containing the page used to calculate the start and rows properties of
4
+ * a {@link @empathyco/x-adapter#SearchRequest}.
5
+ *
6
+ * @public
7
+ */
8
+ export interface InternalSearchRequest extends SearchRequest {
9
+ /** The page number. */
10
+ page: number;
11
+ }
12
+ /**
13
+ * A representation of a watched {@link InternalSearchRequest} object, wrapping its new and old
14
+ * values.
15
+ *
16
+ * @public
17
+ */
18
+ export interface WatchedInternalSearchRequest {
19
+ newRequest: InternalSearchRequest;
20
+ oldRequest: InternalSearchRequest;
21
+ }
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,qBAAqB,CAAC;IAClC,UAAU,EAAE,qBAAqB,CAAC;CACnC"}
@@ -1,105 +1,94 @@
1
+ import { InternalSearchRequest } from './types';
1
2
  /**
2
3
  * Cancels the {@link SearchActions.fetchAndSaveSearchResponse} request promise.
3
4
  *
4
5
  * @public
5
6
  */
6
- export declare const cancelFetchAndSaveSearchResponseWire: import("../..").AnyWire;
7
+ export declare const cancelFetchAndSaveSearchResponseWire: import("../../wiring/wiring.types").AnyWire;
7
8
  /**
8
9
  * Sets the search state `origin`.
9
10
  *
10
11
  * @public
11
12
  */
12
- export declare const saveOriginWire: import("../..").AnyWire;
13
+ export declare const saveOriginWire: import("../../wiring/wiring.types").AnyWire;
13
14
  /**
14
15
  * Requests and stores the search response.
15
16
  *
16
17
  * @public
17
18
  */
18
- export declare const fetchAndSaveSearchResponseWire: import("../..").Wire<import("@empathyco/x-adapter").SearchRequest | null>;
19
+ export declare const fetchAndSaveSearchResponseWire: import("../../wiring/wiring.types").Wire<InternalSearchRequest | null>;
19
20
  /**
20
21
  * Resets the search state `spellcheckedQuery` to its initial value, an empty string.
21
22
  *
22
23
  * @public
23
24
  */
24
- export declare const resetSpellcheckQuery: import("../..").AnyWire;
25
+ export declare const resetSpellcheckQuery: import("../../wiring/wiring.types").AnyWire;
25
26
  /**
26
27
  * Sets the search state `relatedTags`.
27
28
  *
28
29
  * @public
29
30
  */
30
- export declare const setRelatedTags: import("../..").Wire<import("@empathyco/x-types").RelatedTag[]>;
31
+ export declare const setRelatedTags: import("../../wiring/wiring.types").Wire<import("@empathyco/x-types").RelatedTag[]>;
31
32
  /**
32
33
  * Sets the search state `query`.
33
34
  *
34
35
  * @public
35
36
  */
36
- export declare const setSearchQuery: import("../..").Wire<string>;
37
+ export declare const setSearchQuery: import("../../wiring/wiring.types").Wire<string>;
37
38
  /**
38
39
  * Sets the search state `selectedFilters`.
39
40
  *
40
41
  * @public
41
42
  */
42
- export declare const setSelectedFilters: import("../..").Wire<import("@empathyco/x-types").Filter[]>;
43
+ export declare const setSelectedFilters: import("../../wiring/wiring.types").Wire<import("@empathyco/x-types").Filter[]>;
43
44
  /**
44
45
  * Sets the search state `sort`.
45
46
  *
46
47
  * @public
47
48
  */
48
- export declare const setSort: import("../..").Wire<string>;
49
+ export declare const setSort: import("../../wiring/wiring.types").Wire<string>;
49
50
  /**
50
51
  * Sets the search state `query`.
51
52
  *
52
53
  * @public
53
54
  */
54
- export declare const setUrlParams: import("../..").Wire<import("../..").UrlParams>;
55
+ export declare const setUrlParams: import("../../wiring/wiring.types").Wire<import("../..").UrlParams>;
55
56
  /**
56
57
  * Sets the search state `page`.
57
58
  *
58
59
  * @public
59
60
  */
60
- export declare const setSearchPage: import("../..").Wire<number>;
61
+ export declare const setSearchPage: import("../../wiring/wiring.types").Wire<number>;
61
62
  /**
62
63
  * Sets the search state `params`.
63
64
  *
64
65
  * @public
65
66
  */
66
- export declare const setSearchExtraParams: import("../..").Wire<import("../..").Dictionary<unknown>>;
67
+ export declare const setSearchExtraParams: import("../../wiring/wiring.types").Wire<import("../..").Dictionary<unknown>>;
67
68
  /**
68
69
  * Increases the current search state `page` by one.
69
70
  *
70
71
  * @public
71
72
  */
72
- export declare const increasePageAppendingResults: import("../..").AnyWire;
73
+ export declare const increasePageAppendingResults: import("../../wiring/wiring.types").AnyWire;
73
74
  /**
74
75
  * Sets the search state `pageSize`.
75
76
  *
76
77
  * @public
77
78
  */
78
- export declare const setPageSize: import("../..").Wire<number>;
79
+ export declare const setPageSize: import("../../wiring/wiring.types").Wire<number>;
79
80
  /**
80
- * Sets 1 to the search state `page`.
81
- *
82
- * @public
83
- */
84
- export declare const resetPage: import("../..").AnyWire;
85
- /**
86
- * Sets empty value to the search state `sort`.
87
- *
88
- * @public
89
- */
90
- export declare const resetSort: import("../..").AnyWire;
91
- /**
92
- * Sets empty value to the search state `facets`.
81
+ * Resets the search state `isAppendingResults`.
93
82
  *
94
83
  * @public
95
84
  */
96
- export declare const resetFacets: import("../..").AnyWire;
85
+ export declare const resetAppending: import("../../wiring/wiring.types").AnyWire;
97
86
  /**
98
- * Resets the search state `isAppendingResults`.
87
+ * Batches state resets after {@link SearchGetters.request} parameters update.
99
88
  *
100
89
  * @public
101
90
  */
102
- export declare const resetAppending: import("../..").AnyWire;
91
+ export declare const resetStateWire: import("../../wiring/wiring.types").AnyWire;
103
92
  /**
104
93
  * Search wiring.
105
94
  *
@@ -107,60 +96,49 @@ export declare const resetAppending: import("../..").AnyWire;
107
96
  */
108
97
  export declare const searchWiring: {
109
98
  UserAcceptedAQuery: {
110
- resetPage: import("../..").AnyWire;
111
- resetSort: import("../..").AnyWire;
112
- setSearchQuery: import("../..").Wire<string>;
113
- saveOriginWire: import("../..").AnyWire;
99
+ setSearchQuery: import("../../wiring/wiring.types").Wire<string>;
100
+ saveOriginWire: import("../../wiring/wiring.types").AnyWire;
114
101
  };
115
102
  UserAcceptedSpellcheckQuery: {
116
- resetPage: import("../..").AnyWire;
117
- resetSpellcheckQuery: import("../..").AnyWire;
103
+ resetSpellcheckQuery: import("../../wiring/wiring.types").AnyWire;
118
104
  };
119
105
  UserClearedQuery: {
120
- resetPage: import("../..").AnyWire;
121
- setSearchQuery: import("../..").Wire<string>;
122
- cancelFetchAndSaveSearchResponseWire: import("../..").AnyWire;
123
- };
124
- UserClickedAFilter: {
125
- resetPage: import("../..").AnyWire;
106
+ setSearchQuery: import("../../wiring/wiring.types").Wire<string>;
107
+ cancelFetchAndSaveSearchResponseWire: import("../../wiring/wiring.types").AnyWire;
126
108
  };
127
109
  UserClickedASort: {
128
- resetPage: import("../..").AnyWire;
129
- setSort: import("../..").Wire<string>;
110
+ setSort: import("../../wiring/wiring.types").Wire<string>;
130
111
  };
131
112
  UserPickedARelatedTag: {
132
- saveOriginWire: import("../..").AnyWire;
133
- resetPage: import("../..").AnyWire;
134
- };
135
- UserChangedExtraParams: {
136
- resetPage: import("../..").AnyWire;
137
- resetSort: import("../..").AnyWire;
138
- resetFacets: import("../..").AnyWire;
113
+ saveOriginWire: import("../../wiring/wiring.types").AnyWire;
139
114
  };
140
115
  UserReachedResultsListEnd: {
141
- increasePageAppendingResults: import("../..").AnyWire;
116
+ increasePageAppendingResults: import("../../wiring/wiring.types").AnyWire;
142
117
  };
143
118
  SearchRequestChanged: {
144
- fetchAndSaveSearchResponseWire: import("../..").Wire<import("@empathyco/x-adapter").SearchRequest | null>;
119
+ fetchAndSaveSearchResponseWire: import("../../wiring/wiring.types").Wire<InternalSearchRequest | null>;
120
+ };
121
+ SearchRequestUpdated: {
122
+ resetStateWire: import("../../wiring/wiring.types").AnyWire;
145
123
  };
146
124
  SelectedRelatedTagsChanged: {
147
- setRelatedTags: import("../..").Wire<import("@empathyco/x-types").RelatedTag[]>;
125
+ setRelatedTags: import("../../wiring/wiring.types").Wire<import("@empathyco/x-types").RelatedTag[]>;
148
126
  };
149
127
  SelectedFiltersChanged: {
150
- setSelectedFilters: import("../..").Wire<import("@empathyco/x-types").Filter[]>;
128
+ setSelectedFilters: import("../../wiring/wiring.types").Wire<import("@empathyco/x-types").Filter[]>;
151
129
  };
152
130
  ResultsChanged: {
153
- resetAppending: import("../..").AnyWire;
131
+ resetAppending: import("../../wiring/wiring.types").AnyWire;
154
132
  };
155
133
  SelectedSortProvided: {
156
- setSort: import("../..").Wire<string>;
134
+ setSort: import("../../wiring/wiring.types").Wire<string>;
157
135
  };
158
136
  ExtraParamsChanged: {
159
- setSearchExtraParams: import("../..").Wire<import("../..").Dictionary<unknown>>;
137
+ setSearchExtraParams: import("../../wiring/wiring.types").Wire<import("../..").Dictionary<unknown>>;
160
138
  };
161
139
  ParamsLoadedFromUrl: {
162
- setUrlParams: import("../..").Wire<import("../..").UrlParams>;
163
- saveOriginWire: import("../..").AnyWire;
140
+ setUrlParams: import("../../wiring/wiring.types").Wire<import("../..").UrlParams>;
141
+ saveOriginWire: import("../../wiring/wiring.types").AnyWire;
164
142
  };
165
143
  };
166
144
  //# sourceMappingURL=wiring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/search/wiring.ts"],"names":[],"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6CAEhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,6CAAyD,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,wEAA6C,CAAC;AAEzF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,6CAAkC,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,cAAc,qFAA+B,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,cAAc,kDAAyB,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,iFAAmC,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,OAAO,kDAAwB,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,YAAY,qEAA+B,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,aAAa,kDAAwB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+EAA0B,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,6CAExC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,kDAA4B,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,cAAc,6CAA0C,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,cAAc,6CAM1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CvB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { TaggingInfo } from '@empathyco/x-types';
1
2
  /**
2
3
  * Dictionary of the events of Tagging XModule, where each key is the event name, and the value is
3
4
  * the event payload type or `void` if it has no payload.
@@ -20,6 +21,11 @@ export interface TaggingXEvents {
20
21
  * * Payload: The new query tagging debounce value.
21
22
  */
22
23
  QueryTaggingDebounceProvided: number;
24
+ /**
25
+ * Query tagging info has changed.
26
+ * * Payload: The new query tagging info.
27
+ */
28
+ SearchTaggingReceived: TaggingInfo;
23
29
  /**
24
30
  * Session duration has been provided.
25
31
  * * Payload: The new session duration value.
@@ -1 +1 @@
1
- {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/tagging/events.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC"}
1
+ {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/tagging/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;OAGG;IACH,qBAAqB,EAAE,WAAW,CAAC;IACnC;;;OAGG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC"}
@@ -5,5 +5,6 @@
5
5
  */
6
6
  export declare const taggingEmitters: {
7
7
  ConsentChanged: (state: import("./types").TaggingState) => boolean;
8
+ SearchTaggingReceived: (state: import("./types").TaggingState) => import("@empathyco/x-types").TaggingInfo;
8
9
  };
9
10
  //# sourceMappingURL=emitters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/store/emitters.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;CAE1B,CAAC"}
1
+ {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/store/emitters.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;CAG1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/store/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAuBjC,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/store/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBA2BjC,CAAC"}
@@ -15,6 +15,10 @@ export interface TaggingState {
15
15
  * Configuration for the `Tagging` module.
16
16
  */
17
17
  config: TaggingConfig;
18
+ /**
19
+ * Tagging info for last accepted query.
20
+ */
21
+ queryTaggingInfo: TaggingInfo | null;
18
22
  }
19
23
  /**
20
24
  * Tagging store getters.
@@ -47,6 +51,12 @@ export interface TaggingMutations {
47
51
  * @param queryTaggingDebounceMs - The new {@link TaggingConfig.queryTaggingDebounceMs }.
48
52
  */
49
53
  setQueryTaggingDebounce(queryTaggingDebounceMs: number): void;
54
+ /**
55
+ * Sets the {@link TaggingState.queryTaggingInfo} property.
56
+ *
57
+ * @param queryTaggingInfo - The new {@link TaggingState.queryTaggingInfo}.
58
+ */
59
+ setQueryTaggingInfo(queryTaggingInfo: TaggingInfo): void;
50
60
  }
51
61
  /**
52
62
  * Tagging store actions.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;CAAG;AAElC;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C;;;;OAIG;IACH,uBAAuB,CAAC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/D;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,EAAE,GAAG,IAAI,CAAC;CACnD;AAED;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,YAAY,CAC5C,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,cAAc,CACf,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/tagging/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,gBAAgB,EAAE,WAAW,GAAG,IAAI,CAAC;CACtC;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;CAAG;AAElC;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C;;;;OAIG;IACH,uBAAuB,CAAC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9D;;;;OAIG;IACH,mBAAmB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1D;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,EAAE,GAAG,IAAI,CAAC;CACnD;AAED;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,YAAY,CAC5C,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,cAAc,CACf,CAAC"}