@carbon/ai-chat-components 0.10.0 → 0.11.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 (461) hide show
  1. package/README.md +0 -3
  2. package/custom-elements.json +4827 -2917
  3. package/es/components/card/src/card-footer.d.ts +1 -1
  4. package/es/components/card/src/card-footer.js +2 -1
  5. package/es/components/card/src/card-footer.js.map +1 -1
  6. package/es/components/card/src/card-footer.scss.js +1 -1
  7. package/es/components/card/src/card-steps.d.ts +1 -1
  8. package/es/components/card/src/card-steps.js +2 -1
  9. package/es/components/card/src/card-steps.js.map +1 -1
  10. package/es/components/card/src/card-steps.scss.js +1 -1
  11. package/es/components/card/src/card.d.ts +1 -1
  12. package/es/components/card/src/card.js +2 -1
  13. package/es/components/card/src/card.js.map +1 -1
  14. package/es/components/card/src/card.scss.js +1 -1
  15. package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +1 -1
  16. package/es/components/chain-of-thought/src/chain-of-thought-step.js +4 -5
  17. package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  18. package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +1 -1
  19. package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +3 -3
  20. package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
  21. package/es/components/chain-of-thought/src/chain-of-thought.d.ts +1 -1
  22. package/es/components/chain-of-thought/src/chain-of-thought.js +3 -2
  23. package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
  24. package/es/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
  25. package/es/components/chain-of-thought/src/tool-call-data.d.ts +1 -1
  26. package/es/components/chain-of-thought/src/tool-call-data.js +2 -1
  27. package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  28. package/es/components/chat-button/src/chat-button.d.ts +2 -2
  29. package/es/components/chat-button/src/chat-button.js +3 -2
  30. package/es/components/chat-button/src/chat-button.js.map +1 -1
  31. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  32. package/es/components/chat-shell/index.d.ts +2 -0
  33. package/es/components/chat-shell/index.js +1 -0
  34. package/es/components/chat-shell/index.js.map +1 -1
  35. package/es/components/chat-shell/src/aria-announcer-manager.d.ts +40 -0
  36. package/es/components/chat-shell/src/aria-announcer-manager.js +104 -0
  37. package/es/components/chat-shell/src/aria-announcer-manager.js.map +1 -0
  38. package/es/components/chat-shell/src/chat-header.d.ts +177 -0
  39. package/es/components/chat-shell/src/chat-header.js +415 -0
  40. package/es/components/chat-shell/src/chat-header.js.map +1 -0
  41. package/es/components/chat-shell/src/chat-header.scss.js +13 -0
  42. package/es/components/chat-shell/src/chat-header.scss.js.map +1 -0
  43. package/es/components/chat-shell/src/corner-manager.d.ts +35 -0
  44. package/es/components/chat-shell/src/corner-manager.js +87 -0
  45. package/es/components/chat-shell/src/corner-manager.js.map +1 -0
  46. package/es/components/chat-shell/src/initialization-manager.d.ts +44 -0
  47. package/es/components/chat-shell/src/initialization-manager.js +88 -0
  48. package/es/components/chat-shell/src/initialization-manager.js.map +1 -0
  49. package/es/components/chat-shell/src/panel.d.ts +14 -1
  50. package/es/components/chat-shell/src/panel.js +32 -4
  51. package/es/components/chat-shell/src/panel.js.map +1 -1
  52. package/es/components/chat-shell/src/panel.scss.js +1 -1
  53. package/es/components/chat-shell/src/resize-observer-manager.d.ts +55 -0
  54. package/es/components/chat-shell/src/resize-observer-manager.js +219 -0
  55. package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -0
  56. package/es/components/chat-shell/src/shell.d.ts +54 -21
  57. package/es/components/chat-shell/src/shell.js +297 -287
  58. package/es/components/chat-shell/src/shell.js.map +1 -1
  59. package/es/components/chat-shell/src/shell.scss.js +1 -1
  60. package/es/components/chat-shell/src/slot-observer.d.ts +53 -0
  61. package/es/components/chat-shell/src/slot-observer.js +156 -0
  62. package/es/components/chat-shell/src/slot-observer.js.map +1 -0
  63. package/es/components/chat-shell/src/types.d.ts +66 -0
  64. package/es/components/chat-shell/src/types.js +8 -0
  65. package/es/components/chat-shell/src/types.js.map +1 -0
  66. package/es/components/chat-shell/src/workspace-manager.d.ts +12 -1
  67. package/es/components/chat-shell/src/workspace-manager.js +42 -2
  68. package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
  69. package/es/components/code-snippet/index.d.ts +3 -2
  70. package/es/components/code-snippet/index.js +1 -1
  71. package/es/components/code-snippet/src/code-snippet.d.ts +58 -15
  72. package/es/components/code-snippet/src/code-snippet.js +261 -95
  73. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  74. package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
  75. package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -1
  76. package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -1
  77. package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -2
  78. package/es/components/code-snippet/src/codemirror/editor-manager.js +18 -3
  79. package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
  80. package/es/components/code-snippet/src/codemirror/language-controller.d.ts +1 -0
  81. package/es/components/code-snippet/src/codemirror/language-controller.js +11 -5
  82. package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
  83. package/es/components/code-snippet/src/codemirror/marker-utils.js +2 -1
  84. package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
  85. package/es/components/code-snippet/src/codemirror/theme.d.ts +12 -0
  86. package/es/components/code-snippet/src/codemirror/theme.js +26 -2
  87. package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
  88. package/es/components/code-snippet/src/dom-utils.d.ts +1 -0
  89. package/es/components/code-snippet/src/dom-utils.js +12 -1
  90. package/es/components/code-snippet/src/dom-utils.js.map +1 -1
  91. package/es/components/code-snippet/src/layout-utils.d.ts +9 -1
  92. package/es/components/code-snippet/src/layout-utils.js +21 -16
  93. package/es/components/code-snippet/src/layout-utils.js.map +1 -1
  94. package/es/components/code-snippet/src/streaming-manager.js +7 -0
  95. package/es/components/code-snippet/src/streaming-manager.js.map +1 -1
  96. package/es/components/feedback/src/feedback-buttons.d.ts +2 -0
  97. package/es/components/feedback/src/feedback-buttons.js +65 -3
  98. package/es/components/feedback/src/feedback-buttons.js.map +1 -1
  99. package/es/components/feedback/src/feedback-buttons.scss.js +13 -0
  100. package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -0
  101. package/es/components/feedback/src/feedback.d.ts +20 -10
  102. package/es/components/feedback/src/feedback.js +114 -20
  103. package/es/components/feedback/src/feedback.js.map +1 -1
  104. package/es/components/feedback/src/feedback.scss.js +1 -1
  105. package/es/components/markdown/src/markdown-renderer.d.ts +31 -21
  106. package/es/components/markdown/src/markdown-renderer.js +57 -48
  107. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  108. package/es/components/markdown/src/markdown.d.ts +34 -31
  109. package/es/components/markdown/src/markdown.js +221 -138
  110. package/es/components/markdown/src/markdown.js.map +1 -1
  111. package/es/components/markdown/src/markdown.scss.js +1 -1
  112. package/es/components/markdown/src/markdown.template.js +1 -1
  113. package/es/components/markdown/src/utils.d.ts +0 -4
  114. package/es/components/markdown/src/utils.js +1 -7
  115. package/es/components/markdown/src/utils.js.map +1 -1
  116. package/es/components/processing/src/processing.d.ts +1 -1
  117. package/es/components/processing/src/processing.js +2 -1
  118. package/es/components/processing/src/processing.js.map +1 -1
  119. package/es/components/processing/src/processing.scss.js +1 -1
  120. package/es/components/reasoning-steps/src/reasoning-step.d.ts +1 -1
  121. package/es/components/reasoning-steps/src/reasoning-step.js +2 -1
  122. package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  123. package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +1 -1
  124. package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +27 -4
  125. package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
  126. package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  127. package/es/components/reasoning-steps/src/reasoning-steps.d.ts +1 -1
  128. package/es/components/reasoning-steps/src/reasoning-steps.js +3 -5
  129. package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  130. package/es/components/table/src/table-pagination.template.js +3 -2
  131. package/es/components/table/src/table-pagination.template.js.map +1 -1
  132. package/es/components/table/src/table-skeleton.template.js +8 -6
  133. package/es/components/table/src/table-skeleton.template.js.map +1 -1
  134. package/es/components/table/src/table.d.ts +29 -3
  135. package/es/components/table/src/table.js +99 -6
  136. package/es/components/table/src/table.js.map +1 -1
  137. package/es/components/table/src/table.scss.js +1 -1
  138. package/es/components/table/src/table.template.js +11 -2
  139. package/es/components/table/src/table.template.js.map +1 -1
  140. package/es/components/toolbar/src/toolbar.d.ts +32 -5
  141. package/es/components/toolbar/src/toolbar.js +111 -47
  142. package/es/components/toolbar/src/toolbar.js.map +1 -1
  143. package/es/components/toolbar/src/toolbar.scss.js +1 -1
  144. package/es/components/truncated-text/index.d.ts +9 -0
  145. package/es/components/truncated-text/index.js +9 -0
  146. package/es/components/truncated-text/index.js.map +1 -0
  147. package/es/components/truncated-text/src/truncated-text.d.ts +81 -0
  148. package/es/components/truncated-text/src/truncated-text.js +282 -0
  149. package/es/components/truncated-text/src/truncated-text.js.map +1 -0
  150. package/es/components/truncated-text/src/truncated-text.scss.js +13 -0
  151. package/es/components/truncated-text/src/truncated-text.scss.js.map +1 -0
  152. package/es/components/workspace-shell/src/header-collapsible-manager.d.ts +77 -0
  153. package/es/components/workspace-shell/src/header-collapsible-manager.js +223 -0
  154. package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -0
  155. package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
  156. package/es/components/workspace-shell/src/workspace-shell-body.js +2 -1
  157. package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
  158. package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +1 -3
  159. package/es/components/workspace-shell/src/workspace-shell-footer.js +8 -6
  160. package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
  161. package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
  162. package/es/components/workspace-shell/src/workspace-shell-header.d.ts +11 -1
  163. package/es/components/workspace-shell/src/workspace-shell-header.js +88 -14
  164. package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  165. package/es/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
  166. package/es/components/workspace-shell/src/workspace-shell.d.ts +16 -2
  167. package/es/components/workspace-shell/src/workspace-shell.js +77 -7
  168. package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
  169. package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  170. package/es/globals/scss/common.scss.js +13 -0
  171. package/es/globals/scss/common.scss.js.map +1 -0
  172. package/es/globals/utils/focus-utils.d.ts +57 -0
  173. package/es/globals/utils/focus-utils.js +180 -0
  174. package/es/globals/utils/focus-utils.js.map +1 -0
  175. package/es/react/card.d.ts +3 -6
  176. package/es/react/chain-of-thought-step.d.ts +1 -2
  177. package/es/react/chain-of-thought-toggle.d.ts +1 -2
  178. package/es/react/chain-of-thought.d.ts +1 -2
  179. package/es/react/chat-button.d.ts +2 -2
  180. package/es/react/chat-button.js +1 -1
  181. package/es/react/chat-header.d.ts +73 -0
  182. package/es/react/chat-header.js +55 -0
  183. package/es/react/chat-header.js.map +1 -0
  184. package/es/react/chat-shell.d.ts +1 -2
  185. package/es/react/code-snippet.d.ts +35 -2
  186. package/es/react/code-snippet.js +65 -9
  187. package/es/react/code-snippet.js.map +1 -1
  188. package/es/react/feedback-buttons.d.ts +1 -2
  189. package/es/react/feedback.d.ts +1 -2
  190. package/es/react/markdown.d.ts +1 -2
  191. package/es/react/markdown.js +11 -1
  192. package/es/react/markdown.js.map +1 -1
  193. package/es/react/panel.d.ts +1 -2
  194. package/es/react/processing.d.ts +1 -2
  195. package/es/react/reasoning-step.d.ts +1 -2
  196. package/es/react/reasoning-steps-toggle.d.ts +1 -2
  197. package/es/react/reasoning-steps.d.ts +1 -2
  198. package/es/react/tool-call-data.d.ts +1 -2
  199. package/es/react/toolbar.d.ts +14 -10
  200. package/es/react/toolbar.js +2 -0
  201. package/es/react/toolbar.js.map +1 -1
  202. package/es/react/utils/withWebComponentBridge.d.ts +5 -2
  203. package/es/react/utils/withWebComponentBridge.js +49 -1
  204. package/es/react/utils/withWebComponentBridge.js.map +1 -1
  205. package/es/react/workspace-shell.d.ts +4 -8
  206. package/es/testing/PageObjectId.d.ts +22 -0
  207. package/es/testing/PageObjectId.js +38 -0
  208. package/es/testing/PageObjectId.js.map +1 -0
  209. package/es/typings/overflow-menu.d.ts +30 -0
  210. package/es/typings/overflow-menu.js +8 -0
  211. package/es/typings/overflow-menu.js.map +1 -0
  212. package/es-custom/components/card/src/card-footer.d.ts +1 -1
  213. package/es-custom/components/card/src/card-footer.js +2 -1
  214. package/es-custom/components/card/src/card-footer.js.map +1 -1
  215. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  216. package/es-custom/components/card/src/card-steps.d.ts +1 -1
  217. package/es-custom/components/card/src/card-steps.js +2 -1
  218. package/es-custom/components/card/src/card-steps.js.map +1 -1
  219. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  220. package/es-custom/components/card/src/card.d.ts +1 -1
  221. package/es-custom/components/card/src/card.js +2 -1
  222. package/es-custom/components/card/src/card.js.map +1 -1
  223. package/es-custom/components/card/src/card.scss.js +1 -1
  224. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +1 -1
  225. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +4 -5
  226. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  227. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +1 -1
  228. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +3 -3
  229. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
  230. package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +1 -1
  231. package/es-custom/components/chain-of-thought/src/chain-of-thought.js +3 -2
  232. package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
  233. package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
  234. package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +1 -1
  235. package/es-custom/components/chain-of-thought/src/tool-call-data.js +2 -1
  236. package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  237. package/es-custom/components/chat-button/src/chat-button.d.ts +2 -2
  238. package/es-custom/components/chat-button/src/chat-button.js +3 -2
  239. package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
  240. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  241. package/es-custom/components/chat-shell/index.d.ts +2 -0
  242. package/es-custom/components/chat-shell/index.js +1 -0
  243. package/es-custom/components/chat-shell/index.js.map +1 -1
  244. package/es-custom/components/chat-shell/src/aria-announcer-manager.d.ts +40 -0
  245. package/es-custom/components/chat-shell/src/aria-announcer-manager.js +104 -0
  246. package/es-custom/components/chat-shell/src/aria-announcer-manager.js.map +1 -0
  247. package/es-custom/components/chat-shell/src/chat-header.d.ts +177 -0
  248. package/es-custom/components/chat-shell/src/chat-header.js +415 -0
  249. package/es-custom/components/chat-shell/src/chat-header.js.map +1 -0
  250. package/es-custom/components/chat-shell/src/chat-header.scss.js +13 -0
  251. package/es-custom/components/chat-shell/src/chat-header.scss.js.map +1 -0
  252. package/es-custom/components/chat-shell/src/corner-manager.d.ts +35 -0
  253. package/es-custom/components/chat-shell/src/corner-manager.js +87 -0
  254. package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -0
  255. package/es-custom/components/chat-shell/src/initialization-manager.d.ts +44 -0
  256. package/es-custom/components/chat-shell/src/initialization-manager.js +88 -0
  257. package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -0
  258. package/es-custom/components/chat-shell/src/panel.d.ts +14 -1
  259. package/es-custom/components/chat-shell/src/panel.js +32 -4
  260. package/es-custom/components/chat-shell/src/panel.js.map +1 -1
  261. package/es-custom/components/chat-shell/src/panel.scss.js +1 -1
  262. package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +55 -0
  263. package/es-custom/components/chat-shell/src/resize-observer-manager.js +219 -0
  264. package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -0
  265. package/es-custom/components/chat-shell/src/shell.d.ts +54 -21
  266. package/es-custom/components/chat-shell/src/shell.js +297 -287
  267. package/es-custom/components/chat-shell/src/shell.js.map +1 -1
  268. package/es-custom/components/chat-shell/src/shell.scss.js +1 -1
  269. package/es-custom/components/chat-shell/src/slot-observer.d.ts +53 -0
  270. package/es-custom/components/chat-shell/src/slot-observer.js +156 -0
  271. package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -0
  272. package/es-custom/components/chat-shell/src/types.d.ts +66 -0
  273. package/es-custom/components/chat-shell/src/types.js +8 -0
  274. package/es-custom/components/chat-shell/src/types.js.map +1 -0
  275. package/es-custom/components/chat-shell/src/workspace-manager.d.ts +12 -1
  276. package/es-custom/components/chat-shell/src/workspace-manager.js +42 -2
  277. package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
  278. package/es-custom/components/code-snippet/index.d.ts +3 -2
  279. package/es-custom/components/code-snippet/index.js +1 -1
  280. package/es-custom/components/code-snippet/src/code-snippet.d.ts +58 -15
  281. package/es-custom/components/code-snippet/src/code-snippet.js +261 -95
  282. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  283. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  284. package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -1
  285. package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -1
  286. package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -2
  287. package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +18 -3
  288. package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
  289. package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +1 -0
  290. package/es-custom/components/code-snippet/src/codemirror/language-controller.js +11 -5
  291. package/es-custom/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
  292. package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +2 -1
  293. package/es-custom/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
  294. package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +12 -0
  295. package/es-custom/components/code-snippet/src/codemirror/theme.js +26 -2
  296. package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
  297. package/es-custom/components/code-snippet/src/dom-utils.d.ts +1 -0
  298. package/es-custom/components/code-snippet/src/dom-utils.js +12 -1
  299. package/es-custom/components/code-snippet/src/dom-utils.js.map +1 -1
  300. package/es-custom/components/code-snippet/src/layout-utils.d.ts +9 -1
  301. package/es-custom/components/code-snippet/src/layout-utils.js +21 -16
  302. package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
  303. package/es-custom/components/code-snippet/src/streaming-manager.js +7 -0
  304. package/es-custom/components/code-snippet/src/streaming-manager.js.map +1 -1
  305. package/es-custom/components/feedback/src/feedback-buttons.d.ts +2 -0
  306. package/es-custom/components/feedback/src/feedback-buttons.js +65 -3
  307. package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
  308. package/es-custom/components/feedback/src/feedback-buttons.scss.js +13 -0
  309. package/es-custom/components/feedback/src/feedback-buttons.scss.js.map +1 -0
  310. package/es-custom/components/feedback/src/feedback.d.ts +20 -10
  311. package/es-custom/components/feedback/src/feedback.js +114 -20
  312. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  313. package/es-custom/components/feedback/src/feedback.scss.js +1 -1
  314. package/es-custom/components/markdown/src/markdown-renderer.d.ts +31 -21
  315. package/es-custom/components/markdown/src/markdown-renderer.js +57 -48
  316. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  317. package/es-custom/components/markdown/src/markdown.d.ts +34 -31
  318. package/es-custom/components/markdown/src/markdown.js +221 -138
  319. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  320. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  321. package/es-custom/components/markdown/src/markdown.template.js +1 -1
  322. package/es-custom/components/markdown/src/utils.d.ts +0 -4
  323. package/es-custom/components/markdown/src/utils.js +1 -7
  324. package/es-custom/components/markdown/src/utils.js.map +1 -1
  325. package/es-custom/components/processing/src/processing.d.ts +1 -1
  326. package/es-custom/components/processing/src/processing.js +2 -1
  327. package/es-custom/components/processing/src/processing.js.map +1 -1
  328. package/es-custom/components/processing/src/processing.scss.js +1 -1
  329. package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +1 -1
  330. package/es-custom/components/reasoning-steps/src/reasoning-step.js +2 -1
  331. package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  332. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +1 -1
  333. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +27 -4
  334. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
  335. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  336. package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +1 -1
  337. package/es-custom/components/reasoning-steps/src/reasoning-steps.js +3 -5
  338. package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  339. package/es-custom/components/table/src/table-pagination.template.js +3 -2
  340. package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
  341. package/es-custom/components/table/src/table-skeleton.template.js +8 -6
  342. package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
  343. package/es-custom/components/table/src/table.d.ts +29 -3
  344. package/es-custom/components/table/src/table.js +99 -6
  345. package/es-custom/components/table/src/table.js.map +1 -1
  346. package/es-custom/components/table/src/table.scss.js +1 -1
  347. package/es-custom/components/table/src/table.template.js +11 -2
  348. package/es-custom/components/table/src/table.template.js.map +1 -1
  349. package/es-custom/components/toolbar/src/toolbar.d.ts +32 -5
  350. package/es-custom/components/toolbar/src/toolbar.js +111 -47
  351. package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
  352. package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
  353. package/es-custom/components/truncated-text/index.d.ts +9 -0
  354. package/es-custom/components/truncated-text/index.js +9 -0
  355. package/es-custom/components/truncated-text/index.js.map +1 -0
  356. package/es-custom/components/truncated-text/src/truncated-text.d.ts +81 -0
  357. package/es-custom/components/truncated-text/src/truncated-text.js +282 -0
  358. package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -0
  359. package/es-custom/components/truncated-text/src/truncated-text.scss.js +13 -0
  360. package/es-custom/components/truncated-text/src/truncated-text.scss.js.map +1 -0
  361. package/es-custom/components/workspace-shell/src/header-collapsible-manager.d.ts +77 -0
  362. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +223 -0
  363. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -0
  364. package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
  365. package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -1
  366. package/es-custom/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
  367. package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +1 -3
  368. package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +8 -6
  369. package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
  370. package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
  371. package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +11 -1
  372. package/es-custom/components/workspace-shell/src/workspace-shell-header.js +88 -14
  373. package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  374. package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
  375. package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +16 -2
  376. package/es-custom/components/workspace-shell/src/workspace-shell.js +77 -7
  377. package/es-custom/components/workspace-shell/src/workspace-shell.js.map +1 -1
  378. package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  379. package/es-custom/globals/scss/common.scss.js +13 -0
  380. package/es-custom/globals/scss/common.scss.js.map +1 -0
  381. package/es-custom/globals/utils/focus-utils.d.ts +57 -0
  382. package/es-custom/globals/utils/focus-utils.js +180 -0
  383. package/es-custom/globals/utils/focus-utils.js.map +1 -0
  384. package/es-custom/react/card.d.ts +3 -6
  385. package/es-custom/react/chain-of-thought-step.d.ts +1 -2
  386. package/es-custom/react/chain-of-thought-toggle.d.ts +1 -2
  387. package/es-custom/react/chain-of-thought.d.ts +1 -2
  388. package/es-custom/react/chat-button.d.ts +2 -2
  389. package/es-custom/react/chat-button.js +1 -1
  390. package/es-custom/react/chat-header.d.ts +73 -0
  391. package/es-custom/react/chat-header.js +55 -0
  392. package/es-custom/react/chat-header.js.map +1 -0
  393. package/es-custom/react/chat-shell.d.ts +1 -2
  394. package/es-custom/react/code-snippet.d.ts +35 -2
  395. package/es-custom/react/code-snippet.js +65 -9
  396. package/es-custom/react/code-snippet.js.map +1 -1
  397. package/es-custom/react/feedback-buttons.d.ts +1 -2
  398. package/es-custom/react/feedback.d.ts +1 -2
  399. package/es-custom/react/markdown.d.ts +1 -2
  400. package/es-custom/react/markdown.js +11 -1
  401. package/es-custom/react/markdown.js.map +1 -1
  402. package/es-custom/react/panel.d.ts +1 -2
  403. package/es-custom/react/processing.d.ts +1 -2
  404. package/es-custom/react/reasoning-step.d.ts +1 -2
  405. package/es-custom/react/reasoning-steps-toggle.d.ts +1 -2
  406. package/es-custom/react/reasoning-steps.d.ts +1 -2
  407. package/es-custom/react/tool-call-data.d.ts +1 -2
  408. package/es-custom/react/toolbar.d.ts +14 -10
  409. package/es-custom/react/toolbar.js +2 -0
  410. package/es-custom/react/toolbar.js.map +1 -1
  411. package/es-custom/react/utils/withWebComponentBridge.d.ts +5 -2
  412. package/es-custom/react/utils/withWebComponentBridge.js +49 -1
  413. package/es-custom/react/utils/withWebComponentBridge.js.map +1 -1
  414. package/es-custom/react/workspace-shell.d.ts +4 -8
  415. package/es-custom/testing/PageObjectId.d.ts +22 -0
  416. package/es-custom/testing/PageObjectId.js +38 -0
  417. package/es-custom/testing/PageObjectId.js.map +1 -0
  418. package/es-custom/typings/overflow-menu.d.ts +30 -0
  419. package/es-custom/typings/overflow-menu.js +8 -0
  420. package/es-custom/typings/overflow-menu.js.map +1 -0
  421. package/package.json +6 -4
  422. package/scss/_custom-properties.scss +70 -0
  423. package/scss/_modifiers.scss +231 -0
  424. package/scss/_tokens-component.scss +30 -0
  425. package/scss/_tokens-layout.scss +29 -0
  426. package/scss/_utilities.scss +32 -0
  427. package/scss/common.scss +150 -0
  428. package/scss/grid.scss +11 -0
  429. package/scss/themes.scss +33 -0
  430. package/scss/vars.scss +12 -0
  431. package/telemetry.yml +73 -33
  432. package/es/components/code-snippet/src/code-snippet-card.d.ts +0 -63
  433. package/es/components/code-snippet/src/code-snippet-card.js +0 -187
  434. package/es/components/code-snippet/src/code-snippet-card.js.map +0 -1
  435. package/es/components/feedback/src/feedback-buttons.template.d.ts +0 -4
  436. package/es/components/feedback/src/feedback-buttons.template.js +0 -79
  437. package/es/components/feedback/src/feedback-buttons.template.js.map +0 -1
  438. package/es/components/feedback/src/feedback.template.d.ts +0 -12
  439. package/es/components/feedback/src/feedback.template.js +0 -115
  440. package/es/components/feedback/src/feedback.template.js.map +0 -1
  441. package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +0 -3
  442. package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js +0 -43
  443. package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +0 -1
  444. package/es/react/code-snippet-card.d.ts +0 -4
  445. package/es/react/code-snippet-card.js +0 -31
  446. package/es/react/code-snippet-card.js.map +0 -1
  447. package/es-custom/components/code-snippet/src/code-snippet-card.d.ts +0 -63
  448. package/es-custom/components/code-snippet/src/code-snippet-card.js +0 -187
  449. package/es-custom/components/code-snippet/src/code-snippet-card.js.map +0 -1
  450. package/es-custom/components/feedback/src/feedback-buttons.template.d.ts +0 -4
  451. package/es-custom/components/feedback/src/feedback-buttons.template.js +0 -79
  452. package/es-custom/components/feedback/src/feedback-buttons.template.js.map +0 -1
  453. package/es-custom/components/feedback/src/feedback.template.d.ts +0 -12
  454. package/es-custom/components/feedback/src/feedback.template.js +0 -115
  455. package/es-custom/components/feedback/src/feedback.template.js.map +0 -1
  456. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +0 -3
  457. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.js +0 -43
  458. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +0 -1
  459. package/es-custom/react/code-snippet-card.d.ts +0 -4
  460. package/es-custom/react/code-snippet-card.js +0 -31
  461. package/es-custom/react/code-snippet-card.js.map +0 -1
@@ -1,43 +0,0 @@
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 { html } from 'lit';
9
- import { ifDefined } from 'lit/directives/if-defined.js';
10
- import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
11
- import ChevronDown16 from '@carbon/icons/es/chevron--down/16.js';
12
- import prefix from '../../../globals/settings.js';
13
-
14
- /*
15
- * Copyright IBM Corp. 2025
16
- *
17
- * This source code is licensed under the Apache-2.0 license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- *
20
- * @license
21
- */
22
- function reasoningStepsToggleTemplate(customElementClass) {
23
- const { open, disabled, panelID, handleToggleClick, openLabelText, closedLabelText, } = customElementClass;
24
- const labelText = open ? openLabelText : closedLabelText;
25
- return html `
26
- <button
27
- class="${prefix}--reasoning-steps-toggle"
28
- type="button"
29
- aria-expanded=${open ? "true" : "false"}
30
- aria-controls=${ifDefined(panelID)}
31
- ?disabled=${disabled}
32
- @click=${handleToggleClick}
33
- >
34
- <span class="${prefix}--reasoning-steps-toggle-label">${labelText}</span>
35
- <span class="${prefix}--reasoning-steps-toggle-caret" aria-hidden="true">
36
- ${iconLoader(ChevronDown16)}
37
- </span>
38
- </button>
39
- `;
40
- }
41
-
42
- export { reasoningStepsToggleTemplate };
43
- //# sourceMappingURL=reasoning-steps-toggle.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reasoning-steps-toggle.template.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps-toggle.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH,SAAS,4BAA4B,CACnC,kBAAiD,EAAA;AAEjD,IAAA,MAAM,EACJ,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,eAAe,GAChB,GAAG,kBAAkB;IAEtB,MAAM,SAAS,GAAG,IAAI,GAAG,aAAa,GAAG,eAAe;AAExD,IAAA,OAAO,IAAI,CAAA;;eAEE,MAAM,CAAA;;AAEC,oBAAA,EAAA,IAAI,GAAG,MAAM,GAAG,OAAO;sBACvB,SAAS,CAAC,OAAO,CAAC;kBACtB,QAAQ;eACX,iBAAiB;;AAEX,mBAAA,EAAA,MAAM,mCAAmC,SAAS,CAAA;qBAClD,MAAM,CAAA;UACjB,UAAU,CAAC,aAAa,CAAC;;;GAGhC;AACH;;;;"}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import CDSAIChatCodeSnippetCard from "../components/code-snippet/src/code-snippet-card.js";
3
- declare const CodeSnippetCard: React.ForwardRefExoticComponent<Omit<Record<string, unknown>, "ref"> & React.RefAttributes<CDSAIChatCodeSnippetCard>>;
4
- export default CodeSnippetCard;
@@ -1,31 +0,0 @@
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 { createComponent } from '@lit/react';
9
- import React from 'react';
10
- import CDSAIChatCodeSnippetCard from '../components/code-snippet/src/code-snippet-card.js';
11
- import { withWebComponentBridge } from './utils/withWebComponentBridge.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 CodeSnippetCard = withWebComponentBridge(createComponent({
22
- tagName: "cds-aichat-code-snippet-card",
23
- elementClass: CDSAIChatCodeSnippetCard,
24
- react: React,
25
- events: {
26
- onChange: "content-change",
27
- },
28
- }));
29
-
30
- export { CodeSnippetCard as default };
31
- //# sourceMappingURL=code-snippet-card.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code-snippet-card.js","sources":["../../src/react/code-snippet-card.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH,MAAM,eAAe,GAAG,sBAAsB,CAC5C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,8BAA8B;AACvC,IAAA,YAAY,EAAE,wBAAwB;AACtC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,gBAAgB;AAC3B,KAAA;AACF,CAAA,CAAC;;;;"}
@@ -1,63 +0,0 @@
1
- import { LitElement } from "lit";
2
- import "../../card/index.js";
3
- import "./code-snippet.js";
4
- import { type LineCountFormatter } from "./formatters.js";
5
- /**
6
- * AI Chat code snippet wrapper that places the snippet inside a Carbon tile.
7
- *
8
- * @element cds-aichat-code-snippet-card
9
- */
10
- declare class CDSAIChatCodeSnippetCard extends LitElement {
11
- /** Language used for syntax highlighting. */
12
- language: string;
13
- /** Whether the snippet should be editable. */
14
- editable: boolean;
15
- /** Whether to enable syntax highlighting. */
16
- highlight: boolean;
17
- /** Fallback language to use when detection fails. */
18
- defaultLanguage: string;
19
- /** Text to copy when clicking the copy button. Defaults to slotted content. */
20
- copyText: string;
21
- /** Disable interactions on the snippet. */
22
- disabled: boolean;
23
- /** Feedback text shown after copy. */
24
- feedback: string;
25
- /** Duration (ms) to show feedback text. */
26
- feedbackTimeout: number;
27
- /** Hide the copy button. */
28
- hideCopyButton: boolean;
29
- /** Maximum rows to show when collapsed. */
30
- maxCollapsedNumberOfRows: number;
31
- /** Maximum rows to show when expanded (0 = unlimited). */
32
- maxExpandedNumberOfRows: number;
33
- /** Minimum rows to show when collapsed. */
34
- minCollapsedNumberOfRows: number;
35
- /** Minimum rows to show when expanded. */
36
- minExpandedNumberOfRows: number;
37
- /** Label for the “show less” control. */
38
- showLessText: string;
39
- /** Label for the “show more” control. */
40
- showMoreText: string;
41
- /** Tooltip label for the copy action. */
42
- tooltipContent: string;
43
- /** Wrap text instead of horizontal scrolling. */
44
- wrapText: boolean;
45
- /** Label for folding/collapsing code. */
46
- foldCollapseLabel: string;
47
- /** Label for unfolding/expanding code. */
48
- foldExpandLabel: string;
49
- /** Formatter for the line count display. */
50
- getLineCountText: LineCountFormatter;
51
- /**
52
- * Handles the content-change event from the inner code snippet and re-dispatches it.
53
- */
54
- private _handleContentChange;
55
- render(): import("lit-html").TemplateResult<1>;
56
- }
57
- declare global {
58
- interface HTMLElementTagNameMap {
59
- "cds-aichat-code-snippet-card": CDSAIChatCodeSnippetCard;
60
- }
61
- }
62
- export { CDSAIChatCodeSnippetCard };
63
- export default CDSAIChatCodeSnippetCard;
@@ -1,187 +0,0 @@
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 { carbonElement } from '../../../globals/decorators/carbon-element.js';
12
- import prefix from '../../../globals/settings.js';
13
- import '../../card/src/card.js';
14
- import '../../card/src/card-footer.js';
15
- import '../../card/src/card-steps.js';
16
- import './code-snippet.js';
17
- import { defaultLineCountText } from './formatters.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
- /**
28
- * AI Chat code snippet wrapper that places the snippet inside a Carbon tile.
29
- *
30
- * @element cds-aichat-code-snippet-card
31
- */
32
- let CDSAIChatCodeSnippetCard = class CDSAIChatCodeSnippetCard extends LitElement {
33
- constructor() {
34
- super(...arguments);
35
- /** Language used for syntax highlighting. */
36
- this.language = "";
37
- /** Whether the snippet should be editable. */
38
- this.editable = false;
39
- /** Whether to enable syntax highlighting. */
40
- this.highlight = false;
41
- /** Fallback language to use when detection fails. */
42
- this.defaultLanguage = "javascript";
43
- /** Text to copy when clicking the copy button. Defaults to slotted content. */
44
- this.copyText = "";
45
- /** Disable interactions on the snippet. */
46
- this.disabled = false;
47
- /** Feedback text shown after copy. */
48
- this.feedback = "Copied!";
49
- /** Duration (ms) to show feedback text. */
50
- this.feedbackTimeout = 2000;
51
- /** Hide the copy button. */
52
- this.hideCopyButton = false;
53
- /** Maximum rows to show when collapsed. */
54
- this.maxCollapsedNumberOfRows = 15;
55
- /** Maximum rows to show when expanded (0 = unlimited). */
56
- this.maxExpandedNumberOfRows = 0;
57
- /** Minimum rows to show when collapsed. */
58
- this.minCollapsedNumberOfRows = 3;
59
- /** Minimum rows to show when expanded. */
60
- this.minExpandedNumberOfRows = 16;
61
- /** Label for the “show less” control. */
62
- this.showLessText = "Show less";
63
- /** Label for the “show more” control. */
64
- this.showMoreText = "Show more";
65
- /** Tooltip label for the copy action. */
66
- this.tooltipContent = "Copy to clipboard";
67
- /** Wrap text instead of horizontal scrolling. */
68
- this.wrapText = false;
69
- /** Label for folding/collapsing code. */
70
- this.foldCollapseLabel = "Collapse code block";
71
- /** Label for unfolding/expanding code. */
72
- this.foldExpandLabel = "Expand code block";
73
- /** Formatter for the line count display. */
74
- this.getLineCountText = defaultLineCountText;
75
- }
76
- /**
77
- * Handles the content-change event from the inner code snippet and re-dispatches it.
78
- */
79
- _handleContentChange(event) {
80
- this.dispatchEvent(new CustomEvent("content-change", {
81
- detail: event.detail,
82
- bubbles: true,
83
- composed: true,
84
- }));
85
- }
86
- render() {
87
- return html `
88
- <cds-aichat-card>
89
- <div slot="body">
90
- <cds-aichat-code-snippet
91
- data-rounded
92
- language=${this.language}
93
- default-language=${this.defaultLanguage}
94
- ?editable=${this.editable}
95
- ?highlight=${this.highlight}
96
- @content-change=${this._handleContentChange}
97
- copy-text=${this.copyText}
98
- ?disabled=${this.disabled}
99
- feedback=${this.feedback}
100
- feedback-timeout=${this.feedbackTimeout}
101
- ?hide-copy-button=${this.hideCopyButton}
102
- max-collapsed-number-of-rows=${this.maxCollapsedNumberOfRows}
103
- max-expanded-number-of-rows=${this.maxExpandedNumberOfRows}
104
- min-collapsed-number-of-rows=${this.minCollapsedNumberOfRows}
105
- min-expanded-number-of-rows=${this.minExpandedNumberOfRows}
106
- .getLineCountText=${this.getLineCountText}
107
- show-less-text=${this.showLessText}
108
- show-more-text=${this.showMoreText}
109
- tooltip-content=${this.tooltipContent}
110
- ?wrap-text=${this.wrapText}
111
- fold-collapse-label=${this.foldCollapseLabel}
112
- fold-expand-label=${this.foldExpandLabel}
113
- >
114
- <slot></slot>
115
- </cds-aichat-code-snippet>
116
- </div>
117
- </cds-aichat-card>
118
- `;
119
- }
120
- };
121
- __decorate([
122
- property({ type: String })
123
- ], CDSAIChatCodeSnippetCard.prototype, "language", void 0);
124
- __decorate([
125
- property({ type: Boolean })
126
- ], CDSAIChatCodeSnippetCard.prototype, "editable", void 0);
127
- __decorate([
128
- property({ type: Boolean })
129
- ], CDSAIChatCodeSnippetCard.prototype, "highlight", void 0);
130
- __decorate([
131
- property({ type: String, attribute: "default-language" })
132
- ], CDSAIChatCodeSnippetCard.prototype, "defaultLanguage", void 0);
133
- __decorate([
134
- property({ attribute: "copy-text" })
135
- ], CDSAIChatCodeSnippetCard.prototype, "copyText", void 0);
136
- __decorate([
137
- property({ type: Boolean, reflect: true })
138
- ], CDSAIChatCodeSnippetCard.prototype, "disabled", void 0);
139
- __decorate([
140
- property()
141
- ], CDSAIChatCodeSnippetCard.prototype, "feedback", void 0);
142
- __decorate([
143
- property({ type: Number, attribute: "feedback-timeout" })
144
- ], CDSAIChatCodeSnippetCard.prototype, "feedbackTimeout", void 0);
145
- __decorate([
146
- property({ type: Boolean, reflect: true, attribute: "hide-copy-button" })
147
- ], CDSAIChatCodeSnippetCard.prototype, "hideCopyButton", void 0);
148
- __decorate([
149
- property({ attribute: "max-collapsed-number-of-rows" })
150
- ], CDSAIChatCodeSnippetCard.prototype, "maxCollapsedNumberOfRows", void 0);
151
- __decorate([
152
- property({ attribute: "max-expanded-number-of-rows" })
153
- ], CDSAIChatCodeSnippetCard.prototype, "maxExpandedNumberOfRows", void 0);
154
- __decorate([
155
- property({ attribute: "min-collapsed-number-of-rows" })
156
- ], CDSAIChatCodeSnippetCard.prototype, "minCollapsedNumberOfRows", void 0);
157
- __decorate([
158
- property({ attribute: "min-expanded-number-of-rows" })
159
- ], CDSAIChatCodeSnippetCard.prototype, "minExpandedNumberOfRows", void 0);
160
- __decorate([
161
- property({ attribute: "show-less-text" })
162
- ], CDSAIChatCodeSnippetCard.prototype, "showLessText", void 0);
163
- __decorate([
164
- property({ attribute: "show-more-text" })
165
- ], CDSAIChatCodeSnippetCard.prototype, "showMoreText", void 0);
166
- __decorate([
167
- property({ attribute: "tooltip-content" })
168
- ], CDSAIChatCodeSnippetCard.prototype, "tooltipContent", void 0);
169
- __decorate([
170
- property({ type: Boolean, reflect: true, attribute: "wrap-text" })
171
- ], CDSAIChatCodeSnippetCard.prototype, "wrapText", void 0);
172
- __decorate([
173
- property({ attribute: "fold-collapse-label" })
174
- ], CDSAIChatCodeSnippetCard.prototype, "foldCollapseLabel", void 0);
175
- __decorate([
176
- property({ attribute: "fold-expand-label" })
177
- ], CDSAIChatCodeSnippetCard.prototype, "foldExpandLabel", void 0);
178
- __decorate([
179
- property({ attribute: false })
180
- ], CDSAIChatCodeSnippetCard.prototype, "getLineCountText", void 0);
181
- CDSAIChatCodeSnippetCard = __decorate([
182
- carbonElement(`${prefix}-code-snippet-card`)
183
- ], CDSAIChatCodeSnippetCard);
184
- var CDSAIChatCodeSnippetCard$1 = CDSAIChatCodeSnippetCard;
185
-
186
- export { CDSAIChatCodeSnippetCard, CDSAIChatCodeSnippetCard$1 as default };
187
- //# sourceMappingURL=code-snippet-card.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code-snippet-card.js","sources":["../../../../src/components/code-snippet/src/code-snippet-card.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH;;;;AAIG;AAEH,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,UAAU,CAAA;AAAjD,IAAA,WAAA,GAAA;;;QAE8B,IAAA,CAAA,QAAQ,GAAG,EAAE;;QAGZ,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAGhB,IAAA,CAAA,SAAS,GAAG,KAAK;;QAI9C,IAAA,CAAA,eAAe,GAAG,YAAY;;QAI9B,IAAA,CAAA,QAAQ,GAAG,EAAE;;QAIb,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAIhB,IAAA,CAAA,QAAQ,GAAG,SAAS;;QAIpB,IAAA,CAAA,eAAe,GAAG,IAAI;;QAItB,IAAA,CAAA,cAAc,GAAG,KAAK;;QAItB,IAAA,CAAA,wBAAwB,GAAG,EAAE;;QAI7B,IAAA,CAAA,uBAAuB,GAAG,CAAC;;QAI3B,IAAA,CAAA,wBAAwB,GAAG,CAAC;;QAI5B,IAAA,CAAA,uBAAuB,GAAG,EAAE;;QAI5B,IAAA,CAAA,YAAY,GAAG,WAAW;;QAI1B,IAAA,CAAA,YAAY,GAAG,WAAW;;QAI1B,IAAA,CAAA,cAAc,GAAG,mBAAmB;;QAIpC,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAIhB,IAAA,CAAA,iBAAiB,GAAG,qBAAqB;;QAIzC,IAAA,CAAA,eAAe,GAAG,mBAAmB;;QAIrC,IAAA,CAAA,gBAAgB,GAAuB,oBAAoB;IA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A;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE;AACJ,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,mBAAA,EAAA,MAAA,CAAA;AAI1C,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE;AACN,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAItC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AAC8B,CAAA,EAAA,wBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AA5ExD,wBAAwB,GAAA,UAAA,CAAA;AAD7B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,kBAAA,CAAoB;AACtC,CAAA,EAAA,wBAAwB,CA6H7B;AASD,iCAAe,wBAAwB;;;;"}
@@ -1,4 +0,0 @@
1
- import "@carbon/web-components/es-custom/components/icon-button/index.js";
2
- import { CDSAIChatFeedbackButtons } from "./feedback-buttons.js";
3
- declare function feedbackButtonsElementTemplate(customElementClass: CDSAIChatFeedbackButtons): import("lit-html").TemplateResult<1>;
4
- export { feedbackButtonsElementTemplate };
@@ -1,79 +0,0 @@
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 '@carbon/web-components/es-custom/components/icon-button/index.js';
9
- import { iconLoader } from '@carbon/web-components/es-custom/globals/internal/icon-loader.js';
10
- import ThumbsDown16 from '@carbon/icons/es/thumbs-down/16.js';
11
- import ThumbsDownFilled16 from '@carbon/icons/es/thumbs-down--filled/16.js';
12
- import ThumbsUp16 from '@carbon/icons/es/thumbs-up/16.js';
13
- import ThumbsUpFilled16 from '@carbon/icons/es/thumbs-up--filled/16.js';
14
- import { nothing, html } from 'lit';
15
- import prefix from '../../../globals/settings.js';
16
-
17
- /*
18
- * Copyright IBM Corp. 2025
19
- *
20
- * This source code is licensed under the Apache-2.0 license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- *
23
- * @license
24
- */
25
- const DEFAULT_POSITIVE_LABEL = "Good response";
26
- const DEFAULT_NEGATIVE_LABEL = "Bad response";
27
- function feedbackButtonsElementTemplate(customElementClass) {
28
- const { isPositiveOpen, isNegativeOpen, isPositiveSelected, isNegativeSelected, hasPositiveDetails, hasNegativeDetails, isPositiveDisabled, isNegativeDisabled, positiveLabel, negativeLabel, panelID, } = customElementClass;
29
- const handleButtonClick = (isPositive) => {
30
- customElementClass.handleButtonClick?.call(customElementClass, isPositive);
31
- };
32
- return html `<div class="${prefix}--feedback-buttons">
33
- <cds-custom-icon-button
34
- class="${prefix}--feedback-buttons-positive"
35
- size="sm"
36
- align="top-left"
37
- kind="ghost"
38
- role="button"
39
- ?disabled=${isPositiveDisabled}
40
- aria-expanded="${isPositiveDisabled || !hasPositiveDetails
41
- ? nothing
42
- : isPositiveOpen}"
43
- aria-pressed="${isPositiveSelected || nothing}"
44
- aria-controls="${panelID}-feedback-positive"
45
- @click="${() => handleButtonClick(true)}"
46
- >
47
- <span slot="icon"
48
- >${iconLoader(isPositiveSelected ? ThumbsUpFilled16 : ThumbsUp16)}</span
49
- >
50
- <span slot="tooltip-content"
51
- >${positiveLabel || DEFAULT_POSITIVE_LABEL}</span
52
- >
53
- </cds-custom-icon-button>
54
- <cds-custom-icon-button
55
- class="${prefix}--feedback-buttons-negative"
56
- size="sm"
57
- align="top-left"
58
- kind="ghost"
59
- role="button"
60
- ?disabled=${isNegativeDisabled}
61
- aria-expanded="${isNegativeDisabled || !hasNegativeDetails
62
- ? nothing
63
- : isNegativeOpen}"
64
- aria-pressed="${isNegativeSelected || nothing}"
65
- aria-controls="${panelID}-feedback-negative"
66
- @click="${() => handleButtonClick(false)}"
67
- >
68
- <span slot="icon"
69
- >${iconLoader(isNegativeSelected ? ThumbsDownFilled16 : ThumbsDown16)}</span
70
- >
71
- <span slot="tooltip-content"
72
- >${negativeLabel || DEFAULT_NEGATIVE_LABEL}</span
73
- >
74
- </cds-custom-icon-button>
75
- </div>`;
76
- }
77
-
78
- export { feedbackButtonsElementTemplate };
79
- //# sourceMappingURL=feedback-buttons.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feedback-buttons.template.js","sources":["../../../../src/components/feedback/src/feedback-buttons.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAcH,MAAM,sBAAsB,GAAG,eAAe;AAC9C,MAAM,sBAAsB,GAAG,cAAc;AAE7C,SAAS,8BAA8B,CACrC,kBAA4C,EAAA;IAE5C,MAAM,EACJ,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,OAAO,GACR,GAAG,kBAAkB;AAEtB,IAAA,MAAM,iBAAiB,GAAG,CAAC,UAAmB,KAAI;QAChD,kBAAkB,CAAC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;AAC5E,IAAA,CAAC;IAED,OAAO,IAAI,CAAA,CAAA,YAAA,EAAe,MAAM,CAAA;;eAEnB,MAAM,CAAA;;;;;kBAKH,kBAAkB;uBACb,kBAAkB,IAAI,CAAC;AACtC,UAAE;AACF,UAAE,cAAc,CAAA;AACF,oBAAA,EAAA,kBAAkB,IAAI,OAAO,CAAA;uBAC5B,OAAO,CAAA;AACd,cAAA,EAAA,MAAM,iBAAiB,CAAC,IAAI,CAAC,CAAA;;;WAGlC,UAAU,CAAC,kBAAkB,GAAG,gBAAgB,GAAG,UAAU,CAAC,CAAA;;;AAG9D,SAAA,EAAA,aAAa,IAAI,sBAAsB,CAAA;;;;eAInC,MAAM,CAAA;;;;;kBAKH,kBAAkB;uBACb,kBAAkB,IAAI,CAAC;AACtC,UAAE;AACF,UAAE,cAAc,CAAA;AACF,oBAAA,EAAA,kBAAkB,IAAI,OAAO,CAAA;uBAC5B,OAAO,CAAA;AACd,cAAA,EAAA,MAAM,iBAAiB,CAAC,KAAK,CAAC,CAAA;;;WAGnC,UAAU,CACX,kBAAkB,GAAG,kBAAkB,GAAG,YAAY,CACvD,CAAA;;;AAGE,SAAA,EAAA,aAAa,IAAI,sBAAsB,CAAA;;;SAGzC;AACT;;;;"}
@@ -1,12 +0,0 @@
1
- import "../../markdown/index.js";
2
- import "@carbon/web-components/es-custom/components/button/index.js";
3
- import "@carbon/web-components/es-custom/components/chat-button/index.js";
4
- import "@carbon/web-components/es-custom/components/icon-button/index.js";
5
- import "@carbon/web-components/es-custom/components/layer/index.js";
6
- import "@carbon/web-components/es-custom/components/textarea/index.js";
7
- import { CDSAIChatFeedback } from "./feedback.js";
8
- /**
9
- * Lit template for feedback.
10
- */
11
- declare function feedbackElementTemplate(customElementClass: CDSAIChatFeedback): import("lit-html").TemplateResult<1>;
12
- export { feedbackElementTemplate };
@@ -1,115 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2025
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- import '../../markdown/src/markdown.js';
9
- import '@carbon/web-components/es-custom/components/button/index.js';
10
- import '@carbon/web-components/es-custom/components/chat-button/index.js';
11
- import '@carbon/web-components/es-custom/components/icon-button/index.js';
12
- import '@carbon/web-components/es-custom/components/layer/index.js';
13
- import '@carbon/web-components/es-custom/components/textarea/index.js';
14
- import { html } from 'lit';
15
- import prefix from '../../../globals/settings.js';
16
-
17
- /*
18
- * Copyright IBM Corp. 2025
19
- *
20
- * This source code is licensed under the Apache-2.0 license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- *
23
- * @license
24
- */
25
- // The maximum number of characters the user is allowed to type into the text area.
26
- const MAX_TEXT_COUNT = 1000;
27
- /**
28
- * Lit template for feedback.
29
- */
30
- function feedbackElementTemplate(customElementClass) {
31
- const { _handleCancel: handleCancel, _handleSubmit: handleSubmit, _handleTextInput: handleTextInput, _textInput: textInput, _selectedCategories: selectedCategories, _handleCategoryClick: handleCategoryClick, id, isReadonly, isOpen, title, prompt, placeholder, categories, disclaimer, showTextArea, showPrompt, submitLabel, cancelLabel, } = customElementClass;
32
- const containerClasses = [`${prefix}--container`];
33
- if (!isOpen) {
34
- containerClasses.push(`${prefix}--is-closed`);
35
- }
36
- return html `<div class="${containerClasses.join(" ")}">
37
- <div class="${prefix}--title-row">
38
- <div class="${prefix}--title">
39
- ${title || "Provide additional feedback"}
40
- </div>
41
- </div>
42
- ${showPrompt
43
- ? html `<div class="${prefix}--prompt">
44
- ${prompt || "What do you think of this response?"}
45
- </div>`
46
- : ""}
47
- ${categories?.length
48
- ? html `<div class="${prefix}--categories">
49
- <ul class="${prefix}--tag-list-container" role="listbox">
50
- ${categories.map((value) => html `<li class="${prefix}--tag-list-item">
51
- <cds-custom-chat-button
52
- class="${prefix}--tag-list-button"
53
- kind="primary"
54
- size="sm"
55
- type="button"
56
- is-quick-action
57
- role="option"
58
- aria-pressed="${selectedCategories.has(value)}"
59
- ?is-selected=${selectedCategories.has(value)}
60
- data-content="${value}"
61
- ?disabled=${isReadonly}
62
- @click=${handleCategoryClick}
63
- >
64
- ${value}
65
- </cds-custom-chat-button>
66
- </li>`)}
67
- </ul>
68
- </div>`
69
- : ""}
70
- ${showTextArea
71
- ? html `<div class="${prefix}--feedback-text">
72
- <cds-custom-textarea
73
- id="${id}-text-area"
74
- value="${textInput}"
75
- class="${prefix}--feedback-text-area"
76
- ?disabled=${isReadonly}
77
- placeholder="${placeholder || "Provide additional feedback..."}"
78
- rows="3"
79
- max-count="${MAX_TEXT_COUNT}"
80
- @input=${handleTextInput}
81
- ></cds-custom-textarea>
82
- </div>`
83
- : ""}
84
- ${disclaimer
85
- ? html `<div class="${prefix}--disclaimer">
86
- <cds-aichat-markdown>${disclaimer}</cds-aichat-markdown>
87
- </div>`
88
- : ""}
89
- <div class="${prefix}--buttons">
90
- <div class="${prefix}--cancel" data-rounded="bottom-left">
91
- <cds-custom-button
92
- ?disabled=${isReadonly}
93
- size="lg"
94
- kind="secondary"
95
- @click=${handleCancel}
96
- >
97
- ${cancelLabel || "Cancel"}
98
- </cds-custom-button>
99
- </div>
100
- <div class="${prefix}--submit" data-rounded="bottom-right">
101
- <cds-custom-button
102
- ?disabled=${isReadonly}
103
- size="lg"
104
- kind="primary"
105
- @click=${handleSubmit}
106
- >
107
- ${submitLabel || "Submit"}
108
- </cds-custom-button>
109
- </div>
110
- </div>
111
- </div>`;
112
- }
113
-
114
- export { feedbackElementTemplate };
115
- //# sourceMappingURL=feedback.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feedback.template.js","sources":["../../../../src/components/feedback/src/feedback.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAcH;AACA,MAAM,cAAc,GAAG,IAAI;AAE3B;;AAEG;AACH,SAAS,uBAAuB,CAAC,kBAAqC,EAAA;IACpE,MAAM,EACJ,aAAa,EAAE,YAAY,EAC3B,aAAa,EAAE,YAAY,EAC3B,gBAAgB,EAAE,eAAe,EACjC,UAAU,EAAE,SAAS,EACrB,mBAAmB,EAAE,kBAAkB,EACvC,oBAAoB,EAAE,mBAAmB,EACzC,EAAE,EACF,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACN,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,GACZ,GAAG,kBAAkB;AAEtB,IAAA,MAAM,gBAAgB,GAAG,CAAC,GAAG,MAAM,CAAA,WAAA,CAAa,CAAC;IACjD,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,gBAAgB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAA,WAAA,CAAa,CAAC;IAC/C;IAEA,OAAO,IAAI,CAAA,CAAA,YAAA,EAAe,gBAAgB,CAAC,IAAI,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B;AACT;;;;"}
@@ -1,3 +0,0 @@
1
- import { CDSAIChatReasoningStepsToggle } from "./reasoning-steps-toggle.js";
2
- declare function reasoningStepsToggleTemplate(customElementClass: CDSAIChatReasoningStepsToggle): import("lit-html").TemplateResult<1>;
3
- export { reasoningStepsToggleTemplate };
@@ -1,43 +0,0 @@
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 { html } from 'lit';
9
- import { ifDefined } from 'lit/directives/if-defined.js';
10
- import { iconLoader } from '@carbon/web-components/es-custom/globals/internal/icon-loader.js';
11
- import ChevronDown16 from '@carbon/icons/es/chevron--down/16.js';
12
- import prefix from '../../../globals/settings.js';
13
-
14
- /*
15
- * Copyright IBM Corp. 2025
16
- *
17
- * This source code is licensed under the Apache-2.0 license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- *
20
- * @license
21
- */
22
- function reasoningStepsToggleTemplate(customElementClass) {
23
- const { open, disabled, panelID, handleToggleClick, openLabelText, closedLabelText, } = customElementClass;
24
- const labelText = open ? openLabelText : closedLabelText;
25
- return html `
26
- <button
27
- class="${prefix}--reasoning-steps-toggle"
28
- type="button"
29
- aria-expanded=${open ? "true" : "false"}
30
- aria-controls=${ifDefined(panelID)}
31
- ?disabled=${disabled}
32
- @click=${handleToggleClick}
33
- >
34
- <span class="${prefix}--reasoning-steps-toggle-label">${labelText}</span>
35
- <span class="${prefix}--reasoning-steps-toggle-caret" aria-hidden="true">
36
- ${iconLoader(ChevronDown16)}
37
- </span>
38
- </button>
39
- `;
40
- }
41
-
42
- export { reasoningStepsToggleTemplate };
43
- //# sourceMappingURL=reasoning-steps-toggle.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reasoning-steps-toggle.template.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps-toggle.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH,SAAS,4BAA4B,CACnC,kBAAiD,EAAA;AAEjD,IAAA,MAAM,EACJ,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,eAAe,GAChB,GAAG,kBAAkB;IAEtB,MAAM,SAAS,GAAG,IAAI,GAAG,aAAa,GAAG,eAAe;AAExD,IAAA,OAAO,IAAI,CAAA;;eAEE,MAAM,CAAA;;AAEC,oBAAA,EAAA,IAAI,GAAG,MAAM,GAAG,OAAO;sBACvB,SAAS,CAAC,OAAO,CAAC;kBACtB,QAAQ;eACX,iBAAiB;;AAEX,mBAAA,EAAA,MAAM,mCAAmC,SAAS,CAAA;qBAClD,MAAM,CAAA;UACjB,UAAU,CAAC,aAAa,CAAC;;;GAGhC;AACH;;;;"}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import CDSAIChatCodeSnippetCard from "../components/code-snippet/src/code-snippet-card.js";
3
- declare const CodeSnippetCard: React.ForwardRefExoticComponent<Omit<Record<string, unknown>, "ref"> & React.RefAttributes<CDSAIChatCodeSnippetCard>>;
4
- export default CodeSnippetCard;