@carbon/ai-chat-components 1.9.0-alpha.0 → 1.9.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +1 -5
- package/custom-elements.json +3838 -3356
- package/es/components/audio-player/index.d.ts +4 -4
- package/es/components/audio-player/src/audio-player.d.ts +1 -1
- package/es/components/audio-player/src/audio-player.js +33 -38
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/base-provider.js +9 -9
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es/components/audio-player/src/transcript.d.ts +2 -2
- package/es/components/audio-player/src/transcript.js +13 -16
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +1 -1
- package/es/components/card/index.d.ts +4 -4
- package/es/components/card/src/card-footer.d.ts +5 -5
- package/es/components/card/src/card-footer.js +12 -16
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.d.ts +4 -4
- package/es/components/card/src/card-steps.js +3 -5
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.d.ts +2 -2
- package/es/components/card/src/card.js +3 -3
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/carousel/index.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -2
- package/es/components/carousel/src/carousel.js +4 -6
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.js +1 -1
- package/es/components/chain-of-thought/defs.js +1 -1
- package/es/components/chain-of-thought/index.d.ts +10 -10
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -1
- package/es/components/chat-button/defs.js +1 -1
- package/es/components/chat-button/index.d.ts +2 -2
- package/es/components/chat-button/src/chat-button.d.ts +5 -5
- package/es/components/chat-button/src/chat-button.js +6 -6
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/index.d.ts +11 -11
- package/es/components/chat-history/src/history-content.d.ts +1 -1
- package/es/components/chat-history/src/history-content.js +6 -6
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es/components/chat-history/src/history-delete-panel.js +11 -11
- package/es/components/chat-history/src/history-header.d.ts +2 -2
- package/es/components/chat-history/src/history-header.js +9 -10
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -2
- package/es/components/chat-history/src/history-loading.js +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es/components/chat-history/src/history-panel-item.js +39 -41
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es/components/chat-history/src/history-panel-items.js +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.js +3 -3
- package/es/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es/components/chat-history/src/history-search-item.js +4 -4
- package/es/components/chat-history/src/history-shell.d.ts +1 -1
- package/es/components/chat-history/src/history-shell.js +3 -3
- package/es/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es/components/chat-history/src/history-toolbar.js +13 -10
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +5 -5
- package/es/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es/components/chat-shell/src/chat-header.js +37 -44
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es/components/chat-shell/src/corner-manager.js +30 -30
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.js +12 -12
- package/es/components/chat-shell/src/panel.d.ts +2 -2
- package/es/components/chat-shell/src/panel.js +99 -100
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es/components/chat-shell/src/shell.d.ts +8 -8
- package/es/components/chat-shell/src/shell.js +128 -135
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es/components/chat-shell/src/slot-observer.js +4 -7
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +4 -4
- package/es/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager.js +32 -32
- package/es/components/code-snippet/index.d.ts +4 -4
- package/es/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es/components/code-snippet/src/code-snippet.js +87 -93
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es/components/code-snippet/src/dom-utils.js +6 -6
- package/es/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es/components/code-snippet/src/layout-utils.js +9 -9
- package/es/components/code-snippet/src/streaming-manager.js +5 -5
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es/components/feedback/src/feedback-buttons.js +17 -19
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -9
- package/es/components/feedback/src/feedback.js +38 -45
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +5 -4
- package/es/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es/components/file-uploads/src/file-type-icon.js +87 -0
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es/components/file-uploads/src/file-upload-item.js +210 -111
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es/components/file-uploads/src/file-uploads.js +54 -29
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es/components/file-uploads/src/types.d.ts +39 -0
- package/es/components/file-uploads/src/types.js +8 -0
- package/es/components/file-uploads/src/types.js.map +1 -0
- package/es/components/launcher/index.d.ts +9 -0
- package/es/components/launcher/index.js +9 -0
- package/es/components/launcher/index.js.map +1 -0
- package/es/components/launcher/src/launcher.d.ts +68 -0
- package/es/components/launcher/src/launcher.js +152 -0
- package/es/components/launcher/src/launcher.js.map +1 -0
- package/es/components/launcher/src/launcher.scss.js +13 -0
- package/es/components/launcher/src/launcher.scss.js.map +1 -0
- package/es/components/markdown/index.d.ts +5 -5
- package/es/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es/components/markdown/src/markdown-renderer.js +85 -80
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +20 -20
- package/es/components/markdown/src/markdown.d.ts +4 -7
- package/es/components/markdown/src/markdown.js +96 -82
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.template.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es/components/markdown/src/utils/html-helpers.js +72 -72
- package/es/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es/components/markdown/src/utils/lit-directives.js +5 -5
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es/components/markdown/src/utils/streaming-table.js +6 -6
- package/es/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es/components/markdown/src/utils/table-helpers.js +17 -18
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/src/processing.d.ts +2 -2
- package/es/components/processing/src/processing.js +2 -2
- package/es/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es/components/prompt-line/autocomplete/index.js +9 -0
- package/es/components/prompt-line/autocomplete/index.js.map +1 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es/components/prompt-line/index.d.ts +18 -18
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +3 -7
- package/es/components/prompt-line/src/error-message.js +13 -23
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es/components/prompt-line/src/prompt-line.js +35 -35
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +4 -4
- package/es/components/prompt-line/src/send-control.js +18 -20
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es/components/prompt-line/src/types.d.ts +2 -2
- package/es/components/prompt-line/src/types.js.map +1 -1
- package/es/components/reasoning-steps/index.d.ts +4 -4
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es/components/shared/media-utils/script-loader.js +1 -1
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/src/table-loader.d.ts +1 -1
- package/es/components/table/src/table-loader.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +3 -3
- package/es/components/table/src/table-pagination.template.js +4 -5
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es/components/table/src/table-skeleton.template.js +2 -3
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +3 -4
- package/es/components/table/src/table.js +36 -39
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +5 -5
- package/es/components/table/src/table.template.js +6 -9
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +9 -7
- package/es/components/toolbar/src/toolbar.js +45 -33
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/truncated-text/index.d.ts +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es/components/truncated-text/src/truncated-text.js +26 -28
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es/components/video-player/index.d.ts +2 -2
- package/es/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es/components/video-player/src/providers/base-provider.js +5 -5
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es/components/video-player/src/utils/url-detector.js +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -2
- package/es/components/video-player/src/video-player.js +37 -41
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +4 -4
- package/es/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es/globals/decorators/carbon-element.d.ts +4 -4
- package/es/globals/decorators/carbon-element.js +2 -2
- package/es/globals/decorators/index.d.ts +1 -1
- package/es/globals/scss/common.scss.js +1 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es/globals/utils/aria-announcer-manager.js +6 -6
- package/es/globals/utils/browser-utils.js +1 -1
- package/es/globals/utils/csv.d.ts +8 -0
- package/es/globals/utils/csv.js +37 -0
- package/es/globals/utils/csv.js.map +1 -0
- package/es/globals/utils/dom-utils.js +1 -1
- package/es/globals/utils/focus-utils.js +4 -4
- package/es/globals/utils/iconTransform.d.ts +2 -2
- package/es/globals/utils/iconTransform.js +21 -21
- package/es/globals/utils/rtl-utils.js +1 -1
- package/es/globals/utils/uuid.js +5 -5
- package/es/react/__tests__/jest.setup.js +12 -12
- package/es/react/ai-label-action-button.d.ts +1 -1
- package/es/react/ai-label-action-button.js +1 -1
- package/es/react/audio-player.d.ts +1 -1
- package/es/react/audio-player.js +5 -5
- package/es/react/autocomplete.d.ts +1 -1
- package/es/react/autocomplete.js +5 -5
- package/es/react/card.d.ts +1 -1
- package/es/react/card.js +5 -5
- package/es/react/carousel.d.ts +1 -1
- package/es/react/carousel.js +2 -2
- package/es/react/chain-of-thought-step.d.ts +1 -1
- package/es/react/chain-of-thought-step.js +4 -4
- package/es/react/chain-of-thought-toggle.d.ts +2 -2
- package/es/react/chain-of-thought-toggle.js +3 -3
- package/es/react/chain-of-thought.d.ts +2 -2
- package/es/react/chain-of-thought.js +4 -4
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +2 -2
- package/es/react/chat-header.d.ts +3 -3
- package/es/react/chat-header.js +2 -2
- package/es/react/chat-shell.d.ts +2 -2
- package/es/react/chat-shell.js +2 -2
- package/es/react/code-snippet.d.ts +4 -4
- package/es/react/code-snippet.js +3 -3
- package/es/react/error-message.d.ts +1 -1
- package/es/react/error-message.js +1 -1
- package/es/react/feedback-buttons.d.ts +1 -1
- package/es/react/feedback-buttons.js +3 -3
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +4 -4
- package/es/react/file-upload-item.d.ts +11 -0
- package/es/react/file-upload-item.js +31 -0
- package/es/react/file-upload-item.js.map +1 -0
- package/es/react/file-uploads.d.ts +1 -1
- package/es/react/file-uploads.js +2 -2
- package/es/react/history/history-content.d.ts +1 -1
- package/es/react/history/history-content.js +1 -1
- package/es/react/history/history-delete-panel.d.ts +1 -1
- package/es/react/history/history-delete-panel.js +3 -3
- package/es/react/history/history-header.d.ts +1 -1
- package/es/react/history/history-header.js +2 -2
- package/es/react/history/history-loading.d.ts +1 -1
- package/es/react/history/history-loading.js +1 -1
- package/es/react/history/history-panel-item-input.d.ts +1 -1
- package/es/react/history/history-panel-item-input.js +4 -4
- package/es/react/history/history-panel-item.d.ts +1 -1
- package/es/react/history/history-panel-item.js +6 -6
- package/es/react/history/history-panel-items.d.ts +1 -1
- package/es/react/history/history-panel-items.js +1 -1
- package/es/react/history/history-panel-menu.d.ts +1 -1
- package/es/react/history/history-panel-menu.js +1 -1
- package/es/react/history/history-panel.d.ts +1 -1
- package/es/react/history/history-panel.js +1 -1
- package/es/react/history/history-search-item.d.ts +1 -1
- package/es/react/history/history-search-item.js +2 -2
- package/es/react/history/history-shell.d.ts +1 -1
- package/es/react/history/history-shell.js +1 -1
- package/es/react/history/history-toolbar.d.ts +1 -1
- package/es/react/history/history-toolbar.js +3 -3
- package/es/react/history/index.d.ts +12 -12
- package/es/react/hooks/useChatAutocomplete.d.ts +4 -4
- package/es/react/hooks/useChatAutocomplete.js +38 -12
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/input-send-control.d.ts +1 -1
- package/es/react/input-send-control.js +3 -3
- package/es/react/launcher.d.ts +11 -0
- package/es/react/launcher.js +31 -0
- package/es/react/launcher.js.map +1 -0
- package/es/react/markdown.d.ts +7 -7
- package/es/react/markdown.js +13 -13
- package/es/react/markdown.js.map +1 -1
- package/es/react/panel.d.ts +1 -1
- package/es/react/panel.js +7 -7
- package/es/react/processing.d.ts +1 -1
- package/es/react/processing.js +2 -2
- package/es/react/prompt-line-shell.d.ts +1 -1
- package/es/react/prompt-line-shell.js +1 -1
- package/es/react/prompt-line.d.ts +1 -1
- package/es/react/prompt-line.js +9 -9
- package/es/react/reasoning-step.d.ts +1 -1
- package/es/react/reasoning-step.js +4 -4
- package/es/react/reasoning-steps-toggle.d.ts +2 -2
- package/es/react/reasoning-steps-toggle.js +3 -3
- package/es/react/reasoning-steps.d.ts +1 -1
- package/es/react/reasoning-steps.js +2 -2
- package/es/react/stop-streaming-button.d.ts +1 -1
- package/es/react/stop-streaming-button.js +1 -1
- package/es/react/table.d.ts +2 -2
- package/es/react/table.js +1 -1
- package/es/react/tool-call-data.d.ts +1 -1
- package/es/react/tool-call-data.js +2 -2
- package/es/react/toolbar.d.ts +4 -4
- package/es/react/toolbar.js +2 -2
- package/es/react/transcript.d.ts +1 -1
- package/es/react/transcript.js +3 -3
- package/es/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es/react/utils/transformSuggestionConfig.js +3 -3
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es/react/utils/withWebComponentBridge.js +22 -22
- package/es/react/video-player.d.ts +1 -1
- package/es/react/video-player.js +5 -5
- package/es/react/workspace-shell.d.ts +1 -1
- package/es/react/workspace-shell.js +6 -6
- package/es/testing/load-all-lazy-deps.d.ts +2 -2
- package/es/testing/load-all-lazy-deps.js +1 -1
- package/es/typings/overflow-menu.d.ts +2 -2
- package/es-custom/components/audio-player/index.d.ts +4 -4
- package/es-custom/components/audio-player/src/audio-player.d.ts +1 -1
- package/es-custom/components/audio-player/src/audio-player.js +33 -38
- package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/base-provider.js +9 -9
- package/es-custom/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
- package/es-custom/components/audio-player/src/transcript.js +13 -16
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/card/index.d.ts +4 -4
- package/es-custom/components/card/src/card-footer.d.ts +5 -5
- package/es-custom/components/card/src/card-footer.js +12 -16
- package/es-custom/components/card/src/card-footer.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.d.ts +4 -4
- package/es-custom/components/card/src/card-steps.js +3 -5
- package/es-custom/components/card/src/card-steps.js.map +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.d.ts +2 -2
- package/es-custom/components/card/src/card.js +3 -3
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/carousel/index.d.ts +1 -1
- package/es-custom/components/carousel/src/carousel.d.ts +2 -2
- package/es-custom/components/carousel/src/carousel.js +4 -6
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/carousel/src/carousel.scss.js +1 -1
- package/es-custom/components/chain-of-thought/defs.js +1 -1
- package/es-custom/components/chain-of-thought/index.d.ts +10 -10
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/defs.d.ts +1 -1
- package/es-custom/components/chat-button/defs.js +1 -1
- package/es-custom/components/chat-button/index.d.ts +2 -2
- package/es-custom/components/chat-button/src/chat-button.d.ts +5 -5
- package/es-custom/components/chat-button/src/chat-button.js +6 -6
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/index.d.ts +11 -11
- package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-content.js +6 -6
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-delete-panel.js +11 -11
- package/es-custom/components/chat-history/src/history-header.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-header.js +9 -10
- package/es-custom/components/chat-history/src/history-header.js.map +1 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-loading.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es-custom/components/chat-history/src/history-panel-item.js +39 -41
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.js +3 -3
- package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-search-item.js +4 -4
- package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-shell.js +3 -3
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es-custom/components/chat-history/src/history-toolbar.js +13 -10
- package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es-custom/components/chat-shell/index.d.ts +5 -5
- package/es-custom/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es-custom/components/chat-shell/src/chat-header.js +37 -44
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +30 -30
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.js +12 -12
- package/es-custom/components/chat-shell/src/panel.d.ts +2 -2
- package/es-custom/components/chat-shell/src/panel.js +99 -100
- package/es-custom/components/chat-shell/src/panel.js.map +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
- package/es-custom/components/chat-shell/src/shell.js +128 -135
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.js +4 -7
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es-custom/components/chat-shell/src/types.d.ts +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +32 -32
- package/es-custom/components/code-snippet/index.d.ts +4 -4
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es-custom/components/code-snippet/src/code-snippet.js +87 -93
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es-custom/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es-custom/components/code-snippet/src/dom-utils.js +6 -6
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/layout-utils.js +9 -9
- package/es-custom/components/code-snippet/src/streaming-manager.js +5 -5
- package/es-custom/components/feedback/index.d.ts +4 -4
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es-custom/components/feedback/src/feedback-buttons.js +17 -19
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +9 -9
- package/es-custom/components/feedback/src/feedback.js +38 -45
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/file-uploads/index.d.ts +5 -4
- package/es-custom/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js +87 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es-custom/components/file-uploads/src/file-upload-item.js +210 -111
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es-custom/components/file-uploads/src/file-uploads.js +54 -29
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es-custom/components/file-uploads/src/types.d.ts +39 -0
- package/es-custom/components/file-uploads/src/types.js +8 -0
- package/es-custom/components/file-uploads/src/types.js.map +1 -0
- package/es-custom/components/launcher/index.d.ts +9 -0
- package/es-custom/components/launcher/index.js +9 -0
- package/{es/components/autocomplete → es-custom/components/launcher}/index.js.map +1 -1
- package/es-custom/components/launcher/src/launcher.d.ts +68 -0
- package/es-custom/components/launcher/src/launcher.js +152 -0
- package/es-custom/components/launcher/src/launcher.js.map +1 -0
- package/es-custom/components/launcher/src/launcher.scss.js +13 -0
- package/es-custom/components/launcher/src/launcher.scss.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +5 -5
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es-custom/components/markdown/src/markdown-renderer.js +85 -80
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +20 -20
- package/es-custom/components/markdown/src/markdown.d.ts +4 -7
- package/es-custom/components/markdown/src/markdown.js +96 -82
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.template.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/html-helpers.js +72 -72
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es-custom/components/markdown/src/utils/lit-directives.js +5 -5
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js +6 -6
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/table-helpers.js +17 -18
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/processing/index.d.ts +1 -1
- package/es-custom/components/processing/src/processing.d.ts +2 -2
- package/es-custom/components/processing/src/processing.js +2 -2
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es-custom/components/prompt-line/autocomplete/index.js +9 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/index.js.map +1 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es-custom/components/prompt-line/index.d.ts +18 -18
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +3 -7
- package/es-custom/components/prompt-line/src/error-message.js +13 -23
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es-custom/components/prompt-line/src/prompt-line.js +35 -35
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +4 -4
- package/es-custom/components/prompt-line/src/send-control.js +18 -20
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es-custom/components/prompt-line/src/types.d.ts +2 -2
- package/es-custom/components/prompt-line/src/types.js.map +1 -1
- package/es-custom/components/reasoning-steps/index.d.ts +4 -4
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es-custom/components/shared/media-utils/script-loader.js +1 -1
- package/es-custom/components/table/index.d.ts +3 -3
- package/es-custom/components/table/src/table-loader.d.ts +1 -1
- package/es-custom/components/table/src/table-loader.js +1 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +3 -3
- package/es-custom/components/table/src/table-pagination.template.js +4 -5
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
- package/es-custom/components/table/src/table-runtime.d.ts +2 -2
- package/es-custom/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es-custom/components/table/src/table-skeleton.template.js +2 -3
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +3 -4
- package/es-custom/components/table/src/table.js +36 -39
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.template.d.ts +5 -5
- package/es-custom/components/table/src/table.template.js +6 -9
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/index.d.ts +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +9 -7
- package/es-custom/components/toolbar/src/toolbar.js +45 -33
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/truncated-text/index.d.ts +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es-custom/components/truncated-text/src/truncated-text.js +26 -28
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es-custom/components/video-player/index.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es-custom/components/video-player/src/providers/base-provider.js +5 -5
- package/es-custom/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es-custom/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es-custom/components/video-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/video-player/src/video-player.d.ts +2 -2
- package/es-custom/components/video-player/src/video-player.js +37 -41
- package/es-custom/components/video-player/src/video-player.js.map +1 -1
- package/es-custom/components/workspace-shell/index.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es-custom/globals/decorators/carbon-element.d.ts +4 -4
- package/es-custom/globals/decorators/carbon-element.js +2 -2
- package/es-custom/globals/decorators/index.d.ts +1 -1
- package/es-custom/globals/scss/common.scss.js +1 -1
- package/es-custom/globals/settings.js +2 -2
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es-custom/globals/utils/aria-announcer-manager.js +6 -6
- package/es-custom/globals/utils/browser-utils.js +1 -1
- package/es-custom/globals/utils/csv.d.ts +8 -0
- package/es-custom/globals/utils/csv.js +37 -0
- package/es-custom/globals/utils/csv.js.map +1 -0
- package/es-custom/globals/utils/dom-utils.js +1 -1
- package/es-custom/globals/utils/focus-utils.js +4 -4
- package/es-custom/globals/utils/iconTransform.d.ts +2 -2
- package/es-custom/globals/utils/iconTransform.js +21 -21
- package/es-custom/globals/utils/rtl-utils.js +1 -1
- package/es-custom/globals/utils/uuid.js +5 -5
- package/es-custom/react/__tests__/jest.setup.js +12 -12
- package/es-custom/react/ai-label-action-button.d.ts +1 -1
- package/es-custom/react/ai-label-action-button.js +1 -1
- package/es-custom/react/audio-player.d.ts +1 -1
- package/es-custom/react/audio-player.js +5 -5
- package/es-custom/react/autocomplete.d.ts +1 -1
- package/es-custom/react/autocomplete.js +5 -5
- package/es-custom/react/card.d.ts +1 -1
- package/es-custom/react/card.js +5 -5
- package/es-custom/react/carousel.d.ts +1 -1
- package/es-custom/react/carousel.js +2 -2
- package/es-custom/react/chain-of-thought-step.d.ts +1 -1
- package/es-custom/react/chain-of-thought-step.js +4 -4
- package/es-custom/react/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/react/chain-of-thought-toggle.js +3 -3
- package/es-custom/react/chain-of-thought.d.ts +2 -2
- package/es-custom/react/chain-of-thought.js +4 -4
- package/es-custom/react/chat-button.d.ts +3 -3
- package/es-custom/react/chat-button.js +2 -2
- package/es-custom/react/chat-header.d.ts +3 -3
- package/es-custom/react/chat-header.js +2 -2
- package/es-custom/react/chat-shell.d.ts +2 -2
- package/es-custom/react/chat-shell.js +2 -2
- package/es-custom/react/code-snippet.d.ts +4 -4
- package/es-custom/react/code-snippet.js +3 -3
- package/es-custom/react/error-message.d.ts +1 -1
- package/es-custom/react/error-message.js +1 -1
- package/es-custom/react/feedback-buttons.d.ts +1 -1
- package/es-custom/react/feedback-buttons.js +3 -3
- package/es-custom/react/feedback.d.ts +2 -2
- package/es-custom/react/feedback.js +4 -4
- package/es-custom/react/file-upload-item.d.ts +11 -0
- package/es-custom/react/file-upload-item.js +31 -0
- package/es-custom/react/file-upload-item.js.map +1 -0
- package/es-custom/react/file-uploads.d.ts +1 -1
- package/es-custom/react/file-uploads.js +2 -2
- package/es-custom/react/history/history-content.d.ts +1 -1
- package/es-custom/react/history/history-content.js +1 -1
- package/es-custom/react/history/history-delete-panel.d.ts +1 -1
- package/es-custom/react/history/history-delete-panel.js +3 -3
- package/es-custom/react/history/history-header.d.ts +1 -1
- package/es-custom/react/history/history-header.js +2 -2
- package/es-custom/react/history/history-loading.d.ts +1 -1
- package/es-custom/react/history/history-loading.js +1 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +1 -1
- package/es-custom/react/history/history-panel-item-input.js +4 -4
- package/es-custom/react/history/history-panel-item.d.ts +1 -1
- package/es-custom/react/history/history-panel-item.js +6 -6
- package/es-custom/react/history/history-panel-items.d.ts +1 -1
- package/es-custom/react/history/history-panel-items.js +1 -1
- package/es-custom/react/history/history-panel-menu.d.ts +1 -1
- package/es-custom/react/history/history-panel-menu.js +1 -1
- package/es-custom/react/history/history-panel.d.ts +1 -1
- package/es-custom/react/history/history-panel.js +1 -1
- package/es-custom/react/history/history-search-item.d.ts +1 -1
- package/es-custom/react/history/history-search-item.js +2 -2
- package/es-custom/react/history/history-shell.d.ts +1 -1
- package/es-custom/react/history/history-shell.js +1 -1
- package/es-custom/react/history/history-toolbar.d.ts +1 -1
- package/es-custom/react/history/history-toolbar.js +3 -3
- package/es-custom/react/history/index.d.ts +12 -12
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +4 -4
- package/es-custom/react/hooks/useChatAutocomplete.js +38 -12
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es-custom/react/input-send-control.d.ts +1 -1
- package/es-custom/react/input-send-control.js +3 -3
- package/es-custom/react/launcher.d.ts +11 -0
- package/es-custom/react/launcher.js +31 -0
- package/es-custom/react/launcher.js.map +1 -0
- package/es-custom/react/markdown.d.ts +7 -7
- package/es-custom/react/markdown.js +13 -13
- package/es-custom/react/markdown.js.map +1 -1
- package/es-custom/react/panel.d.ts +1 -1
- package/es-custom/react/panel.js +7 -7
- package/es-custom/react/processing.d.ts +1 -1
- package/es-custom/react/processing.js +2 -2
- package/es-custom/react/prompt-line-shell.d.ts +1 -1
- package/es-custom/react/prompt-line-shell.js +1 -1
- package/es-custom/react/prompt-line.d.ts +1 -1
- package/es-custom/react/prompt-line.js +9 -9
- package/es-custom/react/reasoning-step.d.ts +1 -1
- package/es-custom/react/reasoning-step.js +4 -4
- package/es-custom/react/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/react/reasoning-steps-toggle.js +3 -3
- package/es-custom/react/reasoning-steps.d.ts +1 -1
- package/es-custom/react/reasoning-steps.js +2 -2
- package/es-custom/react/stop-streaming-button.d.ts +1 -1
- package/es-custom/react/stop-streaming-button.js +1 -1
- package/es-custom/react/table.d.ts +2 -2
- package/es-custom/react/table.js +1 -1
- package/es-custom/react/tool-call-data.d.ts +1 -1
- package/es-custom/react/tool-call-data.js +2 -2
- package/es-custom/react/toolbar.d.ts +4 -4
- package/es-custom/react/toolbar.js +2 -2
- package/es-custom/react/transcript.d.ts +1 -1
- package/es-custom/react/transcript.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es-custom/react/utils/withWebComponentBridge.js +22 -22
- package/es-custom/react/video-player.d.ts +1 -1
- package/es-custom/react/video-player.js +5 -5
- package/es-custom/react/workspace-shell.d.ts +1 -1
- package/es-custom/react/workspace-shell.js +6 -6
- package/es-custom/testing/load-all-lazy-deps.d.ts +2 -2
- package/es-custom/testing/load-all-lazy-deps.js +1 -1
- package/es-custom/typings/overflow-menu.d.ts +2 -2
- package/package.json +4 -5
- package/scss/_custom-properties.scss +15 -15
- package/scss/_modifiers.scss +8 -8
- package/scss/_tokens-component.scss +1 -1
- package/scss/_tokens-layout.scss +1 -1
- package/scss/_utilities.scss +2 -2
- package/scss/common.scss +3 -3
- package/scss/grid.scss +2 -2
- package/scss/themes.scss +7 -7
- package/scss/vars.scss +3 -3
- package/telemetry.yml +64 -5
- package/es/components/autocomplete/index.d.ts +0 -15
- package/es/components/autocomplete/index.js +0 -11
- package/es/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es/components/autocomplete/src/autocomplete.js +0 -321
- package/es/components/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/autocomplete/index.d.ts +0 -15
- package/es-custom/components/autocomplete/index.js +0 -11
- package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es-custom/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es-custom/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es-custom/components/autocomplete/src/autocomplete.js +0 -321
- package/es-custom/components/autocomplete/src/autocomplete.js.map +0 -1
- /package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
- /package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
|
@@ -16,7 +16,7 @@ import styles from './panel.scss.js';
|
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
*
|
|
19
|
-
* Copyright IBM Corp. 2025
|
|
19
|
+
* Copyright IBM Corp. 2025, 2026
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -67,7 +67,7 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
67
67
|
/**
|
|
68
68
|
* ARIA label for the panel. Describes the panel's purpose to screen readers.
|
|
69
69
|
*/
|
|
70
|
-
this.panelAriaLabel =
|
|
70
|
+
this.panelAriaLabel = 'Panel';
|
|
71
71
|
/**
|
|
72
72
|
* @internal
|
|
73
73
|
*/
|
|
@@ -83,7 +83,7 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
83
83
|
/**
|
|
84
84
|
* @internal
|
|
85
85
|
*/
|
|
86
|
-
this.animationState =
|
|
86
|
+
this.animationState = 'closed';
|
|
87
87
|
/**
|
|
88
88
|
* @internal
|
|
89
89
|
*/
|
|
@@ -112,13 +112,13 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
112
112
|
if (event.target !== this) {
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
if (this.pendingAnimation ===
|
|
116
|
-
this.animationState ===
|
|
115
|
+
if (this.pendingAnimation === 'opening' &&
|
|
116
|
+
this.animationState === 'opening') {
|
|
117
117
|
this.completeOpen();
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
if (this.pendingAnimation ===
|
|
121
|
-
this.animationState ===
|
|
120
|
+
if (this.pendingAnimation === 'closing' &&
|
|
121
|
+
this.animationState === 'closing') {
|
|
122
122
|
this.completeClose();
|
|
123
123
|
}
|
|
124
124
|
};
|
|
@@ -128,7 +128,7 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
// Dispatch a custom event with scroll information
|
|
131
|
-
this.dispatchEvent(new CustomEvent(
|
|
131
|
+
this.dispatchEvent(new CustomEvent('body-scroll', {
|
|
132
132
|
bubbles: true,
|
|
133
133
|
composed: true,
|
|
134
134
|
detail: {
|
|
@@ -144,18 +144,18 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
144
144
|
}
|
|
145
145
|
connectedCallback() {
|
|
146
146
|
super.connectedCallback();
|
|
147
|
-
this.classList.add(
|
|
148
|
-
this.addEventListener(
|
|
149
|
-
this.addEventListener(
|
|
147
|
+
this.classList.add('panel', 'panel-container');
|
|
148
|
+
this.addEventListener('animationstart', this.handleAnimationStart);
|
|
149
|
+
this.addEventListener('animationend', this.handleAnimationEnd);
|
|
150
150
|
this.setupResizeObserver();
|
|
151
151
|
}
|
|
152
152
|
disconnectedCallback() {
|
|
153
|
-
const panelBody = this.renderRoot.querySelector(
|
|
153
|
+
const panelBody = this.renderRoot.querySelector('.panel-body');
|
|
154
154
|
if (panelBody) {
|
|
155
|
-
panelBody.removeEventListener(
|
|
155
|
+
panelBody.removeEventListener('scroll', this.handleBodyScroll);
|
|
156
156
|
}
|
|
157
|
-
this.removeEventListener(
|
|
158
|
-
this.removeEventListener(
|
|
157
|
+
this.removeEventListener('animationstart', this.handleAnimationStart);
|
|
158
|
+
this.removeEventListener('animationend', this.handleAnimationEnd);
|
|
159
159
|
this.clearAnimationFallback();
|
|
160
160
|
this.pendingAnimation = null;
|
|
161
161
|
this.cleanupResizeObserver();
|
|
@@ -164,61 +164,61 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
164
164
|
firstUpdated(changedProps) {
|
|
165
165
|
super.firstUpdated(changedProps);
|
|
166
166
|
if (this.open && !this.inert) {
|
|
167
|
-
this.animationState =
|
|
167
|
+
this.animationState = 'open';
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
|
-
this.animationState =
|
|
171
|
-
}
|
|
172
|
-
this.classList.toggle(
|
|
173
|
-
this.classList.toggle(
|
|
174
|
-
this.classList.toggle(
|
|
175
|
-
this.classList.toggle(
|
|
176
|
-
this.classList.toggle(
|
|
177
|
-
this.classList.toggle(
|
|
170
|
+
this.animationState = 'closed';
|
|
171
|
+
}
|
|
172
|
+
this.classList.toggle('panel--with-chat-header', this.showChatHeader);
|
|
173
|
+
this.classList.toggle('panel--with-frame', this.showFrame);
|
|
174
|
+
this.classList.toggle('panel--full-width', this.fullWidth);
|
|
175
|
+
this.classList.toggle('panel--no-scroll', this.noScroll);
|
|
176
|
+
this.classList.toggle('panel--ai-theme', this.aiEnabled);
|
|
177
|
+
this.classList.toggle('panel--body--no-padding', this.bodyNoPadding);
|
|
178
178
|
this.updateHostClasses();
|
|
179
179
|
this.observeSlotContent();
|
|
180
180
|
// Add scroll listener to panel-body
|
|
181
|
-
const panelBody = this.renderRoot.querySelector(
|
|
181
|
+
const panelBody = this.renderRoot.querySelector('.panel-body');
|
|
182
182
|
if (panelBody) {
|
|
183
|
-
panelBody.addEventListener(
|
|
183
|
+
panelBody.addEventListener('scroll', this.handleBodyScroll);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
updated(changedProperties) {
|
|
187
|
-
if (changedProperties.has(
|
|
187
|
+
if (changedProperties.has('open') || changedProperties.has('inert')) {
|
|
188
188
|
this.updateVisibilityState();
|
|
189
189
|
}
|
|
190
|
-
if (changedProperties.has(
|
|
191
|
-
this.classList.toggle(
|
|
190
|
+
if (changedProperties.has('showChatHeader')) {
|
|
191
|
+
this.classList.toggle('panel--with-chat-header', this.showChatHeader);
|
|
192
192
|
}
|
|
193
|
-
if (changedProperties.has(
|
|
194
|
-
this.classList.toggle(
|
|
193
|
+
if (changedProperties.has('showFrame')) {
|
|
194
|
+
this.classList.toggle('panel--with-frame', this.showFrame);
|
|
195
195
|
}
|
|
196
|
-
if (changedProperties.has(
|
|
197
|
-
this.classList.toggle(
|
|
196
|
+
if (changedProperties.has('fullWidth')) {
|
|
197
|
+
this.classList.toggle('panel--full-width', this.fullWidth);
|
|
198
198
|
}
|
|
199
|
-
if (changedProperties.has(
|
|
200
|
-
this.classList.toggle(
|
|
199
|
+
if (changedProperties.has('aiEnabled')) {
|
|
200
|
+
this.classList.toggle('panel--ai-theme', this.aiEnabled);
|
|
201
201
|
}
|
|
202
|
-
if (changedProperties.has(
|
|
203
|
-
this.classList.toggle(
|
|
202
|
+
if (changedProperties.has('bodyNoPadding')) {
|
|
203
|
+
this.classList.toggle('panel--body--no-padding', this.bodyNoPadding);
|
|
204
204
|
}
|
|
205
|
-
if (changedProperties.has(
|
|
206
|
-
changedProperties.has(
|
|
205
|
+
if (changedProperties.has('animationOnOpen') ||
|
|
206
|
+
changedProperties.has('animationOnClose')) {
|
|
207
207
|
this.updateHostClasses();
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
updateVisibilityState() {
|
|
211
211
|
const shouldBeOpen = this.open && !this.inert;
|
|
212
212
|
if (shouldBeOpen) {
|
|
213
|
-
if (this.animationState ===
|
|
213
|
+
if (this.animationState === 'open' || this.animationState === 'opening') {
|
|
214
214
|
this.updateHostClasses();
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
this.openPanel();
|
|
218
218
|
}
|
|
219
219
|
else {
|
|
220
|
-
if (this.animationState ===
|
|
221
|
-
this.animationState ===
|
|
220
|
+
if (this.animationState === 'closed' ||
|
|
221
|
+
this.animationState === 'closing') {
|
|
222
222
|
this.updateHostClasses();
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
@@ -226,11 +226,11 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
openPanel() {
|
|
229
|
-
this.dispatchEvent(new CustomEvent(
|
|
229
|
+
this.dispatchEvent(new CustomEvent('openstart', { bubbles: true, composed: true }));
|
|
230
230
|
this.clearAnimationFallback();
|
|
231
|
-
this.pendingAnimation =
|
|
231
|
+
this.pendingAnimation = 'opening';
|
|
232
232
|
this.animationStarted = false;
|
|
233
|
-
this.animationState =
|
|
233
|
+
this.animationState = 'opening';
|
|
234
234
|
this.updateHostClasses();
|
|
235
235
|
if (!this.shouldWaitForAnimation(this.animationOnOpen)) {
|
|
236
236
|
this.completeOpen();
|
|
@@ -239,11 +239,11 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
239
239
|
this.scheduleAnimationFallback();
|
|
240
240
|
}
|
|
241
241
|
closePanel() {
|
|
242
|
-
this.dispatchEvent(new CustomEvent(
|
|
242
|
+
this.dispatchEvent(new CustomEvent('closestart', { bubbles: true, composed: true }));
|
|
243
243
|
this.clearAnimationFallback();
|
|
244
|
-
this.pendingAnimation =
|
|
244
|
+
this.pendingAnimation = 'closing';
|
|
245
245
|
this.animationStarted = false;
|
|
246
|
-
this.animationState =
|
|
246
|
+
this.animationState = 'closing';
|
|
247
247
|
this.updateHostClasses();
|
|
248
248
|
if (!this.shouldWaitForAnimation(this.animationOnClose)) {
|
|
249
249
|
this.completeClose();
|
|
@@ -253,44 +253,44 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
253
253
|
}
|
|
254
254
|
completeOpen() {
|
|
255
255
|
this.clearAnimationFallback();
|
|
256
|
-
if (this.pendingAnimation ===
|
|
256
|
+
if (this.pendingAnimation === 'opening') {
|
|
257
257
|
this.pendingAnimation = null;
|
|
258
258
|
}
|
|
259
|
-
if (this.animationState !==
|
|
259
|
+
if (this.animationState !== 'opening') {
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
262
|
this.animationStarted = false;
|
|
263
|
-
this.animationState =
|
|
263
|
+
this.animationState = 'open';
|
|
264
264
|
this.updateHostClasses();
|
|
265
|
-
this.dispatchEvent(new CustomEvent(
|
|
265
|
+
this.dispatchEvent(new CustomEvent('openend', { bubbles: true, composed: true }));
|
|
266
266
|
}
|
|
267
267
|
completeClose() {
|
|
268
268
|
this.clearAnimationFallback();
|
|
269
|
-
if (this.pendingAnimation ===
|
|
269
|
+
if (this.pendingAnimation === 'closing') {
|
|
270
270
|
this.pendingAnimation = null;
|
|
271
271
|
}
|
|
272
|
-
if (this.animationState !==
|
|
272
|
+
if (this.animationState !== 'closing') {
|
|
273
273
|
return;
|
|
274
274
|
}
|
|
275
275
|
this.animationStarted = false;
|
|
276
|
-
this.animationState =
|
|
276
|
+
this.animationState = 'closed';
|
|
277
277
|
this.updateHostClasses();
|
|
278
|
-
this.dispatchEvent(new CustomEvent(
|
|
278
|
+
this.dispatchEvent(new CustomEvent('closeend', { bubbles: true, composed: true }));
|
|
279
279
|
}
|
|
280
280
|
updateHostClasses() {
|
|
281
|
-
this.classList.toggle(
|
|
282
|
-
this.classList.toggle(
|
|
283
|
-
this.classList.toggle(
|
|
284
|
-
this.updateAnimationClass(
|
|
285
|
-
this.updateAnimationClass(
|
|
281
|
+
this.classList.toggle('panel-container--animating', this.animationState === 'opening' || this.animationState === 'closing');
|
|
282
|
+
this.classList.toggle('panel--open', this.animationState === 'open');
|
|
283
|
+
this.classList.toggle('panel--closed', this.animationState === 'closed');
|
|
284
|
+
this.updateAnimationClass('opening', this.animationOnOpen, this.animationState === 'opening');
|
|
285
|
+
this.updateAnimationClass('closing', this.animationOnClose, this.animationState === 'closing');
|
|
286
286
|
}
|
|
287
287
|
updateAnimationClass(type, animation, shouldApply) {
|
|
288
288
|
const prefix = `panel--${type}--`;
|
|
289
|
-
if (type ===
|
|
289
|
+
if (type === 'opening' && this.currentOpeningClass) {
|
|
290
290
|
this.classList.remove(this.currentOpeningClass);
|
|
291
291
|
this.currentOpeningClass = undefined;
|
|
292
292
|
}
|
|
293
|
-
if (type ===
|
|
293
|
+
if (type === 'closing' && this.currentClosingClass) {
|
|
294
294
|
this.classList.remove(this.currentClosingClass);
|
|
295
295
|
this.currentClosingClass = undefined;
|
|
296
296
|
}
|
|
@@ -299,7 +299,7 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
299
299
|
}
|
|
300
300
|
const className = `${prefix}${animation}`;
|
|
301
301
|
this.classList.add(className);
|
|
302
|
-
if (type ===
|
|
302
|
+
if (type === 'opening') {
|
|
303
303
|
this.currentOpeningClass = className;
|
|
304
304
|
}
|
|
305
305
|
else {
|
|
@@ -310,17 +310,17 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
310
310
|
if (!animation) {
|
|
311
311
|
return false;
|
|
312
312
|
}
|
|
313
|
-
if (typeof window ===
|
|
313
|
+
if (typeof window === 'undefined') {
|
|
314
314
|
return false;
|
|
315
315
|
}
|
|
316
|
-
if (typeof window.matchMedia ===
|
|
317
|
-
window.matchMedia(
|
|
316
|
+
if (typeof window.matchMedia === 'function' &&
|
|
317
|
+
window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
318
318
|
return false;
|
|
319
319
|
}
|
|
320
320
|
return true;
|
|
321
321
|
}
|
|
322
322
|
scheduleAnimationFallback() {
|
|
323
|
-
if (typeof window ===
|
|
323
|
+
if (typeof window === 'undefined') {
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
this.clearAnimationFallback();
|
|
@@ -328,24 +328,24 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
328
328
|
if (this.animationStarted) {
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
|
-
if (this.pendingAnimation ===
|
|
331
|
+
if (this.pendingAnimation === 'opening') {
|
|
332
332
|
this.completeOpen();
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (this.pendingAnimation ===
|
|
335
|
+
if (this.pendingAnimation === 'closing') {
|
|
336
336
|
this.completeClose();
|
|
337
337
|
}
|
|
338
338
|
}, ANIMATION_START_DETECTION_DELAY_MS);
|
|
339
339
|
}
|
|
340
340
|
clearAnimationFallback() {
|
|
341
|
-
if (this.animationFallbackId !== null && typeof window !==
|
|
341
|
+
if (this.animationFallbackId !== null && typeof window !== 'undefined') {
|
|
342
342
|
window.clearTimeout(this.animationFallbackId);
|
|
343
343
|
}
|
|
344
344
|
this.animationFallbackId = null;
|
|
345
345
|
}
|
|
346
346
|
setupResizeObserver() {
|
|
347
|
-
if (typeof window ===
|
|
348
|
-
typeof ResizeObserver ===
|
|
347
|
+
if (typeof window === 'undefined' ||
|
|
348
|
+
typeof ResizeObserver === 'undefined') {
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
351
|
this.resizeObserver = new ResizeObserver((entries) => {
|
|
@@ -366,12 +366,12 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
getMessagesMaxWidth() {
|
|
369
|
-
if (typeof window ===
|
|
369
|
+
if (typeof window === 'undefined') {
|
|
370
370
|
return MESSAGES_MAX_WIDTH_FALLBACK;
|
|
371
371
|
}
|
|
372
372
|
const computedStyle = window.getComputedStyle(this);
|
|
373
373
|
const customPropValue = computedStyle
|
|
374
|
-
.getPropertyValue(
|
|
374
|
+
.getPropertyValue('--cds-aichat-messages-max-width')
|
|
375
375
|
.trim();
|
|
376
376
|
if (customPropValue) {
|
|
377
377
|
// Parse the value (e.g., "672px" -> 672)
|
|
@@ -385,7 +385,7 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
385
385
|
updateWidthClass(width) {
|
|
386
386
|
const maxWidth = this.getMessagesMaxWidth();
|
|
387
387
|
const isNarrow = width <= maxWidth;
|
|
388
|
-
this.classList.toggle(
|
|
388
|
+
this.classList.toggle('panel--with-less-than-messages-max-width', isNarrow);
|
|
389
389
|
}
|
|
390
390
|
hasSlotContent(slotName) {
|
|
391
391
|
const slot = this.renderRoot.querySelector(`slot[name="${slotName}"]`);
|
|
@@ -416,25 +416,25 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
416
416
|
// Observe slot changes
|
|
417
417
|
const slots = CDSAIChatPanel_1.OBSERVED_SLOTS.map(({ name }) => this.renderRoot.querySelector(`slot[name="${name}"]`)).filter((slot) => slot !== null);
|
|
418
418
|
slots.forEach((slot) => {
|
|
419
|
-
slot.addEventListener(
|
|
419
|
+
slot.addEventListener('slotchange', updateSlotStates);
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
render() {
|
|
423
423
|
const headerClasses = [
|
|
424
|
-
|
|
425
|
-
this.hasHeaderContent ?
|
|
424
|
+
'panel-header',
|
|
425
|
+
this.hasHeaderContent ? 'has-content' : '',
|
|
426
426
|
]
|
|
427
427
|
.filter(Boolean)
|
|
428
|
-
.join(
|
|
429
|
-
const bodyClasses = [
|
|
428
|
+
.join(' ');
|
|
429
|
+
const bodyClasses = ['panel-body', this.hasBodyContent ? 'has-content' : '']
|
|
430
430
|
.filter(Boolean)
|
|
431
|
-
.join(
|
|
431
|
+
.join(' ');
|
|
432
432
|
const footerClasses = [
|
|
433
|
-
|
|
434
|
-
this.hasFooterContent ?
|
|
433
|
+
'panel-footer',
|
|
434
|
+
this.hasFooterContent ? 'has-content' : '',
|
|
435
435
|
]
|
|
436
436
|
.filter(Boolean)
|
|
437
|
-
.join(
|
|
437
|
+
.join(' ');
|
|
438
438
|
return html `
|
|
439
439
|
<div
|
|
440
440
|
class="panel-content"
|
|
@@ -442,8 +442,7 @@ let CDSAIChatPanel = CDSAIChatPanel_1 = class CDSAIChatPanel extends LitElement
|
|
|
442
442
|
aria-modal="${this.fullWidth}"
|
|
443
443
|
aria-hidden="${!this.open}"
|
|
444
444
|
aria-label=${this.panelAriaLabel || nothing}
|
|
445
|
-
aria-labelledby=${this.panelAriaLabelledby || nothing}
|
|
446
|
-
>
|
|
445
|
+
aria-labelledby=${this.panelAriaLabelledby || nothing}>
|
|
447
446
|
<div class=${headerClasses}>
|
|
448
447
|
<slot name="header"></slot>
|
|
449
448
|
</div>
|
|
@@ -462,9 +461,9 @@ CDSAIChatPanel.styles = [commonStyles, styles];
|
|
|
462
461
|
* @internal
|
|
463
462
|
*/
|
|
464
463
|
CDSAIChatPanel.OBSERVED_SLOTS = [
|
|
465
|
-
{ name:
|
|
466
|
-
{ name:
|
|
467
|
-
{ name:
|
|
464
|
+
{ name: 'header', stateKey: 'hasHeaderContent' },
|
|
465
|
+
{ name: 'body', stateKey: 'hasBodyContent' },
|
|
466
|
+
{ name: 'footer', stateKey: 'hasFooterContent' },
|
|
468
467
|
];
|
|
469
468
|
__decorate([
|
|
470
469
|
property({ type: Boolean, reflect: true })
|
|
@@ -473,37 +472,37 @@ __decorate([
|
|
|
473
472
|
property({ type: Number, reflect: true })
|
|
474
473
|
], CDSAIChatPanel.prototype, "priority", void 0);
|
|
475
474
|
__decorate([
|
|
476
|
-
property({ type: Boolean, attribute:
|
|
475
|
+
property({ type: Boolean, attribute: 'full-width', reflect: true })
|
|
477
476
|
], CDSAIChatPanel.prototype, "fullWidth", void 0);
|
|
478
477
|
__decorate([
|
|
479
|
-
property({ type: Boolean, attribute:
|
|
478
|
+
property({ type: Boolean, attribute: 'no-scroll', reflect: true })
|
|
480
479
|
], CDSAIChatPanel.prototype, "noScroll", void 0);
|
|
481
480
|
__decorate([
|
|
482
|
-
property({ type: Boolean, attribute:
|
|
481
|
+
property({ type: Boolean, attribute: 'show-chat-header', reflect: true })
|
|
483
482
|
], CDSAIChatPanel.prototype, "showChatHeader", void 0);
|
|
484
483
|
__decorate([
|
|
485
|
-
property({ type: Boolean, attribute:
|
|
484
|
+
property({ type: Boolean, attribute: 'show-frame', reflect: true })
|
|
486
485
|
], CDSAIChatPanel.prototype, "showFrame", void 0);
|
|
487
486
|
__decorate([
|
|
488
|
-
property({ type: Boolean, attribute:
|
|
487
|
+
property({ type: Boolean, attribute: 'ai-enabled', reflect: true })
|
|
489
488
|
], CDSAIChatPanel.prototype, "aiEnabled", void 0);
|
|
490
489
|
__decorate([
|
|
491
|
-
property({ type: Boolean, attribute:
|
|
490
|
+
property({ type: Boolean, attribute: 'body-no-padding', reflect: true })
|
|
492
491
|
], CDSAIChatPanel.prototype, "bodyNoPadding", void 0);
|
|
493
492
|
__decorate([
|
|
494
|
-
property({ type: String, attribute:
|
|
493
|
+
property({ type: String, attribute: 'animation-on-open', reflect: true })
|
|
495
494
|
], CDSAIChatPanel.prototype, "animationOnOpen", void 0);
|
|
496
495
|
__decorate([
|
|
497
|
-
property({ type: String, attribute:
|
|
496
|
+
property({ type: String, attribute: 'animation-on-close', reflect: true })
|
|
498
497
|
], CDSAIChatPanel.prototype, "animationOnClose", void 0);
|
|
499
498
|
__decorate([
|
|
500
499
|
property({ type: Boolean, reflect: true })
|
|
501
500
|
], CDSAIChatPanel.prototype, "inert", void 0);
|
|
502
501
|
__decorate([
|
|
503
|
-
property({ type: String, attribute:
|
|
502
|
+
property({ type: String, attribute: 'panel-aria-label' })
|
|
504
503
|
], CDSAIChatPanel.prototype, "panelAriaLabel", void 0);
|
|
505
504
|
__decorate([
|
|
506
|
-
property({ type: String, attribute:
|
|
505
|
+
property({ type: String, attribute: 'panel-aria-labelledby' })
|
|
507
506
|
], CDSAIChatPanel.prototype, "panelAriaLabelledby", void 0);
|
|
508
507
|
CDSAIChatPanel = CDSAIChatPanel_1 = __decorate([
|
|
509
508
|
carbonElement(`${prefix}-panel`)
|
|
@@ -1 +1 @@
|
|
|
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MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE;AACjC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,qBAAA,EAAA,MAAA,CAAA;AAzFzB,cAAc,GAAA,gBAAA,GAAA,UAAA,CAAA;AADnB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAQ;AAC1B,CAAA,EAAA,cAAc,CAgmBnB;AAED,0BAAe,cAAc;;;;"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { WidthState, BodyState } from
|
|
9
|
+
import { WidthState, BodyState } from './types.js';
|
|
10
10
|
/**
|
|
11
11
|
* Manages all resize observation logic for the chat shell.
|
|
12
12
|
* Handles header height, input/messages width, and main content body width observations.
|
|
@@ -35,10 +35,10 @@ class ResizeObserverManager {
|
|
|
35
35
|
* Observe header height changes
|
|
36
36
|
*/
|
|
37
37
|
observeHeaderHeight(onHeightChange) {
|
|
38
|
-
if (typeof ResizeObserver ===
|
|
38
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
const headerWrapper = this.shellRoot.querySelector(
|
|
41
|
+
const headerWrapper = this.shellRoot.querySelector('.header-with-header-after');
|
|
42
42
|
if (!headerWrapper) {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
@@ -75,7 +75,7 @@ class ResizeObserverManager {
|
|
|
75
75
|
* Observe input and messages width to determine if at max width
|
|
76
76
|
*/
|
|
77
77
|
observeInputAndMessagesWidth(onWidthChange, onInitialMeasurement) {
|
|
78
|
-
if (typeof ResizeObserver ===
|
|
78
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
79
79
|
onInitialMeasurement?.();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
@@ -117,18 +117,18 @@ class ResizeObserverManager {
|
|
|
117
117
|
* Observe main content body width to determine history visibility
|
|
118
118
|
*/
|
|
119
119
|
observeMainContentBodyWidth(showHistory, onVisibilityChange, onInitialMeasurement) {
|
|
120
|
-
if (typeof ResizeObserver ===
|
|
120
|
+
if (typeof ResizeObserver === 'undefined' || !showHistory) {
|
|
121
121
|
onInitialMeasurement?.();
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
const mainContentBody = this.shellRoot.querySelector(
|
|
124
|
+
const mainContentBody = this.shellRoot.querySelector('.main-content-body');
|
|
125
125
|
if (!mainContentBody) {
|
|
126
126
|
onInitialMeasurement?.();
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
const updateHistoryVisibility = (width) => {
|
|
130
|
-
const messagesMinWidth = this.getCssLengthFromProperty(
|
|
131
|
-
const historyWidth = this.getCssLengthFromProperty(
|
|
130
|
+
const messagesMinWidth = this.getCssLengthFromProperty('--cds-aichat-messages-min-width', 320);
|
|
131
|
+
const historyWidth = this.getCssLengthFromProperty('--cds-aichat-history-width', 320);
|
|
132
132
|
const requiredWidth = messagesMinWidth + historyWidth;
|
|
133
133
|
const shouldRenderHistory = width >= requiredWidth;
|
|
134
134
|
onVisibilityChange({ shouldRenderHistory, width });
|
|
@@ -179,7 +179,7 @@ class ResizeObserverManager {
|
|
|
179
179
|
* Get the messages max width from CSS
|
|
180
180
|
*/
|
|
181
181
|
getMessagesMaxWidth() {
|
|
182
|
-
const value = this.getCssLengthFromProperty(
|
|
182
|
+
const value = this.getCssLengthFromProperty('--cds-aichat-messages-max-width', 672);
|
|
183
183
|
// Cache the value for performance
|
|
184
184
|
const parsed = parseFloat(String(value));
|
|
185
185
|
this.lastKnownMessagesMaxWidth = isNaN(parsed) ? 672 : parsed;
|
|
@@ -201,7 +201,7 @@ class ResizeObserverManager {
|
|
|
201
201
|
* Observe CSS custom properties for changes
|
|
202
202
|
*/
|
|
203
203
|
observeCssProperties(onPropertyChange) {
|
|
204
|
-
if (typeof MutationObserver ===
|
|
204
|
+
if (typeof MutationObserver === 'undefined') {
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
207
|
this.cssPropertyObserver = new MutationObserver(() => {
|
|
@@ -211,7 +211,7 @@ class ResizeObserverManager {
|
|
|
211
211
|
});
|
|
212
212
|
this.cssPropertyObserver.observe(this.hostElement, {
|
|
213
213
|
attributes: true,
|
|
214
|
-
attributeFilter: [
|
|
214
|
+
attributeFilter: ['style'],
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { LitElement, PropertyValues } from
|
|
10
|
-
import type { StartOrEnd } from
|
|
11
|
-
import
|
|
9
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
10
|
+
import type { StartOrEnd } from './types.js';
|
|
11
|
+
import './panel.js';
|
|
12
12
|
declare class CDSAIChatShell extends LitElement {
|
|
13
13
|
static styles: any[];
|
|
14
14
|
/**
|
|
@@ -23,27 +23,27 @@ declare class CDSAIChatShell extends LitElement {
|
|
|
23
23
|
* Sets the corner style for all corners. Individual corner-* attributes override this value.
|
|
24
24
|
* Values: "round" or "square". Defaults to "square".
|
|
25
25
|
*/
|
|
26
|
-
cornerAll:
|
|
26
|
+
cornerAll: 'round' | 'square';
|
|
27
27
|
/**
|
|
28
28
|
* Controls the start-start corner (top-left in LTR, top-right in RTL).
|
|
29
29
|
* Values: "round" or "square". Overrides cornerAll if set.
|
|
30
30
|
*/
|
|
31
|
-
cornerStartStart?:
|
|
31
|
+
cornerStartStart?: 'round' | 'square';
|
|
32
32
|
/**
|
|
33
33
|
* Controls the start-end corner (top-right in LTR, top-left in RTL).
|
|
34
34
|
* Values: "round" or "square". Overrides cornerAll if set.
|
|
35
35
|
*/
|
|
36
|
-
cornerStartEnd?:
|
|
36
|
+
cornerStartEnd?: 'round' | 'square';
|
|
37
37
|
/**
|
|
38
38
|
* Controls the end-start corner (bottom-left in LTR, bottom-right in RTL).
|
|
39
39
|
* Values: "round" or "square". Overrides cornerAll if set.
|
|
40
40
|
*/
|
|
41
|
-
cornerEndStart?:
|
|
41
|
+
cornerEndStart?: 'round' | 'square';
|
|
42
42
|
/**
|
|
43
43
|
* Controls the end-end corner (bottom-right in LTR, bottom-left in RTL).
|
|
44
44
|
* Values: "round" or "square". Overrides cornerAll if set.
|
|
45
45
|
*/
|
|
46
|
-
cornerEndEnd?:
|
|
46
|
+
cornerEndEnd?: 'round' | 'square';
|
|
47
47
|
/**
|
|
48
48
|
* Shows the history panel in the chat shell
|
|
49
49
|
*/
|