@carbon/ai-chat-components 1.9.0-alpha.0 → 1.9.0-rc.1
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 +2466 -1911
- 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 +211 -112
- 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 +20 -9
- package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es/components/markdown/src/markdown-renderer.js +97 -85
- 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 +110 -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 +68 -66
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es/components/markdown/src/utils/slot-names.d.ts +1 -0
- package/es/components/markdown/src/utils/slot-names.js +83 -0
- package/es/components/markdown/src/utils/slot-names.js.map +1 -0
- 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 +175 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +494 -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 +28 -10
- package/es/components/prompt-line/src/autocomplete-controller.js +162 -52
- 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/send-control.scss.js +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 +24 -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 +46 -6
- 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 +52 -36
- 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 +9 -4
- package/es/react/hooks/useChatAutocomplete.js +50 -19
- 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 +211 -112
- 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 +20 -9
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es-custom/components/markdown/src/markdown-renderer.js +97 -85
- 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 +110 -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 +68 -66
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es-custom/components/markdown/src/utils/slot-names.d.ts +1 -0
- package/es-custom/components/markdown/src/utils/slot-names.js +83 -0
- package/es-custom/components/markdown/src/utils/slot-names.js.map +1 -0
- 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 +175 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +494 -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 +28 -10
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +162 -52
- 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/send-control.scss.js +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 +24 -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 +46 -6
- 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 +52 -36
- 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 +9 -4
- package/es-custom/react/hooks/useChatAutocomplete.js +50 -19
- 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
|
@@ -29,7 +29,7 @@ import { setVarsForSelector, adoptOnRoot, clearSelector } from '../../shared/dyn
|
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/
|
|
31
31
|
const LOADING_TIMEOUT_MS = 10000; // 10 seconds
|
|
32
|
-
const INSTANCE_ATTR =
|
|
32
|
+
const INSTANCE_ATTR = 'data-cds-aichat-video-player-id';
|
|
33
33
|
let instanceCounter = 0;
|
|
34
34
|
/**
|
|
35
35
|
* Video player component that supports multiple video sources
|
|
@@ -45,11 +45,11 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
45
45
|
/**
|
|
46
46
|
* Video source URL (required)
|
|
47
47
|
*/
|
|
48
|
-
this.source =
|
|
48
|
+
this.source = '';
|
|
49
49
|
/**
|
|
50
50
|
* ARIA label for accessibility
|
|
51
51
|
*/
|
|
52
|
-
this.ariaLabel =
|
|
52
|
+
this.ariaLabel = 'Video player';
|
|
53
53
|
/**
|
|
54
54
|
* Whether the video should be playing
|
|
55
55
|
*/
|
|
@@ -65,27 +65,27 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
65
65
|
/**
|
|
66
66
|
* Generic error message to display when video fails to load
|
|
67
67
|
*/
|
|
68
|
-
this.errorMessage =
|
|
68
|
+
this.errorMessage = 'Failed to load video';
|
|
69
69
|
/**
|
|
70
70
|
* Status message announced when video starts loading
|
|
71
71
|
*/
|
|
72
|
-
this.loadingStatusMessage =
|
|
72
|
+
this.loadingStatusMessage = 'Video player loading';
|
|
73
73
|
/**
|
|
74
74
|
* Status message announced when video is ready
|
|
75
75
|
*/
|
|
76
|
-
this.readyStatusMessage =
|
|
76
|
+
this.readyStatusMessage = 'Video player ready';
|
|
77
77
|
/**
|
|
78
78
|
* Label suffix for loading state (e.g., "Loading")
|
|
79
79
|
*/
|
|
80
|
-
this.loadingLabel =
|
|
80
|
+
this.loadingLabel = 'Loading';
|
|
81
81
|
/**
|
|
82
82
|
* Label suffix for ready state (e.g., "Ready")
|
|
83
83
|
*/
|
|
84
|
-
this.readyLabel =
|
|
84
|
+
this.readyLabel = 'Ready';
|
|
85
85
|
/**
|
|
86
86
|
* Label suffix for error state (e.g., "Error")
|
|
87
87
|
*/
|
|
88
|
-
this.errorLabel =
|
|
88
|
+
this.errorLabel = 'Error';
|
|
89
89
|
/**
|
|
90
90
|
* Internal state: loading status
|
|
91
91
|
*/
|
|
@@ -101,7 +101,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
101
101
|
/**
|
|
102
102
|
* Internal state: current status message for screen readers
|
|
103
103
|
*/
|
|
104
|
-
this.statusMessage =
|
|
104
|
+
this.statusMessage = '';
|
|
105
105
|
this.provider = null;
|
|
106
106
|
this.loadingTimeout = null;
|
|
107
107
|
this.isLoadingVideo = false;
|
|
@@ -112,7 +112,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
112
112
|
}
|
|
113
113
|
syncAspectRatioVar() {
|
|
114
114
|
setVarsForSelector(this.instanceSelector, {
|
|
115
|
-
|
|
115
|
+
'--video-player-aspect-ratio': `${this.aspectRatioPercentage}%`,
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
@@ -159,13 +159,13 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
159
159
|
// Set loading timeout
|
|
160
160
|
this.loadingTimeout = setTimeout(() => {
|
|
161
161
|
if (this.isLoading) {
|
|
162
|
-
this.handleError(new Error(
|
|
162
|
+
this.handleError(new Error('Video loading timeout'));
|
|
163
163
|
}
|
|
164
164
|
}, LOADING_TIMEOUT_MS);
|
|
165
165
|
// Create provider
|
|
166
166
|
this.provider = this.createProvider(this.source);
|
|
167
167
|
if (!this.provider) {
|
|
168
|
-
throw new Error(
|
|
168
|
+
throw new Error('Unsupported video source');
|
|
169
169
|
}
|
|
170
170
|
// Set up event handlers
|
|
171
171
|
this.provider.onReady(() => {
|
|
@@ -194,7 +194,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
194
194
|
await this.provider.load(this.source);
|
|
195
195
|
}
|
|
196
196
|
catch (error) {
|
|
197
|
-
this.handleError(error instanceof Error ? error : new Error(
|
|
197
|
+
this.handleError(error instanceof Error ? error : new Error('Unknown error'));
|
|
198
198
|
}
|
|
199
199
|
finally {
|
|
200
200
|
this.isLoadingVideo = false;
|
|
@@ -211,7 +211,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
211
211
|
clearTimeout(this.loadingTimeout);
|
|
212
212
|
this.loadingTimeout = null;
|
|
213
213
|
}
|
|
214
|
-
this.dispatchEvent(new CustomEvent(
|
|
214
|
+
this.dispatchEvent(new CustomEvent('cds-custom-aichat-video-player-ready', {
|
|
215
215
|
bubbles: true,
|
|
216
216
|
composed: true,
|
|
217
217
|
}));
|
|
@@ -220,7 +220,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
220
220
|
* Handle video play event
|
|
221
221
|
*/
|
|
222
222
|
handlePlay() {
|
|
223
|
-
this.dispatchEvent(new CustomEvent(
|
|
223
|
+
this.dispatchEvent(new CustomEvent('cds-custom-aichat-video-player-play', {
|
|
224
224
|
bubbles: true,
|
|
225
225
|
composed: true,
|
|
226
226
|
}));
|
|
@@ -229,7 +229,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
229
229
|
* Handle video pause event
|
|
230
230
|
*/
|
|
231
231
|
handlePause() {
|
|
232
|
-
this.dispatchEvent(new CustomEvent(
|
|
232
|
+
this.dispatchEvent(new CustomEvent('cds-custom-aichat-video-player-pause', {
|
|
233
233
|
bubbles: true,
|
|
234
234
|
composed: true,
|
|
235
235
|
}));
|
|
@@ -240,13 +240,13 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
240
240
|
handleError(_error) {
|
|
241
241
|
this.isLoading = false;
|
|
242
242
|
this.hasError = true;
|
|
243
|
-
this.statusMessage =
|
|
243
|
+
this.statusMessage = ''; // Clear to avoid duplicate announcements with error div
|
|
244
244
|
if (this.loadingTimeout) {
|
|
245
245
|
clearTimeout(this.loadingTimeout);
|
|
246
246
|
this.loadingTimeout = null;
|
|
247
247
|
}
|
|
248
248
|
// Always use the generic error message, regardless of the actual error
|
|
249
|
-
this.dispatchEvent(new CustomEvent(
|
|
249
|
+
this.dispatchEvent(new CustomEvent('cds-custom-aichat-video-player-error', {
|
|
250
250
|
bubbles: true,
|
|
251
251
|
composed: true,
|
|
252
252
|
detail: { message: this.errorMessage },
|
|
@@ -277,11 +277,11 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
277
277
|
*/
|
|
278
278
|
updated(changedProperties) {
|
|
279
279
|
super.updated(changedProperties);
|
|
280
|
-
if (changedProperties.has(
|
|
280
|
+
if (changedProperties.has('aspectRatioPercentage')) {
|
|
281
281
|
this.syncAspectRatioVar();
|
|
282
282
|
}
|
|
283
283
|
// Reload video if source changes (but not on first update, which is handled by firstUpdated)
|
|
284
|
-
if (changedProperties.has(
|
|
284
|
+
if (changedProperties.has('source') &&
|
|
285
285
|
this.source &&
|
|
286
286
|
this.providerContainer &&
|
|
287
287
|
!this.hasUpdated // Prevent duplicate load on first render
|
|
@@ -289,7 +289,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
289
289
|
this.loadVideo();
|
|
290
290
|
}
|
|
291
291
|
// Handle play/pause changes
|
|
292
|
-
if (changedProperties.has(
|
|
292
|
+
if (changedProperties.has('playing') && this.provider && this.isReady) {
|
|
293
293
|
if (this.playing) {
|
|
294
294
|
this.provider.play();
|
|
295
295
|
}
|
|
@@ -321,8 +321,7 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
321
321
|
<div
|
|
322
322
|
class="${prefix}--video-player__error"
|
|
323
323
|
role="alert"
|
|
324
|
-
aria-live="assertive"
|
|
325
|
-
>
|
|
324
|
+
aria-live="assertive">
|
|
326
325
|
<p class="${prefix}--video-player__error-message">
|
|
327
326
|
${this.errorMessage}
|
|
328
327
|
</p>
|
|
@@ -337,29 +336,26 @@ let VideoPlayer = class VideoPlayer extends LitElement {
|
|
|
337
336
|
<div
|
|
338
337
|
class="${prefix}--video-player"
|
|
339
338
|
role="region"
|
|
340
|
-
aria-label=${this.ariaLabel}
|
|
341
|
-
>
|
|
339
|
+
aria-label=${this.ariaLabel}>
|
|
342
340
|
${this.statusMessage
|
|
343
341
|
? html `
|
|
344
342
|
<div
|
|
345
343
|
class="${prefix}--video-player__status"
|
|
346
344
|
role="status"
|
|
347
345
|
aria-live="polite"
|
|
348
|
-
aria-atomic="true"
|
|
349
|
-
>
|
|
346
|
+
aria-atomic="true">
|
|
350
347
|
${this.statusMessage}
|
|
351
348
|
</div>
|
|
352
349
|
`
|
|
353
|
-
:
|
|
350
|
+
: ''}
|
|
354
351
|
<div class="${prefix}--video-player__container">
|
|
355
|
-
${this.hasError ? this.renderError() :
|
|
352
|
+
${this.hasError ? this.renderError() : ''}
|
|
356
353
|
<div
|
|
357
354
|
class="${classMap({
|
|
358
355
|
[`${prefix}--video-player__provider`]: true,
|
|
359
356
|
[`${prefix}--video-player__provider--hidden`]: this.hasError,
|
|
360
357
|
[`${prefix}--video-player__provider--ready`]: this.isReady,
|
|
361
|
-
})}"
|
|
362
|
-
></div>
|
|
358
|
+
})}"></div>
|
|
363
359
|
</div>
|
|
364
360
|
</div>
|
|
365
361
|
`;
|
|
@@ -370,34 +366,34 @@ __decorate([
|
|
|
370
366
|
property({ type: String })
|
|
371
367
|
], VideoPlayer.prototype, "source", void 0);
|
|
372
368
|
__decorate([
|
|
373
|
-
property({ type: String, attribute:
|
|
369
|
+
property({ type: String, attribute: 'aria-label' })
|
|
374
370
|
], VideoPlayer.prototype, "ariaLabel", void 0);
|
|
375
371
|
__decorate([
|
|
376
372
|
property({ type: Boolean })
|
|
377
373
|
], VideoPlayer.prototype, "playing", void 0);
|
|
378
374
|
__decorate([
|
|
379
|
-
property({ type: Number, attribute:
|
|
375
|
+
property({ type: Number, attribute: 'aspect-ratio-percentage' })
|
|
380
376
|
], VideoPlayer.prototype, "aspectRatioPercentage", void 0);
|
|
381
377
|
__decorate([
|
|
382
|
-
property({ type: Array, attribute:
|
|
378
|
+
property({ type: Array, attribute: 'subtitle-tracks' })
|
|
383
379
|
], VideoPlayer.prototype, "subtitleTracks", void 0);
|
|
384
380
|
__decorate([
|
|
385
|
-
property({ type: String, attribute:
|
|
381
|
+
property({ type: String, attribute: 'error-message' })
|
|
386
382
|
], VideoPlayer.prototype, "errorMessage", void 0);
|
|
387
383
|
__decorate([
|
|
388
|
-
property({ type: String, attribute:
|
|
384
|
+
property({ type: String, attribute: 'loading-status-message' })
|
|
389
385
|
], VideoPlayer.prototype, "loadingStatusMessage", void 0);
|
|
390
386
|
__decorate([
|
|
391
|
-
property({ type: String, attribute:
|
|
387
|
+
property({ type: String, attribute: 'ready-status-message' })
|
|
392
388
|
], VideoPlayer.prototype, "readyStatusMessage", void 0);
|
|
393
389
|
__decorate([
|
|
394
|
-
property({ type: String, attribute:
|
|
390
|
+
property({ type: String, attribute: 'loading-label' })
|
|
395
391
|
], VideoPlayer.prototype, "loadingLabel", void 0);
|
|
396
392
|
__decorate([
|
|
397
|
-
property({ type: String, attribute:
|
|
393
|
+
property({ type: String, attribute: 'ready-label' })
|
|
398
394
|
], VideoPlayer.prototype, "readyLabel", void 0);
|
|
399
395
|
__decorate([
|
|
400
|
-
property({ type: String, attribute:
|
|
396
|
+
property({ type: String, attribute: 'error-label' })
|
|
401
397
|
], VideoPlayer.prototype, "errorLabel", void 0);
|
|
402
398
|
__decorate([
|
|
403
399
|
state()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-player.js","sources":["../../../../src/components/video-player/src/video-player.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAsBH,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAEjC,MAAM,aAAa,GAAG,iCAAiC;AACvD,IAAI,eAAe,GAAG,CAAC;AAEvB;;;;;;;AAOG;AAEH,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU,CAAA;AAApC,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,MAAM,GAAG,EAAE;AAEX;;AAEG;QAEH,IAAA,CAAA,SAAS,GAAG,cAAc;AAE1B;;AAEG;QAEH,IAAA,CAAA,OAAO,GAAG,KAAK;AAEf;;AAEG;QAEH,IAAA,CAAA,qBAAqB,GAAG,KAAK;AAE7B;;AAEG;QAEH,IAAA,CAAA,cAAc,GAMT,EAAE;AAEP;;AAEG;QAEH,IAAA,CAAA,YAAY,GAAG,sBAAsB;AAErC;;AAEG;QAEH,IAAA,CAAA,oBAAoB,GAAG,sBAAsB;AAE7C;;AAEG;QAEH,IAAA,CAAA,kBAAkB,GAAG,oBAAoB;AAEzC;;AAEG;QAEH,IAAA,CAAA,YAAY,GAAG,SAAS;AAExB;;AAEG;QAEH,IAAA,CAAA,UAAU,GAAG,OAAO;AA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AAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE;AAC/B,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAMb,UAAA,CAAA;AADP,IAAA,KAAK;AACmB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAMjB,UAAA,CAAA;AADP,IAAA,KAAK;AACmB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAMjB,UAAA,CAAA;AADP,IAAA,KAAK;AACkB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAMhB,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAMnB,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,MAAM,CAAA,wBAAA,CAA0B;AACA,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,mBAAA,EAAA,MAAA,CAAA;AAvGvC,WAAW,GAAA,UAAA,CAAA;AADhB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAe;AACjC,CAAA,EAAA,WAAW,CA2ZhB;AAED,2BAAe,WAAW;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import './src/workspace-shell';
|
|
2
|
+
import './src/workspace-shell-header';
|
|
3
|
+
import './src/workspace-shell-body';
|
|
4
|
+
import './src/workspace-shell-footer';
|
|
@@ -29,7 +29,7 @@ class HeaderCollapsibleManager {
|
|
|
29
29
|
const headerSlot = this.shellRoot.querySelector('slot[name="header"]');
|
|
30
30
|
const headerElement = headerSlot?.assignedElements()[0];
|
|
31
31
|
this.hadInitialAttribute =
|
|
32
|
-
headerElement?.hasAttribute(
|
|
32
|
+
headerElement?.hasAttribute('collapsible') || false;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Start observing slot heights and managing collapsible state
|
|
@@ -68,7 +68,7 @@ class HeaderCollapsibleManager {
|
|
|
68
68
|
* Set up ResizeObserver to monitor all relevant elements
|
|
69
69
|
*/
|
|
70
70
|
setupResizeObserver() {
|
|
71
|
-
if (typeof ResizeObserver ===
|
|
71
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -103,7 +103,7 @@ class HeaderCollapsibleManager {
|
|
|
103
103
|
// Reset expanded height when slot content changes
|
|
104
104
|
this.reset();
|
|
105
105
|
};
|
|
106
|
-
headerSlot.addEventListener(
|
|
106
|
+
headerSlot.addEventListener('slotchange', this.slotChangeHandler);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
@@ -113,7 +113,7 @@ class HeaderCollapsibleManager {
|
|
|
113
113
|
if (this.slotChangeHandler) {
|
|
114
114
|
const headerSlot = this.shellRoot.querySelector('slot[name="header"]');
|
|
115
115
|
if (headerSlot) {
|
|
116
|
-
headerSlot.removeEventListener(
|
|
116
|
+
headerSlot.removeEventListener('slotchange', this.slotChangeHandler);
|
|
117
117
|
}
|
|
118
118
|
this.slotChangeHandler = undefined;
|
|
119
119
|
}
|
|
@@ -124,14 +124,14 @@ class HeaderCollapsibleManager {
|
|
|
124
124
|
calculateCollapsibleState() {
|
|
125
125
|
const totalHeight = this.hostElement.offsetHeight;
|
|
126
126
|
// Get individual slot heights
|
|
127
|
-
const toolbarHeight = this.getSlotHeight(
|
|
128
|
-
const notificationHeight = this.getSlotHeight(
|
|
129
|
-
const currentHeaderHeight = this.getSlotHeight(
|
|
130
|
-
const footerHeight = this.getSlotHeight(
|
|
127
|
+
const toolbarHeight = this.getSlotHeight('toolbar');
|
|
128
|
+
const notificationHeight = this.getSlotHeight('notification');
|
|
129
|
+
const currentHeaderHeight = this.getSlotHeight('header');
|
|
130
|
+
const footerHeight = this.getSlotHeight('footer');
|
|
131
131
|
// Store the expanded header height ONCE when we first see it expanded
|
|
132
132
|
// Never update it after that to avoid flip-flopping
|
|
133
133
|
const headerElement = this.getHeaderElement();
|
|
134
|
-
const isCurrentlyCollapsed = headerElement?.hasAttribute(
|
|
134
|
+
const isCurrentlyCollapsed = headerElement?.hasAttribute('collapsible');
|
|
135
135
|
// Only store expanded height if we don't have one yet AND header is not collapsed
|
|
136
136
|
if (!this.expandedHeaderHeight &&
|
|
137
137
|
!isCurrentlyCollapsed &&
|
|
@@ -192,7 +192,7 @@ class HeaderCollapsibleManager {
|
|
|
192
192
|
}
|
|
193
193
|
const headerSlot = this.shellRoot.querySelector('slot[name="header"]');
|
|
194
194
|
const headerElement = headerSlot?.assignedElements()[0];
|
|
195
|
-
if (!headerElement?.hasAttribute(
|
|
195
|
+
if (!headerElement?.hasAttribute('collapsible')) {
|
|
196
196
|
return false;
|
|
197
197
|
}
|
|
198
198
|
// If manager set it, it's not a manual override
|
|
@@ -205,13 +205,13 @@ class HeaderCollapsibleManager {
|
|
|
205
205
|
const headerSlot = this.shellRoot.querySelector('slot[name="header"]');
|
|
206
206
|
const headerElement = headerSlot?.assignedElements()[0];
|
|
207
207
|
if (headerElement && !this.hasManualOverride()) {
|
|
208
|
-
const currentlyHasAttr = headerElement.hasAttribute(
|
|
208
|
+
const currentlyHasAttr = headerElement.hasAttribute('collapsible');
|
|
209
209
|
if (shouldCollapse && !currentlyHasAttr) {
|
|
210
|
-
headerElement.setAttribute(
|
|
210
|
+
headerElement.setAttribute('collapsible', '');
|
|
211
211
|
this.isManagerControlled = true;
|
|
212
212
|
}
|
|
213
213
|
else if (!shouldCollapse && currentlyHasAttr) {
|
|
214
|
-
headerElement.removeAttribute(
|
|
214
|
+
headerElement.removeAttribute('collapsible');
|
|
215
215
|
this.isManagerControlled = false;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -14,7 +14,7 @@ import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
|
14
14
|
import prefix from '../../../globals/settings.js';
|
|
15
15
|
|
|
16
16
|
/*
|
|
17
|
-
* Copyright IBM Corp. 2025
|
|
17
|
+
* Copyright IBM Corp. 2025, 2026
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -33,7 +33,7 @@ let CDSAIChatWorkspaceShellBody = class CDSAIChatWorkspaceShellBody extends LitE
|
|
|
33
33
|
/**
|
|
34
34
|
* Sets default slot value to body
|
|
35
35
|
*/
|
|
36
|
-
this.slot =
|
|
36
|
+
this.slot = 'body';
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
return html ` <slot></slot> `;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
3
|
-
import { CarbonIcon } from
|
|
4
|
-
import { BUTTON_KIND } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@carbon/web-components/es-custom/components/button/button.js';
|
|
3
|
+
import { CarbonIcon } from '@carbon/web-components/es-custom/globals/internal/icon-loader-utils.js';
|
|
4
|
+
import { BUTTON_KIND } from '@carbon/web-components/es-custom/components/button/button.js';
|
|
5
5
|
export type Action = {
|
|
6
6
|
label: string;
|
|
7
7
|
id?: string;
|
|
@@ -16,7 +16,7 @@ import commonStyles from '../../../globals/scss/common.scss.js';
|
|
|
16
16
|
import styles from './workspace-shell-footer.scss.js';
|
|
17
17
|
|
|
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.
|
|
@@ -38,12 +38,12 @@ let CDSAIChatWorkspaceShellFooter = class CDSAIChatWorkspaceShellFooter extends
|
|
|
38
38
|
/**
|
|
39
39
|
* Sets default slot value to footer
|
|
40
40
|
*/
|
|
41
|
-
this.slot =
|
|
41
|
+
this.slot = 'footer';
|
|
42
42
|
this.actions = [];
|
|
43
43
|
}
|
|
44
44
|
connectedCallback() {
|
|
45
45
|
super.connectedCallback();
|
|
46
|
-
this.setAttribute(
|
|
46
|
+
this.setAttribute('data-rounded', 'bottom');
|
|
47
47
|
// Observe component's own size changes
|
|
48
48
|
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
49
49
|
this._ro = new ResizeObserver(() => {
|
|
@@ -54,7 +54,7 @@ let CDSAIChatWorkspaceShellFooter = class CDSAIChatWorkspaceShellFooter extends
|
|
|
54
54
|
this._ro.observe(this);
|
|
55
55
|
}
|
|
56
56
|
updated(changedProps) {
|
|
57
|
-
if (changedProps.has(
|
|
57
|
+
if (changedProps.has('actions')) {
|
|
58
58
|
if (this.actions.length === 3) {
|
|
59
59
|
this.classList.add(`${prefix}-workspace-shell-footer__three-buttons`);
|
|
60
60
|
}
|
|
@@ -64,10 +64,10 @@ let CDSAIChatWorkspaceShellFooter = class CDSAIChatWorkspaceShellFooter extends
|
|
|
64
64
|
}
|
|
65
65
|
// Sync to host data attribute
|
|
66
66
|
if (this._isStacked) {
|
|
67
|
-
this.setAttribute(
|
|
67
|
+
this.setAttribute('data-stacked', '');
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
|
-
this.removeAttribute(
|
|
70
|
+
this.removeAttribute('data-stacked');
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
@@ -79,10 +79,9 @@ let CDSAIChatWorkspaceShellFooter = class CDSAIChatWorkspaceShellFooter extends
|
|
|
79
79
|
kind=${action.kind}
|
|
80
80
|
?disabled=${action.disabled}
|
|
81
81
|
size="2xl"
|
|
82
|
-
@click=${() => this.handleAction(action)}
|
|
83
|
-
>
|
|
82
|
+
@click=${() => this.handleAction(action)}>
|
|
84
83
|
${action.label}
|
|
85
|
-
${action.icon && iconLoader(action.icon, { slot:
|
|
84
|
+
${action.icon && iconLoader(action.icon, { slot: 'icon' })}
|
|
86
85
|
</cds-custom-button>
|
|
87
86
|
`;
|
|
88
87
|
})}
|
|
@@ -111,10 +110,10 @@ let CDSAIChatWorkspaceShellFooter = class CDSAIChatWorkspaceShellFooter extends
|
|
|
111
110
|
}
|
|
112
111
|
_sortActions(actions) {
|
|
113
112
|
const rank = (action) => {
|
|
114
|
-
const kind = action.kind ??
|
|
113
|
+
const kind = action.kind ?? 'primary';
|
|
115
114
|
return ({
|
|
116
115
|
ghost: 1,
|
|
117
|
-
|
|
116
|
+
'danger--ghost': 2,
|
|
118
117
|
tertiary: 3,
|
|
119
118
|
danger: 5,
|
|
120
119
|
primary: 6,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell-footer.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-footer.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAsBH;;;;AAIG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAQE;;AAEG;QAEK,IAAA,CAAA,UAAU,GAAG,KAAK;AAE1B;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;QAGf,IAAA,CAAA,OAAO,GAAa,EAAE;
|
|
1
|
+
{"version":3,"file":"workspace-shell-footer.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-footer.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAsBH;;;;AAIG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAQE;;AAEG;QAEK,IAAA,CAAA,UAAU,GAAG,KAAK;AAE1B;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ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C,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAI;YAChC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;AAC9B,YAAA,OAAO,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,GAAG,IAAI;AACvC,QAAA,CAAC,CAAC;IACJ;AAEA;;AAEG;AAEH,IAAA,WAAW,gBAAgB,GAAA;QACzB,OAAO,CAAA,EAAG,MAAM,CAAA,+BAAA,CAAiC;IACnD;;AAjIO,6BAAA,CAAA,MAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC;AAW9B,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAM3B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACzB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGhB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE;AAClB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AArBnB,6BAA6B,GAAA,UAAA,CAAA;AADlC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,uBAAA,CAAyB;AAC3C,CAAA,EAAA,6BAA6B,CAmIlC;AAGD,sCAAe,6BAA6B;;;;"}
|
|
@@ -40,7 +40,7 @@ let CDSAIChatWorkspaceShellHeader = class CDSAIChatWorkspaceShellHeader extends
|
|
|
40
40
|
/**
|
|
41
41
|
* Sets default slot value to toolbar
|
|
42
42
|
*/
|
|
43
|
-
this.slot =
|
|
43
|
+
this.slot = 'header';
|
|
44
44
|
/**
|
|
45
45
|
* Controls whether the header can be collapsed/expanded.
|
|
46
46
|
* When true, header starts collapsed and can be toggled.
|
|
@@ -52,7 +52,7 @@ let CDSAIChatWorkspaceShellHeader = class CDSAIChatWorkspaceShellHeader extends
|
|
|
52
52
|
*/
|
|
53
53
|
this._handleToggle = () => {
|
|
54
54
|
const isOpen = this._detailsElement?.open || false;
|
|
55
|
-
this.dispatchEvent(new CustomEvent(
|
|
55
|
+
this.dispatchEvent(new CustomEvent('workspace-header-toggle', {
|
|
56
56
|
detail: { open: isOpen },
|
|
57
57
|
bubbles: true,
|
|
58
58
|
composed: true,
|
|
@@ -61,13 +61,13 @@ let CDSAIChatWorkspaceShellHeader = class CDSAIChatWorkspaceShellHeader extends
|
|
|
61
61
|
}
|
|
62
62
|
firstUpdated() {
|
|
63
63
|
if (this.collapsible && this._detailsElement) {
|
|
64
|
-
this._detailsElement.addEventListener(
|
|
64
|
+
this._detailsElement.addEventListener('toggle', this._handleToggle);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
disconnectedCallback() {
|
|
68
68
|
super.disconnectedCallback();
|
|
69
69
|
if (this._detailsElement) {
|
|
70
|
-
this._detailsElement.removeEventListener(
|
|
70
|
+
this._detailsElement.removeEventListener('toggle', this._handleToggle);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
@@ -86,8 +86,7 @@ let CDSAIChatWorkspaceShellHeader = class CDSAIChatWorkspaceShellHeader extends
|
|
|
86
86
|
// Collapsible mode: starts closed, can be toggled
|
|
87
87
|
return html `
|
|
88
88
|
<details
|
|
89
|
-
class="${prefix}-workspace-shell__header-details ${prefix}-workspace-shell__header-content"
|
|
90
|
-
>
|
|
89
|
+
class="${prefix}-workspace-shell__header-details ${prefix}-workspace-shell__header-content">
|
|
91
90
|
${titleText &&
|
|
92
91
|
html `
|
|
93
92
|
<summary class="${prefix}-workspace-shell__header-summary">
|
|
@@ -95,8 +94,7 @@ let CDSAIChatWorkspaceShellHeader = class CDSAIChatWorkspaceShellHeader extends
|
|
|
95
94
|
<cds-custom-aichat-truncated-text
|
|
96
95
|
value=${titleText}
|
|
97
96
|
lines="1"
|
|
98
|
-
type="tooltip"
|
|
99
|
-
></cds-custom-aichat-truncated-text>
|
|
97
|
+
type="tooltip"></cds-custom-aichat-truncated-text>
|
|
100
98
|
</h1>
|
|
101
99
|
<span class="${prefix}-workspace-shell__header-chevron">
|
|
102
100
|
${iconLoader(ChevronDown16)}
|
|
@@ -118,8 +116,7 @@ let CDSAIChatWorkspaceShellHeader = class CDSAIChatWorkspaceShellHeader extends
|
|
|
118
116
|
<cds-custom-aichat-truncated-text
|
|
119
117
|
value=${titleText}
|
|
120
118
|
lines="1"
|
|
121
|
-
type="tooltip"
|
|
122
|
-
></cds-custom-aichat-truncated-text>
|
|
119
|
+
type="tooltip"></cds-custom-aichat-truncated-text>
|
|
123
120
|
</h1>
|
|
124
121
|
`}
|
|
125
122
|
${headerContent}
|
|
@@ -132,16 +129,16 @@ __decorate([
|
|
|
132
129
|
property({ type: String, reflect: true })
|
|
133
130
|
], CDSAIChatWorkspaceShellHeader.prototype, "slot", void 0);
|
|
134
131
|
__decorate([
|
|
135
|
-
property({ type: String, attribute:
|
|
132
|
+
property({ type: String, attribute: 'title-text' })
|
|
136
133
|
], CDSAIChatWorkspaceShellHeader.prototype, "titleText", void 0);
|
|
137
134
|
__decorate([
|
|
138
|
-
property({ type: String, attribute:
|
|
135
|
+
property({ type: String, attribute: 'subtitle-text' })
|
|
139
136
|
], CDSAIChatWorkspaceShellHeader.prototype, "subTitleText", void 0);
|
|
140
137
|
__decorate([
|
|
141
138
|
property({ type: Boolean, reflect: true })
|
|
142
139
|
], CDSAIChatWorkspaceShellHeader.prototype, "collapsible", void 0);
|
|
143
140
|
__decorate([
|
|
144
|
-
query(
|
|
141
|
+
query('details')
|
|
145
142
|
], CDSAIChatWorkspaceShellHeader.prototype, "_detailsElement", void 0);
|
|
146
143
|
CDSAIChatWorkspaceShellHeader = __decorate([
|
|
147
144
|
carbonElement(`${prefix}-workspace-shell-header`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell-header.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;;;;;;AASG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;AAcf;;;;AAIG;QAEH,IAAA,CAAA,WAAW,GAAG,KAAK;AAqBnB;;AAEG;QACK,IAAA,CAAA,aAAa,GAAG,MAAK;YAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,KAAK;AAClD,YAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,yBAAyB,EAAE;AACzC,gBAAA,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AACxB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA,CAAC,CACH;AACH,QAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace-shell-header.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;;;;;;AASG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;AAcf;;;;AAIG;QAEH,IAAA,CAAA,WAAW,GAAG,KAAK;AAqBnB;;AAEG;QACK,IAAA,CAAA,aAAa,GAAG,MAAK;YAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,IAAI,KAAK;AAClD,YAAA,IAAI,CAAC,aAAa,CAChB,IA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