@carbon/ai-chat-components 1.9.0-alpha.0 → 1.9.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +1 -5
- package/custom-elements.json +3838 -3356
- package/es/components/audio-player/index.d.ts +4 -4
- package/es/components/audio-player/src/audio-player.d.ts +1 -1
- package/es/components/audio-player/src/audio-player.js +33 -38
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/base-provider.js +9 -9
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es/components/audio-player/src/transcript.d.ts +2 -2
- package/es/components/audio-player/src/transcript.js +13 -16
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +1 -1
- package/es/components/card/index.d.ts +4 -4
- package/es/components/card/src/card-footer.d.ts +5 -5
- package/es/components/card/src/card-footer.js +12 -16
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.d.ts +4 -4
- package/es/components/card/src/card-steps.js +3 -5
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.d.ts +2 -2
- package/es/components/card/src/card.js +3 -3
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/carousel/index.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -2
- package/es/components/carousel/src/carousel.js +4 -6
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.js +1 -1
- package/es/components/chain-of-thought/defs.js +1 -1
- package/es/components/chain-of-thought/index.d.ts +10 -10
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -1
- package/es/components/chat-button/defs.js +1 -1
- package/es/components/chat-button/index.d.ts +2 -2
- package/es/components/chat-button/src/chat-button.d.ts +5 -5
- package/es/components/chat-button/src/chat-button.js +6 -6
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/index.d.ts +11 -11
- package/es/components/chat-history/src/history-content.d.ts +1 -1
- package/es/components/chat-history/src/history-content.js +6 -6
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es/components/chat-history/src/history-delete-panel.js +11 -11
- package/es/components/chat-history/src/history-header.d.ts +2 -2
- package/es/components/chat-history/src/history-header.js +9 -10
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -2
- package/es/components/chat-history/src/history-loading.js +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es/components/chat-history/src/history-panel-item.js +39 -41
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es/components/chat-history/src/history-panel-items.js +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.js +3 -3
- package/es/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es/components/chat-history/src/history-search-item.js +4 -4
- package/es/components/chat-history/src/history-shell.d.ts +1 -1
- package/es/components/chat-history/src/history-shell.js +3 -3
- package/es/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es/components/chat-history/src/history-toolbar.js +13 -10
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +5 -5
- package/es/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es/components/chat-shell/src/chat-header.js +37 -44
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es/components/chat-shell/src/corner-manager.js +30 -30
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.js +12 -12
- package/es/components/chat-shell/src/panel.d.ts +2 -2
- package/es/components/chat-shell/src/panel.js +99 -100
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es/components/chat-shell/src/shell.d.ts +8 -8
- package/es/components/chat-shell/src/shell.js +128 -135
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es/components/chat-shell/src/slot-observer.js +4 -7
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +4 -4
- package/es/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager.js +32 -32
- package/es/components/code-snippet/index.d.ts +4 -4
- package/es/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es/components/code-snippet/src/code-snippet.js +87 -93
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es/components/code-snippet/src/dom-utils.js +6 -6
- package/es/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es/components/code-snippet/src/layout-utils.js +9 -9
- package/es/components/code-snippet/src/streaming-manager.js +5 -5
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es/components/feedback/src/feedback-buttons.js +17 -19
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -9
- package/es/components/feedback/src/feedback.js +38 -45
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +5 -4
- package/es/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es/components/file-uploads/src/file-type-icon.js +87 -0
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es/components/file-uploads/src/file-upload-item.js +210 -111
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es/components/file-uploads/src/file-uploads.js +54 -29
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es/components/file-uploads/src/types.d.ts +39 -0
- package/es/components/file-uploads/src/types.js +8 -0
- package/es/components/file-uploads/src/types.js.map +1 -0
- package/es/components/launcher/index.d.ts +9 -0
- package/es/components/launcher/index.js +9 -0
- package/es/components/launcher/index.js.map +1 -0
- package/es/components/launcher/src/launcher.d.ts +68 -0
- package/es/components/launcher/src/launcher.js +152 -0
- package/es/components/launcher/src/launcher.js.map +1 -0
- package/es/components/launcher/src/launcher.scss.js +13 -0
- package/es/components/launcher/src/launcher.scss.js.map +1 -0
- package/es/components/markdown/index.d.ts +5 -5
- package/es/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es/components/markdown/src/markdown-renderer.js +85 -80
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +20 -20
- package/es/components/markdown/src/markdown.d.ts +4 -7
- package/es/components/markdown/src/markdown.js +96 -82
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.template.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es/components/markdown/src/utils/html-helpers.js +72 -72
- package/es/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es/components/markdown/src/utils/lit-directives.js +5 -5
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es/components/markdown/src/utils/streaming-table.js +6 -6
- package/es/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es/components/markdown/src/utils/table-helpers.js +17 -18
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/src/processing.d.ts +2 -2
- package/es/components/processing/src/processing.js +2 -2
- package/es/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es/components/prompt-line/autocomplete/index.js +9 -0
- package/es/components/prompt-line/autocomplete/index.js.map +1 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es/components/prompt-line/index.d.ts +18 -18
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +3 -7
- package/es/components/prompt-line/src/error-message.js +13 -23
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es/components/prompt-line/src/prompt-line.js +35 -35
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +4 -4
- package/es/components/prompt-line/src/send-control.js +18 -20
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es/components/prompt-line/src/types.d.ts +2 -2
- package/es/components/prompt-line/src/types.js.map +1 -1
- package/es/components/reasoning-steps/index.d.ts +4 -4
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es/components/shared/media-utils/script-loader.js +1 -1
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/src/table-loader.d.ts +1 -1
- package/es/components/table/src/table-loader.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +3 -3
- package/es/components/table/src/table-pagination.template.js +4 -5
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es/components/table/src/table-skeleton.template.js +2 -3
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +3 -4
- package/es/components/table/src/table.js +36 -39
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +5 -5
- package/es/components/table/src/table.template.js +6 -9
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +9 -7
- package/es/components/toolbar/src/toolbar.js +45 -33
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/truncated-text/index.d.ts +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es/components/truncated-text/src/truncated-text.js +26 -28
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es/components/video-player/index.d.ts +2 -2
- package/es/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es/components/video-player/src/providers/base-provider.js +5 -5
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es/components/video-player/src/utils/url-detector.js +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -2
- package/es/components/video-player/src/video-player.js +37 -41
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +4 -4
- package/es/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es/globals/decorators/carbon-element.d.ts +4 -4
- package/es/globals/decorators/carbon-element.js +2 -2
- package/es/globals/decorators/index.d.ts +1 -1
- package/es/globals/scss/common.scss.js +1 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es/globals/utils/aria-announcer-manager.js +6 -6
- package/es/globals/utils/browser-utils.js +1 -1
- package/es/globals/utils/csv.d.ts +8 -0
- package/es/globals/utils/csv.js +37 -0
- package/es/globals/utils/csv.js.map +1 -0
- package/es/globals/utils/dom-utils.js +1 -1
- package/es/globals/utils/focus-utils.js +4 -4
- package/es/globals/utils/iconTransform.d.ts +2 -2
- package/es/globals/utils/iconTransform.js +21 -21
- package/es/globals/utils/rtl-utils.js +1 -1
- package/es/globals/utils/uuid.js +5 -5
- package/es/react/__tests__/jest.setup.js +12 -12
- package/es/react/ai-label-action-button.d.ts +1 -1
- package/es/react/ai-label-action-button.js +1 -1
- package/es/react/audio-player.d.ts +1 -1
- package/es/react/audio-player.js +5 -5
- package/es/react/autocomplete.d.ts +1 -1
- package/es/react/autocomplete.js +5 -5
- package/es/react/card.d.ts +1 -1
- package/es/react/card.js +5 -5
- package/es/react/carousel.d.ts +1 -1
- package/es/react/carousel.js +2 -2
- package/es/react/chain-of-thought-step.d.ts +1 -1
- package/es/react/chain-of-thought-step.js +4 -4
- package/es/react/chain-of-thought-toggle.d.ts +2 -2
- package/es/react/chain-of-thought-toggle.js +3 -3
- package/es/react/chain-of-thought.d.ts +2 -2
- package/es/react/chain-of-thought.js +4 -4
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +2 -2
- package/es/react/chat-header.d.ts +3 -3
- package/es/react/chat-header.js +2 -2
- package/es/react/chat-shell.d.ts +2 -2
- package/es/react/chat-shell.js +2 -2
- package/es/react/code-snippet.d.ts +4 -4
- package/es/react/code-snippet.js +3 -3
- package/es/react/error-message.d.ts +1 -1
- package/es/react/error-message.js +1 -1
- package/es/react/feedback-buttons.d.ts +1 -1
- package/es/react/feedback-buttons.js +3 -3
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +4 -4
- package/es/react/file-upload-item.d.ts +11 -0
- package/es/react/file-upload-item.js +31 -0
- package/es/react/file-upload-item.js.map +1 -0
- package/es/react/file-uploads.d.ts +1 -1
- package/es/react/file-uploads.js +2 -2
- package/es/react/history/history-content.d.ts +1 -1
- package/es/react/history/history-content.js +1 -1
- package/es/react/history/history-delete-panel.d.ts +1 -1
- package/es/react/history/history-delete-panel.js +3 -3
- package/es/react/history/history-header.d.ts +1 -1
- package/es/react/history/history-header.js +2 -2
- package/es/react/history/history-loading.d.ts +1 -1
- package/es/react/history/history-loading.js +1 -1
- package/es/react/history/history-panel-item-input.d.ts +1 -1
- package/es/react/history/history-panel-item-input.js +4 -4
- package/es/react/history/history-panel-item.d.ts +1 -1
- package/es/react/history/history-panel-item.js +6 -6
- package/es/react/history/history-panel-items.d.ts +1 -1
- package/es/react/history/history-panel-items.js +1 -1
- package/es/react/history/history-panel-menu.d.ts +1 -1
- package/es/react/history/history-panel-menu.js +1 -1
- package/es/react/history/history-panel.d.ts +1 -1
- package/es/react/history/history-panel.js +1 -1
- package/es/react/history/history-search-item.d.ts +1 -1
- package/es/react/history/history-search-item.js +2 -2
- package/es/react/history/history-shell.d.ts +1 -1
- package/es/react/history/history-shell.js +1 -1
- package/es/react/history/history-toolbar.d.ts +1 -1
- package/es/react/history/history-toolbar.js +3 -3
- package/es/react/history/index.d.ts +12 -12
- package/es/react/hooks/useChatAutocomplete.d.ts +4 -4
- package/es/react/hooks/useChatAutocomplete.js +38 -12
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/input-send-control.d.ts +1 -1
- package/es/react/input-send-control.js +3 -3
- package/es/react/launcher.d.ts +11 -0
- package/es/react/launcher.js +31 -0
- package/es/react/launcher.js.map +1 -0
- package/es/react/markdown.d.ts +7 -7
- package/es/react/markdown.js +13 -13
- package/es/react/markdown.js.map +1 -1
- package/es/react/panel.d.ts +1 -1
- package/es/react/panel.js +7 -7
- package/es/react/processing.d.ts +1 -1
- package/es/react/processing.js +2 -2
- package/es/react/prompt-line-shell.d.ts +1 -1
- package/es/react/prompt-line-shell.js +1 -1
- package/es/react/prompt-line.d.ts +1 -1
- package/es/react/prompt-line.js +9 -9
- package/es/react/reasoning-step.d.ts +1 -1
- package/es/react/reasoning-step.js +4 -4
- package/es/react/reasoning-steps-toggle.d.ts +2 -2
- package/es/react/reasoning-steps-toggle.js +3 -3
- package/es/react/reasoning-steps.d.ts +1 -1
- package/es/react/reasoning-steps.js +2 -2
- package/es/react/stop-streaming-button.d.ts +1 -1
- package/es/react/stop-streaming-button.js +1 -1
- package/es/react/table.d.ts +2 -2
- package/es/react/table.js +1 -1
- package/es/react/tool-call-data.d.ts +1 -1
- package/es/react/tool-call-data.js +2 -2
- package/es/react/toolbar.d.ts +4 -4
- package/es/react/toolbar.js +2 -2
- package/es/react/transcript.d.ts +1 -1
- package/es/react/transcript.js +3 -3
- package/es/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es/react/utils/transformSuggestionConfig.js +3 -3
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es/react/utils/withWebComponentBridge.js +22 -22
- package/es/react/video-player.d.ts +1 -1
- package/es/react/video-player.js +5 -5
- package/es/react/workspace-shell.d.ts +1 -1
- package/es/react/workspace-shell.js +6 -6
- package/es/testing/load-all-lazy-deps.d.ts +2 -2
- package/es/testing/load-all-lazy-deps.js +1 -1
- package/es/typings/overflow-menu.d.ts +2 -2
- package/es-custom/components/audio-player/index.d.ts +4 -4
- package/es-custom/components/audio-player/src/audio-player.d.ts +1 -1
- package/es-custom/components/audio-player/src/audio-player.js +33 -38
- package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/base-provider.js +9 -9
- package/es-custom/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js +18 -18
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
- package/es-custom/components/audio-player/src/transcript.js +13 -16
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/card/index.d.ts +4 -4
- package/es-custom/components/card/src/card-footer.d.ts +5 -5
- package/es-custom/components/card/src/card-footer.js +12 -16
- package/es-custom/components/card/src/card-footer.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.d.ts +4 -4
- package/es-custom/components/card/src/card-steps.js +3 -5
- package/es-custom/components/card/src/card-steps.js.map +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.d.ts +2 -2
- package/es-custom/components/card/src/card.js +3 -3
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/carousel/index.d.ts +1 -1
- package/es-custom/components/carousel/src/carousel.d.ts +2 -2
- package/es-custom/components/carousel/src/carousel.js +4 -6
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/carousel/src/carousel.scss.js +1 -1
- package/es-custom/components/chain-of-thought/defs.js +1 -1
- package/es-custom/components/chain-of-thought/index.d.ts +10 -10
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/defs.d.ts +1 -1
- package/es-custom/components/chat-button/defs.js +1 -1
- package/es-custom/components/chat-button/index.d.ts +2 -2
- package/es-custom/components/chat-button/src/chat-button.d.ts +5 -5
- package/es-custom/components/chat-button/src/chat-button.js +6 -6
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/index.d.ts +11 -11
- package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-content.js +6 -6
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-delete-panel.js +11 -11
- package/es-custom/components/chat-history/src/history-header.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-header.js +9 -10
- package/es-custom/components/chat-history/src/history-header.js.map +1 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-loading.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es-custom/components/chat-history/src/history-panel-item.js +39 -41
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.js +3 -3
- package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-search-item.js +4 -4
- package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-shell.js +3 -3
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es-custom/components/chat-history/src/history-toolbar.js +13 -10
- package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es-custom/components/chat-shell/index.d.ts +5 -5
- package/es-custom/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es-custom/components/chat-shell/src/chat-header.js +37 -44
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +30 -30
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.js +12 -12
- package/es-custom/components/chat-shell/src/panel.d.ts +2 -2
- package/es-custom/components/chat-shell/src/panel.js +99 -100
- package/es-custom/components/chat-shell/src/panel.js.map +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +10 -10
- package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
- package/es-custom/components/chat-shell/src/shell.js +128 -135
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.js +4 -7
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es-custom/components/chat-shell/src/types.d.ts +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +32 -32
- package/es-custom/components/code-snippet/index.d.ts +4 -4
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es-custom/components/code-snippet/src/code-snippet.js +87 -93
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es-custom/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js +163 -163
- package/es-custom/components/code-snippet/src/dom-utils.js +6 -6
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/layout-utils.js +9 -9
- package/es-custom/components/code-snippet/src/streaming-manager.js +5 -5
- package/es-custom/components/feedback/index.d.ts +4 -4
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es-custom/components/feedback/src/feedback-buttons.js +17 -19
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +9 -9
- package/es-custom/components/feedback/src/feedback.js +38 -45
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/file-uploads/index.d.ts +5 -4
- package/es-custom/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js +87 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +69 -8
- package/es-custom/components/file-uploads/src/file-upload-item.js +210 -111
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es-custom/components/file-uploads/src/file-uploads.js +54 -29
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
- package/es-custom/components/file-uploads/src/types.d.ts +39 -0
- package/es-custom/components/file-uploads/src/types.js +8 -0
- package/es-custom/components/file-uploads/src/types.js.map +1 -0
- package/es-custom/components/launcher/index.d.ts +9 -0
- package/es-custom/components/launcher/index.js +9 -0
- package/{es/components/autocomplete → es-custom/components/launcher}/index.js.map +1 -1
- package/es-custom/components/launcher/src/launcher.d.ts +68 -0
- package/es-custom/components/launcher/src/launcher.js +152 -0
- package/es-custom/components/launcher/src/launcher.js.map +1 -0
- package/es-custom/components/launcher/src/launcher.scss.js +13 -0
- package/es-custom/components/launcher/src/launcher.scss.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +5 -5
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es-custom/components/markdown/src/markdown-renderer.js +85 -80
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +20 -20
- package/es-custom/components/markdown/src/markdown.d.ts +4 -7
- package/es-custom/components/markdown/src/markdown.js +96 -82
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.template.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/html-helpers.js +72 -72
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es-custom/components/markdown/src/utils/lit-directives.js +5 -5
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js +6 -6
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/table-helpers.js +17 -18
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/processing/index.d.ts +1 -1
- package/es-custom/components/processing/src/processing.d.ts +2 -2
- package/es-custom/components/processing/src/processing.js +2 -2
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es-custom/components/prompt-line/autocomplete/index.js +9 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/index.js.map +1 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es-custom/components/prompt-line/index.d.ts +18 -18
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +3 -7
- package/es-custom/components/prompt-line/src/error-message.js +13 -23
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es-custom/components/prompt-line/src/prompt-line.js +35 -35
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +4 -4
- package/es-custom/components/prompt-line/src/send-control.js +18 -20
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es-custom/components/prompt-line/src/types.d.ts +2 -2
- package/es-custom/components/prompt-line/src/types.js.map +1 -1
- package/es-custom/components/reasoning-steps/index.d.ts +4 -4
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es-custom/components/shared/media-utils/script-loader.js +1 -1
- package/es-custom/components/table/index.d.ts +3 -3
- package/es-custom/components/table/src/table-loader.d.ts +1 -1
- package/es-custom/components/table/src/table-loader.js +1 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +3 -3
- package/es-custom/components/table/src/table-pagination.template.js +4 -5
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
- package/es-custom/components/table/src/table-runtime.d.ts +2 -2
- package/es-custom/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es-custom/components/table/src/table-skeleton.template.js +2 -3
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +3 -4
- package/es-custom/components/table/src/table.js +36 -39
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.template.d.ts +5 -5
- package/es-custom/components/table/src/table.template.js +6 -9
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/index.d.ts +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +9 -7
- package/es-custom/components/toolbar/src/toolbar.js +45 -33
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/truncated-text/index.d.ts +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es-custom/components/truncated-text/src/truncated-text.js +26 -28
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es-custom/components/video-player/index.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es-custom/components/video-player/src/providers/base-provider.js +5 -5
- package/es-custom/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/native-video-provider.js +20 -20
- package/es-custom/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es-custom/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es-custom/components/video-player/src/utils/url-detector.js +1 -1
- package/es-custom/components/video-player/src/video-player.d.ts +2 -2
- package/es-custom/components/video-player/src/video-player.js +37 -41
- package/es-custom/components/video-player/src/video-player.js.map +1 -1
- package/es-custom/components/workspace-shell/index.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +13 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es-custom/globals/decorators/carbon-element.d.ts +4 -4
- package/es-custom/globals/decorators/carbon-element.js +2 -2
- package/es-custom/globals/decorators/index.d.ts +1 -1
- package/es-custom/globals/scss/common.scss.js +1 -1
- package/es-custom/globals/settings.js +2 -2
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +1 -1
- package/es-custom/globals/utils/aria-announcer-manager.js +6 -6
- package/es-custom/globals/utils/browser-utils.js +1 -1
- package/es-custom/globals/utils/csv.d.ts +8 -0
- package/es-custom/globals/utils/csv.js +37 -0
- package/es-custom/globals/utils/csv.js.map +1 -0
- package/es-custom/globals/utils/dom-utils.js +1 -1
- package/es-custom/globals/utils/focus-utils.js +4 -4
- package/es-custom/globals/utils/iconTransform.d.ts +2 -2
- package/es-custom/globals/utils/iconTransform.js +21 -21
- package/es-custom/globals/utils/rtl-utils.js +1 -1
- package/es-custom/globals/utils/uuid.js +5 -5
- package/es-custom/react/__tests__/jest.setup.js +12 -12
- package/es-custom/react/ai-label-action-button.d.ts +1 -1
- package/es-custom/react/ai-label-action-button.js +1 -1
- package/es-custom/react/audio-player.d.ts +1 -1
- package/es-custom/react/audio-player.js +5 -5
- package/es-custom/react/autocomplete.d.ts +1 -1
- package/es-custom/react/autocomplete.js +5 -5
- package/es-custom/react/card.d.ts +1 -1
- package/es-custom/react/card.js +5 -5
- package/es-custom/react/carousel.d.ts +1 -1
- package/es-custom/react/carousel.js +2 -2
- package/es-custom/react/chain-of-thought-step.d.ts +1 -1
- package/es-custom/react/chain-of-thought-step.js +4 -4
- package/es-custom/react/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/react/chain-of-thought-toggle.js +3 -3
- package/es-custom/react/chain-of-thought.d.ts +2 -2
- package/es-custom/react/chain-of-thought.js +4 -4
- package/es-custom/react/chat-button.d.ts +3 -3
- package/es-custom/react/chat-button.js +2 -2
- package/es-custom/react/chat-header.d.ts +3 -3
- package/es-custom/react/chat-header.js +2 -2
- package/es-custom/react/chat-shell.d.ts +2 -2
- package/es-custom/react/chat-shell.js +2 -2
- package/es-custom/react/code-snippet.d.ts +4 -4
- package/es-custom/react/code-snippet.js +3 -3
- package/es-custom/react/error-message.d.ts +1 -1
- package/es-custom/react/error-message.js +1 -1
- package/es-custom/react/feedback-buttons.d.ts +1 -1
- package/es-custom/react/feedback-buttons.js +3 -3
- package/es-custom/react/feedback.d.ts +2 -2
- package/es-custom/react/feedback.js +4 -4
- package/es-custom/react/file-upload-item.d.ts +11 -0
- package/es-custom/react/file-upload-item.js +31 -0
- package/es-custom/react/file-upload-item.js.map +1 -0
- package/es-custom/react/file-uploads.d.ts +1 -1
- package/es-custom/react/file-uploads.js +2 -2
- package/es-custom/react/history/history-content.d.ts +1 -1
- package/es-custom/react/history/history-content.js +1 -1
- package/es-custom/react/history/history-delete-panel.d.ts +1 -1
- package/es-custom/react/history/history-delete-panel.js +3 -3
- package/es-custom/react/history/history-header.d.ts +1 -1
- package/es-custom/react/history/history-header.js +2 -2
- package/es-custom/react/history/history-loading.d.ts +1 -1
- package/es-custom/react/history/history-loading.js +1 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +1 -1
- package/es-custom/react/history/history-panel-item-input.js +4 -4
- package/es-custom/react/history/history-panel-item.d.ts +1 -1
- package/es-custom/react/history/history-panel-item.js +6 -6
- package/es-custom/react/history/history-panel-items.d.ts +1 -1
- package/es-custom/react/history/history-panel-items.js +1 -1
- package/es-custom/react/history/history-panel-menu.d.ts +1 -1
- package/es-custom/react/history/history-panel-menu.js +1 -1
- package/es-custom/react/history/history-panel.d.ts +1 -1
- package/es-custom/react/history/history-panel.js +1 -1
- package/es-custom/react/history/history-search-item.d.ts +1 -1
- package/es-custom/react/history/history-search-item.js +2 -2
- package/es-custom/react/history/history-shell.d.ts +1 -1
- package/es-custom/react/history/history-shell.js +1 -1
- package/es-custom/react/history/history-toolbar.d.ts +1 -1
- package/es-custom/react/history/history-toolbar.js +3 -3
- package/es-custom/react/history/index.d.ts +12 -12
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +4 -4
- package/es-custom/react/hooks/useChatAutocomplete.js +38 -12
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es-custom/react/input-send-control.d.ts +1 -1
- package/es-custom/react/input-send-control.js +3 -3
- package/es-custom/react/launcher.d.ts +11 -0
- package/es-custom/react/launcher.js +31 -0
- package/es-custom/react/launcher.js.map +1 -0
- package/es-custom/react/markdown.d.ts +7 -7
- package/es-custom/react/markdown.js +13 -13
- package/es-custom/react/markdown.js.map +1 -1
- package/es-custom/react/panel.d.ts +1 -1
- package/es-custom/react/panel.js +7 -7
- package/es-custom/react/processing.d.ts +1 -1
- package/es-custom/react/processing.js +2 -2
- package/es-custom/react/prompt-line-shell.d.ts +1 -1
- package/es-custom/react/prompt-line-shell.js +1 -1
- package/es-custom/react/prompt-line.d.ts +1 -1
- package/es-custom/react/prompt-line.js +9 -9
- package/es-custom/react/reasoning-step.d.ts +1 -1
- package/es-custom/react/reasoning-step.js +4 -4
- package/es-custom/react/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/react/reasoning-steps-toggle.js +3 -3
- package/es-custom/react/reasoning-steps.d.ts +1 -1
- package/es-custom/react/reasoning-steps.js +2 -2
- package/es-custom/react/stop-streaming-button.d.ts +1 -1
- package/es-custom/react/stop-streaming-button.js +1 -1
- package/es-custom/react/table.d.ts +2 -2
- package/es-custom/react/table.js +1 -1
- package/es-custom/react/tool-call-data.d.ts +1 -1
- package/es-custom/react/tool-call-data.js +2 -2
- package/es-custom/react/toolbar.d.ts +4 -4
- package/es-custom/react/toolbar.js +2 -2
- package/es-custom/react/transcript.d.ts +1 -1
- package/es-custom/react/transcript.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es-custom/react/utils/withWebComponentBridge.js +22 -22
- package/es-custom/react/video-player.d.ts +1 -1
- package/es-custom/react/video-player.js +5 -5
- package/es-custom/react/workspace-shell.d.ts +1 -1
- package/es-custom/react/workspace-shell.js +6 -6
- package/es-custom/testing/load-all-lazy-deps.d.ts +2 -2
- package/es-custom/testing/load-all-lazy-deps.js +1 -1
- package/es-custom/typings/overflow-menu.d.ts +2 -2
- package/package.json +4 -5
- package/scss/_custom-properties.scss +15 -15
- package/scss/_modifiers.scss +8 -8
- package/scss/_tokens-component.scss +1 -1
- package/scss/_tokens-layout.scss +1 -1
- package/scss/_utilities.scss +2 -2
- package/scss/common.scss +3 -3
- package/scss/grid.scss +2 -2
- package/scss/themes.scss +7 -7
- package/scss/vars.scss +3 -3
- package/telemetry.yml +64 -5
- package/es/components/autocomplete/index.d.ts +0 -15
- package/es/components/autocomplete/index.js +0 -11
- package/es/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es/components/autocomplete/src/autocomplete.js +0 -321
- package/es/components/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/autocomplete/index.d.ts +0 -15
- package/es-custom/components/autocomplete/index.js +0 -11
- package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es-custom/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es-custom/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es-custom/components/autocomplete/src/autocomplete.js +0 -321
- package/es-custom/components/autocomplete/src/autocomplete.js.map +0 -1
- /package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
- /package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
|
@@ -47,11 +47,11 @@ const iconCache = new WeakMap();
|
|
|
47
47
|
*/
|
|
48
48
|
function isCarbonIcon(icon) {
|
|
49
49
|
return Boolean(icon &&
|
|
50
|
-
typeof icon ===
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
icon.elem ===
|
|
50
|
+
typeof icon === 'object' &&
|
|
51
|
+
'elem' in icon &&
|
|
52
|
+
'attrs' in icon &&
|
|
53
|
+
'content' in icon &&
|
|
54
|
+
icon.elem === 'svg');
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Transforms a React icon component to CarbonIcon format.
|
|
@@ -82,14 +82,14 @@ function transformReactIconToCarbonIcon(icon, size = 16) {
|
|
|
82
82
|
const descriptor = extractCarbonIconFromReactElement(element, size);
|
|
83
83
|
// Validate descriptor
|
|
84
84
|
if (!isValidCarbonIcon(descriptor)) {
|
|
85
|
-
throw new Error(
|
|
85
|
+
throw new Error('Generated descriptor is invalid');
|
|
86
86
|
}
|
|
87
87
|
// Cache and return
|
|
88
88
|
sizeMap.set(size, descriptor);
|
|
89
89
|
return descriptor;
|
|
90
90
|
}
|
|
91
91
|
catch (error) {
|
|
92
|
-
const iconName = ReactIcon.displayName || ReactIcon.name ||
|
|
92
|
+
const iconName = ReactIcon.displayName || ReactIcon.name || 'Unknown';
|
|
93
93
|
throw new Error(`Failed to transform React icon "${iconName}": ${error instanceof Error ? error.message : String(error)}`);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -101,8 +101,8 @@ function extractCarbonIconFromReactElement(element, size) {
|
|
|
101
101
|
// Navigate through forwardRef and other wrappers if needed
|
|
102
102
|
let currentElement = element;
|
|
103
103
|
// Handle forwardRef wrapper
|
|
104
|
-
if (typeof currentElement.type ===
|
|
105
|
-
|
|
104
|
+
if (typeof currentElement.type === 'object' &&
|
|
105
|
+
'render' in currentElement.type) {
|
|
106
106
|
// This is a forwardRef, call the render function
|
|
107
107
|
const renderFn = currentElement.type.render;
|
|
108
108
|
currentElement = renderFn(currentElement.props, null);
|
|
@@ -110,13 +110,13 @@ function extractCarbonIconFromReactElement(element, size) {
|
|
|
110
110
|
// Now we should have the actual Icon element
|
|
111
111
|
const props = currentElement.props;
|
|
112
112
|
if (!props) {
|
|
113
|
-
throw new Error(
|
|
113
|
+
throw new Error('Unable to extract props from React element');
|
|
114
114
|
}
|
|
115
115
|
// Extract SVG attributes from props
|
|
116
116
|
const attrs = {
|
|
117
|
-
xmlns: props.xmlns ||
|
|
118
|
-
viewBox: props.viewBox ||
|
|
119
|
-
fill: props.fill ||
|
|
117
|
+
xmlns: props.xmlns || 'http://www.w3.org/2000/svg',
|
|
118
|
+
viewBox: props.viewBox || '0 0 32 32',
|
|
119
|
+
fill: props.fill || 'currentColor',
|
|
120
120
|
width: size,
|
|
121
121
|
height: size,
|
|
122
122
|
};
|
|
@@ -127,14 +127,14 @@ function extractCarbonIconFromReactElement(element, size) {
|
|
|
127
127
|
if (React.isValidElement(child)) {
|
|
128
128
|
const childElement = child;
|
|
129
129
|
const contentItem = {
|
|
130
|
-
elem: typeof childElement.type ===
|
|
130
|
+
elem: typeof childElement.type === 'string' ? childElement.type : 'path',
|
|
131
131
|
attrs: {},
|
|
132
132
|
};
|
|
133
133
|
// Copy all props as attributes
|
|
134
134
|
if (childElement.props) {
|
|
135
135
|
Object.entries(childElement.props).forEach(([key, value]) => {
|
|
136
136
|
// Skip children and other React-specific props
|
|
137
|
-
if (key !==
|
|
137
|
+
if (key !== 'children' && value !== undefined && value !== null) {
|
|
138
138
|
contentItem.attrs[key] = value;
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -143,7 +143,7 @@ function extractCarbonIconFromReactElement(element, size) {
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
return {
|
|
146
|
-
elem:
|
|
146
|
+
elem: 'svg',
|
|
147
147
|
attrs,
|
|
148
148
|
content,
|
|
149
149
|
name: extractIconName(props),
|
|
@@ -155,20 +155,20 @@ function extractCarbonIconFromReactElement(element, size) {
|
|
|
155
155
|
*/
|
|
156
156
|
function isValidCarbonIcon(descriptor) {
|
|
157
157
|
return (descriptor &&
|
|
158
|
-
descriptor.elem ===
|
|
158
|
+
descriptor.elem === 'svg' &&
|
|
159
159
|
descriptor.attrs &&
|
|
160
|
-
typeof descriptor.attrs ===
|
|
160
|
+
typeof descriptor.attrs === 'object' &&
|
|
161
161
|
Array.isArray(descriptor.content) &&
|
|
162
162
|
descriptor.content.length > 0 &&
|
|
163
|
-
typeof descriptor.name ===
|
|
164
|
-
typeof descriptor.size ===
|
|
163
|
+
typeof descriptor.name === 'string' &&
|
|
164
|
+
typeof descriptor.size === 'number');
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Attempts to extract icon name from props
|
|
168
168
|
*/
|
|
169
169
|
function extractIconName(props) {
|
|
170
170
|
// Try various properties that might contain the icon name
|
|
171
|
-
return props[
|
|
171
|
+
return props['data-icon-name'] || props['aria-label'] || props.name || 'icon';
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
export { isCarbonIcon, transformReactIconToCarbonIcon };
|
package/es/globals/utils/uuid.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
* Copyright IBM Corp. 2025
|
|
9
|
+
* Copyright IBM Corp. 2025, 2026
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
* Generates a v4 UUID. Uses `crypto.randomUUID` when available, otherwise falls back to a simple implementation.
|
|
18
18
|
*/
|
|
19
19
|
function uuid() {
|
|
20
|
-
if (typeof crypto !==
|
|
21
|
-
typeof crypto.randomUUID ===
|
|
20
|
+
if (typeof crypto !== 'undefined' &&
|
|
21
|
+
typeof crypto.randomUUID === 'function') {
|
|
22
22
|
return crypto.randomUUID();
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (character) => {
|
|
25
25
|
const random = (Math.random() * 16) | 0;
|
|
26
|
-
const value = character ===
|
|
26
|
+
const value = character === 'x' ? random : (random & 0x3) | 0x8;
|
|
27
27
|
return value.toString(16);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
beforeEach(() => {
|
|
17
17
|
// Mock DOMParser for icon transformation tests
|
|
18
|
-
if (typeof DOMParser ===
|
|
18
|
+
if (typeof DOMParser === 'undefined') {
|
|
19
19
|
global.DOMParser = class DOMParser {
|
|
20
20
|
parseFromString(str, _type) {
|
|
21
21
|
// Simple mock for testing - in real browser this would parse the string
|
|
22
22
|
const doc = {
|
|
23
23
|
querySelector: (selector) => {
|
|
24
|
-
if (selector ===
|
|
24
|
+
if (selector === 'svg' && str.includes('<svg')) {
|
|
25
25
|
// Extract attributes from SVG string
|
|
26
26
|
const viewBoxMatch = str.match(/viewBox="([^"]*)"/);
|
|
27
27
|
const fillMatch = str.match(/fill="([^"]*)"/);
|
|
@@ -29,18 +29,18 @@ beforeEach(() => {
|
|
|
29
29
|
// Extract path data
|
|
30
30
|
const pathMatch = str.match(/<path[^>]*d="([^"]*)"[^>]*>/);
|
|
31
31
|
const mockSVG = {
|
|
32
|
-
tagName:
|
|
32
|
+
tagName: 'svg',
|
|
33
33
|
getAttribute: (attr) => {
|
|
34
|
-
if (attr ===
|
|
35
|
-
return viewBoxMatch ? viewBoxMatch[1] :
|
|
34
|
+
if (attr === 'viewBox') {
|
|
35
|
+
return viewBoxMatch ? viewBoxMatch[1] : '0 0 32 32';
|
|
36
36
|
}
|
|
37
|
-
if (attr ===
|
|
38
|
-
return fillMatch ? fillMatch[1] :
|
|
37
|
+
if (attr === 'fill') {
|
|
38
|
+
return fillMatch ? fillMatch[1] : 'currentColor';
|
|
39
39
|
}
|
|
40
|
-
if (attr ===
|
|
40
|
+
if (attr === 'xmlns') {
|
|
41
41
|
return xmlnsMatch
|
|
42
42
|
? xmlnsMatch[1]
|
|
43
|
-
:
|
|
43
|
+
: 'http://www.w3.org/2000/svg';
|
|
44
44
|
}
|
|
45
45
|
return null;
|
|
46
46
|
},
|
|
@@ -48,10 +48,10 @@ beforeEach(() => {
|
|
|
48
48
|
? [
|
|
49
49
|
{
|
|
50
50
|
nodeType: 1, // ELEMENT_NODE
|
|
51
|
-
tagName:
|
|
51
|
+
tagName: 'path',
|
|
52
52
|
attributes: [
|
|
53
53
|
{
|
|
54
|
-
name:
|
|
54
|
+
name: 'd',
|
|
55
55
|
value: pathMatch[1],
|
|
56
56
|
},
|
|
57
57
|
],
|
|
@@ -72,7 +72,7 @@ beforeEach(() => {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
// Mock Node constants if not available
|
|
75
|
-
if (typeof Node ===
|
|
75
|
+
if (typeof Node === 'undefined') {
|
|
76
76
|
global.Node = {
|
|
77
77
|
ELEMENT_NODE: 1,
|
|
78
78
|
TEXT_NODE: 3,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '@carbon/web-components/es/components/ai-label/ai-label-action-button.js';
|
|
2
2
|
declare const AILabelActionButton: import("@lit/react").ReactWebComponent<HTMLElement, {}>;
|
|
3
3
|
export default AILabelActionButton;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import React from
|
|
9
|
+
import React from 'react';
|
|
10
10
|
declare const AudioPlayer: React.ComponentType<any>;
|
|
11
11
|
export { AudioPlayer };
|
|
12
12
|
export default AudioPlayer;
|
package/es/react/audio-player.js
CHANGED
|
@@ -19,14 +19,14 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
21
|
const AudioPlayer = withWebComponentBridge(createComponent({
|
|
22
|
-
tagName:
|
|
22
|
+
tagName: 'cds-aichat-audio-player',
|
|
23
23
|
elementClass: CDSAIChatAudioPlayer,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
|
-
onPlay:
|
|
27
|
-
onPause:
|
|
28
|
-
onReady:
|
|
29
|
-
onError:
|
|
26
|
+
onPlay: 'cds-aichat-audio-player-play',
|
|
27
|
+
onPause: 'cds-aichat-audio-player-pause',
|
|
28
|
+
onReady: 'cds-aichat-audio-player-ready',
|
|
29
|
+
onError: 'cds-aichat-audio-player-error',
|
|
30
30
|
},
|
|
31
31
|
}));
|
|
32
32
|
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import React from
|
|
9
|
+
import React from 'react';
|
|
10
10
|
declare const CDSAIChatAutocomplete: React.ComponentType<any>;
|
|
11
11
|
export default CDSAIChatAutocomplete;
|
package/es/react/autocomplete.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { createComponent } from '@lit/react';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import AutocompleteElement from '../components/autocomplete/src/autocomplete.js';
|
|
10
|
+
import AutocompleteElement from '../components/prompt-line/autocomplete/src/autocomplete.js';
|
|
11
11
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -22,13 +22,13 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
22
22
|
// When icon rendering is added to the autocomplete web component, no additional
|
|
23
23
|
// React-side transformation is needed here.
|
|
24
24
|
const CDSAIChatAutocomplete = withWebComponentBridge(createComponent({
|
|
25
|
-
tagName:
|
|
25
|
+
tagName: 'cds-aichat-autocomplete',
|
|
26
26
|
elementClass: AutocompleteElement,
|
|
27
27
|
react: React,
|
|
28
28
|
events: {
|
|
29
|
-
onSelect:
|
|
30
|
-
onSend:
|
|
31
|
-
onDismiss:
|
|
29
|
+
onSelect: 'cds-aichat-autocomplete-select',
|
|
30
|
+
onSend: 'cds-aichat-autocomplete-send',
|
|
31
|
+
onDismiss: 'cds-aichat-autocomplete-dismiss',
|
|
32
32
|
},
|
|
33
33
|
}));
|
|
34
34
|
|
package/es/react/card.d.ts
CHANGED
package/es/react/card.js
CHANGED
|
@@ -13,7 +13,7 @@ import CDSAIChatCardSteps from '../components/card/src/card-steps.js';
|
|
|
13
13
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
|
-
* Copyright IBM Corp. 2025
|
|
16
|
+
* Copyright IBM Corp. 2025, 2026
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -21,20 +21,20 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
21
21
|
* @license
|
|
22
22
|
*/
|
|
23
23
|
const Card = withWebComponentBridge(createComponent({
|
|
24
|
-
tagName:
|
|
24
|
+
tagName: 'cds-aichat-card',
|
|
25
25
|
elementClass: CDSAIChatCard,
|
|
26
26
|
react: React,
|
|
27
27
|
}));
|
|
28
28
|
const CardFooter = withWebComponentBridge(createComponent({
|
|
29
|
-
tagName:
|
|
29
|
+
tagName: 'cds-aichat-card-footer',
|
|
30
30
|
elementClass: CDSAIChatCardFooter,
|
|
31
31
|
react: React,
|
|
32
32
|
events: {
|
|
33
|
-
onFooterAction:
|
|
33
|
+
onFooterAction: 'cds-aichat-card-footer-action',
|
|
34
34
|
},
|
|
35
35
|
}));
|
|
36
36
|
const CardSteps = withWebComponentBridge(createComponent({
|
|
37
|
-
tagName:
|
|
37
|
+
tagName: 'cds-aichat-card-steps',
|
|
38
38
|
elementClass: CDSAIChatCardSteps,
|
|
39
39
|
react: React,
|
|
40
40
|
}));
|
package/es/react/carousel.d.ts
CHANGED
package/es/react/carousel.js
CHANGED
|
@@ -19,11 +19,11 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
19
19
|
* @license
|
|
20
20
|
*/
|
|
21
21
|
const Carousel = withWebComponentBridge(createComponent({
|
|
22
|
-
tagName:
|
|
22
|
+
tagName: 'cds-aichat-carousel',
|
|
23
23
|
elementClass: CDSAICarousel,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
|
-
onChange:
|
|
26
|
+
onChange: 'cds-aichat-carousel-onchange',
|
|
27
27
|
},
|
|
28
28
|
}));
|
|
29
29
|
|
|
@@ -11,7 +11,7 @@ import { CDSAIChatChainOfThoughtStep } from '../components/chain-of-thought/src/
|
|
|
11
11
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
14
|
+
* Copyright IBM Corp. 2025, 2026
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -19,12 +19,12 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
19
19
|
* @license
|
|
20
20
|
*/
|
|
21
21
|
const ChainOfThoughtStep = withWebComponentBridge(createComponent({
|
|
22
|
-
tagName:
|
|
22
|
+
tagName: 'cds-aichat-chain-of-thought-step',
|
|
23
23
|
elementClass: CDSAIChatChainOfThoughtStep,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
|
-
onBeforeToggle:
|
|
27
|
-
onToggle:
|
|
26
|
+
onBeforeToggle: 'chain-of-thought-step-beingtoggled',
|
|
27
|
+
onToggle: 'chain-of-thought-step-toggled',
|
|
28
28
|
},
|
|
29
29
|
}));
|
|
30
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { type ChainOfThoughtToggleEventDetail } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ChainOfThoughtToggleEventDetail } from '../components/chain-of-thought/defs.js';
|
|
3
3
|
declare const ChainOfThoughtToggle: React.ComponentType<any>;
|
|
4
4
|
export type { ChainOfThoughtToggleEventDetail };
|
|
5
5
|
export default ChainOfThoughtToggle;
|
|
@@ -11,7 +11,7 @@ import CDSAIChatChainOfThoughtToggle from '../components/chain-of-thought/src/ch
|
|
|
11
11
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
14
|
+
* Copyright IBM Corp. 2025, 2026
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -19,11 +19,11 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
19
19
|
* @license
|
|
20
20
|
*/
|
|
21
21
|
const ChainOfThoughtToggle = withWebComponentBridge(createComponent({
|
|
22
|
-
tagName:
|
|
22
|
+
tagName: 'cds-aichat-chain-of-thought-toggle',
|
|
23
23
|
elementClass: CDSAIChatChainOfThoughtToggle,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
|
-
onToggle:
|
|
26
|
+
onToggle: 'chain-of-thought-toggle',
|
|
27
27
|
},
|
|
28
28
|
}));
|
|
29
29
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { type ChainOfThoughtOnToggle, ChainOfThoughtStepStatus, type ChainOfThoughtStepToggleEventDetail, type ChainOfThoughtToggleEventDetail } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ChainOfThoughtOnToggle, ChainOfThoughtStepStatus, type ChainOfThoughtStepToggleEventDetail, type ChainOfThoughtToggleEventDetail } from '../components/chain-of-thought/defs.js';
|
|
3
3
|
declare const ChainOfThought: React.ComponentType<any>;
|
|
4
4
|
export type { ChainOfThoughtOnToggle, ChainOfThoughtStepToggleEventDetail, ChainOfThoughtToggleEventDetail, };
|
|
5
5
|
export { ChainOfThoughtStepStatus };
|
|
@@ -12,7 +12,7 @@ export { ChainOfThoughtStepStatus } from '../components/chain-of-thought/defs.js
|
|
|
12
12
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
|
-
* Copyright IBM Corp. 2025
|
|
15
|
+
* Copyright IBM Corp. 2025, 2026
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -20,12 +20,12 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
20
20
|
* @license
|
|
21
21
|
*/
|
|
22
22
|
const ChainOfThought = withWebComponentBridge(createComponent({
|
|
23
|
-
tagName:
|
|
23
|
+
tagName: 'cds-aichat-chain-of-thought',
|
|
24
24
|
elementClass: CDSAIChatChainOfThought,
|
|
25
25
|
react: React,
|
|
26
26
|
events: {
|
|
27
|
-
onToggle:
|
|
28
|
-
onStepToggle:
|
|
27
|
+
onToggle: 'chain-of-thought-toggled',
|
|
28
|
+
onStepToggle: 'chain-of-thought-step-toggled',
|
|
29
29
|
},
|
|
30
30
|
}));
|
|
31
31
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
4
|
+
* Copyright IBM Corp. 2025, 2026
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import React from
|
|
10
|
-
import { CHAT_BUTTON_KIND, CHAT_BUTTON_TYPE, CHAT_BUTTON_SIZE, CHAT_BUTTON_TOOLTIP_ALIGNMENT, CHAT_BUTTON_TOOLTIP_POSITION } from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { CHAT_BUTTON_KIND, CHAT_BUTTON_TYPE, CHAT_BUTTON_SIZE, CHAT_BUTTON_TOOLTIP_ALIGNMENT, CHAT_BUTTON_TOOLTIP_POSITION } from '../components/chat-button/src/chat-button.js';
|
|
11
11
|
declare const ChatButton: React.ComponentType<any>;
|
|
12
12
|
export default ChatButton;
|
|
13
13
|
export { CHAT_BUTTON_KIND, CHAT_BUTTON_TYPE, CHAT_BUTTON_SIZE, CHAT_BUTTON_TOOLTIP_ALIGNMENT, CHAT_BUTTON_TOOLTIP_POSITION, };
|
package/es/react/chat-button.js
CHANGED
|
@@ -15,13 +15,13 @@ export { BUTTON_KIND as CHAT_BUTTON_KIND, BUTTON_TOOLTIP_ALIGNMENT as CHAT_BUTTO
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
17
17
|
*
|
|
18
|
-
* Copyright IBM Corp. 2025
|
|
18
|
+
* Copyright IBM Corp. 2025, 2026
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
23
|
const ChatButton = withWebComponentBridge(createComponent({
|
|
24
|
-
tagName:
|
|
24
|
+
tagName: 'cds-aichat-button',
|
|
25
25
|
elementClass: AIChatButton,
|
|
26
26
|
react: React,
|
|
27
27
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import type { ToolbarAction } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToolbarAction } from './toolbar.js';
|
|
3
3
|
export interface ChatHeaderProps {
|
|
4
4
|
/** Array of actions that can overflow into a menu when space is limited. */
|
|
5
5
|
actions?: ToolbarAction[];
|
|
@@ -10,7 +10,7 @@ export interface ChatHeaderProps {
|
|
|
10
10
|
/** Optional name text to display after the title. */
|
|
11
11
|
headerName?: string;
|
|
12
12
|
/** Type of navigation to display: 'back', 'overflow', or 'none'. */
|
|
13
|
-
navigationType?:
|
|
13
|
+
navigationType?: 'back' | 'overflow' | 'none';
|
|
14
14
|
/** Icon for the back button (CarbonIcon object). */
|
|
15
15
|
navigationBackIcon?: any;
|
|
16
16
|
/** Label/tooltip text for the back button. */
|
package/es/react/chat-header.js
CHANGED
|
@@ -14,7 +14,7 @@ import { transformReactIconToCarbonIcon } from '../globals/utils/iconTransform.j
|
|
|
14
14
|
|
|
15
15
|
// Base chat header component from @lit/react
|
|
16
16
|
const BaseChatHeader = withWebComponentBridge(createComponent({
|
|
17
|
-
tagName:
|
|
17
|
+
tagName: 'cds-aichat-chat-header',
|
|
18
18
|
elementClass: CdsAiChatChatHeader,
|
|
19
19
|
react: React,
|
|
20
20
|
}));
|
|
@@ -49,7 +49,7 @@ const ChatHeader = React.forwardRef((props, ref) => {
|
|
|
49
49
|
}, [actions]);
|
|
50
50
|
return (jsx(BaseChatHeader, { ref: ref, navigationBackIcon: transformedNavigationBackIcon, navigationOverflowIcon: transformedNavigationOverflowIcon, actions: transformedActions, ...restProps }));
|
|
51
51
|
});
|
|
52
|
-
ChatHeader.displayName =
|
|
52
|
+
ChatHeader.displayName = 'ChatHeader';
|
|
53
53
|
|
|
54
54
|
export { ChatHeader as default };
|
|
55
55
|
//# sourceMappingURL=chat-header.js.map
|
package/es/react/chat-shell.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
4
|
+
* Copyright IBM Corp. 2025, 2026
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import React from
|
|
9
|
+
import React from 'react';
|
|
10
10
|
declare const CDSAIChatShell: React.ComponentType<any>;
|
|
11
11
|
export default CDSAIChatShell;
|
package/es/react/chat-shell.js
CHANGED
|
@@ -13,13 +13,13 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
*
|
|
16
|
-
* Copyright IBM Corp. 2025
|
|
16
|
+
* Copyright IBM Corp. 2025, 2026
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
21
|
const CDSAIChatShell = withWebComponentBridge(createComponent({
|
|
22
|
-
tagName:
|
|
22
|
+
tagName: 'cds-aichat-shell',
|
|
23
23
|
elementClass: CDSChatShellElement,
|
|
24
24
|
react: React,
|
|
25
25
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { CarbonIcon } from
|
|
3
|
-
import { BUTTON_SIZE } from
|
|
4
|
-
export type { Action } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CarbonIcon } from '@carbon/web-components/es/globals/internal/icon-loader-utils.js';
|
|
3
|
+
import { BUTTON_SIZE } from '@carbon/web-components/es/components/button/defs.js';
|
|
4
|
+
export type { Action } from '../components/code-snippet/src/code-snippet.js';
|
|
5
5
|
/**
|
|
6
6
|
* React-specific Action interface that accepts both CarbonIcon and React icon components.
|
|
7
7
|
* This allows React developers to use @carbon/icons-react directly.
|
package/es/react/code-snippet.js
CHANGED
|
@@ -14,11 +14,11 @@ import { transformReactIconToCarbonIcon } from '../globals/utils/iconTransform.j
|
|
|
14
14
|
|
|
15
15
|
// Base code snippet component from @lit/react
|
|
16
16
|
const BaseCodeSnippet = withWebComponentBridge(createComponent({
|
|
17
|
-
tagName:
|
|
17
|
+
tagName: 'cds-aichat-code-snippet',
|
|
18
18
|
elementClass: CDSAIChatCodeSnippet,
|
|
19
19
|
react: React,
|
|
20
20
|
events: {
|
|
21
|
-
onChange:
|
|
21
|
+
onChange: 'content-change',
|
|
22
22
|
},
|
|
23
23
|
}));
|
|
24
24
|
/**
|
|
@@ -81,7 +81,7 @@ const CodeSnippet = React.forwardRef((props, ref) => {
|
|
|
81
81
|
}, [children]);
|
|
82
82
|
return (jsxs(BaseCodeSnippet, { ref: ref, actions: transformedActions, ...restProps, children: [Object.entries(slottedChildren).map(([slotName, nodes]) => (jsx("div", { slot: slotName, children: nodes }, slotName))), defaultChildren] }));
|
|
83
83
|
});
|
|
84
|
-
CodeSnippet.displayName =
|
|
84
|
+
CodeSnippet.displayName = 'CodeSnippet';
|
|
85
85
|
|
|
86
86
|
export { CodeSnippet as default };
|
|
87
87
|
//# sourceMappingURL=code-snippet.js.map
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import React from
|
|
9
|
+
import React from 'react';
|
|
10
10
|
declare const CDSAIChatErrorMessage: React.ComponentType<any>;
|
|
11
11
|
export default CDSAIChatErrorMessage;
|
|
@@ -19,7 +19,7 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
21
|
const CDSAIChatErrorMessage = withWebComponentBridge(createComponent({
|
|
22
|
-
tagName:
|
|
22
|
+
tagName: 'cds-aichat-error-message',
|
|
23
23
|
elementClass: ErrorMessage,
|
|
24
24
|
react: React,
|
|
25
25
|
}));
|