@empathyco/x-components 6.0.0-alpha.9 → 6.0.0-alpha.90

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 (2736) hide show
  1. package/CHANGELOG.md +679 -544
  2. package/core/index.js +52 -43
  3. package/core/index.js.map +1 -1
  4. package/design-system/deprecated-full-theme.css +6740 -6681
  5. package/docs/API-reference/api/x-adapter-platform.md +3 -0
  6. package/docs/API-reference/api/x-adapter-platform.nextqueriesrelatedpromptsschema.md +13 -0
  7. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompt.md +2 -0
  8. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompt.suggestionimageurl.md +11 -0
  9. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompt.tagging.md +11 -0
  10. package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.md +22 -0
  11. package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplay.md +11 -0
  12. package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayadd2cart.md +11 -0
  13. package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayclick.md +11 -0
  14. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.md +22 -0
  15. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.nextqueries.md +11 -0
  16. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.toolingdisplay.md +11 -0
  17. package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.toolingdisplayclick.md +11 -0
  18. package/docs/API-reference/api/x-adapter-platform.platformsearchresponse.catalog.md +6 -0
  19. package/docs/API-reference/api/x-adapter-platform.platformsearchresponse.md +1 -1
  20. package/docs/API-reference/api/x-components.addquerytohistory.md +1 -1
  21. package/docs/API-reference/api/x-components.addquerytohistoryaction.addquerytohistory.md +1 -1
  22. package/docs/API-reference/api/x-components.addquerytohistoryaction.md +2 -2
  23. package/docs/API-reference/api/x-components.allfilter.md +3 -3
  24. package/docs/API-reference/api/x-components.animationprop.md +6 -1
  25. package/docs/API-reference/api/x-components.bannerslist.md +3 -3
  26. package/docs/API-reference/api/x-components.baseaddtocart.md +1 -0
  27. package/docs/API-reference/api/x-components.basecolumnpickerdropdown.md +4 -4
  28. package/docs/API-reference/api/x-components.basedropdown.md +5 -5
  29. package/docs/API-reference/api/x-components.baseeventsmodal.md +2 -2
  30. package/docs/API-reference/api/x-components.baseeventsmodalclose.md +3 -3
  31. package/docs/API-reference/api/x-components.baseeventsmodalopen.md +3 -3
  32. package/docs/API-reference/api/x-components.basegrid.md +3 -3
  33. package/docs/API-reference/api/x-components.baseheadertogglepanel.md +5 -5
  34. package/docs/API-reference/api/x-components.baseidmodal.md +2 -2
  35. package/docs/API-reference/api/x-components.baseidtogglepanel.md +5 -5
  36. package/docs/API-reference/api/x-components.basemodal.md +10 -10
  37. package/docs/API-reference/api/x-components.baseresultimage.md +9 -9
  38. package/docs/API-reference/api/x-components.baseresultlink.md +1 -0
  39. package/docs/API-reference/api/x-components.baseresultrating.md +1 -0
  40. package/docs/API-reference/api/x-components.baseslider.md +70 -0
  41. package/docs/API-reference/api/x-components.basesuggestions.md +3 -3
  42. package/docs/API-reference/api/x-components.baseswitch.md +1 -1
  43. package/docs/API-reference/api/x-components.basetabspanel.md +8 -8
  44. package/docs/API-reference/api/x-components.baseteleport.md +42 -0
  45. package/docs/API-reference/api/x-components.basetogglepanel.md +3 -3
  46. package/docs/API-reference/api/x-components.basevariablecolumngrid.md +3 -3
  47. package/docs/API-reference/api/x-components.bus.md +1 -1
  48. package/docs/API-reference/api/x-components.cancelfetchandsaveidentifierresults.md +1 -1
  49. package/docs/API-reference/api/x-components.cancelfetchandsaveidentifierresultswire.md +1 -1
  50. package/docs/API-reference/api/x-components.cancelfetchandsavenextqueries.md +1 -1
  51. package/docs/API-reference/api/x-components.cancelfetchandsavepopularsearches.md +1 -1
  52. package/docs/API-reference/api/x-components.cancelfetchandsavequerysuggestions.md +1 -1
  53. package/docs/API-reference/api/x-components.cancelfetchandsaverecommendations.md +1 -1
  54. package/docs/API-reference/api/x-components.cancelfetchandsaverelatedprompts.md +13 -0
  55. package/docs/API-reference/api/x-components.cancelfetchandsaverelatedtags.md +1 -1
  56. package/docs/API-reference/api/x-components.cancelfetchandsaverelatedtagswire.md +1 -1
  57. package/docs/API-reference/api/x-components.cancelfetchandsavesearchresponse.md +1 -1
  58. package/docs/API-reference/api/x-components.cancelfetchandsavesearchresponsewire.md +1 -1
  59. package/docs/API-reference/api/x-components.cancelfetchandsavesuggestionswire.md +1 -1
  60. package/docs/API-reference/api/x-components.configmutations.config.md +11 -0
  61. package/docs/API-reference/api/x-components.configmutations.md +24 -0
  62. package/docs/API-reference/api/x-components.configmutations.mergeconfig.md +13 -0
  63. package/docs/API-reference/api/x-components.configmutations.setconfig.md +13 -0
  64. package/docs/API-reference/api/x-components.createfetchandsaveactions.md +2 -2
  65. package/docs/API-reference/api/x-components.createrelatedtagsquerygetter.md +26 -0
  66. package/docs/API-reference/api/x-components.createrelatedtagsquerygetteroptions.getrelatedtags.md +13 -0
  67. package/docs/API-reference/api/x-components.createrelatedtagsquerygetteroptions.md +20 -0
  68. package/docs/API-reference/api/x-components.createstoreemitters.md +2 -2
  69. package/docs/API-reference/api/x-components.createtrackrelatedprompttoolingdisplayclickwire.md +19 -0
  70. package/docs/API-reference/api/x-components.createtracktoolingadd2cartwire.md +19 -0
  71. package/docs/API-reference/api/x-components.createtracktoolingdisplaywire.md +19 -0
  72. package/docs/API-reference/api/x-components.debouncedfunction.cancel.md +2 -6
  73. package/docs/API-reference/api/x-components.debouncedfunction.md +4 -4
  74. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice._constructor_.md → x-components.defaultexternaltaggingservice._constructor_.md} +3 -3
  75. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.add_to_cart_id_key.md +13 -0
  76. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.instance.md +13 -0
  77. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.localstorageservice.md +11 -0
  78. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.md +43 -0
  79. package/docs/API-reference/api/{x-components.pdpaddtocartservice.movetosessionstorage.md → x-components.defaultexternaltaggingservice.movetosessionstorage.md} +2 -2
  80. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.result_clicked_id_key.md +13 -0
  81. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.sessionstorageservice.md +11 -0
  82. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.storagekey.md +11 -0
  83. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.storagettlms.md +11 -0
  84. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice.store.md → x-components.defaultexternaltaggingservice.store.md} +2 -2
  85. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.storeaddtocart.md +24 -0
  86. package/docs/API-reference/api/{x-components.pdpaddtocartservice.storeresultclicked.md → x-components.defaultexternaltaggingservice.storeresultclicked.md} +3 -3
  87. package/docs/API-reference/api/{x-components.pdpaddtocartservice.trackaddtocart.md → x-components.defaultexternaltaggingservice.trackaddtocart.md} +3 -3
  88. package/docs/API-reference/api/x-components.defaultfacetsservice.clearfilterswithmetadata.md +2 -2
  89. package/docs/API-reference/api/x-components.defaultfacetsservice.md +1 -1
  90. package/docs/API-reference/api/x-components.devicemutations.md +4 -4
  91. package/docs/API-reference/api/x-components.devicemutations.setname.md +2 -13
  92. package/docs/API-reference/api/x-components.devicexevents.deviceprovided.md +1 -1
  93. package/docs/API-reference/api/x-components.devicexevents.md +1 -1
  94. package/docs/API-reference/api/x-components.displayclickprovider.md +66 -0
  95. package/docs/API-reference/api/x-components.empathize.md +6 -6
  96. package/docs/API-reference/api/x-components.empathizemutations.md +5 -5
  97. package/docs/API-reference/api/x-components.empathizemutations.setisopen.md +2 -13
  98. package/docs/API-reference/api/x-components.empathizexevents.empathizeclosed.md +1 -1
  99. package/docs/API-reference/api/x-components.empathizexevents.empathizeopened.md +1 -1
  100. package/docs/API-reference/api/x-components.empathizexevents.md +3 -3
  101. package/docs/API-reference/api/x-components.empathizexevents.userclosedempathize.md +1 -1
  102. package/docs/API-reference/api/x-components.experiencecontrolsactions.cancelfetchandsavecontrols.md +1 -1
  103. package/docs/API-reference/api/x-components.experiencecontrolsactions.fetchandsaveexperiencecontrolsresponse.md +2 -13
  104. package/docs/API-reference/api/x-components.experiencecontrolsactions.fetchexperiencecontrolsresponse.md +2 -15
  105. package/docs/API-reference/api/x-components.experiencecontrolsactions.md +3 -8
  106. package/docs/API-reference/api/x-components.experiencecontrolsmutations.md +6 -6
  107. package/docs/API-reference/api/x-components.experiencecontrolsmutations.setcontrols.md +2 -13
  108. package/docs/API-reference/api/x-components.experiencecontrolsmutations.setevents.md +2 -13
  109. package/docs/API-reference/api/x-components.experiencecontrolsmutations.setparams.md +2 -13
  110. package/docs/API-reference/api/x-components.externaltaggingservice.md +23 -0
  111. package/docs/API-reference/api/x-components.externaltaggingservice.movetosessionstorage.md +13 -0
  112. package/docs/API-reference/api/x-components.externaltaggingservice.storeaddtocart.md +13 -0
  113. package/docs/API-reference/api/x-components.externaltaggingservice.storeresultclicked.md +13 -0
  114. package/docs/API-reference/api/x-components.externaltaggingservice.trackaddtocart.md +13 -0
  115. package/docs/API-reference/api/x-components.extraparamsmutations.md +4 -4
  116. package/docs/API-reference/api/x-components.extraparamsmutations.setparams.md +2 -13
  117. package/docs/API-reference/api/x-components.extraparamsxevents.extraparamschanged.md +1 -1
  118. package/docs/API-reference/api/x-components.extraparamsxevents.extraparamsinitialized.md +1 -1
  119. package/docs/API-reference/api/x-components.extraparamsxevents.extraparamsprovided.md +1 -1
  120. package/docs/API-reference/api/x-components.extraparamsxevents.md +4 -4
  121. package/docs/API-reference/api/x-components.extraparamsxevents.userchangedextraparams.md +1 -1
  122. package/docs/API-reference/api/x-components.facets.md +6 -6
  123. package/docs/API-reference/api/x-components.facetsmutations.clearstickyfilters.md +2 -6
  124. package/docs/API-reference/api/x-components.facetsmutations.md +17 -17
  125. package/docs/API-reference/api/x-components.facetsmutations.mutatefilter.md +2 -13
  126. package/docs/API-reference/api/x-components.facetsmutations.removefacet.md +2 -13
  127. package/docs/API-reference/api/x-components.facetsmutations.removefilter.md +2 -13
  128. package/docs/API-reference/api/x-components.facetsmutations.removefilters.md +2 -13
  129. package/docs/API-reference/api/x-components.facetsmutations.removestickyfilter.md +2 -13
  130. package/docs/API-reference/api/x-components.facetsmutations.setfacet.md +2 -13
  131. package/docs/API-reference/api/x-components.facetsmutations.setfacetgroup.md +2 -13
  132. package/docs/API-reference/api/x-components.facetsmutations.setfilters.md +2 -13
  133. package/docs/API-reference/api/x-components.facetsmutations.setpreselectedfilters.md +2 -13
  134. package/docs/API-reference/api/x-components.facetsmutations.setstickyfilter.md +2 -13
  135. package/docs/API-reference/api/x-components.facetsservice.clearfilters.md +2 -14
  136. package/docs/API-reference/api/x-components.facetsservice.clearfilterswithmetadata.md +3 -14
  137. package/docs/API-reference/api/x-components.facetsservice.deselect.md +2 -14
  138. package/docs/API-reference/api/x-components.facetsservice.md +14 -14
  139. package/docs/API-reference/api/x-components.facetsservice.select.md +2 -13
  140. package/docs/API-reference/api/x-components.facetsservice.selectpreselectedfilters.md +2 -6
  141. package/docs/API-reference/api/x-components.facetsservice.setfacets.md +2 -13
  142. package/docs/API-reference/api/x-components.facetsservice.setquery.md +2 -13
  143. package/docs/API-reference/api/x-components.facetsservice.toggle.md +2 -13
  144. package/docs/API-reference/api/x-components.facetsservice.updatefacets.md +2 -13
  145. package/docs/API-reference/api/x-components.facetsservice.updatepreselectedfilters.md +2 -13
  146. package/docs/API-reference/api/x-components.fallbackdisclaimer.md +2 -2
  147. package/docs/API-reference/api/x-components.featurelocation.md +1 -1
  148. package/docs/API-reference/api/x-components.fetchandsavehooks.fetch.md +2 -16
  149. package/docs/API-reference/api/x-components.fetchandsavehooks.md +8 -8
  150. package/docs/API-reference/api/x-components.fetchandsavehooks.oncancel.md +2 -6
  151. package/docs/API-reference/api/x-components.fetchandsavehooks.onerror.md +3 -14
  152. package/docs/API-reference/api/x-components.fetchandsavehooks.onsuccess.md +3 -15
  153. package/docs/API-reference/api/x-components.fetchandsaveidentifierresults.md +1 -1
  154. package/docs/API-reference/api/x-components.fetchandsavenextqueries.md +1 -1
  155. package/docs/API-reference/api/x-components.fetchandsavepopularsearches.md +1 -1
  156. package/docs/API-reference/api/x-components.fetchandsavequerypreview.md +1 -1
  157. package/docs/API-reference/api/x-components.fetchandsavequerysuggestions.md +1 -1
  158. package/docs/API-reference/api/x-components.fetchandsaverecommendations.md +1 -1
  159. package/docs/API-reference/api/x-components.fetchandsaverelatedprompts.md +13 -0
  160. package/docs/API-reference/api/x-components.fetchandsaverelatedtags.md +1 -1
  161. package/docs/API-reference/api/x-components.fetchandsavesearchresponse.md +1 -1
  162. package/docs/API-reference/api/x-components.fetchandsavesemanticquery.md +1 -1
  163. package/docs/API-reference/api/x-components.fetchexperiencecontrolsresponse.md +1 -1
  164. package/docs/API-reference/api/x-components.fetchidentifierresults.md +1 -1
  165. package/docs/API-reference/api/x-components.fetchnextqueries.md +1 -1
  166. package/docs/API-reference/api/x-components.fetchpopularsearches.md +1 -1
  167. package/docs/API-reference/api/x-components.fetchquerypreview.md +1 -1
  168. package/docs/API-reference/api/x-components.fetchquerysuggestions.md +1 -1
  169. package/docs/API-reference/api/x-components.fetchrecommendations.md +1 -1
  170. package/docs/API-reference/api/x-components.fetchrelatedprompts.md +13 -0
  171. package/docs/API-reference/api/x-components.fetchrelatedtags.md +1 -1
  172. package/docs/API-reference/api/x-components.fetchsearchresponse.md +1 -1
  173. package/docs/API-reference/api/x-components.fetchsemanticquery.md +1 -1
  174. package/docs/API-reference/api/x-components.filterslist.md +3 -3
  175. package/docs/API-reference/api/x-components.globalxbus.md +18 -2
  176. package/docs/API-reference/api/x-components.hierarchicalfilter.md +11 -3
  177. package/docs/API-reference/api/x-components.historyqueries.md +1 -1
  178. package/docs/API-reference/api/x-components.historyqueriesactions.addquerytohistory.md +2 -12
  179. package/docs/API-reference/api/x-components.historyqueriesactions.loadhistoryqueriesfrombrowserstorage.md +2 -6
  180. package/docs/API-reference/api/x-components.historyqueriesactions.md +12 -12
  181. package/docs/API-reference/api/x-components.historyqueriesactions.refreshsession.md +2 -6
  182. package/docs/API-reference/api/x-components.historyqueriesactions.removefromhistory.md +2 -13
  183. package/docs/API-reference/api/x-components.historyqueriesactions.sethistoryqueries.md +2 -13
  184. package/docs/API-reference/api/x-components.historyqueriesactions.seturlparams.md +2 -13
  185. package/docs/API-reference/api/x-components.historyqueriesactions.togglehistoryqueries.md +2 -13
  186. package/docs/API-reference/api/x-components.historyqueriesactions.updatehistoryquerieswithsearchresponse.md +2 -13
  187. package/docs/API-reference/api/x-components.historyqueriesmutations.md +8 -8
  188. package/docs/API-reference/api/x-components.historyqueriesmutations.sethistoryqueries.md +2 -13
  189. package/docs/API-reference/api/x-components.historyqueriesmutations.setisenabled.md +2 -13
  190. package/docs/API-reference/api/x-components.historyqueriesmutations.setsearchselectedfilters.md +2 -13
  191. package/docs/API-reference/api/x-components.historyqueriesmutations.setsessiontimestamp.md +2 -13
  192. package/docs/API-reference/api/x-components.historyqueriesstate.md +1 -1
  193. package/docs/API-reference/api/x-components.historyqueriesswitch.md +1 -1
  194. package/docs/API-reference/api/x-components.historyquery.md +1 -1
  195. package/docs/API-reference/api/x-components.identifierresult.md +2 -2
  196. package/docs/API-reference/api/x-components.identifierresults.md +4 -4
  197. package/docs/API-reference/api/x-components.identifierresultsactions.cancelfetchandsaveidentifierresults.md +3 -7
  198. package/docs/API-reference/api/x-components.identifierresultsactions.fetchandsaveidentifierresults.md +2 -13
  199. package/docs/API-reference/api/x-components.identifierresultsactions.fetchidentifierresults.md +2 -15
  200. package/docs/API-reference/api/x-components.identifierresultsactions.md +9 -9
  201. package/docs/API-reference/api/x-components.identifierresultsactions.saveorigin.md +2 -13
  202. package/docs/API-reference/api/x-components.identifierresultsactions.savequery.md +2 -13
  203. package/docs/API-reference/api/x-components.identifierresultsmutations.md +7 -7
  204. package/docs/API-reference/api/x-components.identifierresultsmutations.setidentifierresults.md +2 -13
  205. package/docs/API-reference/api/x-components.identifierresultsmutations.setorigin.md +2 -13
  206. package/docs/API-reference/api/x-components.identifierresultsmutations.setparams.md +2 -13
  207. package/docs/API-reference/api/x-components.identifierresultsstate.md +1 -1
  208. package/docs/API-reference/api/x-components.increasepageappendingresults.md +1 -1
  209. package/docs/API-reference/api/x-components.initwrapper.bus.md +1 -1
  210. package/docs/API-reference/api/x-components.initwrapper.md +1 -1
  211. package/docs/API-reference/api/x-components.installxoptions.bus.md +1 -1
  212. package/docs/API-reference/api/x-components.installxoptions.domelement.md +1 -1
  213. package/docs/API-reference/api/x-components.installxoptions.installextraplugins.md +3 -14
  214. package/docs/API-reference/api/x-components.installxoptions.md +3 -8
  215. package/docs/API-reference/api/x-components.isios.md +13 -0
  216. package/docs/API-reference/api/x-components.itemslist.md +3 -3
  217. package/docs/API-reference/api/x-components.loadhistoryqueriesfrombrowserstorage.md +1 -1
  218. package/docs/API-reference/api/x-components.mainmodal.md +2 -2
  219. package/docs/API-reference/api/x-components.md +104 -64
  220. package/docs/API-reference/api/x-components.mergeconfig.md +27 -0
  221. package/docs/API-reference/api/x-components.multicolumnmaxwidthlayout.md +5 -5
  222. package/docs/API-reference/api/x-components.myhistory.md +4 -4
  223. package/docs/API-reference/api/x-components.nextqueries.md +1 -1
  224. package/docs/API-reference/api/x-components.nextqueriesactions.cancelfetchandsavenextqueries.md +3 -7
  225. package/docs/API-reference/api/x-components.nextqueriesactions.fetchandsavenextqueries.md +2 -13
  226. package/docs/API-reference/api/x-components.nextqueriesactions.fetchandsavenextquerypreview.md +3 -14
  227. package/docs/API-reference/api/x-components.nextqueriesactions.fetchnextqueries.md +2 -15
  228. package/docs/API-reference/api/x-components.nextqueriesactions.fetchnextquerypreview.md +3 -16
  229. package/docs/API-reference/api/x-components.nextqueriesactions.md +11 -11
  230. package/docs/API-reference/api/x-components.nextqueriesactions.setqueryfromlasthistoryquery.md +2 -13
  231. package/docs/API-reference/api/x-components.nextqueriesactions.seturlparams.md +2 -13
  232. package/docs/API-reference/api/x-components.nextqueriesgroup.md +22 -0
  233. package/docs/API-reference/api/x-components.nextqueriesgroup.modelname.md +11 -0
  234. package/docs/API-reference/api/x-components.nextqueriesgroup.nextqueries.md +11 -0
  235. package/docs/API-reference/api/x-components.nextquerieslist.md +3 -3
  236. package/docs/API-reference/api/x-components.nextqueriesmutations.md +12 -12
  237. package/docs/API-reference/api/x-components.nextqueriesmutations.resetresultspreview.md +2 -6
  238. package/docs/API-reference/api/x-components.nextqueriesmutations.setnextqueries.md +2 -13
  239. package/docs/API-reference/api/x-components.nextqueriesmutations.setparams.md +2 -13
  240. package/docs/API-reference/api/x-components.nextqueriesmutations.setrelatedtags.md +2 -13
  241. package/docs/API-reference/api/x-components.nextqueriesmutations.setresultspreview.md +2 -13
  242. package/docs/API-reference/api/x-components.nextqueriesmutations.setsearchedqueries.md +2 -13
  243. package/docs/API-reference/api/x-components.nextqueriesstate.md +1 -1
  244. package/docs/API-reference/api/x-components.pageselector.md +80 -0
  245. package/docs/API-reference/api/x-components.partialresultslist.md +4 -4
  246. package/docs/API-reference/api/x-components.popularsearches.md +1 -1
  247. package/docs/API-reference/api/x-components.popularsearchesactions.cancelfetchandsavesuggestions.md +3 -7
  248. package/docs/API-reference/api/x-components.popularsearchesactions.fetchandsavesuggestions.md +2 -13
  249. package/docs/API-reference/api/x-components.popularsearchesactions.fetchsuggestions.md +2 -15
  250. package/docs/API-reference/api/x-components.popularsearchesactions.md +6 -6
  251. package/docs/API-reference/api/x-components.popularsearchesmutations.md +7 -7
  252. package/docs/API-reference/api/x-components.popularsearchesmutations.setparams.md +2 -13
  253. package/docs/API-reference/api/x-components.popularsearchesmutations.setsearchedqueries.md +2 -13
  254. package/docs/API-reference/api/x-components.popularsearchesmutations.setsuggestions.md +2 -13
  255. package/docs/API-reference/api/x-components.promotedslist.md +3 -3
  256. package/docs/API-reference/api/x-components.queriespreviewactions.fetchandsavequerypreview.md +2 -13
  257. package/docs/API-reference/api/x-components.queriespreviewactions.fetchquerypreview.md +2 -15
  258. package/docs/API-reference/api/x-components.queriespreviewactions.md +5 -5
  259. package/docs/API-reference/api/x-components.queriespreviewmutations.addquerypreviewinstance.md +2 -13
  260. package/docs/API-reference/api/x-components.queriespreviewmutations.clearquerypreview.md +2 -13
  261. package/docs/API-reference/api/x-components.queriespreviewmutations.md +14 -14
  262. package/docs/API-reference/api/x-components.queriespreviewmutations.removequerypreviewinstance.md +3 -14
  263. package/docs/API-reference/api/x-components.queriespreviewmutations.setparams.md +2 -13
  264. package/docs/API-reference/api/x-components.queriespreviewmutations.setquerypreviewcached.md +2 -13
  265. package/docs/API-reference/api/x-components.queriespreviewmutations.setselectedquerypreview.md +2 -13
  266. package/docs/API-reference/api/x-components.queriespreviewmutations.setstatus.md +2 -13
  267. package/docs/API-reference/api/x-components.queriespreviewmutations.updateaquerypreviewresult.md +3 -14
  268. package/docs/API-reference/api/x-components.queryfeature.md +1 -1
  269. package/docs/API-reference/api/x-components.querymutations.md +20 -0
  270. package/docs/API-reference/api/x-components.querymutations.setquery.md +13 -0
  271. package/docs/API-reference/api/x-components.querypreview.md +2 -2
  272. package/docs/API-reference/api/x-components.querypreviewlist.md +3 -3
  273. package/docs/API-reference/api/x-components.querystate.md +20 -0
  274. package/docs/API-reference/api/x-components.querystate.query.md +13 -0
  275. package/docs/API-reference/api/x-components.querysuggestion.md +1 -1
  276. package/docs/API-reference/api/x-components.querysuggestions.md +1 -1
  277. package/docs/API-reference/api/x-components.querysuggestionsactions.cancelfetchandsavesuggestions.md +3 -7
  278. package/docs/API-reference/api/x-components.querysuggestionsactions.fetchandsavesuggestions.md +2 -13
  279. package/docs/API-reference/api/x-components.querysuggestionsactions.fetchsuggestions.md +2 -15
  280. package/docs/API-reference/api/x-components.querysuggestionsactions.md +8 -8
  281. package/docs/API-reference/api/x-components.querysuggestionsactions.seturlparams.md +2 -13
  282. package/docs/API-reference/api/x-components.querysuggestionsgetter.md +1 -1
  283. package/docs/API-reference/api/x-components.querysuggestionsgetter.querysuggestions.md +2 -2
  284. package/docs/API-reference/api/x-components.querysuggestionsmutations.md +7 -7
  285. package/docs/API-reference/api/x-components.querysuggestionsmutations.setparams.md +2 -13
  286. package/docs/API-reference/api/x-components.querysuggestionsmutations.setsearchedqueries.md +2 -13
  287. package/docs/API-reference/api/x-components.querysuggestionsmutations.setsuggestions.md +2 -13
  288. package/docs/API-reference/api/x-components.querysuggestionsstate.md +1 -1
  289. package/docs/API-reference/api/x-components.querysuggestionsxevents.md +0 -1
  290. package/docs/API-reference/api/x-components.recommendations.md +4 -4
  291. package/docs/API-reference/api/x-components.recommendationsactions.cancelfetchandsaverecommendations.md +3 -7
  292. package/docs/API-reference/api/x-components.recommendationsactions.fetchandsaverecommendations.md +2 -13
  293. package/docs/API-reference/api/x-components.recommendationsactions.fetchrecommendations.md +2 -15
  294. package/docs/API-reference/api/x-components.recommendationsactions.md +6 -6
  295. package/docs/API-reference/api/x-components.recommendationsmutations.md +7 -7
  296. package/docs/API-reference/api/x-components.recommendationsmutations.setparams.md +2 -13
  297. package/docs/API-reference/api/x-components.recommendationsmutations.setrecommendations.md +2 -13
  298. package/docs/API-reference/api/x-components.recommendationsmutations.updaterecommendation.md +2 -13
  299. package/docs/API-reference/api/x-components.refreshsession.md +1 -1
  300. package/docs/API-reference/api/x-components.relatedprompt.md +33 -0
  301. package/docs/API-reference/api/x-components.relatedpromptsactioncontext.md +15 -0
  302. package/docs/API-reference/api/x-components.relatedpromptsactions.cancelfetchandsaverelatedprompts.md +13 -0
  303. package/docs/API-reference/api/x-components.relatedpromptsactions.fetchandsaverelatedprompts.md +13 -0
  304. package/docs/API-reference/api/x-components.relatedpromptsactions.fetchrelatedprompts.md +13 -0
  305. package/docs/API-reference/api/x-components.relatedpromptsactions.md +23 -0
  306. package/docs/API-reference/api/x-components.relatedpromptsactions.seturlparams.md +13 -0
  307. package/docs/API-reference/api/x-components.relatedpromptsgetters.md +21 -0
  308. package/docs/API-reference/api/x-components.relatedpromptsgetters.query.md +13 -0
  309. package/docs/API-reference/api/x-components.relatedpromptsgetters.request.md +13 -0
  310. package/docs/API-reference/api/x-components.relatedpromptslist.md +72 -0
  311. package/docs/API-reference/api/x-components.relatedpromptsmutations.md +27 -0
  312. package/docs/API-reference/api/x-components.relatedpromptsmutations.resetrelatedpromptsstate.md +13 -0
  313. package/docs/API-reference/api/x-components.relatedpromptsmutations.resetselectedprompt.md +13 -0
  314. package/docs/API-reference/api/x-components.relatedpromptsmutations.setparams.md +13 -0
  315. package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsproducts.md +13 -0
  316. package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsrelatedtags.md +13 -0
  317. package/docs/API-reference/api/x-components.relatedpromptsmutations.setselectedprompt.md +13 -0
  318. package/docs/API-reference/api/x-components.relatedpromptsmutations.setselectedquery.md +13 -0
  319. package/docs/API-reference/api/x-components.relatedpromptsstate.md +25 -0
  320. package/docs/API-reference/api/x-components.relatedpromptsstate.params.md +13 -0
  321. package/docs/API-reference/api/x-components.relatedpromptsstate.relatedprompts.md +13 -0
  322. package/docs/API-reference/api/x-components.relatedpromptsstate.relatedtags.md +13 -0
  323. package/docs/API-reference/api/x-components.relatedpromptsstate.selectedprompt.md +13 -0
  324. package/docs/API-reference/api/x-components.relatedpromptsstate.selectedquery.md +13 -0
  325. package/docs/API-reference/api/x-components.relatedpromptstaglist.md +73 -0
  326. package/docs/API-reference/api/x-components.relatedpromptsxevents.md +27 -0
  327. package/docs/API-reference/api/x-components.relatedpromptsxevents.relatedpromptsrequestupdated.md +13 -0
  328. package/docs/API-reference/api/x-components.relatedpromptsxevents.relatedpromptsresponsechanged.md +13 -0
  329. package/docs/API-reference/api/x-components.relatedpromptsxevents.relatedpromptsunmounted.md +13 -0
  330. package/docs/API-reference/api/x-components.relatedpromptsxevents.selectedrelatedpromptchanged.md +13 -0
  331. package/docs/API-reference/api/x-components.relatedpromptsxevents.userclickedarelatedpromptadd2cart.md +13 -0
  332. package/docs/API-reference/api/x-components.relatedpromptsxevents.userclickedarelatedpromptresult.md +13 -0
  333. package/docs/API-reference/api/x-components.relatedpromptsxevents.userselectedarelatedprompt.md +13 -0
  334. package/docs/API-reference/api/x-components.relatedpromptsxevents.userselectedarelatedpromptquery.md +13 -0
  335. package/docs/API-reference/api/x-components.relatedpromptsxmodule.md +13 -0
  336. package/docs/API-reference/api/x-components.relatedpromptsxstoremodule.md +15 -0
  337. package/docs/API-reference/api/x-components.relatedtag.md +3 -3
  338. package/docs/API-reference/api/x-components.relatedtags.md +4 -4
  339. package/docs/API-reference/api/x-components.relatedtagsactions.cancelfetchandsaverelatedtags.md +3 -7
  340. package/docs/API-reference/api/x-components.relatedtagsactions.fetchandsaverelatedtags.md +2 -13
  341. package/docs/API-reference/api/x-components.relatedtagsactions.fetchrelatedtags.md +2 -15
  342. package/docs/API-reference/api/x-components.relatedtagsactions.md +9 -9
  343. package/docs/API-reference/api/x-components.relatedtagsactions.seturlparams.md +2 -13
  344. package/docs/API-reference/api/x-components.relatedtagsactions.togglerelatedtag.md +2 -13
  345. package/docs/API-reference/api/x-components.relatedtagsmutations.md +7 -7
  346. package/docs/API-reference/api/x-components.relatedtagsmutations.setparams.md +2 -13
  347. package/docs/API-reference/api/x-components.relatedtagsmutations.setrelatedtags.md +2 -13
  348. package/docs/API-reference/api/x-components.relatedtagsmutations.setselectedrelatedtags.md +2 -13
  349. package/docs/API-reference/api/x-components.relatedtagsstate.md +1 -1
  350. package/docs/API-reference/api/x-components.removefromhistory.md +1 -1
  351. package/docs/API-reference/api/x-components.removesearchinputfocus.md +13 -0
  352. package/docs/API-reference/api/x-components.resetrequestonrefinement.md +1 -1
  353. package/docs/API-reference/api/x-components.resetstateifnorequestwire.md +1 -1
  354. package/docs/API-reference/api/x-components.resultfeature.md +1 -1
  355. package/docs/API-reference/api/x-components.resultslist.md +3 -3
  356. package/docs/API-reference/api/x-components.saveidentifierresultsorigin.md +1 -1
  357. package/docs/API-reference/api/x-components.savequery.md +1 -1
  358. package/docs/API-reference/api/x-components.savesearchorigin.md +1 -1
  359. package/docs/API-reference/api/x-components.savesearchresponse.md +1 -1
  360. package/docs/API-reference/api/x-components.scrollmutations.md +5 -5
  361. package/docs/API-reference/api/x-components.scrollmutations.setpendingscrollto.md +2 -13
  362. package/docs/API-reference/api/x-components.scrollmutations.setscrollcomponentstate.md +2 -13
  363. package/docs/API-reference/api/x-components.scrolltotop.md +6 -6
  364. package/docs/API-reference/api/x-components.scrollvisibilityobserver.md +5 -5
  365. package/docs/API-reference/api/x-components.scrollvisibilityobserver.observe.md +2 -13
  366. package/docs/API-reference/api/x-components.scrollvisibilityobserver.unobserve.md +2 -13
  367. package/docs/API-reference/api/x-components.scrollxevents.md +8 -8
  368. package/docs/API-reference/api/x-components.scrollxevents.scrollrestorefailed.md +1 -1
  369. package/docs/API-reference/api/x-components.scrollxevents.scrollrestoresucceeded.md +1 -1
  370. package/docs/API-reference/api/x-components.scrollxevents.useralmostreachedscrollend.md +1 -1
  371. package/docs/API-reference/api/x-components.scrollxevents.userchangedscrolldirection.md +1 -1
  372. package/docs/API-reference/api/x-components.scrollxevents.userreachedscrollend.md +1 -1
  373. package/docs/API-reference/api/x-components.scrollxevents.userreachedscrollstart.md +1 -1
  374. package/docs/API-reference/api/x-components.scrollxevents.userscrolled.md +1 -1
  375. package/docs/API-reference/api/x-components.scrollxevents.userscrolledtoelement.md +1 -1
  376. package/docs/API-reference/api/x-components.searchactions.cancelfetchandsavesearchresponse.md +3 -7
  377. package/docs/API-reference/api/x-components.searchactions.fetchandsavesearchresponse.md +2 -13
  378. package/docs/API-reference/api/x-components.searchactions.fetchsearchresponse.md +2 -15
  379. package/docs/API-reference/api/x-components.searchactions.increasepageappendingresults.md +3 -6
  380. package/docs/API-reference/api/x-components.searchactions.md +12 -12
  381. package/docs/API-reference/api/x-components.searchactions.resetrequestonrefinement.md +2 -13
  382. package/docs/API-reference/api/x-components.searchactions.saveorigin.md +2 -13
  383. package/docs/API-reference/api/x-components.searchactions.savesearchresponse.md +2 -13
  384. package/docs/API-reference/api/x-components.searchactions.seturlparams.md +2 -13
  385. package/docs/API-reference/api/x-components.searchboxactions.md +5 -5
  386. package/docs/API-reference/api/x-components.searchboxactions.setinputstatus.md +2 -13
  387. package/docs/API-reference/api/x-components.searchboxactions.seturlparams.md +2 -13
  388. package/docs/API-reference/api/x-components.searchboxmutations.md +5 -5
  389. package/docs/API-reference/api/x-components.searchboxmutations.setinputstatus.md +2 -13
  390. package/docs/API-reference/api/x-components.searchboxstate.md +1 -1
  391. package/docs/API-reference/api/x-components.searchboxxevents.md +12 -12
  392. package/docs/API-reference/api/x-components.searchboxxevents.searchboxquerychanged.md +1 -1
  393. package/docs/API-reference/api/x-components.searchboxxevents.userblurredsearchbox.md +1 -1
  394. package/docs/API-reference/api/x-components.searchboxxevents.userclearedquery.md +1 -1
  395. package/docs/API-reference/api/x-components.searchboxxevents.userclickedsearchbox.md +1 -1
  396. package/docs/API-reference/api/x-components.searchboxxevents.userfocusedsearchbox.md +1 -1
  397. package/docs/API-reference/api/x-components.searchboxxevents.userhoveredinsearchbox.md +1 -1
  398. package/docs/API-reference/api/x-components.searchboxxevents.userhoveredoutsearchbox.md +1 -1
  399. package/docs/API-reference/api/x-components.searchboxxevents.useristypingaquery.md +1 -1
  400. package/docs/API-reference/api/x-components.searchboxxevents.userpressedclearsearchboxbutton.md +1 -1
  401. package/docs/API-reference/api/x-components.searchboxxevents.userpressedenterkey.md +1 -1
  402. package/docs/API-reference/api/x-components.searchboxxevents.userpressedsearchbutton.md +1 -1
  403. package/docs/API-reference/api/x-components.searchboxxevents.usertalked.md +1 -1
  404. package/docs/API-reference/api/x-components.searchbutton.md +1 -1
  405. package/docs/API-reference/api/x-components.searchconfig.md +1 -0
  406. package/docs/API-reference/api/x-components.searchconfig.pagemode.md +11 -0
  407. package/docs/API-reference/api/x-components.searchinput.md +1 -1
  408. package/docs/API-reference/api/x-components.searchinputplaceholder.md +3 -3
  409. package/docs/API-reference/api/x-components.searchmutations.appendresults.md +2 -13
  410. package/docs/API-reference/api/x-components.searchmutations.md +30 -29
  411. package/docs/API-reference/api/x-components.searchmutations.resetstate.md +3 -7
  412. package/docs/API-reference/api/x-components.searchmutations.resetstateforreload.md +3 -7
  413. package/docs/API-reference/api/x-components.searchmutations.setbanners.md +2 -13
  414. package/docs/API-reference/api/x-components.searchmutations.setdisplaytagging.md +2 -13
  415. package/docs/API-reference/api/x-components.searchmutations.setfacets.md +2 -13
  416. package/docs/API-reference/api/x-components.searchmutations.setfromnoresultswithfilters.md +2 -13
  417. package/docs/API-reference/api/x-components.searchmutations.setisappendresults.md +2 -13
  418. package/docs/API-reference/api/x-components.searchmutations.setisnoresults.md +2 -13
  419. package/docs/API-reference/api/x-components.searchmutations.setorigin.md +2 -13
  420. package/docs/API-reference/api/x-components.searchmutations.setpage.md +2 -13
  421. package/docs/API-reference/api/x-components.searchmutations.setparams.md +2 -13
  422. package/docs/API-reference/api/x-components.searchmutations.setpartialresults.md +2 -13
  423. package/docs/API-reference/api/x-components.searchmutations.setpromoteds.md +2 -13
  424. package/docs/API-reference/api/x-components.searchmutations.setquerytagging.md +2 -13
  425. package/docs/API-reference/api/x-components.searchmutations.setredirections.md +2 -13
  426. package/docs/API-reference/api/x-components.searchmutations.setrelatedtags.md +2 -13
  427. package/docs/API-reference/api/x-components.searchmutations.setresults.md +2 -13
  428. package/docs/API-reference/api/x-components.searchmutations.setselectedfilters.md +2 -13
  429. package/docs/API-reference/api/x-components.searchmutations.setsort.md +2 -13
  430. package/docs/API-reference/api/x-components.searchmutations.setspellcheck.md +2 -13
  431. package/docs/API-reference/api/x-components.searchmutations.setstats.md +13 -0
  432. package/docs/API-reference/api/x-components.searchmutations.settotalresults.md +2 -13
  433. package/docs/API-reference/api/x-components.searchmutations.updateresult.md +2 -13
  434. package/docs/API-reference/api/x-components.searchstate.md +2 -1
  435. package/docs/API-reference/api/x-components.searchstate.stats.md +13 -0
  436. package/docs/API-reference/api/x-components.searchxevents.md +1 -0
  437. package/docs/API-reference/api/x-components.searchxevents.userselectedapage.md +13 -0
  438. package/docs/API-reference/api/x-components.selectedfilterslist.md +3 -3
  439. package/docs/API-reference/api/x-components.semanticqueries.md +1 -1
  440. package/docs/API-reference/api/x-components.semanticqueriesactions.fetchandsavesemanticquery.md +2 -13
  441. package/docs/API-reference/api/x-components.semanticqueriesactions.fetchsemanticquery.md +2 -15
  442. package/docs/API-reference/api/x-components.semanticqueriesactions.md +5 -5
  443. package/docs/API-reference/api/x-components.semanticqueriesgetters.md +1 -0
  444. package/docs/API-reference/api/x-components.semanticqueriesgetters.query.md +13 -0
  445. package/docs/API-reference/api/x-components.semanticqueriesmutations.md +8 -7
  446. package/docs/API-reference/api/x-components.semanticqueriesmutations.setparams.md +2 -13
  447. package/docs/API-reference/api/x-components.semanticqueriesmutations.setsemanticqueries.md +2 -13
  448. package/docs/API-reference/api/x-components.semanticqueriesmutations.setsemanticqueriesrelatedtags.md +13 -0
  449. package/docs/API-reference/api/x-components.semanticqueriesmutations.settotalresults.md +2 -13
  450. package/docs/API-reference/api/x-components.semanticqueriesstate.md +2 -1
  451. package/docs/API-reference/api/x-components.semanticqueriesstate.relatedtags.md +13 -0
  452. package/docs/API-reference/api/x-components.semanticquery.md +1 -1
  453. package/docs/API-reference/api/x-components.setconfig.md +27 -0
  454. package/docs/API-reference/api/x-components.sethistoryqueries.md +1 -1
  455. package/docs/API-reference/api/x-components.setquery.md +25 -0
  456. package/docs/API-reference/api/x-components.setqueryfromlasthistoryquery.md +1 -1
  457. package/docs/API-reference/api/x-components.setsearchurlparams.md +1 -1
  458. package/docs/API-reference/api/x-components.seturlprompt.md +13 -0
  459. package/docs/API-reference/api/x-components.simplefilter.md +9 -1
  460. package/docs/API-reference/api/x-components.singlecolumnlayout.md +3 -3
  461. package/docs/API-reference/api/x-components.slidingpanel.md +13 -5
  462. package/docs/API-reference/api/x-components.snippetcallbacks.md +9 -1
  463. package/docs/API-reference/api/x-components.sortdropdown.md +6 -6
  464. package/docs/API-reference/api/x-components.sortlist.md +5 -5
  465. package/docs/API-reference/api/x-components.sortpickerlist.md +5 -5
  466. package/docs/API-reference/api/x-components.spatialnavigation.md +4 -4
  467. package/docs/API-reference/api/x-components.spatialnavigation.navigateto.md +2 -15
  468. package/docs/API-reference/api/x-components.spellcheck.md +2 -2
  469. package/docs/API-reference/api/x-components.spellcheckbutton.md +1 -1
  470. package/docs/API-reference/api/x-components.stateselector.filter.md +2 -16
  471. package/docs/API-reference/api/x-components.stateselector.md +1 -6
  472. package/docs/API-reference/api/x-components.statusmutations.md +4 -4
  473. package/docs/API-reference/api/x-components.statusmutations.setstatus.md +2 -13
  474. package/docs/API-reference/api/x-components.storemodulestateandgetters.getters.md +11 -0
  475. package/docs/API-reference/api/x-components.storemodulestateandgetters.md +9 -6
  476. package/docs/API-reference/api/x-components.storemodulestateandgetters.state.md +11 -0
  477. package/docs/API-reference/api/x-components.tagging.md +6 -6
  478. package/docs/API-reference/api/x-components.taggingactions.md +4 -4
  479. package/docs/API-reference/api/x-components.taggingactions.track.md +2 -13
  480. package/docs/API-reference/api/x-components.taggingconfig.md +2 -2
  481. package/docs/API-reference/api/{x-components.taggingconfig.clickedresultstoragekey.md → x-components.taggingconfig.storagekey.md} +3 -3
  482. package/docs/API-reference/api/x-components.taggingconfig.storagettlms.md +13 -0
  483. package/docs/API-reference/api/x-components.taggingmutations.md +7 -7
  484. package/docs/API-reference/api/x-components.taggingmutations.setconsent.md +2 -13
  485. package/docs/API-reference/api/x-components.taggingmutations.setnoresultstaggingenabled.md +2 -13
  486. package/docs/API-reference/api/x-components.taggingmutations.setquerytagginginfo.md +2 -13
  487. package/docs/API-reference/api/x-components.taggingxevents.md +1 -1
  488. package/docs/API-reference/api/x-components.taggingxevents.resulturltrackingenabled.md +1 -1
  489. package/docs/API-reference/api/x-components.takenavigationcontrol.direction.md +11 -0
  490. package/docs/API-reference/api/x-components.takenavigationcontrol.md +10 -7
  491. package/docs/API-reference/api/x-components.takenavigationcontrol.modulename.md +11 -0
  492. package/docs/API-reference/api/x-components.takenavigationcontrol.xevent.md +11 -0
  493. package/docs/API-reference/api/x-components.togglerelatedtag.md +1 -1
  494. package/docs/API-reference/api/x-components.track.md +1 -1
  495. package/docs/API-reference/api/x-components.tracknoresultsquerywithfallbackwire.md +13 -0
  496. package/docs/API-reference/api/x-components.tracknoresultsquerywithfallbackwiredebounced.md +13 -0
  497. package/docs/API-reference/api/x-components.tracknoresultsquerywithsemanticswire.md +6 -1
  498. package/docs/API-reference/api/x-components.tracknoresultsquerywithsemanticswiredebounced.md +6 -1
  499. package/docs/API-reference/api/x-components.trackrelatedprompttoolingdisplayclickwire.md +13 -0
  500. package/docs/API-reference/api/x-components.tracktoolingadd2cartwire.md +13 -0
  501. package/docs/API-reference/api/x-components.tracktoolingdisplayclickedwire.md +13 -0
  502. package/docs/API-reference/api/x-components.typing.md +13 -0
  503. package/docs/API-reference/api/x-components.typingoptions.md +22 -0
  504. package/docs/API-reference/api/x-components.typingoptions.speed.md +13 -0
  505. package/docs/API-reference/api/x-components.typingoptions.targetattr.md +18 -0
  506. package/docs/API-reference/api/x-components.typingoptions.text.md +13 -0
  507. package/docs/API-reference/api/x-components.urlmutations.md +14 -13
  508. package/docs/API-reference/api/x-components.urlmutations.setfilters.md +2 -13
  509. package/docs/API-reference/api/x-components.urlmutations.setinitialextraparams.md +2 -13
  510. package/docs/API-reference/api/x-components.urlmutations.setpage.md +2 -13
  511. package/docs/API-reference/api/x-components.urlmutations.setparams.md +2 -13
  512. package/docs/API-reference/api/x-components.urlmutations.setprompt.md +13 -0
  513. package/docs/API-reference/api/x-components.urlmutations.setrelatedtags.md +2 -13
  514. package/docs/API-reference/api/x-components.urlmutations.setscroll.md +2 -13
  515. package/docs/API-reference/api/x-components.urlmutations.setsort.md +2 -13
  516. package/docs/API-reference/api/x-components.urlparams.md +1 -0
  517. package/docs/API-reference/api/x-components.urlparams.prompt.md +11 -0
  518. package/docs/API-reference/api/x-components.urlstate.md +1 -1
  519. package/docs/API-reference/api/x-components.urlxevents.extraparamsloadedfromurl.md +1 -1
  520. package/docs/API-reference/api/x-components.urlxevents.md +4 -4
  521. package/docs/API-reference/api/x-components.urlxevents.paramsloadedfromurl.md +1 -1
  522. package/docs/API-reference/api/x-components.urlxevents.pushableurlstateupdated.md +1 -1
  523. package/docs/API-reference/api/x-components.urlxevents.replaceableurlstateupdated.md +1 -1
  524. package/docs/API-reference/api/x-components.usealiasapi.md +1 -0
  525. package/docs/API-reference/api/x-components.usealiasapi.pricestats.md +16 -0
  526. package/docs/API-reference/api/x-components.useemitdisplayevent.md +2 -2
  527. package/docs/API-reference/api/x-components.usegetter.md +3 -17
  528. package/docs/API-reference/api/x-components.useondisplay.md +2 -2
  529. package/docs/API-reference/api/x-components.usestate.md +5 -4
  530. package/docs/API-reference/api/x-components.xactioncontext.commit.md +2 -13
  531. package/docs/API-reference/api/x-components.xactioncontext.dispatch.md +2 -13
  532. package/docs/API-reference/api/x-components.xactioncontext.md +2 -9
  533. package/docs/API-reference/api/x-components.xapi.addproducttocart.md +2 -12
  534. package/docs/API-reference/api/x-components.xapi.getsnippetconfig.md +2 -8
  535. package/docs/API-reference/api/x-components.xapi.init.md +2 -13
  536. package/docs/API-reference/api/x-components.xapi.md +9 -9
  537. package/docs/API-reference/api/x-components.xapi.search.md +2 -13
  538. package/docs/API-reference/api/x-components.xapi.setsnippetconfig.md +2 -13
  539. package/docs/API-reference/api/x-components.xcomponentapi.md +1 -1
  540. package/docs/API-reference/api/x-components.xcomponentbusapi.emit.md +2 -13
  541. package/docs/API-reference/api/x-components.xcomponentbusapi.md +2 -8
  542. package/docs/API-reference/api/x-components.xeventstypes.md +3 -3
  543. package/docs/API-reference/api/x-components.xinstaller.init.md +1 -1
  544. package/docs/API-reference/api/x-components.xmodulestree.md +1 -0
  545. package/docs/API-reference/api/x-components.xmodulestree.relatedprompts.md +11 -0
  546. package/docs/API-reference/api/x-components.xplugin._constructor_.md +1 -1
  547. package/docs/API-reference/api/x-components.xplugin.adapter.md +1 -1
  548. package/docs/API-reference/api/x-components.xplugin.bus.md +1 -1
  549. package/docs/API-reference/api/x-types.md +2 -1
  550. package/docs/API-reference/api/x-types.relatedprompt.md +5 -1
  551. package/docs/API-reference/api/x-types.relatedprompt.nextqueries.md +1 -1
  552. package/docs/API-reference/api/x-types.relatedprompt.relatedpromptnextqueries.md +13 -0
  553. package/docs/API-reference/api/x-types.relatedprompt.suggestionimageurl.md +13 -0
  554. package/docs/API-reference/api/x-types.relatedprompt.tagging.md +17 -0
  555. package/docs/API-reference/api/x-types.relatedprompt.toolingdisplaytagging.md +13 -0
  556. package/docs/API-reference/api/x-types.relatedpromptnextquery.md +23 -0
  557. package/docs/API-reference/api/x-types.relatedpromptnextquery.query.md +13 -0
  558. package/docs/API-reference/api/x-types.relatedpromptnextquery.toolingdisplayadd2carttagging.md +13 -0
  559. package/docs/API-reference/api/x-types.relatedpromptnextquery.toolingdisplayclicktagging.md +13 -0
  560. package/docs/API-reference/api/x-types.relatedpromptnextquery.toolingdisplaytagging.md +13 -0
  561. package/docs/API-reference/api/x-types.stats.md +1 -1
  562. package/docs/API-reference/api/x-types.stats.price.md +2 -2
  563. package/docs/API-reference/api/x-types.xcomponentsadapter.md +2 -0
  564. package/docs/API-reference/components/common/animations/x-components.animate-width.md +14 -14
  565. package/docs/API-reference/components/common/animations/x-components.collapse-height.md +2 -2
  566. package/docs/API-reference/components/common/animations/x-components.collapse-width.md +2 -2
  567. package/docs/API-reference/components/common/animations/x-components.cross-fade.md +2 -2
  568. package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +2 -2
  569. package/docs/API-reference/components/common/animations/x-components.fade.md +11 -11
  570. package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +2 -2
  571. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +36 -35
  572. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +53 -53
  573. package/docs/API-reference/components/common/currency/x-components.base-currency.md +130 -129
  574. package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +13 -13
  575. package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +2 -1
  576. package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +18 -18
  577. package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +18 -18
  578. package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +33 -36
  579. package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +20 -18
  580. package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +19 -19
  581. package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +22 -22
  582. package/docs/API-reference/components/common/modals/x-components.base-modal.md +44 -44
  583. package/docs/API-reference/components/common/modals/x-components.close-main-modal.md +10 -10
  584. package/docs/API-reference/components/common/modals/x-components.main-modal.md +30 -30
  585. package/docs/API-reference/components/common/modals/x-components.open-main-modal.md +10 -10
  586. package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +2 -2
  587. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +18 -17
  588. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +18 -18
  589. package/docs/API-reference/components/common/panels/x-components.base-tabs-panel.md +70 -70
  590. package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +2 -2
  591. package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +2 -1
  592. package/docs/API-reference/components/common/result/x-components.base-result-image.md +20 -20
  593. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +16 -16
  594. package/docs/API-reference/components/common/result/x-components.base-result-rating.md +118 -118
  595. package/docs/API-reference/components/common/result/x-components.result-variant-selector.md +149 -149
  596. package/docs/API-reference/components/common/result/x-components.result-variants-provider.md +102 -102
  597. package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +62 -62
  598. package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +50 -49
  599. package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +84 -84
  600. package/docs/API-reference/components/common/x-components.auto-progress-bar.md +21 -21
  601. package/docs/API-reference/components/common/x-components.base-dropdown.md +19 -19
  602. package/docs/API-reference/components/common/x-components.base-event-button.md +5 -4
  603. package/docs/API-reference/components/common/x-components.base-grid.md +6 -5
  604. package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +10 -10
  605. package/docs/API-reference/components/common/x-components.base-rating.md +2 -1
  606. package/docs/API-reference/components/common/x-components.base-slider.md +190 -0
  607. package/docs/API-reference/components/common/x-components.base-switch.md +27 -26
  608. package/docs/API-reference/components/common/x-components.base-teleport.md +21 -0
  609. package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +86 -85
  610. package/docs/API-reference/components/common/x-components.display-click-provider.md +17 -0
  611. package/docs/API-reference/components/common/x-components.display-emitter.md +7 -7
  612. package/docs/API-reference/components/common/x-components.global-x-bus.md +14 -13
  613. package/docs/API-reference/components/common/x-components.highlight.md +26 -26
  614. package/docs/API-reference/components/common/x-components.items-list.md +3 -3
  615. package/docs/API-reference/components/common/x-components.location-provider.md +11 -10
  616. package/docs/API-reference/components/common/x-components.page-loader-button.md +39 -39
  617. package/docs/API-reference/components/common/x-components.page-selector.md +137 -0
  618. package/docs/API-reference/components/common/x-components.sliding-panel.md +113 -112
  619. package/docs/API-reference/components/common/x-components.snippet-callbacks.md +7 -7
  620. package/docs/API-reference/components/device/x-components.device-detector.md +57 -57
  621. package/docs/API-reference/components/empathize/x-components.empathize.md +7 -7
  622. package/docs/API-reference/components/experience-controls/x-components.experience-controls.md +8 -8
  623. package/docs/API-reference/components/extra-params/x-components.extra-params.md +16 -15
  624. package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +17 -16
  625. package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +23 -23
  626. package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +40 -39
  627. package/docs/API-reference/components/facets/x-components.facets/facets.md +47 -47
  628. package/docs/API-reference/components/facets/x-components.filters/all-filter.md +5 -4
  629. package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +87 -87
  630. package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +105 -105
  631. package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +66 -66
  632. package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +15 -14
  633. package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +78 -78
  634. package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +84 -84
  635. package/docs/API-reference/components/facets/x-components.lists/filters-list.md +2 -1
  636. package/docs/API-reference/components/facets/x-components.lists/filters-search.md +1 -1
  637. package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +23 -23
  638. package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +4 -4
  639. package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +15 -14
  640. package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +19 -19
  641. package/docs/API-reference/components/facets/x-components.preselected-filters.md +24 -24
  642. package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +18 -17
  643. package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md +35 -35
  644. package/docs/API-reference/components/history-queries/x-components.history-queries.md +70 -70
  645. package/docs/API-reference/components/history-queries/x-components.history-query.md +67 -67
  646. package/docs/API-reference/components/history-queries/x-components.my-history.md +74 -74
  647. package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +3 -2
  648. package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +2 -2
  649. package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +14 -13
  650. package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +52 -52
  651. package/docs/API-reference/components/next-queries/x-components.next-queries.md +53 -53
  652. package/docs/API-reference/components/next-queries/x-components.next-query-preview.md +80 -80
  653. package/docs/API-reference/components/next-queries/x-components.next-query.md +37 -37
  654. package/docs/API-reference/components/popular-searches/x-components.popular-search.md +35 -35
  655. package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +45 -44
  656. package/docs/API-reference/components/queries-preview/x-components.query-preview-button.md +29 -28
  657. package/docs/API-reference/components/queries-preview/x-components.query-preview-list.md +43 -42
  658. package/docs/API-reference/components/queries-preview/x-components.query-preview.md +60 -60
  659. package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +53 -53
  660. package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +58 -58
  661. package/docs/API-reference/components/recommendations/x-components.recommendations.md +41 -40
  662. package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +22 -0
  663. package/docs/API-reference/components/related-prompts/x-components.related-prompts-list.md +196 -0
  664. package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +32 -0
  665. package/docs/API-reference/components/related-tags/x-components.related-tag.md +59 -59
  666. package/docs/API-reference/components/related-tags/x-components.related-tags.md +72 -71
  667. package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +18 -17
  668. package/docs/API-reference/components/scroll/x-components.main-scroll.md +49 -48
  669. package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +10 -10
  670. package/docs/API-reference/components/scroll/x-components.scroll.md +59 -59
  671. package/docs/API-reference/components/search/x-components.banner.md +36 -36
  672. package/docs/API-reference/components/search/x-components.banners-list.md +59 -58
  673. package/docs/API-reference/components/search/x-components.fallback-disclaimer.md +8 -8
  674. package/docs/API-reference/components/search/x-components.partial-query-button.md +9 -9
  675. package/docs/API-reference/components/search/x-components.partial-results-list.md +5 -5
  676. package/docs/API-reference/components/search/x-components.promoted.md +42 -42
  677. package/docs/API-reference/components/search/x-components.promoteds-list.md +61 -60
  678. package/docs/API-reference/components/search/x-components.redirection.md +21 -21
  679. package/docs/API-reference/components/search/x-components.results-list.md +63 -62
  680. package/docs/API-reference/components/search/x-components.sort-dropdown.md +24 -24
  681. package/docs/API-reference/components/search/x-components.sort-list.md +24 -24
  682. package/docs/API-reference/components/search/x-components.sort-picker-list.md +34 -34
  683. package/docs/API-reference/components/search/x-components.spellcheck-button.md +3 -3
  684. package/docs/API-reference/components/search/x-components.spellcheck.md +10 -10
  685. package/docs/API-reference/components/search-box/x-components.clear-search-input.md +38 -38
  686. package/docs/API-reference/components/search-box/x-components.search-button.md +43 -43
  687. package/docs/API-reference/components/search-box/x-components.search-input-placeholder.md +36 -36
  688. package/docs/API-reference/components/search-box/x-components.search-input.md +43 -43
  689. package/docs/API-reference/components/semantic-queries/x-components.semantic-queries.md +52 -52
  690. package/docs/API-reference/components/semantic-queries/x-components.semantic-query.md +36 -35
  691. package/docs/API-reference/components/tagging/x-components.tagging.md +39 -40
  692. package/docs/API-reference/components/url/x-components.url-handler.md +18 -18
  693. package/extra-params/index.js +1 -1
  694. package/facets/index.js +23 -23
  695. package/history-queries/index.js +1 -1
  696. package/js/components/animations/animate-clip-path/animate-clip-path.factory.js +1 -1
  697. package/js/components/animations/animate-clip-path/animate-clip-path.factory.js.map +1 -1
  698. package/js/components/animations/animate-scale/animate-scale.factory.js +1 -1
  699. package/js/components/animations/animate-scale/animate-scale.factory.js.map +1 -1
  700. package/js/components/animations/animate-translate/animate-translate.factory.js +1 -1
  701. package/js/components/animations/animate-translate/animate-translate.factory.js.map +1 -1
  702. package/js/components/animations/animate-width.vue.js.map +1 -1
  703. package/js/components/animations/animate-width.vue2.js +1 -1
  704. package/js/components/animations/animate-width.vue2.js.map +1 -1
  705. package/js/components/animations/collapse-height.vue.js +4 -4
  706. package/js/components/animations/collapse-height.vue.js.map +1 -1
  707. package/js/components/animations/collapse-height.vue2.js +4 -4
  708. package/js/components/animations/collapse-height.vue2.js.map +1 -1
  709. package/js/components/animations/collapse-width.vue.js +4 -4
  710. package/js/components/animations/collapse-width.vue.js.map +1 -1
  711. package/js/components/animations/collapse-width.vue2.js +4 -4
  712. package/js/components/animations/collapse-width.vue2.js.map +1 -1
  713. package/js/components/animations/create-directional-animation-factory.js +2 -2
  714. package/js/components/animations/create-directional-animation-factory.js.map +1 -1
  715. package/js/components/animations/cross-fade.vue.js.map +1 -1
  716. package/js/components/animations/cross-fade.vue2.js +3 -3
  717. package/js/components/animations/cross-fade.vue2.js.map +1 -1
  718. package/js/components/animations/fade-and-slide.vue.js +1 -2
  719. package/js/components/animations/fade-and-slide.vue.js.map +1 -1
  720. package/js/components/animations/fade-and-slide.vue2.js +4 -4
  721. package/js/components/animations/fade-and-slide.vue2.js.map +1 -1
  722. package/js/components/animations/fade.vue.js.map +1 -1
  723. package/js/components/animations/fade.vue2.js +3 -3
  724. package/js/components/animations/fade.vue2.js.map +1 -1
  725. package/js/components/animations/no-animation.vue.js +1 -1
  726. package/js/components/animations/no-animation.vue.js.map +1 -1
  727. package/js/components/animations/staggered-fade-and-slide.vue.js +4 -4
  728. package/js/components/animations/staggered-fade-and-slide.vue.js.map +1 -1
  729. package/js/components/animations/staggered-fade-and-slide.vue2.js +6 -6
  730. package/js/components/animations/staggered-fade-and-slide.vue2.js.map +1 -1
  731. package/js/components/animations/use-collapse-animation.js +3 -1
  732. package/js/components/animations/use-collapse-animation.js.map +1 -1
  733. package/js/components/animations/use-disable-animation.js.map +1 -1
  734. package/js/components/auto-progress-bar.vue.js.map +1 -1
  735. package/js/components/auto-progress-bar.vue2.js +6 -6
  736. package/js/components/auto-progress-bar.vue2.js.map +1 -1
  737. package/js/components/base-dropdown.vue.js +15 -17
  738. package/js/components/base-dropdown.vue.js.map +1 -1
  739. package/js/components/base-dropdown.vue2.js +15 -21
  740. package/js/components/base-dropdown.vue2.js.map +1 -1
  741. package/js/components/base-event-button.vue.js +3 -4
  742. package/js/components/base-event-button.vue.js.map +1 -1
  743. package/js/components/base-event-button.vue2.js +5 -5
  744. package/js/components/base-event-button.vue2.js.map +1 -1
  745. package/js/components/base-grid.vue.js +11 -18
  746. package/js/components/base-grid.vue.js.map +1 -1
  747. package/js/components/base-grid.vue2.js +12 -13
  748. package/js/components/base-grid.vue2.js.map +1 -1
  749. package/js/components/base-grid.vue3.js +1 -1
  750. package/js/components/base-keyboard-navigation.vue.js +3 -4
  751. package/js/components/base-keyboard-navigation.vue.js.map +1 -1
  752. package/js/components/base-keyboard-navigation.vue2.js +7 -7
  753. package/js/components/base-keyboard-navigation.vue2.js.map +1 -1
  754. package/js/components/base-rating.vue.js +1 -3
  755. package/js/components/base-rating.vue.js.map +1 -1
  756. package/js/components/base-rating.vue2.js +6 -6
  757. package/js/components/base-rating.vue2.js.map +1 -1
  758. package/js/components/base-slider.vue.js +65 -0
  759. package/js/components/base-slider.vue.js.map +1 -0
  760. package/js/components/base-slider.vue2.js +109 -0
  761. package/js/components/base-slider.vue2.js.map +1 -0
  762. package/js/components/base-slider.vue3.js +7 -0
  763. package/js/components/base-slider.vue3.js.map +1 -0
  764. package/js/components/base-switch.vue.js +2 -2
  765. package/js/components/base-switch.vue.js.map +1 -1
  766. package/js/components/base-switch.vue2.js +8 -12
  767. package/js/components/base-switch.vue2.js.map +1 -1
  768. package/js/components/base-teleport.vue.js +17 -0
  769. package/js/components/base-teleport.vue.js.map +1 -0
  770. package/js/components/base-teleport.vue2.js +132 -0
  771. package/js/components/base-teleport.vue2.js.map +1 -0
  772. package/js/components/base-variable-column-grid.vue.js +1 -2
  773. package/js/components/base-variable-column-grid.vue.js.map +1 -1
  774. package/js/components/base-variable-column-grid.vue2.js +7 -7
  775. package/js/components/base-variable-column-grid.vue2.js.map +1 -1
  776. package/js/components/column-picker/base-column-picker-dropdown.vue.js +5 -7
  777. package/js/components/column-picker/base-column-picker-dropdown.vue.js.map +1 -1
  778. package/js/components/column-picker/base-column-picker-dropdown.vue2.js +4 -4
  779. package/js/components/column-picker/base-column-picker-dropdown.vue2.js.map +1 -1
  780. package/js/components/column-picker/base-column-picker-list.vue.js +1 -3
  781. package/js/components/column-picker/base-column-picker-list.vue.js.map +1 -1
  782. package/js/components/column-picker/base-column-picker-list.vue2.js +6 -6
  783. package/js/components/column-picker/base-column-picker-list.vue2.js.map +1 -1
  784. package/js/components/currency/base-currency.vue.js.map +1 -1
  785. package/js/components/currency/base-currency.vue2.js +5 -5
  786. package/js/components/currency/base-currency.vue2.js.map +1 -1
  787. package/js/components/decorators/injection.consts.js.map +1 -1
  788. package/js/components/display-click-provider.vue.js +73 -0
  789. package/js/components/display-click-provider.vue.js.map +1 -0
  790. package/js/components/display-click-provider.vue2.js +6 -0
  791. package/js/components/display-click-provider.vue2.js.map +1 -0
  792. package/js/components/display-emitter.vue.js +5 -5
  793. package/js/components/display-emitter.vue.js.map +1 -1
  794. package/js/components/filters/labels/base-price-filter-label.vue.js +10 -10
  795. package/js/components/filters/labels/base-price-filter-label.vue.js.map +1 -1
  796. package/js/components/filters/labels/base-rating-filter-label.vue.js +1 -3
  797. package/js/components/filters/labels/base-rating-filter-label.vue.js.map +1 -1
  798. package/js/components/filters/labels/base-rating-filter-label.vue2.js +7 -7
  799. package/js/components/filters/labels/base-rating-filter-label.vue2.js.map +1 -1
  800. package/js/components/global-x-bus.vue.js +3 -3
  801. package/js/components/global-x-bus.vue.js.map +1 -1
  802. package/js/components/highlight.vue.js +6 -6
  803. package/js/components/highlight.vue.js.map +1 -1
  804. package/js/components/highlight.vue2.js +11 -11
  805. package/js/components/highlight.vue2.js.map +1 -1
  806. package/js/components/icons/cross-tiny.vue.js +2 -2
  807. package/js/components/icons/plus.vue.js +2 -2
  808. package/js/components/items-list.vue.js +1 -2
  809. package/js/components/items-list.vue.js.map +1 -1
  810. package/js/components/items-list.vue2.js +7 -7
  811. package/js/components/items-list.vue2.js.map +1 -1
  812. package/js/components/layouts/fixed-header-and-asides-layout.vue.js +9 -15
  813. package/js/components/layouts/fixed-header-and-asides-layout.vue.js.map +1 -1
  814. package/js/components/layouts/fixed-header-and-asides-layout.vue2.js +5 -5
  815. package/js/components/layouts/fixed-header-and-asides-layout.vue2.js.map +1 -1
  816. package/js/components/layouts/fixed-header-and-asides-layout.vue3.js +1 -1
  817. package/js/components/layouts/multi-column-max-width-layout.vue.js +2 -10
  818. package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
  819. package/js/components/layouts/multi-column-max-width-layout.vue2.js +5 -5
  820. package/js/components/layouts/multi-column-max-width-layout.vue2.js.map +1 -1
  821. package/js/components/layouts/single-column-layout.vue.js +9 -17
  822. package/js/components/layouts/single-column-layout.vue.js.map +1 -1
  823. package/js/components/layouts/single-column-layout.vue2.js +5 -5
  824. package/js/components/layouts/single-column-layout.vue2.js.map +1 -1
  825. package/js/components/location-provider.vue.js +3 -3
  826. package/js/components/location-provider.vue.js.map +1 -1
  827. package/js/components/modals/base-events-modal-close.vue.js +1 -2
  828. package/js/components/modals/base-events-modal-close.vue.js.map +1 -1
  829. package/js/components/modals/base-events-modal-close.vue2.js +5 -5
  830. package/js/components/modals/base-events-modal-close.vue2.js.map +1 -1
  831. package/js/components/modals/base-events-modal-open.vue.js +1 -2
  832. package/js/components/modals/base-events-modal-open.vue.js.map +1 -1
  833. package/js/components/modals/base-events-modal-open.vue2.js +5 -5
  834. package/js/components/modals/base-events-modal-open.vue2.js.map +1 -1
  835. package/js/components/modals/base-events-modal.vue.js +4 -4
  836. package/js/components/modals/base-events-modal.vue.js.map +1 -1
  837. package/js/components/modals/base-events-modal.vue2.js +9 -9
  838. package/js/components/modals/base-events-modal.vue2.js.map +1 -1
  839. package/js/components/modals/base-id-modal-close.vue.js +3 -4
  840. package/js/components/modals/base-id-modal-close.vue.js.map +1 -1
  841. package/js/components/modals/base-id-modal-close.vue2.js +5 -4
  842. package/js/components/modals/base-id-modal-close.vue2.js.map +1 -1
  843. package/js/components/modals/base-id-modal-open.vue.js +3 -4
  844. package/js/components/modals/base-id-modal-open.vue.js.map +1 -1
  845. package/js/components/modals/base-id-modal-open.vue2.js +5 -4
  846. package/js/components/modals/base-id-modal-open.vue2.js.map +1 -1
  847. package/js/components/modals/base-id-modal.vue.js +4 -4
  848. package/js/components/modals/base-id-modal.vue.js.map +1 -1
  849. package/js/components/modals/base-id-modal.vue2.js +6 -6
  850. package/js/components/modals/base-id-modal.vue2.js.map +1 -1
  851. package/js/components/modals/base-modal.vue.js +4 -5
  852. package/js/components/modals/base-modal.vue.js.map +1 -1
  853. package/js/components/modals/base-modal.vue2.js +26 -17
  854. package/js/components/modals/base-modal.vue2.js.map +1 -1
  855. package/js/components/modals/close-main-modal.vue.js +2 -2
  856. package/js/components/modals/close-main-modal.vue.js.map +1 -1
  857. package/js/components/modals/close-main-modal.vue2.js +3 -3
  858. package/js/components/modals/close-main-modal.vue2.js.map +1 -1
  859. package/js/components/modals/main-modal.vue.js +5 -5
  860. package/js/components/modals/main-modal.vue.js.map +1 -1
  861. package/js/components/modals/main-modal.vue2.js +8 -8
  862. package/js/components/modals/main-modal.vue2.js.map +1 -1
  863. package/js/components/modals/open-main-modal.vue.js +2 -2
  864. package/js/components/modals/open-main-modal.vue.js.map +1 -1
  865. package/js/components/modals/open-main-modal.vue2.js +3 -3
  866. package/js/components/modals/open-main-modal.vue2.js.map +1 -1
  867. package/js/components/page-loader-button.vue.js +8 -10
  868. package/js/components/page-loader-button.vue.js.map +1 -1
  869. package/js/components/page-loader-button.vue2.js +5 -5
  870. package/js/components/page-loader-button.vue2.js.map +1 -1
  871. package/js/components/page-loader-button.vue3.js +7 -0
  872. package/js/components/page-loader-button.vue3.js.map +1 -0
  873. package/js/components/page-selector.vue.js +78 -0
  874. package/js/components/page-selector.vue.js.map +1 -0
  875. package/js/components/page-selector.vue2.js +128 -0
  876. package/js/components/page-selector.vue2.js.map +1 -0
  877. package/js/components/page-selector.vue3.js +7 -0
  878. package/js/components/page-selector.vue3.js.map +1 -0
  879. package/js/components/panels/base-header-toggle-panel.vue.js +3 -7
  880. package/js/components/panels/base-header-toggle-panel.vue.js.map +1 -1
  881. package/js/components/panels/base-header-toggle-panel.vue2.js +10 -10
  882. package/js/components/panels/base-header-toggle-panel.vue2.js.map +1 -1
  883. package/js/components/panels/base-id-toggle-panel-button.vue.js +1 -2
  884. package/js/components/panels/base-id-toggle-panel-button.vue.js.map +1 -1
  885. package/js/components/panels/base-id-toggle-panel-button.vue2.js +7 -6
  886. package/js/components/panels/base-id-toggle-panel-button.vue2.js.map +1 -1
  887. package/js/components/panels/base-id-toggle-panel.vue.js +1 -2
  888. package/js/components/panels/base-id-toggle-panel.vue.js.map +1 -1
  889. package/js/components/panels/base-id-toggle-panel.vue2.js +13 -13
  890. package/js/components/panels/base-id-toggle-panel.vue2.js.map +1 -1
  891. package/js/components/panels/base-tabs-panel.vue.js +5 -8
  892. package/js/components/panels/base-tabs-panel.vue.js.map +1 -1
  893. package/js/components/panels/base-tabs-panel.vue2.js +13 -13
  894. package/js/components/panels/base-tabs-panel.vue2.js.map +1 -1
  895. package/js/components/panels/base-toggle-panel.vue.js +1 -2
  896. package/js/components/panels/base-toggle-panel.vue.js.map +1 -1
  897. package/js/components/panels/base-toggle-panel.vue2.js +4 -4
  898. package/js/components/panels/base-toggle-panel.vue2.js.map +1 -1
  899. package/js/components/result/base-result-add-to-cart.vue.js +3 -3
  900. package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
  901. package/js/components/result/base-result-add-to-cart.vue2.js +22 -8
  902. package/js/components/result/base-result-add-to-cart.vue2.js.map +1 -1
  903. package/js/components/result/base-result-current-price.vue.js +1 -2
  904. package/js/components/result/base-result-current-price.vue.js.map +1 -1
  905. package/js/components/result/base-result-current-price.vue2.js +6 -6
  906. package/js/components/result/base-result-current-price.vue2.js.map +1 -1
  907. package/js/components/result/base-result-image.vue.js +39 -59
  908. package/js/components/result/base-result-image.vue.js.map +1 -1
  909. package/js/components/result/base-result-image.vue2.js +18 -18
  910. package/js/components/result/base-result-image.vue2.js.map +1 -1
  911. package/js/components/result/base-result-link.vue.js +6 -7
  912. package/js/components/result/base-result-link.vue.js.map +1 -1
  913. package/js/components/result/base-result-link.vue2.js +6 -5
  914. package/js/components/result/base-result-link.vue2.js.map +1 -1
  915. package/js/components/result/base-result-previous-price.vue.js +1 -2
  916. package/js/components/result/base-result-previous-price.vue.js.map +1 -1
  917. package/js/components/result/base-result-previous-price.vue2.js +4 -4
  918. package/js/components/result/base-result-previous-price.vue2.js.map +1 -1
  919. package/js/components/result/base-result-rating.vue.js +5 -8
  920. package/js/components/result/base-result-rating.vue.js.map +1 -1
  921. package/js/components/result/base-result-rating.vue2.js +10 -9
  922. package/js/components/result/base-result-rating.vue2.js.map +1 -1
  923. package/js/components/result/result-variant-selector.vue.js +3 -5
  924. package/js/components/result/result-variant-selector.vue.js.map +1 -1
  925. package/js/components/result/result-variant-selector.vue2.js +5 -5
  926. package/js/components/result/result-variant-selector.vue2.js.map +1 -1
  927. package/js/components/result/result-variants-provider.vue.js +7 -7
  928. package/js/components/result/result-variants-provider.vue.js.map +1 -1
  929. package/js/components/scroll/base-scroll.vue.js +2 -2
  930. package/js/components/scroll/base-scroll.vue.js.map +1 -1
  931. package/js/components/scroll/base-scroll.vue2.js +10 -10
  932. package/js/components/scroll/base-scroll.vue2.js.map +1 -1
  933. package/js/components/scroll/use-scroll.js +7 -7
  934. package/js/components/scroll/use-scroll.js.map +1 -1
  935. package/js/components/sliding-panel.vue.js +10 -13
  936. package/js/components/sliding-panel.vue.js.map +1 -1
  937. package/js/components/sliding-panel.vue2.js +10 -10
  938. package/js/components/sliding-panel.vue2.js.map +1 -1
  939. package/js/components/snippet-callbacks.vue.js.map +1 -1
  940. package/js/components/snippet-callbacks.vue2.js +2 -2
  941. package/js/components/snippet-callbacks.vue2.js.map +1 -1
  942. package/js/components/suggestions/base-suggestion.vue.js +3 -4
  943. package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
  944. package/js/components/suggestions/base-suggestion.vue2.js +12 -12
  945. package/js/components/suggestions/base-suggestion.vue2.js.map +1 -1
  946. package/js/components/suggestions/base-suggestions.vue.js +1 -2
  947. package/js/components/suggestions/base-suggestions.vue.js.map +1 -1
  948. package/js/components/suggestions/base-suggestions.vue2.js +9 -9
  949. package/js/components/suggestions/base-suggestions.vue2.js.map +1 -1
  950. package/js/components/x-component.utils.js +1 -0
  951. package/js/components/x-component.utils.js.map +1 -1
  952. package/js/composables/create-use-device.js +2 -2
  953. package/js/composables/create-use-device.js.map +1 -1
  954. package/js/composables/use-_x.js.map +1 -1
  955. package/js/composables/use-alias-api.js +12 -7
  956. package/js/composables/use-alias-api.js.map +1 -1
  957. package/js/composables/use-debounce.js.map +1 -1
  958. package/js/composables/use-getter.js +11 -10
  959. package/js/composables/use-getter.js.map +1 -1
  960. package/js/composables/use-on-display.js +7 -11
  961. package/js/composables/use-on-display.js.map +1 -1
  962. package/js/composables/use-state.js +8 -9
  963. package/js/composables/use-state.js.map +1 -1
  964. package/js/composables/use-x-bus.js +9 -11
  965. package/js/composables/use-x-bus.js.map +1 -1
  966. package/js/directives/infinite-scroll.js +3 -3
  967. package/js/directives/infinite-scroll.js.map +1 -1
  968. package/js/directives/typing.js +57 -0
  969. package/js/directives/typing.js.map +1 -0
  970. package/js/index.js +113 -95
  971. package/js/index.js.map +1 -1
  972. package/js/plugins/devtools/colors.utils.js +2 -2
  973. package/js/plugins/devtools/colors.utils.js.map +1 -1
  974. package/js/plugins/devtools/devtools.plugin.js +2 -1
  975. package/js/plugins/devtools/devtools.plugin.js.map +1 -1
  976. package/js/plugins/devtools/timeline.devtools.js +14 -13
  977. package/js/plugins/devtools/timeline.devtools.js.map +1 -1
  978. package/js/plugins/devtools/wiring.devtools.js +14 -10
  979. package/js/plugins/devtools/wiring.devtools.js.map +1 -1
  980. package/js/plugins/x-bus.js +3 -3
  981. package/js/plugins/x-bus.js.map +1 -1
  982. package/js/plugins/x-emitters.js +8 -6
  983. package/js/plugins/x-emitters.js.map +1 -1
  984. package/js/plugins/x-plugin.js +15 -15
  985. package/js/plugins/x-plugin.js.map +1 -1
  986. package/js/plugins/x-plugin.utils.js +2 -6
  987. package/js/plugins/x-plugin.utils.js.map +1 -1
  988. package/js/services/directional-focus-navigation.service.js +7 -9
  989. package/js/services/directional-focus-navigation.service.js.map +1 -1
  990. package/js/services/state-machine.service.js.map +1 -1
  991. package/js/store/utils/config-store.utils.js.map +1 -1
  992. package/js/store/utils/fetch-and-save-action.utils.js +5 -9
  993. package/js/store/utils/fetch-and-save-action.utils.js.map +1 -1
  994. package/js/store/utils/getters-proxy.utils.js +2 -1
  995. package/js/store/utils/getters-proxy.utils.js.map +1 -1
  996. package/js/store/utils/query.utils.js +1 -1
  997. package/js/store/utils/query.utils.js.map +1 -1
  998. package/js/store/utils/status-store.utils.js.map +1 -1
  999. package/js/store/utils/store-emitters.utils.js +2 -2
  1000. package/js/store/utils/store-emitters.utils.js.map +1 -1
  1001. package/js/store/x.module.js +1 -1
  1002. package/js/store/x.module.js.map +1 -1
  1003. package/js/types/animation-prop.js +5 -0
  1004. package/js/types/animation-prop.js.map +1 -1
  1005. package/js/utils/array.js +1 -0
  1006. package/js/utils/array.js.map +1 -1
  1007. package/js/utils/cancellable-promise.js +1 -1
  1008. package/js/utils/cancellable-promise.js.map +1 -1
  1009. package/js/utils/clone.js +1 -0
  1010. package/js/utils/clone.js.map +1 -1
  1011. package/js/utils/currency-formatter.js +8 -5
  1012. package/js/utils/currency-formatter.js.map +1 -1
  1013. package/js/utils/debounce.js +0 -2
  1014. package/js/utils/debounce.js.map +1 -1
  1015. package/js/utils/filters.js +1 -1
  1016. package/js/utils/filters.js.map +1 -1
  1017. package/js/utils/focus.js +1 -3
  1018. package/js/utils/focus.js.map +1 -1
  1019. package/js/utils/function.js +0 -1
  1020. package/js/utils/function.js.map +1 -1
  1021. package/js/utils/get-url-parameters.js.map +1 -1
  1022. package/js/utils/html.js.map +1 -1
  1023. package/js/utils/ios-utils.js +30 -0
  1024. package/js/utils/ios-utils.js.map +1 -0
  1025. package/js/utils/is-new-query.js.map +1 -1
  1026. package/js/utils/normalize.js +1 -1
  1027. package/js/utils/normalize.js.map +1 -1
  1028. package/js/utils/number.js +0 -1
  1029. package/js/utils/number.js.map +1 -1
  1030. package/js/utils/origin.js +1 -3
  1031. package/js/utils/origin.js.map +1 -1
  1032. package/js/utils/sanitize.js.map +1 -1
  1033. package/js/utils/storage.js +1 -1
  1034. package/js/utils/storage.js.map +1 -1
  1035. package/js/utils/string.js.map +1 -1
  1036. package/js/utils/throttle.js.map +1 -1
  1037. package/js/wiring/namespaced-wires.factory.js +4 -2
  1038. package/js/wiring/namespaced-wires.factory.js.map +1 -1
  1039. package/js/wiring/namespaced-wires.operators.js.map +1 -1
  1040. package/js/wiring/wires-operators.utils.js +3 -1
  1041. package/js/wiring/wires-operators.utils.js.map +1 -1
  1042. package/js/wiring/wires.factory.js +17 -10
  1043. package/js/wiring/wires.factory.js.map +1 -1
  1044. package/js/wiring/wires.operators.js +2 -2
  1045. package/js/wiring/wires.operators.js.map +1 -1
  1046. package/js/wiring/wiring.utils.js +1 -1
  1047. package/js/wiring/wiring.utils.js.map +1 -1
  1048. package/js/x-installer/api/base-api.js +6 -7
  1049. package/js/x-installer/api/base-api.js.map +1 -1
  1050. package/js/x-installer/x-installer/x-installer.js +10 -9
  1051. package/js/x-installer/x-installer/x-installer.js.map +1 -1
  1052. package/js/x-modules/device/components/device-detector.vue.js +2 -2
  1053. package/js/x-modules/device/components/device-detector.vue.js.map +1 -1
  1054. package/js/x-modules/device/components/device-detector.vue2.js +6 -6
  1055. package/js/x-modules/device/components/device-detector.vue2.js.map +1 -1
  1056. package/js/x-modules/device/store/emitters.js +1 -0
  1057. package/js/x-modules/device/store/emitters.js.map +1 -1
  1058. package/js/x-modules/device/store/module.js +3 -3
  1059. package/js/x-modules/device/store/module.js.map +1 -1
  1060. package/js/x-modules/device/wiring.js +2 -2
  1061. package/js/x-modules/device/wiring.js.map +1 -1
  1062. package/js/x-modules/device/x-module.js +1 -1
  1063. package/js/x-modules/device/x-module.js.map +1 -1
  1064. package/js/x-modules/empathize/components/empathize.vue.js +4 -5
  1065. package/js/x-modules/empathize/components/empathize.vue.js.map +1 -1
  1066. package/js/x-modules/empathize/components/empathize.vue2.js +51 -45
  1067. package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
  1068. package/js/x-modules/empathize/store/emitters.js +1 -0
  1069. package/js/x-modules/empathize/store/emitters.js.map +1 -1
  1070. package/js/x-modules/empathize/store/module.js +3 -3
  1071. package/js/x-modules/empathize/store/module.js.map +1 -1
  1072. package/js/x-modules/empathize/wiring.js +3 -3
  1073. package/js/x-modules/empathize/wiring.js.map +1 -1
  1074. package/js/x-modules/empathize/x-module.js +1 -1
  1075. package/js/x-modules/empathize/x-module.js.map +1 -1
  1076. package/js/x-modules/experience-controls/components/experience-controls.vue.js +2 -3
  1077. package/js/x-modules/experience-controls/components/experience-controls.vue.js.map +1 -1
  1078. package/js/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.js +2 -2
  1079. package/js/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.js.map +1 -1
  1080. package/js/x-modules/experience-controls/store/actions/fetch-experience-controls.action.js +1 -2
  1081. package/js/x-modules/experience-controls/store/actions/fetch-experience-controls.action.js.map +1 -1
  1082. package/js/x-modules/experience-controls/store/emitters.js +3 -2
  1083. package/js/x-modules/experience-controls/store/emitters.js.map +1 -1
  1084. package/js/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.js +1 -2
  1085. package/js/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.js.map +1 -1
  1086. package/js/x-modules/experience-controls/store/module.js +5 -7
  1087. package/js/x-modules/experience-controls/store/module.js.map +1 -1
  1088. package/js/x-modules/experience-controls/wiring.js +3 -3
  1089. package/js/x-modules/experience-controls/wiring.js.map +1 -1
  1090. package/js/x-modules/experience-controls/x-module.js +1 -1
  1091. package/js/x-modules/experience-controls/x-module.js.map +1 -1
  1092. package/js/x-modules/extra-params/components/extra-params.vue.js +6 -7
  1093. package/js/x-modules/extra-params/components/extra-params.vue.js.map +1 -1
  1094. package/js/x-modules/extra-params/components/renderless-extra-param.vue.js +5 -5
  1095. package/js/x-modules/extra-params/components/renderless-extra-param.vue.js.map +1 -1
  1096. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue.js.map +1 -1
  1097. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue2.js +8 -8
  1098. package/js/x-modules/extra-params/components/snippet-config-extra-params.vue2.js.map +1 -1
  1099. package/js/x-modules/extra-params/store/emitters.js +3 -2
  1100. package/js/x-modules/extra-params/store/emitters.js.map +1 -1
  1101. package/js/x-modules/extra-params/store/module.js +3 -3
  1102. package/js/x-modules/extra-params/store/module.js.map +1 -1
  1103. package/js/x-modules/extra-params/wiring.js +4 -4
  1104. package/js/x-modules/extra-params/wiring.js.map +1 -1
  1105. package/js/x-modules/extra-params/x-module.js +1 -1
  1106. package/js/x-modules/extra-params/x-module.js.map +1 -1
  1107. package/js/x-modules/facets/components/clear-filters.vue.js.map +1 -1
  1108. package/js/x-modules/facets/components/clear-filters.vue2.js +6 -6
  1109. package/js/x-modules/facets/components/clear-filters.vue2.js.map +1 -1
  1110. package/js/x-modules/facets/components/facets/facets-provider.vue2.js +6 -6
  1111. package/js/x-modules/facets/components/facets/facets-provider.vue2.js.map +1 -1
  1112. package/js/x-modules/facets/components/facets/facets.vue.js +20 -33
  1113. package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
  1114. package/js/x-modules/facets/components/facets/facets.vue2.js +10 -12
  1115. package/js/x-modules/facets/components/facets/facets.vue2.js.map +1 -1
  1116. package/js/x-modules/facets/components/filters/all-filter.vue.js +1 -2
  1117. package/js/x-modules/facets/components/filters/all-filter.vue.js.map +1 -1
  1118. package/js/x-modules/facets/components/filters/all-filter.vue2.js +8 -8
  1119. package/js/x-modules/facets/components/filters/all-filter.vue2.js.map +1 -1
  1120. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js +9 -14
  1121. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js.map +1 -1
  1122. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js +9 -9
  1123. package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js.map +1 -1
  1124. package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js +32 -24
  1125. package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js.map +1 -1
  1126. package/js/x-modules/facets/components/filters/hierarchical-filter.vue2.js +10 -11
  1127. package/js/x-modules/facets/components/filters/hierarchical-filter.vue2.js.map +1 -1
  1128. package/js/x-modules/facets/components/filters/number-range-filter.vue.js +13 -16
  1129. package/js/x-modules/facets/components/filters/number-range-filter.vue.js.map +1 -1
  1130. package/js/x-modules/facets/components/filters/number-range-filter.vue2.js +8 -8
  1131. package/js/x-modules/facets/components/filters/number-range-filter.vue2.js.map +1 -1
  1132. package/js/x-modules/facets/components/filters/renderless-filter.vue.js +7 -7
  1133. package/js/x-modules/facets/components/filters/renderless-filter.vue.js.map +1 -1
  1134. package/js/x-modules/facets/components/filters/simple-filter.vue.js +13 -16
  1135. package/js/x-modules/facets/components/filters/simple-filter.vue.js.map +1 -1
  1136. package/js/x-modules/facets/components/filters/simple-filter.vue2.js +7 -7
  1137. package/js/x-modules/facets/components/filters/simple-filter.vue2.js.map +1 -1
  1138. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.js +4 -4
  1139. package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.js.map +1 -1
  1140. package/js/x-modules/facets/components/lists/filters-list.vue.js +1 -2
  1141. package/js/x-modules/facets/components/lists/filters-list.vue.js.map +1 -1
  1142. package/js/x-modules/facets/components/lists/filters-list.vue2.js +7 -7
  1143. package/js/x-modules/facets/components/lists/filters-list.vue2.js.map +1 -1
  1144. package/js/x-modules/facets/components/lists/filters-search.vue.js +3 -5
  1145. package/js/x-modules/facets/components/lists/filters-search.vue.js.map +1 -1
  1146. package/js/x-modules/facets/components/lists/filters-search.vue2.js +7 -7
  1147. package/js/x-modules/facets/components/lists/filters-search.vue2.js.map +1 -1
  1148. package/js/x-modules/facets/components/lists/selected-filters-list.vue.js +50 -63
  1149. package/js/x-modules/facets/components/lists/selected-filters-list.vue.js.map +1 -1
  1150. package/js/x-modules/facets/components/lists/selected-filters-list.vue2.js +8 -8
  1151. package/js/x-modules/facets/components/lists/selected-filters-list.vue2.js.map +1 -1
  1152. package/js/x-modules/facets/components/lists/selected-filters.vue.js +5 -5
  1153. package/js/x-modules/facets/components/lists/selected-filters.vue.js.map +1 -1
  1154. package/js/x-modules/facets/components/lists/sliced-filters.vue.js +5 -8
  1155. package/js/x-modules/facets/components/lists/sliced-filters.vue.js.map +1 -1
  1156. package/js/x-modules/facets/components/lists/sliced-filters.vue2.js +8 -8
  1157. package/js/x-modules/facets/components/lists/sliced-filters.vue2.js.map +1 -1
  1158. package/js/x-modules/facets/components/lists/sorted-filters.vue.js +4 -4
  1159. package/js/x-modules/facets/components/lists/sorted-filters.vue.js.map +1 -1
  1160. package/js/x-modules/facets/components/preselected-filters.vue.js +5 -5
  1161. package/js/x-modules/facets/components/preselected-filters.vue.js.map +1 -1
  1162. package/js/x-modules/facets/composables/use-facets.js +3 -7
  1163. package/js/x-modules/facets/composables/use-facets.js.map +1 -1
  1164. package/js/x-modules/facets/composables/use-filters-injection.js +0 -2
  1165. package/js/x-modules/facets/composables/use-filters-injection.js.map +1 -1
  1166. package/js/x-modules/facets/entities/add-facet-if-not-present.js +1 -1
  1167. package/js/x-modules/facets/entities/add-facet-if-not-present.js.map +1 -1
  1168. package/js/x-modules/facets/entities/editable-number-range-filter.entity.js +11 -8
  1169. package/js/x-modules/facets/entities/editable-number-range-filter.entity.js.map +1 -1
  1170. package/js/x-modules/facets/entities/filter-entity.factory.js +7 -4
  1171. package/js/x-modules/facets/entities/filter-entity.factory.js.map +1 -1
  1172. package/js/x-modules/facets/entities/hierarchical-filter.entity.js +6 -4
  1173. package/js/x-modules/facets/entities/hierarchical-filter.entity.js.map +1 -1
  1174. package/js/x-modules/facets/entities/number-range-filter.entity.js +6 -4
  1175. package/js/x-modules/facets/entities/number-range-filter.entity.js.map +1 -1
  1176. package/js/x-modules/facets/entities/raw-filter.entity.js +6 -4
  1177. package/js/x-modules/facets/entities/raw-filter.entity.js.map +1 -1
  1178. package/js/x-modules/facets/entities/simple-filter.entity.js +6 -4
  1179. package/js/x-modules/facets/entities/simple-filter.entity.js.map +1 -1
  1180. package/js/x-modules/facets/entities/single-select.modifier.js +3 -1
  1181. package/js/x-modules/facets/entities/single-select.modifier.js.map +1 -1
  1182. package/js/x-modules/facets/entities/sticky.modifier.js.map +1 -1
  1183. package/js/x-modules/facets/entities/types.js.map +1 -1
  1184. package/js/x-modules/facets/service/facets.service.js +2 -2
  1185. package/js/x-modules/facets/service/facets.service.js.map +1 -1
  1186. package/js/x-modules/facets/store/constants.js.map +1 -1
  1187. package/js/x-modules/facets/store/emitters.js +6 -6
  1188. package/js/x-modules/facets/store/emitters.js.map +1 -1
  1189. package/js/x-modules/facets/store/getters/facets.getter.js +1 -1
  1190. package/js/x-modules/facets/store/getters/facets.getter.js.map +1 -1
  1191. package/js/x-modules/facets/store/getters/selected-filters-by-facet.getter.js.map +1 -1
  1192. package/js/x-modules/facets/store/getters/selected-filters-for-request.getter.js.map +1 -1
  1193. package/js/x-modules/facets/store/getters/selected-filters.getter.js.map +1 -1
  1194. package/js/x-modules/facets/store/module.js +6 -6
  1195. package/js/x-modules/facets/store/module.js.map +1 -1
  1196. package/js/x-modules/facets/utils.js.map +1 -1
  1197. package/js/x-modules/facets/wiring.js +22 -22
  1198. package/js/x-modules/facets/wiring.js.map +1 -1
  1199. package/js/x-modules/facets/x-module.js +1 -1
  1200. package/js/x-modules/facets/x-module.js.map +1 -1
  1201. package/js/x-modules/history-queries/components/clear-history-queries.vue.js +1 -2
  1202. package/js/x-modules/history-queries/components/clear-history-queries.vue.js.map +1 -1
  1203. package/js/x-modules/history-queries/components/clear-history-queries.vue2.js +7 -7
  1204. package/js/x-modules/history-queries/components/clear-history-queries.vue2.js.map +1 -1
  1205. package/js/x-modules/history-queries/components/history-queries-switch.vue.js +4 -4
  1206. package/js/x-modules/history-queries/components/history-queries-switch.vue.js.map +1 -1
  1207. package/js/x-modules/history-queries/components/history-queries-switch.vue2.js +6 -9
  1208. package/js/x-modules/history-queries/components/history-queries-switch.vue2.js.map +1 -1
  1209. package/js/x-modules/history-queries/components/history-queries.vue.js +2 -11
  1210. package/js/x-modules/history-queries/components/history-queries.vue.js.map +1 -1
  1211. package/js/x-modules/history-queries/components/history-queries.vue2.js +5 -7
  1212. package/js/x-modules/history-queries/components/history-queries.vue2.js.map +1 -1
  1213. package/js/x-modules/history-queries/components/history-query.vue.js +5 -10
  1214. package/js/x-modules/history-queries/components/history-query.vue.js.map +1 -1
  1215. package/js/x-modules/history-queries/components/history-query.vue2.js +7 -7
  1216. package/js/x-modules/history-queries/components/history-query.vue2.js.map +1 -1
  1217. package/js/x-modules/history-queries/components/my-history.vue.js +3 -6
  1218. package/js/x-modules/history-queries/components/my-history.vue.js.map +1 -1
  1219. package/js/x-modules/history-queries/components/my-history.vue2.js +11 -11
  1220. package/js/x-modules/history-queries/components/my-history.vue2.js.map +1 -1
  1221. package/js/x-modules/history-queries/components/remove-history-query.vue.js +1 -2
  1222. package/js/x-modules/history-queries/components/remove-history-query.vue.js.map +1 -1
  1223. package/js/x-modules/history-queries/components/remove-history-query.vue2.js +5 -5
  1224. package/js/x-modules/history-queries/components/remove-history-query.vue2.js.map +1 -1
  1225. package/js/x-modules/history-queries/store/actions/add-query-to-history.action.js +2 -4
  1226. package/js/x-modules/history-queries/store/actions/add-query-to-history.action.js.map +1 -1
  1227. package/js/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.js +0 -1
  1228. package/js/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.js.map +1 -1
  1229. package/js/x-modules/history-queries/store/actions/refresh-session.action.js +1 -1
  1230. package/js/x-modules/history-queries/store/actions/refresh-session.action.js.map +1 -1
  1231. package/js/x-modules/history-queries/store/actions/remove-query-from-history.action.js +1 -1
  1232. package/js/x-modules/history-queries/store/actions/remove-query-from-history.action.js.map +1 -1
  1233. package/js/x-modules/history-queries/store/actions/set-history-queries.action.js.map +1 -1
  1234. package/js/x-modules/history-queries/store/actions/set-url-params.action.js +0 -1
  1235. package/js/x-modules/history-queries/store/actions/set-url-params.action.js.map +1 -1
  1236. package/js/x-modules/history-queries/store/actions/toggle-history-queries.action.js.map +1 -1
  1237. package/js/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.js +2 -6
  1238. package/js/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.js.map +1 -1
  1239. package/js/x-modules/history-queries/store/constants.js.map +1 -1
  1240. package/js/x-modules/history-queries/store/emitters.js +3 -2
  1241. package/js/x-modules/history-queries/store/emitters.js.map +1 -1
  1242. package/js/x-modules/history-queries/store/getters/history-queries-with-results.getter.js +0 -4
  1243. package/js/x-modules/history-queries/store/getters/history-queries-with-results.getter.js.map +1 -1
  1244. package/js/x-modules/history-queries/store/getters/history-queries.getter.js.map +1 -1
  1245. package/js/x-modules/history-queries/store/getters/normalized-query.getter.js +2 -1
  1246. package/js/x-modules/history-queries/store/getters/normalized-query.getter.js.map +1 -1
  1247. package/js/x-modules/history-queries/store/getters/session-history-queries.getter.js.map +1 -1
  1248. package/js/x-modules/history-queries/store/getters/storage-key.getter.js.map +1 -1
  1249. package/js/x-modules/history-queries/store/module.js +8 -8
  1250. package/js/x-modules/history-queries/store/module.js.map +1 -1
  1251. package/js/x-modules/history-queries/wiring.js +16 -16
  1252. package/js/x-modules/history-queries/wiring.js.map +1 -1
  1253. package/js/x-modules/history-queries/x-module.js +1 -1
  1254. package/js/x-modules/history-queries/x-module.js.map +1 -1
  1255. package/js/x-modules/identifier-results/components/identifier-result.vue.js +2 -2
  1256. package/js/x-modules/identifier-results/components/identifier-result.vue.js.map +1 -1
  1257. package/js/x-modules/identifier-results/components/identifier-result.vue2.js +8 -10
  1258. package/js/x-modules/identifier-results/components/identifier-result.vue2.js.map +1 -1
  1259. package/js/x-modules/identifier-results/components/identifier-results.vue.js +1 -2
  1260. package/js/x-modules/identifier-results/components/identifier-results.vue.js.map +1 -1
  1261. package/js/x-modules/identifier-results/components/identifier-results.vue2.js +9 -9
  1262. package/js/x-modules/identifier-results/components/identifier-results.vue2.js.map +1 -1
  1263. package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js +2 -2
  1264. package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js.map +1 -1
  1265. package/js/x-modules/identifier-results/store/actions/fetch-identifier-results.action.js +1 -2
  1266. package/js/x-modules/identifier-results/store/actions/fetch-identifier-results.action.js.map +1 -1
  1267. package/js/x-modules/identifier-results/store/actions/save-origin.action.js +0 -1
  1268. package/js/x-modules/identifier-results/store/actions/save-origin.action.js.map +1 -1
  1269. package/js/x-modules/identifier-results/store/actions/save-query.action.js +0 -1
  1270. package/js/x-modules/identifier-results/store/actions/save-query.action.js.map +1 -1
  1271. package/js/x-modules/identifier-results/store/emitters.js +3 -2
  1272. package/js/x-modules/identifier-results/store/emitters.js.map +1 -1
  1273. package/js/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.js +0 -1
  1274. package/js/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.js.map +1 -1
  1275. package/js/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.js +0 -1
  1276. package/js/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.js.map +1 -1
  1277. package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js +1 -2
  1278. package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js.map +1 -1
  1279. package/js/x-modules/identifier-results/store/module.js +7 -7
  1280. package/js/x-modules/identifier-results/store/module.js.map +1 -1
  1281. package/js/x-modules/identifier-results/wiring.js +10 -10
  1282. package/js/x-modules/identifier-results/wiring.js.map +1 -1
  1283. package/js/x-modules/identifier-results/x-module.js +1 -1
  1284. package/js/x-modules/identifier-results/x-module.js.map +1 -1
  1285. package/js/x-modules/next-queries/components/next-queries-list.vue.js +13 -15
  1286. package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
  1287. package/js/x-modules/next-queries/components/next-queries.vue.js +3 -9
  1288. package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
  1289. package/js/x-modules/next-queries/components/next-queries.vue2.js +6 -6
  1290. package/js/x-modules/next-queries/components/next-queries.vue2.js.map +1 -1
  1291. package/js/x-modules/next-queries/components/next-query-preview.vue.js +1 -3
  1292. package/js/x-modules/next-queries/components/next-query-preview.vue.js.map +1 -1
  1293. package/js/x-modules/next-queries/components/next-query-preview.vue2.js +6 -6
  1294. package/js/x-modules/next-queries/components/next-query-preview.vue2.js.map +1 -1
  1295. package/js/x-modules/next-queries/components/next-query.vue.js +3 -6
  1296. package/js/x-modules/next-queries/components/next-query.vue.js.map +1 -1
  1297. package/js/x-modules/next-queries/components/next-query.vue2.js +5 -5
  1298. package/js/x-modules/next-queries/components/next-query.vue2.js.map +1 -1
  1299. package/js/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.js +2 -3
  1300. package/js/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.js.map +1 -1
  1301. package/js/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.js +3 -5
  1302. package/js/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.js.map +1 -1
  1303. package/js/x-modules/next-queries/store/actions/fetch-next-queries.action.js +1 -1
  1304. package/js/x-modules/next-queries/store/actions/fetch-next-queries.action.js.map +1 -1
  1305. package/js/x-modules/next-queries/store/actions/fetch-next-query-preview.action.js +6 -3
  1306. package/js/x-modules/next-queries/store/actions/fetch-next-query-preview.action.js.map +1 -1
  1307. package/js/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.js +0 -1
  1308. package/js/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.js.map +1 -1
  1309. package/js/x-modules/next-queries/store/actions/set-url-params.action.js +0 -1
  1310. package/js/x-modules/next-queries/store/actions/set-url-params.action.js.map +1 -1
  1311. package/js/x-modules/next-queries/store/emitters.js +3 -2
  1312. package/js/x-modules/next-queries/store/emitters.js.map +1 -1
  1313. package/js/x-modules/next-queries/store/getters/next-queries-query.getter.js +1 -3
  1314. package/js/x-modules/next-queries/store/getters/next-queries-query.getter.js.map +1 -1
  1315. package/js/x-modules/next-queries/store/getters/next-queries.getter.js +1 -2
  1316. package/js/x-modules/next-queries/store/getters/next-queries.getter.js.map +1 -1
  1317. package/js/x-modules/next-queries/store/getters/request.getter.js +1 -3
  1318. package/js/x-modules/next-queries/store/getters/request.getter.js.map +1 -1
  1319. package/js/x-modules/next-queries/store/module.js +10 -10
  1320. package/js/x-modules/next-queries/store/module.js.map +1 -1
  1321. package/js/x-modules/next-queries/wiring.js +11 -11
  1322. package/js/x-modules/next-queries/wiring.js.map +1 -1
  1323. package/js/x-modules/next-queries/x-module.js +1 -1
  1324. package/js/x-modules/next-queries/x-module.js.map +1 -1
  1325. package/js/x-modules/popular-searches/components/popular-search.vue.js +3 -6
  1326. package/js/x-modules/popular-searches/components/popular-search.vue.js.map +1 -1
  1327. package/js/x-modules/popular-searches/components/popular-search.vue2.js +3 -3
  1328. package/js/x-modules/popular-searches/components/popular-search.vue2.js.map +1 -1
  1329. package/js/x-modules/popular-searches/components/popular-searches.vue.js +1 -7
  1330. package/js/x-modules/popular-searches/components/popular-searches.vue.js.map +1 -1
  1331. package/js/x-modules/popular-searches/components/popular-searches.vue2.js +4 -4
  1332. package/js/x-modules/popular-searches/components/popular-searches.vue2.js.map +1 -1
  1333. package/js/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.js +2 -3
  1334. package/js/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.js.map +1 -1
  1335. package/js/x-modules/popular-searches/store/actions/fetch-suggestions.action.js +1 -1
  1336. package/js/x-modules/popular-searches/store/actions/fetch-suggestions.action.js.map +1 -1
  1337. package/js/x-modules/popular-searches/store/emitters.js +2 -2
  1338. package/js/x-modules/popular-searches/store/emitters.js.map +1 -1
  1339. package/js/x-modules/popular-searches/store/getters/popular-searches.getter.js +1 -2
  1340. package/js/x-modules/popular-searches/store/getters/popular-searches.getter.js.map +1 -1
  1341. package/js/x-modules/popular-searches/store/getters/request.getter.js +1 -3
  1342. package/js/x-modules/popular-searches/store/getters/request.getter.js.map +1 -1
  1343. package/js/x-modules/popular-searches/store/module.js +7 -7
  1344. package/js/x-modules/popular-searches/store/module.js.map +1 -1
  1345. package/js/x-modules/popular-searches/wiring.js +4 -4
  1346. package/js/x-modules/popular-searches/wiring.js.map +1 -1
  1347. package/js/x-modules/popular-searches/x-module.js +1 -1
  1348. package/js/x-modules/popular-searches/x-module.js.map +1 -1
  1349. package/js/x-modules/queries-preview/components/query-preview-button.vue.js +1 -2
  1350. package/js/x-modules/queries-preview/components/query-preview-button.vue.js.map +1 -1
  1351. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +50 -43
  1352. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
  1353. package/js/x-modules/queries-preview/components/query-preview-list.vue.js +7 -7
  1354. package/js/x-modules/queries-preview/components/query-preview-list.vue.js.map +1 -1
  1355. package/js/x-modules/queries-preview/components/query-preview-list.vue2.js +26 -13
  1356. package/js/x-modules/queries-preview/components/query-preview-list.vue2.js.map +1 -1
  1357. package/js/x-modules/queries-preview/components/query-preview.vue.js +1 -2
  1358. package/js/x-modules/queries-preview/components/query-preview.vue.js.map +1 -1
  1359. package/js/x-modules/queries-preview/components/query-preview.vue2.js +69 -71
  1360. package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
  1361. package/js/x-modules/queries-preview/composables/use-queries-preview.composable.js +4 -2
  1362. package/js/x-modules/queries-preview/composables/use-queries-preview.composable.js.map +1 -1
  1363. package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js +5 -6
  1364. package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js.map +1 -1
  1365. package/js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js +2 -2
  1366. package/js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js.map +1 -1
  1367. package/js/x-modules/queries-preview/store/emitters.js +3 -2
  1368. package/js/x-modules/queries-preview/store/emitters.js.map +1 -1
  1369. package/js/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.js +0 -1
  1370. package/js/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.js.map +1 -1
  1371. package/js/x-modules/queries-preview/store/module.js +8 -8
  1372. package/js/x-modules/queries-preview/store/module.js.map +1 -1
  1373. package/js/x-modules/queries-preview/utils/get-hash-from-query-preview.js +6 -4
  1374. package/js/x-modules/queries-preview/utils/get-hash-from-query-preview.js.map +1 -1
  1375. package/js/x-modules/queries-preview/wiring.js +11 -11
  1376. package/js/x-modules/queries-preview/wiring.js.map +1 -1
  1377. package/js/x-modules/queries-preview/x-module.js +1 -1
  1378. package/js/x-modules/queries-preview/x-module.js.map +1 -1
  1379. package/js/x-modules/query-suggestions/components/query-suggestion.vue.js +1 -4
  1380. package/js/x-modules/query-suggestions/components/query-suggestion.vue.js.map +1 -1
  1381. package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js +7 -7
  1382. package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js.map +1 -1
  1383. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js +1 -7
  1384. package/js/x-modules/query-suggestions/components/query-suggestions.vue.js.map +1 -1
  1385. package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js +2 -2
  1386. package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js.map +1 -1
  1387. package/js/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.js +2 -3
  1388. package/js/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.js.map +1 -1
  1389. package/js/x-modules/query-suggestions/store/actions/fetch-suggestions.action.js +1 -1
  1390. package/js/x-modules/query-suggestions/store/actions/fetch-suggestions.action.js.map +1 -1
  1391. package/js/x-modules/query-suggestions/store/actions/set-url-params.action.js +0 -1
  1392. package/js/x-modules/query-suggestions/store/actions/set-url-params.action.js.map +1 -1
  1393. package/js/x-modules/query-suggestions/store/emitters.js +2 -1
  1394. package/js/x-modules/query-suggestions/store/emitters.js.map +1 -1
  1395. package/js/x-modules/query-suggestions/store/getters/normalized-query.getter.js +1 -3
  1396. package/js/x-modules/query-suggestions/store/getters/normalized-query.getter.js.map +1 -1
  1397. package/js/x-modules/query-suggestions/store/getters/query-suggestions.getter.js +1 -1
  1398. package/js/x-modules/query-suggestions/store/getters/query-suggestions.getter.js.map +1 -1
  1399. package/js/x-modules/query-suggestions/store/getters/request.getter.js +2 -4
  1400. package/js/x-modules/query-suggestions/store/getters/request.getter.js.map +1 -1
  1401. package/js/x-modules/query-suggestions/store/module.js +7 -7
  1402. package/js/x-modules/query-suggestions/store/module.js.map +1 -1
  1403. package/js/x-modules/query-suggestions/wiring.js +12 -12
  1404. package/js/x-modules/query-suggestions/wiring.js.map +1 -1
  1405. package/js/x-modules/query-suggestions/x-module.js +1 -1
  1406. package/js/x-modules/query-suggestions/x-module.js.map +1 -1
  1407. package/js/x-modules/recommendations/components/recommendations.vue.js +1 -2
  1408. package/js/x-modules/recommendations/components/recommendations.vue.js.map +1 -1
  1409. package/js/x-modules/recommendations/components/recommendations.vue2.js +8 -10
  1410. package/js/x-modules/recommendations/components/recommendations.vue2.js.map +1 -1
  1411. package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.js +2 -3
  1412. package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.js.map +1 -1
  1413. package/js/x-modules/recommendations/store/actions/fetch-recommendations.action.js +1 -1
  1414. package/js/x-modules/recommendations/store/actions/fetch-recommendations.action.js.map +1 -1
  1415. package/js/x-modules/recommendations/store/constants.js.map +1 -1
  1416. package/js/x-modules/recommendations/store/emitters.js +3 -2
  1417. package/js/x-modules/recommendations/store/emitters.js.map +1 -1
  1418. package/js/x-modules/recommendations/store/getters/request.getter.js +2 -2
  1419. package/js/x-modules/recommendations/store/getters/request.getter.js.map +1 -1
  1420. package/js/x-modules/recommendations/store/module.js +7 -7
  1421. package/js/x-modules/recommendations/store/module.js.map +1 -1
  1422. package/js/x-modules/recommendations/wiring.js +3 -3
  1423. package/js/x-modules/recommendations/wiring.js.map +1 -1
  1424. package/js/x-modules/recommendations/x-module.js +1 -1
  1425. package/js/x-modules/recommendations/x-module.js.map +1 -1
  1426. package/js/x-modules/related-prompts/components/related-prompt.vue.js +28 -0
  1427. package/js/x-modules/related-prompts/components/related-prompt.vue.js.map +1 -0
  1428. package/js/x-modules/related-prompts/components/related-prompt.vue2.js +31 -0
  1429. package/js/x-modules/related-prompts/components/related-prompt.vue2.js.map +1 -0
  1430. package/js/x-modules/related-prompts/components/related-prompt.vue3.js +7 -0
  1431. package/js/x-modules/related-prompts/components/related-prompt.vue3.js.map +1 -0
  1432. package/js/x-modules/related-prompts/components/related-prompts-list.vue.js +151 -0
  1433. package/js/x-modules/related-prompts/components/related-prompts-list.vue.js.map +1 -0
  1434. package/js/x-modules/related-prompts/components/related-prompts-list.vue2.js +6 -0
  1435. package/js/x-modules/related-prompts/components/related-prompts-list.vue2.js.map +1 -0
  1436. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +101 -0
  1437. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -0
  1438. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +219 -0
  1439. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -0
  1440. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js +7 -0
  1441. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js.map +1 -0
  1442. package/js/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.js +29 -0
  1443. package/js/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.js.map +1 -0
  1444. package/js/x-modules/related-prompts/store/actions/fetch-related-prompts.action.js +20 -0
  1445. package/js/x-modules/related-prompts/store/actions/fetch-related-prompts.action.js.map +1 -0
  1446. package/js/x-modules/related-prompts/store/actions/set-url-params.action.js +14 -0
  1447. package/js/x-modules/related-prompts/store/actions/set-url-params.action.js.map +1 -0
  1448. package/js/x-modules/related-prompts/store/emitters.js +17 -0
  1449. package/js/x-modules/related-prompts/store/emitters.js.map +1 -0
  1450. package/js/x-modules/related-prompts/store/getters/related-prompts-query.getter.js +18 -0
  1451. package/js/x-modules/related-prompts/store/getters/related-prompts-query.getter.js.map +1 -0
  1452. package/js/x-modules/related-prompts/store/getters/request.getter.js +17 -0
  1453. package/js/x-modules/related-prompts/store/getters/request.getter.js.map +1 -0
  1454. package/js/x-modules/related-prompts/store/module.js +64 -0
  1455. package/js/x-modules/related-prompts/store/module.js.map +1 -0
  1456. package/js/x-modules/related-prompts/wiring.js +82 -0
  1457. package/js/x-modules/related-prompts/wiring.js.map +1 -0
  1458. package/js/x-modules/related-prompts/x-module.js +21 -0
  1459. package/js/x-modules/related-prompts/x-module.js.map +1 -0
  1460. package/js/x-modules/related-tags/components/related-tag.vue.js +3 -4
  1461. package/js/x-modules/related-tags/components/related-tag.vue.js.map +1 -1
  1462. package/js/x-modules/related-tags/components/related-tag.vue2.js +9 -9
  1463. package/js/x-modules/related-tags/components/related-tag.vue2.js.map +1 -1
  1464. package/js/x-modules/related-tags/components/related-tags.vue.js +6 -9
  1465. package/js/x-modules/related-tags/components/related-tags.vue.js.map +1 -1
  1466. package/js/x-modules/related-tags/components/related-tags.vue2.js +10 -12
  1467. package/js/x-modules/related-tags/components/related-tags.vue2.js.map +1 -1
  1468. package/js/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.js +2 -3
  1469. package/js/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.js.map +1 -1
  1470. package/js/x-modules/related-tags/store/actions/fetch-related-tags.action.js +1 -1
  1471. package/js/x-modules/related-tags/store/actions/fetch-related-tags.action.js.map +1 -1
  1472. package/js/x-modules/related-tags/store/actions/set-url-params.action.js +4 -1
  1473. package/js/x-modules/related-tags/store/actions/set-url-params.action.js.map +1 -1
  1474. package/js/x-modules/related-tags/store/actions/toggle-related-tag.action.js +0 -1
  1475. package/js/x-modules/related-tags/store/actions/toggle-related-tag.action.js.map +1 -1
  1476. package/js/x-modules/related-tags/store/emitters.js +3 -2
  1477. package/js/x-modules/related-tags/store/emitters.js.map +1 -1
  1478. package/js/x-modules/related-tags/store/getters/query.getter.js +1 -3
  1479. package/js/x-modules/related-tags/store/getters/query.getter.js.map +1 -1
  1480. package/js/x-modules/related-tags/store/getters/related-tags.getter.js +1 -2
  1481. package/js/x-modules/related-tags/store/getters/related-tags.getter.js.map +1 -1
  1482. package/js/x-modules/related-tags/store/getters/request.getter.js +1 -3
  1483. package/js/x-modules/related-tags/store/getters/request.getter.js.map +1 -1
  1484. package/js/x-modules/related-tags/store/module.js +7 -7
  1485. package/js/x-modules/related-tags/store/module.js.map +1 -1
  1486. package/js/x-modules/related-tags/wiring.js +12 -12
  1487. package/js/x-modules/related-tags/wiring.js.map +1 -1
  1488. package/js/x-modules/related-tags/x-module.js +1 -1
  1489. package/js/x-modules/related-tags/x-module.js.map +1 -1
  1490. package/js/x-modules/scroll/components/main-scroll-item.vue.js.map +1 -1
  1491. package/js/x-modules/scroll/components/main-scroll-item.vue2.js +15 -17
  1492. package/js/x-modules/scroll/components/main-scroll-item.vue2.js.map +1 -1
  1493. package/js/x-modules/scroll/components/main-scroll.vue.js +11 -11
  1494. package/js/x-modules/scroll/components/main-scroll.vue.js.map +1 -1
  1495. package/js/x-modules/scroll/components/scroll-to-top.vue.js +1 -2
  1496. package/js/x-modules/scroll/components/scroll-to-top.vue.js.map +1 -1
  1497. package/js/x-modules/scroll/components/scroll-to-top.vue2.js +50 -43
  1498. package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
  1499. package/js/x-modules/scroll/components/scroll.const.js.map +1 -1
  1500. package/js/x-modules/scroll/components/scroll.vue.js +3 -3
  1501. package/js/x-modules/scroll/components/scroll.vue.js.map +1 -1
  1502. package/js/x-modules/scroll/components/scroll.vue2.js +6 -6
  1503. package/js/x-modules/scroll/components/scroll.vue2.js.map +1 -1
  1504. package/js/x-modules/scroll/store/emitters.js +1 -0
  1505. package/js/x-modules/scroll/store/emitters.js.map +1 -1
  1506. package/js/x-modules/scroll/store/module.js +4 -4
  1507. package/js/x-modules/scroll/store/module.js.map +1 -1
  1508. package/js/x-modules/scroll/wiring.js +14 -14
  1509. package/js/x-modules/scroll/wiring.js.map +1 -1
  1510. package/js/x-modules/scroll/x-module.js +1 -1
  1511. package/js/x-modules/scroll/x-module.js.map +1 -1
  1512. package/js/x-modules/search/components/banner.vue.js +5 -4
  1513. package/js/x-modules/search/components/banner.vue.js.map +1 -1
  1514. package/js/x-modules/search/components/banner.vue2.js +5 -5
  1515. package/js/x-modules/search/components/banner.vue2.js.map +1 -1
  1516. package/js/x-modules/search/components/banners-list.vue.js +10 -9
  1517. package/js/x-modules/search/components/banners-list.vue.js.map +1 -1
  1518. package/js/x-modules/search/components/fallback-disclaimer.vue.js.map +1 -1
  1519. package/js/x-modules/search/components/fallback-disclaimer.vue2.js +3 -6
  1520. package/js/x-modules/search/components/fallback-disclaimer.vue2.js.map +1 -1
  1521. package/js/x-modules/search/components/partial-query-button.vue.js +2 -2
  1522. package/js/x-modules/search/components/partial-query-button.vue.js.map +1 -1
  1523. package/js/x-modules/search/components/partial-query-button.vue2.js +6 -6
  1524. package/js/x-modules/search/components/partial-query-button.vue2.js.map +1 -1
  1525. package/js/x-modules/search/components/partial-results-list.vue.js +1 -2
  1526. package/js/x-modules/search/components/partial-results-list.vue.js.map +1 -1
  1527. package/js/x-modules/search/components/partial-results-list.vue2.js +8 -10
  1528. package/js/x-modules/search/components/partial-results-list.vue2.js.map +1 -1
  1529. package/js/x-modules/search/components/promoted.vue.js +2 -2
  1530. package/js/x-modules/search/components/promoted.vue.js.map +1 -1
  1531. package/js/x-modules/search/components/promoted.vue2.js +5 -5
  1532. package/js/x-modules/search/components/promoted.vue2.js.map +1 -1
  1533. package/js/x-modules/search/components/promoteds-list.vue.js +7 -7
  1534. package/js/x-modules/search/components/promoteds-list.vue.js.map +1 -1
  1535. package/js/x-modules/search/components/redirection.vue.js.map +1 -1
  1536. package/js/x-modules/search/components/redirection.vue2.js +8 -9
  1537. package/js/x-modules/search/components/redirection.vue2.js.map +1 -1
  1538. package/js/x-modules/search/components/results-list.vue.js +7 -13
  1539. package/js/x-modules/search/components/results-list.vue.js.map +1 -1
  1540. package/js/x-modules/search/components/sort-dropdown.vue.js +5 -7
  1541. package/js/x-modules/search/components/sort-dropdown.vue.js.map +1 -1
  1542. package/js/x-modules/search/components/sort-dropdown.vue2.js +6 -6
  1543. package/js/x-modules/search/components/sort-dropdown.vue2.js.map +1 -1
  1544. package/js/x-modules/search/components/sort-list.vue.js.map +1 -1
  1545. package/js/x-modules/search/components/sort-list.vue2.js +9 -9
  1546. package/js/x-modules/search/components/sort-list.vue2.js.map +1 -1
  1547. package/js/x-modules/search/components/sort-picker-list.vue.js.map +1 -1
  1548. package/js/x-modules/search/components/sort-picker-list.vue2.js +9 -9
  1549. package/js/x-modules/search/components/sort-picker-list.vue2.js.map +1 -1
  1550. package/js/x-modules/search/components/spellcheck-button.vue.js +2 -2
  1551. package/js/x-modules/search/components/spellcheck-button.vue.js.map +1 -1
  1552. package/js/x-modules/search/components/spellcheck-button.vue2.js +5 -5
  1553. package/js/x-modules/search/components/spellcheck-button.vue2.js.map +1 -1
  1554. package/js/x-modules/search/components/spellcheck.vue.js.map +1 -1
  1555. package/js/x-modules/search/components/spellcheck.vue2.js +4 -4
  1556. package/js/x-modules/search/components/spellcheck.vue2.js.map +1 -1
  1557. package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js +13 -6
  1558. package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js.map +1 -1
  1559. package/js/x-modules/search/store/actions/fetch-search-response.action.js +1 -1
  1560. package/js/x-modules/search/store/actions/fetch-search-response.action.js.map +1 -1
  1561. package/js/x-modules/search/store/actions/increase-page-apending-results.action.js +0 -1
  1562. package/js/x-modules/search/store/actions/increase-page-apending-results.action.js.map +1 -1
  1563. package/js/x-modules/search/store/actions/reset-request-on-refinement.action.js +0 -1
  1564. package/js/x-modules/search/store/actions/reset-request-on-refinement.action.js.map +1 -1
  1565. package/js/x-modules/search/store/actions/save-origin.action.js +0 -1
  1566. package/js/x-modules/search/store/actions/save-origin.action.js.map +1 -1
  1567. package/js/x-modules/search/store/actions/save-search-response.action.js +3 -2
  1568. package/js/x-modules/search/store/actions/save-search-response.action.js.map +1 -1
  1569. package/js/x-modules/search/store/actions/set-url-params.action.js +0 -2
  1570. package/js/x-modules/search/store/actions/set-url-params.action.js.map +1 -1
  1571. package/js/x-modules/search/store/emitters.js +6 -5
  1572. package/js/x-modules/search/store/emitters.js.map +1 -1
  1573. package/js/x-modules/search/store/getters/query.getter.js +1 -1
  1574. package/js/x-modules/search/store/getters/query.getter.js.map +1 -1
  1575. package/js/x-modules/search/store/getters/request.getter.js +1 -2
  1576. package/js/x-modules/search/store/getters/request.getter.js.map +1 -1
  1577. package/js/x-modules/search/store/module.js +16 -10
  1578. package/js/x-modules/search/store/module.js.map +1 -1
  1579. package/js/x-modules/search/wiring.js +29 -25
  1580. package/js/x-modules/search/wiring.js.map +1 -1
  1581. package/js/x-modules/search/x-module.js +1 -1
  1582. package/js/x-modules/search/x-module.js.map +1 -1
  1583. package/js/x-modules/search-box/components/clear-search-input.vue.js +1 -2
  1584. package/js/x-modules/search-box/components/clear-search-input.vue.js.map +1 -1
  1585. package/js/x-modules/search-box/components/clear-search-input.vue2.js +6 -6
  1586. package/js/x-modules/search-box/components/clear-search-input.vue2.js.map +1 -1
  1587. package/js/x-modules/search-box/components/search-button.vue.js +3 -4
  1588. package/js/x-modules/search-box/components/search-button.vue.js.map +1 -1
  1589. package/js/x-modules/search-box/components/search-button.vue2.js +6 -6
  1590. package/js/x-modules/search-box/components/search-button.vue2.js.map +1 -1
  1591. package/js/x-modules/search-box/components/search-input-placeholder.vue.js.map +1 -1
  1592. package/js/x-modules/search-box/components/search-input-placeholder.vue2.js +9 -9
  1593. package/js/x-modules/search-box/components/search-input-placeholder.vue2.js.map +1 -1
  1594. package/js/x-modules/search-box/components/search-input.vue.js +10 -10
  1595. package/js/x-modules/search-box/components/search-input.vue.js.map +1 -1
  1596. package/js/x-modules/search-box/components/search-input.vue2.js +11 -11
  1597. package/js/x-modules/search-box/components/search-input.vue2.js.map +1 -1
  1598. package/js/x-modules/search-box/store/actions/set-input-status.action.js +8 -8
  1599. package/js/x-modules/search-box/store/actions/set-input-status.action.js.map +1 -1
  1600. package/js/x-modules/search-box/store/actions/set-url-params.action.js +0 -1
  1601. package/js/x-modules/search-box/store/actions/set-url-params.action.js.map +1 -1
  1602. package/js/x-modules/search-box/store/emitters.js +2 -1
  1603. package/js/x-modules/search-box/store/emitters.js.map +1 -1
  1604. package/js/x-modules/search-box/store/module.js +6 -6
  1605. package/js/x-modules/search-box/store/module.js.map +1 -1
  1606. package/js/x-modules/search-box/wiring.js +13 -12
  1607. package/js/x-modules/search-box/wiring.js.map +1 -1
  1608. package/js/x-modules/search-box/x-module.js +1 -1
  1609. package/js/x-modules/search-box/x-module.js.map +1 -1
  1610. package/js/x-modules/semantic-queries/components/semantic-queries.vue.js +1 -3
  1611. package/js/x-modules/semantic-queries/components/semantic-queries.vue.js.map +1 -1
  1612. package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js +5 -7
  1613. package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js.map +1 -1
  1614. package/js/x-modules/semantic-queries/components/semantic-query.vue.js +3 -6
  1615. package/js/x-modules/semantic-queries/components/semantic-query.vue.js.map +1 -1
  1616. package/js/x-modules/semantic-queries/components/semantic-query.vue2.js +8 -8
  1617. package/js/x-modules/semantic-queries/components/semantic-query.vue2.js.map +1 -1
  1618. package/js/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.js +1 -3
  1619. package/js/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.js.map +1 -1
  1620. package/js/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.js +1 -1
  1621. package/js/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.js.map +1 -1
  1622. package/js/x-modules/semantic-queries/store/emitters.js +1 -1
  1623. package/js/x-modules/semantic-queries/store/emitters.js.map +1 -1
  1624. package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js +2 -2
  1625. package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js.map +1 -1
  1626. package/js/x-modules/semantic-queries/store/getters/request.getter.js +7 -6
  1627. package/js/x-modules/semantic-queries/store/getters/request.getter.js.map +1 -1
  1628. package/js/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.js +18 -0
  1629. package/js/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.js.map +1 -0
  1630. package/js/x-modules/semantic-queries/store/module.js +14 -8
  1631. package/js/x-modules/semantic-queries/store/module.js.map +1 -1
  1632. package/js/x-modules/semantic-queries/wiring.js +11 -6
  1633. package/js/x-modules/semantic-queries/wiring.js.map +1 -1
  1634. package/js/x-modules/semantic-queries/x-module.js +1 -1
  1635. package/js/x-modules/semantic-queries/x-module.js.map +1 -1
  1636. package/js/x-modules/tagging/components/tagging.vue.js +17 -17
  1637. package/js/x-modules/tagging/components/tagging.vue.js.map +1 -1
  1638. package/js/x-modules/tagging/service/{pdp-add-to-cart.service.js → external-tagging.service.js} +61 -29
  1639. package/js/x-modules/tagging/service/external-tagging.service.js.map +1 -0
  1640. package/js/x-modules/tagging/store/actions/track.action.js +3 -4
  1641. package/js/x-modules/tagging/store/actions/track.action.js.map +1 -1
  1642. package/js/x-modules/tagging/store/emitters.js +3 -3
  1643. package/js/x-modules/tagging/store/emitters.js.map +1 -1
  1644. package/js/x-modules/tagging/store/module.js +11 -7
  1645. package/js/x-modules/tagging/store/module.js.map +1 -1
  1646. package/js/x-modules/tagging/wiring.js +161 -37
  1647. package/js/x-modules/tagging/wiring.js.map +1 -1
  1648. package/js/x-modules/tagging/x-module.js +1 -1
  1649. package/js/x-modules/tagging/x-module.js.map +1 -1
  1650. package/js/x-modules/url/components/url-handler.vue.js +2 -2
  1651. package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
  1652. package/js/x-modules/url/components/url-handler.vue2.js +12 -14
  1653. package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
  1654. package/js/x-modules/url/store/emitters.js +4 -3
  1655. package/js/x-modules/url/store/emitters.js.map +1 -1
  1656. package/js/x-modules/url/store/getters/url-params.getter.js +2 -4
  1657. package/js/x-modules/url/store/getters/url-params.getter.js.map +1 -1
  1658. package/js/x-modules/url/store/initial-state.js +2 -1
  1659. package/js/x-modules/url/store/initial-state.js.map +1 -1
  1660. package/js/x-modules/url/store/module.js +7 -4
  1661. package/js/x-modules/url/store/module.js.map +1 -1
  1662. package/js/x-modules/url/store/mutations/set-params.mutation.js.map +1 -1
  1663. package/js/x-modules/url/wiring.js +23 -14
  1664. package/js/x-modules/url/wiring.js.map +1 -1
  1665. package/js/x-modules/url/x-module.js +1 -1
  1666. package/js/x-modules/url/x-module.js.map +1 -1
  1667. package/next-queries/index.js +4 -4
  1668. package/package.json +70 -64
  1669. package/popular-searches/index.js +2 -2
  1670. package/queries-preview/index.js +4 -4
  1671. package/query-suggestions/index.js +1 -1
  1672. package/related-prompts/index.d.ts +1 -0
  1673. package/related-prompts/index.js +9 -0
  1674. package/related-tags/index.js +1 -1
  1675. package/report/x-adapter-platform.api.json +317 -9
  1676. package/report/x-components.api.json +18144 -21189
  1677. package/report/x-components.api.md +1212 -529
  1678. package/report/x-types.api.json +278 -8
  1679. package/scroll/index.js +2 -2
  1680. package/search/index.js +2 -2
  1681. package/search-box/index.js +1 -1
  1682. package/semantic-queries/index.js +2 -2
  1683. package/tagging/index.js +2 -2
  1684. package/tools/inject-css.js +4 -4
  1685. package/types/adapter/e2e-adapter.d.ts +4 -2
  1686. package/types/adapter/e2e-adapter.d.ts.map +1 -1
  1687. package/types/adapter/mocked-responses.d.ts +4 -1
  1688. package/types/adapter/mocked-responses.d.ts.map +1 -1
  1689. package/types/components/animations/animate-clip-path/animate-clip-path.factory.d.ts.map +1 -1
  1690. package/types/components/animations/animate-scale/animate-scale.factory.d.ts.map +1 -1
  1691. package/types/components/animations/animate-translate/animate-translate.factory.d.ts.map +1 -1
  1692. package/types/components/animations/animate-width.vue.d.ts.map +1 -1
  1693. package/types/components/animations/collapse-height.vue.d.ts.map +1 -1
  1694. package/types/components/animations/collapse-width.vue.d.ts.map +1 -1
  1695. package/types/components/animations/create-directional-animation-factory.d.ts +1 -1
  1696. package/types/components/animations/create-directional-animation-factory.d.ts.map +1 -1
  1697. package/types/components/animations/cross-fade.vue.d.ts.map +1 -1
  1698. package/types/components/animations/fade-and-slide.vue.d.ts.map +1 -1
  1699. package/types/components/animations/fade.vue.d.ts.map +1 -1
  1700. package/types/components/animations/index.d.ts +5 -5
  1701. package/types/components/animations/index.d.ts.map +1 -1
  1702. package/types/components/animations/no-animation.vue.d.ts.map +1 -1
  1703. package/types/components/animations/staggered-fade-and-slide.vue.d.ts.map +1 -1
  1704. package/types/components/animations/use-collapse-animation.d.ts.map +1 -1
  1705. package/types/components/auto-progress-bar.vue.d.ts +1 -1
  1706. package/types/components/auto-progress-bar.vue.d.ts.map +1 -1
  1707. package/types/components/base-dropdown.vue.d.ts +7 -7
  1708. package/types/components/base-dropdown.vue.d.ts.map +1 -1
  1709. package/types/components/base-event-button.vue.d.ts +3 -3
  1710. package/types/components/base-event-button.vue.d.ts.map +1 -1
  1711. package/types/components/base-grid.vue.d.ts +5 -5
  1712. package/types/components/base-grid.vue.d.ts.map +1 -1
  1713. package/types/components/base-keyboard-navigation.vue.d.ts +2 -2
  1714. package/types/components/base-keyboard-navigation.vue.d.ts.map +1 -1
  1715. package/types/components/base-rating.vue.d.ts.map +1 -1
  1716. package/types/components/base-slider.vue.d.ts +74 -0
  1717. package/types/components/base-slider.vue.d.ts.map +1 -0
  1718. package/types/components/base-switch.vue.d.ts +2 -1
  1719. package/types/components/base-switch.vue.d.ts.map +1 -1
  1720. package/types/components/base-teleport.vue.d.ts +55 -0
  1721. package/types/components/base-teleport.vue.d.ts.map +1 -0
  1722. package/types/components/base-variable-column-grid.vue.d.ts +5 -5
  1723. package/types/components/base-variable-column-grid.vue.d.ts.map +1 -1
  1724. package/types/components/column-picker/base-column-picker-dropdown.vue.d.ts +6 -5
  1725. package/types/components/column-picker/base-column-picker-dropdown.vue.d.ts.map +1 -1
  1726. package/types/components/column-picker/base-column-picker-list.vue.d.ts +3 -3
  1727. package/types/components/column-picker/base-column-picker-list.vue.d.ts.map +1 -1
  1728. package/types/components/column-picker/index.d.ts.map +1 -1
  1729. package/types/components/currency/base-currency.vue.d.ts.map +1 -1
  1730. package/types/components/currency/index.d.ts.map +1 -1
  1731. package/types/components/decorators/injection.consts.d.ts +2 -2
  1732. package/types/components/decorators/injection.consts.d.ts.map +1 -1
  1733. package/types/components/display-click-provider.vue.d.ts +61 -0
  1734. package/types/components/display-click-provider.vue.d.ts.map +1 -0
  1735. package/types/components/display-emitter.vue.d.ts +3 -3
  1736. package/types/components/display-emitter.vue.d.ts.map +1 -1
  1737. package/types/components/filters/index.d.ts.map +1 -1
  1738. package/types/components/filters/labels/base-price-filter-label.vue.d.ts +2 -2
  1739. package/types/components/filters/labels/base-price-filter-label.vue.d.ts.map +1 -1
  1740. package/types/components/filters/labels/base-rating-filter-label.vue.d.ts +2 -2
  1741. package/types/components/filters/labels/base-rating-filter-label.vue.d.ts.map +1 -1
  1742. package/types/components/global-x-bus.vue.d.ts +19 -3
  1743. package/types/components/global-x-bus.vue.d.ts.map +1 -1
  1744. package/types/components/highlight.vue.d.ts.map +1 -1
  1745. package/types/components/icons/index.d.ts +12 -12
  1746. package/types/components/icons/index.d.ts.map +1 -1
  1747. package/types/components/index.d.ts +16 -12
  1748. package/types/components/index.d.ts.map +1 -1
  1749. package/types/components/items-list.vue.d.ts +5 -5
  1750. package/types/components/items-list.vue.d.ts.map +1 -1
  1751. package/types/components/layouts/fixed-header-and-asides-layout.vue.d.ts.map +1 -1
  1752. package/types/components/layouts/index.d.ts.map +1 -1
  1753. package/types/components/layouts/multi-column-max-width-layout.vue.d.ts +5 -5
  1754. package/types/components/layouts/multi-column-max-width-layout.vue.d.ts.map +1 -1
  1755. package/types/components/layouts/single-column-layout.vue.d.ts +3 -3
  1756. package/types/components/layouts/single-column-layout.vue.d.ts.map +1 -1
  1757. package/types/components/location-provider.vue.d.ts +2 -2
  1758. package/types/components/location-provider.vue.d.ts.map +1 -1
  1759. package/types/components/modals/base-events-modal-close.vue.d.ts +5 -5
  1760. package/types/components/modals/base-events-modal-close.vue.d.ts.map +1 -1
  1761. package/types/components/modals/base-events-modal-open.vue.d.ts +5 -5
  1762. package/types/components/modals/base-events-modal-open.vue.d.ts.map +1 -1
  1763. package/types/components/modals/base-events-modal.vue.d.ts +4 -4
  1764. package/types/components/modals/base-events-modal.vue.d.ts.map +1 -1
  1765. package/types/components/modals/base-id-modal-close.vue.d.ts.map +1 -1
  1766. package/types/components/modals/base-id-modal-open.vue.d.ts.map +1 -1
  1767. package/types/components/modals/base-id-modal.vue.d.ts +2 -2
  1768. package/types/components/modals/base-id-modal.vue.d.ts.map +1 -1
  1769. package/types/components/modals/base-modal.vue.d.ts +10 -10
  1770. package/types/components/modals/base-modal.vue.d.ts.map +1 -1
  1771. package/types/components/modals/close-main-modal.vue.d.ts.map +1 -1
  1772. package/types/components/modals/index.d.ts +3 -3
  1773. package/types/components/modals/index.d.ts.map +1 -1
  1774. package/types/components/modals/main-modal.vue.d.ts +3 -3
  1775. package/types/components/modals/main-modal.vue.d.ts.map +1 -1
  1776. package/types/components/modals/open-main-modal.vue.d.ts.map +1 -1
  1777. package/types/components/page-loader-button.vue.d.ts +3 -3
  1778. package/types/components/page-loader-button.vue.d.ts.map +1 -1
  1779. package/types/components/page-selector.vue.d.ts +125 -0
  1780. package/types/components/page-selector.vue.d.ts.map +1 -0
  1781. package/types/components/panels/base-header-toggle-panel.vue.d.ts +5 -5
  1782. package/types/components/panels/base-header-toggle-panel.vue.d.ts.map +1 -1
  1783. package/types/components/panels/base-id-toggle-panel-button.vue.d.ts +1 -1
  1784. package/types/components/panels/base-id-toggle-panel-button.vue.d.ts.map +1 -1
  1785. package/types/components/panels/base-id-toggle-panel.vue.d.ts +5 -5
  1786. package/types/components/panels/base-id-toggle-panel.vue.d.ts.map +1 -1
  1787. package/types/components/panels/base-tabs-panel.vue.d.ts +8 -8
  1788. package/types/components/panels/base-tabs-panel.vue.d.ts.map +1 -1
  1789. package/types/components/panels/base-toggle-panel.vue.d.ts +3 -3
  1790. package/types/components/panels/base-toggle-panel.vue.d.ts.map +1 -1
  1791. package/types/components/panels/index.d.ts +2 -2
  1792. package/types/components/panels/index.d.ts.map +1 -1
  1793. package/types/components/result/base-result-add-to-cart.vue.d.ts +5 -3
  1794. package/types/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
  1795. package/types/components/result/base-result-current-price.vue.d.ts +3 -3
  1796. package/types/components/result/base-result-current-price.vue.d.ts.map +1 -1
  1797. package/types/components/result/base-result-image.vue.d.ts +11 -11
  1798. package/types/components/result/base-result-image.vue.d.ts.map +1 -1
  1799. package/types/components/result/base-result-link.vue.d.ts +3 -2
  1800. package/types/components/result/base-result-link.vue.d.ts.map +1 -1
  1801. package/types/components/result/base-result-previous-price.vue.d.ts +2 -2
  1802. package/types/components/result/base-result-previous-price.vue.d.ts.map +1 -1
  1803. package/types/components/result/base-result-rating.vue.d.ts +3 -2
  1804. package/types/components/result/base-result-rating.vue.d.ts.map +1 -1
  1805. package/types/components/result/index.d.ts +3 -3
  1806. package/types/components/result/index.d.ts.map +1 -1
  1807. package/types/components/result/result-variant-selector.vue.d.ts +2 -2
  1808. package/types/components/result/result-variant-selector.vue.d.ts.map +1 -1
  1809. package/types/components/result/result-variants-provider.vue.d.ts +2 -2
  1810. package/types/components/result/result-variants-provider.vue.d.ts.map +1 -1
  1811. package/types/components/scroll/base-scroll.vue.d.ts +1 -1
  1812. package/types/components/scroll/base-scroll.vue.d.ts.map +1 -1
  1813. package/types/components/scroll/index.d.ts.map +1 -1
  1814. package/types/components/scroll/scroll.types.d.ts.map +1 -1
  1815. package/types/components/scroll/use-scroll.d.ts +2 -2
  1816. package/types/components/scroll/use-scroll.d.ts.map +1 -1
  1817. package/types/components/sliding-panel.vue.d.ts +15 -5
  1818. package/types/components/sliding-panel.vue.d.ts.map +1 -1
  1819. package/types/components/snippet-callbacks.vue.d.ts +10 -2
  1820. package/types/components/snippet-callbacks.vue.d.ts.map +1 -1
  1821. package/types/components/suggestions/base-suggestion.vue.d.ts +5 -5
  1822. package/types/components/suggestions/base-suggestion.vue.d.ts.map +1 -1
  1823. package/types/components/suggestions/base-suggestions.vue.d.ts +5 -5
  1824. package/types/components/suggestions/base-suggestions.vue.d.ts.map +1 -1
  1825. package/types/components/suggestions/index.d.ts.map +1 -1
  1826. package/types/components/x-component.utils.d.ts +2 -2
  1827. package/types/components/x-component.utils.d.ts.map +1 -1
  1828. package/types/composables/create-use-device.d.ts +1 -1
  1829. package/types/composables/create-use-device.d.ts.map +1 -1
  1830. package/types/composables/index.d.ts.map +1 -1
  1831. package/types/composables/use-alias-api.d.ts +9 -4
  1832. package/types/composables/use-alias-api.d.ts.map +1 -1
  1833. package/types/composables/use-debounce.d.ts +1 -1
  1834. package/types/composables/use-debounce.d.ts.map +1 -1
  1835. package/types/composables/use-getter.d.ts +16 -6
  1836. package/types/composables/use-getter.d.ts.map +1 -1
  1837. package/types/composables/use-on-display.d.ts +11 -15
  1838. package/types/composables/use-on-display.d.ts.map +1 -1
  1839. package/types/composables/use-state.d.ts +6 -7
  1840. package/types/composables/use-state.d.ts.map +1 -1
  1841. package/types/composables/use-store.d.ts +2 -2
  1842. package/types/composables/use-store.d.ts.map +1 -1
  1843. package/types/composables/use-x-bus.d.ts +3 -3
  1844. package/types/composables/use-x-bus.d.ts.map +1 -1
  1845. package/types/directives/index.d.ts +1 -0
  1846. package/types/directives/index.d.ts.map +1 -1
  1847. package/types/directives/infinite-scroll.d.ts +1 -1
  1848. package/types/directives/infinite-scroll.d.ts.map +1 -1
  1849. package/types/directives/typing.d.ts +35 -0
  1850. package/types/directives/typing.d.ts.map +1 -0
  1851. package/types/index.d.ts +2 -1
  1852. package/types/index.d.ts.map +1 -1
  1853. package/types/plugins/devtools/colors.utils.d.ts +2 -2
  1854. package/types/plugins/devtools/colors.utils.d.ts.map +1 -1
  1855. package/types/plugins/devtools/devtools.plugin.d.ts +1 -1
  1856. package/types/plugins/devtools/devtools.plugin.d.ts.map +1 -1
  1857. package/types/plugins/devtools/timeline.devtools.d.ts +4 -4
  1858. package/types/plugins/devtools/timeline.devtools.d.ts.map +1 -1
  1859. package/types/plugins/devtools/wiring.devtools.d.ts +4 -4
  1860. package/types/plugins/devtools/wiring.devtools.d.ts.map +1 -1
  1861. package/types/plugins/index.d.ts.map +1 -1
  1862. package/types/plugins/x-bus.d.ts +3 -3
  1863. package/types/plugins/x-bus.d.ts.map +1 -1
  1864. package/types/plugins/x-emitters.d.ts +7 -8
  1865. package/types/plugins/x-emitters.d.ts.map +1 -1
  1866. package/types/plugins/x-plugin.d.ts +16 -21
  1867. package/types/plugins/x-plugin.d.ts.map +1 -1
  1868. package/types/plugins/x-plugin.types.d.ts +19 -21
  1869. package/types/plugins/x-plugin.types.d.ts.map +1 -1
  1870. package/types/plugins/x-plugin.utils.d.ts +2 -2
  1871. package/types/plugins/x-plugin.utils.d.ts.map +1 -1
  1872. package/types/router.d.ts.map +1 -1
  1873. package/types/services/directional-focus-navigation.service.d.ts +3 -5
  1874. package/types/services/directional-focus-navigation.service.d.ts.map +1 -1
  1875. package/types/services/index.d.ts.map +1 -1
  1876. package/types/services/services.types.d.ts +4 -4
  1877. package/types/services/services.types.d.ts.map +1 -1
  1878. package/types/services/state-machine.service.d.ts +1 -1
  1879. package/types/services/state-machine.service.d.ts.map +1 -1
  1880. package/types/store/actions.types.d.ts +7 -9
  1881. package/types/store/actions.types.d.ts.map +1 -1
  1882. package/types/store/getters.types.d.ts +2 -2
  1883. package/types/store/getters.types.d.ts.map +1 -1
  1884. package/types/store/index.d.ts +5 -2
  1885. package/types/store/index.d.ts.map +1 -1
  1886. package/types/store/mutations.types.d.ts +2 -2
  1887. package/types/store/mutations.types.d.ts.map +1 -1
  1888. package/types/store/store.types.d.ts +8 -8
  1889. package/types/store/store.types.d.ts.map +1 -1
  1890. package/types/store/utils/config-store.utils.d.ts +2 -2
  1891. package/types/store/utils/config-store.utils.d.ts.map +1 -1
  1892. package/types/store/utils/fetch-and-save-action.utils.d.ts +7 -8
  1893. package/types/store/utils/fetch-and-save-action.utils.d.ts.map +1 -1
  1894. package/types/store/utils/getters-proxy.utils.d.ts +3 -3
  1895. package/types/store/utils/getters-proxy.utils.d.ts.map +1 -1
  1896. package/types/store/utils/query.utils.d.ts +3 -3
  1897. package/types/store/utils/query.utils.d.ts.map +1 -1
  1898. package/types/store/utils/status-store.utils.d.ts +1 -1
  1899. package/types/store/utils/status-store.utils.d.ts.map +1 -1
  1900. package/types/store/utils/store-emitters.utils.d.ts +9 -9
  1901. package/types/store/utils/store-emitters.utils.d.ts.map +1 -1
  1902. package/types/store/x.module.d.ts +2 -2
  1903. package/types/store/x.module.d.ts.map +1 -1
  1904. package/types/tailwind/plugin-options.d.ts +1 -2
  1905. package/types/tailwind/plugin-options.d.ts.map +1 -1
  1906. package/types/types/animation-prop.d.ts +6 -2
  1907. package/types/types/animation-prop.d.ts.map +1 -1
  1908. package/types/types/index.d.ts +1 -1
  1909. package/types/types/index.d.ts.map +1 -1
  1910. package/types/types/origin.d.ts +4 -4
  1911. package/types/types/origin.d.ts.map +1 -1
  1912. package/types/types/page-mode.d.ts +2 -0
  1913. package/types/types/page-mode.d.ts.map +1 -0
  1914. package/types/types/url-params.d.ts +1 -0
  1915. package/types/types/url-params.d.ts.map +1 -1
  1916. package/types/utils/array.d.ts +1 -1
  1917. package/types/utils/array.d.ts.map +1 -1
  1918. package/types/utils/cancellable-promise.d.ts.map +1 -1
  1919. package/types/utils/clone.d.ts.map +1 -1
  1920. package/types/utils/debounce.d.ts +1 -3
  1921. package/types/utils/debounce.d.ts.map +1 -1
  1922. package/types/utils/filters.d.ts +1 -1
  1923. package/types/utils/filters.d.ts.map +1 -1
  1924. package/types/utils/focus.d.ts.map +1 -1
  1925. package/types/utils/function.d.ts.map +1 -1
  1926. package/types/utils/get-url-parameters.d.ts.map +1 -1
  1927. package/types/utils/index.d.ts +1 -0
  1928. package/types/utils/index.d.ts.map +1 -1
  1929. package/types/utils/ios-utils.d.ts +17 -0
  1930. package/types/utils/ios-utils.d.ts.map +1 -0
  1931. package/types/utils/is-new-query.d.ts.map +1 -1
  1932. package/types/utils/number.d.ts +0 -1
  1933. package/types/utils/number.d.ts.map +1 -1
  1934. package/types/utils/origin.d.ts +2 -4
  1935. package/types/utils/origin.d.ts.map +1 -1
  1936. package/types/utils/sanitize.d.ts.map +1 -1
  1937. package/types/utils/storage.d.ts +1 -1
  1938. package/types/utils/storage.d.ts.map +1 -1
  1939. package/types/utils/throttle.d.ts +1 -1
  1940. package/types/utils/throttle.d.ts.map +1 -1
  1941. package/types/utils/types.d.ts +7 -7
  1942. package/types/utils/types.d.ts.map +1 -1
  1943. package/types/views/adapter.d.ts +1 -1
  1944. package/types/views/adapter.d.ts.map +1 -1
  1945. package/types/views/base-config.d.ts +2 -2
  1946. package/types/views/base-config.d.ts.map +1 -1
  1947. package/types/views/home/types.d.ts +3 -0
  1948. package/types/views/home/types.d.ts.map +1 -1
  1949. package/types/wiring/events.types.d.ts +28 -26
  1950. package/types/wiring/events.types.d.ts.map +1 -1
  1951. package/types/wiring/index.d.ts.map +1 -1
  1952. package/types/wiring/namespaced-wires.factory.d.ts +2 -2
  1953. package/types/wiring/namespaced-wires.factory.d.ts.map +1 -1
  1954. package/types/wiring/namespaced-wires.operators.d.ts +2 -2
  1955. package/types/wiring/namespaced-wires.operators.d.ts.map +1 -1
  1956. package/types/wiring/namespaced-wiring.types.d.ts +4 -4
  1957. package/types/wiring/namespaced-wiring.types.d.ts.map +1 -1
  1958. package/types/wiring/wires-operators.utils.d.ts +10 -8
  1959. package/types/wiring/wires-operators.utils.d.ts.map +1 -1
  1960. package/types/wiring/wires.factory.d.ts +2 -2
  1961. package/types/wiring/wires.factory.d.ts.map +1 -1
  1962. package/types/wiring/wires.operators.d.ts +2 -2
  1963. package/types/wiring/wires.operators.d.ts.map +1 -1
  1964. package/types/wiring/wiring.types.d.ts +10 -10
  1965. package/types/wiring/wiring.types.d.ts.map +1 -1
  1966. package/types/wiring/wiring.utils.d.ts +4 -4
  1967. package/types/wiring/wiring.utils.d.ts.map +1 -1
  1968. package/types/x-installer/api/api.types.d.ts +16 -17
  1969. package/types/x-installer/api/api.types.d.ts.map +1 -1
  1970. package/types/x-installer/api/base-api.d.ts +5 -5
  1971. package/types/x-installer/api/base-api.d.ts.map +1 -1
  1972. package/types/x-installer/api/index.d.ts.map +1 -1
  1973. package/types/x-installer/index.d.ts.map +1 -1
  1974. package/types/x-installer/x-installer/index.d.ts.map +1 -1
  1975. package/types/x-installer/x-installer/types.d.ts +11 -11
  1976. package/types/x-installer/x-installer/types.d.ts.map +1 -1
  1977. package/types/x-installer/x-installer/x-installer.d.ts +12 -12
  1978. package/types/x-installer/x-installer/x-installer.d.ts.map +1 -1
  1979. package/types/x-modules/device/components/device-detector.vue.d.ts +1 -1
  1980. package/types/x-modules/device/components/device-detector.vue.d.ts.map +1 -1
  1981. package/types/x-modules/device/components/index.d.ts.map +1 -1
  1982. package/types/x-modules/device/events.types.d.ts +1 -1
  1983. package/types/x-modules/device/events.types.d.ts.map +1 -1
  1984. package/types/x-modules/device/index.d.ts.map +1 -1
  1985. package/types/x-modules/device/store/emitters.d.ts.map +1 -1
  1986. package/types/x-modules/device/store/index.d.ts.map +1 -1
  1987. package/types/x-modules/device/store/module.d.ts +1 -1
  1988. package/types/x-modules/device/store/module.d.ts.map +1 -1
  1989. package/types/x-modules/device/store/types.d.ts +2 -2
  1990. package/types/x-modules/device/store/types.d.ts.map +1 -1
  1991. package/types/x-modules/device/wiring.d.ts.map +1 -1
  1992. package/types/x-modules/device/x-module.d.ts +2 -2
  1993. package/types/x-modules/device/x-module.d.ts.map +1 -1
  1994. package/types/x-modules/empathize/components/empathize.vue.d.ts +7 -7
  1995. package/types/x-modules/empathize/components/empathize.vue.d.ts.map +1 -1
  1996. package/types/x-modules/empathize/components/index.d.ts.map +1 -1
  1997. package/types/x-modules/empathize/events.types.d.ts +3 -3
  1998. package/types/x-modules/empathize/events.types.d.ts.map +1 -1
  1999. package/types/x-modules/empathize/index.d.ts.map +1 -1
  2000. package/types/x-modules/empathize/store/emitters.d.ts.map +1 -1
  2001. package/types/x-modules/empathize/store/index.d.ts.map +1 -1
  2002. package/types/x-modules/empathize/store/module.d.ts +1 -1
  2003. package/types/x-modules/empathize/store/module.d.ts.map +1 -1
  2004. package/types/x-modules/empathize/store/types.d.ts +4 -4
  2005. package/types/x-modules/empathize/store/types.d.ts.map +1 -1
  2006. package/types/x-modules/empathize/wiring.d.ts.map +1 -1
  2007. package/types/x-modules/empathize/x-module.d.ts +2 -2
  2008. package/types/x-modules/empathize/x-module.d.ts.map +1 -1
  2009. package/types/x-modules/experience-controls/components/experience-controls.vue.d.ts.map +1 -1
  2010. package/types/x-modules/experience-controls/components/index.d.ts.map +1 -1
  2011. package/types/x-modules/experience-controls/events.types.d.ts +2 -2
  2012. package/types/x-modules/experience-controls/events.types.d.ts.map +1 -1
  2013. package/types/x-modules/experience-controls/index.d.ts.map +1 -1
  2014. package/types/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts +2 -2
  2015. package/types/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts.map +1 -1
  2016. package/types/x-modules/experience-controls/store/actions/fetch-experience-controls.action.d.ts +1 -1
  2017. package/types/x-modules/experience-controls/store/actions/fetch-experience-controls.action.d.ts.map +1 -1
  2018. package/types/x-modules/experience-controls/store/actions/index.d.ts.map +1 -1
  2019. package/types/x-modules/experience-controls/store/emitters.d.ts.map +1 -1
  2020. package/types/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.d.ts +1 -1
  2021. package/types/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.d.ts.map +1 -1
  2022. package/types/x-modules/experience-controls/store/getters/index.d.ts.map +1 -1
  2023. package/types/x-modules/experience-controls/store/index.d.ts.map +1 -1
  2024. package/types/x-modules/experience-controls/store/module.d.ts +1 -1
  2025. package/types/x-modules/experience-controls/store/module.d.ts.map +1 -1
  2026. package/types/x-modules/experience-controls/store/types.d.ts +10 -10
  2027. package/types/x-modules/experience-controls/store/types.d.ts.map +1 -1
  2028. package/types/x-modules/experience-controls/wiring.d.ts.map +1 -1
  2029. package/types/x-modules/experience-controls/x-module.d.ts +2 -2
  2030. package/types/x-modules/experience-controls/x-module.d.ts.map +1 -1
  2031. package/types/x-modules/extra-params/components/extra-params.vue.d.ts +2 -2
  2032. package/types/x-modules/extra-params/components/extra-params.vue.d.ts.map +1 -1
  2033. package/types/x-modules/extra-params/components/index.d.ts +1 -1
  2034. package/types/x-modules/extra-params/components/index.d.ts.map +1 -1
  2035. package/types/x-modules/extra-params/components/renderless-extra-param.vue.d.ts.map +1 -1
  2036. package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts +3 -3
  2037. package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts.map +1 -1
  2038. package/types/x-modules/extra-params/events.types.d.ts +5 -5
  2039. package/types/x-modules/extra-params/events.types.d.ts.map +1 -1
  2040. package/types/x-modules/extra-params/index.d.ts.map +1 -1
  2041. package/types/x-modules/extra-params/store/emitters.d.ts.map +1 -1
  2042. package/types/x-modules/extra-params/store/index.d.ts.map +1 -1
  2043. package/types/x-modules/extra-params/store/module.d.ts +1 -1
  2044. package/types/x-modules/extra-params/store/module.d.ts.map +1 -1
  2045. package/types/x-modules/extra-params/store/types.d.ts +3 -3
  2046. package/types/x-modules/extra-params/store/types.d.ts.map +1 -1
  2047. package/types/x-modules/extra-params/wiring.d.ts.map +1 -1
  2048. package/types/x-modules/extra-params/x-module.d.ts +2 -2
  2049. package/types/x-modules/extra-params/x-module.d.ts.map +1 -1
  2050. package/types/x-modules/facets/components/clear-filters.vue.d.ts +3 -3
  2051. package/types/x-modules/facets/components/clear-filters.vue.d.ts.map +1 -1
  2052. package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts +2 -2
  2053. package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts.map +1 -1
  2054. package/types/x-modules/facets/components/facets/facets.vue.d.ts +9 -9
  2055. package/types/x-modules/facets/components/facets/facets.vue.d.ts.map +1 -1
  2056. package/types/x-modules/facets/components/filters/all-filter.vue.d.ts +6 -6
  2057. package/types/x-modules/facets/components/filters/all-filter.vue.d.ts.map +1 -1
  2058. package/types/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts +2 -2
  2059. package/types/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts.map +1 -1
  2060. package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +15 -7
  2061. package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  2062. package/types/x-modules/facets/components/filters/number-range-filter.vue.d.ts +4 -4
  2063. package/types/x-modules/facets/components/filters/number-range-filter.vue.d.ts.map +1 -1
  2064. package/types/x-modules/facets/components/filters/renderless-filter.vue.d.ts +4 -4
  2065. package/types/x-modules/facets/components/filters/renderless-filter.vue.d.ts.map +1 -1
  2066. package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts +13 -5
  2067. package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  2068. package/types/x-modules/facets/components/index.d.ts +5 -5
  2069. package/types/x-modules/facets/components/index.d.ts.map +1 -1
  2070. package/types/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.d.ts +2 -2
  2071. package/types/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.d.ts.map +1 -1
  2072. package/types/x-modules/facets/components/lists/filters-list.vue.d.ts +6 -6
  2073. package/types/x-modules/facets/components/lists/filters-list.vue.d.ts.map +1 -1
  2074. package/types/x-modules/facets/components/lists/filters-search.vue.d.ts +3 -3
  2075. package/types/x-modules/facets/components/lists/filters-search.vue.d.ts.map +1 -1
  2076. package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts +5 -5
  2077. package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts.map +1 -1
  2078. package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts +1 -1
  2079. package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts.map +1 -1
  2080. package/types/x-modules/facets/components/lists/sliced-filters.vue.d.ts +3 -3
  2081. package/types/x-modules/facets/components/lists/sliced-filters.vue.d.ts.map +1 -1
  2082. package/types/x-modules/facets/components/lists/sorted-filters.vue.d.ts +2 -2
  2083. package/types/x-modules/facets/components/lists/sorted-filters.vue.d.ts.map +1 -1
  2084. package/types/x-modules/facets/components/preselected-filters.vue.d.ts +1 -1
  2085. package/types/x-modules/facets/components/preselected-filters.vue.d.ts.map +1 -1
  2086. package/types/x-modules/facets/composables/index.d.ts.map +1 -1
  2087. package/types/x-modules/facets/composables/use-facets.d.ts +3 -4
  2088. package/types/x-modules/facets/composables/use-facets.d.ts.map +1 -1
  2089. package/types/x-modules/facets/composables/use-filters-injection.d.ts +1 -2
  2090. package/types/x-modules/facets/composables/use-filters-injection.d.ts.map +1 -1
  2091. package/types/x-modules/facets/entities/add-facet-if-not-present.d.ts +3 -3
  2092. package/types/x-modules/facets/entities/add-facet-if-not-present.d.ts.map +1 -1
  2093. package/types/x-modules/facets/entities/editable-number-range-filter.entity.d.ts +8 -8
  2094. package/types/x-modules/facets/entities/editable-number-range-filter.entity.d.ts.map +1 -1
  2095. package/types/x-modules/facets/entities/filter-entity.factory.d.ts +4 -4
  2096. package/types/x-modules/facets/entities/filter-entity.factory.d.ts.map +1 -1
  2097. package/types/x-modules/facets/entities/hierarchical-filter.entity.d.ts +9 -8
  2098. package/types/x-modules/facets/entities/hierarchical-filter.entity.d.ts.map +1 -1
  2099. package/types/x-modules/facets/entities/index.d.ts.map +1 -1
  2100. package/types/x-modules/facets/entities/number-range-filter.entity.d.ts +9 -8
  2101. package/types/x-modules/facets/entities/number-range-filter.entity.d.ts.map +1 -1
  2102. package/types/x-modules/facets/entities/raw-filter.entity.d.ts +8 -7
  2103. package/types/x-modules/facets/entities/raw-filter.entity.d.ts.map +1 -1
  2104. package/types/x-modules/facets/entities/simple-filter.entity.d.ts +9 -8
  2105. package/types/x-modules/facets/entities/simple-filter.entity.d.ts.map +1 -1
  2106. package/types/x-modules/facets/entities/single-select.modifier.d.ts +1 -1
  2107. package/types/x-modules/facets/entities/single-select.modifier.d.ts.map +1 -1
  2108. package/types/x-modules/facets/entities/sticky.modifier.d.ts +1 -1
  2109. package/types/x-modules/facets/entities/sticky.modifier.d.ts.map +1 -1
  2110. package/types/x-modules/facets/entities/types.d.ts +7 -7
  2111. package/types/x-modules/facets/entities/types.d.ts.map +1 -1
  2112. package/types/x-modules/facets/events.types.d.ts +2 -2
  2113. package/types/x-modules/facets/events.types.d.ts.map +1 -1
  2114. package/types/x-modules/facets/index.d.ts +5 -5
  2115. package/types/x-modules/facets/index.d.ts.map +1 -1
  2116. package/types/x-modules/facets/service/facets.service.d.ts +8 -9
  2117. package/types/x-modules/facets/service/facets.service.d.ts.map +1 -1
  2118. package/types/x-modules/facets/service/index.d.ts.map +1 -1
  2119. package/types/x-modules/facets/service/types.d.ts +12 -12
  2120. package/types/x-modules/facets/service/types.d.ts.map +1 -1
  2121. package/types/x-modules/facets/store/constants.d.ts.map +1 -1
  2122. package/types/x-modules/facets/store/emitters.d.ts.map +1 -1
  2123. package/types/x-modules/facets/store/getters/facets.getter.d.ts +1 -1
  2124. package/types/x-modules/facets/store/getters/facets.getter.d.ts.map +1 -1
  2125. package/types/x-modules/facets/store/getters/index.d.ts +1 -1
  2126. package/types/x-modules/facets/store/getters/index.d.ts.map +1 -1
  2127. package/types/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts +1 -1
  2128. package/types/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts.map +1 -1
  2129. package/types/x-modules/facets/store/getters/selected-filters-for-request.getter.d.ts +1 -1
  2130. package/types/x-modules/facets/store/getters/selected-filters-for-request.getter.d.ts.map +1 -1
  2131. package/types/x-modules/facets/store/getters/selected-filters.getter.d.ts +1 -1
  2132. package/types/x-modules/facets/store/getters/selected-filters.getter.d.ts.map +1 -1
  2133. package/types/x-modules/facets/store/index.d.ts +1 -1
  2134. package/types/x-modules/facets/store/index.d.ts.map +1 -1
  2135. package/types/x-modules/facets/store/module.d.ts +1 -1
  2136. package/types/x-modules/facets/store/module.d.ts.map +1 -1
  2137. package/types/x-modules/facets/store/types.d.ts +15 -15
  2138. package/types/x-modules/facets/store/types.d.ts.map +1 -1
  2139. package/types/x-modules/facets/utils.d.ts +1 -1
  2140. package/types/x-modules/facets/utils.d.ts.map +1 -1
  2141. package/types/x-modules/facets/wiring.d.ts +2 -2
  2142. package/types/x-modules/facets/wiring.d.ts.map +1 -1
  2143. package/types/x-modules/facets/x-module.d.ts +2 -2
  2144. package/types/x-modules/facets/x-module.d.ts.map +1 -1
  2145. package/types/x-modules/history-queries/components/clear-history-queries.vue.d.ts +2 -2
  2146. package/types/x-modules/history-queries/components/clear-history-queries.vue.d.ts.map +1 -1
  2147. package/types/x-modules/history-queries/components/history-queries-switch.vue.d.ts +1 -1
  2148. package/types/x-modules/history-queries/components/history-queries-switch.vue.d.ts.map +1 -1
  2149. package/types/x-modules/history-queries/components/history-queries.vue.d.ts +1 -1
  2150. package/types/x-modules/history-queries/components/history-queries.vue.d.ts.map +1 -1
  2151. package/types/x-modules/history-queries/components/history-query.vue.d.ts +4 -4
  2152. package/types/x-modules/history-queries/components/history-query.vue.d.ts.map +1 -1
  2153. package/types/x-modules/history-queries/components/index.d.ts +1 -1
  2154. package/types/x-modules/history-queries/components/index.d.ts.map +1 -1
  2155. package/types/x-modules/history-queries/components/my-history.vue.d.ts +6 -6
  2156. package/types/x-modules/history-queries/components/my-history.vue.d.ts.map +1 -1
  2157. package/types/x-modules/history-queries/components/remove-history-query.vue.d.ts +3 -3
  2158. package/types/x-modules/history-queries/components/remove-history-query.vue.d.ts.map +1 -1
  2159. package/types/x-modules/history-queries/config.types.d.ts.map +1 -1
  2160. package/types/x-modules/history-queries/events.types.d.ts +1 -1
  2161. package/types/x-modules/history-queries/events.types.d.ts.map +1 -1
  2162. package/types/x-modules/history-queries/index.d.ts.map +1 -1
  2163. package/types/x-modules/history-queries/store/actions/add-query-to-history.action.d.ts +4 -4
  2164. package/types/x-modules/history-queries/store/actions/add-query-to-history.action.d.ts.map +1 -1
  2165. package/types/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts +1 -1
  2166. package/types/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts.map +1 -1
  2167. package/types/x-modules/history-queries/store/actions/refresh-session.action.d.ts +1 -1
  2168. package/types/x-modules/history-queries/store/actions/refresh-session.action.d.ts.map +1 -1
  2169. package/types/x-modules/history-queries/store/actions/remove-query-from-history.action.d.ts +1 -1
  2170. package/types/x-modules/history-queries/store/actions/remove-query-from-history.action.d.ts.map +1 -1
  2171. package/types/x-modules/history-queries/store/actions/set-history-queries.action.d.ts +1 -1
  2172. package/types/x-modules/history-queries/store/actions/set-history-queries.action.d.ts.map +1 -1
  2173. package/types/x-modules/history-queries/store/actions/set-url-params.action.d.ts +1 -2
  2174. package/types/x-modules/history-queries/store/actions/set-url-params.action.d.ts.map +1 -1
  2175. package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts +1 -1
  2176. package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts.map +1 -1
  2177. package/types/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts +1 -4
  2178. package/types/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts.map +1 -1
  2179. package/types/x-modules/history-queries/store/constants.d.ts.map +1 -1
  2180. package/types/x-modules/history-queries/store/emitters.d.ts.map +1 -1
  2181. package/types/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts +1 -4
  2182. package/types/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts.map +1 -1
  2183. package/types/x-modules/history-queries/store/getters/history-queries.getter.d.ts +3 -3
  2184. package/types/x-modules/history-queries/store/getters/history-queries.getter.d.ts.map +1 -1
  2185. package/types/x-modules/history-queries/store/getters/normalized-query.getter.d.ts +2 -1
  2186. package/types/x-modules/history-queries/store/getters/normalized-query.getter.d.ts.map +1 -1
  2187. package/types/x-modules/history-queries/store/getters/session-history-queries.getter.d.ts +1 -1
  2188. package/types/x-modules/history-queries/store/getters/session-history-queries.getter.d.ts.map +1 -1
  2189. package/types/x-modules/history-queries/store/getters/storage-key.getter.d.ts +1 -1
  2190. package/types/x-modules/history-queries/store/getters/storage-key.getter.d.ts.map +1 -1
  2191. package/types/x-modules/history-queries/store/index.d.ts.map +1 -1
  2192. package/types/x-modules/history-queries/store/module.d.ts +1 -1
  2193. package/types/x-modules/history-queries/store/module.d.ts.map +1 -1
  2194. package/types/x-modules/history-queries/store/types.d.ts +19 -19
  2195. package/types/x-modules/history-queries/store/types.d.ts.map +1 -1
  2196. package/types/x-modules/history-queries/wiring.d.ts.map +1 -1
  2197. package/types/x-modules/history-queries/x-module.d.ts +2 -2
  2198. package/types/x-modules/history-queries/x-module.d.ts.map +1 -1
  2199. package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts +4 -4
  2200. package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts.map +1 -1
  2201. package/types/x-modules/identifier-results/components/identifier-results.vue.d.ts +5 -5
  2202. package/types/x-modules/identifier-results/components/identifier-results.vue.d.ts.map +1 -1
  2203. package/types/x-modules/identifier-results/components/index.d.ts.map +1 -1
  2204. package/types/x-modules/identifier-results/config.types.d.ts.map +1 -1
  2205. package/types/x-modules/identifier-results/events.types.d.ts +1 -1
  2206. package/types/x-modules/identifier-results/events.types.d.ts.map +1 -1
  2207. package/types/x-modules/identifier-results/index.d.ts.map +1 -1
  2208. package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts +2 -2
  2209. package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts.map +1 -1
  2210. package/types/x-modules/identifier-results/store/actions/fetch-identifier-results.action.d.ts +1 -1
  2211. package/types/x-modules/identifier-results/store/actions/fetch-identifier-results.action.d.ts.map +1 -1
  2212. package/types/x-modules/identifier-results/store/actions/index.d.ts.map +1 -1
  2213. package/types/x-modules/identifier-results/store/actions/save-origin.action.d.ts +1 -2
  2214. package/types/x-modules/identifier-results/store/actions/save-origin.action.d.ts.map +1 -1
  2215. package/types/x-modules/identifier-results/store/actions/save-query.action.d.ts +1 -2
  2216. package/types/x-modules/identifier-results/store/actions/save-query.action.d.ts.map +1 -1
  2217. package/types/x-modules/identifier-results/store/emitters.d.ts.map +1 -1
  2218. package/types/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts +1 -1
  2219. package/types/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts.map +1 -1
  2220. package/types/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts +1 -1
  2221. package/types/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts.map +1 -1
  2222. package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts +1 -1
  2223. package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts.map +1 -1
  2224. package/types/x-modules/identifier-results/store/index.d.ts.map +1 -1
  2225. package/types/x-modules/identifier-results/store/module.d.ts +1 -1
  2226. package/types/x-modules/identifier-results/store/module.d.ts.map +1 -1
  2227. package/types/x-modules/identifier-results/store/types.d.ts +16 -16
  2228. package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
  2229. package/types/x-modules/identifier-results/wiring.d.ts.map +1 -1
  2230. package/types/x-modules/identifier-results/x-module.d.ts +2 -2
  2231. package/types/x-modules/identifier-results/x-module.d.ts.map +1 -1
  2232. package/types/x-modules/next-queries/components/index.d.ts +2 -2
  2233. package/types/x-modules/next-queries/components/index.d.ts.map +1 -1
  2234. package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts +3 -3
  2235. package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -1
  2236. package/types/x-modules/next-queries/components/next-queries.vue.d.ts +3 -3
  2237. package/types/x-modules/next-queries/components/next-queries.vue.d.ts.map +1 -1
  2238. package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts +2 -2
  2239. package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts.map +1 -1
  2240. package/types/x-modules/next-queries/components/next-query.vue.d.ts +3 -3
  2241. package/types/x-modules/next-queries/components/next-query.vue.d.ts.map +1 -1
  2242. package/types/x-modules/next-queries/config.types.d.ts.map +1 -1
  2243. package/types/x-modules/next-queries/events.types.d.ts +1 -1
  2244. package/types/x-modules/next-queries/events.types.d.ts.map +1 -1
  2245. package/types/x-modules/next-queries/index.d.ts +1 -0
  2246. package/types/x-modules/next-queries/index.d.ts.map +1 -1
  2247. package/types/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts +2 -2
  2248. package/types/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts.map +1 -1
  2249. package/types/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts +1 -1
  2250. package/types/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts.map +1 -1
  2251. package/types/x-modules/next-queries/store/actions/fetch-next-queries.action.d.ts +1 -1
  2252. package/types/x-modules/next-queries/store/actions/fetch-next-queries.action.d.ts.map +1 -1
  2253. package/types/x-modules/next-queries/store/actions/fetch-next-query-preview.action.d.ts +4 -1
  2254. package/types/x-modules/next-queries/store/actions/fetch-next-query-preview.action.d.ts.map +1 -1
  2255. package/types/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.d.ts +1 -1
  2256. package/types/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.d.ts.map +1 -1
  2257. package/types/x-modules/next-queries/store/actions/set-url-params.action.d.ts +1 -2
  2258. package/types/x-modules/next-queries/store/actions/set-url-params.action.d.ts.map +1 -1
  2259. package/types/x-modules/next-queries/store/emitters.d.ts.map +1 -1
  2260. package/types/x-modules/next-queries/store/getters/next-queries-query.getter.d.ts +1 -3
  2261. package/types/x-modules/next-queries/store/getters/next-queries-query.getter.d.ts.map +1 -1
  2262. package/types/x-modules/next-queries/store/getters/next-queries.getter.d.ts +1 -2
  2263. package/types/x-modules/next-queries/store/getters/next-queries.getter.d.ts.map +1 -1
  2264. package/types/x-modules/next-queries/store/getters/request.getter.d.ts +1 -3
  2265. package/types/x-modules/next-queries/store/getters/request.getter.d.ts.map +1 -1
  2266. package/types/x-modules/next-queries/store/index.d.ts +2 -2
  2267. package/types/x-modules/next-queries/store/index.d.ts.map +1 -1
  2268. package/types/x-modules/next-queries/store/module.d.ts +1 -1
  2269. package/types/x-modules/next-queries/store/module.d.ts.map +1 -1
  2270. package/types/x-modules/next-queries/store/types.d.ts +24 -24
  2271. package/types/x-modules/next-queries/store/types.d.ts.map +1 -1
  2272. package/types/x-modules/next-queries/types.d.ts +2 -2
  2273. package/types/x-modules/next-queries/types.d.ts.map +1 -1
  2274. package/types/x-modules/next-queries/wiring.d.ts.map +1 -1
  2275. package/types/x-modules/next-queries/x-module.d.ts +2 -2
  2276. package/types/x-modules/next-queries/x-module.d.ts.map +1 -1
  2277. package/types/x-modules/popular-searches/components/index.d.ts.map +1 -1
  2278. package/types/x-modules/popular-searches/components/popular-search.vue.d.ts +3 -3
  2279. package/types/x-modules/popular-searches/components/popular-search.vue.d.ts.map +1 -1
  2280. package/types/x-modules/popular-searches/components/popular-searches.vue.d.ts +1 -1
  2281. package/types/x-modules/popular-searches/components/popular-searches.vue.d.ts.map +1 -1
  2282. package/types/x-modules/popular-searches/config.types.d.ts.map +1 -1
  2283. package/types/x-modules/popular-searches/events.types.d.ts +1 -1
  2284. package/types/x-modules/popular-searches/events.types.d.ts.map +1 -1
  2285. package/types/x-modules/popular-searches/index.d.ts.map +1 -1
  2286. package/types/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts +2 -2
  2287. package/types/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts.map +1 -1
  2288. package/types/x-modules/popular-searches/store/actions/fetch-suggestions.action.d.ts +1 -1
  2289. package/types/x-modules/popular-searches/store/actions/fetch-suggestions.action.d.ts.map +1 -1
  2290. package/types/x-modules/popular-searches/store/emitters.d.ts.map +1 -1
  2291. package/types/x-modules/popular-searches/store/getters/popular-searches.getter.d.ts +1 -2
  2292. package/types/x-modules/popular-searches/store/getters/popular-searches.getter.d.ts.map +1 -1
  2293. package/types/x-modules/popular-searches/store/getters/request.getter.d.ts +1 -3
  2294. package/types/x-modules/popular-searches/store/getters/request.getter.d.ts.map +1 -1
  2295. package/types/x-modules/popular-searches/store/index.d.ts +2 -2
  2296. package/types/x-modules/popular-searches/store/index.d.ts.map +1 -1
  2297. package/types/x-modules/popular-searches/store/module.d.ts +1 -1
  2298. package/types/x-modules/popular-searches/store/module.d.ts.map +1 -1
  2299. package/types/x-modules/popular-searches/store/types.d.ts +12 -12
  2300. package/types/x-modules/popular-searches/store/types.d.ts.map +1 -1
  2301. package/types/x-modules/popular-searches/wiring.d.ts.map +1 -1
  2302. package/types/x-modules/popular-searches/x-module.d.ts +2 -2
  2303. package/types/x-modules/popular-searches/x-module.d.ts.map +1 -1
  2304. package/types/x-modules/queries-preview/components/index.d.ts +1 -1
  2305. package/types/x-modules/queries-preview/components/index.d.ts.map +1 -1
  2306. package/types/x-modules/queries-preview/components/query-preview-button.vue.d.ts +4 -4
  2307. package/types/x-modules/queries-preview/components/query-preview-button.vue.d.ts.map +1 -1
  2308. package/types/x-modules/queries-preview/components/query-preview-list.vue.d.ts +6 -6
  2309. package/types/x-modules/queries-preview/components/query-preview-list.vue.d.ts.map +1 -1
  2310. package/types/x-modules/queries-preview/components/query-preview.vue.d.ts +6 -6
  2311. package/types/x-modules/queries-preview/components/query-preview.vue.d.ts.map +1 -1
  2312. package/types/x-modules/queries-preview/composables/index.d.ts.map +1 -1
  2313. package/types/x-modules/queries-preview/composables/use-queries-preview.composable.d.ts.map +1 -1
  2314. package/types/x-modules/queries-preview/config.types.d.ts.map +1 -1
  2315. package/types/x-modules/queries-preview/events.types.d.ts +3 -3
  2316. package/types/x-modules/queries-preview/events.types.d.ts.map +1 -1
  2317. package/types/x-modules/queries-preview/index.d.ts +1 -1
  2318. package/types/x-modules/queries-preview/index.d.ts.map +1 -1
  2319. package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts +1 -1
  2320. package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts.map +1 -1
  2321. package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts +1 -1
  2322. package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts.map +1 -1
  2323. package/types/x-modules/queries-preview/store/emitters.d.ts.map +1 -1
  2324. package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts +1 -2
  2325. package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts.map +1 -1
  2326. package/types/x-modules/queries-preview/store/index.d.ts +1 -1
  2327. package/types/x-modules/queries-preview/store/index.d.ts.map +1 -1
  2328. package/types/x-modules/queries-preview/store/module.d.ts +1 -1
  2329. package/types/x-modules/queries-preview/store/module.d.ts.map +1 -1
  2330. package/types/x-modules/queries-preview/store/types.d.ts +20 -20
  2331. package/types/x-modules/queries-preview/store/types.d.ts.map +1 -1
  2332. package/types/x-modules/queries-preview/utils/get-hash-from-query-preview.d.ts +5 -3
  2333. package/types/x-modules/queries-preview/utils/get-hash-from-query-preview.d.ts.map +1 -1
  2334. package/types/x-modules/queries-preview/wiring.d.ts.map +1 -1
  2335. package/types/x-modules/queries-preview/x-module.d.ts +2 -2
  2336. package/types/x-modules/queries-preview/x-module.d.ts.map +1 -1
  2337. package/types/x-modules/query-suggestions/components/index.d.ts.map +1 -1
  2338. package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts +3 -3
  2339. package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts.map +1 -1
  2340. package/types/x-modules/query-suggestions/components/query-suggestions.vue.d.ts +1 -1
  2341. package/types/x-modules/query-suggestions/components/query-suggestions.vue.d.ts.map +1 -1
  2342. package/types/x-modules/query-suggestions/config.types.d.ts.map +1 -1
  2343. package/types/x-modules/query-suggestions/events.types.d.ts +1 -6
  2344. package/types/x-modules/query-suggestions/events.types.d.ts.map +1 -1
  2345. package/types/x-modules/query-suggestions/index.d.ts.map +1 -1
  2346. package/types/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts +2 -2
  2347. package/types/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts.map +1 -1
  2348. package/types/x-modules/query-suggestions/store/actions/fetch-suggestions.action.d.ts +1 -1
  2349. package/types/x-modules/query-suggestions/store/actions/fetch-suggestions.action.d.ts.map +1 -1
  2350. package/types/x-modules/query-suggestions/store/actions/set-url-params.action.d.ts +1 -2
  2351. package/types/x-modules/query-suggestions/store/actions/set-url-params.action.d.ts.map +1 -1
  2352. package/types/x-modules/query-suggestions/store/emitters.d.ts.map +1 -1
  2353. package/types/x-modules/query-suggestions/store/getters/normalized-query.getter.d.ts +1 -3
  2354. package/types/x-modules/query-suggestions/store/getters/normalized-query.getter.d.ts.map +1 -1
  2355. package/types/x-modules/query-suggestions/store/getters/query-suggestions.getter.d.ts +5 -5
  2356. package/types/x-modules/query-suggestions/store/getters/query-suggestions.getter.d.ts.map +1 -1
  2357. package/types/x-modules/query-suggestions/store/getters/request.getter.d.ts +1 -3
  2358. package/types/x-modules/query-suggestions/store/getters/request.getter.d.ts.map +1 -1
  2359. package/types/x-modules/query-suggestions/store/index.d.ts +2 -2
  2360. package/types/x-modules/query-suggestions/store/index.d.ts.map +1 -1
  2361. package/types/x-modules/query-suggestions/store/module.d.ts +1 -1
  2362. package/types/x-modules/query-suggestions/store/module.d.ts.map +1 -1
  2363. package/types/x-modules/query-suggestions/store/types.d.ts +15 -15
  2364. package/types/x-modules/query-suggestions/store/types.d.ts.map +1 -1
  2365. package/types/x-modules/query-suggestions/wiring.d.ts.map +1 -1
  2366. package/types/x-modules/query-suggestions/x-module.d.ts +2 -2
  2367. package/types/x-modules/query-suggestions/x-module.d.ts.map +1 -1
  2368. package/types/x-modules/recommendations/components/index.d.ts.map +1 -1
  2369. package/types/x-modules/recommendations/components/recommendations.vue.d.ts +5 -6
  2370. package/types/x-modules/recommendations/components/recommendations.vue.d.ts.map +1 -1
  2371. package/types/x-modules/recommendations/config.types.d.ts.map +1 -1
  2372. package/types/x-modules/recommendations/events.types.d.ts +1 -1
  2373. package/types/x-modules/recommendations/events.types.d.ts.map +1 -1
  2374. package/types/x-modules/recommendations/index.d.ts.map +1 -1
  2375. package/types/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts +2 -2
  2376. package/types/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts.map +1 -1
  2377. package/types/x-modules/recommendations/store/actions/fetch-recommendations.action.d.ts +1 -1
  2378. package/types/x-modules/recommendations/store/actions/fetch-recommendations.action.d.ts.map +1 -1
  2379. package/types/x-modules/recommendations/store/constants.d.ts.map +1 -1
  2380. package/types/x-modules/recommendations/store/emitters.d.ts.map +1 -1
  2381. package/types/x-modules/recommendations/store/getters/request.getter.d.ts +1 -1
  2382. package/types/x-modules/recommendations/store/getters/request.getter.d.ts.map +1 -1
  2383. package/types/x-modules/recommendations/store/index.d.ts.map +1 -1
  2384. package/types/x-modules/recommendations/store/module.d.ts +1 -1
  2385. package/types/x-modules/recommendations/store/module.d.ts.map +1 -1
  2386. package/types/x-modules/recommendations/store/types.d.ts +12 -12
  2387. package/types/x-modules/recommendations/store/types.d.ts.map +1 -1
  2388. package/types/x-modules/recommendations/wiring.d.ts.map +1 -1
  2389. package/types/x-modules/recommendations/x-module.d.ts +2 -2
  2390. package/types/x-modules/recommendations/x-module.d.ts.map +1 -1
  2391. package/types/x-modules/related-prompts/components/index.d.ts +4 -0
  2392. package/types/x-modules/related-prompts/components/index.d.ts.map +1 -0
  2393. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts +28 -0
  2394. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -0
  2395. package/types/x-modules/related-prompts/components/related-prompts-list.vue.d.ts +106 -0
  2396. package/types/x-modules/related-prompts/components/related-prompts-list.vue.d.ts.map +1 -0
  2397. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts +132 -0
  2398. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -0
  2399. package/types/x-modules/related-prompts/events.types.d.ts +50 -0
  2400. package/types/x-modules/related-prompts/events.types.d.ts.map +1 -0
  2401. package/types/x-modules/related-prompts/index.d.ts +6 -0
  2402. package/types/x-modules/related-prompts/index.d.ts.map +1 -0
  2403. package/types/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts +17 -0
  2404. package/types/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts.map +1 -0
  2405. package/types/x-modules/related-prompts/store/actions/fetch-related-prompts.action.d.ts +13 -0
  2406. package/types/x-modules/related-prompts/store/actions/fetch-related-prompts.action.d.ts.map +1 -0
  2407. package/types/x-modules/related-prompts/store/actions/set-url-params.action.d.ts +10 -0
  2408. package/types/x-modules/related-prompts/store/actions/set-url-params.action.d.ts.map +1 -0
  2409. package/types/x-modules/related-prompts/store/emitters.d.ts +11 -0
  2410. package/types/x-modules/related-prompts/store/emitters.d.ts.map +1 -0
  2411. package/types/x-modules/related-prompts/store/getters/index.d.ts +3 -0
  2412. package/types/x-modules/related-prompts/store/getters/index.d.ts.map +1 -0
  2413. package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts +13 -0
  2414. package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts.map +1 -0
  2415. package/types/x-modules/related-prompts/store/getters/request.getter.d.ts +14 -0
  2416. package/types/x-modules/related-prompts/store/getters/request.getter.d.ts.map +1 -0
  2417. package/types/x-modules/related-prompts/store/index.d.ts +6 -0
  2418. package/types/x-modules/related-prompts/store/index.d.ts.map +1 -0
  2419. package/types/x-modules/related-prompts/store/module.d.ts +8 -0
  2420. package/types/x-modules/related-prompts/store/module.d.ts.map +1 -0
  2421. package/types/x-modules/related-prompts/store/types.d.ts +125 -0
  2422. package/types/x-modules/related-prompts/store/types.d.ts.map +1 -0
  2423. package/types/x-modules/related-prompts/types.d.ts +10 -0
  2424. package/types/x-modules/related-prompts/types.d.ts.map +1 -0
  2425. package/types/x-modules/related-prompts/wiring.d.ts +42 -0
  2426. package/types/x-modules/related-prompts/wiring.d.ts.map +1 -0
  2427. package/types/x-modules/related-prompts/x-module.d.ts +16 -0
  2428. package/types/x-modules/related-prompts/x-module.d.ts.map +1 -0
  2429. package/types/x-modules/related-tags/components/index.d.ts.map +1 -1
  2430. package/types/x-modules/related-tags/components/related-tag.vue.d.ts +6 -6
  2431. package/types/x-modules/related-tags/components/related-tag.vue.d.ts.map +1 -1
  2432. package/types/x-modules/related-tags/components/related-tags.vue.d.ts +6 -6
  2433. package/types/x-modules/related-tags/components/related-tags.vue.d.ts.map +1 -1
  2434. package/types/x-modules/related-tags/config.types.d.ts.map +1 -1
  2435. package/types/x-modules/related-tags/events.types.d.ts +1 -1
  2436. package/types/x-modules/related-tags/events.types.d.ts.map +1 -1
  2437. package/types/x-modules/related-tags/index.d.ts.map +1 -1
  2438. package/types/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts +2 -2
  2439. package/types/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts.map +1 -1
  2440. package/types/x-modules/related-tags/store/actions/fetch-related-tags.action.d.ts +1 -1
  2441. package/types/x-modules/related-tags/store/actions/fetch-related-tags.action.d.ts.map +1 -1
  2442. package/types/x-modules/related-tags/store/actions/set-url-params.action.d.ts +4 -1
  2443. package/types/x-modules/related-tags/store/actions/set-url-params.action.d.ts.map +1 -1
  2444. package/types/x-modules/related-tags/store/actions/toggle-related-tag.action.d.ts +1 -2
  2445. package/types/x-modules/related-tags/store/actions/toggle-related-tag.action.d.ts.map +1 -1
  2446. package/types/x-modules/related-tags/store/emitters.d.ts.map +1 -1
  2447. package/types/x-modules/related-tags/store/getters/query.getter.d.ts +1 -3
  2448. package/types/x-modules/related-tags/store/getters/query.getter.d.ts.map +1 -1
  2449. package/types/x-modules/related-tags/store/getters/related-tags.getter.d.ts +1 -2
  2450. package/types/x-modules/related-tags/store/getters/related-tags.getter.d.ts.map +1 -1
  2451. package/types/x-modules/related-tags/store/getters/request.getter.d.ts +1 -3
  2452. package/types/x-modules/related-tags/store/getters/request.getter.d.ts.map +1 -1
  2453. package/types/x-modules/related-tags/store/index.d.ts +1 -1
  2454. package/types/x-modules/related-tags/store/index.d.ts.map +1 -1
  2455. package/types/x-modules/related-tags/store/module.d.ts +1 -1
  2456. package/types/x-modules/related-tags/store/module.d.ts.map +1 -1
  2457. package/types/x-modules/related-tags/store/types.d.ts +16 -16
  2458. package/types/x-modules/related-tags/store/types.d.ts.map +1 -1
  2459. package/types/x-modules/related-tags/wiring.d.ts.map +1 -1
  2460. package/types/x-modules/related-tags/x-module.d.ts +2 -2
  2461. package/types/x-modules/related-tags/x-module.d.ts.map +1 -1
  2462. package/types/x-modules/scroll/components/index.d.ts +2 -2
  2463. package/types/x-modules/scroll/components/index.d.ts.map +1 -1
  2464. package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts +2 -2
  2465. package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts.map +1 -1
  2466. package/types/x-modules/scroll/components/main-scroll.vue.d.ts.map +1 -1
  2467. package/types/x-modules/scroll/components/scroll-to-top.vue.d.ts +7 -7
  2468. package/types/x-modules/scroll/components/scroll-to-top.vue.d.ts.map +1 -1
  2469. package/types/x-modules/scroll/components/scroll.const.d.ts +2 -2
  2470. package/types/x-modules/scroll/components/scroll.const.d.ts.map +1 -1
  2471. package/types/x-modules/scroll/components/scroll.types.d.ts +2 -2
  2472. package/types/x-modules/scroll/components/scroll.types.d.ts.map +1 -1
  2473. package/types/x-modules/scroll/components/scroll.vue.d.ts +2 -2
  2474. package/types/x-modules/scroll/components/scroll.vue.d.ts.map +1 -1
  2475. package/types/x-modules/scroll/events.types.d.ts +9 -9
  2476. package/types/x-modules/scroll/events.types.d.ts.map +1 -1
  2477. package/types/x-modules/scroll/index.d.ts +1 -1
  2478. package/types/x-modules/scroll/index.d.ts.map +1 -1
  2479. package/types/x-modules/scroll/store/emitters.d.ts.map +1 -1
  2480. package/types/x-modules/scroll/store/index.d.ts.map +1 -1
  2481. package/types/x-modules/scroll/store/module.d.ts +1 -1
  2482. package/types/x-modules/scroll/store/module.d.ts.map +1 -1
  2483. package/types/x-modules/scroll/store/types.d.ts +6 -6
  2484. package/types/x-modules/scroll/store/types.d.ts.map +1 -1
  2485. package/types/x-modules/scroll/wiring.d.ts.map +1 -1
  2486. package/types/x-modules/scroll/x-module.d.ts +2 -2
  2487. package/types/x-modules/scroll/x-module.d.ts.map +1 -1
  2488. package/types/x-modules/search/components/banner.vue.d.ts +2 -2
  2489. package/types/x-modules/search/components/banner.vue.d.ts.map +1 -1
  2490. package/types/x-modules/search/components/banners-list.vue.d.ts +3 -3
  2491. package/types/x-modules/search/components/banners-list.vue.d.ts.map +1 -1
  2492. package/types/x-modules/search/components/fallback-disclaimer.vue.d.ts +2 -2
  2493. package/types/x-modules/search/components/fallback-disclaimer.vue.d.ts.map +1 -1
  2494. package/types/x-modules/search/components/index.d.ts +1 -1
  2495. package/types/x-modules/search/components/index.d.ts.map +1 -1
  2496. package/types/x-modules/search/components/partial-query-button.vue.d.ts.map +1 -1
  2497. package/types/x-modules/search/components/partial-results-list.vue.d.ts +4 -6
  2498. package/types/x-modules/search/components/partial-results-list.vue.d.ts.map +1 -1
  2499. package/types/x-modules/search/components/promoted.vue.d.ts +2 -2
  2500. package/types/x-modules/search/components/promoted.vue.d.ts.map +1 -1
  2501. package/types/x-modules/search/components/promoteds-list.vue.d.ts +3 -3
  2502. package/types/x-modules/search/components/promoteds-list.vue.d.ts.map +1 -1
  2503. package/types/x-modules/search/components/redirection.vue.d.ts +2 -2
  2504. package/types/x-modules/search/components/redirection.vue.d.ts.map +1 -1
  2505. package/types/x-modules/search/components/results-list.vue.d.ts +3 -3
  2506. package/types/x-modules/search/components/results-list.vue.d.ts.map +1 -1
  2507. package/types/x-modules/search/components/sort-dropdown.vue.d.ts +9 -8
  2508. package/types/x-modules/search/components/sort-dropdown.vue.d.ts.map +1 -1
  2509. package/types/x-modules/search/components/sort-list.vue.d.ts +10 -9
  2510. package/types/x-modules/search/components/sort-list.vue.d.ts.map +1 -1
  2511. package/types/x-modules/search/components/sort-picker-list.vue.d.ts +10 -9
  2512. package/types/x-modules/search/components/sort-picker-list.vue.d.ts.map +1 -1
  2513. package/types/x-modules/search/components/spellcheck-button.vue.d.ts +1 -1
  2514. package/types/x-modules/search/components/spellcheck-button.vue.d.ts.map +1 -1
  2515. package/types/x-modules/search/components/spellcheck.vue.d.ts +2 -2
  2516. package/types/x-modules/search/components/spellcheck.vue.d.ts.map +1 -1
  2517. package/types/x-modules/search/config.types.d.ts +2 -0
  2518. package/types/x-modules/search/config.types.d.ts.map +1 -1
  2519. package/types/x-modules/search/events.types.d.ts +6 -2
  2520. package/types/x-modules/search/events.types.d.ts.map +1 -1
  2521. package/types/x-modules/search/index.d.ts.map +1 -1
  2522. package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts +2 -2
  2523. package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -1
  2524. package/types/x-modules/search/store/actions/fetch-search-response.action.d.ts +1 -1
  2525. package/types/x-modules/search/store/actions/fetch-search-response.action.d.ts.map +1 -1
  2526. package/types/x-modules/search/store/actions/increase-page-apending-results.action.d.ts +1 -1
  2527. package/types/x-modules/search/store/actions/increase-page-apending-results.action.d.ts.map +1 -1
  2528. package/types/x-modules/search/store/actions/index.d.ts.map +1 -1
  2529. package/types/x-modules/search/store/actions/reset-request-on-refinement.action.d.ts +1 -2
  2530. package/types/x-modules/search/store/actions/reset-request-on-refinement.action.d.ts.map +1 -1
  2531. package/types/x-modules/search/store/actions/save-origin.action.d.ts +1 -2
  2532. package/types/x-modules/search/store/actions/save-origin.action.d.ts.map +1 -1
  2533. package/types/x-modules/search/store/actions/save-search-response.action.d.ts +1 -2
  2534. package/types/x-modules/search/store/actions/save-search-response.action.d.ts.map +1 -1
  2535. package/types/x-modules/search/store/actions/set-url-params.action.d.ts +1 -3
  2536. package/types/x-modules/search/store/actions/set-url-params.action.d.ts.map +1 -1
  2537. package/types/x-modules/search/store/emitters.d.ts.map +1 -1
  2538. package/types/x-modules/search/store/getters/index.d.ts +1 -1
  2539. package/types/x-modules/search/store/getters/index.d.ts.map +1 -1
  2540. package/types/x-modules/search/store/getters/query.getter.d.ts +1 -1
  2541. package/types/x-modules/search/store/getters/query.getter.d.ts.map +1 -1
  2542. package/types/x-modules/search/store/getters/request.getter.d.ts +1 -2
  2543. package/types/x-modules/search/store/getters/request.getter.d.ts.map +1 -1
  2544. package/types/x-modules/search/store/index.d.ts.map +1 -1
  2545. package/types/x-modules/search/store/module.d.ts +3 -1
  2546. package/types/x-modules/search/store/module.d.ts.map +1 -1
  2547. package/types/x-modules/search/store/types.d.ts +48 -40
  2548. package/types/x-modules/search/store/types.d.ts.map +1 -1
  2549. package/types/x-modules/search/types.d.ts +2 -2
  2550. package/types/x-modules/search/types.d.ts.map +1 -1
  2551. package/types/x-modules/search/wiring.d.ts +6 -2
  2552. package/types/x-modules/search/wiring.d.ts.map +1 -1
  2553. package/types/x-modules/search/x-module.d.ts +2 -2
  2554. package/types/x-modules/search/x-module.d.ts.map +1 -1
  2555. package/types/x-modules/search-box/components/clear-search-input.vue.d.ts +1 -1
  2556. package/types/x-modules/search-box/components/clear-search-input.vue.d.ts.map +1 -1
  2557. package/types/x-modules/search-box/components/index.d.ts +1 -1
  2558. package/types/x-modules/search-box/components/index.d.ts.map +1 -1
  2559. package/types/x-modules/search-box/components/search-button.vue.d.ts +2 -3
  2560. package/types/x-modules/search-box/components/search-button.vue.d.ts.map +1 -1
  2561. package/types/x-modules/search-box/components/search-input-placeholder.vue.d.ts +4 -4
  2562. package/types/x-modules/search-box/components/search-input-placeholder.vue.d.ts.map +1 -1
  2563. package/types/x-modules/search-box/components/search-input.vue.d.ts +1 -1
  2564. package/types/x-modules/search-box/components/search-input.vue.d.ts.map +1 -1
  2565. package/types/x-modules/search-box/events.types.d.ts +13 -13
  2566. package/types/x-modules/search-box/events.types.d.ts.map +1 -1
  2567. package/types/x-modules/search-box/index.d.ts.map +1 -1
  2568. package/types/x-modules/search-box/store/actions/set-input-status.action.d.ts +2 -2
  2569. package/types/x-modules/search-box/store/actions/set-input-status.action.d.ts.map +1 -1
  2570. package/types/x-modules/search-box/store/actions/set-url-params.action.d.ts +1 -2
  2571. package/types/x-modules/search-box/store/actions/set-url-params.action.d.ts.map +1 -1
  2572. package/types/x-modules/search-box/store/emitters.d.ts.map +1 -1
  2573. package/types/x-modules/search-box/store/index.d.ts.map +1 -1
  2574. package/types/x-modules/search-box/store/module.d.ts +1 -1
  2575. package/types/x-modules/search-box/store/module.d.ts.map +1 -1
  2576. package/types/x-modules/search-box/store/types.d.ts +7 -7
  2577. package/types/x-modules/search-box/store/types.d.ts.map +1 -1
  2578. package/types/x-modules/search-box/wiring.d.ts +1 -1
  2579. package/types/x-modules/search-box/wiring.d.ts.map +1 -1
  2580. package/types/x-modules/search-box/x-module.d.ts +2 -2
  2581. package/types/x-modules/search-box/x-module.d.ts.map +1 -1
  2582. package/types/x-modules/semantic-queries/components/index.d.ts.map +1 -1
  2583. package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts +1 -3
  2584. package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts.map +1 -1
  2585. package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts +3 -3
  2586. package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts.map +1 -1
  2587. package/types/x-modules/semantic-queries/config.types.d.ts.map +1 -1
  2588. package/types/x-modules/semantic-queries/events.types.d.ts +1 -1
  2589. package/types/x-modules/semantic-queries/events.types.d.ts.map +1 -1
  2590. package/types/x-modules/semantic-queries/index.d.ts +1 -1
  2591. package/types/x-modules/semantic-queries/index.d.ts.map +1 -1
  2592. package/types/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts +1 -1
  2593. package/types/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts.map +1 -1
  2594. package/types/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.d.ts +1 -1
  2595. package/types/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.d.ts.map +1 -1
  2596. package/types/x-modules/semantic-queries/store/actions/index.d.ts.map +1 -1
  2597. package/types/x-modules/semantic-queries/store/emitters.d.ts.map +1 -1
  2598. package/types/x-modules/semantic-queries/store/getters/index.d.ts +2 -1
  2599. package/types/x-modules/semantic-queries/store/getters/index.d.ts.map +1 -1
  2600. package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts +2 -2
  2601. package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts.map +1 -1
  2602. package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts +3 -2
  2603. package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts.map +1 -1
  2604. package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts +13 -0
  2605. package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts.map +1 -0
  2606. package/types/x-modules/semantic-queries/store/index.d.ts.map +1 -1
  2607. package/types/x-modules/semantic-queries/store/module.d.ts +1 -1
  2608. package/types/x-modules/semantic-queries/store/module.d.ts.map +1 -1
  2609. package/types/x-modules/semantic-queries/store/types.d.ts +24 -12
  2610. package/types/x-modules/semantic-queries/store/types.d.ts.map +1 -1
  2611. package/types/x-modules/semantic-queries/wiring.d.ts +3 -0
  2612. package/types/x-modules/semantic-queries/wiring.d.ts.map +1 -1
  2613. package/types/x-modules/semantic-queries/x-module.d.ts +2 -2
  2614. package/types/x-modules/semantic-queries/x-module.d.ts.map +1 -1
  2615. package/types/x-modules/tagging/components/index.d.ts.map +1 -1
  2616. package/types/x-modules/tagging/components/tagging.vue.d.ts +14 -12
  2617. package/types/x-modules/tagging/components/tagging.vue.d.ts.map +1 -1
  2618. package/types/x-modules/tagging/config.types.d.ts +3 -3
  2619. package/types/x-modules/tagging/config.types.d.ts.map +1 -1
  2620. package/types/x-modules/tagging/events.types.d.ts +4 -4
  2621. package/types/x-modules/tagging/events.types.d.ts.map +1 -1
  2622. package/types/x-modules/tagging/index.d.ts.map +1 -1
  2623. package/types/x-modules/tagging/service/{pdp-add-to-cart.service.d.ts → external-tagging.service.d.ts} +35 -17
  2624. package/types/x-modules/tagging/service/external-tagging.service.d.ts.map +1 -0
  2625. package/types/x-modules/tagging/service/index.d.ts +1 -1
  2626. package/types/x-modules/tagging/service/index.d.ts.map +1 -1
  2627. package/types/x-modules/tagging/service/types.d.ts +17 -8
  2628. package/types/x-modules/tagging/service/types.d.ts.map +1 -1
  2629. package/types/x-modules/tagging/store/actions/index.d.ts.map +1 -1
  2630. package/types/x-modules/tagging/store/actions/track.action.d.ts +1 -2
  2631. package/types/x-modules/tagging/store/actions/track.action.d.ts.map +1 -1
  2632. package/types/x-modules/tagging/store/emitters.d.ts.map +1 -1
  2633. package/types/x-modules/tagging/store/index.d.ts.map +1 -1
  2634. package/types/x-modules/tagging/store/module.d.ts +1 -1
  2635. package/types/x-modules/tagging/store/module.d.ts.map +1 -1
  2636. package/types/x-modules/tagging/store/types.d.ts +9 -9
  2637. package/types/x-modules/tagging/store/types.d.ts.map +1 -1
  2638. package/types/x-modules/tagging/wiring.d.ts +78 -7
  2639. package/types/x-modules/tagging/wiring.d.ts.map +1 -1
  2640. package/types/x-modules/tagging/x-module.d.ts +2 -2
  2641. package/types/x-modules/tagging/x-module.d.ts.map +1 -1
  2642. package/types/x-modules/url/components/index.d.ts.map +1 -1
  2643. package/types/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
  2644. package/types/x-modules/url/events.types.d.ts +6 -7
  2645. package/types/x-modules/url/events.types.d.ts.map +1 -1
  2646. package/types/x-modules/url/index.d.ts.map +1 -1
  2647. package/types/x-modules/url/store/emitters.d.ts +2 -2
  2648. package/types/x-modules/url/store/emitters.d.ts.map +1 -1
  2649. package/types/x-modules/url/store/getters/url-params.getter.d.ts +3 -5
  2650. package/types/x-modules/url/store/getters/url-params.getter.d.ts.map +1 -1
  2651. package/types/x-modules/url/store/index.d.ts.map +1 -1
  2652. package/types/x-modules/url/store/initial-state.d.ts +1 -1
  2653. package/types/x-modules/url/store/initial-state.d.ts.map +1 -1
  2654. package/types/x-modules/url/store/module.d.ts +1 -1
  2655. package/types/x-modules/url/store/module.d.ts.map +1 -1
  2656. package/types/x-modules/url/store/mutations/set-params.mutation.d.ts +1 -1
  2657. package/types/x-modules/url/store/mutations/set-params.mutation.d.ts.map +1 -1
  2658. package/types/x-modules/url/store/types.d.ts +18 -12
  2659. package/types/x-modules/url/store/types.d.ts.map +1 -1
  2660. package/types/x-modules/url/wiring.d.ts +9 -0
  2661. package/types/x-modules/url/wiring.d.ts.map +1 -1
  2662. package/types/x-modules/url/x-module.d.ts +2 -2
  2663. package/types/x-modules/url/x-module.d.ts.map +1 -1
  2664. package/types/x-modules/x-modules.types.d.ts +24 -22
  2665. package/types/x-modules/x-modules.types.d.ts.map +1 -1
  2666. package/url/index.js +1 -1
  2667. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.clickedresultstoragekey.md +0 -11
  2668. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.clickedresultstoragettlms.md +0 -11
  2669. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.instance.md +0 -13
  2670. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.localstorageservice.md +0 -11
  2671. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.md +0 -41
  2672. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.movetosessionstorage.md +0 -24
  2673. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.result_clicked_id_key.md +0 -13
  2674. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.sessionstorageservice.md +0 -11
  2675. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.storeresultclicked.md +0 -24
  2676. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.trackaddtocart.md +0 -24
  2677. package/docs/API-reference/api/x-components.pdpaddtocartservice.md +0 -22
  2678. package/docs/API-reference/api/x-components.querysuggestionsxevents.querysuggestionsdisplayed.md +0 -13
  2679. package/docs/API-reference/api/x-components.taggingconfig.clickedresultstoragettlms.md +0 -13
  2680. package/docs/API-reference/api/x-components.usestore.md +0 -19
  2681. package/docs/API-reference/api/x-components.xactioncontext.commit_1.md +0 -23
  2682. package/docs/API-reference/api/x-components.xactioncontext.dispatch_1.md +0 -23
  2683. package/docs/API-reference/api/x-components.xcomponentbusapi.emit_1.md +0 -25
  2684. package/docs/assets/features/overview-my-history.svg +0 -279
  2685. package/docs/assets/features/overview-product-results-card.svg +0 -128
  2686. package/docs/assets/interface/build-search-ui.svg +0 -167
  2687. package/docs/assets/interface/experience-search-intro.svg +0 -1
  2688. package/docs/assets/interface/integration-guide.svg +0 -1
  2689. package/docs/assets/interface/integration-video.png +0 -0
  2690. package/docs/assets/interface/x-architecture.svg +0 -1
  2691. package/docs/assets/interface/x-empathize.gif +0 -0
  2692. package/docs/assets/interface/x-facets.gif +0 -0
  2693. package/docs/assets/interface/x-facets.svg +0 -189
  2694. package/docs/assets/interface/x-history-queries.gif +0 -0
  2695. package/docs/assets/interface/x-id-results.gif +0 -0
  2696. package/docs/assets/interface/x-next-queries.gif +0 -0
  2697. package/docs/assets/interface/x-popular-searches.gif +0 -0
  2698. package/docs/assets/interface/x-query-suggestions.gif +0 -0
  2699. package/docs/assets/interface/x-recommendations.gif +0 -0
  2700. package/docs/assets/interface/x-recommendations.svg +0 -472
  2701. package/docs/assets/interface/x-related-tags.gif +0 -0
  2702. package/docs/assets/interface/x-results-layout.svg +0 -259
  2703. package/docs/assets/interface/x-search-box-elements.svg +0 -1
  2704. package/docs/assets/interface/x-search-box.svg +0 -60
  2705. package/docs/build-search-ui/README.md +0 -127
  2706. package/docs/build-search-ui/sidebar.js +0 -7
  2707. package/docs/build-search-ui/web-archetype-development-guide.md +0 -186
  2708. package/docs/build-search-ui/web-archetype-integration-guide.md +0 -458
  2709. package/docs/build-search-ui/web-how-to-use-x-components-guide.md +0 -200
  2710. package/docs/build-search-ui/web-x-architecture.md +0 -83
  2711. package/docs/build-search-ui/web-x-components-development-guide.md +0 -157
  2712. package/docs/experience-search-and-discovery/README.md +0 -132
  2713. package/docs/experience-search-and-discovery/empathize.md +0 -119
  2714. package/docs/experience-search-and-discovery/facets-and-filters.md +0 -154
  2715. package/docs/experience-search-and-discovery/history-queries.md +0 -70
  2716. package/docs/experience-search-and-discovery/id-results.md +0 -49
  2717. package/docs/experience-search-and-discovery/my-history.md +0 -60
  2718. package/docs/experience-search-and-discovery/next-queries.md +0 -72
  2719. package/docs/experience-search-and-discovery/popular-searches.md +0 -50
  2720. package/docs/experience-search-and-discovery/product-results-ui.md +0 -82
  2721. package/docs/experience-search-and-discovery/query-suggestions.md +0 -48
  2722. package/docs/experience-search-and-discovery/recommendations.md +0 -134
  2723. package/docs/experience-search-and-discovery/related-tags.md +0 -66
  2724. package/docs/experience-search-and-discovery/search-box.md +0 -99
  2725. package/docs/experience-search-and-discovery/serp-ui.md +0 -125
  2726. package/docs/experience-search-and-discovery/sidebar.js +0 -17
  2727. package/docs/experience-search-and-discovery/web-local-storage.md +0 -30
  2728. package/docs/input-status-machine-state.png +0 -0
  2729. package/js/composables/use-store.js +0 -15
  2730. package/js/composables/use-store.js.map +0 -1
  2731. package/js/utils/options-api.js +0 -4
  2732. package/js/utils/options-api.js.map +0 -1
  2733. package/js/x-modules/tagging/service/pdp-add-to-cart.service.js.map +0 -1
  2734. package/types/utils/options-api.d.ts +0 -3
  2735. package/types/utils/options-api.d.ts.map +0 -1
  2736. package/types/x-modules/tagging/service/pdp-add-to-cart.service.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/tagging/wiring.ts"],"sourcesContent":["import { SemanticQuery, Taggable, Tagging, TaggingRequest } from '@empathyco/x-types';\nimport { DefaultSessionService } from '@empathyco/x-utils';\nimport {\n namespacedWireCommit,\n namespacedWireDispatch\n} from '../../wiring/namespaced-wires.factory';\nimport { namespacedDebounce } from '../../wiring/namespaced-wires.operators';\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory';\nimport { filter, mapWire } from '../../wiring/wires.operators';\nimport { DisplayWireMetadata, Wire } from '../../wiring/wiring.types';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { createOrigin } from '../../utils/index';\nimport { FeatureLocation } from '../../types/index';\nimport { DefaultPDPAddToCartService } from './service/pdp-add-to-cart.service';\n\n/**\n * `tagging` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'tagging';\n\n/**\n * Debounce function for the module.\n */\nconst moduleDebounce = namespacedDebounce(moduleName);\n\n/**\n * WireCommit for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName);\n\n/**\n * WireDispatch for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName);\n\n/**\n * Wires without payload factory for {@link DefaultSessionService}.\n */\nconst wireSessionServiceWithoutPayload = wireServiceWithoutPayload(DefaultSessionService.instance);\n\n/**\n * Wires factory for {@link DefaultPDPAddToCartService}.\n */\nconst wirePDPAddToCartService = wireService(DefaultPDPAddToCartService.instance);\n\n/**\n * Stores the given result on the local storage.\n *\n * @public\n */\nconst storeClickedResultWire = wirePDPAddToCartService('storeResultClicked');\n\n/**\n * Moves the result information from the local storage to session storage.\n *\n * @public\n */\nconst moveClickedResultToSessionWire = mapWire(\n wirePDPAddToCartService('moveToSessionStorage'),\n (payload: string) => {\n return payload === 'url' ? undefined : payload;\n }\n);\n\n/**\n * Triggers the add to cart tracking.\n *\n * @public\n */\nconst trackAddToCartFromSessionStorage = wirePDPAddToCartService('trackAddToCart');\n\n/**\n * Clears the session id.\n *\n * @public\n */\nconst clearSessionWire = filter(\n wireSessionServiceWithoutPayload('clearSessionId'),\n ({ eventPayload: consent }) => !consent\n);\n\n/**\n * Sets the tagging state `consent`.\n *\n * @public\n */\nexport const setConsent = wireCommit('setConsent');\n\n/**\n * Sets the tagging state `noResultsTaggingEnabled`.\n *\n * @public\n */\nexport const setNoResultsTaggingEnabledWire = wireCommit('setNoResultsTaggingEnabled');\n\n/**\n * Sets the tagging config state.\n *\n * @public\n */\nexport const setTaggingConfig = wireCommit('mergeConfig');\n\n/**\n * Tracks the tagging of the query.\n *\n * @public\n */\nexport const trackQueryWire = filter(\n wireDispatch('track'),\n ({ eventPayload, store }) =>\n (eventPayload as TaggingRequest).params.totalHits > 0 ||\n !store.state.x.tagging.noResultsTaggingEnabled\n);\n\n/**\n * Sets the tagging state of the query tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setQueryTaggingInfo = moduleDebounce(\n wireCommit('setQueryTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: 'UserClearedQuery',\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd'\n ]\n }\n);\n\n/**\n * Sets the tagging state of the query tagging info using.\n *\n * @public\n */\nexport const setQueryTaggingFromQueryPreview = createSetQueryTaggingFromQueryPreview();\n\n/**\n * Tracks the tagging of the result.\n *\n * @public\n */\nexport const trackResultClickedWire = createTrackWire('click');\n\n/**\n * Tracks the tagging of the banner.\n *\n * @public\n */\nexport const trackBannerClickedWire = createTrackWire('click');\n\n/**\n * Performs a track of a result added to the cart.\n *\n * @public\n */\nexport const trackAddToCartWire = createTrackWire('add2cart');\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackDisplayClickedWire = createTrackDisplayWire('displayClick');\n\n/**\n * Performs a track of a display element appearing.\n *\n * @public\n */\nexport const trackElementDisplayedWire = createTrackDisplayWire('display');\n\n/**\n * Factory helper to create a wire for the track of a taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the taggable element.\n *\n * @public\n */\nexport function createTrackWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata: { location } }) => {\n const taggingInfo: TaggingRequest = tagging[property];\n taggingInfo.params.location = location as string;\n return taggingInfo;\n }),\n ({ eventPayload: { tagging }, metadata: { ignoreInModules } }) =>\n !!tagging?.[property] && !ignoreInModules?.includes(moduleName)\n );\n}\n\n/**\n * Performs a track of a query with no results that used semantics as fallback.\n * The totalHits will be changed to -1 if semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any semantic queries.\n *\n * @public\n */\nexport const trackNoResultsQueryWithSemanticsWire = filter(\n wireDispatch('track', ({ eventPayload, state }) => {\n const { queryTaggingInfo } = state;\n const totalHits = (eventPayload as SemanticQuery[]).length > 0 ? -1 : 0;\n return {\n params: { ...queryTaggingInfo?.params, totalHits },\n url: queryTaggingInfo?.url ?? ''\n };\n }),\n ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits)! === 0\n);\n\n/**.\n * Debounced version of {@link trackNoResultsQueryWithSemanticsWire}\n *\n * @public\n */\nexport const trackNoResultsQueryWithSemanticsWireDebounced = moduleDebounce(\n trackNoResultsQueryWithSemanticsWire,\n ({ state }) => state.config.queryTaggingDebounceMs,\n { cancelOn: 'QueryPreviewUnmounted' }\n);\n\n/**\n * Factory helper to create a wire for the track of the display click.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the display click of the taggable element.\n *\n * @public\n */\nexport function createTrackDisplayWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata }) => {\n const taggingInfo: TaggingRequest = tagging[property];\n const location = metadata.location as FeatureLocation;\n\n taggingInfo.params.location = location;\n taggingInfo.params.displayFamily = createOrigin({\n feature: metadata.feature,\n location\n })!;\n taggingInfo.params.q = (metadata as DisplayWireMetadata).displayOriginalQuery;\n\n return taggingInfo;\n }),\n ({ eventPayload: { tagging } }) => !!tagging?.[property]\n );\n}\n\n/**\n * Factory helper to create a wire to set the queryTagging.\n *\n * @returns A new wire for the query of a result of a queryPreview.\n *\n * @public\n */\nexport function createSetQueryTaggingFromQueryPreview(): Wire<Taggable> {\n return filter(\n wireCommit(\n 'setQueryTaggingInfo',\n ({ metadata: { queryTagging } }) => queryTagging as TaggingRequest\n ),\n ({ metadata: { queryTagging } }) => !!queryTagging\n );\n}\n\n/**\n * Wiring configuration for the {@link TaggingXModule | tagging module}.\n *\n * @internal\n */\nexport const taggingWiring = createWiring({\n ConsentProvided: {\n setConsent\n },\n ConsentChanged: {\n clearSessionWire\n },\n PDPIsLoaded: {\n moveClickedResultToSessionWire\n },\n ResultURLTrackingEnabled: {\n moveClickedResultToSessionWire\n },\n SearchTaggingChanged: {\n setQueryTaggingInfo\n },\n SearchTaggingReceived: {\n trackQueryWire\n },\n TrackableElementDisplayed: {\n trackElementDisplayedWire\n },\n TaggingConfigProvided: {\n setTaggingConfig\n },\n UserClickedAResult: {\n trackResultClickedWire,\n storeClickedResultWire\n },\n UserClickedResultAddToCart: {\n trackAddToCartWire,\n trackResultClickedWire\n },\n UserClickedPDPAddToCart: {\n trackAddToCartFromSessionStorage\n },\n UserClickedABanner: {\n trackBannerClickedWire\n },\n UserClickedADisplayResult: {\n trackDisplayClickedWire,\n setQueryTaggingFromQueryPreview\n },\n SemanticQueriesResponseChanged: {\n trackNoResultsQueryWithSemanticsWireDebounced\n },\n ModuleRegistered: {\n setNoResultsTaggingEnabledWire\n }\n});\n"],"names":[],"mappings":";;;;;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B;QAClB,sBAAsB;AACvB,KAAA;AACD,IAAA,uBAAuB,EAAE;QACvB,gCAAgC;AACjC,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;AACvB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,uBAAuB;QACvB,+BAA+B;AAChC,KAAA;AACD,IAAA,8BAA8B,EAAE;QAC9B,6CAA6C;AAC9C,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,8BAA8B;AAC/B,KAAA;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/tagging/wiring.ts"],"sourcesContent":["import type {\n RelatedPrompt,\n Result,\n SemanticQuery,\n Taggable,\n Tagging,\n TaggingRequest,\n} from '@empathyco/x-types'\nimport type { FeatureLocation } from '../../types/index'\nimport type { DisplayWireMetadata, Wire } from '../../wiring/wiring.types'\nimport { DefaultSessionService } from '@empathyco/x-utils'\nimport { createOrigin } from '../../utils/index'\nimport { namespacedWireCommit, namespacedWireDispatch } from '../../wiring/namespaced-wires.factory'\nimport { namespacedDebounce } from '../../wiring/namespaced-wires.operators'\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory'\nimport { filter, mapWire } from '../../wiring/wires.operators'\nimport { createWiring } from '../../wiring/wiring.utils'\nimport { DefaultExternalTaggingService } from './service/external-tagging.service'\n\n/**\n * `tagging` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'tagging'\n\n/**\n * Debounce function for the module.\n */\nconst moduleDebounce = namespacedDebounce(moduleName)\n\n/**\n * WireCommit for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName)\n\n/**\n * WireDispatch for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName)\n\n/**\n * Wires without payload factory for {@link DefaultSessionService}.\n */\nconst wireSessionServiceWithoutPayload = wireServiceWithoutPayload(DefaultSessionService.instance)\n\n/**\n * Wires factory for {@link DefaultExternalTaggingService}.\n */\nconst wireExternalTaggingService = wireService(DefaultExternalTaggingService.instance)\n\n/**\n * Stores the given result on the local storage.\n *\n * @public\n */\nconst storeClickedResultWire = wireExternalTaggingService('storeResultClicked')\n\n/**\n * Stores the result added to cart on the local storage.\n *\n * @public\n */\nconst storeAddToCartWire = wireExternalTaggingService('storeAddToCart')\n\n/**\n * Moves the result information from the local storage to session storage.\n *\n * @public\n */\nconst moveClickedResultToSessionWire = mapWire(\n wireExternalTaggingService('moveToSessionStorage'),\n (payload: string) => {\n return payload === 'url' ? undefined : payload\n },\n)\n\n/**\n * Triggers the add to cart tracking.\n *\n * @public\n */\nconst trackAddToCartFromSessionStorage = wireExternalTaggingService('trackAddToCart')\n\n/**\n * Clears the session id.\n *\n * @public\n */\nconst clearSessionWire = filter(\n wireSessionServiceWithoutPayload('clearSessionId'),\n ({ eventPayload: consent }) => !consent,\n)\n\n/**\n * Sets the tagging state `consent`.\n *\n * @public\n */\nexport const setConsent = wireCommit('setConsent')\n\n/**\n * Sets the tagging state `noResultsTaggingEnabled`.\n *\n * @public\n */\nexport const setNoResultsTaggingEnabledWire = wireCommit('setNoResultsTaggingEnabled')\n\n/**\n * Sets the tagging config state.\n *\n * @public\n */\nexport const setTaggingConfig = wireCommit('mergeConfig')\n\n/**\n * Tracks the tagging of the query.\n *\n * @public\n */\nexport const trackQueryWire = filter(\n wireDispatch('track'),\n ({ eventPayload, store }) =>\n ((eventPayload as TaggingRequest).params.totalHits as number) > 0 ||\n !store.state.x.tagging.noResultsTaggingEnabled,\n)\n\n/**\n * Sets the tagging state of the query tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setQueryTaggingInfo = moduleDebounce(\n wireCommit('setQueryTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: 'UserClearedQuery',\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd',\n ],\n },\n)\n\n/**\n * Sets the tagging state of the query tagging info using.\n *\n * @public\n */\nexport const setQueryTaggingFromQueryPreview = createSetQueryTaggingFromQueryPreview()\n\n/**\n * Tracks the tagging of the result.\n *\n * @public\n */\nexport const trackResultClickedWire = createTrackWire('click')\n\n/**\n * Tracks the tagging of the banner.\n *\n * @public\n */\nexport const trackBannerClickedWire = createTrackWire('click')\n\n/**\n * Performs a track of a result added to the cart.\n *\n * @public\n */\nexport const trackAddToCartWire = createTrackWire('add2cart')\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackDisplayClickedWire = createTrackDisplayWire('displayClick')\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackToolingDisplayClickedWire = createTrackToolingDisplayWire()\n\n/**\n * Performs a track of a display result being clicked.\n *\n * @public\n */\nexport const trackToolingAdd2CartWire = createTrackToolingAdd2CartWire()\n\n/**\n * Performs a track of a clicked related prompt.\n *\n * @public\n */\nexport const trackRelatedPromptToolingDisplayClickWire =\n createTrackRelatedPromptToolingDisplayClickWire()\n\n/**\n * Performs a track of a display element appearing.\n *\n * @public\n */\nexport const trackElementDisplayedWire = createTrackDisplayWire('display')\n\n/**\n * Factory helper to create a wire for the track of a taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the taggable element.\n *\n * @public\n */\nexport function createTrackWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata: { location } }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n taggingInfo.params.location = location as string\n return taggingInfo\n }),\n ({ eventPayload: { tagging }, metadata: { ignoreInModules } }) =>\n // eslint-disable-next-line ts/no-unsafe-member-access\n !!tagging?.[property] && !ignoreInModules?.includes(moduleName),\n )\n}\n\n/**\n * Performs a track of a query with no results that used related prompts or semantic queries as fallback.\n * The totalHits will be changed to -1 if related prompts or semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any related prompts or semantic queries.\n *\n * @public\n */\nexport const trackNoResultsQueryWithFallbackWire = filter(\n wireDispatch('track', ({ eventPayload, state }) => {\n const { queryTaggingInfo } = state\n const totalHits = (eventPayload as RelatedPrompt[] | SemanticQuery[]).length > 0 ? -1 : 0\n return {\n params: { ...queryTaggingInfo?.params, totalHits },\n url: queryTaggingInfo?.url ?? '',\n }\n }),\n ({ store }) => Number(store.state.x.tagging.queryTaggingInfo?.params.totalHits) === 0,\n)\n\n/**.\n * Debounced version of {@link trackNoResultsQueryWithFallbackWire}\n *\n * @public\n */\nexport const trackNoResultsQueryWithFallbackWireDebounced = moduleDebounce(\n trackNoResultsQueryWithFallbackWire,\n ({ state }) => state.config.queryTaggingDebounceMs,\n { cancelOn: ['QueryPreviewUnmounted', 'RelatedPromptsUnmounted'] },\n)\n\n/**\n * Performs a track of a query with no results that used semantic queries as fallback.\n * The totalHits will be changed to -1 if semantic queries are found in order to differentiate\n * it from scenarios where the user encounters a no-results page without any semantic queries.\n *\n * @public\n * @deprecated - Use {@link trackNoResultsQueryWithFallbackWire} instead.\n */\nexport const trackNoResultsQueryWithSemanticsWire = trackNoResultsQueryWithFallbackWire\n\n/**\n * Debounced version of {@link trackNoResultsQueryWithFallbackWire}\n *\n * @public\n * @deprecated - Use {@link trackNoResultsQueryWithFallbackWireDebounced} instead.\n */\nexport const trackNoResultsQueryWithSemanticsWireDebounced =\n trackNoResultsQueryWithFallbackWireDebounced\n\n/**\n * Factory helper to create a wire for the track of the display click.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the display click of the taggable element.\n *\n * @public\n */\nexport function createTrackDisplayWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata }) => {\n const taggingInfo: TaggingRequest = tagging[property]\n const location = metadata.location as FeatureLocation\n\n taggingInfo.params.location = location\n taggingInfo.params.displayFamily = createOrigin({\n feature: metadata.feature,\n location,\n })!\n taggingInfo.params.q = (metadata as DisplayWireMetadata).displayOriginalQuery\n\n return taggingInfo\n }),\n // eslint-disable-next-line ts/no-unsafe-member-access\n ({ eventPayload: { tagging } }) => !!tagging?.[property]?.url,\n )\n}\n\n/**\n * Update the tooling tagging params with the result information.\n *\n * @param taggingRequest - The tooling tagging request to be updated.\n * @param result - The clicked result.\n * @returns The tagging request updated.\n *\n * @internal\n */\nfunction updateToolingTaggingWithResult(\n taggingRequest: TaggingRequest,\n result: Result,\n): TaggingRequest {\n taggingRequest.params.productId = result.id\n taggingRequest.params.title = result.name!\n taggingRequest.params.url = result.url!\n\n return taggingRequest\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display click.\n *\n * @returns A new wire for the tooling display click of the taggable element.\n *\n * @public\n */\nexport function createTrackToolingDisplayWire(): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload, metadata }) => {\n const taggingInfo: TaggingRequest = metadata.toolingTagging as TaggingRequest\n const resultInfo = eventPayload as Result\n\n updateToolingTaggingWithResult(taggingInfo, resultInfo)\n\n return taggingInfo\n }),\n ({ metadata }) => !!metadata?.toolingTagging,\n )\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display add to cart.\n *\n * @returns A new wire for the tooling display add to cart of the taggable element.\n *\n * @public\n */\nexport function createTrackToolingAdd2CartWire(): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload, metadata }) => {\n const taggingInfo: TaggingRequest = metadata.toolingAdd2CartTagging as TaggingRequest\n const resultInfo = eventPayload as Result\n\n updateToolingTaggingWithResult(taggingInfo, resultInfo)\n\n return taggingInfo\n }),\n ({ metadata }) => !!metadata?.toolingAdd2CartTagging,\n )\n}\n\n/**\n * Factory helper to create a wire for the track of the tooling display click in a related prompt.\n *\n * @returns A new wire for the tooling display click of the taggable element.\n *\n * @public\n */\nexport function createTrackRelatedPromptToolingDisplayClickWire() {\n return filter(\n wireDispatch('track', ({ metadata }) => {\n const relatedPrompt = metadata.relatedPrompt as RelatedPrompt\n const taggingInfo = relatedPrompt.tagging!.toolingDisplayClickTagging as TaggingRequest\n\n taggingInfo.params.productId = 'EXPAND'\n taggingInfo.params.title = relatedPrompt.suggestionText\n taggingInfo.params.url = 'none'\n\n return taggingInfo\n }),\n ({ metadata }) => {\n const relatedPrompt = metadata.relatedPrompt as RelatedPrompt | undefined\n const isUnselected = metadata?.selectedPrompt === -1\n const taggingInfo = relatedPrompt?.tagging?.toolingDisplayClickTagging\n return isUnselected && !!taggingInfo\n },\n )\n}\n\n/**\n * Factory helper to create a wire to set the queryTagging.\n *\n * @returns A new wire for the query of a result of a queryPreview.\n *\n * @public\n */\nexport function createSetQueryTaggingFromQueryPreview(): Wire<Taggable> {\n return filter(\n wireCommit(\n 'setQueryTaggingInfo',\n ({ metadata: { queryTagging } }) => queryTagging as TaggingRequest,\n ),\n ({ metadata: { queryTagging } }) => !!queryTagging,\n )\n}\n\n/**\n * Wiring configuration for the {@link TaggingXModule | tagging module}.\n *\n * @internal\n */\nexport const taggingWiring = createWiring({\n ConsentProvided: {\n setConsent,\n },\n ConsentChanged: {\n clearSessionWire,\n },\n PDPIsLoaded: {\n moveClickedResultToSessionWire,\n },\n ResultURLTrackingEnabled: {\n moveClickedResultToSessionWire,\n },\n SearchTaggingChanged: {\n setQueryTaggingInfo,\n },\n SearchTaggingReceived: {\n trackQueryWire,\n },\n TrackableElementDisplayed: {\n trackElementDisplayedWire,\n },\n TaggingConfigProvided: {\n setTaggingConfig,\n },\n UserClickedAResult: {\n trackResultClickedWire,\n storeClickedResultWire,\n },\n UserClickedResultAddToCart: {\n trackAddToCartWire,\n trackResultClickedWire,\n storeAddToCartWire,\n },\n UserClickedPDPAddToCart: {\n trackAddToCartFromSessionStorage,\n },\n UserClickedABanner: {\n trackBannerClickedWire,\n },\n UserClickedADisplayResult: {\n trackDisplayClickedWire,\n setQueryTaggingFromQueryPreview,\n },\n SemanticQueriesResponseChanged: {\n trackNoResultsQueryWithFallbackWireDebounced,\n },\n RelatedPromptsResponseChanged: {\n trackNoResultsQueryWithFallbackWireDebounced,\n },\n ModuleRegistered: {\n setNoResultsTaggingEnabledWire,\n },\n UserClickedARelatedPromptResult: {\n trackToolingDisplayClickedWire,\n },\n UserClickedARelatedPromptAdd2Cart: {\n trackToolingAdd2CartWire,\n },\n UserSelectedARelatedPrompt: {\n trackRelatedPromptToolingDisplayClickWire,\n },\n})\n"],"names":[],"mappings":";;;;;;;;;;AAmBA;;;;AAIG;AACH,MAAM,UAAU,GAAG,SAAS,CAAA;AAE5B;;AAEG;AACH,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAA;AAErD;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAEnD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAA;AAEvD;;AAEG;AACH,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAA;AAElG;;AAEG;AACH,MAAM,0BAA0B,GAAG,WAAW,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAA;AAEtF;;;;AAIG;AACH,MAAM,sBAAsB,GAAG,0BAA0B,CAAC,oBAAoB,CAAC,CAAA;AAE/E;;;;AAIG;AACH,MAAM,kBAAkB,GAAG,0BAA0B,CAAC,gBAAgB,CAAC,CAAA;AAEvE;;;;AAIG;AACH,MAAM,8BAA8B,GAAG,OAAO,CAC5C,0BAA0B,CAAC,sBAAsB,CAAC,EAClD,CAAC,OAAe,KAAI;IAClB,OAAO,OAAO,KAAK,KAAK,GAAG,SAAS,GAAG,OAAO,CAAA;AAChD,CAAC,CACF,CAAA;AAED;;;;AAIG;AACH,MAAM,gCAAgC,GAAG,0BAA0B,CAAC,gBAAgB,CAAC,CAAA;AAErF;;;;AAIG;AACH,MAAM,gBAAgB,GAAG,MAAM,CAC7B,gCAAgC,CAAC,gBAAgB,CAAC,EAClD,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,CAAC,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B,gBAAgB;AACjB,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;QACtB,sBAAsB;AACvB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,kBAAkB;QAClB,sBAAsB;QACtB,kBAAkB;AACnB,KAAA;AACD,IAAA,uBAAuB,EAAE;QACvB,gCAAgC;AACjC,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;AACvB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,uBAAuB;QACvB,+BAA+B;AAChC,KAAA;AACD,IAAA,8BAA8B,EAAE;QAC9B,4CAA4C;AAC7C,KAAA;AACD,IAAA,6BAA6B,EAAE;QAC7B,4CAA4C;AAC7C,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,8BAA8B;AAC/B,KAAA;AACD,IAAA,+BAA+B,EAAE;QAC/B,8BAA8B;AAC/B,KAAA;AACD,IAAA,iCAAiC,EAAE;QACjC,wBAAwB;AACzB,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,yCAAyC;AAC1C,KAAA;AACF,CAAA;;;;"}
@@ -13,7 +13,7 @@ const taggingXModule = {
13
13
  name: 'tagging',
14
14
  storeModule: taggingXStoreModule,
15
15
  storeEmitters: taggingEmitters,
16
- wiring: taggingWiring
16
+ wiring: taggingWiring,
17
17
  };
18
18
  XPlugin.registerXModule(taggingXModule);
19
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"x-module.js","sources":["../../../../src/x-modules/tagging/x-module.ts"],"sourcesContent":["import { XModule } from '../x-modules.types';\nimport { XPlugin } from '../../plugins/x-plugin';\nimport { taggingEmitters } from './store/emitters';\nimport { taggingXStoreModule } from './store/module';\nimport { TaggingXStoreModule } from './store/types';\nimport { taggingWiring } from './wiring';\n\n/**\n * Tagging {@link XModule} alias.\n *\n * @public\n */\nexport type TaggingXModule = XModule<TaggingXStoreModule>;\n\n/**\n * Tagging {@link XModule} implementation. This module is auto-registered as soon as you\n * import any component from the `empathize` entry point.\n *\n * @public\n */\nexport const taggingXModule: TaggingXModule = {\n name: 'tagging',\n storeModule: taggingXStoreModule,\n storeEmitters: taggingEmitters,\n wiring: taggingWiring\n};\n\nXPlugin.registerXModule(taggingXModule);\n"],"names":[],"mappings":";;;;;AAcA;;;;;AAKG;AACU,MAAA,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,WAAW,EAAE,mBAAmB;AAChC,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,MAAM,EAAE,aAAa;EACrB;AAEF,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC;;;;"}
1
+ {"version":3,"file":"x-module.js","sources":["../../../../src/x-modules/tagging/x-module.ts"],"sourcesContent":["import type { XModule } from '../x-modules.types'\nimport type { TaggingXStoreModule } from './store/types'\nimport { XPlugin } from '../../plugins/x-plugin'\nimport { taggingEmitters } from './store/emitters'\nimport { taggingXStoreModule } from './store/module'\nimport { taggingWiring } from './wiring'\n\n/**\n * Tagging {@link XModule} alias.\n *\n * @public\n */\nexport type TaggingXModule = XModule<TaggingXStoreModule>\n\n/**\n * Tagging {@link XModule} implementation. This module is auto-registered as soon as you\n * import any component from the `empathize` entry point.\n *\n * @public\n */\nexport const taggingXModule: TaggingXModule = {\n name: 'tagging',\n storeModule: taggingXStoreModule,\n storeEmitters: taggingEmitters,\n wiring: taggingWiring,\n}\n\nXPlugin.registerXModule(taggingXModule)\n"],"names":[],"mappings":";;;;;AAcA;;;;;AAKG;AACU,MAAA,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,WAAW,EAAE,mBAAmB;AAChC,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,MAAM,EAAE,aAAa;EACtB;AAED,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC;;;;"}
@@ -5,9 +5,9 @@ import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.js';
5
5
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
6
  const _component_GlobalEvents = resolveComponent("GlobalEvents");
7
7
  return openBlock(), createBlock(_component_GlobalEvents, {
8
+ target: "window",
8
9
  onPageshow: _ctx.onPageShow,
9
- onPopstate: _ctx.emitEvents,
10
- target: "window"
10
+ onPopstate: _ctx.emitEvents
11
11
  }, null, 8, ["onPageshow", "onPopstate"]);
12
12
  }
13
13
  var urlHandler = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -1 +1 @@
1
- {"version":3,"file":"url-handler.vue.js","sources":["../../../../../src/x-modules/url/components/url-handler.vue"],"sourcesContent":["<template>\n <GlobalEvents @pageshow=\"onPageShow\" @popstate=\"emitEvents\" target=\"window\" />\n</template>\n\n<script lang=\"ts\">\n import { Dictionary, objectFilter } from '@empathyco/x-utils';\n import { computed, defineComponent, inject, onMounted, ref } from 'vue';\n import { GlobalEvents } from 'vue-global-events';\n import { FeatureLocation } from '../../../types/origin';\n import { UrlParams } from '../../../types/url-params';\n import { isArrayEmpty } from '../../../utils/array';\n import { WireMetadata } from '../../../wiring/wiring.types';\n import { SnippetConfig } from '../../../x-installer/api/api.types';\n import { initialUrlState } from '../store/initial-state';\n import { UrlParamValue } from '../store/types';\n import { urlXModule } from '../x-module';\n import { use$x } from '../../../composables/use-$x';\n import { useState } from '../../../composables/use-state';\n\n interface ParsedUrlParams {\n all: UrlParams;\n extra: Dictionary<unknown>;\n }\n\n /**\n * This component manages the browser URL parameters to preserve them through reloads and browser\n * history navigation. It allow to configure the default url parameter names using its attributes.\n * This component doesn't render elements to the DOM.\n *\n * @public\n */\n export default defineComponent({\n name: 'UrlHandler',\n components: {\n GlobalEvents\n },\n xModule: urlXModule.name,\n setup: function (props, { attrs }) {\n const $x = use$x();\n\n const initialExtraParams = useState('url', ['initialExtraParams']).initialExtraParams;\n\n /**\n * The {@link SnippetConfig} provided by an ancestor.\n *\n * @internal\n */\n const snippetConfig = inject<SnippetConfig | undefined>('snippetConfig');\n\n /**\n * Flag to know if the params were already loaded from the URL.\n *\n * @internal\n */\n const urlLoaded = ref(false);\n\n /**\n * The page URL. It is used to compare against the current URL to check navigation state.\n *\n * @internal\n */\n const url = ref<URL | undefined>(undefined);\n\n /**\n * Flag to know if the page has been persisted by the browser's back-forward cache.\n *\n * @internal\n */\n const isPagePersisted = ref(false);\n\n /**\n * Computed to know which params we must get from URL. It gets the params names from the initial\n * state, to get all default params names, and also from the `$attrs` to get the extra params\n * names to take into account.\n *\n * @returns An array with the name of the params.\n *\n * @internal\n */\n const managedParamsNames = computed(() => {\n return Object.keys({ ...initialUrlState, ...attrs });\n });\n\n /**\n * Returns the mapping of the param keys used in the URL is configured through $attrs. This way\n * we can support any param and extra param, no matters its name.\n *\n * @param paramName - The param name to get the Url key.\n * @returns The key used in the URL for the `paramName` passed.\n *\n * @internal\n */\n const getUrlKey = (paramName: string): string => {\n const paramValue = attrs[paramName];\n return typeof paramValue === 'string' ? paramValue : paramName;\n };\n\n /**\n * Deletes all the parameters in the passed URL.\n *\n * @param url - The URL to remove parameters from.\n * @internal\n */\n const deleteUrlParameters = (url: URL): void => {\n managedParamsNames.value.forEach(paramName =>\n url.searchParams.delete(getUrlKey(paramName))\n );\n };\n\n /**\n * Sorts the params in a tuple array [key,value] to generate always the same URL with the params\n * in the same order.\n *\n * @param urlParams - The {@link UrlParams} to sort.\n * @returns An array of tuples with the key-value of each paramter, sorted by key.\n * @internal\n */\n const sortParams = (urlParams: UrlParams): Array<[string, unknown]> => {\n return Object.entries(urlParams).sort(([param1], [param2]) => {\n return param1 < param2 ? -1 : 1;\n });\n };\n\n /**\n * Set all the provided parameters to the url with the mapped key.\n *\n * @param url - The current URL.\n * @param urlParams - The list of parameters to add.\n * @remarks The params are filtered because there maybe received extra params which will not be\n * managed by URL. This is defined by the `managedParamsNames` computed. Also, the parameters\n * are sorted Alphabetically to produce always the same URL with the same parameters.This is\n * important for SEO purposes.\n *\n * @internal\n */\n const setUrlParameters = (url: URL, urlParams: UrlParams): void => {\n // Only when there is a query the rest of the parameters are valid.\n if (!urlParams.query) {\n return;\n }\n const filteredParams = objectFilter(urlParams, paramName =>\n managedParamsNames.value.includes(paramName as string)\n );\n const sortedParameters = sortParams(filteredParams);\n sortedParameters.forEach(([paramName, paramValue]) => {\n const urlParamKey = getUrlKey(paramName);\n if (Array.isArray(paramValue)) {\n paramValue.forEach(value => {\n url.searchParams.append(urlParamKey, String(value));\n });\n } else {\n url.searchParams.set(urlParamKey, String(paramValue));\n }\n });\n };\n\n /**\n * Updates the browser URL with the passed `newUrlParams` and using the browser history method\n * passed as `historyMethod`. It only updates the browser history if the new URL is different\n * from the current.\n *\n * @param newUrlParams - The new params to add to the browser URL.\n * @param historyMethod - The browser history method used to add the new URL.\n *\n * @internal\n */\n const updateUrl = (\n newUrlParams: UrlParams,\n historyMethod: History['pushState'] | History['replaceState']\n ): void => {\n if (urlLoaded.value) {\n const newUrl = new URL(window.location.href);\n deleteUrlParameters(newUrl);\n setUrlParameters(newUrl, newUrlParams);\n\n newUrl.href = newUrl.href.replace(/\\+/g, '%20');\n\n if (newUrl.href !== window.location.href) {\n historyMethod({ ...window.history.state }, document.title, newUrl.href);\n }\n url.value = newUrl;\n }\n };\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `pushState` method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('PushableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.pushState.bind(window.history));\n });\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `replaceState`\n * method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('ReplaceableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.replaceState.bind(window.history));\n });\n\n /**\n * Handler of the\n * [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event)\n * event.\n *\n * @remarks The pageshow event is listened to check if the browser has performed a navigation\n * using the back-forward cache. This information is available in the\n * PageTransitionEvent.persisted property.\n *\n * @param event - The page transition event.\n * @internal\n */\n const onPageShow = (event: PageTransitionEvent) => {\n isPagePersisted.value = event.persisted;\n if (event.persisted) {\n // The internal url is reset due to the back-forward cache storing the previous value which\n // is no longer valid.\n url.value = undefined;\n }\n };\n\n /**\n * Returns the URL param value parsed depending on its type in the initial store state. As we\n * can not know what type can have an extra param, all extra params are parsed as strings. We\n * know if it is an extra param because it is not in the initial state.\n *\n * @param name - The name of the param in {@link UrlParams}.\n * @param value - The `URLSearchParams` value as an arry of strings.\n * @returns The parsed value.\n *\n * @internal\n */\n const parseUrlParam = (name: string, value: string[]): UrlParamValue => {\n switch (typeof initialUrlState[name]) {\n case 'number':\n return Number(value[0]);\n case 'boolean':\n return value[0].toLowerCase() === 'true';\n case 'string':\n return value[0];\n default:\n // array\n return value;\n }\n };\n\n /**\n * Gets the {@link UrlParams} from the URL, including only the params defined by `paramsNames`.\n *\n * @returns ParsedUrlParams obtained from URL.\n * @internal\n */\n const parseUrlParams = (): ParsedUrlParams => {\n const urlSearchParams = new URL(window.location.href).searchParams;\n return managedParamsNames.value.reduce<ParsedUrlParams>(\n (params, name) => {\n const urlKey = getUrlKey(name);\n if (urlSearchParams.has(urlKey)) {\n if (name in initialUrlState) {\n const urlValue = urlSearchParams.getAll(urlKey);\n params.all[name] = parseUrlParam(name, urlValue);\n } else {\n params.all[name] = params.extra[name] = urlSearchParams.get(urlKey);\n }\n }\n return params;\n },\n { all: { ...initialUrlState }, extra: { ...initialExtraParams.value } }\n );\n };\n\n /**\n * Check if the navigation is from a product page.\n *\n * @remarks Due to Safari 14 not supporting the new and standard PerformanceNavigationTiming\n * API, we are falling back to the deprecated one, PerformanceNavigation. We also fallback to\n * this API whenever we get a navigationType equal to reload, because Safari has a bug that the\n * navigationType is permanently set to reload after you have reload the page and it never\n * resets. As some browsers have a back-forward cache implemented, we also take into account if\n * the page is persisted.\n *\n * @returns True if the navigation is from a product page, false otherwise.\n * @internal\n */\n const isNavigatingFromPdp = (): boolean => {\n const isPagePersistedValue = isPagePersisted.value;\n const navigationEntries = window.performance.getEntriesByType('navigation');\n const navigationType = (navigationEntries[0] as PerformanceNavigationTiming)?.type;\n const useFallbackStrategy =\n !navigationEntries.length &&\n (isArrayEmpty(navigationEntries) || navigationType === 'reload');\n\n // Reset internal isPagePersisted property value\n isPagePersisted.value = false;\n\n if (useFallbackStrategy) {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate';\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue;\n } else {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate';\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue;\n }\n };\n\n /**\n * Detects the {@link FeatureLocation} used to build the\n * {@link QueryOriginInit} data.\n *\n * @returns The {@link FeatureLocation}.\n * @internal\n */\n const detectLocation = (): FeatureLocation => {\n const currentUrl = new URL(window.location.href);\n const previousUrl = url.value;\n url.value = currentUrl;\n\n const isInternalNavigation =\n previousUrl?.search !== currentUrl.search &&\n previousUrl?.pathname === currentUrl.pathname;\n if (isInternalNavigation) {\n return 'url_history';\n }\n\n if (isNavigatingFromPdp()) {\n return 'url_history_pdp';\n }\n\n return 'external';\n };\n\n /**\n * Creates the wire metadata to include in every emitted {@link XEvent}.\n *\n * @returns The {@link WireMetadata}.\n * @internal\n */\n const createWireMetadata = (): Pick<WireMetadata, 'feature' | 'location'> => {\n return {\n feature: 'url',\n location: detectLocation()\n };\n };\n\n /**\n * Emits the {@link UrlXEvents.ParamsLoadedFromUrl} XEvent,\n * the {@link UrlXEvents.ExtraParamsLoadedFromUrl} XEvent and, if there is query, also emits\n * the {@link XEventsTypes.UserOpenXProgrammatically}.\n *\n * @internal\n */\n const emitEvents = () => {\n const { all, extra } = parseUrlParams();\n const metadata = createWireMetadata();\n $x.emit('ParamsLoadedFromUrl', all, metadata);\n $x.emit('ExtraParamsLoadedFromUrl', extra, metadata);\n if (all.query) {\n $x.emit('UserOpenXProgrammatically', undefined, metadata);\n }\n urlLoaded.value = true;\n };\n\n /**\n * To emit the Url events just when the URL is load, and before the components mounted events\n * and state changes, we do it in the created of this component.\n */\n onMounted(() => {\n emitEvents();\n });\n\n return {\n onPageShow,\n emitEvents\n };\n }\n });\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`ParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`ExtraParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`UserOpenXProgrammatically`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n\n## See it in action\n\nThis component manages the browser URL parameters to preserve them through reloads and browser\nhistory navigation. It allow to configure the default url parameter names using its attributes. This\ncomponent doesn't render elements to the DOM.\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler />\n</template>\n\n<script>\n import { UrlHandler } from '@empathyco/x-components/url-handler';\n\n export default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler\n }\n };\n</script>\n```\n\n### Play with props\n\nIn this example, the `UrlHandler` component changes the following query parameter names:\n\n- `query` to be `q`.\n- `page` to be `p`.\n- `filter` to be `f`\n- `sort` to be `s`\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler query=\"q\" page=\"p\" filter=\"f\" sort=\"s\" />\n</template>\n\n<script>\n import { UrlHandler } from '@empathyco/x-components/url-handler';\n\n export default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler\n }\n };\n</script>\n```\n\n### Play with events\n\nThe `UrlHandler` will emit the `ParamsLoadedFromUrl` when the page is loaded.\n\nThe `UrlHandler` will emit the `ExtraParamsLoadedFromUrl` when the page is loaded with an extra\nparam configured and with a value in URL.\n\nThe `UrlHandler` will emit the `UserOpenXProgrammatically` when the page is loaded with a query in\nthe URL.\n</docs>\n"],"names":["_resolveComponent","_openBlock","_createBlock"],"mappings":";;;;;kCACEA,gBAA8E,CAAA,cAAA,CAAA,CAAA;AAAxC,EAAA,OAAAC,SAAA,EAAoB,EAAAC,WAAA,CAAA,uBAAA,EAAA;AAAA,IAAE,YAAO,IAAQ,CAAA,UAAA;AAAA,IAAA,UAAA,EAAA,IAAA,CAAA,UAAA;;;;;;;;"}
1
+ {"version":3,"file":"url-handler.vue.js","sources":["../../../../../src/x-modules/url/components/url-handler.vue"],"sourcesContent":["<template>\n <GlobalEvents target=\"window\" @pageshow=\"onPageShow\" @popstate=\"emitEvents\" />\n</template>\n\n<script lang=\"ts\">\nimport type { Dictionary } from '@empathyco/x-utils'\nimport type { FeatureLocation } from '../../../types/origin'\nimport type { UrlParams } from '../../../types/url-params'\nimport type { WireMetadata } from '../../../wiring/wiring.types'\nimport type { SnippetConfig } from '../../../x-installer/api/api.types'\nimport type { UrlParamValue } from '../store/types'\nimport { objectFilter } from '@empathyco/x-utils'\nimport { computed, defineComponent, inject, onMounted, ref } from 'vue'\nimport { GlobalEvents } from 'vue-global-events'\nimport { use$x } from '../../../composables/use-$x'\nimport { useState } from '../../../composables/use-state'\nimport { isArrayEmpty } from '../../../utils/array'\nimport { initialUrlState } from '../store/initial-state'\nimport { urlXModule } from '../x-module'\n\ninterface ParsedUrlParams {\n all: UrlParams\n extra: Dictionary<unknown>\n}\n\n/**\n * This component manages the browser URL parameters to preserve them through reloads and browser\n * history navigation. It allow to configure the default url parameter names using its attributes.\n * This component doesn't render elements to the DOM.\n *\n * @public\n */\nexport default defineComponent({\n name: 'UrlHandler',\n components: {\n GlobalEvents,\n },\n xModule: urlXModule.name,\n setup(_, { attrs }) {\n const $x = use$x()\n\n const { initialExtraParams } = useState('url')\n\n /**\n * The {@link SnippetConfig} provided by an ancestor.\n *\n * @internal\n */\n const snippetConfig = inject<SnippetConfig | undefined>('snippetConfig')\n\n /**\n * Flag to know if the params were already loaded from the URL.\n *\n * @internal\n */\n const urlLoaded = ref(false)\n\n /**\n * The page URL. It is used to compare against the current URL to check navigation state.\n *\n * @internal\n */\n const url = ref<URL | undefined>(undefined)\n\n /**\n * Flag to know if the page has been persisted by the browser's back-forward cache.\n *\n * @internal\n */\n const isPagePersisted = ref(false)\n\n /**\n * Computed to know which params we must get from URL. It gets the params names from the initial\n * state, to get all default params names, and also from the `$attrs` to get the extra params\n * names to take into account.\n *\n * @returns An array with the name of the params.\n *\n * @internal\n */\n const managedParamsNames = computed(() => Object.keys({ ...initialUrlState, ...attrs }))\n\n /**\n * Returns the mapping of the param keys used in the URL is configured through $attrs. This way\n * we can support any param and extra param, no matters its name.\n *\n * @param paramName - The param name to get the Url key.\n * @returns The key used in the URL for the `paramName` passed.\n *\n * @internal\n */\n const getUrlKey = (paramName: string) => {\n const paramValue = attrs[paramName]\n return typeof paramValue === 'string' ? paramValue : paramName\n }\n\n /**\n * Deletes all the parameters in the passed URL.\n *\n * @param url - The URL to remove parameters from.\n * @internal\n */\n const deleteUrlParameters = (url: URL) => {\n managedParamsNames.value.forEach(paramName => url.searchParams.delete(getUrlKey(paramName)))\n }\n\n /**\n * Sorts the params in a tuple array [key,value] to generate always the same URL with the params\n * in the same order.\n *\n * @param urlParams - The {@link UrlParams} to sort.\n * @returns An array of tuples with the key-value of each paramter, sorted by key.\n * @internal\n */\n const sortParams = (urlParams: UrlParams): Array<[string, unknown]> => {\n return Object.entries(urlParams).sort(([param1], [param2]) => {\n return param1 < param2 ? -1 : 1\n })\n }\n\n /**\n * Set all the provided parameters to the url with the mapped key.\n *\n * @param url - The current URL.\n * @param urlParams - The list of parameters to add.\n * @remarks The params are filtered because there maybe received extra params which will not be\n * managed by URL. This is defined by the `managedParamsNames` computed. Also, the parameters\n * are sorted Alphabetically to produce always the same URL with the same parameters.This is\n * important for SEO purposes.\n *\n * @internal\n */\n const setUrlParameters = (url: URL, urlParams: UrlParams): void => {\n // Only when there is a query the rest of the parameters are valid.\n if (!urlParams.query) {\n return\n }\n const filteredParams = objectFilter(urlParams, paramName =>\n managedParamsNames.value.includes(paramName as string),\n )\n const sortedParameters = sortParams(filteredParams)\n sortedParameters.forEach(([paramName, paramValue]) => {\n const urlParamKey = getUrlKey(paramName)\n if (Array.isArray(paramValue)) {\n paramValue.forEach(value => {\n url.searchParams.append(urlParamKey, String(value))\n })\n } else {\n url.searchParams.set(urlParamKey, String(paramValue))\n }\n })\n }\n\n /**\n * Updates the browser URL with the passed `newUrlParams` and using the browser history method\n * passed as `historyMethod`. It only updates the browser history if the new URL is different\n * from the current.\n *\n * @param newUrlParams - The new params to add to the browser URL.\n * @param historyMethod - The browser history method used to add the new URL.\n *\n * @internal\n */\n const updateUrl = (\n newUrlParams: UrlParams,\n historyMethod: History['pushState'] | History['replaceState'],\n ): void => {\n if (urlLoaded.value) {\n const newUrl = new URL(window.location.href)\n deleteUrlParameters(newUrl)\n setUrlParameters(newUrl, newUrlParams)\n\n // Normalize '+' characters into '%20' for spaces in url params.\n newUrl.search = newUrl.search.replace(/\\+/g, '%20')\n\n if (newUrl.href !== window.location.href) {\n historyMethod({ ...window.history.state }, document.title, newUrl.href)\n }\n url.value = newUrl\n }\n }\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `pushState` method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('PushableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.pushState.bind(window.history))\n })\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `replaceState`\n * method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('ReplaceableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.replaceState.bind(window.history))\n })\n\n /**\n * Handler of the\n * [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event)\n * event.\n *\n * @remarks The pageshow event is listened to check if the browser has performed a navigation\n * using the back-forward cache. This information is available in the\n * PageTransitionEvent.persisted property.\n *\n * @param event - The page transition event.\n * @internal\n */\n const onPageShow = (event: PageTransitionEvent) => {\n isPagePersisted.value = event.persisted\n if (event.persisted) {\n // The internal url is reset due to the back-forward cache storing the previous value which\n // is no longer valid.\n url.value = undefined\n }\n }\n\n /**\n * Returns the URL param value parsed depending on its type in the initial store state. As we\n * can not know what type can have an extra param, all extra params are parsed as strings. We\n * know if it is an extra param because it is not in the initial state.\n *\n * @param name - The name of the param in {@link UrlParams}.\n * @param value - The `URLSearchParams` value as an arry of strings.\n * @returns The parsed value.\n *\n * @internal\n */\n const parseUrlParam = (name: string, value: string[]): UrlParamValue => {\n switch (typeof initialUrlState[name]) {\n case 'number':\n return Number(value[0])\n case 'boolean':\n return value[0].toLowerCase() === 'true'\n case 'string':\n return value[0]\n default:\n // array\n return value\n }\n }\n\n /**\n * Gets the {@link UrlParams} from the URL, including only the params defined by `paramsNames`.\n *\n * @returns ParsedUrlParams obtained from URL.\n * @internal\n */\n const parseUrlParams = (): ParsedUrlParams => {\n const urlSearchParams = new URL(window.location.href).searchParams\n return managedParamsNames.value.reduce<ParsedUrlParams>(\n (params, name) => {\n const urlKey = getUrlKey(name)\n if (urlSearchParams.has(urlKey)) {\n if (name in initialUrlState) {\n const urlValue = urlSearchParams.getAll(urlKey)\n params.all[name] = parseUrlParam(name, urlValue)\n } else {\n params.all[name] = params.extra[name] = urlSearchParams.get(urlKey)\n }\n }\n return params\n },\n { all: { ...initialUrlState }, extra: { ...initialExtraParams.value } },\n )\n }\n\n /**\n * Check if the navigation is from a product page.\n *\n * @remarks Due to Safari 14 not supporting the new and standard PerformanceNavigationTiming\n * API, we are falling back to the deprecated one, PerformanceNavigation. We also fallback to\n * this API whenever we get a navigationType equal to reload, because Safari has a bug that the\n * navigationType is permanently set to reload after you have reload the page and it never\n * resets. As some browsers have a back-forward cache implemented, we also take into account if\n * the page is persisted.\n *\n * @returns True if the navigation is from a product page, false otherwise.\n * @internal\n */\n const isNavigatingFromPdp = (): boolean => {\n const isPagePersistedValue = isPagePersisted.value\n const navigationEntries = window.performance.getEntriesByType('navigation')\n const navigationType = (navigationEntries[0] as PerformanceNavigationTiming)?.type\n const useFallbackStrategy =\n !navigationEntries.length &&\n (isArrayEmpty(navigationEntries) || navigationType === 'reload')\n\n // Reset internal isPagePersisted property value\n isPagePersisted.value = false\n\n if (useFallbackStrategy) {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate'\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue\n } else {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate'\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue\n }\n }\n\n /**\n * Detects the {@link FeatureLocation} used to build the\n * {@link QueryOriginInit} data.\n *\n * @returns The {@link FeatureLocation}.\n * @internal\n */\n const detectLocation = (): FeatureLocation => {\n const currentUrl = new URL(window.location.href)\n const previousUrl = url.value\n url.value = currentUrl\n\n const isInternalNavigation =\n previousUrl?.search !== currentUrl.search && previousUrl?.pathname === currentUrl.pathname\n if (isInternalNavigation) {\n return 'url_history'\n }\n\n if (isNavigatingFromPdp()) {\n return 'url_history_pdp'\n }\n\n return 'external'\n }\n\n /**\n * Creates the wire metadata to include in every emitted {@link XEvent}.\n *\n * @returns The {@link WireMetadata}.\n * @internal\n */\n const createWireMetadata = (): Pick<WireMetadata, 'feature' | 'location'> => {\n return {\n feature: 'url',\n location: detectLocation(),\n }\n }\n\n /**\n * Emits the {@link UrlXEvents.ParamsLoadedFromUrl} XEvent,\n * the {@link UrlXEvents.ExtraParamsLoadedFromUrl} XEvent and, if there is query, also emits\n * the {@link XEventsTypes.UserOpenXProgrammatically}.\n *\n * @internal\n */\n const emitEvents = () => {\n const { all, extra } = parseUrlParams()\n const metadata = createWireMetadata()\n $x.emit('ParamsLoadedFromUrl', all, metadata)\n $x.emit('ExtraParamsLoadedFromUrl', extra, metadata)\n if (all.query) {\n $x.emit('UserOpenXProgrammatically', undefined, metadata)\n }\n urlLoaded.value = true\n }\n\n /**\n * To emit the Url events just when the URL is load, and before the components mounted events\n * and state changes, we do it in the created of this component.\n */\n onMounted(() => {\n emitEvents()\n })\n\n return {\n onPageShow,\n emitEvents,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`ParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`ExtraParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`UserOpenXProgrammatically`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n\n## See it in action\n\nThis component manages the browser URL parameters to preserve them through reloads and browser\nhistory navigation. It allow to configure the default url parameter names using its attributes. This\ncomponent doesn't render elements to the DOM.\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler />\n</template>\n\n<script>\nimport { UrlHandler } from '@empathyco/x-components/url-handler'\n\nexport default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler,\n },\n}\n</script>\n```\n\n### Play with props\n\nIn this example, the `UrlHandler` component changes the following query parameter names:\n\n- `query` to be `q`.\n- `page` to be `p`.\n- `filter` to be `f`\n- `sort` to be `s`\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler query=\"q\" page=\"p\" filter=\"f\" sort=\"s\" />\n</template>\n\n<script>\nimport { UrlHandler } from '@empathyco/x-components/url-handler'\n\nexport default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler,\n },\n}\n</script>\n```\n\n### Play with events\n\nThe `UrlHandler` will emit the `ParamsLoadedFromUrl` when the page is loaded.\n\nThe `UrlHandler` will emit the `ExtraParamsLoadedFromUrl` when the page is loaded with an extra\nparam configured and with a value in URL.\n\nThe `UrlHandler` will emit the `UserOpenXProgrammatically` when the page is loaded with a query in\nthe URL.\n</docs>\n"],"names":["_resolveComponent","_openBlock","_createBlock"],"mappings":";;;;;kCACEA,gBAA8E,CAAA,cAAA,CAAA,CAAA;AAA/C,EAAA,OAAAC,SAAA,EAAoB,EAAAC,WAAA,CAAA,uBAAA,EAAA;AAAA,IAAG,MAAA,EAAA,QAAA;AAAA,IAAA,UAAA,EAAA,IAAA,CAAA,UAAA;;;;;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { objectFilter } from '@empathyco/x-utils';
2
2
  import { defineComponent, inject, ref, computed, onMounted } from 'vue';
3
3
  import { GlobalEvents } from 'vue-global-events';
4
+ import { use$x } from '../../../composables/use-_x.js';
5
+ import { useState } from '../../../composables/use-state.js';
4
6
  import { isArrayEmpty } from '../../../utils/array.js';
5
7
  import { initialUrlState } from '../store/initial-state.js';
6
8
  import { urlXModule } from '../x-module.js';
7
- import { use$x } from '../../../composables/use-_x.js';
8
- import { useState } from '../../../composables/use-state.js';
9
9
 
10
10
  /**
11
11
  * This component manages the browser URL parameters to preserve them through reloads and browser
@@ -17,12 +17,12 @@ import { useState } from '../../../composables/use-state.js';
17
17
  var _sfc_main = defineComponent({
18
18
  name: 'UrlHandler',
19
19
  components: {
20
- GlobalEvents
20
+ GlobalEvents,
21
21
  },
22
22
  xModule: urlXModule.name,
23
- setup: function (props, { attrs }) {
23
+ setup(_, { attrs }) {
24
24
  const $x = use$x();
25
- const initialExtraParams = useState('url', ['initialExtraParams']).initialExtraParams;
25
+ const { initialExtraParams } = useState('url');
26
26
  /**
27
27
  * The {@link SnippetConfig} provided by an ancestor.
28
28
  *
@@ -56,9 +56,7 @@ var _sfc_main = defineComponent({
56
56
  *
57
57
  * @internal
58
58
  */
59
- const managedParamsNames = computed(() => {
60
- return Object.keys({ ...initialUrlState, ...attrs });
61
- });
59
+ const managedParamsNames = computed(() => Object.keys({ ...initialUrlState, ...attrs }));
62
60
  /**
63
61
  * Returns the mapping of the param keys used in the URL is configured through $attrs. This way
64
62
  * we can support any param and extra param, no matters its name.
@@ -140,7 +138,8 @@ var _sfc_main = defineComponent({
140
138
  const newUrl = new URL(window.location.href);
141
139
  deleteUrlParameters(newUrl);
142
140
  setUrlParameters(newUrl, newUrlParams);
143
- newUrl.href = newUrl.href.replace(/\+/g, '%20');
141
+ // Normalize '+' characters into '%20' for spaces in url params.
142
+ newUrl.search = newUrl.search.replace(/\+/g, '%20');
144
143
  if (newUrl.href !== window.location.href) {
145
144
  historyMethod({ ...window.history.state }, document.title, newUrl.href);
146
145
  }
@@ -271,8 +270,7 @@ var _sfc_main = defineComponent({
271
270
  const currentUrl = new URL(window.location.href);
272
271
  const previousUrl = url.value;
273
272
  url.value = currentUrl;
274
- const isInternalNavigation = previousUrl?.search !== currentUrl.search &&
275
- previousUrl?.pathname === currentUrl.pathname;
273
+ const isInternalNavigation = previousUrl?.search !== currentUrl.search && previousUrl?.pathname === currentUrl.pathname;
276
274
  if (isInternalNavigation) {
277
275
  return 'url_history';
278
276
  }
@@ -290,7 +288,7 @@ var _sfc_main = defineComponent({
290
288
  const createWireMetadata = () => {
291
289
  return {
292
290
  feature: 'url',
293
- location: detectLocation()
291
+ location: detectLocation(),
294
292
  };
295
293
  };
296
294
  /**
@@ -319,9 +317,9 @@ var _sfc_main = defineComponent({
319
317
  });
320
318
  return {
321
319
  onPageShow,
322
- emitEvents
320
+ emitEvents,
323
321
  };
324
- }
322
+ },
325
323
  });
326
324
 
327
325
  export { _sfc_main as default };
@@ -1 +1 @@
1
- {"version":3,"file":"url-handler.vue2.js","sources":["../../../../../src/x-modules/url/components/url-handler.vue"],"sourcesContent":["<template>\n <GlobalEvents @pageshow=\"onPageShow\" @popstate=\"emitEvents\" target=\"window\" />\n</template>\n\n<script lang=\"ts\">\n import { Dictionary, objectFilter } from '@empathyco/x-utils';\n import { computed, defineComponent, inject, onMounted, ref } from 'vue';\n import { GlobalEvents } from 'vue-global-events';\n import { FeatureLocation } from '../../../types/origin';\n import { UrlParams } from '../../../types/url-params';\n import { isArrayEmpty } from '../../../utils/array';\n import { WireMetadata } from '../../../wiring/wiring.types';\n import { SnippetConfig } from '../../../x-installer/api/api.types';\n import { initialUrlState } from '../store/initial-state';\n import { UrlParamValue } from '../store/types';\n import { urlXModule } from '../x-module';\n import { use$x } from '../../../composables/use-$x';\n import { useState } from '../../../composables/use-state';\n\n interface ParsedUrlParams {\n all: UrlParams;\n extra: Dictionary<unknown>;\n }\n\n /**\n * This component manages the browser URL parameters to preserve them through reloads and browser\n * history navigation. It allow to configure the default url parameter names using its attributes.\n * This component doesn't render elements to the DOM.\n *\n * @public\n */\n export default defineComponent({\n name: 'UrlHandler',\n components: {\n GlobalEvents\n },\n xModule: urlXModule.name,\n setup: function (props, { attrs }) {\n const $x = use$x();\n\n const initialExtraParams = useState('url', ['initialExtraParams']).initialExtraParams;\n\n /**\n * The {@link SnippetConfig} provided by an ancestor.\n *\n * @internal\n */\n const snippetConfig = inject<SnippetConfig | undefined>('snippetConfig');\n\n /**\n * Flag to know if the params were already loaded from the URL.\n *\n * @internal\n */\n const urlLoaded = ref(false);\n\n /**\n * The page URL. It is used to compare against the current URL to check navigation state.\n *\n * @internal\n */\n const url = ref<URL | undefined>(undefined);\n\n /**\n * Flag to know if the page has been persisted by the browser's back-forward cache.\n *\n * @internal\n */\n const isPagePersisted = ref(false);\n\n /**\n * Computed to know which params we must get from URL. It gets the params names from the initial\n * state, to get all default params names, and also from the `$attrs` to get the extra params\n * names to take into account.\n *\n * @returns An array with the name of the params.\n *\n * @internal\n */\n const managedParamsNames = computed(() => {\n return Object.keys({ ...initialUrlState, ...attrs });\n });\n\n /**\n * Returns the mapping of the param keys used in the URL is configured through $attrs. This way\n * we can support any param and extra param, no matters its name.\n *\n * @param paramName - The param name to get the Url key.\n * @returns The key used in the URL for the `paramName` passed.\n *\n * @internal\n */\n const getUrlKey = (paramName: string): string => {\n const paramValue = attrs[paramName];\n return typeof paramValue === 'string' ? paramValue : paramName;\n };\n\n /**\n * Deletes all the parameters in the passed URL.\n *\n * @param url - The URL to remove parameters from.\n * @internal\n */\n const deleteUrlParameters = (url: URL): void => {\n managedParamsNames.value.forEach(paramName =>\n url.searchParams.delete(getUrlKey(paramName))\n );\n };\n\n /**\n * Sorts the params in a tuple array [key,value] to generate always the same URL with the params\n * in the same order.\n *\n * @param urlParams - The {@link UrlParams} to sort.\n * @returns An array of tuples with the key-value of each paramter, sorted by key.\n * @internal\n */\n const sortParams = (urlParams: UrlParams): Array<[string, unknown]> => {\n return Object.entries(urlParams).sort(([param1], [param2]) => {\n return param1 < param2 ? -1 : 1;\n });\n };\n\n /**\n * Set all the provided parameters to the url with the mapped key.\n *\n * @param url - The current URL.\n * @param urlParams - The list of parameters to add.\n * @remarks The params are filtered because there maybe received extra params which will not be\n * managed by URL. This is defined by the `managedParamsNames` computed. Also, the parameters\n * are sorted Alphabetically to produce always the same URL with the same parameters.This is\n * important for SEO purposes.\n *\n * @internal\n */\n const setUrlParameters = (url: URL, urlParams: UrlParams): void => {\n // Only when there is a query the rest of the parameters are valid.\n if (!urlParams.query) {\n return;\n }\n const filteredParams = objectFilter(urlParams, paramName =>\n managedParamsNames.value.includes(paramName as string)\n );\n const sortedParameters = sortParams(filteredParams);\n sortedParameters.forEach(([paramName, paramValue]) => {\n const urlParamKey = getUrlKey(paramName);\n if (Array.isArray(paramValue)) {\n paramValue.forEach(value => {\n url.searchParams.append(urlParamKey, String(value));\n });\n } else {\n url.searchParams.set(urlParamKey, String(paramValue));\n }\n });\n };\n\n /**\n * Updates the browser URL with the passed `newUrlParams` and using the browser history method\n * passed as `historyMethod`. It only updates the browser history if the new URL is different\n * from the current.\n *\n * @param newUrlParams - The new params to add to the browser URL.\n * @param historyMethod - The browser history method used to add the new URL.\n *\n * @internal\n */\n const updateUrl = (\n newUrlParams: UrlParams,\n historyMethod: History['pushState'] | History['replaceState']\n ): void => {\n if (urlLoaded.value) {\n const newUrl = new URL(window.location.href);\n deleteUrlParameters(newUrl);\n setUrlParameters(newUrl, newUrlParams);\n\n newUrl.href = newUrl.href.replace(/\\+/g, '%20');\n\n if (newUrl.href !== window.location.href) {\n historyMethod({ ...window.history.state }, document.title, newUrl.href);\n }\n url.value = newUrl;\n }\n };\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `pushState` method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('PushableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.pushState.bind(window.history));\n });\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `replaceState`\n * method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('ReplaceableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.replaceState.bind(window.history));\n });\n\n /**\n * Handler of the\n * [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event)\n * event.\n *\n * @remarks The pageshow event is listened to check if the browser has performed a navigation\n * using the back-forward cache. This information is available in the\n * PageTransitionEvent.persisted property.\n *\n * @param event - The page transition event.\n * @internal\n */\n const onPageShow = (event: PageTransitionEvent) => {\n isPagePersisted.value = event.persisted;\n if (event.persisted) {\n // The internal url is reset due to the back-forward cache storing the previous value which\n // is no longer valid.\n url.value = undefined;\n }\n };\n\n /**\n * Returns the URL param value parsed depending on its type in the initial store state. As we\n * can not know what type can have an extra param, all extra params are parsed as strings. We\n * know if it is an extra param because it is not in the initial state.\n *\n * @param name - The name of the param in {@link UrlParams}.\n * @param value - The `URLSearchParams` value as an arry of strings.\n * @returns The parsed value.\n *\n * @internal\n */\n const parseUrlParam = (name: string, value: string[]): UrlParamValue => {\n switch (typeof initialUrlState[name]) {\n case 'number':\n return Number(value[0]);\n case 'boolean':\n return value[0].toLowerCase() === 'true';\n case 'string':\n return value[0];\n default:\n // array\n return value;\n }\n };\n\n /**\n * Gets the {@link UrlParams} from the URL, including only the params defined by `paramsNames`.\n *\n * @returns ParsedUrlParams obtained from URL.\n * @internal\n */\n const parseUrlParams = (): ParsedUrlParams => {\n const urlSearchParams = new URL(window.location.href).searchParams;\n return managedParamsNames.value.reduce<ParsedUrlParams>(\n (params, name) => {\n const urlKey = getUrlKey(name);\n if (urlSearchParams.has(urlKey)) {\n if (name in initialUrlState) {\n const urlValue = urlSearchParams.getAll(urlKey);\n params.all[name] = parseUrlParam(name, urlValue);\n } else {\n params.all[name] = params.extra[name] = urlSearchParams.get(urlKey);\n }\n }\n return params;\n },\n { all: { ...initialUrlState }, extra: { ...initialExtraParams.value } }\n );\n };\n\n /**\n * Check if the navigation is from a product page.\n *\n * @remarks Due to Safari 14 not supporting the new and standard PerformanceNavigationTiming\n * API, we are falling back to the deprecated one, PerformanceNavigation. We also fallback to\n * this API whenever we get a navigationType equal to reload, because Safari has a bug that the\n * navigationType is permanently set to reload after you have reload the page and it never\n * resets. As some browsers have a back-forward cache implemented, we also take into account if\n * the page is persisted.\n *\n * @returns True if the navigation is from a product page, false otherwise.\n * @internal\n */\n const isNavigatingFromPdp = (): boolean => {\n const isPagePersistedValue = isPagePersisted.value;\n const navigationEntries = window.performance.getEntriesByType('navigation');\n const navigationType = (navigationEntries[0] as PerformanceNavigationTiming)?.type;\n const useFallbackStrategy =\n !navigationEntries.length &&\n (isArrayEmpty(navigationEntries) || navigationType === 'reload');\n\n // Reset internal isPagePersisted property value\n isPagePersisted.value = false;\n\n if (useFallbackStrategy) {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate';\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue;\n } else {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate';\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue;\n }\n };\n\n /**\n * Detects the {@link FeatureLocation} used to build the\n * {@link QueryOriginInit} data.\n *\n * @returns The {@link FeatureLocation}.\n * @internal\n */\n const detectLocation = (): FeatureLocation => {\n const currentUrl = new URL(window.location.href);\n const previousUrl = url.value;\n url.value = currentUrl;\n\n const isInternalNavigation =\n previousUrl?.search !== currentUrl.search &&\n previousUrl?.pathname === currentUrl.pathname;\n if (isInternalNavigation) {\n return 'url_history';\n }\n\n if (isNavigatingFromPdp()) {\n return 'url_history_pdp';\n }\n\n return 'external';\n };\n\n /**\n * Creates the wire metadata to include in every emitted {@link XEvent}.\n *\n * @returns The {@link WireMetadata}.\n * @internal\n */\n const createWireMetadata = (): Pick<WireMetadata, 'feature' | 'location'> => {\n return {\n feature: 'url',\n location: detectLocation()\n };\n };\n\n /**\n * Emits the {@link UrlXEvents.ParamsLoadedFromUrl} XEvent,\n * the {@link UrlXEvents.ExtraParamsLoadedFromUrl} XEvent and, if there is query, also emits\n * the {@link XEventsTypes.UserOpenXProgrammatically}.\n *\n * @internal\n */\n const emitEvents = () => {\n const { all, extra } = parseUrlParams();\n const metadata = createWireMetadata();\n $x.emit('ParamsLoadedFromUrl', all, metadata);\n $x.emit('ExtraParamsLoadedFromUrl', extra, metadata);\n if (all.query) {\n $x.emit('UserOpenXProgrammatically', undefined, metadata);\n }\n urlLoaded.value = true;\n };\n\n /**\n * To emit the Url events just when the URL is load, and before the components mounted events\n * and state changes, we do it in the created of this component.\n */\n onMounted(() => {\n emitEvents();\n });\n\n return {\n onPageShow,\n emitEvents\n };\n }\n });\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`ParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`ExtraParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`UserOpenXProgrammatically`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n\n## See it in action\n\nThis component manages the browser URL parameters to preserve them through reloads and browser\nhistory navigation. It allow to configure the default url parameter names using its attributes. This\ncomponent doesn't render elements to the DOM.\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler />\n</template>\n\n<script>\n import { UrlHandler } from '@empathyco/x-components/url-handler';\n\n export default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler\n }\n };\n</script>\n```\n\n### Play with props\n\nIn this example, the `UrlHandler` component changes the following query parameter names:\n\n- `query` to be `q`.\n- `page` to be `p`.\n- `filter` to be `f`\n- `sort` to be `s`\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler query=\"q\" page=\"p\" filter=\"f\" sort=\"s\" />\n</template>\n\n<script>\n import { UrlHandler } from '@empathyco/x-components/url-handler';\n\n export default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler\n }\n };\n</script>\n```\n\n### Play with events\n\nThe `UrlHandler` will emit the `ParamsLoadedFromUrl` when the page is loaded.\n\nThe `UrlHandler` will emit the `ExtraParamsLoadedFromUrl` when the page is loaded with an extra\nparam configured and with a value in URL.\n\nThe `UrlHandler` will emit the `UserOpenXProgrammatically` when the page is loaded with a query in\nthe URL.\n</docs>\n"],"names":[],"mappings":";;;;;;;;;AAwBE;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,UAAU,EAAE;QACV,YAAW;AACZ,KAAA;IACD,OAAO,EAAE,UAAU,CAAC,IAAI;AACxB,IAAA,KAAK,EAAE,UAAU,KAAK,EAAE,EAAE,KAAM,EAAC,EAAA;AAC/B,QAAA,MAAM,EAAC,GAAI,KAAK,EAAE,CAAA;AAElB,QAAA,MAAM,kBAAmB,GAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,kBAAkB,CAAA;AAErF;;;;AAIE;AACF,QAAA,MAAM,aAAY,GAAI,MAAM,CAA4B,eAAe,CAAC,CAAA;AAExE;;;;AAIE;AACF,QAAA,MAAM,SAAU,GAAE,GAAG,CAAC,KAAK,CAAC,CAAA;AAE5B;;;;AAIE;AACF,QAAA,MAAM,GAAI,GAAE,GAAG,CAAkB,SAAS,CAAC,CAAA;AAE3C;;;;AAIE;AACF,QAAA,MAAM,eAAgB,GAAE,GAAG,CAAC,KAAK,CAAC,CAAA;AAElC;;;;;;;;AAQE;AACF,QAAA,MAAM,kBAAiB,GAAI,QAAQ,CAAC,MAAM;AACxC,YAAA,OAAO,MAAM,CAAC,IA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ME;QACF,MAAM,UAAS,GAAI,MAAM;YACvB,MAAM,EAAE,GAAG,EAAE,KAAM,EAAA,GAAI,cAAc,EAAE,CAAA;AACvC,YAAA,MAAM,QAAS,GAAE,kBAAkB,EAAE,CAAA;YACrC,EAAE,CAAC,IAAI,CAAC,qBAAqB,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC7C,EAAE,CAAC,IAAI,CAAC,0BAA0B,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;YACpD,IAAI,GAAG,CAAC,KAAK,EAAE;gBACb,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAA;AAC3D,aAAA;AACA,YAAA,SAAS,CAAC,KAAI,GAAI,IAAI,CAAA;AACxB,SAAC,CAAA;AAED;;;AAGE;QACF,SAAS,CAAC,MAAM;AACd,YAAA,UAAU,EAAE,CAAA;AACd,SAAC,CAAC,CAAA;QAEF,OAAO;YACL,UAAU;YACV,UAAS;SACV,CAAA;KACH;AACD,CAAA,CAAC;;;;"}
1
+ {"version":3,"file":"url-handler.vue2.js","sources":["../../../../../src/x-modules/url/components/url-handler.vue"],"sourcesContent":["<template>\n <GlobalEvents target=\"window\" @pageshow=\"onPageShow\" @popstate=\"emitEvents\" />\n</template>\n\n<script lang=\"ts\">\nimport type { Dictionary } from '@empathyco/x-utils'\nimport type { FeatureLocation } from '../../../types/origin'\nimport type { UrlParams } from '../../../types/url-params'\nimport type { WireMetadata } from '../../../wiring/wiring.types'\nimport type { SnippetConfig } from '../../../x-installer/api/api.types'\nimport type { UrlParamValue } from '../store/types'\nimport { objectFilter } from '@empathyco/x-utils'\nimport { computed, defineComponent, inject, onMounted, ref } from 'vue'\nimport { GlobalEvents } from 'vue-global-events'\nimport { use$x } from '../../../composables/use-$x'\nimport { useState } from '../../../composables/use-state'\nimport { isArrayEmpty } from '../../../utils/array'\nimport { initialUrlState } from '../store/initial-state'\nimport { urlXModule } from '../x-module'\n\ninterface ParsedUrlParams {\n all: UrlParams\n extra: Dictionary<unknown>\n}\n\n/**\n * This component manages the browser URL parameters to preserve them through reloads and browser\n * history navigation. It allow to configure the default url parameter names using its attributes.\n * This component doesn't render elements to the DOM.\n *\n * @public\n */\nexport default defineComponent({\n name: 'UrlHandler',\n components: {\n GlobalEvents,\n },\n xModule: urlXModule.name,\n setup(_, { attrs }) {\n const $x = use$x()\n\n const { initialExtraParams } = useState('url')\n\n /**\n * The {@link SnippetConfig} provided by an ancestor.\n *\n * @internal\n */\n const snippetConfig = inject<SnippetConfig | undefined>('snippetConfig')\n\n /**\n * Flag to know if the params were already loaded from the URL.\n *\n * @internal\n */\n const urlLoaded = ref(false)\n\n /**\n * The page URL. It is used to compare against the current URL to check navigation state.\n *\n * @internal\n */\n const url = ref<URL | undefined>(undefined)\n\n /**\n * Flag to know if the page has been persisted by the browser's back-forward cache.\n *\n * @internal\n */\n const isPagePersisted = ref(false)\n\n /**\n * Computed to know which params we must get from URL. It gets the params names from the initial\n * state, to get all default params names, and also from the `$attrs` to get the extra params\n * names to take into account.\n *\n * @returns An array with the name of the params.\n *\n * @internal\n */\n const managedParamsNames = computed(() => Object.keys({ ...initialUrlState, ...attrs }))\n\n /**\n * Returns the mapping of the param keys used in the URL is configured through $attrs. This way\n * we can support any param and extra param, no matters its name.\n *\n * @param paramName - The param name to get the Url key.\n * @returns The key used in the URL for the `paramName` passed.\n *\n * @internal\n */\n const getUrlKey = (paramName: string) => {\n const paramValue = attrs[paramName]\n return typeof paramValue === 'string' ? paramValue : paramName\n }\n\n /**\n * Deletes all the parameters in the passed URL.\n *\n * @param url - The URL to remove parameters from.\n * @internal\n */\n const deleteUrlParameters = (url: URL) => {\n managedParamsNames.value.forEach(paramName => url.searchParams.delete(getUrlKey(paramName)))\n }\n\n /**\n * Sorts the params in a tuple array [key,value] to generate always the same URL with the params\n * in the same order.\n *\n * @param urlParams - The {@link UrlParams} to sort.\n * @returns An array of tuples with the key-value of each paramter, sorted by key.\n * @internal\n */\n const sortParams = (urlParams: UrlParams): Array<[string, unknown]> => {\n return Object.entries(urlParams).sort(([param1], [param2]) => {\n return param1 < param2 ? -1 : 1\n })\n }\n\n /**\n * Set all the provided parameters to the url with the mapped key.\n *\n * @param url - The current URL.\n * @param urlParams - The list of parameters to add.\n * @remarks The params are filtered because there maybe received extra params which will not be\n * managed by URL. This is defined by the `managedParamsNames` computed. Also, the parameters\n * are sorted Alphabetically to produce always the same URL with the same parameters.This is\n * important for SEO purposes.\n *\n * @internal\n */\n const setUrlParameters = (url: URL, urlParams: UrlParams): void => {\n // Only when there is a query the rest of the parameters are valid.\n if (!urlParams.query) {\n return\n }\n const filteredParams = objectFilter(urlParams, paramName =>\n managedParamsNames.value.includes(paramName as string),\n )\n const sortedParameters = sortParams(filteredParams)\n sortedParameters.forEach(([paramName, paramValue]) => {\n const urlParamKey = getUrlKey(paramName)\n if (Array.isArray(paramValue)) {\n paramValue.forEach(value => {\n url.searchParams.append(urlParamKey, String(value))\n })\n } else {\n url.searchParams.set(urlParamKey, String(paramValue))\n }\n })\n }\n\n /**\n * Updates the browser URL with the passed `newUrlParams` and using the browser history method\n * passed as `historyMethod`. It only updates the browser history if the new URL is different\n * from the current.\n *\n * @param newUrlParams - The new params to add to the browser URL.\n * @param historyMethod - The browser history method used to add the new URL.\n *\n * @internal\n */\n const updateUrl = (\n newUrlParams: UrlParams,\n historyMethod: History['pushState'] | History['replaceState'],\n ): void => {\n if (urlLoaded.value) {\n const newUrl = new URL(window.location.href)\n deleteUrlParameters(newUrl)\n setUrlParameters(newUrl, newUrlParams)\n\n // Normalize '+' characters into '%20' for spaces in url params.\n newUrl.search = newUrl.search.replace(/\\+/g, '%20')\n\n if (newUrl.href !== window.location.href) {\n historyMethod({ ...window.history.state }, document.title, newUrl.href)\n }\n url.value = newUrl\n }\n }\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `pushState` method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('PushableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.pushState.bind(window.history))\n })\n\n /**\n * Updates the browser URL with the new {@link UrlParams} using the history `replaceState`\n * method.\n *\n * @param newUrlParams - The new params to update browser URL.\n */\n $x.on('ReplaceableUrlStateUpdated', false).subscribe((newUrlParams: UrlParams) => {\n updateUrl(newUrlParams, window.history.replaceState.bind(window.history))\n })\n\n /**\n * Handler of the\n * [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event)\n * event.\n *\n * @remarks The pageshow event is listened to check if the browser has performed a navigation\n * using the back-forward cache. This information is available in the\n * PageTransitionEvent.persisted property.\n *\n * @param event - The page transition event.\n * @internal\n */\n const onPageShow = (event: PageTransitionEvent) => {\n isPagePersisted.value = event.persisted\n if (event.persisted) {\n // The internal url is reset due to the back-forward cache storing the previous value which\n // is no longer valid.\n url.value = undefined\n }\n }\n\n /**\n * Returns the URL param value parsed depending on its type in the initial store state. As we\n * can not know what type can have an extra param, all extra params are parsed as strings. We\n * know if it is an extra param because it is not in the initial state.\n *\n * @param name - The name of the param in {@link UrlParams}.\n * @param value - The `URLSearchParams` value as an arry of strings.\n * @returns The parsed value.\n *\n * @internal\n */\n const parseUrlParam = (name: string, value: string[]): UrlParamValue => {\n switch (typeof initialUrlState[name]) {\n case 'number':\n return Number(value[0])\n case 'boolean':\n return value[0].toLowerCase() === 'true'\n case 'string':\n return value[0]\n default:\n // array\n return value\n }\n }\n\n /**\n * Gets the {@link UrlParams} from the URL, including only the params defined by `paramsNames`.\n *\n * @returns ParsedUrlParams obtained from URL.\n * @internal\n */\n const parseUrlParams = (): ParsedUrlParams => {\n const urlSearchParams = new URL(window.location.href).searchParams\n return managedParamsNames.value.reduce<ParsedUrlParams>(\n (params, name) => {\n const urlKey = getUrlKey(name)\n if (urlSearchParams.has(urlKey)) {\n if (name in initialUrlState) {\n const urlValue = urlSearchParams.getAll(urlKey)\n params.all[name] = parseUrlParam(name, urlValue)\n } else {\n params.all[name] = params.extra[name] = urlSearchParams.get(urlKey)\n }\n }\n return params\n },\n { all: { ...initialUrlState }, extra: { ...initialExtraParams.value } },\n )\n }\n\n /**\n * Check if the navigation is from a product page.\n *\n * @remarks Due to Safari 14 not supporting the new and standard PerformanceNavigationTiming\n * API, we are falling back to the deprecated one, PerformanceNavigation. We also fallback to\n * this API whenever we get a navigationType equal to reload, because Safari has a bug that the\n * navigationType is permanently set to reload after you have reload the page and it never\n * resets. As some browsers have a back-forward cache implemented, we also take into account if\n * the page is persisted.\n *\n * @returns True if the navigation is from a product page, false otherwise.\n * @internal\n */\n const isNavigatingFromPdp = (): boolean => {\n const isPagePersistedValue = isPagePersisted.value\n const navigationEntries = window.performance.getEntriesByType('navigation')\n const navigationType = (navigationEntries[0] as PerformanceNavigationTiming)?.type\n const useFallbackStrategy =\n !navigationEntries.length &&\n (isArrayEmpty(navigationEntries) || navigationType === 'reload')\n\n // Reset internal isPagePersisted property value\n isPagePersisted.value = false\n\n if (useFallbackStrategy) {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate'\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue\n } else {\n const isNavigatingInSpa = !!snippetConfig?.isSpa && navigationType === 'navigate'\n return navigationType === 'back_forward' || isNavigatingInSpa || isPagePersistedValue\n }\n }\n\n /**\n * Detects the {@link FeatureLocation} used to build the\n * {@link QueryOriginInit} data.\n *\n * @returns The {@link FeatureLocation}.\n * @internal\n */\n const detectLocation = (): FeatureLocation => {\n const currentUrl = new URL(window.location.href)\n const previousUrl = url.value\n url.value = currentUrl\n\n const isInternalNavigation =\n previousUrl?.search !== currentUrl.search && previousUrl?.pathname === currentUrl.pathname\n if (isInternalNavigation) {\n return 'url_history'\n }\n\n if (isNavigatingFromPdp()) {\n return 'url_history_pdp'\n }\n\n return 'external'\n }\n\n /**\n * Creates the wire metadata to include in every emitted {@link XEvent}.\n *\n * @returns The {@link WireMetadata}.\n * @internal\n */\n const createWireMetadata = (): Pick<WireMetadata, 'feature' | 'location'> => {\n return {\n feature: 'url',\n location: detectLocation(),\n }\n }\n\n /**\n * Emits the {@link UrlXEvents.ParamsLoadedFromUrl} XEvent,\n * the {@link UrlXEvents.ExtraParamsLoadedFromUrl} XEvent and, if there is query, also emits\n * the {@link XEventsTypes.UserOpenXProgrammatically}.\n *\n * @internal\n */\n const emitEvents = () => {\n const { all, extra } = parseUrlParams()\n const metadata = createWireMetadata()\n $x.emit('ParamsLoadedFromUrl', all, metadata)\n $x.emit('ExtraParamsLoadedFromUrl', extra, metadata)\n if (all.query) {\n $x.emit('UserOpenXProgrammatically', undefined, metadata)\n }\n urlLoaded.value = true\n }\n\n /**\n * To emit the Url events just when the URL is load, and before the components mounted events\n * and state changes, we do it in the created of this component.\n */\n onMounted(() => {\n emitEvents()\n })\n\n return {\n onPageShow,\n emitEvents,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`ParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`ExtraParamsLoadedFromUrl`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n- [`UserOpenXProgrammatically`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts)\n\n## See it in action\n\nThis component manages the browser URL parameters to preserve them through reloads and browser\nhistory navigation. It allow to configure the default url parameter names using its attributes. This\ncomponent doesn't render elements to the DOM.\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler />\n</template>\n\n<script>\nimport { UrlHandler } from '@empathyco/x-components/url-handler'\n\nexport default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler,\n },\n}\n</script>\n```\n\n### Play with props\n\nIn this example, the `UrlHandler` component changes the following query parameter names:\n\n- `query` to be `q`.\n- `page` to be `p`.\n- `filter` to be `f`\n- `sort` to be `s`\n\n_Try to make some requests and take a look to the url!_\n\n```vue\n<template>\n <UrlHandler query=\"q\" page=\"p\" filter=\"f\" sort=\"s\" />\n</template>\n\n<script>\nimport { UrlHandler } from '@empathyco/x-components/url-handler'\n\nexport default {\n name: 'UrlHandlerDemo',\n components: {\n UrlHandler,\n },\n}\n</script>\n```\n\n### Play with events\n\nThe `UrlHandler` will emit the `ParamsLoadedFromUrl` when the page is loaded.\n\nThe `UrlHandler` will emit the `ExtraParamsLoadedFromUrl` when the page is loaded with an extra\nparam configured and with a value in URL.\n\nThe `UrlHandler` will emit the `UserOpenXProgrammatically` when the page is loaded with a query in\nthe URL.\n</docs>\n"],"names":[],"mappings":";;;;;;;;;AAyBA;;;;;;AAME;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,UAAU,EAAE;QACV,YAAY;AACb,KAAA;IACD,OAAO,EAAE,UAAU,CAAC,IAAI;AACxB,IAAA,KAAK,CAAC,CAAC,EAAE,EAAE,KAAI,EAAG,EAAA;AAChB,QAAA,MAAM,EAAC,GAAI,KAAK,EAAC,CAAA;QAEjB,MAAM,EAAE,kBAAmB,EAAA,GAAI,QAAQ,CAAC,KAAK,CAAA,CAAA;AAE7C;;;;AAIE;AACF,QAAA,MAAM,aAAY,GAAI,MAAM,CAA4B,eAAe,CAAA,CAAA;AAEvE;;;;AAIE;AACF,QAAA,MAAM,SAAU,GAAE,GAAG,CAAC,KAAK,CAAA,CAAA;AAE3B;;;;AAIE;AACF,QAAA,MAAM,GAAE,GAAI,GAAG,CAAkB,SAAS,CAAA,CAAA;AAE1C;;;;AAIE;AACF,QAAA,MAAM,eAAgB,GAAE,GAAG,CAAC,KAAK,CAAA,CAAA;AAEjC;;;;;;;;AAQE;QACF,MAAM,kBAAmB,GAAE,QAAQ,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,eAAe,EAAE,GAAG,KAAI,EAAG,CAAC,CAAA,CAAA;AAEvF;;;;;;;;AAQE;AACF,QAAA,MAAM,SAAQ,GAAI,CAAC,SAAiB,KAAK;AACvC,Y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AI,CAAC,qBAAqB,EAAE,GAAG,EAAE,QAAQ,CAAA,CAAA;YAC5C,EAAE,CAAC,IAAI,CAAC,0BAA0B,EAAE,KAAK,EAAE,QAAQ,CAAA,CAAA;YACnD,IAAI,GAAG,CAAC,KAAK,EAAE;gBACb,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,SAAS,EAAE,QAAQ,CAAA,CAAA;AAC1D,aAAA;AACA,YAAA,SAAS,CAAC,QAAQ,IAAG,CAAA;AACvB,SAAA,CAAA;AAEA;;;AAGE;QACF,SAAS,CAAC,MAAM;AACd,YAAA,UAAU,EAAC,CAAA;AACb,SAAC,CAAA,CAAA;QAED,OAAO;YACL,UAAU;YACV,UAAU;SACZ,CAAA;KACD;AACF,CAAA,CAAA;;;;"}
@@ -1,3 +1,4 @@
1
+ import '@empathyco/x-utils';
1
2
  import { createStoreEmitters } from '../../../store/utils/store-emitters.utils.js';
2
3
  import { urlXStoreModule } from './module.js';
3
4
 
@@ -42,13 +43,13 @@ const urlEmitters = createStoreEmitters(urlXStoreModule, {
42
43
  PushableUrlStateUpdated: {
43
44
  selector: (_, getters) => getters.urlParams,
44
45
  filter: shouldPushUrl,
45
- metadata: { replaceable: false }
46
+ metadata: { replaceable: false },
46
47
  },
47
48
  ReplaceableUrlStateUpdated: {
48
49
  selector: (_, getters) => getters.urlParams,
49
50
  filter: shouldReplaceUrl,
50
- metadata: { replaceable: false }
51
- }
51
+ metadata: { replaceable: false },
52
+ },
52
53
  });
53
54
 
54
55
  export { replaceableParams, urlEmitters };
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.js","sources":["../../../../../src/x-modules/url/store/emitters.ts"],"sourcesContent":["import { createStoreEmitters } from '../../../store';\nimport { UrlParams } from '../../../types/url-params';\nimport { urlXStoreModule } from './module';\nimport { UrlParamKey } from './types';\n\n/**\n * The params from {@link UrlParams} that provokes a replace instead of a push in the browser URL\n * state.\n *\n * @internal\n */\nexport const replaceableParams: UrlParamKey[] = ['scroll', 'page'];\n\n/**\n * Compares new and old {@link UrlParams} to know if not replaceable params have changed.\n *\n * @param newParams - The new {@link UrlParams} to compare.\n * @param oldParams - The old {@link UrlParams} to compare.\n *\n * @returns True if is pushable change, false otherwise.\n */\nfunction shouldPushUrl(\n newParams: Partial<UrlParams> = {},\n oldParams: Partial<UrlParams> = {}\n): boolean {\n const keys = Object.keys({ ...oldParams, ...newParams });\n return keys.some(key => !replaceableParams.includes(key) && oldParams[key] !== newParams[key]);\n}\n\n/**\n * Compares new and old {@link UrlParams} to know if replaceable params have changed.\n *\n * @param newParams - The new {@link UrlParams} to compare.\n * @param oldParams - The old {@link UrlParams} to compare.\n *\n * @returns True if is pushable change, false otherwise.\n */\nfunction shouldReplaceUrl(\n newParams: Partial<UrlParams> = {},\n oldParams: Partial<UrlParams> = {}\n): boolean {\n const keys = Object.keys({ ...oldParams, ...newParams });\n return (\n keys.some(key => replaceableParams.includes(key) && oldParams[key] !== newParams[key]) &&\n !shouldPushUrl(newParams, oldParams)\n );\n}\n\n/**\n * {@link StoreEmitters} For the URL module.\n *\n * @internal\n */\nexport const urlEmitters = createStoreEmitters(urlXStoreModule, {\n PushableUrlStateUpdated: {\n selector: (_, getters) => getters.urlParams,\n filter: shouldPushUrl,\n metadata: { replaceable: false }\n },\n ReplaceableUrlStateUpdated: {\n selector: (_, getters) => getters.urlParams,\n filter: shouldReplaceUrl,\n metadata: { replaceable: false }\n }\n});\n"],"names":[],"mappings":";;;AAKA;;;;;AAKG;MACU,iBAAiB,GAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE;AAEnE;;;;;;;AAOG;AACH,SAAS,aAAa,CACpB,SAAA,GAAgC,EAAE,EAClC,YAAgC,EAAE,EAAA;AAElC,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC;IACzD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,CAAC;AAED;;;;;;;AAOG;AACH,SAAS,gBAAgB,CACvB,SAAA,GAAgC,EAAE,EAClC,YAAgC,EAAE,EAAA;AAElC,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC;IACzD,QACE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,CAAC,CAAC;AACtF,QAAA,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC,EACpC;AACJ,CAAC;AAED;;;;AAIG;AACU,MAAA,WAAW,GAAG,mBAAmB,CAAC,eAAe,EAAE;AAC9D,IAAA,uBAAuB,EAAE;QACvB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,SAAS;AAC3C,QAAA,MAAM,EAAE,aAAa;AACrB,QAAA,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;AACjC,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,SAAS;AAC3C,QAAA,MAAM,EAAE,gBAAgB;AACxB,QAAA,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;AACjC,KAAA;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"emitters.js","sources":["../../../../../src/x-modules/url/store/emitters.ts"],"sourcesContent":["import type { UrlParams } from '../../../types/url-params'\nimport type { UrlParamKey } from './types'\nimport { createStoreEmitters } from '../../../store'\nimport { urlXStoreModule } from './module'\n\n/**\n * The params from {@link UrlParams} that provokes a replace instead of a push in the browser URL\n * state.\n *\n * @internal\n */\nexport const replaceableParams: UrlParamKey[] = ['scroll', 'page']\n\n/**\n * Compares new and old {@link UrlParams} to know if not replaceable params have changed.\n *\n * @param newParams - The new {@link UrlParams} to compare.\n * @param oldParams - The old {@link UrlParams} to compare.\n *\n * @returns True if is pushable change, false otherwise.\n */\nfunction shouldPushUrl(\n newParams: Partial<UrlParams> = {},\n oldParams: Partial<UrlParams> = {},\n): boolean {\n const keys = Object.keys({ ...oldParams, ...newParams })\n return keys.some(key => !replaceableParams.includes(key) && oldParams[key] !== newParams[key])\n}\n\n/**\n * Compares new and old {@link UrlParams} to know if replaceable params have changed.\n *\n * @param newParams - The new {@link UrlParams} to compare.\n * @param oldParams - The old {@link UrlParams} to compare.\n *\n * @returns True if is pushable change, false otherwise.\n */\nfunction shouldReplaceUrl(\n newParams: Partial<UrlParams> = {},\n oldParams: Partial<UrlParams> = {},\n): boolean {\n const keys = Object.keys({ ...oldParams, ...newParams })\n return (\n keys.some(key => replaceableParams.includes(key) && oldParams[key] !== newParams[key]) &&\n !shouldPushUrl(newParams, oldParams)\n )\n}\n\n/**\n * {@link StoreEmitters} For the URL module.\n *\n * @internal\n */\nexport const urlEmitters = createStoreEmitters(urlXStoreModule, {\n PushableUrlStateUpdated: {\n selector: (_, getters) => getters.urlParams,\n filter: shouldPushUrl,\n metadata: { replaceable: false },\n },\n ReplaceableUrlStateUpdated: {\n selector: (_, getters) => getters.urlParams,\n filter: shouldReplaceUrl,\n metadata: { replaceable: false },\n },\n})\n"],"names":[],"mappings":";;;;AAKA;;;;;AAKG;MACU,iBAAiB,GAAkB,CAAC,QAAQ,EAAE,MAAM,EAAC;AAElE;;;;;;;AAOG;AACH,SAAS,aAAa,CACpB,SAAA,GAAgC,EAAE,EAClC,YAAgC,EAAE,EAAA;AAElC,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC,CAAA;IACxD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;AAChG,CAAC;AAED;;;;;;;AAOG;AACH,SAAS,gBAAgB,CACvB,SAAA,GAAgC,EAAE,EAClC,YAAgC,EAAE,EAAA;AAElC,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC,CAAA;IACxD,QACE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,CAAC,CAAC;AACtF,QAAA,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC,EACrC;AACH,CAAC;AAED;;;;AAIG;AACU,MAAA,WAAW,GAAG,mBAAmB,CAAC,eAAe,EAAE;AAC9D,IAAA,uBAAuB,EAAE;QACvB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,SAAS;AAC3C,QAAA,MAAM,EAAE,aAAa;AACrB,QAAA,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;AACjC,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,SAAS;AAC3C,QAAA,MAAM,EAAE,gBAAgB;AACxB,QAAA,QAAQ,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;AACjC,KAAA;AACF,CAAA;;;;"}
@@ -2,12 +2,10 @@ import { objectFilter } from '@empathyco/x-utils';
2
2
  import { initialUrlState } from '../initial-state.js';
3
3
 
4
4
  /**
5
- * Default implementation for the {@link UrlGetters.urlParams} getter.
6
- *
7
- * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the url module.
5
+ * Default implementation for the getter.
8
6
  *
7
+ * @param state - Current state of the url module.
9
8
  * @returns The url params.
10
- *
11
9
  * @public
12
10
  */
13
11
  const urlParams = ({ initialExtraParams, ...params }) => objectFilter(params, (paramKey, paramValue) => {
@@ -1 +1 @@
1
- {"version":3,"file":"url-params.getter.js","sources":["../../../../../../src/x-modules/url/store/getters/url-params.getter.ts"],"sourcesContent":["import { objectFilter } from '@empathyco/x-utils';\nimport { initialUrlState } from '../initial-state';\nimport { UrlParamValue, UrlXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link UrlGetters.urlParams} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the url module.\n *\n * @returns The url params.\n *\n * @public\n */\nexport const urlParams: UrlXStoreModule['getters']['urlParams'] = ({\n initialExtraParams,\n ...params\n}) =>\n objectFilter(params, (paramKey, paramValue) => {\n return paramKey in initialUrlState\n ? isNotDefaultValue(paramKey, paramValue, initialUrlState)\n : isNotEmptyParam(paramValue) && isNotDefaultValue(paramKey, paramValue, initialExtraParams);\n });\n\n/**\n * Checks if a parameter is not empty to avoid adding it to the URL.\n *\n * @param value - The value of the key parameter.\n *\n * @returns True if is not empty, False otherwise.\n */\nfunction isNotEmptyParam(value: UrlParamValue | unknown): boolean {\n return Array.isArray(value) ? value.length > 0 : value != null && value !== '';\n}\n\n/**\n * Checks if a parameter is not the default state value to avoid adding it to the URL.\n *\n * @param key - The key parameter.\n * @param value - The value of the key parameter.\n * @param defaultValues - The default values to compare.\n *\n * @returns True if is not the default state value, False otherwise.\n */\nfunction isNotDefaultValue<Key extends string | number, Value extends UrlParamValue | unknown>(\n key: Key,\n value: Value,\n defaultValues: Record<Key, Value>\n): boolean {\n return Array.isArray(value) ? value.length > 0 : defaultValues[key] !== value;\n}\n"],"names":[],"mappings":";;;AAIA;;;;;;;;AAQG;MACU,SAAS,GAA4C,CAAC,EACjE,kBAAkB,EAClB,GAAG,MAAM,EACV,KACC,YAAY,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,KAAI;IAC5C,OAAO,QAAQ,IAAI,eAAe;UAC9B,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,eAAe,CAAC;AAC1D,UAAE,eAAe,CAAC,UAAU,CAAC,IAAI,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;AACjG,CAAC,EAAE;AAEL;;;;;;AAMG;AACH,SAAS,eAAe,CAAC,KAA8B,EAAA;IACrD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;AACjF,CAAC;AAED;;;;;;;;AAQG;AACH,SAAS,iBAAiB,CACxB,GAAQ,EACR,KAAY,EACZ,aAAiC,EAAA;IAEjC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC;AAChF;;;;"}
1
+ {"version":3,"file":"url-params.getter.js","sources":["../../../../../../src/x-modules/url/store/getters/url-params.getter.ts"],"sourcesContent":["import type { UrlParamValue, UrlXStoreModule } from '../types'\nimport { objectFilter } from '@empathyco/x-utils'\nimport { initialUrlState } from '../initial-state'\n\n/**\n * Default implementation for the getter.\n *\n * @param state - Current state of the url module.\n * @returns The url params.\n * @public\n */\nexport const urlParams: UrlXStoreModule['getters']['urlParams'] = ({\n initialExtraParams,\n ...params\n}) =>\n objectFilter(params, (paramKey, paramValue) => {\n return paramKey in initialUrlState\n ? isNotDefaultValue(paramKey, paramValue, initialUrlState)\n : isNotEmptyParam(paramValue) && isNotDefaultValue(paramKey, paramValue, initialExtraParams)\n })\n\n/**\n * Checks if a parameter is not empty to avoid adding it to the URL.\n *\n * @param value - The value of the key parameter.\n *\n * @returns True if is not empty, False otherwise.\n */\nfunction isNotEmptyParam(value: UrlParamValue | unknown): boolean {\n return Array.isArray(value) ? value.length > 0 : value != null && value !== ''\n}\n\n/**\n * Checks if a parameter is not the default state value to avoid adding it to the URL.\n *\n * @param key - The key parameter.\n * @param value - The value of the key parameter.\n * @param defaultValues - The default values to compare.\n *\n * @returns True if is not the default state value, False otherwise.\n */\nfunction isNotDefaultValue<Key extends string | number, Value extends UrlParamValue | unknown>(\n key: Key,\n value: Value,\n defaultValues: Record<Key, Value>,\n): boolean {\n return Array.isArray(value) ? value.length > 0 : defaultValues[key] !== value\n}\n"],"names":[],"mappings":";;;AAIA;;;;;;AAMG;MACU,SAAS,GAA4C,CAAC,EACjE,kBAAkB,EAClB,GAAG,MAAM,EACV,KACC,YAAY,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,KAAI;IAC5C,OAAO,QAAQ,IAAI,eAAe;UAC9B,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,eAAe,CAAC;AAC1D,UAAE,eAAe,CAAC,UAAU,CAAC,IAAI,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAA;AAChG,CAAC,EAAC;AAEJ;;;;;;AAMG;AACH,SAAS,eAAe,CAAC,KAA8B,EAAA;IACrD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,CAAA;AAChF,CAAC;AAED;;;;;;;;AAQG;AACH,SAAS,iBAAiB,CACxB,GAAQ,EACR,KAAY,EACZ,aAAiC,EAAA;IAEjC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,KAAK,KAAK,CAAA;AAC/E;;;;"}
@@ -10,7 +10,8 @@ const initialUrlState = {
10
10
  filter: [],
11
11
  sort: '',
12
12
  scroll: '',
13
- tag: []
13
+ tag: [],
14
+ prompt: -1,
14
15
  };
15
16
 
16
17
  export { initialUrlState };
@@ -1 +1 @@
1
- {"version":3,"file":"initial-state.js","sources":["../../../../../src/x-modules/url/store/initial-state.ts"],"sourcesContent":["import { UrlParams } from '../../../types/url-params';\n\n/**\n * The initial state of the Url store module. This is exported and used in other parts of the code\n * to use as default values for {@link UrlState}.\n *\n * @internal\n */\nexport const initialUrlState: Readonly<UrlParams> = {\n query: '',\n page: 1,\n filter: [],\n sort: '',\n scroll: '',\n tag: []\n};\n"],"names":[],"mappings":"AAEA;;;;;AAKG;AACU,MAAA,eAAe,GAAwB;AAClD,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,GAAG,EAAE,EAAE;;;;;"}
1
+ {"version":3,"file":"initial-state.js","sources":["../../../../../src/x-modules/url/store/initial-state.ts"],"sourcesContent":["import type { UrlParams } from '../../../types/url-params'\n\n/**\n * The initial state of the Url store module. This is exported and used in other parts of the code\n * to use as default values for {@link UrlState}.\n *\n * @internal\n */\nexport const initialUrlState: Readonly<UrlParams> = {\n query: '',\n page: 1,\n filter: [],\n sort: '',\n scroll: '',\n tag: [],\n prompt: -1,\n}\n"],"names":[],"mappings":"AAEA;;;;;AAKG;AACU,MAAA,eAAe,GAAwB;AAClD,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,GAAG,EAAE,EAAE;IACP,MAAM,EAAE,CAAC,CAAC;;;;;"}
@@ -11,10 +11,10 @@ import { setParams } from './mutations/set-params.mutation.js';
11
11
  const urlXStoreModule = {
12
12
  state: () => ({
13
13
  ...initialUrlState,
14
- initialExtraParams: {}
14
+ initialExtraParams: {},
15
15
  }),
16
16
  getters: {
17
- urlParams
17
+ urlParams,
18
18
  },
19
19
  mutations: {
20
20
  setParams,
@@ -22,6 +22,9 @@ const urlXStoreModule = {
22
22
  setRelatedTags(state, relatedTags) {
23
23
  state.tag = relatedTags.map(relatedTag => relatedTag.tag);
24
24
  },
25
+ setPrompt(state, prompt) {
26
+ state.prompt = prompt;
27
+ },
25
28
  setFilters(state, newFilters) {
26
29
  state.filter = newFilters.map(filter => filter.id);
27
30
  },
@@ -36,9 +39,9 @@ const urlXStoreModule = {
36
39
  },
37
40
  setScroll(state, scroll) {
38
41
  state.scroll = scroll;
39
- }
42
+ },
40
43
  },
41
- actions: {}
44
+ actions: {},
42
45
  };
43
46
 
44
47
  export { urlXStoreModule };
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../../../../../src/x-modules/url/store/module.ts"],"sourcesContent":["import { setQuery } from '../../../store/utils/query.utils';\nimport { urlParams } from './getters/url-params.getter';\nimport { initialUrlState } from './initial-state';\nimport { setParams } from './mutations/set-params.mutation';\nimport { UrlXStoreModule } from './types';\n\n/**\n * {@link XStoreModule} For the URL module.\n *\n * @internal\n */\nexport const urlXStoreModule: UrlXStoreModule = {\n state: () => ({\n ...initialUrlState,\n initialExtraParams: {}\n }),\n getters: {\n urlParams\n },\n mutations: {\n setParams,\n setQuery,\n setRelatedTags(state, relatedTags) {\n state.tag = relatedTags.map(relatedTag => relatedTag.tag);\n },\n setFilters(state, newFilters) {\n state.filter = newFilters.map(filter => filter.id as string);\n },\n setPage(state, page) {\n state.page = page;\n },\n setSort(state, sort) {\n state.sort = sort;\n },\n setInitialExtraParams(state, extraParams) {\n state.initialExtraParams = extraParams;\n },\n setScroll(state, scroll) {\n state.scroll = scroll;\n }\n },\n actions: {}\n};\n"],"names":[],"mappings":";;;;;AAMA;;;;AAIG;AACU,MAAA,eAAe,GAAoB;AAC9C,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,GAAG,eAAe;AAClB,QAAA,kBAAkB,EAAE,EAAE;KACvB,CAAC;AACF,IAAA,OAAO,EAAE;QACP,SAAS;AACV,KAAA;AACD,IAAA,SAAS,EAAE;QACT,SAAS;QACT,QAAQ;QACR,cAAc,CAAC,KAAK,EAAE,WAAW,EAAA;AAC/B,YAAA,KAAK,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;SAC3D;QACD,UAAU,CAAC,KAAK,EAAE,UAAU,EAAA;AAC1B,YAAA,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,EAAY,CAAC,CAAC;SAC9D;QACD,OAAO,CAAC,KAAK,EAAE,IAAI,EAAA;AACjB,YAAA,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;SACnB;QACD,OAAO,CAAC,KAAK,EAAE,IAAI,EAAA;AACjB,YAAA,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;SACnB;QACD,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAA;AACtC,YAAA,KAAK,CAAC,kBAAkB,GAAG,WAAW,CAAC;SACxC;QACD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;SACvB;AACF,KAAA;AACD,IAAA,OAAO,EAAE,EAAE;;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../../../../../src/x-modules/url/store/module.ts"],"sourcesContent":["import type { UrlXStoreModule } from './types'\nimport { setQuery } from '../../../store/utils/query.utils'\nimport { urlParams } from './getters/url-params.getter'\nimport { initialUrlState } from './initial-state'\nimport { setParams } from './mutations/set-params.mutation'\n\n/**\n * {@link XStoreModule} For the URL module.\n *\n * @internal\n */\nexport const urlXStoreModule: UrlXStoreModule = {\n state: () => ({\n ...initialUrlState,\n initialExtraParams: {},\n }),\n getters: {\n urlParams,\n },\n mutations: {\n setParams,\n setQuery,\n setRelatedTags(state, relatedTags) {\n state.tag = relatedTags.map(relatedTag => relatedTag.tag)\n },\n setPrompt(state, prompt) {\n state.prompt = prompt\n },\n setFilters(state, newFilters) {\n state.filter = newFilters.map(filter => filter.id as string)\n },\n setPage(state, page) {\n state.page = page\n },\n setSort(state, sort) {\n state.sort = sort\n },\n setInitialExtraParams(state, extraParams) {\n state.initialExtraParams = extraParams\n },\n setScroll(state, scroll) {\n state.scroll = scroll\n },\n },\n actions: {},\n}\n"],"names":[],"mappings":";;;;;AAMA;;;;AAIG;AACU,MAAA,eAAe,GAAoB;AAC9C,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,GAAG,eAAe;AAClB,QAAA,kBAAkB,EAAE,EAAE;KACvB,CAAC;AACF,IAAA,OAAO,EAAE;QACP,SAAS;AACV,KAAA;AACD,IAAA,SAAS,EAAE;QACT,SAAS;QACT,QAAQ;QACR,cAAc,CAAC,KAAK,EAAE,WAAW,EAAA;AAC/B,YAAA,KAAK,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,CAAA;SAC1D;QACD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM,CAAA;SACtB;QACD,UAAU,CAAC,KAAK,EAAE,UAAU,EAAA;AAC1B,YAAA,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,EAAY,CAAC,CAAA;SAC7D;QACD,OAAO,CAAC,KAAK,EAAE,IAAI,EAAA;AACjB,YAAA,KAAK,CAAC,IAAI,GAAG,IAAI,CAAA;SAClB;QACD,OAAO,CAAC,KAAK,EAAE,IAAI,EAAA;AACjB,YAAA,KAAK,CAAC,IAAI,GAAG,IAAI,CAAA;SAClB;QACD,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAA;AACtC,YAAA,KAAK,CAAC,kBAAkB,GAAG,WAAW,CAAA;SACvC;QACD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM,CAAA;SACtB;AACF,KAAA;AACD,IAAA,OAAO,EAAE,EAAE;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"set-params.mutation.js","sources":["../../../../../../src/x-modules/url/store/mutations/set-params.mutation.ts"],"sourcesContent":["import { forEach } from '@empathyco/x-utils';\nimport { UrlXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link UrlMutations.setParams} mutation.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the history\n * queries module.\n * @param params - The mutation payload with the extra params to set in the state.\n * @remarks The change is done using `Vue.set` because we are adding new fields to the state. So\n * this is necessary to make them reactive.\n * @public\n */\nexport const setParams: UrlXStoreModule['mutations']['setParams'] = (state, params) => {\n forEach(params, (key, value) => {\n state[key] = value;\n });\n};\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;MACU,SAAS,GAA8C,CAAC,KAAK,EAAE,MAAM,KAAI;IACpF,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,KAAI;AAC7B,QAAA,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACrB,KAAC,CAAC,CAAC;AACL;;;;"}
1
+ {"version":3,"file":"set-params.mutation.js","sources":["../../../../../../src/x-modules/url/store/mutations/set-params.mutation.ts"],"sourcesContent":["import type { UrlXStoreModule } from '../types'\nimport { forEach } from '@empathyco/x-utils'\n\n/**\n * Default implementation for the {@link UrlMutations.setParams} mutation.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the history\n * queries module.\n * @param params - The mutation payload with the extra params to set in the state.\n * @remarks The change is done using `Vue.set` because we are adding new fields to the state. So\n * this is necessary to make them reactive.\n * @public\n */\nexport const setParams: UrlXStoreModule['mutations']['setParams'] = (state, params) => {\n forEach(params, (key, value) => {\n state[key] = value\n })\n}\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;MACU,SAAS,GAA8C,CAAC,KAAK,EAAE,MAAM,KAAI;IACpF,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,KAAI;AAC7B,QAAA,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AACpB,KAAC,CAAC,CAAA;AACJ;;;;"}