@carbon/ai-chat-components 1.1.0 → 1.2.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.
- package/custom-elements.json +148 -775
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.js +5 -3
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/src/chat-history.scss.js +1 -1
- package/es/components/chat-history/src/history-delete-panel.d.ts +10 -0
- package/es/components/chat-history/src/history-delete-panel.js +39 -0
- package/es/components/chat-history/src/history-delete-panel.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.js +1 -1
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-shell.d.ts +7 -0
- package/es/components/chat-history/src/history-shell.js +43 -0
- package/es/components/chat-history/src/history-shell.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.js +1 -0
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -0
- package/es/components/code-snippet/src/codemirror/base-setup.js +4 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +30 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +80 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +2 -1
- package/es/components/code-snippet/src/codemirror/editor-manager.js +7 -2
- package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +2 -10
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +3 -3
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +171 -57
- package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +1 -1
- package/es/components/table/src/table.template.js +6 -6
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/globals/utils/focus-utils.d.ts +13 -1
- package/es/globals/utils/focus-utils.js +25 -1
- package/es/globals/utils/focus-utils.js.map +1 -1
- package/es/react/carousel.d.ts +4 -0
- package/es/react/carousel.js +31 -0
- package/es/react/carousel.js.map +1 -0
- package/es-custom/components/carousel/src/carousel.d.ts +1 -1
- package/es-custom/components/carousel/src/carousel.js +5 -3
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +10 -0
- package/es-custom/components/chat-history/src/history-delete-panel.js +39 -0
- package/es-custom/components/chat-history/src/history-delete-panel.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-shell.d.ts +7 -0
- package/es-custom/components/chat-history/src/history-shell.js +43 -0
- package/es-custom/components/chat-history/src/history-shell.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.js +1 -0
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -0
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +4 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +30 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +80 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +2 -1
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +7 -2
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +2 -10
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +3 -3
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +171 -57
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
- package/es-custom/components/table/src/table.template.d.ts +1 -1
- package/es-custom/components/table/src/table.template.js +6 -6
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/globals/utils/focus-utils.d.ts +13 -1
- package/es-custom/globals/utils/focus-utils.js +25 -1
- package/es-custom/globals/utils/focus-utils.js.map +1 -1
- package/es-custom/react/carousel.d.ts +4 -0
- package/es-custom/react/carousel.js +31 -0
- package/es-custom/react/carousel.js.map +1 -0
- package/package.json +4 -4
- package/telemetry.yml +2 -2
- package/es/components/markdown/src/plugins/markdownItAttrs/core.d.ts +0 -26
- package/es/components/markdown/src/plugins/markdownItAttrs/core.js +0 -330
- package/es/components/markdown/src/plugins/markdownItAttrs/core.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +0 -6
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +0 -63
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +0 -6
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +0 -43
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +0 -5
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +0 -55
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +0 -19
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +0 -210
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +0 -13
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +0 -156
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +0 -13
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +0 -216
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/types.d.ts +0 -34
- package/es/components/markdown/src/plugins/markdownItAttrs/types.js +0 -8
- package/es/components/markdown/src/plugins/markdownItAttrs/types.js.map +0 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +0 -25
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.js +0 -62
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.d.ts +0 -26
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.js +0 -330
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +0 -6
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +0 -63
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +0 -6
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +0 -43
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +0 -5
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +0 -55
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +0 -19
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +0 -210
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +0 -13
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +0 -156
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +0 -13
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +0 -216
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.d.ts +0 -34
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.js +0 -8
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +0 -25
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.js +0 -62
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.js.map +0 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([":host :host([data-rounded=\"\"]),:host [data-rounded=\"\"],:host-context([data-theme=g10]) :host([data-rounded=\"\"]),:host-context([data-theme=g10]) [data-rounded=\"\"],:host-context([data-theme=white]) :host([data-rounded=\"\"]),:host-context([data-theme=white]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=white]) [data-rounded=\"\"]::part(button),:host-context([data-theme=white]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(link){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child,:host-context([data-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([data-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=white]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]>:only-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top],:host-context([data-theme=g10]) :host([data-rounded=top]),:host-context([data-theme=g10]) [data-rounded=top],:host-context([data-theme=white]) :host([data-rounded=top]),:host-context([data-theme=white]) [data-rounded=top],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=white]) [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left],:host-context([data-theme=g10]) :host([data-rounded=top-left]),:host-context([data-theme=g10]) [data-rounded=top-left],:host-context([data-theme=white]) :host([data-rounded=top-left]),:host-context([data-theme=white]) [data-rounded=top-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right],:host-context([data-theme=g10]) :host([data-rounded=top-right]),:host-context([data-theme=g10]) [data-rounded=top-right],:host-context([data-theme=white]) :host([data-rounded=top-right]),:host-context([data-theme=white]) [data-rounded=top-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom],:host-context([data-theme=g10]) :host([data-rounded=bottom]),:host-context([data-theme=g10]) [data-rounded=bottom],:host-context([data-theme=white]) :host([data-rounded=bottom]),:host-context([data-theme=white]) [data-rounded=bottom],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left],:host-context([data-theme=g10]) :host([data-rounded=bottom-left]),:host-context([data-theme=g10]) [data-rounded=bottom-left],:host-context([data-theme=white]) :host([data-rounded=bottom-left]),:host-context([data-theme=white]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right],:host-context([data-theme=g10]) :host([data-rounded=bottom-right]),:host-context([data-theme=g10]) [data-rounded=bottom-right],:host-context([data-theme=white]) :host([data-rounded=bottom-right]),:host-context([data-theme=white]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host,:host-context([data-theme=g10]),:host-context([data-theme=white]),:host-context([storybook-carbon-theme=g10]),:host-context([storybook-carbon-theme=white]){--cds-syntax-angle-bracket:#697077;--cds-syntax-annotation:#007d79;--cds-syntax-arithmetic-operator:#343a3f;--cds-syntax-atom:#161616;--cds-syntax-attribute:#00539a;--cds-syntax-attribute-name:#00539a;--cds-syntax-attribute-value:#161616;--cds-syntax-bitwise-operator:#343a3f;--cds-syntax-block-comment:#198038;--cds-syntax-bool:#161616;--cds-syntax-brace:#343a3f;--cds-syntax-bracket:#343a3f;--cds-syntax-character:#161616;--cds-syntax-class-name:#007d79;--cds-syntax-color:#161616;--cds-syntax-comment:#198038;--cds-syntax-compare-operator:#343a3f;--cds-syntax-constant:#0f62fe;--cds-syntax-content:#161616;--cds-syntax-content-separator:#343a3f;--cds-syntax-control-keyword:#6929c4;--cds-syntax-control-operator:#6929c4;--cds-syntax-definition:#00539a;--cds-syntax-definition-keyword:#00539a;--cds-syntax-definition-operator:#00539a;--cds-syntax-deref-operator:#343a3f;--cds-syntax-doc-comment:#198038;--cds-syntax-doc-string:#161616;--cds-syntax-document-meta:#198038;--cds-syntax-emphasis:#161616;--cds-syntax-escape:#343a3f;--cds-syntax-float:#198038;--cds-syntax-function:#8e6a00;--cds-syntax-heading:#00539a;--cds-syntax-heading-1:#00539a;--cds-syntax-heading-2:#00539a;--cds-syntax-heading-3:#00539a;--cds-syntax-heading-4:#00539a;--cds-syntax-heading-5:#00539a;--cds-syntax-heading-6:#00539a;--cds-syntax-integer:#198038;--cds-syntax-invalid:#da1e28;--cds-syntax-keyword:#0f62fe;--cds-syntax-label-name:#0f62fe;--cds-syntax-line-comment:#198038;--cds-syntax-link:#0f62fe;--cds-syntax-list:#161616;--cds-syntax-literal:#161616;--cds-syntax-local:#0f62fe;--cds-syntax-logic-operator:#343a3f;--cds-syntax-macro-name:#161616;--cds-syntax-meta:#198038;--cds-syntax-modifier:#0f62fe;--cds-syntax-module-keyword:#6929c4;--cds-syntax-monospace:#161616;--cds-syntax-name:#0f62fe;--cds-syntax-namespace:#007d79;--cds-syntax-null:#161616;--cds-syntax-number:#198038;--cds-syntax-operator:#343a3f;--cds-syntax-operator-keyword:#0f62fe;--cds-syntax-paren:#343a3f;--cds-syntax-processing-instruction:#161616;--cds-syntax-property-name:#00539a;--cds-syntax-punctuation:#343a3f;--cds-syntax-quote:#198038;--cds-syntax-regexp:#6929c4;--cds-syntax-self:#007d79;--cds-syntax-separator:#343a3f;--cds-syntax-special:#0f62fe;--cds-syntax-special-string:#8a3ffc;--cds-syntax-square-bracket:#343a3f;--cds-syntax-standard:#0f62fe;--cds-syntax-strikethrough:#161616;--cds-syntax-string:#161616;--cds-syntax-strong:#161616;--cds-syntax-tag:#007d79;--cds-syntax-tag-name:#007d79;--cds-syntax-type:#007d79;--cds-syntax-type-name:#007d79;--cds-syntax-type-operator:#007d79;--cds-syntax-unit:#198038;--cds-syntax-update-operator:#343a3f;--cds-syntax-url:#343a3f;--cds-syntax-variable:#0f62fe;--cds-syntax-variable-name:#0f62fe}:host(.cds-custom-aichat--snippet-container--fill-mode){block-size:100%}.cds-custom-aichat--snippet{background:var(--cds-background,#fff);border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);display:block;font-family:inherit;max-inline-size:100%;padding:0}.cds-custom-aichat--snippet code{font-family:var(--cds-code-01-font-family,\"IBM Plex Mono\",system-ui,-apple-system,BlinkMacSystemFont,\".SFNSText-Regular\",monospace);font-size:var(--cds-code-01-font-size,.75rem);font-weight:var(--cds-code-01-font-weight,400);letter-spacing:var(--cds-code-01-letter-spacing,.32px);line-height:var(--cds-code-01-line-height,1.33333)}:host(.cds-custom-aichat--snippet-container--fill-mode) .cds-custom-aichat--snippet{block-size:100%;display:flex;flex-direction:column}:host-context([data-theme=g100]),:host-context([data-theme=g90]),:host-context([storybook-carbon-theme=g100]),:host-context([storybook-carbon-theme=g90]){--cds-syntax-angle-bracket:#8d8d8d;--cds-syntax-annotation:#08bdba;--cds-syntax-arithmetic-operator:#e0e0e0;--cds-syntax-atom:#f4f4f4;--cds-syntax-attribute:#33b1ff;--cds-syntax-attribute-name:#33b1ff;--cds-syntax-attribute-value:#f4f4f4;--cds-syntax-bitwise-operator:#e0e0e0;--cds-syntax-block-comment:#42be65;--cds-syntax-bool:#f4f4f4;--cds-syntax-brace:#e0e0e0;--cds-syntax-bracket:#e0e0e0;--cds-syntax-character:#f4f4f4;--cds-syntax-class-name:#3ddbd9;--cds-syntax-color:#f4f4f4;--cds-syntax-comment:#42be65;--cds-syntax-compare-operator:#e0e0e0;--cds-syntax-constant:#4589ff;--cds-syntax-content:#f4f4f4;--cds-syntax-content-separator:#e0e0e0;--cds-syntax-control-keyword:#be95ff;--cds-syntax-control-operator:#be95ff;--cds-syntax-definition:#33b1ff;--cds-syntax-definition-keyword:#33b1ff;--cds-syntax-definition-operator:#33b1ff;--cds-syntax-deref-operator:#e0e0e0;--cds-syntax-doc-comment:#42be65;--cds-syntax-doc-string:#f4f4f4;--cds-syntax-document-meta:#42be65;--cds-syntax-emphasis:#f4f4f4;--cds-syntax-escape:#e0e0e0;--cds-syntax-float:#6fdc8c;--cds-syntax-function:#f1c21b;--cds-syntax-heading:#33b1ff;--cds-syntax-heading-1:#33b1ff;--cds-syntax-heading-2:#33b1ff;--cds-syntax-heading-3:#33b1ff;--cds-syntax-heading-4:#33b1ff;--cds-syntax-heading-5:#33b1ff;--cds-syntax-heading-6:#33b1ff;--cds-syntax-integer:#6fdc8c;--cds-syntax-invalid:#fa4d56;--cds-syntax-keyword:#4589ff;--cds-syntax-label-name:#a6c8ff;--cds-syntax-line-comment:#42be65;--cds-syntax-link:#4589ff;--cds-syntax-list:#f4f4f4;--cds-syntax-literal:#f4f4f4;--cds-syntax-local:#a6c8ff;--cds-syntax-logic-operator:#e0e0e0;--cds-syntax-macro-name:#f4f4f4;--cds-syntax-meta:#42be65;--cds-syntax-modifier:#4589ff;--cds-syntax-module-keyword:#be95ff;--cds-syntax-monospace:#f4f4f4;--cds-syntax-name:#a6c8ff;--cds-syntax-namespace:#3ddbd9;--cds-syntax-null:#f4f4f4;--cds-syntax-number:#6fdc8c;--cds-syntax-operator:#e0e0e0;--cds-syntax-operator-keyword:#4589ff;--cds-syntax-paren:#e0e0e0;--cds-syntax-processing-instruction:#f4f4f4;--cds-syntax-property-name:#33b1ff;--cds-syntax-punctuation:#e0e0e0;--cds-syntax-quote:#42be65;--cds-syntax-regexp:#be95ff;--cds-syntax-self:#3ddbd9;--cds-syntax-separator:#e0e0e0;--cds-syntax-special:#4589ff;--cds-syntax-special-string:#be95ff;--cds-syntax-square-bracket:#e0e0e0;--cds-syntax-standard:#4589ff;--cds-syntax-strikethrough:#f4f4f4;--cds-syntax-string:#f4f4f4;--cds-syntax-strong:#f4f4f4;--cds-syntax-tag:#3ddbd9;--cds-syntax-tag-name:#3ddbd9;--cds-syntax-type:#3ddbd9;--cds-syntax-type-name:#3ddbd9;--cds-syntax-type-operator:#3ddbd9;--cds-syntax-unit:#6fdc8c;--cds-syntax-update-operator:#e0e0e0;--cds-syntax-url:#e0e0e0;--cds-syntax-variable:#a6c8ff;--cds-syntax-variable-name:#a6c8ff}:host([disabled]) .cds-custom-aichat--snippet{background-color:var(--cds-layer);color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}:host([disabled]) .cds-custom-aichat--snippet-container{cursor:not-allowed}:host([disabled]) .cm-editor{pointer-events:none}:host([disabled]) .cds-custom-aichat--snippet__icon{fill:var(--cds-icon-disabled,hsla(0,0%,9%,.25))}:host([hide-copy-button]) .cds-custom-aichat--snippet-container pre{padding-inline-end:0}:host([wrap-text]) pre{word-wrap:break-word;white-space:pre-wrap}.cds-custom-aichat--snippet-container{max-block-size:var(--cds-snippet-max-height,100%);min-block-size:var(--cds-snippet-min-height,100%);order:1;overflow-y:auto;pointer-events:auto;position:relative;transition:max-height motion(standard,productive) .15s}.cds-custom-aichat--snippet-container:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-custom-aichat--snippet-container:focus{outline-style:dotted}}.cds-custom-aichat--snippet-container:focus{outline-offset:0}.cds-custom-aichat--snippet-container pre{overflow:auto;padding-block-end:1.5rem;padding-inline-end:1.5rem}.cds-custom-aichat--snippet-container pre code{overflow:hidden}.cds-custom-aichat--snippet-container--fill-mode{block-size:100%;overflow-y:auto}.cds-custom-aichat--snippet--codemirror ::slotted(*){display:none}.cds-custom-aichat--snippet--codemirror .cds-custom-aichat--code-editor{block-size:100%;inline-size:100%}.cds-custom-aichat--snippet__editor-skeleton{align-items:center;background:var(--cds-layer-01,#f4f4f4);display:flex;inset:0;padding:1rem;pointer-events:none;position:absolute;z-index:1}.cds-custom-aichat--snippet__editor-skeleton cds-custom-skeleton-text{inline-size:100%}.cds-custom-aichat--visually-hidden{display:none}.cds-custom-aichat--snippet__header{border-block-end:1px solid var(--cds-border-subtle-02,#e0e0e0)}.cds-custom-aichat--snippet__meta{display:flex}.cds-custom-aichat--snippet__footer{border-block-start:1px solid var(--cds-border-subtle-02,#e0e0e0);display:flex;justify-content:flex-end}.cds-custom-aichat--snippet-btn--text{color:var(--cds-text-primary,#161616)}.cds-custom-aichat--snippet__header-separator,.cds-custom-aichat--snippet__language,.cds-custom-aichat--snippet__linecount{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.cds-custom-aichat--snippet__header-separator{padding-inline-end:.25rem;padding-inline-start:.25rem}.cds-custom-aichat--snippet-container--collapsed{overflow-x:auto;overflow-y:hidden;transition:max-height motion(standard,productive) .15s}.cds-custom-aichat--icon-chevron--down{transform:rotate(0deg);transition:transform .3s}:host([expanded-code]) .cds-custom-aichat--icon-chevron--down{transform:rotate(180deg);transition:transform .3s}"]);
|
|
10
|
+
var styles = css([":host :host([data-rounded=\"\"]),:host [data-rounded=\"\"],:host-context([data-theme=g10]) :host([data-rounded=\"\"]),:host-context([data-theme=g10]) [data-rounded=\"\"],:host-context([data-theme=white]) :host([data-rounded=\"\"]),:host-context([data-theme=white]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"],:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"]),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([data-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([data-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([data-theme=white]) [data-rounded=\"\"]::part(button),:host-context([data-theme=white]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]::part(link),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])::part(link),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]::part(link){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child,:host-context([data-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([data-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([data-theme=white]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=\"\"]>:only-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=\"\"])>:only-child,:host-context([storybook-carbon-theme=white]) [data-rounded=\"\"]>:only-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top],:host-context([data-theme=g10]) :host([data-rounded=top]),:host-context([data-theme=g10]) [data-rounded=top],:host-context([data-theme=white]) :host([data-rounded=top]),:host-context([data-theme=white]) [data-rounded=top],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]),:host-context([storybook-carbon-theme=white]) [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left],:host-context([data-theme=g10]) :host([data-rounded=top-left]),:host-context([data-theme=g10]) [data-rounded=top-left],:host-context([data-theme=white]) :host([data-rounded=top-left]),:host-context([data-theme=white]) [data-rounded=top-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right],:host-context([data-theme=g10]) :host([data-rounded=top-right]),:host-context([data-theme=g10]) [data-rounded=top-right],:host-context([data-theme=white]) :host([data-rounded=top-right]),:host-context([data-theme=white]) [data-rounded=top-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom],:host-context([data-theme=g10]) :host([data-rounded=bottom]),:host-context([data-theme=g10]) [data-rounded=bottom],:host-context([data-theme=white]) :host([data-rounded=bottom]),:host-context([data-theme=white]) [data-rounded=bottom],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left],:host-context([data-theme=g10]) :host([data-rounded=bottom-left]),:host-context([data-theme=g10]) [data-rounded=bottom-left],:host-context([data-theme=white]) :host([data-rounded=bottom-left]),:host-context([data-theme=white]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right],:host-context([data-theme=g10]) :host([data-rounded=bottom-right]),:host-context([data-theme=g10]) [data-rounded=bottom-right],:host-context([data-theme=white]) :host([data-rounded=bottom-right]),:host-context([data-theme=white]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right],:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-right][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child,:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([data-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([data-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=top-left][data-stacked]>:first-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child,:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child,:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([data-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([data-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=g10]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button),:host-context([storybook-carbon-theme=white]) :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host-context([storybook-carbon-theme=white]) [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host,:host-context([data-theme=g10]),:host-context([data-theme=white]),:host-context([storybook-carbon-theme=g10]),:host-context([storybook-carbon-theme=white]){--cds-syntax-angle-bracket:#697077;--cds-syntax-annotation:#007d79;--cds-syntax-arithmetic-operator:#343a3f;--cds-syntax-atom:#161616;--cds-syntax-attribute:#00539a;--cds-syntax-attribute-name:#00539a;--cds-syntax-attribute-value:#161616;--cds-syntax-bitwise-operator:#343a3f;--cds-syntax-block-comment:#198038;--cds-syntax-bool:#161616;--cds-syntax-brace:#343a3f;--cds-syntax-bracket:#343a3f;--cds-syntax-character:#161616;--cds-syntax-class-name:#007d79;--cds-syntax-color:#161616;--cds-syntax-comment:#198038;--cds-syntax-compare-operator:#343a3f;--cds-syntax-constant:#0f62fe;--cds-syntax-content:#161616;--cds-syntax-content-separator:#343a3f;--cds-syntax-control-keyword:#6929c4;--cds-syntax-control-operator:#6929c4;--cds-syntax-definition:#00539a;--cds-syntax-definition-keyword:#00539a;--cds-syntax-definition-operator:#00539a;--cds-syntax-deleted:#ffd7d9;--cds-syntax-deref-operator:#343a3f;--cds-syntax-doc-comment:#198038;--cds-syntax-doc-string:#161616;--cds-syntax-document-meta:#198038;--cds-syntax-emphasis:#161616;--cds-syntax-escape:#343a3f;--cds-syntax-float:#198038;--cds-syntax-function:#8e6a00;--cds-syntax-heading:#00539a;--cds-syntax-heading-1:#00539a;--cds-syntax-heading-2:#00539a;--cds-syntax-heading-3:#00539a;--cds-syntax-heading-4:#00539a;--cds-syntax-heading-5:#00539a;--cds-syntax-heading-6:#00539a;--cds-syntax-inserted:#a7f0ba;--cds-syntax-integer:#198038;--cds-syntax-invalid:#da1e28;--cds-syntax-keyword:#0f62fe;--cds-syntax-label-name:#0f62fe;--cds-syntax-line-comment:#198038;--cds-syntax-link:#0f62fe;--cds-syntax-list:#161616;--cds-syntax-literal:#161616;--cds-syntax-local:#0f62fe;--cds-syntax-logic-operator:#343a3f;--cds-syntax-macro-name:#161616;--cds-syntax-meta:#198038;--cds-syntax-modifier:#0f62fe;--cds-syntax-module-keyword:#6929c4;--cds-syntax-monospace:#161616;--cds-syntax-name:#0f62fe;--cds-syntax-namespace:#007d79;--cds-syntax-null:#161616;--cds-syntax-number:#198038;--cds-syntax-operator:#343a3f;--cds-syntax-operator-keyword:#0f62fe;--cds-syntax-paren:#343a3f;--cds-syntax-processing-instruction:#161616;--cds-syntax-property-name:#00539a;--cds-syntax-punctuation:#343a3f;--cds-syntax-quote:#198038;--cds-syntax-regexp:#6929c4;--cds-syntax-self:#007d79;--cds-syntax-separator:#343a3f;--cds-syntax-special:#0f62fe;--cds-syntax-special-string:#8a3ffc;--cds-syntax-square-bracket:#343a3f;--cds-syntax-standard:#0f62fe;--cds-syntax-strikethrough:#161616;--cds-syntax-string:#161616;--cds-syntax-strong:#161616;--cds-syntax-tag:#007d79;--cds-syntax-tag-name:#007d79;--cds-syntax-type:#007d79;--cds-syntax-type-name:#007d79;--cds-syntax-type-operator:#007d79;--cds-syntax-unit:#198038;--cds-syntax-update-operator:#343a3f;--cds-syntax-url:#343a3f;--cds-syntax-variable:#0f62fe;--cds-syntax-variable-name:#0f62fe}:host(.cds-custom-aichat--snippet-container--fill-mode){block-size:100%}.cds-custom-aichat--snippet{background:var(--cds-background,#fff);border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);display:block;font-family:inherit;max-inline-size:100%;padding:0}.cds-custom-aichat--snippet code{font-family:var(--cds-code-01-font-family,\"IBM Plex Mono\",system-ui,-apple-system,BlinkMacSystemFont,\".SFNSText-Regular\",monospace);font-size:var(--cds-code-01-font-size,.75rem);font-weight:var(--cds-code-01-font-weight,400);letter-spacing:var(--cds-code-01-letter-spacing,.32px);line-height:var(--cds-code-01-line-height,1.33333)}:host(.cds-custom-aichat--snippet-container--fill-mode) .cds-custom-aichat--snippet{block-size:100%;display:flex;flex-direction:column}:host-context([data-theme=g100]),:host-context([data-theme=g90]),:host-context([storybook-carbon-theme=g100]),:host-context([storybook-carbon-theme=g90]){--cds-syntax-angle-bracket:#8d8d8d;--cds-syntax-annotation:#08bdba;--cds-syntax-arithmetic-operator:#e0e0e0;--cds-syntax-atom:#f4f4f4;--cds-syntax-attribute:#33b1ff;--cds-syntax-attribute-name:#33b1ff;--cds-syntax-attribute-value:#f4f4f4;--cds-syntax-bitwise-operator:#e0e0e0;--cds-syntax-block-comment:#42be65;--cds-syntax-bool:#f4f4f4;--cds-syntax-brace:#e0e0e0;--cds-syntax-bracket:#e0e0e0;--cds-syntax-character:#f4f4f4;--cds-syntax-class-name:#3ddbd9;--cds-syntax-color:#f4f4f4;--cds-syntax-comment:#42be65;--cds-syntax-compare-operator:#e0e0e0;--cds-syntax-constant:#4589ff;--cds-syntax-content:#f4f4f4;--cds-syntax-content-separator:#e0e0e0;--cds-syntax-control-keyword:#be95ff;--cds-syntax-control-operator:#be95ff;--cds-syntax-definition:#33b1ff;--cds-syntax-definition-keyword:#33b1ff;--cds-syntax-definition-operator:#33b1ff;--cds-syntax-deleted:#a2191f;--cds-syntax-deref-operator:#e0e0e0;--cds-syntax-doc-comment:#42be65;--cds-syntax-doc-string:#f4f4f4;--cds-syntax-document-meta:#42be65;--cds-syntax-emphasis:#f4f4f4;--cds-syntax-escape:#e0e0e0;--cds-syntax-float:#6fdc8c;--cds-syntax-function:#f1c21b;--cds-syntax-heading:#33b1ff;--cds-syntax-heading-1:#33b1ff;--cds-syntax-heading-2:#33b1ff;--cds-syntax-heading-3:#33b1ff;--cds-syntax-heading-4:#33b1ff;--cds-syntax-heading-5:#33b1ff;--cds-syntax-heading-6:#33b1ff;--cds-syntax-inserted:#198038;--cds-syntax-integer:#6fdc8c;--cds-syntax-invalid:#fa4d56;--cds-syntax-keyword:#4589ff;--cds-syntax-label-name:#a6c8ff;--cds-syntax-line-comment:#42be65;--cds-syntax-link:#4589ff;--cds-syntax-list:#f4f4f4;--cds-syntax-literal:#f4f4f4;--cds-syntax-local:#a6c8ff;--cds-syntax-logic-operator:#e0e0e0;--cds-syntax-macro-name:#f4f4f4;--cds-syntax-meta:#42be65;--cds-syntax-modifier:#4589ff;--cds-syntax-module-keyword:#be95ff;--cds-syntax-monospace:#f4f4f4;--cds-syntax-name:#a6c8ff;--cds-syntax-namespace:#3ddbd9;--cds-syntax-null:#f4f4f4;--cds-syntax-number:#6fdc8c;--cds-syntax-operator:#e0e0e0;--cds-syntax-operator-keyword:#4589ff;--cds-syntax-paren:#e0e0e0;--cds-syntax-processing-instruction:#f4f4f4;--cds-syntax-property-name:#33b1ff;--cds-syntax-punctuation:#e0e0e0;--cds-syntax-quote:#42be65;--cds-syntax-regexp:#be95ff;--cds-syntax-self:#3ddbd9;--cds-syntax-separator:#e0e0e0;--cds-syntax-special:#4589ff;--cds-syntax-special-string:#be95ff;--cds-syntax-square-bracket:#e0e0e0;--cds-syntax-standard:#4589ff;--cds-syntax-strikethrough:#f4f4f4;--cds-syntax-string:#f4f4f4;--cds-syntax-strong:#f4f4f4;--cds-syntax-tag:#3ddbd9;--cds-syntax-tag-name:#3ddbd9;--cds-syntax-type:#3ddbd9;--cds-syntax-type-name:#3ddbd9;--cds-syntax-type-operator:#3ddbd9;--cds-syntax-unit:#6fdc8c;--cds-syntax-update-operator:#e0e0e0;--cds-syntax-url:#e0e0e0;--cds-syntax-variable:#a6c8ff;--cds-syntax-variable-name:#a6c8ff}.cm-diff-line-inserted{background-color:var(--cds-syntax-inserted)}.cm-diff-line-deleted{background-color:var(--cds-syntax-deleted)}:host([disabled]) .cds-custom-aichat--snippet{background-color:var(--cds-layer);color:var(--cds-text-disabled,hsla(0,0%,9%,.25))}:host([disabled]) .cds-custom-aichat--snippet-container{cursor:not-allowed}:host([disabled]) .cm-editor{pointer-events:none}:host([disabled]) .cds-custom-aichat--snippet__icon{fill:var(--cds-icon-disabled,hsla(0,0%,9%,.25))}:host([hide-copy-button]) .cds-custom-aichat--snippet-container pre{padding-inline-end:0}:host([wrap-text]) pre{word-wrap:break-word;white-space:pre-wrap}.cds-custom-aichat--snippet-container{max-block-size:var(--cds-snippet-max-height,100%);min-block-size:var(--cds-snippet-min-height,100%);order:1;overflow-y:auto;pointer-events:auto;position:relative;transition:max-height motion(standard,productive) .15s}.cds-custom-aichat--snippet-container:focus{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.cds-custom-aichat--snippet-container:focus{outline-style:dotted}}.cds-custom-aichat--snippet-container:focus{outline-offset:0}.cds-custom-aichat--snippet-container pre{overflow:auto;padding-block-end:1.5rem;padding-inline-end:1.5rem}.cds-custom-aichat--snippet-container pre code{overflow:hidden}.cds-custom-aichat--snippet-container--fill-mode{block-size:100%;overflow-y:auto}.cds-custom-aichat--snippet--codemirror ::slotted(*){display:none}.cds-custom-aichat--snippet--codemirror .cds-custom-aichat--code-editor{block-size:100%;inline-size:100%}.cds-custom-aichat--snippet__editor-skeleton{align-items:center;background:var(--cds-layer-01,#f4f4f4);display:flex;inset:0;padding:1rem;pointer-events:none;position:absolute;z-index:1}.cds-custom-aichat--snippet__editor-skeleton cds-custom-skeleton-text{inline-size:100%}.cds-custom-aichat--visually-hidden{display:none}.cds-custom-aichat--snippet__header{border-block-end:1px solid var(--cds-border-subtle-02,#e0e0e0)}.cds-custom-aichat--snippet__meta{display:flex}.cds-custom-aichat--snippet__footer{border-block-start:1px solid var(--cds-border-subtle-02,#e0e0e0);display:flex;justify-content:flex-end}.cds-custom-aichat--snippet-btn--text{color:var(--cds-text-primary,#161616)}.cds-custom-aichat--snippet__header-separator,.cds-custom-aichat--snippet__language,.cds-custom-aichat--snippet__linecount{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.cds-custom-aichat--snippet__header-separator{padding-inline-end:.25rem;padding-inline-start:.25rem}.cds-custom-aichat--snippet-container--collapsed{overflow-x:auto;overflow-y:hidden;transition:max-height motion(standard,productive) .15s}.cds-custom-aichat--icon-chevron--down{transform:rotate(0deg);transition:transform .3s}:host([expanded-code]) .cds-custom-aichat--icon-chevron--down{transform:rotate(180deg);transition:transform .3s}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=code-snippet.scss.js.map
|
|
@@ -12,6 +12,7 @@ import { closeBrackets, closeBracketsKeymap } from '@codemirror/autocomplete';
|
|
|
12
12
|
import { lintKeymap } from '@codemirror/lint';
|
|
13
13
|
import { carbonFoldMarkerKeyHandler, createCarbonFoldMarker } from './marker-utils.js';
|
|
14
14
|
import { createCarbonHighlightStyle } from './theme.js';
|
|
15
|
+
import { createDiffDecorator } from './diff-decorator.js';
|
|
15
16
|
|
|
16
17
|
/*
|
|
17
18
|
* Copyright IBM Corp. 2025
|
|
@@ -28,7 +29,7 @@ import { createCarbonHighlightStyle } from './theme.js';
|
|
|
28
29
|
* - avoid heavier behaviors like search, autocomplete, multi-caret history
|
|
29
30
|
*/
|
|
30
31
|
function baseCodeMirrorSetup(options = {}) {
|
|
31
|
-
const { foldCollapseLabel = "Collapse code block", foldExpandLabel = "Expand code block", } = options;
|
|
32
|
+
const { foldCollapseLabel = "Collapse code block", foldExpandLabel = "Expand code block", enableDiffDecorator = false, } = options;
|
|
32
33
|
return [
|
|
33
34
|
// Line number column for navigation and copy context
|
|
34
35
|
lineNumbers(),
|
|
@@ -58,6 +59,8 @@ function baseCodeMirrorSetup(options = {}) {
|
|
|
58
59
|
...foldKeymap,
|
|
59
60
|
...lintKeymap,
|
|
60
61
|
]),
|
|
62
|
+
// Conditionally add diff line decorator for diff language
|
|
63
|
+
...(enableDiffDecorator ? [createDiffDecorator()] : []),
|
|
61
64
|
];
|
|
62
65
|
}
|
|
63
66
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-setup.js","sources":["../../../../../src/components/code-snippet/src/codemirror/base-setup.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-setup.js","sources":["../../../../../src/components/code-snippet/src/codemirror/base-setup.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AA2BH;;;;;AAKG;AACG,SAAU,mBAAmB,CACjC,OAAA,GAAsC,EAAE,EAAA;AAExC,IAAA,MAAM,EACJ,iBAAiB,GAAG,qBAAqB,EACzC,eAAe,GAAG,mBAAmB,EACrC,mBAAmB,GAAG,KAAK,GAC5B,GAAG,OAAO;IAEX,OAAO;;AAEL,QAAA,WAAW,EAAE;;AAEb,QAAA,0BAA0B,EAAE;;AAE5B,QAAA,UAAU,CAAC;YACT,SAAS,EAAE,sBAAsB,CAAC;AAChC,gBAAA,aAAa,EAAE,iBAAiB;AAChC,gBAAA,WAAW,EAAE,eAAe;aAC7B,CAAC;SACH,CAAC;;AAEF,QAAA,aAAa,EAAE;;AAEf,QAAA,aAAa,EAAE;;QAEf,kBAAkB,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;AAE7D,QAAA,0BAA0B,EAAE;;AAE5B,QAAA,aAAa,EAAE;;QAEf,MAAM,CAAC,EAAE,CAAC;AACR,YAAA,GAAG,mBAAmB;AACtB,YAAA,GAAG,aAAa;AAChB,YAAA,GAAG,UAAU;AACb,YAAA,GAAG,UAAU;SACd,CAAC;;AAEF,QAAA,IAAI,mBAAmB,GAAG,CAAC,mBAAmB,EAAE,CAAC,GAAG,EAAE,CAAC;KACxD;AACH;;;;"}
|
|
@@ -3,5 +3,6 @@ export type { LanguageStateUpdate } from "./language-controller.js";
|
|
|
3
3
|
export { createContentSync } from "./content-sync.js";
|
|
4
4
|
export type { ContentSyncHandle } from "./content-sync.js";
|
|
5
5
|
export { createEditorView, applyLanguageSupport, updateReadOnlyConfiguration, updateContentAttributes, } from "./editor-manager.js";
|
|
6
|
+
export { createDiffDecorator } from "./diff-decorator.js";
|
|
6
7
|
export { EditorView } from "@codemirror/view";
|
|
7
8
|
export { Compartment } from "@codemirror/state";
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export { LanguageController } from './language-controller.js';
|
|
9
9
|
export { createContentSync } from './content-sync.js';
|
|
10
10
|
export { applyLanguageSupport, createEditorView, updateContentAttributes, updateReadOnlyConfiguration } from './editor-manager.js';
|
|
11
|
+
export { createDiffDecorator } from './diff-decorator.js';
|
|
11
12
|
export { EditorView } from '@codemirror/view';
|
|
12
13
|
export { Compartment } from '@codemirror/state';
|
|
13
14
|
//# sourceMappingURL=codemirror-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codemirror-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codemirror-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ViewPlugin, DecorationSet, EditorView } from "@codemirror/view";
|
|
2
|
+
import type { ViewUpdate } from "@codemirror/view";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a CodeMirror decorator that applies line-level background colors
|
|
5
|
+
* to diff syntax (inserted and deleted lines).
|
|
6
|
+
*
|
|
7
|
+
* This decorator identifies lines starting with '+' (insertions) or '-' (deletions)
|
|
8
|
+
* and applies appropriate CSS classes for background coloring. It excludes diff
|
|
9
|
+
* metadata lines like '+++', '---', and '@@'.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { EditorView } from '@codemirror/view';
|
|
14
|
+
* import { createDiffDecorator } from './diff-decorator';
|
|
15
|
+
*
|
|
16
|
+
* const view = new EditorView({
|
|
17
|
+
* extensions: [
|
|
18
|
+
* createDiffDecorator(),
|
|
19
|
+
* // ... other extensions
|
|
20
|
+
* ],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @returns CodeMirror ViewPlugin that decorates diff lines
|
|
25
|
+
*/
|
|
26
|
+
export declare function createDiffDecorator(): ViewPlugin<{
|
|
27
|
+
decorations: DecorationSet;
|
|
28
|
+
update(update: ViewUpdate): void;
|
|
29
|
+
buildDecorations(view: EditorView): DecorationSet;
|
|
30
|
+
}, undefined>;
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { ViewPlugin, Decoration } from '@codemirror/view';
|
|
9
|
+
import { RangeSetBuilder } from '@codemirror/state';
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Copyright IBM Corp. 2025
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
* @license
|
|
18
|
+
*/
|
|
19
|
+
// Line decorations for diff syntax
|
|
20
|
+
const insertedLineDeco = Decoration.line({ class: "cm-diff-line-inserted" });
|
|
21
|
+
const deletedLineDeco = Decoration.line({ class: "cm-diff-line-deleted" });
|
|
22
|
+
/**
|
|
23
|
+
* Creates a CodeMirror decorator that applies line-level background colors
|
|
24
|
+
* to diff syntax (inserted and deleted lines).
|
|
25
|
+
*
|
|
26
|
+
* This decorator identifies lines starting with '+' (insertions) or '-' (deletions)
|
|
27
|
+
* and applies appropriate CSS classes for background coloring. It excludes diff
|
|
28
|
+
* metadata lines like '+++', '---', and '@@'.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import { EditorView } from '@codemirror/view';
|
|
33
|
+
* import { createDiffDecorator } from './diff-decorator';
|
|
34
|
+
*
|
|
35
|
+
* const view = new EditorView({
|
|
36
|
+
* extensions: [
|
|
37
|
+
* createDiffDecorator(),
|
|
38
|
+
* // ... other extensions
|
|
39
|
+
* ],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @returns CodeMirror ViewPlugin that decorates diff lines
|
|
44
|
+
*/
|
|
45
|
+
function createDiffDecorator() {
|
|
46
|
+
return ViewPlugin.fromClass(class {
|
|
47
|
+
constructor(view) {
|
|
48
|
+
this.decorations = this.buildDecorations(view);
|
|
49
|
+
}
|
|
50
|
+
update(update) {
|
|
51
|
+
if (update.docChanged || update.viewportChanged) {
|
|
52
|
+
this.decorations = this.buildDecorations(update.view);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
buildDecorations(view) {
|
|
56
|
+
const builder = new RangeSetBuilder();
|
|
57
|
+
for (const { from, to } of view.visibleRanges) {
|
|
58
|
+
for (let pos = from; pos <= to;) {
|
|
59
|
+
const line = view.state.doc.lineAt(pos);
|
|
60
|
+
const text = line.text;
|
|
61
|
+
// Check if line is an insertion (starts with + but not +++)
|
|
62
|
+
if (text.startsWith("+") && !text.startsWith("+++")) {
|
|
63
|
+
builder.add(line.from, line.from, insertedLineDeco);
|
|
64
|
+
}
|
|
65
|
+
// Check if line is a deletion (starts with - but not ---)
|
|
66
|
+
else if (text.startsWith("-") && !text.startsWith("---")) {
|
|
67
|
+
builder.add(line.from, line.from, deletedLineDeco);
|
|
68
|
+
}
|
|
69
|
+
pos = line.to + 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return builder.finish();
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
decorations: (v) => v.decorations,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { createDiffDecorator };
|
|
80
|
+
//# sourceMappingURL=diff-decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-decorator.js","sources":["../../../../../src/components/code-snippet/src/codemirror/diff-decorator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAWH;AACA,MAAM,gBAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,uBAAuB,EAAE,CAAC;AAC5E,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;AAsBG;SACa,mBAAmB,GAAA;IACjC,OAAO,UAAU,CAAC,SAAS,CACzB,MAAA;AAGE,QAAA,WAAA,CAAY,IAAgB,EAAA;YAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;QAChD;AAEA,QAAA,MAAM,CAAC,MAAkB,EAAA;YACvB,IAAI,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,eAAe,EAAE;gBAC/C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC;YACvD;QACF;AAEA,QAAA,gBAAgB,CAAC,IAAgB,EAAA;AAC/B,YAAA,MAAM,OAAO,GAAG,IAAI,eAAe,EAAc;YAEjD,KAAK,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE;gBAC7C,KAAK,IAAI,GAAG,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,GAAI;AAChC,oBAAA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC;AACvC,oBAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI;;AAGtB,oBAAA,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;AACnD,wBAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,gBAAgB,CAAC;oBACrD;;AAEK,yBAAA,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;AACxD,wBAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC;oBACpD;AAEA,oBAAA,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC;gBACnB;YACF;AAEA,YAAA,OAAO,OAAO,CAAC,MAAM,EAAE;QACzB;KACD,EACD;QACE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW;AAClC,KAAA,CACF;AACH;;;;"}
|
|
@@ -17,10 +17,11 @@ interface EditorCreationOptions {
|
|
|
17
17
|
editable: boolean;
|
|
18
18
|
disabled: boolean;
|
|
19
19
|
ariaLabel: string;
|
|
20
|
+
detectedLanguage?: string | null;
|
|
20
21
|
onDocChanged?(payload: EditorDocChangePayload): void;
|
|
21
22
|
setupOptions?: BaseCodeMirrorSetupOptions;
|
|
22
23
|
}
|
|
23
|
-
export declare function createEditorView({ container, doc, languageSupport, languageCompartment, readOnlyCompartment, wrapCompartment, contentAttributesCompartment, editable, disabled, ariaLabel, onDocChanged, setupOptions, }: EditorCreationOptions): EditorView;
|
|
24
|
+
export declare function createEditorView({ container, doc, languageSupport, languageCompartment, readOnlyCompartment, wrapCompartment, contentAttributesCompartment, editable, disabled, ariaLabel, detectedLanguage, onDocChanged, setupOptions, }: EditorCreationOptions): EditorView;
|
|
24
25
|
export declare function applyLanguageSupport(view: EditorView | undefined, languageCompartment: Compartment, support: LanguageSupport | null): void;
|
|
25
26
|
export declare function updateReadOnlyConfiguration(view: EditorView | undefined, readOnlyCompartment: Compartment, { editable, disabled }: {
|
|
26
27
|
editable: boolean;
|
|
@@ -19,7 +19,7 @@ import { baseCodeMirrorSetup } from './base-setup.js';
|
|
|
19
19
|
* @license
|
|
20
20
|
*/
|
|
21
21
|
const emptyLanguageExtensions = [];
|
|
22
|
-
function createEditorView({ container, doc, languageSupport, languageCompartment, readOnlyCompartment, wrapCompartment, contentAttributesCompartment, editable, disabled, ariaLabel, onDocChanged, setupOptions, }) {
|
|
22
|
+
function createEditorView({ container, doc, languageSupport, languageCompartment, readOnlyCompartment, wrapCompartment, contentAttributesCompartment, editable, disabled, ariaLabel, detectedLanguage, onDocChanged, setupOptions, }) {
|
|
23
23
|
const languageExtensions = languageSupport
|
|
24
24
|
? [languageSupport]
|
|
25
25
|
: emptyLanguageExtensions;
|
|
@@ -31,10 +31,15 @@ function createEditorView({ container, doc, languageSupport, languageCompartment
|
|
|
31
31
|
"aria-label": ariaLabel,
|
|
32
32
|
});
|
|
33
33
|
const wrapTheme = createCarbonTheme();
|
|
34
|
+
// Enable diff decorator only for diff language
|
|
35
|
+
const isDiffLanguage = detectedLanguage === "diff";
|
|
34
36
|
const state = EditorState.create({
|
|
35
37
|
doc,
|
|
36
38
|
extensions: [
|
|
37
|
-
baseCodeMirrorSetup(
|
|
39
|
+
baseCodeMirrorSetup({
|
|
40
|
+
...setupOptions,
|
|
41
|
+
enableDiffDecorator: isDiffLanguage,
|
|
42
|
+
}),
|
|
38
43
|
languageCompartment.of(languageExtensions),
|
|
39
44
|
readOnlyCompartment.of(readOnlyExtensions),
|
|
40
45
|
wrapCompartment.of(wrapTheme),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-manager.js","sources":["../../../../../src/components/code-snippet/src/codemirror/editor-manager.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;
|
|
1
|
+
{"version":3,"file":"editor-manager.js","sources":["../../../../../src/components/code-snippet/src/codemirror/editor-manager.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -30,11 +30,7 @@ const htmlMarkdown = new MarkdownIt("commonmark", {
|
|
|
30
30
|
.enable("table")
|
|
31
31
|
.enable("strikethrough")
|
|
32
32
|
.enable("linkify")
|
|
33
|
-
.use(markdownItAttrs
|
|
34
|
-
leftDelimiter: "{{",
|
|
35
|
-
rightDelimiter: "}}",
|
|
36
|
-
allowedAttributes: ["target", "rel", "class", "id"],
|
|
37
|
-
})
|
|
33
|
+
.use(markdownItAttrs)
|
|
38
34
|
.use(markdownItHighlight)
|
|
39
35
|
.use(markdownItTaskLists);
|
|
40
36
|
/**
|
|
@@ -49,11 +45,7 @@ const noHtmlMarkdown = new MarkdownIt("commonmark", {
|
|
|
49
45
|
.enable("table")
|
|
50
46
|
.enable("strikethrough")
|
|
51
47
|
.enable("linkify")
|
|
52
|
-
.use(markdownItAttrs
|
|
53
|
-
leftDelimiter: "{{",
|
|
54
|
-
rightDelimiter: "}}",
|
|
55
|
-
allowedAttributes: ["target", "rel", "class", "id"],
|
|
56
|
-
})
|
|
48
|
+
.use(markdownItAttrs)
|
|
57
49
|
.use(markdownItHighlight)
|
|
58
50
|
.use(markdownItTaskLists);
|
|
59
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-token-tree.js","sources":["../../../../src/components/markdown/src/markdown-token-tree.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAoBH;;;AAGG;AACH,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,YAAY,EAAE;AAChD,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,OAAO,EAAE,IAAI;CACd;KACE,MAAM,CAAC,OAAO;KACd,MAAM,CAAC,eAAe;KACtB,MAAM,CAAC,SAAS;KAChB,GAAG,CAAC,eAAe
|
|
1
|
+
{"version":3,"file":"markdown-token-tree.js","sources":["../../../../src/components/markdown/src/markdown-token-tree.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type MarkdownIt from "markdown-it";
|
|
2
|
-
import type { MarkdownItAttrsOptions } from "./markdownItAttrs/types.js";
|
|
3
2
|
/**
|
|
4
|
-
* Markdown-it plugin that
|
|
3
|
+
* Markdown-it plugin that applies a fixed set of HTML attributes to links,
|
|
4
|
+
* headings, and paragraphs using `{{key=value}}` syntax.
|
|
5
5
|
*/
|
|
6
|
-
export declare function markdownItAttrs(md: MarkdownIt
|
|
6
|
+
export declare function markdownItAttrs(md: MarkdownIt): void;
|
|
7
7
|
export default markdownItAttrs;
|