@carbon/ai-chat-components 1.0.0 → 1.1.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +2 -2
  2. package/custom-elements.json +873 -684
  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
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import './src/carousel.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2026
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { LitElement } from "lit";
10
+ import "@carbon/web-components/es/components/icon-button/icon-button.js";
11
+ /**
12
+ * Carousel component
13
+ *
14
+ * @element cds-aichat-carousel
15
+ * @fires cds-aichat-carousel-onchange custom event for when the carousel changes
16
+ * @slot body The body
17
+ */
18
+ declare class CDSAICarousel extends LitElement {
19
+ /**
20
+ * Text for the next button
21
+ */
22
+ nextBtnText?: string;
23
+ /**
24
+ * Text for the previous button
25
+ */
26
+ previousBtnText?: string;
27
+ private container?;
28
+ private carousel?;
29
+ private _currentIndex;
30
+ private _lastIndex;
31
+ private _handlePrev;
32
+ private _handleNext;
33
+ private _dispatchChange;
34
+ firstUpdated(): void;
35
+ render(): import("lit-html").TemplateResult<1>;
36
+ static get eventOnChange(): string;
37
+ static styles: any;
38
+ }
39
+ export default CDSAICarousel;
@@ -0,0 +1,130 @@
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 styles from './carousel.scss.js';
11
+ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
12
+ import prefix from '../../../globals/settings.js';
13
+ import { initCarousel } from '@carbon/utilities';
14
+ import { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';
15
+ import { property, state } from 'lit/decorators.js';
16
+ import '@carbon/web-components/es/components/icon-button/icon-button.js';
17
+ import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
18
+ import { ChevronLeft16, ChevronRight16 } from '@carbon/icons';
19
+
20
+ /**
21
+ * @license
22
+ *
23
+ * Copyright IBM Corp. 2026
24
+ *
25
+ * This source code is licensed under the Apache-2.0 license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ const blockClass = `${prefix}-carousel`;
29
+ /**
30
+ * Carousel component
31
+ *
32
+ * @element cds-aichat-carousel
33
+ * @fires cds-aichat-carousel-onchange custom event for when the carousel changes
34
+ * @slot body The body
35
+ */
36
+ let CDSAICarousel = class CDSAICarousel extends LitElement {
37
+ constructor() {
38
+ super(...arguments);
39
+ this._currentIndex = 0;
40
+ this._lastIndex = 0;
41
+ }
42
+ _handlePrev() {
43
+ this.carousel?.prev();
44
+ }
45
+ _handleNext() {
46
+ this.carousel?.next();
47
+ }
48
+ _dispatchChange(data) {
49
+ const init = {
50
+ detail: data,
51
+ bubbles: true,
52
+ composed: true,
53
+ };
54
+ this.dispatchEvent(new CustomEvent(this.constructor.eventOnChange, init));
55
+ }
56
+ firstUpdated() {
57
+ if (this.container) {
58
+ const config = {
59
+ onViewChangeEnd: (endData) => {
60
+ this._currentIndex = endData.currentIndex;
61
+ this._dispatchChange(endData);
62
+ },
63
+ };
64
+ this.carousel = initCarousel(this.container[0], config);
65
+ this._lastIndex = Object.keys(this.carousel.allViews).length - 1;
66
+ }
67
+ }
68
+ render() {
69
+ return html `
70
+ <div class=${blockClass}>
71
+ <slot></slot>
72
+ <div class="${blockClass}__controls">
73
+ <cds-icon-button
74
+ class="${blockClass}__previous-btn"
75
+ @click=${this._handlePrev}
76
+ kind="ghost"
77
+ size="sm"
78
+ align="bottom-start"
79
+ enter-delay-ms="0"
80
+ leave-delay-ms="0"
81
+ >
82
+ ${iconLoader(ChevronLeft16, { slot: "icon" })}
83
+ <span slot="tooltip-content">${this.previousBtnText}</span>
84
+ </cds-icon-button>
85
+ <span class="${blockClass}__indicator"
86
+ >${this._currentIndex + 1} / ${this._lastIndex + 1}</span
87
+ >
88
+ <cds-icon-button
89
+ class="${blockClass}__next-btn"
90
+ @click=${this._handleNext}
91
+ kind="ghost"
92
+ size="sm"
93
+ align="bottom-start"
94
+ enter-delay-ms="0"
95
+ leave-delay-ms="0"
96
+ >
97
+ ${iconLoader(ChevronRight16, { slot: "icon" })}
98
+ <span slot="tooltip-content">${this.nextBtnText}</span>
99
+ </cds-icon-button>
100
+ </div>
101
+ </div>
102
+ `;
103
+ }
104
+ static get eventOnChange() {
105
+ return `${blockClass}-onchange`;
106
+ }
107
+ };
108
+ CDSAICarousel.styles = styles;
109
+ __decorate([
110
+ property({ type: String })
111
+ ], CDSAICarousel.prototype, "nextBtnText", void 0);
112
+ __decorate([
113
+ property({ type: String })
114
+ ], CDSAICarousel.prototype, "previousBtnText", void 0);
115
+ __decorate([
116
+ queryAssignedElements({ flatten: true })
117
+ ], CDSAICarousel.prototype, "container", void 0);
118
+ __decorate([
119
+ state()
120
+ ], CDSAICarousel.prototype, "_currentIndex", void 0);
121
+ __decorate([
122
+ state()
123
+ ], CDSAICarousel.prototype, "_lastIndex", void 0);
124
+ CDSAICarousel = __decorate([
125
+ carbonElement(blockClass)
126
+ ], CDSAICarousel);
127
+ var CDSAICarousel_default = CDSAICarousel;
128
+
129
+ export { CDSAICarousel_default as default };
130
+ //# sourceMappingURL=carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.js","sources":["../../../../src/components/carousel/src/carousel.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAkBH,MAAM,UAAU,GAAG,CAAA,EAAG,MAAM,WAAW;AAEvC;;;;;;AAMG;AAEH,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU,CAAA;AAAtC,IAAA,WAAA,GAAA;;QAmBU,IAAA,CAAA,aAAa,GAAG,CAAC;QAGjB,IAAA,CAAA,UAAU,GAAG,CAAC;IA+ExB;IA7EU,WAAW,GAAA;AACjB,QAAA,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE;IACvB;IAEQ,WAAW,GAAA;AACjB,QAAA,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE;IACvB;AAEQ,IAAA,eAAe,CAAC,IAAsB,EAAA;AAC5C,QAAA,MAAM,IAAI,GAAG;AACX,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,QAAQ,EAAE,IAAI;SACf;AACD,QAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CACZ,IAAI,CAAC,WAAoC,CAAC,aAAa,EACxD,IAAI,CACL,CACF;IACH;IAEA,YAAY,GAAA;AACV,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE;AAClB,YAAA,MAAM,MAAM,GAAW;AACrB,gBAAA,eAAe,EAAE,CAAC,OAAO,KAAI;AAC3B,oBAAA,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY;AACzC,oBAAA,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;gBAC/B,CAAC;aACF;AACD,YAAA,IAAI,CAAC,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EAAE;AACD,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAK/B,UAAA,CAAA;AADP,IAAA,KAAK;AACoB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAGlB,UAAA,CAAA;AADP,IAAA,KAAK;AACiB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAtBnB,aAAa,GAAA,UAAA,CAAA;IADlB,aAAa,CAAC,UAAU;AACnB,CAAA,EAAA,aAAa,CAqGlB;AAED,4BAAe,aAAa;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { css } from 'lit';
9
+
10
+ var styles = css([".cds-aichat-carousel__controls{align-items:center;display:flex;font-size:var(--cds-label-02-font-size,.875rem);font-weight:var(--cds-label-02-font-weight,400);gap:.5rem;inline-size:100%;justify-content:flex-end;letter-spacing:var(--cds-label-02-letter-spacing,.16px);line-height:var(--cds-label-02-line-height,1.28572)}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=carousel.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -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,M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