@carbon/ai-chat-components 1.8.0 → 1.9.0-rc.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 (1111) hide show
  1. package/README.md +1 -5
  2. package/custom-elements.json +18138 -12542
  3. package/es/components/audio-player/index.d.ts +4 -4
  4. package/es/components/audio-player/src/audio-player.d.ts +1 -1
  5. package/es/components/audio-player/src/audio-player.js +33 -39
  6. package/es/components/audio-player/src/audio-player.js.map +1 -1
  7. package/es/components/audio-player/src/providers/base-provider.d.ts +2 -2
  8. package/es/components/audio-player/src/providers/base-provider.js +9 -10
  9. package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
  10. package/es/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
  11. package/es/components/audio-player/src/providers/native-audio-provider.js +18 -19
  12. package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  13. package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
  14. package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -15
  15. package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
  16. package/es/components/audio-player/src/transcript.d.ts +2 -2
  17. package/es/components/audio-player/src/transcript.js +14 -17
  18. package/es/components/audio-player/src/transcript.js.map +1 -1
  19. package/es/components/audio-player/src/utils/url-detector.js +1 -2
  20. package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
  21. package/es/components/card/index.d.ts +4 -4
  22. package/es/components/card/src/card-footer.d.ts +5 -5
  23. package/es/components/card/src/card-footer.js +12 -16
  24. package/es/components/card/src/card-footer.js.map +1 -1
  25. package/es/components/card/src/card-footer.scss.js +1 -1
  26. package/es/components/card/src/card-steps.d.ts +4 -4
  27. package/es/components/card/src/card-steps.js +3 -5
  28. package/es/components/card/src/card-steps.js.map +1 -1
  29. package/es/components/card/src/card-steps.scss.js +1 -1
  30. package/es/components/card/src/card.d.ts +2 -2
  31. package/es/components/card/src/card.js +3 -3
  32. package/es/components/card/src/card.scss.js +1 -1
  33. package/es/components/carousel/index.d.ts +1 -1
  34. package/es/components/carousel/src/carousel.d.ts +2 -2
  35. package/es/components/carousel/src/carousel.js +4 -6
  36. package/es/components/carousel/src/carousel.js.map +1 -1
  37. package/es/components/carousel/src/carousel.scss.js +1 -1
  38. package/es/components/chain-of-thought/defs.js +1 -1
  39. package/es/components/chain-of-thought/index.d.ts +10 -10
  40. package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
  41. package/es/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
  42. package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  43. package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
  44. package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
  45. package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
  46. package/es/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
  47. package/es/components/chain-of-thought/src/chain-of-thought.js +16 -17
  48. package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
  49. package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
  50. package/es/components/chain-of-thought/src/tool-call-data.js +17 -23
  51. package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  52. package/es/components/chat-button/defs.d.ts +1 -1
  53. package/es/components/chat-button/defs.js +1 -1
  54. package/es/components/chat-button/index.d.ts +2 -2
  55. package/es/components/chat-button/src/chat-button.d.ts +5 -5
  56. package/es/components/chat-button/src/chat-button.js +6 -6
  57. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  58. package/es/components/chat-history/index.d.ts +11 -11
  59. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  60. package/es/components/chat-history/src/history-content.d.ts +1 -1
  61. package/es/components/chat-history/src/history-content.js +6 -6
  62. package/es/components/chat-history/src/history-delete-panel.d.ts +2 -2
  63. package/es/components/chat-history/src/history-delete-panel.js +11 -11
  64. package/es/components/chat-history/src/history-header.d.ts +2 -2
  65. package/es/components/chat-history/src/history-header.js +9 -10
  66. package/es/components/chat-history/src/history-header.js.map +1 -1
  67. package/es/components/chat-history/src/history-loading.d.ts +2 -2
  68. package/es/components/chat-history/src/history-loading.js +1 -1
  69. package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -2
  70. package/es/components/chat-history/src/history-panel-item-input.js +21 -22
  71. package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
  72. package/es/components/chat-history/src/history-panel-item.d.ts +5 -5
  73. package/es/components/chat-history/src/history-panel-item.js +39 -41
  74. package/es/components/chat-history/src/history-panel-item.js.map +1 -1
  75. package/es/components/chat-history/src/history-panel-items.d.ts +1 -1
  76. package/es/components/chat-history/src/history-panel-items.js +1 -1
  77. package/es/components/chat-history/src/history-panel-menu.d.ts +1 -1
  78. package/es/components/chat-history/src/history-panel.d.ts +1 -1
  79. package/es/components/chat-history/src/history-panel.js +3 -3
  80. package/es/components/chat-history/src/history-search-item.d.ts +1 -1
  81. package/es/components/chat-history/src/history-search-item.js +4 -4
  82. package/es/components/chat-history/src/history-shell.d.ts +1 -1
  83. package/es/components/chat-history/src/history-shell.js +3 -3
  84. package/es/components/chat-history/src/history-toolbar.d.ts +9 -5
  85. package/es/components/chat-history/src/history-toolbar.js +13 -10
  86. package/es/components/chat-history/src/history-toolbar.js.map +1 -1
  87. package/es/components/chat-shell/index.d.ts +5 -5
  88. package/es/components/chat-shell/src/chat-header.d.ts +8 -8
  89. package/es/components/chat-shell/src/chat-header.js +37 -45
  90. package/es/components/chat-shell/src/chat-header.js.map +1 -1
  91. package/es/components/chat-shell/src/corner-manager.d.ts +2 -2
  92. package/es/components/chat-shell/src/corner-manager.js +31 -32
  93. package/es/components/chat-shell/src/corner-manager.js.map +1 -1
  94. package/es/components/chat-shell/src/initialization-manager.d.ts +2 -2
  95. package/es/components/chat-shell/src/initialization-manager.js +1 -2
  96. package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
  97. package/es/components/chat-shell/src/panel-manager.d.ts +1 -1
  98. package/es/components/chat-shell/src/panel-manager.js +12 -12
  99. package/es/components/chat-shell/src/panel.d.ts +2 -2
  100. package/es/components/chat-shell/src/panel.js +99 -100
  101. package/es/components/chat-shell/src/panel.js.map +1 -1
  102. package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
  103. package/es/components/chat-shell/src/resize-observer-manager.js +10 -11
  104. package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
  105. package/es/components/chat-shell/src/shell.d.ts +8 -8
  106. package/es/components/chat-shell/src/shell.js +130 -137
  107. package/es/components/chat-shell/src/shell.js.map +1 -1
  108. package/es/components/chat-shell/src/slot-observer.d.ts +2 -2
  109. package/es/components/chat-shell/src/slot-observer.js +5 -9
  110. package/es/components/chat-shell/src/slot-observer.js.map +1 -1
  111. package/es/components/chat-shell/src/types.d.ts +4 -4
  112. package/es/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
  113. package/es/components/chat-shell/src/workspace-manager-utils.js +5 -6
  114. package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
  115. package/es/components/chat-shell/src/workspace-manager.d.ts +2 -2
  116. package/es/components/chat-shell/src/workspace-manager.js +33 -34
  117. package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
  118. package/es/components/code-snippet/index.d.ts +4 -4
  119. package/es/components/code-snippet/src/code-snippet.d.ts +19 -8
  120. package/es/components/code-snippet/src/code-snippet.js +124 -98
  121. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  122. package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
  123. package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
  124. package/es/components/code-snippet/src/codemirror/base-setup.js +1 -1
  125. package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
  126. package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
  127. package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
  128. package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
  129. package/es/components/code-snippet/src/codemirror/content-sync.js +2 -2
  130. package/es/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
  131. package/es/components/code-snippet/src/codemirror/detect-language.js +77 -0
  132. package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
  133. package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
  134. package/es/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
  135. package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
  136. package/es/components/code-snippet/src/codemirror/editor-manager.js +4 -4
  137. package/es/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
  138. package/es/components/code-snippet/src/codemirror/language-controller.js +3 -3
  139. package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
  140. package/es/components/code-snippet/src/codemirror/language-data.js +299 -299
  141. package/es/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
  142. package/es/components/code-snippet/src/codemirror/language-utils.js +60 -66
  143. package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
  144. package/es/components/code-snippet/src/codemirror/marker-utils.js +15 -15
  145. package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -1
  146. package/es/components/code-snippet/src/codemirror/theme.js +168 -163
  147. package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
  148. package/es/components/code-snippet/src/dom-utils.js +6 -6
  149. package/es/components/code-snippet/src/layout-utils.d.ts +2 -2
  150. package/es/components/code-snippet/src/layout-utils.js +28 -15
  151. package/es/components/code-snippet/src/layout-utils.js.map +1 -1
  152. package/es/components/code-snippet/src/streaming-manager.js +5 -5
  153. package/es/components/feedback/index.d.ts +4 -4
  154. package/es/components/feedback/src/feedback-buttons.d.ts +3 -3
  155. package/es/components/feedback/src/feedback-buttons.js +17 -19
  156. package/es/components/feedback/src/feedback-buttons.js.map +1 -1
  157. package/es/components/feedback/src/feedback.d.ts +9 -9
  158. package/es/components/feedback/src/feedback.js +39 -45
  159. package/es/components/feedback/src/feedback.js.map +1 -1
  160. package/es/components/feedback/src/feedback.scss.js +1 -1
  161. package/es/components/file-uploads/index.d.ts +13 -0
  162. package/es/components/file-uploads/index.js +10 -0
  163. package/es/components/file-uploads/index.js.map +1 -0
  164. package/es/components/file-uploads/src/file-type-icon.d.ts +18 -0
  165. package/es/components/file-uploads/src/file-type-icon.js +87 -0
  166. package/es/components/file-uploads/src/file-type-icon.js.map +1 -0
  167. package/es/components/file-uploads/src/file-upload-item.d.ts +104 -0
  168. package/es/components/file-uploads/src/file-upload-item.js +366 -0
  169. package/es/components/file-uploads/src/file-upload-item.js.map +1 -0
  170. package/es/components/file-uploads/src/file-upload-item.scss.js +13 -0
  171. package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
  172. package/es/components/file-uploads/src/file-uploads.d.ts +91 -0
  173. package/es/components/file-uploads/src/file-uploads.js +238 -0
  174. package/es/components/file-uploads/src/file-uploads.js.map +1 -0
  175. package/es/components/file-uploads/src/file-uploads.scss.js +13 -0
  176. package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -0
  177. package/es/components/file-uploads/src/types.d.ts +39 -0
  178. package/es/components/file-uploads/src/types.js +8 -0
  179. package/es/components/file-uploads/src/types.js.map +1 -0
  180. package/es/components/launcher/index.d.ts +9 -0
  181. package/es/components/launcher/index.js +9 -0
  182. package/es/components/launcher/index.js.map +1 -0
  183. package/es/components/launcher/src/launcher.d.ts +68 -0
  184. package/es/components/launcher/src/launcher.js +152 -0
  185. package/es/components/launcher/src/launcher.js.map +1 -0
  186. package/es/components/launcher/src/launcher.scss.js +13 -0
  187. package/es/components/launcher/src/launcher.scss.js.map +1 -0
  188. package/es/components/markdown/index.d.ts +5 -4
  189. package/es/components/markdown/index.js +1 -0
  190. package/es/components/markdown/index.js.map +1 -1
  191. package/es/components/markdown/src/markdown-renderer-types.d.ts +10 -3
  192. package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
  193. package/es/components/markdown/src/markdown-renderer.js +85 -80
  194. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  195. package/es/components/markdown/src/markdown-token-tree.d.ts +9 -1
  196. package/es/components/markdown/src/markdown-token-tree.js +32 -21
  197. package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
  198. package/es/components/markdown/src/markdown.d.ts +4 -7
  199. package/es/components/markdown/src/markdown.js +99 -81
  200. package/es/components/markdown/src/markdown.js.map +1 -1
  201. package/es/components/markdown/src/markdown.scss.js +1 -1
  202. package/es/components/markdown/src/markdown.template.js +1 -1
  203. package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
  204. package/es/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
  205. package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
  206. package/es/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
  207. package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
  208. package/es/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
  209. package/es/components/markdown/src/utils/html-helpers.d.ts +1 -1
  210. package/es/components/markdown/src/utils/html-helpers.js +72 -72
  211. package/es/components/markdown/src/utils/lit-directives.d.ts +2 -2
  212. package/es/components/markdown/src/utils/lit-directives.js +5 -5
  213. package/es/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
  214. package/es/components/markdown/src/utils/plugin-fallback.js +61 -61
  215. package/es/components/markdown/src/utils/streaming-table.d.ts +1 -1
  216. package/es/components/markdown/src/utils/streaming-table.js +6 -6
  217. package/es/components/markdown/src/utils/table-helpers.d.ts +4 -4
  218. package/es/components/markdown/src/utils/table-helpers.js +17 -18
  219. package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
  220. package/es/components/processing/index.d.ts +1 -1
  221. package/es/components/processing/src/processing.d.ts +2 -2
  222. package/es/components/processing/src/processing.js +2 -2
  223. package/es/components/prompt-line/autocomplete/index.d.ts +12 -0
  224. package/es/components/prompt-line/autocomplete/index.js +9 -0
  225. package/es/components/prompt-line/autocomplete/index.js.map +1 -0
  226. package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
  227. package/es/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
  228. package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
  229. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +13 -0
  230. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -0
  231. package/es/components/prompt-line/index.d.ts +26 -0
  232. package/es/components/prompt-line/index.js +32 -0
  233. package/es/components/prompt-line/index.js.map +1 -0
  234. package/es/components/prompt-line/src/autocomplete-controller.d.ts +180 -0
  235. package/es/components/prompt-line/src/autocomplete-controller.js +608 -0
  236. package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -0
  237. package/es/components/prompt-line/src/error-message.d.ts +46 -0
  238. package/es/components/prompt-line/src/error-message.js +134 -0
  239. package/es/components/prompt-line/src/error-message.js.map +1 -0
  240. package/es/components/prompt-line/src/error-message.scss.js +13 -0
  241. package/es/components/prompt-line/src/error-message.scss.js.map +1 -0
  242. package/es/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
  243. package/es/components/prompt-line/src/prompt-line-constants.js +27 -0
  244. package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -0
  245. package/es/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
  246. package/es/components/prompt-line/src/prompt-line-controller.js +394 -0
  247. package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -0
  248. package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
  249. package/es/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
  250. package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
  251. package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
  252. package/es/components/prompt-line/src/prompt-line-rich-runtime.js +342 -0
  253. package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
  254. package/es/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
  255. package/es/components/prompt-line/src/prompt-line-shell.js +225 -0
  256. package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -0
  257. package/es/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
  258. package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
  259. package/es/components/prompt-line/src/prompt-line.d.ts +147 -0
  260. package/es/components/prompt-line/src/prompt-line.js +391 -0
  261. package/es/components/prompt-line/src/prompt-line.js.map +1 -0
  262. package/es/components/prompt-line/src/prompt-line.scss.js +13 -0
  263. package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -0
  264. package/es/components/prompt-line/src/send-control.d.ts +46 -0
  265. package/es/components/prompt-line/src/send-control.js +136 -0
  266. package/es/components/prompt-line/src/send-control.js.map +1 -0
  267. package/es/components/prompt-line/src/send-control.scss.js +13 -0
  268. package/es/components/prompt-line/src/send-control.scss.js.map +1 -0
  269. package/es/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
  270. package/es/components/prompt-line/src/stop-streaming-button.js +92 -0
  271. package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -0
  272. package/es/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
  273. package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
  274. package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
  275. package/es/components/prompt-line/src/tiptap/build-extensions.js +38 -0
  276. package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
  277. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
  278. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
  279. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
  280. package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
  281. package/es/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
  282. package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
  283. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +23 -0
  284. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +70 -0
  285. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
  286. package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
  287. package/es/components/prompt-line/src/tiptap/chat-enter.js +46 -0
  288. package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
  289. package/es/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
  290. package/es/components/prompt-line/src/tiptap/editor-styles.js +83 -0
  291. package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
  292. package/es/components/prompt-line/src/tiptap/index.d.ts +42 -0
  293. package/es/components/prompt-line/src/tiptap/index.js +43 -0
  294. package/es/components/prompt-line/src/tiptap/index.js.map +1 -0
  295. package/es/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
  296. package/es/components/prompt-line/src/tiptap/json-utils.js +158 -0
  297. package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
  298. package/es/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
  299. package/es/components/prompt-line/src/tiptap/keymap.js +59 -0
  300. package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -0
  301. package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
  302. package/es/components/prompt-line/src/tiptap/origin-meta.js +33 -0
  303. package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
  304. package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
  305. package/es/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
  306. package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
  307. package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
  308. package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
  309. package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
  310. package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
  311. package/es/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
  312. package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
  313. package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
  314. package/es/components/prompt-line/src/tiptap/token-node-view.js +41 -0
  315. package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
  316. package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +37 -0
  317. package/es/components/prompt-line/src/tiptap/trigger-utils.js +53 -0
  318. package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
  319. package/es/components/prompt-line/src/tiptap/types.d.ts +182 -0
  320. package/es/components/prompt-line/src/tiptap/types.js +8 -0
  321. package/es/components/prompt-line/src/tiptap/types.js.map +1 -0
  322. package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
  323. package/es/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
  324. package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
  325. package/es/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
  326. package/es/components/prompt-line/src/tiptap/value-sync.js +65 -0
  327. package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
  328. package/es/components/prompt-line/src/types.d.ts +100 -0
  329. package/es/components/prompt-line/src/types.js +50 -0
  330. package/es/components/prompt-line/src/types.js.map +1 -0
  331. package/es/components/reasoning-steps/index.d.ts +4 -4
  332. package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
  333. package/es/components/reasoning-steps/src/reasoning-step.js +27 -31
  334. package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  335. package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
  336. package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
  337. package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
  338. package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
  339. package/es/components/reasoning-steps/src/reasoning-steps.js +19 -20
  340. package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  341. package/es/components/shared/dynamic-css-var-sheet.js +7 -7
  342. package/es/components/shared/media-utils/script-loader.js +1 -2
  343. package/es/components/shared/media-utils/script-loader.js.map +1 -1
  344. package/es/components/table/index.d.ts +3 -3
  345. package/es/components/table/src/table-loader.d.ts +1 -1
  346. package/es/components/table/src/table-loader.js +1 -1
  347. package/es/components/table/src/table-pagination.template.d.ts +3 -3
  348. package/es/components/table/src/table-pagination.template.js +4 -5
  349. package/es/components/table/src/table-pagination.template.js.map +1 -1
  350. package/es/components/table/src/table-runtime.d.ts +2 -2
  351. package/es/components/table/src/table-skeleton.template.d.ts +1 -1
  352. package/es/components/table/src/table-skeleton.template.js +2 -3
  353. package/es/components/table/src/table-skeleton.template.js.map +1 -1
  354. package/es/components/table/src/table.d.ts +3 -4
  355. package/es/components/table/src/table.js +36 -39
  356. package/es/components/table/src/table.js.map +1 -1
  357. package/es/components/table/src/table.template.d.ts +5 -5
  358. package/es/components/table/src/table.template.js +6 -9
  359. package/es/components/table/src/table.template.js.map +1 -1
  360. package/es/components/toolbar/index.d.ts +1 -1
  361. package/es/components/toolbar/src/toolbar.d.ts +9 -7
  362. package/es/components/toolbar/src/toolbar.js +45 -33
  363. package/es/components/toolbar/src/toolbar.js.map +1 -1
  364. package/es/components/toolbar/src/toolbar.scss.js +1 -1
  365. package/es/components/truncated-text/index.d.ts +1 -1
  366. package/es/components/truncated-text/src/truncated-text.d.ts +5 -5
  367. package/es/components/truncated-text/src/truncated-text.js +26 -28
  368. package/es/components/truncated-text/src/truncated-text.js.map +1 -1
  369. package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
  370. package/es/components/video-player/index.d.ts +2 -2
  371. package/es/components/video-player/src/providers/base-provider.d.ts +3 -3
  372. package/es/components/video-player/src/providers/base-provider.js +5 -6
  373. package/es/components/video-player/src/providers/base-provider.js.map +1 -1
  374. package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
  375. package/es/components/video-player/src/providers/kaltura-provider.js +23 -24
  376. package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  377. package/es/components/video-player/src/providers/native-video-provider.d.ts +2 -2
  378. package/es/components/video-player/src/providers/native-video-provider.js +20 -21
  379. package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
  380. package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
  381. package/es/components/video-player/src/providers/vimeo-provider.js +23 -24
  382. package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  383. package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
  384. package/es/components/video-player/src/providers/youtube-provider.js +15 -16
  385. package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
  386. package/es/components/video-player/src/utils/url-detector.js +1 -2
  387. package/es/components/video-player/src/utils/url-detector.js.map +1 -1
  388. package/es/components/video-player/src/video-player.d.ts +2 -2
  389. package/es/components/video-player/src/video-player.js +37 -42
  390. package/es/components/video-player/src/video-player.js.map +1 -1
  391. package/es/components/workspace-shell/index.d.ts +4 -4
  392. package/es/components/workspace-shell/src/header-collapsible-manager.js +13 -14
  393. package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
  394. package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
  395. package/es/components/workspace-shell/src/workspace-shell-body.js +2 -2
  396. package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
  397. package/es/components/workspace-shell/src/workspace-shell-footer.js +10 -11
  398. package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
  399. package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
  400. package/es/components/workspace-shell/src/workspace-shell-header.js +10 -13
  401. package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  402. package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -1
  403. package/es/components/workspace-shell/src/workspace-shell.js +3 -3
  404. package/es/globals/decorators/carbon-element.d.ts +4 -4
  405. package/es/globals/decorators/carbon-element.js +2 -2
  406. package/es/globals/decorators/index.d.ts +1 -1
  407. package/es/globals/scss/common.scss.js +1 -1
  408. package/es/globals/settings.js +2 -2
  409. package/es/globals/utils/aria-announcer-manager.d.ts +62 -0
  410. package/es/globals/utils/aria-announcer-manager.js +125 -0
  411. package/es/globals/utils/aria-announcer-manager.js.map +1 -0
  412. package/es/globals/utils/browser-utils.d.ts +10 -0
  413. package/es/globals/utils/browser-utils.js +37 -0
  414. package/es/globals/utils/browser-utils.js.map +1 -0
  415. package/es/globals/utils/csv.d.ts +8 -0
  416. package/es/globals/utils/csv.js +37 -0
  417. package/es/globals/utils/csv.js.map +1 -0
  418. package/es/globals/utils/dom-utils.d.ts +6 -0
  419. package/es/globals/utils/dom-utils.js +39 -0
  420. package/es/globals/utils/dom-utils.js.map +1 -0
  421. package/es/globals/utils/focus-utils.js +4 -4
  422. package/es/{react → globals}/utils/iconTransform.d.ts +2 -2
  423. package/es/{react → globals}/utils/iconTransform.js +22 -23
  424. package/es/globals/utils/iconTransform.js.map +1 -0
  425. package/es/globals/utils/rtl-utils.js +1 -1
  426. package/es/globals/utils/uuid.js +5 -5
  427. package/es/react/__tests__/jest.setup.js +13 -14
  428. package/es/react/__tests__/jest.setup.js.map +1 -1
  429. package/es/react/ai-label-action-button.d.ts +1 -1
  430. package/es/react/ai-label-action-button.js +1 -1
  431. package/es/react/audio-player.d.ts +1 -1
  432. package/es/react/audio-player.js +5 -6
  433. package/es/react/audio-player.js.map +1 -1
  434. package/es/react/autocomplete.d.ts +11 -0
  435. package/es/react/autocomplete.js +36 -0
  436. package/es/react/autocomplete.js.map +1 -0
  437. package/es/react/card.d.ts +1 -1
  438. package/es/react/card.js +5 -5
  439. package/es/react/carousel.d.ts +1 -1
  440. package/es/react/carousel.js +2 -2
  441. package/es/react/chain-of-thought-step.d.ts +1 -1
  442. package/es/react/chain-of-thought-step.js +4 -4
  443. package/es/react/chain-of-thought-toggle.d.ts +2 -2
  444. package/es/react/chain-of-thought-toggle.js +3 -3
  445. package/es/react/chain-of-thought.d.ts +2 -2
  446. package/es/react/chain-of-thought.js +4 -4
  447. package/es/react/chat-button.d.ts +3 -3
  448. package/es/react/chat-button.js +2 -2
  449. package/es/react/chat-header.d.ts +3 -3
  450. package/es/react/chat-header.js +3 -3
  451. package/es/react/chat-shell.d.ts +2 -2
  452. package/es/react/chat-shell.js +2 -2
  453. package/es/react/code-snippet.d.ts +4 -4
  454. package/es/react/code-snippet.js +4 -4
  455. package/es/react/error-message.d.ts +11 -0
  456. package/es/react/error-message.js +28 -0
  457. package/es/react/error-message.js.map +1 -0
  458. package/es/react/feedback-buttons.d.ts +1 -1
  459. package/es/react/feedback-buttons.js +3 -3
  460. package/es/react/feedback.d.ts +2 -2
  461. package/es/react/feedback.js +4 -4
  462. package/es/react/file-upload-item.d.ts +11 -0
  463. package/es/react/file-upload-item.js +31 -0
  464. package/es/react/file-upload-item.js.map +1 -0
  465. package/es/react/file-uploads.d.ts +11 -0
  466. package/es/react/file-uploads.js +31 -0
  467. package/es/react/file-uploads.js.map +1 -0
  468. package/es/react/history/history-content.d.ts +1 -1
  469. package/es/react/history/history-content.js +1 -1
  470. package/es/react/history/history-delete-panel.d.ts +1 -1
  471. package/es/react/history/history-delete-panel.js +3 -3
  472. package/es/react/history/history-header.d.ts +1 -1
  473. package/es/react/history/history-header.js +2 -2
  474. package/es/react/history/history-loading.d.ts +1 -1
  475. package/es/react/history/history-loading.js +1 -1
  476. package/es/react/history/history-panel-item-input.d.ts +1 -1
  477. package/es/react/history/history-panel-item-input.js +4 -4
  478. package/es/react/history/history-panel-item.d.ts +1 -1
  479. package/es/react/history/history-panel-item.js +6 -6
  480. package/es/react/history/history-panel-items.d.ts +1 -1
  481. package/es/react/history/history-panel-items.js +1 -1
  482. package/es/react/history/history-panel-menu.d.ts +1 -1
  483. package/es/react/history/history-panel-menu.js +1 -1
  484. package/es/react/history/history-panel.d.ts +1 -1
  485. package/es/react/history/history-panel.js +1 -1
  486. package/es/react/history/history-search-item.d.ts +1 -1
  487. package/es/react/history/history-search-item.js +2 -2
  488. package/es/react/history/history-shell.d.ts +1 -1
  489. package/es/react/history/history-shell.js +1 -1
  490. package/es/react/history/history-toolbar.d.ts +1 -1
  491. package/es/react/history/history-toolbar.js +3 -3
  492. package/es/react/history/index.d.ts +12 -12
  493. package/es/react/hooks/useChatAutocomplete.d.ts +41 -0
  494. package/es/react/hooks/useChatAutocomplete.js +204 -0
  495. package/es/react/hooks/useChatAutocomplete.js.map +1 -0
  496. package/es/react/input-send-control.d.ts +11 -0
  497. package/es/react/input-send-control.js +32 -0
  498. package/es/react/input-send-control.js.map +1 -0
  499. package/es/react/launcher.d.ts +11 -0
  500. package/es/react/launcher.js +31 -0
  501. package/es/react/launcher.js.map +1 -0
  502. package/es/react/markdown.d.ts +7 -7
  503. package/es/react/markdown.js +13 -13
  504. package/es/react/markdown.js.map +1 -1
  505. package/es/react/panel.d.ts +1 -1
  506. package/es/react/panel.js +7 -7
  507. package/es/react/processing.d.ts +1 -1
  508. package/es/react/processing.js +2 -2
  509. package/es/react/prompt-line-shell.d.ts +18 -0
  510. package/es/react/prompt-line-shell.js +36 -0
  511. package/es/react/prompt-line-shell.js.map +1 -0
  512. package/es/react/prompt-line.d.ts +25 -0
  513. package/es/react/prompt-line.js +52 -0
  514. package/es/react/prompt-line.js.map +1 -0
  515. package/es/react/reasoning-step.d.ts +1 -1
  516. package/es/react/reasoning-step.js +4 -4
  517. package/es/react/reasoning-steps-toggle.d.ts +2 -2
  518. package/es/react/reasoning-steps-toggle.js +3 -3
  519. package/es/react/reasoning-steps.d.ts +1 -1
  520. package/es/react/reasoning-steps.js +2 -2
  521. package/es/react/stop-streaming-button.d.ts +11 -0
  522. package/es/react/stop-streaming-button.js +28 -0
  523. package/es/react/stop-streaming-button.js.map +1 -0
  524. package/es/react/table.d.ts +2 -2
  525. package/es/react/table.js +1 -1
  526. package/es/react/tool-call-data.d.ts +1 -1
  527. package/es/react/tool-call-data.js +2 -2
  528. package/es/react/toolbar.d.ts +4 -4
  529. package/es/react/toolbar.js +3 -3
  530. package/es/react/transcript.d.ts +1 -1
  531. package/es/react/transcript.js +3 -4
  532. package/es/react/transcript.js.map +1 -1
  533. package/es/react/utils/transformSuggestionConfig.d.ts +21 -0
  534. package/es/react/utils/transformSuggestionConfig.js +67 -0
  535. package/es/react/utils/transformSuggestionConfig.js.map +1 -0
  536. package/es/react/utils/withWebComponentBridge.d.ts +1 -1
  537. package/es/react/utils/withWebComponentBridge.js +22 -22
  538. package/es/react/video-player.d.ts +1 -1
  539. package/es/react/video-player.js +5 -6
  540. package/es/react/video-player.js.map +1 -1
  541. package/es/react/workspace-shell.d.ts +1 -1
  542. package/es/react/workspace-shell.js +6 -6
  543. package/es/testing/PageObjectId.js +1 -2
  544. package/es/testing/PageObjectId.js.map +1 -1
  545. package/es/testing/load-all-lazy-deps.d.ts +2 -2
  546. package/es/testing/load-all-lazy-deps.js +1 -1
  547. package/es/typings/overflow-menu.d.ts +2 -2
  548. package/es-custom/components/audio-player/index.d.ts +4 -4
  549. package/es-custom/components/audio-player/src/audio-player.d.ts +1 -1
  550. package/es-custom/components/audio-player/src/audio-player.js +33 -39
  551. package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
  552. package/es-custom/components/audio-player/src/providers/base-provider.d.ts +2 -2
  553. package/es-custom/components/audio-player/src/providers/base-provider.js +9 -10
  554. package/es-custom/components/audio-player/src/providers/base-provider.js.map +1 -1
  555. package/es-custom/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
  556. package/es-custom/components/audio-player/src/providers/native-audio-provider.js +18 -19
  557. package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  558. package/es-custom/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
  559. package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +14 -15
  560. package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
  561. package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
  562. package/es-custom/components/audio-player/src/transcript.js +14 -17
  563. package/es-custom/components/audio-player/src/transcript.js.map +1 -1
  564. package/es-custom/components/audio-player/src/utils/url-detector.js +1 -2
  565. package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
  566. package/es-custom/components/card/index.d.ts +4 -4
  567. package/es-custom/components/card/src/card-footer.d.ts +5 -5
  568. package/es-custom/components/card/src/card-footer.js +12 -16
  569. package/es-custom/components/card/src/card-footer.js.map +1 -1
  570. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  571. package/es-custom/components/card/src/card-steps.d.ts +4 -4
  572. package/es-custom/components/card/src/card-steps.js +3 -5
  573. package/es-custom/components/card/src/card-steps.js.map +1 -1
  574. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  575. package/es-custom/components/card/src/card.d.ts +2 -2
  576. package/es-custom/components/card/src/card.js +3 -3
  577. package/es-custom/components/card/src/card.scss.js +1 -1
  578. package/es-custom/components/carousel/index.d.ts +1 -1
  579. package/es-custom/components/carousel/src/carousel.d.ts +2 -2
  580. package/es-custom/components/carousel/src/carousel.js +4 -6
  581. package/es-custom/components/carousel/src/carousel.js.map +1 -1
  582. package/es-custom/components/carousel/src/carousel.scss.js +1 -1
  583. package/es-custom/components/chain-of-thought/defs.js +1 -1
  584. package/es-custom/components/chain-of-thought/index.d.ts +10 -10
  585. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
  586. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
  587. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  588. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
  589. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
  590. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
  591. package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
  592. package/es-custom/components/chain-of-thought/src/chain-of-thought.js +16 -17
  593. package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
  594. package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
  595. package/es-custom/components/chain-of-thought/src/tool-call-data.js +17 -23
  596. package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  597. package/es-custom/components/chat-button/defs.d.ts +1 -1
  598. package/es-custom/components/chat-button/defs.js +1 -1
  599. package/es-custom/components/chat-button/index.d.ts +2 -2
  600. package/es-custom/components/chat-button/src/chat-button.d.ts +5 -5
  601. package/es-custom/components/chat-button/src/chat-button.js +6 -6
  602. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  603. package/es-custom/components/chat-history/index.d.ts +11 -11
  604. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  605. package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
  606. package/es-custom/components/chat-history/src/history-content.js +6 -6
  607. package/es-custom/components/chat-history/src/history-delete-panel.d.ts +2 -2
  608. package/es-custom/components/chat-history/src/history-delete-panel.js +11 -11
  609. package/es-custom/components/chat-history/src/history-header.d.ts +2 -2
  610. package/es-custom/components/chat-history/src/history-header.js +9 -10
  611. package/es-custom/components/chat-history/src/history-header.js.map +1 -1
  612. package/es-custom/components/chat-history/src/history-loading.d.ts +2 -2
  613. package/es-custom/components/chat-history/src/history-loading.js +1 -1
  614. package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +2 -2
  615. package/es-custom/components/chat-history/src/history-panel-item-input.js +21 -22
  616. package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
  617. package/es-custom/components/chat-history/src/history-panel-item.d.ts +5 -5
  618. package/es-custom/components/chat-history/src/history-panel-item.js +39 -41
  619. package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
  620. package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
  621. package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
  622. package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
  623. package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
  624. package/es-custom/components/chat-history/src/history-panel.js +3 -3
  625. package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -1
  626. package/es-custom/components/chat-history/src/history-search-item.js +4 -4
  627. package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
  628. package/es-custom/components/chat-history/src/history-shell.js +3 -3
  629. package/es-custom/components/chat-history/src/history-toolbar.d.ts +9 -5
  630. package/es-custom/components/chat-history/src/history-toolbar.js +13 -10
  631. package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
  632. package/es-custom/components/chat-shell/index.d.ts +5 -5
  633. package/es-custom/components/chat-shell/src/chat-header.d.ts +8 -8
  634. package/es-custom/components/chat-shell/src/chat-header.js +37 -45
  635. package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
  636. package/es-custom/components/chat-shell/src/corner-manager.d.ts +2 -2
  637. package/es-custom/components/chat-shell/src/corner-manager.js +31 -32
  638. package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -1
  639. package/es-custom/components/chat-shell/src/initialization-manager.d.ts +2 -2
  640. package/es-custom/components/chat-shell/src/initialization-manager.js +1 -2
  641. package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -1
  642. package/es-custom/components/chat-shell/src/panel-manager.d.ts +1 -1
  643. package/es-custom/components/chat-shell/src/panel-manager.js +12 -12
  644. package/es-custom/components/chat-shell/src/panel.d.ts +2 -2
  645. package/es-custom/components/chat-shell/src/panel.js +99 -100
  646. package/es-custom/components/chat-shell/src/panel.js.map +1 -1
  647. package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
  648. package/es-custom/components/chat-shell/src/resize-observer-manager.js +10 -11
  649. package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -1
  650. package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
  651. package/es-custom/components/chat-shell/src/shell.js +130 -137
  652. package/es-custom/components/chat-shell/src/shell.js.map +1 -1
  653. package/es-custom/components/chat-shell/src/slot-observer.d.ts +2 -2
  654. package/es-custom/components/chat-shell/src/slot-observer.js +5 -9
  655. package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
  656. package/es-custom/components/chat-shell/src/types.d.ts +4 -4
  657. package/es-custom/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
  658. package/es-custom/components/chat-shell/src/workspace-manager-utils.js +5 -6
  659. package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
  660. package/es-custom/components/chat-shell/src/workspace-manager.d.ts +2 -2
  661. package/es-custom/components/chat-shell/src/workspace-manager.js +33 -34
  662. package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
  663. package/es-custom/components/code-snippet/index.d.ts +4 -4
  664. package/es-custom/components/code-snippet/src/code-snippet.d.ts +19 -8
  665. package/es-custom/components/code-snippet/src/code-snippet.js +124 -98
  666. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  667. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  668. package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
  669. package/es-custom/components/code-snippet/src/codemirror/base-setup.js +1 -1
  670. package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
  671. package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
  672. package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
  673. package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
  674. package/es-custom/components/code-snippet/src/codemirror/content-sync.js +2 -2
  675. package/es-custom/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
  676. package/es-custom/components/code-snippet/src/codemirror/detect-language.js +77 -0
  677. package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
  678. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
  679. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
  680. package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
  681. package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +4 -4
  682. package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
  683. package/es-custom/components/code-snippet/src/codemirror/language-controller.js +3 -3
  684. package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
  685. package/es-custom/components/code-snippet/src/codemirror/language-data.js +299 -299
  686. package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
  687. package/es-custom/components/code-snippet/src/codemirror/language-utils.js +60 -66
  688. package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
  689. package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +15 -15
  690. package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +1 -1
  691. package/es-custom/components/code-snippet/src/codemirror/theme.js +168 -163
  692. package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
  693. package/es-custom/components/code-snippet/src/dom-utils.js +6 -6
  694. package/es-custom/components/code-snippet/src/layout-utils.d.ts +2 -2
  695. package/es-custom/components/code-snippet/src/layout-utils.js +28 -15
  696. package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
  697. package/es-custom/components/code-snippet/src/streaming-manager.js +5 -5
  698. package/es-custom/components/feedback/index.d.ts +4 -4
  699. package/es-custom/components/feedback/src/feedback-buttons.d.ts +3 -3
  700. package/es-custom/components/feedback/src/feedback-buttons.js +17 -19
  701. package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
  702. package/es-custom/components/feedback/src/feedback.d.ts +9 -9
  703. package/es-custom/components/feedback/src/feedback.js +39 -45
  704. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  705. package/es-custom/components/feedback/src/feedback.scss.js +1 -1
  706. package/es-custom/components/file-uploads/index.d.ts +13 -0
  707. package/es-custom/components/file-uploads/index.js +10 -0
  708. package/es-custom/components/file-uploads/index.js.map +1 -0
  709. package/es-custom/components/file-uploads/src/file-type-icon.d.ts +18 -0
  710. package/es-custom/components/file-uploads/src/file-type-icon.js +87 -0
  711. package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -0
  712. package/es-custom/components/file-uploads/src/file-upload-item.d.ts +104 -0
  713. package/es-custom/components/file-uploads/src/file-upload-item.js +366 -0
  714. package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -0
  715. package/es-custom/components/file-uploads/src/file-upload-item.scss.js +13 -0
  716. package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
  717. package/es-custom/components/file-uploads/src/file-uploads.d.ts +91 -0
  718. package/es-custom/components/file-uploads/src/file-uploads.js +238 -0
  719. package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -0
  720. package/es-custom/components/file-uploads/src/file-uploads.scss.js +13 -0
  721. package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +1 -0
  722. package/es-custom/components/file-uploads/src/types.d.ts +39 -0
  723. package/es-custom/components/file-uploads/src/types.js +8 -0
  724. package/es-custom/components/file-uploads/src/types.js.map +1 -0
  725. package/es-custom/components/launcher/index.d.ts +9 -0
  726. package/es-custom/components/launcher/index.js +9 -0
  727. package/es-custom/components/launcher/index.js.map +1 -0
  728. package/es-custom/components/launcher/src/launcher.d.ts +68 -0
  729. package/es-custom/components/launcher/src/launcher.js +152 -0
  730. package/es-custom/components/launcher/src/launcher.js.map +1 -0
  731. package/es-custom/components/launcher/src/launcher.scss.js +13 -0
  732. package/es-custom/components/launcher/src/launcher.scss.js.map +1 -0
  733. package/es-custom/components/markdown/index.d.ts +5 -4
  734. package/es-custom/components/markdown/index.js +1 -0
  735. package/es-custom/components/markdown/index.js.map +1 -1
  736. package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +10 -3
  737. package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
  738. package/es-custom/components/markdown/src/markdown-renderer.js +85 -80
  739. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  740. package/es-custom/components/markdown/src/markdown-token-tree.d.ts +9 -1
  741. package/es-custom/components/markdown/src/markdown-token-tree.js +32 -21
  742. package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
  743. package/es-custom/components/markdown/src/markdown.d.ts +4 -7
  744. package/es-custom/components/markdown/src/markdown.js +99 -81
  745. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  746. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  747. package/es-custom/components/markdown/src/markdown.template.js +1 -1
  748. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
  749. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
  750. package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
  751. package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
  752. package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
  753. package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
  754. package/es-custom/components/markdown/src/utils/html-helpers.d.ts +1 -1
  755. package/es-custom/components/markdown/src/utils/html-helpers.js +72 -72
  756. package/es-custom/components/markdown/src/utils/lit-directives.d.ts +2 -2
  757. package/es-custom/components/markdown/src/utils/lit-directives.js +5 -5
  758. package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
  759. package/es-custom/components/markdown/src/utils/plugin-fallback.js +61 -61
  760. package/es-custom/components/markdown/src/utils/streaming-table.d.ts +1 -1
  761. package/es-custom/components/markdown/src/utils/streaming-table.js +6 -6
  762. package/es-custom/components/markdown/src/utils/table-helpers.d.ts +4 -4
  763. package/es-custom/components/markdown/src/utils/table-helpers.js +17 -18
  764. package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
  765. package/es-custom/components/processing/index.d.ts +1 -1
  766. package/es-custom/components/processing/src/processing.d.ts +2 -2
  767. package/es-custom/components/processing/src/processing.js +2 -2
  768. package/es-custom/components/prompt-line/autocomplete/index.d.ts +12 -0
  769. package/es-custom/components/prompt-line/autocomplete/index.js +9 -0
  770. package/es-custom/components/prompt-line/autocomplete/index.js.map +1 -0
  771. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
  772. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
  773. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
  774. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +13 -0
  775. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -0
  776. package/es-custom/components/prompt-line/index.d.ts +26 -0
  777. package/es-custom/components/prompt-line/index.js +32 -0
  778. package/es-custom/components/prompt-line/index.js.map +1 -0
  779. package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +180 -0
  780. package/es-custom/components/prompt-line/src/autocomplete-controller.js +608 -0
  781. package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -0
  782. package/es-custom/components/prompt-line/src/error-message.d.ts +46 -0
  783. package/es-custom/components/prompt-line/src/error-message.js +134 -0
  784. package/es-custom/components/prompt-line/src/error-message.js.map +1 -0
  785. package/es-custom/components/prompt-line/src/error-message.scss.js +13 -0
  786. package/es-custom/components/prompt-line/src/error-message.scss.js.map +1 -0
  787. package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
  788. package/es-custom/components/prompt-line/src/prompt-line-constants.js +27 -0
  789. package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -0
  790. package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
  791. package/es-custom/components/prompt-line/src/prompt-line-controller.js +394 -0
  792. package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -0
  793. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
  794. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
  795. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
  796. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
  797. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +342 -0
  798. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
  799. package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
  800. package/es-custom/components/prompt-line/src/prompt-line-shell.js +225 -0
  801. package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -0
  802. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
  803. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
  804. package/es-custom/components/prompt-line/src/prompt-line.d.ts +147 -0
  805. package/es-custom/components/prompt-line/src/prompt-line.js +391 -0
  806. package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -0
  807. package/es-custom/components/prompt-line/src/prompt-line.scss.js +13 -0
  808. package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +1 -0
  809. package/es-custom/components/prompt-line/src/send-control.d.ts +46 -0
  810. package/es-custom/components/prompt-line/src/send-control.js +136 -0
  811. package/es-custom/components/prompt-line/src/send-control.js.map +1 -0
  812. package/es-custom/components/prompt-line/src/send-control.scss.js +13 -0
  813. package/es-custom/components/prompt-line/src/send-control.scss.js.map +1 -0
  814. package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
  815. package/es-custom/components/prompt-line/src/stop-streaming-button.js +92 -0
  816. package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -0
  817. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
  818. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
  819. package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
  820. package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +38 -0
  821. package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
  822. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
  823. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
  824. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
  825. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
  826. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
  827. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
  828. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +23 -0
  829. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +70 -0
  830. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
  831. package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
  832. package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +46 -0
  833. package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
  834. package/es-custom/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
  835. package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +83 -0
  836. package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
  837. package/es-custom/components/prompt-line/src/tiptap/index.d.ts +42 -0
  838. package/es-custom/components/prompt-line/src/tiptap/index.js +43 -0
  839. package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -0
  840. package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
  841. package/es-custom/components/prompt-line/src/tiptap/json-utils.js +158 -0
  842. package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
  843. package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
  844. package/es-custom/components/prompt-line/src/tiptap/keymap.js +59 -0
  845. package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +1 -0
  846. package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
  847. package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +33 -0
  848. package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
  849. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
  850. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
  851. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
  852. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
  853. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
  854. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
  855. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
  856. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
  857. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
  858. package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
  859. package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +41 -0
  860. package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
  861. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +37 -0
  862. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +53 -0
  863. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
  864. package/es-custom/components/prompt-line/src/tiptap/types.d.ts +182 -0
  865. package/es-custom/components/prompt-line/src/tiptap/types.js +8 -0
  866. package/es-custom/components/prompt-line/src/tiptap/types.js.map +1 -0
  867. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
  868. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
  869. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
  870. package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
  871. package/es-custom/components/prompt-line/src/tiptap/value-sync.js +65 -0
  872. package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
  873. package/es-custom/components/prompt-line/src/types.d.ts +100 -0
  874. package/es-custom/components/prompt-line/src/types.js +50 -0
  875. package/es-custom/components/prompt-line/src/types.js.map +1 -0
  876. package/es-custom/components/reasoning-steps/index.d.ts +4 -4
  877. package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
  878. package/es-custom/components/reasoning-steps/src/reasoning-step.js +27 -31
  879. package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  880. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
  881. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
  882. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
  883. package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
  884. package/es-custom/components/reasoning-steps/src/reasoning-steps.js +19 -20
  885. package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  886. package/es-custom/components/shared/dynamic-css-var-sheet.js +7 -7
  887. package/es-custom/components/shared/media-utils/script-loader.js +1 -2
  888. package/es-custom/components/shared/media-utils/script-loader.js.map +1 -1
  889. package/es-custom/components/table/index.d.ts +3 -3
  890. package/es-custom/components/table/src/table-loader.d.ts +1 -1
  891. package/es-custom/components/table/src/table-loader.js +1 -1
  892. package/es-custom/components/table/src/table-pagination.template.d.ts +3 -3
  893. package/es-custom/components/table/src/table-pagination.template.js +4 -5
  894. package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
  895. package/es-custom/components/table/src/table-runtime.d.ts +2 -2
  896. package/es-custom/components/table/src/table-skeleton.template.d.ts +1 -1
  897. package/es-custom/components/table/src/table-skeleton.template.js +2 -3
  898. package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
  899. package/es-custom/components/table/src/table.d.ts +3 -4
  900. package/es-custom/components/table/src/table.js +36 -39
  901. package/es-custom/components/table/src/table.js.map +1 -1
  902. package/es-custom/components/table/src/table.template.d.ts +5 -5
  903. package/es-custom/components/table/src/table.template.js +6 -9
  904. package/es-custom/components/table/src/table.template.js.map +1 -1
  905. package/es-custom/components/toolbar/index.d.ts +1 -1
  906. package/es-custom/components/toolbar/src/toolbar.d.ts +9 -7
  907. package/es-custom/components/toolbar/src/toolbar.js +45 -33
  908. package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
  909. package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
  910. package/es-custom/components/truncated-text/index.d.ts +1 -1
  911. package/es-custom/components/truncated-text/src/truncated-text.d.ts +5 -5
  912. package/es-custom/components/truncated-text/src/truncated-text.js +26 -28
  913. package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
  914. package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
  915. package/es-custom/components/video-player/index.d.ts +2 -2
  916. package/es-custom/components/video-player/src/providers/base-provider.d.ts +3 -3
  917. package/es-custom/components/video-player/src/providers/base-provider.js +5 -6
  918. package/es-custom/components/video-player/src/providers/base-provider.js.map +1 -1
  919. package/es-custom/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
  920. package/es-custom/components/video-player/src/providers/kaltura-provider.js +23 -24
  921. package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  922. package/es-custom/components/video-player/src/providers/native-video-provider.d.ts +2 -2
  923. package/es-custom/components/video-player/src/providers/native-video-provider.js +20 -21
  924. package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
  925. package/es-custom/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
  926. package/es-custom/components/video-player/src/providers/vimeo-provider.js +23 -24
  927. package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  928. package/es-custom/components/video-player/src/providers/youtube-provider.d.ts +2 -2
  929. package/es-custom/components/video-player/src/providers/youtube-provider.js +15 -16
  930. package/es-custom/components/video-player/src/providers/youtube-provider.js.map +1 -1
  931. package/es-custom/components/video-player/src/utils/url-detector.js +1 -2
  932. package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
  933. package/es-custom/components/video-player/src/video-player.d.ts +2 -2
  934. package/es-custom/components/video-player/src/video-player.js +37 -42
  935. package/es-custom/components/video-player/src/video-player.js.map +1 -1
  936. package/es-custom/components/workspace-shell/index.d.ts +4 -4
  937. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +13 -14
  938. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
  939. package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
  940. package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -2
  941. package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
  942. package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +10 -11
  943. package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
  944. package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
  945. package/es-custom/components/workspace-shell/src/workspace-shell-header.js +10 -13
  946. package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  947. package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
  948. package/es-custom/components/workspace-shell/src/workspace-shell.js +3 -3
  949. package/es-custom/globals/decorators/carbon-element.d.ts +4 -4
  950. package/es-custom/globals/decorators/carbon-element.js +2 -2
  951. package/es-custom/globals/decorators/index.d.ts +1 -1
  952. package/es-custom/globals/scss/common.scss.js +1 -1
  953. package/es-custom/globals/settings.js +2 -2
  954. package/es-custom/globals/utils/aria-announcer-manager.d.ts +62 -0
  955. package/es-custom/globals/utils/aria-announcer-manager.js +125 -0
  956. package/es-custom/globals/utils/aria-announcer-manager.js.map +1 -0
  957. package/es-custom/globals/utils/browser-utils.d.ts +10 -0
  958. package/es-custom/globals/utils/browser-utils.js +37 -0
  959. package/es-custom/globals/utils/browser-utils.js.map +1 -0
  960. package/es-custom/globals/utils/csv.d.ts +8 -0
  961. package/es-custom/globals/utils/csv.js +37 -0
  962. package/es-custom/globals/utils/csv.js.map +1 -0
  963. package/es-custom/globals/utils/dom-utils.d.ts +6 -0
  964. package/es-custom/globals/utils/dom-utils.js +39 -0
  965. package/es-custom/globals/utils/dom-utils.js.map +1 -0
  966. package/es-custom/globals/utils/focus-utils.js +4 -4
  967. package/es-custom/{react → globals}/utils/iconTransform.d.ts +2 -2
  968. package/es-custom/{react → globals}/utils/iconTransform.js +22 -23
  969. package/es-custom/globals/utils/iconTransform.js.map +1 -0
  970. package/es-custom/globals/utils/rtl-utils.js +1 -1
  971. package/es-custom/globals/utils/uuid.js +5 -5
  972. package/es-custom/react/__tests__/jest.setup.js +13 -14
  973. package/es-custom/react/__tests__/jest.setup.js.map +1 -1
  974. package/es-custom/react/ai-label-action-button.d.ts +1 -1
  975. package/es-custom/react/ai-label-action-button.js +1 -1
  976. package/es-custom/react/audio-player.d.ts +1 -1
  977. package/es-custom/react/audio-player.js +5 -6
  978. package/es-custom/react/audio-player.js.map +1 -1
  979. package/es-custom/react/autocomplete.d.ts +11 -0
  980. package/es-custom/react/autocomplete.js +36 -0
  981. package/es-custom/react/autocomplete.js.map +1 -0
  982. package/es-custom/react/card.d.ts +1 -1
  983. package/es-custom/react/card.js +5 -5
  984. package/es-custom/react/carousel.d.ts +1 -1
  985. package/es-custom/react/carousel.js +2 -2
  986. package/es-custom/react/chain-of-thought-step.d.ts +1 -1
  987. package/es-custom/react/chain-of-thought-step.js +4 -4
  988. package/es-custom/react/chain-of-thought-toggle.d.ts +2 -2
  989. package/es-custom/react/chain-of-thought-toggle.js +3 -3
  990. package/es-custom/react/chain-of-thought.d.ts +2 -2
  991. package/es-custom/react/chain-of-thought.js +4 -4
  992. package/es-custom/react/chat-button.d.ts +3 -3
  993. package/es-custom/react/chat-button.js +2 -2
  994. package/es-custom/react/chat-header.d.ts +3 -3
  995. package/es-custom/react/chat-header.js +3 -3
  996. package/es-custom/react/chat-shell.d.ts +2 -2
  997. package/es-custom/react/chat-shell.js +2 -2
  998. package/es-custom/react/code-snippet.d.ts +4 -4
  999. package/es-custom/react/code-snippet.js +4 -4
  1000. package/es-custom/react/error-message.d.ts +11 -0
  1001. package/es-custom/react/error-message.js +28 -0
  1002. package/es-custom/react/error-message.js.map +1 -0
  1003. package/es-custom/react/feedback-buttons.d.ts +1 -1
  1004. package/es-custom/react/feedback-buttons.js +3 -3
  1005. package/es-custom/react/feedback.d.ts +2 -2
  1006. package/es-custom/react/feedback.js +4 -4
  1007. package/es-custom/react/file-upload-item.d.ts +11 -0
  1008. package/es-custom/react/file-upload-item.js +31 -0
  1009. package/es-custom/react/file-upload-item.js.map +1 -0
  1010. package/es-custom/react/file-uploads.d.ts +11 -0
  1011. package/es-custom/react/file-uploads.js +31 -0
  1012. package/es-custom/react/file-uploads.js.map +1 -0
  1013. package/es-custom/react/history/history-content.d.ts +1 -1
  1014. package/es-custom/react/history/history-content.js +1 -1
  1015. package/es-custom/react/history/history-delete-panel.d.ts +1 -1
  1016. package/es-custom/react/history/history-delete-panel.js +3 -3
  1017. package/es-custom/react/history/history-header.d.ts +1 -1
  1018. package/es-custom/react/history/history-header.js +2 -2
  1019. package/es-custom/react/history/history-loading.d.ts +1 -1
  1020. package/es-custom/react/history/history-loading.js +1 -1
  1021. package/es-custom/react/history/history-panel-item-input.d.ts +1 -1
  1022. package/es-custom/react/history/history-panel-item-input.js +4 -4
  1023. package/es-custom/react/history/history-panel-item.d.ts +1 -1
  1024. package/es-custom/react/history/history-panel-item.js +6 -6
  1025. package/es-custom/react/history/history-panel-items.d.ts +1 -1
  1026. package/es-custom/react/history/history-panel-items.js +1 -1
  1027. package/es-custom/react/history/history-panel-menu.d.ts +1 -1
  1028. package/es-custom/react/history/history-panel-menu.js +1 -1
  1029. package/es-custom/react/history/history-panel.d.ts +1 -1
  1030. package/es-custom/react/history/history-panel.js +1 -1
  1031. package/es-custom/react/history/history-search-item.d.ts +1 -1
  1032. package/es-custom/react/history/history-search-item.js +2 -2
  1033. package/es-custom/react/history/history-shell.d.ts +1 -1
  1034. package/es-custom/react/history/history-shell.js +1 -1
  1035. package/es-custom/react/history/history-toolbar.d.ts +1 -1
  1036. package/es-custom/react/history/history-toolbar.js +3 -3
  1037. package/es-custom/react/history/index.d.ts +12 -12
  1038. package/es-custom/react/hooks/useChatAutocomplete.d.ts +41 -0
  1039. package/es-custom/react/hooks/useChatAutocomplete.js +204 -0
  1040. package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -0
  1041. package/es-custom/react/input-send-control.d.ts +11 -0
  1042. package/es-custom/react/input-send-control.js +32 -0
  1043. package/es-custom/react/input-send-control.js.map +1 -0
  1044. package/es-custom/react/launcher.d.ts +11 -0
  1045. package/es-custom/react/launcher.js +31 -0
  1046. package/es-custom/react/launcher.js.map +1 -0
  1047. package/es-custom/react/markdown.d.ts +7 -7
  1048. package/es-custom/react/markdown.js +13 -13
  1049. package/es-custom/react/markdown.js.map +1 -1
  1050. package/es-custom/react/panel.d.ts +1 -1
  1051. package/es-custom/react/panel.js +7 -7
  1052. package/es-custom/react/processing.d.ts +1 -1
  1053. package/es-custom/react/processing.js +2 -2
  1054. package/es-custom/react/prompt-line-shell.d.ts +18 -0
  1055. package/es-custom/react/prompt-line-shell.js +36 -0
  1056. package/es-custom/react/prompt-line-shell.js.map +1 -0
  1057. package/es-custom/react/prompt-line.d.ts +25 -0
  1058. package/es-custom/react/prompt-line.js +52 -0
  1059. package/es-custom/react/prompt-line.js.map +1 -0
  1060. package/es-custom/react/reasoning-step.d.ts +1 -1
  1061. package/es-custom/react/reasoning-step.js +4 -4
  1062. package/es-custom/react/reasoning-steps-toggle.d.ts +2 -2
  1063. package/es-custom/react/reasoning-steps-toggle.js +3 -3
  1064. package/es-custom/react/reasoning-steps.d.ts +1 -1
  1065. package/es-custom/react/reasoning-steps.js +2 -2
  1066. package/es-custom/react/stop-streaming-button.d.ts +11 -0
  1067. package/es-custom/react/stop-streaming-button.js +28 -0
  1068. package/es-custom/react/stop-streaming-button.js.map +1 -0
  1069. package/es-custom/react/table.d.ts +2 -2
  1070. package/es-custom/react/table.js +1 -1
  1071. package/es-custom/react/tool-call-data.d.ts +1 -1
  1072. package/es-custom/react/tool-call-data.js +2 -2
  1073. package/es-custom/react/toolbar.d.ts +4 -4
  1074. package/es-custom/react/toolbar.js +3 -3
  1075. package/es-custom/react/transcript.d.ts +1 -1
  1076. package/es-custom/react/transcript.js +3 -4
  1077. package/es-custom/react/transcript.js.map +1 -1
  1078. package/es-custom/react/utils/transformSuggestionConfig.d.ts +21 -0
  1079. package/es-custom/react/utils/transformSuggestionConfig.js +67 -0
  1080. package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -0
  1081. package/es-custom/react/utils/withWebComponentBridge.d.ts +1 -1
  1082. package/es-custom/react/utils/withWebComponentBridge.js +22 -22
  1083. package/es-custom/react/video-player.d.ts +1 -1
  1084. package/es-custom/react/video-player.js +5 -6
  1085. package/es-custom/react/video-player.js.map +1 -1
  1086. package/es-custom/react/workspace-shell.d.ts +1 -1
  1087. package/es-custom/react/workspace-shell.js +6 -6
  1088. package/es-custom/testing/PageObjectId.js +1 -2
  1089. package/es-custom/testing/PageObjectId.js.map +1 -1
  1090. package/es-custom/testing/load-all-lazy-deps.d.ts +2 -2
  1091. package/es-custom/testing/load-all-lazy-deps.js +1 -1
  1092. package/es-custom/typings/overflow-menu.d.ts +2 -2
  1093. package/package.json +25 -5
  1094. package/scss/_custom-properties.scss +16 -18
  1095. package/scss/_modifiers.scss +8 -8
  1096. package/scss/_tokens-component.scss +2 -4
  1097. package/scss/_tokens-layout.scss +2 -4
  1098. package/scss/_utilities.scss +3 -5
  1099. package/scss/common.scss +3 -3
  1100. package/scss/grid.scss +2 -2
  1101. package/scss/themes.scss +7 -7
  1102. package/scss/vars.scss +3 -3
  1103. package/telemetry.yml +53 -3
  1104. package/es/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
  1105. package/es/components/chat-shell/src/aria-announcer-manager.js +0 -104
  1106. package/es/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
  1107. package/es/react/utils/iconTransform.js.map +0 -1
  1108. package/es-custom/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
  1109. package/es-custom/components/chat-shell/src/aria-announcer-manager.js +0 -104
  1110. package/es-custom/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
  1111. package/es-custom/react/utils/iconTransform.js.map +0 -1
@@ -6,16 +6,16 @@
6
6
  */
7
7
 
8
8
  /*
9
- * Copyright IBM Corp. 2025
9
+ * Copyright IBM Corp. 2025, 2026
10
10
  *
11
11
  * This source code is licensed under the Apache-2.0 license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  *
14
14
  * @license
15
15
  */
16
- const LEFT = "{{";
17
- const RIGHT = "}}";
18
- const ALLOWED = new Set(["target", "rel", "class", "id"]);
16
+ const LEFT = '{{';
17
+ const RIGHT = '}}';
18
+ const ALLOWED = new Set(['target', 'rel', 'class', 'id']);
19
19
  /**
20
20
  * Parses the body between `{{` and `}}` into a list of allowed attribute pairs.
21
21
  * Supports `key=value` and `key="quoted value"`, space-separated. Disallowed
@@ -23,21 +23,21 @@ const ALLOWED = new Set(["target", "rel", "class", "id"]);
23
23
  */
24
24
  function parseAttrs(body) {
25
25
  const attrs = [];
26
- let key = "";
27
- let value = "";
26
+ let key = '';
27
+ let value = '';
28
28
  let parsingKey = true;
29
29
  let inQuotes = false;
30
30
  const commit = () => {
31
- if (key !== "" && ALLOWED.has(key)) {
31
+ if (key !== '' && ALLOWED.has(key)) {
32
32
  attrs.push([key, value]);
33
33
  }
34
- key = "";
35
- value = "";
34
+ key = '';
35
+ value = '';
36
36
  parsingKey = true;
37
37
  };
38
38
  for (let i = 0; i < body.length; i++) {
39
39
  const ch = body.charAt(i);
40
- if (ch === "=" && parsingKey) {
40
+ if (ch === '=' && parsingKey) {
41
41
  parsingKey = false;
42
42
  continue;
43
43
  }
@@ -45,7 +45,7 @@ function parseAttrs(body) {
45
45
  inQuotes = !inQuotes;
46
46
  continue;
47
47
  }
48
- if (ch === " " && !inQuotes) {
48
+ if (ch === ' ' && !inQuotes) {
49
49
  commit();
50
50
  continue;
51
51
  }
@@ -65,8 +65,8 @@ function parseAttrs(body) {
65
65
  */
66
66
  function applyAttrs(token, attrs) {
67
67
  for (const [key, value] of attrs) {
68
- if (key === "class") {
69
- token.attrJoin("class", value);
68
+ if (key === 'class') {
69
+ token.attrJoin('class', value);
70
70
  }
71
71
  else {
72
72
  token.attrPush([key, value]);
@@ -80,7 +80,7 @@ function applyAttrs(token, attrs) {
80
80
  */
81
81
  function findMatchingOpen(tokens, closeIndex) {
82
82
  const close = tokens[closeIndex];
83
- const openType = close.type.replace(/_close$/, "_open");
83
+ const openType = close.type.replace(/_close$/, '_open');
84
84
  for (let i = closeIndex - 1; i >= 0; i--) {
85
85
  if (tokens[i].type === openType && tokens[i].level === close.level) {
86
86
  return tokens[i];
@@ -103,7 +103,7 @@ function handleInlineAttributes(inlineToken) {
103
103
  for (let i = 1; i < children.length; i++) {
104
104
  const prev = children[i - 1];
105
105
  const curr = children[i];
106
- if (prev.nesting !== -1 || curr.type !== "text") {
106
+ if (prev.nesting !== -1 || curr.type !== 'text') {
107
107
  continue;
108
108
  }
109
109
  if (!curr.content.startsWith(LEFT)) {
@@ -141,7 +141,7 @@ function handleEndOfBlock(tokens, inlineIndex) {
141
141
  return;
142
142
  }
143
143
  const last = children[children.length - 1];
144
- if (last.type !== "text" || !last.content.endsWith(RIGHT)) {
144
+ if (last.type !== 'text' || !last.content.endsWith(RIGHT)) {
145
145
  return;
146
146
  }
147
147
  const openIdx = last.content.lastIndexOf(LEFT);
@@ -169,7 +169,7 @@ function handleEndOfBlock(tokens, inlineIndex) {
169
169
  // attribute block, so `# Heading {{id=foo}}` does not render as
170
170
  // `<h1>Heading </h1>`.
171
171
  let trimmed = last.content.slice(0, openIdx);
172
- if (trimmed.endsWith(" ")) {
172
+ if (trimmed.endsWith(' ')) {
173
173
  trimmed = trimmed.slice(0, -1);
174
174
  }
175
175
  last.content = trimmed;
@@ -182,7 +182,7 @@ function markdownItAttrs(md) {
182
182
  function curlyAttrs(state) {
183
183
  const tokens = state.tokens;
184
184
  for (let i = 0; i < tokens.length; i++) {
185
- if (tokens[i].type !== "inline") {
185
+ if (tokens[i].type !== 'inline') {
186
186
  continue;
187
187
  }
188
188
  while (handleInlineAttributes(tokens[i])) {
@@ -191,7 +191,7 @@ function markdownItAttrs(md) {
191
191
  handleEndOfBlock(tokens, i);
192
192
  }
193
193
  }
194
- md.core.ruler.before("linkify", "curly_attributes", curlyAttrs);
194
+ md.core.ruler.before('linkify', 'curly_attributes', curlyAttrs);
195
195
  }
196
196
 
197
197
  export { markdownItAttrs as default, markdownItAttrs };
@@ -2,6 +2,6 @@
2
2
  * A markdown-it plugin that handles text highlighting using ==highlight== syntax.
3
3
  * This follows the extended markdown syntax from https://www.markdownguide.org/extended-syntax/
4
4
  */
5
- import MarkdownIt from "markdown-it";
5
+ import MarkdownIt from 'markdown-it';
6
6
  declare function markdownItHighlight(md: MarkdownIt): void;
7
7
  export { markdownItHighlight };
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  /*
9
- * Copyright IBM Corp. 2025
9
+ * Copyright IBM Corp. 2025, 2026
10
10
  *
11
11
  * This source code is licensed under the Apache-2.0 license found in the
12
12
  * LICENSE file in the root directory of this source tree.
@@ -15,8 +15,8 @@
15
15
  */
16
16
  function markdownItHighlight(md) {
17
17
  // Define the highlight rule
18
- md.inline.ruler.before("emphasis", "highlight", (state, silent) => {
19
- const marker = "==";
18
+ md.inline.ruler.before('emphasis', 'highlight', (state, silent) => {
19
+ const marker = '==';
20
20
  const markerLength = marker.length;
21
21
  const start = state.pos;
22
22
  if (state.src.slice(start, start + markerLength) !== marker) {
@@ -32,7 +32,7 @@ function markdownItHighlight(md) {
32
32
  if (state.src.slice(pos, pos + markerLength) === marker) {
33
33
  const content = state.src.slice(start + markerLength, pos);
34
34
  if (content.trim()) {
35
- const token = state.push("highlight_open", "mark", 1);
35
+ const token = state.push('highlight_open', 'mark', 1);
36
36
  token.markup = marker;
37
37
  // Recursively tokenize the content to support nested formatting
38
38
  const oldPos = state.pos;
@@ -42,7 +42,7 @@ function markdownItHighlight(md) {
42
42
  state.md.inline.tokenize(state);
43
43
  state.pos = oldPos;
44
44
  state.posMax = oldPosMax;
45
- const closeToken = state.push("highlight_close", "mark", -1);
45
+ const closeToken = state.push('highlight_close', 'mark', -1);
46
46
  closeToken.markup = marker;
47
47
  state.pos = pos + markerLength;
48
48
  return true;
@@ -7,6 +7,6 @@
7
7
  * - [x] Checked task
8
8
  * - [X] Checked task (uppercase also supported)
9
9
  */
10
- import MarkdownIt from "markdown-it";
10
+ import MarkdownIt from 'markdown-it';
11
11
  declare function markdownItTaskLists(md: MarkdownIt): void;
12
12
  export { markdownItTaskLists };
@@ -14,16 +14,16 @@
14
14
  * @license
15
15
  */
16
16
  function markdownItTaskLists(md) {
17
- md.core.ruler.after("inline", "task-lists", (state) => {
17
+ md.core.ruler.after('inline', 'task-lists', (state) => {
18
18
  const tokens = state.tokens;
19
19
  for (let i = 0; i < tokens.length; i++) {
20
20
  const token = tokens[i];
21
21
  // Look for list items
22
- if (token.type !== "inline") {
22
+ if (token.type !== 'inline') {
23
23
  continue;
24
24
  }
25
25
  // Check if we're inside a list item
26
- if (i < 2 || tokens[i - 2].type !== "list_item_open") {
26
+ if (i < 2 || tokens[i - 2].type !== 'list_item_open') {
27
27
  continue;
28
28
  }
29
29
  const children = token.children;
@@ -32,36 +32,36 @@ function markdownItTaskLists(md) {
32
32
  }
33
33
  // Check if the first child starts with task list syntax
34
34
  const firstChild = children[0];
35
- if (firstChild.type !== "text") {
35
+ if (firstChild.type !== 'text') {
36
36
  continue;
37
37
  }
38
38
  const match = firstChild.content.match(/^\[([ xX])\]\s+/);
39
39
  if (!match) {
40
40
  continue;
41
41
  }
42
- const checked = match[1] !== " ";
42
+ const checked = match[1] !== ' ';
43
43
  const listItemToken = tokens[i - 2];
44
44
  // Add task-list-item class to the list item
45
45
  const attrs = listItemToken.attrs || [];
46
- const classIndex = attrs.findIndex(([key]) => key === "class");
46
+ const classIndex = attrs.findIndex(([key]) => key === 'class');
47
47
  if (classIndex >= 0) {
48
- attrs[classIndex][1] += " task-list-item";
48
+ attrs[classIndex][1] += ' task-list-item';
49
49
  }
50
50
  else {
51
- attrs.push(["class", "task-list-item"]);
51
+ attrs.push(['class', 'task-list-item']);
52
52
  }
53
53
  listItemToken.attrs = attrs;
54
- const checkboxOpenToken = new state.Token("task_checkbox_open", "cds-checkbox", 1);
55
- checkboxOpenToken.content = "";
54
+ const checkboxOpenToken = new state.Token('task_checkbox_open', 'cds-checkbox', 1);
55
+ checkboxOpenToken.content = '';
56
56
  // Stamp the list item's source line as a stable identity so a consumer
57
57
  // `checklist` renderer can correlate toggles across re-renders/streaming.
58
58
  const itemLine = listItemToken.map?.[0];
59
59
  checkboxOpenToken.attrs = [
60
- ["checked", checked ? "true" : "false"],
61
- ["data-cds-aichat-checklist-id", String(itemLine ?? "")],
60
+ ['checked', checked ? 'true' : 'false'],
61
+ ['data-cds-aichat-checklist-id', String(itemLine ?? '')],
62
62
  ];
63
- const checkboxCloseToken = new state.Token("task_checkbox_close", "cds-checkbox", -1);
64
- checkboxCloseToken.content = "";
63
+ const checkboxCloseToken = new state.Token('task_checkbox_close', 'cds-checkbox', -1);
64
+ checkboxCloseToken.content = '';
65
65
  // Remove the checkbox syntax from the text
66
66
  firstChild.content = firstChild.content.slice(match[0].length);
67
67
  // Insert checkbox token at the beginning
@@ -1,4 +1,4 @@
1
- import type { TokenTree } from "../markdown-token-tree";
1
+ import type { TokenTree } from '../markdown-token-tree';
2
2
  /** Marker element appended to opening HTML so markdown children mount inside the block. */
3
3
  export declare const HTML_CONTAINER_SLOT = "<div data-aichat-markdown=\"\"></div>";
4
4
  export declare function combineConsecutiveHtmlInline(children: TokenTree[]): TokenTree[];
@@ -15,32 +15,32 @@
15
15
  */
16
16
  // HTML elements that never ship closing tags; treat them as self-closing so the stack logic does not wait for </tag>.
17
17
  const SELF_CLOSING_HTML_TAGS = new Set([
18
- "area",
19
- "base",
20
- "br",
21
- "col",
22
- "embed",
23
- "hr",
24
- "img",
25
- "input",
26
- "link",
27
- "meta",
28
- "param",
29
- "source",
30
- "track",
31
- "wbr",
18
+ 'area',
19
+ 'base',
20
+ 'br',
21
+ 'col',
22
+ 'embed',
23
+ 'hr',
24
+ 'img',
25
+ 'input',
26
+ 'link',
27
+ 'meta',
28
+ 'param',
29
+ 'source',
30
+ 'track',
31
+ 'wbr',
32
32
  ]);
33
33
  // Token types we can safely glue into the combined HTML chunk. Anything else (e.g., emphasis markers) should abort
34
34
  // the merge to avoid damaging markdown.
35
35
  const INLINE_HTML_ALLOWED_TOKEN_TYPES = new Set([
36
- "html_inline",
37
- "text",
38
- "softbreak",
39
- "hardbreak",
40
- "code_inline",
41
- "entity",
42
- "link_open",
43
- "link_close",
36
+ 'html_inline',
37
+ 'text',
38
+ 'softbreak',
39
+ 'hardbreak',
40
+ 'code_inline',
41
+ 'entity',
42
+ 'link_open',
43
+ 'link_close',
44
44
  ]);
45
45
  /** Marker element appended to opening HTML so markdown children mount inside the block. */
46
46
  const HTML_CONTAINER_SLOT = '<div data-aichat-markdown=""></div>';
@@ -49,12 +49,12 @@ const HTML_CONTAINER_SLOT = '<div data-aichat-markdown=""></div>';
49
49
  // back inside the HTML element. Returns null for closers, self-closing tags, or blocks
50
50
  // that already include a matching </tag>.
51
51
  function parseHtmlBlockOpening(content) {
52
- const trimmed = (content ?? "").trim();
53
- if (!trimmed.startsWith("<") ||
54
- trimmed.startsWith("</") ||
55
- trimmed.startsWith("<!") ||
56
- trimmed.startsWith("<?") ||
57
- trimmed.startsWith("<%")) {
52
+ const trimmed = (content ?? '').trim();
53
+ if (!trimmed.startsWith('<') ||
54
+ trimmed.startsWith('</') ||
55
+ trimmed.startsWith('<!') ||
56
+ trimmed.startsWith('<?') ||
57
+ trimmed.startsWith('<%')) {
58
58
  return null;
59
59
  }
60
60
  const openingMatch = trimmed.match(/^<\s*([A-Za-z][\w:-]*)\b/);
@@ -65,40 +65,40 @@ function parseHtmlBlockOpening(content) {
65
65
  if (SELF_CLOSING_HTML_TAGS.has(tagName) || /\/>\s*$/.test(trimmed)) {
66
66
  return null;
67
67
  }
68
- const closePattern = new RegExp(`</\\s*${tagName}\\s*>`, "i");
68
+ const closePattern = new RegExp(`</\\s*${tagName}\\s*>`, 'i');
69
69
  if (closePattern.test(trimmed)) {
70
70
  return null;
71
71
  }
72
- return { kind: "opening", tagName };
72
+ return { kind: 'opening', tagName };
73
73
  }
74
74
  function parseHtmlBlockClosing(content) {
75
- const trimmed = (content ?? "").trim();
75
+ const trimmed = (content ?? '').trim();
76
76
  const closingMatch = trimmed.match(/^<\/\s*([A-Za-z][\w:-]*)\s*>$/);
77
77
  if (!closingMatch) {
78
78
  return null;
79
79
  }
80
- return { kind: "closing", tagName: closingMatch[1].toLowerCase() };
80
+ return { kind: 'closing', tagName: closingMatch[1].toLowerCase() };
81
81
  }
82
82
  // Minimal tag parser that ignores comments/entities (e.g., <!-- ... -->) and reports whether a tag opens, closes, or
83
83
  // self-closes a given element.
84
84
  function parseHtmlInlineTag(content) {
85
- const trimmed = (content ?? "").trim();
86
- if (!trimmed.startsWith("<") || !trimmed.endsWith(">")) {
85
+ const trimmed = (content ?? '').trim();
86
+ if (!trimmed.startsWith('<') || !trimmed.endsWith('>')) {
87
87
  // Not bracketed like "<...>"; definitely not a tag token.
88
88
  return null;
89
89
  }
90
- if (trimmed.startsWith("</")) {
90
+ if (trimmed.startsWith('</')) {
91
91
  // Closing tag: extract the element name. Reject malformed endings.
92
92
  const closingMatch = trimmed.match(/^<\/\s*([A-Za-z][\w:-]*)\s*>$/);
93
93
  if (!closingMatch) {
94
94
  return null;
95
95
  }
96
- return { kind: "closing", tagName: closingMatch[1].toLowerCase() };
96
+ return { kind: 'closing', tagName: closingMatch[1].toLowerCase() };
97
97
  }
98
98
  // Skip comments/doctype/instruction fragments; they cannot help balance nesting.
99
- if (trimmed.startsWith("<!") ||
100
- trimmed.startsWith("<?") ||
101
- trimmed.startsWith("<%")) {
99
+ if (trimmed.startsWith('<!') ||
100
+ trimmed.startsWith('<?') ||
101
+ trimmed.startsWith('<%')) {
102
102
  return null;
103
103
  }
104
104
  // Opening tag: grab the element name even if attributes trail after it.
@@ -109,8 +109,8 @@ function parseHtmlInlineTag(content) {
109
109
  const tagName = openingMatch[1].toLowerCase();
110
110
  // Treat `<tag/>` and the HTML void elements as self-contained so they do not
111
111
  // add entries to the stack.
112
- const selfClosing = trimmed.endsWith("/>") || SELF_CLOSING_HTML_TAGS.has(tagName);
113
- return { kind: "opening", tagName, selfClosing };
112
+ const selfClosing = trimmed.endsWith('/>') || SELF_CLOSING_HTML_TAGS.has(tagName);
113
+ return { kind: 'opening', tagName, selfClosing };
114
114
  }
115
115
  // Collapses runs of html_inline tokens (possibly interleaved with text) into a
116
116
  // single token so the browser does not auto-close the first tag mid-render.
@@ -122,38 +122,38 @@ function combineConsecutiveHtmlInline(children) {
122
122
  let didCombine = false;
123
123
  for (let index = 0; index < children.length; index++) {
124
124
  const startNode = children[index];
125
- if (startNode.token.type !== "html_inline") {
125
+ if (startNode.token.type !== 'html_inline') {
126
126
  combinedChildren.push(startNode);
127
127
  continue;
128
128
  }
129
129
  const openingTag = parseHtmlInlineTag(startNode.token.content);
130
130
  if (!openingTag ||
131
- openingTag.kind !== "opening" ||
131
+ openingTag.kind !== 'opening' ||
132
132
  openingTag.selfClosing) {
133
133
  combinedChildren.push(startNode);
134
134
  continue;
135
135
  }
136
136
  const stack = [openingTag.tagName]; // Track nested openings we must close.
137
137
  const chunkTokens = [startNode]; // Collect tokens to merge if the stack clears.
138
- let content = startNode.token.content ?? "";
138
+ let content = startNode.token.content ?? '';
139
139
  let endIndex = index;
140
140
  let success = false;
141
141
  for (let lookahead = index + 1; lookahead < children.length; lookahead++) {
142
142
  const candidate = children[lookahead];
143
- const tokenType = candidate.token.type ?? "";
143
+ const tokenType = candidate.token.type ?? '';
144
144
  if (!INLINE_HTML_ALLOWED_TOKEN_TYPES.has(tokenType)) {
145
145
  // Encountered formatting/inline constructs we do not know how to merge.
146
146
  break;
147
147
  }
148
- if (tokenType === "html_inline") {
148
+ if (tokenType === 'html_inline') {
149
149
  const parsed = parseHtmlInlineTag(candidate.token.content);
150
150
  if (!parsed) {
151
151
  // Malformed tag; abandon the merge.
152
152
  break;
153
153
  }
154
154
  chunkTokens.push(candidate);
155
- content += candidate.token.content ?? "";
156
- if (parsed.kind === "opening") {
155
+ content += candidate.token.content ?? '';
156
+ if (parsed.kind === 'opening') {
157
157
  if (!parsed.selfClosing) {
158
158
  // Push nested openers so we wait for their matching closers too.
159
159
  stack.push(parsed.tagName);
@@ -186,7 +186,7 @@ function combineConsecutiveHtmlInline(children) {
186
186
  }
187
187
  if (stack.length === 0 && endIndex > index) {
188
188
  combinedChildren.push({
189
- key: chunkTokens.map((token) => token.key).join("|"),
189
+ key: chunkTokens.map((token) => token.key).join('|'),
190
190
  token: {
191
191
  ...startNode.token,
192
192
  content,
@@ -211,7 +211,7 @@ function combineSplitHtmlBlocks(children) {
211
211
  let didCombine = false;
212
212
  for (let index = 0; index < children.length; index++) {
213
213
  const startNode = children[index];
214
- if (startNode.token.type !== "html_block") {
214
+ if (startNode.token.type !== 'html_block') {
215
215
  combinedChildren.push(startNode);
216
216
  continue;
217
217
  }
@@ -223,11 +223,11 @@ function combineSplitHtmlBlocks(children) {
223
223
  const stack = [openingTag.tagName];
224
224
  const innerChildren = [];
225
225
  let endIndex = index;
226
- let closingHtml = "";
226
+ let closingHtml = '';
227
227
  let success = false;
228
228
  for (let lookahead = index + 1; lookahead < children.length; lookahead++) {
229
229
  const candidate = children[lookahead];
230
- if (candidate.token.type === "html_block") {
230
+ if (candidate.token.type === 'html_block') {
231
231
  const nestedClosing = parseHtmlBlockClosing(candidate.token.content);
232
232
  if (nestedClosing) {
233
233
  const expected = stack[stack.length - 1];
@@ -237,7 +237,7 @@ function combineSplitHtmlBlocks(children) {
237
237
  stack.pop();
238
238
  endIndex = lookahead;
239
239
  if (stack.length === 0) {
240
- closingHtml = candidate.token.content ?? "";
240
+ closingHtml = candidate.token.content ?? '';
241
241
  success = true;
242
242
  break;
243
243
  }
@@ -262,10 +262,10 @@ function combineSplitHtmlBlocks(children) {
262
262
  startNode.key,
263
263
  ...innerChildren.map((child) => child.key),
264
264
  children[endIndex].key,
265
- ].join("|"),
265
+ ].join('|'),
266
266
  token: {
267
267
  ...startNode.token,
268
- type: "html_container",
268
+ type: 'html_container',
269
269
  tag: openingTag.tagName,
270
270
  meta: { closingHtml },
271
271
  },
@@ -278,40 +278,40 @@ function combineSplitHtmlBlocks(children) {
278
278
  }
279
279
  function serializeInlineToken(tokenTree) {
280
280
  const token = tokenTree.token;
281
- const type = token.type ?? "";
282
- if (type === "text" ||
283
- type === "code_inline" ||
284
- type === "softbreak" ||
285
- type === "hardbreak" ||
286
- type === "entity" ||
287
- type === "html_inline") {
288
- return token.content ?? "";
281
+ const type = token.type ?? '';
282
+ if (type === 'text' ||
283
+ type === 'code_inline' ||
284
+ type === 'softbreak' ||
285
+ type === 'hardbreak' ||
286
+ type === 'entity' ||
287
+ type === 'html_inline') {
288
+ return token.content ?? '';
289
289
  }
290
- if (type === "link_open") {
290
+ if (type === 'link_open') {
291
291
  const attrs = (token.attrs ?? []);
292
292
  const attrString = attrs
293
293
  .map(([name, value]) => {
294
294
  if (!name) {
295
- return "";
295
+ return '';
296
296
  }
297
297
  if (value === undefined || value === null) {
298
298
  return name;
299
299
  }
300
- const escaped = String(value).replace(/"/g, "&quot;");
300
+ const escaped = String(value).replace(/"/g, '&quot;');
301
301
  return `${name}="${escaped}"`;
302
302
  })
303
303
  .filter(Boolean)
304
- .join(" ");
304
+ .join(' ');
305
305
  const childContent = (tokenTree.children ?? [])
306
306
  .map((child) => serializeInlineToken(child))
307
- .join("");
308
- const openTag = attrString.length ? `<a ${attrString}>` : "<a>";
307
+ .join('');
308
+ const openTag = attrString.length ? `<a ${attrString}>` : '<a>';
309
309
  return `${openTag}${childContent}</a>`;
310
310
  }
311
- if (type === "link_close") {
312
- return "";
311
+ if (type === 'link_close') {
312
+ return '';
313
313
  }
314
- return token.content ?? "";
314
+ return token.content ?? '';
315
315
  }
316
316
 
317
317
  export { HTML_CONTAINER_SLOT, combineConsecutiveHtmlInline, combineSplitHtmlBlocks };
@@ -1,5 +1,5 @@
1
- import { TemplateResult } from "lit";
2
- import { Directive, Part, PartInfo } from "lit/directive.js";
1
+ import { TemplateResult } from 'lit';
2
+ import { Directive, Part, PartInfo } from 'lit/directive.js';
3
3
  declare class SpreadAttrs extends Directive {
4
4
  render(_attrs: Record<string, unknown>): symbol;
5
5
  update(part: any, [attrs]: [Record<string, unknown>]): symbol;
@@ -30,7 +30,7 @@ class SpreadAttrs extends Directive {
30
30
  el.removeAttribute(k);
31
31
  }
32
32
  else if (v === true) {
33
- el.setAttribute(k, "");
33
+ el.setAttribute(k, '');
34
34
  }
35
35
  else {
36
36
  el.setAttribute(k, String(v));
@@ -41,7 +41,7 @@ class SpreadAttrs extends Directive {
41
41
  }
42
42
  const spread = directive(SpreadAttrs);
43
43
  const sanitizeHtmlContent = (content) => DOMPurify.sanitize(content, {
44
- ADD_ATTR: ["data-aichat-markdown"],
44
+ ADD_ATTR: ['data-aichat-markdown'],
45
45
  CUSTOM_ELEMENT_HANDLING: {
46
46
  tagNameCheck: () => true, // Allow custom elements
47
47
  attributeNameCheck: () => true,
@@ -52,9 +52,9 @@ class HtmlContainer extends Directive {
52
52
  constructor(partInfo) {
53
53
  super(partInfo);
54
54
  this.slotElement = null;
55
- this.lastOpeningHtml = "";
55
+ this.lastOpeningHtml = '';
56
56
  if (partInfo.type !== PartType.ELEMENT) {
57
- throw new Error("HtmlContainer must be used on an element");
57
+ throw new Error('HtmlContainer must be used on an element');
58
58
  }
59
59
  }
60
60
  render(_openingHtml, _childTemplate, _sanitize) {
@@ -70,7 +70,7 @@ class HtmlContainer extends Directive {
70
70
  }
71
71
  const fragment = document.createRange().createContextualFragment(content);
72
72
  host.replaceChildren(...Array.from(fragment.childNodes));
73
- this.slotElement = host.querySelector("[data-aichat-markdown]");
73
+ this.slotElement = host.querySelector('[data-aichat-markdown]');
74
74
  }
75
75
  if (this.slotElement) {
76
76
  render(childTemplate, this.slotElement);
@@ -1,7 +1,7 @@
1
- import { TemplateResult } from "lit";
2
- import MarkdownIt, { Token } from "markdown-it";
3
- import { type TokenTree } from "../markdown-token-tree.js";
4
- import type { RenderTokenTreeOptions } from "../markdown-renderer-types.js";
1
+ import { TemplateResult } from 'lit';
2
+ import MarkdownIt, { Token } from 'markdown-it';
3
+ import { type TokenTree } from '../markdown-token-tree.js';
4
+ import type { RenderTokenTreeOptions } from '../markdown-renderer-types.js';
5
5
  /**
6
6
  * True when the renderer can dispatch `token` itself (hand-written Lit
7
7
  * template). False when an unknown plugin-introduced token type or tag should