@coveo/atomic 3.33.8-pre.cb58835729 → 3.33.8-pre.cf812d301b

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 (458) 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/autoloader/index.cjs.js +2 -2
  4. package/dist/atomic/autoloader/index.esm.js +2 -2
  5. package/dist/atomic/components/_index.d.ts +2 -2
  6. package/dist/atomic/components/_index.js +1 -1
  7. package/dist/atomic/components/analytics-config.js +1 -1
  8. package/dist/atomic/components/atomic-category-facet.js +1 -1
  9. package/dist/atomic/components/atomic-citation.js +1 -1
  10. package/dist/atomic/components/atomic-facet-manager.js +1 -1
  11. package/dist/atomic/components/atomic-facet.js +1 -1
  12. package/dist/atomic/components/atomic-format-currency.js +1 -1
  13. package/dist/atomic/components/atomic-format-number.js +1 -1
  14. package/dist/atomic/components/atomic-format-unit.js +1 -1
  15. package/dist/atomic/components/atomic-generated-answer-feedback-modal.js +1 -1
  16. package/dist/atomic/components/atomic-html2.js +1 -1
  17. package/dist/atomic/components/atomic-insight-edit-toggle.js +1 -1
  18. package/dist/atomic/components/atomic-insight-facet.js +1 -1
  19. package/dist/atomic/components/atomic-insight-folded-result-list.js +1 -1
  20. package/dist/atomic/components/atomic-insight-full-search-button.js +1 -1
  21. package/dist/atomic/components/atomic-insight-history-toggle.js +1 -1
  22. package/dist/atomic/components/atomic-insight-interface.js +1 -1
  23. package/dist/atomic/components/atomic-insight-no-results.js +1 -1
  24. package/dist/atomic/components/atomic-insight-numeric-facet.js +1 -1
  25. package/dist/atomic/components/atomic-insight-pager.js +3 -3
  26. package/dist/atomic/components/atomic-insight-query-error.js +1 -1
  27. package/dist/atomic/components/atomic-insight-refine-modal2.js +2 -2
  28. package/dist/atomic/components/atomic-insight-refine-toggle.js +1 -1
  29. package/dist/atomic/components/atomic-insight-result-action.js +1 -1
  30. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +1 -1
  31. package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +1 -1
  32. package/dist/atomic/components/atomic-insight-result-children.js +1 -1
  33. package/dist/atomic/components/atomic-insight-result-list.js +1 -1
  34. package/dist/atomic/components/atomic-insight-result-quickview-action.js +1 -1
  35. package/dist/atomic/components/atomic-insight-result2.js +1 -1
  36. package/dist/atomic/components/atomic-insight-search-box.js +31 -4
  37. package/dist/atomic/components/atomic-insight-search-box.js.map +1 -1
  38. package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
  39. package/dist/atomic/components/atomic-insight-tabs.js +1 -1
  40. package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
  41. package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
  42. package/dist/atomic/components/atomic-ipx-body2.js +2 -2
  43. package/dist/atomic/components/atomic-ipx-button.js +2 -2
  44. package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
  45. package/dist/atomic/components/atomic-ipx-modal.js +2 -2
  46. package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
  47. package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
  48. package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
  49. package/dist/atomic/components/atomic-ipx-result-link.js +1 -1
  50. package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
  51. package/dist/atomic/components/atomic-load-more-results.js +1 -1
  52. package/dist/atomic/components/atomic-no-results.js +1 -1
  53. package/dist/atomic/components/atomic-numeric-facet.js +1 -2
  54. package/dist/atomic/components/atomic-numeric-facet.js.map +1 -1
  55. package/dist/atomic/components/atomic-pager.js +3 -3
  56. package/dist/atomic/components/atomic-query-error.js +1 -1
  57. package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
  58. package/dist/atomic/components/atomic-quickview.js +1 -1
  59. package/dist/atomic/components/atomic-recs-error.js +1 -1
  60. package/dist/atomic/components/atomic-recs-interface.js +1 -1
  61. package/dist/atomic/components/atomic-recs-list.js +1 -1
  62. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  63. package/dist/atomic/components/atomic-refine-toggle.js +1 -1
  64. package/dist/atomic/components/atomic-relevance-inspector.js +1 -46
  65. package/dist/atomic/components/atomic-relevance-inspector.js.map +1 -1
  66. package/dist/atomic/components/atomic-relevance-inspector2.js +50 -0
  67. package/dist/atomic/components/atomic-relevance-inspector2.js.map +1 -0
  68. package/dist/atomic/components/atomic-result-children.js +1 -1
  69. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  70. package/dist/atomic/components/atomic-result-link.js +1 -1
  71. package/dist/atomic/components/atomic-result-list.js +1 -1
  72. package/dist/atomic/components/atomic-result-placeholder2.js +2 -2
  73. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  74. package/dist/atomic/components/atomic-search-box-instant-results.js +1 -1
  75. package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
  76. package/dist/atomic/components/atomic-search-box.js +4 -10
  77. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  78. package/dist/atomic/components/atomic-search-interface.d.ts +11 -0
  79. package/dist/atomic/components/atomic-search-interface.js +552 -0
  80. package/dist/atomic/components/atomic-search-interface.js.map +1 -0
  81. package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
  82. package/dist/atomic/components/atomic-smart-snippet-collapse-wrapper2.js +2 -2
  83. package/dist/atomic/components/atomic-smart-snippet-expandable-answer2.js +1 -1
  84. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  85. package/dist/atomic/components/atomic-smart-snippet-source2.js +1 -1
  86. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  87. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  88. package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
  89. package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
  90. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  91. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +50 -8
  92. package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +2 -2
  93. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
  94. package/dist/atomic/components/components/search/atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js +107 -0
  95. package/dist/atomic/components/components/search/atomic-search-layout/atomic-search-layout.js +9 -20
  96. package/dist/atomic/components/components/search/index.js +1 -1
  97. package/dist/atomic/components/components/search/lazy-index.js +1 -1
  98. package/dist/atomic/components/facet-number-input.js +2 -2
  99. package/dist/atomic/components/global/environment.js +1 -1
  100. package/dist/atomic/components/tab-button.js +1 -1
  101. package/dist/atomic/components/tab-popover.js +1 -1
  102. package/dist/atomic/{p-41c5d5fa.entry.js → p-021f01d6.entry.js} +2 -2
  103. package/dist/atomic/{p-a3fa6695.entry.js → p-035f8dc8.entry.js} +2 -2
  104. package/dist/atomic/{p-45c4685e.entry.js → p-089be992.entry.js} +2 -2
  105. package/dist/atomic/{p-65373475.entry.js → p-09a3a067.entry.js} +2 -2
  106. package/dist/atomic/{p-4915faeb.entry.js → p-11a2e38a.entry.js} +2 -2
  107. package/dist/atomic/p-1992b245.entry.js +2 -0
  108. package/dist/atomic/{p-a02b1209.entry.js → p-1d1f54a5.entry.js} +2 -2
  109. package/dist/atomic/{p-9d023f0b.entry.js → p-1ef658d8.entry.js} +2 -2
  110. package/dist/atomic/{p-10b5e0f3.entry.js → p-20341936.entry.js} +2 -2
  111. package/dist/atomic/{p-15406648.entry.js → p-2ca352f4.entry.js} +2 -2
  112. package/dist/atomic/{p-97e42c43.entry.js → p-31aa052e.entry.js} +2 -2
  113. package/dist/atomic/{p-7a6468a7.entry.js → p-36fab158.entry.js} +2 -2
  114. package/dist/atomic/{p-9727f36b.entry.js → p-37374964.entry.js} +2 -2
  115. package/dist/atomic/{p-7b1a3cab.entry.js → p-3a2c900c.entry.js} +2 -2
  116. package/dist/atomic/{p-5adbf098.entry.js → p-3b023e83.entry.js} +2 -2
  117. package/dist/atomic/{p-0610b3e7.entry.js → p-3b20b011.entry.js} +2 -2
  118. package/dist/atomic/p-3f677874.entry.js +2 -0
  119. package/dist/atomic/p-3f677874.entry.js.map +1 -0
  120. package/dist/atomic/{p-c08f4ee6.entry.js → p-3f912e98.entry.js} +2 -2
  121. package/dist/atomic/{p-9e771351.entry.js → p-40635c2d.entry.js} +2 -2
  122. package/dist/atomic/{p-c9fe4f77.entry.js → p-43d708cb.entry.js} +2 -2
  123. package/dist/atomic/{p-e3a4a83c.entry.js → p-45bbd7e9.entry.js} +2 -2
  124. package/dist/atomic/{p-b0c50194.entry.js → p-48f57fd8.entry.js} +2 -2
  125. package/dist/atomic/{p-4c30ca3e.entry.js → p-49c38b27.entry.js} +2 -2
  126. package/dist/atomic/{p-87c6c206.entry.js → p-534b6a0a.entry.js} +2 -2
  127. package/dist/atomic/{p-f0012580.entry.js → p-594488f2.entry.js} +2 -2
  128. package/dist/atomic/{p-b4ad3036.entry.js → p-5f1fa581.entry.js} +2 -2
  129. package/dist/atomic/{p-8df7270f.entry.js → p-604c4085.entry.js} +2 -2
  130. package/dist/atomic/{p-d50c96c2.entry.js → p-627e1265.entry.js} +2 -2
  131. package/dist/atomic/{p-004adbb8.entry.js → p-6329ff94.entry.js} +2 -2
  132. package/dist/atomic/{p-e3af1bb4.entry.js → p-6e6d686e.entry.js} +2 -2
  133. package/dist/atomic/{p-79a9a372.entry.js → p-744da781.entry.js} +2 -2
  134. package/dist/atomic/{p-e6a7e7b2.entry.js → p-7dfcd6af.entry.js} +2 -2
  135. package/dist/atomic/{p-be1b98a6.entry.js → p-7e2109e9.entry.js} +2 -2
  136. package/dist/atomic/{p-780170e5.entry.js → p-811d6dcb.entry.js} +2 -2
  137. package/dist/atomic/{p-9147b0db.entry.js → p-8256cd44.entry.js} +2 -2
  138. package/dist/atomic/{p-0e27d4f2.entry.js → p-83c9244a.entry.js} +2 -2
  139. package/dist/atomic/{p-71bb8125.entry.js → p-89085429.entry.js} +2 -2
  140. package/dist/atomic/{p-bd99fcc1.entry.js → p-939eaaac.entry.js} +2 -2
  141. package/dist/atomic/{p-9b92b4e2.entry.js → p-93e29b24.entry.js} +2 -2
  142. package/dist/atomic/{p-b6377fb6.entry.js → p-98c5b9b8.entry.js} +2 -2
  143. package/dist/atomic/{p-bf49fed3.entry.js → p-99b8d52d.entry.js} +2 -2
  144. package/dist/atomic/{p-3af5c567.entry.js → p-9c9b1965.entry.js} +2 -2
  145. package/dist/atomic/{p-dc753d2b.js → p-a1412bc0.js} +2 -2
  146. package/dist/atomic/{p-160553ce.entry.js → p-a3efa89e.entry.js} +2 -2
  147. package/dist/atomic/{p-c538c8ac.entry.js → p-a53c7821.entry.js} +2 -2
  148. package/dist/atomic/{p-8acb1466.entry.js → p-a8882a2a.entry.js} +2 -2
  149. package/dist/atomic/{p-ce41c447.entry.js → p-ae060711.entry.js} +2 -2
  150. package/dist/atomic/p-b0287ff8.entry.js +2 -0
  151. package/dist/atomic/p-b0287ff8.entry.js.map +1 -0
  152. package/dist/atomic/{p-b4c34553.entry.js → p-b0b17e21.entry.js} +2 -2
  153. package/dist/atomic/{p-e1c99e2e.entry.js → p-b2ff1330.entry.js} +2 -2
  154. package/dist/atomic/{p-d2d22ab2.entry.js → p-b6963bae.entry.js} +2 -2
  155. package/dist/atomic/{p-ef64b06a.entry.js → p-b7063a0d.entry.js} +2 -2
  156. package/dist/atomic/{p-ef64b06a.entry.js.map → p-b7063a0d.entry.js.map} +1 -1
  157. package/dist/atomic/{p-dee60597.entry.js → p-bc0d6d3d.entry.js} +2 -2
  158. package/dist/atomic/{p-0e5dc57f.entry.js → p-c126ee6b.entry.js} +2 -2
  159. package/dist/atomic/{p-754909fe.entry.js → p-c1999888.entry.js} +2 -2
  160. package/dist/atomic/{p-4e9d1f9e.entry.js → p-cd62de88.entry.js} +2 -2
  161. package/dist/atomic/{p-00a6ab8c.entry.js → p-d0f47b33.entry.js} +2 -2
  162. package/dist/atomic/{p-14646ff3.entry.js → p-d14ae447.entry.js} +2 -2
  163. package/dist/atomic/p-d24d34a7.entry.js +2 -0
  164. package/dist/atomic/p-d2b14ff1.entry.js +2 -0
  165. package/dist/atomic/p-d2b14ff1.entry.js.map +1 -0
  166. package/dist/atomic/{p-7f40e57d.entry.js → p-d364064c.entry.js} +2 -2
  167. package/dist/atomic/{p-856e858c.entry.js → p-d785121d.entry.js} +2 -2
  168. package/dist/atomic/{p-7d63bf7b.entry.js → p-d93adf52.entry.js} +2 -2
  169. package/dist/atomic/{p-2a4e9425.entry.js → p-de066001.entry.js} +2 -2
  170. package/dist/atomic/{p-8a7a23b7.entry.js → p-e162805d.entry.js} +2 -2
  171. package/dist/atomic/{p-441b1a7b.entry.js → p-e23b3334.entry.js} +2 -2
  172. package/dist/atomic/p-e2afb475.entry.js +2 -0
  173. package/dist/atomic/{p-bd32625e.entry.js → p-ea446721.entry.js} +2 -2
  174. package/dist/atomic/{p-07b6424c.entry.js → p-ee6771f1.entry.js} +2 -2
  175. package/dist/atomic/{p-abb14108.entry.js → p-f0c2dfe8.entry.js} +2 -2
  176. package/dist/atomic/{p-f073a78d.entry.js → p-f289269f.entry.js} +2 -2
  177. package/dist/atomic/{p-d4ad7336.entry.js → p-fa8b7c4c.entry.js} +2 -2
  178. package/dist/atomic/{p-fb1a1e2e.entry.js → p-fbfe913d.entry.js} +2 -2
  179. package/dist/atomic/p-fcf3f7d7.entry.js +2 -0
  180. package/dist/atomic/{p-6de44060.entry.js.map → p-fcf3f7d7.entry.js.map} +1 -1
  181. package/dist/atomic/{p-d11b2b24.entry.js → p-fda26113.entry.js} +2 -2
  182. package/dist/atomic/{p-f936f55e.entry.js → p-fea7bf3b.entry.js} +2 -2
  183. package/dist/cjs/_loader.cjs.js +1 -1
  184. package/dist/cjs/{analytics-config-3177deeb.js → analytics-config-17b0ef8f.js} +2 -2
  185. package/dist/cjs/{analytics-config-3177deeb.js.map → analytics-config-17b0ef8f.js.map} +1 -1
  186. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  187. package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
  188. package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
  189. package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
  190. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  191. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  192. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  193. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  194. package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js +1 -1
  195. package/dist/cjs/atomic-html.cjs.entry.js +1 -1
  196. package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js +1 -1
  197. package/dist/cjs/atomic-insight-facet.cjs.entry.js +1 -1
  198. package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +1 -1
  199. package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js +1 -1
  200. package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +1 -1
  201. package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
  202. package/dist/cjs/atomic-insight-no-results.cjs.entry.js +1 -1
  203. package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +1 -1
  204. package/dist/cjs/atomic-insight-pager.cjs.entry.js +3 -3
  205. package/dist/cjs/atomic-insight-query-error.cjs.entry.js +1 -1
  206. package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +2 -2
  207. package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js +1 -1
  208. package/dist/cjs/atomic-insight-result-action.cjs.entry.js +1 -1
  209. package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +1 -1
  210. package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +1 -1
  211. package/dist/cjs/atomic-insight-result-children.cjs.entry.js +1 -1
  212. package/dist/cjs/atomic-insight-result-list.cjs.entry.js +1 -1
  213. package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +1 -1
  214. package/dist/cjs/atomic-insight-result.cjs.entry.js +1 -1
  215. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +32 -6
  216. package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
  217. package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  218. package/dist/cjs/atomic-insight-tabs.cjs.entry.js +1 -1
  219. package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -1
  220. package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +1 -1
  221. package/dist/cjs/atomic-ipx-body.cjs.entry.js +2 -2
  222. package/dist/cjs/atomic-ipx-button.cjs.entry.js +2 -2
  223. package/dist/cjs/atomic-ipx-embedded.cjs.entry.js +1 -1
  224. package/dist/cjs/atomic-ipx-modal.cjs.entry.js +2 -2
  225. package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +1 -1
  226. package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +1 -1
  227. package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +1 -1
  228. package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +1 -1
  229. package/dist/cjs/atomic-ipx-tabs.cjs.entry.js +1 -1
  230. package/dist/cjs/atomic-load-more-results.cjs.entry.js +1 -1
  231. package/dist/cjs/atomic-no-results.cjs.entry.js +1 -1
  232. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -2
  233. package/dist/cjs/atomic-numeric-facet.cjs.entry.js.map +1 -1
  234. package/dist/cjs/atomic-pager.cjs.entry.js +3 -3
  235. package/dist/cjs/atomic-query-error.cjs.entry.js +1 -1
  236. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
  237. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  238. package/dist/cjs/atomic-recs-error.cjs.entry.js +1 -1
  239. package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
  240. package/dist/cjs/atomic-recs-list.cjs.entry.js +1 -1
  241. package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
  242. package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
  243. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
  244. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  245. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  246. package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
  247. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  248. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +3 -3
  249. package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +1 -1
  250. package/dist/cjs/{atomic-search-box-query-suggestions_2.cjs.entry.js → atomic-search-box-recent-queries.cjs.entry.js} +5 -68
  251. package/dist/cjs/atomic-search-box-recent-queries.cjs.entry.js.map +1 -0
  252. package/dist/cjs/atomic-search-box.cjs.entry.js +3 -3
  253. package/dist/cjs/atomic-search-interface.cjs.entry.js +511 -0
  254. package/dist/cjs/atomic-search-interface.cjs.entry.js.map +1 -0
  255. package/dist/cjs/atomic-smart-snippet-answer_2.cjs.entry.js +2 -2
  256. package/dist/cjs/atomic-smart-snippet-collapse-wrapper_2.cjs.entry.js +3 -3
  257. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  258. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  259. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  260. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +3 -3
  261. package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
  262. package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -1
  263. package/dist/cjs/atomic-tab-button.cjs.entry.js +1 -1
  264. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  265. package/dist/cjs/atomic.cjs.js +1 -1
  266. package/dist/cjs/index-757bc886.js +10 -6
  267. package/dist/cjs/version.cjs.js +2 -2
  268. package/dist/esm/_loader.js +1 -1
  269. package/dist/esm/{analytics-config-4e49a50b.js → analytics-config-9ea3c80b.js} +2 -2
  270. package/dist/esm/{analytics-config-4e49a50b.js.map → analytics-config-9ea3c80b.js.map} +1 -1
  271. package/dist/esm/atomic-category-facet.entry.js +1 -1
  272. package/dist/esm/atomic-citation.entry.js +1 -1
  273. package/dist/esm/atomic-facet-manager.entry.js +1 -1
  274. package/dist/esm/atomic-facet-number-input.entry.js +2 -2
  275. package/dist/esm/atomic-facet.entry.js +1 -1
  276. package/dist/esm/atomic-format-currency.entry.js +1 -1
  277. package/dist/esm/atomic-format-number.entry.js +1 -1
  278. package/dist/esm/atomic-format-unit.entry.js +1 -1
  279. package/dist/esm/atomic-generated-answer-feedback-modal.entry.js +1 -1
  280. package/dist/esm/atomic-html.entry.js +1 -1
  281. package/dist/esm/atomic-insight-edit-toggle.entry.js +1 -1
  282. package/dist/esm/atomic-insight-facet.entry.js +1 -1
  283. package/dist/esm/atomic-insight-folded-result-list.entry.js +1 -1
  284. package/dist/esm/atomic-insight-full-search-button.entry.js +1 -1
  285. package/dist/esm/atomic-insight-history-toggle.entry.js +1 -1
  286. package/dist/esm/atomic-insight-interface.entry.js +2 -2
  287. package/dist/esm/atomic-insight-no-results.entry.js +1 -1
  288. package/dist/esm/atomic-insight-numeric-facet.entry.js +1 -1
  289. package/dist/esm/atomic-insight-pager.entry.js +3 -3
  290. package/dist/esm/atomic-insight-query-error.entry.js +1 -1
  291. package/dist/esm/atomic-insight-refine-modal.entry.js +2 -2
  292. package/dist/esm/atomic-insight-refine-toggle.entry.js +1 -1
  293. package/dist/esm/atomic-insight-result-action.entry.js +1 -1
  294. package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +1 -1
  295. package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +1 -1
  296. package/dist/esm/atomic-insight-result-children.entry.js +1 -1
  297. package/dist/esm/atomic-insight-result-list.entry.js +1 -1
  298. package/dist/esm/atomic-insight-result-quickview-action.entry.js +1 -1
  299. package/dist/esm/atomic-insight-result.entry.js +1 -1
  300. package/dist/esm/atomic-insight-search-box.entry.js +31 -5
  301. package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
  302. package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +2 -2
  303. package/dist/esm/atomic-insight-tabs.entry.js +1 -1
  304. package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -1
  305. package/dist/esm/atomic-insight-user-actions-toggle.entry.js +1 -1
  306. package/dist/esm/atomic-ipx-body.entry.js +2 -2
  307. package/dist/esm/atomic-ipx-button.entry.js +2 -2
  308. package/dist/esm/atomic-ipx-embedded.entry.js +1 -1
  309. package/dist/esm/atomic-ipx-modal.entry.js +2 -2
  310. package/dist/esm/atomic-ipx-recs-list.entry.js +1 -1
  311. package/dist/esm/atomic-ipx-refine-modal.entry.js +1 -1
  312. package/dist/esm/atomic-ipx-refine-toggle.entry.js +1 -1
  313. package/dist/esm/atomic-ipx-result-link.entry.js +1 -1
  314. package/dist/esm/atomic-ipx-tabs.entry.js +1 -1
  315. package/dist/esm/atomic-load-more-results.entry.js +1 -1
  316. package/dist/esm/atomic-no-results.entry.js +1 -1
  317. package/dist/esm/atomic-numeric-facet.entry.js +1 -2
  318. package/dist/esm/atomic-numeric-facet.entry.js.map +1 -1
  319. package/dist/esm/atomic-pager.entry.js +3 -3
  320. package/dist/esm/atomic-query-error.entry.js +1 -1
  321. package/dist/esm/atomic-quickview-modal.entry.js +1 -1
  322. package/dist/esm/atomic-quickview.entry.js +1 -1
  323. package/dist/esm/atomic-recs-error.entry.js +1 -1
  324. package/dist/esm/atomic-recs-interface.entry.js +2 -2
  325. package/dist/esm/atomic-recs-list.entry.js +1 -1
  326. package/dist/esm/atomic-refine-modal.entry.js +1 -1
  327. package/dist/esm/atomic-refine-toggle.entry.js +1 -1
  328. package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
  329. package/dist/esm/atomic-result-children.entry.js +1 -1
  330. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  331. package/dist/esm/atomic-result-link.entry.js +1 -1
  332. package/dist/esm/atomic-result-list.entry.js +1 -1
  333. package/dist/esm/atomic-result-placeholder_8.entry.js +3 -3
  334. package/dist/esm/atomic-search-box-instant-results.entry.js +1 -1
  335. package/dist/esm/{atomic-search-box-query-suggestions_2.entry.js → atomic-search-box-recent-queries.entry.js} +8 -70
  336. package/dist/esm/atomic-search-box-recent-queries.entry.js.map +1 -0
  337. package/dist/esm/atomic-search-box.entry.js +3 -3
  338. package/dist/esm/atomic-search-interface.entry.js +507 -0
  339. package/dist/esm/atomic-search-interface.entry.js.map +1 -0
  340. package/dist/esm/atomic-smart-snippet-answer_2.entry.js +2 -2
  341. package/dist/esm/atomic-smart-snippet-collapse-wrapper_2.entry.js +3 -3
  342. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  343. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  344. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  345. package/dist/esm/atomic-stencil-facet-date-input.entry.js +3 -3
  346. package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
  347. package/dist/esm/atomic-tab-bar_2.entry.js +1 -1
  348. package/dist/esm/atomic-tab-button.entry.js +1 -1
  349. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  350. package/dist/esm/atomic.js +1 -1
  351. package/dist/esm/index-3f35faca.js +10 -6
  352. package/dist/esm/version.js +2 -2
  353. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +30 -2
  354. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
  355. package/dist/types/components/search/{search-box-suggestions/atomic-search-box-query-suggestions → atomic-search-box-query-suggestions}/atomic-search-box-query-suggestions.d.ts +16 -7
  356. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +44 -46
  357. package/dist/types/components/search/atomic-search-interface/interfaces.d.ts +1 -2
  358. package/dist/types/components/search/atomic-search-layout/atomic-search-layout.d.ts +1 -3
  359. package/dist/types/components/search/index.d.ts +1 -1
  360. package/dist/types/components.d.ts +152 -38
  361. package/docs/atomic-docs.json +518 -54
  362. package/package.json +4 -4
  363. package/dist/atomic/components/atomic-search-box-query-suggestions.d.ts +0 -11
  364. package/dist/atomic/components/atomic-search-box-query-suggestions.js +0 -8
  365. package/dist/atomic/components/atomic-search-box-query-suggestions.js.map +0 -1
  366. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +0 -89
  367. package/dist/atomic/components/atomic-search-box-query-suggestions2.js.map +0 -1
  368. package/dist/atomic/components/components/search/atomic-search-interface/analytics-config.js +0 -57
  369. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +0 -495
  370. package/dist/atomic/components/stencil-query-suggestions.js +0 -33
  371. package/dist/atomic/components/stencil-query-suggestions.js.map +0 -1
  372. package/dist/atomic/p-0edea6f9.entry.js +0 -2
  373. package/dist/atomic/p-3213225f.entry.js +0 -2
  374. package/dist/atomic/p-3213225f.entry.js.map +0 -1
  375. package/dist/atomic/p-516b8165.entry.js +0 -2
  376. package/dist/atomic/p-516b8165.entry.js.map +0 -1
  377. package/dist/atomic/p-6de44060.entry.js +0 -2
  378. package/dist/atomic/p-97829295.entry.js +0 -2
  379. package/dist/atomic/p-af93b44c.js +0 -2
  380. package/dist/atomic/p-af93b44c.js.map +0 -1
  381. package/dist/atomic/p-c2b4b401.entry.js +0 -2
  382. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +0 -1
  383. package/dist/cjs/stencil-query-suggestions-03268ecc.js +0 -38
  384. package/dist/cjs/stencil-query-suggestions-03268ecc.js.map +0 -1
  385. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +0 -1
  386. package/dist/esm/stencil-query-suggestions-5d6a46d7.js +0 -33
  387. package/dist/esm/stencil-query-suggestions-5d6a46d7.js.map +0 -1
  388. /package/dist/atomic/{p-41c5d5fa.entry.js.map → p-021f01d6.entry.js.map} +0 -0
  389. /package/dist/atomic/{p-a3fa6695.entry.js.map → p-035f8dc8.entry.js.map} +0 -0
  390. /package/dist/atomic/{p-45c4685e.entry.js.map → p-089be992.entry.js.map} +0 -0
  391. /package/dist/atomic/{p-65373475.entry.js.map → p-09a3a067.entry.js.map} +0 -0
  392. /package/dist/atomic/{p-4915faeb.entry.js.map → p-11a2e38a.entry.js.map} +0 -0
  393. /package/dist/atomic/{p-0edea6f9.entry.js.map → p-1992b245.entry.js.map} +0 -0
  394. /package/dist/atomic/{p-a02b1209.entry.js.map → p-1d1f54a5.entry.js.map} +0 -0
  395. /package/dist/atomic/{p-9d023f0b.entry.js.map → p-1ef658d8.entry.js.map} +0 -0
  396. /package/dist/atomic/{p-10b5e0f3.entry.js.map → p-20341936.entry.js.map} +0 -0
  397. /package/dist/atomic/{p-15406648.entry.js.map → p-2ca352f4.entry.js.map} +0 -0
  398. /package/dist/atomic/{p-97e42c43.entry.js.map → p-31aa052e.entry.js.map} +0 -0
  399. /package/dist/atomic/{p-7a6468a7.entry.js.map → p-36fab158.entry.js.map} +0 -0
  400. /package/dist/atomic/{p-9727f36b.entry.js.map → p-37374964.entry.js.map} +0 -0
  401. /package/dist/atomic/{p-7b1a3cab.entry.js.map → p-3a2c900c.entry.js.map} +0 -0
  402. /package/dist/atomic/{p-5adbf098.entry.js.map → p-3b023e83.entry.js.map} +0 -0
  403. /package/dist/atomic/{p-0610b3e7.entry.js.map → p-3b20b011.entry.js.map} +0 -0
  404. /package/dist/atomic/{p-c08f4ee6.entry.js.map → p-3f912e98.entry.js.map} +0 -0
  405. /package/dist/atomic/{p-9e771351.entry.js.map → p-40635c2d.entry.js.map} +0 -0
  406. /package/dist/atomic/{p-c9fe4f77.entry.js.map → p-43d708cb.entry.js.map} +0 -0
  407. /package/dist/atomic/{p-e3a4a83c.entry.js.map → p-45bbd7e9.entry.js.map} +0 -0
  408. /package/dist/atomic/{p-b0c50194.entry.js.map → p-48f57fd8.entry.js.map} +0 -0
  409. /package/dist/atomic/{p-4c30ca3e.entry.js.map → p-49c38b27.entry.js.map} +0 -0
  410. /package/dist/atomic/{p-87c6c206.entry.js.map → p-534b6a0a.entry.js.map} +0 -0
  411. /package/dist/atomic/{p-f0012580.entry.js.map → p-594488f2.entry.js.map} +0 -0
  412. /package/dist/atomic/{p-b4ad3036.entry.js.map → p-5f1fa581.entry.js.map} +0 -0
  413. /package/dist/atomic/{p-8df7270f.entry.js.map → p-604c4085.entry.js.map} +0 -0
  414. /package/dist/atomic/{p-d50c96c2.entry.js.map → p-627e1265.entry.js.map} +0 -0
  415. /package/dist/atomic/{p-004adbb8.entry.js.map → p-6329ff94.entry.js.map} +0 -0
  416. /package/dist/atomic/{p-e3af1bb4.entry.js.map → p-6e6d686e.entry.js.map} +0 -0
  417. /package/dist/atomic/{p-79a9a372.entry.js.map → p-744da781.entry.js.map} +0 -0
  418. /package/dist/atomic/{p-e6a7e7b2.entry.js.map → p-7dfcd6af.entry.js.map} +0 -0
  419. /package/dist/atomic/{p-be1b98a6.entry.js.map → p-7e2109e9.entry.js.map} +0 -0
  420. /package/dist/atomic/{p-780170e5.entry.js.map → p-811d6dcb.entry.js.map} +0 -0
  421. /package/dist/atomic/{p-9147b0db.entry.js.map → p-8256cd44.entry.js.map} +0 -0
  422. /package/dist/atomic/{p-0e27d4f2.entry.js.map → p-83c9244a.entry.js.map} +0 -0
  423. /package/dist/atomic/{p-71bb8125.entry.js.map → p-89085429.entry.js.map} +0 -0
  424. /package/dist/atomic/{p-bd99fcc1.entry.js.map → p-939eaaac.entry.js.map} +0 -0
  425. /package/dist/atomic/{p-9b92b4e2.entry.js.map → p-93e29b24.entry.js.map} +0 -0
  426. /package/dist/atomic/{p-b6377fb6.entry.js.map → p-98c5b9b8.entry.js.map} +0 -0
  427. /package/dist/atomic/{p-bf49fed3.entry.js.map → p-99b8d52d.entry.js.map} +0 -0
  428. /package/dist/atomic/{p-3af5c567.entry.js.map → p-9c9b1965.entry.js.map} +0 -0
  429. /package/dist/atomic/{p-dc753d2b.js.map → p-a1412bc0.js.map} +0 -0
  430. /package/dist/atomic/{p-160553ce.entry.js.map → p-a3efa89e.entry.js.map} +0 -0
  431. /package/dist/atomic/{p-c538c8ac.entry.js.map → p-a53c7821.entry.js.map} +0 -0
  432. /package/dist/atomic/{p-8acb1466.entry.js.map → p-a8882a2a.entry.js.map} +0 -0
  433. /package/dist/atomic/{p-ce41c447.entry.js.map → p-ae060711.entry.js.map} +0 -0
  434. /package/dist/atomic/{p-b4c34553.entry.js.map → p-b0b17e21.entry.js.map} +0 -0
  435. /package/dist/atomic/{p-e1c99e2e.entry.js.map → p-b2ff1330.entry.js.map} +0 -0
  436. /package/dist/atomic/{p-d2d22ab2.entry.js.map → p-b6963bae.entry.js.map} +0 -0
  437. /package/dist/atomic/{p-dee60597.entry.js.map → p-bc0d6d3d.entry.js.map} +0 -0
  438. /package/dist/atomic/{p-0e5dc57f.entry.js.map → p-c126ee6b.entry.js.map} +0 -0
  439. /package/dist/atomic/{p-754909fe.entry.js.map → p-c1999888.entry.js.map} +0 -0
  440. /package/dist/atomic/{p-4e9d1f9e.entry.js.map → p-cd62de88.entry.js.map} +0 -0
  441. /package/dist/atomic/{p-00a6ab8c.entry.js.map → p-d0f47b33.entry.js.map} +0 -0
  442. /package/dist/atomic/{p-14646ff3.entry.js.map → p-d14ae447.entry.js.map} +0 -0
  443. /package/dist/atomic/{p-97829295.entry.js.map → p-d24d34a7.entry.js.map} +0 -0
  444. /package/dist/atomic/{p-7f40e57d.entry.js.map → p-d364064c.entry.js.map} +0 -0
  445. /package/dist/atomic/{p-856e858c.entry.js.map → p-d785121d.entry.js.map} +0 -0
  446. /package/dist/atomic/{p-7d63bf7b.entry.js.map → p-d93adf52.entry.js.map} +0 -0
  447. /package/dist/atomic/{p-2a4e9425.entry.js.map → p-de066001.entry.js.map} +0 -0
  448. /package/dist/atomic/{p-8a7a23b7.entry.js.map → p-e162805d.entry.js.map} +0 -0
  449. /package/dist/atomic/{p-441b1a7b.entry.js.map → p-e23b3334.entry.js.map} +0 -0
  450. /package/dist/atomic/{p-c2b4b401.entry.js.map → p-e2afb475.entry.js.map} +0 -0
  451. /package/dist/atomic/{p-bd32625e.entry.js.map → p-ea446721.entry.js.map} +0 -0
  452. /package/dist/atomic/{p-07b6424c.entry.js.map → p-ee6771f1.entry.js.map} +0 -0
  453. /package/dist/atomic/{p-abb14108.entry.js.map → p-f0c2dfe8.entry.js.map} +0 -0
  454. /package/dist/atomic/{p-f073a78d.entry.js.map → p-f289269f.entry.js.map} +0 -0
  455. /package/dist/atomic/{p-d4ad7336.entry.js.map → p-fa8b7c4c.entry.js.map} +0 -0
  456. /package/dist/atomic/{p-fb1a1e2e.entry.js.map → p-fbfe913d.entry.js.map} +0 -0
  457. /package/dist/atomic/{p-d11b2b24.entry.js.map → p-fda26113.entry.js.map} +0 -0
  458. /package/dist/atomic/{p-f936f55e.entry.js.map → p-fea7bf3b.entry.js.map} +0 -0
@@ -1,4 +1,5 @@
1
1
  import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type ProductListing, type ProductListingSummaryState, type Search, type SearchSummaryState, type Summary, type UrlManager } from '@coveo/headless/commerce';
2
+ import type { CurrencyCodeISO4217 } from '@coveo/relay-event-types';
2
3
  import { type i18n } from 'i18next';
3
4
  import { type CSSResultGroup, LitElement } from 'lit';
4
5
  import type { CommonBindings } from '../../common/interface/bindings';
@@ -49,7 +50,13 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
49
50
  /**
50
51
  * The commerce interface language.
51
52
  *
52
- * Will default to the value set in the Headless engine context if not provided.
53
+ * Will default to the value set in the Headless engine context if not
54
+ * provided.
55
+ *
56
+ * @deprecated - This property will be removed in the next major version of
57
+ * Atomic (v4). Rather than using this property, set the initial language
58
+ * through the engine configuration when calling `initializeWithEngine`, and
59
+ * update the language as needed using the `updateLocale` method.
53
60
  */
54
61
  language?: string;
55
62
  /**
@@ -62,7 +69,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
62
69
  */
63
70
  reflectStateInUrl: boolean;
64
71
  /**
65
- * Whether to disable state reflection in the URL parameters.
72
+ * Disable state reflection in the URL parameters.
66
73
  */
67
74
  disableStateReflectionInUrl: boolean;
68
75
  /**
@@ -100,6 +107,26 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
100
107
  * Executes the first request after initializing connection to the headless commerce engine.
101
108
  */
102
109
  executeFirstRequest(): Promise<void>;
110
+ /**
111
+ * Updates the locale settings for the commerce interface and headless commerce
112
+ * engine. Only the provided parameters will be updated.
113
+ *
114
+ * Calling this method affects the localization of the interface as well as
115
+ * the catalog configuration being used by the Commerce API. If the resulting
116
+ * language-country-currency combination matches no existing catalog
117
+ * configuration in your Coveo organization, requests made through the
118
+ * commerce engine will start failing.
119
+ *
120
+ * @param language - (Optional) The IETF language code tag (e.g., `en`).
121
+ * @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
122
+ * @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
123
+ *
124
+ * @example
125
+ * ```typescript
126
+ * interface.updateLocale('fr', 'CA', 'CAD');
127
+ * ```
128
+ */
129
+ updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
103
130
  toggleAnalytics(): void;
104
131
  updateIconAssetsPath(): void;
105
132
  updateLanguage(): void;
@@ -115,6 +142,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
115
142
  private initSummary;
116
143
  private initUrlManager;
117
144
  private internalInitialization;
145
+ private isNewLocale;
118
146
  private onHashChange;
119
147
  scrollToTop(): void;
120
148
  private updateHash;
@@ -103,6 +103,7 @@ export declare class AtomicCommerceRecommendationInterface extends AtomicCommerc
103
103
  private initContext;
104
104
  private getBindings;
105
105
  private initLanguage;
106
+ private isNewLocale;
106
107
  }
107
108
  declare global {
108
109
  interface HTMLElementTagNameMap {
@@ -1,9 +1,13 @@
1
+ import { type SearchBox } from '@coveo/headless';
2
+ import { LitElement } from 'lit';
3
+ import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
4
+ import type { Bindings } from "../atomic-search-interface/interfaces";
5
+ import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
1
6
  /**
2
7
  * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
3
8
  */
4
- export declare class AtomicSearchBoxQuerySuggestions {
5
- private bindings;
6
- private host;
9
+ export declare class AtomicSearchBoxQuerySuggestions extends LitElement implements SearchBoxSuggestionsComponent<Bindings> {
10
+ bindings: SearchBoxSuggestionsBindings<SearchBox, Bindings>;
7
11
  error: Error;
8
12
  /**
9
13
  * The SVG icon to display.
@@ -16,14 +20,19 @@ export declare class AtomicSearchBoxQuerySuggestions {
16
20
  /**
17
21
  * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
18
22
  */
19
- maxWithQuery?: number;
23
+ maxWithQuery: number;
20
24
  /**
21
25
  * The maximum number of suggestions that will be displayed initially when the input field is empty.
22
26
  */
23
27
  maxWithoutQuery?: number;
24
- componentWillLoad(): void;
25
- private initialize;
28
+ connectedCallback(): void;
29
+ initialize(): SearchBoxSuggestions;
26
30
  private renderItems;
27
31
  private renderItem;
28
- render(): any;
32
+ render(): import("lit-html").TemplateResult<1>;
33
+ }
34
+ declare global {
35
+ interface HTMLElementTagNameMap {
36
+ 'atomic-search-box-query-suggestions': AtomicSearchBoxQuerySuggestions;
37
+ }
29
38
  }
@@ -1,30 +1,24 @@
1
- import { type LogLevel, type SearchEngine, type SearchEngineConfiguration, type SearchStatus, type UrlManager } from '@coveo/headless';
2
- import { type i18n } from 'i18next';
3
- import { type CSSResultGroup, LitElement } from 'lit';
4
- import type { CommonBindings, NonceBindings } from '../../common/interface/bindings';
5
- import { type BaseAtomicInterface } from '../../common/interface/interface-controller';
6
- import { type SearchStore } from './store';
7
- import '../../common/atomic-modal/atomic-modal';
1
+ import { LogLevel, SearchEngine, SearchEngineConfiguration } from '@coveo/headless';
2
+ import { i18n } from 'i18next';
3
+ import { InitializeEvent } from '../../../utils/initialization-utils';
4
+ import { StencilBaseAtomicInterface } from '../../common/interface/interface-common-stencil';
5
+ import type { Bindings as _Bindings } from './interfaces';
8
6
  export type InitializationOptions = SearchEngineConfiguration;
9
- export type Bindings = CommonBindings<SearchEngine, SearchStore, AtomicSearchInterface> & NonceBindings;
10
- declare const AtomicSearchInterface_base: typeof LitElement;
7
+ export type Bindings = _Bindings;
11
8
  /**
12
9
  * The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
13
- *
14
- * @slot default - The default slot where you can add child components to the interface.
15
10
  */
16
- export declare class AtomicSearchInterface extends AtomicSearchInterface_base implements BaseAtomicInterface<SearchEngine> {
17
- bindings: Bindings;
18
- error: Error;
19
- relevanceInspectorIsOpen: boolean;
20
- urlManager: UrlManager;
21
- searchStatus: SearchStatus;
11
+ export declare class AtomicSearchInterface implements StencilBaseAtomicInterface<SearchEngine> {
12
+ private urlManager;
13
+ private searchStatus;
22
14
  private unsubscribeUrlManager;
23
15
  private unsubscribeSearchStatus;
24
16
  private initialized;
25
17
  private store;
26
- private interfaceController;
27
- static styles: CSSResultGroup;
18
+ private commonInterfaceHelper;
19
+ host: HTMLAtomicSearchInterfaceElement;
20
+ error?: Error;
21
+ relevanceInspectorIsOpen: boolean;
28
22
  /**
29
23
  * A list of non-default fields to include in the query results.
30
24
  *
@@ -33,7 +27,7 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
33
27
  * <atomic-search-interface fields-to-include='["fieldA", "fieldB"]'></atomic-search-interface>
34
28
  * ```
35
29
  */
36
- fieldsToInclude: string[];
30
+ fieldsToInclude: string[] | string;
37
31
  /**
38
32
  * The search interface [query pipeline](https://docs.coveo.com/en/180/).
39
33
  *
@@ -75,13 +69,8 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
75
69
  engine?: SearchEngine;
76
70
  /**
77
71
  * Whether the state should be reflected in the URL parameters.
78
- * @deprecated - replaced by `disable-state-reflection-in-url` (this defaults to `true`, while the replacement defaults to `false`).
79
72
  */
80
73
  reflectStateInUrl: boolean;
81
- /**
82
- * Whether to disable state reflection in the URL parameters.
83
- */
84
- disableStateReflectionInUrl: boolean;
85
74
  /**
86
75
  * The CSS selector for the container where the interface will scroll back to.
87
76
  */
@@ -106,19 +95,39 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
106
95
  * The relevance inspector can be opened by holding the Alt key (Option on Mac) while over the interface, and performing a double click.
107
96
  *
108
97
  * The relevance inspector allows to troubleshoot and debug queries.
109
- * @deprecated - replaced by `disable-relevance-inspector` (this defaults to `true`, while the replacement defaults to `false`).
110
98
  */
111
99
  enableRelevanceInspector: boolean;
112
100
  /**
113
- * Whether to disable the relevance inspector shortcut for this interface.
101
+ * The value to set the [nonce](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce) attribute to on inline script and style elements generated by this interface and its child components.
102
+ * If your application is served with a Content Security Policy (CSP) that doesn't include the `script-src: 'unsafe-inline'` or `style-src: 'unsafe-inline'` directives,
103
+ * you should ensure that your application server generates a new nonce on every page load and uses the generated value to set this prop and serve the corresponding CSP response headers
104
+ * (i.e., script-src 'nonce-<YOUR_GENERATED_NONCE>' and style-src 'nonce-<YOUR_GENERATED_NONCE>').
105
+ * Otherwise you may see console errors such as
106
+ * - Refused to execute inline script because it violates the following Content Security Policy directive: [...]
107
+ * - Refused to apply inline style because it violates the following Content Security Policy directive: [...].
108
+ * @example:
109
+ * ```html
110
+ * <script nonce="<YOUR_GENERATED_NONCE>">
111
+ * import {setNonce} from '@coveo/atomic';
112
+ * setNonce('<YOUR_GENERATED_NONCE>');
113
+ * </script>
114
+ * ```
114
115
  */
115
- disableRelevanceInspector: boolean;
116
+ CspNonce?: string;
116
117
  private i18Initialized;
118
+ private componentWillLoadCalledPromise;
119
+ private componentWillLoadResolver;
117
120
  constructor();
118
121
  connectedCallback(): void;
119
- willUpdate(changedProperties: Map<string, unknown>): void;
122
+ componentWillLoad(): void;
123
+ updateSearchConfiguration(updatedProp: 'searchHub' | 'pipeline', newValue: string | undefined): void;
124
+ updateSearchHub(): void;
125
+ updatePipeline(): void;
126
+ toggleAnalytics(): void;
127
+ updateLanguage(): Promise<void> | undefined;
128
+ updateIconAssetsPath(): void;
120
129
  disconnectedCallback(): void;
121
- private handleInitialization;
130
+ handleInitialization(event: InitializeEvent): void;
122
131
  scrollToTop(): void;
123
132
  closeRelevanceInspector(): void;
124
133
  /**
@@ -126,7 +135,7 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
126
135
  */
127
136
  initialize(options: InitializationOptions): Promise<void>;
128
137
  /**
129
- * Initializes the interface using the provided [headless search engine](https://docs.coveo.com/en/headless/latest/reference/modules/Search.html, as opposed to the `initialize` method which internally builds a search engine instance.
138
+ * Initializes the connection with an already preconfigured [headless search engine](https://docs.coveo.com/en/headless/latest/reference/interfaces/Search.SearchEngine.html), as opposed to the `initialize` method, which will internally create a new search engine instance.
130
139
  * This bypasses the properties set on the component, such as analytics, searchHub, pipeline, language, timezone & logLevel.
131
140
  */
132
141
  initializeWithSearchEngine(engine: SearchEngine): Promise<void>;
@@ -135,30 +144,19 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
135
144
  * Executes the first search and logs the interface load event to analytics, after initializing connection to the headless search engine.
136
145
  */
137
146
  executeFirstSearch(): Promise<void>;
138
- updateSearchConfiguration(updatedProp: 'searchHub' | 'pipeline', newValue: string | undefined): void;
139
- updateSearchHub(): void;
140
- updatePipeline(): void;
141
- toggleAnalytics(): void;
142
- updateLanguage(): void;
143
- updateIconAssetsPath(): void;
144
- private getBindings;
147
+ get bindings(): Bindings;
145
148
  private initFieldsToInclude;
146
149
  registerFieldsToInclude(): void;
150
+ private updateMobileBreakpoint;
147
151
  private initEngine;
148
152
  private getSearchConfiguration;
149
153
  private get fragment();
150
154
  private initUrlManager;
151
- private handleRelevanceInspectorDoubleClick;
155
+ private initAriaLive;
152
156
  private initRelevanceInspector;
153
157
  private initSearchStatus;
154
158
  private updateHash;
155
159
  private onHashChange;
156
160
  private internalInitialization;
157
- render(): import("lit-html").TemplateResult<1>;
158
- }
159
- declare global {
160
- interface HTMLElementTagNameMap {
161
- 'atomic-search-interface': AtomicSearchInterface;
162
- }
161
+ render(): any[];
163
162
  }
164
- export {};
@@ -1,5 +1,4 @@
1
1
  import type { SearchEngine } from '@coveo/headless';
2
2
  import type { CommonBindings, NonceBindings } from '../../common/interface/bindings';
3
- import type { AtomicSearchInterface } from './atomic-search-interface';
4
3
  import type { SearchStore } from './store';
5
- export type Bindings = CommonBindings<SearchEngine, SearchStore, AtomicSearchInterface> & NonceBindings;
4
+ export type Bindings = CommonBindings<SearchEngine, SearchStore, HTMLAtomicSearchInterfaceElement> & NonceBindings;
@@ -11,16 +11,14 @@ declare const AtomicSearchLayout_base: import("../../../mixins/mixin-common").Co
11
11
  */
12
12
  export declare class AtomicSearchLayout extends AtomicSearchLayout_base {
13
13
  static styles: import("lit").CSSResult[];
14
+ private addStyles;
14
15
  error: Error;
15
16
  /**
16
17
  * The viewport width at which the layout goes from desktop to mobile.
17
18
  * E.g., 800px, 65rem.
18
19
  */
19
20
  mobileBreakpoint: string;
20
- private layoutStylesController;
21
21
  connectedCallback(): void;
22
- private emitBreakpointChangeEvent;
23
- onMobileBreakpointChange(): void;
24
22
  }
25
23
  declare global {
26
24
  interface HTMLElementTagNameMap {
@@ -1,4 +1,4 @@
1
1
  export { AtomicQuerySummary } from './atomic-query-summary/atomic-query-summary.js';
2
2
  export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
3
- export { AtomicSearchInterface } from './atomic-search-interface/atomic-search-interface.js';
3
+ export { AtomicSearchBoxQuerySuggestions } from './atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js';
4
4
  export { AtomicSearchLayout } from './atomic-search-layout/atomic-search-layout.js';
@@ -5,7 +5,7 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { AutomaticFacet, CategoryFacetSortCriterion, DateFilterRange, DateRangeRequest, FacetResultsMustMatch, FacetSortCriterion, FoldedResult, GeneratedAnswer, GeneratedAnswerCitation, InlineLink, InteractiveCitation, InteractiveResult, NumericFilter, NumericFilterState, RangeFacetRangeAlgorithm, RangeFacetSortCriterion, RelativeDateUnit, Result, ResultTemplate, ResultTemplateCondition, SearchStatus } from "@coveo/headless";
8
+ import { 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";
9
9
  import { AtomicInterface } from "./utils/initialization-utils";
10
10
  import { AnyBindings } from "./components/common/interface/bindings";
11
11
  import { NumberInputType } from "./components/common/facets/facet-number-input/number-input-type";
@@ -24,8 +24,10 @@ import { Bindings } from "./components/search/atomic-search-interface/atomic-sea
24
24
  import { SearchStore } from "./components/search/atomic-search-interface/store";
25
25
  import { RedirectionPayload } from "./components/common/search-box/redirection-payload";
26
26
  import { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
27
+ import { InitializationOptions } from "./components/search/atomic-search-interface/atomic-search-interface";
28
+ import { StandaloneSearchBoxData } from "./utils/local-storage-utils";
27
29
  import { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-types";
28
- export { AutomaticFacet, CategoryFacetSortCriterion, DateFilterRange, DateRangeRequest, FacetResultsMustMatch, FacetSortCriterion, FoldedResult, GeneratedAnswer, GeneratedAnswerCitation, InlineLink, InteractiveCitation, InteractiveResult, NumericFilter, NumericFilterState, RangeFacetRangeAlgorithm, RangeFacetSortCriterion, RelativeDateUnit, Result, ResultTemplate, ResultTemplateCondition, SearchStatus } from "@coveo/headless";
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";
29
31
  export { AtomicInterface } from "./utils/initialization-utils";
30
32
  export { AnyBindings } from "./components/common/interface/bindings";
31
33
  export { NumberInputType } from "./components/common/facets/facet-number-input/number-input-type";
@@ -44,6 +46,8 @@ export { Bindings } from "./components/search/atomic-search-interface/atomic-sea
44
46
  export { SearchStore } from "./components/search/atomic-search-interface/store";
45
47
  export { RedirectionPayload } from "./components/common/search-box/redirection-payload";
46
48
  export { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
49
+ export { InitializationOptions } from "./components/search/atomic-search-interface/atomic-search-interface";
50
+ export { StandaloneSearchBoxData } from "./utils/local-storage-utils";
47
51
  export { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-types";
48
52
  export namespace Components {
49
53
  /**
@@ -2412,9 +2416,9 @@ export namespace Components {
2412
2416
  "setRenderFunction": (resultRenderingFunction: ItemRenderingFunction) => Promise<void>;
2413
2417
  }
2414
2418
  /**
2415
- * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
2419
+ * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
2416
2420
  */
2417
- interface AtomicSearchBoxQuerySuggestions {
2421
+ interface AtomicSearchBoxRecentQueries {
2418
2422
  /**
2419
2423
  * The SVG icon to display. - 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.
2420
2424
  */
@@ -2422,28 +2426,89 @@ export namespace Components {
2422
2426
  /**
2423
2427
  * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
2424
2428
  */
2425
- "maxWithQuery"?: number;
2429
+ "maxWithQuery": number;
2426
2430
  /**
2427
2431
  * The maximum number of suggestions that will be displayed initially when the input field is empty.
2428
2432
  */
2429
2433
  "maxWithoutQuery"?: number;
2430
2434
  }
2431
2435
  /**
2432
- * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
2436
+ * The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
2433
2437
  */
2434
- interface AtomicSearchBoxRecentQueries {
2438
+ interface AtomicSearchInterface {
2435
2439
  /**
2436
- * The SVG icon to display. - 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.
2440
+ * The value to set the [nonce](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce) attribute to on inline script and style elements generated by this interface and its child components. If your application is served with a Content Security Policy (CSP) that doesn't include the `script-src: 'unsafe-inline'` or `style-src: 'unsafe-inline'` directives, you should ensure that your application server generates a new nonce on every page load and uses the generated value to set this prop and serve the corresponding CSP response headers (i.e., script-src 'nonce-<YOUR_GENERATED_NONCE>' and style-src 'nonce-<YOUR_GENERATED_NONCE>'). Otherwise you may see console errors such as - Refused to execute inline script because it violates the following Content Security Policy directive: [...] - Refused to apply inline style because it violates the following Content Security Policy directive: [...].
2441
+ * @example : ```html <script nonce="<YOUR_GENERATED_NONCE>"> import {setNonce} from '@coveo/atomic'; setNonce('<YOUR_GENERATED_NONCE>'); </script> ```
2437
2442
  */
2438
- "icon"?: string;
2443
+ "CspNonce"?: string;
2439
2444
  /**
2440
- * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
2445
+ * Whether analytics should be enabled.
2441
2446
  */
2442
- "maxWithQuery": number;
2447
+ "analytics": boolean;
2443
2448
  /**
2444
- * The maximum number of suggestions that will be displayed initially when the input field is empty.
2449
+ * Whether the relevance inspector shortcut should be enabled for this interface. The relevance inspector can be opened by holding the Alt key (Option on Mac) while over the interface, and performing a double click. The relevance inspector allows to troubleshoot and debug queries.
2445
2450
  */
2446
- "maxWithoutQuery"?: number;
2451
+ "enableRelevanceInspector": boolean;
2452
+ /**
2453
+ * The search interface headless engine.
2454
+ */
2455
+ "engine"?: SearchEngine;
2456
+ /**
2457
+ * Executes the first search and logs the interface load event to analytics, after initializing connection to the headless search engine.
2458
+ */
2459
+ "executeFirstSearch": () => Promise<void>;
2460
+ /**
2461
+ * A list of non-default fields to include in the query results. Specify the property as an array using a JSON string representation: ```html <atomic-search-interface fields-to-include='["fieldA", "fieldB"]'></atomic-search-interface> ```
2462
+ */
2463
+ "fieldsToInclude": string[] | string;
2464
+ /**
2465
+ * The search interface i18next instance.
2466
+ */
2467
+ "i18n": i18n;
2468
+ /**
2469
+ * The icon assets path. By default, this will be a relative URL pointing to `./assets`. Example: "/mypublicpath/icons"
2470
+ */
2471
+ "iconAssetsPath": string;
2472
+ /**
2473
+ * Initializes the connection with the headless search engine using options for `accessToken` (required), `organizationId` (required), `environment` (defaults to `prod`), and `renewAccessToken`.
2474
+ */
2475
+ "initialize": (options: InitializationOptions) => Promise<void>;
2476
+ /**
2477
+ * Initializes the connection with an already preconfigured [headless search engine](https://docs.coveo.com/en/headless/latest/reference/interfaces/Search.SearchEngine.html), as opposed to the `initialize` method, which will internally create a new search engine instance. This bypasses the properties set on the component, such as analytics, searchHub, pipeline, language, timezone & logLevel.
2478
+ */
2479
+ "initializeWithSearchEngine": (engine: SearchEngine) => Promise<void>;
2480
+ /**
2481
+ * The search interface language.
2482
+ */
2483
+ "language": string;
2484
+ /**
2485
+ * The language assets path. By default, this will be a relative URL pointing to `./lang`. Example: "/mypublicpath/languages"
2486
+ */
2487
+ "languageAssetsPath": string;
2488
+ /**
2489
+ * The severity level of the messages to log in the console.
2490
+ */
2491
+ "logLevel"?: LogLevel;
2492
+ /**
2493
+ * The search interface [query pipeline](https://docs.coveo.com/en/180/). If the search interface is initialized using [`initializeWithSearchEngine`](https://docs.coveo.com/en/atomic/latest/reference/components/atomic-search-interface/#initializewithsearchengine), the query pipeline should instead be configured in the target engine.
2494
+ */
2495
+ "pipeline"?: string;
2496
+ /**
2497
+ * Whether the state should be reflected in the URL parameters.
2498
+ */
2499
+ "reflectStateInUrl": boolean;
2500
+ /**
2501
+ * The CSS selector for the container where the interface will scroll back to.
2502
+ */
2503
+ "scrollContainer": string;
2504
+ /**
2505
+ * The search interface [search hub](https://docs.coveo.com/en/1342/). If the search interface is initialized using [`initializeWithSearchEngine`](https://docs.coveo.com/en/atomic/latest/reference/components/atomic-search-interface/#initializewithsearchengine, the search hub should instead be configured in the target engine.
2506
+ */
2507
+ "searchHub"?: string;
2508
+ /**
2509
+ * The [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) identifier of the time zone to use to correctly interpret dates in the query expression, facets, and result items. By default, the timezone will be [guessed](https://day.js.org/docs/en/timezone/guessing-user-timezone). Example: "America/Montreal"
2510
+ */
2511
+ "timezone"?: string;
2447
2512
  }
2448
2513
  /**
2449
2514
  * The `atomic-segmented-facet` displays a horizontal facet of the results for the current query.
@@ -4112,15 +4177,6 @@ declare global {
4112
4177
  prototype: HTMLAtomicSearchBoxInstantResultsElement;
4113
4178
  new (): HTMLAtomicSearchBoxInstantResultsElement;
4114
4179
  };
4115
- /**
4116
- * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
4117
- */
4118
- interface HTMLAtomicSearchBoxQuerySuggestionsElement extends Components.AtomicSearchBoxQuerySuggestions, HTMLStencilElement {
4119
- }
4120
- var HTMLAtomicSearchBoxQuerySuggestionsElement: {
4121
- prototype: HTMLAtomicSearchBoxQuerySuggestionsElement;
4122
- new (): HTMLAtomicSearchBoxQuerySuggestionsElement;
4123
- };
4124
4180
  /**
4125
4181
  * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
4126
4182
  */
@@ -4130,6 +4186,15 @@ declare global {
4130
4186
  prototype: HTMLAtomicSearchBoxRecentQueriesElement;
4131
4187
  new (): HTMLAtomicSearchBoxRecentQueriesElement;
4132
4188
  };
4189
+ /**
4190
+ * The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
4191
+ */
4192
+ interface HTMLAtomicSearchInterfaceElement extends Components.AtomicSearchInterface, HTMLStencilElement {
4193
+ }
4194
+ var HTMLAtomicSearchInterfaceElement: {
4195
+ prototype: HTMLAtomicSearchInterfaceElement;
4196
+ new (): HTMLAtomicSearchInterfaceElement;
4197
+ };
4133
4198
  /**
4134
4199
  * The `atomic-segmented-facet` displays a horizontal facet of the results for the current query.
4135
4200
  */
@@ -4524,8 +4589,8 @@ declare global {
4524
4589
  "atomic-result-timespan": HTMLAtomicResultTimespanElement;
4525
4590
  "atomic-search-box": HTMLAtomicSearchBoxElement;
4526
4591
  "atomic-search-box-instant-results": HTMLAtomicSearchBoxInstantResultsElement;
4527
- "atomic-search-box-query-suggestions": HTMLAtomicSearchBoxQuerySuggestionsElement;
4528
4592
  "atomic-search-box-recent-queries": HTMLAtomicSearchBoxRecentQueriesElement;
4593
+ "atomic-search-interface": HTMLAtomicSearchInterfaceElement;
4529
4594
  "atomic-segmented-facet": HTMLAtomicSegmentedFacetElement;
4530
4595
  "atomic-segmented-facet-scrollable": HTMLAtomicSegmentedFacetScrollableElement;
4531
4596
  "atomic-smart-snippet": HTMLAtomicSmartSnippetElement;
@@ -6791,9 +6856,9 @@ declare namespace LocalJSX {
6791
6856
  "maxResultsPerQuery"?: number;
6792
6857
  }
6793
6858
  /**
6794
- * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
6859
+ * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
6795
6860
  */
6796
- interface AtomicSearchBoxQuerySuggestions {
6861
+ interface AtomicSearchBoxRecentQueries {
6797
6862
  /**
6798
6863
  * The SVG icon to display. - 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.
6799
6864
  */
@@ -6808,21 +6873,70 @@ declare namespace LocalJSX {
6808
6873
  "maxWithoutQuery"?: number;
6809
6874
  }
6810
6875
  /**
6811
- * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
6876
+ * The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
6812
6877
  */
6813
- interface AtomicSearchBoxRecentQueries {
6878
+ interface AtomicSearchInterface {
6814
6879
  /**
6815
- * The SVG icon to display. - 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.
6880
+ * The value to set the [nonce](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce) attribute to on inline script and style elements generated by this interface and its child components. If your application is served with a Content Security Policy (CSP) that doesn't include the `script-src: 'unsafe-inline'` or `style-src: 'unsafe-inline'` directives, you should ensure that your application server generates a new nonce on every page load and uses the generated value to set this prop and serve the corresponding CSP response headers (i.e., script-src 'nonce-<YOUR_GENERATED_NONCE>' and style-src 'nonce-<YOUR_GENERATED_NONCE>'). Otherwise you may see console errors such as - Refused to execute inline script because it violates the following Content Security Policy directive: [...] - Refused to apply inline style because it violates the following Content Security Policy directive: [...].
6881
+ * @example : ```html <script nonce="<YOUR_GENERATED_NONCE>"> import {setNonce} from '@coveo/atomic'; setNonce('<YOUR_GENERATED_NONCE>'); </script> ```
6816
6882
  */
6817
- "icon"?: string;
6883
+ "CspNonce"?: string;
6818
6884
  /**
6819
- * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
6885
+ * Whether analytics should be enabled.
6820
6886
  */
6821
- "maxWithQuery"?: number;
6887
+ "analytics"?: boolean;
6822
6888
  /**
6823
- * The maximum number of suggestions that will be displayed initially when the input field is empty.
6889
+ * Whether the relevance inspector shortcut should be enabled for this interface. The relevance inspector can be opened by holding the Alt key (Option on Mac) while over the interface, and performing a double click. The relevance inspector allows to troubleshoot and debug queries.
6824
6890
  */
6825
- "maxWithoutQuery"?: number;
6891
+ "enableRelevanceInspector"?: boolean;
6892
+ /**
6893
+ * The search interface headless engine.
6894
+ */
6895
+ "engine"?: SearchEngine;
6896
+ /**
6897
+ * A list of non-default fields to include in the query results. Specify the property as an array using a JSON string representation: ```html <atomic-search-interface fields-to-include='["fieldA", "fieldB"]'></atomic-search-interface> ```
6898
+ */
6899
+ "fieldsToInclude"?: string[] | string;
6900
+ /**
6901
+ * The search interface i18next instance.
6902
+ */
6903
+ "i18n"?: i18n;
6904
+ /**
6905
+ * The icon assets path. By default, this will be a relative URL pointing to `./assets`. Example: "/mypublicpath/icons"
6906
+ */
6907
+ "iconAssetsPath"?: string;
6908
+ /**
6909
+ * The search interface language.
6910
+ */
6911
+ "language"?: string;
6912
+ /**
6913
+ * The language assets path. By default, this will be a relative URL pointing to `./lang`. Example: "/mypublicpath/languages"
6914
+ */
6915
+ "languageAssetsPath"?: string;
6916
+ /**
6917
+ * The severity level of the messages to log in the console.
6918
+ */
6919
+ "logLevel"?: LogLevel;
6920
+ /**
6921
+ * The search interface [query pipeline](https://docs.coveo.com/en/180/). If the search interface is initialized using [`initializeWithSearchEngine`](https://docs.coveo.com/en/atomic/latest/reference/components/atomic-search-interface/#initializewithsearchengine), the query pipeline should instead be configured in the target engine.
6922
+ */
6923
+ "pipeline"?: string;
6924
+ /**
6925
+ * Whether the state should be reflected in the URL parameters.
6926
+ */
6927
+ "reflectStateInUrl"?: boolean;
6928
+ /**
6929
+ * The CSS selector for the container where the interface will scroll back to.
6930
+ */
6931
+ "scrollContainer"?: string;
6932
+ /**
6933
+ * The search interface [search hub](https://docs.coveo.com/en/1342/). If the search interface is initialized using [`initializeWithSearchEngine`](https://docs.coveo.com/en/atomic/latest/reference/components/atomic-search-interface/#initializewithsearchengine, the search hub should instead be configured in the target engine.
6934
+ */
6935
+ "searchHub"?: string;
6936
+ /**
6937
+ * The [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) identifier of the time zone to use to correctly interpret dates in the query expression, facets, and result items. By default, the timezone will be [guessed](https://day.js.org/docs/en/timezone/guessing-user-timezone). Example: "America/Montreal"
6938
+ */
6939
+ "timezone"?: string;
6826
6940
  }
6827
6941
  /**
6828
6942
  * The `atomic-segmented-facet` displays a horizontal facet of the results for the current query.
@@ -7329,8 +7443,8 @@ declare namespace LocalJSX {
7329
7443
  "atomic-result-timespan": AtomicResultTimespan;
7330
7444
  "atomic-search-box": AtomicSearchBox;
7331
7445
  "atomic-search-box-instant-results": AtomicSearchBoxInstantResults;
7332
- "atomic-search-box-query-suggestions": AtomicSearchBoxQuerySuggestions;
7333
7446
  "atomic-search-box-recent-queries": AtomicSearchBoxRecentQueries;
7447
+ "atomic-search-interface": AtomicSearchInterface;
7334
7448
  "atomic-segmented-facet": AtomicSegmentedFacet;
7335
7449
  "atomic-segmented-facet-scrollable": AtomicSegmentedFacetScrollable;
7336
7450
  "atomic-smart-snippet": AtomicSmartSnippet;
@@ -7842,14 +7956,14 @@ declare module "@stencil/core" {
7842
7956
  * This component is not supported on mobile.
7843
7957
  */
7844
7958
  "atomic-search-box-instant-results": LocalJSX.AtomicSearchBoxInstantResults & JSXBase.HTMLAttributes<HTMLAtomicSearchBoxInstantResultsElement>;
7845
- /**
7846
- * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
7847
- */
7848
- "atomic-search-box-query-suggestions": LocalJSX.AtomicSearchBoxQuerySuggestions & JSXBase.HTMLAttributes<HTMLAtomicSearchBoxQuerySuggestionsElement>;
7849
7959
  /**
7850
7960
  * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
7851
7961
  */
7852
7962
  "atomic-search-box-recent-queries": LocalJSX.AtomicSearchBoxRecentQueries & JSXBase.HTMLAttributes<HTMLAtomicSearchBoxRecentQueriesElement>;
7963
+ /**
7964
+ * The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
7965
+ */
7966
+ "atomic-search-interface": LocalJSX.AtomicSearchInterface & JSXBase.HTMLAttributes<HTMLAtomicSearchInterfaceElement>;
7853
7967
  /**
7854
7968
  * The `atomic-segmented-facet` displays a horizontal facet of the results for the current query.
7855
7969
  */