@carbon/ai-chat-components 1.15.0-rc.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 +19635 -15376
- 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.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 -150
- package/es/components/chat-history/src/history-panel-item.js +1 -448
- 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 -211
- package/es/components/code-snippet/src/code-snippet.js +1 -986
- 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 -116
- package/es/components/file-uploads/src/file-upload-item.js +1 -474
- 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 -136
- package/es/components/file-uploads/src/file-uploads.js +1 -337
- 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 -4
- package/es/components/markdown/index.js.map +1 -1
- package/es/components/markdown/src/inline-markdown.d.ts +1 -41
- package/es/components/markdown/src/inline-markdown.js +2 -90
- package/es/components/markdown/src/inline-markdown.js.map +1 -1
- package/es/components/markdown/src/markdown-renderer-types.d.ts +1 -397
- package/es/components/markdown/src/markdown-renderer.d.ts +1 -26
- package/es/components/markdown/src/markdown-renderer.js +1 -634
- 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 -143
- package/es/components/markdown/src/markdown.js +1 -876
- 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 -174
- 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 +1 -3
- package/es/components/message-item-shell/index.js +2 -1
- package/es/components/message-item-shell/index.js.map +1 -1
- package/es/components/message-item-shell/src/message-item-shell.d.ts +2 -48
- package/es/components/message-item-shell/src/message-item-shell.js +1 -83
- package/es/components/message-item-shell/src/message-item-shell.js.map +1 -1
- 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 +9 -3
- package/es/components/message-item-shell/src/message-item-shell.scss.js.map +1 -1
- 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 -450
- 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 -385
- 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 -207
- package/es/components/prompt-line/src/prompt-line.js +1 -585
- 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 -228
- 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 -95
- package/es/components/toolbar/src/toolbar.js +1 -401
- 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 +1 -2
- package/es/components/user-avatar/index.js +2 -1
- package/es/components/user-avatar/index.js.map +1 -1
- package/es/components/user-avatar/src/user-avatar.d.ts +2 -46
- package/es/components/user-avatar/src/user-avatar.js +1 -145
- package/es/components/user-avatar/src/user-avatar.js.map +1 -1
- package/es/components/user-avatar/src/user-avatar.scss.d.ts +3 -0
- package/es/components/user-avatar/src/user-avatar.scss.js +9 -3
- package/es/components/user-avatar/src/user-avatar.scss.js.map +1 -1
- 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/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.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 +5 -5
- 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 +14 -11
- package/es/react/code-snippet.js +6 -5
- 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 +2 -2
- package/es/react/message-item-shell.js +5 -6
- package/es/react/message-item-shell.js.map +1 -1
- 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 +7 -2
- package/es/react/toolbar.js +6 -6
- 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 +2 -2
- package/es/react/user-avatar.js +5 -6
- package/es/react/user-avatar.js.map +1 -1
- 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 +66 -28
- 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 +2 -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/components/shared/root-styles.d.ts +0 -30
- package/es/components/shared/root-styles.js +0 -72
- package/es/components/shared/root-styles.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 -150
- package/es-custom/components/chat-history/src/history-panel-item.js +0 -456
- 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/index.js.map +0 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +0 -211
- package/es-custom/components/code-snippet/src/code-snippet.js +0 -994
- 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/index.js.map +0 -1
- 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 -116
- package/es-custom/components/file-uploads/src/file-upload-item.js +0 -482
- 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 -136
- package/es-custom/components/file-uploads/src/file-uploads.js +0 -345
- 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 -12
- package/es-custom/components/markdown/index.js.map +0 -1
- package/es-custom/components/markdown/src/inline-markdown.js +0 -98
- 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 -397
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +0 -26
- package/es-custom/components/markdown/src/markdown-renderer.js +0 -642
- 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 -143
- package/es-custom/components/markdown/src/markdown.js +0 -884
- 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 -182
- 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/message-item-shell/index.d.ts +0 -11
- package/es-custom/components/message-item-shell/index.js +0 -9
- package/es-custom/components/message-item-shell/index.js.map +0 -1
- package/es-custom/components/message-item-shell/src/message-item-shell.d.ts +0 -48
- package/es-custom/components/message-item-shell/src/message-item-shell.js +0 -91
- package/es-custom/components/message-item-shell/src/message-item-shell.js.map +0 -1
- package/es-custom/components/message-item-shell/src/message-item-shell.scss.js +0 -13
- package/es-custom/components/message-item-shell/src/message-item-shell.scss.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 -458
- 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 -393
- 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 -207
- package/es-custom/components/prompt-line/src/prompt-line.js +0 -593
- 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 -228
- 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/shared/root-styles.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 -95
- package/es-custom/components/toolbar/src/toolbar.js +0 -409
- 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/user-avatar/index.d.ts +0 -10
- package/es-custom/components/user-avatar/index.js +0 -9
- package/es-custom/components/user-avatar/index.js.map +0 -1
- package/es-custom/components/user-avatar/src/user-avatar.d.ts +0 -46
- package/es-custom/components/user-avatar/src/user-avatar.js +0 -153
- package/es-custom/components/user-avatar/src/user-avatar.js.map +0 -1
- package/es-custom/components/user-avatar/src/user-avatar.scss.js +0 -13
- package/es-custom/components/user-avatar/src/user-avatar.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 -197
- 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 -57
- 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 -40
- package/es-custom/react/code-snippet.js +0 -89
- 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/message-item-shell.d.ts +0 -3
- package/es-custom/react/message-item-shell.js +0 -30
- package/es-custom/react/message-item-shell.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 -82
- 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/user-avatar.d.ts +0 -3
- package/es-custom/react/user-avatar.js +0 -29
- package/es-custom/react/user-avatar.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.d.ts +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/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 → es/globals/utils}/root-styles.d.ts +0 -0
- /package/{es-custom/components/shared → es/globals/utils}/root-styles.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages-scroll-controller.js","sources":["../../../src/components/aichat-messages-shell/messages-scroll-controller.ts"],"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 throttle from 'lodash-es/throttle.js';\nimport { prefix } from '../../globals/settings.js';\n\n/**\n * Framework-agnostic scroll controller, connected to the view through {@link ScrollHost}.\n *\n * A new request stays near the viewport top while its response fills the space below.\n * The list's minimum height keeps that position reachable through transient layout changes,\n * including content that shrinks and regrows before ResizeObserver runs.\n *\n * The per-message observer reconciles actual sizes before paint. During streaming the spacer\n * only grows; afterward each resize trims it to the minimum needed for the current position.\n * A deliberate scroll-away releases the pin's minimum height and disables pin restoration.\n */\n\n// ============================================================================\n// Host adapter types\n// ============================================================================\n\n/**\n * A framework-neutral view of a single message row, as seen by the scroll engine.\n * The host computes the semantic flags; the controller only ever needs the element.\n *\n * When used with `cds-aichat-messages-shell`, `id` comes from the row element's\n * `id` attribute and `messageId` from its `data-message-id` attribute.\n */\nexport interface PortableMessage {\n /** Stable per-row id (the `id` attribute on the row element). */\n id: string;\n /**\n * The id of the full message this row belongs to. Unlike `id`, it survives a\n * message's rows being rebuilt (e.g. when a stream finalizes). Set via the\n * `data-message-id` attribute on the row element.\n */\n messageId: string;\n /** The rendered root element for this row, or null if not yet mounted. */\n element: HTMLElement | null;\n /**\n * Whether this row qualifies as a pin target. The host computes this as\n * `isRequest(msg)` OR (`isResponse(msg)` AND its request's `history.silent`).\n */\n isPinnable: boolean;\n /** Whether this row is currently streaming (`streamingState && !streamingState.isDone`). */\n isStreaming: boolean;\n /** Whether this row's full message is a response. */\n isResponse: boolean;\n}\n\n/**\n * Options for controlling how the scrolling occurs. Mirrors the public\n * `AutoScrollOptions` shape but is defined locally to keep the controller\n * free of `@carbon/ai-chat` imports.\n */\nexport interface ScrollOptions {\n scrollToTop?: number;\n scrollToBottom?: number;\n preferAnimate?: boolean;\n}\n\n/**\n * The adapter the host implements so the controller can read/write the DOM\n * without knowing about the host framework. Implemented by\n * `CDSAIChatMessagesShell` in `@carbon/ai-chat-components`.\n */\nexport interface ScrollHost {\n /** The scrollable container element. */\n getScrollContainer(): HTMLElement | null;\n /** The bottom spacer element that is measured/grown to keep the pin reachable. */\n getSpacer(): HTMLElement | null;\n /** Apply the spacer's block size (host keeps CSP/root knowledge). */\n setSpacerHeight(px: number): void;\n /** Keep the scroll range reachable through transient content collapse. */\n setScrollHeightFloor(px: number): void;\n /** All message rows in document order; host computes the flags. */\n getMessages(): PortableMessage[];\n /** Full messages can exist before their replacement rows mount. */\n hasMessage(messageId: string): boolean;\n /** Notify the host that scroll geometry changed (repaint scroll-to-bottom button). */\n onScrollGeometryChanged(): void;\n}\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nconst DEBUG_AUTO_SCROLL = false;\nconst STREAM_END_NEAR_PIN_THRESHOLD_PX = 60;\nconst SCROLL_DOWN_THRESHOLD_PX = 60;\n\n/**\n * How far above the pin the user must scroll before we treat it as a deliberate\n * \"scroll away\" that disengages auto-scroll. Matches the streaming restore threshold.\n */\nconst USER_SCROLL_AWAY_THRESHOLD_PX = 50;\n\n/**\n * Window resize handler throttle - recalculates layout when browser window is resized.\n * User-initiated window resizing doesn't need sub-frame precision.\n */\nconst WINDOW_RESIZE_THROTTLE_MS = 200;\n\n/**\n * General auto-scroll operations throttle - triggered by message updates.\n * Balance between responsiveness and avoiding excessive scroll calculations.\n */\nconst AUTO_SCROLL_THROTTLE_MS = 150;\n\n/**\n * When we auto-scroll to a message, we want to scroll a bit more than necessary because messages have a lot of\n * padding on the top that we want to cut off when scrolling. This is the extra amount we scroll by.\n * Note: A negative value will leave more of the previous message visible above the target message.\n * For example, -60 will show approximately 60px of the previous conversation above the new message.\n */\nconst AUTO_SCROLL_EXTRA = -60;\n\n/**\n * The visible portion (in pixels) to show at the bottom of a tall message when auto-scrolling.\n * Ensures the response isn't completely hidden when the request message is very tall.\n */\nconst VISIBLE_BOTTOM_PORTION_PX = 100;\n\n/**\n * The threshold ratio for determining if a message is \"very tall\".\n * A message is considered very tall if its height exceeds this ratio of the scroller height.\n */\nconst TALL_MESSAGE_THRESHOLD_RATIO = 0.25; // 1/4\n\n// ============================================================================\n// Small DOM helpers (copied from ai-chat `domUtils` to keep the import boundary\n// clean — these are trivial and framework-agnostic).\n// ============================================================================\n\n/**\n * Sets the scroll position on the given scrollable element to the given top and left values.\n */\nfunction doScrollElement(\n element: Element,\n scrollTop: number,\n scrollLeft: number,\n animate = false\n): void {\n if (element) {\n if (animate && element.scroll) {\n element.scroll({\n top: scrollTop,\n left: scrollLeft,\n behavior: 'smooth',\n });\n } else {\n element.scrollTop = scrollTop;\n element.scrollLeft = scrollLeft;\n }\n }\n}\n\n/**\n * Returns the \"scrollBottom\" value for the given element. This is similar to \"scrollTop\" except that it represents\n * the distance the element has been scrolled from the bottom.\n */\nfunction getScrollBottom(element: HTMLElement | null): number {\n if (element) {\n return element.scrollHeight - element.offsetHeight - element.scrollTop;\n }\n return 0;\n}\n\n// ============================================================================\n// Types and Interfaces (engine-internal)\n// ============================================================================\n\n/**\n * Declarative decision output consumed by the controller's action executor.\n * Keeping this explicit makes branching behavior testable and easy to inspect.\n */\ntype AutoScrollAction =\n | {\n scrollTop: number;\n type: 'scroll_to_top';\n }\n | {\n preferAnimate: boolean;\n scrollTop: number;\n type: 'scroll_to_bottom';\n }\n | {\n type: 'reset_to_top';\n }\n | {\n message: PortableMessage;\n type: 'pin_message';\n }\n | {\n type: 'recalculate_spacer';\n }\n | {\n type: 'noop';\n };\n\ninterface ResolveAutoScrollActionParams {\n messages: PortableMessage[];\n options: ScrollOptions;\n pinnedMessageId: string | null;\n scrollElement: HTMLElement;\n}\n\ninterface PinAndScrollResult {\n // Mirrors the spacer DOM write that was just performed.\n currentSpacerHeight: number;\n // Baseline used by streaming delta tracking.\n lastScrollHeight: number;\n // The message now considered \"pinned\".\n pinnedMessageId: string;\n scrollTop: number;\n}\n\ninterface SpacerRecalculationResult {\n deficit: number;\n scrollTop: number;\n}\n\ninterface MessageArrayChangeFlags {\n countChanged: boolean;\n itemsChanged: boolean;\n}\n\ninterface StreamingTransition {\n enteredStreaming: boolean;\n exitedStreaming: boolean;\n isCurrentlyStreaming: boolean;\n wasStreaming: boolean;\n}\n\ntype StreamEndAction = 're_pin_and_scroll' | 'recalculate_and_preserve_scroll';\n\ninterface PublicSpacerReconciliationAction {\n type: 'noop' | 'recalculate_spacer_preserve_scroll';\n}\n\n/**\n * State for the message resize observer instance.\n */\ninterface MessageResizeObserverState {\n /** The ResizeObserver instance. */\n observer: ResizeObserver;\n /** Tracks the last known size of each observed message element. */\n messageSizes: Map<Element, number>;\n}\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n/**\n * Iterates backwards through `messages` to find the last row that qualifies as a\n * scroll target (`isPinnable`). Returns the matching message, or null if none found.\n *\n * Index 0 is never considered a pin target, which avoids pinning to the very first\n * entry on initial render.\n */\nfunction findLastPinnable(messages: PortableMessage[]): PortableMessage | null {\n let messageIndex = messages.length - 1;\n\n // Index 0 is not a pin target — this avoids pinning to the very first entry on\n // initial render.\n while (messageIndex >= 1) {\n const message = messages[messageIndex];\n\n if (message?.isPinnable) {\n return message;\n }\n messageIndex--;\n }\n\n return null;\n}\n\n/**\n * Calculates the base scroll position needed to place the target message at the top of the\n * visible scroll area. Adds `AUTO_SCROLL_EXTRA` padding to cut the message's top padding.\n */\nfunction calculateBaseScrollTop(\n targetRect: DOMRect,\n scrollerRect: DOMRect,\n currentScrollTop: number\n): number {\n const targetOffsetWithinScroller =\n targetRect.top - scrollerRect.top + currentScrollTop;\n return Math.max(\n 0,\n Math.floor(targetOffsetWithinScroller + AUTO_SCROLL_EXTRA)\n );\n}\n\n/**\n * Adjusts the scroll position for very tall messages to ensure the response below remains\n * visible. If the target message exceeds 25% of the scroller height, we scroll past most of\n * it, leaving only `VISIBLE_BOTTOM_PORTION_PX` visible at the bottom.\n */\nfunction adjustScrollTopForTallMessage(\n baseScrollTop: number,\n targetHeight: number,\n scrollerHeight: number\n): number {\n const isVeryTall =\n targetHeight > scrollerHeight * TALL_MESSAGE_THRESHOLD_RATIO;\n\n if (!isVeryTall) {\n return baseScrollTop;\n }\n\n const tallAdjustment = Math.max(0, targetHeight - VISIBLE_BOTTOM_PORTION_PX);\n\n return baseScrollTop + tallAdjustment;\n}\n\n/**\n * Calculates how tall the spacer div at the bottom of the message list needs to be so that\n * the scroll container can actually reach `finalScrollTop`. Without extra space at the bottom,\n * the browser will cap `scrollTop` at `scrollHeight - clientHeight`.\n */\nfunction calculateSpacerDeficit(\n spacerElem: HTMLElement,\n scrollElement: HTMLElement,\n scrollerRect: DOMRect,\n finalScrollTop: number\n): number {\n const spacerRect = spacerElem.getBoundingClientRect();\n const spacerOffset =\n spacerRect.top - scrollerRect.top + scrollElement.scrollTop;\n const visibleBottom = finalScrollTop + scrollElement.clientHeight;\n\n return Math.max(0, Math.ceil(visibleBottom - spacerOffset));\n}\n\nfunction hasActiveStreaming(messages: PortableMessage[]): boolean {\n return messages.some((message) => message.isStreaming);\n}\n\nfunction getMessageArrayChangeFlags({\n oldItems,\n newItems,\n}: {\n oldItems: PortableMessage[];\n newItems: PortableMessage[];\n}): MessageArrayChangeFlags {\n return {\n countChanged: newItems.length !== oldItems.length,\n itemsChanged: newItems !== oldItems,\n };\n}\n\n/**\n * True when every previously rendered message is gone — a restart or other full clear. A\n * replacement list (e.g. a welcome message added in the same frame) still counts, so this does\n * not depend on the host ever committing an empty list. Compares full-message ids, since row\n * ids can be regenerated for a message that is still present.\n */\nfunction didClearAllMessages({\n oldItems,\n newItems,\n}: {\n oldItems: PortableMessage[];\n newItems: PortableMessage[];\n}): boolean {\n if (!oldItems.length) {\n return false;\n }\n const oldIds = new Set(oldItems.map((message) => message.messageId));\n return !newItems.some((message) => oldIds.has(message.messageId));\n}\n\nfunction getStreamingTransition({\n oldItems,\n newItems,\n}: {\n oldItems: PortableMessage[];\n newItems: PortableMessage[];\n}): StreamingTransition {\n const wasStreaming = hasActiveStreaming(oldItems);\n const isCurrentlyStreaming = hasActiveStreaming(newItems);\n return {\n enteredStreaming: !wasStreaming && isCurrentlyStreaming,\n exitedStreaming: wasStreaming && !isCurrentlyStreaming,\n isCurrentlyStreaming,\n wasStreaming,\n };\n}\n\nfunction getAnchoringRestoreTarget({\n currentScrollTop,\n snapshot,\n}: {\n currentScrollTop: number;\n snapshot: number | null;\n}): number | null {\n if (snapshot === null || currentScrollTop >= snapshot) {\n return null;\n }\n return snapshot;\n}\n\nfunction resolveStreamEndAction({\n nearPinThresholdPx,\n pinnedScrollTop,\n scrollTop,\n maxScrollTop,\n}: {\n nearPinThresholdPx: number;\n pinnedScrollTop: number;\n scrollTop: number;\n maxScrollTop?: number;\n}): StreamEndAction {\n // Content shrank and the browser capped scrollTop below the pin — this is\n // browser-initiated, not a user scroll, so we must still re-pin. Mirrors the\n // `wasBrowserCapped` exception in the streaming ResizeObserver guard.\n const wasBrowserCapped =\n maxScrollTop !== undefined &&\n scrollTop >= maxScrollTop - 2 &&\n scrollTop < pinnedScrollTop;\n\n // Symmetric distance check: a manual scroll in EITHER direction past the\n // threshold means the user moved away from the pin, so we preserve their\n // position instead of yanking them back. A one-directional check here would\n // miss upward scrolls and re-pin over the top of them.\n const scrolledAway =\n Math.abs(scrollTop - pinnedScrollTop) > nearPinThresholdPx;\n\n if (!scrolledAway || wasBrowserCapped) {\n return 're_pin_and_scroll';\n }\n return 'recalculate_and_preserve_scroll';\n}\n\n/**\n * Decides whether a scroll position represents a DELIBERATE user scroll away from the pin, as\n * opposed to a browser-initiated cap (content shrank, so the browser lowered scrollTop to the\n * max reachable value). Both lower scrollTop below the pin, but a cap parks the user exactly at\n * `maxScrollTop` with no room below, whereas a deliberate scroll-up leaves room to scroll\n * further down. Evaluated from a settled `scroll` event, this latches user intent so that a\n * later mid-animation `maxScrollTop` dip (a reasoning step collapsing) cannot be misread as the\n * user moving.\n *\n * @returns `true` to disengage auto-scroll (user parked above the pin with room below),\n * `false` to (re)engage (user is at/below the pin, i.e. following), or `null` when the position\n * is ambiguous (e.g. pinned to the bottom by a cap) and the caller should leave the flag as-is.\n */\nfunction resolveUserScrollAway({\n scrollTop,\n pinnedScrollTop,\n maxScrollTop,\n thresholdPx,\n}: {\n scrollTop: number;\n pinnedScrollTop: number;\n maxScrollTop: number;\n thresholdPx: number;\n}): boolean | null {\n const abovePin = scrollTop < pinnedScrollTop - thresholdPx;\n const roomBelow = scrollTop < maxScrollTop - thresholdPx;\n if (abovePin && roomBelow) {\n return true;\n }\n if (scrollTop >= pinnedScrollTop - thresholdPx) {\n return false;\n }\n return null;\n}\n\nfunction hasMessagesOutOfView({\n clientHeight,\n domSpacerHeight,\n scrollHeight,\n scrollTop,\n thresholdPx,\n}: {\n clientHeight: number;\n domSpacerHeight: number;\n scrollHeight: number;\n scrollTop: number;\n thresholdPx: number;\n}): boolean {\n const effectiveScrollHeight = scrollHeight - domSpacerHeight;\n const remainingPixelsToScroll =\n effectiveScrollHeight - scrollTop - clientHeight;\n return remainingPixelsToScroll > thresholdPx;\n}\n\nfunction resolvePublicSpacerReconciliationAction({\n pinnedMessageId,\n}: {\n pinnedMessageId: string | null;\n}): PublicSpacerReconciliationAction {\n if (!pinnedMessageId) {\n return { type: 'noop' };\n }\n return { type: 'recalculate_spacer_preserve_scroll' };\n}\n\n/**\n * Chooses the next auto-scroll action with strict precedence:\n * 1) explicit API override (`scrollToTop`, `scrollToBottom`)\n * 2) empty-list reset\n * 3) pin a newly qualifying message\n * 4) recalculate spacer for the existing pin\n * 5) no-op\n *\n * This function only decides; it does not mutate scroll/spacer state.\n */\nfunction resolveAutoScrollAction({\n messages,\n options,\n pinnedMessageId,\n scrollElement,\n}: ResolveAutoScrollActionParams): AutoScrollAction {\n const { scrollToBottom, scrollToTop } = options;\n\n if (scrollToTop !== undefined) {\n return { type: 'scroll_to_top', scrollTop: scrollToTop };\n }\n\n if (scrollToBottom !== undefined) {\n return {\n type: 'scroll_to_bottom',\n scrollTop:\n scrollElement.scrollHeight -\n scrollElement.offsetHeight -\n scrollToBottom,\n preferAnimate: options.preferAnimate ?? false,\n };\n }\n\n if (!messages.length) {\n // Without messages, clear stale browser-restored positions.\n return { type: 'reset_to_top' };\n }\n\n const candidate = findLastPinnable(messages);\n\n // `candidate.element` may be null when the row hasn't mounted yet — a missing\n // element means there is nothing to pin.\n if (candidate?.element && candidate.id !== pinnedMessageId) {\n return { type: 'pin_message', message: candidate };\n }\n\n if (pinnedMessageId) {\n // Keep the current pin stable when layout changes but target has not changed.\n return { type: 'recalculate_spacer' };\n }\n\n // Nothing to pin and no pinned target to maintain.\n return { type: 'noop' };\n}\n\nfunction calculatePinnedScrollTop(\n targetElement: HTMLElement,\n scrollElement: HTMLElement\n): number {\n const targetRect = targetElement.getBoundingClientRect();\n const scrollerRect = scrollElement.getBoundingClientRect();\n const baseScrollTop = calculateBaseScrollTop(\n targetRect,\n scrollerRect,\n scrollElement.scrollTop\n );\n return adjustScrollTopForTallMessage(\n baseScrollTop,\n targetRect.height,\n scrollerRect.height\n );\n}\n\nfunction pinMessageAndScroll({\n message,\n scrollElement,\n spacerElem,\n setSpacerHeight,\n}: {\n message: PortableMessage;\n scrollElement: HTMLElement;\n spacerElem: HTMLElement | null;\n setSpacerHeight: (px: number) => void;\n}): PinAndScrollResult | null {\n const targetElem = message?.element;\n if (!spacerElem || !targetElem) {\n return null;\n }\n\n const scrollTop = calculatePinnedScrollTop(targetElem, scrollElement);\n const scrollerRect = scrollElement.getBoundingClientRect();\n\n const deficit = calculateSpacerDeficit(\n spacerElem,\n scrollElement,\n scrollerRect,\n scrollTop\n );\n\n // Spacer must be written before setting scrollTop so the target position is reachable.\n setSpacerHeight(deficit);\n scrollElement.scrollTop = scrollTop;\n\n return {\n currentSpacerHeight: deficit,\n lastScrollHeight: scrollElement.scrollHeight,\n pinnedMessageId: message.id,\n scrollTop,\n };\n}\n\nfunction recalculatePinnedMessageSpacer({\n pinnedElement,\n scrollElement,\n spacerElem,\n setSpacerHeight,\n}: {\n pinnedElement: HTMLElement | null;\n scrollElement: HTMLElement;\n spacerElem: HTMLElement | null;\n setSpacerHeight: (px: number) => void;\n}): SpacerRecalculationResult | null {\n const targetElem = pinnedElement;\n if (!spacerElem || !targetElem) {\n return null;\n }\n\n // SIMPLIFIED APPROACH: During resize events (e.g., reasoning steps closing), we don't\n // need to recalculate where the message SHOULD be - we just need to preserve the\n // CURRENT scroll position. The complex calculations (adjustScrollTopForTallMessage, etc.)\n // are only needed during initial pinning. Here, we just ensure the spacer is large\n // enough to keep the current scrollTop reachable.\n\n // Batch DOM reads\n const currentScrollTop = scrollElement.scrollTop;\n const clientHeight = scrollElement.clientHeight;\n const spacerRect = spacerElem.getBoundingClientRect();\n const scrollerRect = scrollElement.getBoundingClientRect();\n\n // Calculate minimum spacer needed to maintain current scroll position.\n // The spacer must ensure that (scrollTop + clientHeight) is reachable.\n const spacerOffset = spacerRect.top - scrollerRect.top + currentScrollTop;\n const visibleBottom = currentScrollTop + clientHeight;\n const deficit = Math.max(0, Math.ceil(visibleBottom - spacerOffset));\n\n // Write spacer (no need to set scrollTop - we're preserving it)\n setSpacerHeight(deficit);\n\n return { deficit, scrollTop: currentScrollTop };\n}\n\n/**\n * ============================================================================\n * Message Resize Observer Utilities\n * ============================================================================\n *\n * Utilities for observing message element size changes to detect async content\n * loading (images, audio, video, user-defined content, streaming text) and reconcile\n * the scroll spacer against the new height.\n */\n\nfunction createMessageResizeObserver(config: {\n onResize: () => void;\n hasPinnedMessage: () => boolean;\n}): MessageResizeObserverState {\n const messageSizes = new Map<Element, number>();\n const observer = new ResizeObserver((entries: ResizeObserverEntry[]) => {\n let changed = false;\n entries.forEach((entry) => {\n if (!messageSizes.has(entry.target)) {\n return;\n }\n const { blockSize } = entry.borderBoxSize[0];\n changed ||= messageSizes.get(entry.target) !== blockSize;\n messageSizes.set(entry.target, blockSize);\n });\n if (changed && config.hasPinnedMessage()) {\n // ResizeObserver runs before paint. Deferring this write exposes a frame with a capped scrollTop.\n // Only message rows are observed; changing their sibling spacer does not resize them.\n config.onResize();\n }\n });\n return { observer, messageSizes };\n}\n\n/**\n * Updates which message elements are being observed.\n * Call this when messages are added, removed, or the message array changes.\n */\nfunction updateObservedMessages(\n state: MessageResizeObserverState,\n messageElements: HTMLElement[]\n): void {\n const { observer, messageSizes } = state;\n\n const currentElements = new Set<Element>(messageElements);\n messageSizes.forEach((_size, element) => {\n if (!currentElements.has(element)) {\n observer.unobserve(element);\n messageSizes.delete(element);\n }\n });\n currentElements.forEach((element) => {\n if (!messageSizes.has(element)) {\n messageSizes.set(element, NaN);\n observer.observe(element, { box: 'border-box' });\n }\n });\n}\n\n/**\n * Cleans up the ResizeObserver and all associated state.\n */\nfunction cleanupMessageResizeObserver(state: MessageResizeObserverState): void {\n const { observer, messageSizes } = state;\n\n // Disconnect observer\n observer.disconnect();\n\n // Clear size tracking\n messageSizes.clear();\n}\n\n/**\n * Checks if any new non-streaming response messages are in the message list.\n *\n * This is used to determine if we need to schedule a deferred spacer recalculation,\n * as non-streaming responses may not have their full content rendered when the initial\n * pin calculation occurs, resulting in an oversized spacer.\n */\nfunction hasNewNonStreamingResponse(messages: PortableMessage[]): boolean {\n return messages.some((message) => {\n // Skip streaming items - they handle their own spacer updates\n if (message.isStreaming) {\n return false;\n }\n\n // Check if this is a response message\n return message.isResponse;\n });\n}\n\n/**\n * Calculates the scroll position to restore after Safari's scroll anchoring behavior.\n *\n * Safari can automatically adjust scrollTop during DOM updates (scroll anchoring).\n * This function determines if we need to restore the user's intended scroll position\n * by comparing the current scrollTop with the pre-update snapshot.\n */\nfunction applySafariScrollAnchoringRestore(\n currentScrollTop: number,\n snapshot: number | null\n): number | null {\n return getAnchoringRestoreTarget({\n currentScrollTop,\n snapshot,\n });\n}\n\nfunction debugAutoScroll(message: string): void {\n if (DEBUG_AUTO_SCROLL) {\n console.log(message);\n }\n}\n\n// ============================================================================\n// The controller\n// ============================================================================\n\nexport class MessagesScrollController {\n private host: ScrollHost;\n\n /**\n * The observer used to monitor for changes in the scroll panel size.\n */\n private scrollPanelObserver: ResizeObserver | null = null;\n\n /**\n * State for the message resize observer that detects async content loading.\n */\n private messageResizeObserverState: MessageResizeObserverState | null = null;\n\n /**\n * The id of the message most recently pinned to the top of the visible scroll area.\n * Updated when pinning/re-pinning chooses a different target.\n */\n private pinnedMessageId: string | null = null;\n\n private pinnedOwnerId: string | null = null;\n\n private readingScrollTop: number | null = null;\n\n private hasStreamedForPin = false;\n\n private scrollGeneration = 0;\n\n private disconnected = false;\n\n /**\n * The scrollTop value set at the moment of the last pin. Compared against the current\n * scrollTop at stream end to detect whether the user scrolled away from the pin during\n * streaming.\n */\n private pinnedScrollTop = 0;\n\n /**\n * The spacer height that is actually written to the DOM. Used by isScrolledAwayFromBottom\n * to prevent the scroll-to-bottom button from appearing for blank spacer space.\n */\n private domSpacerHeight = 0;\n\n /**\n * Whether the user has deliberately scrolled away (up) from the pin. While true, every\n * auto-scroll restore/re-pin path is suppressed so we never yank the user back down; it is\n * set/cleared by the `scroll` listener (`handleUserScroll`) and reset when a new message is\n * pinned. This is what makes manual scroll-up stop auto-scroll during content changes.\n */\n private userScrolledAwayFromPin = false;\n\n /**\n * The last message array observed by onHostUpdated, so we can compute change flags and\n * streaming transitions against the previous host state.\n */\n private previousMessages: PortableMessage[] = [];\n\n /**\n * Numbers each scroll request so older ones can be told apart from the newest.\n * A request saves the number it was given. If the counter has moved on by the time the\n * request runs, a newer request (or `disconnect()`) replaced it, so it must do nothing.\n */\n private scrollCounter = 0;\n\n constructor(host: ScrollHost) {\n this.host = host;\n }\n\n // --------------------------------------------------------------------------\n // Lifecycle\n // --------------------------------------------------------------------------\n\n connect(): void {\n this.disconnected = false;\n this.scrollGeneration++;\n const scrollContainer = this.host.getScrollContainer();\n\n // Use requestAnimationFrame to avoid ResizeObserver loop errors\n this.scrollPanelObserver = new ResizeObserver(() => {\n const generation = this.scrollGeneration;\n requestAnimationFrame(() => {\n if (this.isCurrentScrollWork(generation)) {\n this.onContainerResize();\n }\n });\n });\n if (scrollContainer) {\n this.scrollPanelObserver.observe(scrollContainer);\n }\n\n this.messageResizeObserverState = createMessageResizeObserver({\n onResize: this.handleMessageResize,\n hasPinnedMessage: () => this.pinnedMessageId !== null,\n });\n\n // Start observing current messages\n this.updateObservedMessages();\n\n // Track deliberate user scroll-away so auto-scroll can disengage. Passive: we only read\n // scroll geometry, never call preventDefault.\n scrollContainer?.addEventListener('scroll', this.handleUserScroll, {\n passive: true,\n });\n\n // Seed the previous-messages baseline so the first onHostUpdated compares\n // against the state present at connect time.\n this.previousMessages = this.host.getMessages();\n }\n\n disconnect(): void {\n this.scrollCounter++;\n this.disconnected = true;\n this.scrollGeneration++;\n this.readingScrollTop = null;\n this.pinnedOwnerId = null;\n this.pinnedMessageId = null;\n this.hasStreamedForPin = false;\n this.host.setScrollHeightFloor(0);\n if (this.host.getSpacer()) {\n this.host.setSpacerHeight(0);\n }\n // Remove the listeners and observers set up in connect().\n if (this.scrollPanelObserver) {\n this.scrollPanelObserver.disconnect();\n this.scrollPanelObserver = null;\n }\n if (this.messageResizeObserverState) {\n cleanupMessageResizeObserver(this.messageResizeObserverState);\n this.messageResizeObserverState = null;\n }\n const scrollContainer = this.host.getScrollContainer();\n scrollContainer?.removeEventListener('scroll', this.handleUserScroll);\n this.doAutoScrollThrottled.cancel();\n this.onContainerResizeThrottled.cancel();\n }\n\n /**\n * Runs the scroll-maintenance branch for a host update (message add/remove or streaming chunk).\n *\n * @param preCommitScrollTop - The scrollTop captured before the host commit\n * (React `getSnapshotBeforeUpdate`), used for Safari scroll-anchoring restore.\n */\n onHostUpdated(preCommitScrollTop: number | null): void {\n if (this.disconnected) {\n return;\n }\n const newItems = this.host.getMessages();\n const oldItems = this.previousMessages;\n\n // countChanged means a new message, itemsChanged means an actual message item changed (streaming, likely)\n const { countChanged, itemsChanged } = getMessageArrayChangeFlags({\n oldItems,\n newItems,\n });\n\n // No structural or reference change means no scroll maintenance needed.\n if (!countChanged && !itemsChanged) {\n return;\n }\n\n this.updateReadingTargetForHost(oldItems, newItems, preCommitScrollTop);\n // Keep row order while the owner awaits replacement rows; earlier requests may mount first.\n if (\n !this.hasRetainedOwner() ||\n newItems.some((item) => item.messageId === this.pinnedOwnerId)\n ) {\n this.previousMessages = newItems;\n }\n\n // A cleared conversation must drop the old pin before anything below reads it; otherwise the\n // stale pin keeps its spacer and scroll position under the new messages.\n if (\n didClearAllMessages({ oldItems, newItems }) &&\n !this.hasRetainedOwner()\n ) {\n this.resetForClearedConversation();\n }\n\n this.host.onScrollGeometryChanged();\n\n // Update observed messages when the message array changes\n if (itemsChanged) {\n this.updateObservedMessages();\n }\n\n if (this.reconcileRetainedPosition()) {\n return;\n }\n\n if (countChanged) {\n this.handleCountChanged();\n return;\n }\n\n // Array reference changed but count is the same. In this codebase, that means\n // in-place evolution (typically streaming chunks or item-level state updates).\n // Only perform spacer maintenance if we have a pinned message.\n if (!this.pinnedMessageId) {\n return;\n }\n\n const { isCurrentlyStreaming, wasStreaming } = getStreamingTransition({\n oldItems,\n newItems,\n });\n\n if (isCurrentlyStreaming) {\n this.handleStreamingUpdate(preCommitScrollTop);\n } else if (wasStreaming) {\n this.handleStreamEndUpdate(preCommitScrollTop);\n }\n }\n\n /**\n * Runs internal auto-scroll to ensure proper scrolling behavior when the container resizes.\n * (Was the scroll work inside `MessagesComponent.onResize`.)\n */\n onContainerResize = (): void => {\n this.onContainerResizeThrottled(++this.scrollCounter);\n };\n\n private onContainerResizeThrottled = throttle(\n (counter: number) => {\n if (counter !== this.scrollCounter || this.disconnected) {\n return;\n }\n // Resize can invalidate both \"scroll down\" visibility and pin geometry.\n this.updateScrollHeightFloor();\n this.host.onScrollGeometryChanged();\n this.doAutoScrollInternal();\n },\n WINDOW_RESIZE_THROTTLE_MS,\n { leading: true, trailing: true }\n );\n\n // --------------------------------------------------------------------------\n // Observed-message maintenance\n // --------------------------------------------------------------------------\n\n /**\n * Updates which message elements are being observed by the messageResizeObserver.\n * Called when messages are added, removed, or the message array changes.\n *\n * Observes ALL messages including streaming ones. ResizeObserver handles\n * both streaming content growth and animated size changes (like reasoning steps\n * collapsing) smoothly without manual timing intervention.\n */\n private updateObservedMessages(): void {\n if (!this.messageResizeObserverState) {\n return;\n }\n\n // Get all current message elements (including streaming messages)\n const messageElements: HTMLElement[] = [];\n this.host.getMessages().forEach((message) => {\n const element = message.element;\n if (element) {\n messageElements.push(element);\n }\n });\n\n // Update observations using utility function\n updateObservedMessages(this.messageResizeObserverState, messageElements);\n }\n\n // --------------------------------------------------------------------------\n // Pin / spacer execution\n // --------------------------------------------------------------------------\n\n /**\n * Clears pin state and the spacer, then returns to the top. Only for a full clear — removing\n * some messages keeps the user's scroll position.\n */\n private resetForClearedConversation(): void {\n this.scrollGeneration++;\n this.readingScrollTop = null;\n this.pinnedOwnerId = null;\n this.hasStreamedForPin = false;\n this.pinnedMessageId = null;\n this.pinnedScrollTop = 0;\n this.userScrolledAwayFromPin = false;\n this.domSpacerHeight = 0;\n this.previousMessages = [];\n this.doAutoScrollThrottled.cancel();\n this.host.setScrollHeightFloor(0);\n if (this.host.getSpacer()) {\n this.host.setSpacerHeight(0);\n }\n const scrollElement = this.host.getScrollContainer();\n if (scrollElement) {\n scrollElement.scrollTop = 0;\n }\n }\n\n private getPinnedElement(): HTMLElement | null {\n if (!this.pinnedMessageId) {\n return null;\n }\n return (\n this.host\n .getMessages()\n .find((message) => message.id === this.pinnedMessageId)?.element ?? null\n );\n }\n\n /**\n * Pin a message to the top of the visible scroll area and scroll to it instantly.\n * Runs synchronously inside a requestAnimationFrame — must only be called from within one.\n */\n private executePinAndScroll(\n message: PortableMessage,\n scrollElement: HTMLElement\n ): void {\n const result = pinMessageAndScroll({\n message,\n scrollElement,\n spacerElem: this.host.getSpacer(),\n setSpacerHeight: (px) => this.host.setSpacerHeight(px),\n });\n if (!result) {\n return;\n }\n\n if (message.messageId !== this.pinnedOwnerId) {\n this.hasStreamedForPin = hasActiveStreaming(this.host.getMessages());\n }\n\n // Keep controller-level tracking aligned with the DOM writes performed above.\n this.domSpacerHeight = result.currentSpacerHeight;\n this.pinnedMessageId = result.pinnedMessageId;\n this.pinnedOwnerId = message.messageId ?? this.pinnedOwnerId;\n this.readingScrollTop = null;\n this.pinnedScrollTop = result.scrollTop;\n\n // Establishing a pin re-engages auto-scroll: a newly pinned message resets any prior\n // scroll-away. (The re-pin restore paths are gated on this flag, so they only reach here\n // when it is already false — this reset matters for pinning a genuinely new message.)\n this.userScrolledAwayFromPin = false;\n this.updateScrollHeightFloor();\n\n debugAutoScroll(\n `[autoScroll] Pinned message, scrollTop=${result.scrollTop}, spacer=${result.currentSpacerHeight}px`\n );\n }\n\n /**\n * Waits for nested markdown component to finish rendering before measuring\n * the message for pinning and scrolling.\n */\n private async waitForMessageComponentLayout(\n message: PortableMessage\n ): Promise<void> {\n const targetElem = message?.element;\n if (!targetElem) {\n return;\n }\n\n const markdownElement = targetElem.querySelector(\n `${prefix}-aichat-markdown`\n ) as (Element & { updateComplete?: Promise<unknown> }) | null;\n\n if (!markdownElement) {\n return;\n }\n\n await markdownElement.updateComplete?.catch((): undefined => undefined);\n\n await new Promise<void>((resolve): void => {\n requestAnimationFrame(() => resolve());\n });\n }\n\n /**\n * Recalculate the spacer height for the currently pinned message without touching scrollTop.\n * Used when content below the pin changes (resize, non-streaming response, streaming done).\n * Runs synchronously inside a requestAnimationFrame — must only be called from within one.\n */\n private executeRecalculateSpacer(scrollElement: HTMLElement): void {\n if (this.reconcileReadingPosition()) {\n return;\n }\n const result = recalculatePinnedMessageSpacer({\n pinnedElement: this.getPinnedElement(),\n scrollElement,\n spacerElem: this.host.getSpacer(),\n setSpacerHeight: (px) => this.host.setSpacerHeight(px),\n });\n if (result === null) {\n return;\n }\n this.domSpacerHeight = result.deficit;\n }\n\n /**\n * `scroll` listener that latches whether the user has deliberately scrolled away (up) from the\n * pin. Runs from a settled scroll position, so `resolveUserScrollAway` can distinguish a real\n * scroll-up (room below the current position) from a browser cap (parked at the bottom because\n * content shrank). Once latched, mid-animation geometry dips can't flip it, so the restore\n * paths stay disengaged until the user returns toward the pin or a new message is pinned.\n */\n private handleUserScroll = (): void => {\n const scrollElement = this.host.getScrollContainer();\n const pinnedElement = this.getPinnedElement();\n if (!scrollElement || (!pinnedElement && !this.hasRetainedOwner())) {\n return;\n }\n // Native anchoring can move scrollTop with a resized row above the pin.\n const measuredPin = pinnedElement\n ? calculatePinnedScrollTop(pinnedElement, scrollElement)\n : this.pinnedScrollTop;\n if (this.isReadingPositionCapped(scrollElement.scrollTop, scrollElement)) {\n return;\n }\n const nearPreviousPin =\n Math.abs(scrollElement.scrollTop - this.pinnedScrollTop) <=\n USER_SCROLL_AWAY_THRESHOLD_PX;\n if (\n measuredPin !== this.pinnedScrollTop &&\n (this.userScrolledAwayFromPin || nearPreviousPin)\n ) {\n return;\n }\n const decision = resolveUserScrollAway({\n scrollTop: scrollElement.scrollTop,\n pinnedScrollTop: measuredPin,\n maxScrollTop: scrollElement.scrollHeight - scrollElement.clientHeight,\n thresholdPx: USER_SCROLL_AWAY_THRESHOLD_PX,\n });\n if (decision !== null) {\n if (\n Math.abs(\n scrollElement.scrollTop -\n (this.readingScrollTop ?? this.pinnedScrollTop)\n ) > 2\n ) {\n this.scrollGeneration++;\n }\n this.userScrolledAwayFromPin = decision;\n this.captureReadingPosition(scrollElement.scrollTop);\n this.updateScrollHeightFloor();\n }\n };\n\n private captureReadingPosition(\n scrollTop: number,\n allowNewTarget = false\n ): void {\n if (!this.pinnedOwnerId) {\n this.readingScrollTop = null;\n return;\n }\n const scrollElement = this.host.getScrollContainer();\n if (\n scrollElement &&\n this.isReadingPositionCapped(scrollTop, scrollElement)\n ) {\n return;\n }\n if (\n (this.readingScrollTop !== null || allowNewTarget) &&\n scrollElement &&\n resolveUserScrollAway({\n scrollTop,\n pinnedScrollTop: this.pinnedScrollTop,\n maxScrollTop: scrollElement.scrollHeight - scrollElement.clientHeight,\n thresholdPx: USER_SCROLL_AWAY_THRESHOLD_PX,\n }) === true\n ) {\n this.scrollGeneration++;\n this.userScrolledAwayFromPin = true;\n this.readingScrollTop = null;\n this.updateScrollHeightFloor();\n return;\n }\n if (\n allowNewTarget &&\n scrollElement &&\n scrollTop >= this.pinnedScrollTop - USER_SCROLL_AWAY_THRESHOLD_PX\n ) {\n this.userScrolledAwayFromPin = false;\n }\n if (this.userScrolledAwayFromPin) {\n this.readingScrollTop = null;\n return;\n }\n if (scrollTop <= this.pinnedScrollTop + 2) {\n this.readingScrollTop = null;\n } else if (\n this.readingScrollTop !== null ||\n allowNewTarget ||\n this.hasStreamedForPin ||\n hasActiveStreaming(this.previousMessages) ||\n hasActiveStreaming(this.host.getMessages())\n ) {\n this.readingScrollTop = scrollTop;\n }\n this.updateScrollHeightFloor();\n }\n\n private updateReadingTargetForHost(\n oldItems: PortableMessage[],\n newItems: PortableMessage[],\n snapshot: number | null\n ): void {\n const candidate = findLastPinnable(newItems);\n const candidateIndex = oldItems.findIndex(\n (item) => item.messageId === candidate?.messageId\n );\n const ownerIndex = oldItems.findIndex(\n (item) => item.messageId === this.pinnedOwnerId\n );\n const isEarlierCandidate =\n this.hasRetainedOwner() &&\n candidateIndex >= 0 &&\n (ownerIndex < 0 || candidateIndex < ownerIndex);\n if (\n candidate &&\n candidate.messageId !== this.pinnedOwnerId &&\n !isEarlierCandidate\n ) {\n if (findLastPinnable(oldItems)?.messageId !== candidate.messageId) {\n this.scrollGeneration++;\n }\n this.readingScrollTop = null;\n this.userScrolledAwayFromPin = false;\n return;\n }\n if (this.pinnedOwnerId && !this.host.hasMessage(this.pinnedOwnerId)) {\n this.scrollGeneration++;\n this.readingScrollTop = null;\n this.pinnedOwnerId = null;\n this.pinnedMessageId = null;\n this.hasStreamedForPin = false;\n this.host.setScrollHeightFloor(0);\n return;\n }\n this.hasStreamedForPin ||=\n hasActiveStreaming(oldItems) || hasActiveStreaming(newItems);\n if (\n snapshot !== null &&\n (this.readingScrollTop !== null || hasActiveStreaming(oldItems))\n ) {\n this.captureReadingPosition(snapshot, hasActiveStreaming(oldItems));\n }\n }\n\n private hasReadingOwner(): boolean {\n return (\n this.readingScrollTop !== null &&\n Boolean(this.pinnedOwnerId && this.host.hasMessage(this.pinnedOwnerId))\n );\n }\n\n private hasRetainedOwner(): boolean {\n return (\n this.hasReadingOwner() ||\n Boolean(\n this.userScrolledAwayFromPin &&\n this.pinnedOwnerId &&\n this.host.hasMessage(this.pinnedOwnerId)\n )\n );\n }\n\n private rebindPinnedOwnerRow(): void {\n const ownerRow = this.host\n .getMessages()\n .find(\n (message) =>\n message.messageId === this.pinnedOwnerId &&\n message.isPinnable &&\n message.element\n );\n if (ownerRow) {\n this.pinnedMessageId = ownerRow.id;\n }\n }\n\n private reconcileRetainedPosition(): boolean {\n if (this.reconcileReadingPosition()) {\n return true;\n }\n if (!this.userScrolledAwayFromPin || !this.hasRetainedOwner()) {\n return false;\n }\n this.rebindPinnedOwnerRow();\n const scrollElement = this.host.getScrollContainer();\n if (scrollElement) {\n this.executeRecalculateSpacer(scrollElement);\n }\n return true;\n }\n\n private isReadingPositionCapped(\n scrollTop: number,\n scrollElement: HTMLElement\n ): boolean {\n const maxScrollTop =\n scrollElement.scrollHeight - scrollElement.clientHeight;\n return (\n this.readingScrollTop !== null &&\n scrollTop < this.readingScrollTop - 2 &&\n maxScrollTop < this.readingScrollTop - 2 &&\n scrollTop >= maxScrollTop - 2\n );\n }\n\n private reconcileReadingPosition(): boolean {\n if (this.readingScrollTop === null || !this.pinnedOwnerId) {\n return false;\n }\n if (!this.host.hasMessage(this.pinnedOwnerId)) {\n this.readingScrollTop = null;\n this.pinnedOwnerId = null;\n this.pinnedMessageId = null;\n this.hasStreamedForPin = false;\n this.scrollGeneration++;\n this.host.setScrollHeightFloor(0);\n return false;\n }\n const scrollElement = this.host.getScrollContainer();\n const spacer = this.host.getSpacer();\n if (!scrollElement?.isConnected || !spacer) {\n return true;\n }\n this.rebindPinnedOwnerRow();\n this.updateScrollHeightFloor();\n const height = calculateSpacerDeficit(\n spacer,\n scrollElement,\n scrollElement.getBoundingClientRect(),\n this.readingScrollTop\n );\n if (height !== this.domSpacerHeight) {\n this.domSpacerHeight = height;\n this.host.setSpacerHeight(height);\n }\n if (scrollElement.scrollTop !== this.readingScrollTop) {\n scrollElement.scrollTop = this.readingScrollTop;\n }\n this.host.onScrollGeometryChanged();\n return true;\n }\n\n private isCurrentScrollWork(generation: number): boolean {\n return !this.disconnected && generation === this.scrollGeneration;\n }\n\n private prepareExplicitScroll(): void {\n this.scrollGeneration++;\n this.readingScrollTop = null;\n this.userScrolledAwayFromPin = true;\n this.host.setScrollHeightFloor(0);\n }\n\n private updateScrollHeightFloor(): void {\n const scrollElement = this.host.getScrollContainer();\n const minimumHeight =\n scrollElement && this.pinnedMessageId && !this.userScrolledAwayFromPin\n ? (this.readingScrollTop ?? this.pinnedScrollTop) +\n scrollElement.clientHeight\n : 0;\n // A forced layout can clamp scrollTop during a collapse that regrows before ResizeObserver runs.\n this.host.setScrollHeightFloor(minimumHeight);\n }\n\n private handleMessageResize = (): void => {\n if (this.disconnected || this.reconcileReadingPosition()) {\n return;\n }\n const scrollElement = this.host.getScrollContainer();\n const spacerElem = this.host.getSpacer();\n const pinnedElement = this.getPinnedElement();\n if (!scrollElement || !spacerElem || !pinnedElement) {\n return;\n }\n\n const previousPinnedScrollTop = this.pinnedScrollTop;\n this.pinnedScrollTop = calculatePinnedScrollTop(\n pinnedElement,\n scrollElement\n );\n const maxScrollTop =\n scrollElement.scrollHeight - scrollElement.clientHeight;\n const wasBrowserCapped =\n scrollElement.scrollTop >= maxScrollTop - 2 &&\n scrollElement.scrollTop < this.pinnedScrollTop;\n const nearPin =\n Math.min(\n Math.abs(scrollElement.scrollTop - previousPinnedScrollTop),\n Math.abs(scrollElement.scrollTop - this.pinnedScrollTop)\n ) <= USER_SCROLL_AWAY_THRESHOLD_PX;\n const restorePin =\n !this.userScrolledAwayFromPin && (nearPin || wasBrowserCapped);\n const targetScrollTop = restorePin\n ? this.pinnedScrollTop\n : scrollElement.scrollTop;\n // scrollHeight floors at clientHeight, so only the spacer offset measures a deep shrink correctly.\n const minimumHeight = calculateSpacerDeficit(\n spacerElem,\n scrollElement,\n scrollElement.getBoundingClientRect(),\n targetScrollTop\n );\n const height = hasActiveStreaming(this.host.getMessages())\n ? Math.max(this.domSpacerHeight, minimumHeight)\n : minimumHeight;\n this.updateScrollHeightFloor();\n if (height !== this.domSpacerHeight) {\n this.domSpacerHeight = height;\n this.host.setSpacerHeight(height);\n }\n if (restorePin) {\n scrollElement.scrollTop = targetScrollTop;\n }\n this.host.onScrollGeometryChanged();\n };\n\n private async executeResolvedAutoScrollAction(\n options: ScrollOptions,\n scrollElement: HTMLElement,\n counter: number,\n generation: number\n ): Promise<void> {\n const messages = this.host.getMessages();\n if (\n options.scrollToTop === undefined &&\n options.scrollToBottom === undefined &&\n this.reconcileRetainedPosition()\n ) {\n return;\n }\n const action = resolveAutoScrollAction({\n messages,\n options,\n pinnedMessageId: this.pinnedMessageId,\n scrollElement,\n });\n\n switch (action.type) {\n case 'scroll_to_top':\n doScrollElement(scrollElement, action.scrollTop, 0);\n return;\n case 'scroll_to_bottom': {\n // During streaming `scrollHeight` includes the blank spacer, so\n // `scrollHeight - offsetHeight` points into blank spacer territory.\n // Subtract domSpacerHeight to land at the bottom of real content.\n const isStreaming = messages.some((message) => message.isStreaming);\n const scrollTop = isStreaming\n ? Math.max(0, action.scrollTop - this.domSpacerHeight)\n : action.scrollTop;\n doScrollElement(\n scrollElement,\n scrollTop,\n 0,\n action.preferAnimate && !isStreaming\n );\n return;\n }\n case 'reset_to_top':\n // No messages — scroll to top so the browser doesn't restore a stale position.\n scrollElement.scrollTop = 0;\n return;\n case 'pin_message':\n await this.waitForMessageComponentLayout(action.message);\n // Stop if a newer request replaced this one while we waited, or if the target\n // message was removed in the meantime (for example, the chat was cleared).\n if (\n counter !== this.scrollCounter ||\n !this.isCurrentScrollWork(generation) ||\n !scrollElement.isConnected ||\n !this.host\n .getMessages()\n .some((message) => message.id === action.message.id)\n ) {\n return;\n }\n this.executePinAndScroll(action.message, scrollElement);\n return;\n case 'recalculate_spacer':\n this.executeRecalculateSpacer(scrollElement);\n return;\n default:\n return;\n }\n }\n\n private reconcileSpacerAfterPublicDoAutoScroll(\n scrollElement: HTMLElement\n ): void {\n const reconciliationAction = resolvePublicSpacerReconciliationAction({\n pinnedMessageId: this.pinnedMessageId,\n });\n if (reconciliationAction.type === 'noop') {\n return;\n }\n\n const savedScrollTop = scrollElement.scrollTop;\n this.executeRecalculateSpacer(scrollElement);\n if (scrollElement.scrollTop < savedScrollTop) {\n scrollElement.scrollTop = savedScrollTop;\n }\n this.host.onScrollGeometryChanged();\n }\n\n /**\n * Handles updates when the message count changes (messages added or removed).\n *\n * 1. Re-runs the auto-scroll policy to pin a new target or maintain the current pin\n * 2. Checks for new non-streaming responses that may need deferred spacer recalculation\n * 3. Schedules a throttled recalculation if needed\n */\n private handleCountChanged(): void {\n // Message list length changed (add/remove). Re-run auto-scroll policy so we either\n // pin a new target, maintain the current pin, or reset for empty state.\n this.doAutoScrollInternal();\n\n // For non-streaming MessageResponse items added via addMessage(), the initial pin\n // calculation may occur before response content is fully rendered, resulting in an\n // oversized spacer. Schedule a deferred recalculation to correct the spacer after\n // layout settles. Only do this for responses, as requests are the pinned targets\n // themselves and don't affect spacer calculation the same way.\n const hasNewResponse = hasNewNonStreamingResponse(this.host.getMessages());\n\n if (hasNewResponse) {\n // Use the same throttled approach as streaming to recalculate after content settles.\n // This is more reliable than trying to time rAF perfectly.\n this.doAutoScrollThrottled(this.scrollCounter);\n }\n }\n\n /**\n * Handles scroll position maintenance during active streaming.\n *\n * Safari's scroll anchoring can decrease scrollTop during streaming updates.\n * This method applies a fix to restore the user's intended scroll position.\n */\n private handleStreamingUpdate(snapshot: number | null): void {\n // Prevent Safari's scroll anchoring from decreasing scrollTop during streaming.\n const el = this.host.getScrollContainer();\n if (!el) {\n return;\n }\n\n const restoreTarget = applySafariScrollAnchoringRestore(\n el.scrollTop,\n snapshot\n );\n\n if (restoreTarget !== null) {\n el.scrollTop = restoreTarget;\n }\n }\n\n /**\n * Handles the transition when streaming completes.\n *\n * 1. Applies Safari scroll anchoring fix for the final stream commit\n * 2. Schedules a requestAnimationFrame to determine the final scroll action\n * 3. Either re-pins and scrolls to the message, or preserves the user's position\n */\n private handleStreamEndUpdate(snapshot: number | null): void {\n // Safari fires scroll anchoring during the final stream commit (same as mid-stream\n // commits). Apply the directional restore here too so the rAF's position check sees\n // the user's actual scrollTop, not the anchoring-adjusted one.\n const scrollElement = this.host.getScrollContainer();\n if (!scrollElement) {\n return;\n }\n\n const restoreTarget = applySafariScrollAnchoringRestore(\n scrollElement.scrollTop,\n snapshot\n );\n\n if (restoreTarget !== null) {\n scrollElement.scrollTop = restoreTarget;\n }\n\n // Schedule the stream-end scroll action\n this.executeStreamEndScrollAction(snapshot);\n }\n\n /**\n * Executes the final scroll action after streaming completes.\n *\n * This method runs in a requestAnimationFrame to ensure DOM/layout has settled.\n * It determines whether to re-pin and scroll to the message, or preserve the\n * user's scroll position if they scrolled away during streaming.\n */\n private executeStreamEndScrollAction(snapshot: number | null): void {\n const generation = this.scrollGeneration;\n requestAnimationFrame(() => {\n if (\n !this.isCurrentScrollWork(generation) ||\n this.reconcileReadingPosition()\n ) {\n return;\n }\n const scrollElement = this.host.getScrollContainer();\n const pinnedElement = this.getPinnedElement();\n if (\n !scrollElement?.isConnected ||\n !pinnedElement ||\n !this.pinnedOwnerId ||\n !this.host.hasMessage(this.pinnedOwnerId)\n ) {\n return;\n }\n\n // Use the pre-commit snapshot as the stream-end decision baseline. Safari can\n // adjust scrollTop during the final commit (not always in one direction), and\n // using post-commit scrollTop here can misclassify \"near pin\" vs \"away from pin\".\n const scrollTopForDecision = snapshot ?? scrollElement.scrollTop;\n\n // A deliberate scroll-away disengages the stream-end re-pin as well.\n const streamEndAction: StreamEndAction = this.userScrolledAwayFromPin\n ? 'recalculate_and_preserve_scroll'\n : resolveStreamEndAction({\n nearPinThresholdPx: STREAM_END_NEAR_PIN_THRESHOLD_PX,\n pinnedScrollTop: this.pinnedScrollTop,\n scrollTop: scrollTopForDecision,\n maxScrollTop:\n scrollElement.scrollHeight - scrollElement.clientHeight,\n });\n\n if (streamEndAction === 're_pin_and_scroll') {\n this.executePinAndScroll(\n {\n id: this.pinnedMessageId as string,\n messageId: this.pinnedOwnerId as string,\n element: pinnedElement,\n } as PortableMessage,\n scrollElement\n );\n } else {\n // Preserve the user's pre-commit position when they are away from pin.\n // Zero the spacer directly.\n const savedScrollTop = scrollTopForDecision;\n const spacerElem = this.host.getSpacer();\n if (spacerElem) {\n this.host.setSpacerHeight(0);\n }\n this.domSpacerHeight = 0;\n if (scrollElement.scrollTop < savedScrollTop) {\n scrollElement.scrollTop = savedScrollTop;\n }\n }\n });\n }\n\n private scheduleAutoScroll = (\n options: ScrollOptions = {},\n includePublicSpacerReconciliation = false\n ): void => {\n if (\n options.scrollToTop !== undefined ||\n options.scrollToBottom !== undefined\n ) {\n this.prepareExplicitScroll();\n }\n const counter = ++this.scrollCounter;\n const generation = this.scrollGeneration;\n requestAnimationFrame(() => {\n void (async () => {\n if (\n counter !== this.scrollCounter ||\n !this.isCurrentScrollWork(generation)\n ) {\n return;\n }\n // Execute after DOM/layout settles for the current frame so measurements\n // (scrollHeight, rects) match what the user can actually see.\n const scrollElement = this.host.getScrollContainer();\n if (!scrollElement?.isConnected) {\n return;\n }\n\n await this.executeResolvedAutoScrollAction(\n options,\n scrollElement,\n counter,\n generation\n );\n if (\n includePublicSpacerReconciliation &&\n counter === this.scrollCounter &&\n this.isCurrentScrollWork(generation)\n ) {\n this.reconcileSpacerAfterPublicDoAutoScroll(scrollElement);\n }\n })();\n });\n };\n\n /**\n * Internal auto-scroll path used by the host lifecycle and internal handlers\n * (e.g. the scroll-to-bottom button). Does not run the public spacer-reconciliation pass.\n */\n doAutoScrollInternal = (options: ScrollOptions = {}): void => {\n try {\n this.scheduleAutoScroll(options, false);\n } catch (error) {\n // Just ignore any errors. It's not the end of the world if scrolling doesn't work for any reason.\n\n console.error('An error occurred while attempting to scroll.', error);\n }\n };\n\n /**\n * Public auto-scroll entry point for external callers (e.g. `CDSAIChatMessagesShell`).\n * Runs a spacer reconciliation pass after normal auto-scroll resolution so\n * callers get up-to-date pin/spacer geometry.\n */\n doAutoScroll = (options: ScrollOptions = {}): void => {\n try {\n this.scheduleAutoScroll(options, true);\n } catch (error) {\n // Just ignore any errors. It's not the end of the world if scrolling doesn't work for any reason.\n\n console.error('An error occurred while attempting to scroll.', error);\n }\n };\n\n /**\n * Throttled auto-scroll method for automatic scroll operations (e.g., message updates).\n * This is throttled to prevent excessive scrolling during rapid updates.\n */\n private doAutoScrollThrottled = throttle(\n (counter: number) => {\n if (counter === this.scrollCounter) {\n this.doAutoScrollInternal();\n }\n },\n AUTO_SCROLL_THROTTLE_MS,\n { leading: true, trailing: true }\n );\n\n /**\n * Returns the current scrollBottom value for the message scroll panel.\n */\n getContainerScrollBottom = (): number => {\n return getScrollBottom(this.host.getScrollContainer());\n };\n\n /**\n * Scrolls the given element into view so that it is fully visible. If the element is already visible, then no\n * scrolling will be done.\n *\n * @param element The element to scroll into view.\n * @param paddingTop An additional pixel value that will over scroll by this amount to give a little padding between\n * the element and the top of the scroll area.\n * @param paddingBottom An additional pixel value that will over scroll by this amount to give a little padding\n * between the element and the top of the scroll area.\n * @param animate Prefer animation\n */\n scrollElementIntoView = (\n element: HTMLElement,\n paddingTop = 8,\n paddingBottom = 8,\n animate = false\n ): void => {\n const scrollElement = this.host.getScrollContainer();\n\n if (!scrollElement) {\n return;\n }\n\n const scrollRect = scrollElement.getBoundingClientRect();\n const elementRect = element.getBoundingClientRect();\n\n // The distance the top and bottom of the element is from the top of the message list.\n const topDistanceFromTop =\n elementRect.top - scrollRect.top + scrollElement.scrollTop - paddingTop;\n const bottomDistanceFromTop =\n elementRect.bottom -\n scrollRect.top +\n scrollElement.scrollTop +\n paddingBottom;\n const elementHeight = element.offsetHeight + paddingTop + paddingBottom;\n\n if (\n topDistanceFromTop < scrollElement.scrollTop ||\n elementHeight > scrollElement.offsetHeight\n ) {\n // The top of the element is above the fold or the element doesn't fully fit. Scroll it so its top is at the top\n // of the scroll panel.\n this.prepareExplicitScroll();\n doScrollElement(scrollElement, topDistanceFromTop, 0);\n } else if (\n bottomDistanceFromTop >\n scrollElement.scrollTop + scrollElement.offsetHeight\n ) {\n // The bottom of the element is below the fold. Scroll it so its bottom is at the bottom of the scroll panel.\n this.prepareExplicitScroll();\n doScrollElement(\n scrollElement,\n bottomDistanceFromTop - scrollElement.offsetHeight,\n 0,\n animate\n );\n }\n };\n\n /**\n * Scrolls to the message with the given id. The `element` for that id is measured directly.\n *\n * @param messageElement The element of the message to scroll to.\n * @param animate Whether or not the scroll should be animated. Defaults to false.\n */\n doScrollToMessageElement(\n messageElement: HTMLElement | null,\n animate = false\n ): void {\n try {\n if (messageElement) {\n const scrollElement = this.host.getScrollContainer();\n\n if (!scrollElement) {\n return;\n }\n\n // Scroll to the top of the message.\n const setScrollTop = messageElement.offsetTop;\n\n // Do the scrolling.\n this.prepareExplicitScroll();\n doScrollElement(scrollElement, setScrollTop, 0, animate);\n }\n } catch (error) {\n // Just ignore any errors. It's not the end of the world if scrolling doesn't work for any reason.\n\n console.error('An error occurred while attempting to scroll.', error);\n }\n }\n\n /**\n * Calculates if there are any messages at the bottom out of the scroll view of the container.\n * The result determines if the user should be told if they need to scroll down to view more\n * messages or not. (Was `checkMessagesOutOfView`.)\n */\n isScrolledAwayFromBottom(): boolean {\n const scrollElement = this.host.getScrollContainer();\n\n if (!scrollElement) {\n return false;\n }\n\n // Subtract the real DOM spacer height to get the effective scroll height.\n // This prevents the scroll-to-bottom button from appearing for blank spacer space.\n return hasMessagesOutOfView({\n clientHeight: scrollElement.clientHeight,\n domSpacerHeight: this.domSpacerHeight,\n scrollHeight: scrollElement.scrollHeight,\n scrollTop: scrollElement.scrollTop,\n thresholdPx: SCROLL_DOWN_THRESHOLD_PX,\n });\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAwFH,MAAM,gCAAgC,GAAG,EAAE;AAC3C,MAAM,wBAAwB,GAAG,EAAE;AAEnC;;;AAGG;AACH,MAAM,6BAA6B,GAAG,EAAE;AAExC;;;AAGG;AACH,MAAM,yBAAyB,GAAG,GAAG;AAErC;;;AAGG;AACH,MAAM,uBAAuB,GAAG,GAAG;AAEnC;;;;;AAKG;AACH,MAAM,iBAAiB,GAAG,GAAG;AAE7B;;;AAGG;AACH,MAAM,yBAAyB,GAAG,GAAG;AAErC;;;AAGG;AACH,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAE1C;AACA;AACA;AACA;AAEA;;AAEG;AACH,SAAS,eAAe,CACtB,OAAgB,EAChB,SAAiB,EACjB,UAAkB,EAClB,OAAO,GAAG,KAAK,EAAA;IAEf,IAAI,OAAO,EAAE;AACX,QAAA,IAAI,OAAO,IAAI,OAAO,CAAC,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cAAc,EAAE;gBAClB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;gBAEpD,IAAI,CAAC,aAAa,EAAE;oBAClB;gBACF;;AAGA,gBAAA,MAAM,YAAY,GAAG,cAAc,CAAC,SAAS;;gBAG7C,IAAI,CAAC,qBAAqB,EAAE;gBAC5B,eAAe,CAAC,aAAa,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC;YAC1D;QACF;QAAE,OAAO,KAAK,EAAE;;AAGd,YAAA,OAAO,CAAC,KAAK,CAAC,+CAA+C,EAAE,KAAK,CAAC;QACvE;IACF;AAEA;;;;AAIG;IACH,wBAAwB,GAAA;QACtB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;QAEpD,IAAI,CAAC,aAAa,EAAE;AAClB,YAAA,OAAO,KAAK;QACd;;;AAIA,QAAA,OAAO,oBAAoB,CAAC;YAC1B,YAAY,EAAE,aAAa,CAAC,YAAY;YACxC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,YAAY,EAAE,aAAa,CAAC,YAAY;YACxC,SAAS,EAAE,aAAa,CAAC,SAAS;AAClC,YAAA,WAAW,EAAE,wBAAwB;AACtC,SAAA,CAAC;IACJ;AACD;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Processing component
|
|
4
|
+
* @element cds-aichat-processing
|
|
5
|
+
*/
|
|
6
|
+
declare class CDSAIChatProcessing extends LitElement {
|
|
7
|
+
static get is(): string;
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
/** Enables the linear looping animation variant. */
|
|
10
|
+
loop: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Removes the ~1s entry delay so the dots appear immediately. Composes with
|
|
13
|
+
* both the looping and non-looping variants.
|
|
14
|
+
*/
|
|
15
|
+
quickLoad: boolean;
|
|
16
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'cds-aichat-processing': CDSAIChatProcessing;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export { CDSAIChatProcessing };
|
|
24
|
+
export default CDSAIChatProcessing;
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { __decorate } from 'tslib';
|
|
9
|
+
import { LitElement, html } from 'lit';
|
|
10
|
+
import { property } from 'lit/decorators.js';
|
|
11
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
12
|
+
import commonStyles from '../../globals/scss/common.scss.js';
|
|
13
|
+
import styles from './aichat-processing.scss.js';
|
|
14
|
+
import prefix from '../../globals/settings.js';
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Copyright IBM Corp. 2025, 2026
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*
|
|
22
|
+
* @license
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Processing component
|
|
26
|
+
* @element cds-aichat-processing
|
|
27
|
+
*/
|
|
28
|
+
class CDSAIChatProcessing extends LitElement {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
/** Enables the linear looping animation variant. */
|
|
32
|
+
this.loop = false;
|
|
33
|
+
/**
|
|
34
|
+
* Removes the ~1s entry delay so the dots appear immediately. Composes with
|
|
35
|
+
* both the looping and non-looping variants.
|
|
36
|
+
*/
|
|
37
|
+
this.quickLoad = false;
|
|
38
|
+
}
|
|
39
|
+
static get is() {
|
|
40
|
+
return `${prefix}-aichat-processing`;
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const classes = classMap({
|
|
44
|
+
[`linear`]: this.loop,
|
|
45
|
+
[`linear--no-loop`]: !this.loop,
|
|
46
|
+
[`quick-load`]: this.quickLoad,
|
|
47
|
+
});
|
|
48
|
+
return html `<div class=${classes}>
|
|
49
|
+
<svg class="dots" viewBox="0 0 32 32">
|
|
50
|
+
<circle class="dot dot--left" cx="8" cy="16" />
|
|
51
|
+
<circle class="dot dot--center" cx="16" cy="16" r="2" />
|
|
52
|
+
<circle class="dot dot--right" cx="24" cy="16" r="2" />
|
|
53
|
+
</svg>
|
|
54
|
+
</div>`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
CDSAIChatProcessing.styles = [commonStyles, styles];
|
|
58
|
+
__decorate([
|
|
59
|
+
property({ type: Boolean, attribute: 'loop' })
|
|
60
|
+
], CDSAIChatProcessing.prototype, "loop", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
property({ type: Boolean, attribute: 'quick-load' })
|
|
63
|
+
], CDSAIChatProcessing.prototype, "quickLoad", void 0);
|
|
64
|
+
|
|
65
|
+
export { CDSAIChatProcessing, CDSAIChatProcessing as default };
|
|
66
|
+
//# sourceMappingURL=aichat-processing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aichat-processing.js","sources":["../../../src/components/aichat-processing/aichat-processing.ts"],"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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport commonStyles from '../../globals/scss/common.scss?lit';\nimport styles from './aichat-processing.scss?lit';\nimport { prefix } from '../../globals/settings.js';\n\n/**\n * Processing component\n * @element cds-aichat-processing\n */\nclass CDSAIChatProcessing extends LitElement {\n static get is() {\n return `${prefix}-aichat-processing`;\n }\n\n static styles = [commonStyles, styles];\n\n /** Enables the linear looping animation variant. */\n @property({ type: Boolean, attribute: 'loop' })\n loop = false;\n\n /**\n * Removes the ~1s entry delay so the dots appear immediately. Composes with\n * both the looping and non-looping variants.\n */\n @property({ type: Boolean, attribute: 'quick-load' })\n quickLoad = false;\n\n render() {\n const classes = classMap({\n [`linear`]: this.loop,\n [`linear--no-loop`]: !this.loop,\n [`quick-load`]: this.quickLoad,\n });\n\n return html`<div class=${classes}>\n <svg class=\"dots\" viewBox=\"0 0 32 32\">\n <circle class=\"dot dot--left\" cx=\"8\" cy=\"16\" />\n <circle class=\"dot dot--center\" cx=\"16\" cy=\"16\" r=\"2\" />\n <circle class=\"dot dot--right\" cx=\"24\" cy=\"16\" r=\"2\" />\n </svg>\n </div>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cds-aichat-processing': CDSAIChatProcessing;\n }\n}\n\nexport { CDSAIChatProcessing };\nexport default CDSAIChatProcessing;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH;;;AAGG;AACH,MAAM,mBAAoB,SAAQ,UAAU,CAAA;AAA5C,IAAA,WAAA,GAAA;;;QASE,IAAA,CAAA,IAAI,GAAG,KAAK;AAEZ;;;AAGG;QAEH,IAAA,CAAA,SAAS,GAAG,KAAK;IAiBnB;AAhCE,IAAA,WAAW,EAAE,GAAA;QACX,OAAO,CAAA,EAAG,MAAM,CAAA,kBAAA,CAAoB;IACtC;IAeA,MAAM,GAAA;QACJ,MAAM,OAAO,GAAG,QAAQ,CAAC;AACvB,YAAA,CAAC,CAAA,MAAA,CAAQ,GAAG,IAAI,CAAC,IAAI;AACrB,YAAA,CAAC,iBAAiB,GAAG,CAAC,IAAI,CAAC,IAAI;AAC/B,YAAA,CAAC,CAAA,UAAA,CAAY,GAAG,IAAI,CAAC,SAAS;AAC/B,SAAA,CAAC;QAEF,OAAO,IAAI,CAAA,CAAA,WAAA,EAAc,OAAO,CAAA;;;;;;WAMzB;IACT;;AA3BO,mBAAA,CAAA,MAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC;AAItC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE;AACjC,CAAA,EAAA,mBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAOb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE;AAClC,CAAA,EAAA,mBAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
var styles = css([":host{display:inline-block}.dots{block-size:32px;inline-size:32px}.dot{fill:none;r:0;stroke:var(--cds-interactive,#0f62fe);stroke-width:0;transform:translateY(0)}@media screen and (prefers-reduced-motion:reduce){.linear .dot--left{animation:none;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:25% 50%}}.linear .dot--left{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:25% 50%}@media screen and (prefers-reduced-motion:reduce){.linear .dot--center{animation:none;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:50% 50%}}.linear .dot--center{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:50% 50%}@media screen and (prefers-reduced-motion:reduce){.linear .dot--right{animation:none;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:75% 50%}}.linear .dot--right{animation:linear-load-size,linear-load-stroke,linear-loop-size,linear-loop-stroke;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1,1,infinite,infinite;transform-origin:75% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--left{animation:none;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:25% 50%}}.linear--no-loop .dot--left{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1s,1s,2s,2s;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:25% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--center{animation:none;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:50% 50%}}.linear--no-loop .dot--center{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1167ms,1167ms,2167ms,2167ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:50% 50%}@media screen and (prefers-reduced-motion:reduce){.linear--no-loop .dot--right{animation:none;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:75% 50%}}.linear--no-loop .dot--right{animation:linear-load-size,linear-load-stroke,linear-unload-size,linear-unload-stroke;animation-delay:1334ms,1334ms,2334ms,2334ms;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:1;transform-origin:75% 50%}.quick-load .dot--left{animation-delay:0s,0s,1s,1s}.quick-load .dot--center{animation-delay:167ms,167ms,1167ms,1167ms}.quick-load .dot--right{animation-delay:334ms,334ms,1334ms,1334ms}[dir=rtl] .linear .dot--left{animation-delay:1334ms,1334ms,2334ms,2334ms,7334ms,7334ms}[dir=rtl] .linear .dot--center{animation-delay:1167ms,1167ms,2167ms,2167ms,7167ms,7167ms}[dir=rtl] .linear .dot--right{animation-delay:1s,1s,2s,2s,7s,7s}[dir=rtl] .linear--no-loop .dot--left{animation-delay:1334ms,1334ms,2334ms,2334ms}[dir=rtl] .linear--no-loop .dot--center{animation-delay:1167ms,1167ms,2167ms,2167ms}[dir=rtl] .linear--no-loop .dot--right{animation-delay:1s,1s,2s,2s}[dir=rtl] .quick-load .dot--left{animation-delay:334ms,334ms,1334ms,1334ms}[dir=rtl] .quick-load .dot--center{animation-delay:167ms,167ms,1167ms,1167ms}[dir=rtl] .quick-load .dot--right{animation-delay:0s,0s,1s,1s}@keyframes linear-load-size{0%{animation-timing-function:cubic-bezier(0,0,.3,1);r:0}25%{animation-timing-function:cubic-bezier(0,0,.3,1);r:2.5px}83.3%{r:.875px}to{r:.875px}}@keyframes linear-load-stroke{0%{animation-timing-function:cubic-bezier(0,0,.3,1);stroke-width:0}8.33%{stroke-width:1.72}to{stroke-width:1.72}}@keyframes linear-loop-size{0%{animation-timing-function:cubic-bezier(0,0,.3,1);r:.875px}25%{animation-timing-function:cubic-bezier(0,0,.3,1);r:2.5px}91.66%{r:.875px}to{r:.875px}}@keyframes linear-loop-stroke{0%{animation-timing-function:cubic-bezier(.4,.14,1,1);stroke-width:1.72}to{stroke-width:1.72}}@keyframes linear-unload-size{0%{r:.875px}8.33%{r:.875px}33.33%{animation-timing-function:cubic-bezier(.4,.14,1,1);r:2.5px}58.33%{r:0}to{r:0}}@keyframes linear-unload-stroke{0%{stroke-width:1.72}50%{stroke-width:1.72}58.33%{stroke-width:0}to{stroke-width:0}}@media (prefers-reduced-motion:reduce){.dot--center,.dot--left,.dot--right{animation:none;transition:none}}"]);
|
|
11
|
+
|
|
12
|
+
export { styles as default };
|
|
13
|
+
//# sourceMappingURL=aichat-processing.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aichat-processing.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 defineCustomElement from '../../globals/register.js';
|
|
9
|
+
import { CDSAIChatProcessing } from './aichat-processing.js';
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Copyright IBM Corp. 2025, 2026
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
* @license
|
|
18
|
+
*/
|
|
19
|
+
defineCustomElement(CDSAIChatProcessing);
|
|
20
|
+
|
|
21
|
+
export { CDSAIChatProcessing };
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/aichat-processing/index.ts"],"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 { defineCustomElement } from '../../globals/register.js';\nimport CDSAIChatProcessing from './aichat-processing.js';\n\nexport { CDSAIChatProcessing };\n\ndefineCustomElement(CDSAIChatProcessing);\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,mBAAmB,CAAC,mBAAmB,CAAC;;"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { LitElement, nothing } from 'lit';
|
|
10
|
+
import type { AutocompleteConfig, StartersConfig, TriggerSuggestionConfig } from './tiptap/types.js';
|
|
11
|
+
/**
|
|
12
|
+
* `<cds-aichat-autocomplete-controller>` — drops the autocomplete overlay
|
|
13
|
+
* lifecycle into a `<cds-aichat-prompt-line-shell>`'s `autocomplete-content` slot.
|
|
14
|
+
*
|
|
15
|
+
* Listens for `cds-aichat-trigger-change` events bubbling up from the
|
|
16
|
+
* enclosing prompt-line-shell (the events are `composed: true, bubbles: true`, so
|
|
17
|
+
* they reach here from inside the prompt-line's shadow root). Scoping the
|
|
18
|
+
* listener to the shell — rather than `window` — keeps multiple
|
|
19
|
+
* shell/controller pairs on the same page from cross-talking. Renders the
|
|
20
|
+
* built-in `<cds-aichat-autocomplete>` or the active config's
|
|
21
|
+
* `renderCustomList` output. Selection routes back into the originating
|
|
22
|
+
* prompt-line.
|
|
23
|
+
*
|
|
24
|
+
* @element cds-aichat-autocomplete-controller
|
|
25
|
+
* @fires {CustomEvent<SendEventDetail>} cds-aichat-starter-selected - A starter is selected.
|
|
26
|
+
* @fires {CustomEvent<AutocompleteSelectEventDetail>} cds-aichat-autocomplete-item-selected - An autocomplete item is selected for insertion.
|
|
27
|
+
* @fires {CustomEvent<AutocompleteSendEventDetail>} cds-aichat-autocomplete-item-send - An autocomplete item is selected for direct send.
|
|
28
|
+
* @fires {CustomEvent<AutocompleteNavigatedEventDetail>} cds-aichat-list-navigated - Keyboard navigation enters or leaves the active list.
|
|
29
|
+
* @fires {CustomEvent<AutocompleteNavigatedEventDetail>} cds-aichat-autocomplete-navigated - The active autocomplete list enters or leaves keyboard navigation.
|
|
30
|
+
* @fires {CustomEvent<CustomListRenderEventDetail>} cds-aichat-custom-list-render - A custom list returns content for a host adapter to render.
|
|
31
|
+
*/
|
|
32
|
+
declare class AutocompleteControllerElement extends LitElement {
|
|
33
|
+
static get is(): string;
|
|
34
|
+
/** `@`-style mention trigger config. */
|
|
35
|
+
mention?: TriggerSuggestionConfig;
|
|
36
|
+
/** `/`-style command trigger config. */
|
|
37
|
+
command?: TriggerSuggestionConfig;
|
|
38
|
+
/** Live-typeahead autocomplete config (no trigger character). */
|
|
39
|
+
autocomplete?: AutocompleteConfig;
|
|
40
|
+
/** Starter prompts shown when the editor is empty + focused + editable. */
|
|
41
|
+
starters?: StartersConfig;
|
|
42
|
+
/** When true, starter selection inserts text without firing the send event. */
|
|
43
|
+
isSendDisabled: boolean;
|
|
44
|
+
private _state;
|
|
45
|
+
/**
|
|
46
|
+
* Tracks whether the user is actively navigating inside the autocomplete
|
|
47
|
+
* list. When `true`, the send button should be disabled so that Enter
|
|
48
|
+
* confirms the highlighted item rather than submitting the prompt.
|
|
49
|
+
*/
|
|
50
|
+
private _listNavigated;
|
|
51
|
+
/**
|
|
52
|
+
* Returns `true` while the user is navigating inside the autocomplete list.
|
|
53
|
+
* Consumers can use this to disable their send control.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
get listNavigated(): boolean;
|
|
57
|
+
private _controller;
|
|
58
|
+
/**
|
|
59
|
+
* Ancestor we subscribed `cds-aichat-trigger-change` on. Scoping the
|
|
60
|
+
* listener to the enclosing `<cds-aichat-prompt-line-shell>` (rather than
|
|
61
|
+
* `window`) keeps a second shell/controller pair on the same page from
|
|
62
|
+
* receiving each other's events.
|
|
63
|
+
*/
|
|
64
|
+
private _eventSource;
|
|
65
|
+
protected createRenderRoot(): this;
|
|
66
|
+
connectedCallback(): void;
|
|
67
|
+
disconnectedCallback(): void;
|
|
68
|
+
updated(changed: Map<string, unknown>): void;
|
|
69
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
70
|
+
private _selectItem;
|
|
71
|
+
private _sendItem;
|
|
72
|
+
private _handleMousedown;
|
|
73
|
+
private _handleAutocompleteNavigated;
|
|
74
|
+
private _handleTriggerChange;
|
|
75
|
+
}
|
|
76
|
+
declare global {
|
|
77
|
+
interface HTMLElementTagNameMap {
|
|
78
|
+
'cds-aichat-autocomplete-controller': AutocompleteControllerElement;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export default AutocompleteControllerElement;
|
|
82
|
+
/** Contains custom autocomplete list content. */
|
|
83
|
+
export interface CustomListRenderEventDetail {
|
|
84
|
+
/** Content returned by the configured custom list renderer. */
|
|
85
|
+
reactNode: unknown;
|
|
86
|
+
}
|