@carbon/ai-chat-components 0.5.0 → 0.6.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 (483) hide show
  1. package/custom-elements.json +9201 -295
  2. package/dist/16-dhcD1XnN.js +91 -0
  3. package/dist/apl-DqFn9Cbk.js +91 -0
  4. package/dist/asciiarmor-CQVR_D9L.js +91 -0
  5. package/dist/asn1-Bdl290ll.js +91 -0
  6. package/dist/asterisk-CHhwduFx.js +91 -0
  7. package/dist/button-C7jiyqgq.js +157 -0
  8. package/dist/button-skeleton-CmP7IJd9.js +116 -0
  9. package/dist/carbon-element-Bx5dT_rO.js +91 -0
  10. package/dist/carbon-element-GZbOyRvd.js +91 -0
  11. package/dist/chain-of-thought.min.js +276 -0
  12. package/dist/chat-button.min.js +71 -81
  13. package/dist/checkbox-skeleton-DwliWSxe.js +166 -0
  14. package/dist/class-map-C991A_SZ.js +106 -0
  15. package/dist/clike-D_BRCCKx.js +91 -0
  16. package/dist/clojure-DJgQfSNr.js +91 -0
  17. package/dist/cmake-B-ZvYGPj.js +91 -0
  18. package/dist/cobol-DQkSt8H4.js +91 -0
  19. package/dist/code-snippet.min.js +91 -0
  20. package/dist/codemirror-runtime-BNdgITbn.js +173 -0
  21. package/dist/coffeescript-BLbmGaLw.js +91 -0
  22. package/dist/collection-helpers-CFQuvZZA.js +91 -0
  23. package/dist/commonlisp-C9udfub_.js +91 -0
  24. package/dist/crystal-Cx264mZy.js +91 -0
  25. package/dist/css-C3wBe_UD.js +91 -0
  26. package/dist/custom-element-Cn0sJQhF.js +96 -0
  27. package/dist/cypher-B6v9gzB5.js +91 -0
  28. package/dist/d-TP3OUaM_.js +91 -0
  29. package/dist/diff-Y92SrBOy.js +91 -0
  30. package/dist/dockerfile-b9e_zbYe.js +91 -0
  31. package/dist/dtd-CyzcM_UR.js +91 -0
  32. package/dist/dylan-CLgWKLaP.js +91 -0
  33. package/dist/ebnf-Cj21Kqae.js +91 -0
  34. package/dist/ecl-BcwtDAaq.js +91 -0
  35. package/dist/eiffel-Dgs2eMt8.js +91 -0
  36. package/dist/elm-Lz8luKdH.js +91 -0
  37. package/dist/erlang-M1-xYwsL.js +91 -0
  38. package/dist/factor-DMuLpKP7.js +91 -0
  39. package/dist/fcl-6D51jO4g.js +91 -0
  40. package/dist/feedback.min.js +300 -0
  41. package/dist/forth-C50AZvgy.js +91 -0
  42. package/dist/fortran-Dpu0QrPi.js +91 -0
  43. package/dist/gas-B9QnMcpy.js +91 -0
  44. package/dist/gherkin-DTyHG7By.js +91 -0
  45. package/dist/groovy-C5hIRvZS.js +91 -0
  46. package/dist/haskell-riE-Rg6U.js +91 -0
  47. package/dist/haxe-BKi5Bt6T.js +91 -0
  48. package/dist/http-CCf5f1Lw.js +91 -0
  49. package/dist/icon-button-slcp5_YI.js +143 -0
  50. package/dist/icon-loader-B470ctm0.js +101 -0
  51. package/dist/idl-ChujC8hT.js +91 -0
  52. package/dist/if-defined-KYZWA80L.js +96 -0
  53. package/dist/index-BE2hQiYV.js +91 -0
  54. package/dist/index-BJSu7ZrY.js +91 -0
  55. package/dist/index-BNCWBho3.js +91 -0
  56. package/dist/index-Bo9Cedlp.js +91 -0
  57. package/dist/index-BtGjzzQh.js +91 -0
  58. package/dist/index-BvcTcg8N.js +91 -0
  59. package/dist/index-CL7jwlI7.js +91 -0
  60. package/dist/index-CPho0oBg.js +91 -0
  61. package/dist/index-CSzVoPB_.js +91 -0
  62. package/dist/index-CbsQNetX.js +91 -0
  63. package/dist/index-CdZ_a1WB.js +91 -0
  64. package/dist/index-Ce_RTZPK.js +91 -0
  65. package/dist/index-Cic4krlv.js +91 -0
  66. package/dist/index-CqP0C8Q_.js +91 -0
  67. package/dist/index-CsEIBvob.js +91 -0
  68. package/dist/index-D5o8uLCI.js +168 -0
  69. package/dist/index-D8SIiSq6.js +367 -0
  70. package/dist/index-DP_9bMys.js +91 -0
  71. package/dist/index-DofS9KDk.js +91 -0
  72. package/dist/index-Duo7vkZg.js +91 -0
  73. package/dist/index-DxcNpyu9.js +91 -0
  74. package/dist/index-ET89Rloy.js +91 -0
  75. package/dist/index-LQA85hjt.js +91 -0
  76. package/dist/index-T4fwu_xG.js +91 -0
  77. package/dist/javascript-BXzknqbJ.js +91 -0
  78. package/dist/julia-Ks6uUXS_.js +91 -0
  79. package/dist/{settings-XW6XylsZ.js → lit-element-Cj6JUqRW.js} +70 -12
  80. package/dist/livescript-C-N_oa0B.js +91 -0
  81. package/dist/lua-DyvKK1uJ.js +91 -0
  82. package/dist/markdown.min.js +296 -0
  83. package/dist/mathematica-DEg7Ra1Y.js +91 -0
  84. package/dist/mbox-DreqCmNH.js +91 -0
  85. package/dist/mirc-Cf2JTO1B.js +91 -0
  86. package/dist/mllike-BrIsM2v2.js +91 -0
  87. package/dist/modelica-B8SYrhCg.js +91 -0
  88. package/dist/mscgen-Ci9STQqX.js +91 -0
  89. package/dist/mumps-DdZIEnoV.js +91 -0
  90. package/dist/nginx-csHLvOI4.js +91 -0
  91. package/dist/nsis-BJ14NiV_.js +91 -0
  92. package/dist/ntriples-r4TsB1vg.js +91 -0
  93. package/dist/octave-DAywLo7W.js +91 -0
  94. package/dist/oz-DF39EOLJ.js +91 -0
  95. package/dist/pascal-Cdx2JBFI.js +91 -0
  96. package/dist/perl-CUDzEjb5.js +91 -0
  97. package/dist/pig-BgGDN3Fs.js +91 -0
  98. package/dist/powershell-yf7ZzrwA.js +91 -0
  99. package/dist/processing.min.js +71 -4
  100. package/dist/properties-Cna57Jh2.js +91 -0
  101. package/dist/protobuf-CWUMO8BP.js +91 -0
  102. package/dist/pug-D44aRpDl.js +91 -0
  103. package/dist/puppet-9oZPpLZK.js +91 -0
  104. package/dist/python-BzmgDs2d.js +91 -0
  105. package/dist/q-DDRrIilQ.js +91 -0
  106. package/dist/query-CIc5rDzI.js +101 -0
  107. package/dist/r-DT4JIpvb.js +91 -0
  108. package/dist/radio-group-manager-Dy7yXQky.js +91 -0
  109. package/dist/reasoning-steps.min.js +171 -0
  110. package/dist/repeat-DA7noZfi.js +96 -0
  111. package/dist/rpm-Q94njsnC.js +91 -0
  112. package/dist/ruby-p6VwoSsc.js +91 -0
  113. package/dist/sas-C8r72_Ai.js +91 -0
  114. package/dist/scheme-Bw1qfPdY.js +91 -0
  115. package/dist/settings-Bx1fCry0.js +99 -0
  116. package/dist/shell-B0162WXP.js +91 -0
  117. package/dist/sieve-DcAl9TNY.js +91 -0
  118. package/dist/simple-mode-dBIHJK_w.js +91 -0
  119. package/dist/smalltalk-BRpoyy0q.js +91 -0
  120. package/dist/solr-CntivwdY.js +91 -0
  121. package/dist/sparql-CPxRv-GB.js +91 -0
  122. package/dist/spreadsheet-DiWzltX0.js +91 -0
  123. package/dist/sql-BZFWK8-D.js +91 -0
  124. package/dist/state-ldHJ0lGt.js +96 -0
  125. package/dist/stex-DVnajZzj.js +91 -0
  126. package/dist/stylus-BCkTgCvi.js +91 -0
  127. package/dist/swift-DumH6rGA.js +91 -0
  128. package/dist/sync-BrWXU4C6.js +91 -0
  129. package/dist/table-runtime-C-85Ozvo.js +510 -0
  130. package/dist/table.min.js +91 -0
  131. package/dist/tcl-Ds60z3Ro.js +91 -0
  132. package/dist/text-input-BNmEJ8ys.js +158 -0
  133. package/dist/textile-CgTb_UUX.js +91 -0
  134. package/dist/throttle-CT5ZAUBU.js +91 -0
  135. package/dist/tiddlywiki-D0BukLzX.js +91 -0
  136. package/dist/tiki-DlrtqA5_.js +91 -0
  137. package/dist/tile-container.min.js +70 -14
  138. package/dist/toml-CG0tgYZ1.js +91 -0
  139. package/dist/toolbar.min.js +180 -0
  140. package/dist/troff-DZdS2uzR.js +91 -0
  141. package/dist/ttcn-D2NdeEoM.js +91 -0
  142. package/dist/ttcn-cfg-dCpHFW8J.js +91 -0
  143. package/dist/turtle-DBImhCBD.js +91 -0
  144. package/dist/vb-BdASAZha.js +91 -0
  145. package/dist/vbscript-DlJph2V7.js +91 -0
  146. package/dist/velocity-ds6Akj1B.js +91 -0
  147. package/dist/verilog-KFajwNWD.js +91 -0
  148. package/dist/vhdl-DWozufY6.js +91 -0
  149. package/dist/webidl-BSUbcB__.js +91 -0
  150. package/dist/workspace-shell.min.js +162 -0
  151. package/dist/xquery-CvISDSSw.js +91 -0
  152. package/dist/yacas-BNn6e9ff.js +91 -0
  153. package/dist/z80-BwinLJKG.js +91 -0
  154. package/es/components/chain-of-thought/index.d.ts +4 -0
  155. package/es/components/chain-of-thought/index.js +11 -0
  156. package/es/components/chain-of-thought/index.js.map +1 -0
  157. package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.d.ts +15 -0
  158. package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js +36 -0
  159. package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js.map +1 -0
  160. package/es/components/chain-of-thought/src/chain-of-thought.d.ts +87 -0
  161. package/es/components/chain-of-thought/src/chain-of-thought.js +189 -0
  162. package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -0
  163. package/es/components/chain-of-thought/src/chain-of-thought.scss.js +13 -0
  164. package/es/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -0
  165. package/es/components/chain-of-thought/src/chain-of-thought.template.d.ts +5 -0
  166. package/es/components/chain-of-thought/src/chain-of-thought.template.js +206 -0
  167. package/es/components/chain-of-thought/src/chain-of-thought.template.js.map +1 -0
  168. package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.d.ts +10 -0
  169. package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js +50 -0
  170. package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js.map +1 -0
  171. package/es/components/chain-of-thought/src/types.d.ts +73 -0
  172. package/es/components/chain-of-thought/src/types.js +29 -0
  173. package/es/components/chain-of-thought/src/types.js.map +1 -0
  174. package/es/components/chat-button/defs.d.ts +25 -0
  175. package/es/components/chat-button/defs.js +36 -0
  176. package/es/components/chat-button/defs.js.map +1 -0
  177. package/es/components/chat-button/index.d.ts +1 -1
  178. package/es/components/chat-button/index.js +1 -1
  179. package/es/components/chat-button/src/chat-button.d.ts +32 -0
  180. package/es/components/chat-button/{chat-button.js → src/chat-button.js} +16 -10
  181. package/es/components/chat-button/src/chat-button.js.map +1 -0
  182. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  183. package/es/components/code-snippet/index.d.ts +3 -0
  184. package/es/components/code-snippet/index.js +10 -0
  185. package/es/components/code-snippet/index.js.map +1 -0
  186. package/es/components/code-snippet/src/code-snippet-tile-container.d.ts +32 -0
  187. package/es/components/code-snippet/src/code-snippet-tile-container.js +143 -0
  188. package/es/components/code-snippet/src/code-snippet-tile-container.js.map +1 -0
  189. package/es/components/code-snippet/src/code-snippet.d.ts +482 -0
  190. package/es/components/code-snippet/src/code-snippet.js +592 -0
  191. package/es/components/code-snippet/src/code-snippet.js.map +1 -0
  192. package/es/components/code-snippet/src/code-snippet.scss.js +13 -0
  193. package/es/components/code-snippet/src/code-snippet.scss.js.map +1 -0
  194. package/es/components/code-snippet/src/codemirror/base-setup.d.ts +12 -0
  195. package/es/components/code-snippet/src/codemirror/base-setup.js +65 -0
  196. package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -0
  197. package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +12 -0
  198. package/es/components/code-snippet/src/codemirror/codemirror-loader.js +36 -0
  199. package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -0
  200. package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +7 -0
  201. package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +13 -0
  202. package/es/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -0
  203. package/es/components/code-snippet/src/codemirror/content-sync.d.ts +12 -0
  204. package/es/components/code-snippet/src/codemirror/content-sync.js +72 -0
  205. package/es/components/code-snippet/src/codemirror/content-sync.js.map +1 -0
  206. package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +28 -0
  207. package/es/components/code-snippet/src/codemirror/editor-manager.js +75 -0
  208. package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -0
  209. package/es/components/code-snippet/src/codemirror/language-controller.d.ts +38 -0
  210. package/es/components/code-snippet/src/codemirror/language-controller.js +220 -0
  211. package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -0
  212. package/es/components/code-snippet/src/codemirror/language-data.d.ts +6 -0
  213. package/es/components/code-snippet/src/codemirror/language-data.js +1043 -0
  214. package/es/components/code-snippet/src/codemirror/language-data.js.map +1 -0
  215. package/es/components/code-snippet/src/codemirror/language-utils.d.ts +79 -0
  216. package/es/components/code-snippet/src/codemirror/language-utils.js +219 -0
  217. package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -0
  218. package/es/components/code-snippet/src/codemirror/marker-utils.d.ts +123 -0
  219. package/es/components/code-snippet/src/codemirror/marker-utils.js +183 -0
  220. package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -0
  221. package/es/components/code-snippet/src/codemirror/theme.d.ts +54 -0
  222. package/es/components/code-snippet/src/codemirror/theme.js +320 -0
  223. package/es/components/code-snippet/src/codemirror/theme.js.map +1 -0
  224. package/es/components/code-snippet/src/dom-utils.d.ts +24 -0
  225. package/es/components/code-snippet/src/dom-utils.js +63 -0
  226. package/es/components/code-snippet/src/dom-utils.js.map +1 -0
  227. package/es/components/code-snippet/src/formatters.d.ts +4 -0
  228. package/es/components/code-snippet/src/formatters.js +19 -0
  229. package/es/components/code-snippet/src/formatters.js.map +1 -0
  230. package/es/components/code-snippet/src/layout-utils.d.ts +22 -0
  231. package/es/components/code-snippet/src/layout-utils.js +63 -0
  232. package/es/components/code-snippet/src/layout-utils.js.map +1 -0
  233. package/es/components/code-snippet/src/streaming-manager.d.ts +24 -0
  234. package/es/components/code-snippet/src/streaming-manager.js +120 -0
  235. package/es/components/code-snippet/src/streaming-manager.js.map +1 -0
  236. package/es/components/feedback/index.d.ts +7 -0
  237. package/es/components/feedback/index.js +12 -0
  238. package/es/components/feedback/index.js.map +1 -0
  239. package/es/components/feedback/src/cds-aichat-feedback-buttons.d.ts +15 -0
  240. package/es/components/feedback/src/cds-aichat-feedback-buttons.js +36 -0
  241. package/es/components/feedback/src/cds-aichat-feedback-buttons.js.map +1 -0
  242. package/es/components/feedback/src/cds-aichat-feedback.d.ts +15 -0
  243. package/es/components/feedback/src/cds-aichat-feedback.js +36 -0
  244. package/es/components/feedback/src/cds-aichat-feedback.js.map +1 -0
  245. package/es/components/feedback/src/feedback-buttons.d.ts +56 -0
  246. package/es/components/feedback/src/feedback-buttons.js +104 -0
  247. package/es/components/feedback/src/feedback-buttons.js.map +1 -0
  248. package/es/components/feedback/src/feedback-buttons.scss.js +13 -0
  249. package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -0
  250. package/es/components/feedback/src/feedback-buttons.template.d.ts +4 -0
  251. package/es/components/feedback/src/feedback-buttons.template.js +79 -0
  252. package/es/components/feedback/src/feedback-buttons.template.js.map +1 -0
  253. package/es/components/feedback/src/feedback.d.ts +114 -0
  254. package/es/components/feedback/src/feedback.js +182 -0
  255. package/es/components/feedback/src/feedback.js.map +1 -0
  256. package/es/components/feedback/src/feedback.scss.js +13 -0
  257. package/es/components/feedback/src/feedback.scss.js.map +1 -0
  258. package/es/components/feedback/src/feedback.template.d.ts +12 -0
  259. package/es/components/feedback/src/feedback.template.js +115 -0
  260. package/es/components/feedback/src/feedback.template.js.map +1 -0
  261. package/es/components/markdown/index.d.ts +2 -0
  262. package/es/components/markdown/index.js +9 -0
  263. package/es/components/markdown/index.js.map +1 -0
  264. package/es/components/markdown/src/cds-aichat-markdown.d.ts +13 -0
  265. package/es/components/markdown/src/cds-aichat-markdown.js +35 -0
  266. package/es/components/markdown/src/cds-aichat-markdown.js.map +1 -0
  267. package/es/components/markdown/src/markdown-renderer.d.ts +62 -0
  268. package/es/components/markdown/src/markdown-renderer.js +353 -0
  269. package/es/components/markdown/src/markdown-renderer.js.map +1 -0
  270. package/es/components/markdown/src/markdown-token-tree.d.ts +32 -0
  271. package/es/components/markdown/src/markdown-token-tree.js +178 -0
  272. package/es/components/markdown/src/markdown-token-tree.js.map +1 -0
  273. package/es/components/markdown/src/markdown.d.ts +44 -0
  274. package/es/components/markdown/src/markdown.js +238 -0
  275. package/es/components/markdown/src/markdown.js.map +1 -0
  276. package/es/components/markdown/src/markdown.scss.js +13 -0
  277. package/es/components/markdown/src/markdown.scss.js.map +1 -0
  278. package/es/components/markdown/src/markdown.template.d.ts +3 -0
  279. package/es/components/markdown/src/markdown.template.js +24 -0
  280. package/es/components/markdown/src/markdown.template.js.map +1 -0
  281. package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +7 -0
  282. package/es/components/markdown/src/plugins/markdown-it-attrs.js +84 -0
  283. package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -0
  284. package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +7 -0
  285. package/es/components/markdown/src/plugins/markdown-it-highlight.js +59 -0
  286. package/es/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -0
  287. package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +12 -0
  288. package/es/components/markdown/src/plugins/markdown-it-task-lists.js +73 -0
  289. package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -0
  290. package/es/components/markdown/src/plugins/markdownItAttrs/core.d.ts +26 -0
  291. package/es/components/markdown/src/plugins/markdownItAttrs/core.js +330 -0
  292. package/es/components/markdown/src/plugins/markdownItAttrs/core.js.map +1 -0
  293. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +6 -0
  294. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +63 -0
  295. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +1 -0
  296. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +6 -0
  297. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +43 -0
  298. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +1 -0
  299. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +5 -0
  300. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +55 -0
  301. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +1 -0
  302. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +19 -0
  303. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +210 -0
  304. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +1 -0
  305. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +13 -0
  306. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +156 -0
  307. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +1 -0
  308. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +13 -0
  309. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +216 -0
  310. package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +1 -0
  311. package/es/components/markdown/src/plugins/markdownItAttrs/types.d.ts +34 -0
  312. package/es/components/markdown/src/plugins/markdownItAttrs/types.js +8 -0
  313. package/es/components/markdown/src/plugins/markdownItAttrs/types.js.map +1 -0
  314. package/es/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +25 -0
  315. package/es/components/markdown/src/plugins/markdownItAttrs/utils.js +62 -0
  316. package/es/components/markdown/src/plugins/markdownItAttrs/utils.js.map +1 -0
  317. package/es/components/markdown/src/utils/html-helpers.d.ts +2 -0
  318. package/es/components/markdown/src/utils/html-helpers.js +204 -0
  319. package/es/components/markdown/src/utils/html-helpers.js.map +1 -0
  320. package/es/components/markdown/src/utils/table-helpers.d.ts +31 -0
  321. package/es/components/markdown/src/utils/table-helpers.js +106 -0
  322. package/es/components/markdown/src/utils/table-helpers.js.map +1 -0
  323. package/es/components/markdown/src/utils.d.ts +8 -0
  324. package/es/components/markdown/src/utils.js +31 -0
  325. package/es/components/markdown/src/utils.js.map +1 -0
  326. package/es/components/reasoning-steps/index.d.ts +2 -0
  327. package/es/components/reasoning-steps/index.js +10 -0
  328. package/es/components/reasoning-steps/index.js.map +1 -0
  329. package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.d.ts +29 -0
  330. package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js +231 -0
  331. package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js.map +1 -0
  332. package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js +13 -0
  333. package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js.map +1 -0
  334. package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.d.ts +13 -0
  335. package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js +96 -0
  336. package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js.map +1 -0
  337. package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js +13 -0
  338. package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js.map +1 -0
  339. package/es/components/table/index.d.ts +3 -0
  340. package/es/components/table/index.js +9 -0
  341. package/es/components/table/index.js.map +1 -0
  342. package/es/components/table/src/cds-aichat-table.d.ts +262 -0
  343. package/es/components/table/src/cds-aichat-table.js +511 -0
  344. package/es/components/table/src/cds-aichat-table.js.map +1 -0
  345. package/es/components/table/src/table-loader.d.ts +4 -0
  346. package/es/components/table/src/table-loader.js +28 -0
  347. package/es/components/table/src/table-loader.js.map +1 -0
  348. package/es/components/table/src/table-pagination.template.d.ts +27 -0
  349. package/es/components/table/src/table-pagination.template.js +55 -0
  350. package/es/components/table/src/table-pagination.template.js.map +1 -0
  351. package/es/components/table/src/table-runtime.d.ts +2 -0
  352. package/es/components/table/src/table-runtime.js +10 -0
  353. package/es/components/table/src/table-runtime.js.map +1 -0
  354. package/es/components/table/src/table-skeleton.template.d.ts +6 -0
  355. package/es/components/table/src/table-skeleton.template.js +34 -0
  356. package/es/components/table/src/table-skeleton.template.js.map +1 -0
  357. package/es/components/table/src/table.scss.js +13 -0
  358. package/es/components/table/src/table.scss.js.map +1 -0
  359. package/es/components/table/src/table.template.d.ts +10 -0
  360. package/es/components/table/src/table.template.js +89 -0
  361. package/es/components/table/src/table.template.js.map +1 -0
  362. package/es/components/table/src/types.d.ts +13 -0
  363. package/es/components/table/src/types.js +8 -0
  364. package/es/components/table/src/types.js.map +1 -0
  365. package/es/components/tile-container/src/styles.scss.js +1 -1
  366. package/es/components/toolbar/index.d.ts +1 -0
  367. package/es/components/toolbar/index.js +9 -0
  368. package/es/components/toolbar/index.js.map +1 -0
  369. package/es/components/toolbar/src/toolbar.d.ts +39 -0
  370. package/es/components/toolbar/src/toolbar.js +179 -0
  371. package/es/components/toolbar/src/toolbar.js.map +1 -0
  372. package/es/components/toolbar/src/toolbar.scss.js +13 -0
  373. package/es/components/toolbar/src/toolbar.scss.js.map +1 -0
  374. package/es/components/workspace-shell/index.d.ts +5 -0
  375. package/es/components/workspace-shell/index.js +13 -0
  376. package/es/components/workspace-shell/index.js.map +1 -0
  377. package/es/components/workspace-shell/src/styles.scss.js +13 -0
  378. package/es/components/workspace-shell/src/styles.scss.js.map +1 -0
  379. package/es/components/workspace-shell/src/workspace-shell-body.d.ts +16 -0
  380. package/es/components/workspace-shell/src/workspace-shell-body.js +50 -0
  381. package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -0
  382. package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +19 -0
  383. package/es/components/workspace-shell/src/workspace-shell-footer.js +53 -0
  384. package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -0
  385. package/es/components/workspace-shell/src/workspace-shell-header.d.ts +27 -0
  386. package/es/components/workspace-shell/src/workspace-shell-header.js +77 -0
  387. package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -0
  388. package/es/components/workspace-shell/src/workspace-shell-toolbar.d.ts +22 -0
  389. package/es/components/workspace-shell/src/workspace-shell-toolbar.js +61 -0
  390. package/es/components/workspace-shell/src/workspace-shell-toolbar.js.map +1 -0
  391. package/es/components/workspace-shell/src/workspace-shell.d.ts +20 -0
  392. package/es/components/workspace-shell/src/workspace-shell.js +83 -0
  393. package/es/components/workspace-shell/src/workspace-shell.js.map +1 -0
  394. package/es/components/workspace-shell/src/workspace-shell.scss.js +13 -0
  395. package/es/components/workspace-shell/src/workspace-shell.scss.js.map +1 -0
  396. package/es/globals/utils/uuid.d.ts +5 -0
  397. package/es/globals/utils/uuid.js +32 -0
  398. package/es/globals/utils/uuid.js.map +1 -0
  399. package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
  400. package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
  401. package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
  402. package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
  403. package/es/node_modules/@codemirror/autocomplete/dist/index.js +258 -0
  404. package/es/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -0
  405. package/es/node_modules/@codemirror/commands/dist/index.js +1140 -0
  406. package/es/node_modules/@codemirror/commands/dist/index.js.map +1 -0
  407. package/es/node_modules/@codemirror/lint/dist/index.js +636 -0
  408. package/es/node_modules/@codemirror/lint/dist/index.js.map +1 -0
  409. package/es/node_modules/@lezer/common/dist/index.js +253 -0
  410. package/es/node_modules/@lezer/common/dist/index.js.map +1 -0
  411. package/es/node_modules/crelt/index.js +37 -0
  412. package/es/node_modules/crelt/index.js.map +1 -0
  413. package/es/react/ai-label.d.ts +2 -1
  414. package/es/react/ai-label.js +3 -2
  415. package/es/react/ai-label.js.map +1 -1
  416. package/es/react/button.d.ts +2 -1
  417. package/es/react/button.js +3 -2
  418. package/es/react/button.js.map +1 -1
  419. package/es/react/chain-of-thought.d.ts +7 -0
  420. package/es/react/chain-of-thought.js +29 -0
  421. package/es/react/chain-of-thought.js.map +1 -0
  422. package/es/react/chat-button.d.ts +4 -4
  423. package/es/react/chat-button.js +6 -4
  424. package/es/react/chat-button.js.map +1 -1
  425. package/es/react/code-snippet-tile-container.d.ts +5 -0
  426. package/es/react/code-snippet-tile-container.js +30 -0
  427. package/es/react/code-snippet-tile-container.js.map +1 -0
  428. package/es/react/code-snippet.d.ts +4 -0
  429. package/es/react/code-snippet.js +31 -0
  430. package/es/react/code-snippet.js.map +1 -0
  431. package/es/react/content-switcher.d.ts +7 -0
  432. package/es/react/content-switcher.js +37 -0
  433. package/es/react/content-switcher.js.map +1 -0
  434. package/es/react/feedback-buttons.d.ts +4 -0
  435. package/es/react/feedback-buttons.js +28 -0
  436. package/es/react/feedback-buttons.js.map +1 -0
  437. package/es/react/feedback.d.ts +6 -0
  438. package/es/react/feedback.js +32 -0
  439. package/es/react/feedback.js.map +1 -0
  440. package/es/react/icon-button.d.ts +2 -1
  441. package/es/react/icon-button.js +3 -2
  442. package/es/react/icon-button.js.map +1 -1
  443. package/es/react/icon.d.ts +4 -0
  444. package/es/react/icon.js +28 -0
  445. package/es/react/icon.js.map +1 -0
  446. package/es/react/markdown.d.ts +4 -0
  447. package/es/react/markdown.js +28 -0
  448. package/es/react/markdown.js.map +1 -0
  449. package/es/react/overflow-menu.d.ts +9 -0
  450. package/es/react/overflow-menu.js +40 -0
  451. package/es/react/overflow-menu.js.map +1 -0
  452. package/es/react/processing.d.ts +2 -1
  453. package/es/react/processing.js +3 -2
  454. package/es/react/processing.js.map +1 -1
  455. package/es/react/reasoning-step.d.ts +6 -0
  456. package/es/react/reasoning-step.js +31 -0
  457. package/es/react/reasoning-step.js.map +1 -0
  458. package/es/react/reasoning-steps.d.ts +3 -0
  459. package/es/react/reasoning-steps.js +27 -0
  460. package/es/react/reasoning-steps.js.map +1 -0
  461. package/es/react/tile-container.d.ts +2 -1
  462. package/es/react/tile-container.js +3 -2
  463. package/es/react/tile-container.js.map +1 -1
  464. package/es/react/tile.d.ts +3 -2
  465. package/es/react/tile.js +5 -4
  466. package/es/react/tile.js.map +1 -1
  467. package/es/react/toolbar.d.ts +4 -0
  468. package/es/react/toolbar.js +28 -0
  469. package/es/react/toolbar.js.map +1 -0
  470. package/es/react/utils/withWebComponentBridge.d.ts +15 -0
  471. package/es/react/utils/withWebComponentBridge.js +95 -0
  472. package/es/react/utils/withWebComponentBridge.js.map +1 -0
  473. package/es/testing/load-all-lazy-deps.d.ts +10 -0
  474. package/es/testing/load-all-lazy-deps.js +30 -0
  475. package/es/testing/load-all-lazy-deps.js.map +1 -0
  476. package/package.json +39 -5
  477. package/dist/carbon-element-CMR7BOhG.js +0 -24
  478. package/dist/class-map-h7IEvsL_.js +0 -39
  479. package/es/components/chat-button/chat-button.d.ts +0 -23
  480. package/es/components/chat-button/chat-button.js.map +0 -1
  481. package/es/components/chat-button/src/chat-button.template.d.ts +0 -16
  482. package/es/components/chat-button/src/chat-button.template.js +0 -27
  483. package/es/components/chat-button/src/chat-button.template.js.map +0 -1
@@ -0,0 +1,206 @@
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 '../../markdown/src/cds-aichat-markdown.js';
9
+ import '@carbon/web-components/es/components/inline-loading/index.js';
10
+ import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
11
+ import CheckmarkFilled16 from '@carbon/icons/es/checkmark--filled/16.js';
12
+ import ChevronRight16 from '@carbon/icons/es/chevron--right/16.js';
13
+ import ErrorFilled16 from '@carbon/icons/es/error--filled/16.js';
14
+ import { html } from 'lit';
15
+ import prefix from '../../../globals/settings.js';
16
+ import { ChainOfThoughtStepStatus } from './types.js';
17
+ import { parseUnknownDataToMarkdown } from './parse-unknown-data-to-markdown.js';
18
+
19
+ /*
20
+ * Copyright IBM Corp. 2025
21
+ *
22
+ * This source code is licensed under the Apache-2.0 license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ *
25
+ * @license
26
+ */
27
+ const CSS_CLASS_ITEM_PREFIX = `${prefix}--chain-of-thought-item`;
28
+ const CSS_CLASS_STATUS_PREFIX = `${prefix}--chain-of-thought-accordion-item-header-status`;
29
+ /**
30
+ * Returns the correct icon given the status of the step. If there is no status, we assume it is successful.
31
+ */
32
+ function stepStatus(status, statusSucceededLabelText, statusFailedLabelText, statusProcessingLabelText) {
33
+ switch (status) {
34
+ case ChainOfThoughtStepStatus.PROCESSING:
35
+ return html `<cds-inline-loading
36
+ status="active"
37
+ aria-label="${statusProcessingLabelText}"
38
+ ></cds-inline-loading>`;
39
+ case ChainOfThoughtStepStatus.FAILURE:
40
+ return html `<span
41
+ class="${CSS_CLASS_STATUS_PREFIX}--${ChainOfThoughtStepStatus.FAILURE}"
42
+ aria-label="${statusFailedLabelText}"
43
+ >${iconLoader(ErrorFilled16)}</span
44
+ >`;
45
+ default:
46
+ return html `<span
47
+ class="${CSS_CLASS_STATUS_PREFIX}--${ChainOfThoughtStepStatus.SUCCESS}"
48
+ aria-label="${statusSucceededLabelText}"
49
+ >${iconLoader(CheckmarkFilled16)}</span
50
+ >`;
51
+ }
52
+ }
53
+ function renderToolDataAsMarkdown(content, label, classPostfix, customElementClass) {
54
+ const { filterPlaceholderText, previousPageText, nextPageText, itemsPerPageText, locale, getPaginationSupplementalText, getPaginationStatusText, feedback, showLessText, showMoreText, tooltipContent, getLineCountText, } = customElementClass;
55
+ return html `<div
56
+ class="${CSS_CLASS_ITEM_PREFIX} ${CSS_CLASS_ITEM_PREFIX}-${classPostfix}"
57
+ >
58
+ <div class="${CSS_CLASS_ITEM_PREFIX}-label">${label}</div>
59
+ <cds-aichat-markdown
60
+ sanitize-html
61
+ markdown=${content}
62
+ filter-placeholder-text=${filterPlaceholderText}
63
+ previous-page-text=${previousPageText}
64
+ next-page-text=${nextPageText}
65
+ items-per-page-text=${itemsPerPageText}
66
+ locale=${locale}
67
+ .getPaginationSupplementalText=${getPaginationSupplementalText}
68
+ .getPaginationStatusText=${getPaginationStatusText}
69
+ feedback=${feedback}
70
+ show-less-text=${showLessText}
71
+ show-more-text=${showMoreText}
72
+ tooltip-content=${tooltipContent}
73
+ .getLineCountText=${getLineCountText}
74
+ ></cds-aichat-markdown>
75
+ </div>`;
76
+ }
77
+ /**
78
+ * Takes the input/output data that is unknown and then renders it in the correct format or returns nothing.
79
+ */
80
+ function renderToolData(data, label, classPostfix, customElementClass) {
81
+ const content = parseUnknownDataToMarkdown(data);
82
+ if (content) {
83
+ return renderToolDataAsMarkdown(content, label, classPostfix, customElementClass);
84
+ }
85
+ return html ``;
86
+ }
87
+ function accordionItemContent(customElementClass, item) {
88
+ const { inputLabelText, outputLabelText, toolLabelText, filterPlaceholderText, previousPageText, nextPageText, itemsPerPageText, locale, getPaginationSupplementalText, getPaginationStatusText, feedback, showLessText, showMoreText, tooltipContent, getLineCountText, } = customElementClass;
89
+ if (item.open) {
90
+ return html ` ${item.description
91
+ ? html `<div
92
+ class="${CSS_CLASS_ITEM_PREFIX} ${CSS_CLASS_ITEM_PREFIX}-description"
93
+ >
94
+ <cds-aichat-markdown
95
+ sanitize-html
96
+ markdown=${item.description}
97
+ filter-placeholder-text=${filterPlaceholderText}
98
+ previous-page-text=${previousPageText}
99
+ next-page-text=${nextPageText}
100
+ items-per-page-text=${itemsPerPageText}
101
+ locale=${locale}
102
+ .getPaginationSupplementalText=${getPaginationSupplementalText}
103
+ .getPaginationStatusText=${getPaginationStatusText}
104
+ feedback=${feedback}
105
+ show-less-text=${showLessText}
106
+ show-more-text=${showMoreText}
107
+ tooltip-content=${tooltipContent}
108
+ .getLineCountText=${getLineCountText}
109
+ ></cds-aichat-markdown>
110
+ </div>`
111
+ : null}
112
+ ${item.tool_name
113
+ ? html `<div
114
+ class="${CSS_CLASS_ITEM_PREFIX} ${CSS_CLASS_ITEM_PREFIX}-toolName"
115
+ >
116
+ <div class="${CSS_CLASS_ITEM_PREFIX}-label">${toolLabelText}</div>
117
+ ${item.tool_name}
118
+ </div>`
119
+ : null}
120
+ ${renderToolData(item.request?.args, inputLabelText, "input", customElementClass)}
121
+ ${renderToolData(item.response?.content, outputLabelText, "output", customElementClass)}`;
122
+ }
123
+ return html ``;
124
+ }
125
+ function accordionContent(customElementClass) {
126
+ const { _steps, open, _chainOfThoughtPanelID, onStepToggle, formatStepLabelText, statusSucceededLabelText, statusFailedLabelText, statusProcessingLabelText, } = customElementClass;
127
+ if (open) {
128
+ return html `${_steps.map((item, index) => {
129
+ const stepNumber = index + 1;
130
+ const content_id = `${_chainOfThoughtPanelID}-step-${stepNumber}-content`;
131
+ const disabled = !item.description && !item.request && !item.response;
132
+ return html `<div class="${prefix}--chain-of-thought-accordion-item">
133
+ <button
134
+ class="${prefix}--chain-of-thought-accordion-item-header"
135
+ @click=${() => {
136
+ item.open = !item.open;
137
+ customElementClass.requestUpdate();
138
+ const element = customElementClass.shadowRoot?.querySelector(`#${content_id}`);
139
+ if (element) {
140
+ onStepToggle?.(item.open, element);
141
+ }
142
+ }}
143
+ aria-expanded=${item.open}
144
+ aria-controls=${content_id}
145
+ ?disabled=${disabled}
146
+ >
147
+ <span
148
+ class="${prefix}--chain-of-thought-accordion-item-header-chevron"
149
+ ?data-disabled=${disabled}
150
+ ?data-open=${item.open}
151
+ >${iconLoader(ChevronRight16)}</span
152
+ >
153
+ <span class="${prefix}--chain-of-thought-accordion-item-header-title"
154
+ >${formatStepLabelText({
155
+ stepNumber,
156
+ stepTitle: item.title || item.tool_name || "",
157
+ })}</span
158
+ >
159
+ <span class="${CSS_CLASS_STATUS_PREFIX}"
160
+ >${stepStatus(item.status || ChainOfThoughtStepStatus.SUCCESS, statusSucceededLabelText, statusFailedLabelText, statusProcessingLabelText)}</span
161
+ >
162
+ </button>
163
+ <div
164
+ class="${prefix}--chain-of-thought-accordion-item-content"
165
+ id=${content_id}
166
+ ?hidden=${!item.open}
167
+ >
168
+ ${accordionItemContent(customElementClass, item)}
169
+ </div>
170
+ </div>`;
171
+ })}`;
172
+ }
173
+ return html ``;
174
+ }
175
+ function chainOfThoughtElementTemplate(customElementClass) {
176
+ const { _chainOfThoughtPanelID, explainabilityText, open, onToggle } = customElementClass;
177
+ function toggle() {
178
+ customElementClass.open = !customElementClass.open;
179
+ onToggle?.(customElementClass.open, customElementClass);
180
+ }
181
+ return html `<div class="${prefix}--chain-of-thought">
182
+ <button
183
+ class="${prefix}--chain-of-thought-button"
184
+ @click=${toggle}
185
+ aria-expanded=${open}
186
+ aria-controls=${_chainOfThoughtPanelID}
187
+ >
188
+ <span class="${prefix}--chain-of-thought-button-chevron"
189
+ >${iconLoader(ChevronRight16)}</span
190
+ >
191
+ ${explainabilityText}
192
+ </button>
193
+ <div
194
+ id=${_chainOfThoughtPanelID}
195
+ class="${prefix}--chain-of-thought-content"
196
+ ?hidden=${!open}
197
+ >
198
+ <div class="${prefix}--chain-of-thought-inner-content">
199
+ ${accordionContent(customElementClass)}
200
+ </div>
201
+ </div>
202
+ </div>`;
203
+ }
204
+
205
+ export { chainOfThoughtElementTemplate };
206
+ //# sourceMappingURL=chain-of-thought.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-of-thought.template.js","sources":["../../../../src/components/chain-of-thought/src/chain-of-thought.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAmBH,MAAM,qBAAqB,GAAG,CAAA,EAAG,MAAM,yBAAyB;AAChE,MAAM,uBAAuB,GAAG,CAAA,EAAG,MAAM,iDAAiD;AAE1F;;AAEG;AACH,SAAS,UAAU,CACjB,MAAgC,EAChC,wBAAgC,EAChC,qBAA6B,EAC7B,yBAAiC,EAAA;IAEjC,QAAQ,MAAM;QACZ,KAAK,wBAAwB,CAAC,UAAU;AACtC,YAAA,OAAO,IAAI,CAAA,CAAA;;sBAEK,yBAAyB,CAAA;6BAClB;QACzB,KAAK,wBAAwB,CAAC,OAAO;AACnC,YAAA,OAAO,IAAI,CAAA,CAAA;iBACA,uBAAuB,CAAA,EAAA,EAAK,wBAAwB,CAAC,OAAO,CAAA;sBACvD,qBAAqB,CAAA;WAChC,UAAU,CAAC,aAAa,CAAC,CAAA;QAC5B;A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;;;mBAIM,MAAM,CAAA;eACV,UAAU;oBACL,CAAC,IAAI,CAAC,IAAI;;AAElB,UAAA,EAAA,oBAAoB,CAAC,kBAAkB,EAAE,IAAI,CAAC;;aAE7C;QACT,CAAC,CAAC,EAAE;IACN;IAEA,OAAO,IAAI,CAAA,CAAA,CAAE;AACf;AAEA,SAAS,6BAA6B,CACpC,kBAAyC,EAAA;IAEzC,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,GAClE,kBAAkB;AAEpB,IAAA,SAAS,MAAM,GAAA;AACb,QAAA,kBAAkB,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,IAAI;QAClD,QAAQ,GAAG,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,CAAC;IACzD;IAEA,OAAO,IAAI,CAAA,CAAA,YAAA,EAAe,MAAM,CAAA;;eAEnB,MAAM,CAAA;eACN,MAAM;sBACC,IAAI;sBACJ,sBAAsB;;qBAEvB,MAAM,CAAA;WAChB,UAAU,CAAC,cAAc,CAAC,CAAA;;QAE7B,kBAAkB;;;WAGf,sBAAsB;eAClB,MAAM,CAAA;AACL,cAAA,EAAA,CAAC,IAAI;;oBAED,MAAM,CAAA;UAChB,gBAAgB,CAAC,kBAAkB,CAAC;;;SAGrC;AACT;;;;"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Attempts to parse the given value into a markdown string. If the value is an object or a JSON string,
3
+ * it is pretty printed as a code block. Otherwise, string content is returned as-is and other primitives are
4
+ * converted to strings.
5
+ *
6
+ * @param data The value to normalize.
7
+ * @returns Markdown formatted string or `undefined` if the value cannot be represented.
8
+ */
9
+ declare function parseUnknownDataToMarkdown(data: unknown): string | undefined;
10
+ export { parseUnknownDataToMarkdown };
@@ -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
+ * Copyright IBM Corp. 2025
10
+ *
11
+ * This source code is licensed under the Apache-2.0 license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *
14
+ * @license
15
+ */
16
+ /**
17
+ * Attempts to parse the given value into a markdown string. If the value is an object or a JSON string,
18
+ * it is pretty printed as a code block. Otherwise, string content is returned as-is and other primitives are
19
+ * converted to strings.
20
+ *
21
+ * @param data The value to normalize.
22
+ * @returns Markdown formatted string or `undefined` if the value cannot be represented.
23
+ */
24
+ function parseUnknownDataToMarkdown(data) {
25
+ if (!data) {
26
+ return undefined;
27
+ }
28
+ try {
29
+ if (typeof data === "object") {
30
+ return `\`\`\`\n${JSON.stringify(data, null, 2)}\n\`\`\`\n`;
31
+ }
32
+ if (typeof data === "string") {
33
+ try {
34
+ const parsed = JSON.parse(data);
35
+ return `\`\`\`\n${JSON.stringify(parsed, null, 2)}\n\`\`\`\n`;
36
+ }
37
+ catch (_error) {
38
+ return data;
39
+ }
40
+ }
41
+ return String(data);
42
+ }
43
+ catch (error) {
44
+ console.error("Cannot parse step content", error);
45
+ return undefined;
46
+ }
47
+ }
48
+
49
+ export { parseUnknownDataToMarkdown };
50
+ //# sourceMappingURL=parse-unknown-data-to-markdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-unknown-data-to-markdown.js","sources":["../../../../src/components/chain-of-thought/src/parse-unknown-data-to-markdown.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;AAOG;AACH,SAAS,0BAA0B,CAAC,IAAa,EAAA;IAC/C,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,SAAS;IAClB;AAEA,IAAA,IAAI;AACF,QAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,YAAA,OAAO,CAAA,QAAA,EAAW,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA,UAAA,CAAY;QAC7D;AAEA,QAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,YAAA,IAAI;gBACF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC/B,gBAAA,OAAO,CAAA,QAAA,EAAW,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA,UAAA,CAAY;YAC/D;YAAE,OAAO,MAAM,EAAE;AACf,gBAAA,OAAO,IAAI;YACb;QACF;AAEA,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB;IAAE,OAAO,KAAK,EAAE;AACd,QAAA,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC;AACjD,QAAA,OAAO,SAAS;IAClB;AACF;;;;"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Status of the chain of thought step.
3
+ *
4
+ * @category Messaging
5
+ */
6
+ declare enum ChainOfThoughtStepStatus {
7
+ PROCESSING = "processing",
8
+ FAILURE = "failure",
9
+ SUCCESS = "success"
10
+ }
11
+ /**
12
+ * A chain of thought step is meant to show tool calls and other steps made by your agent
13
+ * to reach its final answer.
14
+ *
15
+ * @category Messaging
16
+ */
17
+ interface ChainOfThoughtStep {
18
+ /**
19
+ * The plain text name of the step.
20
+ */
21
+ title?: string;
22
+ /**
23
+ * An optional human readable description of what the tool does.
24
+ *
25
+ * Accepts markdown formatted text.
26
+ */
27
+ description?: string;
28
+ /**
29
+ * The plain text name of the tool called.
30
+ */
31
+ tool_name?: string;
32
+ /**
33
+ * Optional request metadata sent to a tool.
34
+ */
35
+ request?: {
36
+ /**
37
+ * Arguments sent to the tool. If this is properly formed JSON, it will be shown as a code block.
38
+ */
39
+ args?: unknown;
40
+ };
41
+ /**
42
+ * Optional response from a tool.
43
+ */
44
+ response?: {
45
+ /**
46
+ * Content returned by the tool. If this is properly formed JSON, it will be shown as a code block.
47
+ *
48
+ * You can also return markdown compatible text here.
49
+ */
50
+ content: unknown;
51
+ };
52
+ /**
53
+ * Optionally, share the status of this step. An icon will appear in the view showing the status. If no status is
54
+ * shared, the UI will assume success.
55
+ */
56
+ status?: ChainOfThoughtStepStatus;
57
+ }
58
+ /**
59
+ * A function to allow the chat component to properly scroll to the element on toggle.
60
+ *
61
+ * @category Messaging
62
+ */
63
+ type ChainOfThoughtOnToggle = (isOpen: boolean, scrollToElement: HTMLElement) => void;
64
+ /**
65
+ * @category Messaging
66
+ */
67
+ interface ChainOfThoughtStepWithToggle extends ChainOfThoughtStep {
68
+ /**
69
+ * If the step is opened.
70
+ */
71
+ open: boolean;
72
+ }
73
+ export { type ChainOfThoughtOnToggle, type ChainOfThoughtStep, ChainOfThoughtStepStatus, type ChainOfThoughtStepWithToggle, };
@@ -0,0 +1,29 @@
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
+ * Copyright IBM Corp. 2025
10
+ *
11
+ * This source code is licensed under the Apache-2.0 license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *
14
+ * @license
15
+ */
16
+ /**
17
+ * Status of the chain of thought step.
18
+ *
19
+ * @category Messaging
20
+ */
21
+ var ChainOfThoughtStepStatus;
22
+ (function (ChainOfThoughtStepStatus) {
23
+ ChainOfThoughtStepStatus["PROCESSING"] = "processing";
24
+ ChainOfThoughtStepStatus["FAILURE"] = "failure";
25
+ ChainOfThoughtStepStatus["SUCCESS"] = "success";
26
+ })(ChainOfThoughtStepStatus || (ChainOfThoughtStepStatus = {}));
27
+
28
+ export { ChainOfThoughtStepStatus };
29
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../../../src/components/chain-of-thought/src/types.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;AAIG;AACH,IAAK;AAAL,CAAA,UAAK,wBAAwB,EAAA;AAC3B,IAAA,wBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAJI,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
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
+ * Chat Button size.
11
+ */
12
+ export declare enum CHAT_BUTTON_SIZE {
13
+ /**
14
+ * Small size.
15
+ */
16
+ SMALL = "sm",
17
+ /**
18
+ * Medium size.
19
+ */
20
+ MEDIUM = "md",
21
+ /**
22
+ * Large size.
23
+ */
24
+ LARGE = "lg"
25
+ }
@@ -0,0 +1,36 @@
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. 2025
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
+ * Chat Button size.
18
+ */
19
+ var CHAT_BUTTON_SIZE;
20
+ (function (CHAT_BUTTON_SIZE) {
21
+ /**
22
+ * Small size.
23
+ */
24
+ CHAT_BUTTON_SIZE["SMALL"] = "sm";
25
+ /**
26
+ * Medium size.
27
+ */
28
+ CHAT_BUTTON_SIZE["MEDIUM"] = "md";
29
+ /**
30
+ * Large size.
31
+ */
32
+ CHAT_BUTTON_SIZE["LARGE"] = "lg";
33
+ })(CHAT_BUTTON_SIZE || (CHAT_BUTTON_SIZE = {}));
34
+
35
+ export { CHAT_BUTTON_SIZE };
36
+ //# sourceMappingURL=defs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.js","sources":["../../../src/components/chat-button/defs.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;AAEG;IACS;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B;;AAEG;AACH,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,IAAY;AAEZ;;AAEG;AACH,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,IAAa;AAEb;;AAEG;AACH,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,IAAY;AACd,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;;;;"}
@@ -6,4 +6,4 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import "./chat-button";
9
+ import "./src/chat-button";
@@ -5,5 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import './chat-button.js';
8
+ import './src/chat-button.js';
9
9
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
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
+ import { PropertyValues } from "lit";
10
+ import { CHAT_BUTTON_SIZE } from "../defs";
11
+ import { BUTTON_KIND as CHAT_BUTTON_KIND, BUTTON_TYPE as CHAT_BUTTON_TYPE, BUTTON_TYPE as CHAT_BUTTON_TOOLTIP_ALIGNMENT, BUTTON_TYPE as CHAT_BUTTON_TOOLTIP_POSITION } from "@carbon/web-components/es/components/button/button.js";
12
+ import CDSButton from "@carbon/web-components/es/components/button/button.js";
13
+ export { CHAT_BUTTON_KIND, CHAT_BUTTON_TYPE, CHAT_BUTTON_SIZE, CHAT_BUTTON_TOOLTIP_ALIGNMENT, CHAT_BUTTON_TOOLTIP_POSITION, };
14
+ type ChatButtonSize = CHAT_BUTTON_SIZE.SMALL | CHAT_BUTTON_SIZE.MEDIUM | CHAT_BUTTON_SIZE.LARGE;
15
+ /**
16
+ * Component extending the @carbon/web-components' button
17
+ */
18
+ declare class ChatButton extends CDSButton {
19
+ static styles: any;
20
+ /**
21
+ * Specify whether the `ChatButton` should be rendered as a quick action button
22
+ */
23
+ isQuickAction: boolean;
24
+ /**
25
+ * Button size.
26
+ */
27
+ size: ChatButtonSize;
28
+ private readonly allowedSizes;
29
+ protected willUpdate(changedProps: PropertyValues<this>): void;
30
+ private _normalizeButtonState;
31
+ }
32
+ export default ChatButton;
@@ -7,9 +7,11 @@
7
7
 
8
8
  import { __decorate } from 'tslib';
9
9
  import { property, customElement } from 'lit/decorators.js';
10
- import chatButton from './src/chat-button.template.js';
11
- import { BUTTON_SIZE, BUTTON_KIND } from '@carbon/web-components/es/components/button/button.js';
12
- import prefix from '../../globals/settings.js';
10
+ import { CHAT_BUTTON_SIZE } from '../defs.js';
11
+ import CarbonButtonElement, { BUTTON_KIND } from '@carbon/web-components/es/components/button/button.js';
12
+ export { BUTTON_KIND as CHAT_BUTTON_KIND, BUTTON_TYPE as CHAT_BUTTON_TOOLTIP_ALIGNMENT, BUTTON_TYPE as CHAT_BUTTON_TOOLTIP_POSITION, BUTTON_TYPE as CHAT_BUTTON_TYPE } from '@carbon/web-components/es/components/button/button.js';
13
+ import prefix from '../../../globals/settings.js';
14
+ import styles from './chat-button.scss.js';
13
15
 
14
16
  /**
15
17
  * @license
@@ -22,7 +24,7 @@ import prefix from '../../globals/settings.js';
22
24
  /**
23
25
  * Component extending the @carbon/web-components' button
24
26
  */
25
- let ChatButton = class ChatButton extends chatButton {
27
+ let ChatButton = class ChatButton extends CarbonButtonElement {
26
28
  constructor() {
27
29
  super(...arguments);
28
30
  /**
@@ -30,9 +32,9 @@ let ChatButton = class ChatButton extends chatButton {
30
32
  */
31
33
  this.isQuickAction = false;
32
34
  this.allowedSizes = [
33
- BUTTON_SIZE.SMALL,
34
- BUTTON_SIZE.MEDIUM,
35
- BUTTON_SIZE.LARGE,
35
+ CHAT_BUTTON_SIZE.SMALL,
36
+ CHAT_BUTTON_SIZE.MEDIUM,
37
+ CHAT_BUTTON_SIZE.LARGE,
36
38
  ];
37
39
  }
38
40
  willUpdate(changedProps) {
@@ -43,25 +45,29 @@ let ChatButton = class ChatButton extends chatButton {
43
45
  _normalizeButtonState() {
44
46
  if (this.isQuickAction) {
45
47
  this.kind = BUTTON_KIND.GHOST;
46
- this.size = BUTTON_SIZE.SMALL;
48
+ this.size = CHAT_BUTTON_SIZE.SMALL;
47
49
  return;
48
50
  }
49
51
  // Do not allow size larger than `lg`
50
52
  if (!this.allowedSizes.includes(this.size)) {
51
- this.size = BUTTON_SIZE.LARGE;
53
+ this.size = CHAT_BUTTON_SIZE.LARGE;
52
54
  }
53
55
  if (!Object.values(BUTTON_KIND).includes(this.kind)) {
54
56
  this.kind = BUTTON_KIND.PRIMARY;
55
57
  }
56
58
  }
57
59
  };
60
+ ChatButton.styles = styles;
58
61
  __decorate([
59
62
  property({ type: Boolean, attribute: "is-quick-action" })
60
63
  ], ChatButton.prototype, "isQuickAction", void 0);
64
+ __decorate([
65
+ property({ reflect: true })
66
+ ], ChatButton.prototype, "size", void 0);
61
67
  ChatButton = __decorate([
62
68
  customElement(`${prefix}-button`)
63
69
  ], ChatButton);
64
70
  var AIChatButton = ChatButton;
65
71
 
66
- export { AIChatButton as default };
72
+ export { CHAT_BUTTON_SIZE, AIChatButton as default };
67
73
  //# sourceMappingURL=chat-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-button.js","sources":["../../../../src/components/chat-button/src/chat-button.ts"],"sourcesContent":[null],"names":["CDSButton","CHAT_BUTTON_KIND"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AA6BH;;AAEG;AAEH,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQA,mBAAS,CAAA;AAAlC,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAE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