@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
|
@@ -21,13 +21,13 @@ function ensureTokenStyleRules() {
|
|
|
21
21
|
if (tokenStyleRulesInstalled) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
setVarsForSelector(
|
|
24
|
+
setVarsForSelector('.cds-aichat--token', { 'white-space': 'normal' });
|
|
25
25
|
setVarsForSelector('.cds-aichat--token[data-token-context="composer"]', {
|
|
26
|
-
color:
|
|
26
|
+
color: 'var(--cds-tag-color-blue)',
|
|
27
27
|
});
|
|
28
|
-
setVarsForSelector('.cds-aichat--token[data-token-context="composer"]::selection', {
|
|
28
|
+
setVarsForSelector('.cds-aichat--token[data-token-context="composer"]::selection', { 'background-color': 'var(--cds-tag-background-blue)' });
|
|
29
29
|
setVarsForSelector('.cds-aichat--token[data-token-context="historical"]', {
|
|
30
|
-
color:
|
|
30
|
+
color: 'var(--cds-link-secondary)',
|
|
31
31
|
});
|
|
32
32
|
tokenStyleRulesInstalled = true;
|
|
33
33
|
}
|
|
@@ -39,8 +39,8 @@ function renderTokenChip(args) {
|
|
|
39
39
|
return dom;
|
|
40
40
|
}
|
|
41
41
|
const item = {
|
|
42
|
-
id: typeof args.attrs.id ===
|
|
43
|
-
label: typeof args.attrs.label ===
|
|
42
|
+
id: typeof args.attrs.id === 'string' ? args.attrs.id : '',
|
|
43
|
+
label: typeof args.attrs.label === 'string' ? args.attrs.label : '',
|
|
44
44
|
...(args.attrs.data ?? {}),
|
|
45
45
|
};
|
|
46
46
|
let result;
|
|
@@ -49,7 +49,7 @@ function renderTokenChip(args) {
|
|
|
49
49
|
}
|
|
50
50
|
catch (error) {
|
|
51
51
|
// eslint-disable-next-line no-console
|
|
52
|
-
console.error(
|
|
52
|
+
console.error('Error in renderCustomToken, falling back to default chip:', error);
|
|
53
53
|
dom.appendChild(createDefaultChip(args.attrs));
|
|
54
54
|
return dom;
|
|
55
55
|
}
|
|
@@ -70,24 +70,24 @@ function renderTokenChip(args) {
|
|
|
70
70
|
}
|
|
71
71
|
function createTokenContainer(attrs, type, context) {
|
|
72
72
|
ensureTokenStyleRules();
|
|
73
|
-
const dom = document.createElement(
|
|
74
|
-
const value = typeof attrs.value ===
|
|
75
|
-
const label = typeof attrs.label ===
|
|
76
|
-
dom.setAttribute(
|
|
77
|
-
dom.setAttribute(
|
|
78
|
-
dom.setAttribute(
|
|
79
|
-
dom.setAttribute(
|
|
80
|
-
dom.setAttribute(
|
|
81
|
-
dom.setAttribute(
|
|
82
|
-
dom.className =
|
|
73
|
+
const dom = document.createElement('span');
|
|
74
|
+
const value = typeof attrs.value === 'string' ? attrs.value : null;
|
|
75
|
+
const label = typeof attrs.label === 'string' ? attrs.label : null;
|
|
76
|
+
dom.setAttribute('contenteditable', 'false');
|
|
77
|
+
dom.setAttribute('data-token-type', type);
|
|
78
|
+
dom.setAttribute('data-token-context', context);
|
|
79
|
+
dom.setAttribute('data-raw-value', value ?? label ?? '');
|
|
80
|
+
dom.setAttribute('role', 'img');
|
|
81
|
+
dom.setAttribute('aria-label', label || value || '');
|
|
82
|
+
dom.className = 'cds-aichat--token';
|
|
83
83
|
return dom;
|
|
84
84
|
}
|
|
85
85
|
function createDefaultChip(attrs) {
|
|
86
|
-
const chip = document.createElement(
|
|
87
|
-
const label = typeof attrs.label ===
|
|
88
|
-
const value = typeof attrs.value ===
|
|
89
|
-
const trigger = typeof attrs.trigger ===
|
|
90
|
-
chip.textContent = `${trigger}${label || value ||
|
|
86
|
+
const chip = document.createElement('span');
|
|
87
|
+
const label = typeof attrs.label === 'string' ? attrs.label : null;
|
|
88
|
+
const value = typeof attrs.value === 'string' ? attrs.value : null;
|
|
89
|
+
const trigger = typeof attrs.trigger === 'string' ? attrs.trigger : '';
|
|
90
|
+
chip.textContent = `${trigger}${label || value || ''}`;
|
|
91
91
|
return chip;
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
* honoring, and the light-DOM portal handshake) lives in {@link renderTokenChip},
|
|
17
17
|
* which is shared with the chat-side rich user message bubble.
|
|
18
18
|
*/
|
|
19
|
-
import type { Node as PMNode } from
|
|
20
|
-
import type { EditorView, NodeView } from
|
|
21
|
-
import type { TriggerSuggestionConfig } from
|
|
19
|
+
import type { Node as PMNode } from '@tiptap/pm/model';
|
|
20
|
+
import type { EditorView, NodeView } from '@tiptap/pm/view';
|
|
21
|
+
import type { TriggerSuggestionConfig } from './types.js';
|
|
22
22
|
export interface CarbonTokenNodeViewOptions {
|
|
23
23
|
/**
|
|
24
24
|
* Custom renderer from the trigger-suggestion config. When omitted, the
|
|
25
25
|
* default text chip is used.
|
|
26
26
|
*/
|
|
27
|
-
renderCustomToken?: TriggerSuggestionConfig[
|
|
27
|
+
renderCustomToken?: TriggerSuggestionConfig['renderCustomToken'];
|
|
28
28
|
}
|
|
29
29
|
export declare class CarbonTokenNodeView implements NodeView {
|
|
30
30
|
dom: HTMLElement;
|
|
@@ -20,11 +20,18 @@
|
|
|
20
20
|
* receive a `null` between the two activations only if the previous trigger's
|
|
21
21
|
* range was actually exited.
|
|
22
22
|
*/
|
|
23
|
-
import type { Editor } from
|
|
24
|
-
import type { TriggerChangeEventDetail } from
|
|
23
|
+
import type { Editor } from '@tiptap/core';
|
|
24
|
+
import type { TriggerChangeEventDetail } from './types.js';
|
|
25
25
|
/**
|
|
26
26
|
* Dispatch `cds-aichat-trigger-change` on the editor's DOM if the detail has
|
|
27
27
|
* changed since the last call for the same editor. No-op transitions are
|
|
28
28
|
* coalesced.
|
|
29
29
|
*/
|
|
30
30
|
export declare function dispatchTriggerChange(editor: Editor, detail: TriggerChangeEventDetail | null): void;
|
|
31
|
+
/**
|
|
32
|
+
* Reset the coalescing state for an editor. Call this when the controller
|
|
33
|
+
* dismisses a trigger externally (not via the extension) so that the next
|
|
34
|
+
* `dispatchTriggerChange` call for the same detail re-dispatches instead of
|
|
35
|
+
* being swallowed as a no-op.
|
|
36
|
+
*/
|
|
37
|
+
export declare function resetTriggerChangeState(editor: Editor): void;
|
|
@@ -25,12 +25,21 @@ function dispatchTriggerChange(editor, detail) {
|
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
lastDetailByEditor.set(editor, detail);
|
|
28
|
-
editor.view.dom.dispatchEvent(new CustomEvent(
|
|
28
|
+
editor.view.dom.dispatchEvent(new CustomEvent('cds-aichat-trigger-change', {
|
|
29
29
|
detail,
|
|
30
30
|
bubbles: true,
|
|
31
31
|
composed: true,
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Reset the coalescing state for an editor. Call this when the controller
|
|
36
|
+
* dismisses a trigger externally (not via the extension) so that the next
|
|
37
|
+
* `dispatchTriggerChange` call for the same detail re-dispatches instead of
|
|
38
|
+
* being swallowed as a no-op.
|
|
39
|
+
*/
|
|
40
|
+
function resetTriggerChangeState(editor) {
|
|
41
|
+
lastDetailByEditor.delete(editor);
|
|
42
|
+
}
|
|
34
43
|
function areDetailsEqual(a, b) {
|
|
35
44
|
if (a === null || b === null) {
|
|
36
45
|
return a === b;
|
|
@@ -40,5 +49,5 @@ function areDetailsEqual(a, b) {
|
|
|
40
49
|
a.triggerOffset === b.triggerOffset);
|
|
41
50
|
}
|
|
42
51
|
|
|
43
|
-
export { dispatchTriggerChange };
|
|
52
|
+
export { dispatchTriggerChange, resetTriggerChangeState };
|
|
44
53
|
//# sourceMappingURL=trigger-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-utils.js","sources":["../../../../../src/components/prompt-line/src/tiptap/trigger-utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAqBH,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAGnC;AAEH;;;;AAIG;AACG,SAAU,qBAAqB,CACnC,MAAc,EACd,MAAuC,EAAA;IAEvC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI;AACvD,IAAA,IAAI,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACrC;IACF;AACA,IAAA,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IACtC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC3B,IAAI,WAAW,CAAC,2BAA2B,EAAE;QAC3C,MAAM;AACN,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC,CACH;AACH;AAEA,SAAS,eAAe,CACtB,CAAkC,EAClC,CAAkC,EAAA;IAElC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC;IAChB;AACA,IAAA,QACE,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;AACjB,QAAA,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK;AACnB,QAAA,CAAC,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa;AAEvC;;;;"}
|
|
1
|
+
{"version":3,"file":"trigger-utils.js","sources":["../../../../../src/components/prompt-line/src/tiptap/trigger-utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAqBH,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAGnC;AAEH;;;;AAIG;AACG,SAAU,qBAAqB,CACnC,MAAc,EACd,MAAuC,EAAA;IAEvC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI;AACvD,IAAA,IAAI,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QACrC;IACF;AACA,IAAA,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IACtC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC3B,IAAI,WAAW,CAAC,2BAA2B,EAAE;QAC3C,MAAM;AACN,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC,CACH;AACH;AAEA;;;;;AAKG;AACG,SAAU,uBAAuB,CAAC,MAAc,EAAA;AACpD,IAAA,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC;AACnC;AAEA,SAAS,eAAe,CACtB,CAAkC,EAClC,CAAkC,EAAA;IAElC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC;IAChB;AACA,IAAA,QACE,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;AACjB,QAAA,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK;AACnB,QAAA,CAAC,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa;AAEvC;;;;"}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* (`carbonMention`, `carbonCommand`, `carbonAutocomplete`,
|
|
12
12
|
* `carbonStarterTrigger`) and the shell consume these types directly.
|
|
13
13
|
*/
|
|
14
|
-
import type { ComponentType, ReactNode } from
|
|
15
|
-
import type { CarbonIcon } from
|
|
14
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
15
|
+
import type { CarbonIcon } from '@carbon/web-components/es/globals/internal/icon-loader-utils.js';
|
|
16
16
|
/**
|
|
17
17
|
* Single list-item shape used by both the autocomplete-list-manager and the
|
|
18
18
|
* starter list.
|
|
@@ -71,10 +71,18 @@ export interface CustomListProps {
|
|
|
71
71
|
items: SuggestionItem[];
|
|
72
72
|
/** Current query string (text after trigger). */
|
|
73
73
|
query: string;
|
|
74
|
-
/** Callback to invoke when user selects an item. */
|
|
75
|
-
onSelect: (item: SuggestionItem) => void;
|
|
76
74
|
/** Callback to invoke when list should be dismissed. */
|
|
77
75
|
onDismiss: () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Callback to invoke when user sends an item directly to chat, bypassing
|
|
78
|
+
* the editor.
|
|
79
|
+
*/
|
|
80
|
+
onSend: (text: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Callback to invoke when user selects an item to insert into the editor
|
|
83
|
+
* without sending to chat.
|
|
84
|
+
*/
|
|
85
|
+
onSelect: (item: SuggestionItem) => void;
|
|
78
86
|
}
|
|
79
87
|
/**
|
|
80
88
|
* Fields shared by every suggestion config.
|
|
@@ -92,18 +100,29 @@ export interface BaseSuggestionConfig {
|
|
|
92
100
|
onSelect?: (item: SuggestionItem) => void;
|
|
93
101
|
/** Replace the built-in suggestion list UI. */
|
|
94
102
|
renderCustomList?: (props: CustomListProps) => HTMLElement | unknown;
|
|
103
|
+
/**
|
|
104
|
+
* When `true`, clicking a suggestion item fires `cds-aichat-autocomplete-select`
|
|
105
|
+
* and inserts the item into the editor rather than sending immediately.
|
|
106
|
+
* Defaults to `false`. This property is ommitted in TriggerSuggestionConfig
|
|
107
|
+
* since mentions and commands should always insert into the editor.
|
|
108
|
+
*/
|
|
109
|
+
disableDirectSend?: boolean;
|
|
95
110
|
}
|
|
96
111
|
/**
|
|
97
112
|
* Trigger-character-driven suggestion config. Used by `carbonMention` and
|
|
98
113
|
* `carbonCommand` (the carbon factories distinguish them only by their
|
|
99
114
|
* default Tiptap node `name`).
|
|
115
|
+
*
|
|
116
|
+
* Mention and command items always insert a token chip into the editor.
|
|
117
|
+
* `disableDirectSend` is always `true` for these triggers and is therefore
|
|
118
|
+
* omitted so it cannot be set or overridden.
|
|
100
119
|
*/
|
|
101
|
-
export interface TriggerSuggestionConfig extends BaseSuggestionConfig {
|
|
120
|
+
export interface TriggerSuggestionConfig extends Omit<BaseSuggestionConfig, 'disableDirectSend'> {
|
|
102
121
|
/** Character that activates the suggestion (e.g. "@", "/"). */
|
|
103
122
|
trigger: string;
|
|
104
123
|
/** Whether the trigger must appear at the start of the input/line, or
|
|
105
124
|
* anywhere. Defaults to "anywhere". */
|
|
106
|
-
triggerPosition?:
|
|
125
|
+
triggerPosition?: 'start' | 'anywhere';
|
|
107
126
|
/**
|
|
108
127
|
* Override the schema-node name. Threaded through `Mention.extend({ name })`
|
|
109
128
|
* inside the carbon factory to sidestep Tiptap's last-named-wins stacking
|
|
@@ -145,6 +164,27 @@ export interface AutocompleteConfig extends BaseSuggestionConfig {
|
|
|
145
164
|
/** Override the suggestion plugin key name. Defaults to `"autocomplete"`. */
|
|
146
165
|
name?: string;
|
|
147
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Configuration for starter prompts — shown when the editor is empty and
|
|
169
|
+
* focused. Extends {@link BaseSuggestionConfig} so consumers can supply a
|
|
170
|
+
* `renderCustomList` (e.g. to add a header above the list).
|
|
171
|
+
*
|
|
172
|
+
* `items` is required and must be a static array (starters are resolved once
|
|
173
|
+
* from storage, not re-queried per keystroke).
|
|
174
|
+
*/
|
|
175
|
+
export interface StartersConfig extends Pick<BaseSuggestionConfig, 'renderCustomList' | 'disableDirectSend'> {
|
|
176
|
+
/** The starter prompts to display. */
|
|
177
|
+
items: SuggestionItem[];
|
|
178
|
+
/**
|
|
179
|
+
* Controls whether the starters list is active. Defaults to `true`.
|
|
180
|
+
*
|
|
181
|
+
* When true, the list appears automatically whenever the editor is focused
|
|
182
|
+
* and empty. Set to false to suppress the list without removing the config
|
|
183
|
+
* entirely. Keeping the config present with isOn: false leaves the editor
|
|
184
|
+
* intact and lets you toggle the list on and off instantly.
|
|
185
|
+
*/
|
|
186
|
+
isOn?: boolean;
|
|
187
|
+
}
|
|
148
188
|
/**
|
|
149
189
|
* Detail payload for the trigger-change event emitted directly by each carbon
|
|
150
190
|
* factory's suggestion-render lifecycle. The shape is shared with the legacy
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* The storage `reset()` controller lets the prompt-line / shell wipe typing
|
|
22
22
|
* state immediately on send.
|
|
23
23
|
*/
|
|
24
|
-
import { Extension } from
|
|
24
|
+
import { Extension } from '@tiptap/core';
|
|
25
25
|
export interface TypingIndicatorStorage {
|
|
26
26
|
reset(): void;
|
|
27
27
|
/** True iff the most recent doc-changing batch was entirely host-origin. */
|
|
@@ -34,7 +34,7 @@ import { isHostOrigin } from './origin-meta.js';
|
|
|
34
34
|
*/
|
|
35
35
|
const TYPING_TIMEOUT_MS = 5000;
|
|
36
36
|
const TypingIndicator = Extension.create({
|
|
37
|
-
name:
|
|
37
|
+
name: 'carbonTypingIndicator',
|
|
38
38
|
addStorage() {
|
|
39
39
|
return { reset: () => { }, lastTransactionIsHost: false };
|
|
40
40
|
},
|
|
@@ -46,7 +46,7 @@ const TypingIndicator = Extension.create({
|
|
|
46
46
|
function emit(typing) {
|
|
47
47
|
isTyping = typing;
|
|
48
48
|
if (editorDom) {
|
|
49
|
-
editorDom.dispatchEvent(new CustomEvent(
|
|
49
|
+
editorDom.dispatchEvent(new CustomEvent('cds-aichat-prompt-typing', {
|
|
50
50
|
detail: { isTyping: typing },
|
|
51
51
|
bubbles: true,
|
|
52
52
|
composed: true,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* tag the transaction with `setHostOriginMeta(tr)` (see `./origin-meta.ts`)
|
|
18
18
|
* if it wants downstream readers (typing-indicator) to recognize it.
|
|
19
19
|
*/
|
|
20
|
-
import { Extension } from
|
|
20
|
+
import { Extension } from '@tiptap/core';
|
|
21
21
|
export interface ValueSyncStorage {
|
|
22
22
|
/** True iff the most recent doc-changing batch contained any host-origin tr. */
|
|
23
23
|
lastTransactionIsHost: boolean;
|
|
@@ -29,7 +29,7 @@ import { isHostOrigin } from './origin-meta.js';
|
|
|
29
29
|
* if it wants downstream readers (typing-indicator) to recognize it.
|
|
30
30
|
*/
|
|
31
31
|
const ValueSync = Extension.create({
|
|
32
|
-
name:
|
|
32
|
+
name: 'carbonValueSync',
|
|
33
33
|
addStorage() {
|
|
34
34
|
return { lastTransactionIsHost: false };
|
|
35
35
|
},
|
|
@@ -46,7 +46,7 @@ const ValueSync = Extension.create({
|
|
|
46
46
|
if (view.state.doc === prevState.doc) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
view.dom.dispatchEvent(new CustomEvent(
|
|
49
|
+
view.dom.dispatchEvent(new CustomEvent('cds-aichat-prompt-change', {
|
|
50
50
|
detail: {
|
|
51
51
|
rawValue: editor.getText(),
|
|
52
52
|
content: editor.getJSON(),
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* list-renderer types live in `tiptap/types.ts` and are re-exported here
|
|
12
12
|
* so consumers see them at the package's public surface.
|
|
13
13
|
*/
|
|
14
|
-
import type { JSONContent } from
|
|
15
|
-
export type { BaseSuggestionConfig, TriggerSuggestionConfig, AutocompleteConfig, SuggestionItem, CustomListProps, TriggerChangeEventDetail, } from
|
|
14
|
+
import type { JSONContent } from '@tiptap/core';
|
|
15
|
+
export type { BaseSuggestionConfig, TriggerSuggestionConfig, AutocompleteConfig, StartersConfig, SuggestionItem, CustomListProps, TriggerChangeEventDetail, } from './tiptap/types.js';
|
|
16
16
|
/**
|
|
17
17
|
* Possible status values for a file upload. `SUCCESS` and `COMPLETE` both mean
|
|
18
18
|
* the upload finished without error, but they are not interchangeable: `SUCCESS`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../src/components/prompt-line/src/types.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/components/prompt-line/src/types.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAoBH;;;;;AAKG;IACS;AAAZ,CAAA,UAAY,eAAe,EAAA;AACzB;;;;;AAKG;AACH,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB;;;AAGG;AACH,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb;;AAEG;AACH,IAAA,eAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB;;;;;AAKG;AACH,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAxBW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
export { CDSAIChatReasoningStepsToggle, type ReasoningStepsToggleEventDetail, } from
|
|
1
|
+
import './src/reasoning-steps.js';
|
|
2
|
+
import './src/reasoning-step.js';
|
|
3
|
+
import './src/reasoning-steps-toggle.js';
|
|
4
|
+
export { CDSAIChatReasoningStepsToggle, type ReasoningStepsToggleEventDetail, } from './src/reasoning-steps-toggle.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Reasoning step component
|
|
4
4
|
* @element cds-aichat-reasoning-step
|
|
@@ -43,7 +43,7 @@ declare class CDSAIChatReasoningStep extends LitElement {
|
|
|
43
43
|
}
|
|
44
44
|
declare global {
|
|
45
45
|
interface HTMLElementTagNameMap {
|
|
46
|
-
|
|
46
|
+
'cds-aichat-reasoning-step': CDSAIChatReasoningStep;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
export { CDSAIChatReasoningStep };
|
|
@@ -35,7 +35,7 @@ const generateId = (segment) => `${baseClass}-${segment}-${idCounter++}`;
|
|
|
35
35
|
let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
|
-
this.title =
|
|
38
|
+
this.title = '';
|
|
39
39
|
this.open = false;
|
|
40
40
|
this.controlled = false;
|
|
41
41
|
/**
|
|
@@ -45,35 +45,35 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
45
45
|
/**
|
|
46
46
|
* @internal
|
|
47
47
|
*/
|
|
48
|
-
this.headerId = generateId(
|
|
48
|
+
this.headerId = generateId('header');
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|
|
52
|
-
this.contentId = generateId(
|
|
52
|
+
this.contentId = generateId('content');
|
|
53
53
|
}
|
|
54
54
|
connectedCallback() {
|
|
55
|
-
if (!this.hasAttribute(
|
|
56
|
-
this.setAttribute(
|
|
55
|
+
if (!this.hasAttribute('role')) {
|
|
56
|
+
this.setAttribute('role', 'listitem');
|
|
57
57
|
}
|
|
58
58
|
super.connectedCallback();
|
|
59
59
|
this.evaluateBodyContent();
|
|
60
60
|
}
|
|
61
61
|
firstUpdated() {
|
|
62
|
-
const slot = this.shadowRoot?.querySelector(
|
|
62
|
+
const slot = this.shadowRoot?.querySelector('slot:not([name])');
|
|
63
63
|
const nodes = slot?.assignedNodes({ flatten: true });
|
|
64
64
|
this.evaluateBodyContent(nodes);
|
|
65
65
|
this.updatePanelInertState();
|
|
66
66
|
}
|
|
67
67
|
updated(changedProperties) {
|
|
68
68
|
super.updated(changedProperties);
|
|
69
|
-
if (changedProperties.has(
|
|
70
|
-
changedProperties.has(
|
|
69
|
+
if (changedProperties.has('open') ||
|
|
70
|
+
changedProperties.has('hasBodyContent')) {
|
|
71
71
|
this.updatePanelInertState();
|
|
72
72
|
}
|
|
73
73
|
// Announce when a real open/close toggle has settled so the scroll manager can
|
|
74
74
|
// recalculate geometry. Skip the initial render (no previous value).
|
|
75
|
-
if (changedProperties.has(
|
|
76
|
-
changedProperties.get(
|
|
75
|
+
if (changedProperties.has('open') &&
|
|
76
|
+
changedProperties.get('open') !== undefined) {
|
|
77
77
|
this.emitAnimationEndWhenSettled();
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -97,7 +97,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
97
97
|
isBodyNode(node) {
|
|
98
98
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
99
99
|
const element = node;
|
|
100
|
-
const slotName = element.getAttribute(
|
|
100
|
+
const slotName = element.getAttribute('slot');
|
|
101
101
|
return !slotName;
|
|
102
102
|
}
|
|
103
103
|
if (node.nodeType === Node.TEXT_NODE) {
|
|
@@ -123,14 +123,14 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
123
123
|
composed: true,
|
|
124
124
|
detail,
|
|
125
125
|
};
|
|
126
|
-
const canToggle = this.dispatchEvent(new CustomEvent(
|
|
126
|
+
const canToggle = this.dispatchEvent(new CustomEvent('reasoning-step-beingtoggled', init));
|
|
127
127
|
if (!canToggle) {
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
if (!this.controlled) {
|
|
131
131
|
this.open = nextState;
|
|
132
132
|
}
|
|
133
|
-
this.dispatchEvent(new CustomEvent(
|
|
133
|
+
this.dispatchEvent(new CustomEvent('reasoning-step-toggled', init));
|
|
134
134
|
}
|
|
135
135
|
handleButtonClick() {
|
|
136
136
|
this.handleToggleRequest(!this.open);
|
|
@@ -139,7 +139,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
139
139
|
if (!this.open) {
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
if (event.key ===
|
|
142
|
+
if (event.key === 'Escape' || event.key === 'Esc') {
|
|
143
143
|
event.stopPropagation();
|
|
144
144
|
this.handleToggleRequest(false);
|
|
145
145
|
}
|
|
@@ -162,8 +162,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
162
162
|
aria-expanded="${String(this.open)}"
|
|
163
163
|
aria-controls="${this.contentId}"
|
|
164
164
|
@click=${this.handleButtonClick}
|
|
165
|
-
@keydown=${this.handleButtonKeydown}
|
|
166
|
-
>
|
|
165
|
+
@keydown=${this.handleButtonKeydown}>
|
|
167
166
|
<span class="${baseClass}__icon" part="expando-icon" aria-hidden="true">
|
|
168
167
|
${iconLoader(ChevronRight16)}
|
|
169
168
|
</span>
|
|
@@ -200,7 +199,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
200
199
|
emitAnimationEndWhenSettled() {
|
|
201
200
|
requestAnimationFrame(() => {
|
|
202
201
|
const panel = this.shadowRoot?.querySelector(`.${baseClass}__panel`);
|
|
203
|
-
const emit = () => this.dispatchEvent(new CustomEvent(
|
|
202
|
+
const emit = () => this.dispatchEvent(new CustomEvent('reasoning-animation-end', {
|
|
204
203
|
bubbles: true,
|
|
205
204
|
composed: true,
|
|
206
205
|
detail: { open: this.open },
|
|
@@ -209,7 +208,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
209
208
|
// panel's opacity/padding transitions too can delay the emit well past the
|
|
210
209
|
// height settling. If it is not animating, the height is already final.
|
|
211
210
|
const animations = (panel?.getAnimations?.() ?? []).filter((animation) => animation instanceof CSSTransition &&
|
|
212
|
-
animation.transitionProperty ===
|
|
211
|
+
animation.transitionProperty === 'grid-template-rows');
|
|
213
212
|
if (!animations.length) {
|
|
214
213
|
emit();
|
|
215
214
|
return;
|
|
@@ -228,20 +227,17 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
228
227
|
id=${this.contentId}
|
|
229
228
|
class=${panelClasses}
|
|
230
229
|
part="wrapper"
|
|
231
|
-
aria-hidden="${this.open && !isHidden ?
|
|
232
|
-
role=${ifDefined(!isHidden ?
|
|
230
|
+
aria-hidden="${this.open && !isHidden ? 'false' : 'true'}"
|
|
231
|
+
role=${ifDefined(!isHidden ? 'region' : undefined)}
|
|
233
232
|
aria-labelledby=${ifDefined(!isHidden ? this.headerId : undefined)}
|
|
234
|
-
?hidden=${isHidden}
|
|
235
|
-
>
|
|
233
|
+
?hidden=${isHidden}>
|
|
236
234
|
<div
|
|
237
235
|
class="${baseClass}__panel-body"
|
|
238
236
|
part="content"
|
|
239
|
-
data-visible="${this.open && !isHidden}"
|
|
240
|
-
>
|
|
237
|
+
data-visible="${this.open && !isHidden}">
|
|
241
238
|
<slot
|
|
242
239
|
@slotchange=${this.handleBodySlotChange}
|
|
243
|
-
?hidden=${isHidden}
|
|
244
|
-
></slot>
|
|
240
|
+
?hidden=${isHidden}></slot>
|
|
245
241
|
</div>
|
|
246
242
|
</div>
|
|
247
243
|
`;
|
|
@@ -250,14 +246,14 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
250
246
|
* Apply/remove inert on assigned elements so they are untabbable when closed.
|
|
251
247
|
*/
|
|
252
248
|
updatePanelInertState() {
|
|
253
|
-
const slot = this.shadowRoot?.querySelector(
|
|
249
|
+
const slot = this.shadowRoot?.querySelector('slot:not([name])');
|
|
254
250
|
if (!slot) {
|
|
255
251
|
return;
|
|
256
252
|
}
|
|
257
253
|
const shouldInert = !this.open || !this.hasBodyContent;
|
|
258
254
|
const assignedElements = slot.assignedElements({ flatten: true });
|
|
259
255
|
assignedElements.forEach((element) => {
|
|
260
|
-
element.toggleAttribute(
|
|
256
|
+
element.toggleAttribute('inert', shouldInert);
|
|
261
257
|
});
|
|
262
258
|
}
|
|
263
259
|
render() {
|
|
@@ -278,13 +274,13 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
278
274
|
};
|
|
279
275
|
CDSAIChatReasoningStep.styles = [commonStyles, styles];
|
|
280
276
|
__decorate([
|
|
281
|
-
property({ type: String, attribute:
|
|
277
|
+
property({ type: String, attribute: 'title' })
|
|
282
278
|
], CDSAIChatReasoningStep.prototype, "title", void 0);
|
|
283
279
|
__decorate([
|
|
284
|
-
property({ type: Boolean, attribute:
|
|
280
|
+
property({ type: Boolean, attribute: 'open', reflect: true })
|
|
285
281
|
], CDSAIChatReasoningStep.prototype, "open", void 0);
|
|
286
282
|
__decorate([
|
|
287
|
-
property({ type: Boolean, attribute:
|
|
283
|
+
property({ type: Boolean, attribute: 'controlled', reflect: true })
|
|
288
284
|
], CDSAIChatReasoningStep.prototype, "controlled", void 0);
|
|
289
285
|
__decorate([
|
|
290
286
|
state()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-step.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-step.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAaH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,kBAAkB;AAC7C,IAAI,SAAS,GAAG,CAAC;AAEjB,MAAM,UAAU,GAAG,CAAC,OAAe,KACjC,CAAA,EAAG,SAAS,IAAI,OAAO,CAAA,CAAA,EAAI,SAAS,EAAE,EAAE;AAE1C;;;AAGG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,KAAK,GAAG,EAAE;QAGV,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;AAEG;QAEK,IAAA,CAAA,cAAc,GAAG,KAAK;AAE9B;;AAEG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;AAEvC;;AAEG;AACK,QAAA,IAAA,CAAA,SAAS,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AC9B,cAAE,IAAI,CAAC,kBAAkB,EAC7B;UACE,IAAI,CAAC,WAAW,EAAE;;KAEvB;IACH;;AAlTO,sBAAA,CAAA,MAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC;AAGtC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;AACnC,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAGX,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAMX,UAAA,CAAA;AADP,IAAA,KAAK;AACyB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAhB3B,sBAAsB,GAAA,UAAA,CAAA;AAD3B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,eAAA,CAAiB;AACnC,CAAA,EAAA,sBAAsB,CAoT3B;AASD,+BAAe,sBAAsB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Reasoning steps toggle component
|
|
4
4
|
* @element cds-aichat-reasoning-steps-toggle
|
|
@@ -33,7 +33,7 @@ interface ReasoningStepsToggleEventDetail {
|
|
|
33
33
|
}
|
|
34
34
|
declare global {
|
|
35
35
|
interface HTMLElementTagNameMap {
|
|
36
|
-
|
|
36
|
+
'cds-aichat-reasoning-steps-toggle': CDSAIChatReasoningStepsToggle;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
export { CDSAIChatReasoningStepsToggle, type ReasoningStepsToggleEventDetail };
|