@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,262 @@
|
|
|
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 { getDeepActiveElement, walkComposedTree, tryFocus, isElementInvisible } from '../../globals/utils/focus-utils.js';
|
|
9
|
+
import prefix from '../../globals/settings.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @license
|
|
13
|
+
*
|
|
14
|
+
* Copyright IBM Corp. 2025, 2026
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
function composedContains(container, element) {
|
|
20
|
+
for (let node = element; node;) {
|
|
21
|
+
if (node === container) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
node = node.parentElement ?? node.getRootNode().host;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
function hasLostPanelFocus(focused, focusPath) {
|
|
29
|
+
return (focused === document.body ||
|
|
30
|
+
(focused instanceof HTMLElement &&
|
|
31
|
+
focused.shadowRoot &&
|
|
32
|
+
focusPath.includes(focused)));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @eventOwner {import('./aichat-shell.js').default}
|
|
36
|
+
*/
|
|
37
|
+
class PanelManager {
|
|
38
|
+
constructor(panelsSlot, shellRoot) {
|
|
39
|
+
this.panelsSlot = panelsSlot;
|
|
40
|
+
this.shellRoot = shellRoot;
|
|
41
|
+
this.panelObservers = new Map();
|
|
42
|
+
this.slotElements = [];
|
|
43
|
+
this.returnTargets = new Map();
|
|
44
|
+
this.focusPath = [];
|
|
45
|
+
this.contentObserver = new MutationObserver(() => {
|
|
46
|
+
this.observeAssignedPanels();
|
|
47
|
+
this.updateState();
|
|
48
|
+
});
|
|
49
|
+
this.onSlotChange = () => {
|
|
50
|
+
this.observeAssignedPanels();
|
|
51
|
+
this.updateState();
|
|
52
|
+
};
|
|
53
|
+
this.onPanelMutation = () => {
|
|
54
|
+
this.updateState();
|
|
55
|
+
};
|
|
56
|
+
this.onOpenStart = (event) => {
|
|
57
|
+
const panel = event.composedPath()[0];
|
|
58
|
+
if (panel?.localName === `${prefix}-aichat-panel` &&
|
|
59
|
+
!this.returnTargets.has(panel)) {
|
|
60
|
+
this.returnTargets.set(panel, getDeepActiveElement());
|
|
61
|
+
}
|
|
62
|
+
this.updateState();
|
|
63
|
+
};
|
|
64
|
+
this.onFocusIn = (event) => {
|
|
65
|
+
this.focusPath = event.composedPath();
|
|
66
|
+
this.focusedPanel = this.getAssignedPanelElements().find((panel) => this.focusPath.includes(panel));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
connect() {
|
|
70
|
+
document.addEventListener('focusin', this.onFocusIn);
|
|
71
|
+
this.shellRoot.addEventListener('openstart', this.onOpenStart, true);
|
|
72
|
+
this.shellRoot.addEventListener('closestart', this.onPanelMutation, true);
|
|
73
|
+
this.syncSlotElements();
|
|
74
|
+
this.panelsSlot.addEventListener('slotchange', this.onSlotChange);
|
|
75
|
+
this.observeAssignedPanels();
|
|
76
|
+
this.updateState();
|
|
77
|
+
}
|
|
78
|
+
disconnect() {
|
|
79
|
+
document.removeEventListener('focusin', this.onFocusIn);
|
|
80
|
+
this.shellRoot.removeEventListener('openstart', this.onOpenStart, true);
|
|
81
|
+
this.shellRoot.removeEventListener('closestart', this.onPanelMutation, true);
|
|
82
|
+
this.contentObserver.disconnect();
|
|
83
|
+
if (this.restoreFrame !== undefined) {
|
|
84
|
+
cancelAnimationFrame(this.restoreFrame);
|
|
85
|
+
}
|
|
86
|
+
this.returnTargets.clear();
|
|
87
|
+
this.panelsSlot.removeEventListener('slotchange', this.onSlotChange);
|
|
88
|
+
this.stopObservingPanels();
|
|
89
|
+
}
|
|
90
|
+
refresh() {
|
|
91
|
+
this.observeAssignedPanels();
|
|
92
|
+
this.updateState();
|
|
93
|
+
}
|
|
94
|
+
observeAssignedPanels() {
|
|
95
|
+
this.contentObserver.disconnect();
|
|
96
|
+
for (const element of this.panelsSlot.assignedElements()) {
|
|
97
|
+
this.contentObserver.observe(element, { childList: true, subtree: true });
|
|
98
|
+
}
|
|
99
|
+
const panels = this.getAssignedPanelElements();
|
|
100
|
+
const current = new Set(panels);
|
|
101
|
+
for (const [panel, observer] of this.panelObservers) {
|
|
102
|
+
if (!current.has(panel)) {
|
|
103
|
+
observer.disconnect();
|
|
104
|
+
this.panelObservers.delete(panel);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
for (const panel of panels) {
|
|
108
|
+
if (!this.panelObservers.has(panel)) {
|
|
109
|
+
const observer = new MutationObserver(this.onPanelMutation);
|
|
110
|
+
observer.observe(panel, { attributes: true });
|
|
111
|
+
this.panelObservers.set(panel, observer);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
stopObservingPanels() {
|
|
116
|
+
for (const observer of this.panelObservers.values()) {
|
|
117
|
+
observer.disconnect();
|
|
118
|
+
}
|
|
119
|
+
this.panelObservers.clear();
|
|
120
|
+
}
|
|
121
|
+
shouldRestoreOnClose(previous, active, focused) {
|
|
122
|
+
return Boolean(previous &&
|
|
123
|
+
previous !== active?.element &&
|
|
124
|
+
(!previous.isConnected || !previous.hasAttribute('open')) &&
|
|
125
|
+
(composedContains(previous, focused) ||
|
|
126
|
+
(hasLostPanelFocus(focused, this.focusPath) &&
|
|
127
|
+
this.focusedPanel === previous)));
|
|
128
|
+
}
|
|
129
|
+
updateState() {
|
|
130
|
+
this.syncSlotElements();
|
|
131
|
+
const panels = this.getPanelStates();
|
|
132
|
+
const active = this.pickActivePanel(panels);
|
|
133
|
+
const previous = this.activePanel;
|
|
134
|
+
const focused = getDeepActiveElement();
|
|
135
|
+
const shouldRestore = this.shouldRestoreOnClose(previous, active, focused);
|
|
136
|
+
this.activePanel = active?.element;
|
|
137
|
+
if (active && !this.returnTargets.has(active.element)) {
|
|
138
|
+
this.returnTargets.set(active.element, focused);
|
|
139
|
+
}
|
|
140
|
+
const hasActive = Boolean(active);
|
|
141
|
+
const headerInert = hasActive && !active?.showChatHeader;
|
|
142
|
+
this.slotElements.forEach((slot) => {
|
|
143
|
+
const slotName = slot.dataset.panelSlot;
|
|
144
|
+
if (slotName === 'header' || slotName === 'header-after') {
|
|
145
|
+
this.setInert(slot, headerInert);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
this.setInert(slot, hasActive);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
panels.forEach((panel) => {
|
|
152
|
+
const shouldInert = hasActive && panel.element !== active?.element && panel.open;
|
|
153
|
+
this.setInert(panel.element, shouldInert);
|
|
154
|
+
});
|
|
155
|
+
if (shouldRestore && previous) {
|
|
156
|
+
const target = this.returnTargets.get(previous);
|
|
157
|
+
if (this.restoreFrame !== undefined) {
|
|
158
|
+
cancelAnimationFrame(this.restoreFrame);
|
|
159
|
+
}
|
|
160
|
+
this.restoreFrame = requestAnimationFrame(() => this.restoreFocus(previous, target));
|
|
161
|
+
}
|
|
162
|
+
for (const panel of this.returnTargets.keys()) {
|
|
163
|
+
if (!panel.isConnected || !panel.hasAttribute('open')) {
|
|
164
|
+
this.returnTargets.delete(panel);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
const isAnyPanelAnimating = panels.some((panelState) => this.isPanelAnimating(panelState.element));
|
|
168
|
+
this.shellRoot.classList.toggle('shell--panels-animating', isAnyPanelAnimating);
|
|
169
|
+
}
|
|
170
|
+
restoreFocus(panel, target) {
|
|
171
|
+
const focused = getDeepActiveElement();
|
|
172
|
+
if (!hasLostPanelFocus(focused, this.focusPath) &&
|
|
173
|
+
!composedContains(panel, focused) &&
|
|
174
|
+
!(this.activePanel && composedContains(this.activePanel, focused))) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (this.activePanel && this.isPanelAnimating(this.activePanel)) {
|
|
178
|
+
this.restoreFrame = requestAnimationFrame(() => this.restoreFocus(panel, target));
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (target instanceof HTMLElement &&
|
|
182
|
+
target.isConnected &&
|
|
183
|
+
(!this.activePanel || composedContains(this.activePanel, target))) {
|
|
184
|
+
target.focus();
|
|
185
|
+
if (getDeepActiveElement() === target) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
if (!this.activePanel) {
|
|
190
|
+
this.shellRoot.dispatchEvent(new CustomEvent(`${prefix}-aichat-shell-panel-focus-fallback`, {
|
|
191
|
+
bubbles: true,
|
|
192
|
+
composed: true,
|
|
193
|
+
}));
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
for (const node of walkComposedTree(this.activePanel, Node.ELEMENT_NODE, undefined, (node) => node instanceof Element && isElementInvisible(node))) {
|
|
197
|
+
if (node instanceof HTMLElement && tryFocus(node)) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
const dialog = this.activePanel.shadowRoot?.querySelector('[role="dialog"]');
|
|
202
|
+
if (dialog) {
|
|
203
|
+
dialog.tabIndex = -1;
|
|
204
|
+
dialog.focus();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
getAssignedPanelElements() {
|
|
208
|
+
const internalPanels = Array.from(this.shellRoot.querySelectorAll('cds-aichat-panel[data-internal-panel]'));
|
|
209
|
+
const panelsElement = this.panelsSlot
|
|
210
|
+
.assignedElements({ flatten: true })
|
|
211
|
+
.find((element) => element instanceof HTMLElement);
|
|
212
|
+
const slottedPanels = panelsElement
|
|
213
|
+
? Array.from(panelsElement.querySelectorAll('cds-aichat-panel'))
|
|
214
|
+
: [];
|
|
215
|
+
const panels = [...internalPanels, ...slottedPanels];
|
|
216
|
+
return Array.from(new Set(panels));
|
|
217
|
+
}
|
|
218
|
+
getPanelStates() {
|
|
219
|
+
const panels = this.getAssignedPanelElements();
|
|
220
|
+
return panels.map((element, index) => ({
|
|
221
|
+
element,
|
|
222
|
+
open: element.hasAttribute('open'),
|
|
223
|
+
priority: Number(element.getAttribute('priority') ?? 0),
|
|
224
|
+
showChatHeader: element.hasAttribute('show-chat-header'),
|
|
225
|
+
index,
|
|
226
|
+
}));
|
|
227
|
+
}
|
|
228
|
+
pickActivePanel(panels) {
|
|
229
|
+
if (panels?.length) {
|
|
230
|
+
const sortedPanels = panels
|
|
231
|
+
.filter((panel) => panel.open)
|
|
232
|
+
.sort((a, b) => {
|
|
233
|
+
if (a.priority !== b.priority) {
|
|
234
|
+
return b.priority - a.priority;
|
|
235
|
+
}
|
|
236
|
+
return b.index - a.index;
|
|
237
|
+
});
|
|
238
|
+
return sortedPanels[0];
|
|
239
|
+
}
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
setInert(target, value) {
|
|
243
|
+
if (!target || target.inert === value) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (value) {
|
|
247
|
+
target.inert = true;
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
target.inert = false;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
isPanelAnimating(panelElement) {
|
|
254
|
+
return panelElement.classList.contains('panel-container--animating');
|
|
255
|
+
}
|
|
256
|
+
syncSlotElements() {
|
|
257
|
+
this.slotElements = Array.from(this.shellRoot.querySelectorAll('[data-panel-slot]'));
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export { PanelManager };
|
|
262
|
+
//# sourceMappingURL=panel-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel-manager.js","sources":["../../../src/components/aichat-shell/panel-manager.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n getDeepActiveElement,\n isElementInvisible,\n tryFocus,\n walkComposedTree,\n} from '../../globals/utils/focus-utils.js';\nimport { prefix } from '../../globals/settings.js';\n\nfunction composedContains(\n container: HTMLElement,\n element: Element | null\n): boolean {\n for (let node = element; node;) {\n if (node === container) {\n return true;\n }\n node = node.parentElement ?? (node.getRootNode() as ShadowRoot).host;\n }\n return false;\n}\n\nfunction hasLostPanelFocus(focused: Element | null, focusPath: EventTarget[]) {\n return (\n focused === document.body ||\n (focused instanceof HTMLElement &&\n focused.shadowRoot &&\n focusPath.includes(focused))\n );\n}\n\ninterface PanelState {\n element: HTMLElement;\n open: boolean;\n priority: number;\n showChatHeader: boolean;\n index: number;\n}\n\n/**\n * @eventOwner {import('./aichat-shell.js').default}\n */\nexport class PanelManager {\n private panelObservers = new Map<HTMLElement, MutationObserver>();\n private slotElements: HTMLElement[] = [];\n private activePanel?: HTMLElement;\n private returnTargets = new Map<HTMLElement, Element | null>();\n private focusedPanel?: HTMLElement;\n private focusPath: EventTarget[] = [];\n private restoreFrame?: number;\n private contentObserver = new MutationObserver(() => {\n this.observeAssignedPanels();\n this.updateState();\n });\n\n constructor(\n private readonly panelsSlot: HTMLSlotElement,\n private readonly shellRoot: HTMLElement\n ) {}\n\n connect() {\n document.addEventListener('focusin', this.onFocusIn);\n this.shellRoot.addEventListener('openstart', this.onOpenStart, true);\n this.shellRoot.addEventListener('closestart', this.onPanelMutation, true);\n this.syncSlotElements();\n this.panelsSlot.addEventListener('slotchange', this.onSlotChange);\n this.observeAssignedPanels();\n this.updateState();\n }\n\n disconnect() {\n document.removeEventListener('focusin', this.onFocusIn);\n this.shellRoot.removeEventListener('openstart', this.onOpenStart, true);\n this.shellRoot.removeEventListener(\n 'closestart',\n this.onPanelMutation,\n true\n );\n this.contentObserver.disconnect();\n if (this.restoreFrame !== undefined) {\n cancelAnimationFrame(this.restoreFrame);\n }\n this.returnTargets.clear();\n this.panelsSlot.removeEventListener('slotchange', this.onSlotChange);\n this.stopObservingPanels();\n }\n\n refresh() {\n this.observeAssignedPanels();\n this.updateState();\n }\n\n private onSlotChange = () => {\n this.observeAssignedPanels();\n this.updateState();\n };\n\n private observeAssignedPanels() {\n this.contentObserver.disconnect();\n for (const element of this.panelsSlot.assignedElements()) {\n this.contentObserver.observe(element, { childList: true, subtree: true });\n }\n const panels = this.getAssignedPanelElements();\n const current = new Set(panels);\n\n for (const [panel, observer] of this.panelObservers) {\n if (!current.has(panel)) {\n observer.disconnect();\n this.panelObservers.delete(panel);\n }\n }\n\n for (const panel of panels) {\n if (!this.panelObservers.has(panel)) {\n const observer = new MutationObserver(this.onPanelMutation);\n observer.observe(panel, { attributes: true });\n this.panelObservers.set(panel, observer);\n }\n }\n }\n\n private stopObservingPanels() {\n for (const observer of this.panelObservers.values()) {\n observer.disconnect();\n }\n this.panelObservers.clear();\n }\n\n private onPanelMutation = () => {\n this.updateState();\n };\n\n private shouldRestoreOnClose(\n previous: HTMLElement | undefined,\n active: PanelState | undefined,\n focused: Element | null\n ): boolean {\n return Boolean(\n previous &&\n previous !== active?.element &&\n (!previous.isConnected || !previous.hasAttribute('open')) &&\n (composedContains(previous, focused) ||\n (hasLostPanelFocus(focused, this.focusPath) &&\n this.focusedPanel === previous))\n );\n }\n\n private updateState() {\n this.syncSlotElements();\n const panels = this.getPanelStates();\n const active = this.pickActivePanel(panels);\n const previous = this.activePanel;\n const focused = getDeepActiveElement();\n const shouldRestore = this.shouldRestoreOnClose(previous, active, focused);\n this.activePanel = active?.element;\n if (active && !this.returnTargets.has(active.element)) {\n this.returnTargets.set(active.element, focused);\n }\n\n const hasActive = Boolean(active);\n const headerInert = hasActive && !active?.showChatHeader;\n\n this.slotElements.forEach((slot) => {\n const slotName = slot.dataset.panelSlot;\n if (slotName === 'header' || slotName === 'header-after') {\n this.setInert(slot, headerInert);\n } else {\n this.setInert(slot, hasActive);\n }\n });\n\n panels.forEach((panel) => {\n const shouldInert =\n hasActive && panel.element !== active?.element && panel.open;\n this.setInert(panel.element, shouldInert);\n });\n\n if (shouldRestore && previous) {\n const target = this.returnTargets.get(previous);\n if (this.restoreFrame !== undefined) {\n cancelAnimationFrame(this.restoreFrame);\n }\n this.restoreFrame = requestAnimationFrame(() =>\n this.restoreFocus(previous, target)\n );\n }\n for (const panel of this.returnTargets.keys()) {\n if (!panel.isConnected || !panel.hasAttribute('open')) {\n this.returnTargets.delete(panel);\n }\n }\n\n const isAnyPanelAnimating = panels.some((panelState) =>\n this.isPanelAnimating(panelState.element)\n );\n this.shellRoot.classList.toggle(\n 'shell--panels-animating',\n isAnyPanelAnimating\n );\n }\n\n private onOpenStart = (event: Event) => {\n const panel = event.composedPath()[0] as HTMLElement;\n if (\n panel?.localName === `${prefix}-aichat-panel` &&\n !this.returnTargets.has(panel)\n ) {\n this.returnTargets.set(panel, getDeepActiveElement());\n }\n this.updateState();\n };\n\n private onFocusIn = (event: FocusEvent) => {\n this.focusPath = event.composedPath();\n this.focusedPanel = this.getAssignedPanelElements().find((panel) =>\n this.focusPath.includes(panel)\n );\n };\n\n private restoreFocus(panel: HTMLElement, target: Element | null | undefined) {\n const focused = getDeepActiveElement();\n if (\n !hasLostPanelFocus(focused, this.focusPath) &&\n !composedContains(panel, focused) &&\n !(this.activePanel && composedContains(this.activePanel, focused))\n ) {\n return;\n }\n if (this.activePanel && this.isPanelAnimating(this.activePanel)) {\n this.restoreFrame = requestAnimationFrame(() =>\n this.restoreFocus(panel, target)\n );\n return;\n }\n if (\n target instanceof HTMLElement &&\n target.isConnected &&\n (!this.activePanel || composedContains(this.activePanel, target))\n ) {\n target.focus();\n if (getDeepActiveElement() === target) {\n return;\n }\n }\n if (!this.activePanel) {\n this.shellRoot.dispatchEvent(\n new CustomEvent<null>(`${prefix}-aichat-shell-panel-focus-fallback`, {\n bubbles: true,\n composed: true,\n })\n );\n return;\n }\n for (const node of walkComposedTree(\n this.activePanel,\n Node.ELEMENT_NODE,\n undefined,\n (node) => node instanceof Element && isElementInvisible(node)\n )) {\n if (node instanceof HTMLElement && tryFocus(node)) {\n return;\n }\n }\n const dialog =\n this.activePanel.shadowRoot?.querySelector<HTMLElement>(\n '[role=\"dialog\"]'\n );\n if (dialog) {\n dialog.tabIndex = -1;\n dialog.focus();\n }\n }\n\n private getAssignedPanelElements(): HTMLElement[] {\n const internalPanels = Array.from(\n this.shellRoot.querySelectorAll<HTMLElement>(\n 'cds-aichat-panel[data-internal-panel]'\n )\n );\n\n const panelsElement = this.panelsSlot\n .assignedElements({ flatten: true })\n .find(\n (element): element is HTMLElement => element instanceof HTMLElement\n );\n const slottedPanels = panelsElement\n ? Array.from(\n panelsElement.querySelectorAll<HTMLElement>('cds-aichat-panel')\n )\n : [];\n\n const panels = [...internalPanels, ...slottedPanels];\n return Array.from(new Set(panels));\n }\n\n private getPanelStates(): PanelState[] {\n const panels = this.getAssignedPanelElements();\n return panels.map((element, index) => ({\n element,\n open: element.hasAttribute('open'),\n priority: Number(element.getAttribute('priority') ?? 0),\n showChatHeader: element.hasAttribute('show-chat-header'),\n index,\n }));\n }\n\n private pickActivePanel(panels: PanelState[]): PanelState | undefined {\n if (panels?.length) {\n const sortedPanels = panels\n .filter((panel) => panel.open)\n .sort((a, b) => {\n if (a.priority !== b.priority) {\n return b.priority - a.priority;\n }\n return b.index - a.index;\n });\n\n return sortedPanels[0];\n }\n return;\n }\n\n private setInert(target: HTMLElement | undefined, value: boolean) {\n if (!target || target.inert === value) {\n return;\n }\n if (value) {\n target.inert = true;\n } else {\n target.inert = false;\n }\n }\n\n private isPanelAnimating(panelElement: HTMLElement) {\n return panelElement.classList.contains('panel-container--animating');\n }\n\n private syncSlotElements() {\n this.slotElements = Array.from(\n this.shellRoot.querySelectorAll<HTMLElement>('[data-panel-slot]')\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAUH,SAAS,gBAAgB,CACvB,SAAsB,EACtB,OAAuB,EAAA;AAEvB,IAAA,KAAK,IAAI,IAAI,GAAG,OAAO,EAAE,IAAI,GAAG;AAC9B,QAAA,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,YAAA,OAAO,IAAI;QACb;QACA,IAAI,GAAG,IAAI,CAAC,aAAa,IAAK,IAAI,CAAC,WAAW,EAAiB,CAAC,IAAI;IACtE;AACA,IAAA,OAAO,KAAK;AACd;AAEA,SAAS,iBAAiB,CAAC,OAAuB,EAAE,SAAwB,EAAA;AAC1E,IAAA,QACE,OAAO,KAAK,QAAQ,CAAC,IAAI;SACxB,OAAO,YAAY,WAAW;AAC7B,YAAA,OAAO,CAAC,UAAU;AAClB,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-manager.js","sources":["../../../src/components/aichat-shell/resize-observer-manager.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { WidthState, BodyState } from './types.js';\n\n/**\n * Manages all resize observation logic for the chat shell.\n * Handles header height, input/messages width, and main content body width observations.\n */\nexport class ResizeObserverManager {\n private headerResizeObserver?: ResizeObserver;\n private inputAndMessagesResizeObserver?: ResizeObserver;\n private mainContentBodyResizeObserver?: ResizeObserver;\n private cssPropertyObserver?: MutationObserver;\n private lastKnownMessagesMaxWidth?: number;\n\n constructor(\n private readonly shellRoot: ShadowRoot,\n private readonly hostElement: HTMLElement\n ) {}\n\n /**\n * Clean up all observers\n */\n disconnect(): void {\n this.headerResizeObserver?.disconnect();\n this.inputAndMessagesResizeObserver?.disconnect();\n this.mainContentBodyResizeObserver?.disconnect();\n this.cssPropertyObserver?.disconnect();\n }\n\n /**\n * Observe header height changes\n */\n observeHeaderHeight(onHeightChange: (height: number) => void): void {\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n\n const headerWrapper = this.shellRoot.querySelector<HTMLElement>(\n '.header-with-header-after'\n );\n\n if (!headerWrapper) {\n return;\n }\n\n const updateHeight = (height: number) => {\n onHeightChange(height);\n };\n\n const measure = () => {\n const rect = headerWrapper.getBoundingClientRect();\n updateHeight(rect.height);\n };\n\n this.headerResizeObserver = new ResizeObserver((entries) => {\n // Use requestAnimationFrame to avoid ResizeObserver loop errors\n requestAnimationFrame(() => {\n for (const entry of entries) {\n if (entry.target !== headerWrapper) {\n continue;\n }\n const borderBoxSize = Array.isArray(entry.borderBoxSize)\n ? entry.borderBoxSize[0]\n : entry.borderBoxSize;\n if (borderBoxSize?.blockSize) {\n updateHeight(borderBoxSize.blockSize);\n } else {\n updateHeight(entry.contentRect.height);\n }\n }\n });\n });\n\n this.headerResizeObserver.observe(headerWrapper);\n measure();\n }\n\n /**\n * Observe input and messages width to determine if at max width\n */\n observeInputAndMessagesWidth(\n onWidthChange: (state: WidthState) => void,\n onInitialMeasurement?: () => void\n ): void {\n if (typeof ResizeObserver === 'undefined') {\n onInitialMeasurement?.();\n return;\n }\n\n const messagesMaxWidth = this.getMessagesMaxWidth();\n\n const updateAtMaxWidth = (hostWidth: number) => {\n // When host is less than or equal to max-width, input-and-messages is \"at max width\" (filling container)\n const isAtMaxWidth = hostWidth <= messagesMaxWidth;\n onWidthChange({ isAtMaxWidth, currentWidth: hostWidth });\n };\n\n const measure = () => {\n const rect = this.hostElement.getBoundingClientRect();\n updateAtMaxWidth(rect.width);\n // Call the initial measurement callback after first measurement\n onInitialMeasurement?.();\n };\n\n this.inputAndMessagesResizeObserver = new ResizeObserver((entries) => {\n // Use requestAnimationFrame to avoid ResizeObserver loop errors\n requestAnimationFrame(() => {\n for (const entry of entries) {\n if (entry.target !== this.hostElement) {\n continue;\n }\n const borderBoxSize = Array.isArray(entry.borderBoxSize)\n ? entry.borderBoxSize[0]\n : entry.borderBoxSize;\n if (borderBoxSize?.inlineSize) {\n updateAtMaxWidth(borderBoxSize.inlineSize);\n } else {\n updateAtMaxWidth(entry.contentRect.width);\n }\n }\n });\n });\n\n this.inputAndMessagesResizeObserver.observe(this.hostElement);\n measure();\n }\n\n /**\n * Observe main content body width to determine history visibility\n */\n observeMainContentBodyWidth(\n showHistory: boolean,\n onVisibilityChange: (state: BodyState) => void,\n onInitialMeasurement?: () => void\n ): void {\n if (typeof ResizeObserver === 'undefined' || !showHistory) {\n onInitialMeasurement?.();\n return;\n }\n\n const mainContentBody =\n this.shellRoot.querySelector<HTMLElement>('.main-content-body');\n\n if (!mainContentBody) {\n onInitialMeasurement?.();\n return;\n }\n\n const updateHistoryVisibility = (width: number) => {\n const messagesMinWidth = this.getCssLengthFromProperty(\n '--cds-aichat-messages-min-width',\n 320\n );\n const historyWidth = this.getCssLengthFromProperty(\n '--cds-aichat-history-width',\n 320\n );\n\n const requiredWidth = messagesMinWidth + historyWidth;\n const shouldRenderHistory = width >= requiredWidth;\n\n onVisibilityChange({ shouldRenderHistory, width });\n };\n\n this.mainContentBodyResizeObserver = new ResizeObserver((entries) => {\n // Use requestAnimationFrame to avoid ResizeObserver loop errors\n requestAnimationFrame(() => {\n for (const entry of entries) {\n if (entry.target !== mainContentBody) {\n continue;\n }\n const borderBoxSize = Array.isArray(entry.borderBoxSize)\n ? entry.borderBoxSize[0]\n : entry.borderBoxSize;\n if (borderBoxSize?.inlineSize) {\n updateHistoryVisibility(borderBoxSize.inlineSize);\n } else {\n updateHistoryVisibility(entry.contentRect.width);\n }\n }\n });\n });\n\n this.mainContentBodyResizeObserver.observe(mainContentBody);\n\n // Initial measurement\n const rect = mainContentBody.getBoundingClientRect();\n updateHistoryVisibility(rect.width);\n\n // Mark initialization complete after initial measurement\n onInitialMeasurement?.();\n }\n\n /**\n * Get CSS length value from a custom property\n */\n getCssLengthFromProperty(property: string, fallback: number): number {\n if (!this.hostElement) {\n return fallback;\n }\n\n const value = getComputedStyle(this.hostElement)\n .getPropertyValue(property)\n .trim();\n\n if (!value) {\n return fallback;\n }\n\n const parsed = parseFloat(value);\n return isNaN(parsed) ? fallback : parsed;\n }\n\n /**\n * Get the messages max width from CSS\n */\n getMessagesMaxWidth(): number {\n const value = this.getCssLengthFromProperty(\n '--cds-aichat-messages-max-width',\n 672\n );\n\n // Cache the value for performance\n const parsed = parseFloat(String(value));\n this.lastKnownMessagesMaxWidth = isNaN(parsed) ? 672 : parsed;\n return this.lastKnownMessagesMaxWidth;\n }\n\n /**\n * Check if messages max width has changed\n */\n checkMessagesMaxWidthChange(): boolean {\n const currentMaxWidth = this.getMessagesMaxWidth();\n const hasChanged =\n this.lastKnownMessagesMaxWidth !== undefined &&\n currentMaxWidth !== this.lastKnownMessagesMaxWidth;\n\n if (hasChanged) {\n this.lastKnownMessagesMaxWidth = currentMaxWidth;\n }\n\n return hasChanged;\n }\n\n /**\n * Observe CSS custom properties for changes\n */\n observeCssProperties(onPropertyChange: () => void): void {\n if (typeof MutationObserver === 'undefined') {\n return;\n }\n\n this.cssPropertyObserver = new MutationObserver(() => {\n if (this.checkMessagesMaxWidthChange()) {\n onPropertyChange();\n }\n });\n\n this.cssPropertyObserver.observe(this.hostElement, {\n attributes: true,\n attributeFilter: ['style'],\n });\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAIH;;;AAGG;MACU,qBAAqB,CAAA;IAOhC,WAAA,CACmB,SAAqB,EACrB,WAAwB,EAAA;QADxB,IAAA,CAAA,SAAS,GAAT,SAAS;QACT,IAAA,CAAA,WAAW,GAAX,WAAW;IAC3B;AAEH;;AAEG;IACH,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,oBAAoB,EAAE,UAAU,EAAE;AACvC,QAAA,IAAI,CAAC,8BAA8B,EAAE,UAAU,EAAE;AACjD,QAAA,IAAI,CAAC,6BAA6B,EAAE,UAAU,EAAE;AAChD,QAAA,IAAI,CAAC,mBAAmB,EAAE,UAAU,EAAE;IACxC;AAEA;;AAEG;AACH,IAAA,mBAAmB,CAAC,cAAwC,EAAA;AAC1D,QAAA,IAAI,OAAO,cAAc,KAAK,WAAW,EAAE;YACzC;QACF;QAEA,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAChD,2BAA2B,CAC5B;QAED,IAAI,CAAC,aAAa,EAAE;YAClB;QACF;AAEA,QAAA,MAAM,YAAY,GAAG,CAAC,MAAc,KAAI;YACtC,cAAc,CAAC,MAAM,CAAC;AACxB,QAAA,CAAC;QAED,MAAM,OAAO,GAAG,MAAK;AACnB,YAAA,MAAM,IAAI,GAAG,aAAa,CAAC,qBAAqB,EAAE;AAClD,YAAA,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;AAC3B,QAAA,CAAC;QAED,IAAI,CAAC,oBAAoB,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,KAAI;;YAEzD,qBAAqB,CAAC,MAAK;AACzB,gBAAA,KAAK,M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ent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { SlotConfig, SlotContentState } from './types.js';\n\n/**\n * Observes and tracks slot content changes in the chat shell.\n * Monitors specific slots for content and notifies when changes occur.\n */\nexport class SlotObserver {\n private state: SlotContentState = {\n hasHeaderContent: false,\n hasHeaderAfterContent: false,\n hasFooterContent: false,\n hasInputContent: false,\n hasInputAfterContent: false,\n hasInputBeforeContent: false,\n };\n\n private slots: HTMLSlotElement[] = [];\n private onChangeCallback?: () => void;\n\n constructor(\n private readonly shellRoot: ShadowRoot,\n private readonly observedSlots: readonly SlotConfig[]\n ) {}\n\n /**\n * Start observing slot content changes\n */\n connect(onChangeCallback: () => void): void {\n this.onChangeCallback = onChangeCallback;\n this.updateSlotStates(true);\n this.observeSlotChanges();\n }\n\n /**\n * Stop observing slot content changes\n */\n disconnect(): void {\n this.slots.forEach((slot) => {\n slot.removeEventListener('slotchange', this.handleSlotChange);\n });\n this.slots = [];\n this.onChangeCallback = undefined;\n }\n\n /**\n * Get current slot content state\n */\n getSlotContentState(): Readonly<SlotContentState> {\n return { ...this.state };\n }\n\n /**\n * Check if a specific slot has content\n */\n hasSlotContent(slotName: string): boolean {\n const slot = this.shellRoot.querySelector<HTMLSlotElement>(\n `slot[name=\"${slotName}\"]`\n );\n if (!slot) {\n return false;\n }\n\n return slot.assignedNodes({ flatten: true }).some((node) => {\n // Check for non-empty text nodes\n if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {\n return true;\n }\n\n // Check for element nodes\n if (node.nodeType === Node.ELEMENT_NODE) {\n const element = node as Element;\n return this.hasElementContent(element);\n }\n\n return false;\n });\n }\n\n /**\n * Check if an element has meaningful content\n */\n private hasElementContent(element: Element): boolean {\n // Check if element has child nodes with meaningful content (light DOM)\n const hasChildContent = Array.from(element.childNodes).some((child) => {\n if (child.nodeType === Node.TEXT_NODE) {\n return child.textContent?.trim();\n }\n if (child.nodeType === Node.ELEMENT_NODE) {\n const childElement = child as Element;\n // Check slot elements recursively - they may have assigned content\n if (childElement.tagName.toLowerCase() === 'slot') {\n const slotElement = childElement as HTMLSlotElement;\n const assignedNodes = slotElement.assignedNodes({ flatten: true });\n return assignedNodes.some((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n return node.textContent?.trim();\n }\n if (node.nodeType === Node.ELEMENT_NODE) {\n return this.hasElementContent(node as Element);\n }\n return false;\n });\n }\n return true;\n }\n return false;\n });\n\n if (hasChildContent) {\n return true;\n }\n\n // If no light DOM children, check if element has shadow root (Shadow DOM content)\n if ((element as any).shadowRoot) {\n return true;\n }\n\n // Check text content as fallback\n const textContent = element.textContent?.trim();\n return Boolean(textContent);\n }\n\n /**\n * Update the state for all observed slots\n */\n private updateSlotStates(forceCallback = false): void {\n const previousStates = new Map(\n this.observedSlots.map(({ stateKey }) => [stateKey, this.state[stateKey]])\n );\n\n this.observedSlots.forEach(({ name, stateKey }) => {\n this.state[stateKey] = this.hasSlotContent(name);\n });\n\n const hasChanged = this.observedSlots.some(\n ({ stateKey }) => previousStates.get(stateKey) !== this.state[stateKey]\n );\n\n if ((hasChanged || forceCallback) && this.onChangeCallback) {\n this.onChangeCallback();\n }\n }\n\n /**\n * Set up slot change listeners\n */\n private observeSlotChanges(): void {\n this.slots = this.observedSlots\n .map(({ name }) =>\n this.shellRoot.querySelector<HTMLSlotElement>(`slot[name=\"${name}\"]`)\n )\n .filter((slot): slot is HTMLSlotElement => slot !== null);\n\n this.slots.forEach((slot) => {\n slot.addEventListener('slotchange', this.handleSlotChange);\n });\n }\n\n /**\n * Handle slot change events\n */\n private handleSlotChange = (): void => {\n this.updateSlotStates();\n };\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAIH;;;AAGG;MACU,YAAY,CAAA;IAavB,WAAA,CACmB,SAAqB,EACrB,aAAoC,EAAA;QADpC,IAAA,CAAA,SAAS,GAAT,SAAS;QACT,I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BAAkB,GAAA;AACxB,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;AACf,aAAA,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,KACZ,IAAI,CAAC,SAAS,CAAC,aAAa,CAAkB,cAAc,IAAI,CAAA,EAAA,CAAI,CAAC;aAEtE,MAAM,CAAC,CAAC,IAAI,KAA8B,IAAI,KAAK,IAAI,CAAC;QAE3D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;YAC1B,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC;AAC5D,QAAA,CAAC,CAAC;IACJ;AAQD;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-manager-utils.js","sources":["../../../src/components/aichat-shell/workspace-manager-utils.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Pure utility functions for workspace layout calculations.\n * These functions have no side effects and depend only on their inputs.\n */\n\n/**\n * Calculate the minimum width required for side-by-side layout.\n *\n * @param dimensions - Layout dimensions\n * @param dimensions.workspaceMinWidth - Minimum width for workspace area\n * @param dimensions.messagesMinWidth - Minimum width for messages area\n * @param dimensions.historyWidth - Width for history panel\n * @returns Total minimum width required\n */\nexport function calculateRequiredWidth(dimensions: {\n workspaceMinWidth: number;\n messagesMinWidth: number;\n historyWidth: number;\n}): number {\n return (\n dimensions.workspaceMinWidth +\n dimensions.messagesMinWidth +\n dimensions.historyWidth\n );\n}\n\n/**\n * Check if width change exceeds the threshold for meaningful expansion.\n *\n * @param current - Current width value\n * @param initial - Initial width value\n * @param threshold - Minimum change threshold in pixels\n * @returns True if the absolute difference exceeds the threshold\n */\nexport function hasSignificantWidthChange(\n current: number,\n initial: number,\n threshold: number\n): boolean {\n return Math.abs(current - initial) > threshold;\n}\n\n/**\n * Check if the host element is wide enough for side-by-side layout.\n *\n * @param inlineSize - Current width of the host element\n * @param requiredWidth - Minimum width required for side-by-side layout\n * @returns True if wide enough, or if running in SSR context\n */\nexport function isWideEnough(\n inlineSize: number,\n requiredWidth: number\n): boolean {\n return typeof window === 'undefined' || inlineSize >= requiredWidth;\n}\n\n/**\n * Check if the host element can potentially grow to the required width.\n *\n * @param requiredWidth - Minimum width required for side-by-side layout\n * @returns True if window width is sufficient, false in SSR context\n */\nexport function canHostGrow(requiredWidth: number): boolean {\n return typeof window !== 'undefined' && window.innerWidth >= requiredWidth;\n}\n\n/**\n * Extract inline size from a ResizeObserverEntry.\n *\n * @param entry - ResizeObserver entry containing size information\n * @returns The inline size in pixels\n */\nexport function getInlineSizeFromEntry(entry: ResizeObserverEntry): number {\n const borderBoxSize = Array.isArray(entry.borderBoxSize)\n ? entry.borderBoxSize[0]\n : entry.borderBoxSize;\n return borderBoxSize?.inlineSize ?? entry.contentRect.width;\n}\n\n/**\n * Parse a CSS length value from a computed style property.\n *\n * @param element - Element to get computed style from\n * @param propertyName - CSS custom property name\n * @param fallback - Fallback value if property is not set or invalid\n * @returns Parsed numeric value or fallback\n */\nexport function getCssLengthFromProperty(\n element: HTMLElement,\n propertyName: string,\n fallback: number\n): number {\n const value = getComputedStyle(element).getPropertyValue(propertyName).trim();\n if (!value) {\n return fallback;\n }\n const parsed = Number.parseFloat(value);\n return Number.isNaN(parsed) ? fallback : parsed;\n}\n\n/**\n * Check if workspace DOM attributes match the expected panel state.\n *\n * @param element - Host element containing workspace attributes\n * @param inPanel - Expected panel state\n * @returns True if both attributes are correctly set\n */\nexport function areWorkspaceAttributesCorrect(\n element: HTMLElement,\n inPanel: boolean\n): boolean {\n const panelAttrExists = element.hasAttribute('workspace-in-panel');\n const containerAttrExists = element.hasAttribute('workspace-in-container');\n\n return panelAttrExists === inPanel && containerAttrExists === !inPanel;\n}\n\n/**\n * Check if workspace update should be skipped based on current state.\n *\n * @param config - Workspace configuration\n * @param config.showWorkspace - Whether workspace is enabled\n * @param state - Current workspace state\n * @param state.containerVisible - Whether workspace container is visible\n * @param state.isContracting - Whether workspace is currently contracting\n * @returns True if update should be skipped\n */\nexport function shouldSkipWorkspaceUpdate(\n config: { showWorkspace: boolean },\n state: { containerVisible: boolean; isContracting: boolean }\n): boolean {\n return (\n !config.showWorkspace || !state.containerVisible || state.isContracting\n );\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;AAGG;AAEH;;;;;;;;AAQG;AACG,SAAU,sBAAsB,CAAC,UAItC,EAAA;IACC,QACE,UAAU,CAAC,iBAAiB;AAC5B,QAAA,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,YAAY;AAE3B;AAEA;;;;;;;AAOG;SACa,yBAAyB,CACvC,OAAe,EACf,OAAe,EACf,SAAiB,EAAA;IAEjB,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,SAAS;AAChD;AAEA;;;;;;AAMG;AACG,SAAU,YAAY,CAC1B,UAAkB,EAClB,aAAqB,EAAA;IAErB,OAAO,OAAO,MAAM,KAAK,WAAW,IAAI,UAAU,IAAI,aAAa;AACrE;AAEA;;;;;AAKG;AACG,SAAU,WAAW,CAAC,aAAqB,EAAA;IAC/C,OAAO,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,UAAU,IAAI,aAAa;AAC5E;AAEA;;;;;AAKG;AACG,SAAU,sBAAsB,CAAC,KAA0B,EAAA;IAC/D,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa;AACrD,UAAE,KAAK,CAAC,aAAa,CAAC,CAAC;AACvB,UAAE,KAAK,CAAC,aAAa;IACvB,OAAO,aAAa,EAAE,UAAU,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK;AAC7D;AAEA;;;;;;;AAOG;SACa,wBAAwB,CACtC,OAAoB,EACpB,YAAoB,EACpB,QAAgB,EAAA;AAEhB,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE;IAC7E,IAAI,CAAC,KAAK,EAAE;AACV,QAAA,OAAO,QAAQ;IACjB;IACA,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;AACvC,IAAA,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM;AACjD;AAEA;;;;;;AAMG;AACG,SAAU,6BAA6B,CAC3C,OAAoB,EACpB,OAAgB,EAAA;IAEhB,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC;IAClE,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,wBAAwB,CAAC;IAE1E,OAAO,eAAe,KAAK,OAAO,IAAI,mBAAmB,KAAK,CAAC,OAAO;AACxE;AAEA;;;;;;;;;AASG;AACG,SAAU,yBAAyB,CACvC,MAAkC,EAClC,KAA4D,EAAA;AAE5D,IAAA,QACE,CAAC,MAAM,CAAC,aAAa,IAAI,CAAC,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,aAAa;AAE3E;;"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2025, 2026
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
interface WorkspaceConfig {
|
|
10
|
+
showWorkspace: boolean;
|
|
11
|
+
showHistory: boolean;
|
|
12
|
+
workspaceLocation: 'start' | 'end';
|
|
13
|
+
roundedCorners: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface WorkspaceCallbacks {
|
|
16
|
+
onWorkspaceVisibilityChange?: (visible: boolean, inPanel: boolean) => void;
|
|
17
|
+
}
|
|
18
|
+
interface WorkspaceState {
|
|
19
|
+
inPanel: boolean;
|
|
20
|
+
contentVisible: boolean;
|
|
21
|
+
containerVisible: boolean;
|
|
22
|
+
isCheckingExpansion: boolean;
|
|
23
|
+
isExpanding: boolean;
|
|
24
|
+
isCheckingContracting: boolean;
|
|
25
|
+
isContracting: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Manages workspace layout, responsive behavior, and transitions for cds-aichat-shell.
|
|
29
|
+
* Handles switching between inline and panel modes based on available width,
|
|
30
|
+
* and orchestrates smooth transitions when workspace visibility changes.
|
|
31
|
+
*/
|
|
32
|
+
export declare class WorkspaceManager {
|
|
33
|
+
private readonly shellRoot;
|
|
34
|
+
private readonly hostElement;
|
|
35
|
+
private config;
|
|
36
|
+
private callbacks?;
|
|
37
|
+
private state;
|
|
38
|
+
private hostResizeObserver?;
|
|
39
|
+
private windowResizeHandler?;
|
|
40
|
+
private expansionCheckInterval?;
|
|
41
|
+
private expansionLastInlineSize?;
|
|
42
|
+
private contractionCheckInterval?;
|
|
43
|
+
private contractionLastInlineSize?;
|
|
44
|
+
private contractionInitialInlineSize?;
|
|
45
|
+
private throttledHandleHostResize;
|
|
46
|
+
private cssPropertyObserver?;
|
|
47
|
+
private lastKnownCssValues;
|
|
48
|
+
private lastAnnouncedVisibility;
|
|
49
|
+
constructor(shellRoot: HTMLElement, hostElement: HTMLElement, config: WorkspaceConfig, callbacks?: WorkspaceCallbacks | undefined);
|
|
50
|
+
/**
|
|
51
|
+
* Initialize workspace management and start observing resize events.
|
|
52
|
+
* Should be called after the shell component is fully rendered.
|
|
53
|
+
*/
|
|
54
|
+
connect(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Clean up observers and timers.
|
|
57
|
+
* Should be called when the shell component is disconnected.
|
|
58
|
+
*/
|
|
59
|
+
disconnect(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Reset announcement tracking. Call this after initialization is complete
|
|
62
|
+
* to enable announcements for subsequent visibility changes.
|
|
63
|
+
*/
|
|
64
|
+
enableAnnouncements(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Refresh workspace state and re-evaluate layout.
|
|
67
|
+
* Useful after external changes that might affect layout.
|
|
68
|
+
*/
|
|
69
|
+
refresh(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Update workspace configuration.
|
|
72
|
+
* Handles transitions when workspace visibility or related settings change.
|
|
73
|
+
*/
|
|
74
|
+
updateConfig(newConfig: Partial<WorkspaceConfig>): void;
|
|
75
|
+
/**
|
|
76
|
+
* Get current workspace state.
|
|
77
|
+
* Returns a readonly copy to prevent external mutations.
|
|
78
|
+
*/
|
|
79
|
+
getState(): Readonly<WorkspaceState>;
|
|
80
|
+
/**
|
|
81
|
+
* Check if workspace should be rendered inline (side-by-side with messages).
|
|
82
|
+
*/
|
|
83
|
+
shouldRenderInline(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Check if workspace should be rendered as a panel (overlay).
|
|
86
|
+
*/
|
|
87
|
+
shouldRenderPanel(): boolean;
|
|
88
|
+
private observeHostWidth;
|
|
89
|
+
private setupWindowResizeListener;
|
|
90
|
+
private createHostResizeObserver;
|
|
91
|
+
private reconnectHostResizeObserver;
|
|
92
|
+
private performInitialHostMeasurement;
|
|
93
|
+
private handleHostResize;
|
|
94
|
+
private updateWorkspaceInPanelState;
|
|
95
|
+
/**
|
|
96
|
+
* Get layout dimensions from cache or compute if not available.
|
|
97
|
+
* Uses cached CSS values for performance, falling back to live computation.
|
|
98
|
+
*/
|
|
99
|
+
private getLayoutDimensions;
|
|
100
|
+
private handleShowWorkspaceEnabled;
|
|
101
|
+
private initializeImmediateDisplay;
|
|
102
|
+
private initializeExpansionTracking;
|
|
103
|
+
private handleShowWorkspaceDisabled;
|
|
104
|
+
private startExpansionPolling;
|
|
105
|
+
/**
|
|
106
|
+
* Check expansion progress and determine if transition is complete.
|
|
107
|
+
*/
|
|
108
|
+
private checkExpansionProgress;
|
|
109
|
+
/**
|
|
110
|
+
* Handle ongoing width changes during expansion.
|
|
111
|
+
*/
|
|
112
|
+
private handleOngoingExpansion;
|
|
113
|
+
/**
|
|
114
|
+
* Set workspace to container mode by updating DOM attributes.
|
|
115
|
+
*/
|
|
116
|
+
private setWorkspaceInContainerMode;
|
|
117
|
+
private setupContractionTracking;
|
|
118
|
+
private initializeImmediateClosing;
|
|
119
|
+
private startContractionPolling;
|
|
120
|
+
private checkContractionProgress;
|
|
121
|
+
private handleOngoingContraction;
|
|
122
|
+
private finishWorkspaceContraction;
|
|
123
|
+
private startFinalContractionPolling;
|
|
124
|
+
private trackExpectedContraction;
|
|
125
|
+
private finishWorkspaceExpansion;
|
|
126
|
+
private finishWorkspaceClosing;
|
|
127
|
+
private trackExpectedExpansion;
|
|
128
|
+
private clearExpansionTimers;
|
|
129
|
+
private clearContractionTimers;
|
|
130
|
+
/**
|
|
131
|
+
* Updates workspace DOM attributes to match the panel state.
|
|
132
|
+
* Maintains inverse relationship between panel and container attributes.
|
|
133
|
+
*
|
|
134
|
+
* @param inPanel - True for panel mode, false for container mode
|
|
135
|
+
*/
|
|
136
|
+
private updateWorkspaceAttributes;
|
|
137
|
+
/**
|
|
138
|
+
* Updates the workspace panel state and corresponding DOM attributes.
|
|
139
|
+
*
|
|
140
|
+
* Synchronizes internal state with DOM attributes that control whether
|
|
141
|
+
* the workspace is displayed as an overlay panel or inline container.
|
|
142
|
+
*
|
|
143
|
+
* Ignores calls during expansion/contraction transitions. Only updates if
|
|
144
|
+
* state or attributes need changes. Maintains inverse relationship between
|
|
145
|
+
* panel and container attributes.
|
|
146
|
+
*
|
|
147
|
+
* @param inPanel - True to display workspace as overlay panel, false for inline
|
|
148
|
+
*/
|
|
149
|
+
private setWorkspaceInPanel;
|
|
150
|
+
private setWorkspaceContentVisible;
|
|
151
|
+
private setShowWorkspaceContainer;
|
|
152
|
+
private notifyVisibilityChange;
|
|
153
|
+
private setState;
|
|
154
|
+
private updateShellClasses;
|
|
155
|
+
private requestHostUpdate;
|
|
156
|
+
private getRequiredMinWidth;
|
|
157
|
+
private finalizeImmediateDisplay;
|
|
158
|
+
private setupExpansionTracking;
|
|
159
|
+
/**
|
|
160
|
+
* Observe CSS custom properties that affect workspace layout.
|
|
161
|
+
* When these properties change, recalculate workspace positioning.
|
|
162
|
+
*/
|
|
163
|
+
private observeCssProperties;
|
|
164
|
+
/**
|
|
165
|
+
* Update the cached CSS property values.
|
|
166
|
+
*/
|
|
167
|
+
private updateLastKnownCssValues;
|
|
168
|
+
/**
|
|
169
|
+
* Check if any relevant CSS properties have changed and trigger recalculation.
|
|
170
|
+
*/
|
|
171
|
+
private checkCssPropertyChanges;
|
|
172
|
+
}
|
|
173
|
+
export {};
|