@carbon/ai-chat-components 1.9.0-alpha.0 → 1.9.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +1 -5
- package/custom-elements.json +2466 -1911
- package/es/components/audio-player/index.d.ts +4 -4
- package/es/components/audio-player/src/audio-player.d.ts +1 -1
- package/es/components/audio-player/src/audio-player.js +33 -38
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/base-provider.js +9 -9
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es/components/audio-player/src/transcript.d.ts +2 -2
- package/es/components/audio-player/src/transcript.js +13 -16
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +1 -1
- package/es/components/card/index.d.ts +4 -4
- package/es/components/card/src/card-footer.d.ts +5 -5
- package/es/components/card/src/card-footer.js +12 -16
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.d.ts +4 -4
- package/es/components/card/src/card-steps.js +3 -5
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.d.ts +2 -2
- package/es/components/card/src/card.js +3 -3
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/carousel/index.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -2
- package/es/components/carousel/src/carousel.js +4 -6
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.js +1 -1
- package/es/components/chain-of-thought/defs.js +1 -1
- package/es/components/chain-of-thought/index.d.ts +10 -10
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -1
- package/es/components/chat-button/defs.js +1 -1
- package/es/components/chat-button/index.d.ts +2 -2
- package/es/components/chat-button/src/chat-button.d.ts +5 -5
- package/es/components/chat-button/src/chat-button.js +6 -6
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/index.d.ts +11 -11
- package/es/components/chat-history/src/history-content.d.ts +1 -1
- package/es/components/chat-history/src/history-content.js +6 -6
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es/components/chat-history/src/history-delete-panel.js +11 -11
- package/es/components/chat-history/src/history-header.d.ts +2 -2
- package/es/components/chat-history/src/history-header.js +9 -10
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -2
- package/es/components/chat-history/src/history-loading.js +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es/components/chat-history/src/history-panel-item.js +39 -41
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es/components/chat-history/src/history-panel-items.js +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.js +3 -3
- package/es/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es/components/chat-history/src/history-search-item.js +4 -4
- package/es/components/chat-history/src/history-shell.d.ts +1 -1
- package/es/components/chat-history/src/history-shell.js +3 -3
- package/es/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es/components/chat-history/src/history-toolbar.js +13 -10
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +5 -5
- package/es/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es/components/chat-shell/src/chat-header.js +37 -44
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es/components/chat-shell/src/corner-manager.js +30 -30
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.js +12 -12
- package/es/components/chat-shell/src/panel.d.ts +2 -2
- package/es/components/chat-shell/src/panel.js +99 -100
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es/components/chat-shell/src/shell.d.ts +8 -8
- package/es/components/chat-shell/src/shell.js +128 -135
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es/components/chat-shell/src/slot-observer.js +4 -7
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +4 -4
- package/es/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager.js +32 -32
- package/es/components/code-snippet/index.d.ts +4 -4
- package/es/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es/components/code-snippet/src/code-snippet.js +87 -93
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es/components/code-snippet/src/dom-utils.js +6 -6
- package/es/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es/components/code-snippet/src/layout-utils.js +9 -9
- package/es/components/code-snippet/src/streaming-manager.js +5 -5
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es/components/feedback/src/feedback-buttons.js +17 -19
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -9
- package/es/components/feedback/src/feedback.js +38 -45
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +5 -4
- package/es/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es/components/file-uploads/src/file-type-icon.js +87 -0
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es/components/file-uploads/src/file-upload-item.js +211 -112
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es/components/file-uploads/src/file-uploads.js +54 -29
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es/components/file-uploads/src/types.d.ts +39 -0
- package/es/components/file-uploads/src/types.js +8 -0
- package/es/components/file-uploads/src/types.js.map +1 -0
- package/es/components/launcher/index.d.ts +9 -0
- package/es/components/launcher/index.js +9 -0
- package/es/components/launcher/index.js.map +1 -0
- package/es/components/launcher/src/launcher.d.ts +68 -0
- package/es/components/launcher/src/launcher.js +152 -0
- package/es/components/launcher/src/launcher.js.map +1 -0
- package/es/components/launcher/src/launcher.scss.js +13 -0
- package/es/components/launcher/src/launcher.scss.js.map +1 -0
- package/es/components/markdown/index.d.ts +5 -5
- package/es/components/markdown/src/markdown-renderer-types.d.ts +20 -9
- package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es/components/markdown/src/markdown-renderer.js +97 -85
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +20 -20
- package/es/components/markdown/src/markdown.d.ts +4 -7
- package/es/components/markdown/src/markdown.js +110 -82
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.template.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es/components/markdown/src/utils/html-helpers.js +72 -72
- package/es/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es/components/markdown/src/utils/lit-directives.js +5 -5
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es/components/markdown/src/utils/plugin-fallback.js +68 -66
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es/components/markdown/src/utils/slot-names.d.ts +1 -0
- package/es/components/markdown/src/utils/slot-names.js +83 -0
- package/es/components/markdown/src/utils/slot-names.js.map +1 -0
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es/components/markdown/src/utils/streaming-table.js +6 -6
- package/es/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es/components/markdown/src/utils/table-helpers.js +17 -18
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/src/processing.d.ts +2 -2
- package/es/components/processing/src/processing.js +2 -2
- package/es/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es/components/prompt-line/autocomplete/index.js +9 -0
- package/es/components/prompt-line/autocomplete/index.js.map +1 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +175 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +494 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es/components/prompt-line/index.d.ts +18 -18
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +28 -10
- package/es/components/prompt-line/src/autocomplete-controller.js +162 -52
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +3 -7
- package/es/components/prompt-line/src/error-message.js +13 -23
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es/components/prompt-line/src/prompt-line.js +35 -35
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +4 -4
- package/es/components/prompt-line/src/send-control.js +18 -20
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/send-control.scss.js +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +24 -12
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +46 -6
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es/components/prompt-line/src/types.d.ts +2 -2
- package/es/components/prompt-line/src/types.js.map +1 -1
- package/es/components/reasoning-steps/index.d.ts +4 -4
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es/components/shared/media-utils/script-loader.js +1 -1
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/src/table-loader.d.ts +1 -1
- package/es/components/table/src/table-loader.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +3 -3
- package/es/components/table/src/table-pagination.template.js +4 -5
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es/components/table/src/table-skeleton.template.js +2 -3
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +3 -4
- package/es/components/table/src/table.js +36 -39
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +5 -5
- package/es/components/table/src/table.template.js +6 -9
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +9 -7
- package/es/components/toolbar/src/toolbar.js +52 -36
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/truncated-text/index.d.ts +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es/components/truncated-text/src/truncated-text.js +26 -28
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es/components/video-player/index.d.ts +2 -2
- package/es/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es/components/video-player/src/providers/base-provider.js +5 -5
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es/components/video-player/src/utils/url-detector.js +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -2
- package/es/components/video-player/src/video-player.js +37 -41
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +4 -4
- package/es/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es/globals/decorators/carbon-element.d.ts +4 -4
- package/es/globals/decorators/carbon-element.js +2 -2
- package/es/globals/decorators/index.d.ts +1 -1
- package/es/globals/scss/common.scss.js +1 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es/globals/utils/aria-announcer-manager.js +6 -6
- package/es/globals/utils/browser-utils.js +1 -1
- package/es/globals/utils/csv.d.ts +8 -0
- package/es/globals/utils/csv.js +37 -0
- package/es/globals/utils/csv.js.map +1 -0
- package/es/globals/utils/dom-utils.js +1 -1
- package/es/globals/utils/focus-utils.js +4 -4
- package/es/globals/utils/iconTransform.d.ts +2 -2
- package/es/globals/utils/iconTransform.js +21 -21
- package/es/globals/utils/rtl-utils.js +1 -1
- package/es/globals/utils/uuid.js +5 -5
- package/es/react/__tests__/jest.setup.js +12 -12
- package/es/react/ai-label-action-button.d.ts +1 -1
- package/es/react/ai-label-action-button.js +1 -1
- package/es/react/audio-player.d.ts +1 -1
- package/es/react/audio-player.js +5 -5
- package/es/react/autocomplete.d.ts +1 -1
- package/es/react/autocomplete.js +5 -5
- package/es/react/card.d.ts +1 -1
- package/es/react/card.js +5 -5
- package/es/react/carousel.d.ts +1 -1
- package/es/react/carousel.js +2 -2
- package/es/react/chain-of-thought-step.d.ts +1 -1
- package/es/react/chain-of-thought-step.js +4 -4
- package/es/react/chain-of-thought-toggle.d.ts +2 -2
- package/es/react/chain-of-thought-toggle.js +3 -3
- package/es/react/chain-of-thought.d.ts +2 -2
- package/es/react/chain-of-thought.js +4 -4
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +2 -2
- package/es/react/chat-header.d.ts +3 -3
- package/es/react/chat-header.js +2 -2
- package/es/react/chat-shell.d.ts +2 -2
- package/es/react/chat-shell.js +2 -2
- package/es/react/code-snippet.d.ts +4 -4
- package/es/react/code-snippet.js +3 -3
- package/es/react/error-message.d.ts +1 -1
- package/es/react/error-message.js +1 -1
- package/es/react/feedback-buttons.d.ts +1 -1
- package/es/react/feedback-buttons.js +3 -3
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +4 -4
- package/es/react/file-upload-item.d.ts +11 -0
- package/es/react/file-upload-item.js +31 -0
- package/es/react/file-upload-item.js.map +1 -0
- package/es/react/file-uploads.d.ts +1 -1
- package/es/react/file-uploads.js +2 -2
- package/es/react/history/history-content.d.ts +1 -1
- package/es/react/history/history-content.js +1 -1
- package/es/react/history/history-delete-panel.d.ts +1 -1
- package/es/react/history/history-delete-panel.js +3 -3
- package/es/react/history/history-header.d.ts +1 -1
- package/es/react/history/history-header.js +2 -2
- package/es/react/history/history-loading.d.ts +1 -1
- package/es/react/history/history-loading.js +1 -1
- package/es/react/history/history-panel-item-input.d.ts +1 -1
- package/es/react/history/history-panel-item-input.js +4 -4
- package/es/react/history/history-panel-item.d.ts +1 -1
- package/es/react/history/history-panel-item.js +6 -6
- package/es/react/history/history-panel-items.d.ts +1 -1
- package/es/react/history/history-panel-items.js +1 -1
- package/es/react/history/history-panel-menu.d.ts +1 -1
- package/es/react/history/history-panel-menu.js +1 -1
- package/es/react/history/history-panel.d.ts +1 -1
- package/es/react/history/history-panel.js +1 -1
- package/es/react/history/history-search-item.d.ts +1 -1
- package/es/react/history/history-search-item.js +2 -2
- package/es/react/history/history-shell.d.ts +1 -1
- package/es/react/history/history-shell.js +1 -1
- package/es/react/history/history-toolbar.d.ts +1 -1
- package/es/react/history/history-toolbar.js +3 -3
- package/es/react/history/index.d.ts +12 -12
- package/es/react/hooks/useChatAutocomplete.d.ts +9 -4
- package/es/react/hooks/useChatAutocomplete.js +50 -19
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/input-send-control.d.ts +1 -1
- package/es/react/input-send-control.js +3 -3
- package/es/react/launcher.d.ts +11 -0
- package/es/react/launcher.js +31 -0
- package/es/react/launcher.js.map +1 -0
- package/es/react/markdown.d.ts +7 -7
- package/es/react/markdown.js +13 -13
- package/es/react/markdown.js.map +1 -1
- package/es/react/panel.d.ts +1 -1
- package/es/react/panel.js +7 -7
- package/es/react/processing.d.ts +1 -1
- package/es/react/processing.js +2 -2
- package/es/react/prompt-line-shell.d.ts +1 -1
- package/es/react/prompt-line-shell.js +1 -1
- package/es/react/prompt-line.d.ts +1 -1
- package/es/react/prompt-line.js +9 -9
- package/es/react/reasoning-step.d.ts +1 -1
- package/es/react/reasoning-step.js +4 -4
- package/es/react/reasoning-steps-toggle.d.ts +2 -2
- package/es/react/reasoning-steps-toggle.js +3 -3
- package/es/react/reasoning-steps.d.ts +1 -1
- package/es/react/reasoning-steps.js +2 -2
- package/es/react/stop-streaming-button.d.ts +1 -1
- package/es/react/stop-streaming-button.js +1 -1
- package/es/react/table.d.ts +2 -2
- package/es/react/table.js +1 -1
- package/es/react/tool-call-data.d.ts +1 -1
- package/es/react/tool-call-data.js +2 -2
- package/es/react/toolbar.d.ts +4 -4
- package/es/react/toolbar.js +2 -2
- package/es/react/transcript.d.ts +1 -1
- package/es/react/transcript.js +3 -3
- package/es/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es/react/utils/transformSuggestionConfig.js +3 -3
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es/react/utils/withWebComponentBridge.js +22 -22
- package/es/react/video-player.d.ts +1 -1
- package/es/react/video-player.js +5 -5
- package/es/react/workspace-shell.d.ts +1 -1
- package/es/react/workspace-shell.js +6 -6
- package/es/testing/load-all-lazy-deps.d.ts +2 -2
- package/es/testing/load-all-lazy-deps.js +1 -1
- package/es/typings/overflow-menu.d.ts +2 -2
- package/es-custom/components/audio-player/index.d.ts +4 -4
- package/es-custom/components/audio-player/src/audio-player.d.ts +1 -1
- package/es-custom/components/audio-player/src/audio-player.js +33 -38
- package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/base-provider.js +9 -9
- package/es-custom/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
- package/es-custom/components/audio-player/src/transcript.js +13 -16
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/card/index.d.ts +4 -4
- package/es-custom/components/card/src/card-footer.d.ts +5 -5
- package/es-custom/components/card/src/card-footer.js +12 -16
- package/es-custom/components/card/src/card-footer.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.d.ts +4 -4
- package/es-custom/components/card/src/card-steps.js +3 -5
- package/es-custom/components/card/src/card-steps.js.map +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.d.ts +2 -2
- package/es-custom/components/card/src/card.js +3 -3
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/carousel/index.d.ts +1 -1
- package/es-custom/components/carousel/src/carousel.d.ts +2 -2
- package/es-custom/components/carousel/src/carousel.js +4 -6
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/carousel/src/carousel.scss.js +1 -1
- package/es-custom/components/chain-of-thought/defs.js +1 -1
- package/es-custom/components/chain-of-thought/index.d.ts +10 -10
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/defs.d.ts +1 -1
- package/es-custom/components/chat-button/defs.js +1 -1
- package/es-custom/components/chat-button/index.d.ts +2 -2
- package/es-custom/components/chat-button/src/chat-button.d.ts +5 -5
- package/es-custom/components/chat-button/src/chat-button.js +6 -6
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/index.d.ts +11 -11
- package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-content.js +6 -6
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-delete-panel.js +11 -11
- package/es-custom/components/chat-history/src/history-header.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-header.js +9 -10
- package/es-custom/components/chat-history/src/history-header.js.map +1 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-loading.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es-custom/components/chat-history/src/history-panel-item.js +39 -41
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.js +3 -3
- package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-search-item.js +4 -4
- package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-shell.js +3 -3
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es-custom/components/chat-history/src/history-toolbar.js +13 -10
- package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es-custom/components/chat-shell/index.d.ts +5 -5
- package/es-custom/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es-custom/components/chat-shell/src/chat-header.js +37 -44
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +30 -30
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.js +12 -12
- package/es-custom/components/chat-shell/src/panel.d.ts +2 -2
- package/es-custom/components/chat-shell/src/panel.js +99 -100
- package/es-custom/components/chat-shell/src/panel.js.map +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
- package/es-custom/components/chat-shell/src/shell.js +128 -135
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.js +4 -7
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es-custom/components/chat-shell/src/types.d.ts +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +32 -32
- package/es-custom/components/code-snippet/index.d.ts +4 -4
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es-custom/components/code-snippet/src/code-snippet.js +87 -93
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es-custom/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es-custom/components/code-snippet/src/dom-utils.js +6 -6
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/layout-utils.js +9 -9
- package/es-custom/components/code-snippet/src/streaming-manager.js +5 -5
- package/es-custom/components/feedback/index.d.ts +4 -4
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es-custom/components/feedback/src/feedback-buttons.js +17 -19
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +9 -9
- package/es-custom/components/feedback/src/feedback.js +38 -45
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/file-uploads/index.d.ts +5 -4
- package/es-custom/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js +87 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es-custom/components/file-uploads/src/file-upload-item.js +211 -112
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es-custom/components/file-uploads/src/file-uploads.js +54 -29
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es-custom/components/file-uploads/src/types.d.ts +39 -0
- package/es-custom/components/file-uploads/src/types.js +8 -0
- package/es-custom/components/file-uploads/src/types.js.map +1 -0
- package/es-custom/components/launcher/index.d.ts +9 -0
- package/es-custom/components/launcher/index.js +9 -0
- package/{es/components/autocomplete → es-custom/components/launcher}/index.js.map +1 -1
- package/es-custom/components/launcher/src/launcher.d.ts +68 -0
- package/es-custom/components/launcher/src/launcher.js +152 -0
- package/es-custom/components/launcher/src/launcher.js.map +1 -0
- package/es-custom/components/launcher/src/launcher.scss.js +13 -0
- package/es-custom/components/launcher/src/launcher.scss.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +5 -5
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +20 -9
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es-custom/components/markdown/src/markdown-renderer.js +97 -85
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +20 -20
- package/es-custom/components/markdown/src/markdown.d.ts +4 -7
- package/es-custom/components/markdown/src/markdown.js +110 -82
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.template.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/html-helpers.js +72 -72
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es-custom/components/markdown/src/utils/lit-directives.js +5 -5
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +68 -66
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es-custom/components/markdown/src/utils/slot-names.d.ts +1 -0
- package/es-custom/components/markdown/src/utils/slot-names.js +83 -0
- package/es-custom/components/markdown/src/utils/slot-names.js.map +1 -0
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js +6 -6
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/table-helpers.js +17 -18
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/processing/index.d.ts +1 -1
- package/es-custom/components/processing/src/processing.d.ts +2 -2
- package/es-custom/components/processing/src/processing.js +2 -2
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es-custom/components/prompt-line/autocomplete/index.js +9 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/index.js.map +1 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +175 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +494 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es-custom/components/prompt-line/index.d.ts +18 -18
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +28 -10
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +162 -52
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +3 -7
- package/es-custom/components/prompt-line/src/error-message.js +13 -23
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es-custom/components/prompt-line/src/prompt-line.js +35 -35
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +4 -4
- package/es-custom/components/prompt-line/src/send-control.js +18 -20
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -1
- package/es-custom/components/prompt-line/src/send-control.scss.js +1 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +24 -12
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +46 -6
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es-custom/components/prompt-line/src/types.d.ts +2 -2
- package/es-custom/components/prompt-line/src/types.js.map +1 -1
- package/es-custom/components/reasoning-steps/index.d.ts +4 -4
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es-custom/components/shared/media-utils/script-loader.js +1 -1
- package/es-custom/components/table/index.d.ts +3 -3
- package/es-custom/components/table/src/table-loader.d.ts +1 -1
- package/es-custom/components/table/src/table-loader.js +1 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +3 -3
- package/es-custom/components/table/src/table-pagination.template.js +4 -5
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
- package/es-custom/components/table/src/table-runtime.d.ts +2 -2
- package/es-custom/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es-custom/components/table/src/table-skeleton.template.js +2 -3
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +3 -4
- package/es-custom/components/table/src/table.js +36 -39
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.template.d.ts +5 -5
- package/es-custom/components/table/src/table.template.js +6 -9
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/index.d.ts +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +9 -7
- package/es-custom/components/toolbar/src/toolbar.js +52 -36
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/truncated-text/index.d.ts +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es-custom/components/truncated-text/src/truncated-text.js +26 -28
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es-custom/components/video-player/index.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es-custom/components/video-player/src/providers/base-provider.js +5 -5
- package/es-custom/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es-custom/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es-custom/components/video-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/video-player/src/video-player.d.ts +2 -2
- package/es-custom/components/video-player/src/video-player.js +37 -41
- package/es-custom/components/video-player/src/video-player.js.map +1 -1
- package/es-custom/components/workspace-shell/index.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es-custom/globals/decorators/carbon-element.d.ts +4 -4
- package/es-custom/globals/decorators/carbon-element.js +2 -2
- package/es-custom/globals/decorators/index.d.ts +1 -1
- package/es-custom/globals/scss/common.scss.js +1 -1
- package/es-custom/globals/settings.js +2 -2
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es-custom/globals/utils/aria-announcer-manager.js +6 -6
- package/es-custom/globals/utils/browser-utils.js +1 -1
- package/es-custom/globals/utils/csv.d.ts +8 -0
- package/es-custom/globals/utils/csv.js +37 -0
- package/es-custom/globals/utils/csv.js.map +1 -0
- package/es-custom/globals/utils/dom-utils.js +1 -1
- package/es-custom/globals/utils/focus-utils.js +4 -4
- package/es-custom/globals/utils/iconTransform.d.ts +2 -2
- package/es-custom/globals/utils/iconTransform.js +21 -21
- package/es-custom/globals/utils/rtl-utils.js +1 -1
- package/es-custom/globals/utils/uuid.js +5 -5
- package/es-custom/react/__tests__/jest.setup.js +12 -12
- package/es-custom/react/ai-label-action-button.d.ts +1 -1
- package/es-custom/react/ai-label-action-button.js +1 -1
- package/es-custom/react/audio-player.d.ts +1 -1
- package/es-custom/react/audio-player.js +5 -5
- package/es-custom/react/autocomplete.d.ts +1 -1
- package/es-custom/react/autocomplete.js +5 -5
- package/es-custom/react/card.d.ts +1 -1
- package/es-custom/react/card.js +5 -5
- package/es-custom/react/carousel.d.ts +1 -1
- package/es-custom/react/carousel.js +2 -2
- package/es-custom/react/chain-of-thought-step.d.ts +1 -1
- package/es-custom/react/chain-of-thought-step.js +4 -4
- package/es-custom/react/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/react/chain-of-thought-toggle.js +3 -3
- package/es-custom/react/chain-of-thought.d.ts +2 -2
- package/es-custom/react/chain-of-thought.js +4 -4
- package/es-custom/react/chat-button.d.ts +3 -3
- package/es-custom/react/chat-button.js +2 -2
- package/es-custom/react/chat-header.d.ts +3 -3
- package/es-custom/react/chat-header.js +2 -2
- package/es-custom/react/chat-shell.d.ts +2 -2
- package/es-custom/react/chat-shell.js +2 -2
- package/es-custom/react/code-snippet.d.ts +4 -4
- package/es-custom/react/code-snippet.js +3 -3
- package/es-custom/react/error-message.d.ts +1 -1
- package/es-custom/react/error-message.js +1 -1
- package/es-custom/react/feedback-buttons.d.ts +1 -1
- package/es-custom/react/feedback-buttons.js +3 -3
- package/es-custom/react/feedback.d.ts +2 -2
- package/es-custom/react/feedback.js +4 -4
- package/es-custom/react/file-upload-item.d.ts +11 -0
- package/es-custom/react/file-upload-item.js +31 -0
- package/es-custom/react/file-upload-item.js.map +1 -0
- package/es-custom/react/file-uploads.d.ts +1 -1
- package/es-custom/react/file-uploads.js +2 -2
- package/es-custom/react/history/history-content.d.ts +1 -1
- package/es-custom/react/history/history-content.js +1 -1
- package/es-custom/react/history/history-delete-panel.d.ts +1 -1
- package/es-custom/react/history/history-delete-panel.js +3 -3
- package/es-custom/react/history/history-header.d.ts +1 -1
- package/es-custom/react/history/history-header.js +2 -2
- package/es-custom/react/history/history-loading.d.ts +1 -1
- package/es-custom/react/history/history-loading.js +1 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +1 -1
- package/es-custom/react/history/history-panel-item-input.js +4 -4
- package/es-custom/react/history/history-panel-item.d.ts +1 -1
- package/es-custom/react/history/history-panel-item.js +6 -6
- package/es-custom/react/history/history-panel-items.d.ts +1 -1
- package/es-custom/react/history/history-panel-items.js +1 -1
- package/es-custom/react/history/history-panel-menu.d.ts +1 -1
- package/es-custom/react/history/history-panel-menu.js +1 -1
- package/es-custom/react/history/history-panel.d.ts +1 -1
- package/es-custom/react/history/history-panel.js +1 -1
- package/es-custom/react/history/history-search-item.d.ts +1 -1
- package/es-custom/react/history/history-search-item.js +2 -2
- package/es-custom/react/history/history-shell.d.ts +1 -1
- package/es-custom/react/history/history-shell.js +1 -1
- package/es-custom/react/history/history-toolbar.d.ts +1 -1
- package/es-custom/react/history/history-toolbar.js +3 -3
- package/es-custom/react/history/index.d.ts +12 -12
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +9 -4
- package/es-custom/react/hooks/useChatAutocomplete.js +50 -19
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es-custom/react/input-send-control.d.ts +1 -1
- package/es-custom/react/input-send-control.js +3 -3
- package/es-custom/react/launcher.d.ts +11 -0
- package/es-custom/react/launcher.js +31 -0
- package/es-custom/react/launcher.js.map +1 -0
- package/es-custom/react/markdown.d.ts +7 -7
- package/es-custom/react/markdown.js +13 -13
- package/es-custom/react/markdown.js.map +1 -1
- package/es-custom/react/panel.d.ts +1 -1
- package/es-custom/react/panel.js +7 -7
- package/es-custom/react/processing.d.ts +1 -1
- package/es-custom/react/processing.js +2 -2
- package/es-custom/react/prompt-line-shell.d.ts +1 -1
- package/es-custom/react/prompt-line-shell.js +1 -1
- package/es-custom/react/prompt-line.d.ts +1 -1
- package/es-custom/react/prompt-line.js +9 -9
- package/es-custom/react/reasoning-step.d.ts +1 -1
- package/es-custom/react/reasoning-step.js +4 -4
- package/es-custom/react/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/react/reasoning-steps-toggle.js +3 -3
- package/es-custom/react/reasoning-steps.d.ts +1 -1
- package/es-custom/react/reasoning-steps.js +2 -2
- package/es-custom/react/stop-streaming-button.d.ts +1 -1
- package/es-custom/react/stop-streaming-button.js +1 -1
- package/es-custom/react/table.d.ts +2 -2
- package/es-custom/react/table.js +1 -1
- package/es-custom/react/tool-call-data.d.ts +1 -1
- package/es-custom/react/tool-call-data.js +2 -2
- package/es-custom/react/toolbar.d.ts +4 -4
- package/es-custom/react/toolbar.js +2 -2
- package/es-custom/react/transcript.d.ts +1 -1
- package/es-custom/react/transcript.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es-custom/react/utils/withWebComponentBridge.js +22 -22
- package/es-custom/react/video-player.d.ts +1 -1
- package/es-custom/react/video-player.js +5 -5
- package/es-custom/react/workspace-shell.d.ts +1 -1
- package/es-custom/react/workspace-shell.js +6 -6
- package/es-custom/testing/load-all-lazy-deps.d.ts +2 -2
- package/es-custom/testing/load-all-lazy-deps.js +1 -1
- package/es-custom/typings/overflow-menu.d.ts +2 -2
- package/package.json +4 -5
- package/scss/_custom-properties.scss +15 -15
- package/scss/_modifiers.scss +8 -8
- package/scss/_tokens-component.scss +1 -1
- package/scss/_tokens-layout.scss +1 -1
- package/scss/_utilities.scss +2 -2
- package/scss/common.scss +3 -3
- package/scss/grid.scss +2 -2
- package/scss/themes.scss +7 -7
- package/scss/vars.scss +3 -3
- package/telemetry.yml +64 -5
- package/es/components/autocomplete/index.d.ts +0 -15
- package/es/components/autocomplete/index.js +0 -11
- package/es/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es/components/autocomplete/src/autocomplete.js +0 -321
- package/es/components/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/autocomplete/index.d.ts +0 -15
- package/es-custom/components/autocomplete/index.js +0 -11
- package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es-custom/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es-custom/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es-custom/components/autocomplete/src/autocomplete.js +0 -321
- package/es-custom/components/autocomplete/src/autocomplete.js.map +0 -1
- /package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
- /package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([".cds-aichat-error-message{align-items:flex-start;box-sizing:border-box;display:flex;gap:.5rem;inline-size:100%;position:relative}.cds-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-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-aichat-error-message:after{background:var(--cds-border-subtle-00,#e0e0e0);block-size:1px;content:\"\";display:block;inline-size:calc(100% + 1rem - 2px);inset-block-end:0;inset-inline-start:calc(-.5rem + 1px);position:absolute}.cds-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-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-aichat-error-message__warning-icon-and-text--no-chevron{margin-inline-end:.5rem}:host([fullscreen]).cds-aichat-error-message__warning-icon-and-text--no-chevron{margin-inline-end:1rem}.cds-aichat-error-message__warning-icon{align-items:center;display:flex}.cds-aichat-error-message__warning-icon svg{fill:var(--cds-support-error,#da1e28)}.cds-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-aichat-error-message__text--expanded{max-block-size:5rem;overflow-y:auto;text-overflow:clip;white-space:normal}.cds-aichat-error-message__chevron{margin-block:.25rem}.cds-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
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* the textarea→rich swap stays imperceptible. Keep them reading this one
|
|
22
22
|
* constant so they can't drift.
|
|
23
23
|
*/
|
|
24
|
-
const PROMPT_LINE_MAX_BLOCK_SIZE =
|
|
24
|
+
const PROMPT_LINE_MAX_BLOCK_SIZE = '157px';
|
|
25
25
|
|
|
26
26
|
export { PROMPT_LINE_MAX_BLOCK_SIZE };
|
|
27
27
|
//# sourceMappingURL=prompt-line-constants.js.map
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* `Editor` / `JSONContent` are **type-only** imports here — erased at compile,
|
|
28
28
|
* so this module carries no Tiptap runtime.
|
|
29
29
|
*/
|
|
30
|
-
import type { Editor, Extension, JSONContent } from
|
|
30
|
+
import type { Editor, Extension, JSONContent } from '@tiptap/core';
|
|
31
31
|
/** Updater shape accepted by `setContent` for reduce-style edits. */
|
|
32
32
|
export type SetContentUpdater = (prev: JSONContent) => JSONContent;
|
|
33
33
|
/** Initial state handed to a controller when it mounts into the host. */
|
|
@@ -22,10 +22,10 @@ import { textToDoc, getRawText } from './tiptap/json-utils.js';
|
|
|
22
22
|
// Textarea styling (CSP-safe — installed on the shared dynamic stylesheet,
|
|
23
23
|
// governed by `style-src` not `style-src-attr`, matching ./tiptap/editor-styles).
|
|
24
24
|
// ---------------------------------------------------------------------------
|
|
25
|
-
const TA_GROW_CLASS =
|
|
26
|
-
const TA_FIELD_CLASS =
|
|
27
|
-
const TA_MIRROR_CLASS =
|
|
28
|
-
const TA_PHONE_CLASS =
|
|
25
|
+
const TA_GROW_CLASS = 'cds-aichat--input-textarea-grow';
|
|
26
|
+
const TA_FIELD_CLASS = 'cds-aichat--input-textarea';
|
|
27
|
+
const TA_MIRROR_CLASS = 'cds-aichat--input-textarea-mirror';
|
|
28
|
+
const TA_PHONE_CLASS = 'cds-aichat--input-textarea--phone';
|
|
29
29
|
let textareaRulesInstalled = false;
|
|
30
30
|
// Typography intentionally mirrors `.cds-aichat--input-pm-content` in
|
|
31
31
|
// ./tiptap/editor-styles.ts so the textarea and the Tiptap editor are pixel-
|
|
@@ -40,57 +40,57 @@ function ensureTextareaStyleRules() {
|
|
|
40
40
|
// Cap the box at the shared max and clip the (unbounded) mirror past it; the
|
|
41
41
|
// field below scrolls within that cap.
|
|
42
42
|
setVarsForSelector(`.${TA_GROW_CLASS}`, {
|
|
43
|
-
display:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
overflow:
|
|
43
|
+
display: 'grid',
|
|
44
|
+
'inline-size': '100%',
|
|
45
|
+
'max-block-size': PROMPT_LINE_MAX_BLOCK_SIZE,
|
|
46
|
+
overflow: 'hidden',
|
|
47
47
|
});
|
|
48
48
|
setVarsForSelector(`.${TA_GROW_CLASS} > *`, {
|
|
49
|
-
|
|
49
|
+
'grid-area': '1 / 1 / 2 / 2',
|
|
50
50
|
});
|
|
51
51
|
// Shared typography + reset for both the field and the mirror.
|
|
52
52
|
const shared = {
|
|
53
|
-
margin:
|
|
54
|
-
padding:
|
|
55
|
-
border:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
margin: '0',
|
|
54
|
+
padding: '0',
|
|
55
|
+
border: 'none',
|
|
56
|
+
'white-space': 'pre-wrap',
|
|
57
|
+
'word-wrap': 'break-word',
|
|
58
|
+
'overflow-wrap': 'break-word',
|
|
59
|
+
'font-family': 'inherit',
|
|
60
|
+
'font-size': 'var(--cds-body-01-font-size, 0.875rem)',
|
|
61
|
+
'font-weight': 'var(--cds-body-01-font-weight, 400)',
|
|
62
|
+
'letter-spacing': 'var(--cds-body-01-letter-spacing, 0.16px)',
|
|
63
|
+
'line-height': 'var(--cds-body-01-line-height, 1.42857)',
|
|
64
64
|
};
|
|
65
65
|
setVarsForSelector(`.${TA_FIELD_CLASS}`, {
|
|
66
66
|
...shared,
|
|
67
|
-
appearance:
|
|
68
|
-
background:
|
|
69
|
-
color:
|
|
70
|
-
outline:
|
|
71
|
-
resize:
|
|
67
|
+
appearance: 'none',
|
|
68
|
+
background: 'transparent',
|
|
69
|
+
color: 'var(--cds-text-primary, #161616)',
|
|
70
|
+
outline: 'none',
|
|
71
|
+
resize: 'none',
|
|
72
72
|
// The field is its own scroll container past the cap so the browser keeps
|
|
73
73
|
// the caret in view natively (an ancestor scroller would not track it).
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
'overflow-x': 'hidden',
|
|
75
|
+
'overflow-y': 'auto',
|
|
76
|
+
'inline-size': '100%',
|
|
77
|
+
'min-block-size': '0',
|
|
78
|
+
'max-block-size': PROMPT_LINE_MAX_BLOCK_SIZE,
|
|
79
79
|
});
|
|
80
80
|
setVarsForSelector(`.${TA_FIELD_CLASS}::placeholder`, {
|
|
81
|
-
color:
|
|
82
|
-
opacity:
|
|
81
|
+
color: 'var(--cds-text-secondary, #525252)',
|
|
82
|
+
opacity: '1',
|
|
83
83
|
});
|
|
84
84
|
setVarsForSelector(`.${TA_MIRROR_CLASS}`, {
|
|
85
85
|
...shared,
|
|
86
|
-
visibility:
|
|
87
|
-
|
|
86
|
+
visibility: 'hidden',
|
|
87
|
+
'pointer-events': 'none',
|
|
88
88
|
});
|
|
89
89
|
setVarsForSelector(`.${TA_PHONE_CLASS}`, {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
'font-size': 'var(--cds-body-02-font-size, 1rem)',
|
|
91
|
+
'font-weight': 'var(--cds-body-02-font-weight, 400)',
|
|
92
|
+
'letter-spacing': 'var(--cds-body-02-letter-spacing, 0)',
|
|
93
|
+
'line-height': 'var(--cds-body-02-line-height, 1.5)',
|
|
94
94
|
});
|
|
95
95
|
textareaRulesInstalled = true;
|
|
96
96
|
}
|
|
@@ -124,7 +124,7 @@ class TextareaController {
|
|
|
124
124
|
// Shift-Enter inserts a newline, and Enter on an empty field falls through to
|
|
125
125
|
// the native newline (matching `carbonChatEnter`'s empty guard).
|
|
126
126
|
this._onKeydown = (event) => {
|
|
127
|
-
this._dispatch(
|
|
127
|
+
this._dispatch('cds-aichat-prompt-keydown', { originalEvent: event });
|
|
128
128
|
// While an IME composition is active, Enter commits the candidate — let the
|
|
129
129
|
// IME own it. ProseMirror suppresses its keymap the same way, so the rich
|
|
130
130
|
// editor and the textarea agree. Without this, confirming a CJK candidate
|
|
@@ -132,15 +132,15 @@ class TextareaController {
|
|
|
132
132
|
if (event.isComposing) {
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
|
-
if (event.key ===
|
|
135
|
+
if (event.key === 'Enter' && !event.shiftKey) {
|
|
136
136
|
const isModEnter = event.metaKey || event.ctrlKey;
|
|
137
|
-
if (isModEnter || this.getValue() !==
|
|
137
|
+
if (isModEnter || this.getValue() !== '') {
|
|
138
138
|
event.preventDefault();
|
|
139
|
-
this._dispatch(
|
|
139
|
+
this._dispatch('cds-aichat-prompt-send-intent');
|
|
140
140
|
}
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
|
-
if (event.key ===
|
|
143
|
+
if (event.key === 'Escape') {
|
|
144
144
|
event.preventDefault();
|
|
145
145
|
this._textarea?.blur();
|
|
146
146
|
}
|
|
@@ -151,10 +151,10 @@ class TextareaController {
|
|
|
151
151
|
this._onFocus = () => {
|
|
152
152
|
const wasMouseFocus = this._focusFromMouse;
|
|
153
153
|
this._focusFromMouse = false;
|
|
154
|
-
this._dispatch(
|
|
154
|
+
this._dispatch('cds-aichat-prompt-focus', { keyboard: !wasMouseFocus });
|
|
155
155
|
};
|
|
156
156
|
this._onBlur = () => {
|
|
157
|
-
this._dispatch(
|
|
157
|
+
this._dispatch('cds-aichat-prompt-blur');
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
mount(host, init) {
|
|
@@ -163,27 +163,27 @@ class TextareaController {
|
|
|
163
163
|
if (root instanceof ShadowRoot || root instanceof Document) {
|
|
164
164
|
adoptOnRoot(root);
|
|
165
165
|
}
|
|
166
|
-
const wrap = document.createElement(
|
|
166
|
+
const wrap = document.createElement('div');
|
|
167
167
|
wrap.className = TA_GROW_CLASS;
|
|
168
|
-
const textarea = document.createElement(
|
|
168
|
+
const textarea = document.createElement('textarea');
|
|
169
169
|
textarea.className = TA_FIELD_CLASS;
|
|
170
170
|
textarea.classList.toggle(TA_PHONE_CLASS, IS_PHONE);
|
|
171
|
-
textarea.setAttribute(
|
|
172
|
-
textarea.setAttribute(
|
|
173
|
-
textarea.setAttribute(
|
|
171
|
+
textarea.setAttribute('rows', '1');
|
|
172
|
+
textarea.setAttribute('spellcheck', 'true');
|
|
173
|
+
textarea.setAttribute('tabindex', '0');
|
|
174
174
|
textarea.placeholder = init.placeholder;
|
|
175
175
|
textarea.value = init.value;
|
|
176
176
|
textarea.readOnly = init.disabled;
|
|
177
177
|
if (init.ariaLabel) {
|
|
178
|
-
textarea.setAttribute(
|
|
178
|
+
textarea.setAttribute('aria-label', init.ariaLabel);
|
|
179
179
|
}
|
|
180
180
|
if (init.testId) {
|
|
181
|
-
textarea.setAttribute(
|
|
181
|
+
textarea.setAttribute('data-testid', init.testId);
|
|
182
182
|
}
|
|
183
|
-
const mirror = document.createElement(
|
|
183
|
+
const mirror = document.createElement('div');
|
|
184
184
|
mirror.className = TA_MIRROR_CLASS;
|
|
185
185
|
mirror.classList.toggle(TA_PHONE_CLASS, IS_PHONE);
|
|
186
|
-
mirror.setAttribute(
|
|
186
|
+
mirror.setAttribute('aria-hidden', 'true');
|
|
187
187
|
wrap.appendChild(textarea);
|
|
188
188
|
wrap.appendChild(mirror);
|
|
189
189
|
host.appendChild(wrap);
|
|
@@ -191,31 +191,31 @@ class TextareaController {
|
|
|
191
191
|
this._textarea = textarea;
|
|
192
192
|
this._mirror = mirror;
|
|
193
193
|
this._host = host;
|
|
194
|
-
textarea.addEventListener(
|
|
195
|
-
textarea.addEventListener(
|
|
196
|
-
textarea.addEventListener(
|
|
197
|
-
textarea.addEventListener(
|
|
194
|
+
textarea.addEventListener('input', this._onInput);
|
|
195
|
+
textarea.addEventListener('keydown', this._onKeydown);
|
|
196
|
+
textarea.addEventListener('focus', this._onFocus);
|
|
197
|
+
textarea.addEventListener('blur', this._onBlur);
|
|
198
198
|
// Pointer/touch before focus marks the next focus as mouse-driven so we
|
|
199
199
|
// suppress the keyboard-focus outline.
|
|
200
|
-
host.addEventListener(
|
|
201
|
-
host.addEventListener(
|
|
202
|
-
host.addEventListener(
|
|
200
|
+
host.addEventListener('pointerdown', this._setMouseFlag);
|
|
201
|
+
host.addEventListener('mousedown', this._setMouseFlag);
|
|
202
|
+
host.addEventListener('touchstart', this._setMouseFlag);
|
|
203
203
|
this._syncMirror();
|
|
204
204
|
}
|
|
205
205
|
destroy() {
|
|
206
206
|
this._clearTypingTimer();
|
|
207
207
|
const ta = this._textarea;
|
|
208
208
|
if (ta) {
|
|
209
|
-
ta.removeEventListener(
|
|
210
|
-
ta.removeEventListener(
|
|
211
|
-
ta.removeEventListener(
|
|
212
|
-
ta.removeEventListener(
|
|
209
|
+
ta.removeEventListener('input', this._onInput);
|
|
210
|
+
ta.removeEventListener('keydown', this._onKeydown);
|
|
211
|
+
ta.removeEventListener('focus', this._onFocus);
|
|
212
|
+
ta.removeEventListener('blur', this._onBlur);
|
|
213
213
|
}
|
|
214
214
|
const host = this._host;
|
|
215
215
|
if (host) {
|
|
216
|
-
host.removeEventListener(
|
|
217
|
-
host.removeEventListener(
|
|
218
|
-
host.removeEventListener(
|
|
216
|
+
host.removeEventListener('pointerdown', this._setMouseFlag);
|
|
217
|
+
host.removeEventListener('mousedown', this._setMouseFlag);
|
|
218
|
+
host.removeEventListener('touchstart', this._setMouseFlag);
|
|
219
219
|
}
|
|
220
220
|
this._wrap?.remove();
|
|
221
221
|
this._wrap = null;
|
|
@@ -223,34 +223,34 @@ class TextareaController {
|
|
|
223
223
|
this._mirror = null;
|
|
224
224
|
}
|
|
225
225
|
getValue() {
|
|
226
|
-
return this._textarea?.value ??
|
|
226
|
+
return this._textarea?.value ?? '';
|
|
227
227
|
}
|
|
228
228
|
setContent(next) {
|
|
229
|
-
if (typeof next ===
|
|
229
|
+
if (typeof next === 'function') {
|
|
230
230
|
const prev = textToDoc(this.getValue());
|
|
231
231
|
this._setValue(getRawText(next(prev)), true);
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
this._setValue(typeof next ===
|
|
234
|
+
this._setValue(typeof next === 'string' ? next : getRawText(next), true);
|
|
235
235
|
}
|
|
236
236
|
insertContent(content, opts = {}) {
|
|
237
237
|
const ta = this._textarea;
|
|
238
238
|
if (!ta) {
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
const text = typeof content ===
|
|
241
|
+
const text = typeof content === 'string' ? content : getRawText(content);
|
|
242
242
|
const value = ta.value;
|
|
243
|
-
const at = typeof opts.at ===
|
|
243
|
+
const at = typeof opts.at === 'number'
|
|
244
244
|
? Math.max(0, Math.min(opts.at, value.length))
|
|
245
245
|
: (ta.selectionStart ?? value.length);
|
|
246
|
-
const end = typeof opts.at ===
|
|
246
|
+
const end = typeof opts.at === 'number' ? at : (ta.selectionEnd ?? at);
|
|
247
247
|
const nextValue = value.slice(0, at) + text + value.slice(end);
|
|
248
248
|
const caret = at + text.length;
|
|
249
249
|
this._setValue(nextValue, true);
|
|
250
250
|
ta.setSelectionRange(caret, caret);
|
|
251
251
|
}
|
|
252
252
|
clearContent() {
|
|
253
|
-
this._setValue(
|
|
253
|
+
this._setValue('', true);
|
|
254
254
|
}
|
|
255
255
|
getEditor() {
|
|
256
256
|
return null;
|
|
@@ -283,7 +283,7 @@ class TextareaController {
|
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
285
|
const len = ta.value.length;
|
|
286
|
-
if (typeof pos ===
|
|
286
|
+
if (typeof pos === 'number') {
|
|
287
287
|
const p = Math.max(0, Math.min(pos, len));
|
|
288
288
|
ta.setSelectionRange(p, p);
|
|
289
289
|
return;
|
|
@@ -309,10 +309,10 @@ class TextareaController {
|
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
311
|
if (ariaLabel) {
|
|
312
|
-
ta.setAttribute(
|
|
312
|
+
ta.setAttribute('aria-label', ariaLabel);
|
|
313
313
|
}
|
|
314
314
|
else {
|
|
315
|
-
ta.removeAttribute(
|
|
315
|
+
ta.removeAttribute('aria-label');
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
setTestId(testId) {
|
|
@@ -321,10 +321,10 @@ class TextareaController {
|
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
if (testId) {
|
|
324
|
-
ta.setAttribute(
|
|
324
|
+
ta.setAttribute('data-testid', testId);
|
|
325
325
|
}
|
|
326
326
|
else {
|
|
327
|
-
ta.removeAttribute(
|
|
327
|
+
ta.removeAttribute('data-testid');
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
setExtensions(_extensions) {
|
|
@@ -353,7 +353,7 @@ class TextareaController {
|
|
|
353
353
|
// Carry a plain-text doc as `content` so Redux / `getState().input.content`
|
|
354
354
|
// stays consistent with the rich editor (which emits `editor.getJSON()`).
|
|
355
355
|
const rawValue = this.getValue();
|
|
356
|
-
this._dispatch(
|
|
356
|
+
this._dispatch('cds-aichat-prompt-change', {
|
|
357
357
|
rawValue,
|
|
358
358
|
content: textToDoc(rawValue),
|
|
359
359
|
});
|
|
@@ -367,12 +367,12 @@ class TextareaController {
|
|
|
367
367
|
_markTyping() {
|
|
368
368
|
if (!this._isTyping) {
|
|
369
369
|
this._isTyping = true;
|
|
370
|
-
this._dispatch(
|
|
370
|
+
this._dispatch('cds-aichat-prompt-typing', { isTyping: true });
|
|
371
371
|
}
|
|
372
372
|
this._clearTypingTimer();
|
|
373
373
|
this._typingTimer = setTimeout(() => {
|
|
374
374
|
this._isTyping = false;
|
|
375
|
-
this._dispatch(
|
|
375
|
+
this._dispatch('cds-aichat-prompt-typing', { isTyping: false });
|
|
376
376
|
}, TYPING_TIMEOUT_MS);
|
|
377
377
|
}
|
|
378
378
|
_clearTypingTimer() {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* the rich editor on first paint (no textarea→editor flash) once the chunk has
|
|
15
15
|
* been warmed via {@link preloadPromptLineRich}.
|
|
16
16
|
*/
|
|
17
|
-
type RichRuntimeModule = typeof import(
|
|
17
|
+
type RichRuntimeModule = typeof import('./prompt-line-rich-runtime.js');
|
|
18
18
|
/**
|
|
19
19
|
* Load (once) the Tiptap runtime chunk. Resolves to `null` outside a browser
|
|
20
20
|
* so server entries never pull Tiptap.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import type { PromptLineController } from
|
|
9
|
+
import type { PromptLineController } from './prompt-line-controller.js';
|
|
10
10
|
/**
|
|
11
11
|
* Construct a Tiptap-backed prompt-line controller. Called by the shell once
|
|
12
12
|
* the lazily-imported runtime module has resolved.
|
|
@@ -49,13 +49,13 @@ import Placeholder from '@tiptap/extension-placeholder';
|
|
|
49
49
|
* `cds-aichat-prompt-*` events so the shell, React wrapper, and `Input`
|
|
50
50
|
* handlers are mode-agnostic.
|
|
51
51
|
*/
|
|
52
|
-
const PM_KEYBOARD_FOCUS_CLASS =
|
|
52
|
+
const PM_KEYBOARD_FOCUS_CLASS = 'cds-aichat--input-pm-content--keyboard-focus';
|
|
53
53
|
let keyboardFocusRuleInstalled = false;
|
|
54
54
|
function ensureKeyboardFocusRule() {
|
|
55
55
|
if (keyboardFocusRuleInstalled) {
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
setVarsForSelector(`.${PM_KEYBOARD_FOCUS_CLASS}`, { outline:
|
|
58
|
+
setVarsForSelector(`.${PM_KEYBOARD_FOCUS_CLASS}`, { outline: 'revert' });
|
|
59
59
|
keyboardFocusRuleInstalled = true;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -67,8 +67,8 @@ class RichController {
|
|
|
67
67
|
this._editor = null;
|
|
68
68
|
this._host = null;
|
|
69
69
|
this._extensions = [];
|
|
70
|
-
this._placeholder =
|
|
71
|
-
this._testId =
|
|
70
|
+
this._placeholder = '';
|
|
71
|
+
this._testId = '';
|
|
72
72
|
this._disabled = false;
|
|
73
73
|
this._focusFromMouse = false;
|
|
74
74
|
// -------------------------------------------------------------------------
|
|
@@ -84,18 +84,18 @@ class RichController {
|
|
|
84
84
|
this._placeholder = init.placeholder;
|
|
85
85
|
this._testId = init.testId;
|
|
86
86
|
this._disabled = init.disabled;
|
|
87
|
-
host.setAttribute(
|
|
88
|
-
host.setAttribute(
|
|
89
|
-
host.setAttribute(
|
|
90
|
-
host.setAttribute(
|
|
87
|
+
host.setAttribute('role', 'textbox');
|
|
88
|
+
host.setAttribute('aria-multiline', 'true');
|
|
89
|
+
host.setAttribute('spellcheck', 'true');
|
|
90
|
+
host.setAttribute('tabindex', '-1');
|
|
91
91
|
if (init.ariaLabel) {
|
|
92
|
-
host.setAttribute(
|
|
92
|
+
host.setAttribute('aria-label', init.ariaLabel);
|
|
93
93
|
}
|
|
94
94
|
// Pointer/touch before focus marks the next focus as mouse-driven so we
|
|
95
95
|
// suppress the keyboard-focus outline.
|
|
96
|
-
host.addEventListener(
|
|
97
|
-
host.addEventListener(
|
|
98
|
-
host.addEventListener(
|
|
96
|
+
host.addEventListener('pointerdown', this._setMouseFlag);
|
|
97
|
+
host.addEventListener('mousedown', this._setMouseFlag);
|
|
98
|
+
host.addEventListener('touchstart', this._setMouseFlag);
|
|
99
99
|
ensureKeyboardFocusRule();
|
|
100
100
|
// Prefer a structured `content` seed (mentions / custom nodes); otherwise
|
|
101
101
|
// rebuild a doc from the plain-text value (lossless from the textarea).
|
|
@@ -109,23 +109,23 @@ class RichController {
|
|
|
109
109
|
destroy() {
|
|
110
110
|
const host = this._host;
|
|
111
111
|
if (host) {
|
|
112
|
-
host.removeEventListener(
|
|
113
|
-
host.removeEventListener(
|
|
114
|
-
host.removeEventListener(
|
|
112
|
+
host.removeEventListener('pointerdown', this._setMouseFlag);
|
|
113
|
+
host.removeEventListener('mousedown', this._setMouseFlag);
|
|
114
|
+
host.removeEventListener('touchstart', this._setMouseFlag);
|
|
115
115
|
}
|
|
116
116
|
this._editor?.destroy();
|
|
117
117
|
this._editor = null;
|
|
118
118
|
this._host = null;
|
|
119
119
|
}
|
|
120
120
|
getValue() {
|
|
121
|
-
return this._editor?.getText() ??
|
|
121
|
+
return this._editor?.getText() ?? '';
|
|
122
122
|
}
|
|
123
123
|
setContent(next) {
|
|
124
124
|
const editor = this._editor;
|
|
125
125
|
if (!editor) {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
if (typeof next ===
|
|
128
|
+
if (typeof next === 'function') {
|
|
129
129
|
const prev = editor.getJSON();
|
|
130
130
|
this._dispatchSetContent(next(prev));
|
|
131
131
|
return;
|
|
@@ -137,7 +137,7 @@ class RichController {
|
|
|
137
137
|
if (!editor) {
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
if (typeof opts.at ===
|
|
140
|
+
if (typeof opts.at === 'number') {
|
|
141
141
|
editor.commands.insertContentAt(opts.at, content);
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
@@ -199,10 +199,10 @@ class RichController {
|
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
if (ariaLabel) {
|
|
202
|
-
this._host.setAttribute(
|
|
202
|
+
this._host.setAttribute('aria-label', ariaLabel);
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
|
-
this._host.removeAttribute(
|
|
205
|
+
this._host.removeAttribute('aria-label');
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
setTestId(testId) {
|
|
@@ -245,22 +245,22 @@ class RichController {
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
_wireEditorEvents(editor) {
|
|
248
|
-
editor.on(
|
|
248
|
+
editor.on('focus', () => {
|
|
249
249
|
const wasMouseFocus = this._focusFromMouse;
|
|
250
250
|
this._focusFromMouse = false;
|
|
251
251
|
if (!wasMouseFocus) {
|
|
252
252
|
editor.view.dom.classList.add(PM_KEYBOARD_FOCUS_CLASS);
|
|
253
253
|
}
|
|
254
|
-
this._dispatch(
|
|
254
|
+
this._dispatch('cds-aichat-prompt-focus', { keyboard: !wasMouseFocus });
|
|
255
255
|
});
|
|
256
|
-
editor.on(
|
|
256
|
+
editor.on('blur', () => {
|
|
257
257
|
editor.view.dom.classList.remove(PM_KEYBOARD_FOCUS_CLASS);
|
|
258
|
-
this._dispatch(
|
|
258
|
+
this._dispatch('cds-aichat-prompt-blur');
|
|
259
259
|
});
|
|
260
260
|
// Forward keydown for hosts wanting raw-key access. ValueSync /
|
|
261
261
|
// TypingIndicator emit their own events; don't re-dispatch update here.
|
|
262
|
-
editor.view.dom.addEventListener(
|
|
263
|
-
this._dispatch(
|
|
262
|
+
editor.view.dom.addEventListener('keydown', (event) => {
|
|
263
|
+
this._dispatch('cds-aichat-prompt-keydown', { originalEvent: event });
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
_recreateEditor() {
|
|
@@ -288,7 +288,9 @@ class RichController {
|
|
|
288
288
|
const to = Math.min(previousSelection.to, size);
|
|
289
289
|
this._editor.commands.setTextSelection({ from, to });
|
|
290
290
|
}
|
|
291
|
+
const wasKeyboardFocus = this._editor.view.dom.classList.contains(PM_KEYBOARD_FOCUS_CLASS);
|
|
291
292
|
if (wasFocused) {
|
|
293
|
+
this._focusFromMouse = !wasKeyboardFocus;
|
|
292
294
|
this._editor.commands.focus();
|
|
293
295
|
}
|
|
294
296
|
}
|
|
@@ -318,10 +320,10 @@ class RichController {
|
|
|
318
320
|
return;
|
|
319
321
|
}
|
|
320
322
|
if (this._testId) {
|
|
321
|
-
editorDom.setAttribute(
|
|
323
|
+
editorDom.setAttribute('data-testid', this._testId);
|
|
322
324
|
}
|
|
323
325
|
else {
|
|
324
|
-
editorDom.removeAttribute(
|
|
326
|
+
editorDom.removeAttribute('data-testid');
|
|
325
327
|
}
|
|
326
328
|
}
|
|
327
329
|
_dispatch(name, detail) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-line-rich-runtime.js","sources":["../../../../src/components/prompt-line/src/prompt-line-rich-runtime.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;;;;;;;;;;AAgBG;AA6BH,MAAM,uBAAuB,GAAG,8CAA8C;AAE9E,IAAI,0BAA0B,GAAG,KAAK;AACtC,SAAS,uBAAuB,GAAA;IAC9B,IAAI,0BAA0B,EAAE;QAC9B;IACF;IACA,kBAAkB,CAAC,CAAA,CAAA,EAAI,uBAAuB,CAAA,CAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IACxE,0BAA0B,GAAG,IAAI;AACnC;AAEA;;;AAGG;AACH,MAAM,cAAc,CAAA;AAApB,IAAA,WAAA,GAAA;QACU,IAAA,CAAA,OAAO,GAAkB,IAAI;QAC7B,IAAA,CAAA,KAAK,GAAuB,IAAI;QAChC,IAAA,CAAA,WAAW,GAAgB,EAAE;QAC7B,IAAA,CAAA,YAAY,GAAG,EAAE;QACjB,IAAA,CAAA,OAAO,GAAG,EAAE;QACZ,IAAA,CAAA,SAAS,GAAG,KAAK;QACjB,IAAA,CAAA,eAAe,GAAG,KAAK;;;;QA6KvB,IAAA,CAAA,aAAa,GAAG,MAAW;AACjC,YAAA,IAAI,CAAC,eAAe,GAAG,IAAI;AAC7B,QAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-line-rich-runtime.js","sources":["../../../../src/components/prompt-line/src/prompt-line-rich-runtime.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;;;;;;;;;;AAgBG;AA6BH,MAAM,uBAAuB,GAAG,8CAA8C;AAE9E,IAAI,0BAA0B,GAAG,KAAK;AACtC,SAAS,uBAAuB,GAAA;IAC9B,IAAI,0BAA0B,EAAE;QAC9B;IACF;IACA,kBAAkB,CAAC,CAAA,CAAA,EAAI,uBAAuB,CAAA,CAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IACxE,0BAA0B,GAAG,IAAI;AACnC;AAEA;;;AAGG;AACH,MAAM,cAAc,CAAA;AAApB,IAAA,WAAA,GAAA;QACU,IAAA,CAAA,OAAO,GAAkB,IAAI;QAC7B,IAAA,CAAA,KAAK,GAAuB,IAAI;QAChC,IAAA,CAAA,WAAW,GAAgB,EAAE;QAC7B,IAAA,CAAA,YAAY,GAAG,EAAE;QACjB,IAAA,CAAA,OAAO,GAAG,EAAE;QACZ,IAAA,CAAA,SA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EAAE,IAAI,EAAE,CAAC,CACjE;IACH;AACD;AAED;;;AAGG;SACa,oBAAoB,GAAA;IAClC,OAAO,IAAI,cAAc,EAAE;AAC7B;;;;"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { LitElement, type PropertyValues } from
|
|
9
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
10
10
|
/**
|
|
11
11
|
* Layout-only composer chrome for the chat input. The shell defines five
|
|
12
12
|
* named slots and the spacing/border treatment around them — it carries no
|
|
@@ -66,7 +66,7 @@ declare class PromptLineShellElement extends LitElement {
|
|
|
66
66
|
}
|
|
67
67
|
declare global {
|
|
68
68
|
interface HTMLElementTagNameMap {
|
|
69
|
-
|
|
69
|
+
'cds-aichat-prompt-line-shell': PromptLineShellElement;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
export default PromptLineShellElement;
|