@coveo/atomic 3.33.8-pre.18a75c25e4 → 3.33.8-pre.1c7ce2c966

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 (297) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/atomic.esm.js.map +1 -1
  3. package/dist/atomic/components/_index.d.ts +0 -2
  4. package/dist/atomic/components/_index.js +2 -2
  5. package/dist/atomic/components/analytics-config.js +1 -1
  6. package/dist/atomic/components/atomic-category-facet.js +1 -1
  7. package/dist/atomic/components/atomic-facet.js +1 -1
  8. package/dist/atomic/components/atomic-format-currency.js +1 -1
  9. package/dist/atomic/components/atomic-format-number.js +1 -1
  10. package/dist/atomic/components/atomic-format-unit.js +1 -1
  11. package/dist/atomic/components/atomic-insight-pager.js +38 -2
  12. package/dist/atomic/components/atomic-insight-pager.js.map +1 -1
  13. package/dist/atomic/components/atomic-insight-search-box.js +3 -4
  14. package/dist/atomic/components/atomic-insight-search-box.js.map +1 -1
  15. package/dist/atomic/components/atomic-numeric-facet.js +1 -1
  16. package/dist/atomic/components/atomic-query-error.js +1 -1
  17. package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
  18. package/dist/atomic/components/atomic-quickview.js +1 -1
  19. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  20. package/dist/atomic/components/atomic-refine-toggle.js +1 -1
  21. package/dist/atomic/components/atomic-relevance-inspector2.js +2 -2
  22. package/dist/atomic/components/atomic-result-children.js +1 -1
  23. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  24. package/dist/atomic/components/atomic-result-link.js +1 -1
  25. package/dist/atomic/components/atomic-result-list.js +1 -1
  26. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  27. package/dist/atomic/components/atomic-search-box-instant-results.js +2 -2
  28. package/dist/atomic/components/atomic-search-box-instant-results.js.map +1 -1
  29. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +2 -2
  30. package/dist/atomic/components/atomic-search-box-query-suggestions2.js.map +1 -1
  31. package/dist/atomic/components/atomic-search-box-recent-queries2.js +2 -2
  32. package/dist/atomic/components/atomic-search-box-recent-queries2.js.map +1 -1
  33. package/dist/atomic/components/atomic-search-box.js +5 -6
  34. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  35. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  36. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  37. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  38. package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
  39. package/dist/atomic/components/atomic-suggestion-renderer2.js.map +1 -1
  40. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  41. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +18 -11
  42. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +2 -7
  43. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +19 -10
  44. package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +3 -2
  45. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +1 -1
  46. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -1
  47. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -1
  48. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +1 -1
  49. package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
  50. package/dist/atomic/components/components/common/layout/layout-styles-controller.js +40 -0
  51. package/dist/atomic/components/components/common/layout/mobile-breakpoint-controller.js +26 -0
  52. package/dist/atomic/components/components/common/suggestions/suggestion-manager.js +1 -1
  53. package/dist/atomic/components/components/common/suggestions/{suggestions-common.js → suggestions-events.js} +16 -18
  54. package/dist/atomic/components/components/common/suggestions/suggestions-types.js +1 -0
  55. package/dist/atomic/components/components/common/suggestions/suggestions-utils.js +18 -0
  56. package/dist/atomic/components/components/search/atomic-pager/atomic-pager.js +178 -0
  57. package/dist/atomic/components/components/search/index.js +1 -0
  58. package/dist/atomic/components/components/search/lazy-index.js +1 -0
  59. package/dist/atomic/components/global/environment.js +1 -1
  60. package/dist/atomic/components/stencil-query-suggestions.js.map +1 -1
  61. package/dist/atomic/components/stencil-suggestion-manager.js +20 -2
  62. package/dist/atomic/components/stencil-suggestion-manager.js.map +1 -1
  63. package/dist/atomic/components/{suggestions-common.js → suggestions-events.js} +18 -20
  64. package/dist/atomic/components/suggestions-events.js.map +1 -0
  65. package/dist/atomic/index.esm.js +1 -1
  66. package/dist/atomic/index.esm.js.map +1 -1
  67. package/dist/atomic/{p-ae060711.entry.js → p-00e5bb15.entry.js} +2 -2
  68. package/dist/atomic/p-0a051b8d.js +2 -0
  69. package/dist/atomic/p-0a051b8d.js.map +1 -0
  70. package/dist/atomic/p-16f4ce98.js +2 -0
  71. package/dist/atomic/p-16f4ce98.js.map +1 -0
  72. package/dist/atomic/{p-c647000a.entry.js → p-21b4ed5f.entry.js} +2 -2
  73. package/dist/atomic/{p-8867af82.entry.js → p-26a51a77.entry.js} +2 -2
  74. package/dist/atomic/p-26a51a77.entry.js.map +1 -0
  75. package/dist/atomic/{p-330e6e7c.entry.js → p-3af5c567.entry.js} +2 -2
  76. package/dist/atomic/{p-75e00690.entry.js → p-45c4685e.entry.js} +2 -2
  77. package/dist/atomic/{p-7a625c7e.entry.js → p-4915faeb.entry.js} +2 -2
  78. package/dist/atomic/p-4b7a19db.js +2 -0
  79. package/dist/atomic/p-4b7a19db.js.map +1 -0
  80. package/dist/atomic/{p-52ba404c.entry.js → p-4c30ca3e.entry.js} +2 -2
  81. package/dist/atomic/{p-aa2a81fd.entry.js → p-4e9d1f9e.entry.js} +2 -2
  82. package/dist/atomic/{p-c1bf43cf.entry.js → p-516b8165.entry.js} +2 -2
  83. package/dist/atomic/p-516b8165.entry.js.map +1 -0
  84. package/dist/atomic/p-593903ec.entry.js +2 -0
  85. package/dist/atomic/p-593903ec.entry.js.map +1 -0
  86. package/dist/atomic/{p-877d35b1.entry.js → p-5adbf098.entry.js} +2 -2
  87. package/dist/atomic/{p-4b3d253b.entry.js → p-65373475.entry.js} +2 -2
  88. package/dist/atomic/{p-6a938fb2.entry.js → p-6b3b975e.entry.js} +2 -2
  89. package/dist/atomic/{p-3c8d109e.entry.js → p-6f988841.entry.js} +2 -2
  90. package/dist/atomic/{p-b28011e6.entry.js → p-71bb8125.entry.js} +2 -2
  91. package/dist/atomic/{p-de066001.entry.js → p-757de797.entry.js} +2 -2
  92. package/dist/atomic/{p-78b70622.entry.js → p-8acb1466.entry.js} +2 -2
  93. package/dist/atomic/{p-93e29b24.entry.js → p-9883415e.entry.js} +2 -2
  94. package/dist/atomic/{p-7b899b57.entry.js → p-a02b1209.entry.js} +2 -2
  95. package/dist/atomic/{p-72491b2f.js → p-aab5c11d.js} +2 -2
  96. package/dist/atomic/p-af93b44c.js.map +1 -1
  97. package/dist/atomic/{p-d00a12e9.entry.js → p-b4ad3036.entry.js} +2 -2
  98. package/dist/atomic/{p-a760d9f9.entry.js → p-be1b98a6.entry.js} +2 -2
  99. package/dist/atomic/{p-7dfcd6af.entry.js → p-bf50b64d.entry.js} +2 -2
  100. package/dist/atomic/{p-36e71b99.entry.js → p-d0f47b33.entry.js} +2 -2
  101. package/dist/atomic/p-d0f47b33.entry.js.map +1 -0
  102. package/dist/atomic/{p-c49cfa0c.entry.js → p-d11b2b24.entry.js} +2 -2
  103. package/dist/atomic/{p-f22bcb8c.entry.js → p-d2d22ab2.entry.js} +2 -2
  104. package/dist/atomic/{p-bbe512f1.entry.js → p-d6969a23.entry.js} +2 -2
  105. package/dist/atomic/{p-021f01d6.entry.js → p-e8d5e852.entry.js} +2 -2
  106. package/dist/atomic/{p-7b0b9e9b.entry.js → p-f073a78d.entry.js} +2 -2
  107. package/dist/atomic/{p-3d847e45.entry.js → p-fb7ad34b.entry.js} +2 -2
  108. package/dist/atomic/p-fb7ad34b.entry.js.map +1 -0
  109. package/dist/atomic/{p-aa4224ea.entry.js → p-fbfe913d.entry.js} +2 -2
  110. package/dist/atomic/p-fbfe913d.entry.js.map +1 -0
  111. package/dist/cjs/_index.cjs.js +5 -2
  112. package/dist/cjs/_loader.cjs.js +1 -1
  113. package/dist/cjs/{analytics-config-61dcc454.js → analytics-config-d9548c8b.js} +2 -2
  114. package/dist/cjs/{analytics-config-61dcc454.js.map → analytics-config-d9548c8b.js.map} +1 -1
  115. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  116. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  117. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  118. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  119. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  120. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  121. package/dist/cjs/atomic-insight-pager.cjs.entry.js +41 -7
  122. package/dist/cjs/atomic-insight-pager.cjs.entry.js.map +1 -1
  123. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +5 -5
  124. package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
  125. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
  126. package/dist/cjs/atomic-query-error.cjs.entry.js +1 -1
  127. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
  128. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  129. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  130. package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
  131. package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
  132. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
  133. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  134. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  135. package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
  136. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  137. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +1 -1
  138. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +3 -3
  139. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js.map +1 -1
  140. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +5 -5
  141. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +1 -1
  142. package/dist/cjs/atomic-search-box.cjs.entry.js +7 -7
  143. package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
  144. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  145. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  146. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  147. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  148. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
  149. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js.map +1 -1
  150. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  151. package/dist/cjs/atomic.cjs.js +1 -1
  152. package/dist/cjs/index-757bc886.js +0 -4
  153. package/dist/cjs/index.cjs.js.map +1 -1
  154. package/dist/cjs/stencil-query-suggestions-03268ecc.js.map +1 -1
  155. package/dist/cjs/{stencil-suggestion-manager-c0878ef2.js → stencil-suggestion-manager-2cba6d69.js} +4 -4
  156. package/dist/cjs/{stencil-suggestion-manager-c0878ef2.js.map → stencil-suggestion-manager-2cba6d69.js.map} +1 -1
  157. package/dist/cjs/{suggestions-common-5097a362.js → suggestions-events-63dd0640.js} +17 -21
  158. package/dist/cjs/suggestions-events-63dd0640.js.map +1 -0
  159. package/dist/cjs/suggestions-utils-61000808.js +25 -0
  160. package/dist/cjs/suggestions-utils-61000808.js.map +1 -0
  161. package/dist/cjs/version.cjs.js +2 -2
  162. package/dist/esm/_index.js +2 -1
  163. package/dist/esm/_loader.js +1 -1
  164. package/dist/esm/{analytics-config-34399a3d.js → analytics-config-da8447f3.js} +2 -2
  165. package/dist/esm/{analytics-config-34399a3d.js.map → analytics-config-da8447f3.js.map} +1 -1
  166. package/dist/esm/atomic-category-facet.entry.js +1 -1
  167. package/dist/esm/atomic-facet.entry.js +1 -1
  168. package/dist/esm/atomic-format-currency.entry.js +1 -1
  169. package/dist/esm/atomic-format-number.entry.js +1 -1
  170. package/dist/esm/atomic-format-unit.entry.js +1 -1
  171. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  172. package/dist/esm/atomic-insight-pager.entry.js +38 -4
  173. package/dist/esm/atomic-insight-pager.entry.js.map +1 -1
  174. package/dist/esm/atomic-insight-search-box.entry.js +4 -4
  175. package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
  176. package/dist/esm/atomic-numeric-facet.entry.js +1 -1
  177. package/dist/esm/atomic-query-error.entry.js +1 -1
  178. package/dist/esm/atomic-quickview-modal.entry.js +1 -1
  179. package/dist/esm/atomic-quickview.entry.js +1 -1
  180. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  181. package/dist/esm/atomic-refine-modal.entry.js +1 -1
  182. package/dist/esm/atomic-refine-toggle.entry.js +1 -1
  183. package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
  184. package/dist/esm/atomic-result-children.entry.js +1 -1
  185. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  186. package/dist/esm/atomic-result-link.entry.js +1 -1
  187. package/dist/esm/atomic-result-list.entry.js +1 -1
  188. package/dist/esm/atomic-result-placeholder_8.entry.js +1 -1
  189. package/dist/esm/atomic-search-box-instant-results.entry.js +2 -2
  190. package/dist/esm/atomic-search-box-instant-results.entry.js.map +1 -1
  191. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +3 -3
  192. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +1 -1
  193. package/dist/esm/atomic-search-box.entry.js +6 -6
  194. package/dist/esm/atomic-search-box.entry.js.map +1 -1
  195. package/dist/esm/atomic-search-interface.entry.js +1 -1
  196. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  197. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  198. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  199. package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
  200. package/dist/esm/atomic-suggestion-renderer.entry.js.map +1 -1
  201. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  202. package/dist/esm/atomic.js +1 -1
  203. package/dist/esm/index-3f35faca.js +0 -4
  204. package/dist/esm/index.js.map +1 -1
  205. package/dist/esm/stencil-query-suggestions-5d6a46d7.js.map +1 -1
  206. package/dist/esm/{stencil-suggestion-manager-486094dd.js → stencil-suggestion-manager-376f83e8.js} +2 -2
  207. package/dist/esm/{stencil-suggestion-manager-486094dd.js.map → stencil-suggestion-manager-376f83e8.js.map} +1 -1
  208. package/dist/esm/{suggestions-common-2b20db26.js → suggestions-events-b7a6f007.js} +18 -20
  209. package/dist/esm/suggestions-events-b7a6f007.js.map +1 -0
  210. package/dist/esm/suggestions-utils-591559a0.js +22 -0
  211. package/dist/esm/suggestions-utils-591559a0.js.map +1 -0
  212. package/dist/esm/version.js +2 -2
  213. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
  214. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +0 -1
  215. package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +3 -3
  216. package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -1
  217. package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -1
  218. package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +1 -1
  219. package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts +1 -1
  220. package/dist/types/components/common/layout/layout-styles-controller.d.ts +22 -0
  221. package/dist/types/components/common/layout/mobile-breakpoint-controller.d.ts +18 -0
  222. package/dist/types/components/common/suggestions/instant-item.d.ts +1 -1
  223. package/dist/types/components/common/suggestions/query-suggestions.d.ts +1 -1
  224. package/dist/types/components/common/suggestions/recent-queries.d.ts +1 -1
  225. package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +1 -1
  226. package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +1 -1
  227. package/dist/types/components/common/suggestions/stencil-recent-queries.d.ts +1 -1
  228. package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +1 -1
  229. package/dist/types/components/common/suggestions/suggestion-manager.d.ts +1 -1
  230. package/dist/types/components/common/suggestions/suggestions-events.d.ts +14 -0
  231. package/dist/types/components/common/suggestions/{suggestions-common.d.ts → suggestions-types.d.ts} +6 -16
  232. package/dist/types/components/common/suggestions/suggestions-utils.d.ts +15 -0
  233. package/dist/types/components/search/atomic-pager/atomic-pager.d.ts +26 -16
  234. package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -1
  235. package/dist/types/components/search/index.d.ts +1 -0
  236. package/dist/types/components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results.d.ts +1 -1
  237. package/dist/types/components.d.ts +2 -67
  238. package/dist/types/decorators/types.d.ts +1 -1
  239. package/dist/types/index.d.ts +3 -1
  240. package/docs/atomic-docs.json +3 -169
  241. package/package.json +4 -4
  242. package/dist/atomic/components/atomic-pager.d.ts +0 -11
  243. package/dist/atomic/components/atomic-pager.js +0 -134
  244. package/dist/atomic/components/atomic-pager.js.map +0 -1
  245. package/dist/atomic/components/stencil-pager-navigation.js +0 -42
  246. package/dist/atomic/components/stencil-pager-navigation.js.map +0 -1
  247. package/dist/atomic/components/suggestions-common.js.map +0 -1
  248. package/dist/atomic/p-211d7d6a.js +0 -2
  249. package/dist/atomic/p-211d7d6a.js.map +0 -1
  250. package/dist/atomic/p-29fd6768.js +0 -2
  251. package/dist/atomic/p-29fd6768.js.map +0 -1
  252. package/dist/atomic/p-36e71b99.entry.js.map +0 -1
  253. package/dist/atomic/p-3d847e45.entry.js.map +0 -1
  254. package/dist/atomic/p-7601c3de.js +0 -2
  255. package/dist/atomic/p-7601c3de.js.map +0 -1
  256. package/dist/atomic/p-8867af82.entry.js.map +0 -1
  257. package/dist/atomic/p-aa4224ea.entry.js.map +0 -1
  258. package/dist/atomic/p-c1bf43cf.entry.js.map +0 -1
  259. package/dist/atomic/p-fa8b7c4c.entry.js +0 -2
  260. package/dist/atomic/p-fa8b7c4c.entry.js.map +0 -1
  261. package/dist/atomic/p-fcf3f7d7.entry.js +0 -2
  262. package/dist/atomic/p-fcf3f7d7.entry.js.map +0 -1
  263. package/dist/cjs/atomic-pager.cjs.entry.js +0 -121
  264. package/dist/cjs/atomic-pager.cjs.entry.js.map +0 -1
  265. package/dist/cjs/stencil-pager-navigation-c20b8a95.js +0 -48
  266. package/dist/cjs/stencil-pager-navigation-c20b8a95.js.map +0 -1
  267. package/dist/cjs/suggestions-common-5097a362.js.map +0 -1
  268. package/dist/esm/atomic-pager.entry.js +0 -117
  269. package/dist/esm/atomic-pager.entry.js.map +0 -1
  270. package/dist/esm/stencil-pager-navigation-7261a834.js +0 -42
  271. package/dist/esm/stencil-pager-navigation-7261a834.js.map +0 -1
  272. package/dist/esm/suggestions-common-2b20db26.js.map +0 -1
  273. /package/dist/atomic/{p-ae060711.entry.js.map → p-00e5bb15.entry.js.map} +0 -0
  274. /package/dist/atomic/{p-c647000a.entry.js.map → p-21b4ed5f.entry.js.map} +0 -0
  275. /package/dist/atomic/{p-330e6e7c.entry.js.map → p-3af5c567.entry.js.map} +0 -0
  276. /package/dist/atomic/{p-75e00690.entry.js.map → p-45c4685e.entry.js.map} +0 -0
  277. /package/dist/atomic/{p-7a625c7e.entry.js.map → p-4915faeb.entry.js.map} +0 -0
  278. /package/dist/atomic/{p-52ba404c.entry.js.map → p-4c30ca3e.entry.js.map} +0 -0
  279. /package/dist/atomic/{p-aa2a81fd.entry.js.map → p-4e9d1f9e.entry.js.map} +0 -0
  280. /package/dist/atomic/{p-877d35b1.entry.js.map → p-5adbf098.entry.js.map} +0 -0
  281. /package/dist/atomic/{p-4b3d253b.entry.js.map → p-65373475.entry.js.map} +0 -0
  282. /package/dist/atomic/{p-6a938fb2.entry.js.map → p-6b3b975e.entry.js.map} +0 -0
  283. /package/dist/atomic/{p-3c8d109e.entry.js.map → p-6f988841.entry.js.map} +0 -0
  284. /package/dist/atomic/{p-b28011e6.entry.js.map → p-71bb8125.entry.js.map} +0 -0
  285. /package/dist/atomic/{p-de066001.entry.js.map → p-757de797.entry.js.map} +0 -0
  286. /package/dist/atomic/{p-78b70622.entry.js.map → p-8acb1466.entry.js.map} +0 -0
  287. /package/dist/atomic/{p-93e29b24.entry.js.map → p-9883415e.entry.js.map} +0 -0
  288. /package/dist/atomic/{p-7b899b57.entry.js.map → p-a02b1209.entry.js.map} +0 -0
  289. /package/dist/atomic/{p-72491b2f.js.map → p-aab5c11d.js.map} +0 -0
  290. /package/dist/atomic/{p-d00a12e9.entry.js.map → p-b4ad3036.entry.js.map} +0 -0
  291. /package/dist/atomic/{p-a760d9f9.entry.js.map → p-be1b98a6.entry.js.map} +0 -0
  292. /package/dist/atomic/{p-7dfcd6af.entry.js.map → p-bf50b64d.entry.js.map} +0 -0
  293. /package/dist/atomic/{p-c49cfa0c.entry.js.map → p-d11b2b24.entry.js.map} +0 -0
  294. /package/dist/atomic/{p-f22bcb8c.entry.js.map → p-d2d22ab2.entry.js.map} +0 -0
  295. /package/dist/atomic/{p-bbe512f1.entry.js.map → p-d6969a23.entry.js.map} +0 -0
  296. /package/dist/atomic/{p-021f01d6.entry.js.map → p-e8d5e852.entry.js.map} +0 -0
  297. /package/dist/atomic/{p-7b0b9e9b.entry.js.map → p-f073a78d.entry.js.map} +0 -0
@@ -1,6 +1,22 @@
1
1
  import { c as closest } from './dom-utils-f6086cd3.js';
2
2
  import { b as buildCustomEvent } from './event-utils-8de63ec3.js';
3
3
 
4
+ /**
5
+ * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
6
+ *
7
+ * @param event Event sent from the registered query suggestions to the parent search box
8
+ * @param element Element on which to dispatch the event, which must be the child of a configured search box
9
+ * @param allowedSearchBoxElements Optional array of allowed search box element selectors
10
+ *
11
+ * @throws Error if the element is not a child of an allowed search box element
12
+ */
13
+ const dispatchSearchBoxSuggestionsEvent = (event, element, allowedSearchBoxElements = searchBoxElements) => {
14
+ const interfaceElement = closest(element, searchBoxElements.join(', '));
15
+ if (!interfaceElement) {
16
+ throw new Error(`The "${element.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(', ')}`);
17
+ }
18
+ void dispatchSearchBoxSuggestionsEventEventually(interfaceElement, element, event);
19
+ };
4
20
  const searchBoxElements = [
5
21
  'atomic-search-box',
6
22
  'atomic-insight-search-box',
@@ -18,25 +34,7 @@ const dispatchSearchBoxSuggestionsEventEventually = async (interfaceElement, ele
18
34
  }
19
35
  element.dispatchEvent(buildCustomEvent('atomic/searchBoxSuggestion/register', event));
20
36
  };
21
- /**
22
- * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
23
- * @param event Event sent from the registered query suggestions to the parent search box.
24
- * @param element Element on which to dispatch the event, which must be the child of a configured search box.
25
- */
26
- const dispatchSearchBoxSuggestionsEvent = (event, element, allowedSearchBoxElements = searchBoxElements) => {
27
- const interfaceElement = closest(element, searchBoxElements.join(', '));
28
- if (!interfaceElement) {
29
- throw new Error(`The "${element.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(', ')}`);
30
- }
31
- void dispatchSearchBoxSuggestionsEventEventually(interfaceElement, element, event);
32
- };
33
- function elementHasNoQuery(el) {
34
- return !el.query || el.query.trim() === '';
35
- }
36
- function elementHasQuery(el) {
37
- return !!el.query && el.query.trim() !== '';
38
- }
39
37
 
40
- export { elementHasNoQuery as a, dispatchSearchBoxSuggestionsEvent as d, elementHasQuery as e };
38
+ export { dispatchSearchBoxSuggestionsEvent as d };
41
39
 
42
- //# sourceMappingURL=suggestions-common-2b20db26.js.map
40
+ //# sourceMappingURL=suggestions-events-b7a6f007.js.map
@@ -0,0 +1 @@
1
+ {"file":"suggestions-events-b7a6f007.js","mappings":";;;AAOA;;;;;;;;;MASa,iCAAiC,GAAG,CAI/C,KAA+D,EAC/D,OAAoB,EACpB,2BAA0E,iBAAiB;IAE3F,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,KAAK,CACb,QAAQ,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gFAAgF,wBAAwB,CAAC,IAAI,CACjJ,IAAI,CACL,EAAE,CACJ,CAAC;KACH;IACD,KAAK,2CAA2C,CAC9C,gBAAgB,EAChB,OAAO,EACP,KAAK,CACN,CAAC;AACJ,EAAE;AAEF,MAAM,iBAAiB,GAAG;IACxB,mBAAmB;IACnB,2BAA2B;IAC3B,4BAA4B;CACpB,CAAC;AAEX,MAAM,mBAAmB,GAAG,CAAC,SAAkB,KAC7C,gBAAgB,IAAK,SAAwB;IAC5C,SAAwB,CAAC,cAAc,YAAY,OAAO,CAAC;AAE9D,MAAM,2CAA2C,GAAG,OAIlD,gBAAyB,EACzB,OAAoB,EACpB,KAA+D;IAE/D,MAAM,cAAc,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1E,IAAI,mBAAmB,CAAC,gBAAgB,CAAC,EAAE;QACzC,MAAM,gBAAgB,CAAC,cAAc,CAAC;KACvC;SAAM,IAAI,kBAAkB,IAAI,gBAAgB,EAAE;QACjD,MAAO,gBAAuC,CAAC,gBAAgB,EAAE,CAAC;KACnE;IACD,OAAO,CAAC,aAAa,CACnB,gBAAgB,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAC/D,CAAC;AACJ,CAAC;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-events.ts"],"sourcesContent":["import type {HTMLStencilElement} from '@stencil/core/internal';\nimport type {LitElement} from 'lit';\nimport {closest} from '../../../utils/dom-utils';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport type {AnyBindings} from '../interface/bindings';\nimport type {SearchBoxSuggestionsEvent} from './suggestions-types';\n\n/**\n * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.\n *\n * @param event Event sent from the registered query suggestions to the parent search box\n * @param element Element on which to dispatch the event, which must be the child of a configured search box\n * @param allowedSearchBoxElements Optional array of allowed search box element selectors\n *\n * @throws Error if the element is not a child of an allowed search box element\n */\nexport const dispatchSearchBoxSuggestionsEvent = <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>,\n element: HTMLElement,\n allowedSearchBoxElements: readonly (typeof searchBoxElements)[number][] = searchBoxElements\n) => {\n const interfaceElement = closest(element, searchBoxElements.join(', '));\n if (!interfaceElement) {\n throw new Error(\n `The \"${element.nodeName.toLowerCase()}\" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(\n ', '\n )}`\n );\n }\n void dispatchSearchBoxSuggestionsEventEventually(\n interfaceElement,\n element,\n event\n );\n};\n\nconst searchBoxElements = [\n 'atomic-search-box',\n 'atomic-insight-search-box',\n 'atomic-commerce-search-box',\n] as const;\n\nconst isLitElementLoosely = (candidate: unknown): candidate is LitElement =>\n 'updateComplete' in (candidate as LitElement) &&\n (candidate as LitElement).updateComplete instanceof Promise;\n\nconst dispatchSearchBoxSuggestionsEventEventually = async <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n interfaceElement: Element,\n element: HTMLElement,\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>\n) => {\n await customElements.whenDefined(interfaceElement.nodeName.toLowerCase());\n if (isLitElementLoosely(interfaceElement)) {\n await interfaceElement.updateComplete;\n } else if ('componentOnReady' in interfaceElement) {\n await (interfaceElement as HTMLStencilElement).componentOnReady();\n }\n element.dispatchEvent(\n buildCustomEvent('atomic/searchBoxSuggestion/register', event)\n );\n};\n"],"version":3}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Checks if a search box suggestion element has no query.
3
+ *
4
+ * @param el - The search box suggestion element to check
5
+ * @returns True if the element has no query or the query is whitespace-only
6
+ */
7
+ function elementHasNoQuery(el) {
8
+ return !el.query || el.query.trim() === '';
9
+ }
10
+ /**
11
+ * Checks if a search box suggestion element has a query.
12
+ *
13
+ * @param el - The search box suggestion element to check
14
+ * @returns True if the element has a non-empty, non-whitespace query
15
+ */
16
+ function elementHasQuery(el) {
17
+ return !!el.query && el.query.trim() !== '';
18
+ }
19
+
20
+ export { elementHasQuery as a, elementHasNoQuery as e };
21
+
22
+ //# sourceMappingURL=suggestions-utils-591559a0.js.map
@@ -0,0 +1 @@
1
+ {"file":"suggestions-utils-591559a0.js","mappings":"AAEA;;;;;;SAMgB,iBAAiB,CAAC,EAA8B;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7C,CAAC;AAED;;;;;;SAMgB,eAAe,CAAC,EAA8B;IAC5D,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC9C;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-utils.ts"],"sourcesContent":["import type {SearchBoxSuggestionElement} from './suggestions-types';\n\n/**\n * Checks if a search box suggestion element has no query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has no query or the query is whitespace-only\n */\nexport function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean {\n return !el.query || el.query.trim() === '';\n}\n\n/**\n * Checks if a search box suggestion element has a query.\n *\n * @param el - The search box suggestion element to check\n * @returns True if the element has a non-empty, non-whitespace query\n */\nexport function elementHasQuery(el: SearchBoxSuggestionElement): boolean {\n return !!el.query && el.query.trim() !== '';\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- export const headlessVersion = '3.31.0';
2
- export const atomicVersion = '3.33.8-pre.18a75c25e4';
1
+ export const headlessVersion = '3.31.1-pre.1c7ce2c966';
2
+ export const atomicVersion = '3.33.8-pre.1c7ce2c966';
@@ -52,7 +52,8 @@ export declare class AtomicCommerceBreadbox extends LitElement implements Initia
52
52
  */
53
53
  pathLimit: number;
54
54
  initialize(): void;
55
- updated(changedProperties: Map<string, unknown>): void;
55
+ willUpdate(changedProperties: Map<string, unknown>): void;
56
+ updated(): void;
56
57
  private validateProps;
57
58
  disconnectedCallback(): void;
58
59
  private get breadcrumbs();
@@ -118,7 +118,6 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
118
118
  private onHashChange;
119
119
  scrollToTop(): void;
120
120
  private updateHash;
121
- private updateMobileBreakpoint;
122
121
  }
123
122
  declare global {
124
123
  interface HTMLElementTagNameMap {
@@ -8,19 +8,19 @@ declare const AtomicCommerceLayout_base: import("../../../mixins/mixin-common").
8
8
  * @cssprop --atomic-layout-max-search-box-input-width: The maximum width that the search box input will take.
9
9
  * @cssprop --atomic-layout-max-search-box-double-suggestions-width: The maximum width that the search box suggestions will take when displaying a double list.
10
10
  * @cssprop --atomic-layout-search-box-left-suggestions-width: The width of the left list when displaying a double list.
11
- *
12
- * @slot default - The default slot for the layout content.
13
11
  */
14
12
  export declare class AtomicCommerceLayout extends AtomicCommerceLayout_base {
15
13
  static styles: import("lit").CSSResult[];
16
- private addStyles;
17
14
  error: Error;
18
15
  /**
19
16
  * The viewport width at which the layout goes from desktop to mobile.
20
17
  * E.g., 800px, 65rem.
21
18
  */
22
19
  mobileBreakpoint: string;
20
+ private layoutStylesController;
23
21
  connectedCallback(): void;
22
+ private emitBreakpointChangeEvent;
23
+ onMobileBreakpointChange(): void;
24
24
  }
25
25
  declare global {
26
26
  interface HTMLElementTagNameMap {
@@ -2,7 +2,7 @@ import { type Product, type SearchBox } from '@coveo/headless/commerce';
2
2
  import { LitElement } from 'lit';
3
3
  import type { ItemRenderingFunction } from "../../common/item-list/item-list-common";
4
4
  import type { ItemDisplayDensity, ItemDisplayImageSize } from "../../common/layout/display-options";
5
- import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-common";
5
+ import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
6
6
  import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
7
7
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
8
8
  export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product) => string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { type SearchBox } from '@coveo/headless/commerce';
2
2
  import { LitElement } from 'lit';
3
- import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-common";
3
+ import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
4
4
  import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { type SearchBox } from '@coveo/headless/commerce';
2
2
  import { LitElement } from 'lit';
3
3
  import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
4
- import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from '../../common/suggestions/suggestions-common';
4
+ import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from '../../common/suggestions/suggestions-types';
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
6
6
  /**
7
7
  * The `atomic-commerce-search-box-recent-queries` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of recent query suggestions.
@@ -1,5 +1,5 @@
1
1
  import { i18n } from 'i18next';
2
- import { SearchBoxSuggestionElement } from '../suggestions/suggestions-common';
2
+ import { SearchBoxSuggestionElement } from '../suggestions/suggestions-types';
3
3
  /**
4
4
  * The `atomic-suggestion-renderer` component is used to render individual suggestions. It was created to isolate
5
5
  * the rendering logic of the 'content' property of the `SearchBoxSuggestionElement` interface. This property can be Stencil
@@ -0,0 +1,22 @@
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ export interface LayoutStylesHost extends ReactiveControllerHost {
3
+ mobileBreakpoint: string;
4
+ getRootNode(): Node;
5
+ id?: string;
6
+ }
7
+ export type StylesBuilderFunction = (host: HTMLElement, mobileBreakpoint: string) => string;
8
+ /**
9
+ * A reactive controller that manages dynamic layout styles.
10
+ */
11
+ export declare class LayoutStylesController implements ReactiveController {
12
+ private host;
13
+ private dynamicStyleSheet;
14
+ private stylesBuilder;
15
+ private componentPrefix;
16
+ constructor(host: LayoutStylesHost, stylesBuilder: StylesBuilderFunction, componentPrefix: string);
17
+ hostConnected(): void;
18
+ /**
19
+ * Updates the dynamic styles based on the current mobile breakpoint
20
+ */
21
+ updateStyles(): void;
22
+ }
@@ -0,0 +1,18 @@
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import type { BaseStore } from "../interface/store";
3
+ /**
4
+ * A reactive controller that manages mobile breakpoint changes through event communication.
5
+ * This controller listens for 'atomic-layout-breakpoint-change' events and updates a store
6
+ * with the new breakpoint value.
7
+ */
8
+ export declare class MobileBreakpointController implements ReactiveController {
9
+ private host;
10
+ private store;
11
+ private eventListener;
12
+ constructor(host: ReactiveControllerHost, store: BaseStore<{
13
+ mobileBreakpoint: string;
14
+ }>);
15
+ hostConnected(): void;
16
+ hostDisconnected(): void;
17
+ private handleBreakpointChange;
18
+ }
@@ -1,5 +1,5 @@
1
1
  import type { i18n } from 'i18next';
2
- import type { SearchBoxSuggestionElement } from './suggestions-common';
2
+ import type { SearchBoxSuggestionElement } from './suggestions-types';
3
3
  export declare const getPartialInstantItemElement: (i18n: i18n, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
4
4
  export declare const getPartialInstantItemShowAllElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
5
5
  interface InstantItemShowAllButtonProps {
@@ -1,5 +1,5 @@
1
1
  import type { i18n } from 'i18next';
2
- import type { SearchBoxSuggestionElement } from './suggestions-common.js';
2
+ import type { SearchBoxSuggestionElement } from './suggestions-types.js';
3
3
  interface Suggestion {
4
4
  highlightedValue: string;
5
5
  rawValue: string;
@@ -1,5 +1,5 @@
1
1
  import type { i18n } from 'i18next';
2
- import type { SearchBoxSuggestionElement } from './suggestions-common';
2
+ import type { SearchBoxSuggestionElement } from './suggestions-types';
3
3
  export declare const getPartialRecentQueryElement: (value: string, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
4
4
  export declare const getPartialRecentQueryClearElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part" | "hideIfLast">;
5
5
  export interface RecentQueriesContainerProps {
@@ -1,6 +1,6 @@
1
1
  import { FunctionalComponent } from '../../../stencil-public-runtime';
2
2
  import { i18n } from 'i18next';
3
- import { SearchBoxSuggestionElement } from './suggestions-common';
3
+ import { SearchBoxSuggestionElement } from './suggestions-types';
4
4
  export declare const getPartialInstantItemElement: (i18n: i18n, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
5
5
  export declare const getPartialInstantItemShowAllElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
6
6
  interface InstantItemShowAllButtonProps {
@@ -1,6 +1,6 @@
1
1
  import { FunctionalComponent } from '../../../stencil-public-runtime';
2
2
  import { i18n } from 'i18next';
3
- import { SearchBoxSuggestionElement } from './suggestions-common.js';
3
+ import { SearchBoxSuggestionElement } from './suggestions-types.js';
4
4
  interface Suggestion {
5
5
  highlightedValue: string;
6
6
  rawValue: string;
@@ -1,6 +1,6 @@
1
1
  import { FunctionalComponent } from '../../../stencil-public-runtime';
2
2
  import { i18n } from 'i18next';
3
- import { SearchBoxSuggestionElement } from './suggestions-common';
3
+ import { SearchBoxSuggestionElement } from './suggestions-types';
4
4
  export declare const getPartialRecentQueryElement: (value: string, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
5
5
  export declare const getPartialRecentQueryClearElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part" | "hideIfLast">;
6
6
  export declare const RecentQueriesContainer: FunctionalComponent;
@@ -1,4 +1,4 @@
1
- import { type SearchBoxSuggestionElement, type SearchBoxSuggestionsBindings, type SearchBoxSuggestionsEvent } from './suggestions-common';
1
+ import type { SearchBoxSuggestionElement, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent } from './suggestions-types';
2
2
  /**
3
3
  * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import type { LitElement } from 'lit';
2
- import { type SearchBoxSuggestionElement, type SearchBoxSuggestionsBindings, type SearchBoxSuggestionsEvent } from './suggestions-common';
2
+ import type { SearchBoxSuggestionElement, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent } from './suggestions-types';
3
3
  /**
4
4
  * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.
5
5
  */
@@ -0,0 +1,14 @@
1
+ import type { AnyBindings } from '../interface/bindings';
2
+ import type { SearchBoxSuggestionsEvent } from './suggestions-types';
3
+ /**
4
+ * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
5
+ *
6
+ * @param event Event sent from the registered query suggestions to the parent search box
7
+ * @param element Element on which to dispatch the event, which must be the child of a configured search box
8
+ * @param allowedSearchBoxElements Optional array of allowed search box element selectors
9
+ *
10
+ * @throws Error if the element is not a child of an allowed search box element
11
+ */
12
+ export declare const dispatchSearchBoxSuggestionsEvent: <SearchBoxController, Bindings = AnyBindings>(event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>, element: HTMLElement, allowedSearchBoxElements?: readonly (typeof searchBoxElements)[number][]) => void;
13
+ declare const searchBoxElements: readonly ["atomic-search-box", "atomic-insight-search-box", "atomic-commerce-search-box"];
14
+ export {};
@@ -68,15 +68,6 @@ export interface SearchBoxSuggestions {
68
68
  */
69
69
  onSuggestedQueryChange?(q: string): Promise<unknown>;
70
70
  }
71
- /**
72
- * Event sent from the registered query suggestions to the parent search box.
73
- */
74
- export type SearchBoxSuggestionsEvent<SearchBoxController, Bindings = AnyBindings> = (
75
- /**
76
- * The bindings passed from the search box to the suggestions.
77
- */
78
- bindings: SearchBoxSuggestionsBindings<SearchBoxController, Bindings>) => SearchBoxSuggestions;
79
- declare const searchBoxElements: readonly ["atomic-search-box", "atomic-insight-search-box", "atomic-commerce-search-box"];
80
71
  /**
81
72
  * The bindings passed from the search box to the suggestions.
82
73
  */
@@ -124,11 +115,10 @@ export type SearchBoxSuggestionsBindings<SearchBoxController, Bindings = AnyBind
124
115
  getSuggestionElements(): SearchBoxSuggestionElement[];
125
116
  };
126
117
  /**
127
- * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
128
- * @param event Event sent from the registered query suggestions to the parent search box.
129
- * @param element Element on which to dispatch the event, which must be the child of a configured search box.
118
+ * Event sent from the registered query suggestions to the parent search box.
130
119
  */
131
- export declare const dispatchSearchBoxSuggestionsEvent: <SearchBoxController, Bindings = AnyBindings>(event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>, element: HTMLElement, allowedSearchBoxElements?: readonly (typeof searchBoxElements)[number][]) => void;
132
- export declare function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean;
133
- export declare function elementHasQuery(el: SearchBoxSuggestionElement): boolean;
134
- export {};
120
+ export type SearchBoxSuggestionsEvent<SearchBoxController, Bindings = AnyBindings> = (
121
+ /**
122
+ * The bindings passed from the search box to the suggestions.
123
+ */
124
+ bindings: SearchBoxSuggestionsBindings<SearchBoxController, Bindings>) => SearchBoxSuggestions;
@@ -0,0 +1,15 @@
1
+ import type { SearchBoxSuggestionElement } from './suggestions-types';
2
+ /**
3
+ * Checks if a search box suggestion element has no query.
4
+ *
5
+ * @param el - The search box suggestion element to check
6
+ * @returns True if the element has no query or the query is whitespace-only
7
+ */
8
+ export declare function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean;
9
+ /**
10
+ * Checks if a search box suggestion element has a query.
11
+ *
12
+ * @param el - The search box suggestion element to check
13
+ * @returns True if the element has a non-empty, non-whitespace query
14
+ */
15
+ export declare function elementHasQuery(el: SearchBoxSuggestionElement): boolean;
@@ -1,33 +1,36 @@
1
- import { Pager, PagerState, SearchStatus, SearchStatusState } from '@coveo/headless';
2
- import { InitializableComponent } from '../../../utils/initialization-utils';
3
- import { Bindings } from '../atomic-search-interface/atomic-search-interface';
1
+ import { type Pager, type PagerState, type SearchStatus, type SearchStatusState } from '@coveo/headless';
2
+ import { LitElement } from 'lit';
3
+ import type { Bindings } from "../atomic-search-interface/interfaces";
4
+ import type { InitializableComponent } from "../../../decorators/types";
5
+ declare const AtomicPager_base: typeof LitElement;
4
6
  /**
5
7
  * The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
6
8
  *
7
9
  * @part buttons - The list of the next/previous buttons and page-buttons.
8
10
  * @part page-buttons - The list of page buttons.
9
- * @part page-button - The page button.
11
+ * @part page-button - The individual page buttons.
10
12
  * @part active-page-button - The active page button.
11
- * @part previous-button - The previous button.
12
- * @part next-button - The next button.
13
- * @part previous-button-icon - Icon of the previous button.
14
- * @part next-button-icon - Icon of the next button.
13
+ * @part previous-button - The previous page button.
14
+ * @part next-button - The next page button.
15
+ * @part previous-button-icon - The icon displayed on the "previous page" button.
16
+ * @part next-button-icon - The icon displayed on the "next page" button.
17
+ *
18
+ * @event atomic/scrollToTop - Emitted when the user clicks any of the buttons rendered by the component.
15
19
  */
16
- export declare class AtomicPager implements InitializableComponent {
20
+ export declare class AtomicPager extends AtomicPager_base implements InitializableComponent<Bindings> {
17
21
  bindings: Bindings;
22
+ error: Error;
23
+ private isAppLoaded;
18
24
  pager: Pager;
19
25
  searchStatus: SearchStatus;
20
26
  pagerState: PagerState;
21
27
  searchStatusState: SearchStatusState;
22
- error: Error;
23
- private isAppLoaded;
24
- private scrollToTopEvent;
25
28
  /**
26
- * Specifies how many page buttons to display in the pager.
29
+ * The maximum number of page buttons to display in the pager.
27
30
  */
28
31
  numberOfPages: number;
29
32
  /**
30
- * The SVG icon to use to display the Previous button.
33
+ * The SVG icon to render on the "previous page" button.
31
34
  *
32
35
  * - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location.
33
36
  * - Use a value that starts with `assets://`, to display an icon from the Atomic package.
@@ -35,7 +38,7 @@ export declare class AtomicPager implements InitializableComponent {
35
38
  */
36
39
  previousButtonIcon: string;
37
40
  /**
38
- * The SVG icon to use to display the Next button.
41
+ * The SVG icon to render on the "next page" button.
39
42
  *
40
43
  * - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location.
41
44
  * - Use a value that starts with `assets://`, to display an icon from the Atomic package.
@@ -44,6 +47,13 @@ export declare class AtomicPager implements InitializableComponent {
44
47
  nextButtonIcon: string;
45
48
  private radioGroupName;
46
49
  initialize(): void;
47
- render(): any;
50
+ render(): import("lit-html").TemplateResult<1>;
51
+ private validateProps;
48
52
  private focusOnFirstResultAndScrollToTop;
49
53
  }
54
+ declare global {
55
+ interface HTMLElementTagNameMap {
56
+ 'atomic-pager': AtomicPager;
57
+ }
58
+ }
59
+ export {};
@@ -2,7 +2,7 @@ import { SearchBox, StandaloneSearchBox } from '@coveo/headless';
2
2
  import { EventEmitter } from '../../../stencil-public-runtime';
3
3
  import { InitializableComponent } from '../../../utils/initialization-utils';
4
4
  import { RedirectionPayload } from '../../common/search-box/redirection-payload';
5
- import { SearchBoxSuggestionsEvent } from '../../common/suggestions/suggestions-common';
5
+ import type { SearchBoxSuggestionsEvent } from '../../common/suggestions/suggestions-types';
6
6
  import { Bindings } from '../atomic-search-interface/atomic-search-interface';
7
7
  /**
8
8
  * The `atomic-search-box` component creates a search box with built-in support for suggestions.
@@ -1,3 +1,4 @@
1
+ export { AtomicPager } from './atomic-pager/atomic-pager.js';
1
2
  export { AtomicQuerySummary } from './atomic-query-summary/atomic-query-summary.js';
2
3
  export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
3
4
  export { AtomicSearchLayout } from './atomic-search-layout/atomic-search-layout.js';
@@ -2,7 +2,7 @@ import { Result, SearchBox } from '@coveo/headless';
2
2
  import { InitializableComponent } from '../../../../utils/initialization-utils';
3
3
  import { ItemRenderingFunction } from '../../../common/item-list/stencil-item-list-common';
4
4
  import { ItemDisplayDensity, ItemDisplayImageSize } from '../../../common/layout/display-options';
5
- import { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from '../../../common/suggestions/suggestions-common';
5
+ import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from '../../../common/suggestions/suggestions-types';
6
6
  import { Bindings } from '../../atomic-search-interface/atomic-search-interface';
7
7
  export type AriaLabelGenerator = (bindings: Bindings, result: Result) => string | undefined;
8
8
  /**
@@ -26,7 +26,7 @@ import { RedirectionPayload } from "./components/common/search-box/redirection-p
26
26
  import { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
27
27
  import { InitializationOptions } from "./components/search/atomic-search-interface/atomic-search-interface";
28
28
  import { StandaloneSearchBoxData } from "./utils/local-storage-utils";
29
- import { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-common";
29
+ import { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-types";
30
30
  export { AutomaticFacet, CategoryFacetSortCriterion, DateFilterRange, DateRangeRequest, FacetResultsMustMatch, FacetSortCriterion, FoldedResult, GeneratedAnswer, GeneratedAnswerCitation, InlineLink, InteractiveCitation, InteractiveResult, LogLevel, NumericFilter, NumericFilterState, RangeFacetRangeAlgorithm, RangeFacetSortCriterion, RelativeDateUnit, Result, ResultTemplate, ResultTemplateCondition, SearchEngine, SearchStatus } from "@coveo/headless";
31
31
  export { AtomicInterface } from "./utils/initialization-utils";
32
32
  export { AnyBindings } from "./components/common/interface/bindings";
@@ -48,7 +48,7 @@ export { RedirectionPayload } from "./components/common/search-box/redirection-p
48
48
  export { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
49
49
  export { InitializationOptions } from "./components/search/atomic-search-interface/atomic-search-interface";
50
50
  export { StandaloneSearchBoxData } from "./utils/local-storage-utils";
51
- export { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-common";
51
+ export { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-types";
52
52
  export namespace Components {
53
53
  /**
54
54
  * An automatic facet is a special type of facet generated by the automatic facets feature.
@@ -1427,23 +1427,6 @@ export namespace Components {
1427
1427
  */
1428
1428
  "start": number;
1429
1429
  }
1430
- /**
1431
- * The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
1432
- */
1433
- interface AtomicPager {
1434
- /**
1435
- * The SVG icon to use to display the Next button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
1436
- */
1437
- "nextButtonIcon": string;
1438
- /**
1439
- * Specifies how many page buttons to display in the pager.
1440
- */
1441
- "numberOfPages": number;
1442
- /**
1443
- * The SVG icon to use to display the Previous button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
1444
- */
1445
- "previousButtonIcon": string;
1446
- }
1447
1430
  /**
1448
1431
  * The `atomic-popover` component displays any facet as a popover menu.
1449
1432
  */
@@ -2939,10 +2922,6 @@ export interface AtomicIpxModalCustomEvent<T> extends CustomEvent<T> {
2939
2922
  detail: T;
2940
2923
  target: HTMLAtomicIpxModalElement;
2941
2924
  }
2942
- export interface AtomicPagerCustomEvent<T> extends CustomEvent<T> {
2943
- detail: T;
2944
- target: HTMLAtomicPagerElement;
2945
- }
2946
2925
  export interface AtomicQuickviewModalCustomEvent<T> extends CustomEvent<T> {
2947
2926
  detail: T;
2948
2927
  target: HTMLAtomicQuickviewModalElement;
@@ -3619,26 +3598,6 @@ declare global {
3619
3598
  prototype: HTMLAtomicNumericRangeElement;
3620
3599
  new (): HTMLAtomicNumericRangeElement;
3621
3600
  };
3622
- interface HTMLAtomicPagerElementEventMap {
3623
- "atomic/scrollToTop": any;
3624
- }
3625
- /**
3626
- * The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
3627
- */
3628
- interface HTMLAtomicPagerElement extends Components.AtomicPager, HTMLStencilElement {
3629
- addEventListener<K extends keyof HTMLAtomicPagerElementEventMap>(type: K, listener: (this: HTMLAtomicPagerElement, ev: AtomicPagerCustomEvent<HTMLAtomicPagerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
3630
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3631
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3632
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3633
- removeEventListener<K extends keyof HTMLAtomicPagerElementEventMap>(type: K, listener: (this: HTMLAtomicPagerElement, ev: AtomicPagerCustomEvent<HTMLAtomicPagerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
3634
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3635
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3636
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3637
- }
3638
- var HTMLAtomicPagerElement: {
3639
- prototype: HTMLAtomicPagerElement;
3640
- new (): HTMLAtomicPagerElement;
3641
- };
3642
3601
  /**
3643
3602
  * The `atomic-popover` component displays any facet as a popover menu.
3644
3603
  */
@@ -4568,7 +4527,6 @@ declare global {
4568
4527
  "atomic-notifications": HTMLAtomicNotificationsElement;
4569
4528
  "atomic-numeric-facet": HTMLAtomicNumericFacetElement;
4570
4529
  "atomic-numeric-range": HTMLAtomicNumericRangeElement;
4571
- "atomic-pager": HTMLAtomicPagerElement;
4572
4530
  "atomic-popover": HTMLAtomicPopoverElement;
4573
4531
  "atomic-query-error": HTMLAtomicQueryErrorElement;
4574
4532
  "atomic-quickview": HTMLAtomicQuickviewElement;
@@ -5960,24 +5918,6 @@ declare namespace LocalJSX {
5960
5918
  */
5961
5919
  "start": number;
5962
5920
  }
5963
- /**
5964
- * The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
5965
- */
5966
- interface AtomicPager {
5967
- /**
5968
- * The SVG icon to use to display the Next button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
5969
- */
5970
- "nextButtonIcon"?: string;
5971
- /**
5972
- * Specifies how many page buttons to display in the pager.
5973
- */
5974
- "numberOfPages"?: number;
5975
- "onAtomic/scrollToTop"?: (event: AtomicPagerCustomEvent<any>) => void;
5976
- /**
5977
- * The SVG icon to use to display the Previous button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
5978
- */
5979
- "previousButtonIcon"?: string;
5980
- }
5981
5921
  /**
5982
5922
  * The `atomic-popover` component displays any facet as a popover menu.
5983
5923
  */
@@ -7440,7 +7380,6 @@ declare namespace LocalJSX {
7440
7380
  "atomic-notifications": AtomicNotifications;
7441
7381
  "atomic-numeric-facet": AtomicNumericFacet;
7442
7382
  "atomic-numeric-range": AtomicNumericRange;
7443
- "atomic-pager": AtomicPager;
7444
7383
  "atomic-popover": AtomicPopover;
7445
7384
  "atomic-query-error": AtomicQueryError;
7446
7385
  "atomic-quickview": AtomicQuickview;
@@ -7706,10 +7645,6 @@ declare module "@stencil/core" {
7706
7645
  * The `atomic-numeric-range` component defines the range of an `atomic-numeric-facet`, and therefore must be defined within an `atomic-numeric-facet` component.
7707
7646
  */
7708
7647
  "atomic-numeric-range": LocalJSX.AtomicNumericRange & JSXBase.HTMLAttributes<HTMLAtomicNumericRangeElement>;
7709
- /**
7710
- * The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
7711
- */
7712
- "atomic-pager": LocalJSX.AtomicPager & JSXBase.HTMLAttributes<HTMLAtomicPagerElement>;
7713
7648
  /**
7714
7649
  * The `atomic-popover` component displays any facet as a popover menu.
7715
7650
  */
@@ -1,7 +1,7 @@
1
1
  import type { LitElement, TemplateResult } from 'lit';
2
2
  import type { TemplateResultType } from 'lit/directive-helpers.js';
3
3
  import type { AnyBindings } from '../components/common/interface/bindings';
4
- import type { SearchBoxSuggestions } from '../components/common/suggestions/suggestions-common';
4
+ import type { SearchBoxSuggestions } from '../components/common/suggestions/suggestions-types';
5
5
  export type GenericRender<T extends TemplateResultType> = TemplateResult<T>;
6
6
  export type RenderGuardDecorator<Component, T extends TemplateResultType, Descriptor = TypedPropertyDescriptor<() => GenericRender<T>>> = (target: Component, propertyKey: 'render', descriptor: Descriptor) => Descriptor;
7
7
  /**
@@ -5,7 +5,9 @@ export { SelectChildProductEventArgs } from './components/commerce/atomic-produc
5
5
  export { productContext } from './components/commerce/product-template-component-utils/stencil-product-template-decorators';
6
6
  export { PopoverChildFacet } from './components/common/facets/popover/popover-type';
7
7
  export { RedirectionPayload } from './components/common/search-box/redirection-payload';
8
- export { dispatchSearchBoxSuggestionsEvent, SearchBoxSuggestionElement, SearchBoxSuggestions, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent, } from './components/common/suggestions/suggestions-common';
8
+ export { dispatchSearchBoxSuggestionsEvent } from './components/common/suggestions/suggestions-events';
9
+ export type { SearchBoxSuggestionElement, SearchBoxSuggestions, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent, } from './components/common/suggestions/suggestions-types';
10
+ export { elementHasNoQuery, elementHasQuery, } from './components/common/suggestions/suggestions-utils';
9
11
  export { RecsBindings } from './components/recommendations/atomic-recs-interface/atomic-recs-interface';
10
12
  export { Bindings } from './components/search/atomic-search-interface/atomic-search-interface';
11
13
  export { resultContext } from './components/search/result-template-components/result-template-decorators';