@coveo/atomic 3.50.0 → 3.52.0

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 (465) hide show
  1. package/custom-elements.json +15081 -13083
  2. package/dist/atomic/_atomic.esm.js +1 -1
  3. package/dist/atomic/atomic.esm.js.map +1 -1
  4. package/dist/atomic/components/_index.d.ts +0 -18
  5. package/dist/atomic/components/_index.js +97 -31
  6. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +2 -2
  7. package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js +1 -0
  8. package/dist/atomic/components/components/common/facets/timeframe-facet-common.js +1 -0
  9. package/dist/atomic/components/components/common/generated-answer/atomic-answer-content/atomic-answer-content.js +166 -0
  10. package/dist/atomic/components/components/common/generated-answer/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.js +155 -0
  11. package/dist/atomic/components/components/common/generated-answer/atomic-generated-answers-thread/atomic-generated-answers-thread.js +165 -0
  12. package/dist/atomic/components/components/common/generated-answer/render-feedback-and-copy-buttons.js +4 -3
  13. package/dist/atomic/components/components/common/generated-answer/render-follow-up-input.js +66 -0
  14. package/dist/atomic/components/components/common/generated-answer/styles/generated-answer.tw.css.js +1 -1
  15. package/dist/atomic/components/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.js +444 -0
  16. package/dist/atomic/components/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.tw.css.js +2 -0
  17. package/dist/atomic/components/components/insight/atomic-insight-result-action/atomic-insight-result-action.js +169 -0
  18. package/dist/atomic/components/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.js +122 -0
  19. package/dist/atomic/components/components/insight/atomic-insight-result-children/atomic-insight-result-children.js +3 -2
  20. package/dist/atomic/components/components/insight/atomic-insight-result-children-template/atomic-insight-result-children-template.js +79 -0
  21. package/dist/atomic/components/components/insight/atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.js +267 -0
  22. package/dist/atomic/components/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.js +1 -1
  23. package/dist/atomic/components/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.js +1 -1
  24. package/dist/atomic/components/components/insight/index.js +5 -0
  25. package/dist/atomic/components/components/insight/lazy-index.js +5 -0
  26. package/dist/atomic/components/components/ipx/atomic-ipx-button/atomic-ipx-button.js +1 -1
  27. package/dist/atomic/components/components/ipx/atomic-ipx-recs-list/atomic-ipx-recs-list.js +483 -0
  28. package/dist/atomic/components/components/ipx/atomic-ipx-refine-modal/atomic-ipx-refine-modal.js +202 -0
  29. package/dist/atomic/components/components/ipx/atomic-ipx-refine-toggle/atomic-ipx-refine-toggle.js +123 -0
  30. package/dist/atomic/components/components/ipx/index.js +3 -0
  31. package/dist/atomic/components/components/ipx/lazy-index.js +3 -0
  32. package/dist/atomic/components/components/recommendations/atomic-recs-result/atomic-recs-result.js +1 -0
  33. package/dist/atomic/components/components/search/atomic-external/atomic-external.js +1 -1
  34. package/dist/atomic/components/components/search/atomic-generated-answer/atomic-generated-answer.js +103 -10
  35. package/dist/atomic/components/components/search/atomic-refine-modal/atomic-refine-modal.js +2 -1
  36. package/dist/atomic/components/components/search/atomic-search-box/atomic-search-box.js +2 -2
  37. package/dist/atomic/components/decorators/bindings.js +1 -1
  38. package/dist/atomic/components/global/environment.js +1 -1
  39. package/dist/atomic/components/index.js.map +1 -1
  40. package/dist/atomic/components/mixins/bindings-mixin.js +1 -1
  41. package/dist/atomic/components/utils/custom-element-tags.js +11 -1
  42. package/dist/atomic/components/utils/tailwind.global.tw.css.js +2 -2
  43. package/dist/atomic/index.esm.js +1 -1
  44. package/dist/atomic/index.esm.js.map +1 -1
  45. package/dist/atomic/lang/cs.json +1 -1
  46. package/dist/atomic/lang/da.json +1 -1
  47. package/dist/atomic/lang/de.json +1 -1
  48. package/dist/atomic/lang/dev.json +1 -1
  49. package/dist/atomic/lang/el.json +1 -1
  50. package/dist/atomic/lang/en.json +1 -1
  51. package/dist/atomic/lang/es.json +1 -1
  52. package/dist/atomic/lang/fi.json +1 -1
  53. package/dist/atomic/lang/fr.json +1 -1
  54. package/dist/atomic/lang/hu.json +1 -1
  55. package/dist/atomic/lang/id.json +1 -1
  56. package/dist/atomic/lang/it.json +1 -1
  57. package/dist/atomic/lang/ja.json +1 -1
  58. package/dist/atomic/lang/ko.json +1 -1
  59. package/dist/atomic/lang/nl.json +1 -1
  60. package/dist/atomic/lang/no.json +1 -1
  61. package/dist/atomic/lang/pl.json +1 -1
  62. package/dist/atomic/lang/pt-BR.json +1 -1
  63. package/dist/atomic/lang/pt.json +1 -1
  64. package/dist/atomic/lang/ru.json +1 -1
  65. package/dist/atomic/lang/sv.json +1 -1
  66. package/dist/atomic/lang/th.json +1 -1
  67. package/dist/atomic/lang/tr.json +1 -1
  68. package/dist/atomic/lang/zh-CN.json +1 -1
  69. package/dist/atomic/lang/zh-TW.json +1 -1
  70. package/dist/atomic/lang/zh.json +1 -1
  71. package/dist/atomic/p-998f7983.js +3 -0
  72. package/dist/atomic/p-998f7983.js.map +1 -0
  73. package/dist/cjs/_index.cjs.js +110 -28
  74. package/dist/cjs/_loader.cjs.js +3 -4
  75. package/dist/cjs/app-globals-18f43c37.js +506 -0
  76. package/dist/cjs/app-globals-18f43c37.js.map +1 -0
  77. package/dist/cjs/atomic.cjs.js +4 -5
  78. package/dist/cjs/atomic.cjs.js.map +1 -1
  79. package/dist/cjs/index.cjs.js.map +1 -1
  80. package/dist/cjs/loader.cjs.js.map +1 -1
  81. package/dist/cjs/version.cjs.js +2 -2
  82. package/dist/esm/_index.js +97 -23
  83. package/dist/esm/_loader.js +3 -4
  84. package/dist/esm/app-globals-c5b073da.js +481 -0
  85. package/dist/esm/app-globals-c5b073da.js.map +1 -0
  86. package/dist/esm/atomic.js +3 -4
  87. package/dist/esm/atomic.js.map +1 -1
  88. package/dist/esm/index.js.map +1 -1
  89. package/dist/esm/loader.js.map +1 -1
  90. package/dist/esm/version.js +2 -2
  91. package/dist/types/components/common/context/bindings-context.d.ts +1 -1
  92. package/dist/types/components/common/facets/timeframe-facet-common.d.ts +1 -0
  93. package/dist/types/components/common/generated-answer/atomic-answer-content/atomic-answer-content.d.ts +50 -0
  94. package/dist/types/components/common/generated-answer/{generated-answer-thread-item/generated-answer-thread-item.d.ts → atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.d.ts} +3 -3
  95. package/dist/types/components/common/generated-answer/atomic-generated-answers-thread/atomic-generated-answers-thread.d.ts +42 -0
  96. package/dist/types/components/common/generated-answer/render-feedback-and-copy-buttons.d.ts +8 -2
  97. package/dist/types/components/common/item-list/table-layout.d.ts +1 -1
  98. package/dist/types/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.d.ts +54 -35
  99. package/dist/types/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.tw.css.d.ts +2 -0
  100. package/dist/types/components/insight/atomic-insight-result-action/atomic-insight-result-action.d.ts +33 -18
  101. package/dist/types/components/insight/atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.d.ts +25 -20
  102. package/dist/types/components/insight/atomic-insight-result-children/atomic-insight-result-children.d.ts +1 -0
  103. package/dist/types/components/insight/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +62 -0
  104. package/dist/types/components/insight/atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.d.ts +47 -28
  105. package/dist/types/components/insight/index.d.ts +5 -0
  106. package/dist/types/components/ipx/atomic-ipx-button/atomic-ipx-button.d.ts +1 -1
  107. package/dist/types/components/ipx/atomic-ipx-recs-list/{atomic-recs-list/atomic-ipx-recs-list.d.ts → atomic-ipx-recs-list.d.ts} +43 -21
  108. package/dist/types/components/ipx/atomic-ipx-refine-modal/atomic-ipx-refine-modal.d.ts +62 -15
  109. package/dist/types/components/ipx/atomic-ipx-refine-toggle/atomic-ipx-refine-toggle.d.ts +26 -11
  110. package/dist/types/components/ipx/index.d.ts +3 -0
  111. package/dist/types/components/recommendations/atomic-recs-result/atomic-recs-result.d.ts +1 -0
  112. package/dist/types/components/search/atomic-external/atomic-external.d.ts +1 -1
  113. package/dist/types/components/search/atomic-generated-answer/atomic-generated-answer.d.ts +11 -2
  114. package/dist/types/components/search/atomic-refine-modal/atomic-refine-modal.d.ts +4 -3
  115. package/dist/types/components.d.ts +0 -547
  116. package/dist/types/decorators/bindings.d.ts +1 -1
  117. package/dist/types/index.d.ts +2 -3
  118. package/dist/types/utils/accessibility-utils.d.ts +2 -2
  119. package/dist/types/utils/init-queue.d.ts +1 -1
  120. package/docs/atomic-docs.json +2 -68
  121. package/package.json +4 -8
  122. package/dist/atomic/components/_commonjsHelpers.js +0 -5
  123. package/dist/atomic/components/_commonjsHelpers.js.map +0 -1
  124. package/dist/atomic/components/arrow-top-rounded.js +0 -7
  125. package/dist/atomic/components/arrow-top-rounded.js.map +0 -1
  126. package/dist/atomic/components/atomic-insight-generated-answer.d.ts +0 -11
  127. package/dist/atomic/components/atomic-insight-generated-answer.js +0 -3264
  128. package/dist/atomic/components/atomic-insight-generated-answer.js.map +0 -1
  129. package/dist/atomic/components/atomic-insight-result-action.d.ts +0 -11
  130. package/dist/atomic/components/atomic-insight-result-action.js +0 -155
  131. package/dist/atomic/components/atomic-insight-result-action.js.map +0 -1
  132. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.d.ts +0 -11
  133. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +0 -102
  134. package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js.map +0 -1
  135. package/dist/atomic/components/atomic-insight-result-children-template.d.ts +0 -11
  136. package/dist/atomic/components/atomic-insight-result-children-template.js +0 -243
  137. package/dist/atomic/components/atomic-insight-result-children-template.js.map +0 -1
  138. package/dist/atomic/components/atomic-insight-timeframe-facet.d.ts +0 -11
  139. package/dist/atomic/components/atomic-insight-timeframe-facet.js +0 -726
  140. package/dist/atomic/components/atomic-insight-timeframe-facet.js.map +0 -1
  141. package/dist/atomic/components/atomic-ipx-recs-list.d.ts +0 -11
  142. package/dist/atomic/components/atomic-ipx-recs-list.js +0 -631
  143. package/dist/atomic/components/atomic-ipx-recs-list.js.map +0 -1
  144. package/dist/atomic/components/atomic-ipx-refine-modal.d.ts +0 -11
  145. package/dist/atomic/components/atomic-ipx-refine-modal.js +0 -8
  146. package/dist/atomic/components/atomic-ipx-refine-modal.js.map +0 -1
  147. package/dist/atomic/components/atomic-ipx-refine-modal2.js +0 -162
  148. package/dist/atomic/components/atomic-ipx-refine-modal2.js.map +0 -1
  149. package/dist/atomic/components/atomic-ipx-refine-toggle.d.ts +0 -11
  150. package/dist/atomic/components/atomic-ipx-refine-toggle.js +0 -121
  151. package/dist/atomic/components/atomic-ipx-refine-toggle.js.map +0 -1
  152. package/dist/atomic/components/atomic-stencil-facet-date-input.d.ts +0 -11
  153. package/dist/atomic/components/atomic-stencil-facet-date-input.js +0 -107
  154. package/dist/atomic/components/atomic-stencil-facet-date-input.js.map +0 -1
  155. package/dist/atomic/components/attach.js +0 -115
  156. package/dist/atomic/components/attach.js.map +0 -1
  157. package/dist/atomic/components/components/common/layout/display-options.js +0 -28
  158. package/dist/atomic/components/date-utils.js +0 -26
  159. package/dist/atomic/components/date-utils.js.map +0 -1
  160. package/dist/atomic/components/initialization-utils.js +0 -226
  161. package/dist/atomic/components/initialization-utils.js.map +0 -1
  162. package/dist/atomic/components/popover-type.js +0 -12
  163. package/dist/atomic/components/popover-type.js.map +0 -1
  164. package/dist/atomic/components/props-utils.js +0 -57
  165. package/dist/atomic/components/props-utils.js.map +0 -1
  166. package/dist/atomic/components/stencil-button.js +0 -148
  167. package/dist/atomic/components/stencil-button.js.map +0 -1
  168. package/dist/atomic/components/stencil-heading.js +0 -169
  169. package/dist/atomic/components/stencil-heading.js.map +0 -1
  170. package/dist/atomic/components/stencil-iconButton.js +0 -16
  171. package/dist/atomic/components/stencil-iconButton.js.map +0 -1
  172. package/dist/atomic/components/store.js +0 -13
  173. package/dist/atomic/components/store.js.map +0 -1
  174. package/dist/atomic/components/utils.js +0 -1421
  175. package/dist/atomic/components/utils.js.map +0 -1
  176. package/dist/atomic/p-0698ccf1.entry.js +0 -2
  177. package/dist/atomic/p-0698ccf1.entry.js.map +0 -1
  178. package/dist/atomic/p-0f896350.entry.js +0 -2
  179. package/dist/atomic/p-0f896350.entry.js.map +0 -1
  180. package/dist/atomic/p-1580513b.js +0 -2
  181. package/dist/atomic/p-1580513b.js.map +0 -1
  182. package/dist/atomic/p-4117289b.entry.js +0 -2
  183. package/dist/atomic/p-4117289b.entry.js.map +0 -1
  184. package/dist/atomic/p-4573c419.js +0 -2
  185. package/dist/atomic/p-4573c419.js.map +0 -1
  186. package/dist/atomic/p-4a32511f.js +0 -2
  187. package/dist/atomic/p-4a32511f.js.map +0 -1
  188. package/dist/atomic/p-578d761c.js +0 -2
  189. package/dist/atomic/p-578d761c.js.map +0 -1
  190. package/dist/atomic/p-677f9c40.js +0 -2
  191. package/dist/atomic/p-677f9c40.js.map +0 -1
  192. package/dist/atomic/p-70cc18a1.js +0 -2
  193. package/dist/atomic/p-70cc18a1.js.map +0 -1
  194. package/dist/atomic/p-74210c4b.entry.js +0 -9
  195. package/dist/atomic/p-74210c4b.entry.js.map +0 -1
  196. package/dist/atomic/p-81d6e743.js +0 -2
  197. package/dist/atomic/p-81d6e743.js.map +0 -1
  198. package/dist/atomic/p-8b039c2e.entry.js +0 -2
  199. package/dist/atomic/p-8b039c2e.entry.js.map +0 -1
  200. package/dist/atomic/p-991e840f.entry.js +0 -2
  201. package/dist/atomic/p-991e840f.entry.js.map +0 -1
  202. package/dist/atomic/p-9c5ec170.js +0 -2
  203. package/dist/atomic/p-9c5ec170.js.map +0 -1
  204. package/dist/atomic/p-9dfe5ab1.js +0 -2
  205. package/dist/atomic/p-9dfe5ab1.js.map +0 -1
  206. package/dist/atomic/p-9f774145.entry.js +0 -2
  207. package/dist/atomic/p-9f774145.entry.js.map +0 -1
  208. package/dist/atomic/p-a33748a9.js +0 -2
  209. package/dist/atomic/p-a33748a9.js.map +0 -1
  210. package/dist/atomic/p-b09433bb.js +0 -3
  211. package/dist/atomic/p-b09433bb.js.map +0 -1
  212. package/dist/atomic/p-b4cfedf1.js +0 -2
  213. package/dist/atomic/p-b4cfedf1.js.map +0 -1
  214. package/dist/atomic/p-c81f1edb.entry.js +0 -2
  215. package/dist/atomic/p-c81f1edb.entry.js.map +0 -1
  216. package/dist/atomic/p-d75a4630.js +0 -2
  217. package/dist/atomic/p-d75a4630.js.map +0 -1
  218. package/dist/atomic/p-dac60354.js +0 -2
  219. package/dist/atomic/p-dac60354.js.map +0 -1
  220. package/dist/atomic/p-e1255160.js +0 -2
  221. package/dist/atomic/p-e1255160.js.map +0 -1
  222. package/dist/atomic/p-ec1c5f46.js +0 -3
  223. package/dist/atomic/p-ec1c5f46.js.map +0 -1
  224. package/dist/atomic/p-eea2c139.entry.js +0 -2
  225. package/dist/atomic/p-eea2c139.entry.js.map +0 -1
  226. package/dist/atomic/p-f321aab0.js +0 -2
  227. package/dist/atomic/p-f321aab0.js.map +0 -1
  228. package/dist/cjs/_commonjsHelpers-68cdf74f.js +0 -7
  229. package/dist/cjs/_commonjsHelpers-68cdf74f.js.map +0 -1
  230. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  231. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  232. package/dist/cjs/arrow-top-rounded-885250ea.js +0 -10
  233. package/dist/cjs/arrow-top-rounded-885250ea.js.map +0 -1
  234. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +0 -3238
  235. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js.map +0 -1
  236. package/dist/cjs/atomic-insight-result-action.cjs.entry.js +0 -140
  237. package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +0 -1
  238. package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +0 -90
  239. package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js.map +0 -1
  240. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +0 -223
  241. package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js.map +0 -1
  242. package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +0 -700
  243. package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js.map +0 -1
  244. package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +0 -600
  245. package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js.map +0 -1
  246. package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +0 -143
  247. package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js.map +0 -1
  248. package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +0 -99
  249. package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js.map +0 -1
  250. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +0 -86
  251. package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js.map +0 -1
  252. package/dist/cjs/attach-19283bec.js +0 -10
  253. package/dist/cjs/attach-19283bec.js.map +0 -1
  254. package/dist/cjs/date-utils-aae1d713.js +0 -28
  255. package/dist/cjs/date-utils-aae1d713.js.map +0 -1
  256. package/dist/cjs/event-utils-9bfcf3c5.js +0 -27
  257. package/dist/cjs/event-utils-9bfcf3c5.js.map +0 -1
  258. package/dist/cjs/index-3532822e.js +0 -1448
  259. package/dist/cjs/index-3532822e.js.map +0 -1
  260. package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js +0 -95
  261. package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js.map +0 -1
  262. package/dist/cjs/initialization-utils-51a423fe.js +0 -148
  263. package/dist/cjs/initialization-utils-51a423fe.js.map +0 -1
  264. package/dist/cjs/popover-type-22f285e1.js +0 -16
  265. package/dist/cjs/popover-type-22f285e1.js.map +0 -1
  266. package/dist/cjs/props-utils-bc5feb04.js +0 -59
  267. package/dist/cjs/props-utils-bc5feb04.js.map +0 -1
  268. package/dist/cjs/stencil-button-f39da03e.js +0 -130
  269. package/dist/cjs/stencil-button-f39da03e.js.map +0 -1
  270. package/dist/cjs/stencil-heading-ecec9ab3.js +0 -174
  271. package/dist/cjs/stencil-heading-ecec9ab3.js.map +0 -1
  272. package/dist/cjs/stencil-iconButton-f8b9fda0.js +0 -18
  273. package/dist/cjs/stencil-iconButton-f8b9fda0.js.map +0 -1
  274. package/dist/cjs/stencil-result-template-decorators-1f099c15.js +0 -114
  275. package/dist/cjs/stencil-result-template-decorators-1f099c15.js.map +0 -1
  276. package/dist/cjs/store-70fff5e6.js +0 -16
  277. package/dist/cjs/store-70fff5e6.js.map +0 -1
  278. package/dist/cjs/utils-e845f262.js +0 -1431
  279. package/dist/cjs/utils-e845f262.js.map +0 -1
  280. package/dist/esm/_commonjsHelpers-1c8beb5f.js +0 -5
  281. package/dist/esm/_commonjsHelpers-1c8beb5f.js.map +0 -1
  282. package/dist/esm/app-globals-0f993ce5.js +0 -5
  283. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  284. package/dist/esm/arrow-top-rounded-745b84a6.js +0 -7
  285. package/dist/esm/arrow-top-rounded-745b84a6.js.map +0 -1
  286. package/dist/esm/atomic-insight-generated-answer.entry.js +0 -3234
  287. package/dist/esm/atomic-insight-generated-answer.entry.js.map +0 -1
  288. package/dist/esm/atomic-insight-result-action.entry.js +0 -136
  289. package/dist/esm/atomic-insight-result-action.entry.js.map +0 -1
  290. package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +0 -86
  291. package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js.map +0 -1
  292. package/dist/esm/atomic-insight-result-children-template.entry.js +0 -219
  293. package/dist/esm/atomic-insight-result-children-template.entry.js.map +0 -1
  294. package/dist/esm/atomic-insight-timeframe-facet.entry.js +0 -696
  295. package/dist/esm/atomic-insight-timeframe-facet.entry.js.map +0 -1
  296. package/dist/esm/atomic-ipx-recs-list.entry.js +0 -596
  297. package/dist/esm/atomic-ipx-recs-list.entry.js.map +0 -1
  298. package/dist/esm/atomic-ipx-refine-modal.entry.js +0 -139
  299. package/dist/esm/atomic-ipx-refine-modal.entry.js.map +0 -1
  300. package/dist/esm/atomic-ipx-refine-toggle.entry.js +0 -95
  301. package/dist/esm/atomic-ipx-refine-toggle.entry.js.map +0 -1
  302. package/dist/esm/atomic-stencil-facet-date-input.entry.js +0 -82
  303. package/dist/esm/atomic-stencil-facet-date-input.entry.js.map +0 -1
  304. package/dist/esm/attach-81bb8872.js +0 -8
  305. package/dist/esm/attach-81bb8872.js.map +0 -1
  306. package/dist/esm/date-utils-3b955e79.js +0 -26
  307. package/dist/esm/date-utils-3b955e79.js.map +0 -1
  308. package/dist/esm/event-utils-8de63ec3.js +0 -24
  309. package/dist/esm/event-utils-8de63ec3.js.map +0 -1
  310. package/dist/esm/index-3eb0b28e.js +0 -1417
  311. package/dist/esm/index-3eb0b28e.js.map +0 -1
  312. package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js +0 -88
  313. package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js.map +0 -1
  314. package/dist/esm/initialization-utils-82d28c63.js +0 -144
  315. package/dist/esm/initialization-utils-82d28c63.js.map +0 -1
  316. package/dist/esm/popover-type-c85677ef.js +0 -12
  317. package/dist/esm/popover-type-c85677ef.js.map +0 -1
  318. package/dist/esm/props-utils-d343133b.js +0 -57
  319. package/dist/esm/props-utils-d343133b.js.map +0 -1
  320. package/dist/esm/stencil-button-c25899df.js +0 -128
  321. package/dist/esm/stencil-button-c25899df.js.map +0 -1
  322. package/dist/esm/stencil-heading-98a5f23f.js +0 -169
  323. package/dist/esm/stencil-heading-98a5f23f.js.map +0 -1
  324. package/dist/esm/stencil-iconButton-ed5804d3.js +0 -16
  325. package/dist/esm/stencil-iconButton-ed5804d3.js.map +0 -1
  326. package/dist/esm/stencil-result-template-decorators-9cbe1e1c.js +0 -110
  327. package/dist/esm/stencil-result-template-decorators-9cbe1e1c.js.map +0 -1
  328. package/dist/esm/store-50d170c8.js +0 -13
  329. package/dist/esm/store-50d170c8.js.map +0 -1
  330. package/dist/esm/utils-b5bab369.js +0 -1421
  331. package/dist/esm/utils-b5bab369.js.map +0 -1
  332. package/dist/types/components/commerce/product-template-component-utils/context/stencil-product-template-decorators.d.ts +0 -14
  333. package/dist/types/components/common/atomic-rating/stencil-rating.d.ts +0 -18
  334. package/dist/types/components/common/atomic-result-placeholder/stencil-placeholders.d.ts +0 -20
  335. package/dist/types/components/common/breadbox/stencil-breadcrumb-button.d.ts +0 -15
  336. package/dist/types/components/common/breadbox/stencil-breadcrumb-clear-all.d.ts +0 -13
  337. package/dist/types/components/common/breadbox/stencil-breadcrumb-container.d.ts +0 -11
  338. package/dist/types/components/common/breadbox/stencil-breadcrumb-content.d.ts +0 -14
  339. package/dist/types/components/common/breadbox/stencil-breadcrumb-show-less.d.ts +0 -13
  340. package/dist/types/components/common/breadbox/stencil-breadcrumb-show-more.d.ts +0 -14
  341. package/dist/types/components/common/facets/category-facet/stencil-all-categories-button.d.ts +0 -13
  342. package/dist/types/components/common/facets/category-facet/stencil-child-value-link.d.ts +0 -9
  343. package/dist/types/components/common/facets/category-facet/stencil-children-as-tree-container.d.ts +0 -9
  344. package/dist/types/components/common/facets/category-facet/stencil-parent-as-tree-container.d.ts +0 -10
  345. package/dist/types/components/common/facets/category-facet/stencil-parent-button.d.ts +0 -16
  346. package/dist/types/components/common/facets/category-facet/stencil-parent-value-link.d.ts +0 -9
  347. package/dist/types/components/common/facets/category-facet/stencil-search-results-container.d.ts +0 -5
  348. package/dist/types/components/common/facets/category-facet/stencil-search-value.d.ts +0 -19
  349. package/dist/types/components/common/facets/category-facet/stencil-value-as-tree-container.d.ts +0 -5
  350. package/dist/types/components/common/facets/category-facet/stencil-value-link.d.ts +0 -20
  351. package/dist/types/components/common/facets/facet-container/stencil-facet-container.d.ts +0 -5
  352. package/dist/types/components/common/facets/facet-header/stencil-facet-header.d.ts +0 -17
  353. package/dist/types/components/common/facets/facet-placeholder/stencil-facet-placeholder.d.ts +0 -10
  354. package/dist/types/components/common/facets/facet-search/stencil-facet-search-input-guard.d.ts +0 -11
  355. package/dist/types/components/common/facets/facet-search/stencil-facet-search-input.d.ts +0 -14
  356. package/dist/types/components/common/facets/facet-search/stencil-facet-search-matches.d.ts +0 -14
  357. package/dist/types/components/common/facets/facet-search/stencil-facet-search-value.d.ts +0 -6
  358. package/dist/types/components/common/facets/facet-show-more-less/stencil-facet-show-more-less.d.ts +0 -17
  359. package/dist/types/components/common/facets/facet-value/stencil-facet-value.d.ts +0 -22
  360. package/dist/types/components/common/facets/facet-value-box/stencil-facet-value-box.d.ts +0 -6
  361. package/dist/types/components/common/facets/facet-value-checkbox/stencil-facet-value-checkbox.d.ts +0 -11
  362. package/dist/types/components/common/facets/facet-value-exclude/stencil-facet-value-exclude.d.ts +0 -10
  363. package/dist/types/components/common/facets/facet-value-label-highlight/stencil-facet-value-label-highlight.d.ts +0 -12
  364. package/dist/types/components/common/facets/facet-value-link/stencil-facet-value-link.d.ts +0 -10
  365. package/dist/types/components/common/facets/facet-values-group/stencil-facet-values-group.d.ts +0 -12
  366. package/dist/types/components/common/facets/numeric-facet/stencil-value-link.d.ts +0 -12
  367. package/dist/types/components/common/facets/numeric-facet/stencil-values-container.d.ts +0 -11
  368. package/dist/types/components/common/facets/stencil-facet-common.d.ts +0 -43
  369. package/dist/types/components/common/facets/stencil-facet-date-input/stencil-facet-date-input.d.ts +0 -33
  370. package/dist/types/components/common/facets/stencil-facet-guard.d.ts +0 -12
  371. package/dist/types/components/common/facets/stencil-timeframe-facet-common.d.ts +0 -72
  372. package/dist/types/components/common/generated-answer/generated-answer-common.d.ts +0 -58
  373. package/dist/types/components/common/generated-answer/generated-content/stencil-generated-markdown-content.d.ts +0 -10
  374. package/dist/types/components/common/generated-answer/generated-content/stencil-generated-text-content.d.ts +0 -10
  375. package/dist/types/components/common/generated-answer/stencil-copy-button.d.ts +0 -12
  376. package/dist/types/components/common/generated-answer/stencil-feedback-button.d.ts +0 -13
  377. package/dist/types/components/common/generated-answer/stencil-generated-content-container.d.ts +0 -11
  378. package/dist/types/components/common/generated-answer/stencil-retry-prompt.d.ts +0 -11
  379. package/dist/types/components/common/generated-answer/stencil-show-button.d.ts +0 -12
  380. package/dist/types/components/common/generated-answer/stencil-source-citations.d.ts +0 -10
  381. package/dist/types/components/common/interface/interface-common-stencil.d.ts +0 -34
  382. package/dist/types/components/common/interface/stencil-i18n.d.ts +0 -11
  383. package/dist/types/components/common/item-link/stencil-item-link.d.ts +0 -30
  384. package/dist/types/components/common/item-list/item-list-decorators.d.ts +0 -17
  385. package/dist/types/components/common/item-list/stencil-display-grid.d.ts +0 -17
  386. package/dist/types/components/common/item-list/stencil-display-wrapper.d.ts +0 -11
  387. package/dist/types/components/common/item-list/stencil-item-decorators.d.ts +0 -41
  388. package/dist/types/components/common/item-list/stencil-item-display-guard.d.ts +0 -10
  389. package/dist/types/components/common/item-list/stencil-item-list-common.d.ts +0 -31
  390. package/dist/types/components/common/item-list/stencil-item-list-guard.d.ts +0 -13
  391. package/dist/types/components/common/item-text/stencil-item-text-fallback.d.ts +0 -14
  392. package/dist/types/components/common/item-text/stencil-item-text-highlighted.d.ts +0 -13
  393. package/dist/types/components/common/load-more/guard.d.ts +0 -10
  394. package/dist/types/components/common/load-more/stencil-button.d.ts +0 -13
  395. package/dist/types/components/common/load-more/stencil-container.d.ts +0 -5
  396. package/dist/types/components/common/load-more/stencil-progress-bar.d.ts +0 -10
  397. package/dist/types/components/common/load-more/stencil-summary.d.ts +0 -13
  398. package/dist/types/components/common/no-items/stencil-container.d.ts +0 -5
  399. package/dist/types/components/common/no-items/stencil-guard.d.ts +0 -11
  400. package/dist/types/components/common/no-items/stencil-magnifying-glass.d.ts +0 -5
  401. package/dist/types/components/common/no-items/stencil-no-items.d.ts +0 -12
  402. package/dist/types/components/common/no-items/stencil-tips.d.ts +0 -10
  403. package/dist/types/components/common/pager/stencil-pager-buttons.d.ts +0 -33
  404. package/dist/types/components/common/pager/stencil-pager-navigation.d.ts +0 -10
  405. package/dist/types/components/common/product-template/stencil-product-template-common.d.ts +0 -26
  406. package/dist/types/components/common/query-correction/stencil-auto-correction.d.ts +0 -12
  407. package/dist/types/components/common/query-correction/stencil-correction.d.ts +0 -12
  408. package/dist/types/components/common/query-correction/stencil-guard.d.ts +0 -9
  409. package/dist/types/components/common/query-correction/stencil-trigger-correction.d.ts +0 -13
  410. package/dist/types/components/common/query-error/stencil-container.d.ts +0 -5
  411. package/dist/types/components/common/query-error/stencil-description.d.ts +0 -13
  412. package/dist/types/components/common/query-error/stencil-details.d.ts +0 -10
  413. package/dist/types/components/common/query-error/stencil-guard.d.ts +0 -9
  414. package/dist/types/components/common/query-error/stencil-icon.d.ts +0 -9
  415. package/dist/types/components/common/query-error/stencil-link.d.ts +0 -11
  416. package/dist/types/components/common/query-error/stencil-show-more.d.ts +0 -13
  417. package/dist/types/components/common/query-error/stencil-title.d.ts +0 -12
  418. package/dist/types/components/common/query-summary/stencil-container.d.ts +0 -9
  419. package/dist/types/components/common/query-summary/stencil-guard.d.ts +0 -11
  420. package/dist/types/components/common/query-summary/stencil-utils.d.ts +0 -23
  421. package/dist/types/components/common/refine-modal/stencil-body.d.ts +0 -7
  422. package/dist/types/components/common/refine-modal/stencil-button.d.ts +0 -12
  423. package/dist/types/components/common/refine-modal/stencil-filters.d.ts +0 -20
  424. package/dist/types/components/common/refine-modal/stencil-guard.d.ts +0 -11
  425. package/dist/types/components/common/refine-modal/stencil-modal.d.ts +0 -18
  426. package/dist/types/components/common/refine-modal/stencil-sort.d.ts +0 -11
  427. package/dist/types/components/common/result-children/stencil-children-wrapper.d.ts +0 -9
  428. package/dist/types/components/common/result-children/stencil-collection-guard.d.ts +0 -16
  429. package/dist/types/components/common/result-children/stencil-guard.d.ts +0 -11
  430. package/dist/types/components/common/result-children/stencil-show-hide-button.d.ts +0 -14
  431. package/dist/types/components/common/result-templates/stencil-result-template-common.d.ts +0 -24
  432. package/dist/types/components/common/search-box/stencil-search-box-wrapper.d.ts +0 -10
  433. package/dist/types/components/common/search-box/stencil-search-text-area.d.ts +0 -22
  434. package/dist/types/components/common/search-box/stencil-submit-button.d.ts +0 -12
  435. package/dist/types/components/common/search-box/stencil-text-area-clear-button.d.ts +0 -12
  436. package/dist/types/components/common/smart-snippets/atomic-smart-snippet/stencil-smart-snippet-common.d.ts +0 -31
  437. package/dist/types/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/stencil-smart-snippet-feedback-modal-common.d.ts +0 -57
  438. package/dist/types/components/common/smart-snippets/atomic-smart-snippet-suggestions/stencil-smart-snippet-suggestions-common.d.ts +0 -43
  439. package/dist/types/components/common/smart-snippets/stencil-smart-snippet-feedback-banner.d.ts +0 -18
  440. package/dist/types/components/common/stencil-button-style.d.ts +0 -11
  441. package/dist/types/components/common/stencil-button.d.ts +0 -30
  442. package/dist/types/components/common/stencil-carousel.d.ts +0 -15
  443. package/dist/types/components/common/stencil-checkbox.d.ts +0 -22
  444. package/dist/types/components/common/stencil-fieldset-group.d.ts +0 -9
  445. package/dist/types/components/common/stencil-heading.d.ts +0 -7
  446. package/dist/types/components/common/stencil-hidden.d.ts +0 -5
  447. package/dist/types/components/common/stencil-iconButton.d.ts +0 -13
  448. package/dist/types/components/common/stencil-radio-button.d.ts +0 -12
  449. package/dist/types/components/common/stencil-switch.d.ts +0 -15
  450. package/dist/types/components/common/stencil-triStateCheckbox.d.ts +0 -11
  451. package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +0 -19
  452. package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +0 -32
  453. package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +0 -96
  454. package/dist/types/components/insight/result-templates/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +0 -50
  455. package/dist/types/components/search/facets/facet-segmented-value/stencil-facet-segmented-value.d.ts +0 -6
  456. package/dist/types/components/search/result-template-component-utils/context/stencil-result-template-decorators.d.ts +0 -32
  457. package/dist/types/components/search/result-template-components/quickview-iframe/stencil-quickview-iframe.d.ts +0 -14
  458. package/dist/types/utils/__mocks__/stencil-resource-url.d.ts +0 -1
  459. package/dist/types/utils/initialization-utils.d.ts +0 -70
  460. package/dist/types/utils/jsx-utils.d.ts +0 -6
  461. package/dist/types/utils/stencil-accessibility-utils.d.ts +0 -43
  462. package/dist/types/utils/stencil-asset-path-utils.d.ts +0 -1
  463. package/dist/types/utils/stencil-resource-url.d.ts +0 -1
  464. /package/dist/atomic/components/utils/{initialization-lit-stencil-common-utils.js → initialization-common-utils.js} +0 -0
  465. /package/dist/types/utils/{initialization-lit-stencil-common-utils.d.ts → initialization-common-utils.d.ts} +0 -0
@@ -0,0 +1,42 @@
1
+ import type { GeneratedAnswerCitation } from '@coveo/headless';
2
+ import { LitElement, type nothing, type PropertyValues, type TemplateResult } from 'lit';
3
+ import "../atomic-generated-answer-thread-item/atomic-generated-answer-thread-item";
4
+ import "../atomic-answer-content/atomic-answer-content";
5
+ import type { i18n } from 'i18next';
6
+ import type { GeneratedAnswer } from "../atomic-answer-content/atomic-answer-content";
7
+ /**
8
+ * The `atomic-generated-answers-thread` component is responsible for rendering a thread of generated answers.
9
+ * @internal
10
+ */
11
+ export declare class AtomicGeneratedAnswersThread extends LitElement {
12
+ /**
13
+ * The list of generated answers to render in the thread.
14
+ */
15
+ generatedAnswers: GeneratedAnswer[];
16
+ /**
17
+ * The i18next instance used to translate UI labels.
18
+ */
19
+ i18n: i18n;
20
+ /**
21
+ * A render function responsible for displaying the citations of a single answer.
22
+ */
23
+ renderCitations: (citations: GeneratedAnswerCitation[]) => TemplateResult | typeof nothing;
24
+ /**
25
+ * Callback invoked when the user clicks the "like" feedback button of a specific answer.
26
+ */
27
+ onClickLike: (answerId: string) => void;
28
+ /**
29
+ * Callback invoked when the user clicks the "dislike" feedback button of a specific answer.
30
+ */
31
+ onClickDislike: (answerId: string) => void;
32
+ /**
33
+ * Callback invoked after the text of a specific answer has been successfully copied.
34
+ */
35
+ onCopyToClipboard: (answerId: string) => void;
36
+ private allGeneratedAnswersDisplayed;
37
+ updated(changedProperties: PropertyValues<this>): void;
38
+ render(): TemplateResult<1>;
39
+ private renderThread;
40
+ private handleShowAllClick;
41
+ private renderShowPreviousAnswersButton;
42
+ }
@@ -1,9 +1,15 @@
1
- import type { GeneratedAnswerState } from '@coveo/headless';
2
1
  import type { i18n } from 'i18next';
3
2
  import type { FunctionalComponent } from "../../../utils/functional-component-utils";
3
+ export interface GeneratedAnswerActionsState {
4
+ liked: boolean;
5
+ disliked: boolean;
6
+ isStreaming: boolean;
7
+ isLoading: boolean;
8
+ answer?: string;
9
+ }
4
10
  export interface RenderFeedbackAndCopyButtonsProps {
5
11
  i18n: i18n;
6
- generatedAnswerState: GeneratedAnswerState | undefined;
12
+ generatedAnswerActionsState: GeneratedAnswerActionsState;
7
13
  copied: boolean;
8
14
  copyError: boolean;
9
15
  getCopyToClipboardTooltip: () => string;
@@ -1,6 +1,6 @@
1
1
  import "../../search/atomic-text/atomic-text";
2
2
  import { type TemplateResult } from 'lit';
3
- import type { ItemRenderingFunction } from "../..";
3
+ import type { ItemRenderingFunction } from "./item-list-common";
4
4
  import type { FunctionalComponent, FunctionalComponentWithChildren } from "../../../utils/functional-component-utils";
5
5
  import type { AnyItem } from '../item-list/unfolded-item';
6
6
  interface TableColumnsProps {
@@ -1,8 +1,8 @@
1
- import { SearchStatus as InsightSearchStatus, GeneratedAnswer as InsightGeneratedAnswer, GeneratedAnswerState as InsightGeneratedAnswerState } from '@coveo/headless/insight';
2
- import { InitializableComponent } from '../../../utils/initialization-utils';
3
- import { InsightBindings } from '../atomic-insight-interface/atomic-insight-interface';
1
+ import { type GeneratedAnswer as InsightGeneratedAnswer, type SearchStatus as InsightSearchStatus } from '@coveo/headless/insight';
2
+ import { LitElement, nothing, type PropertyValueMap } from 'lit';
3
+ import type { InsightBindings } from "../atomic-insight-interface/atomic-insight-interface";
4
+ import type { InitializableComponent } from "../../../decorators/types";
4
5
  /**
5
- * @internal
6
6
  * The `atomic-insight-generated-answer` component uses Coveo Machine Learning (Coveo ML) models to automatically generate an answer to a query executed by the user.
7
7
  * For more information, see [About Relevance Generative Answering (RGA)](https://docs.coveo.com/en/n9de0370/)
8
8
  *
@@ -40,34 +40,27 @@ import { InsightBindings } from '../atomic-insight-interface/atomic-insight-inte
40
40
  * @part citation - The link that allows the user to navigate to the item.
41
41
  * @part citation-popover - The pop-up that shows an item preview when the user hovers over the citation.
42
42
  */
43
- export declare class AtomicInsightGeneratedAnswer implements InitializableComponent<InsightBindings> {
44
- bindings: InsightBindings;
45
- generatedAnswer: InsightGeneratedAnswer;
46
- searchStatus: InsightSearchStatus;
47
- private resizeObserver?;
43
+ export declare class AtomicInsightGeneratedAnswer extends LitElement implements InitializableComponent<InsightBindings> {
44
+ static styles: import("lit").CSSResult[][];
45
+ private static readonly propsSchema;
46
+ private static readonly fieldsToIncludeInCitationsConverter;
48
47
  private readonly DEFAULT_COLLAPSED_HEIGHT;
49
48
  private readonly MAX_COLLAPSED_HEIGHT;
50
49
  private readonly MIN_COLLAPSED_HEIGHT;
51
50
  private readonly REQUIRED_FIELDS_TO_INCLUDE_IN_CITATIONS;
52
- private generatedAnswerState;
53
- private searchStatusState;
54
- error: Error;
55
- private host;
56
- copied: boolean;
57
- copyError: boolean;
51
+ private resizeObserver?;
52
+ private fullAnswerHeight?;
53
+ private controller;
58
54
  /**
59
55
  * Whether to render a toggle button that lets the user hide or show the answer.
60
- * @default false
61
56
  */
62
- withToggle?: boolean;
57
+ withToggle: boolean;
63
58
  /**
64
- * Whether to allow the answer to be collapsed when the text is taller than 250px.
65
- * @default false
59
+ * Whether to allow the answer to be collapsed when the text is taller than the specified `--atomic-crga-collapsed-height` value (16rem by default).
66
60
  */
67
- collapsible?: boolean;
61
+ collapsible: boolean;
68
62
  /**
69
63
  * The maximum height (in rem units) of the answer when collapsed.
70
- *
71
64
  */
72
65
  maxCollapsedHeight: number;
73
66
  /**
@@ -77,30 +70,56 @@ export declare class AtomicInsightGeneratedAnswer implements InitializableCompon
77
70
  answerConfigurationId?: string;
78
71
  /**
79
72
  * A list of fields to include with the citations used to generate the answer.
73
+ *
74
+ * Set this property as a stringified JSON array, for example:
75
+ * ```html
76
+ * <atomic-insight-generated-answer fields-to-include-in-citations='["fieldA", "fieldB"]'></atomic-insight-generated-answer>
77
+ * ```
80
78
  */
81
79
  fieldsToIncludeInCitations?: string;
82
80
  /**
83
- * Option to disable citation anchoring.
84
- * @default false
81
+ * Whether to disable citation anchoring.
85
82
  */
86
- disableCitationAnchoring?: boolean;
87
- protected ariaMessage: string;
88
- private generatedAnswerCommon;
89
- private fullAnswerHeight?;
83
+ disableCitationAnchoring: boolean;
84
+ bindings: InsightBindings;
85
+ error: Error;
86
+ private generatedAnswerState;
87
+ generatedAnswer: InsightGeneratedAnswer;
88
+ private searchStatusState;
89
+ searchStatus: InsightSearchStatus;
90
+ private copied;
91
+ private copyError;
92
+ private ariaMessage;
93
+ constructor();
90
94
  initialize(): void;
91
- updateAnswerCollapsed(newState: InsightGeneratedAnswerState, oldState: InsightGeneratedAnswerState): void;
92
95
  disconnectedCallback(): void;
93
- private onGeneratedAnswerStateUpdate;
94
- private setCopied;
95
- private setCopyError;
96
- private setAriaMessage;
96
+ protected willUpdate(changedProperties: PropertyValueMap<this>): void;
97
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
98
+ onGeneratedAnswerStateUpdate: () => void;
99
+ private get hasNoAnswerGenerated();
100
+ private get isAnswerVisible();
101
+ private get toggleTooltip();
102
+ private get copyToClipboardTooltip();
103
+ private get hasCustomNoAnswerMessage();
104
+ private copyToClipboard;
105
+ private clickOnShowButton;
106
+ private getCitationFields;
107
+ private validateMaxCollapsedHeight;
97
108
  private toggleClass;
98
109
  private adaptAnswerHeight;
99
110
  private getAnswerContainer;
100
111
  private getAnswerFooter;
101
- private getCitationFields;
102
- private validateMaxCollapsedHeight;
103
112
  private setCSSVariable;
104
113
  private updateAnswerHeight;
105
- render(): any;
114
+ private clickDislike;
115
+ private clickLike;
116
+ private renderCitationsList;
117
+ private renderFeedbackAndCopyButtonsWrapper;
118
+ private renderContent;
119
+ private renderCardHeaderWrapper;
120
+ }
121
+ declare global {
122
+ interface HTMLElementTagNameMap {
123
+ 'atomic-insight-generated-answer': AtomicInsightGeneratedAnswer;
124
+ }
106
125
  }
@@ -0,0 +1,2 @@
1
+ import generatedAnswer from '../../common/generated-answer/styles/generated-answer.tw.css';
2
+ export default generatedAnswer;
@@ -1,6 +1,7 @@
1
- import { Result } from '@coveo/headless';
2
- import { InitializableComponent } from '../../../utils/initialization-utils';
3
- import { InsightBindings } from '../atomic-insight-interface/atomic-insight-interface';
1
+ import type { Result } from '@coveo/headless';
2
+ import { LitElement } from 'lit';
3
+ import type { InsightBindings } from "../atomic-insight-interface/atomic-insight-interface";
4
+ import type { InitializableComponent } from "../../../decorators/types";
4
5
  export interface InsightResultActionClickedEvent {
5
6
  action: string;
6
7
  result: Result;
@@ -12,22 +13,21 @@ export declare enum Actions {
12
13
  PostToFeed = "postToFeed",
13
14
  SendAsEmail = "sendAsEmail"
14
15
  }
16
+ declare const AtomicInsightResultAction_base: import("../../../mixins/mixin-common").Constructor<{
17
+ injectStyles(dynamicStyles?: import("lit").CSSResultGroup): Promise<void>;
18
+ }> & typeof LitElement;
15
19
  /**
16
- * @internal
20
+ * The `atomic-insight-result-action` component renders an interactive action button for insight results.
21
+ *
22
+ * @part result-action-container - The result action container
23
+ * @part result-action-button - The result action button
24
+ * @part result-action-icon - The result action icon
25
+ * @event atomicInsightResultActionClicked - Fired when the action button is clicked. The event detail contains the action type and the result object.
17
26
  */
18
- export declare class AtomicInsightResultAction implements InitializableComponent<InsightBindings> {
19
- bindings: InsightBindings;
20
- private result;
21
- error: Error;
22
- /**
23
- * @migration Stencil's @Event() decorator defaults to: bubbles=true, composed=true, cancelable=true.
24
- * Native CustomEvent defaults to: bubbles=false, composed=false, cancelable=false.
25
- * When migrating to Lit, explicitly set all three options to preserve behavior:
26
- * `new CustomEvent('atomicInsightResultActionClicked', { bubbles: true, composed: true, cancelable: true, detail: ... })`
27
- */
28
- private actionClicked;
27
+ export declare class AtomicInsightResultAction extends AtomicInsightResultAction_base implements InitializableComponent<InsightBindings> {
28
+ static styles: import("lit").CSSResult;
29
29
  /**
30
- * Specify the result action icon to display.
30
+ * The result action icon to display.
31
31
  */
32
32
  icon: string;
33
33
  /**
@@ -39,12 +39,27 @@ export declare class AtomicInsightResultAction implements InitializableComponent
39
39
  */
40
40
  tooltipOnClick: string;
41
41
  /**
42
- * The type of action to perform when the result action is clicked. This will be sent along the event fired when the button is clicked.
42
+ * The type of action to perform when the result action is clicked.
43
+ * This will be sent along the event fired when the button is clicked.
43
44
  */
44
45
  action: Actions | string;
46
+ bindings: InsightBindings;
47
+ error: Error;
48
+ private currentTooltip;
49
+ private itemContextController;
45
50
  private actions;
51
+ private tooltipResetTimeout?;
52
+ constructor();
53
+ disconnectedCallback(): void;
54
+ private get result();
46
55
  initialize(): void;
47
56
  private onClick;
48
57
  private getIcon;
49
- render(): any;
58
+ render(): typeof import("lit-html").nothing | import("lit-html").TemplateResult | null;
59
+ }
60
+ declare global {
61
+ interface HTMLElementTagNameMap {
62
+ 'atomic-insight-result-action': AtomicInsightResultAction;
63
+ }
50
64
  }
65
+ export {};
@@ -1,37 +1,42 @@
1
- import { AttachToCase, Result } from '@coveo/headless/insight';
2
- import { InitializableComponent } from '../../../utils/initialization-utils';
3
- import { InsightBindings } from '../atomic-insight-interface/atomic-insight-interface';
1
+ import { type AttachedResults, type Result } from '@coveo/headless/insight';
2
+ import { LitElement } from 'lit';
3
+ import type { InsightBindings } from "../atomic-insight-interface/atomic-insight-interface";
4
+ import type { InitializableComponent } from "../../../decorators/types";
4
5
  export interface InsightResultAttachToCaseEvent {
5
6
  callback: () => void;
6
7
  result: Result;
7
8
  }
9
+ declare const AtomicInsightResultAttachToCaseAction_base: import("../../../mixins/mixin-common").Constructor<{
10
+ injectStyles(dynamicStyles?: import("lit").CSSResultGroup): Promise<void>;
11
+ }> & typeof LitElement;
8
12
  /**
9
- * @internal
10
- * The `atomic-insight-result-attach-to-case-action` component can be nested inside a `atomic-insight-result-actions` to render an interactive button that will emit an `atomic/insight/attachToCase/attach` or `atomic/insight/attachToCase/detach` JavaScript event, based on its current state, when clicked.
13
+ * The `atomic-insight-result-attach-to-case-action` component can be nested
14
+ * inside a `atomic-insight-result-actions` to render an interactive button
15
+ * that will emit an `atomic/insight/attachToCase/attach` or
16
+ * `atomic/insight/attachToCase/detach` JavaScript event, based on its current
17
+ * state, when clicked.
11
18
  *
12
19
  * @part result-action-container - The result action container
13
20
  * @part result-action-button - The result action button
14
21
  * @part result-action-icon - The result action icon
15
22
  */
16
- export declare class AtomicInsightResultAttachToCaseAction implements InitializableComponent<InsightBindings> {
23
+ export declare class AtomicInsightResultAttachToCaseAction extends AtomicInsightResultAttachToCaseAction_base implements InitializableComponent<InsightBindings> {
17
24
  bindings: InsightBindings;
18
- private result;
19
- host: HTMLElement;
20
25
  error: Error;
21
- attachToCase: AttachToCase;
22
- attachToCaseState: {};
23
- /**
24
- * @migration Stencil's @Event() decorator defaults to: bubbles=true, composed=true, cancelable=true.
25
- * Native CustomEvent defaults to: bubbles=false, composed=false, cancelable=false.
26
- * When migrating to Lit, explicitly set all three options to preserve behavior:
27
- * `new CustomEvent('atomic/insight/attachToCase/attach', { bubbles: true, composed: true, cancelable: true, detail: ... })`
28
- * `new CustomEvent('atomic/insight/attachToCase/detach', { bubbles: true, composed: true, cancelable: true, detail: ... })`
29
- */
30
- private attach;
31
- private detach;
26
+ attachedResults: AttachedResults;
27
+ private attachedResultsState;
28
+ private itemContextController;
29
+ constructor();
30
+ private get result();
32
31
  initialize(): void;
33
32
  private onClick;
34
33
  private getIcon;
35
34
  private getTooltip;
36
- render(): any;
35
+ render(): typeof import("lit-html").nothing | import("lit-html").TemplateResult;
37
36
  }
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'atomic-insight-result-attach-to-case-action': AtomicInsightResultAttachToCaseAction;
40
+ }
41
+ }
42
+ export {};
@@ -3,6 +3,7 @@ import type { ItemDisplayImageSize } from "../../common/layout/item-layout-utils
3
3
  import type { InsightBindings } from "../atomic-insight-interface/atomic-insight-interface";
4
4
  import type { InitializableComponent } from "../../../decorators/types";
5
5
  import "../atomic-insight-result/atomic-insight-result";
6
+ import "../atomic-insight-result-children-template/atomic-insight-result-children-template";
6
7
  /**
7
8
  * The `atomic-insight-result-children` component is responsible for displaying child results by applying one or more child result templates.
8
9
  * It includes two slots, `before-children` and `after-children`, which allow for rendering content before and after the list of children,
@@ -0,0 +1,62 @@
1
+ import type { ResultTemplate as InsightResultTemplate, ResultTemplateCondition as InsightResultTemplateCondition } from '@coveo/headless/insight';
2
+ import { LitElement } from 'lit';
3
+ import type { LitElementWithError } from "../../../decorators/types";
4
+ /**
5
+ * The `atomic-insight-result-children-template` component determines the display format of child results within an `atomic-insight-result-children` component.
6
+ *
7
+ * @slot default - The `<template>` element defining the layout of child results.
8
+ */
9
+ export declare class AtomicInsightResultChildrenTemplate extends LitElement implements LitElementWithError {
10
+ error: Error;
11
+ /**
12
+ * An array of functions that must each return `true` for this template to apply to a child result.
13
+ * Set programmatically before initialization, not via attribute.
14
+ *
15
+ * For example, the following targets a template and sets a condition to make it apply only to child results whose `title` contains `singapore`:
16
+ * `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`
17
+ */
18
+ conditions: InsightResultTemplateCondition[];
19
+ /**
20
+ * The field that, when defined on a child result, allows this template to be applied.
21
+ *
22
+ * For example, a template with the following attribute only applies to child results whose `filetype` and `sourcetype` fields are defined:
23
+ * `if-defined="filetype,sourcetype"`
24
+ */
25
+ ifDefined?: string;
26
+ /**
27
+ * The field that, when defined on a child result, prevents this template from being applied.
28
+ *
29
+ * For example, a template with the following attribute only applies to child results whose `filetype` and `sourcetype` fields are NOT defined:
30
+ * `if-not-defined="filetype,sourcetype"`
31
+ */
32
+ ifNotDefined?: string;
33
+ /**
34
+ * The field and values that define which child results this template applies to.
35
+ *
36
+ * For example, a template with the following attribute only applies to child results whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype="lithiummessage,YouTubePlaylist"`
37
+ * @type {Record<string, string[]>}
38
+ * @default {}
39
+ */
40
+ mustMatch: Record<string, string[]>;
41
+ /**
42
+ * The field and values that exclude child results from this template.
43
+ *
44
+ * For example, a template with the following attribute only applies to child results whose `filetype` is not `lithiummessage`: `must-not-match-filetype="lithiummessage"`
45
+ * @type {Record<string, string[]>}
46
+ * @default {}
47
+ */
48
+ mustNotMatch: Record<string, string[]>;
49
+ private resultTemplateController;
50
+ constructor();
51
+ connectedCallback(): void;
52
+ render(): symbol;
53
+ /**
54
+ * Returns the result template to apply to a child result, based on all defined conditions.
55
+ */
56
+ getTemplate(): Promise<InsightResultTemplate<DocumentFragment> | null>;
57
+ }
58
+ declare global {
59
+ interface HTMLElementTagNameMap {
60
+ 'atomic-insight-result-children-template': AtomicInsightResultChildrenTemplate;
61
+ }
62
+ }
@@ -1,26 +1,31 @@
1
- import { DateFacet as InsightDateFacet, DateFacetState as InsightDateFacetState, DateFilter as InsightDateFilter, DateFilterState as InsightDateFilterState, SearchStatus as InsightSearchStatus, SearchStatusState as InsightSearchStatusState, RangeFacetSortCriterion as InsightRangeFacetSortCriterion } from '@coveo/headless/insight';
2
- import { InitializableComponent } from '../../../utils/initialization-utils';
3
- import { InsightBindings } from '../atomic-insight-interface/atomic-insight-interface';
1
+ import { type RangeFacetSortCriterion, type SearchStatus, type SearchStatusState } from '@coveo/headless/insight';
2
+ import { type CSSResultGroup, LitElement } from 'lit';
3
+ import type { InsightBindings } from "../atomic-insight-interface/atomic-insight-interface";
4
+ import type { InitializableComponent } from "../../../decorators/types";
4
5
  /**
5
- * @internal
6
+ * The `atomic-insight-timeframe-facet` component displays a facet of results for the current query as date intervals.
7
+ *
8
+ * @slot default - The atomic-timeframe components defining the timeframes to display.
9
+ *
10
+ * @part facet - The wrapper for the entire facet.
11
+ * @part placeholder - The placeholder shown before the first search is executed.
12
+ * @part label-button - The button that displays the label and allows to expand/collapse the facet.
13
+ * @part label-button-icon - The label button icon.
14
+ * @part clear-button - The button that resets the actively selected facet values.
15
+ * @part clear-button-icon - The clear button icon.
16
+ * @part values - The facet values container.
17
+ * @part value-link - A facet value button.
18
+ * @part value-link-selected - A selected facet value button.
19
+ * @part value-count - The result count for a facet value.
20
+ * @part value-label - The label text of a facet value.
21
+ * @part input-start - The starting value of the custom date range.
22
+ * @part input-end - The ending value of the custom date range.
23
+ * @part input-label - The label for both the start and end input.
24
+ * @part input-apply-button - The apply button for the custom range.
6
25
  */
7
- export declare class AtomicInsightTimeframeFacet implements InitializableComponent<InsightBindings> {
8
- bindings: InsightBindings;
9
- facetForDateRange?: InsightDateFacet;
10
- facetForDatePicker?: InsightDateFacet;
11
- private timeframeFacetCommon?;
12
- filter?: InsightDateFilter;
13
- searchStatus: InsightSearchStatus;
14
- private host;
15
- facetState: InsightDateFacetState;
16
- facetForDatePickerState?: InsightDateFacetState;
17
- filterState?: InsightDateFilterState;
18
- searchStatusState: InsightSearchStatusState;
19
- error: Error;
20
- /**
21
- * Specifies a unique identifier for the facet.
22
- */
23
- facetId?: string;
26
+ export declare class AtomicInsightTimeframeFacet extends LitElement implements InitializableComponent<InsightBindings> {
27
+ private static readonly propsSchema;
28
+ static styles: CSSResultGroup;
24
29
  /**
25
30
  * The non-localized label for the facet.
26
31
  * Used in the atomic-breadbox component through the bindings store.
@@ -31,11 +36,11 @@ export declare class AtomicInsightTimeframeFacet implements InitializableCompone
31
36
  */
32
37
  field: string;
33
38
  /**
34
- * Whether this facet should contain a date picker allowing users to set custom ranges.
39
+ * Whether this facet should contain a datepicker allowing users to set custom ranges.
35
40
  */
36
41
  withDatePicker: boolean;
37
42
  /**
38
- * Specifies if the facet is collapsed.
43
+ * Specifies whether the facet is collapsed. When the facet is the child of an `atomic-facet-manager` component, the facet manager controls this property.
39
44
  */
40
45
  isCollapsed: boolean;
41
46
  /**
@@ -45,7 +50,6 @@ export declare class AtomicInsightTimeframeFacet implements InitializableCompone
45
50
  /**
46
51
  * Whether to exclude the parents of folded results when estimating the result count for each facet value.
47
52
  *
48
- *
49
53
  * Note: Resulting count is only an estimation, in some cases this value could be incorrect.
50
54
  */
51
55
  filterFacetCount: boolean;
@@ -80,14 +84,29 @@ export declare class AtomicInsightTimeframeFacet implements InitializableCompone
80
84
  * The sort criterion to apply to the returned facet values.
81
85
  * Possible values are 'ascending' and 'descending'.
82
86
  */
83
- sortCriteria: InsightRangeFacetSortCriterion;
87
+ sortCriteria: RangeFacetSortCriterion;
88
+ /**
89
+ * Specifies a unique identifier for the facet.
90
+ */
91
+ facetId?: string;
92
+ bindings: InsightBindings;
93
+ error: Error;
94
+ searchStatusState: SearchStatusState;
95
+ searchStatus: SearchStatus;
84
96
  private headerFocus?;
85
- initialize(): void;
97
+ private timeframeFacetCommon?;
98
+ constructor();
86
99
  private get focusTarget();
100
+ initialize(): void;
87
101
  disconnectedCallback(): void;
88
102
  private initializeFacetForDatePicker;
89
103
  private initializeFacetForDateRange;
90
104
  private initializeFilter;
91
- applyDateInput(): void;
92
- render(): any;
105
+ private handleDateInputApply;
106
+ protected render(): import("lit-html").TemplateResult<1>;
107
+ }
108
+ declare global {
109
+ interface HTMLElementTagNameMap {
110
+ 'atomic-insight-timeframe-facet': AtomicInsightTimeframeFacet;
111
+ }
93
112
  }
@@ -3,6 +3,7 @@ export { AtomicInsightFacet } from './atomic-insight-facet/atomic-insight-facet.
3
3
  export { AtomicInsightFoldedResultList } from './atomic-insight-folded-result-list/atomic-insight-folded-result-list.js';
4
4
  export { AtomicInsightFullSearchButton } from './atomic-insight-full-search-button/atomic-insight-full-search-button.js';
5
5
  export { AtomicInsightGenerateAnswerButton } from './atomic-insight-generate-answer-button/atomic-insight-generate-answer-button.js';
6
+ export { AtomicInsightGeneratedAnswer } from './atomic-insight-generated-answer/atomic-insight-generated-answer.js';
6
7
  export { AtomicInsightHistoryToggle } from './atomic-insight-history-toggle/atomic-insight-history-toggle.js';
7
8
  export { AtomicInsightInterface } from './atomic-insight-interface/atomic-insight-interface.js';
8
9
  export { AtomicInsightLayout } from './atomic-insight-layout/atomic-insight-layout.js';
@@ -14,9 +15,12 @@ export { AtomicInsightQuerySummary } from './atomic-insight-query-summary/atomic
14
15
  export { AtomicInsightRefineModal } from './atomic-insight-refine-modal/atomic-insight-refine-modal.js';
15
16
  export { AtomicInsightRefineToggle } from './atomic-insight-refine-toggle/atomic-insight-refine-toggle.js';
16
17
  export { AtomicInsightResult } from './atomic-insight-result/atomic-insight-result.js';
18
+ export { AtomicInsightResultAction } from './atomic-insight-result-action/atomic-insight-result-action.js';
17
19
  export { AtomicInsightResultActionBar } from './atomic-insight-result-action-bar/atomic-insight-result-action-bar.js';
20
+ export { AtomicInsightResultAttachToCaseAction } from './atomic-insight-result-attach-to-case-action/atomic-insight-result-attach-to-case-action.js';
18
21
  export { AtomicInsightResultAttachToCaseIndicator } from './atomic-insight-result-attach-to-case-indicator/atomic-insight-result-attach-to-case-indicator.js';
19
22
  export { AtomicInsightResultChildren } from './atomic-insight-result-children/atomic-insight-result-children.js';
23
+ export { AtomicInsightResultChildrenTemplate } from './atomic-insight-result-children-template/atomic-insight-result-children-template.js';
20
24
  export { AtomicInsightResultList } from './atomic-insight-result-list/atomic-insight-result-list.js';
21
25
  export { AtomicInsightResultQuickviewAction } from './atomic-insight-result-quickview-action/atomic-insight-result-quickview-action.js';
22
26
  export { AtomicInsightResultTemplate } from './atomic-insight-result-template/atomic-insight-result-template.js';
@@ -26,6 +30,7 @@ export { AtomicInsightSmartSnippetFeedbackModal } from './atomic-insight-smart-s
26
30
  export { AtomicInsightSmartSnippetSuggestions } from './atomic-insight-smart-snippet-suggestions/atomic-insight-smart-snippet-suggestions.js';
27
31
  export { AtomicInsightTab } from './atomic-insight-tab/atomic-insight-tab.js';
28
32
  export { AtomicInsightTabs } from './atomic-insight-tabs/atomic-insight-tabs.js';
33
+ export { AtomicInsightTimeframeFacet } from './atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.js';
29
34
  export { AtomicInsightUserActionsModal } from './atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.js';
30
35
  export { AtomicInsightUserActionsSession } from './atomic-insight-user-actions-session/atomic-insight-user-actions-session.js';
31
36
  export { AtomicInsightUserActionsTimeline } from './atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.js';
@@ -3,7 +3,7 @@ import type { Bindings } from "../../search/atomic-search-interface/atomic-searc
3
3
  import type { InitializableComponent } from "../../../decorators/types";
4
4
  import "../../common/atomic-icon/atomic-icon";
5
5
  /**
6
- * The `atomic-ipx-button` component represents a button that toggles the IPX modal.
6
+ * The `atomic-ipx-button` component renders a button that toggles the IPX modal.
7
7
  *
8
8
  * @part ipx-button - The main button element.
9
9
  * @part button-icon - The icon container within the button.