@empathyco/x-components 7.3.1 → 7.4.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.
Files changed (264) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/browse/index.d.ts +1 -0
  3. package/browse/index.js +15 -0
  4. package/core/index.js.map +1 -1
  5. package/docs/API-reference/api/x-components.basexapi.browse.md +54 -0
  6. package/docs/API-reference/api/x-components.basexapi.md +14 -0
  7. package/docs/API-reference/api/x-components.browseactioncontext.md +15 -0
  8. package/docs/API-reference/api/x-components.browseactions.cancelfetchandsavebrowseresponse.md +13 -0
  9. package/docs/API-reference/api/x-components.browseactions.fetchandsavebrowseresponse.md +13 -0
  10. package/docs/API-reference/api/x-components.browseactions.fetchandsaveresultsenrichment.md +13 -0
  11. package/docs/API-reference/api/x-components.browseactions.fetchbrowseresponse.md +13 -0
  12. package/docs/API-reference/api/x-components.browseactions.increasepageappendingresults.md +18 -0
  13. package/docs/API-reference/api/x-components.browseactions.md +210 -0
  14. package/docs/API-reference/api/x-components.browseactions.resetrequestonrefinement.md +13 -0
  15. package/docs/API-reference/api/x-components.browseactions.savebrowseresponse.md +13 -0
  16. package/docs/API-reference/api/x-components.browseactions.saveorigin.md +13 -0
  17. package/docs/API-reference/api/x-components.browseactions.seturlparams.md +13 -0
  18. package/docs/API-reference/api/x-components.browseconfig.md +75 -0
  19. package/docs/API-reference/api/x-components.browseconfig.pagemode.md +11 -0
  20. package/docs/API-reference/api/x-components.browseconfig.pagesize.md +13 -0
  21. package/docs/API-reference/api/x-components.browsegetters.md +58 -0
  22. package/docs/API-reference/api/x-components.browsegetters.request.md +13 -0
  23. package/docs/API-reference/api/x-components.browsemutations.appendresults.md +13 -0
  24. package/docs/API-reference/api/x-components.browsemutations.md +458 -0
  25. package/docs/API-reference/api/x-components.browsemutations.resetstate.md +13 -0
  26. package/docs/API-reference/api/x-components.browsemutations.resetstateforreload.md +13 -0
  27. package/docs/API-reference/api/x-components.browsemutations.setbanners.md +13 -0
  28. package/docs/API-reference/api/x-components.browsemutations.setbrowsetagging.md +13 -0
  29. package/docs/API-reference/api/x-components.browsemutations.setdisplaybrowsetagging.md +13 -0
  30. package/docs/API-reference/api/x-components.browsemutations.setfacets.md +13 -0
  31. package/docs/API-reference/api/x-components.browsemutations.setfromnoresultswithfilters.md +13 -0
  32. package/docs/API-reference/api/x-components.browsemutations.setisappendresults.md +13 -0
  33. package/docs/API-reference/api/x-components.browsemutations.setisnoresults.md +13 -0
  34. package/docs/API-reference/api/x-components.browsemutations.setorigin.md +13 -0
  35. package/docs/API-reference/api/x-components.browsemutations.setpage.md +13 -0
  36. package/docs/API-reference/api/x-components.browsemutations.setparams.md +13 -0
  37. package/docs/API-reference/api/x-components.browsemutations.setpromoteds.md +13 -0
  38. package/docs/API-reference/api/x-components.browsemutations.setresults.md +13 -0
  39. package/docs/API-reference/api/x-components.browsemutations.setselectedcategory.md +13 -0
  40. package/docs/API-reference/api/x-components.browsemutations.setselectedfilters.md +13 -0
  41. package/docs/API-reference/api/x-components.browsemutations.setsort.md +13 -0
  42. package/docs/API-reference/api/x-components.browsemutations.setstats.md +13 -0
  43. package/docs/API-reference/api/x-components.browsemutations.settotalresults.md +13 -0
  44. package/docs/API-reference/api/x-components.browsemutations.updateresult.md +13 -0
  45. package/docs/API-reference/api/x-components.browsemutations.updateresultsfromenrichment.md +13 -0
  46. package/docs/API-reference/api/x-components.browserequest.md +13 -0
  47. package/docs/API-reference/api/x-components.browseresultslist.md +31 -0
  48. package/docs/API-reference/api/x-components.browsesortpickerlist.md +45 -0
  49. package/docs/API-reference/api/x-components.browsestate.banners.md +13 -0
  50. package/docs/API-reference/api/x-components.browsestate.browsetagging.md +13 -0
  51. package/docs/API-reference/api/x-components.browsestate.config.md +13 -0
  52. package/docs/API-reference/api/x-components.browsestate.displaybrowsetagging.md +13 -0
  53. package/docs/API-reference/api/x-components.browsestate.facets.md +13 -0
  54. package/docs/API-reference/api/x-components.browsestate.fromnoresultswithfilters.md +13 -0
  55. package/docs/API-reference/api/x-components.browsestate.isappendresults.md +13 -0
  56. package/docs/API-reference/api/x-components.browsestate.isnoresults.md +13 -0
  57. package/docs/API-reference/api/x-components.browsestate.md +382 -0
  58. package/docs/API-reference/api/x-components.browsestate.origin.md +13 -0
  59. package/docs/API-reference/api/x-components.browsestate.page.md +13 -0
  60. package/docs/API-reference/api/x-components.browsestate.params.md +13 -0
  61. package/docs/API-reference/api/x-components.browsestate.promoteds.md +13 -0
  62. package/docs/API-reference/api/x-components.browsestate.results.md +13 -0
  63. package/docs/API-reference/api/x-components.browsestate.selectedcategory.md +13 -0
  64. package/docs/API-reference/api/x-components.browsestate.selectedfilters.md +13 -0
  65. package/docs/API-reference/api/x-components.browsestate.sort.md +13 -0
  66. package/docs/API-reference/api/x-components.browsestate.stats.md +13 -0
  67. package/docs/API-reference/api/x-components.browsestate.totalresults.md +13 -0
  68. package/docs/API-reference/api/x-components.browsexevents.browserequestchanged.md +13 -0
  69. package/docs/API-reference/api/x-components.browsexevents.browserequestupdated.md +18 -0
  70. package/docs/API-reference/api/x-components.browsexevents.browseresponsechanged.md +13 -0
  71. package/docs/API-reference/api/x-components.browsexevents.browsetaggingchanged.md +13 -0
  72. package/docs/API-reference/api/x-components.browsexevents.md +172 -0
  73. package/docs/API-reference/api/x-components.browsexevents.selectedbrowsesortprovided.md +18 -0
  74. package/docs/API-reference/api/x-components.browsexevents.userbrowsedtocategory.md +13 -0
  75. package/docs/API-reference/api/x-components.browsexevents.userclickedabrowsesort.md +13 -0
  76. package/docs/API-reference/api/x-components.browsexmodule.md +13 -0
  77. package/docs/API-reference/api/x-components.browsexstoremodule.md +15 -0
  78. package/docs/API-reference/api/x-components.cancelfetchandsavebrowseresponse.md +17 -0
  79. package/docs/API-reference/api/x-components.cancelfetchandsavebrowseresponsewire.md +13 -0
  80. package/docs/API-reference/api/x-components.clearbrowsequery.md +13 -0
  81. package/docs/API-reference/api/x-components.fetchandsavebrowseresponse.md +66 -0
  82. package/docs/API-reference/api/x-components.fetchandsavebrowseresponsewire.md +13 -0
  83. package/docs/API-reference/api/x-components.fetchandsavebrowseresultsenrichment.md +66 -0
  84. package/docs/API-reference/api/x-components.fetchandsavebrowseresultsenrichmentwire.md +13 -0
  85. package/docs/API-reference/api/x-components.fetchbrowseresponse.md +13 -0
  86. package/docs/API-reference/api/x-components.hierarchicalfilter.md +7 -0
  87. package/docs/API-reference/api/x-components.increasebrowsepageappendingresults.md +13 -0
  88. package/docs/API-reference/api/x-components.increasebrowsepageappendingresultswire.md +13 -0
  89. package/docs/API-reference/api/x-components.internalbrowserequest.md +59 -0
  90. package/docs/API-reference/api/x-components.internalbrowserequest.page.md +13 -0
  91. package/docs/API-reference/api/x-components.internalbrowseresponse.md +78 -0
  92. package/docs/API-reference/api/x-components.internalbrowseresponse.request.md +13 -0
  93. package/docs/API-reference/api/x-components.internalbrowseresponse.status.md +13 -0
  94. package/docs/API-reference/api/x-components.md +499 -0
  95. package/docs/API-reference/api/x-components.resetbrowseappending.md +13 -0
  96. package/docs/API-reference/api/x-components.resetbrowserequestonrefinement.md +13 -0
  97. package/docs/API-reference/api/x-components.resetbrowserequestonrefinementwire.md +13 -0
  98. package/docs/API-reference/api/x-components.resetbrowsestateforreloadwire.md +13 -0
  99. package/docs/API-reference/api/x-components.resetbrowsestateifnorequestwire.md +13 -0
  100. package/docs/API-reference/api/x-components.resetfromnobrowseresultswithfilters.md +13 -0
  101. package/docs/API-reference/api/x-components.resetisnobrowseresults.md +13 -0
  102. package/docs/API-reference/api/x-components.reseturlbrowsecategory.md +13 -0
  103. package/docs/API-reference/api/x-components.savebrowseorigin.md +13 -0
  104. package/docs/API-reference/api/x-components.savebrowseoriginwire.md +13 -0
  105. package/docs/API-reference/api/x-components.savebrowseresponse.md +13 -0
  106. package/docs/API-reference/api/x-components.setbrowsecategory.md +13 -0
  107. package/docs/API-reference/api/x-components.setbrowseextraparams.md +13 -0
  108. package/docs/API-reference/api/x-components.setbrowsepage.md +13 -0
  109. package/docs/API-reference/api/x-components.setbrowseselectedfilters.md +13 -0
  110. package/docs/API-reference/api/x-components.setbrowsesort.md +13 -0
  111. package/docs/API-reference/api/x-components.setbrowseurlparams.md +13 -0
  112. package/docs/API-reference/api/x-components.setbrowseurlparamswire.md +13 -0
  113. package/docs/API-reference/api/x-components.seturlbrowsecategory.md +13 -0
  114. package/docs/API-reference/api/x-components.simplefilter.md +7 -0
  115. package/docs/API-reference/api/x-components.snippetcallbacks.md +7 -0
  116. package/docs/API-reference/api/x-components.urlmutations.md +19 -0
  117. package/docs/API-reference/api/x-components.urlmutations.setbrowsecategory.md +13 -0
  118. package/docs/API-reference/api/x-components.urlparams.browsefield.md +11 -0
  119. package/docs/API-reference/api/x-components.urlparams.browsevalue.md +11 -0
  120. package/docs/API-reference/api/x-components.urlparams.md +34 -0
  121. package/docs/API-reference/api/x-components.usealiasapi.browsetotalresults.md +13 -0
  122. package/docs/API-reference/api/x-components.usealiasapi.md +21 -0
  123. package/docs/API-reference/api/x-components.watchedinternalbrowserequest.md +73 -0
  124. package/docs/API-reference/api/x-components.watchedinternalbrowserequest.newrequest.md +11 -0
  125. package/docs/API-reference/api/x-components.watchedinternalbrowserequest.oldrequest.md +11 -0
  126. package/docs/API-reference/api/x-components.xapi.browse.md +13 -0
  127. package/docs/API-reference/api/x-components.xapi.md +19 -0
  128. package/docs/API-reference/api/x-components.xeventstypes.md +2 -2
  129. package/docs/API-reference/api/x-components.xmodulestree.browse.md +11 -0
  130. package/docs/API-reference/api/x-components.xmodulestree.md +17 -0
  131. package/docs/API-reference/api/x-types.xcomponentsadapter.browse.md +11 -0
  132. package/docs/API-reference/api/x-types.xcomponentsadapter.md +17 -0
  133. package/docs/API-reference/components/browse/x-components.browse-results-list.md +21 -0
  134. package/docs/API-reference/components/browse/x-components.browse-sort-picker-list.md +24 -0
  135. package/js/composables/use-alias-api.js +3 -0
  136. package/js/composables/use-alias-api.js.map +1 -1
  137. package/js/index.js +16 -1
  138. package/js/index.js.map +1 -1
  139. package/js/wiring/namespaced-wires.factory.js +1 -1
  140. package/js/x-installer/api/base-api.js +12 -0
  141. package/js/x-installer/api/base-api.js.map +1 -1
  142. package/js/x-modules/browse/components/browse-results-list.vue.js +46 -0
  143. package/js/x-modules/browse/components/browse-results-list.vue.js.map +1 -0
  144. package/js/x-modules/browse/components/browse-results-list.vue2.js +6 -0
  145. package/js/x-modules/browse/components/browse-results-list.vue2.js.map +1 -0
  146. package/js/x-modules/browse/components/browse-sort-picker-list.vue.js +73 -0
  147. package/js/x-modules/browse/components/browse-sort-picker-list.vue.js.map +1 -0
  148. package/js/x-modules/browse/components/browse-sort-picker-list.vue2.js +6 -0
  149. package/js/x-modules/browse/components/browse-sort-picker-list.vue2.js.map +1 -0
  150. package/js/x-modules/browse/store/actions/fetch-and-save-browse-response.action.js +57 -0
  151. package/js/x-modules/browse/store/actions/fetch-and-save-browse-response.action.js.map +1 -0
  152. package/js/x-modules/browse/store/actions/fetch-and-save-results-enrichment.action.js +21 -0
  153. package/js/x-modules/browse/store/actions/fetch-and-save-results-enrichment.action.js.map +1 -0
  154. package/js/x-modules/browse/store/actions/fetch-browse-response.action.js +16 -0
  155. package/js/x-modules/browse/store/actions/fetch-browse-response.action.js.map +1 -0
  156. package/js/x-modules/browse/store/actions/increase-page-apending-results.action.js +18 -0
  157. package/js/x-modules/browse/store/actions/increase-page-apending-results.action.js.map +1 -0
  158. package/js/x-modules/browse/store/actions/reset-request-on-refinement.action.js +36 -0
  159. package/js/x-modules/browse/store/actions/reset-request-on-refinement.action.js.map +1 -0
  160. package/js/x-modules/browse/store/actions/save-browse-response.action.js +42 -0
  161. package/js/x-modules/browse/store/actions/save-browse-response.action.js.map +1 -0
  162. package/js/x-modules/browse/store/actions/save-origin.action.js +16 -0
  163. package/js/x-modules/browse/store/actions/save-origin.action.js.map +1 -0
  164. package/js/x-modules/browse/store/actions/set-url-params.action.js +20 -0
  165. package/js/x-modules/browse/store/actions/set-url-params.action.js.map +1 -0
  166. package/js/x-modules/browse/store/emitters.js +48 -0
  167. package/js/x-modules/browse/store/emitters.js.map +1 -0
  168. package/js/x-modules/browse/store/getters/request.getter.js +27 -0
  169. package/js/x-modules/browse/store/getters/request.getter.js.map +1 -0
  170. package/js/x-modules/browse/store/module.js +163 -0
  171. package/js/x-modules/browse/store/module.js.map +1 -0
  172. package/js/x-modules/browse/wiring.js +213 -0
  173. package/js/x-modules/browse/wiring.js.map +1 -0
  174. package/js/x-modules/browse/x-module.js +21 -0
  175. package/js/x-modules/browse/x-module.js.map +1 -0
  176. package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
  177. package/js/x-modules/url/components/url-handler.vue2.js +4 -1
  178. package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
  179. package/js/x-modules/url/store/initial-state.js +2 -0
  180. package/js/x-modules/url/store/initial-state.js.map +1 -1
  181. package/js/x-modules/url/store/module.js +4 -0
  182. package/js/x-modules/url/store/module.js.map +1 -1
  183. package/js/x-modules/url/wiring.js +34 -1
  184. package/js/x-modules/url/wiring.js.map +1 -1
  185. package/package.json +4 -4
  186. package/report/x-components.api.json +4505 -192
  187. package/report/x-components.api.md +432 -6
  188. package/report/x-types.api.json +50 -0
  189. package/types/src/components/snippet-callbacks.vue.d.ts +7 -0
  190. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
  191. package/types/src/composables/use-alias-api.d.ts +2 -0
  192. package/types/src/composables/use-alias-api.d.ts.map +1 -1
  193. package/types/src/index.d.ts +1 -0
  194. package/types/src/index.d.ts.map +1 -1
  195. package/types/src/types/url-params.d.ts +2 -0
  196. package/types/src/types/url-params.d.ts.map +1 -1
  197. package/types/src/wiring/events.types.d.ts +2 -1
  198. package/types/src/wiring/events.types.d.ts.map +1 -1
  199. package/types/src/x-installer/api/api.types.d.ts +9 -0
  200. package/types/src/x-installer/api/api.types.d.ts.map +1 -1
  201. package/types/src/x-installer/api/base-api.d.ts +9 -0
  202. package/types/src/x-installer/api/base-api.d.ts.map +1 -1
  203. package/types/src/x-modules/browse/components/browse-results-list.vue.d.ts +30 -0
  204. package/types/src/x-modules/browse/components/browse-results-list.vue.d.ts.map +1 -0
  205. package/types/src/x-modules/browse/components/browse-sort-picker-list.vue.d.ts +50 -0
  206. package/types/src/x-modules/browse/components/browse-sort-picker-list.vue.d.ts.map +1 -0
  207. package/types/src/x-modules/browse/components/index.d.ts +3 -0
  208. package/types/src/x-modules/browse/components/index.d.ts.map +1 -0
  209. package/types/src/x-modules/browse/config.types.d.ts +14 -0
  210. package/types/src/x-modules/browse/config.types.d.ts.map +1 -0
  211. package/types/src/x-modules/browse/events.types.d.ts +55 -0
  212. package/types/src/x-modules/browse/events.types.d.ts.map +1 -0
  213. package/types/src/x-modules/browse/index.d.ts +8 -0
  214. package/types/src/x-modules/browse/index.d.ts.map +1 -0
  215. package/types/src/x-modules/browse/store/actions/fetch-and-save-browse-response.action.d.ts +15 -0
  216. package/types/src/x-modules/browse/store/actions/fetch-and-save-browse-response.action.d.ts.map +1 -0
  217. package/types/src/x-modules/browse/store/actions/fetch-and-save-results-enrichment.action.d.ts +17 -0
  218. package/types/src/x-modules/browse/store/actions/fetch-and-save-results-enrichment.action.d.ts.map +1 -0
  219. package/types/src/x-modules/browse/store/actions/fetch-browse-response.action.d.ts +13 -0
  220. package/types/src/x-modules/browse/store/actions/fetch-browse-response.action.d.ts.map +1 -0
  221. package/types/src/x-modules/browse/store/actions/increase-page-apending-results.action.d.ts +11 -0
  222. package/types/src/x-modules/browse/store/actions/increase-page-apending-results.action.d.ts.map +1 -0
  223. package/types/src/x-modules/browse/store/actions/index.d.ts +9 -0
  224. package/types/src/x-modules/browse/store/actions/index.d.ts.map +1 -0
  225. package/types/src/x-modules/browse/store/actions/reset-request-on-refinement.action.d.ts +11 -0
  226. package/types/src/x-modules/browse/store/actions/reset-request-on-refinement.action.d.ts.map +1 -0
  227. package/types/src/x-modules/browse/store/actions/save-browse-response.action.d.ts +11 -0
  228. package/types/src/x-modules/browse/store/actions/save-browse-response.action.d.ts.map +1 -0
  229. package/types/src/x-modules/browse/store/actions/save-origin.action.d.ts +11 -0
  230. package/types/src/x-modules/browse/store/actions/save-origin.action.d.ts.map +1 -0
  231. package/types/src/x-modules/browse/store/actions/set-url-params.action.d.ts +11 -0
  232. package/types/src/x-modules/browse/store/actions/set-url-params.action.d.ts.map +1 -0
  233. package/types/src/x-modules/browse/store/emitters.d.ts +35 -0
  234. package/types/src/x-modules/browse/store/emitters.d.ts.map +1 -0
  235. package/types/src/x-modules/browse/store/getters/index.d.ts +2 -0
  236. package/types/src/x-modules/browse/store/getters/index.d.ts.map +1 -0
  237. package/types/src/x-modules/browse/store/getters/request.getter.d.ts +13 -0
  238. package/types/src/x-modules/browse/store/getters/request.getter.d.ts.map +1 -0
  239. package/types/src/x-modules/browse/store/index.d.ts +6 -0
  240. package/types/src/x-modules/browse/store/index.d.ts.map +1 -0
  241. package/types/src/x-modules/browse/store/module.d.ts +41 -0
  242. package/types/src/x-modules/browse/store/module.d.ts.map +1 -0
  243. package/types/src/x-modules/browse/store/types.d.ts +273 -0
  244. package/types/src/x-modules/browse/store/types.d.ts.map +1 -0
  245. package/types/src/x-modules/browse/types.d.ts +35 -0
  246. package/types/src/x-modules/browse/types.d.ts.map +1 -0
  247. package/types/src/x-modules/browse/wiring.d.ts +172 -0
  248. package/types/src/x-modules/browse/wiring.d.ts.map +1 -0
  249. package/types/src/x-modules/browse/x-module.d.ts +16 -0
  250. package/types/src/x-modules/browse/x-module.d.ts.map +1 -0
  251. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +7 -0
  252. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  253. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +7 -0
  254. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  255. package/types/src/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
  256. package/types/src/x-modules/url/store/initial-state.d.ts.map +1 -1
  257. package/types/src/x-modules/url/store/module.d.ts.map +1 -1
  258. package/types/src/x-modules/url/store/types.d.ts +7 -1
  259. package/types/src/x-modules/url/store/types.d.ts.map +1 -1
  260. package/types/src/x-modules/url/wiring.d.ts +30 -0
  261. package/types/src/x-modules/url/wiring.d.ts.map +1 -1
  262. package/types/src/x-modules/x-modules.types.d.ts +2 -0
  263. package/types/src/x-modules/x-modules.types.d.ts.map +1 -1
  264. package/url/index.js +1 -1
@@ -0,0 +1,6 @@
1
+ export * from './actions';
2
+ export * from './emitters';
3
+ export * from './getters';
4
+ export * from './module';
5
+ export * from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/browse/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,41 @@
1
+ import type { Stats } from '@empathyco/x-types';
2
+ import type { BrowseXStoreModule } from './types';
3
+ /**
4
+ * {@link XStoreModule} For the browse module.
5
+ *
6
+ * @internal
7
+ */
8
+ export declare const browseXStoreModule: BrowseXStoreModule;
9
+ /**
10
+ * Function to return the "resettable" part of the state. This will be used in the `resetState`
11
+ * mutation to reset to the initial state.
12
+ *
13
+ * @returns The "resettable" part of the {@link BrowseState}.
14
+ *
15
+ * @internal
16
+ */
17
+ export declare function resettableBrowseState(): {
18
+ selectedCategory: {
19
+ browseValue: string;
20
+ browseField: string;
21
+ };
22
+ results: never[];
23
+ facets: never[];
24
+ banners: never[];
25
+ promoteds: never[];
26
+ totalResults: number;
27
+ sort: string;
28
+ page: number;
29
+ origin: null;
30
+ isAppendResults: boolean;
31
+ browseTagging: {
32
+ url: string;
33
+ params: {};
34
+ };
35
+ displayBrowseTagging: {
36
+ url: string;
37
+ params: {};
38
+ };
39
+ stats: Stats;
40
+ };
41
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/browse/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAoBjD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAyGhC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;WAuBpB,KAAK;EAErB"}
@@ -0,0 +1,273 @@
1
+ import type { Banner, BrowsableRequest, BrowseRequest, BrowseResponse, Facet, Filter, Promoted, Result, Sort, Stats, TaggingRequest } from '@empathyco/x-types';
2
+ import type { Dictionary } from '@empathyco/x-utils';
3
+ import type { StatusMutations, StatusState, XActionContext, XStoreModule } from '../../../store';
4
+ import type { ConfigMutations } from '../../../store/utils/config-store.utils';
5
+ import type { QueryOrigin, QueryOriginInit, UrlParams } from '../../../types';
6
+ import type { BrowseConfig } from '../config.types';
7
+ import type { InternalBrowseRequest, WatchedInternalBrowseRequest } from '../types';
8
+ /**
9
+ * Browse store state.
10
+ *
11
+ * @public
12
+ */
13
+ export interface BrowseState extends StatusState {
14
+ /** The list of the banners, related to the `browseCategory` property of the state. */
15
+ banners: Banner[];
16
+ /** The configuration of the browse module. */
17
+ config: BrowseConfig;
18
+ /** The list of the facets, related to the `query` property of the state. */
19
+ facets: Facet[];
20
+ /** A flag to indicate if new results are append to the current instead of replacing them. */
21
+ isAppendResults: boolean;
22
+ /** Flag indicating if there is a no results situation. */
23
+ isNoResults: boolean;
24
+ /** Flag indicating if there is a no results situation with filters selected. */
25
+ fromNoResultsWithFilters: boolean;
26
+ /** The origin property of the request. */
27
+ origin: QueryOrigin | null;
28
+ /** The current page of the request. */
29
+ page: number;
30
+ /** The extra params property of the state. */
31
+ params: Dictionary<unknown>;
32
+ /** The list of the promoted, related to the `query` property of the state. */
33
+ promoteds: Promoted[];
34
+ /** The browse tagging used to track the browse events. */
35
+ browseTagging: TaggingRequest;
36
+ /** The display tagging used to track the browse events. */
37
+ displayBrowseTagging: TaggingRequest;
38
+ /** The list of the results, related to the `query` property of the state. */
39
+ results: Result[];
40
+ /**
41
+ * The dictionary of selected filters, used to perform the browse request.
42
+ * The key is the facet id, and the value the list of filters for that facet.
43
+ */
44
+ selectedFilters: Dictionary<Filter[]>;
45
+ /** The way of ordering the results. */
46
+ sort: Sort;
47
+ /** The stats of the results. */
48
+ stats: Stats;
49
+ /** The total number of results, related to the `query` property of the state. */
50
+ totalResults: number;
51
+ /** The current selected category of the request */
52
+ selectedCategory: BrowsableRequest;
53
+ }
54
+ /**
55
+ * Browse store getters.
56
+ *
57
+ * @public
58
+ */
59
+ export interface BrowseGetters {
60
+ /**
61
+ * The adapter request object for retrieving the results, or null if there is no
62
+ * valid data to create a request.
63
+ */
64
+ request: InternalBrowseRequest | null;
65
+ }
66
+ /**
67
+ * Browse store mutations.
68
+ *
69
+ * @public
70
+ */
71
+ export interface BrowseMutations extends StatusMutations, ConfigMutations<BrowseState> {
72
+ /**
73
+ * Append the results to the results state.
74
+ *
75
+ * @param results - Results array.
76
+ */
77
+ appendResults: (results: Result[]) => void;
78
+ /**
79
+ * Resets the "resettable" part of the Browse state to the initial state. See the
80
+ * {@link BrowseXStoreModule} for details.
81
+ */
82
+ resetState: () => void;
83
+ /**
84
+ * Resets the "resettable" part of the Browse state like {@link BrowseMutations.resetState} but
85
+ * maintains the values required to perform the browse request again.
86
+ */
87
+ resetStateForReload: () => void;
88
+ /**
89
+ * Sets the banners of the module.
90
+ *
91
+ * @param banners - The new banners to save to the state.
92
+ */
93
+ setBanners: (banners: Banner[]) => void;
94
+ /**
95
+ * Sets the facets of the module.
96
+ *
97
+ * @param facets - The new facets to save to the state.
98
+ */
99
+ setFacets: (facets: Facet[]) => void;
100
+ /**
101
+ * Set the `isAppendResuls` flag value.
102
+ *
103
+ * @param isAppendResults - The new flag value.
104
+ */
105
+ setIsAppendResults: (isAppendResults: boolean) => void;
106
+ /**
107
+ * Sets the `isNoResults` flag value.
108
+ *
109
+ * @param isNoResults - The new flag value.
110
+ */
111
+ setIsNoResults: (isNoResults: boolean) => void;
112
+ /**
113
+ * Sets the `fromNoResultsWithFilters` flag value.
114
+ *
115
+ * @param fromNoResultsWithFilters - The new flag value.
116
+ */
117
+ setFromNoResultsWithFilters: (fromNoResultsWithFilters: boolean) => void;
118
+ /**
119
+ * Sets the origin of the module.
120
+ *
121
+ * @param origin - The new origin.
122
+ */
123
+ setOrigin: (origin: QueryOrigin | undefined | null) => void;
124
+ /**
125
+ * Sets the page of the module.
126
+ *
127
+ * @param page - The new page.
128
+ */
129
+ setPage: (page: number) => void;
130
+ /** Sets the selected category of the module.
131
+ *
132
+ * @param selectedCategory - The new selectedCategory.
133
+ */
134
+ setSelectedCategory: (selectedCategory: BrowsableRequest) => void;
135
+ /**
136
+ * Sets the extra params of the module.
137
+ *
138
+ * @param params - The new extra params.
139
+ */
140
+ setParams: (params: Dictionary<unknown>) => void;
141
+ /**
142
+ * Sets the promoteds of the module.
143
+ *
144
+ * @param promoteds - The new promoted to save to the state.
145
+ */
146
+ setPromoteds: (promoteds: Promoted[]) => void;
147
+ /**
148
+ * Sets the browse tagging of the module, which is used to track the query.
149
+ *
150
+ * @param browseTagging - The new query tagging object to save to the state.
151
+ */
152
+ setBrowseTagging: (browseTagging: TaggingRequest) => void;
153
+ /**
154
+ * Sets the display tagging of the module.
155
+ *
156
+ * @param displayBrowseTagging - The new display tagging object to save to the state.
157
+ */
158
+ setDisplayBrowseTagging: (displayBrowseTagging: TaggingRequest) => void;
159
+ /**
160
+ * Sets the results of the module.
161
+ *
162
+ * @param results - The new results to save to the state.
163
+ */
164
+ setResults: (results: Result[]) => void;
165
+ /**
166
+ * Sets the selected filters of the module.
167
+ *
168
+ * @param selectedFilters - The new selected filters to save to the state.
169
+ */
170
+ setSelectedFilters: (selectedFilters: Filter[]) => void;
171
+ /**
172
+ * Sets the selected sort option of the module.
173
+ *
174
+ * @param sort - The new sort.
175
+ */
176
+ setSort: (sort: Sort) => void;
177
+ /**
178
+ * Sets the stats of the module.
179
+ *
180
+ * @param stats - The new stats to save to the state.
181
+ */
182
+ setStats: (stats: Stats) => void;
183
+ /**
184
+ * Sets the total results of the module.
185
+ *
186
+ * @param totalResults - The new total results to save to the state.
187
+ */
188
+ setTotalResults: (totalResults: number) => void;
189
+ /**
190
+ * Updates a result with new fields.
191
+ *
192
+ * @param result - A result containing at least an id, and the properties to modify.
193
+ */
194
+ updateResult: (result: Partial<Result> & Pick<Result, 'id'>) => void;
195
+ /**
196
+ * Updates the results with the enrichment results.
197
+ *
198
+ * @param enrichmentResults - The enrichment results.
199
+ */
200
+ updateResultsFromEnrichment: (enrichmentResults: any[]) => void;
201
+ }
202
+ /**
203
+ * Browse store actions.
204
+ *
205
+ * @public
206
+ */
207
+ export interface BrowseActions {
208
+ /**
209
+ * Batches state resets in a single action after {@link BrowseGetters.request} parameters update.
210
+ *
211
+ * @param watchedRequest - The watched internal browse request object.
212
+ */
213
+ resetRequestOnRefinement: (watchedRequest: WatchedInternalBrowseRequest) => void;
214
+ /**
215
+ * Cancels / interrupt {@link BrowseActions.fetchAndSaveBrowseResponse} synchronous promise.
216
+ */
217
+ cancelFetchAndSaveBrowseResponse: () => void;
218
+ /**
219
+ * Fetches a new browse response and stores them in the module state.
220
+ */
221
+ fetchAndSaveBrowseResponse: (request: InternalBrowseRequest | null) => void;
222
+ /**
223
+ * Fetches the browse response and returns them.
224
+ *
225
+ * @returns The new browse response.
226
+ */
227
+ fetchBrowseResponse: (request: BrowseRequest) => BrowseResponse;
228
+ /**
229
+ * Requests and stores the enrichment results for the results.
230
+ *
231
+ * @param results - The results.
232
+ */
233
+ fetchAndSaveResultsEnrichment: (results: Result[]) => void;
234
+ /**
235
+ * Checks if there are more pages of results to load. If there are, then increases the page
236
+ * number in state and set to `true` the {@link BrowseState.isAppendResults} flag.
237
+ *
238
+ * @remarks This action is to implement the infinite scroll behaviour. To increase the page
239
+ * for other purposes, please use the {@link BrowseMutations.setPage} mutation.
240
+ */
241
+ increasePageAppendingResults: () => void;
242
+ /**
243
+ * Checks if the url has params on it and then updates the state with these values.
244
+ *
245
+ * @param urlParams - List of params from the url.
246
+ */
247
+ setUrlParams: (urlParams: UrlParams) => void;
248
+ /**
249
+ * Creates a {@link QueryOrigin} and saves it.
250
+ *
251
+ * @param originInit - The object to create the origin with.
252
+ */
253
+ saveOrigin: (originInit: QueryOriginInit) => void;
254
+ /**
255
+ * Saves the {@link @empathyco/x-types#BrowseResponse}.
256
+ *
257
+ * @param response - The {@link @empathyco/x-types#BrowseResponse} to save.
258
+ */
259
+ saveBrowseResponse: (response: BrowseResponse) => void;
260
+ }
261
+ /**
262
+ * Browse type safe store module.
263
+ *
264
+ * @public
265
+ */
266
+ export type BrowseXStoreModule = XStoreModule<BrowseState, BrowseGetters, BrowseMutations, BrowseActions>;
267
+ /**
268
+ * Alias type for actions context of the {@link BrowseXStoreModule}.
269
+ *
270
+ * @public
271
+ */
272
+ export type BrowseActionContext = XActionContext<BrowseState, BrowseGetters, BrowseMutations, BrowseActions>;
273
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/browse/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,KAAK,EACL,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAEnF;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,sFAAsF;IACtF,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,8CAA8C;IAC9C,MAAM,EAAE,YAAY,CAAA;IACpB,4EAA4E;IAC5E,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,6FAA6F;IAC7F,eAAe,EAAE,OAAO,CAAA;IACxB,0DAA0D;IAC1D,WAAW,EAAE,OAAO,CAAA;IACpB,gFAAgF;IAChF,wBAAwB,EAAE,OAAO,CAAA;IACjC,0CAA0C;IAC1C,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,8CAA8C;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3B,8EAA8E;IAC9E,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,0DAA0D;IAC1D,aAAa,EAAE,cAAc,CAAA;IAC7B,2DAA2D;IAC3D,oBAAoB,EAAE,cAAc,CAAA;IACpC,6EAA6E;IAC7E,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB;;;OAGG;IACH,eAAe,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;IACrC,uCAAuC;IACvC,IAAI,EAAE,IAAI,CAAA;IACV,gCAAgC;IAChC,KAAK,EAAE,KAAK,CAAA;IACZ,iFAAiF;IACjF,YAAY,EAAE,MAAM,CAAA;IACpB,oDAAoD;IACpD,gBAAgB,EAAE,gBAAgB,CAAA;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAA;CACtC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,eAAe,CAAC,WAAW,CAAC;IACpF;;;;OAIG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC1C;;;OAGG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB;;;OAGG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B;;;;OAIG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACvC;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAA;IACpC;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,IAAI,CAAA;IACtD;;;;OAIG;IACH,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C;;;;OAIG;IACH,2BAA2B,EAAE,CAAC,wBAAwB,EAAE,OAAO,KAAK,IAAI,CAAA;IACxE;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAA;IAC3D;;;;OAIG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B;;;OAGG;IACH,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACjE;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IAChD;;;;OAIG;IACH,YAAY,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAA;IAC7C;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,aAAa,EAAE,cAAc,KAAK,IAAI,CAAA;IACzD;;;;OAIG;IACH,uBAAuB,EAAE,CAAC,oBAAoB,EAAE,cAAc,KAAK,IAAI,CAAA;IACvE;;;;OAIG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACvC;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACvD;;;;OAIG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC;;;;OAIG;IACH,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C;;;;OAIG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,IAAI,CAAA;IACpE;;;;OAIG;IACH,2BAA2B,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;CAChE;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,wBAAwB,EAAE,CAAC,cAAc,EAAE,4BAA4B,KAAK,IAAI,CAAA;IAChF;;OAEG;IACH,gCAAgC,EAAE,MAAM,IAAI,CAAA;IAC5C;;OAEG;IACH,0BAA0B,EAAE,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,KAAK,IAAI,CAAA;IAC3E;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,cAAc,CAAA;IAC/D;;;;OAIG;IACH,6BAA6B,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC1D;;;;;;OAMG;IACH,4BAA4B,EAAE,MAAM,IAAI,CAAA;IACxC;;;;OAIG;IACH,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAA;IAC5C;;;;OAIG;IACH,UAAU,EAAE,CAAC,UAAU,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAA;CACvD;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAC3C,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,CACd,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAC9C,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,CACd,CAAA"}
@@ -0,0 +1,35 @@
1
+ import type { BrowseRequest, BrowseResponse } from '@empathyco/x-types';
2
+ import type { RequestStatus } from '../../store/utils/status-store.utils';
3
+ /**
4
+ * An internal browse request containing the page used to calculate the start and rows properties of
5
+ * a {@link @empathyco/x-types#BrowseRequest}.
6
+ *
7
+ * @public
8
+ */
9
+ export interface InternalBrowseRequest extends BrowseRequest {
10
+ /** The page number. */
11
+ page: number;
12
+ }
13
+ /**
14
+ * A representation of a watched {@link InternalBrowseRequest} object, wrapping its new and old
15
+ * values.
16
+ *
17
+ * @public
18
+ */
19
+ export interface WatchedInternalBrowseRequest {
20
+ newRequest: InternalBrowseRequest;
21
+ oldRequest: InternalBrowseRequest;
22
+ }
23
+ /**
24
+ * An internal browse response containing the {@link InternalBrowseRequest} performed to get a
25
+ * {@link @empathyco/x-types#BrowseResponse} and its {@link RequestStatus}.
26
+ *
27
+ * @public
28
+ */
29
+ export interface InternalBrowseResponse extends BrowseResponse {
30
+ /** The browse request. */
31
+ request: InternalBrowseRequest;
32
+ /** The response status. */
33
+ status: RequestStatus;
34
+ }
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/browse/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAEzE;;;;;GAKG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,qBAAqB,CAAA;IACjC,UAAU,EAAE,qBAAqB,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,0BAA0B;IAC1B,OAAO,EAAE,qBAAqB,CAAA;IAC9B,2BAA2B;IAC3B,MAAM,EAAE,aAAa,CAAA;CACtB"}
@@ -0,0 +1,172 @@
1
+ import type { InternalBrowseRequest } from './types';
2
+ /**
3
+ * Cancels the {@link BrowseActions.fetchAndSaveBrowseResponse} request promise.
4
+ *
5
+ * @public
6
+ */
7
+ export declare const cancelFetchAndSaveBrowseResponseWire: import("../../wiring").AnyWire;
8
+ /**
9
+ * Sets the browse state `origin`.
10
+ *
11
+ * @public
12
+ */
13
+ export declare const saveBrowseOriginWire: import("../../wiring").AnyWire;
14
+ /**
15
+ * Requests and stores the browse response.
16
+ *
17
+ * @public
18
+ */
19
+ export declare const fetchAndSaveBrowseResponseWire: import("../../wiring").Wire<InternalBrowseRequest | null>;
20
+ /**
21
+ * Requests and stores the enrichment results for the results.
22
+ *
23
+ * @public
24
+ */
25
+ export declare const fetchAndSaveBrowseResultsEnrichmentWire: import("../../wiring").Wire<import("@empathyco/x-types").Result[]>;
26
+ /**
27
+ * Sets the browse state `selectedCategory`.
28
+ *
29
+ * @public
30
+ */
31
+ export declare const setBrowseCategory: import("../../wiring").Wire<import("@empathyco/x-types").BrowsableRequest>;
32
+ /**
33
+ * Clears the browse state `selectedCategory`.
34
+ *
35
+ * @public
36
+ */
37
+ export declare const clearBrowseQuery: import("../../wiring").AnyWire;
38
+ /**
39
+ * Sets the browse state `selectedFilters`.
40
+ *
41
+ * @public
42
+ */
43
+ export declare const setBrowseSelectedFilters: import("../../wiring").Wire<import("@empathyco/x-types").Filter[]>;
44
+ /**
45
+ * Sets the browse state `sort`.
46
+ *
47
+ * @public
48
+ */
49
+ export declare const setBrowseSort: import("../../wiring").Wire<string>;
50
+ /**
51
+ * Sets the browse state `query`.
52
+ *
53
+ * @public
54
+ */
55
+ export declare const setBrowseUrlParamsWire: import("../../wiring").Wire<import("../..").UrlParams>;
56
+ /**
57
+ * Sets the browse state `page`.
58
+ *
59
+ * @public
60
+ */
61
+ export declare const setBrowsePage: import("../../wiring").Wire<number>;
62
+ /**
63
+ * Sets the browse state `params`.
64
+ *
65
+ * @public
66
+ */
67
+ export declare const setBrowseExtraParams: import("../../wiring").Wire<import("@empathyco/x-utils").Dictionary<unknown>>;
68
+ /**
69
+ * Resets the browse state to reload the current browse.
70
+ *
71
+ * @public
72
+ */
73
+ export declare const resetBrowseStateForReloadWire: import("../../wiring").AnyWire;
74
+ /**
75
+ * Resets the browse state `isNoResults`.
76
+ *
77
+ * @public
78
+ */
79
+ export declare const resetIsNoBrowseResults: import("../../wiring").AnyWire;
80
+ /**
81
+ * Resets the browse state `fromNoResultsWithFilters`.
82
+ *
83
+ * @public
84
+ */
85
+ export declare const resetFromNoBrowseResultsWithFilters: import("../../wiring").AnyWire;
86
+ /**
87
+ * Increases the current browse state `page` by one.
88
+ *
89
+ * @public
90
+ */
91
+ export declare const increaseBrowsePageAppendingResultsWire: import("../../wiring").AnyWire;
92
+ /**
93
+ * Resets the browse state `isAppendingResults`.
94
+ *
95
+ * @public
96
+ */
97
+ export declare const resetBrowseAppending: import("../../wiring").AnyWire;
98
+ /**
99
+ * Resets the {@link BrowseGetters.request} parameters when refining request and before the actual
100
+ * request is launched.
101
+ *
102
+ * @public
103
+ */
104
+ export declare const resetBrowseRequestOnRefinementWire: import("../../wiring").AnyWire;
105
+ /**
106
+ * Resets the browse state when the request is changed to null. See the
107
+ * {@link BrowseXStoreModule} for details.
108
+ *
109
+ * @public
110
+ */
111
+ export declare const resetBrowseStateIfNoRequestWire: import("../../wiring").Wire<InternalBrowseRequest | null>;
112
+ /**
113
+ * Browse wiring.
114
+ *
115
+ * @internal
116
+ */
117
+ export declare const browseWiring: {
118
+ ParamsLoadedFromUrl: {
119
+ setBrowseUrlParamsWire: import("../../wiring").Wire<import("../..").UrlParams>;
120
+ saveBrowseOriginWire: import("../../wiring").AnyWire;
121
+ };
122
+ UserClickedABrowseSort: {
123
+ setBrowseSort: import("../../wiring").Wire<string>;
124
+ };
125
+ UserReachedResultsListEnd: {
126
+ increaseBrowsePageAppendingResultsWire: import("../../wiring").AnyWire;
127
+ };
128
+ BrowseRequestUpdated: {
129
+ resetBrowseStateIfNoRequestWire: import("../../wiring").Wire<InternalBrowseRequest | null>;
130
+ fetchAndSaveBrowseResponseWire: import("../../wiring").Wire<InternalBrowseRequest | null>;
131
+ };
132
+ BrowseRequestChanged: {
133
+ resetBrowseRequestOnRefinementWire: import("../../wiring").AnyWire;
134
+ };
135
+ SelectedFiltersForRequestChanged: {
136
+ setBrowseSelectedFilters: import("../../wiring").Wire<import("@empathyco/x-types").Filter[]>;
137
+ };
138
+ ResultsChanged: {
139
+ resetBrowseAppending: import("../../wiring").AnyWire;
140
+ fetchAndSaveBrowseResultsEnrichmentWire: import("../../wiring").Wire<import("@empathyco/x-types").Result[]>;
141
+ };
142
+ ReloadBrowseRequested: {
143
+ resetBrowseStateForReloadWire: import("../../wiring").AnyWire;
144
+ };
145
+ SelectedSortProvided: {
146
+ setBrowseSort: import("../../wiring").Wire<string>;
147
+ };
148
+ ExtraParamsChanged: {
149
+ setBrowseExtraParams: import("../../wiring").Wire<import("@empathyco/x-utils").Dictionary<unknown>>;
150
+ };
151
+ UserClickedCloseX: {
152
+ clearBrowseQuery: import("../../wiring").AnyWire;
153
+ resetBrowseStateForReloadWire: import("../../wiring").AnyWire;
154
+ cancelFetchAndSaveBrowseResponseWire: import("../../wiring").AnyWire;
155
+ };
156
+ UserClickedOpenX: {
157
+ clearBrowseQuery: import("../../wiring").AnyWire;
158
+ resetBrowseStateForReloadWire: import("../../wiring").AnyWire;
159
+ cancelFetchAndSaveBrowseResponseWire: import("../../wiring").AnyWire;
160
+ };
161
+ UserClickedOutOfMainModal: {
162
+ clearBrowseQuery: import("../../wiring").AnyWire;
163
+ };
164
+ UserSelectedAPage: {
165
+ setBrowsePage: import("../../wiring").Wire<number>;
166
+ resetBrowseAppending: import("../../wiring").AnyWire;
167
+ };
168
+ UserBrowsedToCategory: {
169
+ setBrowseCategory: import("../../wiring").Wire<import("@empathyco/x-types").BrowsableRequest>;
170
+ };
171
+ };
172
+ //# sourceMappingURL=wiring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/browse/wiring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AA6CpD;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,gCAEhD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,gCAAyD,CAAA;AAE1F;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,2DAA6C,CAAA;AAExF;;;;GAIG;AACH,eAAO,MAAM,uCAAuC,oEAAgD,CAAA;AAEpG;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,4EAAoC,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,gCAG3B,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oEAAmC,CAAA;AAExE;;;;GAIG;AACH,eAAO,MAAM,aAAa,qCAAwB,CAAA;AAElD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,wDAA+B,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,aAAa,qCAAwB,CAAA;AAElD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,+EAA0B,CAAA;AAE3D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,gCAAkD,CAAA;AAE5F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gCAAsC,CAAA;AAEzE;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,gCAAmD,CAAA;AAEnG;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,gCAElD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,gCAA0C,CAAA;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,gCAM9C,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,2DAE3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDvB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { XModule } from '../x-modules.types';
2
+ import type { BrowseXStoreModule } from './store/types';
3
+ /**
4
+ * Search {@link XModule} alias.
5
+ *
6
+ * @public
7
+ */
8
+ export type BrowseXModule = XModule<BrowseXStoreModule>;
9
+ /**
10
+ * Search {@link XModule} implementation. This module is auto-registered as soon as you
11
+ * import any component from the `browse` entry point.
12
+ *
13
+ * @public
14
+ */
15
+ export declare const browseXModule: BrowseXModule;
16
+ //# sourceMappingURL=x-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/browse/x-module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAMvD;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAA"}
@@ -177,6 +177,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
177
177
  UserClickedABanner?: import("@empathyco/x-types").Banner | undefined;
178
178
  UserClickedAbortARedirection?: void | undefined;
179
179
  UserSelectedAPage?: number | undefined;
180
+ BrowseRequestChanged?: import("../../../browse").InternalBrowseRequest | null | undefined;
181
+ BrowseRequestUpdated?: import("../../../browse").InternalBrowseRequest | null | undefined;
182
+ BrowseResponseChanged?: import("../../../browse").InternalBrowseResponse | undefined;
183
+ BrowseTaggingChanged?: import("@empathyco/x-types").TaggingRequest | undefined;
184
+ UserClickedABrowseSort?: string | undefined;
185
+ SelectedBrowseSortProvided?: string | undefined;
186
+ UserBrowsedToCategory?: import("@empathyco/x-types").BrowsableRequest | undefined;
180
187
  SemanticQueryRequestUpdated?: import("@empathyco/x-types").SemanticQueriesRequest | null | undefined;
181
188
  SemanticQueriesResponseChanged?: import("@empathyco/x-types").SemanticQuery[] | undefined;
182
189
  UserSelectedASemanticQuery?: import("@empathyco/x-types").SemanticQuery | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
1
+ {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
@@ -167,6 +167,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
167
167
  UserClickedABanner?: import("@empathyco/x-types").Banner | undefined;
168
168
  UserClickedAbortARedirection?: void | undefined;
169
169
  UserSelectedAPage?: number | undefined;
170
+ BrowseRequestChanged?: import("../../../browse").InternalBrowseRequest | null | undefined;
171
+ BrowseRequestUpdated?: import("../../../browse").InternalBrowseRequest | null | undefined;
172
+ BrowseResponseChanged?: import("../../../browse").InternalBrowseResponse | undefined;
173
+ BrowseTaggingChanged?: import("@empathyco/x-types").TaggingRequest | undefined;
174
+ UserClickedABrowseSort?: string | undefined;
175
+ SelectedBrowseSortProvided?: string | undefined;
176
+ UserBrowsedToCategory?: import("@empathyco/x-types").BrowsableRequest | undefined;
170
177
  SemanticQueryRequestUpdated?: import("@empathyco/x-types").SemanticQueriesRequest | null | undefined;
171
178
  SemanticQueriesResponseChanged?: import("@empathyco/x-types").SemanticQuery[] | undefined;
172
179
  UserSelectedASemanticQuery?: import("@empathyco/x-types").SemanticQuery | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
1
+ {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-handler.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/components/url-handler.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;;wBAuL4B,mBAAmB;;;;;;;AAtLlD,wBAuVE"}
1
+ {"version":3,"file":"url-handler.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/components/url-handler.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;;wBAuL4B,mBAAmB;;;;;;;AAtLlD,wBA6VE"}
@@ -1 +1 @@
1
- {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/initial-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,SAAS,CAQ/C,CAAA"}
1
+ {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/initial-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,SAAS,CAU/C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,eAkC7B,CAAA"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,eAsC7B,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Filter, RelatedTag } from '@empathyco/x-types';
1
+ import type { BrowsableRequest, Filter, RelatedTag } from '@empathyco/x-types';
2
2
  import type { Dictionary } from '@empathyco/x-utils';
3
3
  import type { XActionContext, XStoreModule } from '../../../store';
4
4
  import type { QueryMutations, QueryState } from '../../../store/utils/query.utils';
@@ -80,6 +80,12 @@ export interface UrlMutations extends QueryMutations {
80
80
  * @param sort - The new sort of the url.
81
81
  */
82
82
  setSort: (sort: string) => void;
83
+ /**
84
+ * Sets the new browseCategory.
85
+ *
86
+ * @param sort - The new browseCategory of the url.
87
+ */
88
+ setBrowseCategory: (browseCategory: BrowsableRequest) => void;
83
89
  /**
84
90
  * Sets the initial extra params.
85
91
  *