@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,231 @@
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, html } from 'lit';
10
+ import { classMap } from 'lit/directives/class-map.js';
11
+ import { ifDefined } from 'lit/directives/if-defined.js';
12
+ import { property, state } from 'lit/decorators.js';
13
+ import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
14
+ import ChevronRight16 from '@carbon/icons/es/chevron--right/16.js';
15
+ import styles from './cds-aichat-reasoning-step.scss.js';
16
+ import prefix from '../../../globals/settings.js';
17
+ import { carbonElement } from '../../../globals/decorators/carbon-element.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 baseClass = `${prefix}--reasoning-step`;
28
+ let idCounter = 0;
29
+ const generateId = (segment) => `${baseClass}-${segment}-${idCounter++}`;
30
+ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.title = "";
34
+ this.open = false;
35
+ this.controlled = false;
36
+ this.hasBodyContent = false;
37
+ this.headerId = generateId("header");
38
+ this.contentId = generateId("content");
39
+ }
40
+ connectedCallback() {
41
+ if (!this.hasAttribute("role")) {
42
+ this.setAttribute("role", "listitem");
43
+ }
44
+ super.connectedCallback();
45
+ this.evaluateBodyContent();
46
+ }
47
+ firstUpdated() {
48
+ const slot = this.shadowRoot?.querySelector("slot:not([name])");
49
+ const nodes = slot?.assignedNodes({ flatten: true });
50
+ if (nodes) {
51
+ this.evaluateBodyContent(nodes);
52
+ }
53
+ }
54
+ get componentConstructor() {
55
+ return this.constructor;
56
+ }
57
+ getTriggerElement() {
58
+ if (!this.shadowRoot) {
59
+ return null;
60
+ }
61
+ return this.shadowRoot.querySelector(`.${baseClass}__trigger`);
62
+ }
63
+ get eventInit() {
64
+ return {
65
+ bubbles: true,
66
+ cancelable: true,
67
+ composed: true,
68
+ };
69
+ }
70
+ evaluateBodyContent(nodes) {
71
+ const nodesToInspect = nodes ?? Array.from(this.childNodes);
72
+ const hasContent = nodesToInspect.some((node) => this.isBodyNode(node));
73
+ if (hasContent !== this.hasBodyContent) {
74
+ this.hasBodyContent = hasContent;
75
+ if (!hasContent && this.open && !this.controlled) {
76
+ this.open = false;
77
+ }
78
+ }
79
+ }
80
+ isBodyNode(node) {
81
+ if (node.nodeType === Node.ELEMENT_NODE) {
82
+ const element = node;
83
+ const slotName = element.getAttribute("slot");
84
+ return !slotName;
85
+ }
86
+ if (node.nodeType === Node.TEXT_NODE) {
87
+ return Boolean(node.textContent?.trim());
88
+ }
89
+ return false;
90
+ }
91
+ handleBodySlotChange(event) {
92
+ const slot = event.target;
93
+ const nodes = slot.assignedNodes({ flatten: true });
94
+ this.evaluateBodyContent(nodes);
95
+ }
96
+ handleToggleRequest(nextState = !this.open) {
97
+ const detail = { open: nextState };
98
+ const init = { ...this.eventInit, detail };
99
+ const canToggle = this.dispatchEvent(new CustomEvent(this.componentConstructor.eventBeforeToggle, init));
100
+ if (!canToggle) {
101
+ return;
102
+ }
103
+ if (!this.controlled) {
104
+ this.open = nextState;
105
+ }
106
+ this.dispatchEvent(new CustomEvent(this.componentConstructor.eventToggle, init));
107
+ }
108
+ handleButtonClick() {
109
+ this.handleToggleRequest(!this.open);
110
+ }
111
+ handleButtonKeydown(event) {
112
+ if (!this.open) {
113
+ return;
114
+ }
115
+ if (event.key === "Escape" || event.key === "Esc") {
116
+ event.stopPropagation();
117
+ this.handleToggleRequest(false);
118
+ }
119
+ }
120
+ focus(options) {
121
+ const trigger = this.getTriggerElement();
122
+ if (trigger) {
123
+ trigger.focus(options);
124
+ return;
125
+ }
126
+ super.focus(options);
127
+ }
128
+ static get eventBeforeToggle() {
129
+ return `${prefix}-reasoning-step-beingtoggled`;
130
+ }
131
+ static get eventToggle() {
132
+ return `${prefix}-reasoning-step-toggled`;
133
+ }
134
+ renderInteractiveHeader() {
135
+ return html `
136
+ <button
137
+ id=${this.headerId}
138
+ type="button"
139
+ part="expando"
140
+ class="${baseClass}__trigger"
141
+ aria-expanded="${String(this.open)}"
142
+ aria-controls="${this.contentId}"
143
+ @click=${this.handleButtonClick}
144
+ @keydown=${this.handleButtonKeydown}
145
+ >
146
+ <span class="${baseClass}__icon" part="expando-icon" aria-hidden="true">
147
+ ${iconLoader(ChevronRight16)}
148
+ </span>
149
+ <div class="${baseClass}__title" part="title">
150
+ <slot name="title">${this.title}</slot>
151
+ </div>
152
+ </button>
153
+ `;
154
+ }
155
+ renderStaticHeader() {
156
+ return html `
157
+ <div class="${baseClass}__static" id=${this.headerId}>
158
+ <span class="${baseClass}__static-icon" aria-hidden="true"
159
+ >&mdash;</span
160
+ >
161
+ <div class="${baseClass}__title" part="title">
162
+ <slot name="title">${this.title}</slot>
163
+ </div>
164
+ </div>
165
+ `;
166
+ }
167
+ renderPanel() {
168
+ const isHidden = !this.hasBodyContent;
169
+ const panelClasses = classMap({
170
+ [`${baseClass}__panel`]: true,
171
+ [`${baseClass}__panel--hidden`]: isHidden,
172
+ });
173
+ return html `
174
+ <div
175
+ id=${this.contentId}
176
+ class=${panelClasses}
177
+ part="wrapper"
178
+ aria-hidden="${this.open && !isHidden ? "false" : "true"}"
179
+ role=${ifDefined(!isHidden ? "region" : undefined)}
180
+ aria-labelledby=${ifDefined(!isHidden ? this.headerId : undefined)}
181
+ ?hidden=${isHidden}
182
+ >
183
+ <div
184
+ class="${baseClass}__panel-body"
185
+ part="content"
186
+ data-visible="${this.open && !isHidden}"
187
+ >
188
+ <slot
189
+ @slotchange=${this.handleBodySlotChange}
190
+ ?hidden=${isHidden}
191
+ ></slot>
192
+ </div>
193
+ </div>
194
+ `;
195
+ }
196
+ render() {
197
+ const classes = classMap({
198
+ [baseClass]: true,
199
+ [`${baseClass}--open`]: this.open && this.hasBodyContent,
200
+ [`${baseClass}--static`]: !this.hasBodyContent,
201
+ });
202
+ return html `
203
+ <div class=${classes}>
204
+ ${this.hasBodyContent
205
+ ? this.renderInteractiveHeader()
206
+ : this.renderStaticHeader()}
207
+ ${this.renderPanel()}
208
+ </div>
209
+ `;
210
+ }
211
+ };
212
+ CDSAIChatReasoningStep.styles = styles;
213
+ __decorate([
214
+ property({ type: String })
215
+ ], CDSAIChatReasoningStep.prototype, "title", void 0);
216
+ __decorate([
217
+ property({ type: Boolean, reflect: true })
218
+ ], CDSAIChatReasoningStep.prototype, "open", void 0);
219
+ __decorate([
220
+ property({ type: Boolean, reflect: true })
221
+ ], CDSAIChatReasoningStep.prototype, "controlled", void 0);
222
+ __decorate([
223
+ state()
224
+ ], CDSAIChatReasoningStep.prototype, "hasBodyContent", void 0);
225
+ CDSAIChatReasoningStep = __decorate([
226
+ carbonElement(`${prefix}-reasoning-step`)
227
+ ], CDSAIChatReasoningStep);
228
+ var CDSAIChatReasoningStep$1 = CDSAIChatReasoningStep;
229
+
230
+ export { CDSAIChatReasoningStep$1 as default };
231
+ //# sourceMappingURL=cds-aichat-reasoning-step.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cds-aichat-reasoning-step.js","sources":["../../../../src/components/reasoning-steps/src/cds-aichat-reasoning-step.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAcH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,kBAAkB;AAC7C,IAAI,SAAS,GAAG,CAAC;AAEjB,MAAM,UAAU,GAAG,CAAC,OAAe,KACjC,CAAA,EAAG,SAAS,IAAI,OAAO,CAAA,CAAA,EAAI,SAAS,EAAE,EAAE;AAG1C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,KAAK,GAAG,EAAE;QAGV,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG,KAAK;QAGV,IAAA,CAAA,cAAc,GAAG,KAAK;AAEtB,QAAA,IAAA,CAAA,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;AAE/B,QAAA,IAAA,CAAA,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;IAsN3C;IApNE,iBAAiB,GAAA;QACf,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;AAC9B,YAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;QACvC;QAEA,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,mBAAmB,EAAE;IAC5B;IAEA,YAAY,GAAA;QACV,MAAM,IAAI,GACR,IAAI,CAAC,UAAU,EAAE,aAAa,CAAkB,kBAAkB,CAAC;AACrE,QAAA,MAAM,KAAK,GAAG,IAAI,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAEpD,IAAI,KAAK,EAAE;AACT,YAAA,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;QACjC;IACF;AAEA,IAAA,I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A;AAGX,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAC7B,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAGX,UAAA,CAAA;AADP,IAAA,KAAK;AACyB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAb3B,sBAAsB,GAAA,UAAA,CAAA;AAD3B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,eAAA,CAAiB;AACnC,CAAA,EAAA,sBAAsB,CAuO3B;AAED,+BAAe,sBAAsB;;;;"}
@@ -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{background-color:transparent;border:0;border-radius:0;color:var(--cds-text-helper,#6f6f6f);display:block}:host([hidden]){display:none}.cds-aichat--reasoning-step{inline-size:100%}.cds-aichat--reasoning-step__trigger{align-items:center;background:transparent;border:0;color:var(--cds-text-helper,#6f6f6f);cursor:pointer;display:flex;font:inherit;gap:.25rem;inline-size:100%;padding:0;text-align:start}.cds-aichat--reasoning-step__trigger:focus-visible{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:2px}.cds-aichat--reasoning-step__icon{align-items:center;block-size:1rem;display:inline-flex;inline-size:1rem;justify-content:center;transition:transform .24s cubic-bezier(.2,0,.38,.9)}.cds-aichat--reasoning-step__icon svg{fill:currentColor;block-size:100%;inline-size:100%}:host([open]) .cds-aichat--reasoning-step__icon{transform:rotate(90deg)}.cds-aichat--reasoning-step__title{color:var(--cds-text-helper,#6f6f6f);flex:1;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)}.cds-aichat--reasoning-step__static{align-items:center;display:flex;gap:.25rem}.cds-aichat--reasoning-step__static-icon{align-items:center;block-size:1rem;display:inline-flex;inline-size:1rem;justify-content:center}.cds-aichat--reasoning-step__static-icon svg{fill:currentColor;block-size:100%;inline-size:100%}.cds-aichat--reasoning-step__panel{display:grid;grid-template-rows:0fr;opacity:0;padding-block-end:0;padding-block-start:0;padding-inline:1.25rem;pointer-events:none;transition:grid-template-rows .11s cubic-bezier(0,0,.38,.9),opacity .11s cubic-bezier(0,0,.38,.9),padding-block-end .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--reasoning-step__panel[hidden]{display:none}:host([open]) .cds-aichat--reasoning-step__panel{grid-template-rows:1fr;opacity:1;padding-block-end:.25rem;padding-block-start:.125rem;pointer-events:auto}.cds-aichat--reasoning-step__panel-body{min-block-size:0;overflow:hidden}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=cds-aichat-reasoning-step.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cds-aichat-reasoning-step.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,13 @@
1
+ import { LitElement } from "lit";
2
+ declare class CDSAIChatReasoningSteps extends LitElement {
3
+ static styles: any;
4
+ open: boolean;
5
+ controlled: boolean;
6
+ connectedCallback(): void;
7
+ updated(changedProperties: Map<PropertyKey, unknown>): void;
8
+ get steps(): NodeListOf<HTMLElement>;
9
+ propagateControlled(): void;
10
+ markLastVisibleStep(): void;
11
+ render(): import("lit-html").TemplateResult<1>;
12
+ }
13
+ export default CDSAIChatReasoningSteps;
@@ -0,0 +1,96 @@
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, html } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import styles from './cds-aichat-reasoning-steps.scss.js';
12
+ import prefix from '../../../globals/settings.js';
13
+ import { carbonElement } from '../../../globals/decorators/carbon-element.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 baseClass = `${prefix}--reasoning-steps`;
24
+ const stepSelector = `${prefix}-reasoning-step`;
25
+ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
26
+ constructor() {
27
+ super(...arguments);
28
+ this.open = false;
29
+ this.controlled = false;
30
+ }
31
+ connectedCallback() {
32
+ if (!this.hasAttribute("role")) {
33
+ this.setAttribute("role", "list");
34
+ }
35
+ super.connectedCallback();
36
+ }
37
+ updated(changedProperties) {
38
+ if (changedProperties.has("controlled")) {
39
+ this.propagateControlled();
40
+ }
41
+ this.markLastVisibleStep();
42
+ }
43
+ get steps() {
44
+ return this.querySelectorAll(stepSelector);
45
+ }
46
+ propagateControlled() {
47
+ this.steps.forEach((step) => {
48
+ if (this.controlled) {
49
+ step.setAttribute("data-parent-controlled", "");
50
+ step.setAttribute("controlled", "");
51
+ }
52
+ else if (step.hasAttribute("data-parent-controlled")) {
53
+ step.removeAttribute("data-parent-controlled");
54
+ step.removeAttribute("controlled");
55
+ }
56
+ });
57
+ }
58
+ markLastVisibleStep() {
59
+ const steps = Array.from(this.steps);
60
+ steps.forEach((step) => {
61
+ step.removeAttribute("data-last-item");
62
+ });
63
+ const lastVisible = steps.reverse().find((step) => !step.hidden);
64
+ if (lastVisible) {
65
+ lastVisible.setAttribute("data-last-item", "");
66
+ }
67
+ }
68
+ render() {
69
+ return html `
70
+ <div class=${baseClass}>
71
+ <div
72
+ class="${baseClass}__wrapper"
73
+ aria-hidden=${this.open ? "false" : "true"}
74
+ >
75
+ <div class="${baseClass}__body">
76
+ <slot></slot>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ `;
81
+ }
82
+ };
83
+ CDSAIChatReasoningSteps.styles = styles;
84
+ __decorate([
85
+ property({ type: Boolean, reflect: true })
86
+ ], CDSAIChatReasoningSteps.prototype, "open", void 0);
87
+ __decorate([
88
+ property({ type: Boolean, reflect: true })
89
+ ], CDSAIChatReasoningSteps.prototype, "controlled", void 0);
90
+ CDSAIChatReasoningSteps = __decorate([
91
+ carbonElement(`${prefix}-reasoning-steps`)
92
+ ], CDSAIChatReasoningSteps);
93
+ var CDSAIChatReasoningSteps$1 = CDSAIChatReasoningSteps;
94
+
95
+ export { CDSAIChatReasoningSteps$1 as default };
96
+ //# sourceMappingURL=cds-aichat-reasoning-steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cds-aichat-reasoning-steps.js","sources":["../../../../src/components/reasoning-steps/src/cds-aichat-reasoning-steps.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,mBAAmB;AAC9C,MAAM,YAAY,GAAG,CAAA,EAAG,MAAM,iBAAiB;AAG/C,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU,CAAA;AAAhD,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG,KAAK;IA8DpB;IA5DE,iBAAiB,GAAA;QACf,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;AAC9B,YAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC;QACnC;QAEA,KAAK,CAAC,iBAAiB,EAAE;IAC3B;AAEA,IAAA,OAAO,CAAC,iBAA4C,E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AI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM;;wBAE5B,SAAS,CAAA;;;;;KAK5B;IACH;;AAnEO,uBAAA,CAAA,MAAM,GAAG,MAAH;AAGb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAC7B,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAPf,uBAAuB,GAAA,UAAA,CAAA;AAD5B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,uBAAuB,CAqE5B;AAED,gCAAe,uBAAuB;;;;"}
@@ -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;inline-size:100%}.cds-aichat--reasoning-steps__wrapper{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;padding-inline-start:0;pointer-events:none;transition:grid-template-rows .11s cubic-bezier(0,0,.38,.9),padding-inline-start .11s cubic-bezier(0,0,.38,.9),opacity .11s cubic-bezier(0,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--reasoning-steps__wrapper{transition:none}}:host([open]) .cds-aichat--reasoning-steps__wrapper{border-inline-start:1px solid var(--cds-border-subtle-02,#e0e0e0);grid-template-rows:1fr;opacity:1;overflow:visible;padding-inline-start:.25rem;pointer-events:auto}.cds-aichat--reasoning-steps__body{display:flex;flex-direction:column;gap:.5rem;min-block-size:0;overflow:hidden;padding-inline-start:.5rem}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=cds-aichat-reasoning-steps.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cds-aichat-reasoning-steps.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import "./src/cds-aichat-table.js";
2
+ export { default, TABLE_COMPONENT_TAG_NAME } from "./src/cds-aichat-table.js";
3
+ export type { TableItemCell, TableItemRow } from "./src/types.js";
@@ -0,0 +1,9 @@
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 { TABLE_COMPONENT_TAG_NAME, default } from './src/cds-aichat-table.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,262 @@
1
+ import { type CDSTableRow } from "@carbon/web-components";
2
+ import { TemplateResult, LitElement, PropertyValues } from "lit";
3
+ export interface TableCellContent {
4
+ text: string;
5
+ template?: TemplateResult | null;
6
+ }
7
+ export interface TableRowContent {
8
+ cells: TableCellContent[];
9
+ }
10
+ interface PageChangeEvent extends Event {
11
+ detail: {
12
+ page: number;
13
+ pageSize: number;
14
+ };
15
+ }
16
+ interface FilterEvent extends Event {
17
+ detail: {
18
+ unfilteredRows: CDSTableRow[];
19
+ };
20
+ }
21
+ interface TableRowWithIDs extends TableRowContent {
22
+ id: string;
23
+ }
24
+ declare const TABLE_COMPONENT_TAG_NAME = "cds-aichat-table";
25
+ /**
26
+ * Class functionality for the Table custom element.
27
+ */
28
+ declare class TableElement extends LitElement {
29
+ /**
30
+ * The optional table title.
31
+ */
32
+ tableTitle?: string;
33
+ /**
34
+ * The optional table description.
35
+ */
36
+ tableDescription?: string;
37
+ /**
38
+ * The array of cells for the header.
39
+ */
40
+ headers: TableCellContent[];
41
+ /**
42
+ * The array of rows. Each row includes an array of cells.
43
+ */
44
+ rows: TableRowContent[];
45
+ /**
46
+ * Whether or not the table content is loading. If it is then a skeleton state should be shown instead.
47
+ */
48
+ loading: boolean;
49
+ /**
50
+ * The text used for the filter placeholder.
51
+ */
52
+ filterPlaceholderText: string;
53
+ /**
54
+ * The text used for the pagination's previous button tooltip.
55
+ */
56
+ previousPageText: string;
57
+ /**
58
+ * The text used for the pagination's next button tooltip.
59
+ */
60
+ nextPageText: string;
61
+ /**
62
+ * The text used for the pagination's item pre page text.
63
+ */
64
+ itemsPerPageText: string;
65
+ /**
66
+ * The locale. Used by the carbon table component to change the collator for sorting.
67
+ */
68
+ locale: string;
69
+ /**
70
+ * The calculated default page size based on component width.
71
+ * 10 for width > PAGE_SIZE_WIDTH_THRESHOLD, 5 for width <= PAGE_SIZE_WIDTH_THRESHOLD.
72
+ */
73
+ private _defaultPageSize;
74
+ get defaultPageSize(): number;
75
+ set defaultPageSize(value: number);
76
+ /**
77
+ * The function used to get the supplemental text for the pagination component.
78
+ */
79
+ getPaginationSupplementalText?: ({ count }: {
80
+ count: number;
81
+ }) => string;
82
+ /**
83
+ * The function used to get the status text for the pagination component.
84
+ */
85
+ getPaginationStatusText?: ({ start, end, count, }: {
86
+ start: number;
87
+ end: number;
88
+ count: number;
89
+ }) => string;
90
+ /**
91
+ * If the table is valid or not.
92
+ */
93
+ protected _isValid: boolean;
94
+ /**
95
+ * The current page of the table we're on.
96
+ */
97
+ _currentPageNumber: number;
98
+ /**
99
+ * How many rows are on each page of the table.
100
+ */
101
+ _currentPageSize: number;
102
+ /**
103
+ * Whether or not the number of rows per page was changed with the pagination component. If the user used the
104
+ * pagination controls to show all rows, the pagination component would normally hide itself because the number of is
105
+ * no longer greater than the page size. However the pagination component needs to persist in this case, since the
106
+ * user may want to change the page size again. This is used to keep track of whether the pagination controls were
107
+ * used to change page size, and if they have, it forces pagination component to persist.
108
+ */
109
+ _rowsPerPageChanged: boolean;
110
+ /**
111
+ * The rows that have not been filtered out.
112
+ */
113
+ _filterVisibleRowIDs: Set<string>;
114
+ /**
115
+ * All of the rows for the table with IDs.
116
+ */
117
+ _rowsWithIDs: TableRowWithIDs[];
118
+ /**
119
+ * Whether or not the table should be able to be filtered.
120
+ */
121
+ _allowFiltering: boolean;
122
+ static styles: any;
123
+ private tableRuntime;
124
+ private tableRuntimePromise;
125
+ connectedCallback(): void;
126
+ /**
127
+ * Called after the element's DOM has been updated for the first time.
128
+ * Initializes the table page size.
129
+ *
130
+ * @param _changedProperties - Map of properties that changed during the update
131
+ */
132
+ protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
133
+ /**
134
+ * Updates the CSS custom property `--cds-chat-table-width` based on the parent element's width.
135
+ * Also calculates the default page size on first run based on the measured width.
136
+ * This method is called once during component initialization.
137
+ *
138
+ * @private
139
+ */
140
+ private _updateDefaultPageSize;
141
+ /**
142
+ * Called before the element updates to prepare state changes.
143
+ * Handles validation and re-initialization of table data when headers or rows change.
144
+ *
145
+ * @param changedProperties - Map of properties that changed during the update
146
+ * @protected
147
+ */
148
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
149
+ /**
150
+ * Validates the table structure by checking if all rows have the same number of cells as the header.
151
+ * Sets the internal `_isValid` state to false if any row has a mismatched cell count.
152
+ *
153
+ * A valid table requires:
154
+ * - All rows must have the same number of cells as there are headers
155
+ * - No rows can have more or fewer cells than the column count
156
+ *
157
+ * @private
158
+ */
159
+ private _calcIsTableValid;
160
+ /**
161
+ * Initializes internal arrays used for table functionality.
162
+ * Creates a new array of rows with unique IDs and initializes the filter visibility tracking.
163
+ *
164
+ * This method:
165
+ * 1. Resets the `_rowsWithIDs` array and `_filterVisibleRowIDs` set
166
+ * 2. Assigns string-based IDs to each row for tracking purposes
167
+ * 3. Marks all rows as initially visible (not filtered out)
168
+ *
169
+ * @private
170
+ */
171
+ private _initializeRowsArrays;
172
+ /**
173
+ * Configures the table's page size and filtering behavior.
174
+ * Determines whether filtering/searching should be enabled based on the number of rows
175
+ * relative to the current page size.
176
+ *
177
+ * Filtering is enabled when there are more rows than can fit on a single page,
178
+ * allowing users to search and paginate through large datasets.
179
+ *
180
+ * @private
181
+ */
182
+ private _setPageSize;
183
+ private ensureTableRuntime;
184
+ /**
185
+ * Handles pagination events from the Carbon pagination component.
186
+ * Updates the visible rows when the user navigates to a different page.
187
+ *
188
+ * Note: This event sometimes fires twice due to a Carbon framework quirk,
189
+ * but since the page/size values are identical, it doesn't affect functionality.
190
+ *
191
+ * @param event - The page change event containing the new page number and size
192
+ * @public
193
+ */
194
+ _handlePageChangeEvent: (event: PageChangeEvent) => void;
195
+ /**
196
+ * Handles page size change events from the pagination component.
197
+ * Updates the current page size and recalculates visible rows.
198
+ * Marks that the page size has been manually changed by the user.
199
+ *
200
+ * @param event - The page size change event containing the new page size
201
+ * @public
202
+ */
203
+ _handlePageSizeChangeEvent: (event: PageChangeEvent) => void;
204
+ /**
205
+ * Handles filter and sort events from the Carbon table component.
206
+ * Updates the set of visible rows based on filtering/sorting results and resets to the first page.
207
+ *
208
+ * This event is triggered by:
209
+ * - Column sorting (clicking on sortable column headers)
210
+ * - Table filtering (using the search bar)
211
+ *
212
+ * @param event - The filter event containing the array of unfiltered rows
213
+ * @public
214
+ */
215
+ _handleFilterEvent: (event: FilterEvent) => void;
216
+ /**
217
+ * Controls which table rows are visible based on pagination and filtering.
218
+ * Uses CSS display properties to show/hide rows rather than DOM manipulation.
219
+ *
220
+ * This approach is necessary because Carbon's table component handles its own
221
+ * sorting and we need to preserve the DOM order it creates. The method:
222
+ * 1. Hides all rows initially
223
+ * 2. Filters to only rows that haven't been filtered out
224
+ * 3. Shows only the rows that belong to the current page
225
+ *
226
+ * @param page - The page number to display (1-based)
227
+ * @param pageSize - Number of rows per page
228
+ * @private
229
+ */
230
+ private _updateVisibleRows;
231
+ /**
232
+ * Handles the table download functionality by exporting all table data as a CSV file.
233
+ *
234
+ * This custom implementation is necessary because Carbon's default download feature:
235
+ * - Only exports selected rows (we want all data)
236
+ * - Only exports as JSON (we want CSV format)
237
+ * - Doesn't include all the data we need
238
+ *
239
+ * The method dynamically imports the CSV stringify library to avoid bundle bloat,
240
+ * creates a data URL to comply with CSP policies, and triggers a download.
241
+ *
242
+ * @public
243
+ */
244
+ _handleDownload(): Promise<void>;
245
+ /**
246
+ * Renders the table component based on current state and data.
247
+ *
248
+ * The render logic follows this priority:
249
+ * 1. Shows skeleton loading state if `loading` is true
250
+ * 2. Shows table with pagination if there are more rows than the page size OR pagination was used
251
+ * 3. Shows table only if all rows fit on one page
252
+ *
253
+ * The method also applies the appropriate Carbon theme class (cds--g90 for dark, cds--white for light)
254
+ * to ensure proper styling based on the `dark` property.
255
+ *
256
+ * @returns The lit-html template for the table component
257
+ * @public
258
+ */
259
+ render(): TemplateResult<1>;
260
+ }
261
+ export { TableElement, TABLE_COMPONENT_TAG_NAME };
262
+ export default TableElement;