@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,91 @@
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
+ * @license
11
+ *
12
+ * This bundle contains the following third-party dependencies:
13
+ *
14
+ * Also refer to the following links for the license of other third-party dependencies:
15
+ *
16
+ * https://www.npmjs.com/package/tslib
17
+ * https://www.npmjs.com/package/lit
18
+ * https://www.npmjs.com/package/markdown-it
19
+ * https://www.npmjs.com/package/lodash-es
20
+ * https://www.npmjs.com/package/dompurify
21
+ * https://www.npmjs.com/package/csv-stringify
22
+ * https://www.npmjs.com/package/lit-html
23
+ * https://www.npmjs.com/package/@carbon/web-components
24
+ * https://www.npmjs.com/package/codemirror
25
+ * https://www.npmjs.com/package/@codemirror/state
26
+ * https://www.npmjs.com/package/@codemirror/language
27
+ * https://www.npmjs.com/package/@codemirror/view
28
+ * https://www.npmjs.com/package/@codemirror/autocomplete
29
+ * https://www.npmjs.com/package/@codemirror/commands
30
+ * https://www.npmjs.com/package/@codemirror/lint
31
+ * https://www.npmjs.com/package/@codemirror/lang-sql
32
+ * https://www.npmjs.com/package/@codemirror/lang-cpp
33
+ * https://www.npmjs.com/package/@codemirror/lang-css
34
+ * https://www.npmjs.com/package/@codemirror/lang-go
35
+ * https://www.npmjs.com/package/@codemirror/lang-html
36
+ * https://www.npmjs.com/package/@codemirror/lang-java
37
+ * https://www.npmjs.com/package/@codemirror/lang-javascript
38
+ * https://www.npmjs.com/package/@codemirror/lang-json
39
+ * https://www.npmjs.com/package/@codemirror/lang-less
40
+ * https://www.npmjs.com/package/@codemirror/lang-jinja
41
+ * https://www.npmjs.com/package/@codemirror/lang-liquid
42
+ * https://www.npmjs.com/package/@codemirror/lang-markdown
43
+ * https://www.npmjs.com/package/@codemirror/lang-php
44
+ * https://www.npmjs.com/package/@codemirror/lang-rust
45
+ * https://www.npmjs.com/package/@codemirror/lang-sass
46
+ * https://www.npmjs.com/package/@codemirror/lang-python
47
+ * https://www.npmjs.com/package/@codemirror/lang-wast
48
+ * https://www.npmjs.com/package/@codemirror/lang-xml
49
+ * https://www.npmjs.com/package/@codemirror/legacy-modes
50
+ * https://www.npmjs.com/package/@codemirror/lang-yaml
51
+ * https://www.npmjs.com/package/@codemirror/lang-vue
52
+ * https://www.npmjs.com/package/@codemirror/lang-angular
53
+ * https://www.npmjs.com/package/@lezer/highlight
54
+ * https://www.npmjs.com/package/@carbon/icons
55
+ * https://www.npmjs.com/package/@carbon/utilities
56
+ * https://www.npmjs.com/package/@carbon/icon-helpers
57
+ * https://www.npmjs.com/package/program-language-detector
58
+ * https://www.npmjs.com/package/lit-element
59
+ * https://www.npmjs.com/package/@lit/reactive-element
60
+ * https://www.npmjs.com/package/@codemirror/search
61
+ * https://www.npmjs.com/package/crelt
62
+ * https://www.npmjs.com/package/w3c-keyname
63
+ * https://www.npmjs.com/package/style-mod
64
+ * https://www.npmjs.com/package/@marijn/find-cluster-break
65
+ * https://www.npmjs.com/package/@lezer/common
66
+ * https://www.npmjs.com/package/@lezer/lr
67
+ * https://www.npmjs.com/package/@lezer/java
68
+ * https://www.npmjs.com/package/@lezer/go
69
+ * https://www.npmjs.com/package/@lezer/css
70
+ * https://www.npmjs.com/package/@lezer/cpp
71
+ * https://www.npmjs.com/package/@lezer/html
72
+ * https://www.npmjs.com/package/@lezer/javascript
73
+ * https://www.npmjs.com/package/@lezer/markdown
74
+ * https://www.npmjs.com/package/@lezer/sass
75
+ * https://www.npmjs.com/package/@lezer/rust
76
+ * https://www.npmjs.com/package/@lezer/json
77
+ * https://www.npmjs.com/package/@lezer/php
78
+ * https://www.npmjs.com/package/@lezer/python
79
+ * https://www.npmjs.com/package/@lezer/yaml
80
+ * https://www.npmjs.com/package/@lezer/xml
81
+ * https://www.npmjs.com/package/@internationalized/number
82
+ * https://www.npmjs.com/package/linkify-it
83
+ * https://www.npmjs.com/package/mdurl
84
+ * https://www.npmjs.com/package/punycode.js
85
+ * https://www.npmjs.com/package/uc.micro
86
+ * https://www.npmjs.com/package/@floating-ui/dom
87
+ * https://www.npmjs.com/package/@floating-ui/core
88
+ * https://www.npmjs.com/package/@floating-ui/utils
89
+ */
90
+
91
+ function e(e){var t,r;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var i=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,n=/^(n?[zc]|p[oe]?|m)\b/i,l=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(c,s){if(c.column()||(s.context=0),c.eatSpace())return null;var o;if(c.eatWhile(/\w/)){if(e&&c.eat(".")&&c.eatWhile(/\w/),o=c.current(),!c.indentation())return c.match(a)?"number":null;if((1==s.context||4==s.context)&&i.test(o))return s.context=4,"variable";if(2==s.context&&n.test(o))return s.context=4,"variableName.special";if(t.test(o))return s.context=1,"keyword";if(r.test(o))return s.context=2,"keyword";if(4==s.context&&a.test(o))return"number";if(l.test(o))return"error"}else{if(c.eat(";"))return c.skipToEnd(),"comment";if(c.eat('"')){for(;(o=c.next())&&'"'!=o;)"\\"==o&&c.next();return"string"}if(c.eat("'")){if(c.match(/\\?.'/))return"number"}else if(c.eat(".")||c.sol()&&c.eat("#")){if(s.context=5,c.eatWhile(/\w/))return"def"}else if(c.eat("$")){if(c.eatWhile(/[\da-f]/i))return"number"}else if(c.eat("%")){if(c.eatWhile(/[01]/))return"number"}else c.next()}return null}}}const t=e(!1);e(!0);export{t as z80};
@@ -0,0 +1,4 @@
1
+ import "./src/cds-aichat-chain-of-thought.js";
2
+ export { default } from "./src/cds-aichat-chain-of-thought.js";
3
+ export { ChainOfThoughtElement } from "./src/chain-of-thought.js";
4
+ export { type ChainOfThoughtOnToggle, type ChainOfThoughtStep, ChainOfThoughtStepStatus, type ChainOfThoughtStepWithToggle, } from "./src/types.js";
@@ -0,0 +1,11 @@
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
+ export { default } from './src/cds-aichat-chain-of-thought.js';
9
+ export { ChainOfThoughtElement } from './src/chain-of-thought.js';
10
+ export { ChainOfThoughtStepStatus } from './src/types.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import { ChainOfThoughtElement } from "./chain-of-thought.js";
2
+ declare const CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME = "cds-aichat-chain-of-thought";
3
+ /**
4
+ * Custom element wrapper that wires the template to the base element implementation.
5
+ */
6
+ declare class CDSChatChainOfThoughtElement extends ChainOfThoughtElement {
7
+ render(): import("lit-html").TemplateResult<1>;
8
+ }
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ [CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME]: CDSChatChainOfThoughtElement;
12
+ }
13
+ }
14
+ export { CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME };
15
+ export default CDSChatChainOfThoughtElement;
@@ -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
+ import { __decorate } from 'tslib';
9
+ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
10
+ import { ChainOfThoughtElement } from './chain-of-thought.js';
11
+ import { chainOfThoughtElementTemplate } from './chain-of-thought.template.js';
12
+
13
+ /*
14
+ * Copyright IBM Corp. 2025
15
+ *
16
+ * This source code is licensed under the Apache-2.0 license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ *
19
+ * @license
20
+ */
21
+ const CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME = "cds-aichat-chain-of-thought";
22
+ /**
23
+ * Custom element wrapper that wires the template to the base element implementation.
24
+ */
25
+ let CDSChatChainOfThoughtElement = class CDSChatChainOfThoughtElement extends ChainOfThoughtElement {
26
+ render() {
27
+ return chainOfThoughtElementTemplate(this);
28
+ }
29
+ };
30
+ CDSChatChainOfThoughtElement = __decorate([
31
+ carbonElement(CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME)
32
+ ], CDSChatChainOfThoughtElement);
33
+ var CDSChatChainOfThoughtElement$1 = CDSChatChainOfThoughtElement;
34
+
35
+ export { CHAIN_OF_THOUGHT_COMPONENT_TAG_NAME, CDSChatChainOfThoughtElement$1 as default };
36
+ //# sourceMappingURL=cds-aichat-chain-of-thought.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cds-aichat-chain-of-thought.js","sources":["../../../../src/components/chain-of-thought/src/cds-aichat-chain-of-thought.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,mCAAmC,GAAG;AAE5C;;AAEG;AAEH,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,qBAAqB,CAAA;IAC9D,MAAM,GAAA;AACJ,QAAA,OAAO,6BAA6B,CAAC,IAAI,CAAC;IAC5C;CACD;AAJK,4BAA4B,GAAA,UAAA,CAAA;IADjC,aAAa,CAAC,mCAAmC;AAC5C,CAAA,EAAA,4BAA4B,CAIjC;AASD,qCAAe,4BAA4B;;;;"}
@@ -0,0 +1,87 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+ import { type ChainOfThoughtOnToggle, type ChainOfThoughtStep, type ChainOfThoughtStepWithToggle } from "./types.js";
3
+ declare class ChainOfThoughtElement extends LitElement {
4
+ static styles: any;
5
+ /**
6
+ * Indicates if the details panel for the chain of thought is open.
7
+ */
8
+ open: boolean;
9
+ /**
10
+ * Array of steps in the chain of thought.
11
+ */
12
+ steps: ChainOfThoughtStep[];
13
+ /**
14
+ * Formatting for label of each step item.
15
+ */
16
+ formatStepLabelText: ({ stepNumber, stepTitle, }: {
17
+ stepNumber: number;
18
+ stepTitle: string;
19
+ }) => string;
20
+ /**
21
+ * Text string used to label step input.
22
+ */
23
+ inputLabelText: string;
24
+ /**
25
+ * Text string used to label step output.
26
+ */
27
+ outputLabelText: string;
28
+ /**
29
+ * Text string used to label the tool.
30
+ */
31
+ toolLabelText: string;
32
+ /**
33
+ * Text string used to label the button to open the chain of thought panel.
34
+ */
35
+ explainabilityText: string;
36
+ /**
37
+ * Optional function to call if chain of thought visibility is toggled.
38
+ */
39
+ onToggle?: ChainOfThoughtOnToggle;
40
+ /**
41
+ * Optional function to call if a chain of thought step visibility is toggled.
42
+ */
43
+ onStepToggle?: ChainOfThoughtOnToggle;
44
+ /**
45
+ * Text string used to label the succeeded status icon.
46
+ */
47
+ statusSucceededLabelText: string;
48
+ /**
49
+ * Text string used to label the failed status icon.
50
+ */
51
+ statusFailedLabelText: string;
52
+ /**
53
+ * Text string used to label the processing status icon.
54
+ */
55
+ statusProcessingLabelText: string;
56
+ filterPlaceholderText?: string;
57
+ previousPageText?: string;
58
+ nextPageText?: string;
59
+ itemsPerPageText?: string;
60
+ locale?: string;
61
+ getPaginationSupplementalText?: ({ count }: {
62
+ count: number;
63
+ }) => string;
64
+ getPaginationStatusText?: ({ start, end, count, }: {
65
+ start: number;
66
+ end: number;
67
+ count: number;
68
+ }) => string;
69
+ feedback?: string;
70
+ showLessText?: string;
71
+ showMoreText?: string;
72
+ tooltipContent?: string;
73
+ getLineCountText?: ({ count }: {
74
+ count: number;
75
+ }) => string;
76
+ /**
77
+ * Steps, but we add in whether the step is open or not.
78
+ */
79
+ _steps: ChainOfThoughtStepWithToggle[];
80
+ /**
81
+ * ID we use for a11y.
82
+ */
83
+ _chainOfThoughtPanelID: string;
84
+ protected firstUpdated(_changedProperties: PropertyValues): void;
85
+ protected updated(changedProperties: PropertyValues<this>): void;
86
+ }
87
+ export { ChainOfThoughtElement };
@@ -0,0 +1,189 @@
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 { __decorate } from 'tslib';
9
+ import { LitElement } from 'lit';
10
+ import { property, state } from 'lit/decorators.js';
11
+ import styles from './chain-of-thought.scss.js';
12
+ import prefix from '../../../globals/settings.js';
13
+ import { uuid } from '../../../globals/utils/uuid.js';
14
+
15
+ /*
16
+ * Copyright IBM Corp. 2025
17
+ *
18
+ * This source code is licensed under the Apache-2.0 license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ *
21
+ * @license
22
+ */
23
+ const numberFormatter = new Intl.NumberFormat("en-US");
24
+ const formatStepLabelTextDefault = ({ stepNumber, stepTitle, }) => {
25
+ const formattedNumber = numberFormatter.format(stepNumber);
26
+ const formattedTitle = stepTitle || "";
27
+ return `${formattedNumber}: ${formattedTitle}`;
28
+ };
29
+ class ChainOfThoughtElement extends LitElement {
30
+ constructor() {
31
+ super(...arguments);
32
+ /**
33
+ * Indicates if the details panel for the chain of thought is open.
34
+ */
35
+ this.open = false;
36
+ /**
37
+ * Array of steps in the chain of thought.
38
+ */
39
+ this.steps = [];
40
+ /**
41
+ * Formatting for label of each step item.
42
+ */
43
+ this.formatStepLabelText = formatStepLabelTextDefault;
44
+ /**
45
+ * Text string used to label step input.
46
+ */
47
+ this.inputLabelText = "Input";
48
+ /**
49
+ * Text string used to label step output.
50
+ */
51
+ this.outputLabelText = "Output";
52
+ /**
53
+ * Text string used to label the tool.
54
+ */
55
+ this.toolLabelText = "Tool";
56
+ /**
57
+ * Text string used to label the button to open the chain of thought panel.
58
+ */
59
+ this.explainabilityText = "Show chain of thought";
60
+ /**
61
+ * Text string used to label the succeeded status icon.
62
+ */
63
+ this.statusSucceededLabelText = "Succeeded";
64
+ /**
65
+ * Text string used to label the failed status icon.
66
+ */
67
+ this.statusFailedLabelText = "Failed";
68
+ /**
69
+ * Text string used to label the processing status icon.
70
+ */
71
+ this.statusProcessingLabelText = "Processing";
72
+ /**
73
+ * Steps, but we add in whether the step is open or not.
74
+ */
75
+ this._steps = [];
76
+ /**
77
+ * ID we use for a11y.
78
+ */
79
+ this._chainOfThoughtPanelID = `${prefix}-chain-of-thought-panel-id-${uuid()}`;
80
+ }
81
+ firstUpdated(_changedProperties) {
82
+ const steps = this.steps ?? [];
83
+ this._steps = steps.map((item) => ({ ...item, open: false }));
84
+ }
85
+ updated(changedProperties) {
86
+ if (changedProperties.has("steps")) {
87
+ const incomingSteps = this.steps ?? [];
88
+ const currentSteps = this._steps ?? [];
89
+ this._steps = incomingSteps.map((item, index) => ({
90
+ ...item,
91
+ open: currentSteps[index]?.open ?? false,
92
+ }));
93
+ }
94
+ }
95
+ }
96
+ ChainOfThoughtElement.styles = styles;
97
+ __decorate([
98
+ property({ type: Boolean, attribute: "open", reflect: true })
99
+ ], ChainOfThoughtElement.prototype, "open", void 0);
100
+ __decorate([
101
+ property({ type: Array, attribute: "steps", reflect: true })
102
+ ], ChainOfThoughtElement.prototype, "steps", void 0);
103
+ __decorate([
104
+ property({ type: Function, attribute: false })
105
+ ], ChainOfThoughtElement.prototype, "formatStepLabelText", void 0);
106
+ __decorate([
107
+ property({ type: String, attribute: "input-label-text", reflect: true })
108
+ ], ChainOfThoughtElement.prototype, "inputLabelText", void 0);
109
+ __decorate([
110
+ property({ type: String, attribute: "output-label-text", reflect: true })
111
+ ], ChainOfThoughtElement.prototype, "outputLabelText", void 0);
112
+ __decorate([
113
+ property({ type: String, attribute: "tool-label-text", reflect: true })
114
+ ], ChainOfThoughtElement.prototype, "toolLabelText", void 0);
115
+ __decorate([
116
+ property({ type: String, attribute: "explainability-text", reflect: true })
117
+ ], ChainOfThoughtElement.prototype, "explainabilityText", void 0);
118
+ __decorate([
119
+ property({ type: Function, attribute: false })
120
+ ], ChainOfThoughtElement.prototype, "onToggle", void 0);
121
+ __decorate([
122
+ property({ type: Function, attribute: false })
123
+ ], ChainOfThoughtElement.prototype, "onStepToggle", void 0);
124
+ __decorate([
125
+ property({
126
+ type: String,
127
+ attribute: "status-succeeded-label-text",
128
+ reflect: true,
129
+ })
130
+ ], ChainOfThoughtElement.prototype, "statusSucceededLabelText", void 0);
131
+ __decorate([
132
+ property({
133
+ type: String,
134
+ attribute: "status-failed-label-text",
135
+ reflect: true,
136
+ })
137
+ ], ChainOfThoughtElement.prototype, "statusFailedLabelText", void 0);
138
+ __decorate([
139
+ property({
140
+ type: String,
141
+ attribute: "status-processing-label-text",
142
+ reflect: true,
143
+ })
144
+ ], ChainOfThoughtElement.prototype, "statusProcessingLabelText", void 0);
145
+ __decorate([
146
+ property({ type: String, attribute: "filter-placeholder-text" })
147
+ ], ChainOfThoughtElement.prototype, "filterPlaceholderText", void 0);
148
+ __decorate([
149
+ property({ type: String, attribute: "previous-page-text" })
150
+ ], ChainOfThoughtElement.prototype, "previousPageText", void 0);
151
+ __decorate([
152
+ property({ type: String, attribute: "next-page-text" })
153
+ ], ChainOfThoughtElement.prototype, "nextPageText", void 0);
154
+ __decorate([
155
+ property({ type: String, attribute: "items-per-page-text" })
156
+ ], ChainOfThoughtElement.prototype, "itemsPerPageText", void 0);
157
+ __decorate([
158
+ property({ type: String, attribute: "locale" })
159
+ ], ChainOfThoughtElement.prototype, "locale", void 0);
160
+ __decorate([
161
+ property({ type: Object, attribute: false })
162
+ ], ChainOfThoughtElement.prototype, "getPaginationSupplementalText", void 0);
163
+ __decorate([
164
+ property({ type: Object, attribute: false })
165
+ ], ChainOfThoughtElement.prototype, "getPaginationStatusText", void 0);
166
+ __decorate([
167
+ property({ type: String, attribute: "feedback" })
168
+ ], ChainOfThoughtElement.prototype, "feedback", void 0);
169
+ __decorate([
170
+ property({ type: String, attribute: "show-less-text" })
171
+ ], ChainOfThoughtElement.prototype, "showLessText", void 0);
172
+ __decorate([
173
+ property({ type: String, attribute: "show-more-text" })
174
+ ], ChainOfThoughtElement.prototype, "showMoreText", void 0);
175
+ __decorate([
176
+ property({ type: String, attribute: "tooltip-content" })
177
+ ], ChainOfThoughtElement.prototype, "tooltipContent", void 0);
178
+ __decorate([
179
+ property({ type: Object, attribute: false })
180
+ ], ChainOfThoughtElement.prototype, "getLineCountText", void 0);
181
+ __decorate([
182
+ state()
183
+ ], ChainOfThoughtElement.prototype, "_steps", void 0);
184
+ __decorate([
185
+ state()
186
+ ], ChainOfThoughtElement.prototype, "_chainOfThoughtPanelID", void 0);
187
+
188
+ export { ChainOfThoughtElement };
189
+ //# sourceMappingURL=chain-of-thought.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-of-thought.js","sources":["../../../../src/components/chain-of-thought/src/chain-of-thought.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAcH,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;AAEtD,MAAM,0BAA0B,GAAG,CAAC,EAClC,UAAU,EACV,SAAS,GAIV,KAAI;IACH,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC;AAC1D,IAAA,MAAM,cAAc,GAAG,SAAS,IAAI,EAAE;AACtC,IAAA,OAAO,CAAA,EAAG,eAAe,CAAA,EAAA,EAAK,cAAc,EAAE;AAChD,CAAC;AAED,MAAM,qBAAsB,SAAQ,UAAU,CAAA;AAA9C,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,KAAK;AAEZ;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAyB,EAAE;AAEhC;;AAEG;QAEH,IAAA,CAAA,mBAAmB,GAMJ,0BAA0B;AAEzC;;AAEG;QAEH,IAAA,CAAA,cAAc,GAAG,OAAO;AAExB;;AAEG;QAEH,IAAA,CAAA,eAAe,GAAG,QAAQ;AAE1B;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,MAAM;AAEtB;;AAEG;QAEH,IAAA,CAAA,kBAAkB,GAAG,uBAAuB;AAc5C;;AAEG;QAMH,IAAA,CAAA,wBAAwB,GAAG,WAAW;AAEtC;;AAEG;QAMH,IAAA,CAAA,qBAAqB,GAAG,QAAQ;AAEhC;;AAEG;QAMH,IAAA,CAAA,yBAAyB,GAAG,YAAY;AAgDxC;;AAEG;QAEH,IAAA,CAAA,MAAM,GAAmC,EAAE;AAE3C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K,EAAE;AACgB,CAAA,EAAA,qBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAM5D,UAAA,CAAA;AADC,IAAA,KAAK;AACsC,CAAA,EAAA,qBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAM5C,UAAA,CAAA;AADC,IAAA,KAAK;AACmE,CAAA,EAAA,qBAAA,CAAA,SAAA,EAAA,wBAAA,EAAA,MAAA,CAAA;;;;"}
@@ -0,0 +1,13 @@
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 { css } from 'lit';
9
+
10
+ var styles = css([":host{display:block;margin-block-start:1rem}:host([open]) .cds-aichat--chain-of-thought-content{display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible}:host([open]) .cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg)}.cds-aichat--chain-of-thought-button-chevron{display:flex;flex-basis:1.5rem}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-270deg);transition:none}}.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-aichat--chain-of-thought-content{display:none;max-block-size:0;opacity:0;overflow:hidden;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-inner-content{background-color:var(--cds-layer-01,#f4f4f4);border:1px solid var(--cds-border-subtle-01,#c6c6c6);margin-block-start:.5rem}.cds-aichat--chain-of-thought-item:not(:last-child){padding-block-end:.75rem}.cds-aichat--chain-of-thought-item cds-aichat-markdown:not(:first-child){padding-block-start:.5rem}.cds-aichat--chain-of-thought-item-label{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}button.cds-aichat--chain-of-thought-button{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;vertical-align:baseline}button.cds-aichat--chain-of-thought-button *,button.cds-aichat--chain-of-thought-button :after,button.cds-aichat--chain-of-thought-button :before{box-sizing:inherit}button.cds-aichat--chain-of-thought-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}button.cds-aichat--chain-of-thought-button::-moz-focus-inner{border:0}button.cds-aichat--chain-of-thought-button{align-items:center;color:var(--cds-text-primary,#161616);display:flex;font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}button.cds-aichat--chain-of-thought-button:focus,button.cds-aichat--chain-of-thought-button:focus-visible{outline:2px solid var(--cds-focus,#0f62fe)}.cds-aichat--chain-of-thought-accordion-item-content{background:var(--cds-layer-01,#f4f4f4);color:var(--cds-text-primary,#161616);display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-item{padding-block:1rem;padding-inline:2rem 1rem}.cds-aichat--chain-of-thought-accordion-item-content[hidden]{display:none;max-block-size:0;opacity:0;overflow:hidden;padding-block:0;padding-inline:0}.cds-aichat--chain-of-thought-accordion-item-header-chevron{color:var(--cds-text-primary,#161616);display:flex;flex:0 1 2rem;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:none}}.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-open] svg{transform:rotate(-90deg)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-disabled] svg{visibility:hidden}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;vertical-align:baseline}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header *,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :after,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :before{box-sizing:inherit}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header::-moz-focus-inner{border:0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{align-items:center;background:var(--cds-layer-accent-02,#e0e0e0);block-size:2rem;display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);padding:.5rem 0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header[disabled]{cursor:default}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus-visible{box-shadow:0 -1px 0 0 var(--cds-focus,#0f62fe),inset 0 1px 0 0 var(--cds-focus,#0f62fe),inset 2px 0 0 0 var(--cds-focus,#0f62fe),0 1px 0 0 var(--cds-focus,#0f62fe),inset 0 -1px 0 0 var(--cds-focus,#0f62fe),inset -2px 0 0 0 var(--cds-focus,#0f62fe);outline:none;position:relative;z-index:2}.cds-aichat--chain-of-thought-accordion-item:nth-child(odd) button.cds-aichat--chain-of-thought-accordion-item-header{background:var(--cds-layer-02,#fff)}.cds-aichat--chain-of-thought-accordion-item-header-title{color:var(--cds-text-primary,#161616);flex:1 1;margin-inline-end:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cds-aichat--chain-of-thought-accordion-item-header-status{align-items:center;display:flex;flex:0 0 1.5rem;justify-content:center}.cds-aichat--chain-of-thought-accordion-item-header-status--failure{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--failure svg{fill:var(--cds-support-error,#da1e28)}.cds-aichat--chain-of-thought-accordion-item-header-status--success{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--success svg{fill:var(--cds-support-success,#24a148)}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=chain-of-thought.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-of-thought.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import "../../markdown/index.js";
2
+ import "@carbon/web-components/es/components/inline-loading/index.js";
3
+ import { ChainOfThoughtElement } from "./chain-of-thought.js";
4
+ declare function chainOfThoughtElementTemplate(customElementClass: ChainOfThoughtElement): import("lit-html").TemplateResult<1>;
5
+ export { chainOfThoughtElementTemplate };