@carbon/ai-chat-components 1.7.0 → 1.9.0-alpha.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 (640) hide show
  1. package/custom-elements.json +16062 -10795
  2. package/es/components/audio-player/src/audio-player.js +9 -10
  3. package/es/components/audio-player/src/audio-player.js.map +1 -1
  4. package/es/components/audio-player/src/providers/base-provider.js +0 -1
  5. package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
  6. package/es/components/audio-player/src/providers/native-audio-provider.js +0 -1
  7. package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  8. package/es/components/audio-player/src/providers/soundcloud-provider.js +0 -1
  9. package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
  10. package/es/components/audio-player/src/transcript.js +15 -15
  11. package/es/components/audio-player/src/transcript.js.map +1 -1
  12. package/es/components/audio-player/src/utils/url-detector.js +0 -1
  13. package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
  14. package/es/components/autocomplete/index.d.ts +15 -0
  15. package/es/components/autocomplete/index.js +11 -0
  16. package/es/components/autocomplete/index.js.map +1 -0
  17. package/es/components/autocomplete/src/autocomplete-item-group.d.ts +44 -0
  18. package/es/components/autocomplete/src/autocomplete-item-group.js +139 -0
  19. package/es/components/autocomplete/src/autocomplete-item-group.js.map +1 -0
  20. package/es/components/autocomplete/src/autocomplete-item-group.scss.js +13 -0
  21. package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +1 -0
  22. package/es/components/autocomplete/src/autocomplete-item.d.ts +54 -0
  23. package/es/components/autocomplete/src/autocomplete-item.js +197 -0
  24. package/es/components/autocomplete/src/autocomplete-item.js.map +1 -0
  25. package/es/components/autocomplete/src/autocomplete-item.scss.js +13 -0
  26. package/es/components/autocomplete/src/autocomplete-item.scss.js.map +1 -0
  27. package/es/components/autocomplete/src/autocomplete.d.ts +97 -0
  28. package/es/components/autocomplete/src/autocomplete.js +321 -0
  29. package/es/components/autocomplete/src/autocomplete.js.map +1 -0
  30. package/es/components/autocomplete/src/autocomplete.scss.js +13 -0
  31. package/es/components/autocomplete/src/autocomplete.scss.js.map +1 -0
  32. package/es/components/card/src/card-footer.d.ts +1 -1
  33. package/es/components/card/src/card-footer.js +1 -1
  34. package/es/components/card/src/card-footer.js.map +1 -1
  35. package/es/components/card/src/card-footer.scss.js +1 -1
  36. package/es/components/card/src/card-steps.d.ts +1 -1
  37. package/es/components/card/src/card-steps.js +28 -28
  38. package/es/components/card/src/card-steps.js.map +1 -1
  39. package/es/components/card/src/card-steps.scss.js +1 -1
  40. package/es/components/card/src/card.scss.js +1 -1
  41. package/es/components/carousel/src/carousel.js +0 -1
  42. package/es/components/carousel/src/carousel.js.map +1 -1
  43. package/es/components/chain-of-thought/src/chain-of-thought-step.js +1 -1
  44. package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  45. package/es/components/chain-of-thought/src/tool-call-data.js +4 -4
  46. package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  47. package/es/components/chat-button/src/chat-button.d.ts +1 -1
  48. package/es/components/chat-button/src/chat-button.js +1 -1
  49. package/es/components/chat-button/src/chat-button.js.map +1 -1
  50. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  51. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  52. package/es/components/chat-history/src/history-content.js +2 -2
  53. package/es/components/chat-history/src/history-content.js.map +1 -1
  54. package/es/components/chat-history/src/history-header.js +8 -8
  55. package/es/components/chat-history/src/history-header.js.map +1 -1
  56. package/es/components/chat-history/src/history-panel-item-input.d.ts +19 -2
  57. package/es/components/chat-history/src/history-panel-item-input.js +69 -19
  58. package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
  59. package/es/components/chat-history/src/history-panel-item.d.ts +14 -0
  60. package/es/components/chat-history/src/history-panel-item.js +59 -27
  61. package/es/components/chat-history/src/history-panel-item.js.map +1 -1
  62. package/es/components/chat-history/src/history-toolbar.js +3 -3
  63. package/es/components/chat-history/src/history-toolbar.js.map +1 -1
  64. package/es/components/chat-shell/src/chat-header.js +15 -16
  65. package/es/components/chat-shell/src/chat-header.js.map +1 -1
  66. package/es/components/chat-shell/src/corner-manager.d.ts +1 -1
  67. package/es/components/chat-shell/src/corner-manager.js +1 -2
  68. package/es/components/chat-shell/src/corner-manager.js.map +1 -1
  69. package/es/components/chat-shell/src/initialization-manager.d.ts +1 -1
  70. package/es/components/chat-shell/src/initialization-manager.js +1 -2
  71. package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
  72. package/es/components/chat-shell/src/resize-observer-manager.js +0 -1
  73. package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
  74. package/es/components/chat-shell/src/shell.d.ts +1 -1
  75. package/es/components/chat-shell/src/shell.js +3 -3
  76. package/es/components/chat-shell/src/shell.js.map +1 -1
  77. package/es/components/chat-shell/src/slot-observer.d.ts +1 -1
  78. package/es/components/chat-shell/src/slot-observer.js +1 -2
  79. package/es/components/chat-shell/src/slot-observer.js.map +1 -1
  80. package/es/components/chat-shell/src/types.d.ts +1 -1
  81. package/es/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
  82. package/es/components/chat-shell/src/workspace-manager-utils.js +1 -2
  83. package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
  84. package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
  85. package/es/components/chat-shell/src/workspace-manager.js +1 -2
  86. package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
  87. package/es/components/code-snippet/src/code-snippet.d.ts +23 -0
  88. package/es/components/code-snippet/src/code-snippet.js +111 -36
  89. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  90. package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
  91. package/es/components/code-snippet/src/codemirror/diff-decorator.js +1 -1
  92. package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
  93. package/es/components/code-snippet/src/codemirror/theme.js +5 -0
  94. package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
  95. package/es/components/code-snippet/src/layout-utils.js +21 -8
  96. package/es/components/code-snippet/src/layout-utils.js.map +1 -1
  97. package/es/components/feedback/src/feedback-buttons.js +1 -1
  98. package/es/components/feedback/src/feedback-buttons.js.map +1 -1
  99. package/es/components/feedback/src/feedback.js +38 -38
  100. package/es/components/feedback/src/feedback.js.map +1 -1
  101. package/es/components/feedback/src/feedback.scss.js +1 -1
  102. package/es/components/file-uploads/index.d.ts +12 -0
  103. package/es/components/file-uploads/index.js +10 -0
  104. package/es/components/file-uploads/index.js.map +1 -0
  105. package/es/components/file-uploads/src/file-upload-item.d.ts +43 -0
  106. package/es/components/file-uploads/src/file-upload-item.js +267 -0
  107. package/es/components/file-uploads/src/file-upload-item.js.map +1 -0
  108. package/es/components/file-uploads/src/file-upload-item.scss.js +13 -0
  109. package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
  110. package/es/components/file-uploads/src/file-uploads.d.ts +87 -0
  111. package/es/components/file-uploads/src/file-uploads.js +213 -0
  112. package/es/components/file-uploads/src/file-uploads.js.map +1 -0
  113. package/es/components/file-uploads/src/file-uploads.scss.js +13 -0
  114. package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -0
  115. package/es/components/markdown/index.d.ts +1 -0
  116. package/es/components/markdown/index.js +1 -0
  117. package/es/components/markdown/index.js.map +1 -1
  118. package/es/components/markdown/src/markdown-token-tree.d.ts +8 -0
  119. package/es/components/markdown/src/markdown-token-tree.js +12 -1
  120. package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
  121. package/es/components/markdown/src/markdown.js +4 -0
  122. package/es/components/markdown/src/markdown.js.map +1 -1
  123. package/es/components/markdown/src/markdown.scss.js +1 -1
  124. package/es/components/markdown/src/utils/html-helpers.js.map +1 -1
  125. package/es/components/prompt-line/index.d.ts +26 -0
  126. package/es/components/prompt-line/index.js +32 -0
  127. package/es/components/prompt-line/index.js.map +1 -0
  128. package/es/components/prompt-line/src/autocomplete-controller.d.ts +178 -0
  129. package/es/components/prompt-line/src/autocomplete-controller.js +548 -0
  130. package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -0
  131. package/es/components/prompt-line/src/error-message.d.ts +50 -0
  132. package/es/components/prompt-line/src/error-message.js +144 -0
  133. package/es/components/prompt-line/src/error-message.js.map +1 -0
  134. package/es/components/prompt-line/src/error-message.scss.js +13 -0
  135. package/es/components/prompt-line/src/error-message.scss.js.map +1 -0
  136. package/es/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
  137. package/es/components/prompt-line/src/prompt-line-constants.js +27 -0
  138. package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -0
  139. package/es/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
  140. package/es/components/prompt-line/src/prompt-line-controller.js +394 -0
  141. package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -0
  142. package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
  143. package/es/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
  144. package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
  145. package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
  146. package/es/components/prompt-line/src/prompt-line-rich-runtime.js +340 -0
  147. package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
  148. package/es/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
  149. package/es/components/prompt-line/src/prompt-line-shell.js +227 -0
  150. package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -0
  151. package/es/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
  152. package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
  153. package/es/components/prompt-line/src/prompt-line.d.ts +147 -0
  154. package/es/components/prompt-line/src/prompt-line.js +391 -0
  155. package/es/components/prompt-line/src/prompt-line.js.map +1 -0
  156. package/es/components/prompt-line/src/prompt-line.scss.js +13 -0
  157. package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -0
  158. package/es/components/prompt-line/src/send-control.d.ts +46 -0
  159. package/es/components/prompt-line/src/send-control.js +138 -0
  160. package/es/components/prompt-line/src/send-control.js.map +1 -0
  161. package/es/components/prompt-line/src/send-control.scss.js +13 -0
  162. package/es/components/prompt-line/src/send-control.scss.js.map +1 -0
  163. package/es/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
  164. package/es/components/prompt-line/src/stop-streaming-button.js +93 -0
  165. package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -0
  166. package/es/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
  167. package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
  168. package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
  169. package/es/components/prompt-line/src/tiptap/build-extensions.js +38 -0
  170. package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
  171. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
  172. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
  173. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
  174. package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
  175. package/es/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
  176. package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
  177. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +22 -0
  178. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +64 -0
  179. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
  180. package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
  181. package/es/components/prompt-line/src/tiptap/chat-enter.js +46 -0
  182. package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
  183. package/es/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
  184. package/es/components/prompt-line/src/tiptap/editor-styles.js +83 -0
  185. package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
  186. package/es/components/prompt-line/src/tiptap/index.d.ts +42 -0
  187. package/es/components/prompt-line/src/tiptap/index.js +43 -0
  188. package/es/components/prompt-line/src/tiptap/index.js.map +1 -0
  189. package/es/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
  190. package/es/components/prompt-line/src/tiptap/json-utils.js +158 -0
  191. package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
  192. package/es/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
  193. package/es/components/prompt-line/src/tiptap/keymap.js +59 -0
  194. package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -0
  195. package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
  196. package/es/components/prompt-line/src/tiptap/origin-meta.js +33 -0
  197. package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
  198. package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
  199. package/es/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
  200. package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
  201. package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
  202. package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
  203. package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
  204. package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
  205. package/es/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
  206. package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
  207. package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
  208. package/es/components/prompt-line/src/tiptap/token-node-view.js +41 -0
  209. package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
  210. package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +30 -0
  211. package/es/components/prompt-line/src/tiptap/trigger-utils.js +44 -0
  212. package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
  213. package/es/components/prompt-line/src/tiptap/types.d.ts +161 -0
  214. package/es/components/prompt-line/src/tiptap/types.js +8 -0
  215. package/es/components/prompt-line/src/tiptap/types.js.map +1 -0
  216. package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
  217. package/es/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
  218. package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
  219. package/es/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
  220. package/es/components/prompt-line/src/tiptap/value-sync.js +65 -0
  221. package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
  222. package/es/components/prompt-line/src/types.d.ts +100 -0
  223. package/es/components/prompt-line/src/types.js +50 -0
  224. package/es/components/prompt-line/src/types.js.map +1 -0
  225. package/es/components/reasoning-steps/src/reasoning-step.d.ts +13 -0
  226. package/es/components/reasoning-steps/src/reasoning-step.js +38 -0
  227. package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  228. package/es/components/reasoning-steps/src/reasoning-steps.d.ts +23 -0
  229. package/es/components/reasoning-steps/src/reasoning-steps.js +56 -1
  230. package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  231. package/es/components/shared/dynamic-css-var-sheet.js +4 -1
  232. package/es/components/shared/dynamic-css-var-sheet.js.map +1 -1
  233. package/es/components/shared/media-utils/script-loader.js +0 -1
  234. package/es/components/shared/media-utils/script-loader.js.map +1 -1
  235. package/es/components/table/src/table.scss.js +1 -1
  236. package/es/components/table/src/table.template.js +9 -9
  237. package/es/components/table/src/table.template.js.map +1 -1
  238. package/es/components/toolbar/src/toolbar.js +51 -53
  239. package/es/components/toolbar/src/toolbar.js.map +1 -1
  240. package/es/components/video-player/src/providers/base-provider.js +0 -1
  241. package/es/components/video-player/src/providers/base-provider.js.map +1 -1
  242. package/es/components/video-player/src/providers/kaltura-provider.js +0 -1
  243. package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  244. package/es/components/video-player/src/providers/native-video-provider.js +0 -1
  245. package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
  246. package/es/components/video-player/src/providers/vimeo-provider.js +0 -1
  247. package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  248. package/es/components/video-player/src/providers/youtube-provider.js +0 -1
  249. package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
  250. package/es/components/video-player/src/utils/url-detector.js +0 -1
  251. package/es/components/video-player/src/utils/url-detector.js.map +1 -1
  252. package/es/components/video-player/src/video-player.js +9 -10
  253. package/es/components/video-player/src/video-player.js.map +1 -1
  254. package/es/components/workspace-shell/src/header-collapsible-manager.js +0 -1
  255. package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
  256. package/es/components/workspace-shell/src/workspace-shell-header.js +25 -25
  257. package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  258. package/es/globals/utils/aria-announcer-manager.d.ts +62 -0
  259. package/es/globals/utils/aria-announcer-manager.js +125 -0
  260. package/es/globals/utils/aria-announcer-manager.js.map +1 -0
  261. package/es/globals/utils/browser-utils.d.ts +10 -0
  262. package/es/globals/utils/browser-utils.js +37 -0
  263. package/es/globals/utils/browser-utils.js.map +1 -0
  264. package/es/globals/utils/dom-utils.d.ts +6 -0
  265. package/es/globals/utils/dom-utils.js +39 -0
  266. package/es/globals/utils/dom-utils.js.map +1 -0
  267. package/{es-custom/react → es/globals}/utils/iconTransform.js +1 -2
  268. package/es/globals/utils/iconTransform.js.map +1 -0
  269. package/es/react/__tests__/jest.setup.js +1 -2
  270. package/es/react/__tests__/jest.setup.js.map +1 -1
  271. package/es/react/audio-player.js +0 -1
  272. package/es/react/audio-player.js.map +1 -1
  273. package/es/react/autocomplete.d.ts +11 -0
  274. package/es/react/autocomplete.js +36 -0
  275. package/es/react/autocomplete.js.map +1 -0
  276. package/es/react/chat-header.js +1 -1
  277. package/es/react/code-snippet.js +1 -1
  278. package/es/react/error-message.d.ts +11 -0
  279. package/es/react/error-message.js +28 -0
  280. package/es/react/error-message.js.map +1 -0
  281. package/es/react/file-uploads.d.ts +11 -0
  282. package/es/react/file-uploads.js +31 -0
  283. package/es/react/file-uploads.js.map +1 -0
  284. package/es/react/history/history-panel-item-input.js +1 -0
  285. package/es/react/history/history-panel-item-input.js.map +1 -1
  286. package/es/react/history/history-panel-item.js +1 -0
  287. package/es/react/history/history-panel-item.js.map +1 -1
  288. package/es/react/hooks/useChatAutocomplete.d.ts +41 -0
  289. package/es/react/hooks/useChatAutocomplete.js +178 -0
  290. package/es/react/hooks/useChatAutocomplete.js.map +1 -0
  291. package/es/react/input-send-control.d.ts +11 -0
  292. package/es/react/input-send-control.js +32 -0
  293. package/es/react/input-send-control.js.map +1 -0
  294. package/es/react/prompt-line-shell.d.ts +18 -0
  295. package/es/react/prompt-line-shell.js +36 -0
  296. package/es/react/prompt-line-shell.js.map +1 -0
  297. package/es/react/prompt-line.d.ts +25 -0
  298. package/es/react/prompt-line.js +52 -0
  299. package/es/react/prompt-line.js.map +1 -0
  300. package/es/react/stop-streaming-button.d.ts +11 -0
  301. package/es/react/stop-streaming-button.js +28 -0
  302. package/es/react/stop-streaming-button.js.map +1 -0
  303. package/es/react/toolbar.js +1 -1
  304. package/es/react/transcript.js +0 -1
  305. package/es/react/transcript.js.map +1 -1
  306. package/es/react/utils/transformSuggestionConfig.d.ts +21 -0
  307. package/es/react/utils/transformSuggestionConfig.js +67 -0
  308. package/es/react/utils/transformSuggestionConfig.js.map +1 -0
  309. package/es/react/video-player.js +0 -1
  310. package/es/react/video-player.js.map +1 -1
  311. package/es/testing/PageObjectId.js +1 -2
  312. package/es/testing/PageObjectId.js.map +1 -1
  313. package/es-custom/components/audio-player/src/audio-player.js +9 -10
  314. package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
  315. package/es-custom/components/audio-player/src/providers/base-provider.js +0 -1
  316. package/es-custom/components/audio-player/src/providers/base-provider.js.map +1 -1
  317. package/es-custom/components/audio-player/src/providers/native-audio-provider.js +0 -1
  318. package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  319. package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +0 -1
  320. package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
  321. package/es-custom/components/audio-player/src/transcript.js +15 -15
  322. package/es-custom/components/audio-player/src/transcript.js.map +1 -1
  323. package/es-custom/components/audio-player/src/utils/url-detector.js +0 -1
  324. package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
  325. package/es-custom/components/autocomplete/index.d.ts +15 -0
  326. package/es-custom/components/autocomplete/index.js +11 -0
  327. package/es-custom/components/autocomplete/index.js.map +1 -0
  328. package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +44 -0
  329. package/es-custom/components/autocomplete/src/autocomplete-item-group.js +139 -0
  330. package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +1 -0
  331. package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +13 -0
  332. package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +1 -0
  333. package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +54 -0
  334. package/es-custom/components/autocomplete/src/autocomplete-item.js +197 -0
  335. package/es-custom/components/autocomplete/src/autocomplete-item.js.map +1 -0
  336. package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +13 -0
  337. package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +1 -0
  338. package/es-custom/components/autocomplete/src/autocomplete.d.ts +97 -0
  339. package/es-custom/components/autocomplete/src/autocomplete.js +321 -0
  340. package/es-custom/components/autocomplete/src/autocomplete.js.map +1 -0
  341. package/es-custom/components/autocomplete/src/autocomplete.scss.js +13 -0
  342. package/es-custom/components/autocomplete/src/autocomplete.scss.js.map +1 -0
  343. package/es-custom/components/card/src/card-footer.d.ts +1 -1
  344. package/es-custom/components/card/src/card-footer.js +1 -1
  345. package/es-custom/components/card/src/card-footer.js.map +1 -1
  346. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  347. package/es-custom/components/card/src/card-steps.d.ts +1 -1
  348. package/es-custom/components/card/src/card-steps.js +28 -28
  349. package/es-custom/components/card/src/card-steps.js.map +1 -1
  350. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  351. package/es-custom/components/card/src/card.scss.js +1 -1
  352. package/es-custom/components/carousel/src/carousel.js +0 -1
  353. package/es-custom/components/carousel/src/carousel.js.map +1 -1
  354. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +1 -1
  355. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  356. package/es-custom/components/chain-of-thought/src/tool-call-data.js +4 -4
  357. package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  358. package/es-custom/components/chat-button/src/chat-button.d.ts +1 -1
  359. package/es-custom/components/chat-button/src/chat-button.js +1 -1
  360. package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
  361. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  362. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  363. package/es-custom/components/chat-history/src/history-content.js +2 -2
  364. package/es-custom/components/chat-history/src/history-content.js.map +1 -1
  365. package/es-custom/components/chat-history/src/history-header.js +8 -8
  366. package/es-custom/components/chat-history/src/history-header.js.map +1 -1
  367. package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +19 -2
  368. package/es-custom/components/chat-history/src/history-panel-item-input.js +69 -19
  369. package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
  370. package/es-custom/components/chat-history/src/history-panel-item.d.ts +14 -0
  371. package/es-custom/components/chat-history/src/history-panel-item.js +59 -27
  372. package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
  373. package/es-custom/components/chat-history/src/history-toolbar.js +3 -3
  374. package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
  375. package/es-custom/components/chat-shell/src/chat-header.js +15 -16
  376. package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
  377. package/es-custom/components/chat-shell/src/corner-manager.d.ts +1 -1
  378. package/es-custom/components/chat-shell/src/corner-manager.js +1 -2
  379. package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -1
  380. package/es-custom/components/chat-shell/src/initialization-manager.d.ts +1 -1
  381. package/es-custom/components/chat-shell/src/initialization-manager.js +1 -2
  382. package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -1
  383. package/es-custom/components/chat-shell/src/resize-observer-manager.js +0 -1
  384. package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -1
  385. package/es-custom/components/chat-shell/src/shell.d.ts +1 -1
  386. package/es-custom/components/chat-shell/src/shell.js +3 -3
  387. package/es-custom/components/chat-shell/src/shell.js.map +1 -1
  388. package/es-custom/components/chat-shell/src/slot-observer.d.ts +1 -1
  389. package/es-custom/components/chat-shell/src/slot-observer.js +1 -2
  390. package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
  391. package/es-custom/components/chat-shell/src/types.d.ts +1 -1
  392. package/es-custom/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
  393. package/es-custom/components/chat-shell/src/workspace-manager-utils.js +1 -2
  394. package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
  395. package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
  396. package/es-custom/components/chat-shell/src/workspace-manager.js +1 -2
  397. package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
  398. package/es-custom/components/code-snippet/src/code-snippet.d.ts +23 -0
  399. package/es-custom/components/code-snippet/src/code-snippet.js +111 -36
  400. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  401. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  402. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +1 -1
  403. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
  404. package/es-custom/components/code-snippet/src/codemirror/theme.js +5 -0
  405. package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
  406. package/es-custom/components/code-snippet/src/layout-utils.js +21 -8
  407. package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
  408. package/es-custom/components/feedback/src/feedback-buttons.js +1 -1
  409. package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
  410. package/es-custom/components/feedback/src/feedback.js +38 -38
  411. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  412. package/es-custom/components/feedback/src/feedback.scss.js +1 -1
  413. package/es-custom/components/file-uploads/index.d.ts +12 -0
  414. package/es-custom/components/file-uploads/index.js +10 -0
  415. package/es-custom/components/file-uploads/index.js.map +1 -0
  416. package/es-custom/components/file-uploads/src/file-upload-item.d.ts +43 -0
  417. package/es-custom/components/file-uploads/src/file-upload-item.js +267 -0
  418. package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -0
  419. package/es-custom/components/file-uploads/src/file-upload-item.scss.js +13 -0
  420. package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
  421. package/es-custom/components/file-uploads/src/file-uploads.d.ts +87 -0
  422. package/es-custom/components/file-uploads/src/file-uploads.js +213 -0
  423. package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -0
  424. package/es-custom/components/file-uploads/src/file-uploads.scss.js +13 -0
  425. package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +1 -0
  426. package/es-custom/components/markdown/index.d.ts +1 -0
  427. package/es-custom/components/markdown/index.js +1 -0
  428. package/es-custom/components/markdown/index.js.map +1 -1
  429. package/es-custom/components/markdown/src/markdown-token-tree.d.ts +8 -0
  430. package/es-custom/components/markdown/src/markdown-token-tree.js +12 -1
  431. package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
  432. package/es-custom/components/markdown/src/markdown.js +4 -0
  433. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  434. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  435. package/es-custom/components/markdown/src/utils/html-helpers.js.map +1 -1
  436. package/es-custom/components/prompt-line/index.d.ts +26 -0
  437. package/es-custom/components/prompt-line/index.js +32 -0
  438. package/es-custom/components/prompt-line/index.js.map +1 -0
  439. package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +178 -0
  440. package/es-custom/components/prompt-line/src/autocomplete-controller.js +548 -0
  441. package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -0
  442. package/es-custom/components/prompt-line/src/error-message.d.ts +50 -0
  443. package/es-custom/components/prompt-line/src/error-message.js +144 -0
  444. package/es-custom/components/prompt-line/src/error-message.js.map +1 -0
  445. package/es-custom/components/prompt-line/src/error-message.scss.js +13 -0
  446. package/es-custom/components/prompt-line/src/error-message.scss.js.map +1 -0
  447. package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
  448. package/es-custom/components/prompt-line/src/prompt-line-constants.js +27 -0
  449. package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -0
  450. package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
  451. package/es-custom/components/prompt-line/src/prompt-line-controller.js +394 -0
  452. package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -0
  453. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
  454. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
  455. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
  456. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
  457. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +340 -0
  458. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
  459. package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
  460. package/es-custom/components/prompt-line/src/prompt-line-shell.js +227 -0
  461. package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -0
  462. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
  463. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
  464. package/es-custom/components/prompt-line/src/prompt-line.d.ts +147 -0
  465. package/es-custom/components/prompt-line/src/prompt-line.js +391 -0
  466. package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -0
  467. package/es-custom/components/prompt-line/src/prompt-line.scss.js +13 -0
  468. package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +1 -0
  469. package/es-custom/components/prompt-line/src/send-control.d.ts +46 -0
  470. package/es-custom/components/prompt-line/src/send-control.js +138 -0
  471. package/es-custom/components/prompt-line/src/send-control.js.map +1 -0
  472. package/es-custom/components/prompt-line/src/send-control.scss.js +13 -0
  473. package/es-custom/components/prompt-line/src/send-control.scss.js.map +1 -0
  474. package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
  475. package/es-custom/components/prompt-line/src/stop-streaming-button.js +93 -0
  476. package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -0
  477. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
  478. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
  479. package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
  480. package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +38 -0
  481. package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
  482. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
  483. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
  484. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
  485. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
  486. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
  487. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
  488. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +22 -0
  489. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +64 -0
  490. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
  491. package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
  492. package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +46 -0
  493. package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
  494. package/es-custom/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
  495. package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +83 -0
  496. package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
  497. package/es-custom/components/prompt-line/src/tiptap/index.d.ts +42 -0
  498. package/es-custom/components/prompt-line/src/tiptap/index.js +43 -0
  499. package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -0
  500. package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
  501. package/es-custom/components/prompt-line/src/tiptap/json-utils.js +158 -0
  502. package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
  503. package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
  504. package/es-custom/components/prompt-line/src/tiptap/keymap.js +59 -0
  505. package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +1 -0
  506. package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
  507. package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +33 -0
  508. package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
  509. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
  510. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
  511. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
  512. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
  513. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
  514. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
  515. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
  516. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
  517. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
  518. package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
  519. package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +41 -0
  520. package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
  521. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +30 -0
  522. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +44 -0
  523. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
  524. package/es-custom/components/prompt-line/src/tiptap/types.d.ts +161 -0
  525. package/es-custom/components/prompt-line/src/tiptap/types.js +8 -0
  526. package/es-custom/components/prompt-line/src/tiptap/types.js.map +1 -0
  527. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
  528. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
  529. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
  530. package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
  531. package/es-custom/components/prompt-line/src/tiptap/value-sync.js +65 -0
  532. package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
  533. package/es-custom/components/prompt-line/src/types.d.ts +100 -0
  534. package/es-custom/components/prompt-line/src/types.js +50 -0
  535. package/es-custom/components/prompt-line/src/types.js.map +1 -0
  536. package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +13 -0
  537. package/es-custom/components/reasoning-steps/src/reasoning-step.js +38 -0
  538. package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  539. package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +23 -0
  540. package/es-custom/components/reasoning-steps/src/reasoning-steps.js +56 -1
  541. package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  542. package/es-custom/components/shared/dynamic-css-var-sheet.js +4 -1
  543. package/es-custom/components/shared/dynamic-css-var-sheet.js.map +1 -1
  544. package/es-custom/components/shared/media-utils/script-loader.js +0 -1
  545. package/es-custom/components/shared/media-utils/script-loader.js.map +1 -1
  546. package/es-custom/components/table/src/table.scss.js +1 -1
  547. package/es-custom/components/table/src/table.template.js +9 -9
  548. package/es-custom/components/table/src/table.template.js.map +1 -1
  549. package/es-custom/components/toolbar/src/toolbar.js +51 -53
  550. package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
  551. package/es-custom/components/video-player/src/providers/base-provider.js +0 -1
  552. package/es-custom/components/video-player/src/providers/base-provider.js.map +1 -1
  553. package/es-custom/components/video-player/src/providers/kaltura-provider.js +0 -1
  554. package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  555. package/es-custom/components/video-player/src/providers/native-video-provider.js +0 -1
  556. package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
  557. package/es-custom/components/video-player/src/providers/vimeo-provider.js +0 -1
  558. package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  559. package/es-custom/components/video-player/src/providers/youtube-provider.js +0 -1
  560. package/es-custom/components/video-player/src/providers/youtube-provider.js.map +1 -1
  561. package/es-custom/components/video-player/src/utils/url-detector.js +0 -1
  562. package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
  563. package/es-custom/components/video-player/src/video-player.js +9 -10
  564. package/es-custom/components/video-player/src/video-player.js.map +1 -1
  565. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +0 -1
  566. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
  567. package/es-custom/components/workspace-shell/src/workspace-shell-header.js +25 -25
  568. package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  569. package/es-custom/globals/utils/aria-announcer-manager.d.ts +62 -0
  570. package/es-custom/globals/utils/aria-announcer-manager.js +125 -0
  571. package/es-custom/globals/utils/aria-announcer-manager.js.map +1 -0
  572. package/es-custom/globals/utils/browser-utils.d.ts +10 -0
  573. package/es-custom/globals/utils/browser-utils.js +37 -0
  574. package/es-custom/globals/utils/browser-utils.js.map +1 -0
  575. package/es-custom/globals/utils/dom-utils.d.ts +6 -0
  576. package/es-custom/globals/utils/dom-utils.js +39 -0
  577. package/es-custom/globals/utils/dom-utils.js.map +1 -0
  578. package/{es/react → es-custom/globals}/utils/iconTransform.js +1 -2
  579. package/es-custom/globals/utils/iconTransform.js.map +1 -0
  580. package/es-custom/react/__tests__/jest.setup.js +1 -2
  581. package/es-custom/react/__tests__/jest.setup.js.map +1 -1
  582. package/es-custom/react/audio-player.js +0 -1
  583. package/es-custom/react/audio-player.js.map +1 -1
  584. package/es-custom/react/autocomplete.d.ts +11 -0
  585. package/es-custom/react/autocomplete.js +36 -0
  586. package/es-custom/react/autocomplete.js.map +1 -0
  587. package/es-custom/react/chat-header.js +1 -1
  588. package/es-custom/react/code-snippet.js +1 -1
  589. package/es-custom/react/error-message.d.ts +11 -0
  590. package/es-custom/react/error-message.js +28 -0
  591. package/es-custom/react/error-message.js.map +1 -0
  592. package/es-custom/react/file-uploads.d.ts +11 -0
  593. package/es-custom/react/file-uploads.js +31 -0
  594. package/es-custom/react/file-uploads.js.map +1 -0
  595. package/es-custom/react/history/history-panel-item-input.js +1 -0
  596. package/es-custom/react/history/history-panel-item-input.js.map +1 -1
  597. package/es-custom/react/history/history-panel-item.js +1 -0
  598. package/es-custom/react/history/history-panel-item.js.map +1 -1
  599. package/es-custom/react/hooks/useChatAutocomplete.d.ts +41 -0
  600. package/es-custom/react/hooks/useChatAutocomplete.js +178 -0
  601. package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -0
  602. package/es-custom/react/input-send-control.d.ts +11 -0
  603. package/es-custom/react/input-send-control.js +32 -0
  604. package/es-custom/react/input-send-control.js.map +1 -0
  605. package/es-custom/react/prompt-line-shell.d.ts +18 -0
  606. package/es-custom/react/prompt-line-shell.js +36 -0
  607. package/es-custom/react/prompt-line-shell.js.map +1 -0
  608. package/es-custom/react/prompt-line.d.ts +25 -0
  609. package/es-custom/react/prompt-line.js +52 -0
  610. package/es-custom/react/prompt-line.js.map +1 -0
  611. package/es-custom/react/stop-streaming-button.d.ts +11 -0
  612. package/es-custom/react/stop-streaming-button.js +28 -0
  613. package/es-custom/react/stop-streaming-button.js.map +1 -0
  614. package/es-custom/react/toolbar.js +1 -1
  615. package/es-custom/react/transcript.js +0 -1
  616. package/es-custom/react/transcript.js.map +1 -1
  617. package/es-custom/react/utils/transformSuggestionConfig.d.ts +21 -0
  618. package/es-custom/react/utils/transformSuggestionConfig.js +67 -0
  619. package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -0
  620. package/es-custom/react/video-player.js +0 -1
  621. package/es-custom/react/video-player.js.map +1 -1
  622. package/es-custom/testing/PageObjectId.js +1 -2
  623. package/es-custom/testing/PageObjectId.js.map +1 -1
  624. package/package.json +27 -6
  625. package/scss/_custom-properties.scss +1 -3
  626. package/scss/_modifiers.scss +17 -49
  627. package/scss/_tokens-component.scss +1 -3
  628. package/scss/_tokens-layout.scss +1 -3
  629. package/scss/_utilities.scss +1 -3
  630. package/LICENSE +0 -201
  631. package/es/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
  632. package/es/components/chat-shell/src/aria-announcer-manager.js +0 -104
  633. package/es/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
  634. package/es/react/utils/iconTransform.js.map +0 -1
  635. package/es-custom/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
  636. package/es-custom/components/chat-shell/src/aria-announcer-manager.js +0 -104
  637. package/es-custom/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
  638. package/es-custom/react/utils/iconTransform.js.map +0 -1
  639. /package/es/{react → globals}/utils/iconTransform.d.ts +0 -0
  640. /package/es-custom/{react → globals}/utils/iconTransform.d.ts +0 -0
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ /**
9
+ * @license
10
+ *
11
+ * Copyright IBM Corp. 2026
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ const lastDetailByEditor = new WeakMap();
17
+ /**
18
+ * Dispatch `cds-custom-aichat-trigger-change` on the editor's DOM if the detail has
19
+ * changed since the last call for the same editor. No-op transitions are
20
+ * coalesced.
21
+ */
22
+ function dispatchTriggerChange(editor, detail) {
23
+ const previous = lastDetailByEditor.get(editor) ?? null;
24
+ if (areDetailsEqual(previous, detail)) {
25
+ return;
26
+ }
27
+ lastDetailByEditor.set(editor, detail);
28
+ editor.view.dom.dispatchEvent(new CustomEvent("cds-custom-aichat-trigger-change", {
29
+ detail,
30
+ bubbles: true,
31
+ composed: true,
32
+ }));
33
+ }
34
+ function areDetailsEqual(a, b) {
35
+ if (a === null || b === null) {
36
+ return a === b;
37
+ }
38
+ return (a.type === b.type &&
39
+ a.query === b.query &&
40
+ a.triggerOffset === b.triggerOffset);
41
+ }
42
+
43
+ export { dispatchTriggerChange };
44
+ //# sourceMappingURL=trigger-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-utils.js","sources":["../../../../../src/components/prompt-line/src/tiptap/trigger-utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAqBH,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAGnC;AAEH;;;;AAIG;AACG,SAAU,qBAAqB,CACnC,MAAc,EACd,MAAuC,EAAA;IAEvC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI;AACvD,IAAA,IAAI,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACrC;IACF;AACA,IAAA,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IACtC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC3B,IAAI,WAAW,CAAC,2BAA2B,EAAE;QAC3C,MAAM;AACN,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC,CACH;AACH;AAEA,SAAS,eAAe,CACtB,CAAkC,EAClC,CAAkC,EAAA;IAElC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC;IAChB;AACA,IAAA,QACE,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;AACjB,QAAA,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK;AACnB,QAAA,CAAC,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa;AAEvC;;;;"}
@@ -0,0 +1,161 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2026
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ /**
10
+ * Tiptap-shaped configs for the chat-input subsystem. The Carbon factories
11
+ * (`carbonMention`, `carbonCommand`, `carbonAutocomplete`,
12
+ * `carbonStarterTrigger`) and the shell consume these types directly.
13
+ */
14
+ import type { ComponentType, ReactNode } from "react";
15
+ import type { CarbonIcon } from "@carbon/web-components/es-custom/globals/internal/icon-loader-utils.js";
16
+ /**
17
+ * Single list-item shape used by both the autocomplete-list-manager and the
18
+ * starter list.
19
+ */
20
+ export interface SuggestionItem {
21
+ /** Unique identifier for the item. */
22
+ id: string;
23
+ /** Display label shown in the suggestion list. */
24
+ label: string;
25
+ /** String value inserted into the message on selection. Defaults to label. */
26
+ value?: string;
27
+ /** Optional description shown below the label. */
28
+ description?: string;
29
+ /**
30
+ * Optional leading visual for the item.
31
+ *
32
+ * Can be:
33
+ * - a string URL for an avatar image
34
+ * - an icon from `@carbon/icons` (CarbonIcon descriptor)
35
+ * - a React icon component from `@carbon/icons-react`
36
+ *
37
+ * React components are automatically transformed to CarbonIcon format when
38
+ * rendered through the React wrapper.
39
+ */
40
+ avatar?: string | CarbonIcon | ComponentType<any>;
41
+ /** Whether the item is disabled and cannot be selected. */
42
+ disabled?: boolean;
43
+ /**
44
+ * Whether the trigger character prefixes this item's rendered chip (e.g.
45
+ * `/summarize` instead of `summarize`). Only meaningful for items
46
+ * selected through a mention/command picker — chip-less surfaces
47
+ * (autocomplete, starters) ignore it. Overrides
48
+ * {@link TriggerSuggestionConfig.showTriggerInChip} and the built-in
49
+ * default (commands show their trigger, mentions don't) when set, so a
50
+ * single `@` picker can mix items that read as a bare name (people) with
51
+ * items that read as `@name` (files, agents, ...).
52
+ */
53
+ showTriggerInChip?: boolean;
54
+ }
55
+ /**
56
+ * Represents a group of related suggestion items with a title.
57
+ */
58
+ export interface SuggestionItemGroup {
59
+ /** Unique identifier for the group */
60
+ id: string;
61
+ /** Title displayed above the group */
62
+ title: string;
63
+ /** Array of suggestion items in this group */
64
+ items: SuggestionItem[];
65
+ }
66
+ /**
67
+ * Props passed to the custom list renderer.
68
+ */
69
+ export interface CustomListProps {
70
+ /** Current filtered items to display. */
71
+ items: SuggestionItem[];
72
+ /** Current query string (text after trigger). */
73
+ query: string;
74
+ /** Callback to invoke when user selects an item. */
75
+ onSelect: (item: SuggestionItem) => void;
76
+ /** Callback to invoke when list should be dismissed. */
77
+ onDismiss: () => void;
78
+ }
79
+ /**
80
+ * Fields shared by every suggestion config.
81
+ */
82
+ export interface BaseSuggestionConfig {
83
+ /**
84
+ * Static item list or async function called with the current query string.
85
+ */
86
+ items: SuggestionItem[] | ((query: string) => Promise<SuggestionItem[]> | SuggestionItem[]);
87
+ /** Minimum query length before items() is called. Defaults to 0. */
88
+ minQueryLength?: number;
89
+ /** Debounce delay in ms for the async items function. Defaults to 200. */
90
+ debounceMs?: number;
91
+ /** Called after the user selects an item and insertion is complete. */
92
+ onSelect?: (item: SuggestionItem) => void;
93
+ /** Replace the built-in suggestion list UI. */
94
+ renderCustomList?: (props: CustomListProps) => HTMLElement | unknown;
95
+ }
96
+ /**
97
+ * Trigger-character-driven suggestion config. Used by `carbonMention` and
98
+ * `carbonCommand` (the carbon factories distinguish them only by their
99
+ * default Tiptap node `name`).
100
+ */
101
+ export interface TriggerSuggestionConfig extends BaseSuggestionConfig {
102
+ /** Character that activates the suggestion (e.g. "@", "/"). */
103
+ trigger: string;
104
+ /** Whether the trigger must appear at the start of the input/line, or
105
+ * anywhere. Defaults to "anywhere". */
106
+ triggerPosition?: "start" | "anywhere";
107
+ /**
108
+ * Override the schema-node name. Threaded through `Mention.extend({ name })`
109
+ * inside the carbon factory to sidestep Tiptap's last-named-wins stacking
110
+ * caveat when multiple triggers coexist.
111
+ *
112
+ * Defaults: `"mention"` (carbonMention) / `"command"` (carbonCommand).
113
+ */
114
+ name?: string;
115
+ /** Replace the visual element rendered inside the token chip. */
116
+ renderCustomToken?: (item: SuggestionItem) => HTMLElement | ReactNode;
117
+ /**
118
+ * Called when a previously-inserted token for this trigger is removed from
119
+ * the input by a user edit (backspace, delete, cut, select-all, undo, ...).
120
+ * The mirror of {@link BaseSuggestionConfig}'s `onSelect`: fires once per
121
+ * removed node instance, so deleting one of two identical chips fires
122
+ * exactly once. Use it to keep host-owned structured data in sync with the
123
+ * editor.
124
+ *
125
+ * The item is reconstructed from the node's stored attributes (`id`,
126
+ * `label`, `value`, plus any custom fields preserved in `data`);
127
+ * presentation-only fields (`icon`, `avatar`, `description`, `disabled`) are
128
+ * not retained on the node and are absent. Programmatic removals (via
129
+ * `getEditor()`/`updateContent`) are host-origin and do NOT fire `onRemove`,
130
+ * symmetric with `onSelect` not firing on programmatic inserts.
131
+ */
132
+ onRemove?: (item: SuggestionItem) => void;
133
+ /**
134
+ * Default for whether the trigger character prefixes the rendered chip,
135
+ * applied to every item from this config unless the item sets its own
136
+ * {@link SuggestionItem.showTriggerInChip}. Defaults to `true` for
137
+ * `carbonCommand` and `false` for `carbonMention` when omitted.
138
+ */
139
+ showTriggerInChip?: boolean;
140
+ }
141
+ /**
142
+ * Live autocomplete config. Selection inserts plain text (no token chip).
143
+ */
144
+ export interface AutocompleteConfig extends BaseSuggestionConfig {
145
+ /** Override the suggestion plugin key name. Defaults to `"autocomplete"`. */
146
+ name?: string;
147
+ }
148
+ /**
149
+ * Detail payload for the trigger-change event emitted directly by each carbon
150
+ * factory's suggestion-render lifecycle. The shape is shared with the legacy
151
+ * `TriggerChangeEventDetail` (see `../types.ts`) so existing listeners keep
152
+ * working unchanged across the wave.
153
+ */
154
+ export interface TriggerChangeEventDetail {
155
+ /** The trigger type that fired (`"mention"`/`"command"`/`"autocomplete"`/`"starter"`). */
156
+ type: string;
157
+ /** The current query string typed after the trigger character. */
158
+ query: string;
159
+ /** The character offset of the trigger in the editor content. */
160
+ triggerOffset: number;
161
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2026
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ /**
10
+ * Tiptap typing-indicator extension. Emits `cds-custom-aichat-prompt-typing` events
11
+ * on the editor's DOM whenever the user's typing-state changes.
12
+ *
13
+ * Behavior:
14
+ * - Sets `isTyping = true` on the first user-driven doc change.
15
+ * - Restarts a 5-second timer on each subsequent change.
16
+ * - Emits `isTyping = false` after 5 seconds of inactivity.
17
+ * - Skips host-origin transactions (`tr.setMeta("aichatOrigin", "host")`).
18
+ * Origin is recorded in storage by `appendTransaction` and read by the
19
+ * view's `update` hook (mirrors the `value-sync` extension pattern).
20
+ *
21
+ * The storage `reset()` controller lets the prompt-line / shell wipe typing
22
+ * state immediately on send.
23
+ */
24
+ import { Extension } from "@tiptap/core";
25
+ export interface TypingIndicatorStorage {
26
+ reset(): void;
27
+ /** True iff the most recent doc-changing batch was entirely host-origin. */
28
+ lastTransactionIsHost: boolean;
29
+ }
30
+ export declare const TypingIndicator: Extension<unknown, TypingIndicatorStorage>;
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { Extension } from '@tiptap/core';
9
+ import { Plugin } from '@tiptap/pm/state';
10
+ import { isHostOrigin } from './origin-meta.js';
11
+
12
+ /**
13
+ * @license
14
+ *
15
+ * Copyright IBM Corp. 2026
16
+ *
17
+ * This source code is licensed under the Apache-2.0 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+ /**
21
+ * Tiptap typing-indicator extension. Emits `cds-custom-aichat-prompt-typing` events
22
+ * on the editor's DOM whenever the user's typing-state changes.
23
+ *
24
+ * Behavior:
25
+ * - Sets `isTyping = true` on the first user-driven doc change.
26
+ * - Restarts a 5-second timer on each subsequent change.
27
+ * - Emits `isTyping = false` after 5 seconds of inactivity.
28
+ * - Skips host-origin transactions (`tr.setMeta("aichatOrigin", "host")`).
29
+ * Origin is recorded in storage by `appendTransaction` and read by the
30
+ * view's `update` hook (mirrors the `value-sync` extension pattern).
31
+ *
32
+ * The storage `reset()` controller lets the prompt-line / shell wipe typing
33
+ * state immediately on send.
34
+ */
35
+ const TYPING_TIMEOUT_MS = 5000;
36
+ const TypingIndicator = Extension.create({
37
+ name: "carbonTypingIndicator",
38
+ addStorage() {
39
+ return { reset: () => { }, lastTransactionIsHost: false };
40
+ },
41
+ addProseMirrorPlugins() {
42
+ const { storage } = this;
43
+ let isTyping = false;
44
+ let timeoutId = null;
45
+ let editorDom = null;
46
+ function emit(typing) {
47
+ isTyping = typing;
48
+ if (editorDom) {
49
+ editorDom.dispatchEvent(new CustomEvent("cds-custom-aichat-prompt-typing", {
50
+ detail: { isTyping: typing },
51
+ bubbles: true,
52
+ composed: true,
53
+ }));
54
+ }
55
+ }
56
+ function clearTimer() {
57
+ if (timeoutId != null) {
58
+ clearTimeout(timeoutId);
59
+ timeoutId = null;
60
+ }
61
+ }
62
+ storage.reset = () => {
63
+ clearTimer();
64
+ if (isTyping) {
65
+ emit(false);
66
+ }
67
+ };
68
+ return [
69
+ new Plugin({
70
+ view(view) {
71
+ editorDom = view.dom;
72
+ return {
73
+ update(view, prevState) {
74
+ if (view.state.doc.eq(prevState.doc)) {
75
+ return;
76
+ }
77
+ if (storage.lastTransactionIsHost) {
78
+ return;
79
+ }
80
+ if (!isTyping) {
81
+ emit(true);
82
+ }
83
+ clearTimer();
84
+ timeoutId = setTimeout(() => emit(false), TYPING_TIMEOUT_MS);
85
+ },
86
+ destroy() {
87
+ clearTimer();
88
+ editorDom = null;
89
+ },
90
+ };
91
+ },
92
+ appendTransaction(transactions) {
93
+ storage.lastTransactionIsHost =
94
+ transactions.length > 0 &&
95
+ transactions.every((tr) => isHostOrigin(tr));
96
+ return null;
97
+ },
98
+ }),
99
+ ];
100
+ },
101
+ });
102
+
103
+ export { TypingIndicator };
104
+ //# sourceMappingURL=typing-indicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing-indicator.js","sources":["../../../../../src/components/prompt-line/src/tiptap/typing-indicator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;;;;;;;;AAcG;AAOH,MAAM,iBAAiB,GAAG,IAAI;AAQvB,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAG7C;AACA,IAAA,IAAI,EAAE,uBAAuB;IAE7B,UAAU,GAAA;AACR,QAAA,OAAO,EAAE,KAAK,EAAE,MAAK,EAAE,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE;IAC1D,CAAC;IAED,qBAAqB,GAAA;AACnB,QAAA,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI;QACxB,IAAI,QAAQ,GAAG,KAAK;QACpB,IAAI,SAAS,GAAyC,IAAI;QAC1D,IAAI,SAAS,GAAuB,IAAI;QAExC,SAAS,IAAI,CAAC,MAAe,EAAA;YAC3B,QAAQ,GAAG,MAAM;YACjB,IAAI,SAAS,EAAE;AACb,gBAAA,SAAS,CAAC,aAAa,CACrB,IAAI,WAAW,CAAC,0BAA0B,EAAE;AAC1C,oBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC5B,oBAAA,OAAO,EAAE,IAAI;AACb,oBAAA,QAAQ,EAAE,IAAI;AACf,iBAAA,CAAC,CACH;YACH;QACF;AAEA,QAAA,SAAS,UAAU,GAAA;AACjB,YAAA,IAAI,SAAS,IAAI,IAAI,EAAE;gBACrB,YAAY,CAAC,SAAS,CAAC;gBACvB,SAAS,GAAG,IAAI;YAClB;QACF;AAEA,QAAA,OAAO,CAAC,KAAK,GAAG,MAAK;AACnB,YAAA,UAAU,EAAE;YACZ,IAAI,QAAQ,EAAE;gBACZ,IAAI,CAAC,KAAK,CAAC;YACb;AACF,QAAA,CAAC;QAED,OAAO;AACL,YAAA,IAAI,MAAM,CAAC;AACT,gBAAA,IAAI,CAAC,IAAI,EAAA;AACP,oBAAA,SAAS,GAAG,IAAI,CAAC,GAAkB;oBACnC,OAAO;wBACL,MAAM,CAAC,IAAI,EAAE,SAAS,EAAA;AACpB,4BAAA,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;gCACpC;4BACF;AACA,4BAAA,IAAI,OAAO,CAAC,qBAAqB,EAAE;gCACjC;4BACF;4BACA,IAAI,CAAC,QAAQ,EAAE;gCACb,IAAI,CAAC,IAAI,CAAC;4BACZ;AACA,4BAAA,UAAU,EAAE;AACZ,4BAAA,SAAS,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;wBAC9D,CAAC;wBACD,OAAO,GAAA;AACL,4BAAA,UAAU,EAAE;4BACZ,SAAS,GAAG,IAAI;wBAClB,CAAC;qBACF;gBACH,CAAC;AACD,gBAAA,iBAAiB,CAAC,YAAY,EAAA;AAC5B,oBAAA,OAAO,CAAC,qBAAqB;wBAC3B,YAAY,CAAC,MAAM,GAAG,CAAC;AACvB,4BAAA,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,YAAY,CAAC,EAAE,CAAC,CAAC;AAC9C,oBAAA,OAAO,IAAI;gBACb,CAAC;aACF,CAAC;SACH;IACH,CAAC;AACF,CAAA;;;;"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2026
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ /**
10
+ * Tiptap value-sync extension. Emits `cds-custom-aichat-prompt-change` on every
11
+ * doc-changing transaction with the editor's current `getText()` (rawValue)
12
+ * and `getJSON()` (Tiptap-native content shape).
13
+ *
14
+ * Origin-awareness lives in `extension.storage.lastTransactionIsHost`, set by
15
+ * the plugin's `appendTransaction` hook before the view-update fires. Host
16
+ * code dispatching transactions via `getEditor()?.view.dispatch(tr)` should
17
+ * tag the transaction with `setHostOriginMeta(tr)` (see `./origin-meta.ts`)
18
+ * if it wants downstream readers (typing-indicator) to recognize it.
19
+ */
20
+ import { Extension } from "@tiptap/core";
21
+ export interface ValueSyncStorage {
22
+ /** True iff the most recent doc-changing batch contained any host-origin tr. */
23
+ lastTransactionIsHost: boolean;
24
+ }
25
+ export declare const ValueSync: Extension<unknown, ValueSyncStorage>;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { Extension } from '@tiptap/core';
9
+ import { Plugin } from '@tiptap/pm/state';
10
+ import { isHostOrigin } from './origin-meta.js';
11
+
12
+ /**
13
+ * @license
14
+ *
15
+ * Copyright IBM Corp. 2026
16
+ *
17
+ * This source code is licensed under the Apache-2.0 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+ /**
21
+ * Tiptap value-sync extension. Emits `cds-custom-aichat-prompt-change` on every
22
+ * doc-changing transaction with the editor's current `getText()` (rawValue)
23
+ * and `getJSON()` (Tiptap-native content shape).
24
+ *
25
+ * Origin-awareness lives in `extension.storage.lastTransactionIsHost`, set by
26
+ * the plugin's `appendTransaction` hook before the view-update fires. Host
27
+ * code dispatching transactions via `getEditor()?.view.dispatch(tr)` should
28
+ * tag the transaction with `setHostOriginMeta(tr)` (see `./origin-meta.ts`)
29
+ * if it wants downstream readers (typing-indicator) to recognize it.
30
+ */
31
+ const ValueSync = Extension.create({
32
+ name: "carbonValueSync",
33
+ addStorage() {
34
+ return { lastTransactionIsHost: false };
35
+ },
36
+ addProseMirrorPlugins() {
37
+ const { editor, storage } = this;
38
+ return [
39
+ new Plugin({
40
+ appendTransaction(transactions) {
41
+ storage.lastTransactionIsHost = transactions.some((tr) => isHostOrigin(tr));
42
+ return null;
43
+ },
44
+ view: () => ({
45
+ update(view, prevState) {
46
+ if (view.state.doc === prevState.doc) {
47
+ return;
48
+ }
49
+ view.dom.dispatchEvent(new CustomEvent("cds-custom-aichat-prompt-change", {
50
+ detail: {
51
+ rawValue: editor.getText(),
52
+ content: editor.getJSON(),
53
+ },
54
+ bubbles: true,
55
+ composed: true,
56
+ }));
57
+ },
58
+ }),
59
+ }),
60
+ ];
61
+ },
62
+ });
63
+
64
+ export { ValueSync };
65
+ //# sourceMappingURL=value-sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value-sync.js","sources":["../../../../../src/components/prompt-line/src/tiptap/value-sync.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;;;;AAUG;AAYI,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAA4B;AACnE,IAAA,IAAI,EAAE,iBAAiB;IAEvB,UAAU,GAAA;AACR,QAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE;IACzC,CAAC;IAED,qBAAqB,GAAA;AACnB,QAAA,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI;QAChC,OAAO;AACL,YAAA,IAAI,MAAM,CAAC;AACT,gBAAA,iBAAiB,CAAC,YAAY,EAAA;AAC5B,oBAAA,OAAO,CAAC,qBAAqB,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,KACnD,YAAY,CAAC,EAAE,CAAC,CACjB;AACD,oBAAA,OAAO,IAAI;gBACb,CAAC;AACD,gBAAA,IAAI,EAAE,OAAO;oBACX,MAAM,CAAC,IAAI,EAAE,SAAS,EAAA;wBACpB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,GAAG,EAAE;4BACpC;wBACF;wBACA,IAAI,CAAC,GAAG,CAAC,aAAa,CACpB,IAAI,WAAW,CAAC,0BAA0B,EAAE;AAC1C,4BAAA,MAAM,EAAE;AACN,gCAAA,QAAQ,EAAE,MAAM,CAAC,OAAO,EAAE;AAC1B,gCAAA,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE;AAC1B,6BAAA;AACD,4BAAA,OAAO,EAAE,IAAI;AACb,4BAAA,QAAQ,EAAE,IAAI;AACf,yBAAA,CAAC,CACH;oBACH,CAAC;iBACF,CAAC;aACH,CAAC;SACH;IACH,CAAC;AACF,CAAA;;;;"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2026
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ /**
10
+ * Public types for the input subsystem. Curated suggestion / item /
11
+ * list-renderer types live in `tiptap/types.ts` and are re-exported here
12
+ * so consumers see them at the package's public surface.
13
+ */
14
+ import type { JSONContent } from "@tiptap/core";
15
+ export type { BaseSuggestionConfig, TriggerSuggestionConfig, AutocompleteConfig, SuggestionItem, CustomListProps, TriggerChangeEventDetail, } from "./tiptap/types.js";
16
+ /**
17
+ * Possible status values for a file upload. `SUCCESS` and `COMPLETE` both mean
18
+ * the upload finished without error, but they are not interchangeable: `SUCCESS`
19
+ * is the transient state shown the moment an upload succeeds (a brief checkmark),
20
+ * while `COMPLETE` is the settled, persisted terminal state.
21
+ */
22
+ export declare enum FileStatusValue {
23
+ /**
24
+ * Settled terminal state for a finished upload, with no progress or success
25
+ * affordance shown. This is the value persisted to session history, so a
26
+ * reloaded message renders in this quiet state rather than re-showing the
27
+ * transient `SUCCESS` checkmark.
28
+ */
29
+ COMPLETE = "complete",
30
+ /**
31
+ * The file is staged in the input area and can still be edited or removed
32
+ * before the message is sent.
33
+ */
34
+ EDIT = "edit",
35
+ /**
36
+ * The file is actively uploading; a progress or loading affordance is shown.
37
+ */
38
+ UPLOADING = "uploading",
39
+ /**
40
+ * Transient state shown the moment an upload finishes successfully, for example
41
+ * a checkmark surfaced briefly to confirm success. It is later recorded as
42
+ * `COMPLETE` in session history, so the affordance does not persist across
43
+ * reloads. Distinct from `COMPLETE`, which is the quiet settled state.
44
+ */
45
+ SUCCESS = "success"
46
+ }
47
+ /**
48
+ * An interface that represents a file to upload and its current upload status.
49
+ */
50
+ export interface FileUpload {
51
+ /** A unique ID for the file. */
52
+ id: string;
53
+ /** The file to upload. */
54
+ file: File;
55
+ /** The current upload status. */
56
+ status: FileStatusValue;
57
+ /** Indicates if the file contains an error or failed to upload. */
58
+ isError?: boolean;
59
+ /** If the file failed to upload, this is an optional error message to display. */
60
+ errorMessage?: string;
61
+ }
62
+ /**
63
+ * Detail payload for the input change event, emitted when the editor content
64
+ * changes. Post-PR-3, `content` is Tiptap-native `JSONContent` (the
65
+ * segment-array transport is gone).
66
+ */
67
+ export interface InputChangeEventDetail {
68
+ /** Plain-text projection (mention/command nodes contribute their `attrs.value || attrs.label`). */
69
+ rawValue: string;
70
+ /** Editor doc as Tiptap JSONContent. */
71
+ content?: JSONContent;
72
+ }
73
+ /**
74
+ * Detail payload for the send event, emitted when the user submits a message.
75
+ */
76
+ export interface SendEventDetail {
77
+ /** The plain-text content of the submitted message. */
78
+ text: string;
79
+ }
80
+ /**
81
+ * Detail payload for the file select event, emitted when files are chosen for upload.
82
+ */
83
+ export interface FileSelectEventDetail {
84
+ /** The list of files selected by the user. */
85
+ files: File[];
86
+ }
87
+ /**
88
+ * Detail payload for the file remove event, emitted when a file is removed from the upload list.
89
+ */
90
+ export interface FileRemoveEventDetail {
91
+ /** The unique ID of the file that was removed. */
92
+ fileId: string;
93
+ }
94
+ /**
95
+ * Detail payload for the typing event, emitted when the user starts or stops typing.
96
+ */
97
+ export interface TypingEventDetail {
98
+ /** Whether the user is currently typing. */
99
+ isTyping: boolean;
100
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ /**
9
+ * @license
10
+ *
11
+ * Copyright IBM Corp. 2026
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ /**
17
+ * Possible status values for a file upload. `SUCCESS` and `COMPLETE` both mean
18
+ * the upload finished without error, but they are not interchangeable: `SUCCESS`
19
+ * is the transient state shown the moment an upload succeeds (a brief checkmark),
20
+ * while `COMPLETE` is the settled, persisted terminal state.
21
+ */
22
+ var FileStatusValue;
23
+ (function (FileStatusValue) {
24
+ /**
25
+ * Settled terminal state for a finished upload, with no progress or success
26
+ * affordance shown. This is the value persisted to session history, so a
27
+ * reloaded message renders in this quiet state rather than re-showing the
28
+ * transient `SUCCESS` checkmark.
29
+ */
30
+ FileStatusValue["COMPLETE"] = "complete";
31
+ /**
32
+ * The file is staged in the input area and can still be edited or removed
33
+ * before the message is sent.
34
+ */
35
+ FileStatusValue["EDIT"] = "edit";
36
+ /**
37
+ * The file is actively uploading; a progress or loading affordance is shown.
38
+ */
39
+ FileStatusValue["UPLOADING"] = "uploading";
40
+ /**
41
+ * Transient state shown the moment an upload finishes successfully, for example
42
+ * a checkmark surfaced briefly to confirm success. It is later recorded as
43
+ * `COMPLETE` in session history, so the affordance does not persist across
44
+ * reloads. Distinct from `COMPLETE`, which is the quiet settled state.
45
+ */
46
+ FileStatusValue["SUCCESS"] = "success";
47
+ })(FileStatusValue || (FileStatusValue = {}));
48
+
49
+ export { FileStatusValue };
50
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../../../src/components/prompt-line/src/types.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAmBH;;;;;AAKG;IACS;AAAZ,CAAA,UAAY,eAAe,EAAA;AACzB;;;;;AAKG;AACH,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB;;;AAGG;AACH,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb;;AAEG;AACH,IAAA,eAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB;;;;;AAKG;AACH,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAxBW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;;;;"}
@@ -21,6 +21,19 @@ declare class CDSAIChatReasoningStep extends LitElement {
21
21
  focus(options?: FocusOptions): void;
22
22
  private renderInteractiveHeader;
23
23
  private renderStaticHeader;
24
+ /**
25
+ * The panel animates `grid-template-rows` when the step expands/collapses. We wait for
26
+ * any in-flight transition on the panel to finish, then emit a composed event so
27
+ * consumers (e.g. the message list's scroll manager) can recalculate scroll geometry
28
+ * against the settled layout.
29
+ *
30
+ * Using the Web Animations API (`getAnimations`) handles both cases with one path: when a
31
+ * transition runs we resolve on its `finished` promise, and when nothing animates (reduced
32
+ * motion, or a collapse that snaps without a transition) there are no animations so we emit
33
+ * immediately. The rAF lets the just-changed style flush so a pending transition is
34
+ * registered before we read it.
35
+ */
36
+ private emitAnimationEndWhenSettled;
24
37
  private renderPanel;
25
38
  /**
26
39
  * Apply/remove inert on assigned elements so they are untabbable when closed.