@carbon/ai-chat-components 1.7.0 → 1.9.0-alpha.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/custom-elements.json +16062 -10795
- package/es/components/audio-player/src/audio-player.js +9 -10
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.js +0 -1
- package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/native-audio-provider.js +0 -1
- package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/soundcloud-provider.js +0 -1
- package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
- package/es/components/audio-player/src/transcript.js +15 -15
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +0 -1
- package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es/components/autocomplete/index.d.ts +15 -0
- package/es/components/autocomplete/index.js +11 -0
- package/es/components/autocomplete/index.js.map +1 -0
- package/es/components/autocomplete/src/autocomplete-item-group.d.ts +44 -0
- package/es/components/autocomplete/src/autocomplete-item-group.js +139 -0
- package/es/components/autocomplete/src/autocomplete-item-group.js.map +1 -0
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js +13 -0
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +1 -0
- package/es/components/autocomplete/src/autocomplete-item.d.ts +54 -0
- package/es/components/autocomplete/src/autocomplete-item.js +197 -0
- package/es/components/autocomplete/src/autocomplete-item.js.map +1 -0
- package/es/components/autocomplete/src/autocomplete-item.scss.js +13 -0
- package/es/components/autocomplete/src/autocomplete-item.scss.js.map +1 -0
- package/es/components/autocomplete/src/autocomplete.d.ts +97 -0
- package/es/components/autocomplete/src/autocomplete.js +321 -0
- package/es/components/autocomplete/src/autocomplete.js.map +1 -0
- package/es/components/autocomplete/src/autocomplete.scss.js +13 -0
- package/es/components/autocomplete/src/autocomplete.scss.js.map +1 -0
- package/es/components/card/src/card-footer.d.ts +1 -1
- package/es/components/card/src/card-footer.js +1 -1
- 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 +1 -1
- package/es/components/card/src/card-steps.js +28 -28
- 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.scss.js +1 -1
- package/es/components/carousel/src/carousel.js +0 -1
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.js +4 -4
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/src/chat-button.d.ts +1 -1
- package/es/components/chat-button/src/chat-button.js +1 -1
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/src/chat-history.scss.js +1 -1
- package/es/components/chat-history/src/history-content.js +2 -2
- package/es/components/chat-history/src/history-content.js.map +1 -1
- package/es/components/chat-history/src/history-header.js +8 -8
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +19 -2
- package/es/components/chat-history/src/history-panel-item-input.js +69 -19
- 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 +14 -0
- package/es/components/chat-history/src/history-panel-item.js +59 -27
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-toolbar.js +3 -3
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/src/chat-header.js +15 -16
- 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 +1 -2
- package/es/components/chat-shell/src/corner-manager.js.map +1 -1
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es/components/chat-shell/src/initialization-manager.js +1 -2
- package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.js +0 -1
- package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
- package/es/components/chat-shell/src/shell.d.ts +1 -1
- package/es/components/chat-shell/src/shell.js +3 -3
- 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 +1 -2
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager-utils.js +1 -2
- package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager.js +1 -2
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +23 -0
- package/es/components/code-snippet/src/code-snippet.js +111 -36
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +1 -1
- package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +5 -0
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es/components/code-snippet/src/layout-utils.js +21 -8
- package/es/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.js +1 -1
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.js +38 -38
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.js +1 -1
- package/es/components/file-uploads/index.d.ts +12 -0
- package/es/components/file-uploads/index.js +10 -0
- package/es/components/file-uploads/index.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.d.ts +43 -0
- package/es/components/file-uploads/src/file-upload-item.js +267 -0
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.scss.js +13 -0
- package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
- package/es/components/file-uploads/src/file-uploads.d.ts +87 -0
- package/es/components/file-uploads/src/file-uploads.js +213 -0
- package/es/components/file-uploads/src/file-uploads.js.map +1 -0
- package/es/components/file-uploads/src/file-uploads.scss.js +13 -0
- package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -0
- package/es/components/markdown/index.d.ts +1 -0
- package/es/components/markdown/index.js +1 -0
- package/es/components/markdown/index.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +8 -0
- package/es/components/markdown/src/markdown-token-tree.js +12 -1
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/markdown.js +4 -0
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.js +1 -1
- package/es/components/markdown/src/utils/html-helpers.js.map +1 -1
- package/es/components/prompt-line/index.d.ts +26 -0
- package/es/components/prompt-line/index.js +32 -0
- package/es/components/prompt-line/index.js.map +1 -0
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +178 -0
- package/es/components/prompt-line/src/autocomplete-controller.js +548 -0
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -0
- package/es/components/prompt-line/src/error-message.d.ts +50 -0
- package/es/components/prompt-line/src/error-message.js +144 -0
- package/es/components/prompt-line/src/error-message.js.map +1 -0
- package/es/components/prompt-line/src/error-message.scss.js +13 -0
- package/es/components/prompt-line/src/error-message.scss.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
- package/es/components/prompt-line/src/prompt-line-constants.js +27 -0
- package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
- package/es/components/prompt-line/src/prompt-line-controller.js +394 -0
- package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
- package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +340 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
- package/es/components/prompt-line/src/prompt-line-shell.js +227 -0
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
- package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line.d.ts +147 -0
- package/es/components/prompt-line/src/prompt-line.js +391 -0
- package/es/components/prompt-line/src/prompt-line.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line.scss.js +13 -0
- package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -0
- package/es/components/prompt-line/src/send-control.d.ts +46 -0
- package/es/components/prompt-line/src/send-control.js +138 -0
- package/es/components/prompt-line/src/send-control.js.map +1 -0
- package/es/components/prompt-line/src/send-control.scss.js +13 -0
- package/es/components/prompt-line/src/send-control.scss.js.map +1 -0
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
- package/es/components/prompt-line/src/stop-streaming-button.js +93 -0
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -0
- package/es/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
- package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
- package/es/components/prompt-line/src/tiptap/build-extensions.js +38 -0
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
- package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +22 -0
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +64 -0
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
- package/es/components/prompt-line/src/tiptap/chat-enter.js +46 -0
- package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
- package/es/components/prompt-line/src/tiptap/editor-styles.js +83 -0
- package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/index.d.ts +42 -0
- package/es/components/prompt-line/src/tiptap/index.js +43 -0
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
- package/es/components/prompt-line/src/tiptap/json-utils.js +158 -0
- package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
- package/es/components/prompt-line/src/tiptap/keymap.js +59 -0
- package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
- package/es/components/prompt-line/src/tiptap/origin-meta.js +33 -0
- package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
- package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
- package/es/components/prompt-line/src/tiptap/token-node-view.js +41 -0
- package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +30 -0
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +44 -0
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/types.d.ts +161 -0
- package/es/components/prompt-line/src/tiptap/types.js +8 -0
- package/es/components/prompt-line/src/tiptap/types.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
- package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
- package/es/components/prompt-line/src/tiptap/value-sync.js +65 -0
- package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
- package/es/components/prompt-line/src/types.d.ts +100 -0
- package/es/components/prompt-line/src/types.js +50 -0
- package/es/components/prompt-line/src/types.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +13 -0
- package/es/components/reasoning-steps/src/reasoning-step.js +38 -0
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +23 -0
- package/es/components/reasoning-steps/src/reasoning-steps.js +56 -1
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/shared/dynamic-css-var-sheet.js +4 -1
- package/es/components/shared/dynamic-css-var-sheet.js.map +1 -1
- package/es/components/shared/media-utils/script-loader.js +0 -1
- package/es/components/shared/media-utils/script-loader.js.map +1 -1
- package/es/components/table/src/table.scss.js +1 -1
- package/es/components/table/src/table.template.js +9 -9
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/src/toolbar.js +51 -53
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/video-player/src/providers/base-provider.js +0 -1
- package/es/components/video-player/src/providers/base-provider.js.map +1 -1
- package/es/components/video-player/src/providers/kaltura-provider.js +0 -1
- package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
- package/es/components/video-player/src/providers/native-video-provider.js +0 -1
- package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
- package/es/components/video-player/src/providers/vimeo-provider.js +0 -1
- package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
- package/es/components/video-player/src/providers/youtube-provider.js +0 -1
- package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
- package/es/components/video-player/src/utils/url-detector.js +0 -1
- package/es/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es/components/video-player/src/video-player.js +9 -10
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/workspace-shell/src/header-collapsible-manager.js +0 -1
- package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.js +25 -25
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/globals/utils/aria-announcer-manager.d.ts +62 -0
- package/es/globals/utils/aria-announcer-manager.js +125 -0
- package/es/globals/utils/aria-announcer-manager.js.map +1 -0
- package/es/globals/utils/browser-utils.d.ts +10 -0
- package/es/globals/utils/browser-utils.js +37 -0
- package/es/globals/utils/browser-utils.js.map +1 -0
- package/es/globals/utils/dom-utils.d.ts +6 -0
- package/es/globals/utils/dom-utils.js +39 -0
- package/es/globals/utils/dom-utils.js.map +1 -0
- package/{es-custom/react → es/globals}/utils/iconTransform.js +1 -2
- package/es/globals/utils/iconTransform.js.map +1 -0
- package/es/react/__tests__/jest.setup.js +1 -2
- package/es/react/__tests__/jest.setup.js.map +1 -1
- package/es/react/audio-player.js +0 -1
- package/es/react/audio-player.js.map +1 -1
- package/es/react/autocomplete.d.ts +11 -0
- package/es/react/autocomplete.js +36 -0
- package/es/react/autocomplete.js.map +1 -0
- package/es/react/chat-header.js +1 -1
- package/es/react/code-snippet.js +1 -1
- package/es/react/error-message.d.ts +11 -0
- package/es/react/error-message.js +28 -0
- package/es/react/error-message.js.map +1 -0
- package/es/react/file-uploads.d.ts +11 -0
- package/es/react/file-uploads.js +31 -0
- package/es/react/file-uploads.js.map +1 -0
- package/es/react/history/history-panel-item-input.js +1 -0
- package/es/react/history/history-panel-item-input.js.map +1 -1
- package/es/react/history/history-panel-item.js +1 -0
- package/es/react/history/history-panel-item.js.map +1 -1
- package/es/react/hooks/useChatAutocomplete.d.ts +41 -0
- package/es/react/hooks/useChatAutocomplete.js +178 -0
- package/es/react/hooks/useChatAutocomplete.js.map +1 -0
- package/es/react/input-send-control.d.ts +11 -0
- package/es/react/input-send-control.js +32 -0
- package/es/react/input-send-control.js.map +1 -0
- package/es/react/prompt-line-shell.d.ts +18 -0
- package/es/react/prompt-line-shell.js +36 -0
- package/es/react/prompt-line-shell.js.map +1 -0
- package/es/react/prompt-line.d.ts +25 -0
- package/es/react/prompt-line.js +52 -0
- package/es/react/prompt-line.js.map +1 -0
- package/es/react/stop-streaming-button.d.ts +11 -0
- package/es/react/stop-streaming-button.js +28 -0
- package/es/react/stop-streaming-button.js.map +1 -0
- package/es/react/toolbar.js +1 -1
- package/es/react/transcript.js +0 -1
- package/es/react/transcript.js.map +1 -1
- package/es/react/utils/transformSuggestionConfig.d.ts +21 -0
- package/es/react/utils/transformSuggestionConfig.js +67 -0
- package/es/react/utils/transformSuggestionConfig.js.map +1 -0
- package/es/react/video-player.js +0 -1
- package/es/react/video-player.js.map +1 -1
- package/es/testing/PageObjectId.js +1 -2
- package/es/testing/PageObjectId.js.map +1 -1
- package/es-custom/components/audio-player/src/audio-player.js +9 -10
- package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/base-provider.js +0 -1
- package/es-custom/components/audio-player/src/providers/base-provider.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js +0 -1
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +0 -1
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
- package/es-custom/components/audio-player/src/transcript.js +15 -15
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +0 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es-custom/components/autocomplete/index.d.ts +15 -0
- package/es-custom/components/autocomplete/index.js +11 -0
- package/es-custom/components/autocomplete/index.js.map +1 -0
- package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +44 -0
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js +139 -0
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +1 -0
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +13 -0
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +1 -0
- package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +54 -0
- package/es-custom/components/autocomplete/src/autocomplete-item.js +197 -0
- package/es-custom/components/autocomplete/src/autocomplete-item.js.map +1 -0
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +13 -0
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +1 -0
- package/es-custom/components/autocomplete/src/autocomplete.d.ts +97 -0
- package/es-custom/components/autocomplete/src/autocomplete.js +321 -0
- package/es-custom/components/autocomplete/src/autocomplete.js.map +1 -0
- package/es-custom/components/autocomplete/src/autocomplete.scss.js +13 -0
- package/es-custom/components/autocomplete/src/autocomplete.scss.js.map +1 -0
- package/es-custom/components/card/src/card-footer.d.ts +1 -1
- package/es-custom/components/card/src/card-footer.js +1 -1
- 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 +1 -1
- package/es-custom/components/card/src/card-steps.js +28 -28
- 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.scss.js +1 -1
- package/es-custom/components/carousel/src/carousel.js +0 -1
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +4 -4
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/src/chat-button.d.ts +1 -1
- package/es-custom/components/chat-button/src/chat-button.js +1 -1
- package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
- package/es-custom/components/chat-history/src/history-content.js +2 -2
- package/es-custom/components/chat-history/src/history-content.js.map +1 -1
- package/es-custom/components/chat-history/src/history-header.js +8 -8
- package/es-custom/components/chat-history/src/history-header.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +19 -2
- package/es-custom/components/chat-history/src/history-panel-item-input.js +69 -19
- 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 +14 -0
- package/es-custom/components/chat-history/src/history-panel-item.js +59 -27
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-toolbar.js +3 -3
- package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es-custom/components/chat-shell/src/chat-header.js +15 -16
- 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 +1 -2
- package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -1
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/initialization-manager.js +1 -2
- package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +0 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -1
- package/es-custom/components/chat-shell/src/shell.d.ts +1 -1
- package/es-custom/components/chat-shell/src/shell.js +3 -3
- 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 +1 -2
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es-custom/components/chat-shell/src/types.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +1 -2
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +1 -2
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +23 -0
- package/es-custom/components/code-snippet/src/code-snippet.js +111 -36
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js +5 -0
- package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es-custom/components/code-snippet/src/layout-utils.js +21 -8
- package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es-custom/components/feedback/src/feedback-buttons.js +1 -1
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.js +38 -38
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.scss.js +1 -1
- package/es-custom/components/file-uploads/index.d.ts +12 -0
- package/es-custom/components/file-uploads/index.js +10 -0
- package/es-custom/components/file-uploads/index.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +43 -0
- package/es-custom/components/file-uploads/src/file-upload-item.js +267 -0
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js +13 -0
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +87 -0
- package/es-custom/components/file-uploads/src/file-uploads.js +213 -0
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +13 -0
- package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +1 -0
- package/es-custom/components/markdown/index.js +1 -0
- package/es-custom/components/markdown/index.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +8 -0
- package/es-custom/components/markdown/src/markdown-token-tree.js +12 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.js +4 -0
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.scss.js +1 -1
- package/es-custom/components/markdown/src/utils/html-helpers.js.map +1 -1
- package/es-custom/components/prompt-line/index.d.ts +26 -0
- package/es-custom/components/prompt-line/index.js +32 -0
- package/es-custom/components/prompt-line/index.js.map +1 -0
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +178 -0
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +548 -0
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -0
- package/es-custom/components/prompt-line/src/error-message.d.ts +50 -0
- package/es-custom/components/prompt-line/src/error-message.js +144 -0
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -0
- package/es-custom/components/prompt-line/src/error-message.scss.js +13 -0
- package/es-custom/components/prompt-line/src/error-message.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +27 -0
- package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +394 -0
- package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +340 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +227 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +147 -0
- package/es-custom/components/prompt-line/src/prompt-line.js +391 -0
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line.scss.js +13 -0
- package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/send-control.d.ts +46 -0
- package/es-custom/components/prompt-line/src/send-control.js +138 -0
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -0
- package/es-custom/components/prompt-line/src/send-control.scss.js +13 -0
- package/es-custom/components/prompt-line/src/send-control.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +93 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +38 -0
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +22 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +64 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +46 -0
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +83 -0
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +42 -0
- package/es-custom/components/prompt-line/src/tiptap/index.js +43 -0
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +158 -0
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +59 -0
- package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +33 -0
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +41 -0
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +30 -0
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +44 -0
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +161 -0
- package/es-custom/components/prompt-line/src/tiptap/types.js +8 -0
- package/es-custom/components/prompt-line/src/tiptap/types.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +65 -0
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
- package/es-custom/components/prompt-line/src/types.d.ts +100 -0
- package/es-custom/components/prompt-line/src/types.js +50 -0
- package/es-custom/components/prompt-line/src/types.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +13 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +38 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +23 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +56 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js +4 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js.map +1 -1
- package/es-custom/components/shared/media-utils/script-loader.js +0 -1
- package/es-custom/components/shared/media-utils/script-loader.js.map +1 -1
- package/es-custom/components/table/src/table.scss.js +1 -1
- package/es-custom/components/table/src/table.template.js +9 -9
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.js +51 -53
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/video-player/src/providers/base-provider.js +0 -1
- package/es-custom/components/video-player/src/providers/base-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +0 -1
- package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/native-video-provider.js +0 -1
- package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +0 -1
- package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/youtube-provider.js +0 -1
- package/es-custom/components/video-player/src/providers/youtube-provider.js.map +1 -1
- package/es-custom/components/video-player/src/utils/url-detector.js +0 -1
- package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es-custom/components/video-player/src/video-player.js +9 -10
- package/es-custom/components/video-player/src/video-player.js.map +1 -1
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +0 -1
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +25 -25
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +62 -0
- package/es-custom/globals/utils/aria-announcer-manager.js +125 -0
- package/es-custom/globals/utils/aria-announcer-manager.js.map +1 -0
- package/es-custom/globals/utils/browser-utils.d.ts +10 -0
- package/es-custom/globals/utils/browser-utils.js +37 -0
- package/es-custom/globals/utils/browser-utils.js.map +1 -0
- package/es-custom/globals/utils/dom-utils.d.ts +6 -0
- package/es-custom/globals/utils/dom-utils.js +39 -0
- package/es-custom/globals/utils/dom-utils.js.map +1 -0
- package/{es/react → es-custom/globals}/utils/iconTransform.js +1 -2
- package/es-custom/globals/utils/iconTransform.js.map +1 -0
- package/es-custom/react/__tests__/jest.setup.js +1 -2
- package/es-custom/react/__tests__/jest.setup.js.map +1 -1
- package/es-custom/react/audio-player.js +0 -1
- package/es-custom/react/audio-player.js.map +1 -1
- package/es-custom/react/autocomplete.d.ts +11 -0
- package/es-custom/react/autocomplete.js +36 -0
- package/es-custom/react/autocomplete.js.map +1 -0
- package/es-custom/react/chat-header.js +1 -1
- package/es-custom/react/code-snippet.js +1 -1
- package/es-custom/react/error-message.d.ts +11 -0
- package/es-custom/react/error-message.js +28 -0
- package/es-custom/react/error-message.js.map +1 -0
- package/es-custom/react/file-uploads.d.ts +11 -0
- package/es-custom/react/file-uploads.js +31 -0
- package/es-custom/react/file-uploads.js.map +1 -0
- package/es-custom/react/history/history-panel-item-input.js +1 -0
- package/es-custom/react/history/history-panel-item-input.js.map +1 -1
- package/es-custom/react/history/history-panel-item.js +1 -0
- package/es-custom/react/history/history-panel-item.js.map +1 -1
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +41 -0
- package/es-custom/react/hooks/useChatAutocomplete.js +178 -0
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -0
- package/es-custom/react/input-send-control.d.ts +11 -0
- package/es-custom/react/input-send-control.js +32 -0
- package/es-custom/react/input-send-control.js.map +1 -0
- package/es-custom/react/prompt-line-shell.d.ts +18 -0
- package/es-custom/react/prompt-line-shell.js +36 -0
- package/es-custom/react/prompt-line-shell.js.map +1 -0
- package/es-custom/react/prompt-line.d.ts +25 -0
- package/es-custom/react/prompt-line.js +52 -0
- package/es-custom/react/prompt-line.js.map +1 -0
- package/es-custom/react/stop-streaming-button.d.ts +11 -0
- package/es-custom/react/stop-streaming-button.js +28 -0
- package/es-custom/react/stop-streaming-button.js.map +1 -0
- package/es-custom/react/toolbar.js +1 -1
- package/es-custom/react/transcript.js +0 -1
- package/es-custom/react/transcript.js.map +1 -1
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +21 -0
- package/es-custom/react/utils/transformSuggestionConfig.js +67 -0
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -0
- package/es-custom/react/video-player.js +0 -1
- package/es-custom/react/video-player.js.map +1 -1
- package/es-custom/testing/PageObjectId.js +1 -2
- package/es-custom/testing/PageObjectId.js.map +1 -1
- package/package.json +27 -6
- package/scss/_custom-properties.scss +1 -3
- package/scss/_modifiers.scss +17 -49
- package/scss/_tokens-component.scss +1 -3
- package/scss/_tokens-layout.scss +1 -3
- package/scss/_utilities.scss +1 -3
- package/LICENSE +0 -201
- package/es/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
- package/es/components/chat-shell/src/aria-announcer-manager.js +0 -104
- package/es/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
- package/es/react/utils/iconTransform.js.map +0 -1
- package/es-custom/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
- package/es-custom/components/chat-shell/src/aria-announcer-manager.js +0 -104
- package/es-custom/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
- package/es-custom/react/utils/iconTransform.js.map +0 -1
- /package/es/{react → globals}/utils/iconTransform.d.ts +0 -0
- /package/es-custom/{react → globals}/utils/iconTransform.d.ts +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
10
|
/*
|
|
11
|
-
* Copyright IBM Corp. 2025
|
|
11
|
+
* Copyright IBM Corp. 2025, 2026
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -170,7 +170,6 @@ function extractIconName(props) {
|
|
|
170
170
|
// Try various properties that might contain the icon name
|
|
171
171
|
return props["data-icon-name"] || props["aria-label"] || props.name || "icon";
|
|
172
172
|
}
|
|
173
|
-
// Made with Bob
|
|
174
173
|
|
|
175
174
|
export { isCarbonIcon, transformReactIconToCarbonIcon };
|
|
176
175
|
//# sourceMappingURL=iconTransform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconTransform.js","sources":["../../../src/globals/utils/iconTransform.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;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U,EAAA;;AAEjC,IAAA,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,IAAI,IAAI,MAAM;AAC/E;;;;"}
|
|
@@ -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.
|
|
@@ -79,5 +79,4 @@ beforeEach(() => {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
// Made with Bob
|
|
83
82
|
//# sourceMappingURL=jest.setup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jest.setup.js","sources":["../../../src/react/__tests__/jest.setup.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH,UAAU,CAAC,MAAK;;AAEd,IAAA,IAAI,OAAO,SAAS,KAAK,WAAW,EAAE;AACnC,QAAA,MAAc,CAAC,SAAS,GAAG,MAAM,SAAS,CAAA;YACzC,eAAe,CAAC,GAAW,EAAE,KAAa,EAAA;;AAExC,gBAAA,MAAM,GAAG,GAAG;AACV,oBAAA,aAAa,EAAE,CAAC,QAAgB,KAAI;wBAClC,IAAI,QAAQ,KAAK,KAAK,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;;4BAE9C,MAAM,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC;4BACnD,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC;4BAC7C,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC;;4BAG/C,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC;AAE1D,4BAAA,MAAM,OAAO,GAAG;AACd,gCAAA,OAAO,EAAE,KAAK;AACd,gCAAA,YAAY,EAAE,CAAC,IAAY,KAAI;AAC7B,oCAAA,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,wCAAA,OAAO,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,WAAW;oCACrD;AACA,oCAAA,IAAI,IAAI,KAAK,MAAM,EAAE;AACnB,wCAAA,OAAO,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,cAAc;oCAClD;AACA,oCAAA,IAAI,IAAI,KAAK,OAAO,EAAE;AACpB,wCAAA,OAAO;AACL,8CAAE,UAAU,CAAC,CAAC;8CACZ,4BAA4B;oCAClC;AACA,oCAAA,OAAO,IAAI;gCACb,CAAC;AACD,gCAAA,UAAU,EAAE;AACV,sCAAE;AACE,wCAAA;4CACE,QAAQ,EAAE,CAAC;AACX,4CAAA,OAAO,EAAE,MAAM;AACf,4CAAA,UAAU,EAAE;AACV,gDAAA;AACE,oDAAA,IAAI,EAAE,GAAG;AACT,oDAAA,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AACpB,iDAAA;AACF,6CAAA;AACF,yCAAA;AACF;AACH,sCAAE,EAAE;gCACN,SAAS,EAAE,UAAU,KAAc,EAAA;AACjC,oCAAA,OAAO,IAAI;gCACb,CAAC;6BACF;AAED,4BAAA,OAAO,OAAO;wBAChB;AACA,wBAAA,OAAO,IAAI;oBACb,CAAC;iBACF;AACD,gBAAA,OAAO,GAAG;YACZ;SACD;IACH;;AAGA,IAAA,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;QAC9B,MAAc,CAAC,IAAI,GAAG;AACrB,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,SAAS,EAAE,CAAC;SACb;IACH;AACF,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"jest.setup.js","sources":["../../../src/react/__tests__/jest.setup.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;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ACE,oDAAA,IAAI,EAAE,GAAG;AACT,oDAAA,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AACpB,iDAAA;AACF,6CAAA;AACF,yCAAA;AACF;AACH,sCAAE,EAAE;gCACN,SAAS,EAAE,UAAU,KAAc,EAAA;AACjC,oCAAA,OAAO,IAAI;gCACb,CAAC;6BACF;AAED,4BAAA,OAAO,OAAO;wBAChB;AACA,wBAAA,OAAO,IAAI;oBACb,CAAC;iBACF;AACD,gBAAA,OAAO,GAAG;YACZ;SACD;IACH;;AAGA,IAAA,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;QAC9B,MAAc,CAAC,IAAI,GAAG;AACrB,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,SAAS,EAAE,CAAC;SACb;IACH;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-player.js","sources":["../../src/react/audio-player.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH,MAAM,WAAW,GAAG,sBAAsB,CACxC,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,oBAAoB;AAClC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,8BAA8B;AACtC,QAAA,OAAO,EAAE,+BAA+B;AACxC,QAAA,OAAO,EAAE,+BAA+B;AACxC,QAAA,OAAO,EAAE,+BAA+B;AACzC,KAAA;AACF,CAAA,CAAC
|
|
1
|
+
{"version":3,"file":"audio-player.js","sources":["../../src/react/audio-player.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH,MAAM,WAAW,GAAG,sBAAsB,CACxC,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,oBAAoB;AAClC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,8BAA8B;AACtC,QAAA,OAAO,EAAE,+BAA+B;AACxC,QAAA,OAAO,EAAE,+BAA+B;AACxC,QAAA,OAAO,EAAE,+BAA+B;AACzC,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
declare const CDSAIChatAutocomplete: React.ComponentType<any>;
|
|
11
|
+
export default CDSAIChatAutocomplete;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import AutocompleteElement from '../components/autocomplete/src/autocomplete.js';
|
|
11
|
+
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
*
|
|
16
|
+
* Copyright IBM Corp. 2026
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
// TODO: Icon transformation for suggestion items is handled upstream in prompt-line-shell.tsx.
|
|
22
|
+
// When icon rendering is added to the autocomplete web component, no additional
|
|
23
|
+
// React-side transformation is needed here.
|
|
24
|
+
const CDSAIChatAutocomplete = withWebComponentBridge(createComponent({
|
|
25
|
+
tagName: "cds-custom-aichat-autocomplete",
|
|
26
|
+
elementClass: AutocompleteElement,
|
|
27
|
+
react: React,
|
|
28
|
+
events: {
|
|
29
|
+
onSelect: "cds-custom-aichat-autocomplete-select",
|
|
30
|
+
onSend: "cds-custom-aichat-autocomplete-send",
|
|
31
|
+
onDismiss: "cds-custom-aichat-autocomplete-dismiss",
|
|
32
|
+
},
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
export { CDSAIChatAutocomplete as default };
|
|
36
|
+
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sources":["../../src/react/autocomplete.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,sBAAsB,CAClD,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,gCAAgC;AAC1C,QAAA,MAAM,EAAE,8BAA8B;AACtC,QAAA,SAAS,EAAE,iCAAiC;AAC7C,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
@@ -10,7 +10,7 @@ import { createComponent } from '@lit/react';
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import CdsAiChatChatHeader from '../components/chat-shell/src/chat-header.js';
|
|
12
12
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
13
|
-
import { transformReactIconToCarbonIcon } from '
|
|
13
|
+
import { transformReactIconToCarbonIcon } from '../globals/utils/iconTransform.js';
|
|
14
14
|
|
|
15
15
|
// Base chat header component from @lit/react
|
|
16
16
|
const BaseChatHeader = withWebComponentBridge(createComponent({
|
|
@@ -10,7 +10,7 @@ import { createComponent } from '@lit/react';
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import CDSAIChatCodeSnippet from '../components/code-snippet/src/code-snippet.js';
|
|
12
12
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
13
|
-
import { transformReactIconToCarbonIcon } from '
|
|
13
|
+
import { transformReactIconToCarbonIcon } from '../globals/utils/iconTransform.js';
|
|
14
14
|
|
|
15
15
|
// Base code snippet component from @lit/react
|
|
16
16
|
const BaseCodeSnippet = withWebComponentBridge(createComponent({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
declare const CDSAIChatErrorMessage: React.ComponentType<any>;
|
|
11
|
+
export default CDSAIChatErrorMessage;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import ErrorMessage from '../components/prompt-line/src/error-message.js';
|
|
11
|
+
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
*
|
|
16
|
+
* Copyright IBM Corp. 2026
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const CDSAIChatErrorMessage = withWebComponentBridge(createComponent({
|
|
22
|
+
tagName: "cds-custom-aichat-error-message",
|
|
23
|
+
elementClass: ErrorMessage,
|
|
24
|
+
react: React,
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
export { CDSAIChatErrorMessage as default };
|
|
28
|
+
//# sourceMappingURL=error-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-message.js","sources":["../../src/react/error-message.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,qBAAqB,GAAG,sBAAsB,CAClD,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,YAAY,EAAE,YAAY;AAC1B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
declare const CDSAIChatFileUploads: React.ComponentType<any>;
|
|
11
|
+
export default CDSAIChatFileUploads;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import FileUploadsElement from '../components/file-uploads/src/file-uploads.js';
|
|
11
|
+
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
*
|
|
16
|
+
* Copyright IBM Corp. 2026
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const CDSAIChatFileUploads = withWebComponentBridge(createComponent({
|
|
22
|
+
tagName: "cds-custom-aichat-file-uploads",
|
|
23
|
+
elementClass: FileUploadsElement,
|
|
24
|
+
react: React,
|
|
25
|
+
events: {
|
|
26
|
+
onFileRemove: "cds-custom-aichat-file-remove",
|
|
27
|
+
},
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
export { CDSAIChatFileUploads as default };
|
|
31
|
+
//# sourceMappingURL=file-uploads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-uploads.js","sources":["../../src/react/file-uploads.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,oBAAoB,GAAG,sBAAsB,CACjD,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,YAAY,EAAE,wBAAwB;AACvC,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
@@ -23,6 +23,7 @@ const HistoryPanelItemInput = withWebComponentBridge(createComponent({
|
|
|
23
23
|
elementClass: CDSAIChatHistoryPanelItemInput,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
|
+
onChange: "history-panel-item-input-change",
|
|
26
27
|
onCancel: "history-panel-item-input-cancel",
|
|
27
28
|
onSave: "history-panel-item-input-save",
|
|
28
29
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-panel-item-input.js","sources":["../../../src/react/history/history-panel-item-input.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,qBAAqB,GAAG,sBAAsB,CAClD,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,qCAAqC;AAC9C,IAAA,YAAY,EAAE,8BAA8B;AAC5C,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,iCAAiC;AAC3C,QAAA,MAAM,EAAE,+BAA+B;AACxC,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"history-panel-item-input.js","sources":["../../../src/react/history/history-panel-item-input.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,qBAAqB,GAAG,sBAAsB,CAClD,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,qCAAqC;AAC9C,IAAA,YAAY,EAAE,8BAA8B;AAC5C,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,iCAAiC;AAC3C,QAAA,QAAQ,EAAE,iCAAiC;AAC3C,QAAA,MAAM,EAAE,+BAA+B;AACxC,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
@@ -27,6 +27,7 @@ const HistoryPanelItem = withWebComponentBridge(createComponent({
|
|
|
27
27
|
onSelected: "history-item-selected",
|
|
28
28
|
onRenameCancel: "history-panel-item-input-cancel",
|
|
29
29
|
onRenameSave: "history-panel-item-input-save",
|
|
30
|
+
onRenameChange: "history-panel-item-input-change",
|
|
30
31
|
},
|
|
31
32
|
}));
|
|
32
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-panel-item.js","sources":["../../../src/react/history/history-panel-item.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,gBAAgB,GAAG,sBAAsB,CAC7C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,+BAA+B;AACxC,IAAA,YAAY,EAAE,yBAAyB;AACvC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,YAAY,EAAE,0BAA0B;AACxC,QAAA,UAAU,EAAE,uBAAuB;AACnC,QAAA,cAAc,EAAE,iCAAiC;AACjD,QAAA,YAAY,EAAE,+BAA+B;
|
|
1
|
+
{"version":3,"file":"history-panel-item.js","sources":["../../../src/react/history/history-panel-item.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,gBAAgB,GAAG,sBAAsB,CAC7C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,+BAA+B;AACxC,IAAA,YAAY,EAAE,yBAAyB;AACvC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,YAAY,EAAE,0BAA0B;AACxC,QAAA,UAAU,EAAE,uBAAuB;AACnC,QAAA,cAAc,EAAE,iCAAiC;AACjD,QAAA,YAAY,EAAE,+BAA+B;AAC7C,QAAA,cAAc,EAAE,iCAAiC;AAClD,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import type { ReactNode, RefObject } from "react";
|
|
10
|
+
import type PromptLineElement from "../../components/prompt-line/src/prompt-line.js";
|
|
11
|
+
import type { AutocompleteConfig, SuggestionItem, TriggerChangeEventDetail, TriggerSuggestionConfig } from "../../components/prompt-line/src/tiptap/types.js";
|
|
12
|
+
export interface UseChatAutocompleteOptions {
|
|
13
|
+
mention?: TriggerSuggestionConfig;
|
|
14
|
+
command?: TriggerSuggestionConfig;
|
|
15
|
+
autocomplete?: AutocompleteConfig;
|
|
16
|
+
starters?: SuggestionItem[];
|
|
17
|
+
/** Ref to the slotted `<cds-custom-aichat-prompt-line>`. */
|
|
18
|
+
promptLineRef: RefObject<PromptLineElement | null>;
|
|
19
|
+
/** When true, starter selection inserts the text but does not auto-send. */
|
|
20
|
+
isSendDisabled?: boolean;
|
|
21
|
+
/** Fired after a starter is selected and inserted (used to trigger send). */
|
|
22
|
+
onStarterSelected?: (text: string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Fired when the send button inside an autocomplete suggestion item is clicked.
|
|
25
|
+
*/
|
|
26
|
+
onSendItem?: (text: string) => void;
|
|
27
|
+
/** Whether the autocomplete is attached to the input (affects corner rounding). */
|
|
28
|
+
attached?: boolean;
|
|
29
|
+
/** Maximum height for the autocomplete popover */
|
|
30
|
+
maxHeight?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface UseChatAutocompleteResult {
|
|
33
|
+
/** Attach to `<PromptLine onTriggerChange={...} />`. */
|
|
34
|
+
onTriggerChange: (event: CustomEvent<TriggerChangeEventDetail | null>) => void;
|
|
35
|
+
/**
|
|
36
|
+
* JSX to render with `slot="autocomplete-content"` inside `<PromptLineShell>`.
|
|
37
|
+
* `null` while no trigger is active.
|
|
38
|
+
*/
|
|
39
|
+
autocompleteContent: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
export declare function useChatAutocomplete(options: UseChatAutocompleteOptions): UseChatAutocompleteResult;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import ReactDOM from 'react-dom';
|
|
11
|
+
import CDSAIChatAutocomplete from '../autocomplete.js';
|
|
12
|
+
import { AutocompleteController } from '../../components/prompt-line/src/autocomplete-controller.js';
|
|
13
|
+
|
|
14
|
+
function useChatAutocomplete(options) {
|
|
15
|
+
const { mention, command, autocomplete, starters, promptLineRef, isSendDisabled, onStarterSelected, onSendItem, attached = true, maxHeight, } = options;
|
|
16
|
+
const [state, setState] = React.useState({
|
|
17
|
+
trigger: null,
|
|
18
|
+
items: [],
|
|
19
|
+
});
|
|
20
|
+
// Keep the controller stable for the hook's lifetime — set in a layout
|
|
21
|
+
// effect so it's wired before any event handler can fire.
|
|
22
|
+
const controllerRef = React.useRef(null);
|
|
23
|
+
// Latest config / callback values; the controller stores its own copies
|
|
24
|
+
// but reading them out of refs avoids re-instantiation churn.
|
|
25
|
+
const onStarterRef = React.useRef(onStarterSelected);
|
|
26
|
+
onStarterRef.current = onStarterSelected;
|
|
27
|
+
const onSendItemRef = React.useRef(onSendItem);
|
|
28
|
+
onSendItemRef.current = onSendItem;
|
|
29
|
+
if (!controllerRef.current) {
|
|
30
|
+
controllerRef.current = new AutocompleteController({
|
|
31
|
+
mention,
|
|
32
|
+
command,
|
|
33
|
+
autocomplete,
|
|
34
|
+
starters,
|
|
35
|
+
isSendDisabled,
|
|
36
|
+
onStarterSelected: (text) => onStarterRef.current?.(text),
|
|
37
|
+
onChange: setState,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
// Push prop changes into the controller without recreating it.
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
controllerRef.current?.setConfigs({
|
|
43
|
+
mention,
|
|
44
|
+
command,
|
|
45
|
+
autocomplete,
|
|
46
|
+
starters,
|
|
47
|
+
isSendDisabled,
|
|
48
|
+
});
|
|
49
|
+
}, [mention, command, autocomplete, starters, isSendDisabled]);
|
|
50
|
+
// Keep the controller pointed at the live prompt-line element.
|
|
51
|
+
React.useEffect(() => {
|
|
52
|
+
controllerRef.current?.setPromptLine(promptLineRef.current);
|
|
53
|
+
});
|
|
54
|
+
React.useEffect(() => {
|
|
55
|
+
return () => {
|
|
56
|
+
controllerRef.current?.destroy();
|
|
57
|
+
controllerRef.current = null;
|
|
58
|
+
};
|
|
59
|
+
}, []);
|
|
60
|
+
const onTriggerChange = React.useCallback((event) => {
|
|
61
|
+
// Pin the controller to the current prompt-line ref before handing
|
|
62
|
+
// off the detail — the React caller's ref is authoritative.
|
|
63
|
+
controllerRef.current?.setPromptLine(promptLineRef.current);
|
|
64
|
+
controllerRef.current?.handleTriggerChange(event.detail ?? null);
|
|
65
|
+
}, [promptLineRef]);
|
|
66
|
+
const handleSelect = React.useCallback((item) => {
|
|
67
|
+
controllerRef.current?.select(item);
|
|
68
|
+
}, []);
|
|
69
|
+
const handleSend = React.useCallback((e) => {
|
|
70
|
+
const text = e.detail?.text;
|
|
71
|
+
if (!text) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
controllerRef.current?.dismiss();
|
|
75
|
+
onSendItemRef.current?.(text);
|
|
76
|
+
}, []);
|
|
77
|
+
const dismiss = React.useCallback(() => {
|
|
78
|
+
controllerRef.current?.dismiss();
|
|
79
|
+
}, []);
|
|
80
|
+
// Register / unregister the rendered list element with the controller so
|
|
81
|
+
// arrow / Enter / Escape on the editor DOM get forwarded to it.
|
|
82
|
+
// Also set the max-height CSS variable if provided.
|
|
83
|
+
const setListElement = React.useCallback((el) => {
|
|
84
|
+
controllerRef.current?.setListElement(el);
|
|
85
|
+
if (el && maxHeight) {
|
|
86
|
+
el.style.setProperty("--cds-aichat-autocomplete-max-height", maxHeight);
|
|
87
|
+
}
|
|
88
|
+
}, [maxHeight]);
|
|
89
|
+
const autocompleteContent = React.useMemo(() => {
|
|
90
|
+
if (!state.trigger || state.items.length === 0) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
if (state.renderCustomList) {
|
|
94
|
+
const result = state.renderCustomList({
|
|
95
|
+
items: state.items,
|
|
96
|
+
query: state.trigger.query,
|
|
97
|
+
onSelect: handleSelect,
|
|
98
|
+
onDismiss: dismiss,
|
|
99
|
+
});
|
|
100
|
+
if (result == null) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
if (result instanceof HTMLElement) {
|
|
104
|
+
return (jsx(CustomElementHost, { slot: "autocomplete-content", element: result, onMount: setListElement }));
|
|
105
|
+
}
|
|
106
|
+
return (jsx(CustomReactNodePortal, { slot: "autocomplete-content", node: result, onMount: setListElement }));
|
|
107
|
+
}
|
|
108
|
+
return (jsx(CDSAIChatAutocomplete, { ref: setListElement, slot: "autocomplete-content", items: state.items, attached: attached, onSelect: (e) => handleSelect(e.detail.item), onSend: handleSend, onDismiss: dismiss }));
|
|
109
|
+
}, [state, handleSelect, handleSend, dismiss, setListElement, attached]);
|
|
110
|
+
return { onTriggerChange, autocompleteContent };
|
|
111
|
+
}
|
|
112
|
+
/** Mounts a host-provided HTMLElement into the React tree at `slot`. */
|
|
113
|
+
function CustomElementHost({ slot, element, onMount, }) {
|
|
114
|
+
const containerRef = React.useRef(null);
|
|
115
|
+
React.useEffect(() => {
|
|
116
|
+
const container = containerRef.current;
|
|
117
|
+
if (!container) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
container.appendChild(element);
|
|
121
|
+
onMount?.(element);
|
|
122
|
+
return () => {
|
|
123
|
+
onMount?.(null);
|
|
124
|
+
if (element.parentNode === container) {
|
|
125
|
+
container.removeChild(element);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}, [element, onMount]);
|
|
129
|
+
return jsx("div", { ref: containerRef, slot: slot });
|
|
130
|
+
}
|
|
131
|
+
let autocompletePortalCounter = 0;
|
|
132
|
+
/**
|
|
133
|
+
* Projects a consumer-supplied React node into the page's light DOM via a
|
|
134
|
+
* two-level slot/host pair so external `<style>` tags reach it. The rendered
|
|
135
|
+
* `<div>` is a slot-projected anchor in the shell's `autocomplete-content`
|
|
136
|
+
* slot; a sibling `<div slot="…">` is appended to the chatWrapper (the host
|
|
137
|
+
* of the surrounding shadow root) and receives the React node via
|
|
138
|
+
* `createPortal`. Without this hop the node would mount inside the chat's
|
|
139
|
+
* shadow root, hidden from page CSS.
|
|
140
|
+
*/
|
|
141
|
+
function CustomReactNodePortal({ slot, node, onMount, }) {
|
|
142
|
+
const containerRef = React.useRef(null);
|
|
143
|
+
const [hostElement, setHostElement] = React.useState(null);
|
|
144
|
+
React.useEffect(() => {
|
|
145
|
+
const container = containerRef.current;
|
|
146
|
+
if (!container) {
|
|
147
|
+
return undefined;
|
|
148
|
+
}
|
|
149
|
+
const rootNode = container.getRootNode();
|
|
150
|
+
const chatWrapper = rootNode instanceof ShadowRoot ? rootNode.host : null;
|
|
151
|
+
if (!chatWrapper) {
|
|
152
|
+
return undefined;
|
|
153
|
+
}
|
|
154
|
+
const slotName = `cds-custom-aichat-autocomplete-${++autocompletePortalCounter}`;
|
|
155
|
+
const slotEl = document.createElement("slot");
|
|
156
|
+
slotEl.setAttribute("name", slotName);
|
|
157
|
+
container.appendChild(slotEl);
|
|
158
|
+
const hostEl = document.createElement("div");
|
|
159
|
+
hostEl.setAttribute("slot", slotName);
|
|
160
|
+
chatWrapper.appendChild(hostEl);
|
|
161
|
+
setHostElement(hostEl);
|
|
162
|
+
onMount?.(hostEl);
|
|
163
|
+
return () => {
|
|
164
|
+
onMount?.(null);
|
|
165
|
+
slotEl.remove();
|
|
166
|
+
hostEl.remove();
|
|
167
|
+
setHostElement(null);
|
|
168
|
+
};
|
|
169
|
+
// Empty deps: the slot/host pair is owned by this mount cycle and should
|
|
170
|
+
// not churn as `node` updates — React's portal reconciliation handles
|
|
171
|
+
// those updates in place.
|
|
172
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
173
|
+
}, []);
|
|
174
|
+
return (jsx("div", { slot: slot, ref: containerRef, children: hostElement ? ReactDOM.createPortal(node, hostElement) : null }));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export { useChatAutocomplete };
|
|
178
|
+
//# sourceMappingURL=useChatAutocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChatAutocomplete.js","sources":["../../../src/react/hooks/useChatAutocomplete.tsx"],"sourcesContent":[null],"names":["_jsx","Autocomplete"],"mappings":";;;;;;;;;;;;;AAqEM,SAAU,mBAAmB,CACjC,OAAmC,EAAA;IAEnC,MAAM,EACJ,OAAO,EACP,OAAO,EACP,YAAY,EACZ,QAAQ,EACR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|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
declare const CDSAIChatInputSendControl: React.ComponentType<any>;
|
|
11
|
+
export default CDSAIChatInputSendControl;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import InputSendControlElement from '../components/prompt-line/src/send-control.js';
|
|
11
|
+
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
*
|
|
16
|
+
* Copyright IBM Corp. 2026
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const CDSAIChatInputSendControl = withWebComponentBridge(createComponent({
|
|
22
|
+
tagName: "cds-custom-aichat-input-send-control",
|
|
23
|
+
elementClass: InputSendControlElement,
|
|
24
|
+
react: React,
|
|
25
|
+
events: {
|
|
26
|
+
onSend: "cds-custom-aichat-input-send",
|
|
27
|
+
onStopStreaming: "cds-custom-aichat-input-stop-streaming",
|
|
28
|
+
},
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
export { CDSAIChatInputSendControl as default };
|
|
32
|
+
//# sourceMappingURL=input-send-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-send-control.js","sources":["../../src/react/input-send-control.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,yBAAyB,GAAG,sBAAsB,CACtD,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,+BAA+B;AACxC,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,uBAAuB;AAC/B,QAAA,eAAe,EAAE,iCAAiC;AACnD,KAAA;AACF,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for `<cds-custom-aichat-prompt-line-shell>`. The shell is layout-only —
|
|
12
|
+
* named slots plus the `rounded` flag — so this wrapper carries no event
|
|
13
|
+
* mappings or prop transformations. Consumers compose `<PromptLine>`,
|
|
14
|
+
* autocomplete content, file-uploads, send-control, etc. into the named
|
|
15
|
+
* slots themselves.
|
|
16
|
+
*/
|
|
17
|
+
declare const PromptLineShell: React.ComponentType<any>;
|
|
18
|
+
export default PromptLineShell;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createComponent } from '@lit/react';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PromptLineShellElement from '../components/prompt-line/src/prompt-line-shell.js';
|
|
11
|
+
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
*
|
|
16
|
+
* Copyright IBM Corp. 2026
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* React wrapper for `<cds-custom-aichat-prompt-line-shell>`. The shell is layout-only —
|
|
23
|
+
* named slots plus the `rounded` flag — so this wrapper carries no event
|
|
24
|
+
* mappings or prop transformations. Consumers compose `<PromptLine>`,
|
|
25
|
+
* autocomplete content, file-uploads, send-control, etc. into the named
|
|
26
|
+
* slots themselves.
|
|
27
|
+
*/
|
|
28
|
+
const PromptLineShell = withWebComponentBridge(createComponent({
|
|
29
|
+
tagName: "cds-custom-aichat-prompt-line-shell",
|
|
30
|
+
elementClass: PromptLineShellElement,
|
|
31
|
+
react: React,
|
|
32
|
+
events: {},
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
export { PromptLineShell as default };
|
|
36
|
+
//# sourceMappingURL=prompt-line-shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-line-shell.js","sources":["../../src/react/prompt-line-shell.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAQH;;;;;;AAMG;AACH,MAAM,eAAe,GAAG,sBAAsB,CAC5C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,8BAA8B;AACvC,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
/**
|
|
11
|
+
* React wrapper for `<cds-custom-aichat-prompt-line>`. Mirrors the WC's prompt-line
|
|
12
|
+
* surface verbatim — no host-side prop transformation required. The element
|
|
13
|
+
* renders a Tiptap-free textarea by default and upgrades to the rich Tiptap
|
|
14
|
+
* editor in place when the `rich` prop is set (or `extensions` are supplied);
|
|
15
|
+
* chat-domain config layering happens one level up at the shell. Imperative
|
|
16
|
+
* methods are reachable via ref.
|
|
17
|
+
*
|
|
18
|
+
* Wrapped in `withWebComponentBridge` so testId / rich / extensions / content
|
|
19
|
+
* props land on the underlying custom element in happy-dom / jsdom, where
|
|
20
|
+
* `@lit/react` doesn't reliably flush properties on its own.
|
|
21
|
+
*
|
|
22
|
+
* @experimental
|
|
23
|
+
*/
|
|
24
|
+
declare const PromptLine: React.ComponentType<any>;
|
|
25
|
+
export default PromptLine;
|