@carbon/ai-chat-components 1.0.0 → 1.1.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 (203) hide show
  1. package/README.md +2 -2
  2. package/custom-elements.json +198 -9
  3. package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  4. package/es/components/card/src/card-footer.scss.js +1 -1
  5. package/es/components/card/src/card-steps.scss.js +1 -1
  6. package/es/components/card/src/card.scss.js +1 -1
  7. package/es/components/carousel/index.d.ts +9 -0
  8. package/es/components/carousel/index.js +9 -0
  9. package/es/components/carousel/index.js.map +1 -0
  10. package/es/components/carousel/src/carousel.d.ts +39 -0
  11. package/es/components/carousel/src/carousel.js +130 -0
  12. package/es/components/carousel/src/carousel.js.map +1 -0
  13. package/es/components/carousel/src/carousel.scss.js +13 -0
  14. package/es/components/carousel/src/carousel.scss.js.map +1 -0
  15. package/es/components/chat-button/src/chat-button.js +9 -4
  16. package/es/components/chat-button/src/chat-button.js.map +1 -1
  17. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  18. package/es/components/chat-history/src/history-panel-item-input.d.ts +0 -705
  19. package/es/components/chat-history/src/history-panel-item.d.ts +0 -699
  20. package/es/components/chat-history/src/history-search-item.d.ts +0 -699
  21. package/es/components/chat-shell/src/shell.scss.js +1 -1
  22. package/es/components/chat-shell/src/slot-observer.js +3 -3
  23. package/es/components/chat-shell/src/slot-observer.js.map +1 -1
  24. package/es/components/code-snippet/src/code-snippet.d.ts +0 -353
  25. package/es/components/markdown/src/markdown.js +1 -1
  26. package/es/components/markdown/src/markdown.js.map +1 -1
  27. package/es/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  28. package/es/components/shared/media-utils/script-loader.js +3 -2
  29. package/es/components/shared/media-utils/script-loader.js.map +1 -1
  30. package/es/components/toolbar/src/toolbar.d.ts +5 -0
  31. package/es/components/toolbar/src/toolbar.js +38 -0
  32. package/es/components/toolbar/src/toolbar.js.map +1 -1
  33. package/es/components/video-player/src/providers/native-video-provider.js +2 -1
  34. package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
  35. package/es-custom/components/audio-player/src/audio-player.d.ts +5 -5
  36. package/es-custom/components/audio-player/src/audio-player.js +9 -9
  37. package/es-custom/components/audio-player/src/audio-player.scss.js +1 -1
  38. package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  39. package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
  40. package/es-custom/components/audio-player/src/transcript.js +5 -5
  41. package/es-custom/components/audio-player/src/transcript.scss.js +1 -1
  42. package/es-custom/components/card/src/card-footer.d.ts +1 -1
  43. package/es-custom/components/card/src/card-footer.js +2 -2
  44. package/es-custom/components/card/src/card-footer.scss.js +1 -1
  45. package/es-custom/components/card/src/card-steps.d.ts +1 -1
  46. package/es-custom/components/card/src/card-steps.js +1 -1
  47. package/es-custom/components/card/src/card-steps.scss.js +1 -1
  48. package/es-custom/components/card/src/card.d.ts +1 -1
  49. package/es-custom/components/card/src/card.js +1 -1
  50. package/es-custom/components/card/src/card.scss.js +1 -1
  51. package/es-custom/components/carousel/index.d.ts +9 -0
  52. package/es-custom/components/carousel/index.js +9 -0
  53. package/es-custom/components/carousel/index.js.map +1 -0
  54. package/es-custom/components/carousel/src/carousel.d.ts +39 -0
  55. package/es-custom/components/carousel/src/carousel.js +130 -0
  56. package/es-custom/components/carousel/src/carousel.js.map +1 -0
  57. package/es-custom/components/carousel/src/carousel.scss.js +13 -0
  58. package/es-custom/components/carousel/src/carousel.scss.js.map +1 -0
  59. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +2 -2
  60. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +2 -2
  61. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js +1 -1
  62. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
  63. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +1 -1
  64. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +1 -1
  65. package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +2 -2
  66. package/es-custom/components/chain-of-thought/src/chain-of-thought.js +1 -1
  67. package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
  68. package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
  69. package/es-custom/components/chain-of-thought/src/tool-call-data.js +1 -1
  70. package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js +1 -1
  71. package/es-custom/components/chat-button/src/chat-button.d.ts +2 -2
  72. package/es-custom/components/chat-button/src/chat-button.js +10 -5
  73. package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
  74. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  75. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  76. package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
  77. package/es-custom/components/chat-history/src/history-content.js +1 -1
  78. package/es-custom/components/chat-history/src/history-delete-panel.d.ts +1 -1
  79. package/es-custom/components/chat-history/src/history-delete-panel.js +6 -6
  80. package/es-custom/components/chat-history/src/history-header.d.ts +1 -1
  81. package/es-custom/components/chat-history/src/history-header.js +1 -1
  82. package/es-custom/components/chat-history/src/history-loading.d.ts +1 -1
  83. package/es-custom/components/chat-history/src/history-loading.js +1 -1
  84. package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +1 -706
  85. package/es-custom/components/chat-history/src/history-panel-item-input.js +1 -1
  86. package/es-custom/components/chat-history/src/history-panel-item.d.ts +1 -700
  87. package/es-custom/components/chat-history/src/history-panel-item.js +3 -3
  88. package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
  89. package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
  90. package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
  91. package/es-custom/components/chat-history/src/history-panel-menu.js +1 -1
  92. package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
  93. package/es-custom/components/chat-history/src/history-panel.js +1 -1
  94. package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -700
  95. package/es-custom/components/chat-history/src/history-search-item.js +1 -1
  96. package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
  97. package/es-custom/components/chat-history/src/history-shell.js +1 -1
  98. package/es-custom/components/chat-history/src/history-toolbar.d.ts +1 -1
  99. package/es-custom/components/chat-history/src/history-toolbar.js +1 -1
  100. package/es-custom/components/chat-shell/src/chat-header.d.ts +2 -2
  101. package/es-custom/components/chat-shell/src/chat-header.js +6 -6
  102. package/es-custom/components/chat-shell/src/chat-header.scss.js +1 -1
  103. package/es-custom/components/chat-shell/src/panel-manager.js +2 -2
  104. package/es-custom/components/chat-shell/src/shell.js +4 -4
  105. package/es-custom/components/chat-shell/src/shell.scss.js +1 -1
  106. package/es-custom/components/chat-shell/src/slot-observer.js +3 -3
  107. package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
  108. package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
  109. package/es-custom/components/chat-shell/src/workspace-manager.js +1 -1
  110. package/es-custom/components/code-snippet/src/code-snippet.d.ts +2 -355
  111. package/es-custom/components/code-snippet/src/code-snippet.js +3 -3
  112. package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
  113. package/es-custom/components/feedback/src/feedback-buttons.d.ts +2 -2
  114. package/es-custom/components/feedback/src/feedback-buttons.js +1 -1
  115. package/es-custom/components/feedback/src/feedback-buttons.scss.js +1 -1
  116. package/es-custom/components/feedback/src/feedback.d.ts +2 -2
  117. package/es-custom/components/feedback/src/feedback.js +3 -3
  118. package/es-custom/components/feedback/src/feedback.scss.js +1 -1
  119. package/es-custom/components/markdown/src/markdown-renderer.js +7 -7
  120. package/es-custom/components/markdown/src/markdown.d.ts +2 -2
  121. package/es-custom/components/markdown/src/markdown.js +3 -3
  122. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  123. package/es-custom/components/markdown/src/markdown.scss.js +1 -1
  124. package/es-custom/components/markdown/src/markdown.template.js +1 -1
  125. package/es-custom/components/markdown/src/utils/table-helpers.d.ts +1 -1
  126. package/es-custom/components/markdown/src/utils/table-helpers.js +1 -1
  127. package/es-custom/components/processing/src/processing.d.ts +2 -2
  128. package/es-custom/components/processing/src/processing.js +1 -1
  129. package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
  130. package/es-custom/components/reasoning-steps/src/reasoning-step.js +1 -1
  131. package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  132. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
  133. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +1 -1
  134. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
  135. package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
  136. package/es-custom/components/reasoning-steps/src/reasoning-steps.js +1 -1
  137. package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js +1 -1
  138. package/es-custom/components/shared/media-utils/script-loader.js +3 -2
  139. package/es-custom/components/shared/media-utils/script-loader.js.map +1 -1
  140. package/es-custom/components/table/src/table.d.ts +2 -2
  141. package/es-custom/components/table/src/table.js +1 -1
  142. package/es-custom/components/toolbar/src/toolbar.d.ts +6 -1
  143. package/es-custom/components/toolbar/src/toolbar.js +41 -3
  144. package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
  145. package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
  146. package/es-custom/components/truncated-text/src/truncated-text.d.ts +3 -3
  147. package/es-custom/components/truncated-text/src/truncated-text.js +2 -2
  148. package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
  149. package/es-custom/components/video-player/src/providers/native-video-provider.js +2 -1
  150. package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
  151. package/es-custom/components/video-player/src/video-player.d.ts +5 -5
  152. package/es-custom/components/video-player/src/video-player.js +9 -9
  153. package/es-custom/components/video-player/src/video-player.scss.js +1 -1
  154. package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
  155. package/es-custom/components/workspace-shell/src/workspace-shell-body.js +1 -1
  156. package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +2 -2
  157. package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +2 -2
  158. package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
  159. package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +1 -1
  160. package/es-custom/components/workspace-shell/src/workspace-shell-header.js +5 -5
  161. package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
  162. package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
  163. package/es-custom/components/workspace-shell/src/workspace-shell.js +1 -1
  164. package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  165. package/es-custom/globals/settings.d.ts +1 -1
  166. package/es-custom/globals/settings.js +1 -1
  167. package/es-custom/react/audio-player.js +5 -5
  168. package/es-custom/react/card.js +4 -4
  169. package/es-custom/react/chain-of-thought-step.js +1 -1
  170. package/es-custom/react/chain-of-thought-toggle.js +1 -1
  171. package/es-custom/react/chain-of-thought.js +1 -1
  172. package/es-custom/react/chat-button.js +1 -1
  173. package/es-custom/react/chat-header.js +1 -1
  174. package/es-custom/react/chat-shell.js +1 -1
  175. package/es-custom/react/code-snippet.js +1 -1
  176. package/es-custom/react/feedback-buttons.js +1 -1
  177. package/es-custom/react/feedback.js +1 -1
  178. package/es-custom/react/history/history-content.js +1 -1
  179. package/es-custom/react/history/history-delete-panel.js +1 -1
  180. package/es-custom/react/history/history-header.js +1 -1
  181. package/es-custom/react/history/history-loading.js +1 -1
  182. package/es-custom/react/history/history-panel-item-input.js +1 -1
  183. package/es-custom/react/history/history-panel-item.js +1 -1
  184. package/es-custom/react/history/history-panel-items.js +1 -1
  185. package/es-custom/react/history/history-panel-menu.js +1 -1
  186. package/es-custom/react/history/history-panel.js +1 -1
  187. package/es-custom/react/history/history-search-item.js +1 -1
  188. package/es-custom/react/history/history-shell.js +1 -1
  189. package/es-custom/react/history/history-toolbar.js +1 -1
  190. package/es-custom/react/markdown.js +1 -1
  191. package/es-custom/react/panel.js +1 -1
  192. package/es-custom/react/processing.js +1 -1
  193. package/es-custom/react/reasoning-step.js +1 -1
  194. package/es-custom/react/reasoning-steps-toggle.js +1 -1
  195. package/es-custom/react/reasoning-steps.js +1 -1
  196. package/es-custom/react/tool-call-data.js +1 -1
  197. package/es-custom/react/toolbar.js +1 -1
  198. package/es-custom/react/transcript.js +2 -2
  199. package/es-custom/react/video-player.js +5 -5
  200. package/es-custom/react/workspace-shell.js +5 -5
  201. package/package.json +10 -9
  202. package/scss/_utilities.scss +1 -0
  203. package/telemetry.yml +4 -0
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host{background:var(--cds-layer-02,var(--cds-layer-02,#fff));display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host([data-step-parity=even]){background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0))}.cds-aichat--chain-of-thought-accordion-item-content{background:var(--cds-layer-01,#f4f4f4);color:var(--cds-text-primary,#161616);display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-item{padding-block:1rem;padding-inline:2rem 1rem}.cds-aichat--chain-of-thought-accordion-item-content[hidden]{display:none;max-block-size:0;opacity:0;overflow:hidden;padding-block:0;padding-inline:0}.cds-aichat--chain-of-thought-accordion-item-header-chevron{color:var(--cds-text-primary,#161616);display:flex;flex:0 1 2rem;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:none}}.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-open] svg{transform:rotate(-90deg)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-disabled] svg{visibility:hidden}.cds-aichat--chain-of-thought-accordion-item-static{align-items:center;background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0));block-size:2rem;color:var(--cds-text-primary,#161616);display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header *,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :after,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :before{box-sizing:inherit}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header::-moz-focus-inner{border:0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{align-items:center;background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0));block-size:2rem;display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);padding:.5rem 0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header[disabled]{cursor:default}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus-visible{box-shadow:0 -1px 0 0 var(--cds-focus,#0f62fe),inset 0 1px 0 0 var(--cds-focus,#0f62fe),inset 2px 0 0 0 var(--cds-focus,#0f62fe),0 1px 0 0 var(--cds-focus,#0f62fe),inset 0 -1px 0 0 var(--cds-focus,#0f62fe),inset -2px 0 0 0 var(--cds-focus,#0f62fe);outline:none;position:relative;z-index:2}:host([data-step-parity=odd]) .cds-aichat--chain-of-thought-accordion-item-static,:host([data-step-parity=odd]) button.cds-aichat--chain-of-thought-accordion-item-header{background:var(--cds-layer-02,var(--cds-layer-02,#fff))}.cds-aichat--chain-of-thought-accordion-item-header-title{color:var(--cds-text-primary,#161616);flex:1 1;margin-inline-end:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cds-aichat--chain-of-thought-accordion-item-header-status{align-items:center;display:flex;flex:0 0 1.5rem;justify-content:center}.cds-aichat--chain-of-thought-accordion-item-header-status--failure{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--failure svg{fill:var(--cds-support-error,#da1e28)}.cds-aichat--chain-of-thought-accordion-item-header-status--success{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--success svg{fill:var(--cds-support-success,#24a148)}"]);
10
+ var styles = css([":host{background:var(--cds-layer-02,var(--cds-layer-02,#fff));display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host([data-step-parity=even]){background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0))}.cds-custom-aichat--chain-of-thought-accordion-item-content{background:var(--cds-layer-01,#f4f4f4);color:var(--cds-text-primary,#161616);display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-custom-aichat--chain-of-thought-item{padding-block:1rem;padding-inline:2rem 1rem}.cds-custom-aichat--chain-of-thought-accordion-item-content[hidden]{display:none;max-block-size:0;opacity:0;overflow:hidden;padding-block:0;padding-inline:0}.cds-custom-aichat--chain-of-thought-accordion-item-header-chevron{color:var(--cds-text-primary,#161616);display:flex;flex:0 1 2rem;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.cds-custom-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:none}}.cds-custom-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-custom-aichat--chain-of-thought-accordion-item-header-chevron[data-open] svg{transform:rotate(-90deg)}.cds-custom-aichat--chain-of-thought-accordion-item-header-chevron[data-disabled] svg{visibility:hidden}.cds-custom-aichat--chain-of-thought-accordion-item-static{align-items:center;background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0));block-size:2rem;color:var(--cds-text-primary,#161616);display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header *,.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header :after,.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header :before{box-sizing:inherit}.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header::-moz-focus-inner{border:0}.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header{align-items:center;background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0));block-size:2rem;display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);padding:.5rem 0}.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header[disabled]{cursor:default}.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header:focus,.cds-custom-aichat--chain-of-thought-accordion-item button.cds-custom-aichat--chain-of-thought-accordion-item-header:focus-visible{box-shadow:0 -1px 0 0 var(--cds-focus,#0f62fe),inset 0 1px 0 0 var(--cds-focus,#0f62fe),inset 2px 0 0 0 var(--cds-focus,#0f62fe),0 1px 0 0 var(--cds-focus,#0f62fe),inset 0 -1px 0 0 var(--cds-focus,#0f62fe),inset -2px 0 0 0 var(--cds-focus,#0f62fe);outline:none;position:relative;z-index:2}:host([data-step-parity=odd]) .cds-custom-aichat--chain-of-thought-accordion-item-static,:host([data-step-parity=odd]) button.cds-custom-aichat--chain-of-thought-accordion-item-header{background:var(--cds-layer-02,var(--cds-layer-02,#fff))}.cds-custom-aichat--chain-of-thought-accordion-item-header-title{color:var(--cds-text-primary,#161616);flex:1 1;margin-inline-end:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cds-custom-aichat--chain-of-thought-accordion-item-header-status{align-items:center;display:flex;flex:0 0 1.5rem;justify-content:center}.cds-custom-aichat--chain-of-thought-accordion-item-header-status--failure{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-custom-aichat--chain-of-thought-accordion-item-header-status--failure svg{fill:var(--cds-support-error,#da1e28)}.cds-custom-aichat--chain-of-thought-accordion-item-header-status--success{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-custom-aichat--chain-of-thought-accordion-item-header-status--success svg{fill:var(--cds-support-success,#24a148)}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=chain-of-thought-step.scss.js.map
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from "lit";
2
2
  /**
3
3
  * Chain of thought toggle component
4
- * @element cds-aichat-chain-of-thought-toggle
4
+ * @element cds-custom-aichat-chain-of-thought-toggle
5
5
  */
6
6
  declare class CDSAIChatChainOfThoughtToggle extends LitElement {
7
7
  static styles: any[];
@@ -30,7 +30,7 @@ declare class CDSAIChatChainOfThoughtToggle extends LitElement {
30
30
  }
31
31
  declare global {
32
32
  interface HTMLElementTagNameMap {
33
- "cds-aichat-chain-of-thought-toggle": CDSAIChatChainOfThoughtToggle;
33
+ "cds-custom-aichat-chain-of-thought-toggle": CDSAIChatChainOfThoughtToggle;
34
34
  }
35
35
  }
36
36
  export { CDSAIChatChainOfThoughtToggle };
@@ -25,7 +25,7 @@ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
25
25
  */
26
26
  /**
27
27
  * Chain of thought toggle component
28
- * @element cds-aichat-chain-of-thought-toggle
28
+ * @element cds-custom-aichat-chain-of-thought-toggle
29
29
  */
30
30
  let CDSAIChatChainOfThoughtToggle = class CDSAIChatChainOfThoughtToggle extends LitElement {
31
31
  constructor() {
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host{display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);max-inline-size:100%}:host([open]) .cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(0deg)}.cds-aichat--chain-of-thought-button-chevron{display:flex;flex-basis:1.5rem;margin-inline-end:2px}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg);transition:none}}.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}button.cds-aichat--chain-of-thought-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}button.cds-aichat--chain-of-thought-button *,button.cds-aichat--chain-of-thought-button :after,button.cds-aichat--chain-of-thought-button :before{box-sizing:inherit}button.cds-aichat--chain-of-thought-button::-moz-focus-inner{border:0}button.cds-aichat--chain-of-thought-button{align-items:center;color:var(--cds-text-primary,#161616);display:inline-flex;flex:0 0 auto;font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);inline-size:-moz-max-content;inline-size:max-content;letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857);max-inline-size:100%;min-inline-size:0}.cds-aichat--chain-of-thought-button-label{flex:0 1 auto;min-inline-size:-moz-fit-content;min-inline-size:fit-content;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.cds-aichat--chain-of-thought-button:focus,button.cds-aichat--chain-of-thought-button:focus-visible{outline:2px solid var(--cds-focus,#0f62fe)}"]);
10
+ var styles = css([":host{display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);max-inline-size:100%}:host([open]) .cds-custom-aichat--chain-of-thought-button-chevron svg{transform:rotate(0deg)}.cds-custom-aichat--chain-of-thought-button-chevron{display:flex;flex-basis:1.5rem;margin-inline-end:2px}@media screen and (prefers-reduced-motion:reduce){.cds-custom-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg);transition:none}}.cds-custom-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}button.cds-custom-aichat--chain-of-thought-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}button.cds-custom-aichat--chain-of-thought-button *,button.cds-custom-aichat--chain-of-thought-button :after,button.cds-custom-aichat--chain-of-thought-button :before{box-sizing:inherit}button.cds-custom-aichat--chain-of-thought-button::-moz-focus-inner{border:0}button.cds-custom-aichat--chain-of-thought-button{align-items:center;color:var(--cds-text-primary,#161616);display:inline-flex;flex:0 0 auto;font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);inline-size:-moz-max-content;inline-size:max-content;letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857);max-inline-size:100%;min-inline-size:0}.cds-custom-aichat--chain-of-thought-button-label{flex:0 1 auto;min-inline-size:-moz-fit-content;min-inline-size:fit-content;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.cds-custom-aichat--chain-of-thought-button:focus,button.cds-custom-aichat--chain-of-thought-button:focus-visible{outline:2px solid var(--cds-focus,#0f62fe)}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=chain-of-thought-toggle.scss.js.map
@@ -3,7 +3,7 @@ import type { ChainOfThoughtOnToggle } from "../defs.js";
3
3
  import type { CDSAIChatChainOfThoughtStep } from "./chain-of-thought-step.js";
4
4
  /**
5
5
  * Chain of thought container component
6
- * @element cds-aichat-chain-of-thought
6
+ * @element cds-custom-aichat-chain-of-thought
7
7
  */
8
8
  declare class CDSAIChatChainOfThought extends LitElement {
9
9
  static styles: any[];
@@ -38,7 +38,7 @@ declare class CDSAIChatChainOfThought extends LitElement {
38
38
  }
39
39
  declare global {
40
40
  interface HTMLElementTagNameMap {
41
- "cds-aichat-chain-of-thought": CDSAIChatChainOfThought;
41
+ "cds-custom-aichat-chain-of-thought": CDSAIChatChainOfThought;
42
42
  }
43
43
  }
44
44
  export { CDSAIChatChainOfThought };
@@ -25,7 +25,7 @@ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
25
25
  const stepSelector = `${prefix}-chain-of-thought-step`;
26
26
  /**
27
27
  * Chain of thought container component
28
- * @element cds-aichat-chain-of-thought
28
+ * @element cds-custom-aichat-chain-of-thought
29
29
  */
30
30
  let CDSAIChatChainOfThought = class CDSAIChatChainOfThought extends LitElement {
31
31
  constructor() {
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host{display:block}:host([open]) .cds-aichat--chain-of-thought-content{display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible}.cds-aichat--chain-of-thought-content{background-color:var(--cds-layer-01,#f4f4f4);border:1px solid var(--cds-border-subtle-01,#c6c6c6);display:none;margin-block-start:.5rem;max-block-size:0;opacity:0;overflow:hidden;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}"]);
10
+ var styles = css([":host{display:block}:host([open]) .cds-custom-aichat--chain-of-thought-content{display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible}.cds-custom-aichat--chain-of-thought-content{background-color:var(--cds-layer-01,#f4f4f4);border:1px solid var(--cds-border-subtle-01,#c6c6c6);display:none;margin-block-start:.5rem;max-block-size:0;opacity:0;overflow:hidden;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=chain-of-thought.scss.js.map
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from "lit";
2
2
  /**
3
3
  * Tool call data component
4
- * @element cds-aichat-tool-call-data
4
+ * @element cds-custom-aichat-tool-call-data
5
5
  */
6
6
  declare class CDSAIChatToolCallData extends LitElement {
7
7
  static styles: any[];
@@ -30,7 +30,7 @@ declare class CDSAIChatToolCallData extends LitElement {
30
30
  }
31
31
  declare global {
32
32
  interface HTMLElementTagNameMap {
33
- "cds-aichat-tool-call-data": CDSAIChatToolCallData;
33
+ "cds-custom-aichat-tool-call-data": CDSAIChatToolCallData;
34
34
  }
35
35
  }
36
36
  export { CDSAIChatToolCallData };
@@ -24,7 +24,7 @@ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
24
24
  const baseClass = `${prefix}--tool-call-data`;
25
25
  /**
26
26
  * Tool call data component
27
- * @element cds-aichat-tool-call-data
27
+ * @element cds-custom-aichat-tool-call-data
28
28
  */
29
29
  let CDSAIChatToolCallData = class CDSAIChatToolCallData extends LitElement {
30
30
  constructor() {
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host{display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}.cds-aichat--tool-call-data{padding-block-end:1rem}.cds-aichat--tool-call-data:last-child{padding-block-end:0}.cds-aichat--tool-call-data-label{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}"]);
10
+ var styles = css([":host{display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}.cds-custom-aichat--tool-call-data{padding-block-end:1rem}.cds-custom-aichat--tool-call-data:last-child{padding-block-end:0}.cds-custom-aichat--tool-call-data-label{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=tool-call-data.scss.js.map
@@ -15,7 +15,7 @@ type ChatButtonSize = CHAT_BUTTON_SIZE.SMALL | CHAT_BUTTON_SIZE.MEDIUM | CHAT_BU
15
15
  /**
16
16
  * Component extending the @carbon/web-components' button
17
17
  *
18
- * @element cds-aichat-button
18
+ * @element cds-custom-aichat-button
19
19
  */
20
20
  declare class CDSAIChatButton extends CDSButton {
21
21
  static styles: any[];
@@ -33,7 +33,7 @@ declare class CDSAIChatButton extends CDSButton {
33
33
  }
34
34
  declare global {
35
35
  interface HTMLElementTagNameMap {
36
- "cds-aichat-button": CDSAIChatButton;
36
+ "cds-custom-aichat-button": CDSAIChatButton;
37
37
  }
38
38
  }
39
39
  export { CDSAIChatButton };
@@ -26,7 +26,7 @@ import styles from './chat-button.scss.js';
26
26
  /**
27
27
  * Component extending the @carbon/web-components' button
28
28
  *
29
- * @element cds-aichat-button
29
+ * @element cds-custom-aichat-button
30
30
  */
31
31
  let CDSAIChatButton = class CDSAIChatButton extends CDSButton {
32
32
  constructor() {
@@ -45,14 +45,19 @@ let CDSAIChatButton = class CDSAIChatButton extends CDSButton {
45
45
  ];
46
46
  }
47
47
  willUpdate(changedProps) {
48
- if (changedProps.has("isQuickAction") || changedProps.has("size")) {
49
- this._normalizeButtonState();
48
+ if (changedProps.has("isQuickAction") ||
49
+ changedProps.has("size") ||
50
+ changedProps.has("kind")) {
51
+ this._normalizeButtonState(changedProps);
50
52
  }
51
53
  }
52
- _normalizeButtonState() {
54
+ _normalizeButtonState(changedProps) {
53
55
  if (this.isQuickAction) {
54
- this.kind = BUTTON_KIND.GHOST;
55
56
  this.size = CHAT_BUTTON_SIZE.SMALL;
57
+ // Only default to ghost when kind was not explicitly provided in this update.
58
+ if (!changedProps.has("kind")) {
59
+ this.kind = BUTTON_KIND.GHOST;
60
+ }
56
61
  return;
57
62
  }
58
63
  // Do not allow size larger than `lg`
@@ -1 +1 @@
1
- {"version":3,"file":"chat-button.js","sources":["../../../../src/components/chat-button/src/chat-button.ts"],"sourcesContent":[null],"names":["CHAT_BUTTON_KIND"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AA8BH;;;;AAIG;AAEH,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,SAAS,CAAA;AAAvC,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,KAAK;AASrB;;AAEG;AACc,QAAA,IAAA,CAAA,YAAY,GAAuB;AAClD,YAAA,gBAAgB,CAAC,KAAK;AACtB,YAAA,gBAAgB,CAAC,MAAM;AACvB,YAAA,gBAAgB,CAAC,KAAK;SACvB;IAyBH;AAvBY,IAAA,UAAU,CAAC,YAAkC,EAAA;AACrD,QAAA,IAAI,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YACjE,IAAI,CAAC,qBAAqB,EAAE;QAC9B;IACF;IAEQ,qBAAqB,GAAA;AAC3B,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACtB,YAAA,IAAI,CAAC,IAAI,GAAGA,WAAgB,CAAC,KAAK;AAClC,YAAA,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,KAAK;YAClC;QACF;;AAEA,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAwB,CAAC,EAAE;AAC9D,YAAA,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,KAAK;QACpC;AAEA,QAAA,IACE,CAAC,MAAM,CAAC,MAAM,CAACA,WAAgB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAwB,CAAC,EACxE;AACA,YAAA,IAAI,CAAC,IAAI,GAAGA,WAAgB,CAAC,OAAO;QACtC;IACF;;AA9CO,eAAA,CAAA,MAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC;AAMtC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE;AACnC,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAOd,UAAA,CAAA;IADP,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE;AACjB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAdzB,eAAe,GAAA,UAAA,CAAA;AADpB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CAAS;AAC3B,CAAA,EAAA,eAAe,CAgDpB;AASD,mBAAe,eAAe;;;;"}
1
+ {"version":3,"file":"chat-button.js","sources":["../../../../src/components/chat-button/src/chat-button.ts"],"sourcesContent":[null],"names":["CHAT_BUTTON_KIND"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AA8BH;;;;AAIG;AAEH,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,SAAS,CAAA;AAAvC,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,KAAK;AASrB;;AAEG;AACc,QAAA,IAAA,CAAA,YAAY,GAAuB;AAClD,YAAA,gBAAgB,CAAC,KAAK;AACtB,YAAA,gBAAgB,CAAC,MAAM;AACvB,YAAA,gBAAgB,CAAC,KAAK;SACvB;IAgCH;AA9BY,IAAA,UAAU,CAAC,YAAkC,EAAA;AACrD,QAAA,IACE,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC;AACjC,YAAA,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AACxB,YAAA,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EACxB;AACA,YAAA,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;QAC1C;IACF;AAEQ,IAAA,qBAAqB,CAAC,YAAkC,EAAA;AAC9D,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACtB,YAAA,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,KAAK;;YAElC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;AAC7B,gBAAA,IAAI,CAAC,IAAI,GAAGA,WAAgB,CAAC,KAAK;YACpC;YACA;QACF;;AAEA,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAwB,CAAC,EAAE;AAC9D,YAAA,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC,KAAK;QACpC;AAEA,QAAA,IACE,CAAC,MAAM,CAAC,MAAM,CAACA,WAAgB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAwB,CAAC,EACxE;AACA,YAAA,IAAI,CAAC,IAAI,GAAGA,WAAgB,CAAC,OAAO;QACtC;IACF;;AArDO,eAAA,CAAA,MAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC;AAMtC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE;AACnC,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAOd,UAAA,CAAA;IADP,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE;AACjB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAdzB,eAAe,GAAA,UAAA,CAAA;AADpB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CAAS;AAC3B,CAAA,EAAA,eAAe,CAuDpB;AASD,mBAAe,eAAe;;;;"}