@carbon/ai-chat-components 1.14.0 → 2.0.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/bin/create-ai-chat-components-prefixed-build.js +18 -0
- package/bin/prefix-build.js +193 -0
- package/bin/prefix-dependencies.js +155 -0
- package/bin/prefix-layout.js +372 -0
- package/bin/prefix-modules.js +255 -0
- package/custom-elements.json +20622 -16449
- package/es/components/aichat-audio-player/aichat-audio-player.d.ts +138 -0
- package/es/components/aichat-audio-player/aichat-audio-player.js +391 -0
- package/es/components/aichat-audio-player/aichat-audio-player.js.map +1 -0
- package/es/components/aichat-audio-player/aichat-audio-player.scss.js +13 -0
- package/es/components/aichat-audio-player/aichat-audio-player.scss.js.map +1 -0
- package/es/components/aichat-audio-player/aichat-transcript.d.ts +63 -0
- package/es/components/aichat-audio-player/aichat-transcript.js +146 -0
- package/es/components/aichat-audio-player/aichat-transcript.js.map +1 -0
- package/es/components/aichat-audio-player/aichat-transcript.scss.js +13 -0
- package/es/components/aichat-audio-player/aichat-transcript.scss.js.map +1 -0
- package/es/components/aichat-audio-player/index.d.ts +13 -0
- package/es/components/aichat-audio-player/index.js +25 -0
- package/es/components/aichat-audio-player/index.js.map +1 -0
- package/es/components/aichat-audio-player/providers/base-provider.js.map +1 -0
- package/es/components/aichat-audio-player/providers/native-audio-provider.js.map +1 -0
- package/es/components/aichat-audio-player/providers/soundcloud-provider.js +200 -0
- package/es/components/aichat-audio-player/providers/soundcloud-provider.js.map +1 -0
- package/es/components/aichat-audio-player/utils/url-detector.js.map +1 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.d.ts +214 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.js +620 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.js.map +1 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.scss.js +13 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.scss.js.map +1 -0
- package/es/components/aichat-autocomplete/index.d.ts +11 -0
- package/es/components/aichat-autocomplete/index.js +23 -0
- package/es/components/aichat-autocomplete/index.js.map +1 -0
- package/es/components/aichat-button/aichat-button-skeleton.d.ts +34 -0
- package/es/components/aichat-button/aichat-button-skeleton.js +39 -0
- package/es/components/aichat-button/aichat-button-skeleton.js.map +1 -0
- package/es/components/aichat-button/aichat-button.d.ts +44 -0
- package/es/components/aichat-button/aichat-button.js +111 -0
- package/es/components/aichat-button/aichat-button.js.map +1 -0
- package/es/components/aichat-button/aichat-button.scss.js +13 -0
- package/es/components/aichat-button/aichat-button.scss.js.map +1 -0
- package/es/components/aichat-button/defs.js.map +1 -0
- package/es/components/aichat-button/index.d.ts +11 -0
- package/es/components/aichat-button/index.js +24 -0
- package/es/components/aichat-button/index.js.map +1 -0
- package/es/components/aichat-card/aichat-card-footer.d.ts +48 -0
- package/es/components/aichat-card/aichat-card-footer.js +141 -0
- package/es/components/aichat-card/aichat-card-footer.js.map +1 -0
- package/es/components/aichat-card/aichat-card-footer.scss.js +13 -0
- package/es/components/aichat-card/aichat-card-footer.scss.js.map +1 -0
- package/es/components/aichat-card/aichat-card-steps.d.ts +30 -0
- package/es/components/aichat-card/aichat-card-steps.js +93 -0
- package/es/components/aichat-card/aichat-card-steps.js.map +1 -0
- package/es/components/aichat-card/aichat-card-steps.scss.js +13 -0
- package/es/components/aichat-card/aichat-card-steps.scss.js.map +1 -0
- package/es/components/aichat-card/aichat-card.d.ts +34 -0
- package/es/components/aichat-card/aichat-card.js +69 -0
- package/es/components/aichat-card/aichat-card.js.map +1 -0
- package/es/components/aichat-card/aichat-card.scss.js +13 -0
- package/es/components/aichat-card/aichat-card.scss.js.map +1 -0
- package/es/components/aichat-card/index.d.ts +13 -0
- package/es/components/aichat-card/index.js +26 -0
- package/es/components/aichat-card/index.js.map +1 -0
- package/es/components/aichat-carousel/aichat-carousel.d.ts +53 -0
- package/es/components/aichat-carousel/aichat-carousel.js +189 -0
- package/es/components/aichat-carousel/aichat-carousel.js.map +1 -0
- package/es/components/aichat-carousel/aichat-carousel.scss.js +13 -0
- package/es/components/aichat-carousel/aichat-carousel.scss.js.map +1 -0
- package/es/components/aichat-carousel/index.d.ts +11 -0
- package/es/components/aichat-carousel/index.js +22 -0
- package/es/components/aichat-carousel/index.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.d.ts +60 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.js +358 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.d.ts +39 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.js +107 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.d.ts +52 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.js +140 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.d.ts +41 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.js +179 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/defs.js.map +1 -0
- package/es/components/aichat-chain-of-thought/index.d.ts +6 -0
- package/es/components/aichat-chain-of-thought/index.js +29 -0
- package/es/components/aichat-chain-of-thought/index.js.map +1 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.d.ts +218 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.js +998 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.js.map +1 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.scss.js +13 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.scss.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/base-setup.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/codemirror-loader.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/content-sync.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/detect-language.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/diff-decorator.d.ts +30 -0
- package/es/components/aichat-code-snippet/codemirror/diff-decorator.js +80 -0
- package/es/components/aichat-code-snippet/codemirror/diff-decorator.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/editor-manager.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/language-controller.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/language-data.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/language-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/marker-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/theme.js.map +1 -0
- package/es/components/aichat-code-snippet/dom-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/formatters.js +19 -0
- package/es/components/aichat-code-snippet/formatters.js.map +1 -0
- package/es/components/aichat-code-snippet/index.d.ts +7 -0
- package/es/components/aichat-code-snippet/index.js +24 -0
- package/es/components/aichat-code-snippet/index.js.map +1 -0
- package/es/components/aichat-code-snippet/layout-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/streaming-manager.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.d.ts +63 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.js +207 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.scss.js +13 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.scss.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.d.ts +66 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.js +179 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.scss.js +13 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.scss.js.map +1 -0
- package/es/components/aichat-conversational-search/citation-utils.d.ts +32 -0
- package/es/components/aichat-conversational-search/citation-utils.js +78 -0
- package/es/components/aichat-conversational-search/citation-utils.js.map +1 -0
- package/es/components/aichat-conversational-search/index.d.ts +14 -0
- package/es/components/aichat-conversational-search/index.js +25 -0
- package/es/components/aichat-conversational-search/index.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.d.ts +70 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.js +188 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.scss.js +13 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.scss.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback.d.ts +143 -0
- package/es/components/aichat-feedback/aichat-feedback.js +324 -0
- package/es/components/aichat-feedback/aichat-feedback.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback.scss.js +13 -0
- package/es/components/aichat-feedback/aichat-feedback.scss.js.map +1 -0
- package/es/components/aichat-feedback/index.d.ts +3 -0
- package/es/components/aichat-feedback/index.js +25 -0
- package/es/components/aichat-feedback/index.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.d.ts +117 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.js +482 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.scss.js +13 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.scss.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.d.ts +136 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.js +346 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.scss.js +13 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.scss.js.map +1 -0
- package/es/components/aichat-file-uploads/file-type-icon.js.map +1 -0
- package/es/components/aichat-file-uploads/index.d.ts +12 -0
- package/es/components/aichat-file-uploads/index.js +24 -0
- package/es/components/aichat-file-uploads/index.js.map +1 -0
- package/es/components/aichat-history/aichat-history-content.d.ts +26 -0
- package/es/components/aichat-history/aichat-history-content.js +77 -0
- package/es/components/aichat-history/aichat-history-content.js.map +1 -0
- package/es/components/aichat-history/aichat-history-delete-panel.d.ts +51 -0
- package/es/components/aichat-history/aichat-history-delete-panel.js +147 -0
- package/es/components/aichat-history/aichat-history-delete-panel.js.map +1 -0
- package/es/components/aichat-history/aichat-history-header.d.ts +36 -0
- package/es/components/aichat-history/aichat-history-header.js +99 -0
- package/es/components/aichat-history/aichat-history-header.js.map +1 -0
- package/es/components/aichat-history/aichat-history-loading.d.ts +19 -0
- package/es/components/aichat-history/aichat-history-loading.js +60 -0
- package/es/components/aichat-history/aichat-history-loading.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-item-input.d.ts +144 -0
- package/es/components/aichat-history/aichat-history-panel-item-input.js +278 -0
- package/es/components/aichat-history/aichat-history-panel-item-input.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-item.d.ts +149 -0
- package/es/components/aichat-history/aichat-history-panel-item.js +338 -0
- package/es/components/aichat-history/aichat-history-panel-item.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-items.d.ts +14 -0
- package/es/components/aichat-history/aichat-history-panel-items.js +38 -0
- package/es/components/aichat-history/aichat-history-panel-items.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-menu.d.ts +13 -0
- package/es/components/aichat-history/aichat-history-panel-menu.js +34 -0
- package/es/components/aichat-history/aichat-history-panel-menu.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel.d.ts +28 -0
- package/es/components/aichat-history/aichat-history-panel.js +66 -0
- package/es/components/aichat-history/aichat-history-panel.js.map +1 -0
- package/es/components/aichat-history/aichat-history-search-item.d.ts +45 -0
- package/es/components/aichat-history/aichat-history-search-item.js +96 -0
- package/es/components/aichat-history/aichat-history-search-item.js.map +1 -0
- package/es/components/aichat-history/aichat-history-shell.d.ts +26 -0
- package/es/components/aichat-history/aichat-history-shell.js +88 -0
- package/es/components/aichat-history/aichat-history-shell.js.map +1 -0
- package/es/components/aichat-history/aichat-history-toolbar.d.ts +101 -0
- package/es/components/aichat-history/aichat-history-toolbar.js +112 -0
- package/es/components/aichat-history/aichat-history-toolbar.js.map +1 -0
- package/es/components/aichat-history/chat-history.scss.js +13 -0
- package/es/components/aichat-history/index.d.ts +20 -0
- package/es/components/aichat-history/index.js +45 -0
- package/es/components/aichat-history/index.js.map +1 -0
- package/es/components/aichat-launcher/aichat-launcher.d.ts +68 -0
- package/es/components/aichat-launcher/aichat-launcher.js +149 -0
- package/es/components/aichat-launcher/aichat-launcher.js.map +1 -0
- package/es/components/aichat-launcher/aichat-launcher.scss.js +13 -0
- package/es/components/aichat-launcher/aichat-launcher.scss.js.map +1 -0
- package/es/components/aichat-launcher/index.d.ts +11 -0
- package/es/components/aichat-launcher/index.js +23 -0
- package/es/components/aichat-launcher/index.js.map +1 -0
- package/es/components/aichat-markdown/aichat-markdown.d.ts +147 -0
- package/es/components/aichat-markdown/aichat-markdown.js +885 -0
- package/es/components/aichat-markdown/aichat-markdown.js.map +1 -0
- package/es/components/aichat-markdown/aichat-markdown.scss.js +13 -0
- package/es/components/aichat-markdown/aichat-markdown.scss.js.map +1 -0
- package/es/components/aichat-markdown/index.d.ts +11 -0
- package/es/components/aichat-markdown/index.js +28 -0
- package/es/components/aichat-markdown/index.js.map +1 -0
- package/es/components/aichat-markdown/inline-markdown.d.ts +41 -0
- package/es/components/aichat-markdown/inline-markdown.js +104 -0
- package/es/components/aichat-markdown/inline-markdown.js.map +1 -0
- package/es/components/aichat-markdown/inline-markdown.scss.js +13 -0
- package/es/components/aichat-markdown/inline-run-projection.scss.js +13 -0
- package/es/components/aichat-markdown/markdown-renderer-types.d.ts +397 -0
- package/es/components/aichat-markdown/markdown-renderer.d.ts +23 -0
- package/es/components/aichat-markdown/markdown-renderer.js +639 -0
- package/es/components/aichat-markdown/markdown-renderer.js.map +1 -0
- package/es/components/aichat-markdown/markdown-token-tree.js +357 -0
- package/es/components/aichat-markdown/markdown-token-tree.js.map +1 -0
- package/es/components/aichat-markdown/plugins/markdown-it-attrs.js.map +1 -0
- package/es/components/aichat-markdown/plugins/markdown-it-highlight.js.map +1 -0
- package/es/components/aichat-markdown/plugins/markdown-it-task-lists.js +76 -0
- package/es/components/aichat-markdown/plugins/markdown-it-task-lists.js.map +1 -0
- package/es/components/aichat-markdown/utils/html-helpers.d.ts +5 -0
- package/es/components/aichat-markdown/utils/html-helpers.js.map +1 -0
- package/es/components/aichat-markdown/utils/inline-run-projection.d.ts +28 -0
- package/es/components/aichat-markdown/utils/inline-run-projection.js +192 -0
- package/es/components/aichat-markdown/utils/inline-run-projection.js.map +1 -0
- package/es/components/aichat-markdown/utils/inline-validation.js.map +1 -0
- package/es/components/aichat-markdown/utils/lit-directives.js.map +1 -0
- package/es/components/aichat-markdown/utils/plugin-fallback.js +239 -0
- package/es/components/aichat-markdown/utils/plugin-fallback.js.map +1 -0
- package/es/components/aichat-markdown/utils/plugin-host-container.d.ts +181 -0
- package/es/components/aichat-markdown/utils/plugin-host-container.js +165 -0
- package/es/components/aichat-markdown/utils/plugin-host-container.js.map +1 -0
- package/es/components/aichat-markdown/utils/slot-names.js +81 -0
- package/es/components/aichat-markdown/utils/slot-names.js.map +1 -0
- package/es/components/aichat-markdown/utils/streaming-table.js.map +1 -0
- package/es/components/aichat-markdown/utils/table-helpers.d.ts +32 -0
- package/es/components/aichat-markdown/utils/table-helpers.js +203 -0
- package/es/components/aichat-markdown/utils/table-helpers.js.map +1 -0
- package/es/components/aichat-message-byline/aichat-message-byline.d.ts +49 -0
- package/es/components/aichat-message-byline/aichat-message-byline.js +121 -0
- package/es/components/aichat-message-byline/aichat-message-byline.js.map +1 -0
- package/es/components/aichat-message-byline/aichat-message-byline.scss.js +13 -0
- package/es/components/aichat-message-byline/aichat-message-byline.scss.js.map +1 -0
- package/es/components/aichat-message-byline/index.d.ts +10 -0
- package/es/components/aichat-message-byline/index.js +22 -0
- package/es/components/aichat-message-byline/index.js.map +1 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.d.ts +68 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.js +147 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.js.map +1 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.scss.js +13 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.scss.js.map +1 -0
- package/es/components/aichat-message-item-shell/index.d.ts +11 -0
- package/es/components/aichat-message-item-shell/index.js +22 -0
- package/es/components/aichat-message-item-shell/index.js.map +1 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.d.ts +168 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.js +502 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.js.map +1 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.scss.js +13 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.scss.js.map +1 -0
- package/es/components/aichat-messages-shell/index.d.ts +13 -0
- package/es/components/aichat-messages-shell/index.js +23 -0
- package/es/components/aichat-messages-shell/index.js.map +1 -0
- package/es/components/aichat-messages-shell/messages-scroll-controller.d.ts +266 -0
- package/es/components/aichat-messages-shell/messages-scroll-controller.js +1319 -0
- package/es/components/aichat-messages-shell/messages-scroll-controller.js.map +1 -0
- package/es/components/aichat-processing/aichat-processing.d.ts +24 -0
- package/es/components/aichat-processing/aichat-processing.js +66 -0
- package/es/components/aichat-processing/aichat-processing.js.map +1 -0
- package/es/components/aichat-processing/aichat-processing.scss.js +13 -0
- package/es/components/aichat-processing/aichat-processing.scss.js.map +1 -0
- package/es/components/aichat-processing/index.d.ts +2 -0
- package/es/components/aichat-processing/index.js +22 -0
- package/es/components/aichat-processing/index.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-autocomplete-controller.d.ts +86 -0
- package/es/components/aichat-prompt-line/aichat-autocomplete-controller.js +268 -0
- package/es/components/aichat-prompt-line/aichat-autocomplete-controller.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-error-message.d.ts +47 -0
- package/es/components/aichat-prompt-line/aichat-error-message.js +132 -0
- package/es/components/aichat-prompt-line/aichat-error-message.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-error-message.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-error-message.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.d.ts +53 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.js +181 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.d.ts +124 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.js +272 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.d.ts +213 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.js +592 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.d.ts +43 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.js +90 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/autocomplete-controller.d.ts +148 -0
- package/es/components/aichat-prompt-line/autocomplete-controller.js +503 -0
- package/es/components/aichat-prompt-line/autocomplete-controller.js.map +1 -0
- package/es/components/aichat-prompt-line/index.d.ts +25 -0
- package/es/components/aichat-prompt-line/index.js +50 -0
- package/es/components/aichat-prompt-line/index.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-constants.d.ts +35 -0
- package/es/components/aichat-prompt-line/prompt-line-constants.js +42 -0
- package/es/components/aichat-prompt-line/prompt-line-constants.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-controller.d.ts +122 -0
- package/es/components/aichat-prompt-line/prompt-line-mouse-focus.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-rich-loader.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-rich-runtime.js +446 -0
- package/es/components/aichat-prompt-line/prompt-line-rich-runtime.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-textarea-runtime.d.ts +68 -0
- package/es/components/aichat-prompt-line/prompt-line-textarea-runtime.js +394 -0
- package/es/components/aichat-prompt-line/prompt-line-textarea-runtime.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/build-extensions.d.ts +47 -0
- package/es/components/aichat-prompt-line/tiptap/build-extensions.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-autocomplete.d.ts +36 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-autocomplete.js +112 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-autocomplete.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-mention.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-starter-trigger.d.ts +34 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-starter-trigger.js +99 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-starter-trigger.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/chat-enter.d.ts +20 -0
- package/es/components/aichat-prompt-line/tiptap/chat-enter.js +49 -0
- package/es/components/aichat-prompt-line/tiptap/chat-enter.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/editor-styles.js +83 -0
- package/es/components/aichat-prompt-line/tiptap/editor-styles.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/extension-equivalence.d.ts +64 -0
- package/es/components/aichat-prompt-line/tiptap/extension-equivalence.js +80 -0
- package/es/components/aichat-prompt-line/tiptap/extension-equivalence.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/index.d.ts +37 -0
- package/es/components/aichat-prompt-line/tiptap/json-utils.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/keymap.d.ts +34 -0
- package/es/components/aichat-prompt-line/tiptap/keymap.js +61 -0
- package/es/components/aichat-prompt-line/tiptap/keymap.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/origin-meta.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/plain-text-paste.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/render-in-light-dom.d.ts +89 -0
- package/es/components/aichat-prompt-line/tiptap/render-in-light-dom.js +43 -0
- package/es/components/aichat-prompt-line/tiptap/render-in-light-dom.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/render-token-chip.js +92 -0
- package/es/components/aichat-prompt-line/tiptap/render-token-chip.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/resolve-config-items.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/strip-presentation-fields.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/token-node-view.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/trigger-utils.d.ts +42 -0
- package/es/components/aichat-prompt-line/tiptap/trigger-utils.js +69 -0
- package/es/components/aichat-prompt-line/tiptap/trigger-utils.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/types.d.ts +228 -0
- package/es/components/aichat-prompt-line/tiptap/typing-indicator.d.ts +18 -0
- package/es/components/aichat-prompt-line/tiptap/typing-indicator.js +92 -0
- package/es/components/aichat-prompt-line/tiptap/typing-indicator.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/value-sync.d.ts +17 -0
- package/es/components/aichat-prompt-line/tiptap/value-sync.js +57 -0
- package/es/components/aichat-prompt-line/tiptap/value-sync.js.map +1 -0
- package/es/components/aichat-prompt-line/types.d.ts +125 -0
- package/es/components/aichat-prompt-line/types.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.d.ts +63 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.js +299 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.scss.js +13 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.scss.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.d.ts +42 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.js +106 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.scss.js +13 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.scss.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.d.ts +52 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.js +171 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.scss.js +13 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.scss.js.map +1 -0
- package/es/components/aichat-reasoning-steps/index.d.ts +5 -0
- package/es/components/aichat-reasoning-steps/index.js +26 -0
- package/es/components/aichat-reasoning-steps/index.js.map +1 -0
- package/es/components/aichat-shell/aichat-chat-header.d.ts +183 -0
- package/es/components/aichat-shell/aichat-chat-header.js +412 -0
- package/es/components/aichat-shell/aichat-chat-header.js.map +1 -0
- package/es/components/aichat-shell/aichat-chat-header.scss.js +13 -0
- package/es/components/aichat-shell/aichat-chat-header.scss.js.map +1 -0
- package/es/components/aichat-shell/aichat-panel.d.ts +121 -0
- package/es/components/aichat-shell/aichat-panel.js +531 -0
- package/es/components/aichat-shell/aichat-panel.js.map +1 -0
- package/es/components/aichat-shell/aichat-panel.scss.js +13 -0
- package/es/components/aichat-shell/aichat-panel.scss.js.map +1 -0
- package/es/components/aichat-shell/aichat-shell.d.ts +143 -0
- package/es/components/aichat-shell/aichat-shell.js +878 -0
- package/es/components/aichat-shell/aichat-shell.js.map +1 -0
- package/es/components/aichat-shell/aichat-shell.scss.js +13 -0
- package/es/components/aichat-shell/aichat-shell.scss.js.map +1 -0
- package/es/components/aichat-shell/corner-manager.js +101 -0
- package/es/components/aichat-shell/corner-manager.js.map +1 -0
- package/es/components/aichat-shell/index.d.ts +15 -0
- package/es/components/aichat-shell/index.js +27 -0
- package/es/components/aichat-shell/index.js.map +1 -0
- package/es/components/aichat-shell/initialization-manager.js.map +1 -0
- package/es/components/aichat-shell/panel-manager.d.ts +42 -0
- package/es/components/aichat-shell/panel-manager.js +262 -0
- package/es/components/aichat-shell/panel-manager.js.map +1 -0
- package/es/components/aichat-shell/resize-observer-manager.js.map +1 -0
- package/es/components/aichat-shell/slot-observer.js.map +1 -0
- package/es/components/aichat-shell/workspace-manager-utils.js.map +1 -0
- package/es/components/aichat-shell/workspace-manager.d.ts +173 -0
- package/es/components/aichat-shell/workspace-manager.js +717 -0
- package/es/components/aichat-shell/workspace-manager.js.map +1 -0
- package/es/components/aichat-table/aichat-table.d.ts +212 -0
- package/es/components/aichat-table/aichat-table.js +640 -0
- package/es/components/aichat-table/aichat-table.js.map +1 -0
- package/es/components/aichat-table/aichat-table.scss.js +13 -0
- package/es/components/aichat-table/aichat-table.scss.js.map +1 -0
- package/es/components/aichat-table/index.d.ts +4 -0
- package/es/components/aichat-table/index.js +22 -0
- package/es/components/aichat-table/index.js.map +1 -0
- package/es/components/aichat-table/table-loader.js.map +1 -0
- package/es/components/aichat-table/table-pagination.template.d.ts +27 -0
- package/es/components/aichat-table/table-pagination.template.js +55 -0
- package/es/components/aichat-table/table-pagination.template.js.map +1 -0
- package/es/components/aichat-table/table-skeleton.template.d.ts +6 -0
- package/es/components/aichat-table/table-skeleton.template.js +35 -0
- package/es/components/aichat-table/table-skeleton.template.js.map +1 -0
- package/es/components/aichat-table/table.template.d.ts +10 -0
- package/es/components/aichat-table/table.template.js +96 -0
- package/es/components/aichat-table/table.template.js.map +1 -0
- package/es/components/aichat-toolbar/aichat-toolbar.d.ts +93 -0
- package/es/components/aichat-toolbar/aichat-toolbar.js +367 -0
- package/es/components/aichat-toolbar/aichat-toolbar.js.map +1 -0
- package/es/components/aichat-toolbar/aichat-toolbar.scss.js +13 -0
- package/es/components/aichat-toolbar/aichat-toolbar.scss.js.map +1 -0
- package/es/components/aichat-toolbar/index.d.ts +3 -0
- package/es/components/aichat-toolbar/index.js +23 -0
- package/es/components/aichat-toolbar/index.js.map +1 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.d.ts +83 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.js +291 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.js.map +1 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.scss.js +13 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.scss.js.map +1 -0
- package/es/components/aichat-truncated-text/index.d.ts +10 -0
- package/es/components/aichat-truncated-text/index.js +22 -0
- package/es/components/aichat-truncated-text/index.js.map +1 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.d.ts +47 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.js +151 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.js.map +1 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.scss.js +13 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.scss.js.map +1 -0
- package/es/components/aichat-user-avatar/index.d.ts +10 -0
- package/es/components/aichat-user-avatar/index.js +22 -0
- package/es/components/aichat-user-avatar/index.js.map +1 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.d.ts +76 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.js +231 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.js.map +1 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.scss.js +13 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.scss.js.map +1 -0
- package/es/components/aichat-user-message-content/index.d.ts +11 -0
- package/es/components/aichat-user-message-content/index.js +23 -0
- package/es/components/aichat-user-message-content/index.js.map +1 -0
- package/es/components/aichat-user-message-content/split-run-breaks.d.ts +21 -0
- package/es/components/aichat-user-message-content/split-run-breaks.js +36 -0
- package/es/components/aichat-user-message-content/split-run-breaks.js.map +1 -0
- package/es/components/aichat-video-player/aichat-video-player.d.ts +151 -0
- package/es/components/aichat-video-player/aichat-video-player.js +417 -0
- package/es/components/aichat-video-player/aichat-video-player.js.map +1 -0
- package/es/components/aichat-video-player/aichat-video-player.scss.js +13 -0
- package/es/components/aichat-video-player/aichat-video-player.scss.js.map +1 -0
- package/es/components/aichat-video-player/index.d.ts +10 -0
- package/es/components/aichat-video-player/index.js +22 -0
- package/es/components/aichat-video-player/index.js.map +1 -0
- package/es/components/aichat-video-player/providers/base-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/kaltura-provider.js +192 -0
- package/es/components/aichat-video-player/providers/kaltura-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/native-video-provider.js +158 -0
- package/es/components/aichat-video-player/providers/native-video-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/vimeo-provider.js +194 -0
- package/es/components/aichat-video-player/providers/vimeo-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/youtube-provider.js +215 -0
- package/es/components/aichat-video-player/providers/youtube-provider.js.map +1 -0
- package/es/components/aichat-video-player/utils/url-detector.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-body.d.ts +18 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-body.js +50 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-body.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.d.ts +40 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.js +149 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.scss.js +13 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.scss.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.d.ts +43 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.js +147 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.scss.js +13 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.scss.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.d.ts +31 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.js +131 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.scss.js +13 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.scss.js.map +1 -0
- package/es/components/aichat-workspace-shell/header-collapsible-manager.js.map +1 -0
- package/es/components/aichat-workspace-shell/index.d.ts +8 -0
- package/es/components/aichat-workspace-shell/index.js +29 -0
- package/es/components/aichat-workspace-shell/index.js.map +1 -0
- package/es/components/audio-player/index.d.ts +1 -12
- package/es/components/audio-player/index.js +3 -2
- package/es/components/audio-player/index.js.map +1 -1
- package/es/components/audio-player/src/audio-player.d.ts +2 -132
- package/es/components/audio-player/src/audio-player.js +1 -385
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/audio-player.scss.d.ts +3 -0
- package/es/components/audio-player/src/audio-player.scss.js +9 -3
- package/es/components/audio-player/src/audio-player.scss.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +1 -125
- package/es/components/audio-player/src/providers/base-provider.js +1 -132
- package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +1 -49
- package/es/components/audio-player/src/providers/native-audio-provider.js +1 -143
- package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +1 -61
- package/es/components/audio-player/src/providers/soundcloud-provider.js +1 -192
- package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
- package/es/components/audio-player/src/transcript.d.ts +2 -58
- package/es/components/audio-player/src/transcript.js +1 -155
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/transcript.scss.d.ts +3 -0
- package/es/components/audio-player/src/transcript.scss.js +9 -3
- package/es/components/audio-player/src/transcript.scss.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.d.ts +1 -32
- package/es/components/audio-player/src/utils/url-detector.js +1 -55
- package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es/components/card/index.d.ts +1 -11
- package/es/components/card/index.js +4 -3
- package/es/components/card/index.js.map +1 -1
- package/es/components/card/src/card-footer.d.ts +2 -44
- package/es/components/card/src/card-footer.js +1 -131
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.d.ts +3 -0
- package/es/components/card/src/card-footer.scss.js +9 -3
- package/es/components/card/src/card-footer.scss.js.map +1 -1
- package/es/components/card/src/card-steps.d.ts +2 -29
- package/es/components/card/src/card-steps.js +1 -83
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.d.ts +3 -0
- package/es/components/card/src/card-steps.scss.js +9 -3
- package/es/components/card/src/card-steps.scss.js.map +1 -1
- package/es/components/card/src/card.d.ts +2 -28
- package/es/components/card/src/card.js +1 -58
- package/es/components/card/src/card.js.map +1 -1
- package/es/components/card/src/card.scss.d.ts +3 -0
- package/es/components/card/src/card.scss.js +9 -3
- package/es/components/card/src/card.scss.js.map +1 -1
- package/es/components/carousel/index.d.ts +1 -9
- package/es/components/carousel/index.js +2 -1
- package/es/components/carousel/index.js.map +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -39
- package/es/components/carousel/src/carousel.js +1 -122
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.d.ts +3 -0
- package/es/components/carousel/src/carousel.scss.js +9 -3
- package/es/components/carousel/src/carousel.scss.js.map +1 -1
- package/es/components/chain-of-thought/defs.d.ts +1 -54
- package/es/components/chain-of-thought/defs.js +1 -30
- package/es/components/chain-of-thought/defs.js.map +1 -1
- package/es/components/chain-of-thought/index.d.ts +2 -10
- package/es/components/chain-of-thought/index.js +6 -5
- package/es/components/chain-of-thought/index.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +2 -47
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +1 -340
- 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-step.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js +9 -3
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -37
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +1 -100
- 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-toggle.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +9 -3
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +2 -45
- package/es/components/chain-of-thought/src/chain-of-thought.js +1 -128
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +9 -3
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -37
- package/es/components/chain-of-thought/src/tool-call-data.js +1 -170
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/tool-call-data.scss.js +9 -3
- package/es/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -25
- package/es/components/chat-button/defs.js +1 -28
- package/es/components/chat-button/defs.js.map +1 -1
- package/es/components/chat-button/index.d.ts +1 -10
- package/es/components/chat-button/index.js +3 -2
- package/es/components/chat-button/index.js.map +1 -1
- package/es/components/chat-button/src/chat-button-skeleton.d.ts +2 -30
- package/es/components/chat-button/src/chat-button-skeleton.js +1 -33
- package/es/components/chat-button/src/chat-button-skeleton.js.map +1 -1
- package/es/components/chat-button/src/chat-button.d.ts +2 -43
- package/es/components/chat-button/src/chat-button.js +2 -104
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/chat-button/src/chat-button.scss.d.ts +3 -0
- package/es/components/chat-button/src/chat-button.scss.js +9 -3
- package/es/components/chat-button/src/chat-button.scss.js.map +1 -1
- package/es/components/chat-history/index.d.ts +1 -11
- package/es/components/chat-history/index.js +13 -11
- package/es/components/chat-history/index.js.map +1 -1
- package/es/components/chat-history/src/chat-history.scss.d.ts +3 -0
- package/es/components/chat-history/src/chat-history.scss.js +9 -3
- package/es/components/chat-history/src/chat-history.scss.js.map +1 -1
- package/es/components/chat-history/src/history-content.d.ts +2 -25
- package/es/components/chat-history/src/history-content.js +1 -68
- package/es/components/chat-history/src/history-content.js.map +1 -1
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -36
- package/es/components/chat-history/src/history-delete-panel.js +1 -135
- package/es/components/chat-history/src/history-delete-panel.js.map +1 -1
- package/es/components/chat-history/src/history-header.d.ts +2 -34
- package/es/components/chat-history/src/history-header.js +1 -90
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -18
- package/es/components/chat-history/src/history-loading.js +1 -54
- package/es/components/chat-history/src/history-loading.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -130
- package/es/components/chat-history/src/history-panel-item-input.js +1 -273
- 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 +2 -142
- package/es/components/chat-history/src/history-panel-item.js +1 -405
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +2 -13
- package/es/components/chat-history/src/history-panel-items.js +1 -33
- package/es/components/chat-history/src/history-panel-items.js.map +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +2 -12
- package/es/components/chat-history/src/history-panel-menu.js +1 -29
- package/es/components/chat-history/src/history-panel-menu.js.map +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +2 -27
- package/es/components/chat-history/src/history-panel.js +1 -60
- package/es/components/chat-history/src/history-panel.js.map +1 -1
- package/es/components/chat-history/src/history-search-item.d.ts +2 -43
- package/es/components/chat-history/src/history-search-item.js +1 -87
- package/es/components/chat-history/src/history-search-item.js.map +1 -1
- package/es/components/chat-history/src/history-shell.d.ts +2 -23
- package/es/components/chat-history/src/history-shell.js +1 -81
- package/es/components/chat-history/src/history-shell.js.map +1 -1
- package/es/components/chat-history/src/history-toolbar.d.ts +2 -89
- package/es/components/chat-history/src/history-toolbar.js +1 -100
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +1 -12
- package/es/components/chat-shell/index.js +4 -3
- package/es/components/chat-shell/index.js.map +1 -1
- package/es/components/chat-shell/src/chat-header.d.ts +2 -177
- package/es/components/chat-shell/src/chat-header.js +1 -406
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/chat-header.scss.d.ts +3 -0
- package/es/components/chat-shell/src/chat-header.scss.js +9 -3
- package/es/components/chat-shell/src/chat-header.scss.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -39
- package/es/components/chat-shell/src/corner-manager.js +1 -93
- package/es/components/chat-shell/src/corner-manager.js.map +1 -1
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -44
- package/es/components/chat-shell/src/initialization-manager.js +1 -79
- package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -39
- package/es/components/chat-shell/src/panel-manager.js +1 -251
- package/es/components/chat-shell/src/panel-manager.js.map +1 -1
- package/es/components/chat-shell/src/panel.d.ts +2 -93
- package/es/components/chat-shell/src/panel.js +1 -519
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/panel.scss.d.ts +3 -0
- package/es/components/chat-shell/src/panel.scss.js +9 -3
- package/es/components/chat-shell/src/panel.scss.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -55
- package/es/components/chat-shell/src/resize-observer-manager.js +1 -212
- package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
- package/es/components/chat-shell/src/shell.d.ts +2 -133
- package/es/components/chat-shell/src/shell.js +1 -864
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/shell.scss.d.ts +3 -0
- package/es/components/chat-shell/src/shell.scss.js +9 -3
- package/es/components/chat-shell/src/shell.scss.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -53
- package/es/components/chat-shell/src/slot-observer.js +1 -144
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +1 -66
- package/es/components/chat-shell/src/workspace-manager-utils.d.ts +1 -90
- package/es/components/chat-shell/src/workspace-manager-utils.js +1 -111
- package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -173
- package/es/components/chat-shell/src/workspace-manager.js +1 -709
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/index.d.ts +2 -4
- package/es/components/code-snippet/index.js +2 -1
- package/es/components/code-snippet/index.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +2 -207
- package/es/components/code-snippet/src/code-snippet.js +1 -974
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.d.ts +3 -0
- package/es/components/code-snippet/src/code-snippet.scss.js +9 -3
- package/es/components/code-snippet/src/code-snippet.scss.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -19
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -68
- package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -7
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -21
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -8
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +4 -4
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -12
- package/es/components/code-snippet/src/codemirror/content-sync.js +1 -64
- package/es/components/code-snippet/src/codemirror/content-sync.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +1 -6
- package/es/components/code-snippet/src/codemirror/detect-language.js +1 -69
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +1 -30
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +1 -72
- package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +1 -31
- package/es/components/code-snippet/src/codemirror/editor-manager.js +1 -87
- package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +1 -39
- package/es/components/code-snippet/src/codemirror/language-controller.js +1 -218
- package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -6
- package/es/components/code-snippet/src/codemirror/language-data.js +1 -1035
- package/es/components/code-snippet/src/codemirror/language-data.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +1 -79
- package/es/components/code-snippet/src/codemirror/language-utils.js +1 -205
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.d.ts +1 -123
- package/es/components/code-snippet/src/codemirror/marker-utils.js +1 -176
- package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -66
- package/es/components/code-snippet/src/codemirror/theme.js +1 -339
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es/components/code-snippet/src/dom-utils.d.ts +1 -25
- package/es/components/code-snippet/src/dom-utils.js +1 -66
- package/es/components/code-snippet/src/dom-utils.js.map +1 -1
- package/es/components/code-snippet/src/formatters.d.ts +1 -4
- package/es/components/code-snippet/src/formatters.js +1 -11
- package/es/components/code-snippet/src/formatters.js.map +1 -1
- package/es/components/code-snippet/src/layout-utils.d.ts +1 -30
- package/es/components/code-snippet/src/layout-utils.js +1 -73
- package/es/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es/components/code-snippet/src/streaming-manager.d.ts +1 -24
- package/es/components/code-snippet/src/streaming-manager.js +1 -119
- package/es/components/code-snippet/src/streaming-manager.js.map +1 -1
- package/es/components/conversational-search/index.d.ts +1 -9
- package/es/components/conversational-search/index.js +3 -1
- package/es/components/conversational-search/index.js.map +1 -1
- package/es/components/conversational-search/src/citation-card.d.ts +2 -0
- package/es/components/conversational-search/src/citation-card.js +9 -0
- package/es/components/conversational-search/src/citation-card.js.map +1 -0
- package/es/components/conversational-search/src/citation-card.scss.d.ts +3 -0
- package/es/components/conversational-search/src/citation-card.scss.js +19 -0
- package/es/components/conversational-search/src/citation-card.scss.js.map +1 -0
- package/es/components/conversational-search/src/citation-utils.d.ts +1 -24
- package/es/components/conversational-search/src/citation-utils.js +1 -38
- package/es/components/conversational-search/src/citation-utils.js.map +1 -1
- package/es/components/conversational-search/src/conversational-search-shell.d.ts +2 -41
- package/es/components/conversational-search/src/conversational-search-shell.js +1 -108
- package/es/components/conversational-search/src/conversational-search-shell.js.map +1 -1
- package/es/components/conversational-search/src/conversational-search-shell.scss.d.ts +3 -0
- package/es/components/conversational-search/src/conversational-search-shell.scss.js +9 -3
- package/es/components/conversational-search/src/conversational-search-shell.scss.js.map +1 -1
- package/es/components/feedback/index.d.ts +1 -4
- package/es/components/feedback/index.js +3 -2
- package/es/components/feedback/index.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.d.ts +2 -68
- package/es/components/feedback/src/feedback-buttons.js +1 -181
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.scss.d.ts +3 -0
- package/es/components/feedback/src/feedback-buttons.scss.js +9 -3
- package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +2 -141
- package/es/components/feedback/src/feedback.js +1 -332
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.d.ts +3 -0
- package/es/components/feedback/src/feedback.scss.js +9 -3
- package/es/components/feedback/src/feedback.scss.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +1 -13
- package/es/components/file-uploads/index.js +3 -2
- package/es/components/file-uploads/index.js.map +1 -1
- package/es/components/file-uploads/src/file-type-icon.d.ts +1 -18
- package/es/components/file-uploads/src/file-type-icon.js +1 -79
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -1
- package/es/components/file-uploads/src/file-upload-item.d.ts +2 -117
- package/es/components/file-uploads/src/file-upload-item.js +1 -434
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-upload-item.scss.d.ts +3 -0
- package/es/components/file-uploads/src/file-upload-item.scss.js +9 -3
- package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +2 -116
- package/es/components/file-uploads/src/file-uploads.js +1 -283
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.d.ts +3 -0
- package/es/components/file-uploads/src/file-uploads.scss.js +9 -3
- package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -1
- package/es/components/file-uploads/src/types.d.ts +1 -39
- package/es/components/launcher/index.d.ts +1 -9
- package/es/components/launcher/index.js +2 -1
- package/es/components/launcher/index.js.map +1 -1
- package/es/components/launcher/src/launcher.d.ts +2 -68
- package/es/components/launcher/src/launcher.js +1 -145
- package/es/components/launcher/src/launcher.js.map +1 -1
- package/es/components/launcher/src/launcher.scss.d.ts +3 -0
- package/es/components/launcher/src/launcher.scss.js +9 -3
- package/es/components/launcher/src/launcher.scss.js.map +1 -1
- package/es/components/markdown/index.d.ts +2 -8
- package/es/components/markdown/index.js +5 -5
- package/es/components/markdown/src/inline-markdown.d.ts +1 -41
- package/es/components/markdown/src/inline-markdown.js +2 -84
- package/es/components/markdown/src/inline-markdown.js.map +1 -1
- package/es/components/markdown/src/markdown-renderer-types.d.ts +1 -395
- package/es/components/markdown/src/markdown-renderer.d.ts +1 -26
- package/es/components/markdown/src/markdown-renderer.js +1 -632
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +1 -83
- package/es/components/markdown/src/markdown-token-tree.js +1 -349
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +2 -139
- package/es/components/markdown/src/markdown.js +1 -862
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.d.ts +3 -0
- package/es/components/markdown/src/markdown.scss.js +9 -3
- package/es/components/markdown/src/markdown.scss.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -6
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +1 -189
- package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -7
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +1 -51
- package/es/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -12
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +1 -68
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -5
- package/es/components/markdown/src/utils/html-helpers.js +1 -317
- package/es/components/markdown/src/utils/html-helpers.js.map +1 -1
- package/es/components/markdown/src/utils/inline-run-projection.d.ts +1 -15
- package/es/components/markdown/src/utils/inline-run-projection.js +1 -188
- package/es/components/markdown/src/utils/inline-run-projection.js.map +1 -1
- package/es/components/markdown/src/utils/inline-validation.d.ts +1 -13
- package/es/components/markdown/src/utils/inline-validation.js +1 -89
- package/es/components/markdown/src/utils/inline-validation.js.map +1 -1
- package/es/components/markdown/src/utils/lit-directives.d.ts +1 -17
- package/es/components/markdown/src/utils/lit-directives.js +1 -76
- package/es/components/markdown/src/utils/lit-directives.js.map +1 -1
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +1 -36
- package/es/components/markdown/src/utils/plugin-fallback.js +1 -230
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es/components/markdown/src/utils/plugin-host-container.d.ts +1 -159
- package/es/components/markdown/src/utils/plugin-host-container.js +1 -157
- package/es/components/markdown/src/utils/plugin-host-container.js.map +1 -1
- package/es/components/markdown/src/utils/slot-names.d.ts +1 -1
- package/es/components/markdown/src/utils/slot-names.js +1 -75
- package/es/components/markdown/src/utils/slot-names.js.map +1 -1
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -28
- package/es/components/markdown/src/utils/streaming-table.js +1 -78
- package/es/components/markdown/src/utils/streaming-table.js.map +1 -1
- package/es/components/markdown/src/utils/table-helpers.d.ts +1 -32
- package/es/components/markdown/src/utils/table-helpers.js +1 -195
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/message-byline/index.d.ts +9 -0
- package/es/components/message-byline/index.js +10 -0
- package/es/components/message-byline/src/message-byline.d.ts +2 -0
- package/es/components/message-byline/src/message-byline.js +9 -0
- package/es/components/message-byline/src/message-byline.js.map +1 -0
- package/es/components/message-byline/src/message-byline.scss.d.ts +3 -0
- package/es/components/message-byline/src/message-byline.scss.js +19 -0
- package/es/components/message-byline/src/message-byline.scss.js.map +1 -0
- package/es/components/message-item-shell/index.d.ts +9 -0
- package/es/components/message-item-shell/index.js +10 -0
- package/es/components/message-item-shell/src/message-item-shell.d.ts +2 -0
- package/es/components/message-item-shell/src/message-item-shell.js +9 -0
- package/es/components/message-item-shell/src/message-item-shell.js.map +1 -0
- package/es/components/message-item-shell/src/message-item-shell.scss.d.ts +3 -0
- package/es/components/message-item-shell/src/message-item-shell.scss.js +19 -0
- package/es/components/message-item-shell/src/message-item-shell.scss.js.map +1 -0
- package/es/components/messages-shell/index.d.ts +1 -3
- package/es/components/messages-shell/index.js +3 -1
- package/es/components/messages-shell/index.js.map +1 -1
- package/es/components/messages-shell/src/messages-scroll-controller.d.ts +1 -0
- package/es/components/messages-shell/src/messages-scroll-controller.js +9 -0
- package/es/components/messages-shell/src/messages-scroll-controller.js.map +1 -0
- package/es/components/messages-shell/src/messages-shell.d.ts +6 -53
- package/es/components/messages-shell/src/messages-shell.js +1 -133
- package/es/components/messages-shell/src/messages-shell.js.map +1 -1
- package/es/components/messages-shell/src/messages-shell.scss.d.ts +3 -0
- package/es/components/messages-shell/src/messages-shell.scss.js +9 -3
- package/es/components/messages-shell/src/messages-shell.scss.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/index.js +2 -1
- package/es/components/processing/index.js.map +1 -1
- package/es/components/processing/src/processing.d.ts +2 -23
- package/es/components/processing/src/processing.js +1 -60
- package/es/components/processing/src/processing.js.map +1 -1
- package/es/components/processing/src/processing.scss.d.ts +3 -0
- package/es/components/processing/src/processing.scss.js +9 -3
- package/es/components/processing/src/processing.scss.js.map +1 -1
- package/es/components/prompt-line/autocomplete/index.d.ts +1 -12
- package/es/components/prompt-line/autocomplete/index.js +2 -1
- package/es/components/prompt-line/autocomplete/index.js.map +1 -1
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +2 -212
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +1 -613
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.d.ts +3 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +9 -3
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -1
- package/es/components/prompt-line/index.d.ts +1 -27
- package/es/components/prompt-line/index.js +20 -23
- package/es/components/prompt-line/index.js.map +1 -1
- package/es/components/prompt-line/src/autocomplete-controller-element.d.ts +2 -84
- package/es/components/prompt-line/src/autocomplete-controller-element.js +1 -266
- package/es/components/prompt-line/src/autocomplete-controller-element.js.map +1 -1
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +1 -148
- package/es/components/prompt-line/src/autocomplete-controller.js +1 -495
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +2 -46
- package/es/components/prompt-line/src/error-message.js +1 -126
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.d.ts +3 -0
- package/es/components/prompt-line/src/error-message.scss.js +9 -3
- package/es/components/prompt-line/src/error-message.scss.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.d.ts +1 -35
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -34
- package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -122
- package/es/components/prompt-line/src/prompt-line-mouse-focus.d.ts +1 -45
- package/es/components/prompt-line/src/prompt-line-mouse-focus.js +1 -75
- package/es/components/prompt-line/src/prompt-line-mouse-focus.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -41
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -48
- package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -14
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +1 -433
- 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 -114
- package/es/components/prompt-line/src/prompt-line-shell.js +1 -259
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.d.ts +3 -0
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +9 -3
- package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +1 -88
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.js +1 -380
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +2 -197
- package/es/components/prompt-line/src/prompt-line.js +1 -546
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line.scss.d.ts +3 -0
- package/es/components/prompt-line/src/prompt-line.scss.js +9 -3
- package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +2 -53
- package/es/components/prompt-line/src/send-control.js +1 -176
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/send-control.scss.d.ts +3 -0
- package/es/components/prompt-line/src/send-control.scss.js +9 -3
- package/es/components/prompt-line/src/send-control.scss.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +2 -42
- package/es/components/prompt-line/src/stop-streaming-button.js +1 -84
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.scss.d.ts +3 -0
- package/es/components/prompt-line/src/stop-streaming-button.scss.js +9 -3
- package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +1 -47
- package/es/components/prompt-line/src/tiptap/build-extensions.js +1 -60
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +1 -36
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +1 -104
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +1 -19
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +1 -218
- package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +1 -34
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +1 -91
- 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 -17
- package/es/components/prompt-line/src/tiptap/chat-enter.js +1 -38
- package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/editor-styles.d.ts +1 -18
- package/es/components/prompt-line/src/tiptap/editor-styles.js +1 -75
- package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/extension-equivalence.d.ts +1 -64
- package/es/components/prompt-line/src/tiptap/extension-equivalence.js +1 -72
- package/es/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/index.d.ts +1 -37
- package/es/components/prompt-line/src/tiptap/index.js +16 -16
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -69
- package/es/components/prompt-line/src/tiptap/json-utils.js +1 -160
- package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -31
- package/es/components/prompt-line/src/tiptap/keymap.js +1 -50
- package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -11
- package/es/components/prompt-line/src/tiptap/origin-meta.js +1 -25
- package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -16
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +1 -82
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +1 -87
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +1 -33
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +1 -69
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +1 -84
- package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/resolve-config-items.d.ts +1 -22
- package/es/components/prompt-line/src/tiptap/resolve-config-items.js +1 -33
- package/es/components/prompt-line/src/tiptap/resolve-config-items.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/strip-presentation-fields.d.ts +1 -18
- package/es/components/prompt-line/src/tiptap/strip-presentation-fields.js +1 -14
- package/es/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +1 -36
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -33
- package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +1 -41
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +1 -60
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +1 -229
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -30
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +1 -96
- package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -25
- package/es/components/prompt-line/src/tiptap/value-sync.js +1 -57
- package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -1
- package/es/components/prompt-line/src/types.d.ts +1 -100
- package/es/components/prompt-line/src/types.js +1 -42
- package/es/components/prompt-line/src/types.js.map +1 -1
- package/es/components/reasoning-steps/index.d.ts +1 -4
- package/es/components/reasoning-steps/index.js +4 -3
- package/es/components/reasoning-steps/index.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -50
- package/es/components/reasoning-steps/src/reasoning-step.js +1 -286
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.scss.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-step.scss.js +9 -3
- package/es/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -40
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +1 -99
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +9 -3
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -47
- package/es/components/reasoning-steps/src/reasoning-steps.js +1 -161
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.scss.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-steps.scss.js +9 -3
- package/es/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -1
- package/es/components/table/index.d.ts +2 -3
- package/es/components/table/index.js +2 -1
- package/es/components/table/index.js.map +1 -1
- package/es/components/table/src/table-loader.d.ts +1 -4
- package/es/components/table/src/table-loader.js +1 -20
- package/es/components/table/src/table-loader.js.map +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +1 -27
- package/es/components/table/src/table-pagination.template.js +1 -47
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +1 -2
- package/es/components/table/src/table-runtime.js +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -6
- package/es/components/table/src/table-skeleton.template.js +1 -27
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +2 -210
- package/es/components/table/src/table.js +1 -633
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.scss.d.ts +3 -0
- package/es/components/table/src/table.scss.js +9 -3
- package/es/components/table/src/table.scss.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +1 -10
- package/es/components/table/src/table.template.js +1 -88
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/table/src/types.d.ts +1 -13
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/index.js +2 -1
- package/es/components/toolbar/index.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +2 -85
- package/es/components/toolbar/src/toolbar.js +1 -378
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.d.ts +3 -0
- package/es/components/toolbar/src/toolbar.scss.js +9 -3
- package/es/components/toolbar/src/toolbar.scss.js.map +1 -1
- package/es/components/truncated-text/index.d.ts +1 -9
- package/es/components/truncated-text/index.js +2 -1
- package/es/components/truncated-text/index.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +2 -84
- package/es/components/truncated-text/src/truncated-text.js +1 -287
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.d.ts +3 -0
- package/es/components/truncated-text/src/truncated-text.scss.js +9 -3
- package/es/components/truncated-text/src/truncated-text.scss.js.map +1 -1
- package/es/components/user-avatar/index.d.ts +9 -0
- package/es/components/user-avatar/index.js +10 -0
- package/es/components/user-avatar/src/user-avatar.d.ts +2 -0
- package/es/components/user-avatar/src/user-avatar.js +9 -0
- package/es/components/user-avatar/src/user-avatar.js.map +1 -0
- package/es/components/user-avatar/src/user-avatar.scss.d.ts +3 -0
- package/es/components/user-avatar/src/user-avatar.scss.js +19 -0
- package/es/components/user-avatar/src/user-avatar.scss.js.map +1 -0
- package/es/components/user-message-content/index.d.ts +9 -0
- package/es/components/user-message-content/index.js +10 -0
- package/es/components/user-message-content/src/split-run-breaks.d.ts +9 -0
- package/es/components/user-message-content/src/split-run-breaks.js +9 -0
- package/es/components/user-message-content/src/split-run-breaks.js.map +1 -0
- package/es/components/user-message-content/src/user-message-content.d.ts +10 -0
- package/es/components/user-message-content/src/user-message-content.js +9 -0
- package/es/components/user-message-content/src/user-message-content.js.map +1 -0
- package/es/components/user-message-content/src/user-message-content.scss.d.ts +3 -0
- package/es/components/user-message-content/src/user-message-content.scss.js +19 -0
- package/es/components/user-message-content/src/user-message-content.scss.js.map +1 -0
- package/es/components/video-player/index.d.ts +1 -10
- package/es/components/video-player/index.js +2 -1
- package/es/components/video-player/index.js.map +1 -1
- package/es/components/video-player/src/providers/base-provider.d.ts +1 -141
- package/es/components/video-player/src/providers/base-provider.js +1 -128
- package/es/components/video-player/src/providers/base-provider.js.map +1 -1
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +1 -64
- package/es/components/video-player/src/providers/kaltura-provider.js +1 -184
- package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
- package/es/components/video-player/src/providers/native-video-provider.d.ts +1 -49
- package/es/components/video-player/src/providers/native-video-provider.js +1 -150
- package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +1 -60
- package/es/components/video-player/src/providers/vimeo-provider.js +1 -186
- package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
- package/es/components/video-player/src/providers/youtube-provider.d.ts +1 -73
- package/es/components/video-player/src/providers/youtube-provider.js +1 -207
- package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
- package/es/components/video-player/src/utils/url-detector.d.ts +1 -34
- package/es/components/video-player/src/utils/url-detector.js +1 -72
- package/es/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -145
- package/es/components/video-player/src/video-player.js +1 -411
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/video-player/src/video-player.scss.d.ts +3 -0
- package/es/components/video-player/src/video-player.scss.js +9 -3
- package/es/components/video-player/src/video-player.scss.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +1 -4
- package/es/components/workspace-shell/index.js +5 -4
- package/es/components/workspace-shell/index.js.map +1 -1
- package/es/components/workspace-shell/src/header-collapsible-manager.d.ts +1 -77
- package/es/components/workspace-shell/src/header-collapsible-manager.js +1 -214
- package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +2 -17
- package/es/components/workspace-shell/src/workspace-shell-body.js +1 -44
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +2 -38
- package/es/components/workspace-shell/src/workspace-shell-footer.js +1 -142
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.d.ts +3 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +9 -3
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -38
- package/es/components/workspace-shell/src/workspace-shell-header.js +1 -142
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.scss.d.ts +3 -0
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js +9 -3
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +2 -30
- package/es/components/workspace-shell/src/workspace-shell.js +1 -125
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.d.ts +3 -0
- package/es/components/workspace-shell/src/workspace-shell.scss.js +9 -3
- package/es/components/workspace-shell/src/workspace-shell.scss.js.map +1 -1
- package/es/globals/register.d.ts +45 -0
- package/es/globals/register.js +78 -0
- package/es/globals/register.js.map +1 -0
- package/es/globals/settings.d.ts +2 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/settings.js.map +1 -1
- package/es/globals/utils/dynamic-css-var-sheet.js.map +1 -0
- package/es/globals/utils/iconTransform.js +1 -0
- package/es/globals/utils/iconTransform.js.map +1 -1
- package/es/globals/utils/menu-item-activation.d.ts +8 -0
- package/es/globals/utils/menu-item-activation.js +42 -0
- package/es/globals/utils/menu-item-activation.js.map +1 -0
- package/es/globals/utils/root-styles.d.ts +30 -0
- package/es/globals/utils/root-styles.js +72 -0
- package/es/globals/utils/root-styles.js.map +1 -0
- package/es/globals/utils/script-loader.js.map +1 -0
- package/es/index.d.ts +87 -0
- package/es/index.js +95 -0
- package/es/index.js.map +1 -0
- package/es/react/ai-label-action-button.d.ts +2 -2
- package/es/react/ai-label-action-button.js +3 -3
- package/es/react/ai-label-action-button.js.map +1 -1
- package/es/react/audio-player.d.ts +9 -2
- package/es/react/audio-player.js +6 -6
- package/es/react/audio-player.js.map +1 -1
- package/es/react/autocomplete-controller.d.ts +20 -0
- package/es/react/autocomplete-controller.js +35 -0
- package/es/react/autocomplete-controller.js.map +1 -0
- package/es/react/autocomplete.d.ts +9 -2
- package/es/react/autocomplete.js +6 -5
- package/es/react/autocomplete.js.map +1 -1
- package/es/react/card.d.ts +8 -4
- package/es/react/card.js +16 -16
- package/es/react/card.js.map +1 -1
- package/es/react/carousel.d.ts +6 -2
- package/es/react/carousel.js +5 -5
- package/es/react/carousel.js.map +1 -1
- package/es/react/chain-of-thought-step.d.ts +7 -2
- package/es/react/chain-of-thought-step.js +5 -5
- package/es/react/chain-of-thought-step.js.map +1 -1
- package/es/react/chain-of-thought-toggle.d.ts +6 -3
- package/es/react/chain-of-thought-toggle.js +5 -5
- package/es/react/chain-of-thought-toggle.js.map +1 -1
- package/es/react/chain-of-thought.d.ts +12 -2
- package/es/react/chain-of-thought.js +9 -6
- package/es/react/chain-of-thought.js.map +1 -1
- package/es/react/chat-button-skeleton.d.ts +2 -2
- package/es/react/chat-button-skeleton.js +5 -5
- package/es/react/chat-button-skeleton.js.map +1 -1
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +7 -7
- package/es/react/chat-button.js.map +1 -1
- package/es/react/chat-header.d.ts +11 -62
- package/es/react/chat-header.js +9 -7
- package/es/react/chat-header.js.map +1 -1
- package/es/react/chat-shell.d.ts +5 -2
- package/es/react/chat-shell.js +6 -6
- package/es/react/chat-shell.js.map +1 -1
- package/es/react/citation-card.d.ts +17 -0
- package/es/react/citation-card.js +32 -0
- package/es/react/citation-card.js.map +1 -0
- package/es/react/code-snippet.d.ts +15 -9
- package/es/react/code-snippet.js +9 -6
- package/es/react/code-snippet.js.map +1 -1
- package/es/react/conversational-search-shell.d.ts +7 -2
- package/es/react/conversational-search-shell.js +8 -8
- package/es/react/conversational-search-shell.js.map +1 -1
- package/es/react/error-message.d.ts +2 -2
- package/es/react/error-message.js +5 -5
- package/es/react/error-message.js.map +1 -1
- package/es/react/feedback-buttons.d.ts +6 -2
- package/es/react/feedback-buttons.js +5 -5
- package/es/react/feedback-buttons.js.map +1 -1
- package/es/react/feedback.d.ts +7 -3
- package/es/react/feedback.js +6 -6
- package/es/react/feedback.js.map +1 -1
- package/es/react/file-upload-item.d.ts +6 -2
- package/es/react/file-upload-item.js +5 -5
- package/es/react/file-upload-item.js.map +1 -1
- package/es/react/file-uploads.d.ts +6 -2
- package/es/react/file-uploads.js +5 -5
- package/es/react/file-uploads.js.map +1 -1
- package/es/react/history/history-content.d.ts +2 -2
- package/es/react/history/history-content.js +5 -5
- package/es/react/history/history-content.js.map +1 -1
- package/es/react/history/history-delete-panel.d.ts +7 -2
- package/es/react/history/history-delete-panel.js +5 -5
- package/es/react/history/history-delete-panel.js.map +1 -1
- package/es/react/history/history-header.d.ts +5 -2
- package/es/react/history/history-header.js +5 -5
- package/es/react/history/history-header.js.map +1 -1
- package/es/react/history/history-loading.d.ts +2 -2
- package/es/react/history/history-loading.js +5 -5
- package/es/react/history/history-loading.js.map +1 -1
- package/es/react/history/history-panel-item-input.d.ts +8 -2
- package/es/react/history/history-panel-item-input.js +5 -5
- package/es/react/history/history-panel-item-input.js.map +1 -1
- package/es/react/history/history-panel-item.d.ts +10 -2
- package/es/react/history/history-panel-item.js +5 -5
- package/es/react/history/history-panel-item.js.map +1 -1
- package/es/react/history/history-panel-items.d.ts +2 -2
- package/es/react/history/history-panel-items.js +5 -5
- package/es/react/history/history-panel-items.js.map +1 -1
- package/es/react/history/history-panel-menu.d.ts +2 -2
- package/es/react/history/history-panel-menu.js +5 -5
- package/es/react/history/history-panel-menu.js.map +1 -1
- package/es/react/history/history-panel.d.ts +2 -2
- package/es/react/history/history-panel.js +5 -5
- package/es/react/history/history-panel.js.map +1 -1
- package/es/react/history/history-search-item.d.ts +6 -2
- package/es/react/history/history-search-item.js +5 -5
- package/es/react/history/history-search-item.js.map +1 -1
- package/es/react/history/history-shell.d.ts +6 -2
- package/es/react/history/history-shell.js +8 -5
- package/es/react/history/history-shell.js.map +1 -1
- package/es/react/history/history-toolbar.d.ts +7 -2
- package/es/react/history/history-toolbar.js +5 -5
- package/es/react/history/history-toolbar.js.map +1 -1
- package/es/react/hooks/useChatAutocomplete.d.ts +2 -2
- package/es/react/hooks/useChatAutocomplete.js +4 -2
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/index.d.ts +67 -0
- package/es/react/index.js +68 -0
- package/es/react/index.js.map +1 -0
- package/es/react/input-send-control.d.ts +6 -2
- package/es/react/input-send-control.js +5 -5
- package/es/react/input-send-control.js.map +1 -1
- package/es/react/launcher.d.ts +5 -2
- package/es/react/launcher.js +5 -5
- package/es/react/launcher.js.map +1 -1
- package/es/react/markdown.d.ts +9 -8
- package/es/react/markdown.js +10 -12
- package/es/react/markdown.js.map +1 -1
- package/es/react/message-byline.d.ts +3 -0
- package/es/react/message-byline.js +28 -0
- package/es/react/message-byline.js.map +1 -0
- package/es/react/message-item-shell.d.ts +3 -0
- package/es/react/message-item-shell.js +29 -0
- package/es/react/message-item-shell.js.map +1 -0
- package/es/react/messages-shell.d.ts +5 -2
- package/es/react/messages-shell.js +5 -6
- package/es/react/messages-shell.js.map +1 -1
- package/es/react/panel.d.ts +10 -2
- package/es/react/panel.js +6 -6
- package/es/react/panel.js.map +1 -1
- package/es/react/processing.d.ts +2 -2
- package/es/react/processing.js +5 -5
- package/es/react/processing.js.map +1 -1
- package/es/react/prompt-line-shell.d.ts +8 -4
- package/es/react/prompt-line-shell.js +10 -8
- package/es/react/prompt-line-shell.js.map +1 -1
- package/es/react/prompt-line.d.ts +13 -6
- package/es/react/prompt-line.js +5 -9
- package/es/react/prompt-line.js.map +1 -1
- package/es/react/reasoning-step.d.ts +8 -2
- package/es/react/reasoning-step.js +6 -5
- package/es/react/reasoning-step.js.map +1 -1
- package/es/react/reasoning-steps-toggle.d.ts +6 -3
- package/es/react/reasoning-steps-toggle.js +5 -5
- package/es/react/reasoning-steps-toggle.js.map +1 -1
- package/es/react/reasoning-steps.d.ts +7 -2
- package/es/react/reasoning-steps.js +9 -5
- package/es/react/reasoning-steps.js.map +1 -1
- package/es/react/stop-streaming-button.d.ts +2 -2
- package/es/react/stop-streaming-button.js +5 -5
- package/es/react/stop-streaming-button.js.map +1 -1
- package/es/react/table.d.ts +3 -3
- package/es/react/table.js +5 -5
- package/es/react/table.js.map +1 -1
- package/es/react/tool-call-data.d.ts +2 -2
- package/es/react/tool-call-data.js +5 -5
- package/es/react/tool-call-data.js.map +1 -1
- package/es/react/toolbar.d.ts +8 -3
- package/es/react/toolbar.js +9 -7
- package/es/react/toolbar.js.map +1 -1
- package/es/react/transcript.d.ts +4 -2
- package/es/react/transcript.js +4 -3
- package/es/react/transcript.js.map +1 -1
- package/es/react/truncated-text.d.ts +2 -2
- package/es/react/truncated-text.js +5 -5
- package/es/react/truncated-text.js.map +1 -1
- package/es/react/user-avatar.d.ts +3 -0
- package/es/react/user-avatar.js +28 -0
- package/es/react/user-avatar.js.map +1 -0
- package/es/react/user-message-content.d.ts +3 -0
- package/es/react/user-message-content.js +28 -0
- package/es/react/user-message-content.js.map +1 -0
- package/es/react/utils/transformSuggestionConfig.d.ts +1 -1
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es/react/video-player.d.ts +9 -2
- package/es/react/video-player.js +6 -6
- package/es/react/video-player.js.map +1 -1
- package/es/react/workspace-shell.d.ts +11 -5
- package/es/react/workspace-shell.js +20 -17
- package/es/react/workspace-shell.js.map +1 -1
- package/es/testing/load-all-lazy-deps.d.ts +1 -1
- package/es/testing/load-all-lazy-deps.js +2 -2
- package/es/testing/load-all-lazy-deps.js.map +1 -1
- package/es/typings/overflow-menu.d.ts +21 -10
- package/package.json +67 -27
- package/scss/_markdown-inline.scss +1 -1
- package/scss/_modifiers.scss +2 -2
- package/scss/_utilities.scss +3 -3
- package/scss/vars.scss +1 -1
- package/telemetry.yml +18 -0
- package/LICENSE +0 -201
- package/es/components/markdown/__tests__/inline-selection-fixture.d.ts +0 -13
- package/es/components/markdown/src/inline-markdown.scss.js +0 -13
- package/es/components/markdown/src/inline-markdown.scss.js.map +0 -1
- package/es/components/markdown/src/inline-run-projection.scss.js +0 -13
- package/es/components/markdown/src/inline-run-projection.scss.js.map +0 -1
- package/es/components/prompt-line/src/__tests__/wait-for-rich.d.ts +0 -20
- package/es/components/shared/dynamic-css-var-sheet.d.ts +0 -34
- package/es/components/shared/dynamic-css-var-sheet.js +0 -215
- package/es/components/shared/dynamic-css-var-sheet.js.map +0 -1
- package/es/components/shared/media-utils/script-loader.d.ts +0 -36
- package/es/components/shared/media-utils/script-loader.js +0 -80
- package/es/components/shared/media-utils/script-loader.js.map +0 -1
- package/es/globals/decorators/carbon-element.d.ts +0 -37
- package/es/globals/decorators/carbon-element.js +0 -67
- package/es/globals/decorators/carbon-element.js.map +0 -1
- package/es/globals/decorators/index.d.ts +0 -1
- package/es/globals/decorators/index.js +0 -9
- package/es/globals/decorators/index.js.map +0 -1
- package/es/react/utils/withWebComponentBridge.d.ts +0 -18
- package/es/react/utils/withWebComponentBridge.js +0 -143
- package/es/react/utils/withWebComponentBridge.js.map +0 -1
- package/es-custom/components/audio-player/index.d.ts +0 -12
- package/es-custom/components/audio-player/index.js +0 -10
- package/es-custom/components/audio-player/src/audio-player.d.ts +0 -132
- package/es-custom/components/audio-player/src/audio-player.js +0 -393
- package/es-custom/components/audio-player/src/audio-player.js.map +0 -1
- package/es-custom/components/audio-player/src/audio-player.scss.js +0 -13
- package/es-custom/components/audio-player/src/audio-player.scss.js.map +0 -1
- package/es-custom/components/audio-player/src/providers/base-provider.js.map +0 -1
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +0 -1
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +0 -200
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +0 -1
- package/es-custom/components/audio-player/src/transcript.d.ts +0 -58
- package/es-custom/components/audio-player/src/transcript.js +0 -163
- package/es-custom/components/audio-player/src/transcript.js.map +0 -1
- package/es-custom/components/audio-player/src/transcript.scss.js +0 -13
- package/es-custom/components/audio-player/src/transcript.scss.js.map +0 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js.map +0 -1
- package/es-custom/components/card/index.d.ts +0 -11
- package/es-custom/components/card/index.js +0 -11
- package/es-custom/components/card/index.js.map +0 -1
- package/es-custom/components/card/src/card-footer.d.ts +0 -44
- package/es-custom/components/card/src/card-footer.js +0 -139
- package/es-custom/components/card/src/card-footer.js.map +0 -1
- package/es-custom/components/card/src/card-footer.scss.js +0 -13
- package/es-custom/components/card/src/card-footer.scss.js.map +0 -1
- package/es-custom/components/card/src/card-steps.d.ts +0 -29
- package/es-custom/components/card/src/card-steps.js +0 -91
- package/es-custom/components/card/src/card-steps.js.map +0 -1
- package/es-custom/components/card/src/card-steps.scss.js +0 -13
- package/es-custom/components/card/src/card-steps.scss.js.map +0 -1
- package/es-custom/components/card/src/card.d.ts +0 -28
- package/es-custom/components/card/src/card.js +0 -66
- package/es-custom/components/card/src/card.js.map +0 -1
- package/es-custom/components/card/src/card.scss.js +0 -13
- package/es-custom/components/card/src/card.scss.js.map +0 -1
- package/es-custom/components/carousel/index.d.ts +0 -9
- package/es-custom/components/carousel/index.js +0 -9
- package/es-custom/components/carousel/index.js.map +0 -1
- package/es-custom/components/carousel/src/carousel.d.ts +0 -39
- package/es-custom/components/carousel/src/carousel.js +0 -130
- package/es-custom/components/carousel/src/carousel.js.map +0 -1
- package/es-custom/components/carousel/src/carousel.scss.js +0 -13
- package/es-custom/components/carousel/src/carousel.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/defs.js.map +0 -1
- package/es-custom/components/chain-of-thought/index.d.ts +0 -10
- package/es-custom/components/chain-of-thought/index.js +0 -13
- package/es-custom/components/chain-of-thought/index.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +0 -47
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +0 -348
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +0 -37
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +0 -108
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +0 -45
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +0 -136
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +0 -37
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +0 -178
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js.map +0 -1
- package/es-custom/components/chat-button/defs.js.map +0 -1
- package/es-custom/components/chat-button/index.d.ts +0 -10
- package/es-custom/components/chat-button/index.js +0 -10
- package/es-custom/components/chat-button/src/chat-button-skeleton.d.ts +0 -30
- package/es-custom/components/chat-button/src/chat-button-skeleton.js +0 -41
- package/es-custom/components/chat-button/src/chat-button-skeleton.js.map +0 -1
- package/es-custom/components/chat-button/src/chat-button.d.ts +0 -43
- package/es-custom/components/chat-button/src/chat-button.js +0 -113
- package/es-custom/components/chat-button/src/chat-button.js.map +0 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +0 -13
- package/es-custom/components/chat-button/src/chat-button.scss.js.map +0 -1
- package/es-custom/components/chat-history/index.d.ts +0 -11
- package/es-custom/components/chat-history/index.js +0 -19
- package/es-custom/components/chat-history/index.js.map +0 -1
- package/es-custom/components/chat-history/src/chat-history.scss.js +0 -13
- package/es-custom/components/chat-history/src/history-content.d.ts +0 -25
- package/es-custom/components/chat-history/src/history-content.js +0 -76
- package/es-custom/components/chat-history/src/history-content.js.map +0 -1
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +0 -36
- package/es-custom/components/chat-history/src/history-delete-panel.js +0 -143
- package/es-custom/components/chat-history/src/history-delete-panel.js.map +0 -1
- package/es-custom/components/chat-history/src/history-header.d.ts +0 -34
- package/es-custom/components/chat-history/src/history-header.js +0 -98
- package/es-custom/components/chat-history/src/history-header.js.map +0 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +0 -18
- package/es-custom/components/chat-history/src/history-loading.js +0 -62
- package/es-custom/components/chat-history/src/history-loading.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +0 -130
- package/es-custom/components/chat-history/src/history-panel-item-input.js +0 -281
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +0 -142
- package/es-custom/components/chat-history/src/history-panel-item.js +0 -413
- package/es-custom/components/chat-history/src/history-panel-item.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +0 -13
- package/es-custom/components/chat-history/src/history-panel-items.js +0 -41
- package/es-custom/components/chat-history/src/history-panel-items.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +0 -12
- package/es-custom/components/chat-history/src/history-panel-menu.js +0 -37
- package/es-custom/components/chat-history/src/history-panel-menu.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +0 -27
- package/es-custom/components/chat-history/src/history-panel.js +0 -68
- package/es-custom/components/chat-history/src/history-panel.js.map +0 -1
- package/es-custom/components/chat-history/src/history-search-item.d.ts +0 -43
- package/es-custom/components/chat-history/src/history-search-item.js +0 -95
- package/es-custom/components/chat-history/src/history-search-item.js.map +0 -1
- package/es-custom/components/chat-history/src/history-shell.d.ts +0 -23
- package/es-custom/components/chat-history/src/history-shell.js +0 -89
- package/es-custom/components/chat-history/src/history-shell.js.map +0 -1
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +0 -89
- package/es-custom/components/chat-history/src/history-toolbar.js +0 -108
- package/es-custom/components/chat-history/src/history-toolbar.js.map +0 -1
- package/es-custom/components/chat-shell/index.d.ts +0 -12
- package/es-custom/components/chat-shell/index.js +0 -11
- package/es-custom/components/chat-shell/index.js.map +0 -1
- package/es-custom/components/chat-shell/src/chat-header.d.ts +0 -177
- package/es-custom/components/chat-shell/src/chat-header.js +0 -414
- package/es-custom/components/chat-shell/src/chat-header.js.map +0 -1
- package/es-custom/components/chat-shell/src/chat-header.scss.js +0 -13
- package/es-custom/components/chat-shell/src/chat-header.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +0 -101
- package/es-custom/components/chat-shell/src/corner-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/initialization-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +0 -39
- package/es-custom/components/chat-shell/src/panel-manager.js +0 -259
- package/es-custom/components/chat-shell/src/panel-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/panel.d.ts +0 -93
- package/es-custom/components/chat-shell/src/panel.js +0 -527
- package/es-custom/components/chat-shell/src/panel.js.map +0 -1
- package/es-custom/components/chat-shell/src/panel.scss.js +0 -13
- package/es-custom/components/chat-shell/src/panel.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/shell.d.ts +0 -133
- package/es-custom/components/chat-shell/src/shell.js +0 -872
- package/es-custom/components/chat-shell/src/shell.js.map +0 -1
- package/es-custom/components/chat-shell/src/shell.scss.js +0 -13
- package/es-custom/components/chat-shell/src/shell.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/slot-observer.js.map +0 -1
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +0 -1
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +0 -173
- package/es-custom/components/chat-shell/src/workspace-manager.js +0 -717
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +0 -1
- package/es-custom/components/code-snippet/index.d.ts +0 -4
- package/es-custom/components/code-snippet/index.js +0 -10
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +0 -207
- package/es-custom/components/code-snippet/src/code-snippet.js +0 -982
- package/es-custom/components/code-snippet/src/code-snippet.js.map +0 -1
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +0 -13
- package/es-custom/components/code-snippet/src/code-snippet.scss.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +0 -30
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +0 -80
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js.map +0 -1
- package/es-custom/components/code-snippet/src/dom-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/formatters.js +0 -19
- package/es-custom/components/code-snippet/src/formatters.js.map +0 -1
- package/es-custom/components/code-snippet/src/layout-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/streaming-manager.js.map +0 -1
- package/es-custom/components/conversational-search/index.d.ts +0 -9
- package/es-custom/components/conversational-search/index.js +0 -9
- package/es-custom/components/conversational-search/index.js.map +0 -1
- package/es-custom/components/conversational-search/src/citation-utils.d.ts +0 -24
- package/es-custom/components/conversational-search/src/citation-utils.js +0 -46
- package/es-custom/components/conversational-search/src/citation-utils.js.map +0 -1
- package/es-custom/components/conversational-search/src/conversational-search-shell.d.ts +0 -41
- package/es-custom/components/conversational-search/src/conversational-search-shell.js +0 -116
- package/es-custom/components/conversational-search/src/conversational-search-shell.js.map +0 -1
- package/es-custom/components/conversational-search/src/conversational-search-shell.scss.js +0 -13
- package/es-custom/components/conversational-search/src/conversational-search-shell.scss.js.map +0 -1
- package/es-custom/components/feedback/index.d.ts +0 -4
- package/es-custom/components/feedback/index.js +0 -10
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +0 -68
- package/es-custom/components/feedback/src/feedback-buttons.js +0 -189
- package/es-custom/components/feedback/src/feedback-buttons.js.map +0 -1
- package/es-custom/components/feedback/src/feedback-buttons.scss.js +0 -13
- package/es-custom/components/feedback/src/feedback-buttons.scss.js.map +0 -1
- package/es-custom/components/feedback/src/feedback.d.ts +0 -141
- package/es-custom/components/feedback/src/feedback.js +0 -340
- package/es-custom/components/feedback/src/feedback.js.map +0 -1
- package/es-custom/components/feedback/src/feedback.scss.js +0 -13
- package/es-custom/components/feedback/src/feedback.scss.js.map +0 -1
- package/es-custom/components/file-uploads/index.d.ts +0 -13
- package/es-custom/components/file-uploads/index.js +0 -10
- package/es-custom/components/file-uploads/index.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +0 -117
- package/es-custom/components/file-uploads/src/file-upload-item.js +0 -442
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js +0 -13
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +0 -116
- package/es-custom/components/file-uploads/src/file-uploads.js +0 -291
- package/es-custom/components/file-uploads/src/file-uploads.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +0 -13
- package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +0 -1
- package/es-custom/components/launcher/index.d.ts +0 -9
- package/es-custom/components/launcher/index.js +0 -9
- package/es-custom/components/launcher/index.js.map +0 -1
- package/es-custom/components/launcher/src/launcher.d.ts +0 -68
- package/es-custom/components/launcher/src/launcher.js +0 -153
- package/es-custom/components/launcher/src/launcher.js.map +0 -1
- package/es-custom/components/launcher/src/launcher.scss.js +0 -13
- package/es-custom/components/launcher/src/launcher.scss.js.map +0 -1
- package/es-custom/components/markdown/__tests__/inline-selection-fixture.d.ts +0 -13
- package/es-custom/components/markdown/index.d.ts +0 -8
- package/es-custom/components/markdown/index.js +0 -13
- package/es-custom/components/markdown/index.js.map +0 -1
- package/es-custom/components/markdown/src/inline-markdown.d.ts +0 -41
- package/es-custom/components/markdown/src/inline-markdown.js +0 -92
- package/es-custom/components/markdown/src/inline-markdown.js.map +0 -1
- package/es-custom/components/markdown/src/inline-markdown.scss.js +0 -13
- package/es-custom/components/markdown/src/inline-run-projection.scss.js +0 -13
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +0 -395
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +0 -26
- package/es-custom/components/markdown/src/markdown-renderer.js +0 -640
- package/es-custom/components/markdown/src/markdown-renderer.js.map +0 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +0 -357
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +0 -1
- package/es-custom/components/markdown/src/markdown.d.ts +0 -139
- package/es-custom/components/markdown/src/markdown.js +0 -870
- package/es-custom/components/markdown/src/markdown.js.map +0 -1
- package/es-custom/components/markdown/src/markdown.scss.js +0 -13
- package/es-custom/components/markdown/src/markdown.scss.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +0 -76
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +0 -1
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +0 -5
- package/es-custom/components/markdown/src/utils/html-helpers.js.map +0 -1
- package/es-custom/components/markdown/src/utils/inline-run-projection.d.ts +0 -15
- package/es-custom/components/markdown/src/utils/inline-run-projection.js +0 -196
- package/es-custom/components/markdown/src/utils/inline-run-projection.js.map +0 -1
- package/es-custom/components/markdown/src/utils/inline-validation.js.map +0 -1
- package/es-custom/components/markdown/src/utils/lit-directives.js.map +0 -1
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +0 -238
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +0 -1
- package/es-custom/components/markdown/src/utils/plugin-host-container.d.ts +0 -159
- package/es-custom/components/markdown/src/utils/plugin-host-container.js +0 -165
- package/es-custom/components/markdown/src/utils/plugin-host-container.js.map +0 -1
- package/es-custom/components/markdown/src/utils/slot-names.js +0 -83
- package/es-custom/components/markdown/src/utils/slot-names.js.map +0 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js.map +0 -1
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +0 -32
- package/es-custom/components/markdown/src/utils/table-helpers.js +0 -203
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +0 -1
- package/es-custom/components/messages-shell/index.d.ts +0 -11
- package/es-custom/components/messages-shell/index.js +0 -9
- package/es-custom/components/messages-shell/index.js.map +0 -1
- package/es-custom/components/messages-shell/src/messages-shell.d.ts +0 -57
- package/es-custom/components/messages-shell/src/messages-shell.js +0 -141
- package/es-custom/components/messages-shell/src/messages-shell.js.map +0 -1
- package/es-custom/components/messages-shell/src/messages-shell.scss.js +0 -13
- package/es-custom/components/messages-shell/src/messages-shell.scss.js.map +0 -1
- package/es-custom/components/processing/index.d.ts +0 -1
- package/es-custom/components/processing/index.js +0 -9
- package/es-custom/components/processing/index.js.map +0 -1
- package/es-custom/components/processing/src/processing.d.ts +0 -23
- package/es-custom/components/processing/src/processing.js +0 -68
- package/es-custom/components/processing/src/processing.js.map +0 -1
- package/es-custom/components/processing/src/processing.scss.js +0 -13
- package/es-custom/components/processing/src/processing.scss.js.map +0 -1
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +0 -12
- package/es-custom/components/prompt-line/autocomplete/index.js +0 -9
- package/es-custom/components/prompt-line/autocomplete/index.js.map +0 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +0 -212
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +0 -621
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +0 -13
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +0 -1
- package/es-custom/components/prompt-line/index.d.ts +0 -27
- package/es-custom/components/prompt-line/index.js +0 -31
- package/es-custom/components/prompt-line/index.js.map +0 -1
- package/es-custom/components/prompt-line/src/__tests__/wait-for-rich.d.ts +0 -20
- package/es-custom/components/prompt-line/src/autocomplete-controller-element.d.ts +0 -84
- package/es-custom/components/prompt-line/src/autocomplete-controller-element.js +0 -274
- package/es-custom/components/prompt-line/src/autocomplete-controller-element.js.map +0 -1
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +0 -148
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +0 -503
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +0 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +0 -46
- package/es-custom/components/prompt-line/src/error-message.js +0 -134
- package/es-custom/components/prompt-line/src/error-message.js.map +0 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +0 -13
- package/es-custom/components/prompt-line/src/error-message.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +0 -35
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +0 -42
- package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +0 -122
- package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +0 -441
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +0 -114
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +0 -267
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +0 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +0 -88
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js +0 -388
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +0 -197
- package/es-custom/components/prompt-line/src/prompt-line.js +0 -554
- package/es-custom/components/prompt-line/src/prompt-line.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line.scss.js +0 -13
- package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +0 -53
- package/es-custom/components/prompt-line/src/send-control.js +0 -184
- package/es-custom/components/prompt-line/src/send-control.js.map +0 -1
- package/es-custom/components/prompt-line/src/send-control.scss.js +0 -13
- package/es-custom/components/prompt-line/src/send-control.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +0 -42
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +0 -92
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +0 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +0 -13
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +0 -47
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +0 -36
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +0 -112
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +0 -34
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +0 -99
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +0 -17
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +0 -46
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +0 -83
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.d.ts +0 -64
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js +0 -80
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +0 -37
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +0 -31
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +0 -58
- package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +0 -87
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +0 -41
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +0 -92
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/resolve-config-items.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +0 -41
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +0 -68
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +0 -229
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +0 -30
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +0 -104
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +0 -25
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +0 -65
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +0 -1
- package/es-custom/components/prompt-line/src/types.d.ts +0 -100
- package/es-custom/components/prompt-line/src/types.js.map +0 -1
- package/es-custom/components/reasoning-steps/index.d.ts +0 -4
- package/es-custom/components/reasoning-steps/index.js +0 -11
- package/es-custom/components/reasoning-steps/index.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +0 -50
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +0 -294
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +0 -13
- package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +0 -40
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +0 -107
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +0 -13
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +0 -47
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +0 -169
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js +0 -13
- package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js.map +0 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js.map +0 -1
- package/es-custom/components/shared/media-utils/script-loader.js.map +0 -1
- package/es-custom/components/table/index.d.ts +0 -3
- package/es-custom/components/table/index.js +0 -9
- package/es-custom/components/table/index.js.map +0 -1
- package/es-custom/components/table/src/table-loader.js.map +0 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +0 -27
- package/es-custom/components/table/src/table-pagination.template.js +0 -55
- package/es-custom/components/table/src/table-pagination.template.js.map +0 -1
- package/es-custom/components/table/src/table-skeleton.template.d.ts +0 -6
- package/es-custom/components/table/src/table-skeleton.template.js +0 -35
- package/es-custom/components/table/src/table-skeleton.template.js.map +0 -1
- package/es-custom/components/table/src/table.d.ts +0 -210
- package/es-custom/components/table/src/table.js +0 -641
- package/es-custom/components/table/src/table.js.map +0 -1
- package/es-custom/components/table/src/table.scss.js +0 -13
- package/es-custom/components/table/src/table.scss.js.map +0 -1
- package/es-custom/components/table/src/table.template.d.ts +0 -10
- package/es-custom/components/table/src/table.template.js +0 -96
- package/es-custom/components/table/src/table.template.js.map +0 -1
- package/es-custom/components/toolbar/index.d.ts +0 -1
- package/es-custom/components/toolbar/index.js +0 -9
- package/es-custom/components/toolbar/index.js.map +0 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +0 -85
- package/es-custom/components/toolbar/src/toolbar.js +0 -386
- package/es-custom/components/toolbar/src/toolbar.js.map +0 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +0 -13
- package/es-custom/components/toolbar/src/toolbar.scss.js.map +0 -1
- package/es-custom/components/truncated-text/index.d.ts +0 -9
- package/es-custom/components/truncated-text/index.js +0 -9
- package/es-custom/components/truncated-text/index.js.map +0 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +0 -84
- package/es-custom/components/truncated-text/src/truncated-text.js +0 -295
- package/es-custom/components/truncated-text/src/truncated-text.js.map +0 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +0 -13
- package/es-custom/components/truncated-text/src/truncated-text.scss.js.map +0 -1
- package/es-custom/components/video-player/index.d.ts +0 -10
- package/es-custom/components/video-player/index.js +0 -9
- package/es-custom/components/video-player/index.js.map +0 -1
- package/es-custom/components/video-player/src/providers/base-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +0 -192
- package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/native-video-provider.js +0 -158
- package/es-custom/components/video-player/src/providers/native-video-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +0 -194
- package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/youtube-provider.js +0 -215
- package/es-custom/components/video-player/src/providers/youtube-provider.js.map +0 -1
- package/es-custom/components/video-player/src/utils/url-detector.js.map +0 -1
- package/es-custom/components/video-player/src/video-player.d.ts +0 -145
- package/es-custom/components/video-player/src/video-player.js +0 -419
- package/es-custom/components/video-player/src/video-player.js.map +0 -1
- package/es-custom/components/video-player/src/video-player.scss.js +0 -13
- package/es-custom/components/video-player/src/video-player.scss.js.map +0 -1
- package/es-custom/components/workspace-shell/index.d.ts +0 -4
- package/es-custom/components/workspace-shell/index.js +0 -12
- package/es-custom/components/workspace-shell/index.js.map +0 -1
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +0 -17
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +0 -52
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +0 -38
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +0 -150
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +0 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +0 -38
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +0 -150
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +0 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +0 -30
- package/es-custom/components/workspace-shell/src/workspace-shell.js +0 -133
- package/es-custom/components/workspace-shell/src/workspace-shell.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +0 -13
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js.map +0 -1
- package/es-custom/globals/decorators/carbon-element.d.ts +0 -37
- package/es-custom/globals/decorators/carbon-element.js +0 -67
- package/es-custom/globals/decorators/carbon-element.js.map +0 -1
- package/es-custom/globals/decorators/index.d.ts +0 -1
- package/es-custom/globals/decorators/index.js +0 -9
- package/es-custom/globals/decorators/index.js.map +0 -1
- package/es-custom/globals/scss/common.scss.js +0 -13
- package/es-custom/globals/scss/common.scss.js.map +0 -1
- package/es-custom/globals/settings.d.ts +0 -2
- package/es-custom/globals/settings.js +0 -20
- package/es-custom/globals/settings.js.map +0 -1
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +0 -118
- package/es-custom/globals/utils/aria-announcer-manager.js +0 -170
- package/es-custom/globals/utils/aria-announcer-manager.js.map +0 -1
- package/es-custom/globals/utils/browser-utils.d.ts +0 -8
- package/es-custom/globals/utils/browser-utils.js +0 -37
- package/es-custom/globals/utils/browser-utils.js.map +0 -1
- package/es-custom/globals/utils/csv.d.ts +0 -7
- package/es-custom/globals/utils/csv.js +0 -37
- package/es-custom/globals/utils/csv.js.map +0 -1
- package/es-custom/globals/utils/dom-utils.d.ts +0 -6
- package/es-custom/globals/utils/dom-utils.js +0 -39
- package/es-custom/globals/utils/dom-utils.js.map +0 -1
- package/es-custom/globals/utils/focus-utils.d.ts +0 -69
- package/es-custom/globals/utils/focus-utils.js +0 -202
- package/es-custom/globals/utils/focus-utils.js.map +0 -1
- package/es-custom/globals/utils/iconTransform.d.ts +0 -51
- package/es-custom/globals/utils/iconTransform.js +0 -196
- package/es-custom/globals/utils/iconTransform.js.map +0 -1
- package/es-custom/globals/utils/rtl-utils.d.ts +0 -7
- package/es-custom/globals/utils/rtl-utils.js +0 -30
- package/es-custom/globals/utils/rtl-utils.js.map +0 -1
- package/es-custom/globals/utils/uuid.d.ts +0 -5
- package/es-custom/globals/utils/uuid.js +0 -32
- package/es-custom/globals/utils/uuid.js.map +0 -1
- package/es-custom/react/ai-label-action-button.d.ts +0 -3
- package/es-custom/react/ai-label-action-button.js +0 -27
- package/es-custom/react/ai-label-action-button.js.map +0 -1
- package/es-custom/react/audio-player.d.ts +0 -12
- package/es-custom/react/audio-player.js +0 -34
- package/es-custom/react/audio-player.js.map +0 -1
- package/es-custom/react/autocomplete.d.ts +0 -11
- package/es-custom/react/autocomplete.js +0 -36
- package/es-custom/react/autocomplete.js.map +0 -1
- package/es-custom/react/card.d.ts +0 -6
- package/es-custom/react/card.js +0 -43
- package/es-custom/react/card.js.map +0 -1
- package/es-custom/react/carousel.d.ts +0 -4
- package/es-custom/react/carousel.js +0 -31
- package/es-custom/react/carousel.js.map +0 -1
- package/es-custom/react/chain-of-thought-step.d.ts +0 -3
- package/es-custom/react/chain-of-thought-step.js +0 -32
- package/es-custom/react/chain-of-thought-step.js.map +0 -1
- package/es-custom/react/chain-of-thought-toggle.d.ts +0 -5
- package/es-custom/react/chain-of-thought-toggle.js +0 -31
- package/es-custom/react/chain-of-thought-toggle.js.map +0 -1
- package/es-custom/react/chain-of-thought.d.ts +0 -6
- package/es-custom/react/chain-of-thought.js +0 -33
- package/es-custom/react/chain-of-thought.js.map +0 -1
- package/es-custom/react/chat-button-skeleton.d.ts +0 -11
- package/es-custom/react/chat-button-skeleton.js +0 -28
- package/es-custom/react/chat-button-skeleton.js.map +0 -1
- package/es-custom/react/chat-button.d.ts +0 -13
- package/es-custom/react/chat-button.js +0 -30
- package/es-custom/react/chat-button.js.map +0 -1
- package/es-custom/react/chat-header.d.ts +0 -73
- package/es-custom/react/chat-header.js +0 -55
- package/es-custom/react/chat-header.js.map +0 -1
- package/es-custom/react/chat-shell.d.ts +0 -11
- package/es-custom/react/chat-shell.js +0 -31
- package/es-custom/react/chat-shell.js.map +0 -1
- package/es-custom/react/code-snippet.d.ts +0 -37
- package/es-custom/react/code-snippet.js +0 -87
- package/es-custom/react/code-snippet.js.map +0 -1
- package/es-custom/react/conversational-search-shell.d.ts +0 -12
- package/es-custom/react/conversational-search-shell.js +0 -32
- package/es-custom/react/conversational-search-shell.js.map +0 -1
- package/es-custom/react/error-message.d.ts +0 -11
- package/es-custom/react/error-message.js +0 -28
- package/es-custom/react/error-message.js.map +0 -1
- package/es-custom/react/feedback-buttons.d.ts +0 -3
- package/es-custom/react/feedback-buttons.js +0 -31
- package/es-custom/react/feedback-buttons.js.map +0 -1
- package/es-custom/react/feedback.d.ts +0 -5
- package/es-custom/react/feedback.js +0 -32
- package/es-custom/react/feedback.js.map +0 -1
- package/es-custom/react/file-upload-item.d.ts +0 -11
- package/es-custom/react/file-upload-item.js +0 -31
- package/es-custom/react/file-upload-item.js.map +0 -1
- package/es-custom/react/file-uploads.d.ts +0 -11
- package/es-custom/react/file-uploads.js +0 -31
- package/es-custom/react/file-uploads.js.map +0 -1
- package/es-custom/react/history/history-content.d.ts +0 -3
- package/es-custom/react/history/history-content.js +0 -28
- package/es-custom/react/history/history-content.js.map +0 -1
- package/es-custom/react/history/history-delete-panel.d.ts +0 -3
- package/es-custom/react/history/history-delete-panel.js +0 -32
- package/es-custom/react/history/history-delete-panel.js.map +0 -1
- package/es-custom/react/history/history-header.d.ts +0 -3
- package/es-custom/react/history/history-header.js +0 -31
- package/es-custom/react/history/history-header.js.map +0 -1
- package/es-custom/react/history/history-loading.d.ts +0 -3
- package/es-custom/react/history/history-loading.js +0 -28
- package/es-custom/react/history/history-loading.js.map +0 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +0 -3
- package/es-custom/react/history/history-panel-item-input.js +0 -33
- package/es-custom/react/history/history-panel-item-input.js.map +0 -1
- package/es-custom/react/history/history-panel-item.d.ts +0 -3
- package/es-custom/react/history/history-panel-item.js +0 -35
- package/es-custom/react/history/history-panel-item.js.map +0 -1
- package/es-custom/react/history/history-panel-items.d.ts +0 -3
- package/es-custom/react/history/history-panel-items.js +0 -28
- package/es-custom/react/history/history-panel-items.js.map +0 -1
- package/es-custom/react/history/history-panel-menu.d.ts +0 -3
- package/es-custom/react/history/history-panel-menu.js +0 -28
- package/es-custom/react/history/history-panel-menu.js.map +0 -1
- package/es-custom/react/history/history-panel.d.ts +0 -3
- package/es-custom/react/history/history-panel.js +0 -28
- package/es-custom/react/history/history-panel.js.map +0 -1
- package/es-custom/react/history/history-search-item.d.ts +0 -3
- package/es-custom/react/history/history-search-item.js +0 -31
- package/es-custom/react/history/history-search-item.js.map +0 -1
- package/es-custom/react/history/history-shell.d.ts +0 -3
- package/es-custom/react/history/history-shell.js +0 -28
- package/es-custom/react/history/history-shell.js.map +0 -1
- package/es-custom/react/history/history-toolbar.d.ts +0 -3
- package/es-custom/react/history/history-toolbar.js +0 -32
- package/es-custom/react/history/history-toolbar.js.map +0 -1
- package/es-custom/react/history/index.d.ts +0 -12
- package/es-custom/react/history/index.js +0 -20
- package/es-custom/react/history/index.js.map +0 -1
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +0 -51
- package/es-custom/react/hooks/useChatAutocomplete.js +0 -254
- package/es-custom/react/hooks/useChatAutocomplete.js.map +0 -1
- package/es-custom/react/input-send-control.d.ts +0 -11
- package/es-custom/react/input-send-control.js +0 -32
- package/es-custom/react/input-send-control.js.map +0 -1
- package/es-custom/react/launcher.d.ts +0 -11
- package/es-custom/react/launcher.js +0 -31
- package/es-custom/react/launcher.js.map +0 -1
- package/es-custom/react/markdown.d.ts +0 -56
- package/es-custom/react/markdown.js +0 -163
- package/es-custom/react/markdown.js.map +0 -1
- package/es-custom/react/messages-shell.d.ts +0 -3
- package/es-custom/react/messages-shell.js +0 -32
- package/es-custom/react/messages-shell.js.map +0 -1
- package/es-custom/react/panel.d.ts +0 -3
- package/es-custom/react/panel.js +0 -35
- package/es-custom/react/panel.js.map +0 -1
- package/es-custom/react/processing.d.ts +0 -3
- package/es-custom/react/processing.js +0 -28
- package/es-custom/react/processing.js.map +0 -1
- package/es-custom/react/prompt-line-shell.d.ts +0 -18
- package/es-custom/react/prompt-line-shell.js +0 -36
- package/es-custom/react/prompt-line-shell.js.map +0 -1
- package/es-custom/react/prompt-line.d.ts +0 -26
- package/es-custom/react/prompt-line.js +0 -53
- package/es-custom/react/prompt-line.js.map +0 -1
- package/es-custom/react/reasoning-step.d.ts +0 -3
- package/es-custom/react/reasoning-step.js +0 -32
- package/es-custom/react/reasoning-step.js.map +0 -1
- package/es-custom/react/reasoning-steps-toggle.d.ts +0 -5
- package/es-custom/react/reasoning-steps-toggle.js +0 -31
- package/es-custom/react/reasoning-steps-toggle.js.map +0 -1
- package/es-custom/react/reasoning-steps.d.ts +0 -3
- package/es-custom/react/reasoning-steps.js +0 -28
- package/es-custom/react/reasoning-steps.js.map +0 -1
- package/es-custom/react/stop-streaming-button.d.ts +0 -11
- package/es-custom/react/stop-streaming-button.js +0 -28
- package/es-custom/react/stop-streaming-button.js.map +0 -1
- package/es-custom/react/table.d.ts +0 -4
- package/es-custom/react/table.js +0 -28
- package/es-custom/react/table.js.map +0 -1
- package/es-custom/react/tool-call-data.d.ts +0 -3
- package/es-custom/react/tool-call-data.js +0 -28
- package/es-custom/react/tool-call-data.js.map +0 -1
- package/es-custom/react/toolbar.d.ts +0 -20
- package/es-custom/react/toolbar.js +0 -80
- package/es-custom/react/toolbar.js.map +0 -1
- package/es-custom/react/transcript.d.ts +0 -14
- package/es-custom/react/transcript.js +0 -31
- package/es-custom/react/transcript.js.map +0 -1
- package/es-custom/react/truncated-text.d.ts +0 -12
- package/es-custom/react/truncated-text.js +0 -28
- package/es-custom/react/truncated-text.js.map +0 -1
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +0 -21
- package/es-custom/react/utils/transformSuggestionConfig.js +0 -67
- package/es-custom/react/utils/transformSuggestionConfig.js.map +0 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +0 -18
- package/es-custom/react/utils/withWebComponentBridge.js +0 -143
- package/es-custom/react/utils/withWebComponentBridge.js.map +0 -1
- package/es-custom/react/video-player.d.ts +0 -12
- package/es-custom/react/video-player.js +0 -34
- package/es-custom/react/video-player.js.map +0 -1
- package/es-custom/react/workspace-shell.d.ts +0 -7
- package/es-custom/react/workspace-shell.js +0 -49
- package/es-custom/react/workspace-shell.js.map +0 -1
- package/es-custom/testing/PageObjectId.d.ts +0 -18
- package/es-custom/testing/PageObjectId.js +0 -37
- package/es-custom/testing/PageObjectId.js.map +0 -1
- package/es-custom/testing/load-all-lazy-deps.d.ts +0 -9
- package/es-custom/testing/load-all-lazy-deps.js +0 -30
- package/es-custom/testing/load-all-lazy-deps.js.map +0 -1
- package/es-custom/typings/overflow-menu.d.ts +0 -34
- package/es-custom/typings/overflow-menu.js +0 -8
- package/es-custom/typings/overflow-menu.js.map +0 -1
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/base-provider.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/base-provider.js +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/native-audio-provider.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/native-audio-provider.js +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/soundcloud-provider.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/utils/url-detector.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/utils/url-detector.js +0 -0
- /package/{es-custom/components/chat-button → es/components/aichat-button}/defs.d.ts +0 -0
- /package/{es-custom/components/chat-button → es/components/aichat-button}/defs.js +0 -0
- /package/{es-custom/components/chain-of-thought → es/components/aichat-chain-of-thought}/defs.d.ts +0 -0
- /package/{es-custom/components/chain-of-thought → es/components/aichat-chain-of-thought}/defs.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/base-setup.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/base-setup.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-loader.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-loader.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-runtime.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-runtime.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-runtime.js.map +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/content-sync.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/content-sync.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/detect-language.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/detect-language.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/editor-manager.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/editor-manager.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-controller.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-controller.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-data.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-data.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/marker-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/marker-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/theme.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/theme.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/dom-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/dom-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/formatters.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/layout-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/layout-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/streaming-manager.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/streaming-manager.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-file-uploads}/file-type-icon.d.ts +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-file-uploads}/file-type-icon.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-file-uploads}/types.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-file-uploads}/types.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-file-uploads}/types.js.map +0 -0
- /package/{es-custom/components/chat-history/src → es/components/aichat-history}/chat-history.scss.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/inline-markdown.scss.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/inline-run-projection.scss.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/markdown-renderer-types.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/markdown-renderer-types.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/markdown-token-tree.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-attrs.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-attrs.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-highlight.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-highlight.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-task-lists.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/html-helpers.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/inline-validation.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/inline-validation.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/lit-directives.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/lit-directives.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/plugin-fallback.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/slot-names.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/streaming-table.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/streaming-table.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-controller.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-controller.js.map +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-mouse-focus.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-mouse-focus.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-rich-loader.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-rich-loader.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-rich-runtime.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/build-extensions.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/carbon-mention.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/carbon-mention.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/editor-styles.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/index.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/index.js.map +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/json-utils.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/json-utils.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/origin-meta.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/origin-meta.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/plain-text-paste.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/plain-text-paste.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/render-token-chip.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/resolve-config-items.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/resolve-config-items.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/strip-presentation-fields.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/strip-presentation-fields.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/token-node-view.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/token-node-view.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-prompt-line/tiptap}/types.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-prompt-line/tiptap}/types.js.map +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/types.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/corner-manager.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/initialization-manager.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/initialization-manager.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/resize-observer-manager.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/resize-observer-manager.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/slot-observer.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/slot-observer.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/types.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src/tiptap → es/components/aichat-shell}/types.js +0 -0
- /package/{es-custom/components/prompt-line/src/tiptap → es/components/aichat-shell}/types.js.map +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/workspace-manager-utils.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/workspace-manager-utils.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-loader.d.ts +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-loader.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-runtime.d.ts +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-runtime.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-runtime.js.map +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/types.d.ts +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/types.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/types.js.map +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/base-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/base-provider.js +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/kaltura-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/native-video-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/vimeo-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/youtube-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/utils/url-detector.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/utils/url-detector.js +0 -0
- /package/{es-custom/components/workspace-shell/src → es/components/aichat-workspace-shell}/header-collapsible-manager.d.ts +0 -0
- /package/{es-custom/components/workspace-shell/src → es/components/aichat-workspace-shell}/header-collapsible-manager.js +0 -0
- /package/{es-custom/components/audio-player → es/components/message-byline}/index.js.map +0 -0
- /package/{es-custom/components/chat-button → es/components/message-item-shell}/index.js.map +0 -0
- /package/{es-custom/components/code-snippet → es/components/user-avatar}/index.js.map +0 -0
- /package/{es-custom/components/feedback → es/components/user-message-content}/index.js.map +0 -0
- /package/{es-custom/components/shared → es/globals/utils}/dynamic-css-var-sheet.d.ts +0 -0
- /package/{es-custom/components/shared → es/globals/utils}/dynamic-css-var-sheet.js +0 -0
- /package/{es-custom/components/shared/media-utils → es/globals/utils}/script-loader.d.ts +0 -0
- /package/{es-custom/components/shared/media-utils → es/globals/utils}/script-loader.js +0 -0
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
import CDSAIChatAutocomplete from '../autocomplete.js';
|
|
12
|
-
import { AutocompleteController, itemsToGroups } from '../../components/prompt-line/
|
|
12
|
+
import { AutocompleteController, itemsToGroups } from '../../components/aichat-prompt-line/autocomplete-controller.js';
|
|
13
13
|
|
|
14
14
|
function useChatAutocomplete(options) {
|
|
15
15
|
const { mention, command, autocomplete, starters, promptLineRef, isSendDisabled, onStarterSelected, onSelectItem, onSendItem, attached = true, maxHeight, } = options;
|
|
@@ -208,7 +208,9 @@ function CustomReactNodePortal({ slot, node, onMount, onMousedown, }) {
|
|
|
208
208
|
if (!chatWrapper) {
|
|
209
209
|
return undefined;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const slotPrefix = 'cds-aichat-autocomplete';
|
|
212
|
+
/** @slotNameProtocol {slotPrefix} */
|
|
213
|
+
const slotName = `${slotPrefix}-${++autocompletePortalCounter}`;
|
|
212
214
|
const slotEl = document.createElement('slot');
|
|
213
215
|
slotEl.setAttribute('name', slotName);
|
|
214
216
|
container.appendChild(slotEl);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatAutocomplete.js","sources":["../../../src/react/hooks/useChatAutocomplete.tsx"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * React hook for the chat-input autocomplete overlay. Thin wrapper around\n * the framework-agnostic `AutocompleteController` in\n * [../../components/prompt-line/src/autocomplete-controller.ts]. That module\n * holds no Lit and registers no custom element, so reaching the controller\n * costs this hook neither. It still loads `<cds-aichat-autocomplete>` — it\n * renders that list itself — but never\n * `<cds-aichat-autocomplete-controller>`, the other surface on the same\n * class. The controller owns\n * trigger handling, async resolution, and selection routing; this hook\n * adapts those callbacks into React state and returns a JSX node to slot\n * into `<PromptLineShell>`.\n */\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport type { JSX, ReactNode, RefObject } from 'react';\n\nimport Autocomplete from '../autocomplete.js';\nimport type PromptLineElement from '../../components/prompt-line/src/prompt-line.js';\nimport {\n AutocompleteController,\n itemsToGroups,\n type AutocompleteControllerState,\n} from '../../components/prompt-line/src/autocomplete-controller.js';\nimport type { AutocompleteNavigatedEventDetail } from '../../components/prompt-line/autocomplete/src/autocomplete.js';\nimport type {\n AutocompleteConfig,\n StartersConfig,\n SuggestionItem,\n TriggerChangeEventDetail,\n TriggerSuggestionConfig,\n} from '../../components/prompt-line/src/tiptap/types.js';\n\nexport interface UseChatAutocompleteOptions {\n mention?: TriggerSuggestionConfig;\n command?: TriggerSuggestionConfig;\n autocomplete?: AutocompleteConfig;\n starters?: StartersConfig;\n /** Ref to the slotted `<cds-aichat-prompt-line>`. */\n promptLineRef: RefObject<PromptLineElement | null>;\n /** When true, starter selection inserts the text but does not auto-send. */\n isSendDisabled?: boolean;\n /** Fired after a starter is selected and inserted (used to trigger send). */\n onStarterSelected?: (text: string) => void;\n /**\n * Fired when an autocomplete suggestion item is selected.\n * Called after the controller has already inserted the item.\n */\n onSelectItem?: (item: SuggestionItem) => void;\n /**\n * Fired when the send button inside an autocomplete suggestion item is clicked.\n */\n onSendItem?: (text: string) => void;\n /** Whether the autocomplete is attached to the input (affects corner rounding). */\n attached?: boolean;\n /** Maximum height for the autocomplete popover */\n maxHeight?: string;\n}\n\nexport interface UseChatAutocompleteResult {\n /** Attach to `<PromptLine onTriggerChange={...} />`. */\n onTriggerChange: (\n event: CustomEvent<TriggerChangeEventDetail | null>\n ) => void;\n /**\n * JSX to render with `slot=\"autocomplete-content\"` inside `<PromptLineShell>`.\n * `null` while no trigger is active.\n */\n autocompleteContent: ReactNode;\n /**\n * `true` while the user has navigated into the autocomplete list with arrow\n * keys. Use to disable the prompt send button while a list item is active.\n */\n isListNavigated: boolean;\n}\n\nexport function useChatAutocomplete(\n options: UseChatAutocompleteOptions\n): UseChatAutocompleteResult {\n const {\n mention,\n command,\n autocomplete,\n starters,\n promptLineRef,\n isSendDisabled,\n onStarterSelected,\n onSelectItem,\n onSendItem,\n attached = true,\n maxHeight,\n } = options;\n\n const [state, setState] = React.useState<AutocompleteControllerState>({\n trigger: null,\n items: [],\n });\n\n const [isListNavigated, setIsListNavigated] = React.useState(false);\n\n // Keep the controller stable for the hook's lifetime — set in a layout\n // effect so it's wired before any event handler can fire.\n const controllerRef = React.useRef<AutocompleteController | null>(null);\n // Latest config / callback values; the controller stores its own copies\n // but reading them out of refs avoids re-instantiation churn.\n const onStarterRef = React.useRef(onStarterSelected);\n onStarterRef.current = onStarterSelected;\n const onSelectItemRef = React.useRef(onSelectItem);\n onSelectItemRef.current = onSelectItem;\n const onSendItemRef = React.useRef(onSendItem);\n onSendItemRef.current = onSendItem;\n\n if (!controllerRef.current) {\n controllerRef.current = new AutocompleteController({\n mention,\n command,\n autocomplete,\n starters,\n isSendDisabled,\n onStarterSelected: (text) => onStarterRef.current?.(text),\n onChange: setState,\n });\n }\n\n // Push prop changes into the controller without recreating it.\n React.useEffect(() => {\n controllerRef.current?.setConfigs({\n mention,\n command,\n autocomplete,\n starters,\n isSendDisabled,\n });\n }, [mention, command, autocomplete, starters, isSendDisabled]);\n\n // Keep the controller pointed at the live prompt-line element.\n React.useEffect(() => {\n controllerRef.current?.setPromptLine(promptLineRef.current);\n });\n\n React.useEffect(() => {\n return () => {\n controllerRef.current?.destroy();\n controllerRef.current = null;\n };\n }, []);\n\n const onTriggerChange = React.useCallback(\n (event: CustomEvent<TriggerChangeEventDetail | null>) => {\n // Pin the controller to the current prompt-line ref before handing\n // off the detail — the React caller's ref is authoritative.\n controllerRef.current?.setPromptLine(promptLineRef.current);\n controllerRef.current?.handleTriggerChange(event.detail ?? null);\n },\n [promptLineRef]\n );\n\n const handleSelect = React.useCallback((item: SuggestionItem) => {\n controllerRef.current?.select(item);\n onSelectItemRef.current?.(item);\n }, []);\n\n const isSendDisabledRef = React.useRef(isSendDisabled);\n isSendDisabledRef.current = isSendDisabled;\n\n const handleSend = React.useCallback((text: string) => {\n if (!text || isSendDisabledRef.current) {\n return;\n }\n controllerRef.current?.dismiss(true);\n onSendItemRef.current?.(text);\n }, []);\n\n const dismiss = React.useCallback(() => {\n controllerRef.current?.dismiss();\n }, []);\n\n // Register / unregister the rendered list element with the controller so\n // arrow / Enter / Escape on the editor DOM get forwarded to it.\n // Also set the max-height CSS variable if provided.\n const navigatedListenerRef = React.useRef<{\n el: HTMLElement;\n handler: (e: Event) => void;\n } | null>(null);\n\n const setListElement = React.useCallback(\n (el: HTMLElement | null) => {\n // Remove the previous navigation listener before swapping elements.\n if (navigatedListenerRef.current) {\n navigatedListenerRef.current.el.removeEventListener(\n 'cds-aichat-autocomplete-navigated',\n navigatedListenerRef.current.handler\n );\n navigatedListenerRef.current = null;\n }\n\n controllerRef.current?.setListElement(el);\n // Pass the editor DOM as anchorElement so outside-click detection on the\n // autocomplete element doesn't dismiss the list when the user clicks the\n // editor (the editor is not inside the autocomplete element).\n if (el && 'anchorElement' in el) {\n (el as HTMLElement & { anchorElement: Element | null }).anchorElement =\n promptLineRef.current?.getEditor?.()?.view.dom ?? null;\n }\n if (el && maxHeight) {\n el.style.setProperty('--cds-aichat-autocomplete-max-height', maxHeight);\n }\n if (el) {\n const handler = (e: Event) => {\n setIsListNavigated(\n (e as CustomEvent<AutocompleteNavigatedEventDetail>).detail\n .navigated\n );\n };\n el.addEventListener('cds-aichat-autocomplete-navigated', handler);\n navigatedListenerRef.current = { el, handler };\n } else {\n setIsListNavigated(false);\n // Fire a synthetic clear event on the prompt-line's shell ancestor so\n // the send-control's internal guard (`_autocompleteListNavigated`) also\n // resets. This covers cases where the list is removed from the DOM\n // without the autocomplete element dispatching its own clear event\n // (e.g. the user deletes the trigger character).\n const shell = promptLineRef.current?.closest(\n 'cds-aichat-prompt-line-shell'\n );\n shell?.dispatchEvent(\n new CustomEvent<AutocompleteNavigatedEventDetail>(\n 'cds-aichat-autocomplete-navigated',\n { detail: { navigated: false }, bubbles: false, composed: false }\n )\n );\n }\n },\n [maxHeight, promptLineRef]\n );\n\n // Prevent mousedown on the autocomplete container from stealing focus from\n // the editor.\n const handleContainerMousedown = React.useCallback(\n (e: Event | React.MouseEvent) => {\n e.preventDefault();\n },\n []\n );\n\n const autocompleteContent = React.useMemo<ReactNode>(() => {\n if (!state.trigger) {\n return null;\n }\n const { items: flatItems, groups } = itemsToGroups(state.items);\n if (state.renderCustomList) {\n // When items are empty the built-in Autocomplete component stays\n // mounted to announce the zero-results state. Consumer-supplied\n // renderers are not rendered when empty (pre-PR behaviour unchanged).\n if (state.items.length === 0) {\n return null;\n }\n const result = state.renderCustomList({\n items: state.items,\n query: state.trigger.query,\n onDismiss: dismiss,\n onSelect: handleSelect,\n onSend: handleSend,\n });\n if (result == null) {\n return null;\n }\n if (result instanceof HTMLElement) {\n return (\n <CustomElementHost\n slot=\"autocomplete-content\"\n element={result}\n onMount={setListElement}\n onMousedown={handleContainerMousedown}\n />\n );\n }\n return (\n <CustomReactNodePortal\n slot=\"autocomplete-content\"\n node={result as ReactNode}\n onMount={setListElement}\n onMousedown={handleContainerMousedown}\n />\n );\n }\n return (\n <Autocomplete\n ref={setListElement}\n slot=\"autocomplete-content\"\n items={flatItems}\n groups={groups}\n attached={attached}\n disableDirectSend={state.disableDirectSend}\n onDismiss={dismiss}\n onSelect={(e: CustomEvent<{ item: SuggestionItem }>) =>\n handleSelect(e.detail.item)\n }\n onSend={(e: CustomEvent<{ text: string }>) =>\n handleSend(e.detail?.text)\n }\n />\n );\n }, [\n state,\n handleSelect,\n handleSend,\n dismiss,\n setListElement,\n attached,\n handleContainerMousedown,\n ]);\n\n return { onTriggerChange, autocompleteContent, isListNavigated };\n}\n\ninterface CustomElementHostProps {\n slot: string;\n element: HTMLElement;\n /** Notify the parent which element is the key-forwarding target. */\n onMount?: (el: HTMLElement | null) => void;\n onMousedown?: (e: React.MouseEvent) => void;\n}\n\n/** Mounts a host-provided HTMLElement into the React tree at `slot`. */\nfunction CustomElementHost({\n slot,\n element,\n onMount,\n onMousedown,\n}: CustomElementHostProps): JSX.Element {\n const containerRef = React.useRef<HTMLDivElement | null>(null);\n React.useEffect(() => {\n const container = containerRef.current;\n if (!container) {\n return undefined;\n }\n container.appendChild(element);\n onMount?.(element);\n return () => {\n onMount?.(null);\n if (element.parentNode === container) {\n container.removeChild(element);\n }\n };\n }, [element, onMount]);\n return (\n <div\n ref={containerRef}\n role=\"presentation\"\n slot={slot}\n onMouseDown={onMousedown}\n />\n );\n}\n\ninterface CustomReactNodePortalProps {\n slot: string;\n node: ReactNode;\n onMount?: (el: HTMLElement | null) => void;\n onMousedown?: (e: MouseEvent) => void;\n}\n\nlet autocompletePortalCounter = 0;\n\n/**\n * Projects a consumer-supplied React node into the page's light DOM via a\n * two-level slot/host pair so external `<style>` tags reach it. The rendered\n * `<div>` is a slot-projected anchor in the shell's `autocomplete-content`\n * slot; a sibling `<div slot=\"…\">` is appended to the chatWrapper (the host\n * of the surrounding shadow root) and receives the React node via\n * `createPortal`. Without this hop the node would mount inside the chat's\n * shadow root, hidden from page CSS.\n */\nfunction CustomReactNodePortal({\n slot,\n node,\n onMount,\n onMousedown,\n}: CustomReactNodePortalProps): JSX.Element {\n const containerRef = React.useRef<HTMLDivElement | null>(null);\n const [hostElement, setHostElement] = React.useState<HTMLElement | null>(\n null\n );\n\n React.useEffect(() => {\n const container = containerRef.current;\n if (!container) {\n return undefined;\n }\n const rootNode = container.getRootNode();\n const chatWrapper =\n rootNode instanceof ShadowRoot ? (rootNode.host as HTMLElement) : null;\n if (!chatWrapper) {\n return undefined;\n }\n\n const slotName = `cds-aichat-autocomplete-${++autocompletePortalCounter}`;\n const slotEl = document.createElement('slot');\n slotEl.setAttribute('name', slotName);\n container.appendChild(slotEl);\n\n const hostEl = document.createElement('div');\n hostEl.setAttribute('slot', slotName);\n if (onMousedown) {\n hostEl.addEventListener('mousedown', onMousedown);\n }\n chatWrapper.appendChild(hostEl);\n\n setHostElement(hostEl);\n return () => {\n onMount?.(null);\n if (onMousedown) {\n hostEl.removeEventListener('mousedown', onMousedown);\n }\n slotEl.remove();\n hostEl.remove();\n setHostElement(null);\n };\n // Empty deps: the slot/host pair is owned by this mount cycle and should\n // not churn as `node` updates — React's portal reconciliation handles\n // those updates in place.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // After the portal content is committed into hostElement, hand the first\n // child element to the controller. This is typically a custom element (e.g.\n // <cds-aichat-autocomplete>) whose properties (anchorElement, keydown\n // forwarding) only work on the element itself — not on the plain <div>\n // wrapper that createPortal renders into. Custom elements are defined\n // synchronously at module load, so by the time useEffect fires (post-paint)\n // the element is fully upgraded and its properties are available.\n React.useEffect(() => {\n if (!hostElement) {\n return;\n }\n const child = hostElement.firstElementChild as HTMLElement | null;\n onMount?.(child ?? hostElement);\n }, [hostElement, onMount]);\n\n return (\n <div slot={slot} ref={containerRef}>\n {hostElement ? ReactDOM.createPortal(node, hostElement) : null}\n </div>\n );\n}\n"],"names":["_jsx","Autocomplete"],"mappings":";;;;;;;;;;;;;AAsFM,SAAU,mBAAmB,CACjC,OAAmC,EAAA;IAEnC,MAAM,EACJ,OAAO,EACP,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,QAAQ,GAAG,IAAI,EACf,SAAS,GACV,GAAG,OAAO;IAEX,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA8B;AACpE,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,KAAK,EAAE,EAAE;AACV,KAAA,CAAC;AAEF,IAAA,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;;;IAInE,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAgC,IAAI,CAAC;;;IAGvE,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC;AACpD,IAAA,YAAY,CAAC,OAAO,GAAG,iBAAiB;IACxC,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;AAClD,IAAA,eAAe,CAAC,OAAO,GAAG,YAAY;IACtC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;AAC9C,IAAA,aAAa,CAAC,OAAO,GAAG,UAAU;AAElC,IAAA,IAAI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,GAAG,WAAW,CAAC,iBAAuC;AACjE,QAAA,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC;AACjC,IAAA,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE1B,IAAA,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAA,QAAA,EAC/B,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,IAAI,EAAA,CAC1D;AAEV;;"}
|
|
1
|
+
{"version":3,"file":"useChatAutocomplete.js","sources":["../../../src/react/hooks/useChatAutocomplete.tsx"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * React hook for the chat-input autocomplete overlay. Thin wrapper around\n * the framework-agnostic `AutocompleteController` in\n * [../../components/aichat-prompt-line/autocomplete-controller.ts]. That module\n * holds no Lit and registers no custom element, so reaching the controller\n * costs this hook neither. It still loads `<cds-aichat-autocomplete>` — it\n * renders that list itself — but never\n * `<cds-aichat-autocomplete-controller>`, the other surface on the same\n * class. The controller owns\n * trigger handling, async resolution, and selection routing; this hook\n * adapts those callbacks into React state and returns a JSX node to slot\n * into `<PromptLineShell>`.\n */\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport type { JSX, ReactNode, RefObject } from 'react';\n\nimport Autocomplete from '../autocomplete.js';\nimport type PromptLineElement from '../../components/aichat-prompt-line/aichat-prompt-line.js';\nimport {\n AutocompleteController,\n itemsToGroups,\n type AutocompleteControllerState,\n} from '../../components/aichat-prompt-line/autocomplete-controller.js';\nimport type { AutocompleteNavigatedEventDetail } from '../../components/aichat-autocomplete/aichat-autocomplete.js';\nimport type {\n AutocompleteConfig,\n StartersConfig,\n SuggestionItem,\n TriggerChangeEventDetail,\n TriggerSuggestionConfig,\n} from '../../components/aichat-prompt-line/tiptap/types.js';\n\nexport interface UseChatAutocompleteOptions {\n mention?: TriggerSuggestionConfig;\n command?: TriggerSuggestionConfig;\n autocomplete?: AutocompleteConfig;\n starters?: StartersConfig;\n /** Ref to the slotted `<cds-aichat-prompt-line>`. */\n promptLineRef: RefObject<PromptLineElement | null>;\n /** When true, starter selection inserts the text but does not auto-send. */\n isSendDisabled?: boolean;\n /** Fired after a starter is selected and inserted (used to trigger send). */\n onStarterSelected?: (text: string) => void;\n /**\n * Fired when an autocomplete suggestion item is selected.\n * Called after the controller has already inserted the item.\n */\n onSelectItem?: (item: SuggestionItem) => void;\n /**\n * Fired when the send button inside an autocomplete suggestion item is clicked.\n */\n onSendItem?: (text: string) => void;\n /** Whether the autocomplete is attached to the input (affects corner rounding). */\n attached?: boolean;\n /** Maximum height for the autocomplete popover */\n maxHeight?: string;\n}\n\nexport interface UseChatAutocompleteResult {\n /** Attach to `<PromptLine onTriggerChange={...} />`. */\n onTriggerChange: (\n event: CustomEvent<TriggerChangeEventDetail | null>\n ) => void;\n /**\n * JSX to render with `slot=\"autocomplete-content\"` inside `<PromptLineShell>`.\n * `null` while no trigger is active.\n */\n autocompleteContent: ReactNode;\n /**\n * `true` while the user has navigated into the autocomplete list with arrow\n * keys. Use to disable the prompt send button while a list item is active.\n */\n isListNavigated: boolean;\n}\n\nexport function useChatAutocomplete(\n options: UseChatAutocompleteOptions\n): UseChatAutocompleteResult {\n const {\n mention,\n command,\n autocomplete,\n starters,\n promptLineRef,\n isSendDisabled,\n onStarterSelected,\n onSelectItem,\n onSendItem,\n attached = true,\n maxHeight,\n } = options;\n\n const [state, setState] = React.useState<AutocompleteControllerState>({\n trigger: null,\n items: [],\n });\n\n const [isListNavigated, setIsListNavigated] = React.useState(false);\n\n // Keep the controller stable for the hook's lifetime — set in a layout\n // effect so it's wired before any event handler can fire.\n const controllerRef = React.useRef<AutocompleteController | null>(null);\n // Latest config / callback values; the controller stores its own copies\n // but reading them out of refs avoids re-instantiation churn.\n const onStarterRef = React.useRef(onStarterSelected);\n onStarterRef.current = onStarterSelected;\n const onSelectItemRef = React.useRef(onSelectItem);\n onSelectItemRef.current = onSelectItem;\n const onSendItemRef = React.useRef(onSendItem);\n onSendItemRef.current = onSendItem;\n\n if (!controllerRef.current) {\n controllerRef.current = new AutocompleteController({\n mention,\n command,\n autocomplete,\n starters,\n isSendDisabled,\n onStarterSelected: (text) => onStarterRef.current?.(text),\n onChange: setState,\n });\n }\n\n // Push prop changes into the controller without recreating it.\n React.useEffect(() => {\n controllerRef.current?.setConfigs({\n mention,\n command,\n autocomplete,\n starters,\n isSendDisabled,\n });\n }, [mention, command, autocomplete, starters, isSendDisabled]);\n\n // Keep the controller pointed at the live prompt-line element.\n React.useEffect(() => {\n controllerRef.current?.setPromptLine(promptLineRef.current);\n });\n\n React.useEffect(() => {\n return () => {\n controllerRef.current?.destroy();\n controllerRef.current = null;\n };\n }, []);\n\n const onTriggerChange = React.useCallback(\n (event: CustomEvent<TriggerChangeEventDetail | null>) => {\n // Pin the controller to the current prompt-line ref before handing\n // off the detail — the React caller's ref is authoritative.\n controllerRef.current?.setPromptLine(promptLineRef.current);\n controllerRef.current?.handleTriggerChange(event.detail ?? null);\n },\n [promptLineRef]\n );\n\n const handleSelect = React.useCallback((item: SuggestionItem) => {\n controllerRef.current?.select(item);\n onSelectItemRef.current?.(item);\n }, []);\n\n const isSendDisabledRef = React.useRef(isSendDisabled);\n isSendDisabledRef.current = isSendDisabled;\n\n const handleSend = React.useCallback((text: string) => {\n if (!text || isSendDisabledRef.current) {\n return;\n }\n controllerRef.current?.dismiss(true);\n onSendItemRef.current?.(text);\n }, []);\n\n const dismiss = React.useCallback(() => {\n controllerRef.current?.dismiss();\n }, []);\n\n // Register / unregister the rendered list element with the controller so\n // arrow / Enter / Escape on the editor DOM get forwarded to it.\n // Also set the max-height CSS variable if provided.\n const navigatedListenerRef = React.useRef<{\n el: HTMLElement;\n handler: (e: Event) => void;\n } | null>(null);\n\n const setListElement = React.useCallback(\n (el: HTMLElement | null) => {\n // Remove the previous navigation listener before swapping elements.\n if (navigatedListenerRef.current) {\n navigatedListenerRef.current.el.removeEventListener(\n 'cds-aichat-autocomplete-navigated',\n navigatedListenerRef.current.handler\n );\n navigatedListenerRef.current = null;\n }\n\n controllerRef.current?.setListElement(el);\n // Pass the editor DOM as anchorElement so outside-click detection on the\n // autocomplete element doesn't dismiss the list when the user clicks the\n // editor (the editor is not inside the autocomplete element).\n if (el && 'anchorElement' in el) {\n (el as HTMLElement & { anchorElement: Element | null }).anchorElement =\n promptLineRef.current?.getEditor?.()?.view.dom ?? null;\n }\n if (el && maxHeight) {\n el.style.setProperty('--cds-aichat-autocomplete-max-height', maxHeight);\n }\n if (el) {\n const handler = (e: Event) => {\n setIsListNavigated(\n (e as CustomEvent<AutocompleteNavigatedEventDetail>).detail\n .navigated\n );\n };\n el.addEventListener('cds-aichat-autocomplete-navigated', handler);\n navigatedListenerRef.current = { el, handler };\n } else {\n setIsListNavigated(false);\n // Fire a synthetic clear event on the prompt-line's shell ancestor so\n // the send-control's internal guard (`_autocompleteListNavigated`) also\n // resets. This covers cases where the list is removed from the DOM\n // without the autocomplete element dispatching its own clear event\n // (e.g. the user deletes the trigger character).\n const shell = promptLineRef.current?.closest(\n 'cds-aichat-prompt-line-shell'\n );\n shell?.dispatchEvent(\n new CustomEvent<AutocompleteNavigatedEventDetail>(\n 'cds-aichat-autocomplete-navigated',\n { detail: { navigated: false }, bubbles: false, composed: false }\n )\n );\n }\n },\n [maxHeight, promptLineRef]\n );\n\n // Prevent mousedown on the autocomplete container from stealing focus from\n // the editor.\n const handleContainerMousedown = React.useCallback(\n (e: Event | React.MouseEvent) => {\n e.preventDefault();\n },\n []\n );\n\n const autocompleteContent = React.useMemo<ReactNode>(() => {\n if (!state.trigger) {\n return null;\n }\n const { items: flatItems, groups } = itemsToGroups(state.items);\n if (state.renderCustomList) {\n // When items are empty the built-in Autocomplete component stays\n // mounted to announce the zero-results state. Consumer-supplied\n // renderers are not rendered when empty (pre-PR behaviour unchanged).\n if (state.items.length === 0) {\n return null;\n }\n const result = state.renderCustomList({\n items: state.items,\n query: state.trigger.query,\n onDismiss: dismiss,\n onSelect: handleSelect,\n onSend: handleSend,\n });\n if (result == null) {\n return null;\n }\n if (result instanceof HTMLElement) {\n return (\n <CustomElementHost\n slot=\"autocomplete-content\"\n element={result}\n onMount={setListElement}\n onMousedown={handleContainerMousedown}\n />\n );\n }\n return (\n <CustomReactNodePortal\n slot=\"autocomplete-content\"\n node={result as ReactNode}\n onMount={setListElement}\n onMousedown={handleContainerMousedown}\n />\n );\n }\n return (\n <Autocomplete\n ref={setListElement}\n slot=\"autocomplete-content\"\n items={flatItems}\n groups={groups}\n attached={attached}\n disableDirectSend={state.disableDirectSend}\n onDismiss={dismiss}\n onSelect={(e: CustomEvent<{ item: SuggestionItem }>) =>\n handleSelect(e.detail.item)\n }\n onSend={(e: CustomEvent<{ text: string }>) =>\n handleSend(e.detail?.text)\n }\n />\n );\n }, [\n state,\n handleSelect,\n handleSend,\n dismiss,\n setListElement,\n attached,\n handleContainerMousedown,\n ]);\n\n return { onTriggerChange, autocompleteContent, isListNavigated };\n}\n\ninterface CustomElementHostProps {\n slot: string;\n element: HTMLElement;\n /** Notify the parent which element is the key-forwarding target. */\n onMount?: (el: HTMLElement | null) => void;\n onMousedown?: (e: React.MouseEvent) => void;\n}\n\n/** Mounts a host-provided HTMLElement into the React tree at `slot`. */\nfunction CustomElementHost({\n slot,\n element,\n onMount,\n onMousedown,\n}: CustomElementHostProps): JSX.Element {\n const containerRef = React.useRef<HTMLDivElement | null>(null);\n React.useEffect(() => {\n const container = containerRef.current;\n if (!container) {\n return undefined;\n }\n container.appendChild(element);\n onMount?.(element);\n return () => {\n onMount?.(null);\n if (element.parentNode === container) {\n container.removeChild(element);\n }\n };\n }, [element, onMount]);\n return (\n <div\n ref={containerRef}\n role=\"presentation\"\n slot={slot}\n onMouseDown={onMousedown}\n />\n );\n}\n\ninterface CustomReactNodePortalProps {\n slot: string;\n node: ReactNode;\n onMount?: (el: HTMLElement | null) => void;\n onMousedown?: (e: MouseEvent) => void;\n}\n\nlet autocompletePortalCounter = 0;\n\n/**\n * Projects a consumer-supplied React node into the page's light DOM via a\n * two-level slot/host pair so external `<style>` tags reach it. The rendered\n * `<div>` is a slot-projected anchor in the shell's `autocomplete-content`\n * slot; a sibling `<div slot=\"…\">` is appended to the chatWrapper (the host\n * of the surrounding shadow root) and receives the React node via\n * `createPortal`. Without this hop the node would mount inside the chat's\n * shadow root, hidden from page CSS.\n */\nfunction CustomReactNodePortal({\n slot,\n node,\n onMount,\n onMousedown,\n}: CustomReactNodePortalProps): JSX.Element {\n const containerRef = React.useRef<HTMLDivElement | null>(null);\n const [hostElement, setHostElement] = React.useState<HTMLElement | null>(\n null\n );\n\n React.useEffect(() => {\n const container = containerRef.current;\n if (!container) {\n return undefined;\n }\n const rootNode = container.getRootNode();\n const chatWrapper =\n rootNode instanceof ShadowRoot ? (rootNode.host as HTMLElement) : null;\n if (!chatWrapper) {\n return undefined;\n }\n\n const slotPrefix = 'cds-aichat-autocomplete';\n /** @slotNameProtocol {slotPrefix} */\n const slotName = `${slotPrefix}-${++autocompletePortalCounter}`;\n const slotEl = document.createElement('slot');\n slotEl.setAttribute('name', slotName);\n container.appendChild(slotEl);\n\n const hostEl = document.createElement('div');\n hostEl.setAttribute('slot', slotName);\n if (onMousedown) {\n hostEl.addEventListener('mousedown', onMousedown);\n }\n chatWrapper.appendChild(hostEl);\n\n setHostElement(hostEl);\n return () => {\n onMount?.(null);\n if (onMousedown) {\n hostEl.removeEventListener('mousedown', onMousedown);\n }\n slotEl.remove();\n hostEl.remove();\n setHostElement(null);\n };\n // Empty deps: the slot/host pair is owned by this mount cycle and should\n // not churn as `node` updates — React's portal reconciliation handles\n // those updates in place.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // After the portal content is committed into hostElement, hand the first\n // child element to the controller. This is typically a custom element (e.g.\n // <cds-aichat-autocomplete>) whose properties (anchorElement, keydown\n // forwarding) only work on the element itself — not on the plain <div>\n // wrapper that createPortal renders into. Custom elements are defined\n // synchronously at module load, so by the time useEffect fires (post-paint)\n // the element is fully upgraded and its properties are available.\n React.useEffect(() => {\n if (!hostElement) {\n return;\n }\n const child = hostElement.firstElementChild as HTMLElement | null;\n onMount?.(child ?? hostElement);\n }, [hostElement, onMount]);\n\n return (\n <div slot={slot} ref={containerRef}>\n {hostElement ? ReactDOM.createPortal(node, hostElement) : null}\n </div>\n );\n}\n"],"names":["_jsx","Autocomplete"],"mappings":";;;;;;;;;;;;;AAsFM,SAAU,mBAAmB,CACjC,OAAmC,EAAA;IAEnC,MAAM,EACJ,OAAO,EACP,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,QAAQ,GAAG,IAAI,EACf,SAAS,GACV,GAAG,OAAO;IAEX,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA8B;AACpE,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,KAAK,EAAE,EAAE;AACV,KAAA,CAAC;AAEF,IAAA,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;;;IAInE,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAgC,IAAI,CAAC;;;IAGvE,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC;AACpD,IAAA,YAAY,CAAC,OAAO,GAAG,iBAAiB;IACxC,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;AAClD,IAAA,eAAe,CAAC,OAAO,GAAG,YAAY;IACtC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;AAC9C,IAAA,aAAa,CAAC,OAAO,GAAG,UAAU;AAElC,IAAA,IAAI,CAAC,aAAa,C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A,QAAA,MAAM,KAAK,GAAG,WAAW,CAAC,iBAAuC;AACjE,QAAA,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC;AACjC,IAAA,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE1B,IAAA,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAA,QAAA,EAC/B,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,IAAI,EAAA,CAC1D;AAEV;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export { default as AILabelActionButton } from './ai-label-action-button.js';
|
|
2
|
+
export { AudioPlayer } from './audio-player.js';
|
|
3
|
+
export { AutocompleteController } from './autocomplete-controller.js';
|
|
4
|
+
export { default as Autocomplete } from './autocomplete.js';
|
|
5
|
+
export { Card, CardFooter, CardSteps } from './card.js';
|
|
6
|
+
export { Carousel } from './carousel.js';
|
|
7
|
+
export { default as ChainOfThoughtStep } from './chain-of-thought-step.js';
|
|
8
|
+
export { default as ChainOfThoughtToggle } from './chain-of-thought-toggle.js';
|
|
9
|
+
export type { ChainOfThoughtToggleEventDetail } from './chain-of-thought-toggle.js';
|
|
10
|
+
export { default as ChainOfThought, ChainOfThoughtStepStatus, } from './chain-of-thought.js';
|
|
11
|
+
export type { ChainOfThoughtOnToggle, ChainOfThoughtProps, ChainOfThoughtStepToggleEventDetail, } from './chain-of-thought.js';
|
|
12
|
+
export { default as ChatButtonSkeleton } from './chat-button-skeleton.js';
|
|
13
|
+
export { default as ChatButton, CHAT_BUTTON_KIND, CHAT_BUTTON_SIZE, CHAT_BUTTON_TOOLTIP_ALIGNMENT, CHAT_BUTTON_TOOLTIP_POSITION, CHAT_BUTTON_TYPE, } from './chat-button.js';
|
|
14
|
+
export { default as ChatHeader } from './chat-header.js';
|
|
15
|
+
export type { ChatHeaderHandle, ChatHeaderProps } from './chat-header.js';
|
|
16
|
+
export { default as ChatShell } from './chat-shell.js';
|
|
17
|
+
export { CitationCard } from './citation-card.js';
|
|
18
|
+
export { default as CodeSnippet } from './code-snippet.js';
|
|
19
|
+
export type { CodeSnippetProps, ReactAction } from './code-snippet.js';
|
|
20
|
+
export { ConversationalSearchShell } from './conversational-search-shell.js';
|
|
21
|
+
export { default as ErrorMessage } from './error-message.js';
|
|
22
|
+
export { default as FeedbackButtons } from './feedback-buttons.js';
|
|
23
|
+
export { default as Feedback } from './feedback.js';
|
|
24
|
+
export type { FeedbackInitialValues, FeedbackSubmitDetails, } from './feedback.js';
|
|
25
|
+
export { default as FileUploadItem } from './file-upload-item.js';
|
|
26
|
+
export { default as FileUploads } from './file-uploads.js';
|
|
27
|
+
export { default as InputSendControl } from './input-send-control.js';
|
|
28
|
+
export { default as Launcher } from './launcher.js';
|
|
29
|
+
export { default as Markdown } from './markdown.js';
|
|
30
|
+
export type { MarkdownProps, MarkdownReactCustomRenderers, } from './markdown.js';
|
|
31
|
+
export { default as MessageByline } from './message-byline.js';
|
|
32
|
+
export { default as MessageItemShell } from './message-item-shell.js';
|
|
33
|
+
export { default as MessagesShell } from './messages-shell.js';
|
|
34
|
+
export { default as ChatPanel } from './panel.js';
|
|
35
|
+
export { default as Processing } from './processing.js';
|
|
36
|
+
export { default as PromptLineShell } from './prompt-line-shell.js';
|
|
37
|
+
export { default as PromptLine } from './prompt-line.js';
|
|
38
|
+
export { default as ReasoningStep } from './reasoning-step.js';
|
|
39
|
+
export { default as ReasoningStepsToggle } from './reasoning-steps-toggle.js';
|
|
40
|
+
export type { ReasoningStepsToggleEventDetail } from './reasoning-steps-toggle.js';
|
|
41
|
+
export { default as ReasoningSteps } from './reasoning-steps.js';
|
|
42
|
+
export { default as StopStreamingButton } from './stop-streaming-button.js';
|
|
43
|
+
export { default as Table } from './table.js';
|
|
44
|
+
export type { TableCellContent, TableRowContent } from './table.js';
|
|
45
|
+
export { default as ToolCallData } from './tool-call-data.js';
|
|
46
|
+
export { default as Toolbar } from './toolbar.js';
|
|
47
|
+
export type { ToolbarAction, ToolbarProps } from './toolbar.js';
|
|
48
|
+
export { Transcript } from './transcript.js';
|
|
49
|
+
export { TruncatedText } from './truncated-text.js';
|
|
50
|
+
export { default as UserAvatar } from './user-avatar.js';
|
|
51
|
+
export { default as UserMessageContent } from './user-message-content.js';
|
|
52
|
+
export { VideoPlayer } from './video-player.js';
|
|
53
|
+
export { default as WorkspaceShell, WorkspaceShellBody, WorkspaceShellFooter, WorkspaceShellHeader, } from './workspace-shell.js';
|
|
54
|
+
export { default as HistoryShell } from './history/history-shell.js';
|
|
55
|
+
export { default as HistoryHeader } from './history/history-header.js';
|
|
56
|
+
export { default as HistoryToolbar } from './history/history-toolbar.js';
|
|
57
|
+
export { default as HistoryContent } from './history/history-content.js';
|
|
58
|
+
export { default as HistoryLoading } from './history/history-loading.js';
|
|
59
|
+
export { default as HistoryPanel } from './history/history-panel.js';
|
|
60
|
+
export { default as HistoryPanelMenu } from './history/history-panel-menu.js';
|
|
61
|
+
export { default as HistoryPanelItem } from './history/history-panel-item.js';
|
|
62
|
+
export { default as HistoryPanelItems } from './history/history-panel-items.js';
|
|
63
|
+
export { default as HistorySearchItem } from './history/history-search-item.js';
|
|
64
|
+
export { default as HistoryPanelItemInput } from './history/history-panel-item-input.js';
|
|
65
|
+
export { default as HistoryDeletePanel } from './history/history-delete-panel.js';
|
|
66
|
+
export { useChatAutocomplete } from './hooks/useChatAutocomplete.js';
|
|
67
|
+
export type { UseChatAutocompleteOptions, UseChatAutocompleteResult, } from './hooks/useChatAutocomplete.js';
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
export { default as AILabelActionButton } from './ai-label-action-button.js';
|
|
9
|
+
export { AudioPlayer } from './audio-player.js';
|
|
10
|
+
export { AutocompleteController } from './autocomplete-controller.js';
|
|
11
|
+
export { default as Autocomplete } from './autocomplete.js';
|
|
12
|
+
export { Card, CardFooter, CardSteps } from './card.js';
|
|
13
|
+
export { Carousel } from './carousel.js';
|
|
14
|
+
export { default as ChainOfThoughtStep } from './chain-of-thought-step.js';
|
|
15
|
+
export { default as ChainOfThoughtToggle } from './chain-of-thought-toggle.js';
|
|
16
|
+
export { default as ChainOfThought } from './chain-of-thought.js';
|
|
17
|
+
export { default as ChatButtonSkeleton } from './chat-button-skeleton.js';
|
|
18
|
+
export { default as ChatButton } from './chat-button.js';
|
|
19
|
+
export { default as ChatHeader } from './chat-header.js';
|
|
20
|
+
export { default as ChatShell } from './chat-shell.js';
|
|
21
|
+
export { CitationCard } from './citation-card.js';
|
|
22
|
+
export { default as CodeSnippet } from './code-snippet.js';
|
|
23
|
+
export { ConversationalSearchShell } from './conversational-search-shell.js';
|
|
24
|
+
export { default as ErrorMessage } from './error-message.js';
|
|
25
|
+
export { default as FeedbackButtons } from './feedback-buttons.js';
|
|
26
|
+
export { default as Feedback } from './feedback.js';
|
|
27
|
+
export { default as FileUploadItem } from './file-upload-item.js';
|
|
28
|
+
export { default as FileUploads } from './file-uploads.js';
|
|
29
|
+
export { default as InputSendControl } from './input-send-control.js';
|
|
30
|
+
export { default as Launcher } from './launcher.js';
|
|
31
|
+
export { default as Markdown } from './markdown.js';
|
|
32
|
+
export { default as MessageByline } from './message-byline.js';
|
|
33
|
+
export { default as MessageItemShell } from './message-item-shell.js';
|
|
34
|
+
export { default as MessagesShell } from './messages-shell.js';
|
|
35
|
+
export { default as ChatPanel } from './panel.js';
|
|
36
|
+
export { default as Processing } from './processing.js';
|
|
37
|
+
export { default as PromptLineShell } from './prompt-line-shell.js';
|
|
38
|
+
export { default as PromptLine } from './prompt-line.js';
|
|
39
|
+
export { default as ReasoningStep } from './reasoning-step.js';
|
|
40
|
+
export { default as ReasoningStepsToggle } from './reasoning-steps-toggle.js';
|
|
41
|
+
export { default as ReasoningSteps } from './reasoning-steps.js';
|
|
42
|
+
export { default as StopStreamingButton } from './stop-streaming-button.js';
|
|
43
|
+
export { default as Table } from './table.js';
|
|
44
|
+
export { default as ToolCallData } from './tool-call-data.js';
|
|
45
|
+
export { default as Toolbar } from './toolbar.js';
|
|
46
|
+
export { Transcript } from './transcript.js';
|
|
47
|
+
export { TruncatedText } from './truncated-text.js';
|
|
48
|
+
export { default as UserAvatar } from './user-avatar.js';
|
|
49
|
+
export { default as UserMessageContent } from './user-message-content.js';
|
|
50
|
+
export { VideoPlayer } from './video-player.js';
|
|
51
|
+
export { default as WorkspaceShell, WorkspaceShellBody, WorkspaceShellFooter, WorkspaceShellHeader } from './workspace-shell.js';
|
|
52
|
+
export { default as HistoryShell } from './history/history-shell.js';
|
|
53
|
+
export { default as HistoryHeader } from './history/history-header.js';
|
|
54
|
+
export { default as HistoryToolbar } from './history/history-toolbar.js';
|
|
55
|
+
export { default as HistoryContent } from './history/history-content.js';
|
|
56
|
+
export { default as HistoryLoading } from './history/history-loading.js';
|
|
57
|
+
export { default as HistoryPanel } from './history/history-panel.js';
|
|
58
|
+
export { default as HistoryPanelMenu } from './history/history-panel-menu.js';
|
|
59
|
+
export { default as HistoryPanelItem } from './history/history-panel-item.js';
|
|
60
|
+
export { default as HistoryPanelItems } from './history/history-panel-items.js';
|
|
61
|
+
export { default as HistorySearchItem } from './history/history-search-item.js';
|
|
62
|
+
export { default as HistoryPanelItemInput } from './history/history-panel-item-input.js';
|
|
63
|
+
export { default as HistoryDeletePanel } from './history/history-delete-panel.js';
|
|
64
|
+
export { useChatAutocomplete } from './hooks/useChatAutocomplete.js';
|
|
65
|
+
export { BUTTON_KIND as CHAT_BUTTON_KIND, BUTTON_TOOLTIP_ALIGNMENT as CHAT_BUTTON_TOOLTIP_ALIGNMENT, BUTTON_TOOLTIP_POSITION as CHAT_BUTTON_TOOLTIP_POSITION, BUTTON_TYPE as CHAT_BUTTON_TYPE } from '@carbon/web-components/es/components/button/button.js';
|
|
66
|
+
export { CHAT_BUTTON_SIZE } from '../components/aichat-button/defs.js';
|
|
67
|
+
export { ChainOfThoughtStepStatus } from '../components/aichat-chain-of-thought/defs.js';
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
10
|
-
|
|
9
|
+
import { type EventName } from '@lit/react';
|
|
10
|
+
import { InputSendControlElement } from '../components/aichat-prompt-line/index.js';
|
|
11
|
+
declare const CDSAIChatInputSendControl: import("@lit/react").ReactWebComponent<InputSendControlElement, {
|
|
12
|
+
onSend: EventName<CustomEvent<null>>;
|
|
13
|
+
onStopStreaming: EventName<CustomEvent<null>>;
|
|
14
|
+
}>;
|
|
11
15
|
export default CDSAIChatInputSendControl;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { createComponent } from '@lit/react';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import '../components/aichat-prompt-line/index.js';
|
|
11
|
+
import InputSendControlElement from '../components/aichat-prompt-line/aichat-input-send-control.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -18,15 +18,15 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
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
|
-
const CDSAIChatInputSendControl =
|
|
22
|
-
tagName:
|
|
21
|
+
const CDSAIChatInputSendControl = createComponent({
|
|
22
|
+
tagName: InputSendControlElement.is,
|
|
23
23
|
elementClass: InputSendControlElement,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
26
|
onSend: 'cds-aichat-input-send',
|
|
27
27
|
onStopStreaming: 'cds-aichat-input-stop-streaming',
|
|
28
28
|
},
|
|
29
|
-
})
|
|
29
|
+
});
|
|
30
30
|
|
|
31
31
|
export { CDSAIChatInputSendControl as default };
|
|
32
32
|
//# sourceMappingURL=input-send-control.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-send-control.js","sources":["../../src/react/input-send-control.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { createComponent } from '@lit/react';\nimport React from 'react';\nimport InputSendControlElement from '../components/prompt-line/
|
|
1
|
+
{"version":3,"file":"input-send-control.js","sources":["../../src/react/input-send-control.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { createComponent, type EventName } from '@lit/react';\nimport React from 'react';\nimport { InputSendControlElement } from '../components/aichat-prompt-line/index.js';\n\nconst CDSAIChatInputSendControl = createComponent({\n tagName: InputSendControlElement.is,\n elementClass: InputSendControlElement,\n react: React,\n events: {\n onSend: 'cds-aichat-input-send' as EventName<CustomEvent<null>>,\n onStopStreaming: 'cds-aichat-input-stop-streaming' as EventName<\n CustomEvent<null>\n >,\n },\n});\n\nexport default CDSAIChatInputSendControl;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,yBAAyB,GAAG,eAAe,CAAC;IAChD,OAAO,EAAE,uBAAuB,CAAC,EAAE;AACnC,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,MAAM,EAAE,uBAAuD;AAC/D,QAAA,eAAe,EAAE,iCAEhB;AACF,KAAA;AACF,CAAA;;"}
|
package/es/react/launcher.d.ts
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
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
|
|
10
|
-
|
|
9
|
+
import { type EventName } from '@lit/react';
|
|
10
|
+
import { CDSAIChatLauncher } from '../components/aichat-launcher/index.js';
|
|
11
|
+
declare const Launcher: import("@lit/react").ReactWebComponent<CDSAIChatLauncher, {
|
|
12
|
+
onToggle: EventName<CustomEvent<null>>;
|
|
13
|
+
}>;
|
|
11
14
|
export default Launcher;
|
package/es/react/launcher.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { createComponent } from '@lit/react';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
10
|
+
import '../components/aichat-launcher/index.js';
|
|
11
|
+
import { CDSAIChatLauncher } from '../components/aichat-launcher/aichat-launcher.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -18,14 +18,14 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
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
|
-
const Launcher =
|
|
22
|
-
tagName:
|
|
21
|
+
const Launcher = createComponent({
|
|
22
|
+
tagName: CDSAIChatLauncher.is,
|
|
23
23
|
elementClass: CDSAIChatLauncher,
|
|
24
24
|
react: React,
|
|
25
25
|
events: {
|
|
26
26
|
onToggle: 'cds-aichat-launcher-toggle',
|
|
27
27
|
},
|
|
28
|
-
})
|
|
28
|
+
});
|
|
29
29
|
|
|
30
30
|
export { Launcher as default };
|
|
31
31
|
//# sourceMappingURL=launcher.js.map
|
package/es/react/launcher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.js","sources":["../../src/react/launcher.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { createComponent } from '@lit/react';\nimport React from 'react';\n\nimport CDSAIChatLauncher from '../components/launcher/
|
|
1
|
+
{"version":3,"file":"launcher.js","sources":["../../src/react/launcher.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { createComponent, type EventName } from '@lit/react';\nimport React from 'react';\n\nimport { CDSAIChatLauncher } from '../components/aichat-launcher/index.js';\n\nconst Launcher = createComponent({\n tagName: CDSAIChatLauncher.is,\n elementClass: CDSAIChatLauncher,\n react: React,\n events: {\n onToggle: 'cds-aichat-launcher-toggle' as EventName<CustomEvent<null>>,\n },\n});\n\nexport default Launcher;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,QAAQ,GAAG,eAAe,CAAC;IAC/B,OAAO,EAAE,iBAAiB,CAAC,EAAE;AAC7B,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,4BAA4D;AACvE,KAAA;AACF,CAAA;;"}
|
package/es/react/markdown.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
-
import CDSAIChatMarkdown from '../components/markdown/
|
|
3
|
-
import type { MarkdownCustomRenderers, MarkdownRendererCodeBlockArgs, MarkdownRendererTableArgs } from '../components/markdown/
|
|
2
|
+
import { CDSAIChatMarkdown } from '../components/aichat-markdown/index.js';
|
|
3
|
+
import type { MarkdownCustomRenderers, MarkdownRendererCodeBlockArgs, MarkdownRendererTableArgs } from '../components/aichat-markdown/markdown-renderer-types.js';
|
|
4
4
|
/**
|
|
5
|
-
* Thin `@lit/react`
|
|
6
|
-
* element children
|
|
7
|
-
*
|
|
8
|
-
* `Markdown` wrapper below.
|
|
5
|
+
* Thin `@lit/react` wrapper around `<cds-aichat-markdown>`. Handles text vs.
|
|
6
|
+
* element children, but performs no React-specific `customRenderers`
|
|
7
|
+
* portaling — that is layered on by the `Markdown` wrapper below.
|
|
9
8
|
*/
|
|
10
|
-
declare const BaseMarkdown: React.
|
|
9
|
+
declare const BaseMarkdown: React.ForwardRefExoticComponent<Omit<Omit<React.HTMLAttributes<CDSAIChatMarkdown>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "markdown" | "renderOptions" | "streaming" | "tableFilterPlaceholderText" | "tablePreviousPageText" | "tableNextPageText" | "tableItemsPerPageText" | "tableDownloadLabelText" | "tableLocale" | "tableGetPaginationSupplementalText" | "tableGetPaginationStatusText" | "codeSnippetHighlight" | "codeSnippetShowLessText" | "codeSnippetShowMoreText" | "codeSnippetCopyButtonTooltipContent" | "codeSnippetFeedback" | "codeSnippetFeedbackTimeout" | "codeSnippetGetLineCountText" | "codeSnippetAriaLabelReadOnly" | "codeSnippetAriaLabelEditable" | "renderedContent" | "sanitizeHTML" | "removeHTML" | "markdownItPlugins" | "customRenderers" | "tokenTree"> & {} & Partial<Omit<CDSAIChatMarkdown, keyof HTMLElement>> & React.RefAttributes<CDSAIChatMarkdown> & {
|
|
10
|
+
markdown?: string;
|
|
11
|
+
}, "ref"> & React.RefAttributes<CDSAIChatMarkdown>>;
|
|
11
12
|
/**
|
|
12
13
|
* React-flavored variant of {@link MarkdownCustomRenderers}. The element
|
|
13
14
|
* replacements (`table`, `codeBlock`) may additionally return a `ReactNode`
|
|
@@ -52,5 +53,5 @@ export interface MarkdownProps extends BaseMarkdownProps {
|
|
|
52
53
|
*/
|
|
53
54
|
customRenderers?: MarkdownReactCustomRenderers;
|
|
54
55
|
}
|
|
55
|
-
declare const Markdown: React.ForwardRefExoticComponent<
|
|
56
|
+
declare const Markdown: React.ForwardRefExoticComponent<MarkdownProps & React.RefAttributes<CDSAIChatMarkdown>>;
|
|
56
57
|
export default Markdown;
|
package/es/react/markdown.js
CHANGED
|
@@ -9,15 +9,20 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
import { createComponent } from '@lit/react';
|
|
10
10
|
import React, { forwardRef, useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
|
11
11
|
import { createPortal, flushSync } from 'react-dom';
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
12
|
+
import '../components/aichat-markdown/index.js';
|
|
13
|
+
import { CDSAIChatMarkdown } from '../components/aichat-markdown/aichat-markdown.js';
|
|
14
14
|
|
|
15
15
|
const LitMarkdown = createComponent({
|
|
16
|
-
tagName:
|
|
16
|
+
tagName: CDSAIChatMarkdown.is,
|
|
17
17
|
elementClass: CDSAIChatMarkdown,
|
|
18
18
|
react: React,
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Thin `@lit/react` wrapper around `<cds-aichat-markdown>`. Handles text vs.
|
|
22
|
+
* element children, but performs no React-specific `customRenderers`
|
|
23
|
+
* portaling — that is layered on by the `Markdown` wrapper below.
|
|
24
|
+
*/
|
|
25
|
+
const BaseMarkdown = React.forwardRef(({ children, markdown, ...rest }, forwardedRef) => {
|
|
21
26
|
const isTextChildren = typeof children === 'string' || typeof children === 'number';
|
|
22
27
|
return React.createElement(LitMarkdown, {
|
|
23
28
|
...rest,
|
|
@@ -29,14 +34,7 @@ const ForwardedBaseMarkdown = React.forwardRef(({ children, markdown, ...rest },
|
|
|
29
34
|
// slot forwarders inside the underlying `<cds-aichat-markdown>`).
|
|
30
35
|
isTextChildren ? null : children);
|
|
31
36
|
});
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Thin `@lit/react` bridge around `<cds-aichat-markdown>`. Handles text vs.
|
|
35
|
-
* element children and the web-component prop bridge, but performs no
|
|
36
|
-
* React-specific `customRenderers` portaling — that is layered on by the
|
|
37
|
-
* `Markdown` wrapper below.
|
|
38
|
-
*/
|
|
39
|
-
const BaseMarkdown = withWebComponentBridge(ForwardedBaseMarkdown);
|
|
37
|
+
BaseMarkdown.displayName = 'BaseMarkdown';
|
|
40
38
|
function isElement(value) {
|
|
41
39
|
return (typeof Element !== 'undefined' &&
|
|
42
40
|
value instanceof Element &&
|
package/es/react/markdown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sources":["../../src/react/markdown.tsx"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { createComponent } from '@lit/react';\nimport React, {\n forwardRef,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport { createPortal, flushSync } from 'react-dom';\n\n// Export the actual class for the component that will *directly* be wrapped with React.\nimport CDSAIChatMarkdown from '../components/markdown/src/markdown.js';\nimport type {\n MarkdownCustomRenderers,\n MarkdownRendererCodeBlockArgs,\n MarkdownRendererTableArgs,\n} from '../components/markdown/src/markdown-renderer-types.js';\nimport { withWebComponentBridge } from './utils/withWebComponentBridge';\n\nconst LitMarkdown = createComponent({\n tagName: 'cds-aichat-markdown',\n elementClass: CDSAIChatMarkdown,\n react: React,\n});\n\nconst ForwardedBaseMarkdown = React.forwardRef<\n CDSAIChatMarkdown,\n React.ComponentProps<typeof LitMarkdown> & { markdown?: string }\n>(({ children, markdown, ...rest }, forwardedRef) => {\n const isTextChildren =\n typeof children === 'string' || typeof children === 'number';\n return React.createElement(\n LitMarkdown,\n {\n ...rest,\n ref: forwardedRef,\n markdown: markdown ?? (isTextChildren ? String(children) : undefined),\n },\n // Text children become the `markdown` prop; element children pass through\n // as light-DOM slot children (used by the React wrapper to mount plugin\n // slot forwarders inside the underlying `<cds-aichat-markdown>`).\n isTextChildren ? null : children\n );\n});\n\nForwardedBaseMarkdown.displayName = 'BaseMarkdown';\n\n/**\n * Thin `@lit/react` bridge around `<cds-aichat-markdown>`. Handles text vs.\n * element children and the web-component prop bridge, but performs no\n * React-specific `customRenderers` portaling — that is layered on by the\n * `Markdown` wrapper below.\n */\nconst BaseMarkdown = withWebComponentBridge(ForwardedBaseMarkdown);\n\n/**\n * React-flavored variant of {@link MarkdownCustomRenderers}. The element\n * replacements (`table`, `codeBlock`) may additionally return a `ReactNode`\n * (portaled into a light-DOM slot host) on top of the framework-neutral\n * `HTMLElement | null`. The attribute transforms (`link`, `image`) and the\n * `checklist` behavior hook return plain data, so they keep the base\n * signatures unchanged.\n */\nexport interface MarkdownReactCustomRenderers {\n /**\n * Override the default `cds-aichat-table` rendering. Return a `ReactNode`\n * (rendered via portal into a light-DOM slot host) or an `HTMLElement`\n * (adopted into the slot host as-is); return `null` to fall back to the\n * default Carbon table renderer.\n */\n table?: (args: MarkdownRendererTableArgs) => ReactNode | HTMLElement | null;\n /**\n * Override the default `cds-aichat-code-snippet` rendering. Return a\n * `ReactNode` (rendered via portal into a light-DOM slot host) or an\n * `HTMLElement` (adopted into the slot host as-is); return `null` to fall\n * back to the default Carbon code snippet renderer.\n */\n codeBlock?: (\n args: MarkdownRendererCodeBlockArgs\n ) => ReactNode | HTMLElement | null;\n /** Transform how links render. See {@link MarkdownCustomRenderers.link}. */\n link?: MarkdownCustomRenderers['link'];\n /** Transform how images render. See {@link MarkdownCustomRenderers.image}. */\n image?: MarkdownCustomRenderers['image'];\n /** Make task-list checkboxes actionable. See {@link MarkdownCustomRenderers.checklist}. */\n checklist?: MarkdownCustomRenderers['checklist'];\n}\n\ntype BaseMarkdownProps = Omit<\n ComponentPropsWithoutRef<typeof BaseMarkdown>,\n 'customRenderers'\n>;\n\n/**\n * Props for the React `<Markdown>` wrapper around `<cds-aichat-markdown>`.\n */\nexport interface MarkdownProps extends BaseMarkdownProps {\n /**\n * Per-element render overrides. Each callback returns either a `ReactNode`\n * (rendered via portal into a light-DOM slot host) or an `HTMLElement`\n * (adopted into the slot host as-is). Return `null` to fall back to the\n * default Carbon rendering. Pass a stable reference (e.g. `useMemo`) — a\n * new object identity each render forces a full re-reconcile.\n */\n customRenderers?: MarkdownReactCustomRenderers;\n}\n\ntype PortalEntry = {\n slotName: string;\n host: HTMLDivElement;\n node: ReactNode;\n};\n\nfunction isElement(value: unknown): value is HTMLElement {\n return (\n typeof Element !== 'undefined' &&\n value instanceof Element &&\n 'tagName' in value\n );\n}\n\nconst Markdown = forwardRef<CDSAIChatMarkdown, MarkdownProps>(function Markdown(\n { customRenderers, ...rest },\n forwardedRef\n) {\n const hostsRef = useRef<Map<string, HTMLDivElement>>(new Map());\n const [portalEntries, setPortalEntries] = useState<PortalEntry[]>([]);\n\n const markdownRef = useRef<CDSAIChatMarkdown | null>(null);\n const setMarkdownRef = useCallback(\n (node: CDSAIChatMarkdown | null) => {\n markdownRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef && 'current' in forwardedRef) {\n (\n forwardedRef as React.MutableRefObject<CDSAIChatMarkdown | null>\n ).current = node;\n }\n },\n [forwardedRef]\n );\n\n const setPortalForSlot = useCallback(\n (slotName: string, host: HTMLDivElement, node: ReactNode) => {\n setPortalEntries((prev) => {\n const idx = prev.findIndex((e) => e.slotName === slotName);\n if (idx >= 0 && prev[idx].node === node && prev[idx].host === host) {\n return prev;\n }\n if (idx >= 0) {\n const next = prev.slice();\n next[idx] = { slotName, host, node };\n return next;\n }\n return [...prev, { slotName, host, node }];\n });\n },\n []\n );\n\n const bridgedRenderers = useMemo<MarkdownCustomRenderers | undefined>(() => {\n if (!customRenderers) {\n return undefined;\n }\n const bridge = <Args extends { slotName: string }>(\n callback: (args: Args) => ReactNode | HTMLElement | null\n ) => {\n return (args: Args): HTMLElement | null => {\n const rendered = callback(args);\n if (rendered == null) {\n return null;\n }\n if (isElement(rendered)) {\n return rendered;\n }\n // Mint or reuse a stable host for this slot, then flush a portal\n // update synchronously so the host is populated before the Lit\n // element adopts it (no empty-host flash).\n let host = hostsRef.current.get(args.slotName);\n if (!host) {\n host = document.createElement('div');\n hostsRef.current.set(args.slotName, host);\n }\n flushSync(() => {\n setPortalForSlot(args.slotName, host as HTMLDivElement, rendered);\n });\n return host;\n };\n };\n\n const out: MarkdownCustomRenderers = {};\n if (customRenderers.table) {\n out.table = bridge(customRenderers.table);\n }\n if (customRenderers.codeBlock) {\n out.codeBlock = bridge(customRenderers.codeBlock);\n }\n // Attribute transforms / behavior hook return plain data (not DOM), so\n // they skip the portal bridge and pass straight through.\n if (customRenderers.link) {\n out.link = customRenderers.link;\n }\n if (customRenderers.image) {\n out.image = customRenderers.image;\n }\n if (customRenderers.checklist) {\n out.checklist = customRenderers.checklist;\n }\n return out;\n }, [customRenderers, setPortalForSlot]);\n\n // After every commit, prune portals whose host Lit has removed (its slot\n // dropped out of the descriptor batch, leaving the host detached). The\n // connectivity check is deferred to a microtask on purpose: `bridge` mints a\n // host, `flushSync`s the portal into it while it is still detached, and only\n // *returns* it to Lit — which appends it synchronously afterwards. That\n // `flushSync` runs this effect once while the host is not yet adopted, so a\n // synchronous `isConnected` check would prune the entry we just added and\n // leave the slot permanently empty (e.g. a streaming table custom renderer\n // flickering out as later content arrives). Reading `isConnected` a\n // microtask later lets Lit's adoption land first, so we only drop\n // genuinely-removed hosts.\n\n useEffect(() => {\n let cancelled = false;\n queueMicrotask(() => {\n if (cancelled) {\n return;\n }\n let pruned = false;\n const aliveHosts = new Map<string, HTMLDivElement>();\n for (const [slotName, host] of hostsRef.current) {\n if (host.isConnected) {\n aliveHosts.set(slotName, host);\n } else {\n pruned = true;\n }\n }\n if (pruned) {\n hostsRef.current = aliveHosts;\n }\n setPortalEntries((prev) => {\n const filtered = prev.filter((e) => e.host.isConnected);\n return filtered.length === prev.length ? prev : filtered;\n });\n });\n return () => {\n cancelled = true;\n };\n });\n\n return (\n <>\n <BaseMarkdown\n {...rest}\n ref={setMarkdownRef as React.Ref<HTMLElement>}\n customRenderers={bridgedRenderers as never}\n />\n {portalEntries.map((entry) => (\n <React.Fragment key={entry.slotName}>\n {createPortal(entry.node, entry.host)}\n </React.Fragment>\n ))}\n </>\n );\n});\n\nMarkdown.displayName = 'Markdown';\n\nexport default Markdown;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;AA+BA,MAAM,WAAW,GAAG,eAAe,CAAC;AAClC,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC;AAEF,MAAM,qBAAqB,GAAG,KAAK,CAAC,UAAU,CAG5C,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,KAAI;IAClD,MAAM,cAAc,GAClB,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ;AAC9D,IAAA,OAAO,KAAK,CAAC,aAAa,CACxB,WAAW,EACX;AACE,QAAA,GAAG,IAAI;AACP,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,QAAQ,EAAE,QAAQ,KAAK,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;AACtE,KAAA;;;;IAID,cAAc,GAAG,IAAI,GAAG,QAAQ,CACjC;AACH,CAAC,CAAC;AAEF,qBAAqB,CAAC,WAAW,GAAG,cAAc;AAElD;;;;;AAKG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,qBAAqB,CAAC;AA4DlE,SAAS,SAAS,CAAC,KAAc,EAAA;AAC/B,IAAA,QACE,OAAO,OAAO,KAAK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,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,QAAQ;AAC1D,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;AACF,QAAA,OAAO,MAAK;YACV,SAAS,GAAG,IAAI;AAClB,QAAA,CAAC;AACH,IAAA,CAAC,CAAC;IAEF,QACEA,4BACEC,GAAA,CAAC,YAAY,OACP,IAAI,EACR,GAAG,EAAE,cAAwC,EAC7C,eAAe,EAAE,gBAAyB,EAAA,CAC1C,EACD,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,MACvBA,GAAA,CAAC,KAAK,CAAC,QAAQ,EAAA,EAAA,QAAA,EACZ,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAA,EADlB,KAAK,CAAC,QAAQ,CAElB,CAClB,CAAC,CAAA,EAAA,CACD;AAEP,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
|
|
1
|
+
{"version":3,"file":"markdown.js","sources":["../../src/react/markdown.tsx"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { createComponent } from '@lit/react';\nimport React, {\n forwardRef,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport { createPortal, flushSync } from 'react-dom';\n\nimport { CDSAIChatMarkdown } from '../components/aichat-markdown/index.js';\nimport type {\n MarkdownCustomRenderers,\n MarkdownRendererCodeBlockArgs,\n MarkdownRendererTableArgs,\n} from '../components/aichat-markdown/markdown-renderer-types.js';\n\nconst LitMarkdown = createComponent({\n tagName: CDSAIChatMarkdown.is,\n elementClass: CDSAIChatMarkdown,\n react: React,\n});\n\n/**\n * Thin `@lit/react` wrapper around `<cds-aichat-markdown>`. Handles text vs.\n * element children, but performs no React-specific `customRenderers`\n * portaling — that is layered on by the `Markdown` wrapper below.\n */\nconst BaseMarkdown = React.forwardRef<\n CDSAIChatMarkdown,\n React.ComponentProps<typeof LitMarkdown> & { markdown?: string }\n>(({ children, markdown, ...rest }, forwardedRef) => {\n const isTextChildren =\n typeof children === 'string' || typeof children === 'number';\n return React.createElement(\n LitMarkdown,\n {\n ...rest,\n ref: forwardedRef,\n markdown: markdown ?? (isTextChildren ? String(children) : undefined),\n },\n // Text children become the `markdown` prop; element children pass through\n // as light-DOM slot children (used by the React wrapper to mount plugin\n // slot forwarders inside the underlying `<cds-aichat-markdown>`).\n isTextChildren ? null : children\n );\n});\n\nBaseMarkdown.displayName = 'BaseMarkdown';\n\n/**\n * React-flavored variant of {@link MarkdownCustomRenderers}. The element\n * replacements (`table`, `codeBlock`) may additionally return a `ReactNode`\n * (portaled into a light-DOM slot host) on top of the framework-neutral\n * `HTMLElement | null`. The attribute transforms (`link`, `image`) and the\n * `checklist` behavior hook return plain data, so they keep the base\n * signatures unchanged.\n */\nexport interface MarkdownReactCustomRenderers {\n /**\n * Override the default `cds-aichat-table` rendering. Return a `ReactNode`\n * (rendered via portal into a light-DOM slot host) or an `HTMLElement`\n * (adopted into the slot host as-is); return `null` to fall back to the\n * default Carbon table renderer.\n */\n table?: (args: MarkdownRendererTableArgs) => ReactNode | HTMLElement | null;\n /**\n * Override the default `cds-aichat-code-snippet` rendering. Return a\n * `ReactNode` (rendered via portal into a light-DOM slot host) or an\n * `HTMLElement` (adopted into the slot host as-is); return `null` to fall\n * back to the default Carbon code snippet renderer.\n */\n codeBlock?: (\n args: MarkdownRendererCodeBlockArgs\n ) => ReactNode | HTMLElement | null;\n /** Transform how links render. See {@link MarkdownCustomRenderers.link}. */\n link?: MarkdownCustomRenderers['link'];\n /** Transform how images render. See {@link MarkdownCustomRenderers.image}. */\n image?: MarkdownCustomRenderers['image'];\n /** Make task-list checkboxes actionable. See {@link MarkdownCustomRenderers.checklist}. */\n checklist?: MarkdownCustomRenderers['checklist'];\n}\n\ntype BaseMarkdownProps = Omit<\n ComponentPropsWithoutRef<typeof BaseMarkdown>,\n 'customRenderers'\n>;\n\n/**\n * Props for the React `<Markdown>` wrapper around `<cds-aichat-markdown>`.\n */\nexport interface MarkdownProps extends BaseMarkdownProps {\n /**\n * Per-element render overrides. Each callback returns either a `ReactNode`\n * (rendered via portal into a light-DOM slot host) or an `HTMLElement`\n * (adopted into the slot host as-is). Return `null` to fall back to the\n * default Carbon rendering. Pass a stable reference (e.g. `useMemo`) — a\n * new object identity each render forces a full re-reconcile.\n */\n customRenderers?: MarkdownReactCustomRenderers;\n}\n\ntype PortalEntry = {\n slotName: string;\n host: HTMLDivElement;\n node: ReactNode;\n};\n\nfunction isElement(value: unknown): value is HTMLElement {\n return (\n typeof Element !== 'undefined' &&\n value instanceof Element &&\n 'tagName' in value\n );\n}\n\nconst Markdown = forwardRef<CDSAIChatMarkdown, MarkdownProps>(function Markdown(\n { customRenderers, ...rest },\n forwardedRef\n) {\n const hostsRef = useRef<Map<string, HTMLDivElement>>(new Map());\n const [portalEntries, setPortalEntries] = useState<PortalEntry[]>([]);\n\n const markdownRef = useRef<CDSAIChatMarkdown | null>(null);\n const setMarkdownRef = useCallback(\n (node: CDSAIChatMarkdown | null) => {\n markdownRef.current = node;\n if (typeof forwardedRef === 'function') {\n forwardedRef(node);\n } else if (forwardedRef && 'current' in forwardedRef) {\n (\n forwardedRef as React.MutableRefObject<CDSAIChatMarkdown | null>\n ).current = node;\n }\n },\n [forwardedRef]\n );\n\n const setPortalForSlot = useCallback(\n (slotName: string, host: HTMLDivElement, node: ReactNode) => {\n setPortalEntries((prev) => {\n const idx = prev.findIndex((e) => e.slotName === slotName);\n if (idx >= 0 && prev[idx].node === node && prev[idx].host === host) {\n return prev;\n }\n if (idx >= 0) {\n const next = prev.slice();\n next[idx] = { slotName, host, node };\n return next;\n }\n return [...prev, { slotName, host, node }];\n });\n },\n []\n );\n\n const bridgedRenderers = useMemo<MarkdownCustomRenderers | undefined>(() => {\n if (!customRenderers) {\n return undefined;\n }\n const bridge = <Args extends { slotName: string }>(\n callback: (args: Args) => ReactNode | HTMLElement | null\n ) => {\n return (args: Args): HTMLElement | null => {\n const rendered = callback(args);\n if (rendered == null) {\n return null;\n }\n if (isElement(rendered)) {\n return rendered;\n }\n // Mint or reuse a stable host for this slot, then flush a portal\n // update synchronously so the host is populated before the Lit\n // element adopts it (no empty-host flash).\n let host = hostsRef.current.get(args.slotName);\n if (!host) {\n host = document.createElement('div');\n hostsRef.current.set(args.slotName, host);\n }\n flushSync(() => {\n setPortalForSlot(args.slotName, host as HTMLDivElement, rendered);\n });\n return host;\n };\n };\n\n const out: MarkdownCustomRenderers = {};\n if (customRenderers.table) {\n out.table = bridge(customRenderers.table);\n }\n if (customRenderers.codeBlock) {\n out.codeBlock = bridge(customRenderers.codeBlock);\n }\n // Attribute transforms / behavior hook return plain data (not DOM), so\n // they skip the portal bridge and pass straight through.\n if (customRenderers.link) {\n out.link = customRenderers.link;\n }\n if (customRenderers.image) {\n out.image = customRenderers.image;\n }\n if (customRenderers.checklist) {\n out.checklist = customRenderers.checklist;\n }\n return out;\n }, [customRenderers, setPortalForSlot]);\n\n // After every commit, prune portals whose host Lit has removed (its slot\n // dropped out of the descriptor batch, leaving the host detached). The\n // connectivity check is deferred to a microtask on purpose: `bridge` mints a\n // host, `flushSync`s the portal into it while it is still detached, and only\n // *returns* it to Lit — which appends it synchronously afterwards. That\n // `flushSync` runs this effect once while the host is not yet adopted, so a\n // synchronous `isConnected` check would prune the entry we just added and\n // leave the slot permanently empty (e.g. a streaming table custom renderer\n // flickering out as later content arrives). Reading `isConnected` a\n // microtask later lets Lit's adoption land first, so we only drop\n // genuinely-removed hosts.\n\n useEffect(() => {\n let cancelled = false;\n queueMicrotask(() => {\n if (cancelled) {\n return;\n }\n let pruned = false;\n const aliveHosts = new Map<string, HTMLDivElement>();\n for (const [slotName, host] of hostsRef.current) {\n if (host.isConnected) {\n aliveHosts.set(slotName, host);\n } else {\n pruned = true;\n }\n }\n if (pruned) {\n hostsRef.current = aliveHosts;\n }\n setPortalEntries((prev) => {\n const filtered = prev.filter((e) => e.host.isConnected);\n return filtered.length === prev.length ? prev : filtered;\n });\n });\n return () => {\n cancelled = true;\n };\n });\n\n return (\n <>\n <BaseMarkdown\n {...rest}\n ref={setMarkdownRef}\n customRenderers={bridgedRenderers}\n />\n {portalEntries.map((entry) => (\n <React.Fragment key={entry.slotName}>\n {createPortal(entry.node, entry.host)}\n </React.Fragment>\n ))}\n </>\n );\n});\n\nMarkdown.displayName = 'Markdown';\n\nexport default Markdown;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;AA6BA,MAAM,WAAW,GAAG,eAAe,CAAC;IAClC,OAAO,EAAE,iBAAiB,CAAC,EAAE;AAC7B,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC;AAEF;;;;AAIG;AACH,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAGnC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,KAAI;IAClD,MAAM,cAAc,GAClB,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ;AAC9D,IAAA,OAAO,KAAK,CAAC,aAAa,CACxB,WAAW,EACX;AACE,QAAA,GAAG,IAAI;AACP,QAAA,GAAG,EAAE,YAAY;AACjB,QAAA,QAAQ,EAAE,QAAQ,KAAK,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;AACtE,KAAA;;;;IAID,cAAc,GAAG,IAAI,GAAG,QAAQ,CACjC;AACH,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc;AA4DzC,SAAS,SAAS,CAAC,KAAc,EAAA;AAC/B,IAAA,QACE,OAAO,OAAO,KAAK,WAAW;AAC9B,QAAA,KAAK,YAAY,OAAO;QACxB,SAAS,IAAI,KAAK;AAEtB;AA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AA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;AACF,QAAA,OAAO,MAAK;YACV,SAAS,GAAG,IAAI;AAClB,QAAA,CAAC;AACH,IAAA,CAAC,CAAC;IAEF,QACEA,4BACEC,GAAA,CAAC,YAAY,OACP,IAAI,EACR,GAAG,EAAE,cAAc,EACnB,eAAe,EAAE,gBAAgB,EAAA,CACjC,EACD,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,MACvBA,GAAA,CAAC,KAAK,CAAC,QAAQ,EAAA,EAAA,QAAA,EACZ,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAA,EADlB,KAAK,CAAC,QAAQ,CAElB,CAClB,CAAC,CAAA,EAAA,CACD;AAEP,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
|
|
@@ -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 '../components/aichat-message-byline/index.js';
|
|
11
|
+
import { CDSAIChatMessageByline } from '../components/aichat-message-byline/aichat-message-byline.js';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright IBM Corp. 2026
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*
|
|
19
|
+
* @license
|
|
20
|
+
*/
|
|
21
|
+
const MessageByline = createComponent({
|
|
22
|
+
tagName: CDSAIChatMessageByline.is,
|
|
23
|
+
elementClass: CDSAIChatMessageByline,
|
|
24
|
+
react: React,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { MessageByline as default };
|
|
28
|
+
//# sourceMappingURL=message-byline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-byline.js","sources":["../../src/react/message-byline.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { createComponent } from '@lit/react';\nimport React from 'react';\nimport { CDSAIChatMessageByline } from '../components/aichat-message-byline/index.js';\n\nconst MessageByline = createComponent({\n tagName: CDSAIChatMessageByline.is,\n elementClass: CDSAIChatMessageByline,\n react: React,\n});\n\nexport default MessageByline;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,aAAa,GAAG,eAAe,CAAC;IACpC,OAAO,EAAE,sBAAsB,CAAC,EAAE;AAClC,IAAA,YAAY,EAAE,sBAAsB;AACpC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 '../components/aichat-message-item-shell/index.js';
|
|
11
|
+
import { CDSAIChatMessageItemShell } from '../components/aichat-message-item-shell/aichat-message-item-shell.js';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright IBM Corp. 2026
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*
|
|
19
|
+
* @license
|
|
20
|
+
*/
|
|
21
|
+
const MessageItemShell = createComponent({
|
|
22
|
+
tagName: CDSAIChatMessageItemShell.is,
|
|
23
|
+
elementClass: CDSAIChatMessageItemShell,
|
|
24
|
+
react: React,
|
|
25
|
+
events: {},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export { MessageItemShell as default };
|
|
29
|
+
//# sourceMappingURL=message-item-shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-item-shell.js","sources":["../../src/react/message-item-shell.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { createComponent } from '@lit/react';\nimport React from 'react';\nimport { CDSAIChatMessageItemShell } from '../components/aichat-message-item-shell/index.js';\n\nconst MessageItemShell = createComponent({\n tagName: CDSAIChatMessageItemShell.is,\n elementClass: CDSAIChatMessageItemShell,\n react: React,\n events: {},\n});\n\nexport default MessageItemShell;\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,gBAAgB,GAAG,eAAe,CAAC;IACvC,OAAO,EAAE,yBAAyB,CAAC,EAAE;AACrC,IAAA,YAAY,EAAE,yBAAyB;AACvC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE,EAAE;AACX,CAAA;;"}
|