@tylertech/forge-ai 0.15.3-dev.1 → 0.16.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 (446) hide show
  1. package/MIGRATION.md +192 -0
  2. package/README.md +76 -2
  3. package/custom-elements.json +5442 -15097
  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 +1 -2
  26. package/dist/ai-assistant-response/ai-assistant-response.mjs +4 -236
  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 +3 -3
  31. package/dist/ai-canvas/ai-canvas.mjs +4 -95
  32. package/dist/ai-canvas/ai-canvas2.mjs +74 -0
  33. package/dist/ai-canvas/index.d.ts +1 -1
  34. package/dist/ai-canvas/index.mjs +1 -5
  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 +4 -3
  133. package/dist/ai-message-thread/ai-message-thread.mjs +4 -360
  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 +2 -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 +160 -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-chatbot → ai-tool-call}/create-tool-renderer.d.ts +1 -1
  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-chatbot → ai-tool-call}/tool-canvas.d.ts +1 -1
  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 +1 -1
  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 +3 -2
  228. package/dist/core/index.mjs +7 -8
  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.mjs +132 -154
  237. package/dist/core/tooltip/index.mjs +1 -4
  238. package/dist/core/tooltip/tooltip.mjs +4 -279
  239. package/dist/core/tooltip/tooltip2.mjs +213 -0
  240. package/dist/index.d.ts +45 -53
  241. package/dist/index.mjs +100 -214
  242. package/dist/jsx.d.ts +895 -0
  243. package/dist/tools/ai-data-table/ai-data-table.d.ts +1 -2
  244. package/dist/tools/ai-data-table/ai-data-table.mjs +4 -257
  245. package/dist/tools/ai-data-table/ai-data-table2.mjs +185 -0
  246. package/dist/tools/ai-data-table/index.d.ts +0 -1
  247. package/dist/tools/ai-data-table/index.mjs +1 -6
  248. package/dist/tools/ai-paginator/ai-paginator.d.ts +14 -0
  249. package/dist/tools/ai-paginator/ai-paginator.mjs +4 -115
  250. package/dist/tools/ai-paginator/ai-paginator2.mjs +90 -0
  251. package/dist/tools/ai-paginator/index.mjs +1 -4
  252. package/dist/tools/ai-steps/ai-steps.d.ts +2 -3
  253. package/dist/tools/ai-steps/ai-steps.mjs +4 -49
  254. package/dist/tools/ai-steps/ai-steps2.mjs +30 -0
  255. package/dist/tools/ai-steps/index.d.ts +0 -1
  256. package/dist/tools/ai-steps/index.mjs +1 -6
  257. package/dist/tools/index.d.ts +3 -3
  258. package/dist/tools/index.mjs +7 -12
  259. package/dist/types/chat.d.ts +102 -0
  260. package/dist/types/feature.d.ts +1 -0
  261. package/dist/types/file.d.ts +36 -0
  262. package/dist/types/index.d.ts +6 -0
  263. package/dist/types/index.mjs +0 -0
  264. package/dist/types/thread.d.ts +14 -0
  265. package/dist/types/tool.d.ts +197 -0
  266. package/dist/utils/csv-utils.mjs +37 -57
  267. package/dist/utils/delete-thread-controller.d.ts +1 -1
  268. package/dist/utils/delete-thread-controller.mjs +48 -71
  269. package/dist/utils/dom.d.ts +14 -0
  270. package/dist/utils/dom.mjs +30 -0
  271. package/dist/utils/format.d.ts +9 -0
  272. package/dist/utils/format.mjs +27 -0
  273. package/dist/utils/index.d.ts +9 -6
  274. package/dist/utils/index.mjs +6 -16
  275. package/dist/utils/infinite-scroll-controller.mjs +88 -94
  276. package/dist/utils/keyboard-navigation-controller.mjs +62 -70
  277. package/dist/utils/markdown-stream-controller.mjs +48 -0
  278. package/dist/utils/markdown.d.ts +10 -1
  279. package/dist/utils/markdown.mjs +261 -40
  280. package/dist/utils/storage-utils.mjs +30 -24
  281. package/package.json +40 -104
  282. package/dist/ai-agent-info/ai-agent-info.scss.mjs +0 -4
  283. package/dist/ai-agent-selector/ai-agent-selector.scss.mjs +0 -4
  284. package/dist/ai-artifact/ai-artifact.scss.mjs +0 -4
  285. package/dist/ai-artifact-card/ai-artifact-card.scss.mjs +0 -283
  286. package/dist/ai-artifact-card-group/ai-artifact-card-group.scss.mjs +0 -173
  287. package/dist/ai-assistant-response/ai-assistant-response.scss.mjs +0 -4
  288. package/dist/ai-attachment/ai-attachment.d.ts +0 -39
  289. package/dist/ai-attachment/ai-attachment.mjs +0 -130
  290. package/dist/ai-attachment/ai-attachment.scss.mjs +0 -4
  291. package/dist/ai-attachment/index.d.ts +0 -1
  292. package/dist/ai-attachment/index.mjs +0 -5
  293. package/dist/ai-button/ai-button.d.ts +0 -21
  294. package/dist/ai-button/ai-button.mjs +0 -68
  295. package/dist/ai-button/ai-button.scss.mjs +0 -4
  296. package/dist/ai-button/index.d.ts +0 -1
  297. package/dist/ai-button/index.mjs +0 -5
  298. package/dist/ai-canvas/ai-canvas.scss.mjs +0 -4
  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 -179
  313. package/dist/ai-chatbot/ai-chatbot-base.mjs +0 -684
  314. package/dist/ai-chatbot/ai-chatbot-tool-call.d.ts +0 -19
  315. package/dist/ai-chatbot/ai-chatbot-tool-call.mjs +0 -182
  316. package/dist/ai-chatbot/ai-chatbot-tool-call.scss.mjs +0 -4
  317. package/dist/ai-chatbot/ai-chatbot.d.ts +0 -196
  318. package/dist/ai-chatbot/ai-chatbot.mjs +0 -502
  319. package/dist/ai-chatbot/ai-chatbot.scss.mjs +0 -4
  320. package/dist/ai-chatbot/create-tool-renderer.mjs +0 -16
  321. package/dist/ai-chatbot/event-emitter.d.ts +0 -43
  322. package/dist/ai-chatbot/event-emitter.mjs +0 -81
  323. package/dist/ai-chatbot/file-upload-manager.d.ts +0 -27
  324. package/dist/ai-chatbot/file-upload-manager.mjs +0 -106
  325. package/dist/ai-chatbot/http-agent-with-credentials.d.ts +0 -8
  326. package/dist/ai-chatbot/http-agent-with-credentials.mjs +0 -14
  327. package/dist/ai-chatbot/index.d.ts +0 -18
  328. package/dist/ai-chatbot/index.mjs +0 -40
  329. package/dist/ai-chatbot/markdown-stream-controller.mjs +0 -50
  330. package/dist/ai-chatbot/message-state-controller.d.ts +0 -72
  331. package/dist/ai-chatbot/message-state-controller.mjs +0 -392
  332. package/dist/ai-chatbot/request-serialization.d.ts +0 -33
  333. package/dist/ai-chatbot/request-serialization.mjs +0 -31
  334. package/dist/ai-chatbot/tool-canvas.mjs +0 -128
  335. package/dist/ai-chatbot/types.d.ts +0 -582
  336. package/dist/ai-chatbot/utils.d.ts +0 -49
  337. package/dist/ai-chatbot/utils.mjs +0 -114
  338. package/dist/ai-chatbot-launcher/ai-chatbot-launcher.d.ts +0 -190
  339. package/dist/ai-chatbot-launcher/ai-chatbot-launcher.mjs +0 -986
  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 -173
  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/canvas-controller.d.ts +0 -81
  417. package/dist/core/canvas-controller.mjs +0 -221
  418. package/dist/core/chatbot-core-controller.d.ts +0 -57
  419. package/dist/core/chatbot-core-controller.mjs +0 -545
  420. package/dist/core/overlay/overlay.scss.mjs +0 -4
  421. package/dist/core/popover/popover.scss.mjs +0 -4
  422. package/dist/core/tooltip/tooltip.scss.mjs +0 -4
  423. package/dist/tools/ai-data-table/ai-data-table-definition.d.ts +0 -2
  424. package/dist/tools/ai-data-table/ai-data-table-definition.mjs +0 -43
  425. package/dist/tools/ai-data-table/ai-data-table.scss.mjs +0 -4
  426. package/dist/tools/ai-mcp-app/ai-mcp-app.d.ts +0 -70
  427. package/dist/tools/ai-mcp-app/ai-mcp-app.mjs +0 -589
  428. package/dist/tools/ai-mcp-app/ai-mcp-app.scss.mjs +0 -4
  429. package/dist/tools/ai-mcp-app/index.d.ts +0 -3
  430. package/dist/tools/ai-mcp-app/index.mjs +0 -6
  431. package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.d.ts +0 -60
  432. package/dist/tools/ai-mcp-app/mcp-app-bridge-controller.mjs +0 -147
  433. package/dist/tools/ai-mcp-app/mcp-app-bridge-types.d.ts +0 -124
  434. package/dist/tools/ai-mcp-app/mcp-app-bridge.d.ts +0 -41
  435. package/dist/tools/ai-mcp-app/mcp-app-bridge.mjs +0 -293
  436. package/dist/tools/ai-mcp-app/mcp-app-context.d.ts +0 -46
  437. package/dist/tools/ai-mcp-app/mcp-app-context.mjs +0 -5
  438. package/dist/tools/ai-paginator/ai-paginator.scss.mjs +0 -4
  439. package/dist/tools/ai-steps/ai-steps-definition.d.ts +0 -2
  440. package/dist/tools/ai-steps/ai-steps-definition.mjs +0 -51
  441. package/dist/tools/ai-steps/ai-steps.scss.mjs +0 -4
  442. package/dist/utils/inert-outside.d.ts +0 -7
  443. package/dist/utils/inert-outside.mjs +0 -28
  444. package/dist/utils.d.ts +0 -32
  445. package/dist/utils.mjs +0 -57
  446. /package/dist/{ai-chatbot → utils}/markdown-stream-controller.d.ts +0 -0
@@ -1,279 +1,4 @@
1
- import { unsafeCSS, LitElement, html } from "lit";
2
- import { property, state, query, customElement } from "lit/decorators.js";
3
- import { classMap } from "lit/directives/class-map.js";
4
- import "../overlay/overlay.mjs";
5
- import styles from "./tooltip.scss.mjs";
6
- import { when } from "lit/directives/when.js";
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __typeError = (msg) => {
10
- throw TypeError(msg);
11
- };
12
- var __decorateClass = (decorators, target, key, kind) => {
13
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
- if (decorator = decorators[i])
16
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
- if (kind && result) __defProp(target, key, result);
18
- return result;
19
- };
20
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
21
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
22
- 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);
23
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
24
- var _showTimeout, _hideTimeout, _ForgeAiTooltipComponent_instances, tooltipContent_get;
25
- let ForgeAiTooltipComponent = class extends LitElement {
26
- constructor() {
27
- super(...arguments);
28
- __privateAdd(this, _ForgeAiTooltipComponent_instances);
29
- this.for = "";
30
- this.text = "";
31
- this.placement = "top";
32
- this.trigger = "hover";
33
- this.open = false;
34
- this.delay = 500;
35
- this.hideDelay = 0;
36
- this._anchorElement = null;
37
- __privateAdd(this, _showTimeout, null);
38
- __privateAdd(this, _hideTimeout, null);
39
- this._handleShow = () => {
40
- this._clearTimeouts();
41
- if (this.delay > 0) {
42
- __privateSet(this, _showTimeout, window.setTimeout(() => {
43
- this.open = true;
44
- }, this.delay));
45
- } else {
46
- this.open = true;
47
- }
48
- };
49
- this._handleHide = () => {
50
- this._clearTimeouts();
51
- if (this.hideDelay > 0) {
52
- __privateSet(this, _hideTimeout, window.setTimeout(() => {
53
- this.open = false;
54
- }, this.hideDelay));
55
- } else {
56
- this.open = false;
57
- }
58
- };
59
- this._handleToggle = () => {
60
- this.open = !this.open;
61
- };
62
- this._handleAnchorClick = () => {
63
- this._clearTimeouts();
64
- this.open = false;
65
- };
66
- this._handleKeyDown = (event) => {
67
- if (event.key === "Escape" && this.open) {
68
- this.open = false;
69
- }
70
- };
71
- this._onOverlayToggle = (event) => {
72
- this.open = event.detail.open;
73
- this.dispatchEvent(
74
- new CustomEvent("forge-ai-tooltip-toggle", {
75
- detail: event.detail,
76
- bubbles: true,
77
- composed: true
78
- })
79
- );
80
- };
81
- }
82
- connectedCallback() {
83
- super.connectedCallback();
84
- this._findAnchorElement();
85
- this._attachEventListeners();
86
- this._updateHostAttributes();
87
- if (!this._anchorElement && this.for) {
88
- setTimeout(() => {
89
- this._findAnchorElement();
90
- this._attachEventListeners();
91
- }, 0);
92
- }
93
- }
94
- disconnectedCallback() {
95
- super.disconnectedCallback();
96
- this._detachEventListeners();
97
- this._clearTimeouts();
98
- document.removeEventListener("keydown", this._handleKeyDown);
99
- }
100
- updated(changedProperties) {
101
- super.updated(changedProperties);
102
- if (changedProperties.has("for")) {
103
- this._detachEventListeners();
104
- this._findAnchorElement();
105
- this._attachEventListeners();
106
- }
107
- if (changedProperties.has("open")) {
108
- this._updateHostAttributes();
109
- if (this.open) {
110
- document.addEventListener("keydown", this._handleKeyDown);
111
- this.updateComplete.then(() => {
112
- const overlay = this.shadowRoot?.querySelector("forge-ai-overlay");
113
- if (overlay && this._arrowElement) {
114
- overlay.arrowElement = this._arrowElement;
115
- }
116
- });
117
- } else {
118
- document.removeEventListener("keydown", this._handleKeyDown);
119
- }
120
- }
121
- }
122
- _findAnchorElement() {
123
- if (!this.for) {
124
- this._anchorElement = null;
125
- return;
126
- }
127
- this._anchorElement = document.getElementById(this.for);
128
- if (!this._anchorElement) {
129
- const root = this.getRootNode();
130
- if (root !== document && "querySelector" in root) {
131
- this._anchorElement = root.querySelector(`#${this.for}`);
132
- }
133
- }
134
- if (!this._anchorElement) {
135
- console.warn(`Tooltip anchor element with id "${this.for}" not found`);
136
- }
137
- }
138
- _updateHostAttributes() {
139
- this.setAttribute("role", this.open ? "tooltip" : "none");
140
- this.setAttribute("aria-hidden", String(!this.open));
141
- if (this.open) {
142
- this.setAttribute("aria-live", "polite");
143
- } else {
144
- this.removeAttribute("aria-live");
145
- }
146
- }
147
- _attachEventListeners() {
148
- if (!this._anchorElement) {
149
- return;
150
- }
151
- switch (this.trigger) {
152
- case "hover":
153
- this._anchorElement.addEventListener("mouseenter", this._handleShow);
154
- this._anchorElement.addEventListener("mouseleave", this._handleHide);
155
- this._anchorElement.addEventListener("focusin", this._handleShow);
156
- this._anchorElement.addEventListener("focusout", this._handleHide);
157
- this._anchorElement.addEventListener("click", this._handleAnchorClick);
158
- break;
159
- case "focus":
160
- this._anchorElement.addEventListener("focusin", this._handleShow);
161
- this._anchorElement.addEventListener("focusout", this._handleHide);
162
- break;
163
- case "click":
164
- this._anchorElement.addEventListener("click", this._handleToggle);
165
- break;
166
- }
167
- }
168
- _detachEventListeners() {
169
- if (!this._anchorElement) {
170
- return;
171
- }
172
- this._anchorElement.removeEventListener("mouseenter", this._handleShow);
173
- this._anchorElement.removeEventListener("mouseleave", this._handleHide);
174
- this._anchorElement.removeEventListener("focusin", this._handleShow);
175
- this._anchorElement.removeEventListener("focusout", this._handleHide);
176
- this._anchorElement.removeEventListener("click", this._handleToggle);
177
- this._anchorElement.removeEventListener("click", this._handleAnchorClick);
178
- }
179
- _clearTimeouts() {
180
- if (__privateGet(this, _showTimeout)) {
181
- clearTimeout(__privateGet(this, _showTimeout));
182
- __privateSet(this, _showTimeout, null);
183
- }
184
- if (__privateGet(this, _hideTimeout)) {
185
- clearTimeout(__privateGet(this, _hideTimeout));
186
- __privateSet(this, _hideTimeout, null);
187
- }
188
- }
189
- /**
190
- * Show the tooltip programmatically.
191
- */
192
- show() {
193
- this.open = true;
194
- }
195
- /**
196
- * Hide the tooltip programmatically.
197
- */
198
- hide() {
199
- this.open = false;
200
- }
201
- /**
202
- * Toggle the tooltip programmatically.
203
- */
204
- toggle() {
205
- this.open = !this.open;
206
- }
207
- render() {
208
- const contentClasses = {
209
- "tooltip-content": true,
210
- "tooltip-content--hidden": !this.open
211
- };
212
- return html`
213
- ${when(
214
- this.open,
215
- () => html` <!-- Overlay for visual presentation when open -->
216
- <forge-ai-overlay
217
- .anchor=${this._anchorElement}
218
- .placement=${this.placement}
219
- flip
220
- shift
221
- .open=${this.open}
222
- @ai-overlay-toggle=${this._onOverlayToggle}>
223
- <div class="ai-tooltip">
224
- <div class="ai-tooltip__arrow"></div>
225
- ${__privateGet(this, _ForgeAiTooltipComponent_instances, tooltipContent_get)}
226
- </div>
227
- </forge-ai-overlay>`,
228
- () => html`
229
- <!-- Content shown when closed for accessibility -->
230
- <div class=${classMap(contentClasses)}>${__privateGet(this, _ForgeAiTooltipComponent_instances, tooltipContent_get)}</div>
231
- `
232
- )}
233
- `;
234
- }
235
- };
236
- _showTimeout = /* @__PURE__ */ new WeakMap();
237
- _hideTimeout = /* @__PURE__ */ new WeakMap();
238
- _ForgeAiTooltipComponent_instances = /* @__PURE__ */ new WeakSet();
239
- tooltipContent_get = function() {
240
- const hasText = this.text.trim().length > 0;
241
- if (hasText) {
242
- return html`${this.text}`;
243
- }
244
- return html`<slot></slot>`;
245
- };
246
- ForgeAiTooltipComponent.styles = unsafeCSS(styles);
247
- __decorateClass([
248
- property()
249
- ], ForgeAiTooltipComponent.prototype, "for", 2);
250
- __decorateClass([
251
- property()
252
- ], ForgeAiTooltipComponent.prototype, "text", 2);
253
- __decorateClass([
254
- property()
255
- ], ForgeAiTooltipComponent.prototype, "placement", 2);
256
- __decorateClass([
257
- property()
258
- ], ForgeAiTooltipComponent.prototype, "trigger", 2);
259
- __decorateClass([
260
- property({ type: Boolean, reflect: true })
261
- ], ForgeAiTooltipComponent.prototype, "open", 2);
262
- __decorateClass([
263
- property({ type: Number })
264
- ], ForgeAiTooltipComponent.prototype, "delay", 2);
265
- __decorateClass([
266
- property({ type: Number, attribute: "hide-delay" })
267
- ], ForgeAiTooltipComponent.prototype, "hideDelay", 2);
268
- __decorateClass([
269
- state()
270
- ], ForgeAiTooltipComponent.prototype, "_anchorElement", 2);
271
- __decorateClass([
272
- query(".ai-tooltip__arrow")
273
- ], ForgeAiTooltipComponent.prototype, "_arrowElement", 2);
274
- ForgeAiTooltipComponent = __decorateClass([
275
- customElement("forge-ai-tooltip")
276
- ], ForgeAiTooltipComponent);
277
- export {
278
- ForgeAiTooltipComponent
279
- };
1
+ //#region src/lib/core/tooltip/tooltip.scss?inline
2
+ var tooltip_default = "@keyframes slidein {\n from {\n opacity: 0;\n transform: translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y));\n }\n to {\n opacity: 1;\n transform: translateX(0) translateY(0);\n }\n}\n:host {\n display: contents;\n position: relative;\n}\n\n.ai-tooltip {\n --_tooltip-background: var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));\n --_tooltip-color: var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));\n --_tooltip-shape: var(--forge-tooltip-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));\n --_tooltip-padding: var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));\n --_tooltip-padding-block: var(--forge-tooltip-padding-block, var(--_tooltip-padding));\n --_tooltip-padding-inline: var(--forge-tooltip-padding-inline, var(--_tooltip-padding));\n --_tooltip-width: var(--forge-tooltip-width, max-content);\n --_tooltip-max-width: var(--forge-tooltip-max-width, 320px);\n --_tooltip-elevation: var(--forge-tooltip-elevation, var(--forge-theme-surface-bright-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)));\n --_tooltip-content-align: var(--forge-tooltip-content-align, center);\n --_tooltip-border-width: var(--forge-tooltip-border-width, 0);\n --_tooltip-border-style: var(--forge-tooltip-border-style, solid);\n --_tooltip-border-color: var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));\n --_tooltip-animation-timing: var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));\n --_tooltip-animation-duration: var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));\n --_tooltip-animation-offset: var(--forge-tooltip-animation-offset, 24px);\n --_tooltip-arrow-size: var(--forge-tooltip-arrow-size, 8px);\n --_tooltip-arrow-height: var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));\n --_tooltip-arrow-width: var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));\n --_tooltip-arrow-shape: var(--forge-tooltip-arrow-shape, calc(var(--forge-shape-small, 2px) * var(--forge-shape-factor, 1)));\n --_tooltip-arrow-rotation: var(--forge-tooltip-arrow-rotation, 0deg);\n --_tooltip-arrow-top-rotation: var(--forge-tooltip-arrow-top-rotation, 315deg);\n --_tooltip-arrow-right-rotation: var(--forge-tooltip-arrow-right-rotation, 45deg);\n --_tooltip-arrow-bottom-rotation: var(--forge-tooltip-arrow-bottom-rotation, 135deg);\n --_tooltip-arrow-left-rotation: var(--forge-tooltip-arrow-left-rotation, 225deg);\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: var(--forge-typography-body1-font-family, var(--forge-typography-font-family, \"Roboto\", sans-serif));\n font-size: var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 0.875)));\n font-weight: var(--forge-typography-body1-font-weight, 400);\n line-height: var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));\n letter-spacing: var(--forge-typography-body1-letter-spacing, 0.0357142857em);\n text-transform: var(--forge-typography-body1-text-transform, inherit);\n text-decoration: var(--forge-typography-body1-text-decoration, inherit);\n position: relative;\n background: var(--_tooltip-background);\n color: var(--_tooltip-color);\n border-radius: var(--_tooltip-shape);\n border-width: var(--_tooltip-border-width);\n border-style: var(--_tooltip-border-style);\n border-color: var(--_tooltip-border-color);\n padding-block: var(--_tooltip-padding-block);\n padding-inline: var(--_tooltip-padding-inline);\n box-shadow: var(--_tooltip-elevation);\n width: var(--_tooltip-width);\n max-width: var(--_tooltip-max-width);\n text-align: var(--_tooltip-content-align);\n line-height: normal;\n white-space: normal;\n animation-duration: var(--_tooltip-animation-duration);\n animation-timing-function: var(--_tooltip-animation-timing);\n animation-name: slidein;\n animation-fill-mode: forwards;\n position: relative;\n animation-duration: 150ms;\n animation-timing-function: cubic-bezier(0, 0, 0, 1);\n animation-name: tooltip-fadein, tooltip-scalein;\n transform-origin: center center;\n}\n.ai-tooltip__arrow {\n position: absolute;\n width: 10px;\n height: 10px;\n background: var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));\n transform: rotate(45deg);\n z-index: -1;\n filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));\n}\n\nforge-ai-overlay[data-position-placement^=top] .ai-tooltip {\n margin-block-end: var(--forge-spacing-small, 12px);\n}\n\nforge-ai-overlay[data-position-placement^=bottom] .ai-tooltip {\n margin-block-start: var(--forge-spacing-small, 12px);\n}\n\nforge-ai-overlay[data-position-placement^=left] .ai-tooltip {\n margin-inline-end: var(--forge-spacing-small, 12px);\n}\n\nforge-ai-overlay[data-position-placement^=right] .ai-tooltip {\n margin-inline-start: var(--forge-spacing-small, 12px);\n}\n\nforge-ai-overlay[data-position-placement^=top]:not([data-position-placement*=\"-\"]) .ai-tooltip {\n transform-origin: bottom center;\n}\nforge-ai-overlay[data-position-placement^=top][data-position-placement$=-start] .ai-tooltip {\n transform-origin: bottom left;\n}\nforge-ai-overlay[data-position-placement^=top][data-position-placement$=-end] .ai-tooltip {\n transform-origin: bottom right;\n}\nforge-ai-overlay[data-position-placement^=top] .ai-tooltip__arrow {\n bottom: -5px;\n clip-path: polygon(0 100%, 100% 0, 100% 100%);\n}\n\nforge-ai-overlay[data-position-placement^=right]:not([data-position-placement*=\"-\"]) .ai-tooltip {\n transform-origin: left center;\n}\nforge-ai-overlay[data-position-placement^=right][data-position-placement$=-start] .ai-tooltip {\n transform-origin: left top;\n}\nforge-ai-overlay[data-position-placement^=right][data-position-placement$=-end] .ai-tooltip {\n transform-origin: left bottom;\n}\nforge-ai-overlay[data-position-placement^=right] .ai-tooltip__arrow {\n left: -5px;\n clip-path: polygon(0 0, 0 100%, 100% 100%);\n}\n\nforge-ai-overlay[data-position-placement^=bottom]:not([data-position-placement*=\"-\"]) .ai-tooltip {\n transform-origin: top center;\n}\nforge-ai-overlay[data-position-placement^=bottom][data-position-placement$=-start] .ai-tooltip {\n transform-origin: top left;\n}\nforge-ai-overlay[data-position-placement^=bottom][data-position-placement$=-end] .ai-tooltip {\n transform-origin: top right;\n}\nforge-ai-overlay[data-position-placement^=bottom] .ai-tooltip__arrow {\n top: -5px;\n clip-path: polygon(0 0, 0 100%, 100% 0);\n}\n\nforge-ai-overlay[data-position-placement^=left]:not([data-position-placement*=\"-\"]) .ai-tooltip {\n transform-origin: right center;\n}\nforge-ai-overlay[data-position-placement^=left][data-position-placement$=-start] .ai-tooltip {\n transform-origin: right top;\n}\nforge-ai-overlay[data-position-placement^=left][data-position-placement$=-end] .ai-tooltip {\n transform-origin: right bottom;\n}\nforge-ai-overlay[data-position-placement^=left] .ai-tooltip__arrow {\n right: -5px;\n clip-path: polygon(0 0, 100% 0, 100% 100%);\n}\n\n.tooltip-content--hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n@keyframes tooltip-fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes tooltip-scalein {\n from {\n transform: scale(0.8);\n }\n to {\n transform: scale(1);\n }\n}";
3
+ //#endregion
4
+ export { tooltip_default as default };
@@ -0,0 +1,213 @@
1
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/decorate.mjs";
2
+ import "../overlay/overlay2.mjs";
3
+ import tooltip_default from "./tooltip.mjs";
4
+ import { LitElement, html, unsafeCSS } from "lit";
5
+ import { customElement, property, query, state } from "lit/decorators.js";
6
+ import { when } from "lit/directives/when.js";
7
+ import { classMap } from "lit/directives/class-map.js";
8
+ //#region src/lib/core/tooltip/tooltip.ts
9
+ var ForgeAiTooltipComponent = class ForgeAiTooltipComponent extends LitElement {
10
+ constructor(..._args) {
11
+ super(..._args);
12
+ this.for = "";
13
+ this.text = "";
14
+ this.placement = "top";
15
+ this.trigger = "hover";
16
+ this.open = false;
17
+ this.delay = 500;
18
+ this.hideDelay = 0;
19
+ this._anchorElement = null;
20
+ this.#showTimeout = null;
21
+ this.#hideTimeout = null;
22
+ this._handleShow = () => {
23
+ this._clearTimeouts();
24
+ if (this.delay > 0) this.#showTimeout = window.setTimeout(() => {
25
+ this.open = true;
26
+ }, this.delay);
27
+ else this.open = true;
28
+ };
29
+ this._handleHide = () => {
30
+ this._clearTimeouts();
31
+ if (this.hideDelay > 0) this.#hideTimeout = window.setTimeout(() => {
32
+ this.open = false;
33
+ }, this.hideDelay);
34
+ else this.open = false;
35
+ };
36
+ this._handleToggle = () => {
37
+ this.open = !this.open;
38
+ };
39
+ this._handleAnchorClick = () => {
40
+ this._clearTimeouts();
41
+ this.open = false;
42
+ };
43
+ this._handleKeyDown = (event) => {
44
+ if (event.key === "Escape" && this.open) this.open = false;
45
+ };
46
+ this._onOverlayToggle = (event) => {
47
+ if (event.target !== event.currentTarget) return;
48
+ this.open = event.detail.open;
49
+ this.dispatchEvent(new CustomEvent("forge-ai-tooltip-toggle", {
50
+ detail: event.detail,
51
+ bubbles: true,
52
+ composed: true
53
+ }));
54
+ };
55
+ }
56
+ static {
57
+ this.styles = unsafeCSS(tooltip_default);
58
+ }
59
+ #showTimeout;
60
+ #hideTimeout;
61
+ connectedCallback() {
62
+ super.connectedCallback();
63
+ this._findAnchorElement();
64
+ this._attachEventListeners();
65
+ this._updateHostAttributes();
66
+ if (!this._anchorElement && this.for) setTimeout(() => {
67
+ this._findAnchorElement();
68
+ this._attachEventListeners();
69
+ }, 0);
70
+ }
71
+ disconnectedCallback() {
72
+ super.disconnectedCallback();
73
+ this._detachEventListeners();
74
+ this._clearTimeouts();
75
+ document.removeEventListener("keydown", this._handleKeyDown);
76
+ }
77
+ updated(changedProperties) {
78
+ super.updated(changedProperties);
79
+ if (changedProperties.has("for")) {
80
+ this._detachEventListeners();
81
+ this._findAnchorElement();
82
+ this._attachEventListeners();
83
+ }
84
+ if (changedProperties.has("open")) {
85
+ this._updateHostAttributes();
86
+ if (this.open) {
87
+ document.addEventListener("keydown", this._handleKeyDown);
88
+ this.updateComplete.then(() => {
89
+ const overlay = this.shadowRoot?.querySelector("forge-ai-overlay");
90
+ if (overlay && this._arrowElement) overlay.arrowElement = this._arrowElement;
91
+ });
92
+ } else document.removeEventListener("keydown", this._handleKeyDown);
93
+ }
94
+ }
95
+ _findAnchorElement() {
96
+ if (!this.for) {
97
+ this._anchorElement = null;
98
+ return;
99
+ }
100
+ this._anchorElement = document.getElementById(this.for);
101
+ if (!this._anchorElement) {
102
+ const root = this.getRootNode();
103
+ if (root !== document && "querySelector" in root) this._anchorElement = root.querySelector(`#${this.for}`);
104
+ }
105
+ if (!this._anchorElement) console.warn(`Tooltip anchor element with id "${this.for}" not found`);
106
+ }
107
+ _updateHostAttributes() {
108
+ this.setAttribute("role", this.open ? "tooltip" : "none");
109
+ this.setAttribute("aria-hidden", String(!this.open));
110
+ if (this.open) this.setAttribute("aria-live", "polite");
111
+ else this.removeAttribute("aria-live");
112
+ }
113
+ _attachEventListeners() {
114
+ if (!this._anchorElement) return;
115
+ switch (this.trigger) {
116
+ case "hover":
117
+ this._anchorElement.addEventListener("mouseenter", this._handleShow);
118
+ this._anchorElement.addEventListener("mouseleave", this._handleHide);
119
+ this._anchorElement.addEventListener("focusin", this._handleShow);
120
+ this._anchorElement.addEventListener("focusout", this._handleHide);
121
+ this._anchorElement.addEventListener("click", this._handleAnchorClick);
122
+ break;
123
+ case "focus":
124
+ this._anchorElement.addEventListener("focusin", this._handleShow);
125
+ this._anchorElement.addEventListener("focusout", this._handleHide);
126
+ break;
127
+ case "click": this._anchorElement.addEventListener("click", this._handleToggle);
128
+ }
129
+ }
130
+ _detachEventListeners() {
131
+ if (!this._anchorElement) return;
132
+ this._anchorElement.removeEventListener("mouseenter", this._handleShow);
133
+ this._anchorElement.removeEventListener("mouseleave", this._handleHide);
134
+ this._anchorElement.removeEventListener("focusin", this._handleShow);
135
+ this._anchorElement.removeEventListener("focusout", this._handleHide);
136
+ this._anchorElement.removeEventListener("click", this._handleToggle);
137
+ this._anchorElement.removeEventListener("click", this._handleAnchorClick);
138
+ }
139
+ _clearTimeouts() {
140
+ if (this.#showTimeout) {
141
+ clearTimeout(this.#showTimeout);
142
+ this.#showTimeout = null;
143
+ }
144
+ if (this.#hideTimeout) {
145
+ clearTimeout(this.#hideTimeout);
146
+ this.#hideTimeout = null;
147
+ }
148
+ }
149
+ /**
150
+ * Show the tooltip programmatically.
151
+ */
152
+ show() {
153
+ this.open = true;
154
+ }
155
+ /**
156
+ * Hide the tooltip programmatically.
157
+ */
158
+ hide() {
159
+ this.open = false;
160
+ }
161
+ /**
162
+ * Toggle the tooltip programmatically.
163
+ */
164
+ toggle() {
165
+ this.open = !this.open;
166
+ }
167
+ get #tooltipContent() {
168
+ if (this.text.trim().length > 0) return html`${this.text}`;
169
+ return html`<slot></slot>`;
170
+ }
171
+ render() {
172
+ const contentClasses = {
173
+ "tooltip-content": true,
174
+ "tooltip-content--hidden": !this.open
175
+ };
176
+ return html`
177
+ ${when(this.open, () => html` <!-- Overlay for visual presentation when open -->
178
+ <forge-ai-overlay
179
+ .anchor=${this._anchorElement}
180
+ .placement=${this.placement}
181
+ flip
182
+ shift
183
+ .open=${this.open}
184
+ @forge-ai-overlay-toggle=${this._onOverlayToggle}>
185
+ <div class="ai-tooltip">
186
+ <div class="ai-tooltip__arrow"></div>
187
+ ${this.#tooltipContent}
188
+ </div>
189
+ </forge-ai-overlay>`, () => html`
190
+ <!-- Content shown when closed for accessibility -->
191
+ <div class=${classMap(contentClasses)}>${this.#tooltipContent}</div>
192
+ `)}
193
+ `;
194
+ }
195
+ };
196
+ __decorate([property()], ForgeAiTooltipComponent.prototype, "for", void 0);
197
+ __decorate([property()], ForgeAiTooltipComponent.prototype, "text", void 0);
198
+ __decorate([property()], ForgeAiTooltipComponent.prototype, "placement", void 0);
199
+ __decorate([property()], ForgeAiTooltipComponent.prototype, "trigger", void 0);
200
+ __decorate([property({
201
+ type: Boolean,
202
+ reflect: true
203
+ })], ForgeAiTooltipComponent.prototype, "open", void 0);
204
+ __decorate([property({ type: Number })], ForgeAiTooltipComponent.prototype, "delay", void 0);
205
+ __decorate([property({
206
+ type: Number,
207
+ attribute: "hide-delay"
208
+ })], ForgeAiTooltipComponent.prototype, "hideDelay", void 0);
209
+ __decorate([state()], ForgeAiTooltipComponent.prototype, "_anchorElement", void 0);
210
+ __decorate([query(".ai-tooltip__arrow")], ForgeAiTooltipComponent.prototype, "_arrowElement", void 0);
211
+ ForgeAiTooltipComponent = __decorate([customElement("forge-ai-tooltip")], ForgeAiTooltipComponent);
212
+ //#endregion
213
+ export { ForgeAiTooltipComponent };
package/dist/index.d.ts CHANGED
@@ -1,53 +1,45 @@
1
- export * from './ai-assistant-response';
2
- export * from './ai-response-message-toolbar';
3
- export * from './ai-user-message-toolbar';
4
- export * from './ai-agent-info';
5
- export * from './ai-agent-selector';
6
- export * from './ai-tool-call-indicator';
7
- export * from './ai-artifact';
8
- export * from './ai-artifact-card';
9
- export * from './ai-artifact-card-group';
10
- export * from './ai-attachment';
11
- export * from './ai-button';
12
- export * from './ai-canvas';
13
- export * from './ai-chain-of-thought';
14
- export * from './ai-chat-header';
15
- export * from './ai-chat-interface';
16
- export * from './ai-chatbot';
17
- export * from './ai-chatbot-launcher';
18
- export * from './ai-client-message';
19
- export * from './ai-copy-button';
20
- export * from './ai-confirmation-prompt';
21
- export * from './ai-conversations-panel';
22
- export * from './ai-context-chip';
23
- export * from './ai-context-items';
24
- export * from './ai-dialog';
25
- export * from './ai-disclaimer';
26
- export * from './ai-dropdown-menu';
27
- export * from './ai-edit-thread';
28
- export * from './ai-embedded-chat';
29
- export * from './ai-empty-state';
30
- export * from './ai-error-message';
31
- export * from './ai-fab';
32
- export * from './ai-file-picker';
33
- export * from './ai-floating-chat';
34
- export * from './ai-gradient-container';
35
- export * from './ai-icon';
36
- export * from './ai-icon-button';
37
- export * from './ai-message-thread';
38
- export * from './ai-modal';
39
- export * from './ai-prompt';
40
- export * from './ai-reasoning';
41
- export * from './ai-reasoning-header';
42
- export * from './ai-response-message';
43
- export * from './ai-sidebar';
44
- export * from './ai-sidebar-chat';
45
- export * from './ai-slash-command-menu';
46
- export * from './ai-steps';
47
- export * from './ai-suggestions';
48
- export * from './ai-thinking-indicator';
49
- export * from './ai-threads';
50
- export * from './ai-threads-search';
51
- export * from './ai-thread-actions-menu';
52
- export * from './ai-user-message';
53
- export * from './ai-voice-input';
1
+ export * from './ai-assistant-response/index.js';
2
+ export * from './ai-response-message-toolbar/index.js';
3
+ export * from './ai-user-message-toolbar/index.js';
4
+ export * from './ai-agent-info/index.js';
5
+ export * from './ai-agent-selector/index.js';
6
+ export * from './ai-tool-call/index.js';
7
+ export * from './ai-tool-call-indicator/index.js';
8
+ export * from './ai-artifact/index.js';
9
+ export * from './ai-artifact-card/index.js';
10
+ export * from './ai-artifact-card-group/index.js';
11
+ export * from './ai-canvas/index.js';
12
+ export * from './ai-chain-of-thought/index.js';
13
+ export * from './ai-chat-header/index.js';
14
+ export * from './ai-chat-interface/index.js';
15
+ export * from './ai-client-message/index.js';
16
+ export * from './ai-copy-button/index.js';
17
+ export * from './ai-conversations-panel/index.js';
18
+ export * from './ai-context-chip/index.js';
19
+ export * from './ai-context-items/index.js';
20
+ export * from './ai-dialog/index.js';
21
+ export * from './ai-disclaimer/index.js';
22
+ export * from './ai-dropdown-menu/index.js';
23
+ export * from './ai-edit-thread/index.js';
24
+ export * from './ai-empty-state/index.js';
25
+ export * from './ai-error-message/index.js';
26
+ export * from './ai-fab/index.js';
27
+ export * from './ai-file-picker/index.js';
28
+ export * from './ai-gradient-container/index.js';
29
+ export * from './ai-icon/index.js';
30
+ export * from './ai-message-thread/index.js';
31
+ export * from './ai-modal/index.js';
32
+ export * from './ai-prompt/index.js';
33
+ export * from './ai-reasoning/index.js';
34
+ export * from './ai-reasoning-header/index.js';
35
+ export * from './ai-response-message/index.js';
36
+ export * from './ai-sidebar/index.js';
37
+ export * from './ai-slash-command-menu/index.js';
38
+ export * from './ai-steps/index.js';
39
+ export * from './ai-suggestions/index.js';
40
+ export * from './ai-thinking-indicator/index.js';
41
+ export * from './ai-threads-search/index.js';
42
+ export * from './ai-thread-actions-menu/index.js';
43
+ export * from './ai-user-message/index.js';
44
+ export * from './ai-voice-input/index.js';
45
+ export * from './types/index.js';