@tylertech/forge-ai 0.15.3-dev.0 → 0.16.0-dev.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 (444) hide show
  1. package/MIGRATION.md +192 -0
  2. package/README.md +76 -2
  3. package/custom-elements.json +5156 -13880
  4. package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs +9 -0
  5. package/dist/ai-agent-info/ai-agent-info.mjs +4 -78
  6. package/dist/ai-agent-info/ai-agent-info2.mjs +55 -0
  7. package/dist/ai-agent-info/index.d.ts +1 -1
  8. package/dist/ai-agent-info/index.mjs +1 -5
  9. package/dist/ai-agent-selector/ai-agent-selector.d.ts +2 -2
  10. package/dist/ai-agent-selector/ai-agent-selector.mjs +4 -439
  11. package/dist/ai-agent-selector/ai-agent-selector2.mjs +344 -0
  12. package/dist/ai-agent-selector/index.mjs +1 -5
  13. package/dist/ai-artifact/ai-artifact.mjs +4 -39
  14. package/dist/ai-artifact/ai-artifact2.mjs +31 -0
  15. package/dist/ai-artifact/index.d.ts +1 -1
  16. package/dist/ai-artifact/index.mjs +1 -5
  17. package/dist/ai-artifact-card/ai-artifact-card.mjs +4 -142
  18. package/dist/ai-artifact-card/ai-artifact-card2.mjs +103 -0
  19. package/dist/ai-artifact-card/index.d.ts +1 -1
  20. package/dist/ai-artifact-card/index.mjs +1 -5
  21. package/dist/ai-artifact-card-group/ai-artifact-card-group.mjs +4 -137
  22. package/dist/ai-artifact-card-group/ai-artifact-card-group2.mjs +100 -0
  23. package/dist/ai-artifact-card-group/index.d.ts +1 -1
  24. package/dist/ai-artifact-card-group/index.mjs +1 -5
  25. package/dist/ai-assistant-response/ai-assistant-response.d.ts +2 -3
  26. package/dist/ai-assistant-response/ai-assistant-response.mjs +4 -235
  27. package/dist/ai-assistant-response/ai-assistant-response2.mjs +137 -0
  28. package/dist/ai-assistant-response/index.d.ts +1 -1
  29. package/dist/ai-assistant-response/index.mjs +1 -5
  30. package/dist/ai-canvas/ai-canvas.d.ts +43 -0
  31. package/dist/ai-canvas/ai-canvas.mjs +4 -0
  32. package/dist/ai-canvas/ai-canvas2.mjs +74 -0
  33. package/dist/ai-canvas/index.d.ts +1 -0
  34. package/dist/ai-canvas/index.mjs +1 -0
  35. package/dist/ai-chain-of-thought/ai-chain-of-thought.mjs +4 -45
  36. package/dist/ai-chain-of-thought/ai-chain-of-thought2.mjs +35 -0
  37. package/dist/ai-chain-of-thought/index.d.ts +5 -5
  38. package/dist/ai-chain-of-thought/index.mjs +6 -17
  39. package/dist/ai-chain-of-thought/thought-base/index.mjs +1 -5
  40. package/dist/ai-chain-of-thought/thought-base/thought-base.mjs +4 -43
  41. package/dist/ai-chain-of-thought/thought-base/thought-base2.mjs +31 -0
  42. package/dist/ai-chain-of-thought/thought-detail/index.mjs +1 -5
  43. package/dist/ai-chain-of-thought/thought-detail/thought-detail.mjs +4 -34
  44. package/dist/ai-chain-of-thought/thought-detail/thought-detail2.mjs +26 -0
  45. package/dist/ai-chain-of-thought/thought-image/index.mjs +1 -5
  46. package/dist/ai-chain-of-thought/thought-image/thought-image.mjs +4 -43
  47. package/dist/ai-chain-of-thought/thought-image/thought-image2.mjs +30 -0
  48. package/dist/ai-chain-of-thought/thought-search-result/index.mjs +1 -5
  49. package/dist/ai-chain-of-thought/thought-search-result/thought-search-result.mjs +4 -62
  50. package/dist/ai-chain-of-thought/thought-search-result/thought-search-result2.mjs +45 -0
  51. package/dist/ai-chat-header/ai-chat-header.d.ts +7 -5
  52. package/dist/ai-chat-header/ai-chat-header.mjs +4 -439
  53. package/dist/ai-chat-header/ai-chat-header2.mjs +319 -0
  54. package/dist/ai-chat-header/index.d.ts +2 -2
  55. package/dist/ai-chat-header/index.mjs +1 -5
  56. package/dist/ai-chat-interface/ai-chat-interface.d.ts +1 -0
  57. package/dist/ai-chat-interface/ai-chat-interface.mjs +4 -103
  58. package/dist/ai-chat-interface/ai-chat-interface2.mjs +73 -0
  59. package/dist/ai-chat-interface/index.mjs +1 -5
  60. package/dist/ai-client-message/ai-client-message.d.ts +5 -6
  61. package/dist/ai-client-message/ai-client-message.mjs +4 -112
  62. package/dist/ai-client-message/ai-client-message2.mjs +76 -0
  63. package/dist/ai-client-message/index.mjs +1 -5
  64. package/dist/ai-context-chip/ai-context-chip.d.ts +1 -1
  65. package/dist/ai-context-chip/ai-context-chip.mjs +4 -169
  66. package/dist/ai-context-chip/ai-context-chip2.mjs +113 -0
  67. package/dist/ai-context-chip/index.mjs +1 -5
  68. package/dist/ai-context-items/ai-context-items.d.ts +11 -5
  69. package/dist/ai-context-items/ai-context-items.mjs +4 -78
  70. package/dist/ai-context-items/ai-context-items2.mjs +53 -0
  71. package/dist/ai-context-items/index.d.ts +1 -1
  72. package/dist/ai-context-items/index.mjs +1 -5
  73. package/dist/ai-conversations-panel/ai-conversations-panel.d.ts +2 -2
  74. package/dist/ai-conversations-panel/ai-conversations-panel.mjs +4 -632
  75. package/dist/ai-conversations-panel/ai-conversations-panel2.mjs +531 -0
  76. package/dist/ai-conversations-panel/index.mjs +1 -5
  77. package/dist/ai-copy-button/ai-copy-button.mjs +4 -116
  78. package/dist/ai-copy-button/ai-copy-button2.mjs +88 -0
  79. package/dist/ai-copy-button/index.mjs +1 -5
  80. package/dist/ai-dialog/ai-dialog.mjs +4 -304
  81. package/dist/ai-dialog/ai-dialog2.mjs +237 -0
  82. package/dist/ai-dialog/index.d.ts +1 -1
  83. package/dist/ai-dialog/index.mjs +1 -5
  84. package/dist/ai-disclaimer/ai-disclaimer.mjs +4 -70
  85. package/dist/ai-disclaimer/ai-disclaimer2.mjs +46 -0
  86. package/dist/ai-disclaimer/index.d.ts +1 -1
  87. package/dist/ai-disclaimer/index.mjs +1 -5
  88. package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group.mjs +4 -80
  89. package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group2.mjs +51 -0
  90. package/dist/ai-dropdown-menu/ai-dropdown-menu-item.d.ts +5 -1
  91. package/dist/ai-dropdown-menu/ai-dropdown-menu-item.mjs +4 -330
  92. package/dist/ai-dropdown-menu/ai-dropdown-menu-item2.mjs +280 -0
  93. package/dist/ai-dropdown-menu/ai-dropdown-menu-separator.mjs +4 -26
  94. package/dist/ai-dropdown-menu/ai-dropdown-menu-separator2.mjs +19 -0
  95. package/dist/ai-dropdown-menu/ai-dropdown-menu.d.ts +5 -0
  96. package/dist/ai-dropdown-menu/ai-dropdown-menu.mjs +4 -351
  97. package/dist/ai-dropdown-menu/ai-dropdown-menu2.mjs +268 -0
  98. package/dist/ai-dropdown-menu/index.d.ts +1 -0
  99. package/dist/ai-dropdown-menu/index.mjs +5 -10
  100. package/dist/ai-dropdown-menu/navigation-controller.d.ts +9 -1
  101. package/dist/ai-dropdown-menu/navigation-controller.mjs +214 -204
  102. package/dist/ai-dropdown-menu/selection-manager.mjs +202 -182
  103. package/dist/ai-edit-thread/ai-edit-thread.d.ts +1 -1
  104. package/dist/ai-edit-thread/ai-edit-thread.mjs +4 -137
  105. package/dist/ai-edit-thread/ai-edit-thread2.mjs +96 -0
  106. package/dist/ai-edit-thread/index.d.ts +1 -1
  107. package/dist/ai-edit-thread/index.mjs +1 -5
  108. package/dist/ai-empty-state/ai-empty-state.mjs +4 -38
  109. package/dist/ai-empty-state/ai-empty-state2.mjs +28 -0
  110. package/dist/ai-empty-state/index.d.ts +1 -1
  111. package/dist/ai-empty-state/index.mjs +1 -5
  112. package/dist/ai-error-message/ai-error-message.mjs +4 -80
  113. package/dist/ai-error-message/ai-error-message2.mjs +62 -0
  114. package/dist/ai-error-message/index.mjs +1 -5
  115. package/dist/ai-fab/ai-fab.mjs +4 -81
  116. package/dist/ai-fab/ai-fab2.mjs +54 -0
  117. package/dist/ai-fab/index.d.ts +1 -1
  118. package/dist/ai-fab/index.mjs +1 -5
  119. package/dist/ai-file-picker/ai-file-picker.d.ts +1 -0
  120. package/dist/ai-file-picker/ai-file-picker.mjs +4 -224
  121. package/dist/ai-file-picker/ai-file-picker2.mjs +172 -0
  122. package/dist/ai-file-picker/index.mjs +1 -4
  123. package/dist/ai-gradient-container/ai-gradient-container.mjs +4 -61
  124. package/dist/ai-gradient-container/ai-gradient-container2.mjs +38 -0
  125. package/dist/ai-gradient-container/index.d.ts +1 -1
  126. package/dist/ai-gradient-container/index.mjs +1 -5
  127. package/dist/ai-icon/ai-icon.d.ts +3 -0
  128. package/dist/ai-icon/ai-icon.mjs +4 -71
  129. package/dist/ai-icon/ai-icon2.mjs +41 -0
  130. package/dist/ai-icon/index.d.ts +1 -1
  131. package/dist/ai-icon/index.mjs +1 -5
  132. package/dist/ai-message-thread/ai-message-thread.d.ts +5 -4
  133. package/dist/ai-message-thread/ai-message-thread.mjs +4 -359
  134. package/dist/ai-message-thread/ai-message-thread2.mjs +279 -0
  135. package/dist/ai-message-thread/index.mjs +1 -5
  136. package/dist/ai-modal/ai-modal.mjs +4 -178
  137. package/dist/ai-modal/ai-modal2.mjs +141 -0
  138. package/dist/ai-modal/index.mjs +1 -4
  139. package/dist/ai-prompt/ai-prompt.d.ts +10 -6
  140. package/dist/ai-prompt/ai-prompt.mjs +4 -534
  141. package/dist/ai-prompt/ai-prompt2.mjs +438 -0
  142. package/dist/ai-prompt/index.mjs +1 -5
  143. package/dist/ai-reasoning/ai-reasoning.mjs +4 -44
  144. package/dist/ai-reasoning/ai-reasoning2.mjs +35 -0
  145. package/dist/ai-reasoning/index.d.ts +2 -2
  146. package/dist/ai-reasoning/index.mjs +4 -8
  147. package/dist/ai-reasoning/reasoning-content/index.d.ts +1 -1
  148. package/dist/ai-reasoning/reasoning-content/index.mjs +1 -5
  149. package/dist/ai-reasoning/reasoning-content/reasoning-content.mjs +4 -90
  150. package/dist/ai-reasoning/reasoning-content/reasoning-content2.mjs +68 -0
  151. package/dist/ai-reasoning-header/ai-reasoning-header.d.ts +7 -1
  152. package/dist/ai-reasoning-header/ai-reasoning-header.mjs +4 -68
  153. package/dist/ai-reasoning-header/ai-reasoning-header2.mjs +51 -0
  154. package/dist/ai-reasoning-header/index.d.ts +1 -1
  155. package/dist/ai-reasoning-header/index.mjs +1 -5
  156. package/dist/ai-response-message/ai-response-message.mjs +4 -25
  157. package/dist/ai-response-message/ai-response-message2.mjs +17 -0
  158. package/dist/ai-response-message/index.mjs +1 -5
  159. package/dist/ai-response-message-toolbar/ai-response-message-toolbar.d.ts +1 -1
  160. package/dist/ai-response-message-toolbar/ai-response-message-toolbar.mjs +4 -230
  161. package/dist/ai-response-message-toolbar/ai-response-message-toolbar2.mjs +171 -0
  162. package/dist/ai-response-message-toolbar/index.mjs +1 -5
  163. package/dist/ai-sidebar/ai-sidebar.d.ts +4 -4
  164. package/dist/ai-sidebar/ai-sidebar.mjs +4 -256
  165. package/dist/ai-sidebar/ai-sidebar2.mjs +211 -0
  166. package/dist/ai-sidebar/index.d.ts +2 -2
  167. package/dist/ai-sidebar/index.mjs +1 -5
  168. package/dist/ai-slash-command-menu/ai-slash-command-menu.d.ts +1 -1
  169. package/dist/ai-slash-command-menu/ai-slash-command-menu.mjs +4 -200
  170. package/dist/ai-slash-command-menu/ai-slash-command-menu2.mjs +156 -0
  171. package/dist/ai-slash-command-menu/index.mjs +1 -5
  172. package/dist/ai-spinner/ai-spinner.mjs +4 -41
  173. package/dist/ai-spinner/ai-spinner2.mjs +29 -0
  174. package/dist/ai-spinner/index.d.ts +1 -1
  175. package/dist/ai-spinner/index.mjs +1 -5
  176. package/dist/ai-steps/ai-steps.mjs +4 -163
  177. package/dist/ai-steps/ai-steps2.mjs +133 -0
  178. package/dist/ai-steps/index.d.ts +1 -1
  179. package/dist/ai-steps/index.mjs +1 -5
  180. package/dist/ai-suggestions/ai-suggestions.d.ts +2 -5
  181. package/dist/ai-suggestions/ai-suggestions.mjs +4 -164
  182. package/dist/ai-suggestions/ai-suggestions2.mjs +125 -0
  183. package/dist/ai-suggestions/index.d.ts +2 -1
  184. package/dist/ai-suggestions/index.mjs +1 -5
  185. package/dist/ai-thinking-indicator/ai-thinking-indicator.d.ts +2 -1
  186. package/dist/ai-thinking-indicator/ai-thinking-indicator.mjs +4 -160
  187. package/dist/ai-thinking-indicator/ai-thinking-indicator2.mjs +143 -0
  188. package/dist/ai-thinking-indicator/index.d.ts +1 -1
  189. package/dist/ai-thinking-indicator/index.mjs +1 -5
  190. package/dist/ai-thread-actions-menu/ai-thread-actions-menu.d.ts +2 -2
  191. package/dist/ai-thread-actions-menu/ai-thread-actions-menu.mjs +4 -152
  192. package/dist/ai-thread-actions-menu/ai-thread-actions-menu2.mjs +109 -0
  193. package/dist/ai-thread-actions-menu/index.d.ts +1 -1
  194. package/dist/ai-thread-actions-menu/index.mjs +1 -5
  195. package/dist/ai-threads-search/ai-threads-search.d.ts +3 -4
  196. package/dist/ai-threads-search/ai-threads-search.mjs +4 -602
  197. package/dist/ai-threads-search/ai-threads-search2.mjs +495 -0
  198. package/dist/ai-threads-search/index.d.ts +1 -1
  199. package/dist/ai-threads-search/index.mjs +1 -5
  200. package/dist/ai-tool-call/ai-tool-call.d.ts +21 -0
  201. package/dist/ai-tool-call/ai-tool-call.mjs +4 -0
  202. package/dist/ai-tool-call/ai-tool-call2.mjs +132 -0
  203. package/dist/ai-tool-call/create-tool-renderer.d.ts +9 -0
  204. package/dist/ai-tool-call/create-tool-renderer.mjs +10 -0
  205. package/dist/ai-tool-call/index.d.ts +6 -0
  206. package/dist/ai-tool-call/index.mjs +5 -0
  207. package/dist/ai-tool-call/tool-canvas.d.ts +60 -0
  208. package/dist/ai-tool-call/tool-canvas.mjs +135 -0
  209. package/dist/ai-tool-call/utils.d.ts +12 -0
  210. package/dist/ai-tool-call/utils.mjs +20 -0
  211. package/dist/ai-tool-call-indicator/ai-tool-call-indicator.d.ts +2 -2
  212. package/dist/ai-tool-call-indicator/ai-tool-call-indicator.mjs +4 -331
  213. package/dist/ai-tool-call-indicator/ai-tool-call-indicator2.mjs +225 -0
  214. package/dist/ai-tool-call-indicator/index.mjs +1 -5
  215. package/dist/ai-user-message/ai-user-message.mjs +4 -151
  216. package/dist/ai-user-message/ai-user-message2.mjs +105 -0
  217. package/dist/ai-user-message/index.mjs +1 -5
  218. package/dist/ai-user-message-toolbar/ai-user-message-toolbar.mjs +4 -160
  219. package/dist/ai-user-message-toolbar/ai-user-message-toolbar2.mjs +102 -0
  220. package/dist/ai-user-message-toolbar/index.mjs +1 -5
  221. package/dist/ai-voice-input/ai-voice-input.d.ts +1 -1
  222. package/dist/ai-voice-input/ai-voice-input.mjs +4 -113
  223. package/dist/ai-voice-input/ai-voice-input2.mjs +92 -0
  224. package/dist/ai-voice-input/index.d.ts +1 -1
  225. package/dist/ai-voice-input/index.mjs +1 -5
  226. package/dist/core/drag-controller.mjs +196 -221
  227. package/dist/core/index.d.ts +4 -2
  228. package/dist/core/index.mjs +7 -6
  229. package/dist/core/overlay/index.mjs +1 -4
  230. package/dist/core/overlay/overlay.d.ts +1 -1
  231. package/dist/core/overlay/overlay.mjs +4 -180
  232. package/dist/core/overlay/overlay2.mjs +146 -0
  233. package/dist/core/popover/index.mjs +1 -4
  234. package/dist/core/popover/popover.mjs +4 -98
  235. package/dist/core/popover/popover2.mjs +71 -0
  236. package/dist/core/resize-controller.d.ts +5 -0
  237. package/dist/core/resize-controller.mjs +132 -152
  238. package/dist/core/tooltip/index.mjs +1 -4
  239. package/dist/core/tooltip/tooltip.mjs +4 -279
  240. package/dist/core/tooltip/tooltip2.mjs +213 -0
  241. package/dist/index.d.ts +45 -52
  242. package/dist/index.mjs +100 -208
  243. package/dist/jsx.d.ts +895 -0
  244. package/dist/tools/ai-data-table/ai-data-table.d.ts +1 -2
  245. package/dist/tools/ai-data-table/ai-data-table.mjs +4 -257
  246. package/dist/tools/ai-data-table/ai-data-table2.mjs +185 -0
  247. package/dist/tools/ai-data-table/index.d.ts +0 -1
  248. package/dist/tools/ai-data-table/index.mjs +1 -6
  249. package/dist/tools/ai-paginator/ai-paginator.d.ts +14 -0
  250. package/dist/tools/ai-paginator/ai-paginator.mjs +4 -115
  251. package/dist/tools/ai-paginator/ai-paginator2.mjs +90 -0
  252. package/dist/tools/ai-paginator/index.mjs +1 -4
  253. package/dist/tools/ai-steps/ai-steps.d.ts +2 -3
  254. package/dist/tools/ai-steps/ai-steps.mjs +4 -49
  255. package/dist/tools/ai-steps/ai-steps2.mjs +30 -0
  256. package/dist/tools/ai-steps/index.d.ts +0 -1
  257. package/dist/tools/ai-steps/index.mjs +1 -6
  258. package/dist/tools/index.d.ts +3 -3
  259. package/dist/tools/index.mjs +7 -12
  260. package/dist/types/chat.d.ts +102 -0
  261. package/dist/types/feature.d.ts +1 -0
  262. package/dist/types/file.d.ts +36 -0
  263. package/dist/types/index.d.ts +6 -0
  264. package/dist/types/index.mjs +0 -0
  265. package/dist/types/thread.d.ts +14 -0
  266. package/dist/types/tool.d.ts +197 -0
  267. package/dist/utils/csv-utils.mjs +37 -57
  268. package/dist/utils/delete-thread-controller.d.ts +1 -1
  269. package/dist/utils/delete-thread-controller.mjs +48 -71
  270. package/dist/utils/dom.d.ts +14 -0
  271. package/dist/utils/dom.mjs +30 -0
  272. package/dist/utils/format.d.ts +9 -0
  273. package/dist/utils/format.mjs +27 -0
  274. package/dist/utils/index.d.ts +9 -6
  275. package/dist/utils/index.mjs +6 -16
  276. package/dist/utils/infinite-scroll-controller.mjs +88 -94
  277. package/dist/utils/keyboard-navigation-controller.mjs +62 -70
  278. package/dist/utils/markdown-stream-controller.mjs +48 -0
  279. package/dist/utils/markdown.d.ts +10 -1
  280. package/dist/utils/markdown.mjs +261 -40
  281. package/dist/utils/storage-utils.mjs +30 -24
  282. package/package.json +39 -103
  283. package/dist/ai-agent-info/ai-agent-info.scss.mjs +0 -4
  284. package/dist/ai-agent-selector/ai-agent-selector.scss.mjs +0 -4
  285. package/dist/ai-artifact/ai-artifact.scss.mjs +0 -4
  286. package/dist/ai-artifact-card/ai-artifact-card.scss.mjs +0 -283
  287. package/dist/ai-artifact-card-group/ai-artifact-card-group.scss.mjs +0 -173
  288. package/dist/ai-assistant-response/ai-assistant-response.scss.mjs +0 -4
  289. package/dist/ai-attachment/ai-attachment.d.ts +0 -39
  290. package/dist/ai-attachment/ai-attachment.mjs +0 -130
  291. package/dist/ai-attachment/ai-attachment.scss.mjs +0 -4
  292. package/dist/ai-attachment/index.d.ts +0 -1
  293. package/dist/ai-attachment/index.mjs +0 -5
  294. package/dist/ai-button/ai-button.d.ts +0 -21
  295. package/dist/ai-button/ai-button.mjs +0 -68
  296. package/dist/ai-button/ai-button.scss.mjs +0 -4
  297. package/dist/ai-button/index.d.ts +0 -1
  298. package/dist/ai-button/index.mjs +0 -5
  299. package/dist/ai-chain-of-thought/ai-chain-of-thought.scss.mjs +0 -4
  300. package/dist/ai-chain-of-thought/thought-base/thought-base.scss.mjs +0 -4
  301. package/dist/ai-chain-of-thought/thought-detail/thought-detail.scss.mjs +0 -4
  302. package/dist/ai-chain-of-thought/thought-image/thought-image.scss.mjs +0 -4
  303. package/dist/ai-chain-of-thought/thought-search-result/thought-search-result.scss.mjs +0 -4
  304. package/dist/ai-chat-header/ai-chat-header.scss.mjs +0 -4
  305. package/dist/ai-chat-interface/ai-chat-interface.scss.mjs +0 -4
  306. package/dist/ai-chatbot/ag-ui-adapter.d.ts +0 -24
  307. package/dist/ai-chatbot/ag-ui-adapter.mjs +0 -388
  308. package/dist/ai-chatbot/agent-adapter.d.ts +0 -310
  309. package/dist/ai-chatbot/agent-adapter.mjs +0 -221
  310. package/dist/ai-chatbot/agent-runner.d.ts +0 -41
  311. package/dist/ai-chatbot/agent-runner.mjs +0 -265
  312. package/dist/ai-chatbot/ai-chatbot-base.d.ts +0 -178
  313. package/dist/ai-chatbot/ai-chatbot-base.mjs +0 -673
  314. package/dist/ai-chatbot/ai-chatbot-tool-call.d.ts +0 -19
  315. package/dist/ai-chatbot/ai-chatbot-tool-call.mjs +0 -104
  316. package/dist/ai-chatbot/ai-chatbot-tool-call.scss.mjs +0 -4
  317. package/dist/ai-chatbot/ai-chatbot.d.ts +0 -173
  318. package/dist/ai-chatbot/ai-chatbot.mjs +0 -402
  319. package/dist/ai-chatbot/ai-chatbot.scss.mjs +0 -4
  320. package/dist/ai-chatbot/create-tool-renderer.d.ts +0 -9
  321. package/dist/ai-chatbot/create-tool-renderer.mjs +0 -16
  322. package/dist/ai-chatbot/event-emitter.d.ts +0 -43
  323. package/dist/ai-chatbot/event-emitter.mjs +0 -81
  324. package/dist/ai-chatbot/file-upload-manager.d.ts +0 -27
  325. package/dist/ai-chatbot/file-upload-manager.mjs +0 -106
  326. package/dist/ai-chatbot/http-agent-with-credentials.d.ts +0 -8
  327. package/dist/ai-chatbot/http-agent-with-credentials.mjs +0 -14
  328. package/dist/ai-chatbot/index.d.ts +0 -17
  329. package/dist/ai-chatbot/index.mjs +0 -37
  330. package/dist/ai-chatbot/markdown-stream-controller.mjs +0 -50
  331. package/dist/ai-chatbot/message-state-controller.d.ts +0 -72
  332. package/dist/ai-chatbot/message-state-controller.mjs +0 -392
  333. package/dist/ai-chatbot/request-serialization.d.ts +0 -33
  334. package/dist/ai-chatbot/request-serialization.mjs +0 -31
  335. package/dist/ai-chatbot/types.d.ts +0 -470
  336. package/dist/ai-chatbot/utils.d.ts +0 -44
  337. package/dist/ai-chatbot/utils.mjs +0 -110
  338. package/dist/ai-chatbot-launcher/ai-chatbot-launcher.d.ts +0 -152
  339. package/dist/ai-chatbot-launcher/ai-chatbot-launcher.mjs +0 -767
  340. package/dist/ai-chatbot-launcher/ai-chatbot-launcher.scss.mjs +0 -4
  341. package/dist/ai-chatbot-launcher/index.d.ts +0 -1
  342. package/dist/ai-chatbot-launcher/index.mjs +0 -5
  343. package/dist/ai-client-message/ai-client-message.scss.mjs +0 -4
  344. package/dist/ai-confirmation-prompt/ai-confirmation-prompt.d.ts +0 -34
  345. package/dist/ai-confirmation-prompt/ai-confirmation-prompt.mjs +0 -134
  346. package/dist/ai-confirmation-prompt/ai-confirmation-prompt.scss.mjs +0 -4
  347. package/dist/ai-confirmation-prompt/index.d.ts +0 -1
  348. package/dist/ai-confirmation-prompt/index.mjs +0 -5
  349. package/dist/ai-context-chip/ai-context-chip.scss.mjs +0 -4
  350. package/dist/ai-context-items/ai-context-items.scss.mjs +0 -4
  351. package/dist/ai-conversations-panel/ai-conversations-panel.scss.mjs +0 -4
  352. package/dist/ai-copy-button/ai-copy-button.scss.mjs +0 -4
  353. package/dist/ai-dialog/ai-dialog.scss.mjs +0 -4
  354. package/dist/ai-disclaimer/ai-disclaimer.scss.mjs +0 -4
  355. package/dist/ai-dropdown-menu/ai-dropdown-menu-item-group.scss.mjs +0 -4
  356. package/dist/ai-dropdown-menu/ai-dropdown-menu-item.scss.mjs +0 -4
  357. package/dist/ai-dropdown-menu/ai-dropdown-menu-separator.scss.mjs +0 -4
  358. package/dist/ai-dropdown-menu/ai-dropdown-menu.scss.mjs +0 -4
  359. package/dist/ai-edit-thread/ai-edit-thread.scss.mjs +0 -4
  360. package/dist/ai-embedded-chat/ai-embedded-chat.d.ts +0 -64
  361. package/dist/ai-embedded-chat/ai-embedded-chat.mjs +0 -172
  362. package/dist/ai-embedded-chat/ai-embedded-chat.scss.mjs +0 -4
  363. package/dist/ai-embedded-chat/index.d.ts +0 -1
  364. package/dist/ai-embedded-chat/index.mjs +0 -5
  365. package/dist/ai-empty-state/ai-empty-state.scss.mjs +0 -4
  366. package/dist/ai-error-message/ai-error-message.scss.mjs +0 -4
  367. package/dist/ai-fab/ai-fab.scss.mjs +0 -4
  368. package/dist/ai-file-picker/ai-file-picker.scss.mjs +0 -4
  369. package/dist/ai-floating-chat/ai-floating-chat.d.ts +0 -53
  370. package/dist/ai-floating-chat/ai-floating-chat.mjs +0 -147
  371. package/dist/ai-floating-chat/ai-floating-chat.scss.mjs +0 -4
  372. package/dist/ai-floating-chat/index.d.ts +0 -1
  373. package/dist/ai-floating-chat/index.mjs +0 -5
  374. package/dist/ai-gradient-container/ai-gradient-container.scss.mjs +0 -4
  375. package/dist/ai-icon/ai-icon.scss.mjs +0 -4
  376. package/dist/ai-icon-button/ai-icon-button.d.ts +0 -19
  377. package/dist/ai-icon-button/ai-icon-button.mjs +0 -66
  378. package/dist/ai-icon-button/ai-icon-button.scss.mjs +0 -4
  379. package/dist/ai-icon-button/index.d.ts +0 -1
  380. package/dist/ai-icon-button/index.mjs +0 -5
  381. package/dist/ai-message-thread/ai-message-thread.scss.mjs +0 -4
  382. package/dist/ai-modal/ai-modal.scss.mjs +0 -4
  383. package/dist/ai-prompt/ai-prompt.scss.mjs +0 -4
  384. package/dist/ai-prompt/prompt-button/index.d.ts +0 -1
  385. package/dist/ai-prompt/prompt-button/index.mjs +0 -5
  386. package/dist/ai-prompt/prompt-button/prompt-button.d.ts +0 -16
  387. package/dist/ai-prompt/prompt-button/prompt-button.mjs +0 -40
  388. package/dist/ai-prompt/prompt-button/prompt-button.scss.mjs +0 -4
  389. package/dist/ai-reasoning/ai-reasoning.scss.mjs +0 -4
  390. package/dist/ai-reasoning/reasoning-content/reasoning-content.scss.mjs +0 -4
  391. package/dist/ai-reasoning-header/ai-reasoning-header.scss.mjs +0 -4
  392. package/dist/ai-response-message/ai-response-message.scss.mjs +0 -4
  393. package/dist/ai-response-message-toolbar/ai-response-message-toolbar.scss.mjs +0 -4
  394. package/dist/ai-sidebar/ai-sidebar.scss.mjs +0 -4
  395. package/dist/ai-sidebar-chat/ai-sidebar-chat.d.ts +0 -54
  396. package/dist/ai-sidebar-chat/ai-sidebar-chat.mjs +0 -163
  397. package/dist/ai-sidebar-chat/ai-sidebar-chat.scss.mjs +0 -4
  398. package/dist/ai-sidebar-chat/index.d.ts +0 -1
  399. package/dist/ai-sidebar-chat/index.mjs +0 -5
  400. package/dist/ai-slash-command-menu/ai-slash-command-menu.scss.mjs +0 -4
  401. package/dist/ai-spinner/ai-spinner.scss.mjs +0 -4
  402. package/dist/ai-steps/ai-steps.scss.mjs +0 -4
  403. package/dist/ai-suggestions/ai-suggestions.scss.mjs +0 -500
  404. package/dist/ai-thinking-indicator/ai-thinking-indicator.scss.mjs +0 -143
  405. package/dist/ai-thread-actions-menu/ai-thread-actions-menu.scss.mjs +0 -4
  406. package/dist/ai-threads/ai-threads.d.ts +0 -82
  407. package/dist/ai-threads/ai-threads.mjs +0 -343
  408. package/dist/ai-threads/ai-threads.scss.mjs +0 -4
  409. package/dist/ai-threads/index.d.ts +0 -1
  410. package/dist/ai-threads/index.mjs +0 -5
  411. package/dist/ai-threads-search/ai-threads-search.scss.mjs +0 -4
  412. package/dist/ai-tool-call-indicator/ai-tool-call-indicator.scss.mjs +0 -4
  413. package/dist/ai-user-message/ai-user-message.scss.mjs +0 -4
  414. package/dist/ai-user-message-toolbar/ai-user-message-toolbar.scss.mjs +0 -4
  415. package/dist/ai-voice-input/ai-voice-input.scss.mjs +0 -4
  416. package/dist/core/chatbot-core-controller.d.ts +0 -57
  417. package/dist/core/chatbot-core-controller.mjs +0 -523
  418. package/dist/core/overlay/overlay.scss.mjs +0 -4
  419. package/dist/core/popover/popover.scss.mjs +0 -4
  420. package/dist/core/tooltip/tooltip.scss.mjs +0 -4
  421. package/dist/tools/ai-data-table/ai-data-table-definition.d.ts +0 -2
  422. package/dist/tools/ai-data-table/ai-data-table-definition.mjs +0 -42
  423. package/dist/tools/ai-data-table/ai-data-table.scss.mjs +0 -4
  424. package/dist/tools/ai-mcp-app/ai-mcp-app.d.ts +0 -69
  425. package/dist/tools/ai-mcp-app/ai-mcp-app.mjs +0 -574
  426. package/dist/tools/ai-mcp-app/ai-mcp-app.scss.mjs +0 -4
  427. package/dist/tools/ai-mcp-app/index.d.ts +0 -3
  428. package/dist/tools/ai-mcp-app/index.mjs +0 -6
  429. package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.d.ts +0 -61
  430. package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.mjs +0 -156
  431. package/dist/tools/ai-mcp-app/mcp-app-bridge-types.d.ts +0 -123
  432. package/dist/tools/ai-mcp-app/mcp-app-bridge.d.ts +0 -41
  433. package/dist/tools/ai-mcp-app/mcp-app-bridge.mjs +0 -293
  434. package/dist/tools/ai-mcp-app/mcp-app-context.d.ts +0 -46
  435. package/dist/tools/ai-mcp-app/mcp-app-context.mjs +0 -5
  436. package/dist/tools/ai-paginator/ai-paginator.scss.mjs +0 -4
  437. package/dist/tools/ai-steps/ai-steps-definition.d.ts +0 -2
  438. package/dist/tools/ai-steps/ai-steps-definition.mjs +0 -50
  439. package/dist/tools/ai-steps/ai-steps.scss.mjs +0 -4
  440. package/dist/utils/inert-outside.d.ts +0 -7
  441. package/dist/utils/inert-outside.mjs +0 -28
  442. package/dist/utils.d.ts +0 -32
  443. package/dist/utils.mjs +0 -57
  444. /package/dist/{ai-chatbot → utils}/markdown-stream-controller.d.ts +0 -0
@@ -1,767 +0,0 @@
1
- import { unsafeCSS, nothing, html, LitElement } from "lit";
2
- import { property, state, customElement } from "lit/decorators.js";
3
- import { classMap } from "lit/directives/class-map.js";
4
- import { createRef, ref } from "lit/directives/ref.js";
5
- import { when } from "lit/directives/when.js";
6
- import { AiChatbotBase } from "../ai-chatbot/ai-chatbot-base.mjs";
7
- import { DeleteThreadController } from "../utils/delete-thread-controller.mjs";
8
- import { toggleState, forwardCancelableEvent } from "../utils.mjs";
9
- import "../ai-attachment/ai-attachment.mjs";
10
- import "../ai-chat-header/ai-chat-header.mjs";
11
- import "../ai-edit-thread/ai-edit-thread.mjs";
12
- import "../ai-file-picker/ai-file-picker.mjs";
13
- import "../ai-icon/ai-icon.mjs";
14
- import "../ai-message-thread/ai-message-thread.mjs";
15
- import "../ai-prompt/ai-prompt.mjs";
16
- import "../ai-spinner/ai-spinner.mjs";
17
- import "../ai-suggestions/ai-suggestions.mjs";
18
- import "../ai-voice-input/ai-voice-input.mjs";
19
- import "../ai-gradient-container/ai-gradient-container.mjs";
20
- import "../ai-thread-actions-menu/ai-thread-actions-menu.mjs";
21
- import "../ai-threads-search/ai-threads-search.mjs";
22
- import "../core/popover/popover.mjs";
23
- import "../core/tooltip/tooltip.mjs";
24
- import styles from "./ai-chatbot-launcher.scss.mjs";
25
- var __defProp = Object.defineProperty;
26
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
27
- var __typeError = (msg) => {
28
- throw TypeError(msg);
29
- };
30
- var __decorateClass = (decorators, target, key, kind) => {
31
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
32
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
33
- if (decorator = decorators[i])
34
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
35
- if (kind && result) __defProp(target, key, result);
36
- return result;
37
- };
38
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
39
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
40
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
41
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
42
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
43
- var _headerRef, _gradientContainerRef, _historyButtonRef, _historyPopoverSearchRef, _historyViewSearchRef, _internals, _pendingThreadDeleteSource, _deleteThreadController, _AiChatbotLauncherComponent_instances, setViewState_fn, focusAfterUpdate_fn, transitionToConversation_fn, commitConversationTransition_fn, transitionToWelcome_fn, transitionToHistory_fn, handleHistoryBack_fn, handleHeaderClear_fn, handleHeaderInfo_fn, handleThreadRename_fn, handleEditSave_fn, handleEditCancel_fn, handleThreadNameClick_fn, handleThreadDelete_fn, handleHistoryButtonClick_fn, handleHistoryPopoverToggle_fn, handleHistoryPopoverKeydown_fn, handleViewAllClick_fn, handleThreadsSearchQuery_fn, handleThreadsSearchLoadMore_fn, handleThreadsSearchSelect_fn, handleThreadsSearchRetry_fn, handleThreadsSearchNewChat_fn, handleThreadsSearchRename_fn, handleThreadsSearchDelete_fn, handleThreadsSearchDeleteConfirm_fn, headingElement_get, promptTemplate_get, welcomeHeaderTemplate_get, welcomeSuggestionsTemplate_get, threadName_get, threadActionsMenu_get, conversationContentTemplate_get, historyContentTemplate_get, mainContentTemplate_get, showThreadsLoading_get, historyButtonTemplate_get, historyPopoverTemplate_get, promptSectionTemplate_get;
44
- const HISTORY_POPOVER_INSET = 48;
45
- const AiChatbotLauncherComponentTagName = "forge-ai-chatbot-launcher";
46
- let AiChatbotLauncherComponent = class extends AiChatbotBase {
47
- constructor() {
48
- super();
49
- __privateAdd(this, _AiChatbotLauncherComponent_instances);
50
- this.placeholder = "How can I help you today?";
51
- this.showHistoryButton = false;
52
- this.showThreadRename = false;
53
- this.showThreadDelete = false;
54
- this.threads = [];
55
- this.totalThreads = 0;
56
- this.threadsLoading = false;
57
- this.selectedThreadId = null;
58
- this._viewState = "welcome";
59
- this._skipAnimation = false;
60
- this._editingThreadId = null;
61
- this._historyPopoverOpen = false;
62
- this._messageThreadRef = createRef();
63
- this._promptRef = createRef();
64
- __privateAdd(this, _headerRef, createRef());
65
- __privateAdd(this, _gradientContainerRef, createRef());
66
- __privateAdd(this, _historyButtonRef, createRef());
67
- __privateAdd(this, _historyPopoverSearchRef, createRef());
68
- __privateAdd(this, _historyViewSearchRef, createRef());
69
- __privateAdd(this, _internals);
70
- __privateAdd(this, _pendingThreadDeleteSource, null);
71
- __privateAdd(this, _deleteThreadController, new DeleteThreadController(this, {
72
- onConfirm: (thread) => {
73
- const source = __privateGet(this, _pendingThreadDeleteSource);
74
- __privateSet(this, _pendingThreadDeleteSource, null);
75
- if (source) {
76
- source.confirmThreadDelete(thread);
77
- return;
78
- }
79
- const onSuccess = () => {
80
- };
81
- const onError = (error) => {
82
- if (error) {
83
- console.error("Delete failed:", error);
84
- }
85
- };
86
- const event = this._dispatchHostEvent({
87
- type: "forge-ai-chatbot-launcher-thread-delete",
88
- detail: {
89
- id: thread.id,
90
- thread,
91
- onSuccess,
92
- onError
93
- },
94
- cancelable: true
95
- });
96
- if (!event.defaultPrevented) {
97
- this.clearMessages();
98
- }
99
- }
100
- }));
101
- __privateSet(this, _internals, this.attachInternals());
102
- }
103
- _onConnected() {
104
- __privateGet(this, _internals).states.add("welcome");
105
- }
106
- startConversation() {
107
- __privateMethod(this, _AiChatbotLauncherComponent_instances, commitConversationTransition_fn).call(this);
108
- }
109
- /**
110
- * Returns to the welcome view without touching conversation state. Unlike `startNewChat()`, this
111
- * leaves messages, `selectedThreadId`, and the adapter's thread untouched, so an abandoned thread
112
- * selection can be undone without discarding the conversation the user was already in.
113
- */
114
- showWelcome() {
115
- this._historyPopoverOpen = false;
116
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToWelcome_fn).call(this);
117
- }
118
- /**
119
- * Navigates directly to the full history view (not the history popover).
120
- */
121
- showHistory() {
122
- this._historyPopoverOpen = false;
123
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToHistory_fn).call(this);
124
- }
125
- _handleInfo() {
126
- const header = __privateGet(this, _headerRef).value;
127
- header?.showAgentInfo();
128
- super._handleInfo();
129
- }
130
- async _handleSend(evt) {
131
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToConversation_fn).call(this);
132
- await super._handleSend(evt);
133
- }
134
- async _handleSuggestionSelect(evt) {
135
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToConversation_fn).call(this);
136
- await super._handleSuggestionSelect(evt);
137
- }
138
- clearMessages() {
139
- if (super.clearMessages()) {
140
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToWelcome_fn).call(this);
141
- return true;
142
- }
143
- return false;
144
- }
145
- startNewChat() {
146
- super.startNewChat();
147
- this.selectedThreadId = null;
148
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToWelcome_fn).call(this);
149
- }
150
- setMessages(messages) {
151
- super.setMessages(messages);
152
- if (messages.length > 0) {
153
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToConversation_fn).call(this);
154
- }
155
- }
156
- async sendMessage(content, files) {
157
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToConversation_fn).call(this);
158
- await super.sendMessage(content, files);
159
- }
160
- async setThreadState(threadState, options) {
161
- if (options?.skipAnimation) {
162
- this._skipAnimation = true;
163
- }
164
- await super.setThreadState(threadState);
165
- if (threadState.messages.length > 0) {
166
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToConversation_fn).call(this);
167
- }
168
- }
169
- get viewState() {
170
- return this._viewState;
171
- }
172
- focus() {
173
- this._promptRef.value?.focus();
174
- }
175
- render() {
176
- const classes = {
177
- launcher: true,
178
- "skip-animation": this._skipAnimation
179
- };
180
- return html`
181
- <div class=${classMap(classes)} role="region" aria-label="AI chatbot launcher" aria-busy=${this._isStreaming}>
182
- ${__privateGet(this, _AiChatbotLauncherComponent_instances, mainContentTemplate_get)} ${__privateGet(this, _AiChatbotLauncherComponent_instances, promptSectionTemplate_get)}
183
- ${this._viewState === "welcome" ? __privateGet(this, _AiChatbotLauncherComponent_instances, welcomeSuggestionsTemplate_get) : nothing}
184
- </div>
185
- ${when(this.showHistoryButton, () => __privateGet(this, _AiChatbotLauncherComponent_instances, historyPopoverTemplate_get))} ${__privateGet(this, _deleteThreadController).template}
186
- `;
187
- }
188
- };
189
- _headerRef = /* @__PURE__ */ new WeakMap();
190
- _gradientContainerRef = /* @__PURE__ */ new WeakMap();
191
- _historyButtonRef = /* @__PURE__ */ new WeakMap();
192
- _historyPopoverSearchRef = /* @__PURE__ */ new WeakMap();
193
- _historyViewSearchRef = /* @__PURE__ */ new WeakMap();
194
- _internals = /* @__PURE__ */ new WeakMap();
195
- _pendingThreadDeleteSource = /* @__PURE__ */ new WeakMap();
196
- _deleteThreadController = /* @__PURE__ */ new WeakMap();
197
- _AiChatbotLauncherComponent_instances = /* @__PURE__ */ new WeakSet();
198
- setViewState_fn = function(next) {
199
- if (this._viewState === next) {
200
- return;
201
- }
202
- const previous = this._viewState;
203
- toggleState(__privateGet(this, _internals), previous, false);
204
- toggleState(__privateGet(this, _internals), next, true);
205
- this._viewState = next;
206
- if (next === "history") {
207
- this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-history-open" });
208
- void __privateMethod(this, _AiChatbotLauncherComponent_instances, focusAfterUpdate_fn).call(this, () => __privateGet(this, _historyViewSearchRef).value);
209
- } else if (previous === "history") {
210
- this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-history-close" });
211
- void __privateMethod(this, _AiChatbotLauncherComponent_instances, focusAfterUpdate_fn).call(this, () => this);
212
- }
213
- };
214
- focusAfterUpdate_fn = async function(resolve) {
215
- const viewState = this._viewState;
216
- const popoverOpen = this._historyPopoverOpen;
217
- await this.updateComplete;
218
- const target = resolve();
219
- if (target instanceof LitElement) {
220
- await target.updateComplete;
221
- }
222
- if (!this.isConnected || this._viewState !== viewState || this._historyPopoverOpen !== popoverOpen) {
223
- return;
224
- }
225
- target?.focus();
226
- };
227
- transitionToConversation_fn = function() {
228
- if (this._viewState === "conversation") {
229
- return;
230
- }
231
- const event = this._dispatchHostEvent({
232
- type: "forge-ai-chatbot-launcher-conversation-start",
233
- cancelable: true
234
- });
235
- if (event.defaultPrevented) {
236
- return;
237
- }
238
- __privateMethod(this, _AiChatbotLauncherComponent_instances, commitConversationTransition_fn).call(this);
239
- };
240
- commitConversationTransition_fn = function() {
241
- __privateMethod(this, _AiChatbotLauncherComponent_instances, setViewState_fn).call(this, "conversation");
242
- };
243
- transitionToWelcome_fn = function() {
244
- if (this._viewState === "welcome") {
245
- return;
246
- }
247
- this._skipAnimation = false;
248
- __privateMethod(this, _AiChatbotLauncherComponent_instances, setViewState_fn).call(this, "welcome");
249
- };
250
- transitionToHistory_fn = function() {
251
- __privateMethod(this, _AiChatbotLauncherComponent_instances, setViewState_fn).call(this, "history");
252
- };
253
- handleHistoryBack_fn = function() {
254
- __privateMethod(this, _AiChatbotLauncherComponent_instances, setViewState_fn).call(this, this._hasMessages ? "conversation" : "welcome");
255
- };
256
- handleHeaderClear_fn = function() {
257
- this.clearMessages();
258
- };
259
- handleHeaderInfo_fn = function() {
260
- this._handleInfo();
261
- };
262
- handleThreadRename_fn = function(evt) {
263
- this._editingThreadId = evt.detail.id;
264
- };
265
- handleEditSave_fn = function(evt) {
266
- const { id, oldTitle, newTitle } = evt.detail;
267
- const onSuccess = () => {
268
- this._editingThreadId = null;
269
- };
270
- const onError = () => {
271
- this._editingThreadId = null;
272
- };
273
- const event = this._dispatchHostEvent({
274
- type: "forge-ai-chatbot-launcher-thread-rename",
275
- detail: {
276
- id,
277
- oldTitle,
278
- newTitle,
279
- onSuccess,
280
- onError
281
- },
282
- cancelable: true
283
- });
284
- if (!event.defaultPrevented) {
285
- this._editingThreadId = null;
286
- }
287
- };
288
- handleEditCancel_fn = function() {
289
- this._editingThreadId = null;
290
- };
291
- handleThreadNameClick_fn = function() {
292
- const threadId = this.agentInfo?.threadId || "";
293
- this._editingThreadId = threadId;
294
- };
295
- handleThreadDelete_fn = function() {
296
- const thread = {
297
- id: this.agentInfo?.threadId || "",
298
- title: this.threadName || "",
299
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
300
- };
301
- __privateGet(this, _deleteThreadController).show(thread);
302
- };
303
- handleHistoryButtonClick_fn = function() {
304
- if (!this._historyPopoverOpen) {
305
- __privateGet(this, _historyPopoverSearchRef).value?.resetSearch();
306
- }
307
- this._historyPopoverOpen = !this._historyPopoverOpen;
308
- };
309
- handleHistoryPopoverToggle_fn = function(evt) {
310
- if (evt.target !== evt.currentTarget) {
311
- return;
312
- }
313
- this._historyPopoverOpen = evt.detail.open;
314
- if (evt.detail.open) {
315
- void __privateMethod(this, _AiChatbotLauncherComponent_instances, focusAfterUpdate_fn).call(this, () => __privateGet(this, _historyPopoverSearchRef).value);
316
- return;
317
- }
318
- const activeElement = this.shadowRoot?.activeElement ?? null;
319
- const focusInsidePopover = evt.currentTarget.contains(activeElement);
320
- const focusLost = this.ownerDocument.activeElement === this.ownerDocument.body;
321
- if ((focusInsidePopover || focusLost) && this._viewState !== "history") {
322
- __privateGet(this, _historyButtonRef).value?.focus();
323
- }
324
- };
325
- handleHistoryPopoverKeydown_fn = function(evt) {
326
- if (evt.key !== "Escape" || evt.defaultPrevented) {
327
- return;
328
- }
329
- evt.preventDefault();
330
- evt.stopPropagation();
331
- this._historyPopoverOpen = false;
332
- void __privateMethod(this, _AiChatbotLauncherComponent_instances, focusAfterUpdate_fn).call(this, () => __privateGet(this, _historyButtonRef).value);
333
- };
334
- handleViewAllClick_fn = function() {
335
- this._historyPopoverOpen = false;
336
- __privateMethod(this, _AiChatbotLauncherComponent_instances, transitionToHistory_fn).call(this);
337
- };
338
- handleThreadsSearchQuery_fn = function(evt) {
339
- forwardCancelableEvent(this, evt, "forge-ai-chatbot-launcher-thread-search");
340
- };
341
- handleThreadsSearchLoadMore_fn = function(evt) {
342
- this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-thread-load-more", detail: evt.detail });
343
- };
344
- handleThreadsSearchSelect_fn = function(evt) {
345
- this._historyPopoverOpen = false;
346
- const event = this._dispatchHostEvent({
347
- type: "forge-ai-chatbot-launcher-thread-select",
348
- detail: evt.detail,
349
- cancelable: true
350
- });
351
- if (event.defaultPrevented) {
352
- return;
353
- }
354
- this.selectedThreadId = evt.detail.id;
355
- __privateMethod(this, _AiChatbotLauncherComponent_instances, setViewState_fn).call(this, "conversation");
356
- };
357
- handleThreadsSearchRetry_fn = function() {
358
- this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-thread-retry" });
359
- };
360
- handleThreadsSearchNewChat_fn = function() {
361
- this._historyPopoverOpen = false;
362
- const event = this._dispatchHostEvent({ type: "forge-ai-chatbot-launcher-new-chat", cancelable: true });
363
- if (!event.defaultPrevented) {
364
- this.startNewChat();
365
- }
366
- };
367
- handleThreadsSearchRename_fn = function(evt) {
368
- forwardCancelableEvent(this, evt, "forge-ai-chatbot-launcher-thread-rename");
369
- };
370
- handleThreadsSearchDelete_fn = function(evt) {
371
- forwardCancelableEvent(this, evt, "forge-ai-chatbot-launcher-thread-delete");
372
- };
373
- handleThreadsSearchDeleteConfirm_fn = function(evt) {
374
- evt.preventDefault();
375
- __privateSet(this, _pendingThreadDeleteSource, evt.target);
376
- __privateGet(this, _deleteThreadController).show(evt.detail.thread);
377
- };
378
- headingElement_get = function() {
379
- switch (this.headingLevel) {
380
- case 1:
381
- return html`<h1 class="title"><slot name="heading">${this.titleText}</slot></h1>`;
382
- case 2:
383
- return html`<h2 class="title"><slot name="heading">${this.titleText}</slot></h2>`;
384
- case 3:
385
- return html`<h3 class="title"><slot name="heading">${this.titleText}</slot></h3>`;
386
- case 4:
387
- return html`<h4 class="title"><slot name="heading">${this.titleText}</slot></h4>`;
388
- case 5:
389
- return html`<h5 class="title"><slot name="heading">${this.titleText}</slot></h5>`;
390
- case 6:
391
- return html`<h6 class="title"><slot name="heading">${this.titleText}</slot></h6>`;
392
- default:
393
- return html`<h2 class="title"><slot name="heading">${this.titleText}</slot></h2>`;
394
- }
395
- };
396
- promptTemplate_get = function() {
397
- const isUploading = this._isUploading;
398
- return html`
399
- <forge-ai-prompt
400
- ${ref(this._promptRef)}
401
- .placeholder=${this.placeholder}
402
- .running=${this._isStreaming || isUploading}
403
- .slashCommands=${this._slashCommands}
404
- .contextItems=${this._allContextItems}
405
- ?disabled=${isUploading}
406
- ?debug-mode=${this.debugMode}
407
- @forge-ai-prompt-send=${this._handleSend}
408
- @forge-ai-prompt-stop=${this._handleStop}
409
- @forge-ai-prompt-cancel=${this._handleCancel}
410
- @forge-ai-prompt-debug-toggle=${this._handleDebugToggle}
411
- @forge-ai-prompt-command=${this._handleSlashCommand}
412
- @forge-ai-prompt-context-remove=${this._handlePromptContextRemove}>
413
- ${when(
414
- this.fileUpload === "on",
415
- () => html`
416
- <forge-ai-file-picker
417
- slot="actions-start"
418
- variant="icon-button"
419
- multiple
420
- ?disabled=${isUploading}
421
- .maxSize=${this.maxFileSize}
422
- .accept=${this.acceptedFileTypes}
423
- .selectedFiles=${this._coreController?.pendingAttachments.map((a) => a.filename) ?? []}
424
- @forge-ai-file-picker-change=${this._handleFileSelect}
425
- @forge-ai-file-picker-error=${this._handleFileError}>
426
- </forge-ai-file-picker>
427
- `
428
- )}
429
- ${__privateGet(this, _AiChatbotLauncherComponent_instances, historyButtonTemplate_get)}
430
- ${when(
431
- this.voiceInput === "on",
432
- () => html`
433
- <forge-ai-voice-input slot="actions-end" @forge-ai-voice-input-result=${this._handleVoiceInputResult}>
434
- </forge-ai-voice-input>
435
- `
436
- )}
437
- </forge-ai-prompt>
438
- `;
439
- };
440
- welcomeHeaderTemplate_get = function() {
441
- return html`
442
- <div class="welcome">
443
- <div class="welcome-header">
444
- <slot name="icon">
445
- <forge-ai-icon class="icon"></forge-ai-icon>
446
- </slot>
447
- ${__privateGet(this, _AiChatbotLauncherComponent_instances, headingElement_get)}
448
- </div>
449
- <div class="description"><slot name="description">${this.descriptionText}</slot></div>
450
- </div>
451
- `;
452
- };
453
- welcomeSuggestionsTemplate_get = function() {
454
- if (!this.suggestions?.length) {
455
- return nothing;
456
- }
457
- return html`
458
- <div class="welcome-suggestions">
459
- <forge-ai-suggestions
460
- variant="block"
461
- .suggestions=${this.suggestions ?? []}
462
- @forge-ai-suggestions-select=${this._handleSuggestionSelect}>
463
- </forge-ai-suggestions>
464
- </div>
465
- `;
466
- };
467
- threadName_get = function() {
468
- const showActions = this.showThreadRename || this.showThreadDelete;
469
- const threadId = this.agentInfo?.threadId || "";
470
- const isEditing = this._editingThreadId === threadId;
471
- return html`
472
- <div class="thread-name" slot="thread-name">
473
- <div class="thread-name__separator">
474
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="forge-icon" aria-hidden="true">
475
- <path d="m7 21 7.9-18H17L9.1 21z" />
476
- </svg>
477
- </div>
478
- ${when(
479
- isEditing,
480
- () => html`
481
- <forge-ai-edit-thread
482
- .thread=${{
483
- id: threadId,
484
- title: this.threadName || "",
485
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
486
- }}
487
- .value=${this.threadName || ""}
488
- @forge-ai-edit-thread-save=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleEditSave_fn)}
489
- @forge-ai-edit-thread-cancel=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleEditCancel_fn)}>
490
- </forge-ai-edit-thread>
491
- `,
492
- () => html`
493
- ${when(
494
- this.showThreadRename,
495
- () => html`
496
- <button
497
- class="forge-button forge-button--dense thread-name__button"
498
- id="thread-name-button"
499
- aria-label="Edit thread name: ${this.threadName}"
500
- @click=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadNameClick_fn)}>
501
- <span class="thread-name__text">${this.threadName}</span>
502
- </button>
503
- <forge-ai-tooltip for="thread-name-button" placement="bottom">${this.threadName}</forge-ai-tooltip>
504
- `,
505
- () => html`
506
- <span class="thread-name__text" id="thread-name-text">${this.threadName}</span>
507
- <forge-ai-tooltip for="thread-name-text" placement="bottom">${this.threadName}</forge-ai-tooltip>
508
- `
509
- )}
510
- ${when(showActions, () => __privateGet(this, _AiChatbotLauncherComponent_instances, threadActionsMenu_get))}
511
- `
512
- )}
513
- </div>
514
- `;
515
- };
516
- threadActionsMenu_get = function() {
517
- const thread = {
518
- id: this.agentInfo?.threadId || "",
519
- title: this.threadName || "",
520
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
521
- };
522
- return html`
523
- <forge-ai-thread-actions-menu
524
- .thread=${thread}
525
- ?show-rename=${this.showThreadRename}
526
- ?show-delete=${this.showThreadDelete}
527
- @forge-ai-thread-actions-menu-rename=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadRename_fn)}
528
- @forge-ai-thread-actions-menu-delete-click=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadDelete_fn)}>
529
- <svg
530
- slot="trigger-icon"
531
- xmlns="http://www.w3.org/2000/svg"
532
- viewBox="0 0 24 24"
533
- class="forge-icon"
534
- aria-hidden="true">
535
- <path fill="none" d="M0 0h24v24H0z" />
536
- <path d="m7 10 5 5 5-5z" />
537
- </svg>
538
- </forge-ai-thread-actions-menu>
539
- `;
540
- };
541
- conversationContentTemplate_get = function() {
542
- return html`
543
- <div class="conversation">
544
- <forge-ai-chat-header
545
- ${ref(__privateGet(this, _headerRef))}
546
- ?disable-agent-selector=${this._isStreaming}
547
- export-option=${this.exportOption === "off" ? "off" : this._hasMessages ? "enabled" : "off"}
548
- clear-option=${this.clearOption === "off" ? "off" : this._hasMessages ? "enabled" : "off"}
549
- .agentInfo=${this.agentInfo}
550
- .headingLevel=${this.headingLevel}
551
- .titleText=${this.titleText}
552
- .agents=${this.agents}
553
- .selectedAgentId=${this.selectedAgentId}
554
- @forge-ai-chat-header-clear=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleHeaderClear_fn)}
555
- @forge-ai-chat-header-export=${this._handleExport}
556
- @forge-ai-chat-header-info=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleHeaderInfo_fn)}
557
- @forge-ai-chat-header-agent-change=${this._handleAgentChange}>
558
- <slot name="icon" slot="icon">
559
- <forge-ai-icon></forge-ai-icon>
560
- </slot>
561
- <slot name="header-actions" slot="header-actions"></slot>
562
- ${when(this.threadName, () => __privateGet(this, _AiChatbotLauncherComponent_instances, threadName_get))}
563
- </forge-ai-chat-header>
564
- <forge-ai-message-thread
565
- ${ref(this._messageThreadRef)}
566
- .messageItems=${this._messageItems}
567
- .tools=${this._tools}
568
- ?enable-reactions=${this.enableReactions}
569
- ?show-thinking=${this._isStreaming}
570
- ?debug-mode=${this.debugMode}
571
- @forge-ai-message-thread-copy=${this._handleCopy}
572
- @forge-ai-message-thread-resend=${this._handleResend}
573
- @forge-ai-message-thread-thumbs-up=${this._handleThumbsUp}
574
- @forge-ai-message-thread-thumbs-down=${this._handleThumbsDown}
575
- @forge-ai-message-thread-user-copy=${this._handleUserCopy}
576
- @forge-ai-message-thread-user-resend=${this._handleUserResend}
577
- @forge-ai-message-thread-user-edit=${this._handleUserEdit}>
578
- </forge-ai-message-thread>
579
- </div>
580
- `;
581
- };
582
- historyContentTemplate_get = function() {
583
- return html`
584
- <div class="history">
585
- <forge-ai-threads-search
586
- ${ref(__privateGet(this, _historyViewSearchRef))}
587
- header-title="Chat history"
588
- ?show-back-button=${true}
589
- .threads=${this.threads}
590
- .totalChats=${this.totalThreads}
591
- .selectedThreadId=${this.selectedThreadId}
592
- .errorMessage=${this.threadsError}
593
- ?show-thread-rename=${this.showThreadRename}
594
- ?show-thread-delete=${this.showThreadDelete}
595
- @forge-ai-threads-search-back=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleHistoryBack_fn)}
596
- @forge-ai-threads-search-query=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchQuery_fn)}
597
- @forge-ai-threads-search-load-more=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchLoadMore_fn)}
598
- @forge-ai-threads-search-select=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchSelect_fn)}
599
- @forge-ai-threads-search-new-chat=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchNewChat_fn)}
600
- @forge-ai-threads-search-rename=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchRename_fn)}
601
- @forge-ai-threads-search-delete=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchDelete_fn)}
602
- @forge-ai-threads-search-retry=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchRetry_fn)}
603
- @forge-ai-threads-search-delete-confirm=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchDeleteConfirm_fn)}>
604
- </forge-ai-threads-search>
605
- </div>
606
- `;
607
- };
608
- mainContentTemplate_get = function() {
609
- switch (this._viewState) {
610
- case "welcome":
611
- return __privateGet(this, _AiChatbotLauncherComponent_instances, welcomeHeaderTemplate_get);
612
- case "history":
613
- return __privateGet(this, _AiChatbotLauncherComponent_instances, historyContentTemplate_get);
614
- default:
615
- return __privateGet(this, _AiChatbotLauncherComponent_instances, conversationContentTemplate_get);
616
- }
617
- };
618
- showThreadsLoading_get = function() {
619
- return this.threadsLoading && !this.threadsError;
620
- };
621
- historyButtonTemplate_get = function() {
622
- if (!this.showHistoryButton) {
623
- return nothing;
624
- }
625
- return html`
626
- <button
627
- ${ref(__privateGet(this, _historyButtonRef))}
628
- id="history-button"
629
- slot="actions-start"
630
- type="button"
631
- class="forge-icon-button forge-icon-button--medium ai-icon-button history-button"
632
- aria-label=${this.threadsError ? "Chat history - failed to load" : "Chat history"}
633
- aria-expanded=${this._historyPopoverOpen}
634
- ?disabled=${__privateGet(this, _AiChatbotLauncherComponent_instances, showThreadsLoading_get)}
635
- @click=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleHistoryButtonClick_fn)}>
636
- ${when(
637
- __privateGet(this, _AiChatbotLauncherComponent_instances, showThreadsLoading_get),
638
- () => html`<forge-ai-spinner size="extra-small"></forge-ai-spinner>`,
639
- () => html`
640
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
641
- <path
642
- d="M13.5 8H12v5l4.28 2.54.72-1.21-3.5-2.08zM13 3a9 9 0 0 0-9 9H1l3.96 4.03L9 12H6a7 7 0 0 1 7-7 7 7 0 0 1 7 7 7 7 0 0 1-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.9 8.9 0 0 0 13 21a9 9 0 0 0 9-9 9 9 0 0 0-9-9" />
643
- </svg>
644
- `
645
- )}
646
- ${when(
647
- this.threadsError,
648
- () => html`<span class="forge-badge forge-badge--dot history-button__error-badge"></span>`
649
- )}
650
- </button>
651
- ${when(
652
- !__privateGet(this, _AiChatbotLauncherComponent_instances, showThreadsLoading_get),
653
- () => html`<forge-ai-tooltip slot="actions-start" for="history-button" placement="top"
654
- >Chat history</forge-ai-tooltip
655
- >`
656
- )}
657
- `;
658
- };
659
- historyPopoverTemplate_get = function() {
660
- const chatCount = this.totalThreads > 0 ? this.totalThreads : this.threads.length;
661
- const anchorWidth = __privateGet(this, _gradientContainerRef).value?.getBoundingClientRect().width;
662
- const popoverWidth = anchorWidth ? anchorWidth - HISTORY_POPOVER_INSET * 2 : void 0;
663
- return html`
664
- <forge-ai-popover
665
- .anchor=${__privateGet(this, _gradientContainerRef).value ?? null}
666
- placement="bottom"
667
- .offset=${8}
668
- .flip=${true}
669
- .autoSize=${true}
670
- ?open=${this._historyPopoverOpen}
671
- @keydown=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleHistoryPopoverKeydown_fn)}
672
- @forge-ai-popover-toggle=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleHistoryPopoverToggle_fn)}>
673
- <div class="history-popover" style=${popoverWidth ? `width: ${popoverWidth}px` : ""}>
674
- <forge-ai-threads-search
675
- ${ref(__privateGet(this, _historyPopoverSearchRef))}
676
- header-title="Chat history"
677
- .showNewChatButton=${false}
678
- .showSearch=${chatCount > 5}
679
- .threads=${this.threads}
680
- .totalChats=${this.totalThreads}
681
- .selectedThreadId=${this.selectedThreadId}
682
- .errorMessage=${this.threadsError}
683
- ?show-thread-rename=${this.showThreadRename}
684
- ?show-thread-delete=${this.showThreadDelete}
685
- @forge-ai-threads-search-query=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchQuery_fn)}
686
- @forge-ai-threads-search-load-more=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchLoadMore_fn)}
687
- @forge-ai-threads-search-select=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchSelect_fn)}
688
- @forge-ai-threads-search-rename=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchRename_fn)}
689
- @forge-ai-threads-search-delete=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchDelete_fn)}
690
- @forge-ai-threads-search-retry=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchRetry_fn)}
691
- @forge-ai-threads-search-delete-confirm=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleThreadsSearchDeleteConfirm_fn)}>
692
- <button
693
- slot="header-actions"
694
- type="button"
695
- class="forge-button forge-button--dense history-popover__view-all"
696
- @click=${__privateMethod(this, _AiChatbotLauncherComponent_instances, handleViewAllClick_fn)}>
697
- <span>View all</span>
698
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="forge-icon" aria-hidden="true">
699
- <path fill="none" d="M0 0h24v24H0z" />
700
- <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z" />
701
- </svg>
702
- </button>
703
- </forge-ai-threads-search>
704
- </div>
705
- </forge-ai-popover>
706
- `;
707
- };
708
- promptSectionTemplate_get = function() {
709
- return html`
710
- <div class="prompt-section">
711
- <forge-ai-gradient-container class="prompt-container" variant="medium" ${ref(__privateGet(this, _gradientContainerRef))}>
712
- ${__privateGet(this, _AiChatbotLauncherComponent_instances, promptTemplate_get)}
713
- </forge-ai-gradient-container>
714
- ${when(this.disclaimerText, () => html`<div class="disclaimer">${this.disclaimerText}</div>`)}
715
- </div>
716
- `;
717
- };
718
- AiChatbotLauncherComponent.styles = unsafeCSS(styles);
719
- __decorateClass([
720
- property({ attribute: "description-text" })
721
- ], AiChatbotLauncherComponent.prototype, "descriptionText", 2);
722
- __decorateClass([
723
- property({ attribute: "thread-name" })
724
- ], AiChatbotLauncherComponent.prototype, "threadName", 2);
725
- __decorateClass([
726
- property({ type: Boolean, attribute: "show-history-button" })
727
- ], AiChatbotLauncherComponent.prototype, "showHistoryButton", 2);
728
- __decorateClass([
729
- property({ type: Boolean, attribute: "show-thread-rename" })
730
- ], AiChatbotLauncherComponent.prototype, "showThreadRename", 2);
731
- __decorateClass([
732
- property({ type: Boolean, attribute: "show-thread-delete" })
733
- ], AiChatbotLauncherComponent.prototype, "showThreadDelete", 2);
734
- __decorateClass([
735
- property({ type: Array, attribute: false })
736
- ], AiChatbotLauncherComponent.prototype, "threads", 2);
737
- __decorateClass([
738
- property({ type: Number, attribute: "total-threads" })
739
- ], AiChatbotLauncherComponent.prototype, "totalThreads", 2);
740
- __decorateClass([
741
- property({ type: Boolean, attribute: "threads-loading" })
742
- ], AiChatbotLauncherComponent.prototype, "threadsLoading", 2);
743
- __decorateClass([
744
- property({ type: String, attribute: "threads-error" })
745
- ], AiChatbotLauncherComponent.prototype, "threadsError", 2);
746
- __decorateClass([
747
- property({ type: String, attribute: "selected-thread-id" })
748
- ], AiChatbotLauncherComponent.prototype, "selectedThreadId", 2);
749
- __decorateClass([
750
- state()
751
- ], AiChatbotLauncherComponent.prototype, "_viewState", 2);
752
- __decorateClass([
753
- state()
754
- ], AiChatbotLauncherComponent.prototype, "_skipAnimation", 2);
755
- __decorateClass([
756
- state()
757
- ], AiChatbotLauncherComponent.prototype, "_editingThreadId", 2);
758
- __decorateClass([
759
- state()
760
- ], AiChatbotLauncherComponent.prototype, "_historyPopoverOpen", 2);
761
- AiChatbotLauncherComponent = __decorateClass([
762
- customElement(AiChatbotLauncherComponentTagName)
763
- ], AiChatbotLauncherComponent);
764
- export {
765
- AiChatbotLauncherComponent,
766
- AiChatbotLauncherComponentTagName
767
- };