@carbon/ai-chat-components 1.9.0-alpha.0 → 1.9.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +1 -5
- package/custom-elements.json +3838 -3356
- package/es/components/audio-player/index.d.ts +4 -4
- package/es/components/audio-player/src/audio-player.d.ts +1 -1
- package/es/components/audio-player/src/audio-player.js +33 -38
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/base-provider.js +9 -9
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es/components/audio-player/src/transcript.d.ts +2 -2
- package/es/components/audio-player/src/transcript.js +13 -16
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +1 -1
- package/es/components/card/index.d.ts +4 -4
- package/es/components/card/src/card-footer.d.ts +5 -5
- package/es/components/card/src/card-footer.js +12 -16
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.d.ts +4 -4
- package/es/components/card/src/card-steps.js +3 -5
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.d.ts +2 -2
- package/es/components/card/src/card.js +3 -3
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/carousel/index.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -2
- package/es/components/carousel/src/carousel.js +4 -6
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.js +1 -1
- package/es/components/chain-of-thought/defs.js +1 -1
- package/es/components/chain-of-thought/index.d.ts +10 -10
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -1
- package/es/components/chat-button/defs.js +1 -1
- package/es/components/chat-button/index.d.ts +2 -2
- package/es/components/chat-button/src/chat-button.d.ts +5 -5
- package/es/components/chat-button/src/chat-button.js +6 -6
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/index.d.ts +11 -11
- package/es/components/chat-history/src/history-content.d.ts +1 -1
- package/es/components/chat-history/src/history-content.js +6 -6
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es/components/chat-history/src/history-delete-panel.js +11 -11
- package/es/components/chat-history/src/history-header.d.ts +2 -2
- package/es/components/chat-history/src/history-header.js +9 -10
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -2
- package/es/components/chat-history/src/history-loading.js +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es/components/chat-history/src/history-panel-item.js +39 -41
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es/components/chat-history/src/history-panel-items.js +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.js +3 -3
- package/es/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es/components/chat-history/src/history-search-item.js +4 -4
- package/es/components/chat-history/src/history-shell.d.ts +1 -1
- package/es/components/chat-history/src/history-shell.js +3 -3
- package/es/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es/components/chat-history/src/history-toolbar.js +13 -10
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +5 -5
- package/es/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es/components/chat-shell/src/chat-header.js +37 -44
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es/components/chat-shell/src/corner-manager.js +30 -30
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.js +12 -12
- package/es/components/chat-shell/src/panel.d.ts +2 -2
- package/es/components/chat-shell/src/panel.js +99 -100
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es/components/chat-shell/src/shell.d.ts +8 -8
- package/es/components/chat-shell/src/shell.js +128 -135
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es/components/chat-shell/src/slot-observer.js +4 -7
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +4 -4
- package/es/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager.js +32 -32
- package/es/components/code-snippet/index.d.ts +4 -4
- package/es/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es/components/code-snippet/src/code-snippet.js +87 -93
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es/components/code-snippet/src/dom-utils.js +6 -6
- package/es/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es/components/code-snippet/src/layout-utils.js +9 -9
- package/es/components/code-snippet/src/streaming-manager.js +5 -5
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es/components/feedback/src/feedback-buttons.js +17 -19
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -9
- package/es/components/feedback/src/feedback.js +38 -45
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +5 -4
- package/es/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es/components/file-uploads/src/file-type-icon.js +87 -0
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es/components/file-uploads/src/file-upload-item.js +210 -111
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es/components/file-uploads/src/file-uploads.js +54 -29
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es/components/file-uploads/src/types.d.ts +39 -0
- package/es/components/file-uploads/src/types.js +8 -0
- package/es/components/file-uploads/src/types.js.map +1 -0
- package/es/components/launcher/index.d.ts +9 -0
- package/es/components/launcher/index.js +9 -0
- package/es/components/launcher/index.js.map +1 -0
- package/es/components/launcher/src/launcher.d.ts +68 -0
- package/es/components/launcher/src/launcher.js +152 -0
- package/es/components/launcher/src/launcher.js.map +1 -0
- package/es/components/launcher/src/launcher.scss.js +13 -0
- package/es/components/launcher/src/launcher.scss.js.map +1 -0
- package/es/components/markdown/index.d.ts +5 -5
- package/es/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es/components/markdown/src/markdown-renderer.js +85 -80
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +20 -20
- package/es/components/markdown/src/markdown.d.ts +4 -7
- package/es/components/markdown/src/markdown.js +96 -82
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.template.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es/components/markdown/src/utils/html-helpers.js +72 -72
- package/es/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es/components/markdown/src/utils/lit-directives.js +5 -5
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es/components/markdown/src/utils/streaming-table.js +6 -6
- package/es/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es/components/markdown/src/utils/table-helpers.js +17 -18
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/src/processing.d.ts +2 -2
- package/es/components/processing/src/processing.js +2 -2
- package/es/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es/components/prompt-line/autocomplete/index.js +9 -0
- package/es/components/prompt-line/autocomplete/index.js.map +1 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es/components/prompt-line/index.d.ts +18 -18
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +3 -7
- package/es/components/prompt-line/src/error-message.js +13 -23
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es/components/prompt-line/src/prompt-line.js +35 -35
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +4 -4
- package/es/components/prompt-line/src/send-control.js +18 -20
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es/components/prompt-line/src/types.d.ts +2 -2
- package/es/components/prompt-line/src/types.js.map +1 -1
- package/es/components/reasoning-steps/index.d.ts +4 -4
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es/components/shared/media-utils/script-loader.js +1 -1
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/src/table-loader.d.ts +1 -1
- package/es/components/table/src/table-loader.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +3 -3
- package/es/components/table/src/table-pagination.template.js +4 -5
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es/components/table/src/table-skeleton.template.js +2 -3
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +3 -4
- package/es/components/table/src/table.js +36 -39
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +5 -5
- package/es/components/table/src/table.template.js +6 -9
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +9 -7
- package/es/components/toolbar/src/toolbar.js +45 -33
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/truncated-text/index.d.ts +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es/components/truncated-text/src/truncated-text.js +26 -28
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es/components/video-player/index.d.ts +2 -2
- package/es/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es/components/video-player/src/providers/base-provider.js +5 -5
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es/components/video-player/src/utils/url-detector.js +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -2
- package/es/components/video-player/src/video-player.js +37 -41
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +4 -4
- package/es/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es/globals/decorators/carbon-element.d.ts +4 -4
- package/es/globals/decorators/carbon-element.js +2 -2
- package/es/globals/decorators/index.d.ts +1 -1
- package/es/globals/scss/common.scss.js +1 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es/globals/utils/aria-announcer-manager.js +6 -6
- package/es/globals/utils/browser-utils.js +1 -1
- package/es/globals/utils/csv.d.ts +8 -0
- package/es/globals/utils/csv.js +37 -0
- package/es/globals/utils/csv.js.map +1 -0
- package/es/globals/utils/dom-utils.js +1 -1
- package/es/globals/utils/focus-utils.js +4 -4
- package/es/globals/utils/iconTransform.d.ts +2 -2
- package/es/globals/utils/iconTransform.js +21 -21
- package/es/globals/utils/rtl-utils.js +1 -1
- package/es/globals/utils/uuid.js +5 -5
- package/es/react/__tests__/jest.setup.js +12 -12
- package/es/react/ai-label-action-button.d.ts +1 -1
- package/es/react/ai-label-action-button.js +1 -1
- package/es/react/audio-player.d.ts +1 -1
- package/es/react/audio-player.js +5 -5
- package/es/react/autocomplete.d.ts +1 -1
- package/es/react/autocomplete.js +5 -5
- package/es/react/card.d.ts +1 -1
- package/es/react/card.js +5 -5
- package/es/react/carousel.d.ts +1 -1
- package/es/react/carousel.js +2 -2
- package/es/react/chain-of-thought-step.d.ts +1 -1
- package/es/react/chain-of-thought-step.js +4 -4
- package/es/react/chain-of-thought-toggle.d.ts +2 -2
- package/es/react/chain-of-thought-toggle.js +3 -3
- package/es/react/chain-of-thought.d.ts +2 -2
- package/es/react/chain-of-thought.js +4 -4
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +2 -2
- package/es/react/chat-header.d.ts +3 -3
- package/es/react/chat-header.js +2 -2
- package/es/react/chat-shell.d.ts +2 -2
- package/es/react/chat-shell.js +2 -2
- package/es/react/code-snippet.d.ts +4 -4
- package/es/react/code-snippet.js +3 -3
- package/es/react/error-message.d.ts +1 -1
- package/es/react/error-message.js +1 -1
- package/es/react/feedback-buttons.d.ts +1 -1
- package/es/react/feedback-buttons.js +3 -3
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +4 -4
- package/es/react/file-upload-item.d.ts +11 -0
- package/es/react/file-upload-item.js +31 -0
- package/es/react/file-upload-item.js.map +1 -0
- package/es/react/file-uploads.d.ts +1 -1
- package/es/react/file-uploads.js +2 -2
- package/es/react/history/history-content.d.ts +1 -1
- package/es/react/history/history-content.js +1 -1
- package/es/react/history/history-delete-panel.d.ts +1 -1
- package/es/react/history/history-delete-panel.js +3 -3
- package/es/react/history/history-header.d.ts +1 -1
- package/es/react/history/history-header.js +2 -2
- package/es/react/history/history-loading.d.ts +1 -1
- package/es/react/history/history-loading.js +1 -1
- package/es/react/history/history-panel-item-input.d.ts +1 -1
- package/es/react/history/history-panel-item-input.js +4 -4
- package/es/react/history/history-panel-item.d.ts +1 -1
- package/es/react/history/history-panel-item.js +6 -6
- package/es/react/history/history-panel-items.d.ts +1 -1
- package/es/react/history/history-panel-items.js +1 -1
- package/es/react/history/history-panel-menu.d.ts +1 -1
- package/es/react/history/history-panel-menu.js +1 -1
- package/es/react/history/history-panel.d.ts +1 -1
- package/es/react/history/history-panel.js +1 -1
- package/es/react/history/history-search-item.d.ts +1 -1
- package/es/react/history/history-search-item.js +2 -2
- package/es/react/history/history-shell.d.ts +1 -1
- package/es/react/history/history-shell.js +1 -1
- package/es/react/history/history-toolbar.d.ts +1 -1
- package/es/react/history/history-toolbar.js +3 -3
- package/es/react/history/index.d.ts +12 -12
- package/es/react/hooks/useChatAutocomplete.d.ts +4 -4
- package/es/react/hooks/useChatAutocomplete.js +38 -12
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/input-send-control.d.ts +1 -1
- package/es/react/input-send-control.js +3 -3
- package/es/react/launcher.d.ts +11 -0
- package/es/react/launcher.js +31 -0
- package/es/react/launcher.js.map +1 -0
- package/es/react/markdown.d.ts +7 -7
- package/es/react/markdown.js +13 -13
- package/es/react/markdown.js.map +1 -1
- package/es/react/panel.d.ts +1 -1
- package/es/react/panel.js +7 -7
- package/es/react/processing.d.ts +1 -1
- package/es/react/processing.js +2 -2
- package/es/react/prompt-line-shell.d.ts +1 -1
- package/es/react/prompt-line-shell.js +1 -1
- package/es/react/prompt-line.d.ts +1 -1
- package/es/react/prompt-line.js +9 -9
- package/es/react/reasoning-step.d.ts +1 -1
- package/es/react/reasoning-step.js +4 -4
- package/es/react/reasoning-steps-toggle.d.ts +2 -2
- package/es/react/reasoning-steps-toggle.js +3 -3
- package/es/react/reasoning-steps.d.ts +1 -1
- package/es/react/reasoning-steps.js +2 -2
- package/es/react/stop-streaming-button.d.ts +1 -1
- package/es/react/stop-streaming-button.js +1 -1
- package/es/react/table.d.ts +2 -2
- package/es/react/table.js +1 -1
- package/es/react/tool-call-data.d.ts +1 -1
- package/es/react/tool-call-data.js +2 -2
- package/es/react/toolbar.d.ts +4 -4
- package/es/react/toolbar.js +2 -2
- package/es/react/transcript.d.ts +1 -1
- package/es/react/transcript.js +3 -3
- package/es/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es/react/utils/transformSuggestionConfig.js +3 -3
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es/react/utils/withWebComponentBridge.js +22 -22
- package/es/react/video-player.d.ts +1 -1
- package/es/react/video-player.js +5 -5
- package/es/react/workspace-shell.d.ts +1 -1
- package/es/react/workspace-shell.js +6 -6
- package/es/testing/load-all-lazy-deps.d.ts +2 -2
- package/es/testing/load-all-lazy-deps.js +1 -1
- package/es/typings/overflow-menu.d.ts +2 -2
- package/es-custom/components/audio-player/index.d.ts +4 -4
- package/es-custom/components/audio-player/src/audio-player.d.ts +1 -1
- package/es-custom/components/audio-player/src/audio-player.js +33 -38
- package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/base-provider.js +9 -9
- package/es-custom/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
- package/es-custom/components/audio-player/src/transcript.js +13 -16
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/card/index.d.ts +4 -4
- package/es-custom/components/card/src/card-footer.d.ts +5 -5
- package/es-custom/components/card/src/card-footer.js +12 -16
- package/es-custom/components/card/src/card-footer.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.d.ts +4 -4
- package/es-custom/components/card/src/card-steps.js +3 -5
- package/es-custom/components/card/src/card-steps.js.map +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.d.ts +2 -2
- package/es-custom/components/card/src/card.js +3 -3
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/carousel/index.d.ts +1 -1
- package/es-custom/components/carousel/src/carousel.d.ts +2 -2
- package/es-custom/components/carousel/src/carousel.js +4 -6
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/carousel/src/carousel.scss.js +1 -1
- package/es-custom/components/chain-of-thought/defs.js +1 -1
- package/es-custom/components/chain-of-thought/index.d.ts +10 -10
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/defs.d.ts +1 -1
- package/es-custom/components/chat-button/defs.js +1 -1
- package/es-custom/components/chat-button/index.d.ts +2 -2
- package/es-custom/components/chat-button/src/chat-button.d.ts +5 -5
- package/es-custom/components/chat-button/src/chat-button.js +6 -6
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/index.d.ts +11 -11
- package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-content.js +6 -6
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-delete-panel.js +11 -11
- package/es-custom/components/chat-history/src/history-header.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-header.js +9 -10
- package/es-custom/components/chat-history/src/history-header.js.map +1 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-loading.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es-custom/components/chat-history/src/history-panel-item.js +39 -41
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.js +3 -3
- package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-search-item.js +4 -4
- package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-shell.js +3 -3
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es-custom/components/chat-history/src/history-toolbar.js +13 -10
- package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es-custom/components/chat-shell/index.d.ts +5 -5
- package/es-custom/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es-custom/components/chat-shell/src/chat-header.js +37 -44
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +30 -30
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.js +12 -12
- package/es-custom/components/chat-shell/src/panel.d.ts +2 -2
- package/es-custom/components/chat-shell/src/panel.js +99 -100
- package/es-custom/components/chat-shell/src/panel.js.map +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
- package/es-custom/components/chat-shell/src/shell.js +128 -135
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.js +4 -7
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es-custom/components/chat-shell/src/types.d.ts +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +32 -32
- package/es-custom/components/code-snippet/index.d.ts +4 -4
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es-custom/components/code-snippet/src/code-snippet.js +87 -93
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es-custom/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es-custom/components/code-snippet/src/dom-utils.js +6 -6
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/layout-utils.js +9 -9
- package/es-custom/components/code-snippet/src/streaming-manager.js +5 -5
- package/es-custom/components/feedback/index.d.ts +4 -4
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es-custom/components/feedback/src/feedback-buttons.js +17 -19
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +9 -9
- package/es-custom/components/feedback/src/feedback.js +38 -45
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/file-uploads/index.d.ts +5 -4
- package/es-custom/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js +87 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es-custom/components/file-uploads/src/file-upload-item.js +210 -111
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es-custom/components/file-uploads/src/file-uploads.js +54 -29
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es-custom/components/file-uploads/src/types.d.ts +39 -0
- package/es-custom/components/file-uploads/src/types.js +8 -0
- package/es-custom/components/file-uploads/src/types.js.map +1 -0
- package/es-custom/components/launcher/index.d.ts +9 -0
- package/es-custom/components/launcher/index.js +9 -0
- package/{es/components/autocomplete → es-custom/components/launcher}/index.js.map +1 -1
- package/es-custom/components/launcher/src/launcher.d.ts +68 -0
- package/es-custom/components/launcher/src/launcher.js +152 -0
- package/es-custom/components/launcher/src/launcher.js.map +1 -0
- package/es-custom/components/launcher/src/launcher.scss.js +13 -0
- package/es-custom/components/launcher/src/launcher.scss.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +5 -5
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es-custom/components/markdown/src/markdown-renderer.js +85 -80
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +20 -20
- package/es-custom/components/markdown/src/markdown.d.ts +4 -7
- package/es-custom/components/markdown/src/markdown.js +96 -82
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.template.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/html-helpers.js +72 -72
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es-custom/components/markdown/src/utils/lit-directives.js +5 -5
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js +6 -6
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/table-helpers.js +17 -18
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/processing/index.d.ts +1 -1
- package/es-custom/components/processing/src/processing.d.ts +2 -2
- package/es-custom/components/processing/src/processing.js +2 -2
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es-custom/components/prompt-line/autocomplete/index.js +9 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/index.js.map +1 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es-custom/components/prompt-line/index.d.ts +18 -18
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +3 -7
- package/es-custom/components/prompt-line/src/error-message.js +13 -23
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es-custom/components/prompt-line/src/prompt-line.js +35 -35
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +4 -4
- package/es-custom/components/prompt-line/src/send-control.js +18 -20
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es-custom/components/prompt-line/src/types.d.ts +2 -2
- package/es-custom/components/prompt-line/src/types.js.map +1 -1
- package/es-custom/components/reasoning-steps/index.d.ts +4 -4
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es-custom/components/shared/media-utils/script-loader.js +1 -1
- package/es-custom/components/table/index.d.ts +3 -3
- package/es-custom/components/table/src/table-loader.d.ts +1 -1
- package/es-custom/components/table/src/table-loader.js +1 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +3 -3
- package/es-custom/components/table/src/table-pagination.template.js +4 -5
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
- package/es-custom/components/table/src/table-runtime.d.ts +2 -2
- package/es-custom/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es-custom/components/table/src/table-skeleton.template.js +2 -3
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +3 -4
- package/es-custom/components/table/src/table.js +36 -39
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.template.d.ts +5 -5
- package/es-custom/components/table/src/table.template.js +6 -9
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/index.d.ts +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +9 -7
- package/es-custom/components/toolbar/src/toolbar.js +45 -33
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/truncated-text/index.d.ts +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es-custom/components/truncated-text/src/truncated-text.js +26 -28
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es-custom/components/video-player/index.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es-custom/components/video-player/src/providers/base-provider.js +5 -5
- package/es-custom/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es-custom/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es-custom/components/video-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/video-player/src/video-player.d.ts +2 -2
- package/es-custom/components/video-player/src/video-player.js +37 -41
- package/es-custom/components/video-player/src/video-player.js.map +1 -1
- package/es-custom/components/workspace-shell/index.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es-custom/globals/decorators/carbon-element.d.ts +4 -4
- package/es-custom/globals/decorators/carbon-element.js +2 -2
- package/es-custom/globals/decorators/index.d.ts +1 -1
- package/es-custom/globals/scss/common.scss.js +1 -1
- package/es-custom/globals/settings.js +2 -2
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es-custom/globals/utils/aria-announcer-manager.js +6 -6
- package/es-custom/globals/utils/browser-utils.js +1 -1
- package/es-custom/globals/utils/csv.d.ts +8 -0
- package/es-custom/globals/utils/csv.js +37 -0
- package/es-custom/globals/utils/csv.js.map +1 -0
- package/es-custom/globals/utils/dom-utils.js +1 -1
- package/es-custom/globals/utils/focus-utils.js +4 -4
- package/es-custom/globals/utils/iconTransform.d.ts +2 -2
- package/es-custom/globals/utils/iconTransform.js +21 -21
- package/es-custom/globals/utils/rtl-utils.js +1 -1
- package/es-custom/globals/utils/uuid.js +5 -5
- package/es-custom/react/__tests__/jest.setup.js +12 -12
- package/es-custom/react/ai-label-action-button.d.ts +1 -1
- package/es-custom/react/ai-label-action-button.js +1 -1
- package/es-custom/react/audio-player.d.ts +1 -1
- package/es-custom/react/audio-player.js +5 -5
- package/es-custom/react/autocomplete.d.ts +1 -1
- package/es-custom/react/autocomplete.js +5 -5
- package/es-custom/react/card.d.ts +1 -1
- package/es-custom/react/card.js +5 -5
- package/es-custom/react/carousel.d.ts +1 -1
- package/es-custom/react/carousel.js +2 -2
- package/es-custom/react/chain-of-thought-step.d.ts +1 -1
- package/es-custom/react/chain-of-thought-step.js +4 -4
- package/es-custom/react/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/react/chain-of-thought-toggle.js +3 -3
- package/es-custom/react/chain-of-thought.d.ts +2 -2
- package/es-custom/react/chain-of-thought.js +4 -4
- package/es-custom/react/chat-button.d.ts +3 -3
- package/es-custom/react/chat-button.js +2 -2
- package/es-custom/react/chat-header.d.ts +3 -3
- package/es-custom/react/chat-header.js +2 -2
- package/es-custom/react/chat-shell.d.ts +2 -2
- package/es-custom/react/chat-shell.js +2 -2
- package/es-custom/react/code-snippet.d.ts +4 -4
- package/es-custom/react/code-snippet.js +3 -3
- package/es-custom/react/error-message.d.ts +1 -1
- package/es-custom/react/error-message.js +1 -1
- package/es-custom/react/feedback-buttons.d.ts +1 -1
- package/es-custom/react/feedback-buttons.js +3 -3
- package/es-custom/react/feedback.d.ts +2 -2
- package/es-custom/react/feedback.js +4 -4
- package/es-custom/react/file-upload-item.d.ts +11 -0
- package/es-custom/react/file-upload-item.js +31 -0
- package/es-custom/react/file-upload-item.js.map +1 -0
- package/es-custom/react/file-uploads.d.ts +1 -1
- package/es-custom/react/file-uploads.js +2 -2
- package/es-custom/react/history/history-content.d.ts +1 -1
- package/es-custom/react/history/history-content.js +1 -1
- package/es-custom/react/history/history-delete-panel.d.ts +1 -1
- package/es-custom/react/history/history-delete-panel.js +3 -3
- package/es-custom/react/history/history-header.d.ts +1 -1
- package/es-custom/react/history/history-header.js +2 -2
- package/es-custom/react/history/history-loading.d.ts +1 -1
- package/es-custom/react/history/history-loading.js +1 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +1 -1
- package/es-custom/react/history/history-panel-item-input.js +4 -4
- package/es-custom/react/history/history-panel-item.d.ts +1 -1
- package/es-custom/react/history/history-panel-item.js +6 -6
- package/es-custom/react/history/history-panel-items.d.ts +1 -1
- package/es-custom/react/history/history-panel-items.js +1 -1
- package/es-custom/react/history/history-panel-menu.d.ts +1 -1
- package/es-custom/react/history/history-panel-menu.js +1 -1
- package/es-custom/react/history/history-panel.d.ts +1 -1
- package/es-custom/react/history/history-panel.js +1 -1
- package/es-custom/react/history/history-search-item.d.ts +1 -1
- package/es-custom/react/history/history-search-item.js +2 -2
- package/es-custom/react/history/history-shell.d.ts +1 -1
- package/es-custom/react/history/history-shell.js +1 -1
- package/es-custom/react/history/history-toolbar.d.ts +1 -1
- package/es-custom/react/history/history-toolbar.js +3 -3
- package/es-custom/react/history/index.d.ts +12 -12
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +4 -4
- package/es-custom/react/hooks/useChatAutocomplete.js +38 -12
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es-custom/react/input-send-control.d.ts +1 -1
- package/es-custom/react/input-send-control.js +3 -3
- package/es-custom/react/launcher.d.ts +11 -0
- package/es-custom/react/launcher.js +31 -0
- package/es-custom/react/launcher.js.map +1 -0
- package/es-custom/react/markdown.d.ts +7 -7
- package/es-custom/react/markdown.js +13 -13
- package/es-custom/react/markdown.js.map +1 -1
- package/es-custom/react/panel.d.ts +1 -1
- package/es-custom/react/panel.js +7 -7
- package/es-custom/react/processing.d.ts +1 -1
- package/es-custom/react/processing.js +2 -2
- package/es-custom/react/prompt-line-shell.d.ts +1 -1
- package/es-custom/react/prompt-line-shell.js +1 -1
- package/es-custom/react/prompt-line.d.ts +1 -1
- package/es-custom/react/prompt-line.js +9 -9
- package/es-custom/react/reasoning-step.d.ts +1 -1
- package/es-custom/react/reasoning-step.js +4 -4
- package/es-custom/react/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/react/reasoning-steps-toggle.js +3 -3
- package/es-custom/react/reasoning-steps.d.ts +1 -1
- package/es-custom/react/reasoning-steps.js +2 -2
- package/es-custom/react/stop-streaming-button.d.ts +1 -1
- package/es-custom/react/stop-streaming-button.js +1 -1
- package/es-custom/react/table.d.ts +2 -2
- package/es-custom/react/table.js +1 -1
- package/es-custom/react/tool-call-data.d.ts +1 -1
- package/es-custom/react/tool-call-data.js +2 -2
- package/es-custom/react/toolbar.d.ts +4 -4
- package/es-custom/react/toolbar.js +2 -2
- package/es-custom/react/transcript.d.ts +1 -1
- package/es-custom/react/transcript.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es-custom/react/utils/withWebComponentBridge.js +22 -22
- package/es-custom/react/video-player.d.ts +1 -1
- package/es-custom/react/video-player.js +5 -5
- package/es-custom/react/workspace-shell.d.ts +1 -1
- package/es-custom/react/workspace-shell.js +6 -6
- package/es-custom/testing/load-all-lazy-deps.d.ts +2 -2
- package/es-custom/testing/load-all-lazy-deps.js +1 -1
- package/es-custom/typings/overflow-menu.d.ts +2 -2
- package/package.json +4 -5
- package/scss/_custom-properties.scss +15 -15
- package/scss/_modifiers.scss +8 -8
- package/scss/_tokens-component.scss +1 -1
- package/scss/_tokens-layout.scss +1 -1
- package/scss/_utilities.scss +2 -2
- package/scss/common.scss +3 -3
- package/scss/grid.scss +2 -2
- package/scss/themes.scss +7 -7
- package/scss/vars.scss +3 -3
- package/telemetry.yml +64 -5
- package/es/components/autocomplete/index.d.ts +0 -15
- package/es/components/autocomplete/index.js +0 -11
- package/es/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es/components/autocomplete/src/autocomplete.js +0 -321
- package/es/components/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/autocomplete/index.d.ts +0 -15
- package/es-custom/components/autocomplete/index.js +0 -11
- package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es-custom/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es-custom/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es-custom/components/autocomplete/src/autocomplete.js +0 -321
- package/es-custom/components/autocomplete/src/autocomplete.js.map +0 -1
- /package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
- /package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { LitElement, nothing } from
|
|
10
|
-
import
|
|
11
|
-
import type PromptLineElement from
|
|
12
|
-
import type { AutocompleteConfig, CustomListProps, SuggestionItem, TriggerChangeEventDetail, TriggerSuggestionConfig } from
|
|
9
|
+
import { LitElement, nothing } from 'lit';
|
|
10
|
+
import '../autocomplete/src/autocomplete.js';
|
|
11
|
+
import type PromptLineElement from './prompt-line.js';
|
|
12
|
+
import type { AutocompleteConfig, CustomListProps, StartersConfig, SuggestionItem, TriggerChangeEventDetail, TriggerSuggestionConfig } from './tiptap/types.js';
|
|
13
13
|
/**
|
|
14
14
|
* Framework-agnostic controller for the chat-input autocomplete overlay:
|
|
15
15
|
* trigger-state tracking, async item resolution with stale-result protection,
|
|
@@ -24,7 +24,7 @@ export interface AutocompleteControllerOptions {
|
|
|
24
24
|
mention?: TriggerSuggestionConfig;
|
|
25
25
|
command?: TriggerSuggestionConfig;
|
|
26
26
|
autocomplete?: AutocompleteConfig;
|
|
27
|
-
starters?:
|
|
27
|
+
starters?: StartersConfig;
|
|
28
28
|
/** When true, starter selection inserts text without firing onStarterSelected. */
|
|
29
29
|
isSendDisabled?: boolean;
|
|
30
30
|
/** Called after a starter is selected and inserted; consumer triggers send. */
|
|
@@ -79,7 +79,7 @@ export declare class AutocompleteController {
|
|
|
79
79
|
* Update any subset of configs. The active trigger (if any) is re-resolved
|
|
80
80
|
* against the new configs so the visible item list stays current.
|
|
81
81
|
*/
|
|
82
|
-
setConfigs(next: Partial<Pick<AutocompleteControllerOptions,
|
|
82
|
+
setConfigs(next: Partial<Pick<AutocompleteControllerOptions, 'mention' | 'command' | 'autocomplete' | 'starters' | 'isSendDisabled' | 'onStarterSelected'>>): void;
|
|
83
83
|
/** Set or clear the active prompt-line. */
|
|
84
84
|
setPromptLine(promptLine: PromptLineElement | null): void;
|
|
85
85
|
/** Read the currently associated prompt-line. */
|
|
@@ -121,6 +121,7 @@ export declare class AutocompleteController {
|
|
|
121
121
|
private _refreshEditorKeyHandler;
|
|
122
122
|
private _detachEditorKeyHandler;
|
|
123
123
|
private _handleEditorKeyDown;
|
|
124
|
+
private _handleEditorFocusOut;
|
|
124
125
|
private _kickoffResolve;
|
|
125
126
|
private _resolveItems;
|
|
126
127
|
private _resolveRenderCustomList;
|
|
@@ -151,7 +152,7 @@ declare class AutocompleteControllerElement extends LitElement {
|
|
|
151
152
|
/** Live-typeahead autocomplete config (no trigger character). */
|
|
152
153
|
autocomplete?: AutocompleteConfig;
|
|
153
154
|
/** Starter prompts shown when the editor is empty + focused + editable. */
|
|
154
|
-
starters?:
|
|
155
|
+
starters?: StartersConfig;
|
|
155
156
|
/** When true, starter selection inserts text without firing the send event. */
|
|
156
157
|
isSendDisabled: boolean;
|
|
157
158
|
private _state;
|
|
@@ -168,11 +169,12 @@ declare class AutocompleteControllerElement extends LitElement {
|
|
|
168
169
|
disconnectedCallback(): void;
|
|
169
170
|
updated(changed: Map<string, unknown>): void;
|
|
170
171
|
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
172
|
+
private _handleMousedown;
|
|
171
173
|
private _handleTriggerChange;
|
|
172
174
|
}
|
|
173
175
|
declare global {
|
|
174
176
|
interface HTMLElementTagNameMap {
|
|
175
|
-
|
|
177
|
+
'cds-custom-aichat-autocomplete-controller': AutocompleteControllerElement;
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
export default AutocompleteControllerElement;
|
|
@@ -10,9 +10,10 @@ import { LitElement, nothing, html } from 'lit';
|
|
|
10
10
|
import { property, state } from 'lit/decorators.js';
|
|
11
11
|
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
12
12
|
import prefix from '../../../globals/settings.js';
|
|
13
|
-
import '
|
|
13
|
+
import '../autocomplete/src/autocomplete.js';
|
|
14
14
|
import { resolveShowTriggerInChip } from './tiptap/carbon-mention.js';
|
|
15
15
|
import { projectRawValue } from './tiptap/json-utils.js';
|
|
16
|
+
import { resetTriggerChangeState } from './tiptap/trigger-utils.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* @license
|
|
@@ -53,10 +54,10 @@ class AutocompleteController {
|
|
|
53
54
|
this._resolveToken = 0;
|
|
54
55
|
this._destroyed = false;
|
|
55
56
|
this._handleEditorKeyDown = (event) => {
|
|
56
|
-
if (event.key !==
|
|
57
|
-
event.key !==
|
|
58
|
-
event.key !==
|
|
59
|
-
event.key !==
|
|
57
|
+
if (event.key !== 'ArrowUp' &&
|
|
58
|
+
event.key !== 'ArrowDown' &&
|
|
59
|
+
event.key !== 'Enter' &&
|
|
60
|
+
event.key !== 'Escape') {
|
|
60
61
|
return;
|
|
61
62
|
}
|
|
62
63
|
const listEl = this._listElement;
|
|
@@ -68,12 +69,21 @@ class AutocompleteController {
|
|
|
68
69
|
// ProseMirror's own keydown handler.
|
|
69
70
|
event.preventDefault();
|
|
70
71
|
event.stopPropagation();
|
|
71
|
-
listEl.dispatchEvent(new KeyboardEvent(
|
|
72
|
+
listEl.dispatchEvent(new KeyboardEvent('keydown', {
|
|
72
73
|
key: event.key,
|
|
73
74
|
bubbles: true,
|
|
74
75
|
cancelable: true,
|
|
75
76
|
}));
|
|
76
77
|
};
|
|
78
|
+
this._handleEditorFocusOut = (event) => {
|
|
79
|
+
const relatedTarget = event.relatedTarget;
|
|
80
|
+
// If focus moved into the list element (or inside it), keep the overlay
|
|
81
|
+
// open — the user is interacting with it.
|
|
82
|
+
if (relatedTarget && this._listElement?.contains(relatedTarget)) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this.dismiss();
|
|
86
|
+
};
|
|
77
87
|
this._mention = options.mention;
|
|
78
88
|
this._command = options.command;
|
|
79
89
|
this._autocomplete = options.autocomplete;
|
|
@@ -90,22 +100,37 @@ class AutocompleteController {
|
|
|
90
100
|
* against the new configs so the visible item list stays current.
|
|
91
101
|
*/
|
|
92
102
|
setConfigs(next) {
|
|
93
|
-
if (
|
|
103
|
+
if ('mention' in next) {
|
|
94
104
|
this._mention = next.mention;
|
|
95
105
|
}
|
|
96
|
-
if (
|
|
106
|
+
if ('command' in next) {
|
|
97
107
|
this._command = next.command;
|
|
98
108
|
}
|
|
99
|
-
if (
|
|
109
|
+
if ('autocomplete' in next) {
|
|
100
110
|
this._autocomplete = next.autocomplete;
|
|
101
111
|
}
|
|
102
|
-
if (
|
|
112
|
+
if ('starters' in next) {
|
|
113
|
+
const prevIsOn = this._starters?.isOn !== false;
|
|
114
|
+
const isOn = next.starters?.isOn !== false;
|
|
103
115
|
this._starters = next.starters;
|
|
116
|
+
// isOn toggled: push the new value into the Tiptap extension storage and
|
|
117
|
+
// fire a no-op transaction so onTransaction → maybeEmit re-evaluates.
|
|
118
|
+
// Focus state is unchanged — the list appears on the next focus if the
|
|
119
|
+
// editor is not currently focused, or immediately if it is.
|
|
120
|
+
if (prevIsOn !== isOn) {
|
|
121
|
+
const editor = this._promptLine?.getEditor();
|
|
122
|
+
const storage = editor?.storage
|
|
123
|
+
?.carbonStarterTrigger;
|
|
124
|
+
if (storage && editor) {
|
|
125
|
+
storage.isOn = isOn;
|
|
126
|
+
editor.view.dispatch(editor.state.tr);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
104
129
|
}
|
|
105
|
-
if (
|
|
130
|
+
if ('isSendDisabled' in next) {
|
|
106
131
|
this._isSendDisabled = Boolean(next.isSendDisabled);
|
|
107
132
|
}
|
|
108
|
-
if (
|
|
133
|
+
if ('onStarterSelected' in next) {
|
|
109
134
|
this._onStarterSelected = next.onStarterSelected;
|
|
110
135
|
}
|
|
111
136
|
if (this._trigger) {
|
|
@@ -119,6 +144,17 @@ class AutocompleteController {
|
|
|
119
144
|
return;
|
|
120
145
|
}
|
|
121
146
|
this._promptLine = promptLine;
|
|
147
|
+
// Reconcile the isOn flag into the newly attached prompt-line's storage.
|
|
148
|
+
if (promptLine) {
|
|
149
|
+
const isOn = this._starters?.isOn !== false;
|
|
150
|
+
const editor = promptLine.getEditor();
|
|
151
|
+
const storage = editor?.storage
|
|
152
|
+
?.carbonStarterTrigger;
|
|
153
|
+
if (storage && editor && storage.isOn !== isOn) {
|
|
154
|
+
storage.isOn = isOn;
|
|
155
|
+
editor.view.dispatch(editor.state.tr);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
122
158
|
// Re-evaluate the key-forwarding handler — the editor DOM we were bound
|
|
123
159
|
// to may now be gone, or a new one may need binding.
|
|
124
160
|
this._refreshEditorKeyHandler();
|
|
@@ -187,6 +223,12 @@ class AutocompleteController {
|
|
|
187
223
|
this._resolveToken++;
|
|
188
224
|
this._refreshEditorKeyHandler();
|
|
189
225
|
this._emit();
|
|
226
|
+
// Reset the trigger-utils coalescing state so the extension can re-emit
|
|
227
|
+
// the same detail on the next onFocus/onUpdate without being swallowed.
|
|
228
|
+
const editor = this._promptLine?.getEditor();
|
|
229
|
+
if (editor) {
|
|
230
|
+
resetTriggerChangeState(editor);
|
|
231
|
+
}
|
|
190
232
|
}
|
|
191
233
|
// ---------------------------------------------------------------------
|
|
192
234
|
// Selection
|
|
@@ -208,7 +250,7 @@ class AutocompleteController {
|
|
|
208
250
|
this.dismiss();
|
|
209
251
|
return;
|
|
210
252
|
}
|
|
211
|
-
if (trigger.type ===
|
|
253
|
+
if (trigger.type === 'starter') {
|
|
212
254
|
const text = item.value ?? item.label;
|
|
213
255
|
editor.commands.insertContent(text);
|
|
214
256
|
this.dismiss();
|
|
@@ -217,8 +259,8 @@ class AutocompleteController {
|
|
|
217
259
|
}
|
|
218
260
|
return;
|
|
219
261
|
}
|
|
220
|
-
if (trigger.type ===
|
|
221
|
-
const config = trigger.type ===
|
|
262
|
+
if (trigger.type === 'mention' || trigger.type === 'command') {
|
|
263
|
+
const config = trigger.type === 'mention' ? this._mention : this._command;
|
|
222
264
|
const nodeName = trigger.type;
|
|
223
265
|
const range = {
|
|
224
266
|
from: trigger.triggerOffset,
|
|
@@ -234,17 +276,17 @@ class AutocompleteController {
|
|
|
234
276
|
id: item.id,
|
|
235
277
|
label: item.label,
|
|
236
278
|
value: item.value ?? item.label,
|
|
237
|
-
trigger: resolveShowTriggerInChip(item, config ?? {}, trigger.type ===
|
|
279
|
+
trigger: resolveShowTriggerInChip(item, config ?? {}, trigger.type === 'command')
|
|
238
280
|
? config?.trigger
|
|
239
281
|
: null,
|
|
240
282
|
},
|
|
241
283
|
},
|
|
242
|
-
{ type:
|
|
284
|
+
{ type: 'text', text: ' ' },
|
|
243
285
|
])
|
|
244
286
|
.run();
|
|
245
287
|
config?.onSelect?.(item);
|
|
246
288
|
}
|
|
247
|
-
else if (trigger.type ===
|
|
289
|
+
else if (trigger.type === 'autocomplete') {
|
|
248
290
|
const text = item.value ?? item.label;
|
|
249
291
|
const range = {
|
|
250
292
|
from: trigger.triggerOffset,
|
|
@@ -253,7 +295,7 @@ class AutocompleteController {
|
|
|
253
295
|
editor
|
|
254
296
|
.chain()
|
|
255
297
|
.focus()
|
|
256
|
-
.insertContentAt(range, [{ type:
|
|
298
|
+
.insertContentAt(range, [{ type: 'text', text }])
|
|
257
299
|
.run();
|
|
258
300
|
this._autocomplete?.onSelect?.(item);
|
|
259
301
|
}
|
|
@@ -293,13 +335,15 @@ class AutocompleteController {
|
|
|
293
335
|
}
|
|
294
336
|
this._detachEditorKeyHandler();
|
|
295
337
|
if (editorDom) {
|
|
296
|
-
editorDom.addEventListener(
|
|
338
|
+
editorDom.addEventListener('keydown', this._handleEditorKeyDown, true);
|
|
339
|
+
editorDom.addEventListener('focusout', this._handleEditorFocusOut);
|
|
297
340
|
this._editorDomBound = editorDom;
|
|
298
341
|
}
|
|
299
342
|
}
|
|
300
343
|
_detachEditorKeyHandler() {
|
|
301
344
|
if (this._editorDomBound) {
|
|
302
|
-
this._editorDomBound.removeEventListener(
|
|
345
|
+
this._editorDomBound.removeEventListener('keydown', this._handleEditorKeyDown, true);
|
|
346
|
+
this._editorDomBound.removeEventListener('focusout', this._handleEditorFocusOut);
|
|
303
347
|
this._editorDomBound = null;
|
|
304
348
|
}
|
|
305
349
|
}
|
|
@@ -318,14 +362,14 @@ class AutocompleteController {
|
|
|
318
362
|
})();
|
|
319
363
|
}
|
|
320
364
|
async _resolveItems(trigger) {
|
|
321
|
-
if (trigger.type ===
|
|
322
|
-
return this._starters ?? [];
|
|
365
|
+
if (trigger.type === 'starter') {
|
|
366
|
+
return this._starters?.items ?? [];
|
|
323
367
|
}
|
|
324
|
-
const config = trigger.type ===
|
|
368
|
+
const config = trigger.type === 'mention'
|
|
325
369
|
? this._mention
|
|
326
|
-
: trigger.type ===
|
|
370
|
+
: trigger.type === 'command'
|
|
327
371
|
? this._command
|
|
328
|
-
: trigger.type ===
|
|
372
|
+
: trigger.type === 'autocomplete'
|
|
329
373
|
? this._autocomplete
|
|
330
374
|
: undefined;
|
|
331
375
|
if (!config) {
|
|
@@ -335,14 +379,17 @@ class AutocompleteController {
|
|
|
335
379
|
}
|
|
336
380
|
_resolveRenderCustomList() {
|
|
337
381
|
const trigger = this._trigger;
|
|
338
|
-
if (!trigger
|
|
382
|
+
if (!trigger) {
|
|
339
383
|
return undefined;
|
|
340
384
|
}
|
|
341
|
-
|
|
385
|
+
if (trigger.type === 'starter') {
|
|
386
|
+
return this._starters?.renderCustomList;
|
|
387
|
+
}
|
|
388
|
+
const config = trigger.type === 'mention'
|
|
342
389
|
? this._mention
|
|
343
|
-
: trigger.type ===
|
|
390
|
+
: trigger.type === 'command'
|
|
344
391
|
? this._command
|
|
345
|
-
: trigger.type ===
|
|
392
|
+
: trigger.type === 'autocomplete'
|
|
346
393
|
? this._autocomplete
|
|
347
394
|
: undefined;
|
|
348
395
|
return config?.renderCustomList;
|
|
@@ -362,7 +409,7 @@ class AutocompleteController {
|
|
|
362
409
|
function findPromptLineFromTarget(path) {
|
|
363
410
|
for (const target of path) {
|
|
364
411
|
if (target instanceof HTMLElement &&
|
|
365
|
-
target.tagName ===
|
|
412
|
+
target.tagName === 'CDS-AICHAT-PROMPT-LINE') {
|
|
366
413
|
return target;
|
|
367
414
|
}
|
|
368
415
|
}
|
|
@@ -377,7 +424,7 @@ async function resolveConfigItems(config, query) {
|
|
|
377
424
|
if (query.length < minQueryLength) {
|
|
378
425
|
return [];
|
|
379
426
|
}
|
|
380
|
-
if (typeof config.items ===
|
|
427
|
+
if (typeof config.items === 'function') {
|
|
381
428
|
return await Promise.resolve(config.items(query));
|
|
382
429
|
}
|
|
383
430
|
if (!query) {
|
|
@@ -420,6 +467,10 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
420
467
|
* receiving each other's events.
|
|
421
468
|
*/
|
|
422
469
|
this._eventSource = null;
|
|
470
|
+
this._handleMousedown = (event) => {
|
|
471
|
+
// Prevent the autocomplete list from stealing focus from the editor.
|
|
472
|
+
event.preventDefault();
|
|
473
|
+
};
|
|
423
474
|
this._handleTriggerChange = (event) => {
|
|
424
475
|
this._controller?.handleTriggerChangeEvent(event);
|
|
425
476
|
};
|
|
@@ -431,6 +482,7 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
431
482
|
}
|
|
432
483
|
connectedCallback() {
|
|
433
484
|
super.connectedCallback();
|
|
485
|
+
this.addEventListener('mousedown', this._handleMousedown);
|
|
434
486
|
this._controller = new AutocompleteController({
|
|
435
487
|
mention: this.mention,
|
|
436
488
|
command: this.command,
|
|
@@ -438,7 +490,7 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
438
490
|
starters: this.starters,
|
|
439
491
|
isSendDisabled: this.isSendDisabled,
|
|
440
492
|
onStarterSelected: (text) => {
|
|
441
|
-
this.dispatchEvent(new CustomEvent(
|
|
493
|
+
this.dispatchEvent(new CustomEvent('cds-custom-aichat-starter-selected', {
|
|
442
494
|
detail: { text },
|
|
443
495
|
bubbles: true,
|
|
444
496
|
composed: true,
|
|
@@ -452,11 +504,12 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
452
504
|
// on the same page don't cross-talk. Falls back to `this` if the
|
|
453
505
|
// controller is used outside a shell — in that case the consumer
|
|
454
506
|
// should make sure their prompt-line bubbles events into this element.
|
|
455
|
-
this._eventSource = this.closest(
|
|
456
|
-
this._eventSource.addEventListener(
|
|
507
|
+
this._eventSource = this.closest('cds-custom-aichat-prompt-line-shell') ?? this;
|
|
508
|
+
this._eventSource.addEventListener('cds-custom-aichat-trigger-change', this._handleTriggerChange);
|
|
457
509
|
}
|
|
458
510
|
disconnectedCallback() {
|
|
459
|
-
this.
|
|
511
|
+
this.removeEventListener('mousedown', this._handleMousedown);
|
|
512
|
+
this._eventSource?.removeEventListener('cds-custom-aichat-trigger-change', this._handleTriggerChange);
|
|
460
513
|
this._eventSource = null;
|
|
461
514
|
this._controller?.destroy();
|
|
462
515
|
this._controller = null;
|
|
@@ -466,11 +519,11 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
466
519
|
if (!this._controller) {
|
|
467
520
|
return;
|
|
468
521
|
}
|
|
469
|
-
if (changed.has(
|
|
470
|
-
changed.has(
|
|
471
|
-
changed.has(
|
|
472
|
-
changed.has(
|
|
473
|
-
changed.has(
|
|
522
|
+
if (changed.has('mention') ||
|
|
523
|
+
changed.has('command') ||
|
|
524
|
+
changed.has('autocomplete') ||
|
|
525
|
+
changed.has('starters') ||
|
|
526
|
+
changed.has('isSendDisabled')) {
|
|
474
527
|
this._controller.setConfigs({
|
|
475
528
|
mention: this.mention,
|
|
476
529
|
command: this.command,
|
|
@@ -481,11 +534,19 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
481
534
|
}
|
|
482
535
|
// Register the currently-rendered list element with the controller so
|
|
483
536
|
// arrow / Enter / Escape on the editor get forwarded into it.
|
|
484
|
-
const listEl = this.querySelector(
|
|
537
|
+
const listEl = this.querySelector('cds-custom-aichat-autocomplete') ??
|
|
485
538
|
(this.firstElementChild instanceof HTMLElement
|
|
486
539
|
? this.firstElementChild
|
|
487
540
|
: null);
|
|
488
541
|
this._controller.setListElement(listEl);
|
|
542
|
+
// Pass the editor DOM as anchorElement so the autocomplete's outside-click
|
|
543
|
+
// guard treats clicks on the editor as inside-clicks (not dismissals).
|
|
544
|
+
const editorDom = this._controller.getPromptLine()?.getEditor()?.view
|
|
545
|
+
.dom;
|
|
546
|
+
const autocompleteEl = this.querySelector('cds-custom-aichat-autocomplete');
|
|
547
|
+
if (autocompleteEl) {
|
|
548
|
+
autocompleteEl.anchorElement = editorDom ?? null;
|
|
549
|
+
}
|
|
489
550
|
}
|
|
490
551
|
render() {
|
|
491
552
|
const { trigger, items, renderCustomList } = this._state;
|
|
@@ -505,7 +566,7 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
505
566
|
// Custom renderer returned something other than an HTMLElement (e.g.
|
|
506
567
|
// a React node). Surface it on a side-channel event so React adapters
|
|
507
568
|
// can portal it into place themselves.
|
|
508
|
-
this.dispatchEvent(new CustomEvent(
|
|
569
|
+
this.dispatchEvent(new CustomEvent('cds-custom-aichat-custom-list-render', {
|
|
509
570
|
detail: { reactNode: result },
|
|
510
571
|
bubbles: true,
|
|
511
572
|
composed: true,
|
|
@@ -516,8 +577,7 @@ let AutocompleteControllerElement = class AutocompleteControllerElement extends
|
|
|
516
577
|
<cds-custom-aichat-autocomplete
|
|
517
578
|
.items=${items}
|
|
518
579
|
@cds-custom-aichat-autocomplete-select=${(event) => this._controller?.select(event.detail.item)}
|
|
519
|
-
@cds-custom-aichat-autocomplete-dismiss=${() => this._controller?.dismiss()}
|
|
520
|
-
></cds-custom-aichat-autocomplete>
|
|
580
|
+
@cds-custom-aichat-autocomplete-dismiss=${() => this._controller?.dismiss()}></cds-custom-aichat-autocomplete>
|
|
521
581
|
`;
|
|
522
582
|
}
|
|
523
583
|
};
|
|
@@ -531,10 +591,10 @@ __decorate([
|
|
|
531
591
|
property({ attribute: false })
|
|
532
592
|
], AutocompleteControllerElement.prototype, "autocomplete", void 0);
|
|
533
593
|
__decorate([
|
|
534
|
-
property({
|
|
594
|
+
property({ attribute: false })
|
|
535
595
|
], AutocompleteControllerElement.prototype, "starters", void 0);
|
|
536
596
|
__decorate([
|
|
537
|
-
property({ type: Boolean, attribute:
|
|
597
|
+
property({ type: Boolean, attribute: 'is-send-disabled' })
|
|
538
598
|
], AutocompleteControllerElement.prototype, "isSendDisabled", void 0);
|
|
539
599
|
__decorate([
|
|
540
600
|
state()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-controller.js","sources":["../../../../src/components/prompt-line/src/autocomplete-controller.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;MAsDU,sBAAsB,CAAA;AA0CjC,IAAA,WAAA,CAAY,OAAsC,EAAA;QAjC1C,IAAA,CAAA,QAAQ,GAAoC,IAAI;QAChD,IAAA,CAAA,MAAM,GAAqB,EAAE;AAErC;;;;AAIG;QACK,IAAA,CAAA,WAAW,GAA6B,IAAI;AAEpD;;;;;AAKG;QACK,IAAA,CAAA,YAAY,GAAuB,IAAI;AAE/C;;;;;AAKG;QACK,IAAA,CAAA,eAAe,GAAuB,IAAI;AAElD;;;AAGG;QACK,IAAA,CAAA,aAAa,GAAG,CAAC;QACjB,IAAA,CAAA,UAAU,GAAG,KAAK;AAkRlB,QAAA,IAAA,CAAA,oBAAoB,GAAG,CAAC,KAAoB,KAAU;AAC5D,YAAA,IACE,KAAK,CAAC,GAAG,KAAK,SAAS;gBACvB,KAAK,CAAC,GAAG,KAAK,WAAW;gBACzB,KAAK,CAA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ADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAIlC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAIlC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAIlC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE;AACf,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAI5B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACnC,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAGf,UAAA,CAAA;AADP,IAAA,KAAK;AACqE,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAtBvE,6BAA6B,GAAA,UAAA,CAAA;AADlC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,wBAAA,CAA0B;AAC5C,CAAA,EAAA,6BAA6B,CA4JlC;AAQD,4CAAe,6BAA6B;;;;"}
|
|
1
|
+
{"version":3,"file":"autocomplete-controller.js","sources":["../../../../src/components/prompt-line/src/autocomplete-controller.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;MAyDU,sBAAsB,CAAA;AA0CjC,IAAA,WAAA,CAAY,OAAsC,EAAA;QAjC1C,IAAA,CAAA,QAAQ,GAAoC,IAAI;QAChD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;AA1KC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAIlC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAIlC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAIlC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACJ,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAI1B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACnC,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAGf,UAAA,CAAA;AADP,IAAA,KAAK;AACqE,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAtBvE,6BAA6B,GAAA,UAAA,CAAA;AADlC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,wBAAA,CAA0B;AAC5C,CAAA,EAAA,6BAA6B,CA6KlC;AAQD,4CAAe,6BAA6B;;;;"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { LitElement, PropertyValues, TemplateResult } from
|
|
10
|
-
import
|
|
9
|
+
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
10
|
+
import '@carbon/web-components/es-custom/components/icon-button/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Error message component for AI Chat prompt line.
|
|
13
13
|
*
|
|
@@ -27,10 +27,6 @@ declare class ErrorMessage extends LitElement {
|
|
|
27
27
|
* Whether the error message is collapsible.
|
|
28
28
|
*/
|
|
29
29
|
collapsible: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the prompt line has alternate layout for expanded mode and/or message actions.
|
|
32
|
-
*/
|
|
33
|
-
actionsLayout: boolean;
|
|
34
30
|
/**
|
|
35
31
|
* Whether the error message is in fullscreen layout.
|
|
36
32
|
*/
|
|
@@ -44,7 +40,7 @@ declare class ErrorMessage extends LitElement {
|
|
|
44
40
|
}
|
|
45
41
|
declare global {
|
|
46
42
|
interface HTMLElementTagNameMap {
|
|
47
|
-
|
|
43
|
+
'cds-custom-aichat-error-message': ErrorMessage;
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
export default ErrorMessage;
|
|
@@ -37,19 +37,15 @@ let ErrorMessage = class ErrorMessage extends LitElement {
|
|
|
37
37
|
/**
|
|
38
38
|
* The error title text to display.
|
|
39
39
|
*/
|
|
40
|
-
this.title =
|
|
40
|
+
this.title = '';
|
|
41
41
|
/**
|
|
42
42
|
* The error description text to display.
|
|
43
43
|
*/
|
|
44
|
-
this.description =
|
|
44
|
+
this.description = '';
|
|
45
45
|
/**
|
|
46
46
|
* Whether the error message is collapsible.
|
|
47
47
|
*/
|
|
48
48
|
this.collapsible = false;
|
|
49
|
-
/**
|
|
50
|
-
* Whether the prompt line has alternate layout for expanded mode and/or message actions.
|
|
51
|
-
*/
|
|
52
|
-
this.actionsLayout = false;
|
|
53
49
|
/**
|
|
54
50
|
* Whether the error message is in fullscreen layout.
|
|
55
51
|
*/
|
|
@@ -62,7 +58,7 @@ let ErrorMessage = class ErrorMessage extends LitElement {
|
|
|
62
58
|
}
|
|
63
59
|
updated(changedProps) {
|
|
64
60
|
super.updated(changedProps);
|
|
65
|
-
if (changedProps.has(
|
|
61
|
+
if (changedProps.has('collapsible')) {
|
|
66
62
|
this._isExpanded = !this.collapsible;
|
|
67
63
|
}
|
|
68
64
|
}
|
|
@@ -80,16 +76,15 @@ let ErrorMessage = class ErrorMessage extends LitElement {
|
|
|
80
76
|
let expandButton = null;
|
|
81
77
|
if (hasChevron) {
|
|
82
78
|
const icon = this._isExpanded ? ChevronUp16 : ChevronDown16;
|
|
83
|
-
const label = `${this._isExpanded ?
|
|
79
|
+
const label = `${this._isExpanded ? 'Collapse' : 'Expand'} error message`;
|
|
84
80
|
expandButton = html `<cds-custom-icon-button
|
|
85
81
|
class="${blockClass}__chevron"
|
|
86
82
|
kind="ghost"
|
|
87
83
|
size="sm"
|
|
88
84
|
align="top-end"
|
|
89
85
|
aria-label="${label}"
|
|
90
|
-
@click="${this._handleClickExpanded}"
|
|
91
|
-
|
|
92
|
-
${iconLoader(icon, { slot: "icon", focusable: "true", tabindex: "-1" })}
|
|
86
|
+
@click="${this._handleClickExpanded}">
|
|
87
|
+
${iconLoader(icon, { slot: 'icon', focusable: 'true', tabindex: '-1' })}
|
|
93
88
|
<span slot="tooltip-content">${label}</span>
|
|
94
89
|
</cds-custom-icon-button>`;
|
|
95
90
|
}
|
|
@@ -98,14 +93,12 @@ let ErrorMessage = class ErrorMessage extends LitElement {
|
|
|
98
93
|
<div
|
|
99
94
|
class="${blockClass}__warning-icon-and-text${!hasChevron
|
|
100
95
|
? ` ${blockClass}__warning-icon-and-text--no-chevron`
|
|
101
|
-
:
|
|
102
|
-
>
|
|
96
|
+
: ''}${this._isExpanded ? ` ${blockClass}__text-overflow-gradient` : ''}">
|
|
103
97
|
${this.fullscreen ? null : warningIcon}
|
|
104
98
|
<div
|
|
105
|
-
class="${blockClass}__text${this._isExpanded ? ` ${blockClass}__text--expanded` :
|
|
106
|
-
>
|
|
99
|
+
class="${blockClass}__text${this._isExpanded ? ` ${blockClass}__text--expanded` : ''}">
|
|
107
100
|
${this.title}<br />
|
|
108
|
-
${this._isExpanded ? this.description :
|
|
101
|
+
${this._isExpanded ? this.description : ''}
|
|
109
102
|
</div>
|
|
110
103
|
${this.fullscreen ? warningIcon : null}
|
|
111
104
|
</div>
|
|
@@ -118,19 +111,16 @@ ErrorMessage.styles = css `
|
|
|
118
111
|
${unsafeCSS(styles)}
|
|
119
112
|
`;
|
|
120
113
|
__decorate([
|
|
121
|
-
property({ type: String, attribute:
|
|
114
|
+
property({ type: String, attribute: 'title' })
|
|
122
115
|
], ErrorMessage.prototype, "title", void 0);
|
|
123
116
|
__decorate([
|
|
124
|
-
property({ type: String, attribute:
|
|
117
|
+
property({ type: String, attribute: 'description' })
|
|
125
118
|
], ErrorMessage.prototype, "description", void 0);
|
|
126
119
|
__decorate([
|
|
127
|
-
property({ type: Boolean, attribute:
|
|
120
|
+
property({ type: Boolean, attribute: 'collapsible' })
|
|
128
121
|
], ErrorMessage.prototype, "collapsible", void 0);
|
|
129
122
|
__decorate([
|
|
130
|
-
property({ type: Boolean,
|
|
131
|
-
], ErrorMessage.prototype, "actionsLayout", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
property({ type: Boolean, attribute: "fullscreen" })
|
|
123
|
+
property({ type: Boolean, attribute: 'fullscreen' })
|
|
134
124
|
], ErrorMessage.prototype, "fullscreen", void 0);
|
|
135
125
|
__decorate([
|
|
136
126
|
state()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-message.js","sources":["../../../../src/components/prompt-line/src/error-message.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAuBH,MAAM,UAAU,GAAG,CAAA,EAAG,MAAM,gBAAgB;AAE5C;;;;AAIG;AAEH,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;AAKE;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAG,EAAE;AAEV;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,EAAE;AAEhB;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,KAAK;AAEnB;;AAEG;QAEH,IAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"error-message.js","sources":["../../../../src/components/prompt-line/src/error-message.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAuBH,MAAM,UAAU,GAAG,CAAA,EAAG,MAAM,gBAAgB;AAE5C;;;;AAIG;AAEH,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;AAKE;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAG,EAAE;AAEV;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,EAAE;AAEhB;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,KAAK;AAEnB;;AAEG;QAEH,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;;AAGG;QACc,IAAA,CAAA,WAAW,GAAG,IAAI;IA8DrC;AA5DY,IAAA,OAAO,CAAC,YAA4B,EAAA;AAC5C,QAAA,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;AAC3B,QAAA,IAAI,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;AACnC,YAAA,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW;QACtC;IACF;AAEA;;AAEG;IACK,oBAAoB,GAAA;AAC1B,QAAA,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW;IACtC;IAEA,MAAM,GAAA;AACJ,QAAA,MAAM,WAAW,GAAG,IAAI,CAAA,gBAAgB,UAAU,CAAA;QAC9C,UAAU,CAAC,eAAe,CAAC;YACvB;QAER,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW;QAEvD,IAAI,YAAY,GAA0B,IAAI;QAC9C,IAAI,UAAU,EAAE;AACd,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,GAAG,WAAW,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MX,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE;AACnC,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAMjB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE;AACjC,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAMpB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE;AACjC,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAMF,UAAA,CAAA;AAAhB,IAAA,KAAK;AAA8B,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAjChC,YAAY,GAAA,UAAA,CAAA;AADjB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,cAAA,CAAgB;AAClC,CAAA,EAAA,YAAY,CA+FjB;AAQD,qBAAe,YAAY;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([".cds-custom-aichat-error-message{align-items:flex-start;box-sizing:border-box;display:flex;gap:.5rem;inline-size:100%;position:relative}.cds-custom-aichat-error-message:after{background:var(--cds-border-subtle-00,#e0e0e0);block-size:1px;content:\"\";display:block;inline-size:calc(100% +
|
|
10
|
+
var styles = css([".cds-custom-aichat-error-message{align-items:flex-start;box-sizing:border-box;display:flex;gap:.5rem;inline-size:100%;padding-inline-start:.5rem;position:relative}.cds-custom-aichat-error-message:after{background:var(--cds-border-subtle-00,#e0e0e0);block-size:1px;content:\"\";display:block;inline-size:calc(100% + 1rem);inset-block-end:0;inset-inline-start:-.5rem;position:absolute;z-index:0}.cds-custom-aichat-error-message__warning-icon-and-text{align-items:flex-start;display:flex;flex:1;gap:1rem;margin-block-start:.75rem;position:relative;z-index:0}.cds-custom-aichat-error-message__text-overflow-gradient:after{background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,var(--cds-background,#fff) 100%);block-size:.75rem;content:\"\";display:block;inline-size:100%;inset-block-end:0;inset-inline-start:0;pointer-events:none;position:absolute;z-index:1}.cds-custom-aichat-error-message__warning-icon-and-text--no-chevron{margin-inline-end:.5rem}:host([fullscreen]).cds-custom-aichat-error-message__warning-icon-and-text--no-chevron{margin-inline-end:1rem}.cds-custom-aichat-error-message__warning-icon{align-items:center;display:flex}.cds-custom-aichat-error-message__warning-icon svg{fill:var(--cds-support-error,#da1e28)}.cds-custom-aichat-error-message__text{color:var(--cds-support-error,#da1e28);flex:1;font-size:var(--cds-helper-text-01-font-size,.75rem);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);line-height:var(--cds-helper-text-01-line-height,1.33333);max-block-size:1rem;overflow:hidden;padding-block-end:.75rem;text-overflow:ellipsis;white-space:nowrap}.cds-custom-aichat-error-message__text--expanded{max-block-size:5rem;overflow-y:auto;text-overflow:clip;white-space:normal}.cds-custom-aichat-error-message__chevron{margin-block:.25rem}.cds-custom-aichat-error-message__chevron svg{fill:var(--cds-icon-primary,#161616);pointer-events:none}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=error-message.scss.js.map
|