@carbon/ai-chat-components 1.14.0 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-ai-chat-components-prefixed-build.js +18 -0
- package/bin/prefix-build.js +193 -0
- package/bin/prefix-dependencies.js +155 -0
- package/bin/prefix-layout.js +372 -0
- package/bin/prefix-modules.js +255 -0
- package/custom-elements.json +20622 -16449
- package/es/components/aichat-audio-player/aichat-audio-player.d.ts +138 -0
- package/es/components/aichat-audio-player/aichat-audio-player.js +391 -0
- package/es/components/aichat-audio-player/aichat-audio-player.js.map +1 -0
- package/es/components/aichat-audio-player/aichat-audio-player.scss.js +13 -0
- package/es/components/aichat-audio-player/aichat-audio-player.scss.js.map +1 -0
- package/es/components/aichat-audio-player/aichat-transcript.d.ts +63 -0
- package/es/components/aichat-audio-player/aichat-transcript.js +146 -0
- package/es/components/aichat-audio-player/aichat-transcript.js.map +1 -0
- package/es/components/aichat-audio-player/aichat-transcript.scss.js +13 -0
- package/es/components/aichat-audio-player/aichat-transcript.scss.js.map +1 -0
- package/es/components/aichat-audio-player/index.d.ts +13 -0
- package/es/components/aichat-audio-player/index.js +25 -0
- package/es/components/aichat-audio-player/index.js.map +1 -0
- package/es/components/aichat-audio-player/providers/base-provider.js.map +1 -0
- package/es/components/aichat-audio-player/providers/native-audio-provider.js.map +1 -0
- package/es/components/aichat-audio-player/providers/soundcloud-provider.js +200 -0
- package/es/components/aichat-audio-player/providers/soundcloud-provider.js.map +1 -0
- package/es/components/aichat-audio-player/utils/url-detector.js.map +1 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.d.ts +214 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.js +620 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.js.map +1 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.scss.js +13 -0
- package/es/components/aichat-autocomplete/aichat-autocomplete.scss.js.map +1 -0
- package/es/components/aichat-autocomplete/index.d.ts +11 -0
- package/es/components/aichat-autocomplete/index.js +23 -0
- package/es/components/aichat-autocomplete/index.js.map +1 -0
- package/es/components/aichat-button/aichat-button-skeleton.d.ts +34 -0
- package/es/components/aichat-button/aichat-button-skeleton.js +39 -0
- package/es/components/aichat-button/aichat-button-skeleton.js.map +1 -0
- package/es/components/aichat-button/aichat-button.d.ts +44 -0
- package/es/components/aichat-button/aichat-button.js +111 -0
- package/es/components/aichat-button/aichat-button.js.map +1 -0
- package/es/components/aichat-button/aichat-button.scss.js +13 -0
- package/es/components/aichat-button/aichat-button.scss.js.map +1 -0
- package/es/components/aichat-button/defs.js.map +1 -0
- package/es/components/aichat-button/index.d.ts +11 -0
- package/es/components/aichat-button/index.js +24 -0
- package/es/components/aichat-button/index.js.map +1 -0
- package/es/components/aichat-card/aichat-card-footer.d.ts +48 -0
- package/es/components/aichat-card/aichat-card-footer.js +141 -0
- package/es/components/aichat-card/aichat-card-footer.js.map +1 -0
- package/es/components/aichat-card/aichat-card-footer.scss.js +13 -0
- package/es/components/aichat-card/aichat-card-footer.scss.js.map +1 -0
- package/es/components/aichat-card/aichat-card-steps.d.ts +30 -0
- package/es/components/aichat-card/aichat-card-steps.js +93 -0
- package/es/components/aichat-card/aichat-card-steps.js.map +1 -0
- package/es/components/aichat-card/aichat-card-steps.scss.js +13 -0
- package/es/components/aichat-card/aichat-card-steps.scss.js.map +1 -0
- package/es/components/aichat-card/aichat-card.d.ts +34 -0
- package/es/components/aichat-card/aichat-card.js +69 -0
- package/es/components/aichat-card/aichat-card.js.map +1 -0
- package/es/components/aichat-card/aichat-card.scss.js +13 -0
- package/es/components/aichat-card/aichat-card.scss.js.map +1 -0
- package/es/components/aichat-card/index.d.ts +13 -0
- package/es/components/aichat-card/index.js +26 -0
- package/es/components/aichat-card/index.js.map +1 -0
- package/es/components/aichat-carousel/aichat-carousel.d.ts +53 -0
- package/es/components/aichat-carousel/aichat-carousel.js +189 -0
- package/es/components/aichat-carousel/aichat-carousel.js.map +1 -0
- package/es/components/aichat-carousel/aichat-carousel.scss.js +13 -0
- package/es/components/aichat-carousel/aichat-carousel.scss.js.map +1 -0
- package/es/components/aichat-carousel/index.d.ts +11 -0
- package/es/components/aichat-carousel/index.js +22 -0
- package/es/components/aichat-carousel/index.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.d.ts +60 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.js +358 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-step.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.d.ts +39 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.js +107 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought-toggle.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.d.ts +52 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.js +140 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-chain-of-thought.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.d.ts +41 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.js +179 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.js.map +1 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.scss.js +13 -0
- package/es/components/aichat-chain-of-thought/aichat-tool-call-data.scss.js.map +1 -0
- package/es/components/aichat-chain-of-thought/defs.js.map +1 -0
- package/es/components/aichat-chain-of-thought/index.d.ts +6 -0
- package/es/components/aichat-chain-of-thought/index.js +29 -0
- package/es/components/aichat-chain-of-thought/index.js.map +1 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.d.ts +218 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.js +998 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.js.map +1 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.scss.js +13 -0
- package/es/components/aichat-code-snippet/aichat-code-snippet.scss.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/base-setup.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/codemirror-loader.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/content-sync.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/detect-language.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/diff-decorator.d.ts +30 -0
- package/es/components/aichat-code-snippet/codemirror/diff-decorator.js +80 -0
- package/es/components/aichat-code-snippet/codemirror/diff-decorator.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/editor-manager.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/language-controller.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/language-data.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/language-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/marker-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/codemirror/theme.js.map +1 -0
- package/es/components/aichat-code-snippet/dom-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/formatters.js +19 -0
- package/es/components/aichat-code-snippet/formatters.js.map +1 -0
- package/es/components/aichat-code-snippet/index.d.ts +7 -0
- package/es/components/aichat-code-snippet/index.js +24 -0
- package/es/components/aichat-code-snippet/index.js.map +1 -0
- package/es/components/aichat-code-snippet/layout-utils.js.map +1 -0
- package/es/components/aichat-code-snippet/streaming-manager.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.d.ts +63 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.js +207 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.scss.js +13 -0
- package/es/components/aichat-conversational-search/aichat-citation-card.scss.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.d.ts +66 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.js +179 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.js.map +1 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.scss.js +13 -0
- package/es/components/aichat-conversational-search/aichat-conversational-search-shell.scss.js.map +1 -0
- package/es/components/aichat-conversational-search/citation-utils.d.ts +32 -0
- package/es/components/aichat-conversational-search/citation-utils.js +78 -0
- package/es/components/aichat-conversational-search/citation-utils.js.map +1 -0
- package/es/components/aichat-conversational-search/index.d.ts +14 -0
- package/es/components/aichat-conversational-search/index.js +25 -0
- package/es/components/aichat-conversational-search/index.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.d.ts +70 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.js +188 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.scss.js +13 -0
- package/es/components/aichat-feedback/aichat-feedback-buttons.scss.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback.d.ts +143 -0
- package/es/components/aichat-feedback/aichat-feedback.js +324 -0
- package/es/components/aichat-feedback/aichat-feedback.js.map +1 -0
- package/es/components/aichat-feedback/aichat-feedback.scss.js +13 -0
- package/es/components/aichat-feedback/aichat-feedback.scss.js.map +1 -0
- package/es/components/aichat-feedback/index.d.ts +3 -0
- package/es/components/aichat-feedback/index.js +25 -0
- package/es/components/aichat-feedback/index.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.d.ts +117 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.js +482 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.scss.js +13 -0
- package/es/components/aichat-file-uploads/aichat-file-upload-item.scss.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.d.ts +136 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.js +346 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.js.map +1 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.scss.js +13 -0
- package/es/components/aichat-file-uploads/aichat-file-uploads.scss.js.map +1 -0
- package/es/components/aichat-file-uploads/file-type-icon.js.map +1 -0
- package/es/components/aichat-file-uploads/index.d.ts +12 -0
- package/es/components/aichat-file-uploads/index.js +24 -0
- package/es/components/aichat-file-uploads/index.js.map +1 -0
- package/es/components/aichat-history/aichat-history-content.d.ts +26 -0
- package/es/components/aichat-history/aichat-history-content.js +77 -0
- package/es/components/aichat-history/aichat-history-content.js.map +1 -0
- package/es/components/aichat-history/aichat-history-delete-panel.d.ts +51 -0
- package/es/components/aichat-history/aichat-history-delete-panel.js +147 -0
- package/es/components/aichat-history/aichat-history-delete-panel.js.map +1 -0
- package/es/components/aichat-history/aichat-history-header.d.ts +36 -0
- package/es/components/aichat-history/aichat-history-header.js +99 -0
- package/es/components/aichat-history/aichat-history-header.js.map +1 -0
- package/es/components/aichat-history/aichat-history-loading.d.ts +19 -0
- package/es/components/aichat-history/aichat-history-loading.js +60 -0
- package/es/components/aichat-history/aichat-history-loading.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-item-input.d.ts +144 -0
- package/es/components/aichat-history/aichat-history-panel-item-input.js +278 -0
- package/es/components/aichat-history/aichat-history-panel-item-input.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-item.d.ts +149 -0
- package/es/components/aichat-history/aichat-history-panel-item.js +338 -0
- package/es/components/aichat-history/aichat-history-panel-item.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-items.d.ts +14 -0
- package/es/components/aichat-history/aichat-history-panel-items.js +38 -0
- package/es/components/aichat-history/aichat-history-panel-items.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel-menu.d.ts +13 -0
- package/es/components/aichat-history/aichat-history-panel-menu.js +34 -0
- package/es/components/aichat-history/aichat-history-panel-menu.js.map +1 -0
- package/es/components/aichat-history/aichat-history-panel.d.ts +28 -0
- package/es/components/aichat-history/aichat-history-panel.js +66 -0
- package/es/components/aichat-history/aichat-history-panel.js.map +1 -0
- package/es/components/aichat-history/aichat-history-search-item.d.ts +45 -0
- package/es/components/aichat-history/aichat-history-search-item.js +96 -0
- package/es/components/aichat-history/aichat-history-search-item.js.map +1 -0
- package/es/components/aichat-history/aichat-history-shell.d.ts +26 -0
- package/es/components/aichat-history/aichat-history-shell.js +88 -0
- package/es/components/aichat-history/aichat-history-shell.js.map +1 -0
- package/es/components/aichat-history/aichat-history-toolbar.d.ts +101 -0
- package/es/components/aichat-history/aichat-history-toolbar.js +112 -0
- package/es/components/aichat-history/aichat-history-toolbar.js.map +1 -0
- package/es/components/aichat-history/chat-history.scss.js +13 -0
- package/es/components/aichat-history/index.d.ts +20 -0
- package/es/components/aichat-history/index.js +45 -0
- package/es/components/aichat-history/index.js.map +1 -0
- package/es/components/aichat-launcher/aichat-launcher.d.ts +68 -0
- package/es/components/aichat-launcher/aichat-launcher.js +149 -0
- package/es/components/aichat-launcher/aichat-launcher.js.map +1 -0
- package/es/components/aichat-launcher/aichat-launcher.scss.js +13 -0
- package/es/components/aichat-launcher/aichat-launcher.scss.js.map +1 -0
- package/es/components/aichat-launcher/index.d.ts +11 -0
- package/es/components/aichat-launcher/index.js +23 -0
- package/es/components/aichat-launcher/index.js.map +1 -0
- package/es/components/aichat-markdown/aichat-markdown.d.ts +147 -0
- package/es/components/aichat-markdown/aichat-markdown.js +885 -0
- package/es/components/aichat-markdown/aichat-markdown.js.map +1 -0
- package/es/components/aichat-markdown/aichat-markdown.scss.js +13 -0
- package/es/components/aichat-markdown/aichat-markdown.scss.js.map +1 -0
- package/es/components/aichat-markdown/index.d.ts +11 -0
- package/es/components/aichat-markdown/index.js +28 -0
- package/es/components/aichat-markdown/index.js.map +1 -0
- package/es/components/aichat-markdown/inline-markdown.d.ts +41 -0
- package/es/components/aichat-markdown/inline-markdown.js +104 -0
- package/es/components/aichat-markdown/inline-markdown.js.map +1 -0
- package/es/components/aichat-markdown/inline-markdown.scss.js +13 -0
- package/es/components/aichat-markdown/inline-run-projection.scss.js +13 -0
- package/es/components/aichat-markdown/markdown-renderer-types.d.ts +397 -0
- package/es/components/aichat-markdown/markdown-renderer.d.ts +23 -0
- package/es/components/aichat-markdown/markdown-renderer.js +639 -0
- package/es/components/aichat-markdown/markdown-renderer.js.map +1 -0
- package/es/components/aichat-markdown/markdown-token-tree.js +357 -0
- package/es/components/aichat-markdown/markdown-token-tree.js.map +1 -0
- package/es/components/aichat-markdown/plugins/markdown-it-attrs.js.map +1 -0
- package/es/components/aichat-markdown/plugins/markdown-it-highlight.js.map +1 -0
- package/es/components/aichat-markdown/plugins/markdown-it-task-lists.js +76 -0
- package/es/components/aichat-markdown/plugins/markdown-it-task-lists.js.map +1 -0
- package/es/components/aichat-markdown/utils/html-helpers.d.ts +5 -0
- package/es/components/aichat-markdown/utils/html-helpers.js.map +1 -0
- package/es/components/aichat-markdown/utils/inline-run-projection.d.ts +28 -0
- package/es/components/aichat-markdown/utils/inline-run-projection.js +192 -0
- package/es/components/aichat-markdown/utils/inline-run-projection.js.map +1 -0
- package/es/components/aichat-markdown/utils/inline-validation.js.map +1 -0
- package/es/components/aichat-markdown/utils/lit-directives.js.map +1 -0
- package/es/components/aichat-markdown/utils/plugin-fallback.js +239 -0
- package/es/components/aichat-markdown/utils/plugin-fallback.js.map +1 -0
- package/es/components/aichat-markdown/utils/plugin-host-container.d.ts +181 -0
- package/es/components/aichat-markdown/utils/plugin-host-container.js +165 -0
- package/es/components/aichat-markdown/utils/plugin-host-container.js.map +1 -0
- package/es/components/aichat-markdown/utils/slot-names.js +81 -0
- package/es/components/aichat-markdown/utils/slot-names.js.map +1 -0
- package/es/components/aichat-markdown/utils/streaming-table.js.map +1 -0
- package/es/components/aichat-markdown/utils/table-helpers.d.ts +32 -0
- package/es/components/aichat-markdown/utils/table-helpers.js +203 -0
- package/es/components/aichat-markdown/utils/table-helpers.js.map +1 -0
- package/es/components/aichat-message-byline/aichat-message-byline.d.ts +49 -0
- package/es/components/aichat-message-byline/aichat-message-byline.js +121 -0
- package/es/components/aichat-message-byline/aichat-message-byline.js.map +1 -0
- package/es/components/aichat-message-byline/aichat-message-byline.scss.js +13 -0
- package/es/components/aichat-message-byline/aichat-message-byline.scss.js.map +1 -0
- package/es/components/aichat-message-byline/index.d.ts +10 -0
- package/es/components/aichat-message-byline/index.js +22 -0
- package/es/components/aichat-message-byline/index.js.map +1 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.d.ts +68 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.js +147 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.js.map +1 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.scss.js +13 -0
- package/es/components/aichat-message-item-shell/aichat-message-item-shell.scss.js.map +1 -0
- package/es/components/aichat-message-item-shell/index.d.ts +11 -0
- package/es/components/aichat-message-item-shell/index.js +22 -0
- package/es/components/aichat-message-item-shell/index.js.map +1 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.d.ts +168 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.js +502 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.js.map +1 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.scss.js +13 -0
- package/es/components/aichat-messages-shell/aichat-messages-shell.scss.js.map +1 -0
- package/es/components/aichat-messages-shell/index.d.ts +13 -0
- package/es/components/aichat-messages-shell/index.js +23 -0
- package/es/components/aichat-messages-shell/index.js.map +1 -0
- package/es/components/aichat-messages-shell/messages-scroll-controller.d.ts +266 -0
- package/es/components/aichat-messages-shell/messages-scroll-controller.js +1319 -0
- package/es/components/aichat-messages-shell/messages-scroll-controller.js.map +1 -0
- package/es/components/aichat-processing/aichat-processing.d.ts +24 -0
- package/es/components/aichat-processing/aichat-processing.js +66 -0
- package/es/components/aichat-processing/aichat-processing.js.map +1 -0
- package/es/components/aichat-processing/aichat-processing.scss.js +13 -0
- package/es/components/aichat-processing/aichat-processing.scss.js.map +1 -0
- package/es/components/aichat-processing/index.d.ts +2 -0
- package/es/components/aichat-processing/index.js +22 -0
- package/es/components/aichat-processing/index.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-autocomplete-controller.d.ts +86 -0
- package/es/components/aichat-prompt-line/aichat-autocomplete-controller.js +268 -0
- package/es/components/aichat-prompt-line/aichat-autocomplete-controller.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-error-message.d.ts +47 -0
- package/es/components/aichat-prompt-line/aichat-error-message.js +132 -0
- package/es/components/aichat-prompt-line/aichat-error-message.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-error-message.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-error-message.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.d.ts +53 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.js +181 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-input-send-control.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.d.ts +124 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.js +272 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line-shell.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.d.ts +213 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.js +592 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-prompt-line.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.d.ts +43 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.js +90 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.js.map +1 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.scss.js +13 -0
- package/es/components/aichat-prompt-line/aichat-stop-streaming-button.scss.js.map +1 -0
- package/es/components/aichat-prompt-line/autocomplete-controller.d.ts +148 -0
- package/es/components/aichat-prompt-line/autocomplete-controller.js +503 -0
- package/es/components/aichat-prompt-line/autocomplete-controller.js.map +1 -0
- package/es/components/aichat-prompt-line/index.d.ts +25 -0
- package/es/components/aichat-prompt-line/index.js +50 -0
- package/es/components/aichat-prompt-line/index.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-constants.d.ts +35 -0
- package/es/components/aichat-prompt-line/prompt-line-constants.js +42 -0
- package/es/components/aichat-prompt-line/prompt-line-constants.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-controller.d.ts +122 -0
- package/es/components/aichat-prompt-line/prompt-line-mouse-focus.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-rich-loader.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-rich-runtime.js +446 -0
- package/es/components/aichat-prompt-line/prompt-line-rich-runtime.js.map +1 -0
- package/es/components/aichat-prompt-line/prompt-line-textarea-runtime.d.ts +68 -0
- package/es/components/aichat-prompt-line/prompt-line-textarea-runtime.js +394 -0
- package/es/components/aichat-prompt-line/prompt-line-textarea-runtime.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/build-extensions.d.ts +47 -0
- package/es/components/aichat-prompt-line/tiptap/build-extensions.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-autocomplete.d.ts +36 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-autocomplete.js +112 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-autocomplete.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-mention.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-starter-trigger.d.ts +34 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-starter-trigger.js +99 -0
- package/es/components/aichat-prompt-line/tiptap/carbon-starter-trigger.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/chat-enter.d.ts +20 -0
- package/es/components/aichat-prompt-line/tiptap/chat-enter.js +49 -0
- package/es/components/aichat-prompt-line/tiptap/chat-enter.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/editor-styles.js +83 -0
- package/es/components/aichat-prompt-line/tiptap/editor-styles.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/extension-equivalence.d.ts +64 -0
- package/es/components/aichat-prompt-line/tiptap/extension-equivalence.js +80 -0
- package/es/components/aichat-prompt-line/tiptap/extension-equivalence.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/index.d.ts +37 -0
- package/es/components/aichat-prompt-line/tiptap/json-utils.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/keymap.d.ts +34 -0
- package/es/components/aichat-prompt-line/tiptap/keymap.js +61 -0
- package/es/components/aichat-prompt-line/tiptap/keymap.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/origin-meta.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/plain-text-paste.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/render-in-light-dom.d.ts +89 -0
- package/es/components/aichat-prompt-line/tiptap/render-in-light-dom.js +43 -0
- package/es/components/aichat-prompt-line/tiptap/render-in-light-dom.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/render-token-chip.js +92 -0
- package/es/components/aichat-prompt-line/tiptap/render-token-chip.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/resolve-config-items.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/strip-presentation-fields.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/token-node-view.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/trigger-utils.d.ts +42 -0
- package/es/components/aichat-prompt-line/tiptap/trigger-utils.js +69 -0
- package/es/components/aichat-prompt-line/tiptap/trigger-utils.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/types.d.ts +228 -0
- package/es/components/aichat-prompt-line/tiptap/typing-indicator.d.ts +18 -0
- package/es/components/aichat-prompt-line/tiptap/typing-indicator.js +92 -0
- package/es/components/aichat-prompt-line/tiptap/typing-indicator.js.map +1 -0
- package/es/components/aichat-prompt-line/tiptap/value-sync.d.ts +17 -0
- package/es/components/aichat-prompt-line/tiptap/value-sync.js +57 -0
- package/es/components/aichat-prompt-line/tiptap/value-sync.js.map +1 -0
- package/es/components/aichat-prompt-line/types.d.ts +125 -0
- package/es/components/aichat-prompt-line/types.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.d.ts +63 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.js +299 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.scss.js +13 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-step.scss.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.d.ts +42 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.js +106 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.scss.js +13 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps-toggle.scss.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.d.ts +52 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.js +171 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.js.map +1 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.scss.js +13 -0
- package/es/components/aichat-reasoning-steps/aichat-reasoning-steps.scss.js.map +1 -0
- package/es/components/aichat-reasoning-steps/index.d.ts +5 -0
- package/es/components/aichat-reasoning-steps/index.js +26 -0
- package/es/components/aichat-reasoning-steps/index.js.map +1 -0
- package/es/components/aichat-shell/aichat-chat-header.d.ts +183 -0
- package/es/components/aichat-shell/aichat-chat-header.js +412 -0
- package/es/components/aichat-shell/aichat-chat-header.js.map +1 -0
- package/es/components/aichat-shell/aichat-chat-header.scss.js +13 -0
- package/es/components/aichat-shell/aichat-chat-header.scss.js.map +1 -0
- package/es/components/aichat-shell/aichat-panel.d.ts +121 -0
- package/es/components/aichat-shell/aichat-panel.js +531 -0
- package/es/components/aichat-shell/aichat-panel.js.map +1 -0
- package/es/components/aichat-shell/aichat-panel.scss.js +13 -0
- package/es/components/aichat-shell/aichat-panel.scss.js.map +1 -0
- package/es/components/aichat-shell/aichat-shell.d.ts +143 -0
- package/es/components/aichat-shell/aichat-shell.js +878 -0
- package/es/components/aichat-shell/aichat-shell.js.map +1 -0
- package/es/components/aichat-shell/aichat-shell.scss.js +13 -0
- package/es/components/aichat-shell/aichat-shell.scss.js.map +1 -0
- package/es/components/aichat-shell/corner-manager.js +101 -0
- package/es/components/aichat-shell/corner-manager.js.map +1 -0
- package/es/components/aichat-shell/index.d.ts +15 -0
- package/es/components/aichat-shell/index.js +27 -0
- package/es/components/aichat-shell/index.js.map +1 -0
- package/es/components/aichat-shell/initialization-manager.js.map +1 -0
- package/es/components/aichat-shell/panel-manager.d.ts +42 -0
- package/es/components/aichat-shell/panel-manager.js +262 -0
- package/es/components/aichat-shell/panel-manager.js.map +1 -0
- package/es/components/aichat-shell/resize-observer-manager.js.map +1 -0
- package/es/components/aichat-shell/slot-observer.js.map +1 -0
- package/es/components/aichat-shell/workspace-manager-utils.js.map +1 -0
- package/es/components/aichat-shell/workspace-manager.d.ts +173 -0
- package/es/components/aichat-shell/workspace-manager.js +717 -0
- package/es/components/aichat-shell/workspace-manager.js.map +1 -0
- package/es/components/aichat-table/aichat-table.d.ts +212 -0
- package/es/components/aichat-table/aichat-table.js +640 -0
- package/es/components/aichat-table/aichat-table.js.map +1 -0
- package/es/components/aichat-table/aichat-table.scss.js +13 -0
- package/es/components/aichat-table/aichat-table.scss.js.map +1 -0
- package/es/components/aichat-table/index.d.ts +4 -0
- package/es/components/aichat-table/index.js +22 -0
- package/es/components/aichat-table/index.js.map +1 -0
- package/es/components/aichat-table/table-loader.js.map +1 -0
- package/es/components/aichat-table/table-pagination.template.d.ts +27 -0
- package/es/components/aichat-table/table-pagination.template.js +55 -0
- package/es/components/aichat-table/table-pagination.template.js.map +1 -0
- package/es/components/aichat-table/table-skeleton.template.d.ts +6 -0
- package/es/components/aichat-table/table-skeleton.template.js +35 -0
- package/es/components/aichat-table/table-skeleton.template.js.map +1 -0
- package/es/components/aichat-table/table.template.d.ts +10 -0
- package/es/components/aichat-table/table.template.js +96 -0
- package/es/components/aichat-table/table.template.js.map +1 -0
- package/es/components/aichat-toolbar/aichat-toolbar.d.ts +93 -0
- package/es/components/aichat-toolbar/aichat-toolbar.js +367 -0
- package/es/components/aichat-toolbar/aichat-toolbar.js.map +1 -0
- package/es/components/aichat-toolbar/aichat-toolbar.scss.js +13 -0
- package/es/components/aichat-toolbar/aichat-toolbar.scss.js.map +1 -0
- package/es/components/aichat-toolbar/index.d.ts +3 -0
- package/es/components/aichat-toolbar/index.js +23 -0
- package/es/components/aichat-toolbar/index.js.map +1 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.d.ts +83 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.js +291 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.js.map +1 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.scss.js +13 -0
- package/es/components/aichat-truncated-text/aichat-truncated-text.scss.js.map +1 -0
- package/es/components/aichat-truncated-text/index.d.ts +10 -0
- package/es/components/aichat-truncated-text/index.js +22 -0
- package/es/components/aichat-truncated-text/index.js.map +1 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.d.ts +47 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.js +151 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.js.map +1 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.scss.js +13 -0
- package/es/components/aichat-user-avatar/aichat-user-avatar.scss.js.map +1 -0
- package/es/components/aichat-user-avatar/index.d.ts +10 -0
- package/es/components/aichat-user-avatar/index.js +22 -0
- package/es/components/aichat-user-avatar/index.js.map +1 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.d.ts +76 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.js +231 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.js.map +1 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.scss.js +13 -0
- package/es/components/aichat-user-message-content/aichat-user-message-content.scss.js.map +1 -0
- package/es/components/aichat-user-message-content/index.d.ts +11 -0
- package/es/components/aichat-user-message-content/index.js +23 -0
- package/es/components/aichat-user-message-content/index.js.map +1 -0
- package/es/components/aichat-user-message-content/split-run-breaks.d.ts +21 -0
- package/es/components/aichat-user-message-content/split-run-breaks.js +36 -0
- package/es/components/aichat-user-message-content/split-run-breaks.js.map +1 -0
- package/es/components/aichat-video-player/aichat-video-player.d.ts +151 -0
- package/es/components/aichat-video-player/aichat-video-player.js +417 -0
- package/es/components/aichat-video-player/aichat-video-player.js.map +1 -0
- package/es/components/aichat-video-player/aichat-video-player.scss.js +13 -0
- package/es/components/aichat-video-player/aichat-video-player.scss.js.map +1 -0
- package/es/components/aichat-video-player/index.d.ts +10 -0
- package/es/components/aichat-video-player/index.js +22 -0
- package/es/components/aichat-video-player/index.js.map +1 -0
- package/es/components/aichat-video-player/providers/base-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/kaltura-provider.js +192 -0
- package/es/components/aichat-video-player/providers/kaltura-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/native-video-provider.js +158 -0
- package/es/components/aichat-video-player/providers/native-video-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/vimeo-provider.js +194 -0
- package/es/components/aichat-video-player/providers/vimeo-provider.js.map +1 -0
- package/es/components/aichat-video-player/providers/youtube-provider.js +215 -0
- package/es/components/aichat-video-player/providers/youtube-provider.js.map +1 -0
- package/es/components/aichat-video-player/utils/url-detector.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-body.d.ts +18 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-body.js +50 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-body.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.d.ts +40 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.js +149 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.scss.js +13 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-footer.scss.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.d.ts +43 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.js +147 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.scss.js +13 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell-header.scss.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.d.ts +31 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.js +131 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.js.map +1 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.scss.js +13 -0
- package/es/components/aichat-workspace-shell/aichat-workspace-shell.scss.js.map +1 -0
- package/es/components/aichat-workspace-shell/header-collapsible-manager.js.map +1 -0
- package/es/components/aichat-workspace-shell/index.d.ts +8 -0
- package/es/components/aichat-workspace-shell/index.js +29 -0
- package/es/components/aichat-workspace-shell/index.js.map +1 -0
- package/es/components/audio-player/index.d.ts +1 -12
- package/es/components/audio-player/index.js +3 -2
- package/es/components/audio-player/index.js.map +1 -1
- package/es/components/audio-player/src/audio-player.d.ts +2 -132
- package/es/components/audio-player/src/audio-player.js +1 -385
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/audio-player.scss.d.ts +3 -0
- package/es/components/audio-player/src/audio-player.scss.js +9 -3
- package/es/components/audio-player/src/audio-player.scss.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +1 -125
- package/es/components/audio-player/src/providers/base-provider.js +1 -132
- package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +1 -49
- package/es/components/audio-player/src/providers/native-audio-provider.js +1 -143
- package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +1 -61
- package/es/components/audio-player/src/providers/soundcloud-provider.js +1 -192
- package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
- package/es/components/audio-player/src/transcript.d.ts +2 -58
- package/es/components/audio-player/src/transcript.js +1 -155
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/transcript.scss.d.ts +3 -0
- package/es/components/audio-player/src/transcript.scss.js +9 -3
- package/es/components/audio-player/src/transcript.scss.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.d.ts +1 -32
- package/es/components/audio-player/src/utils/url-detector.js +1 -55
- package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es/components/card/index.d.ts +1 -11
- package/es/components/card/index.js +4 -3
- package/es/components/card/index.js.map +1 -1
- package/es/components/card/src/card-footer.d.ts +2 -44
- package/es/components/card/src/card-footer.js +1 -131
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.d.ts +3 -0
- package/es/components/card/src/card-footer.scss.js +9 -3
- package/es/components/card/src/card-footer.scss.js.map +1 -1
- package/es/components/card/src/card-steps.d.ts +2 -29
- package/es/components/card/src/card-steps.js +1 -83
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.d.ts +3 -0
- package/es/components/card/src/card-steps.scss.js +9 -3
- package/es/components/card/src/card-steps.scss.js.map +1 -1
- package/es/components/card/src/card.d.ts +2 -28
- package/es/components/card/src/card.js +1 -58
- package/es/components/card/src/card.js.map +1 -1
- package/es/components/card/src/card.scss.d.ts +3 -0
- package/es/components/card/src/card.scss.js +9 -3
- package/es/components/card/src/card.scss.js.map +1 -1
- package/es/components/carousel/index.d.ts +1 -9
- package/es/components/carousel/index.js +2 -1
- package/es/components/carousel/index.js.map +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -39
- package/es/components/carousel/src/carousel.js +1 -122
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.d.ts +3 -0
- package/es/components/carousel/src/carousel.scss.js +9 -3
- package/es/components/carousel/src/carousel.scss.js.map +1 -1
- package/es/components/chain-of-thought/defs.d.ts +1 -54
- package/es/components/chain-of-thought/defs.js +1 -30
- package/es/components/chain-of-thought/defs.js.map +1 -1
- package/es/components/chain-of-thought/index.d.ts +2 -10
- package/es/components/chain-of-thought/index.js +6 -5
- package/es/components/chain-of-thought/index.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +2 -47
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +1 -340
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js +9 -3
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -37
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +1 -100
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +9 -3
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +2 -45
- package/es/components/chain-of-thought/src/chain-of-thought.js +1 -128
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +9 -3
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -37
- package/es/components/chain-of-thought/src/tool-call-data.js +1 -170
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.scss.d.ts +3 -0
- package/es/components/chain-of-thought/src/tool-call-data.scss.js +9 -3
- package/es/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -25
- package/es/components/chat-button/defs.js +1 -28
- package/es/components/chat-button/defs.js.map +1 -1
- package/es/components/chat-button/index.d.ts +1 -10
- package/es/components/chat-button/index.js +3 -2
- package/es/components/chat-button/index.js.map +1 -1
- package/es/components/chat-button/src/chat-button-skeleton.d.ts +2 -30
- package/es/components/chat-button/src/chat-button-skeleton.js +1 -33
- package/es/components/chat-button/src/chat-button-skeleton.js.map +1 -1
- package/es/components/chat-button/src/chat-button.d.ts +2 -43
- package/es/components/chat-button/src/chat-button.js +2 -104
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/chat-button/src/chat-button.scss.d.ts +3 -0
- package/es/components/chat-button/src/chat-button.scss.js +9 -3
- package/es/components/chat-button/src/chat-button.scss.js.map +1 -1
- package/es/components/chat-history/index.d.ts +1 -11
- package/es/components/chat-history/index.js +13 -11
- package/es/components/chat-history/index.js.map +1 -1
- package/es/components/chat-history/src/chat-history.scss.d.ts +3 -0
- package/es/components/chat-history/src/chat-history.scss.js +9 -3
- package/es/components/chat-history/src/chat-history.scss.js.map +1 -1
- package/es/components/chat-history/src/history-content.d.ts +2 -25
- package/es/components/chat-history/src/history-content.js +1 -68
- package/es/components/chat-history/src/history-content.js.map +1 -1
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -36
- package/es/components/chat-history/src/history-delete-panel.js +1 -135
- package/es/components/chat-history/src/history-delete-panel.js.map +1 -1
- package/es/components/chat-history/src/history-header.d.ts +2 -34
- package/es/components/chat-history/src/history-header.js +1 -90
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -18
- package/es/components/chat-history/src/history-loading.js +1 -54
- package/es/components/chat-history/src/history-loading.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -130
- package/es/components/chat-history/src/history-panel-item-input.js +1 -273
- package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +2 -142
- package/es/components/chat-history/src/history-panel-item.js +1 -405
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +2 -13
- package/es/components/chat-history/src/history-panel-items.js +1 -33
- package/es/components/chat-history/src/history-panel-items.js.map +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +2 -12
- package/es/components/chat-history/src/history-panel-menu.js +1 -29
- package/es/components/chat-history/src/history-panel-menu.js.map +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +2 -27
- package/es/components/chat-history/src/history-panel.js +1 -60
- package/es/components/chat-history/src/history-panel.js.map +1 -1
- package/es/components/chat-history/src/history-search-item.d.ts +2 -43
- package/es/components/chat-history/src/history-search-item.js +1 -87
- package/es/components/chat-history/src/history-search-item.js.map +1 -1
- package/es/components/chat-history/src/history-shell.d.ts +2 -23
- package/es/components/chat-history/src/history-shell.js +1 -81
- package/es/components/chat-history/src/history-shell.js.map +1 -1
- package/es/components/chat-history/src/history-toolbar.d.ts +2 -89
- package/es/components/chat-history/src/history-toolbar.js +1 -100
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +1 -12
- package/es/components/chat-shell/index.js +4 -3
- package/es/components/chat-shell/index.js.map +1 -1
- package/es/components/chat-shell/src/chat-header.d.ts +2 -177
- package/es/components/chat-shell/src/chat-header.js +1 -406
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/chat-header.scss.d.ts +3 -0
- package/es/components/chat-shell/src/chat-header.scss.js +9 -3
- package/es/components/chat-shell/src/chat-header.scss.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -39
- package/es/components/chat-shell/src/corner-manager.js +1 -93
- package/es/components/chat-shell/src/corner-manager.js.map +1 -1
- package/es/components/chat-shell/src/initialization-manager.d.ts +1 -44
- package/es/components/chat-shell/src/initialization-manager.js +1 -79
- package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -39
- package/es/components/chat-shell/src/panel-manager.js +1 -251
- package/es/components/chat-shell/src/panel-manager.js.map +1 -1
- package/es/components/chat-shell/src/panel.d.ts +2 -93
- package/es/components/chat-shell/src/panel.js +1 -519
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/panel.scss.d.ts +3 -0
- package/es/components/chat-shell/src/panel.scss.js +9 -3
- package/es/components/chat-shell/src/panel.scss.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -55
- package/es/components/chat-shell/src/resize-observer-manager.js +1 -212
- package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
- package/es/components/chat-shell/src/shell.d.ts +2 -133
- package/es/components/chat-shell/src/shell.js +1 -864
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/shell.scss.d.ts +3 -0
- package/es/components/chat-shell/src/shell.scss.js +9 -3
- package/es/components/chat-shell/src/shell.scss.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -53
- package/es/components/chat-shell/src/slot-observer.js +1 -144
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +1 -66
- package/es/components/chat-shell/src/workspace-manager-utils.d.ts +1 -90
- package/es/components/chat-shell/src/workspace-manager-utils.js +1 -111
- package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -173
- package/es/components/chat-shell/src/workspace-manager.js +1 -709
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/index.d.ts +2 -4
- package/es/components/code-snippet/index.js +2 -1
- package/es/components/code-snippet/index.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +2 -207
- package/es/components/code-snippet/src/code-snippet.js +1 -974
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.d.ts +3 -0
- package/es/components/code-snippet/src/code-snippet.scss.js +9 -3
- package/es/components/code-snippet/src/code-snippet.scss.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -19
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -68
- package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -7
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -21
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -8
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +4 -4
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -12
- package/es/components/code-snippet/src/codemirror/content-sync.js +1 -64
- package/es/components/code-snippet/src/codemirror/content-sync.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +1 -6
- package/es/components/code-snippet/src/codemirror/detect-language.js +1 -69
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +1 -30
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +1 -72
- package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +1 -31
- package/es/components/code-snippet/src/codemirror/editor-manager.js +1 -87
- package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +1 -39
- package/es/components/code-snippet/src/codemirror/language-controller.js +1 -218
- package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -6
- package/es/components/code-snippet/src/codemirror/language-data.js +1 -1035
- package/es/components/code-snippet/src/codemirror/language-data.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +1 -79
- package/es/components/code-snippet/src/codemirror/language-utils.js +1 -205
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.d.ts +1 -123
- package/es/components/code-snippet/src/codemirror/marker-utils.js +1 -176
- package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -66
- package/es/components/code-snippet/src/codemirror/theme.js +1 -339
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es/components/code-snippet/src/dom-utils.d.ts +1 -25
- package/es/components/code-snippet/src/dom-utils.js +1 -66
- package/es/components/code-snippet/src/dom-utils.js.map +1 -1
- package/es/components/code-snippet/src/formatters.d.ts +1 -4
- package/es/components/code-snippet/src/formatters.js +1 -11
- package/es/components/code-snippet/src/formatters.js.map +1 -1
- package/es/components/code-snippet/src/layout-utils.d.ts +1 -30
- package/es/components/code-snippet/src/layout-utils.js +1 -73
- package/es/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es/components/code-snippet/src/streaming-manager.d.ts +1 -24
- package/es/components/code-snippet/src/streaming-manager.js +1 -119
- package/es/components/code-snippet/src/streaming-manager.js.map +1 -1
- package/es/components/conversational-search/index.d.ts +1 -9
- package/es/components/conversational-search/index.js +3 -1
- package/es/components/conversational-search/index.js.map +1 -1
- package/es/components/conversational-search/src/citation-card.d.ts +2 -0
- package/es/components/conversational-search/src/citation-card.js +9 -0
- package/es/components/conversational-search/src/citation-card.js.map +1 -0
- package/es/components/conversational-search/src/citation-card.scss.d.ts +3 -0
- package/es/components/conversational-search/src/citation-card.scss.js +19 -0
- package/es/components/conversational-search/src/citation-card.scss.js.map +1 -0
- package/es/components/conversational-search/src/citation-utils.d.ts +1 -24
- package/es/components/conversational-search/src/citation-utils.js +1 -38
- package/es/components/conversational-search/src/citation-utils.js.map +1 -1
- package/es/components/conversational-search/src/conversational-search-shell.d.ts +2 -41
- package/es/components/conversational-search/src/conversational-search-shell.js +1 -108
- package/es/components/conversational-search/src/conversational-search-shell.js.map +1 -1
- package/es/components/conversational-search/src/conversational-search-shell.scss.d.ts +3 -0
- package/es/components/conversational-search/src/conversational-search-shell.scss.js +9 -3
- package/es/components/conversational-search/src/conversational-search-shell.scss.js.map +1 -1
- package/es/components/feedback/index.d.ts +1 -4
- package/es/components/feedback/index.js +3 -2
- package/es/components/feedback/index.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.d.ts +2 -68
- package/es/components/feedback/src/feedback-buttons.js +1 -181
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.scss.d.ts +3 -0
- package/es/components/feedback/src/feedback-buttons.scss.js +9 -3
- package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +2 -141
- package/es/components/feedback/src/feedback.js +1 -332
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.d.ts +3 -0
- package/es/components/feedback/src/feedback.scss.js +9 -3
- package/es/components/feedback/src/feedback.scss.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +1 -13
- package/es/components/file-uploads/index.js +3 -2
- package/es/components/file-uploads/index.js.map +1 -1
- package/es/components/file-uploads/src/file-type-icon.d.ts +1 -18
- package/es/components/file-uploads/src/file-type-icon.js +1 -79
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -1
- package/es/components/file-uploads/src/file-upload-item.d.ts +2 -117
- package/es/components/file-uploads/src/file-upload-item.js +1 -434
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-upload-item.scss.d.ts +3 -0
- package/es/components/file-uploads/src/file-upload-item.scss.js +9 -3
- package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +2 -116
- package/es/components/file-uploads/src/file-uploads.js +1 -283
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.d.ts +3 -0
- package/es/components/file-uploads/src/file-uploads.scss.js +9 -3
- package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -1
- package/es/components/file-uploads/src/types.d.ts +1 -39
- package/es/components/launcher/index.d.ts +1 -9
- package/es/components/launcher/index.js +2 -1
- package/es/components/launcher/index.js.map +1 -1
- package/es/components/launcher/src/launcher.d.ts +2 -68
- package/es/components/launcher/src/launcher.js +1 -145
- package/es/components/launcher/src/launcher.js.map +1 -1
- package/es/components/launcher/src/launcher.scss.d.ts +3 -0
- package/es/components/launcher/src/launcher.scss.js +9 -3
- package/es/components/launcher/src/launcher.scss.js.map +1 -1
- package/es/components/markdown/index.d.ts +2 -8
- package/es/components/markdown/index.js +5 -5
- package/es/components/markdown/src/inline-markdown.d.ts +1 -41
- package/es/components/markdown/src/inline-markdown.js +2 -84
- package/es/components/markdown/src/inline-markdown.js.map +1 -1
- package/es/components/markdown/src/markdown-renderer-types.d.ts +1 -395
- package/es/components/markdown/src/markdown-renderer.d.ts +1 -26
- package/es/components/markdown/src/markdown-renderer.js +1 -632
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +1 -83
- package/es/components/markdown/src/markdown-token-tree.js +1 -349
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +2 -139
- package/es/components/markdown/src/markdown.js +1 -862
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.d.ts +3 -0
- package/es/components/markdown/src/markdown.scss.js +9 -3
- package/es/components/markdown/src/markdown.scss.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -6
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +1 -189
- package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -7
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +1 -51
- package/es/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -12
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +1 -68
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -5
- package/es/components/markdown/src/utils/html-helpers.js +1 -317
- package/es/components/markdown/src/utils/html-helpers.js.map +1 -1
- package/es/components/markdown/src/utils/inline-run-projection.d.ts +1 -15
- package/es/components/markdown/src/utils/inline-run-projection.js +1 -188
- package/es/components/markdown/src/utils/inline-run-projection.js.map +1 -1
- package/es/components/markdown/src/utils/inline-validation.d.ts +1 -13
- package/es/components/markdown/src/utils/inline-validation.js +1 -89
- package/es/components/markdown/src/utils/inline-validation.js.map +1 -1
- package/es/components/markdown/src/utils/lit-directives.d.ts +1 -17
- package/es/components/markdown/src/utils/lit-directives.js +1 -76
- package/es/components/markdown/src/utils/lit-directives.js.map +1 -1
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +1 -36
- package/es/components/markdown/src/utils/plugin-fallback.js +1 -230
- package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
- package/es/components/markdown/src/utils/plugin-host-container.d.ts +1 -159
- package/es/components/markdown/src/utils/plugin-host-container.js +1 -157
- package/es/components/markdown/src/utils/plugin-host-container.js.map +1 -1
- package/es/components/markdown/src/utils/slot-names.d.ts +1 -1
- package/es/components/markdown/src/utils/slot-names.js +1 -75
- package/es/components/markdown/src/utils/slot-names.js.map +1 -1
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -28
- package/es/components/markdown/src/utils/streaming-table.js +1 -78
- package/es/components/markdown/src/utils/streaming-table.js.map +1 -1
- package/es/components/markdown/src/utils/table-helpers.d.ts +1 -32
- package/es/components/markdown/src/utils/table-helpers.js +1 -195
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/message-byline/index.d.ts +9 -0
- package/es/components/message-byline/index.js +10 -0
- package/es/components/message-byline/src/message-byline.d.ts +2 -0
- package/es/components/message-byline/src/message-byline.js +9 -0
- package/es/components/message-byline/src/message-byline.js.map +1 -0
- package/es/components/message-byline/src/message-byline.scss.d.ts +3 -0
- package/es/components/message-byline/src/message-byline.scss.js +19 -0
- package/es/components/message-byline/src/message-byline.scss.js.map +1 -0
- package/es/components/message-item-shell/index.d.ts +9 -0
- package/es/components/message-item-shell/index.js +10 -0
- package/es/components/message-item-shell/src/message-item-shell.d.ts +2 -0
- package/es/components/message-item-shell/src/message-item-shell.js +9 -0
- package/es/components/message-item-shell/src/message-item-shell.js.map +1 -0
- package/es/components/message-item-shell/src/message-item-shell.scss.d.ts +3 -0
- package/es/components/message-item-shell/src/message-item-shell.scss.js +19 -0
- package/es/components/message-item-shell/src/message-item-shell.scss.js.map +1 -0
- package/es/components/messages-shell/index.d.ts +1 -3
- package/es/components/messages-shell/index.js +3 -1
- package/es/components/messages-shell/index.js.map +1 -1
- package/es/components/messages-shell/src/messages-scroll-controller.d.ts +1 -0
- package/es/components/messages-shell/src/messages-scroll-controller.js +9 -0
- package/es/components/messages-shell/src/messages-scroll-controller.js.map +1 -0
- package/es/components/messages-shell/src/messages-shell.d.ts +6 -53
- package/es/components/messages-shell/src/messages-shell.js +1 -133
- package/es/components/messages-shell/src/messages-shell.js.map +1 -1
- package/es/components/messages-shell/src/messages-shell.scss.d.ts +3 -0
- package/es/components/messages-shell/src/messages-shell.scss.js +9 -3
- package/es/components/messages-shell/src/messages-shell.scss.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/index.js +2 -1
- package/es/components/processing/index.js.map +1 -1
- package/es/components/processing/src/processing.d.ts +2 -23
- package/es/components/processing/src/processing.js +1 -60
- package/es/components/processing/src/processing.js.map +1 -1
- package/es/components/processing/src/processing.scss.d.ts +3 -0
- package/es/components/processing/src/processing.scss.js +9 -3
- package/es/components/processing/src/processing.scss.js.map +1 -1
- package/es/components/prompt-line/autocomplete/index.d.ts +1 -12
- package/es/components/prompt-line/autocomplete/index.js +2 -1
- package/es/components/prompt-line/autocomplete/index.js.map +1 -1
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +2 -212
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +1 -613
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.d.ts +3 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +9 -3
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -1
- package/es/components/prompt-line/index.d.ts +1 -27
- package/es/components/prompt-line/index.js +20 -23
- package/es/components/prompt-line/index.js.map +1 -1
- package/es/components/prompt-line/src/autocomplete-controller-element.d.ts +2 -84
- package/es/components/prompt-line/src/autocomplete-controller-element.js +1 -266
- package/es/components/prompt-line/src/autocomplete-controller-element.js.map +1 -1
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +1 -148
- package/es/components/prompt-line/src/autocomplete-controller.js +1 -495
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +2 -46
- package/es/components/prompt-line/src/error-message.js +1 -126
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.d.ts +3 -0
- package/es/components/prompt-line/src/error-message.scss.js +9 -3
- package/es/components/prompt-line/src/error-message.scss.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.d.ts +1 -35
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -34
- package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -122
- package/es/components/prompt-line/src/prompt-line-mouse-focus.d.ts +1 -45
- package/es/components/prompt-line/src/prompt-line-mouse-focus.js +1 -75
- package/es/components/prompt-line/src/prompt-line-mouse-focus.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -41
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -48
- package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -14
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +1 -433
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +2 -114
- package/es/components/prompt-line/src/prompt-line-shell.js +1 -259
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.d.ts +3 -0
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +9 -3
- package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +1 -88
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.js +1 -380
- package/es/components/prompt-line/src/prompt-line-textarea-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +2 -197
- package/es/components/prompt-line/src/prompt-line.js +1 -546
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line.scss.d.ts +3 -0
- package/es/components/prompt-line/src/prompt-line.scss.js +9 -3
- package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +2 -53
- package/es/components/prompt-line/src/send-control.js +1 -176
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/send-control.scss.d.ts +3 -0
- package/es/components/prompt-line/src/send-control.scss.js +9 -3
- package/es/components/prompt-line/src/send-control.scss.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +2 -42
- package/es/components/prompt-line/src/stop-streaming-button.js +1 -84
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.scss.d.ts +3 -0
- package/es/components/prompt-line/src/stop-streaming-button.scss.js +9 -3
- package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +1 -47
- package/es/components/prompt-line/src/tiptap/build-extensions.js +1 -60
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +1 -36
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +1 -104
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +1 -19
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +1 -218
- package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +1 -34
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +1 -91
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -17
- package/es/components/prompt-line/src/tiptap/chat-enter.js +1 -38
- package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/editor-styles.d.ts +1 -18
- package/es/components/prompt-line/src/tiptap/editor-styles.js +1 -75
- package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/extension-equivalence.d.ts +1 -64
- package/es/components/prompt-line/src/tiptap/extension-equivalence.js +1 -72
- package/es/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/index.d.ts +1 -37
- package/es/components/prompt-line/src/tiptap/index.js +16 -16
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -69
- package/es/components/prompt-line/src/tiptap/json-utils.js +1 -160
- package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -31
- package/es/components/prompt-line/src/tiptap/keymap.js +1 -50
- package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -11
- package/es/components/prompt-line/src/tiptap/origin-meta.js +1 -25
- package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -16
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +1 -82
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +1 -87
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +1 -33
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +1 -69
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +1 -84
- package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/resolve-config-items.d.ts +1 -22
- package/es/components/prompt-line/src/tiptap/resolve-config-items.js +1 -33
- package/es/components/prompt-line/src/tiptap/resolve-config-items.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/strip-presentation-fields.d.ts +1 -18
- package/es/components/prompt-line/src/tiptap/strip-presentation-fields.js +1 -14
- package/es/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +1 -36
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -33
- package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +1 -41
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +1 -60
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +1 -229
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -30
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +1 -96
- package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -25
- package/es/components/prompt-line/src/tiptap/value-sync.js +1 -57
- package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -1
- package/es/components/prompt-line/src/types.d.ts +1 -100
- package/es/components/prompt-line/src/types.js +1 -42
- package/es/components/prompt-line/src/types.js.map +1 -1
- package/es/components/reasoning-steps/index.d.ts +1 -4
- package/es/components/reasoning-steps/index.js +4 -3
- package/es/components/reasoning-steps/index.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -50
- package/es/components/reasoning-steps/src/reasoning-step.js +1 -286
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.scss.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-step.scss.js +9 -3
- package/es/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -40
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +1 -99
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +9 -3
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -47
- package/es/components/reasoning-steps/src/reasoning-steps.js +1 -161
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.scss.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-steps.scss.js +9 -3
- package/es/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -1
- package/es/components/table/index.d.ts +2 -3
- package/es/components/table/index.js +2 -1
- package/es/components/table/index.js.map +1 -1
- package/es/components/table/src/table-loader.d.ts +1 -4
- package/es/components/table/src/table-loader.js +1 -20
- package/es/components/table/src/table-loader.js.map +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +1 -27
- package/es/components/table/src/table-pagination.template.js +1 -47
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +1 -2
- package/es/components/table/src/table-runtime.js +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -6
- package/es/components/table/src/table-skeleton.template.js +1 -27
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +2 -210
- package/es/components/table/src/table.js +1 -633
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.scss.d.ts +3 -0
- package/es/components/table/src/table.scss.js +9 -3
- package/es/components/table/src/table.scss.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +1 -10
- package/es/components/table/src/table.template.js +1 -88
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/table/src/types.d.ts +1 -13
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/index.js +2 -1
- package/es/components/toolbar/index.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +2 -85
- package/es/components/toolbar/src/toolbar.js +1 -378
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.d.ts +3 -0
- package/es/components/toolbar/src/toolbar.scss.js +9 -3
- package/es/components/toolbar/src/toolbar.scss.js.map +1 -1
- package/es/components/truncated-text/index.d.ts +1 -9
- package/es/components/truncated-text/index.js +2 -1
- package/es/components/truncated-text/index.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +2 -84
- package/es/components/truncated-text/src/truncated-text.js +1 -287
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.d.ts +3 -0
- package/es/components/truncated-text/src/truncated-text.scss.js +9 -3
- package/es/components/truncated-text/src/truncated-text.scss.js.map +1 -1
- package/es/components/user-avatar/index.d.ts +9 -0
- package/es/components/user-avatar/index.js +10 -0
- package/es/components/user-avatar/src/user-avatar.d.ts +2 -0
- package/es/components/user-avatar/src/user-avatar.js +9 -0
- package/es/components/user-avatar/src/user-avatar.js.map +1 -0
- package/es/components/user-avatar/src/user-avatar.scss.d.ts +3 -0
- package/es/components/user-avatar/src/user-avatar.scss.js +19 -0
- package/es/components/user-avatar/src/user-avatar.scss.js.map +1 -0
- package/es/components/user-message-content/index.d.ts +9 -0
- package/es/components/user-message-content/index.js +10 -0
- package/es/components/user-message-content/src/split-run-breaks.d.ts +9 -0
- package/es/components/user-message-content/src/split-run-breaks.js +9 -0
- package/es/components/user-message-content/src/split-run-breaks.js.map +1 -0
- package/es/components/user-message-content/src/user-message-content.d.ts +10 -0
- package/es/components/user-message-content/src/user-message-content.js +9 -0
- package/es/components/user-message-content/src/user-message-content.js.map +1 -0
- package/es/components/user-message-content/src/user-message-content.scss.d.ts +3 -0
- package/es/components/user-message-content/src/user-message-content.scss.js +19 -0
- package/es/components/user-message-content/src/user-message-content.scss.js.map +1 -0
- package/es/components/video-player/index.d.ts +1 -10
- package/es/components/video-player/index.js +2 -1
- package/es/components/video-player/index.js.map +1 -1
- package/es/components/video-player/src/providers/base-provider.d.ts +1 -141
- package/es/components/video-player/src/providers/base-provider.js +1 -128
- package/es/components/video-player/src/providers/base-provider.js.map +1 -1
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +1 -64
- package/es/components/video-player/src/providers/kaltura-provider.js +1 -184
- package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
- package/es/components/video-player/src/providers/native-video-provider.d.ts +1 -49
- package/es/components/video-player/src/providers/native-video-provider.js +1 -150
- package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +1 -60
- package/es/components/video-player/src/providers/vimeo-provider.js +1 -186
- package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
- package/es/components/video-player/src/providers/youtube-provider.d.ts +1 -73
- package/es/components/video-player/src/providers/youtube-provider.js +1 -207
- package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
- package/es/components/video-player/src/utils/url-detector.d.ts +1 -34
- package/es/components/video-player/src/utils/url-detector.js +1 -72
- package/es/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -145
- package/es/components/video-player/src/video-player.js +1 -411
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/video-player/src/video-player.scss.d.ts +3 -0
- package/es/components/video-player/src/video-player.scss.js +9 -3
- package/es/components/video-player/src/video-player.scss.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +1 -4
- package/es/components/workspace-shell/index.js +5 -4
- package/es/components/workspace-shell/index.js.map +1 -1
- package/es/components/workspace-shell/src/header-collapsible-manager.d.ts +1 -77
- package/es/components/workspace-shell/src/header-collapsible-manager.js +1 -214
- package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +2 -17
- package/es/components/workspace-shell/src/workspace-shell-body.js +1 -44
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +2 -38
- package/es/components/workspace-shell/src/workspace-shell-footer.js +1 -142
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.d.ts +3 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +9 -3
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -38
- package/es/components/workspace-shell/src/workspace-shell-header.js +1 -142
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.scss.d.ts +3 -0
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js +9 -3
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +2 -30
- package/es/components/workspace-shell/src/workspace-shell.js +1 -125
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.d.ts +3 -0
- package/es/components/workspace-shell/src/workspace-shell.scss.js +9 -3
- package/es/components/workspace-shell/src/workspace-shell.scss.js.map +1 -1
- package/es/globals/register.d.ts +45 -0
- package/es/globals/register.js +78 -0
- package/es/globals/register.js.map +1 -0
- package/es/globals/settings.d.ts +2 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/settings.js.map +1 -1
- package/es/globals/utils/dynamic-css-var-sheet.js.map +1 -0
- package/es/globals/utils/iconTransform.js +1 -0
- package/es/globals/utils/iconTransform.js.map +1 -1
- package/es/globals/utils/menu-item-activation.d.ts +8 -0
- package/es/globals/utils/menu-item-activation.js +42 -0
- package/es/globals/utils/menu-item-activation.js.map +1 -0
- package/es/globals/utils/root-styles.d.ts +30 -0
- package/es/globals/utils/root-styles.js +72 -0
- package/es/globals/utils/root-styles.js.map +1 -0
- package/es/globals/utils/script-loader.js.map +1 -0
- package/es/index.d.ts +87 -0
- package/es/index.js +95 -0
- package/es/index.js.map +1 -0
- package/es/react/ai-label-action-button.d.ts +2 -2
- package/es/react/ai-label-action-button.js +3 -3
- package/es/react/ai-label-action-button.js.map +1 -1
- package/es/react/audio-player.d.ts +9 -2
- package/es/react/audio-player.js +6 -6
- package/es/react/audio-player.js.map +1 -1
- package/es/react/autocomplete-controller.d.ts +20 -0
- package/es/react/autocomplete-controller.js +35 -0
- package/es/react/autocomplete-controller.js.map +1 -0
- package/es/react/autocomplete.d.ts +9 -2
- package/es/react/autocomplete.js +6 -5
- package/es/react/autocomplete.js.map +1 -1
- package/es/react/card.d.ts +8 -4
- package/es/react/card.js +16 -16
- package/es/react/card.js.map +1 -1
- package/es/react/carousel.d.ts +6 -2
- package/es/react/carousel.js +5 -5
- package/es/react/carousel.js.map +1 -1
- package/es/react/chain-of-thought-step.d.ts +7 -2
- package/es/react/chain-of-thought-step.js +5 -5
- package/es/react/chain-of-thought-step.js.map +1 -1
- package/es/react/chain-of-thought-toggle.d.ts +6 -3
- package/es/react/chain-of-thought-toggle.js +5 -5
- package/es/react/chain-of-thought-toggle.js.map +1 -1
- package/es/react/chain-of-thought.d.ts +12 -2
- package/es/react/chain-of-thought.js +9 -6
- package/es/react/chain-of-thought.js.map +1 -1
- package/es/react/chat-button-skeleton.d.ts +2 -2
- package/es/react/chat-button-skeleton.js +5 -5
- package/es/react/chat-button-skeleton.js.map +1 -1
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +7 -7
- package/es/react/chat-button.js.map +1 -1
- package/es/react/chat-header.d.ts +11 -62
- package/es/react/chat-header.js +9 -7
- package/es/react/chat-header.js.map +1 -1
- package/es/react/chat-shell.d.ts +5 -2
- package/es/react/chat-shell.js +6 -6
- package/es/react/chat-shell.js.map +1 -1
- package/es/react/citation-card.d.ts +17 -0
- package/es/react/citation-card.js +32 -0
- package/es/react/citation-card.js.map +1 -0
- package/es/react/code-snippet.d.ts +15 -9
- package/es/react/code-snippet.js +9 -6
- package/es/react/code-snippet.js.map +1 -1
- package/es/react/conversational-search-shell.d.ts +7 -2
- package/es/react/conversational-search-shell.js +8 -8
- package/es/react/conversational-search-shell.js.map +1 -1
- package/es/react/error-message.d.ts +2 -2
- package/es/react/error-message.js +5 -5
- package/es/react/error-message.js.map +1 -1
- package/es/react/feedback-buttons.d.ts +6 -2
- package/es/react/feedback-buttons.js +5 -5
- package/es/react/feedback-buttons.js.map +1 -1
- package/es/react/feedback.d.ts +7 -3
- package/es/react/feedback.js +6 -6
- package/es/react/feedback.js.map +1 -1
- package/es/react/file-upload-item.d.ts +6 -2
- package/es/react/file-upload-item.js +5 -5
- package/es/react/file-upload-item.js.map +1 -1
- package/es/react/file-uploads.d.ts +6 -2
- package/es/react/file-uploads.js +5 -5
- package/es/react/file-uploads.js.map +1 -1
- package/es/react/history/history-content.d.ts +2 -2
- package/es/react/history/history-content.js +5 -5
- package/es/react/history/history-content.js.map +1 -1
- package/es/react/history/history-delete-panel.d.ts +7 -2
- package/es/react/history/history-delete-panel.js +5 -5
- package/es/react/history/history-delete-panel.js.map +1 -1
- package/es/react/history/history-header.d.ts +5 -2
- package/es/react/history/history-header.js +5 -5
- package/es/react/history/history-header.js.map +1 -1
- package/es/react/history/history-loading.d.ts +2 -2
- package/es/react/history/history-loading.js +5 -5
- package/es/react/history/history-loading.js.map +1 -1
- package/es/react/history/history-panel-item-input.d.ts +8 -2
- package/es/react/history/history-panel-item-input.js +5 -5
- package/es/react/history/history-panel-item-input.js.map +1 -1
- package/es/react/history/history-panel-item.d.ts +10 -2
- package/es/react/history/history-panel-item.js +5 -5
- package/es/react/history/history-panel-item.js.map +1 -1
- package/es/react/history/history-panel-items.d.ts +2 -2
- package/es/react/history/history-panel-items.js +5 -5
- package/es/react/history/history-panel-items.js.map +1 -1
- package/es/react/history/history-panel-menu.d.ts +2 -2
- package/es/react/history/history-panel-menu.js +5 -5
- package/es/react/history/history-panel-menu.js.map +1 -1
- package/es/react/history/history-panel.d.ts +2 -2
- package/es/react/history/history-panel.js +5 -5
- package/es/react/history/history-panel.js.map +1 -1
- package/es/react/history/history-search-item.d.ts +6 -2
- package/es/react/history/history-search-item.js +5 -5
- package/es/react/history/history-search-item.js.map +1 -1
- package/es/react/history/history-shell.d.ts +6 -2
- package/es/react/history/history-shell.js +8 -5
- package/es/react/history/history-shell.js.map +1 -1
- package/es/react/history/history-toolbar.d.ts +7 -2
- package/es/react/history/history-toolbar.js +5 -5
- package/es/react/history/history-toolbar.js.map +1 -1
- package/es/react/hooks/useChatAutocomplete.d.ts +2 -2
- package/es/react/hooks/useChatAutocomplete.js +4 -2
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/index.d.ts +67 -0
- package/es/react/index.js +68 -0
- package/es/react/index.js.map +1 -0
- package/es/react/input-send-control.d.ts +6 -2
- package/es/react/input-send-control.js +5 -5
- package/es/react/input-send-control.js.map +1 -1
- package/es/react/launcher.d.ts +5 -2
- package/es/react/launcher.js +5 -5
- package/es/react/launcher.js.map +1 -1
- package/es/react/markdown.d.ts +9 -8
- package/es/react/markdown.js +10 -12
- package/es/react/markdown.js.map +1 -1
- package/es/react/message-byline.d.ts +3 -0
- package/es/react/message-byline.js +28 -0
- package/es/react/message-byline.js.map +1 -0
- package/es/react/message-item-shell.d.ts +3 -0
- package/es/react/message-item-shell.js +29 -0
- package/es/react/message-item-shell.js.map +1 -0
- package/es/react/messages-shell.d.ts +5 -2
- package/es/react/messages-shell.js +5 -6
- package/es/react/messages-shell.js.map +1 -1
- package/es/react/panel.d.ts +10 -2
- package/es/react/panel.js +6 -6
- package/es/react/panel.js.map +1 -1
- package/es/react/processing.d.ts +2 -2
- package/es/react/processing.js +5 -5
- package/es/react/processing.js.map +1 -1
- package/es/react/prompt-line-shell.d.ts +8 -4
- package/es/react/prompt-line-shell.js +10 -8
- package/es/react/prompt-line-shell.js.map +1 -1
- package/es/react/prompt-line.d.ts +13 -6
- package/es/react/prompt-line.js +5 -9
- package/es/react/prompt-line.js.map +1 -1
- package/es/react/reasoning-step.d.ts +8 -2
- package/es/react/reasoning-step.js +6 -5
- package/es/react/reasoning-step.js.map +1 -1
- package/es/react/reasoning-steps-toggle.d.ts +6 -3
- package/es/react/reasoning-steps-toggle.js +5 -5
- package/es/react/reasoning-steps-toggle.js.map +1 -1
- package/es/react/reasoning-steps.d.ts +7 -2
- package/es/react/reasoning-steps.js +9 -5
- package/es/react/reasoning-steps.js.map +1 -1
- package/es/react/stop-streaming-button.d.ts +2 -2
- package/es/react/stop-streaming-button.js +5 -5
- package/es/react/stop-streaming-button.js.map +1 -1
- package/es/react/table.d.ts +3 -3
- package/es/react/table.js +5 -5
- package/es/react/table.js.map +1 -1
- package/es/react/tool-call-data.d.ts +2 -2
- package/es/react/tool-call-data.js +5 -5
- package/es/react/tool-call-data.js.map +1 -1
- package/es/react/toolbar.d.ts +8 -3
- package/es/react/toolbar.js +9 -7
- package/es/react/toolbar.js.map +1 -1
- package/es/react/transcript.d.ts +4 -2
- package/es/react/transcript.js +4 -3
- package/es/react/transcript.js.map +1 -1
- package/es/react/truncated-text.d.ts +2 -2
- package/es/react/truncated-text.js +5 -5
- package/es/react/truncated-text.js.map +1 -1
- package/es/react/user-avatar.d.ts +3 -0
- package/es/react/user-avatar.js +28 -0
- package/es/react/user-avatar.js.map +1 -0
- package/es/react/user-message-content.d.ts +3 -0
- package/es/react/user-message-content.js +28 -0
- package/es/react/user-message-content.js.map +1 -0
- package/es/react/utils/transformSuggestionConfig.d.ts +1 -1
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- package/es/react/video-player.d.ts +9 -2
- package/es/react/video-player.js +6 -6
- package/es/react/video-player.js.map +1 -1
- package/es/react/workspace-shell.d.ts +11 -5
- package/es/react/workspace-shell.js +20 -17
- package/es/react/workspace-shell.js.map +1 -1
- package/es/testing/load-all-lazy-deps.d.ts +1 -1
- package/es/testing/load-all-lazy-deps.js +2 -2
- package/es/testing/load-all-lazy-deps.js.map +1 -1
- package/es/typings/overflow-menu.d.ts +21 -10
- package/package.json +67 -27
- package/scss/_markdown-inline.scss +1 -1
- package/scss/_modifiers.scss +2 -2
- package/scss/_utilities.scss +3 -3
- package/scss/vars.scss +1 -1
- package/telemetry.yml +18 -0
- package/LICENSE +0 -201
- package/es/components/markdown/__tests__/inline-selection-fixture.d.ts +0 -13
- package/es/components/markdown/src/inline-markdown.scss.js +0 -13
- package/es/components/markdown/src/inline-markdown.scss.js.map +0 -1
- package/es/components/markdown/src/inline-run-projection.scss.js +0 -13
- package/es/components/markdown/src/inline-run-projection.scss.js.map +0 -1
- package/es/components/prompt-line/src/__tests__/wait-for-rich.d.ts +0 -20
- package/es/components/shared/dynamic-css-var-sheet.d.ts +0 -34
- package/es/components/shared/dynamic-css-var-sheet.js +0 -215
- package/es/components/shared/dynamic-css-var-sheet.js.map +0 -1
- package/es/components/shared/media-utils/script-loader.d.ts +0 -36
- package/es/components/shared/media-utils/script-loader.js +0 -80
- package/es/components/shared/media-utils/script-loader.js.map +0 -1
- package/es/globals/decorators/carbon-element.d.ts +0 -37
- package/es/globals/decorators/carbon-element.js +0 -67
- package/es/globals/decorators/carbon-element.js.map +0 -1
- package/es/globals/decorators/index.d.ts +0 -1
- package/es/globals/decorators/index.js +0 -9
- package/es/globals/decorators/index.js.map +0 -1
- package/es/react/utils/withWebComponentBridge.d.ts +0 -18
- package/es/react/utils/withWebComponentBridge.js +0 -143
- package/es/react/utils/withWebComponentBridge.js.map +0 -1
- package/es-custom/components/audio-player/index.d.ts +0 -12
- package/es-custom/components/audio-player/index.js +0 -10
- package/es-custom/components/audio-player/src/audio-player.d.ts +0 -132
- package/es-custom/components/audio-player/src/audio-player.js +0 -393
- package/es-custom/components/audio-player/src/audio-player.js.map +0 -1
- package/es-custom/components/audio-player/src/audio-player.scss.js +0 -13
- package/es-custom/components/audio-player/src/audio-player.scss.js.map +0 -1
- package/es-custom/components/audio-player/src/providers/base-provider.js.map +0 -1
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +0 -1
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +0 -200
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +0 -1
- package/es-custom/components/audio-player/src/transcript.d.ts +0 -58
- package/es-custom/components/audio-player/src/transcript.js +0 -163
- package/es-custom/components/audio-player/src/transcript.js.map +0 -1
- package/es-custom/components/audio-player/src/transcript.scss.js +0 -13
- package/es-custom/components/audio-player/src/transcript.scss.js.map +0 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js.map +0 -1
- package/es-custom/components/card/index.d.ts +0 -11
- package/es-custom/components/card/index.js +0 -11
- package/es-custom/components/card/index.js.map +0 -1
- package/es-custom/components/card/src/card-footer.d.ts +0 -44
- package/es-custom/components/card/src/card-footer.js +0 -139
- package/es-custom/components/card/src/card-footer.js.map +0 -1
- package/es-custom/components/card/src/card-footer.scss.js +0 -13
- package/es-custom/components/card/src/card-footer.scss.js.map +0 -1
- package/es-custom/components/card/src/card-steps.d.ts +0 -29
- package/es-custom/components/card/src/card-steps.js +0 -91
- package/es-custom/components/card/src/card-steps.js.map +0 -1
- package/es-custom/components/card/src/card-steps.scss.js +0 -13
- package/es-custom/components/card/src/card-steps.scss.js.map +0 -1
- package/es-custom/components/card/src/card.d.ts +0 -28
- package/es-custom/components/card/src/card.js +0 -66
- package/es-custom/components/card/src/card.js.map +0 -1
- package/es-custom/components/card/src/card.scss.js +0 -13
- package/es-custom/components/card/src/card.scss.js.map +0 -1
- package/es-custom/components/carousel/index.d.ts +0 -9
- package/es-custom/components/carousel/index.js +0 -9
- package/es-custom/components/carousel/index.js.map +0 -1
- package/es-custom/components/carousel/src/carousel.d.ts +0 -39
- package/es-custom/components/carousel/src/carousel.js +0 -130
- package/es-custom/components/carousel/src/carousel.js.map +0 -1
- package/es-custom/components/carousel/src/carousel.scss.js +0 -13
- package/es-custom/components/carousel/src/carousel.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/defs.js.map +0 -1
- package/es-custom/components/chain-of-thought/index.d.ts +0 -10
- package/es-custom/components/chain-of-thought/index.js +0 -13
- package/es-custom/components/chain-of-thought/index.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +0 -47
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +0 -348
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +0 -37
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +0 -108
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +0 -45
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +0 -136
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +0 -37
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +0 -178
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +0 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js +0 -13
- package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js.map +0 -1
- package/es-custom/components/chat-button/defs.js.map +0 -1
- package/es-custom/components/chat-button/index.d.ts +0 -10
- package/es-custom/components/chat-button/index.js +0 -10
- package/es-custom/components/chat-button/src/chat-button-skeleton.d.ts +0 -30
- package/es-custom/components/chat-button/src/chat-button-skeleton.js +0 -41
- package/es-custom/components/chat-button/src/chat-button-skeleton.js.map +0 -1
- package/es-custom/components/chat-button/src/chat-button.d.ts +0 -43
- package/es-custom/components/chat-button/src/chat-button.js +0 -113
- package/es-custom/components/chat-button/src/chat-button.js.map +0 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +0 -13
- package/es-custom/components/chat-button/src/chat-button.scss.js.map +0 -1
- package/es-custom/components/chat-history/index.d.ts +0 -11
- package/es-custom/components/chat-history/index.js +0 -19
- package/es-custom/components/chat-history/index.js.map +0 -1
- package/es-custom/components/chat-history/src/chat-history.scss.js +0 -13
- package/es-custom/components/chat-history/src/history-content.d.ts +0 -25
- package/es-custom/components/chat-history/src/history-content.js +0 -76
- package/es-custom/components/chat-history/src/history-content.js.map +0 -1
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +0 -36
- package/es-custom/components/chat-history/src/history-delete-panel.js +0 -143
- package/es-custom/components/chat-history/src/history-delete-panel.js.map +0 -1
- package/es-custom/components/chat-history/src/history-header.d.ts +0 -34
- package/es-custom/components/chat-history/src/history-header.js +0 -98
- package/es-custom/components/chat-history/src/history-header.js.map +0 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +0 -18
- package/es-custom/components/chat-history/src/history-loading.js +0 -62
- package/es-custom/components/chat-history/src/history-loading.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +0 -130
- package/es-custom/components/chat-history/src/history-panel-item-input.js +0 -281
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +0 -142
- package/es-custom/components/chat-history/src/history-panel-item.js +0 -413
- package/es-custom/components/chat-history/src/history-panel-item.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +0 -13
- package/es-custom/components/chat-history/src/history-panel-items.js +0 -41
- package/es-custom/components/chat-history/src/history-panel-items.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +0 -12
- package/es-custom/components/chat-history/src/history-panel-menu.js +0 -37
- package/es-custom/components/chat-history/src/history-panel-menu.js.map +0 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +0 -27
- package/es-custom/components/chat-history/src/history-panel.js +0 -68
- package/es-custom/components/chat-history/src/history-panel.js.map +0 -1
- package/es-custom/components/chat-history/src/history-search-item.d.ts +0 -43
- package/es-custom/components/chat-history/src/history-search-item.js +0 -95
- package/es-custom/components/chat-history/src/history-search-item.js.map +0 -1
- package/es-custom/components/chat-history/src/history-shell.d.ts +0 -23
- package/es-custom/components/chat-history/src/history-shell.js +0 -89
- package/es-custom/components/chat-history/src/history-shell.js.map +0 -1
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +0 -89
- package/es-custom/components/chat-history/src/history-toolbar.js +0 -108
- package/es-custom/components/chat-history/src/history-toolbar.js.map +0 -1
- package/es-custom/components/chat-shell/index.d.ts +0 -12
- package/es-custom/components/chat-shell/index.js +0 -11
- package/es-custom/components/chat-shell/index.js.map +0 -1
- package/es-custom/components/chat-shell/src/chat-header.d.ts +0 -177
- package/es-custom/components/chat-shell/src/chat-header.js +0 -414
- package/es-custom/components/chat-shell/src/chat-header.js.map +0 -1
- package/es-custom/components/chat-shell/src/chat-header.scss.js +0 -13
- package/es-custom/components/chat-shell/src/chat-header.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +0 -101
- package/es-custom/components/chat-shell/src/corner-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/initialization-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +0 -39
- package/es-custom/components/chat-shell/src/panel-manager.js +0 -259
- package/es-custom/components/chat-shell/src/panel-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/panel.d.ts +0 -93
- package/es-custom/components/chat-shell/src/panel.js +0 -527
- package/es-custom/components/chat-shell/src/panel.js.map +0 -1
- package/es-custom/components/chat-shell/src/panel.scss.js +0 -13
- package/es-custom/components/chat-shell/src/panel.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +0 -1
- package/es-custom/components/chat-shell/src/shell.d.ts +0 -133
- package/es-custom/components/chat-shell/src/shell.js +0 -872
- package/es-custom/components/chat-shell/src/shell.js.map +0 -1
- package/es-custom/components/chat-shell/src/shell.scss.js +0 -13
- package/es-custom/components/chat-shell/src/shell.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/slot-observer.js.map +0 -1
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +0 -1
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +0 -173
- package/es-custom/components/chat-shell/src/workspace-manager.js +0 -717
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +0 -1
- package/es-custom/components/code-snippet/index.d.ts +0 -4
- package/es-custom/components/code-snippet/index.js +0 -10
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +0 -207
- package/es-custom/components/code-snippet/src/code-snippet.js +0 -982
- package/es-custom/components/code-snippet/src/code-snippet.js.map +0 -1
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +0 -13
- package/es-custom/components/code-snippet/src/code-snippet.scss.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +0 -30
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +0 -80
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js.map +0 -1
- package/es-custom/components/code-snippet/src/dom-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/formatters.js +0 -19
- package/es-custom/components/code-snippet/src/formatters.js.map +0 -1
- package/es-custom/components/code-snippet/src/layout-utils.js.map +0 -1
- package/es-custom/components/code-snippet/src/streaming-manager.js.map +0 -1
- package/es-custom/components/conversational-search/index.d.ts +0 -9
- package/es-custom/components/conversational-search/index.js +0 -9
- package/es-custom/components/conversational-search/index.js.map +0 -1
- package/es-custom/components/conversational-search/src/citation-utils.d.ts +0 -24
- package/es-custom/components/conversational-search/src/citation-utils.js +0 -46
- package/es-custom/components/conversational-search/src/citation-utils.js.map +0 -1
- package/es-custom/components/conversational-search/src/conversational-search-shell.d.ts +0 -41
- package/es-custom/components/conversational-search/src/conversational-search-shell.js +0 -116
- package/es-custom/components/conversational-search/src/conversational-search-shell.js.map +0 -1
- package/es-custom/components/conversational-search/src/conversational-search-shell.scss.js +0 -13
- package/es-custom/components/conversational-search/src/conversational-search-shell.scss.js.map +0 -1
- package/es-custom/components/feedback/index.d.ts +0 -4
- package/es-custom/components/feedback/index.js +0 -10
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +0 -68
- package/es-custom/components/feedback/src/feedback-buttons.js +0 -189
- package/es-custom/components/feedback/src/feedback-buttons.js.map +0 -1
- package/es-custom/components/feedback/src/feedback-buttons.scss.js +0 -13
- package/es-custom/components/feedback/src/feedback-buttons.scss.js.map +0 -1
- package/es-custom/components/feedback/src/feedback.d.ts +0 -141
- package/es-custom/components/feedback/src/feedback.js +0 -340
- package/es-custom/components/feedback/src/feedback.js.map +0 -1
- package/es-custom/components/feedback/src/feedback.scss.js +0 -13
- package/es-custom/components/feedback/src/feedback.scss.js.map +0 -1
- package/es-custom/components/file-uploads/index.d.ts +0 -13
- package/es-custom/components/file-uploads/index.js +0 -10
- package/es-custom/components/file-uploads/index.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +0 -117
- package/es-custom/components/file-uploads/src/file-upload-item.js +0 -442
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js +0 -13
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +0 -116
- package/es-custom/components/file-uploads/src/file-uploads.js +0 -291
- package/es-custom/components/file-uploads/src/file-uploads.js.map +0 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +0 -13
- package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +0 -1
- package/es-custom/components/launcher/index.d.ts +0 -9
- package/es-custom/components/launcher/index.js +0 -9
- package/es-custom/components/launcher/index.js.map +0 -1
- package/es-custom/components/launcher/src/launcher.d.ts +0 -68
- package/es-custom/components/launcher/src/launcher.js +0 -153
- package/es-custom/components/launcher/src/launcher.js.map +0 -1
- package/es-custom/components/launcher/src/launcher.scss.js +0 -13
- package/es-custom/components/launcher/src/launcher.scss.js.map +0 -1
- package/es-custom/components/markdown/__tests__/inline-selection-fixture.d.ts +0 -13
- package/es-custom/components/markdown/index.d.ts +0 -8
- package/es-custom/components/markdown/index.js +0 -13
- package/es-custom/components/markdown/index.js.map +0 -1
- package/es-custom/components/markdown/src/inline-markdown.d.ts +0 -41
- package/es-custom/components/markdown/src/inline-markdown.js +0 -92
- package/es-custom/components/markdown/src/inline-markdown.js.map +0 -1
- package/es-custom/components/markdown/src/inline-markdown.scss.js +0 -13
- package/es-custom/components/markdown/src/inline-run-projection.scss.js +0 -13
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +0 -395
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +0 -26
- package/es-custom/components/markdown/src/markdown-renderer.js +0 -640
- package/es-custom/components/markdown/src/markdown-renderer.js.map +0 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +0 -357
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +0 -1
- package/es-custom/components/markdown/src/markdown.d.ts +0 -139
- package/es-custom/components/markdown/src/markdown.js +0 -870
- package/es-custom/components/markdown/src/markdown.js.map +0 -1
- package/es-custom/components/markdown/src/markdown.scss.js +0 -13
- package/es-custom/components/markdown/src/markdown.scss.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js.map +0 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +0 -76
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +0 -1
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +0 -5
- package/es-custom/components/markdown/src/utils/html-helpers.js.map +0 -1
- package/es-custom/components/markdown/src/utils/inline-run-projection.d.ts +0 -15
- package/es-custom/components/markdown/src/utils/inline-run-projection.js +0 -196
- package/es-custom/components/markdown/src/utils/inline-run-projection.js.map +0 -1
- package/es-custom/components/markdown/src/utils/inline-validation.js.map +0 -1
- package/es-custom/components/markdown/src/utils/lit-directives.js.map +0 -1
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +0 -238
- package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +0 -1
- package/es-custom/components/markdown/src/utils/plugin-host-container.d.ts +0 -159
- package/es-custom/components/markdown/src/utils/plugin-host-container.js +0 -165
- package/es-custom/components/markdown/src/utils/plugin-host-container.js.map +0 -1
- package/es-custom/components/markdown/src/utils/slot-names.js +0 -83
- package/es-custom/components/markdown/src/utils/slot-names.js.map +0 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js.map +0 -1
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +0 -32
- package/es-custom/components/markdown/src/utils/table-helpers.js +0 -203
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +0 -1
- package/es-custom/components/messages-shell/index.d.ts +0 -11
- package/es-custom/components/messages-shell/index.js +0 -9
- package/es-custom/components/messages-shell/index.js.map +0 -1
- package/es-custom/components/messages-shell/src/messages-shell.d.ts +0 -57
- package/es-custom/components/messages-shell/src/messages-shell.js +0 -141
- package/es-custom/components/messages-shell/src/messages-shell.js.map +0 -1
- package/es-custom/components/messages-shell/src/messages-shell.scss.js +0 -13
- package/es-custom/components/messages-shell/src/messages-shell.scss.js.map +0 -1
- package/es-custom/components/processing/index.d.ts +0 -1
- package/es-custom/components/processing/index.js +0 -9
- package/es-custom/components/processing/index.js.map +0 -1
- package/es-custom/components/processing/src/processing.d.ts +0 -23
- package/es-custom/components/processing/src/processing.js +0 -68
- package/es-custom/components/processing/src/processing.js.map +0 -1
- package/es-custom/components/processing/src/processing.scss.js +0 -13
- package/es-custom/components/processing/src/processing.scss.js.map +0 -1
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +0 -12
- package/es-custom/components/prompt-line/autocomplete/index.js +0 -9
- package/es-custom/components/prompt-line/autocomplete/index.js.map +0 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +0 -212
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +0 -621
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +0 -13
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +0 -1
- package/es-custom/components/prompt-line/index.d.ts +0 -27
- package/es-custom/components/prompt-line/index.js +0 -31
- package/es-custom/components/prompt-line/index.js.map +0 -1
- package/es-custom/components/prompt-line/src/__tests__/wait-for-rich.d.ts +0 -20
- package/es-custom/components/prompt-line/src/autocomplete-controller-element.d.ts +0 -84
- package/es-custom/components/prompt-line/src/autocomplete-controller-element.js +0 -274
- package/es-custom/components/prompt-line/src/autocomplete-controller-element.js.map +0 -1
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +0 -148
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +0 -503
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +0 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +0 -46
- package/es-custom/components/prompt-line/src/error-message.js +0 -134
- package/es-custom/components/prompt-line/src/error-message.js.map +0 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +0 -13
- package/es-custom/components/prompt-line/src/error-message.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +0 -35
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +0 -42
- package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +0 -122
- package/es-custom/components/prompt-line/src/prompt-line-mouse-focus.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +0 -441
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +0 -114
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +0 -267
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +0 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.d.ts +0 -88
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js +0 -388
- package/es-custom/components/prompt-line/src/prompt-line-textarea-runtime.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +0 -197
- package/es-custom/components/prompt-line/src/prompt-line.js +0 -554
- package/es-custom/components/prompt-line/src/prompt-line.js.map +0 -1
- package/es-custom/components/prompt-line/src/prompt-line.scss.js +0 -13
- package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +0 -53
- package/es-custom/components/prompt-line/src/send-control.js +0 -184
- package/es-custom/components/prompt-line/src/send-control.js.map +0 -1
- package/es-custom/components/prompt-line/src/send-control.scss.js +0 -13
- package/es-custom/components/prompt-line/src/send-control.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +0 -42
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +0 -92
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +0 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +0 -13
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +0 -47
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +0 -36
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +0 -112
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +0 -34
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +0 -99
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +0 -17
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +0 -46
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +0 -83
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.d.ts +0 -64
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js +0 -80
- package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +0 -37
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +0 -31
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +0 -58
- package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +0 -87
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +0 -41
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +0 -92
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/resolve-config-items.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/strip-presentation-fields.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +0 -41
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +0 -68
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +0 -229
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +0 -30
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +0 -104
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +0 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +0 -25
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +0 -65
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +0 -1
- package/es-custom/components/prompt-line/src/types.d.ts +0 -100
- package/es-custom/components/prompt-line/src/types.js.map +0 -1
- package/es-custom/components/reasoning-steps/index.d.ts +0 -4
- package/es-custom/components/reasoning-steps/index.js +0 -11
- package/es-custom/components/reasoning-steps/index.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +0 -50
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +0 -294
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +0 -13
- package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +0 -40
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +0 -107
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +0 -13
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +0 -47
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +0 -169
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js +0 -13
- package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js.map +0 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js.map +0 -1
- package/es-custom/components/shared/media-utils/script-loader.js.map +0 -1
- package/es-custom/components/table/index.d.ts +0 -3
- package/es-custom/components/table/index.js +0 -9
- package/es-custom/components/table/index.js.map +0 -1
- package/es-custom/components/table/src/table-loader.js.map +0 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +0 -27
- package/es-custom/components/table/src/table-pagination.template.js +0 -55
- package/es-custom/components/table/src/table-pagination.template.js.map +0 -1
- package/es-custom/components/table/src/table-skeleton.template.d.ts +0 -6
- package/es-custom/components/table/src/table-skeleton.template.js +0 -35
- package/es-custom/components/table/src/table-skeleton.template.js.map +0 -1
- package/es-custom/components/table/src/table.d.ts +0 -210
- package/es-custom/components/table/src/table.js +0 -641
- package/es-custom/components/table/src/table.js.map +0 -1
- package/es-custom/components/table/src/table.scss.js +0 -13
- package/es-custom/components/table/src/table.scss.js.map +0 -1
- package/es-custom/components/table/src/table.template.d.ts +0 -10
- package/es-custom/components/table/src/table.template.js +0 -96
- package/es-custom/components/table/src/table.template.js.map +0 -1
- package/es-custom/components/toolbar/index.d.ts +0 -1
- package/es-custom/components/toolbar/index.js +0 -9
- package/es-custom/components/toolbar/index.js.map +0 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +0 -85
- package/es-custom/components/toolbar/src/toolbar.js +0 -386
- package/es-custom/components/toolbar/src/toolbar.js.map +0 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +0 -13
- package/es-custom/components/toolbar/src/toolbar.scss.js.map +0 -1
- package/es-custom/components/truncated-text/index.d.ts +0 -9
- package/es-custom/components/truncated-text/index.js +0 -9
- package/es-custom/components/truncated-text/index.js.map +0 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +0 -84
- package/es-custom/components/truncated-text/src/truncated-text.js +0 -295
- package/es-custom/components/truncated-text/src/truncated-text.js.map +0 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +0 -13
- package/es-custom/components/truncated-text/src/truncated-text.scss.js.map +0 -1
- package/es-custom/components/video-player/index.d.ts +0 -10
- package/es-custom/components/video-player/index.js +0 -9
- package/es-custom/components/video-player/index.js.map +0 -1
- package/es-custom/components/video-player/src/providers/base-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +0 -192
- package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/native-video-provider.js +0 -158
- package/es-custom/components/video-player/src/providers/native-video-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +0 -194
- package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +0 -1
- package/es-custom/components/video-player/src/providers/youtube-provider.js +0 -215
- package/es-custom/components/video-player/src/providers/youtube-provider.js.map +0 -1
- package/es-custom/components/video-player/src/utils/url-detector.js.map +0 -1
- package/es-custom/components/video-player/src/video-player.d.ts +0 -145
- package/es-custom/components/video-player/src/video-player.js +0 -419
- package/es-custom/components/video-player/src/video-player.js.map +0 -1
- package/es-custom/components/video-player/src/video-player.scss.js +0 -13
- package/es-custom/components/video-player/src/video-player.scss.js.map +0 -1
- package/es-custom/components/workspace-shell/index.d.ts +0 -4
- package/es-custom/components/workspace-shell/index.js +0 -12
- package/es-custom/components/workspace-shell/index.js.map +0 -1
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +0 -17
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +0 -52
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +0 -38
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +0 -150
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +0 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +0 -38
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +0 -150
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +0 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +0 -30
- package/es-custom/components/workspace-shell/src/workspace-shell.js +0 -133
- package/es-custom/components/workspace-shell/src/workspace-shell.js.map +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +0 -13
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js.map +0 -1
- package/es-custom/globals/decorators/carbon-element.d.ts +0 -37
- package/es-custom/globals/decorators/carbon-element.js +0 -67
- package/es-custom/globals/decorators/carbon-element.js.map +0 -1
- package/es-custom/globals/decorators/index.d.ts +0 -1
- package/es-custom/globals/decorators/index.js +0 -9
- package/es-custom/globals/decorators/index.js.map +0 -1
- package/es-custom/globals/scss/common.scss.js +0 -13
- package/es-custom/globals/scss/common.scss.js.map +0 -1
- package/es-custom/globals/settings.d.ts +0 -2
- package/es-custom/globals/settings.js +0 -20
- package/es-custom/globals/settings.js.map +0 -1
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +0 -118
- package/es-custom/globals/utils/aria-announcer-manager.js +0 -170
- package/es-custom/globals/utils/aria-announcer-manager.js.map +0 -1
- package/es-custom/globals/utils/browser-utils.d.ts +0 -8
- package/es-custom/globals/utils/browser-utils.js +0 -37
- package/es-custom/globals/utils/browser-utils.js.map +0 -1
- package/es-custom/globals/utils/csv.d.ts +0 -7
- package/es-custom/globals/utils/csv.js +0 -37
- package/es-custom/globals/utils/csv.js.map +0 -1
- package/es-custom/globals/utils/dom-utils.d.ts +0 -6
- package/es-custom/globals/utils/dom-utils.js +0 -39
- package/es-custom/globals/utils/dom-utils.js.map +0 -1
- package/es-custom/globals/utils/focus-utils.d.ts +0 -69
- package/es-custom/globals/utils/focus-utils.js +0 -202
- package/es-custom/globals/utils/focus-utils.js.map +0 -1
- package/es-custom/globals/utils/iconTransform.d.ts +0 -51
- package/es-custom/globals/utils/iconTransform.js +0 -196
- package/es-custom/globals/utils/iconTransform.js.map +0 -1
- package/es-custom/globals/utils/rtl-utils.d.ts +0 -7
- package/es-custom/globals/utils/rtl-utils.js +0 -30
- package/es-custom/globals/utils/rtl-utils.js.map +0 -1
- package/es-custom/globals/utils/uuid.d.ts +0 -5
- package/es-custom/globals/utils/uuid.js +0 -32
- package/es-custom/globals/utils/uuid.js.map +0 -1
- package/es-custom/react/ai-label-action-button.d.ts +0 -3
- package/es-custom/react/ai-label-action-button.js +0 -27
- package/es-custom/react/ai-label-action-button.js.map +0 -1
- package/es-custom/react/audio-player.d.ts +0 -12
- package/es-custom/react/audio-player.js +0 -34
- package/es-custom/react/audio-player.js.map +0 -1
- package/es-custom/react/autocomplete.d.ts +0 -11
- package/es-custom/react/autocomplete.js +0 -36
- package/es-custom/react/autocomplete.js.map +0 -1
- package/es-custom/react/card.d.ts +0 -6
- package/es-custom/react/card.js +0 -43
- package/es-custom/react/card.js.map +0 -1
- package/es-custom/react/carousel.d.ts +0 -4
- package/es-custom/react/carousel.js +0 -31
- package/es-custom/react/carousel.js.map +0 -1
- package/es-custom/react/chain-of-thought-step.d.ts +0 -3
- package/es-custom/react/chain-of-thought-step.js +0 -32
- package/es-custom/react/chain-of-thought-step.js.map +0 -1
- package/es-custom/react/chain-of-thought-toggle.d.ts +0 -5
- package/es-custom/react/chain-of-thought-toggle.js +0 -31
- package/es-custom/react/chain-of-thought-toggle.js.map +0 -1
- package/es-custom/react/chain-of-thought.d.ts +0 -6
- package/es-custom/react/chain-of-thought.js +0 -33
- package/es-custom/react/chain-of-thought.js.map +0 -1
- package/es-custom/react/chat-button-skeleton.d.ts +0 -11
- package/es-custom/react/chat-button-skeleton.js +0 -28
- package/es-custom/react/chat-button-skeleton.js.map +0 -1
- package/es-custom/react/chat-button.d.ts +0 -13
- package/es-custom/react/chat-button.js +0 -30
- package/es-custom/react/chat-button.js.map +0 -1
- package/es-custom/react/chat-header.d.ts +0 -73
- package/es-custom/react/chat-header.js +0 -55
- package/es-custom/react/chat-header.js.map +0 -1
- package/es-custom/react/chat-shell.d.ts +0 -11
- package/es-custom/react/chat-shell.js +0 -31
- package/es-custom/react/chat-shell.js.map +0 -1
- package/es-custom/react/code-snippet.d.ts +0 -37
- package/es-custom/react/code-snippet.js +0 -87
- package/es-custom/react/code-snippet.js.map +0 -1
- package/es-custom/react/conversational-search-shell.d.ts +0 -12
- package/es-custom/react/conversational-search-shell.js +0 -32
- package/es-custom/react/conversational-search-shell.js.map +0 -1
- package/es-custom/react/error-message.d.ts +0 -11
- package/es-custom/react/error-message.js +0 -28
- package/es-custom/react/error-message.js.map +0 -1
- package/es-custom/react/feedback-buttons.d.ts +0 -3
- package/es-custom/react/feedback-buttons.js +0 -31
- package/es-custom/react/feedback-buttons.js.map +0 -1
- package/es-custom/react/feedback.d.ts +0 -5
- package/es-custom/react/feedback.js +0 -32
- package/es-custom/react/feedback.js.map +0 -1
- package/es-custom/react/file-upload-item.d.ts +0 -11
- package/es-custom/react/file-upload-item.js +0 -31
- package/es-custom/react/file-upload-item.js.map +0 -1
- package/es-custom/react/file-uploads.d.ts +0 -11
- package/es-custom/react/file-uploads.js +0 -31
- package/es-custom/react/file-uploads.js.map +0 -1
- package/es-custom/react/history/history-content.d.ts +0 -3
- package/es-custom/react/history/history-content.js +0 -28
- package/es-custom/react/history/history-content.js.map +0 -1
- package/es-custom/react/history/history-delete-panel.d.ts +0 -3
- package/es-custom/react/history/history-delete-panel.js +0 -32
- package/es-custom/react/history/history-delete-panel.js.map +0 -1
- package/es-custom/react/history/history-header.d.ts +0 -3
- package/es-custom/react/history/history-header.js +0 -31
- package/es-custom/react/history/history-header.js.map +0 -1
- package/es-custom/react/history/history-loading.d.ts +0 -3
- package/es-custom/react/history/history-loading.js +0 -28
- package/es-custom/react/history/history-loading.js.map +0 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +0 -3
- package/es-custom/react/history/history-panel-item-input.js +0 -33
- package/es-custom/react/history/history-panel-item-input.js.map +0 -1
- package/es-custom/react/history/history-panel-item.d.ts +0 -3
- package/es-custom/react/history/history-panel-item.js +0 -35
- package/es-custom/react/history/history-panel-item.js.map +0 -1
- package/es-custom/react/history/history-panel-items.d.ts +0 -3
- package/es-custom/react/history/history-panel-items.js +0 -28
- package/es-custom/react/history/history-panel-items.js.map +0 -1
- package/es-custom/react/history/history-panel-menu.d.ts +0 -3
- package/es-custom/react/history/history-panel-menu.js +0 -28
- package/es-custom/react/history/history-panel-menu.js.map +0 -1
- package/es-custom/react/history/history-panel.d.ts +0 -3
- package/es-custom/react/history/history-panel.js +0 -28
- package/es-custom/react/history/history-panel.js.map +0 -1
- package/es-custom/react/history/history-search-item.d.ts +0 -3
- package/es-custom/react/history/history-search-item.js +0 -31
- package/es-custom/react/history/history-search-item.js.map +0 -1
- package/es-custom/react/history/history-shell.d.ts +0 -3
- package/es-custom/react/history/history-shell.js +0 -28
- package/es-custom/react/history/history-shell.js.map +0 -1
- package/es-custom/react/history/history-toolbar.d.ts +0 -3
- package/es-custom/react/history/history-toolbar.js +0 -32
- package/es-custom/react/history/history-toolbar.js.map +0 -1
- package/es-custom/react/history/index.d.ts +0 -12
- package/es-custom/react/history/index.js +0 -20
- package/es-custom/react/history/index.js.map +0 -1
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +0 -51
- package/es-custom/react/hooks/useChatAutocomplete.js +0 -254
- package/es-custom/react/hooks/useChatAutocomplete.js.map +0 -1
- package/es-custom/react/input-send-control.d.ts +0 -11
- package/es-custom/react/input-send-control.js +0 -32
- package/es-custom/react/input-send-control.js.map +0 -1
- package/es-custom/react/launcher.d.ts +0 -11
- package/es-custom/react/launcher.js +0 -31
- package/es-custom/react/launcher.js.map +0 -1
- package/es-custom/react/markdown.d.ts +0 -56
- package/es-custom/react/markdown.js +0 -163
- package/es-custom/react/markdown.js.map +0 -1
- package/es-custom/react/messages-shell.d.ts +0 -3
- package/es-custom/react/messages-shell.js +0 -32
- package/es-custom/react/messages-shell.js.map +0 -1
- package/es-custom/react/panel.d.ts +0 -3
- package/es-custom/react/panel.js +0 -35
- package/es-custom/react/panel.js.map +0 -1
- package/es-custom/react/processing.d.ts +0 -3
- package/es-custom/react/processing.js +0 -28
- package/es-custom/react/processing.js.map +0 -1
- package/es-custom/react/prompt-line-shell.d.ts +0 -18
- package/es-custom/react/prompt-line-shell.js +0 -36
- package/es-custom/react/prompt-line-shell.js.map +0 -1
- package/es-custom/react/prompt-line.d.ts +0 -26
- package/es-custom/react/prompt-line.js +0 -53
- package/es-custom/react/prompt-line.js.map +0 -1
- package/es-custom/react/reasoning-step.d.ts +0 -3
- package/es-custom/react/reasoning-step.js +0 -32
- package/es-custom/react/reasoning-step.js.map +0 -1
- package/es-custom/react/reasoning-steps-toggle.d.ts +0 -5
- package/es-custom/react/reasoning-steps-toggle.js +0 -31
- package/es-custom/react/reasoning-steps-toggle.js.map +0 -1
- package/es-custom/react/reasoning-steps.d.ts +0 -3
- package/es-custom/react/reasoning-steps.js +0 -28
- package/es-custom/react/reasoning-steps.js.map +0 -1
- package/es-custom/react/stop-streaming-button.d.ts +0 -11
- package/es-custom/react/stop-streaming-button.js +0 -28
- package/es-custom/react/stop-streaming-button.js.map +0 -1
- package/es-custom/react/table.d.ts +0 -4
- package/es-custom/react/table.js +0 -28
- package/es-custom/react/table.js.map +0 -1
- package/es-custom/react/tool-call-data.d.ts +0 -3
- package/es-custom/react/tool-call-data.js +0 -28
- package/es-custom/react/tool-call-data.js.map +0 -1
- package/es-custom/react/toolbar.d.ts +0 -20
- package/es-custom/react/toolbar.js +0 -80
- package/es-custom/react/toolbar.js.map +0 -1
- package/es-custom/react/transcript.d.ts +0 -14
- package/es-custom/react/transcript.js +0 -31
- package/es-custom/react/transcript.js.map +0 -1
- package/es-custom/react/truncated-text.d.ts +0 -12
- package/es-custom/react/truncated-text.js +0 -28
- package/es-custom/react/truncated-text.js.map +0 -1
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +0 -21
- package/es-custom/react/utils/transformSuggestionConfig.js +0 -67
- package/es-custom/react/utils/transformSuggestionConfig.js.map +0 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +0 -18
- package/es-custom/react/utils/withWebComponentBridge.js +0 -143
- package/es-custom/react/utils/withWebComponentBridge.js.map +0 -1
- package/es-custom/react/video-player.d.ts +0 -12
- package/es-custom/react/video-player.js +0 -34
- package/es-custom/react/video-player.js.map +0 -1
- package/es-custom/react/workspace-shell.d.ts +0 -7
- package/es-custom/react/workspace-shell.js +0 -49
- package/es-custom/react/workspace-shell.js.map +0 -1
- package/es-custom/testing/PageObjectId.d.ts +0 -18
- package/es-custom/testing/PageObjectId.js +0 -37
- package/es-custom/testing/PageObjectId.js.map +0 -1
- package/es-custom/testing/load-all-lazy-deps.d.ts +0 -9
- package/es-custom/testing/load-all-lazy-deps.js +0 -30
- package/es-custom/testing/load-all-lazy-deps.js.map +0 -1
- package/es-custom/typings/overflow-menu.d.ts +0 -34
- package/es-custom/typings/overflow-menu.js +0 -8
- package/es-custom/typings/overflow-menu.js.map +0 -1
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/base-provider.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/base-provider.js +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/native-audio-provider.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/native-audio-provider.js +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/providers/soundcloud-provider.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/utils/url-detector.d.ts +0 -0
- /package/{es-custom/components/audio-player/src → es/components/aichat-audio-player}/utils/url-detector.js +0 -0
- /package/{es-custom/components/chat-button → es/components/aichat-button}/defs.d.ts +0 -0
- /package/{es-custom/components/chat-button → es/components/aichat-button}/defs.js +0 -0
- /package/{es-custom/components/chain-of-thought → es/components/aichat-chain-of-thought}/defs.d.ts +0 -0
- /package/{es-custom/components/chain-of-thought → es/components/aichat-chain-of-thought}/defs.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/base-setup.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/base-setup.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-loader.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-loader.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-runtime.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-runtime.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/codemirror-runtime.js.map +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/content-sync.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/content-sync.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/detect-language.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/detect-language.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/editor-manager.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/editor-manager.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-controller.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-controller.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-data.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-data.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/language-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/marker-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/marker-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/theme.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/codemirror/theme.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/dom-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/dom-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/formatters.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/layout-utils.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/layout-utils.js +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/streaming-manager.d.ts +0 -0
- /package/{es-custom/components/code-snippet/src → es/components/aichat-code-snippet}/streaming-manager.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-file-uploads}/file-type-icon.d.ts +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-file-uploads}/file-type-icon.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-file-uploads}/types.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-file-uploads}/types.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-file-uploads}/types.js.map +0 -0
- /package/{es-custom/components/chat-history/src → es/components/aichat-history}/chat-history.scss.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/inline-markdown.scss.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/inline-run-projection.scss.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/markdown-renderer-types.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/markdown-renderer-types.js.map +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/markdown-token-tree.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-attrs.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-attrs.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-highlight.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-highlight.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/plugins/markdown-it-task-lists.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/html-helpers.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/inline-validation.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/inline-validation.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/lit-directives.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/lit-directives.js +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/plugin-fallback.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/slot-names.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/streaming-table.d.ts +0 -0
- /package/{es-custom/components/markdown/src → es/components/aichat-markdown}/utils/streaming-table.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-controller.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-controller.js.map +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-mouse-focus.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-mouse-focus.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-rich-loader.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-rich-loader.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/prompt-line-rich-runtime.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/build-extensions.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/carbon-mention.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/carbon-mention.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/editor-styles.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/index.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/index.js.map +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/json-utils.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/json-utils.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/origin-meta.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/origin-meta.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/plain-text-paste.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/plain-text-paste.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/render-token-chip.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/resolve-config-items.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/resolve-config-items.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/strip-presentation-fields.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/strip-presentation-fields.js +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/token-node-view.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/tiptap/token-node-view.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-prompt-line/tiptap}/types.js +0 -0
- /package/{es-custom/components/file-uploads/src → es/components/aichat-prompt-line/tiptap}/types.js.map +0 -0
- /package/{es-custom/components/prompt-line/src → es/components/aichat-prompt-line}/types.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/corner-manager.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/initialization-manager.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/initialization-manager.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/resize-observer-manager.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/resize-observer-manager.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/slot-observer.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/slot-observer.js +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/types.d.ts +0 -0
- /package/{es-custom/components/prompt-line/src/tiptap → es/components/aichat-shell}/types.js +0 -0
- /package/{es-custom/components/prompt-line/src/tiptap → es/components/aichat-shell}/types.js.map +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/workspace-manager-utils.d.ts +0 -0
- /package/{es-custom/components/chat-shell/src → es/components/aichat-shell}/workspace-manager-utils.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-loader.d.ts +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-loader.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-runtime.d.ts +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-runtime.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/table-runtime.js.map +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/types.d.ts +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/types.js +0 -0
- /package/{es-custom/components/table/src → es/components/aichat-table}/types.js.map +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/base-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/base-provider.js +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/kaltura-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/native-video-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/vimeo-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/providers/youtube-provider.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/utils/url-detector.d.ts +0 -0
- /package/{es-custom/components/video-player/src → es/components/aichat-video-player}/utils/url-detector.js +0 -0
- /package/{es-custom/components/workspace-shell/src → es/components/aichat-workspace-shell}/header-collapsible-manager.d.ts +0 -0
- /package/{es-custom/components/workspace-shell/src → es/components/aichat-workspace-shell}/header-collapsible-manager.js +0 -0
- /package/{es-custom/components/audio-player → es/components/message-byline}/index.js.map +0 -0
- /package/{es-custom/components/chat-button → es/components/message-item-shell}/index.js.map +0 -0
- /package/{es-custom/components/code-snippet → es/components/user-avatar}/index.js.map +0 -0
- /package/{es-custom/components/feedback → es/components/user-message-content}/index.js.map +0 -0
- /package/{es-custom/components/shared → es/globals/utils}/dynamic-css-var-sheet.d.ts +0 -0
- /package/{es-custom/components/shared → es/globals/utils}/dynamic-css-var-sheet.js +0 -0
- /package/{es-custom/components/shared/media-utils → es/globals/utils}/script-loader.d.ts +0 -0
- /package/{es-custom/components/shared/media-utils → es/globals/utils}/script-loader.js +0 -0
|
@@ -0,0 +1,1319 @@
|
|
|
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 throttle from 'lodash-es/throttle.js';
|
|
9
|
+
import prefix from '../../globals/settings.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
|
+
const STREAM_END_NEAR_PIN_THRESHOLD_PX = 60;
|
|
20
|
+
const SCROLL_DOWN_THRESHOLD_PX = 60;
|
|
21
|
+
/**
|
|
22
|
+
* How far above the pin the user must scroll before we treat it as a deliberate
|
|
23
|
+
* "scroll away" that disengages auto-scroll. Matches the streaming restore threshold.
|
|
24
|
+
*/
|
|
25
|
+
const USER_SCROLL_AWAY_THRESHOLD_PX = 50;
|
|
26
|
+
/**
|
|
27
|
+
* Window resize handler throttle - recalculates layout when browser window is resized.
|
|
28
|
+
* User-initiated window resizing doesn't need sub-frame precision.
|
|
29
|
+
*/
|
|
30
|
+
const WINDOW_RESIZE_THROTTLE_MS = 200;
|
|
31
|
+
/**
|
|
32
|
+
* General auto-scroll operations throttle - triggered by message updates.
|
|
33
|
+
* Balance between responsiveness and avoiding excessive scroll calculations.
|
|
34
|
+
*/
|
|
35
|
+
const AUTO_SCROLL_THROTTLE_MS = 150;
|
|
36
|
+
/**
|
|
37
|
+
* When we auto-scroll to a message, we want to scroll a bit more than necessary because messages have a lot of
|
|
38
|
+
* padding on the top that we want to cut off when scrolling. This is the extra amount we scroll by.
|
|
39
|
+
* Note: A negative value will leave more of the previous message visible above the target message.
|
|
40
|
+
* For example, -60 will show approximately 60px of the previous conversation above the new message.
|
|
41
|
+
*/
|
|
42
|
+
const AUTO_SCROLL_EXTRA = -60;
|
|
43
|
+
/**
|
|
44
|
+
* The visible portion (in pixels) to show at the bottom of a tall message when auto-scrolling.
|
|
45
|
+
* Ensures the response isn't completely hidden when the request message is very tall.
|
|
46
|
+
*/
|
|
47
|
+
const VISIBLE_BOTTOM_PORTION_PX = 100;
|
|
48
|
+
/**
|
|
49
|
+
* The threshold ratio for determining if a message is "very tall".
|
|
50
|
+
* A message is considered very tall if its height exceeds this ratio of the scroller height.
|
|
51
|
+
*/
|
|
52
|
+
const TALL_MESSAGE_THRESHOLD_RATIO = 0.25; // 1/4
|
|
53
|
+
// ============================================================================
|
|
54
|
+
// Small DOM helpers (copied from ai-chat `domUtils` to keep the import boundary
|
|
55
|
+
// clean — these are trivial and framework-agnostic).
|
|
56
|
+
// ============================================================================
|
|
57
|
+
/**
|
|
58
|
+
* Sets the scroll position on the given scrollable element to the given top and left values.
|
|
59
|
+
*/
|
|
60
|
+
function doScrollElement(element, scrollTop, scrollLeft, animate = false) {
|
|
61
|
+
if (element) {
|
|
62
|
+
if (animate && element.scroll) {
|
|
63
|
+
element.scroll({
|
|
64
|
+
top: scrollTop,
|
|
65
|
+
left: scrollLeft,
|
|
66
|
+
behavior: 'smooth',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
element.scrollTop = scrollTop;
|
|
71
|
+
element.scrollLeft = scrollLeft;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns the "scrollBottom" value for the given element. This is similar to "scrollTop" except that it represents
|
|
77
|
+
* the distance the element has been scrolled from the bottom.
|
|
78
|
+
*/
|
|
79
|
+
function getScrollBottom(element) {
|
|
80
|
+
if (element) {
|
|
81
|
+
return element.scrollHeight - element.offsetHeight - element.scrollTop;
|
|
82
|
+
}
|
|
83
|
+
return 0;
|
|
84
|
+
}
|
|
85
|
+
// ============================================================================
|
|
86
|
+
// Helper Functions
|
|
87
|
+
// ============================================================================
|
|
88
|
+
/**
|
|
89
|
+
* Iterates backwards through `messages` to find the last row that qualifies as a
|
|
90
|
+
* scroll target (`isPinnable`). Returns the matching message, or null if none found.
|
|
91
|
+
*
|
|
92
|
+
* Index 0 is never considered a pin target, which avoids pinning to the very first
|
|
93
|
+
* entry on initial render.
|
|
94
|
+
*/
|
|
95
|
+
function findLastPinnable(messages) {
|
|
96
|
+
let messageIndex = messages.length - 1;
|
|
97
|
+
// Index 0 is not a pin target — this avoids pinning to the very first entry on
|
|
98
|
+
// initial render.
|
|
99
|
+
while (messageIndex >= 1) {
|
|
100
|
+
const message = messages[messageIndex];
|
|
101
|
+
if (message?.isPinnable) {
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
messageIndex--;
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Calculates the base scroll position needed to place the target message at the top of the
|
|
110
|
+
* visible scroll area. Adds `AUTO_SCROLL_EXTRA` padding to cut the message's top padding.
|
|
111
|
+
*/
|
|
112
|
+
function calculateBaseScrollTop(targetRect, scrollerRect, currentScrollTop) {
|
|
113
|
+
const targetOffsetWithinScroller = targetRect.top - scrollerRect.top + currentScrollTop;
|
|
114
|
+
return Math.max(0, Math.floor(targetOffsetWithinScroller + AUTO_SCROLL_EXTRA));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Adjusts the scroll position for very tall messages to ensure the response below remains
|
|
118
|
+
* visible. If the target message exceeds 25% of the scroller height, we scroll past most of
|
|
119
|
+
* it, leaving only `VISIBLE_BOTTOM_PORTION_PX` visible at the bottom.
|
|
120
|
+
*/
|
|
121
|
+
function adjustScrollTopForTallMessage(baseScrollTop, targetHeight, scrollerHeight) {
|
|
122
|
+
const isVeryTall = targetHeight > scrollerHeight * TALL_MESSAGE_THRESHOLD_RATIO;
|
|
123
|
+
if (!isVeryTall) {
|
|
124
|
+
return baseScrollTop;
|
|
125
|
+
}
|
|
126
|
+
const tallAdjustment = Math.max(0, targetHeight - VISIBLE_BOTTOM_PORTION_PX);
|
|
127
|
+
return baseScrollTop + tallAdjustment;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Calculates how tall the spacer div at the bottom of the message list needs to be so that
|
|
131
|
+
* the scroll container can actually reach `finalScrollTop`. Without extra space at the bottom,
|
|
132
|
+
* the browser will cap `scrollTop` at `scrollHeight - clientHeight`.
|
|
133
|
+
*/
|
|
134
|
+
function calculateSpacerDeficit(spacerElem, scrollElement, scrollerRect, finalScrollTop) {
|
|
135
|
+
const spacerRect = spacerElem.getBoundingClientRect();
|
|
136
|
+
const spacerOffset = spacerRect.top - scrollerRect.top + scrollElement.scrollTop;
|
|
137
|
+
const visibleBottom = finalScrollTop + scrollElement.clientHeight;
|
|
138
|
+
return Math.max(0, Math.ceil(visibleBottom - spacerOffset));
|
|
139
|
+
}
|
|
140
|
+
function hasActiveStreaming(messages) {
|
|
141
|
+
return messages.some((message) => message.isStreaming);
|
|
142
|
+
}
|
|
143
|
+
function getMessageArrayChangeFlags({ oldItems, newItems, }) {
|
|
144
|
+
return {
|
|
145
|
+
countChanged: newItems.length !== oldItems.length,
|
|
146
|
+
itemsChanged: newItems !== oldItems,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* True when every previously rendered message is gone — a restart or other full clear. A
|
|
151
|
+
* replacement list (e.g. a welcome message added in the same frame) still counts, so this does
|
|
152
|
+
* not depend on the host ever committing an empty list. Compares full-message ids, since row
|
|
153
|
+
* ids can be regenerated for a message that is still present.
|
|
154
|
+
*/
|
|
155
|
+
function didClearAllMessages({ oldItems, newItems, }) {
|
|
156
|
+
if (!oldItems.length) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
const oldIds = new Set(oldItems.map((message) => message.messageId));
|
|
160
|
+
return !newItems.some((message) => oldIds.has(message.messageId));
|
|
161
|
+
}
|
|
162
|
+
function getStreamingTransition({ oldItems, newItems, }) {
|
|
163
|
+
const wasStreaming = hasActiveStreaming(oldItems);
|
|
164
|
+
const isCurrentlyStreaming = hasActiveStreaming(newItems);
|
|
165
|
+
return {
|
|
166
|
+
enteredStreaming: !wasStreaming && isCurrentlyStreaming,
|
|
167
|
+
exitedStreaming: wasStreaming && !isCurrentlyStreaming,
|
|
168
|
+
isCurrentlyStreaming,
|
|
169
|
+
wasStreaming,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function getAnchoringRestoreTarget({ currentScrollTop, snapshot, }) {
|
|
173
|
+
if (snapshot === null || currentScrollTop >= snapshot) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
return snapshot;
|
|
177
|
+
}
|
|
178
|
+
function resolveStreamEndAction({ nearPinThresholdPx, pinnedScrollTop, scrollTop, maxScrollTop, }) {
|
|
179
|
+
// Content shrank and the browser capped scrollTop below the pin — this is
|
|
180
|
+
// browser-initiated, not a user scroll, so we must still re-pin. Mirrors the
|
|
181
|
+
// `wasBrowserCapped` exception in the streaming ResizeObserver guard.
|
|
182
|
+
const wasBrowserCapped = maxScrollTop !== undefined &&
|
|
183
|
+
scrollTop >= maxScrollTop - 2 &&
|
|
184
|
+
scrollTop < pinnedScrollTop;
|
|
185
|
+
// Symmetric distance check: a manual scroll in EITHER direction past the
|
|
186
|
+
// threshold means the user moved away from the pin, so we preserve their
|
|
187
|
+
// position instead of yanking them back. A one-directional check here would
|
|
188
|
+
// miss upward scrolls and re-pin over the top of them.
|
|
189
|
+
const scrolledAway = Math.abs(scrollTop - pinnedScrollTop) > nearPinThresholdPx;
|
|
190
|
+
if (!scrolledAway || wasBrowserCapped) {
|
|
191
|
+
return 're_pin_and_scroll';
|
|
192
|
+
}
|
|
193
|
+
return 'recalculate_and_preserve_scroll';
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Decides whether a scroll position represents a DELIBERATE user scroll away from the pin, as
|
|
197
|
+
* opposed to a browser-initiated cap (content shrank, so the browser lowered scrollTop to the
|
|
198
|
+
* max reachable value). Both lower scrollTop below the pin, but a cap parks the user exactly at
|
|
199
|
+
* `maxScrollTop` with no room below, whereas a deliberate scroll-up leaves room to scroll
|
|
200
|
+
* further down. Evaluated from a settled `scroll` event, this latches user intent so that a
|
|
201
|
+
* later mid-animation `maxScrollTop` dip (a reasoning step collapsing) cannot be misread as the
|
|
202
|
+
* user moving.
|
|
203
|
+
*
|
|
204
|
+
* @returns `true` to disengage auto-scroll (user parked above the pin with room below),
|
|
205
|
+
* `false` to (re)engage (user is at/below the pin, i.e. following), or `null` when the position
|
|
206
|
+
* is ambiguous (e.g. pinned to the bottom by a cap) and the caller should leave the flag as-is.
|
|
207
|
+
*/
|
|
208
|
+
function resolveUserScrollAway({ scrollTop, pinnedScrollTop, maxScrollTop, thresholdPx, }) {
|
|
209
|
+
const abovePin = scrollTop < pinnedScrollTop - thresholdPx;
|
|
210
|
+
const roomBelow = scrollTop < maxScrollTop - thresholdPx;
|
|
211
|
+
if (abovePin && roomBelow) {
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
if (scrollTop >= pinnedScrollTop - thresholdPx) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
function hasMessagesOutOfView({ clientHeight, domSpacerHeight, scrollHeight, scrollTop, thresholdPx, }) {
|
|
220
|
+
const effectiveScrollHeight = scrollHeight - domSpacerHeight;
|
|
221
|
+
const remainingPixelsToScroll = effectiveScrollHeight - scrollTop - clientHeight;
|
|
222
|
+
return remainingPixelsToScroll > thresholdPx;
|
|
223
|
+
}
|
|
224
|
+
function resolvePublicSpacerReconciliationAction({ pinnedMessageId, }) {
|
|
225
|
+
if (!pinnedMessageId) {
|
|
226
|
+
return { type: 'noop' };
|
|
227
|
+
}
|
|
228
|
+
return { type: 'recalculate_spacer_preserve_scroll' };
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Chooses the next auto-scroll action with strict precedence:
|
|
232
|
+
* 1) explicit API override (`scrollToTop`, `scrollToBottom`)
|
|
233
|
+
* 2) empty-list reset
|
|
234
|
+
* 3) pin a newly qualifying message
|
|
235
|
+
* 4) recalculate spacer for the existing pin
|
|
236
|
+
* 5) no-op
|
|
237
|
+
*
|
|
238
|
+
* This function only decides; it does not mutate scroll/spacer state.
|
|
239
|
+
*/
|
|
240
|
+
function resolveAutoScrollAction({ messages, options, pinnedMessageId, scrollElement, }) {
|
|
241
|
+
const { scrollToBottom, scrollToTop } = options;
|
|
242
|
+
if (scrollToTop !== undefined) {
|
|
243
|
+
return { type: 'scroll_to_top', scrollTop: scrollToTop };
|
|
244
|
+
}
|
|
245
|
+
if (scrollToBottom !== undefined) {
|
|
246
|
+
return {
|
|
247
|
+
type: 'scroll_to_bottom',
|
|
248
|
+
scrollTop: scrollElement.scrollHeight -
|
|
249
|
+
scrollElement.offsetHeight -
|
|
250
|
+
scrollToBottom,
|
|
251
|
+
preferAnimate: options.preferAnimate ?? false,
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
if (!messages.length) {
|
|
255
|
+
// Without messages, clear stale browser-restored positions.
|
|
256
|
+
return { type: 'reset_to_top' };
|
|
257
|
+
}
|
|
258
|
+
const candidate = findLastPinnable(messages);
|
|
259
|
+
// `candidate.element` may be null when the row hasn't mounted yet — a missing
|
|
260
|
+
// element means there is nothing to pin.
|
|
261
|
+
if (candidate?.element && candidate.id !== pinnedMessageId) {
|
|
262
|
+
return { type: 'pin_message', message: candidate };
|
|
263
|
+
}
|
|
264
|
+
if (pinnedMessageId) {
|
|
265
|
+
// Keep the current pin stable when layout changes but target has not changed.
|
|
266
|
+
return { type: 'recalculate_spacer' };
|
|
267
|
+
}
|
|
268
|
+
// Nothing to pin and no pinned target to maintain.
|
|
269
|
+
return { type: 'noop' };
|
|
270
|
+
}
|
|
271
|
+
function calculatePinnedScrollTop(targetElement, scrollElement) {
|
|
272
|
+
const targetRect = targetElement.getBoundingClientRect();
|
|
273
|
+
const scrollerRect = scrollElement.getBoundingClientRect();
|
|
274
|
+
const baseScrollTop = calculateBaseScrollTop(targetRect, scrollerRect, scrollElement.scrollTop);
|
|
275
|
+
return adjustScrollTopForTallMessage(baseScrollTop, targetRect.height, scrollerRect.height);
|
|
276
|
+
}
|
|
277
|
+
function pinMessageAndScroll({ message, scrollElement, spacerElem, setSpacerHeight, }) {
|
|
278
|
+
const targetElem = message?.element;
|
|
279
|
+
if (!spacerElem || !targetElem) {
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
const scrollTop = calculatePinnedScrollTop(targetElem, scrollElement);
|
|
283
|
+
const scrollerRect = scrollElement.getBoundingClientRect();
|
|
284
|
+
const deficit = calculateSpacerDeficit(spacerElem, scrollElement, scrollerRect, scrollTop);
|
|
285
|
+
// Spacer must be written before setting scrollTop so the target position is reachable.
|
|
286
|
+
setSpacerHeight(deficit);
|
|
287
|
+
scrollElement.scrollTop = scrollTop;
|
|
288
|
+
return {
|
|
289
|
+
currentSpacerHeight: deficit,
|
|
290
|
+
lastScrollHeight: scrollElement.scrollHeight,
|
|
291
|
+
pinnedMessageId: message.id,
|
|
292
|
+
scrollTop,
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
function recalculatePinnedMessageSpacer({ pinnedElement, scrollElement, spacerElem, setSpacerHeight, }) {
|
|
296
|
+
const targetElem = pinnedElement;
|
|
297
|
+
if (!spacerElem || !targetElem) {
|
|
298
|
+
return null;
|
|
299
|
+
}
|
|
300
|
+
// SIMPLIFIED APPROACH: During resize events (e.g., reasoning steps closing), we don't
|
|
301
|
+
// need to recalculate where the message SHOULD be - we just need to preserve the
|
|
302
|
+
// CURRENT scroll position. The complex calculations (adjustScrollTopForTallMessage, etc.)
|
|
303
|
+
// are only needed during initial pinning. Here, we just ensure the spacer is large
|
|
304
|
+
// enough to keep the current scrollTop reachable.
|
|
305
|
+
// Batch DOM reads
|
|
306
|
+
const currentScrollTop = scrollElement.scrollTop;
|
|
307
|
+
const clientHeight = scrollElement.clientHeight;
|
|
308
|
+
const spacerRect = spacerElem.getBoundingClientRect();
|
|
309
|
+
const scrollerRect = scrollElement.getBoundingClientRect();
|
|
310
|
+
// Calculate minimum spacer needed to maintain current scroll position.
|
|
311
|
+
// The spacer must ensure that (scrollTop + clientHeight) is reachable.
|
|
312
|
+
const spacerOffset = spacerRect.top - scrollerRect.top + currentScrollTop;
|
|
313
|
+
const visibleBottom = currentScrollTop + clientHeight;
|
|
314
|
+
const deficit = Math.max(0, Math.ceil(visibleBottom - spacerOffset));
|
|
315
|
+
// Write spacer (no need to set scrollTop - we're preserving it)
|
|
316
|
+
setSpacerHeight(deficit);
|
|
317
|
+
return { deficit, scrollTop: currentScrollTop };
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* ============================================================================
|
|
321
|
+
* Message Resize Observer Utilities
|
|
322
|
+
* ============================================================================
|
|
323
|
+
*
|
|
324
|
+
* Utilities for observing message element size changes to detect async content
|
|
325
|
+
* loading (images, audio, video, user-defined content, streaming text) and reconcile
|
|
326
|
+
* the scroll spacer against the new height.
|
|
327
|
+
*/
|
|
328
|
+
function createMessageResizeObserver(config) {
|
|
329
|
+
const messageSizes = new Map();
|
|
330
|
+
const observer = new ResizeObserver((entries) => {
|
|
331
|
+
let changed = false;
|
|
332
|
+
entries.forEach((entry) => {
|
|
333
|
+
if (!messageSizes.has(entry.target)) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
const { blockSize } = entry.borderBoxSize[0];
|
|
337
|
+
changed ||= messageSizes.get(entry.target) !== blockSize;
|
|
338
|
+
messageSizes.set(entry.target, blockSize);
|
|
339
|
+
});
|
|
340
|
+
if (changed && config.hasPinnedMessage()) {
|
|
341
|
+
// ResizeObserver runs before paint. Deferring this write exposes a frame with a capped scrollTop.
|
|
342
|
+
// Only message rows are observed; changing their sibling spacer does not resize them.
|
|
343
|
+
config.onResize();
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
return { observer, messageSizes };
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Updates which message elements are being observed.
|
|
350
|
+
* Call this when messages are added, removed, or the message array changes.
|
|
351
|
+
*/
|
|
352
|
+
function updateObservedMessages(state, messageElements) {
|
|
353
|
+
const { observer, messageSizes } = state;
|
|
354
|
+
const currentElements = new Set(messageElements);
|
|
355
|
+
messageSizes.forEach((_size, element) => {
|
|
356
|
+
if (!currentElements.has(element)) {
|
|
357
|
+
observer.unobserve(element);
|
|
358
|
+
messageSizes.delete(element);
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
currentElements.forEach((element) => {
|
|
362
|
+
if (!messageSizes.has(element)) {
|
|
363
|
+
messageSizes.set(element, NaN);
|
|
364
|
+
observer.observe(element, { box: 'border-box' });
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Cleans up the ResizeObserver and all associated state.
|
|
370
|
+
*/
|
|
371
|
+
function cleanupMessageResizeObserver(state) {
|
|
372
|
+
const { observer, messageSizes } = state;
|
|
373
|
+
// Disconnect observer
|
|
374
|
+
observer.disconnect();
|
|
375
|
+
// Clear size tracking
|
|
376
|
+
messageSizes.clear();
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Checks if any new non-streaming response messages are in the message list.
|
|
380
|
+
*
|
|
381
|
+
* This is used to determine if we need to schedule a deferred spacer recalculation,
|
|
382
|
+
* as non-streaming responses may not have their full content rendered when the initial
|
|
383
|
+
* pin calculation occurs, resulting in an oversized spacer.
|
|
384
|
+
*/
|
|
385
|
+
function hasNewNonStreamingResponse(messages) {
|
|
386
|
+
return messages.some((message) => {
|
|
387
|
+
// Skip streaming items - they handle their own spacer updates
|
|
388
|
+
if (message.isStreaming) {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
// Check if this is a response message
|
|
392
|
+
return message.isResponse;
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Calculates the scroll position to restore after Safari's scroll anchoring behavior.
|
|
397
|
+
*
|
|
398
|
+
* Safari can automatically adjust scrollTop during DOM updates (scroll anchoring).
|
|
399
|
+
* This function determines if we need to restore the user's intended scroll position
|
|
400
|
+
* by comparing the current scrollTop with the pre-update snapshot.
|
|
401
|
+
*/
|
|
402
|
+
function applySafariScrollAnchoringRestore(currentScrollTop, snapshot) {
|
|
403
|
+
return getAnchoringRestoreTarget({
|
|
404
|
+
currentScrollTop,
|
|
405
|
+
snapshot,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
function debugAutoScroll(message) {
|
|
409
|
+
}
|
|
410
|
+
// ============================================================================
|
|
411
|
+
// The controller
|
|
412
|
+
// ============================================================================
|
|
413
|
+
class MessagesScrollController {
|
|
414
|
+
constructor(host) {
|
|
415
|
+
/**
|
|
416
|
+
* The observer used to monitor for changes in the scroll panel size.
|
|
417
|
+
*/
|
|
418
|
+
this.scrollPanelObserver = null;
|
|
419
|
+
/**
|
|
420
|
+
* State for the message resize observer that detects async content loading.
|
|
421
|
+
*/
|
|
422
|
+
this.messageResizeObserverState = null;
|
|
423
|
+
/**
|
|
424
|
+
* The id of the message most recently pinned to the top of the visible scroll area.
|
|
425
|
+
* Updated when pinning/re-pinning chooses a different target.
|
|
426
|
+
*/
|
|
427
|
+
this.pinnedMessageId = null;
|
|
428
|
+
this.pinnedOwnerId = null;
|
|
429
|
+
this.readingScrollTop = null;
|
|
430
|
+
this.hasStreamedForPin = false;
|
|
431
|
+
this.scrollGeneration = 0;
|
|
432
|
+
this.disconnected = false;
|
|
433
|
+
/**
|
|
434
|
+
* The scrollTop value set at the moment of the last pin. Compared against the current
|
|
435
|
+
* scrollTop at stream end to detect whether the user scrolled away from the pin during
|
|
436
|
+
* streaming.
|
|
437
|
+
*/
|
|
438
|
+
this.pinnedScrollTop = 0;
|
|
439
|
+
/**
|
|
440
|
+
* The spacer height that is actually written to the DOM. Used by isScrolledAwayFromBottom
|
|
441
|
+
* to prevent the scroll-to-bottom button from appearing for blank spacer space.
|
|
442
|
+
*/
|
|
443
|
+
this.domSpacerHeight = 0;
|
|
444
|
+
/**
|
|
445
|
+
* Whether the user has deliberately scrolled away (up) from the pin. While true, every
|
|
446
|
+
* auto-scroll restore/re-pin path is suppressed so we never yank the user back down; it is
|
|
447
|
+
* set/cleared by the `scroll` listener (`handleUserScroll`) and reset when a new message is
|
|
448
|
+
* pinned. This is what makes manual scroll-up stop auto-scroll during content changes.
|
|
449
|
+
*/
|
|
450
|
+
this.userScrolledAwayFromPin = false;
|
|
451
|
+
/**
|
|
452
|
+
* The last message array observed by onHostUpdated, so we can compute change flags and
|
|
453
|
+
* streaming transitions against the previous host state.
|
|
454
|
+
*/
|
|
455
|
+
this.previousMessages = [];
|
|
456
|
+
/**
|
|
457
|
+
* Numbers each scroll request so older ones can be told apart from the newest.
|
|
458
|
+
* A request saves the number it was given. If the counter has moved on by the time the
|
|
459
|
+
* request runs, a newer request (or `disconnect()`) replaced it, so it must do nothing.
|
|
460
|
+
*/
|
|
461
|
+
this.scrollCounter = 0;
|
|
462
|
+
/**
|
|
463
|
+
* Runs internal auto-scroll to ensure proper scrolling behavior when the container resizes.
|
|
464
|
+
* (Was the scroll work inside `MessagesComponent.onResize`.)
|
|
465
|
+
*/
|
|
466
|
+
this.onContainerResize = () => {
|
|
467
|
+
this.onContainerResizeThrottled(++this.scrollCounter);
|
|
468
|
+
};
|
|
469
|
+
this.onContainerResizeThrottled = throttle((counter) => {
|
|
470
|
+
if (counter !== this.scrollCounter || this.disconnected) {
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
// Resize can invalidate both "scroll down" visibility and pin geometry.
|
|
474
|
+
this.updateScrollHeightFloor();
|
|
475
|
+
this.host.onScrollGeometryChanged();
|
|
476
|
+
this.doAutoScrollInternal();
|
|
477
|
+
}, WINDOW_RESIZE_THROTTLE_MS, { leading: true, trailing: true });
|
|
478
|
+
/**
|
|
479
|
+
* `scroll` listener that latches whether the user has deliberately scrolled away (up) from the
|
|
480
|
+
* pin. Runs from a settled scroll position, so `resolveUserScrollAway` can distinguish a real
|
|
481
|
+
* scroll-up (room below the current position) from a browser cap (parked at the bottom because
|
|
482
|
+
* content shrank). Once latched, mid-animation geometry dips can't flip it, so the restore
|
|
483
|
+
* paths stay disengaged until the user returns toward the pin or a new message is pinned.
|
|
484
|
+
*/
|
|
485
|
+
this.handleUserScroll = () => {
|
|
486
|
+
const scrollElement = this.host.getScrollContainer();
|
|
487
|
+
const pinnedElement = this.getPinnedElement();
|
|
488
|
+
if (!scrollElement || (!pinnedElement && !this.hasRetainedOwner())) {
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
// Native anchoring can move scrollTop with a resized row above the pin.
|
|
492
|
+
const measuredPin = pinnedElement
|
|
493
|
+
? calculatePinnedScrollTop(pinnedElement, scrollElement)
|
|
494
|
+
: this.pinnedScrollTop;
|
|
495
|
+
if (this.isReadingPositionCapped(scrollElement.scrollTop, scrollElement)) {
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
const nearPreviousPin = Math.abs(scrollElement.scrollTop - this.pinnedScrollTop) <=
|
|
499
|
+
USER_SCROLL_AWAY_THRESHOLD_PX;
|
|
500
|
+
if (measuredPin !== this.pinnedScrollTop &&
|
|
501
|
+
(this.userScrolledAwayFromPin || nearPreviousPin)) {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
const decision = resolveUserScrollAway({
|
|
505
|
+
scrollTop: scrollElement.scrollTop,
|
|
506
|
+
pinnedScrollTop: measuredPin,
|
|
507
|
+
maxScrollTop: scrollElement.scrollHeight - scrollElement.clientHeight,
|
|
508
|
+
thresholdPx: USER_SCROLL_AWAY_THRESHOLD_PX,
|
|
509
|
+
});
|
|
510
|
+
if (decision !== null) {
|
|
511
|
+
if (Math.abs(scrollElement.scrollTop -
|
|
512
|
+
(this.readingScrollTop ?? this.pinnedScrollTop)) > 2) {
|
|
513
|
+
this.scrollGeneration++;
|
|
514
|
+
}
|
|
515
|
+
this.userScrolledAwayFromPin = decision;
|
|
516
|
+
this.captureReadingPosition(scrollElement.scrollTop);
|
|
517
|
+
this.updateScrollHeightFloor();
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
this.handleMessageResize = () => {
|
|
521
|
+
if (this.disconnected || this.reconcileReadingPosition()) {
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
const scrollElement = this.host.getScrollContainer();
|
|
525
|
+
const spacerElem = this.host.getSpacer();
|
|
526
|
+
const pinnedElement = this.getPinnedElement();
|
|
527
|
+
if (!scrollElement || !spacerElem || !pinnedElement) {
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
const previousPinnedScrollTop = this.pinnedScrollTop;
|
|
531
|
+
this.pinnedScrollTop = calculatePinnedScrollTop(pinnedElement, scrollElement);
|
|
532
|
+
const maxScrollTop = scrollElement.scrollHeight - scrollElement.clientHeight;
|
|
533
|
+
const wasBrowserCapped = scrollElement.scrollTop >= maxScrollTop - 2 &&
|
|
534
|
+
scrollElement.scrollTop < this.pinnedScrollTop;
|
|
535
|
+
const nearPin = Math.min(Math.abs(scrollElement.scrollTop - previousPinnedScrollTop), Math.abs(scrollElement.scrollTop - this.pinnedScrollTop)) <= USER_SCROLL_AWAY_THRESHOLD_PX;
|
|
536
|
+
const restorePin = !this.userScrolledAwayFromPin && (nearPin || wasBrowserCapped);
|
|
537
|
+
const targetScrollTop = restorePin
|
|
538
|
+
? this.pinnedScrollTop
|
|
539
|
+
: scrollElement.scrollTop;
|
|
540
|
+
// scrollHeight floors at clientHeight, so only the spacer offset measures a deep shrink correctly.
|
|
541
|
+
const minimumHeight = calculateSpacerDeficit(spacerElem, scrollElement, scrollElement.getBoundingClientRect(), targetScrollTop);
|
|
542
|
+
const height = hasActiveStreaming(this.host.getMessages())
|
|
543
|
+
? Math.max(this.domSpacerHeight, minimumHeight)
|
|
544
|
+
: minimumHeight;
|
|
545
|
+
this.updateScrollHeightFloor();
|
|
546
|
+
if (height !== this.domSpacerHeight) {
|
|
547
|
+
this.domSpacerHeight = height;
|
|
548
|
+
this.host.setSpacerHeight(height);
|
|
549
|
+
}
|
|
550
|
+
if (restorePin) {
|
|
551
|
+
scrollElement.scrollTop = targetScrollTop;
|
|
552
|
+
}
|
|
553
|
+
this.host.onScrollGeometryChanged();
|
|
554
|
+
};
|
|
555
|
+
this.scheduleAutoScroll = (options = {}, includePublicSpacerReconciliation = false) => {
|
|
556
|
+
if (options.scrollToTop !== undefined ||
|
|
557
|
+
options.scrollToBottom !== undefined) {
|
|
558
|
+
this.prepareExplicitScroll();
|
|
559
|
+
}
|
|
560
|
+
const counter = ++this.scrollCounter;
|
|
561
|
+
const generation = this.scrollGeneration;
|
|
562
|
+
requestAnimationFrame(() => {
|
|
563
|
+
void (async () => {
|
|
564
|
+
if (counter !== this.scrollCounter ||
|
|
565
|
+
!this.isCurrentScrollWork(generation)) {
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
// Execute after DOM/layout settles for the current frame so measurements
|
|
569
|
+
// (scrollHeight, rects) match what the user can actually see.
|
|
570
|
+
const scrollElement = this.host.getScrollContainer();
|
|
571
|
+
if (!scrollElement?.isConnected) {
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
await this.executeResolvedAutoScrollAction(options, scrollElement, counter, generation);
|
|
575
|
+
if (includePublicSpacerReconciliation &&
|
|
576
|
+
counter === this.scrollCounter &&
|
|
577
|
+
this.isCurrentScrollWork(generation)) {
|
|
578
|
+
this.reconcileSpacerAfterPublicDoAutoScroll(scrollElement);
|
|
579
|
+
}
|
|
580
|
+
})();
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* Internal auto-scroll path used by the host lifecycle and internal handlers
|
|
585
|
+
* (e.g. the scroll-to-bottom button). Does not run the public spacer-reconciliation pass.
|
|
586
|
+
*/
|
|
587
|
+
this.doAutoScrollInternal = (options = {}) => {
|
|
588
|
+
try {
|
|
589
|
+
this.scheduleAutoScroll(options, false);
|
|
590
|
+
}
|
|
591
|
+
catch (error) {
|
|
592
|
+
// Just ignore any errors. It's not the end of the world if scrolling doesn't work for any reason.
|
|
593
|
+
console.error('An error occurred while attempting to scroll.', error);
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Public auto-scroll entry point for external callers (e.g. `CDSAIChatMessagesShell`).
|
|
598
|
+
* Runs a spacer reconciliation pass after normal auto-scroll resolution so
|
|
599
|
+
* callers get up-to-date pin/spacer geometry.
|
|
600
|
+
*/
|
|
601
|
+
this.doAutoScroll = (options = {}) => {
|
|
602
|
+
try {
|
|
603
|
+
this.scheduleAutoScroll(options, true);
|
|
604
|
+
}
|
|
605
|
+
catch (error) {
|
|
606
|
+
// Just ignore any errors. It's not the end of the world if scrolling doesn't work for any reason.
|
|
607
|
+
console.error('An error occurred while attempting to scroll.', error);
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Throttled auto-scroll method for automatic scroll operations (e.g., message updates).
|
|
612
|
+
* This is throttled to prevent excessive scrolling during rapid updates.
|
|
613
|
+
*/
|
|
614
|
+
this.doAutoScrollThrottled = throttle((counter) => {
|
|
615
|
+
if (counter === this.scrollCounter) {
|
|
616
|
+
this.doAutoScrollInternal();
|
|
617
|
+
}
|
|
618
|
+
}, AUTO_SCROLL_THROTTLE_MS, { leading: true, trailing: true });
|
|
619
|
+
/**
|
|
620
|
+
* Returns the current scrollBottom value for the message scroll panel.
|
|
621
|
+
*/
|
|
622
|
+
this.getContainerScrollBottom = () => {
|
|
623
|
+
return getScrollBottom(this.host.getScrollContainer());
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* Scrolls the given element into view so that it is fully visible. If the element is already visible, then no
|
|
627
|
+
* scrolling will be done.
|
|
628
|
+
*
|
|
629
|
+
* @param element The element to scroll into view.
|
|
630
|
+
* @param paddingTop An additional pixel value that will over scroll by this amount to give a little padding between
|
|
631
|
+
* the element and the top of the scroll area.
|
|
632
|
+
* @param paddingBottom An additional pixel value that will over scroll by this amount to give a little padding
|
|
633
|
+
* between the element and the top of the scroll area.
|
|
634
|
+
* @param animate Prefer animation
|
|
635
|
+
*/
|
|
636
|
+
this.scrollElementIntoView = (element, paddingTop = 8, paddingBottom = 8, animate = false) => {
|
|
637
|
+
const scrollElement = this.host.getScrollContainer();
|
|
638
|
+
if (!scrollElement) {
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
641
|
+
const scrollRect = scrollElement.getBoundingClientRect();
|
|
642
|
+
const elementRect = element.getBoundingClientRect();
|
|
643
|
+
// The distance the top and bottom of the element is from the top of the message list.
|
|
644
|
+
const topDistanceFromTop = elementRect.top - scrollRect.top + scrollElement.scrollTop - paddingTop;
|
|
645
|
+
const bottomDistanceFromTop = elementRect.bottom -
|
|
646
|
+
scrollRect.top +
|
|
647
|
+
scrollElement.scrollTop +
|
|
648
|
+
paddingBottom;
|
|
649
|
+
const elementHeight = element.offsetHeight + paddingTop + paddingBottom;
|
|
650
|
+
if (topDistanceFromTop < scrollElement.scrollTop ||
|
|
651
|
+
elementHeight > scrollElement.offsetHeight) {
|
|
652
|
+
// 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
|
|
653
|
+
// of the scroll panel.
|
|
654
|
+
this.prepareExplicitScroll();
|
|
655
|
+
doScrollElement(scrollElement, topDistanceFromTop, 0);
|
|
656
|
+
}
|
|
657
|
+
else if (bottomDistanceFromTop >
|
|
658
|
+
scrollElement.scrollTop + scrollElement.offsetHeight) {
|
|
659
|
+
// The bottom of the element is below the fold. Scroll it so its bottom is at the bottom of the scroll panel.
|
|
660
|
+
this.prepareExplicitScroll();
|
|
661
|
+
doScrollElement(scrollElement, bottomDistanceFromTop - scrollElement.offsetHeight, 0, animate);
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
this.host = host;
|
|
665
|
+
}
|
|
666
|
+
// --------------------------------------------------------------------------
|
|
667
|
+
// Lifecycle
|
|
668
|
+
// --------------------------------------------------------------------------
|
|
669
|
+
connect() {
|
|
670
|
+
this.disconnected = false;
|
|
671
|
+
this.scrollGeneration++;
|
|
672
|
+
const scrollContainer = this.host.getScrollContainer();
|
|
673
|
+
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
674
|
+
this.scrollPanelObserver = new ResizeObserver(() => {
|
|
675
|
+
const generation = this.scrollGeneration;
|
|
676
|
+
requestAnimationFrame(() => {
|
|
677
|
+
if (this.isCurrentScrollWork(generation)) {
|
|
678
|
+
this.onContainerResize();
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
if (scrollContainer) {
|
|
683
|
+
this.scrollPanelObserver.observe(scrollContainer);
|
|
684
|
+
}
|
|
685
|
+
this.messageResizeObserverState = createMessageResizeObserver({
|
|
686
|
+
onResize: this.handleMessageResize,
|
|
687
|
+
hasPinnedMessage: () => this.pinnedMessageId !== null,
|
|
688
|
+
});
|
|
689
|
+
// Start observing current messages
|
|
690
|
+
this.updateObservedMessages();
|
|
691
|
+
// Track deliberate user scroll-away so auto-scroll can disengage. Passive: we only read
|
|
692
|
+
// scroll geometry, never call preventDefault.
|
|
693
|
+
scrollContainer?.addEventListener('scroll', this.handleUserScroll, {
|
|
694
|
+
passive: true,
|
|
695
|
+
});
|
|
696
|
+
// Seed the previous-messages baseline so the first onHostUpdated compares
|
|
697
|
+
// against the state present at connect time.
|
|
698
|
+
this.previousMessages = this.host.getMessages();
|
|
699
|
+
}
|
|
700
|
+
disconnect() {
|
|
701
|
+
this.scrollCounter++;
|
|
702
|
+
this.disconnected = true;
|
|
703
|
+
this.scrollGeneration++;
|
|
704
|
+
this.readingScrollTop = null;
|
|
705
|
+
this.pinnedOwnerId = null;
|
|
706
|
+
this.pinnedMessageId = null;
|
|
707
|
+
this.hasStreamedForPin = false;
|
|
708
|
+
this.host.setScrollHeightFloor(0);
|
|
709
|
+
if (this.host.getSpacer()) {
|
|
710
|
+
this.host.setSpacerHeight(0);
|
|
711
|
+
}
|
|
712
|
+
// Remove the listeners and observers set up in connect().
|
|
713
|
+
if (this.scrollPanelObserver) {
|
|
714
|
+
this.scrollPanelObserver.disconnect();
|
|
715
|
+
this.scrollPanelObserver = null;
|
|
716
|
+
}
|
|
717
|
+
if (this.messageResizeObserverState) {
|
|
718
|
+
cleanupMessageResizeObserver(this.messageResizeObserverState);
|
|
719
|
+
this.messageResizeObserverState = null;
|
|
720
|
+
}
|
|
721
|
+
const scrollContainer = this.host.getScrollContainer();
|
|
722
|
+
scrollContainer?.removeEventListener('scroll', this.handleUserScroll);
|
|
723
|
+
this.doAutoScrollThrottled.cancel();
|
|
724
|
+
this.onContainerResizeThrottled.cancel();
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Runs the scroll-maintenance branch for a host update (message add/remove or streaming chunk).
|
|
728
|
+
*
|
|
729
|
+
* @param preCommitScrollTop - The scrollTop captured before the host commit
|
|
730
|
+
* (React `getSnapshotBeforeUpdate`), used for Safari scroll-anchoring restore.
|
|
731
|
+
*/
|
|
732
|
+
onHostUpdated(preCommitScrollTop) {
|
|
733
|
+
if (this.disconnected) {
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
const newItems = this.host.getMessages();
|
|
737
|
+
const oldItems = this.previousMessages;
|
|
738
|
+
// countChanged means a new message, itemsChanged means an actual message item changed (streaming, likely)
|
|
739
|
+
const { countChanged, itemsChanged } = getMessageArrayChangeFlags({
|
|
740
|
+
oldItems,
|
|
741
|
+
newItems,
|
|
742
|
+
});
|
|
743
|
+
// No structural or reference change means no scroll maintenance needed.
|
|
744
|
+
if (!countChanged && !itemsChanged) {
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
this.updateReadingTargetForHost(oldItems, newItems, preCommitScrollTop);
|
|
748
|
+
// Keep row order while the owner awaits replacement rows; earlier requests may mount first.
|
|
749
|
+
if (!this.hasRetainedOwner() ||
|
|
750
|
+
newItems.some((item) => item.messageId === this.pinnedOwnerId)) {
|
|
751
|
+
this.previousMessages = newItems;
|
|
752
|
+
}
|
|
753
|
+
// A cleared conversation must drop the old pin before anything below reads it; otherwise the
|
|
754
|
+
// stale pin keeps its spacer and scroll position under the new messages.
|
|
755
|
+
if (didClearAllMessages({ oldItems, newItems }) &&
|
|
756
|
+
!this.hasRetainedOwner()) {
|
|
757
|
+
this.resetForClearedConversation();
|
|
758
|
+
}
|
|
759
|
+
this.host.onScrollGeometryChanged();
|
|
760
|
+
// Update observed messages when the message array changes
|
|
761
|
+
if (itemsChanged) {
|
|
762
|
+
this.updateObservedMessages();
|
|
763
|
+
}
|
|
764
|
+
if (this.reconcileRetainedPosition()) {
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
if (countChanged) {
|
|
768
|
+
this.handleCountChanged();
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
// Array reference changed but count is the same. In this codebase, that means
|
|
772
|
+
// in-place evolution (typically streaming chunks or item-level state updates).
|
|
773
|
+
// Only perform spacer maintenance if we have a pinned message.
|
|
774
|
+
if (!this.pinnedMessageId) {
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
const { isCurrentlyStreaming, wasStreaming } = getStreamingTransition({
|
|
778
|
+
oldItems,
|
|
779
|
+
newItems,
|
|
780
|
+
});
|
|
781
|
+
if (isCurrentlyStreaming) {
|
|
782
|
+
this.handleStreamingUpdate(preCommitScrollTop);
|
|
783
|
+
}
|
|
784
|
+
else if (wasStreaming) {
|
|
785
|
+
this.handleStreamEndUpdate(preCommitScrollTop);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
// --------------------------------------------------------------------------
|
|
789
|
+
// Observed-message maintenance
|
|
790
|
+
// --------------------------------------------------------------------------
|
|
791
|
+
/**
|
|
792
|
+
* Updates which message elements are being observed by the messageResizeObserver.
|
|
793
|
+
* Called when messages are added, removed, or the message array changes.
|
|
794
|
+
*
|
|
795
|
+
* Observes ALL messages including streaming ones. ResizeObserver handles
|
|
796
|
+
* both streaming content growth and animated size changes (like reasoning steps
|
|
797
|
+
* collapsing) smoothly without manual timing intervention.
|
|
798
|
+
*/
|
|
799
|
+
updateObservedMessages() {
|
|
800
|
+
if (!this.messageResizeObserverState) {
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
// Get all current message elements (including streaming messages)
|
|
804
|
+
const messageElements = [];
|
|
805
|
+
this.host.getMessages().forEach((message) => {
|
|
806
|
+
const element = message.element;
|
|
807
|
+
if (element) {
|
|
808
|
+
messageElements.push(element);
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
// Update observations using utility function
|
|
812
|
+
updateObservedMessages(this.messageResizeObserverState, messageElements);
|
|
813
|
+
}
|
|
814
|
+
// --------------------------------------------------------------------------
|
|
815
|
+
// Pin / spacer execution
|
|
816
|
+
// --------------------------------------------------------------------------
|
|
817
|
+
/**
|
|
818
|
+
* Clears pin state and the spacer, then returns to the top. Only for a full clear — removing
|
|
819
|
+
* some messages keeps the user's scroll position.
|
|
820
|
+
*/
|
|
821
|
+
resetForClearedConversation() {
|
|
822
|
+
this.scrollGeneration++;
|
|
823
|
+
this.readingScrollTop = null;
|
|
824
|
+
this.pinnedOwnerId = null;
|
|
825
|
+
this.hasStreamedForPin = false;
|
|
826
|
+
this.pinnedMessageId = null;
|
|
827
|
+
this.pinnedScrollTop = 0;
|
|
828
|
+
this.userScrolledAwayFromPin = false;
|
|
829
|
+
this.domSpacerHeight = 0;
|
|
830
|
+
this.previousMessages = [];
|
|
831
|
+
this.doAutoScrollThrottled.cancel();
|
|
832
|
+
this.host.setScrollHeightFloor(0);
|
|
833
|
+
if (this.host.getSpacer()) {
|
|
834
|
+
this.host.setSpacerHeight(0);
|
|
835
|
+
}
|
|
836
|
+
const scrollElement = this.host.getScrollContainer();
|
|
837
|
+
if (scrollElement) {
|
|
838
|
+
scrollElement.scrollTop = 0;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
getPinnedElement() {
|
|
842
|
+
if (!this.pinnedMessageId) {
|
|
843
|
+
return null;
|
|
844
|
+
}
|
|
845
|
+
return (this.host
|
|
846
|
+
.getMessages()
|
|
847
|
+
.find((message) => message.id === this.pinnedMessageId)?.element ?? null);
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Pin a message to the top of the visible scroll area and scroll to it instantly.
|
|
851
|
+
* Runs synchronously inside a requestAnimationFrame — must only be called from within one.
|
|
852
|
+
*/
|
|
853
|
+
executePinAndScroll(message, scrollElement) {
|
|
854
|
+
const result = pinMessageAndScroll({
|
|
855
|
+
message,
|
|
856
|
+
scrollElement,
|
|
857
|
+
spacerElem: this.host.getSpacer(),
|
|
858
|
+
setSpacerHeight: (px) => this.host.setSpacerHeight(px),
|
|
859
|
+
});
|
|
860
|
+
if (!result) {
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
if (message.messageId !== this.pinnedOwnerId) {
|
|
864
|
+
this.hasStreamedForPin = hasActiveStreaming(this.host.getMessages());
|
|
865
|
+
}
|
|
866
|
+
// Keep controller-level tracking aligned with the DOM writes performed above.
|
|
867
|
+
this.domSpacerHeight = result.currentSpacerHeight;
|
|
868
|
+
this.pinnedMessageId = result.pinnedMessageId;
|
|
869
|
+
this.pinnedOwnerId = message.messageId ?? this.pinnedOwnerId;
|
|
870
|
+
this.readingScrollTop = null;
|
|
871
|
+
this.pinnedScrollTop = result.scrollTop;
|
|
872
|
+
// Establishing a pin re-engages auto-scroll: a newly pinned message resets any prior
|
|
873
|
+
// scroll-away. (The re-pin restore paths are gated on this flag, so they only reach here
|
|
874
|
+
// when it is already false — this reset matters for pinning a genuinely new message.)
|
|
875
|
+
this.userScrolledAwayFromPin = false;
|
|
876
|
+
this.updateScrollHeightFloor();
|
|
877
|
+
debugAutoScroll(`[autoScroll] Pinned message, scrollTop=${result.scrollTop}, spacer=${result.currentSpacerHeight}px`);
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Waits for nested markdown component to finish rendering before measuring
|
|
881
|
+
* the message for pinning and scrolling.
|
|
882
|
+
*/
|
|
883
|
+
async waitForMessageComponentLayout(message) {
|
|
884
|
+
const targetElem = message?.element;
|
|
885
|
+
if (!targetElem) {
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
const markdownElement = targetElem.querySelector(`${prefix}-aichat-markdown`);
|
|
889
|
+
if (!markdownElement) {
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
await markdownElement.updateComplete?.catch(() => undefined);
|
|
893
|
+
await new Promise((resolve) => {
|
|
894
|
+
requestAnimationFrame(() => resolve());
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Recalculate the spacer height for the currently pinned message without touching scrollTop.
|
|
899
|
+
* Used when content below the pin changes (resize, non-streaming response, streaming done).
|
|
900
|
+
* Runs synchronously inside a requestAnimationFrame — must only be called from within one.
|
|
901
|
+
*/
|
|
902
|
+
executeRecalculateSpacer(scrollElement) {
|
|
903
|
+
if (this.reconcileReadingPosition()) {
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
const result = recalculatePinnedMessageSpacer({
|
|
907
|
+
pinnedElement: this.getPinnedElement(),
|
|
908
|
+
scrollElement,
|
|
909
|
+
spacerElem: this.host.getSpacer(),
|
|
910
|
+
setSpacerHeight: (px) => this.host.setSpacerHeight(px),
|
|
911
|
+
});
|
|
912
|
+
if (result === null) {
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
this.domSpacerHeight = result.deficit;
|
|
916
|
+
}
|
|
917
|
+
captureReadingPosition(scrollTop, allowNewTarget = false) {
|
|
918
|
+
if (!this.pinnedOwnerId) {
|
|
919
|
+
this.readingScrollTop = null;
|
|
920
|
+
return;
|
|
921
|
+
}
|
|
922
|
+
const scrollElement = this.host.getScrollContainer();
|
|
923
|
+
if (scrollElement &&
|
|
924
|
+
this.isReadingPositionCapped(scrollTop, scrollElement)) {
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
if ((this.readingScrollTop !== null || allowNewTarget) &&
|
|
928
|
+
scrollElement &&
|
|
929
|
+
resolveUserScrollAway({
|
|
930
|
+
scrollTop,
|
|
931
|
+
pinnedScrollTop: this.pinnedScrollTop,
|
|
932
|
+
maxScrollTop: scrollElement.scrollHeight - scrollElement.clientHeight,
|
|
933
|
+
thresholdPx: USER_SCROLL_AWAY_THRESHOLD_PX,
|
|
934
|
+
}) === true) {
|
|
935
|
+
this.scrollGeneration++;
|
|
936
|
+
this.userScrolledAwayFromPin = true;
|
|
937
|
+
this.readingScrollTop = null;
|
|
938
|
+
this.updateScrollHeightFloor();
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
if (allowNewTarget &&
|
|
942
|
+
scrollElement &&
|
|
943
|
+
scrollTop >= this.pinnedScrollTop - USER_SCROLL_AWAY_THRESHOLD_PX) {
|
|
944
|
+
this.userScrolledAwayFromPin = false;
|
|
945
|
+
}
|
|
946
|
+
if (this.userScrolledAwayFromPin) {
|
|
947
|
+
this.readingScrollTop = null;
|
|
948
|
+
return;
|
|
949
|
+
}
|
|
950
|
+
if (scrollTop <= this.pinnedScrollTop + 2) {
|
|
951
|
+
this.readingScrollTop = null;
|
|
952
|
+
}
|
|
953
|
+
else if (this.readingScrollTop !== null ||
|
|
954
|
+
allowNewTarget ||
|
|
955
|
+
this.hasStreamedForPin ||
|
|
956
|
+
hasActiveStreaming(this.previousMessages) ||
|
|
957
|
+
hasActiveStreaming(this.host.getMessages())) {
|
|
958
|
+
this.readingScrollTop = scrollTop;
|
|
959
|
+
}
|
|
960
|
+
this.updateScrollHeightFloor();
|
|
961
|
+
}
|
|
962
|
+
updateReadingTargetForHost(oldItems, newItems, snapshot) {
|
|
963
|
+
const candidate = findLastPinnable(newItems);
|
|
964
|
+
const candidateIndex = oldItems.findIndex((item) => item.messageId === candidate?.messageId);
|
|
965
|
+
const ownerIndex = oldItems.findIndex((item) => item.messageId === this.pinnedOwnerId);
|
|
966
|
+
const isEarlierCandidate = this.hasRetainedOwner() &&
|
|
967
|
+
candidateIndex >= 0 &&
|
|
968
|
+
(ownerIndex < 0 || candidateIndex < ownerIndex);
|
|
969
|
+
if (candidate &&
|
|
970
|
+
candidate.messageId !== this.pinnedOwnerId &&
|
|
971
|
+
!isEarlierCandidate) {
|
|
972
|
+
if (findLastPinnable(oldItems)?.messageId !== candidate.messageId) {
|
|
973
|
+
this.scrollGeneration++;
|
|
974
|
+
}
|
|
975
|
+
this.readingScrollTop = null;
|
|
976
|
+
this.userScrolledAwayFromPin = false;
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
if (this.pinnedOwnerId && !this.host.hasMessage(this.pinnedOwnerId)) {
|
|
980
|
+
this.scrollGeneration++;
|
|
981
|
+
this.readingScrollTop = null;
|
|
982
|
+
this.pinnedOwnerId = null;
|
|
983
|
+
this.pinnedMessageId = null;
|
|
984
|
+
this.hasStreamedForPin = false;
|
|
985
|
+
this.host.setScrollHeightFloor(0);
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
this.hasStreamedForPin ||=
|
|
989
|
+
hasActiveStreaming(oldItems) || hasActiveStreaming(newItems);
|
|
990
|
+
if (snapshot !== null &&
|
|
991
|
+
(this.readingScrollTop !== null || hasActiveStreaming(oldItems))) {
|
|
992
|
+
this.captureReadingPosition(snapshot, hasActiveStreaming(oldItems));
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
hasReadingOwner() {
|
|
996
|
+
return (this.readingScrollTop !== null &&
|
|
997
|
+
Boolean(this.pinnedOwnerId && this.host.hasMessage(this.pinnedOwnerId)));
|
|
998
|
+
}
|
|
999
|
+
hasRetainedOwner() {
|
|
1000
|
+
return (this.hasReadingOwner() ||
|
|
1001
|
+
Boolean(this.userScrolledAwayFromPin &&
|
|
1002
|
+
this.pinnedOwnerId &&
|
|
1003
|
+
this.host.hasMessage(this.pinnedOwnerId)));
|
|
1004
|
+
}
|
|
1005
|
+
rebindPinnedOwnerRow() {
|
|
1006
|
+
const ownerRow = this.host
|
|
1007
|
+
.getMessages()
|
|
1008
|
+
.find((message) => message.messageId === this.pinnedOwnerId &&
|
|
1009
|
+
message.isPinnable &&
|
|
1010
|
+
message.element);
|
|
1011
|
+
if (ownerRow) {
|
|
1012
|
+
this.pinnedMessageId = ownerRow.id;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
reconcileRetainedPosition() {
|
|
1016
|
+
if (this.reconcileReadingPosition()) {
|
|
1017
|
+
return true;
|
|
1018
|
+
}
|
|
1019
|
+
if (!this.userScrolledAwayFromPin || !this.hasRetainedOwner()) {
|
|
1020
|
+
return false;
|
|
1021
|
+
}
|
|
1022
|
+
this.rebindPinnedOwnerRow();
|
|
1023
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1024
|
+
if (scrollElement) {
|
|
1025
|
+
this.executeRecalculateSpacer(scrollElement);
|
|
1026
|
+
}
|
|
1027
|
+
return true;
|
|
1028
|
+
}
|
|
1029
|
+
isReadingPositionCapped(scrollTop, scrollElement) {
|
|
1030
|
+
const maxScrollTop = scrollElement.scrollHeight - scrollElement.clientHeight;
|
|
1031
|
+
return (this.readingScrollTop !== null &&
|
|
1032
|
+
scrollTop < this.readingScrollTop - 2 &&
|
|
1033
|
+
maxScrollTop < this.readingScrollTop - 2 &&
|
|
1034
|
+
scrollTop >= maxScrollTop - 2);
|
|
1035
|
+
}
|
|
1036
|
+
reconcileReadingPosition() {
|
|
1037
|
+
if (this.readingScrollTop === null || !this.pinnedOwnerId) {
|
|
1038
|
+
return false;
|
|
1039
|
+
}
|
|
1040
|
+
if (!this.host.hasMessage(this.pinnedOwnerId)) {
|
|
1041
|
+
this.readingScrollTop = null;
|
|
1042
|
+
this.pinnedOwnerId = null;
|
|
1043
|
+
this.pinnedMessageId = null;
|
|
1044
|
+
this.hasStreamedForPin = false;
|
|
1045
|
+
this.scrollGeneration++;
|
|
1046
|
+
this.host.setScrollHeightFloor(0);
|
|
1047
|
+
return false;
|
|
1048
|
+
}
|
|
1049
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1050
|
+
const spacer = this.host.getSpacer();
|
|
1051
|
+
if (!scrollElement?.isConnected || !spacer) {
|
|
1052
|
+
return true;
|
|
1053
|
+
}
|
|
1054
|
+
this.rebindPinnedOwnerRow();
|
|
1055
|
+
this.updateScrollHeightFloor();
|
|
1056
|
+
const height = calculateSpacerDeficit(spacer, scrollElement, scrollElement.getBoundingClientRect(), this.readingScrollTop);
|
|
1057
|
+
if (height !== this.domSpacerHeight) {
|
|
1058
|
+
this.domSpacerHeight = height;
|
|
1059
|
+
this.host.setSpacerHeight(height);
|
|
1060
|
+
}
|
|
1061
|
+
if (scrollElement.scrollTop !== this.readingScrollTop) {
|
|
1062
|
+
scrollElement.scrollTop = this.readingScrollTop;
|
|
1063
|
+
}
|
|
1064
|
+
this.host.onScrollGeometryChanged();
|
|
1065
|
+
return true;
|
|
1066
|
+
}
|
|
1067
|
+
isCurrentScrollWork(generation) {
|
|
1068
|
+
return !this.disconnected && generation === this.scrollGeneration;
|
|
1069
|
+
}
|
|
1070
|
+
prepareExplicitScroll() {
|
|
1071
|
+
this.scrollGeneration++;
|
|
1072
|
+
this.readingScrollTop = null;
|
|
1073
|
+
this.userScrolledAwayFromPin = true;
|
|
1074
|
+
this.host.setScrollHeightFloor(0);
|
|
1075
|
+
}
|
|
1076
|
+
updateScrollHeightFloor() {
|
|
1077
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1078
|
+
const minimumHeight = scrollElement && this.pinnedMessageId && !this.userScrolledAwayFromPin
|
|
1079
|
+
? (this.readingScrollTop ?? this.pinnedScrollTop) +
|
|
1080
|
+
scrollElement.clientHeight
|
|
1081
|
+
: 0;
|
|
1082
|
+
// A forced layout can clamp scrollTop during a collapse that regrows before ResizeObserver runs.
|
|
1083
|
+
this.host.setScrollHeightFloor(minimumHeight);
|
|
1084
|
+
}
|
|
1085
|
+
async executeResolvedAutoScrollAction(options, scrollElement, counter, generation) {
|
|
1086
|
+
const messages = this.host.getMessages();
|
|
1087
|
+
if (options.scrollToTop === undefined &&
|
|
1088
|
+
options.scrollToBottom === undefined &&
|
|
1089
|
+
this.reconcileRetainedPosition()) {
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
const action = resolveAutoScrollAction({
|
|
1093
|
+
messages,
|
|
1094
|
+
options,
|
|
1095
|
+
pinnedMessageId: this.pinnedMessageId,
|
|
1096
|
+
scrollElement,
|
|
1097
|
+
});
|
|
1098
|
+
switch (action.type) {
|
|
1099
|
+
case 'scroll_to_top':
|
|
1100
|
+
doScrollElement(scrollElement, action.scrollTop, 0);
|
|
1101
|
+
return;
|
|
1102
|
+
case 'scroll_to_bottom': {
|
|
1103
|
+
// During streaming `scrollHeight` includes the blank spacer, so
|
|
1104
|
+
// `scrollHeight - offsetHeight` points into blank spacer territory.
|
|
1105
|
+
// Subtract domSpacerHeight to land at the bottom of real content.
|
|
1106
|
+
const isStreaming = messages.some((message) => message.isStreaming);
|
|
1107
|
+
const scrollTop = isStreaming
|
|
1108
|
+
? Math.max(0, action.scrollTop - this.domSpacerHeight)
|
|
1109
|
+
: action.scrollTop;
|
|
1110
|
+
doScrollElement(scrollElement, scrollTop, 0, action.preferAnimate && !isStreaming);
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
case 'reset_to_top':
|
|
1114
|
+
// No messages — scroll to top so the browser doesn't restore a stale position.
|
|
1115
|
+
scrollElement.scrollTop = 0;
|
|
1116
|
+
return;
|
|
1117
|
+
case 'pin_message':
|
|
1118
|
+
await this.waitForMessageComponentLayout(action.message);
|
|
1119
|
+
// Stop if a newer request replaced this one while we waited, or if the target
|
|
1120
|
+
// message was removed in the meantime (for example, the chat was cleared).
|
|
1121
|
+
if (counter !== this.scrollCounter ||
|
|
1122
|
+
!this.isCurrentScrollWork(generation) ||
|
|
1123
|
+
!scrollElement.isConnected ||
|
|
1124
|
+
!this.host
|
|
1125
|
+
.getMessages()
|
|
1126
|
+
.some((message) => message.id === action.message.id)) {
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
this.executePinAndScroll(action.message, scrollElement);
|
|
1130
|
+
return;
|
|
1131
|
+
case 'recalculate_spacer':
|
|
1132
|
+
this.executeRecalculateSpacer(scrollElement);
|
|
1133
|
+
return;
|
|
1134
|
+
default:
|
|
1135
|
+
return;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
reconcileSpacerAfterPublicDoAutoScroll(scrollElement) {
|
|
1139
|
+
const reconciliationAction = resolvePublicSpacerReconciliationAction({
|
|
1140
|
+
pinnedMessageId: this.pinnedMessageId,
|
|
1141
|
+
});
|
|
1142
|
+
if (reconciliationAction.type === 'noop') {
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
const savedScrollTop = scrollElement.scrollTop;
|
|
1146
|
+
this.executeRecalculateSpacer(scrollElement);
|
|
1147
|
+
if (scrollElement.scrollTop < savedScrollTop) {
|
|
1148
|
+
scrollElement.scrollTop = savedScrollTop;
|
|
1149
|
+
}
|
|
1150
|
+
this.host.onScrollGeometryChanged();
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Handles updates when the message count changes (messages added or removed).
|
|
1154
|
+
*
|
|
1155
|
+
* 1. Re-runs the auto-scroll policy to pin a new target or maintain the current pin
|
|
1156
|
+
* 2. Checks for new non-streaming responses that may need deferred spacer recalculation
|
|
1157
|
+
* 3. Schedules a throttled recalculation if needed
|
|
1158
|
+
*/
|
|
1159
|
+
handleCountChanged() {
|
|
1160
|
+
// Message list length changed (add/remove). Re-run auto-scroll policy so we either
|
|
1161
|
+
// pin a new target, maintain the current pin, or reset for empty state.
|
|
1162
|
+
this.doAutoScrollInternal();
|
|
1163
|
+
// For non-streaming MessageResponse items added via addMessage(), the initial pin
|
|
1164
|
+
// calculation may occur before response content is fully rendered, resulting in an
|
|
1165
|
+
// oversized spacer. Schedule a deferred recalculation to correct the spacer after
|
|
1166
|
+
// layout settles. Only do this for responses, as requests are the pinned targets
|
|
1167
|
+
// themselves and don't affect spacer calculation the same way.
|
|
1168
|
+
const hasNewResponse = hasNewNonStreamingResponse(this.host.getMessages());
|
|
1169
|
+
if (hasNewResponse) {
|
|
1170
|
+
// Use the same throttled approach as streaming to recalculate after content settles.
|
|
1171
|
+
// This is more reliable than trying to time rAF perfectly.
|
|
1172
|
+
this.doAutoScrollThrottled(this.scrollCounter);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* Handles scroll position maintenance during active streaming.
|
|
1177
|
+
*
|
|
1178
|
+
* Safari's scroll anchoring can decrease scrollTop during streaming updates.
|
|
1179
|
+
* This method applies a fix to restore the user's intended scroll position.
|
|
1180
|
+
*/
|
|
1181
|
+
handleStreamingUpdate(snapshot) {
|
|
1182
|
+
// Prevent Safari's scroll anchoring from decreasing scrollTop during streaming.
|
|
1183
|
+
const el = this.host.getScrollContainer();
|
|
1184
|
+
if (!el) {
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
const restoreTarget = applySafariScrollAnchoringRestore(el.scrollTop, snapshot);
|
|
1188
|
+
if (restoreTarget !== null) {
|
|
1189
|
+
el.scrollTop = restoreTarget;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Handles the transition when streaming completes.
|
|
1194
|
+
*
|
|
1195
|
+
* 1. Applies Safari scroll anchoring fix for the final stream commit
|
|
1196
|
+
* 2. Schedules a requestAnimationFrame to determine the final scroll action
|
|
1197
|
+
* 3. Either re-pins and scrolls to the message, or preserves the user's position
|
|
1198
|
+
*/
|
|
1199
|
+
handleStreamEndUpdate(snapshot) {
|
|
1200
|
+
// Safari fires scroll anchoring during the final stream commit (same as mid-stream
|
|
1201
|
+
// commits). Apply the directional restore here too so the rAF's position check sees
|
|
1202
|
+
// the user's actual scrollTop, not the anchoring-adjusted one.
|
|
1203
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1204
|
+
if (!scrollElement) {
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
const restoreTarget = applySafariScrollAnchoringRestore(scrollElement.scrollTop, snapshot);
|
|
1208
|
+
if (restoreTarget !== null) {
|
|
1209
|
+
scrollElement.scrollTop = restoreTarget;
|
|
1210
|
+
}
|
|
1211
|
+
// Schedule the stream-end scroll action
|
|
1212
|
+
this.executeStreamEndScrollAction(snapshot);
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Executes the final scroll action after streaming completes.
|
|
1216
|
+
*
|
|
1217
|
+
* This method runs in a requestAnimationFrame to ensure DOM/layout has settled.
|
|
1218
|
+
* It determines whether to re-pin and scroll to the message, or preserve the
|
|
1219
|
+
* user's scroll position if they scrolled away during streaming.
|
|
1220
|
+
*/
|
|
1221
|
+
executeStreamEndScrollAction(snapshot) {
|
|
1222
|
+
const generation = this.scrollGeneration;
|
|
1223
|
+
requestAnimationFrame(() => {
|
|
1224
|
+
if (!this.isCurrentScrollWork(generation) ||
|
|
1225
|
+
this.reconcileReadingPosition()) {
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1229
|
+
const pinnedElement = this.getPinnedElement();
|
|
1230
|
+
if (!scrollElement?.isConnected ||
|
|
1231
|
+
!pinnedElement ||
|
|
1232
|
+
!this.pinnedOwnerId ||
|
|
1233
|
+
!this.host.hasMessage(this.pinnedOwnerId)) {
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
// Use the pre-commit snapshot as the stream-end decision baseline. Safari can
|
|
1237
|
+
// adjust scrollTop during the final commit (not always in one direction), and
|
|
1238
|
+
// using post-commit scrollTop here can misclassify "near pin" vs "away from pin".
|
|
1239
|
+
const scrollTopForDecision = snapshot ?? scrollElement.scrollTop;
|
|
1240
|
+
// A deliberate scroll-away disengages the stream-end re-pin as well.
|
|
1241
|
+
const streamEndAction = this.userScrolledAwayFromPin
|
|
1242
|
+
? 'recalculate_and_preserve_scroll'
|
|
1243
|
+
: resolveStreamEndAction({
|
|
1244
|
+
nearPinThresholdPx: STREAM_END_NEAR_PIN_THRESHOLD_PX,
|
|
1245
|
+
pinnedScrollTop: this.pinnedScrollTop,
|
|
1246
|
+
scrollTop: scrollTopForDecision,
|
|
1247
|
+
maxScrollTop: scrollElement.scrollHeight - scrollElement.clientHeight,
|
|
1248
|
+
});
|
|
1249
|
+
if (streamEndAction === 're_pin_and_scroll') {
|
|
1250
|
+
this.executePinAndScroll({
|
|
1251
|
+
id: this.pinnedMessageId,
|
|
1252
|
+
messageId: this.pinnedOwnerId,
|
|
1253
|
+
element: pinnedElement,
|
|
1254
|
+
}, scrollElement);
|
|
1255
|
+
}
|
|
1256
|
+
else {
|
|
1257
|
+
// Preserve the user's pre-commit position when they are away from pin.
|
|
1258
|
+
// Zero the spacer directly.
|
|
1259
|
+
const savedScrollTop = scrollTopForDecision;
|
|
1260
|
+
const spacerElem = this.host.getSpacer();
|
|
1261
|
+
if (spacerElem) {
|
|
1262
|
+
this.host.setSpacerHeight(0);
|
|
1263
|
+
}
|
|
1264
|
+
this.domSpacerHeight = 0;
|
|
1265
|
+
if (scrollElement.scrollTop < savedScrollTop) {
|
|
1266
|
+
scrollElement.scrollTop = savedScrollTop;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Scrolls to the message with the given id. The `element` for that id is measured directly.
|
|
1273
|
+
*
|
|
1274
|
+
* @param messageElement The element of the message to scroll to.
|
|
1275
|
+
* @param animate Whether or not the scroll should be animated. Defaults to false.
|
|
1276
|
+
*/
|
|
1277
|
+
doScrollToMessageElement(messageElement, animate = false) {
|
|
1278
|
+
try {
|
|
1279
|
+
if (messageElement) {
|
|
1280
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1281
|
+
if (!scrollElement) {
|
|
1282
|
+
return;
|
|
1283
|
+
}
|
|
1284
|
+
// Scroll to the top of the message.
|
|
1285
|
+
const setScrollTop = messageElement.offsetTop;
|
|
1286
|
+
// Do the scrolling.
|
|
1287
|
+
this.prepareExplicitScroll();
|
|
1288
|
+
doScrollElement(scrollElement, setScrollTop, 0, animate);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
catch (error) {
|
|
1292
|
+
// Just ignore any errors. It's not the end of the world if scrolling doesn't work for any reason.
|
|
1293
|
+
console.error('An error occurred while attempting to scroll.', error);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Calculates if there are any messages at the bottom out of the scroll view of the container.
|
|
1298
|
+
* The result determines if the user should be told if they need to scroll down to view more
|
|
1299
|
+
* messages or not. (Was `checkMessagesOutOfView`.)
|
|
1300
|
+
*/
|
|
1301
|
+
isScrolledAwayFromBottom() {
|
|
1302
|
+
const scrollElement = this.host.getScrollContainer();
|
|
1303
|
+
if (!scrollElement) {
|
|
1304
|
+
return false;
|
|
1305
|
+
}
|
|
1306
|
+
// Subtract the real DOM spacer height to get the effective scroll height.
|
|
1307
|
+
// This prevents the scroll-to-bottom button from appearing for blank spacer space.
|
|
1308
|
+
return hasMessagesOutOfView({
|
|
1309
|
+
clientHeight: scrollElement.clientHeight,
|
|
1310
|
+
domSpacerHeight: this.domSpacerHeight,
|
|
1311
|
+
scrollHeight: scrollElement.scrollHeight,
|
|
1312
|
+
scrollTop: scrollElement.scrollTop,
|
|
1313
|
+
thresholdPx: SCROLL_DOWN_THRESHOLD_PX,
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export { MessagesScrollController };
|
|
1319
|
+
//# sourceMappingURL=messages-scroll-controller.js.map
|