@adea-ai/ui 0.162.6 → 0.162.8
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/dist/components/composites/about-dialog/about-dialog.js +5 -5
- package/dist/components/composites/about-dialog/about-dialog.js.map +1 -1
- package/dist/components/composites/accent-picker/accent-picker.js +3 -3
- package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
- package/dist/components/composites/accent-picker/custom-color-popover.js +2 -2
- package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +22 -22
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.js +2 -2
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +3 -3
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +10 -10
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +13 -13
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +12 -12
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +13 -13
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
- package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser-group.js +9 -9
- package/dist/components/composites/catalog-browser/catalog-browser-group.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +10 -10
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.js +5 -5
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.js +7 -7
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.js +5 -5
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +13 -13
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.js +7 -7
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js +1 -1
- package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +9 -9
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/help-center/help-center.js +5 -5
- package/dist/components/composites/help-center/help-center.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +10 -10
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/icon-picker/image-data-url.js.map +1 -1
- package/dist/components/composites/icon-picker/shell-icons.js +117 -117
- package/dist/components/composites/icon-picker/shell-icons.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.js +7 -7
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +1 -1
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.js +2 -2
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js +7 -7
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/message-scroller/scroll-anchor.js +1 -1
- package/dist/components/composites/message-scroller/scroll-anchor.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.js +12 -12
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/plan/plan.js +5 -5
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/prompt-input/prompt-input.js +3 -3
- package/dist/components/composites/prompt-input/prompt-input.js.map +1 -1
- package/dist/components/composites/queue/queue.js +13 -13
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.js +5 -5
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/scene-controls/scene-controls.js +16 -16
- package/dist/components/composites/scene-controls/scene-controls.js.map +1 -1
- package/dist/components/composites/settings/settings-layout.js +2 -2
- package/dist/components/composites/settings/settings-layout.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +2 -2
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.js +5 -5
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/sources.js +5 -5
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.js +2 -2
- package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.js +10 -10
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.js +6 -6
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.js +5 -5
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/suggestion/suggestion.js +2 -2
- package/dist/components/composites/suggestion/suggestion.js.map +1 -1
- package/dist/components/composites/task/task.js +5 -5
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/ansi.js +1 -1
- package/dist/components/composites/terminal/ansi.js.map +1 -1
- package/dist/components/composites/terminal/terminal.js +18 -18
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results.js +17 -17
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.js +5 -5
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.js +6 -6
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +1 -1
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +23 -23
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +2 -2
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js +6 -6
- package/dist/components/composites/workspace-switcher/workspace-reorder-dialog.js.map +1 -1
- package/dist/components/composites/workspace-switcher/workspace-switcher.js +11 -11
- package/dist/components/composites/workspace-switcher/workspace-switcher.js.map +1 -1
- package/dist/components/conversation/atomic/chat-composer.js +1 -1
- package/dist/components/conversation/busy-send-button.js +10 -10
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/chat-composer.js +1 -1
- package/dist/components/conversation/composer-core.js +1 -1
- package/dist/components/conversation/composer-menu.js +2 -2
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +7 -7
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.js +1 -1
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.js +5 -5
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +9 -9
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.js +9 -9
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.js +13 -13
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/paste-token-editor.js +1 -1
- package/dist/components/conversation/paste-token-editor.js.map +1 -1
- package/dist/components/conversation/scroll-follow.js +1 -1
- package/dist/components/conversation/thread-panel.js +5 -5
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.js +5 -5
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.js +1 -1
- package/dist/components/layout/app-shell/app-shell.js.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +1 -1
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +2 -2
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -1
- package/dist/components/layout/contextual-sidebar/mobile-contextual-sidebar.js +1 -1
- package/dist/components/layout/floating-preview/floating-preview.js +7 -7
- package/dist/components/layout/floating-preview/floating-preview.js.map +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js +1 -1
- package/dist/components/layout/orbit-layout/orbit-layout.js.map +1 -1
- package/dist/components/layout/page/page.js +2 -2
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.js +1 -1
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-pane/pixel-pane.js +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +5 -5
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/shell-rail/shell-rail.js +5 -5
- package/dist/components/layout/shell-rail/shell-rail.js.map +1 -1
- package/dist/components/layout/shell-top-bar/shell-top-bar.js +2 -2
- package/dist/components/layout/shell-top-bar/shell-top-bar.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +2 -2
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +5 -5
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/pane-focus.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +7 -7
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.js +1 -1
- package/dist/components/layout/status-bar/status-bar.js.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +5 -5
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/layout/virtual-window/virtual-window.js +1 -1
- package/dist/components/layout/virtual-window/virtual-window.js.map +1 -1
- package/dist/components/motion/presence.js +1 -1
- package/dist/components/theme/appearance-panel.js +3 -3
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.js +3 -3
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/script-projection.js +1 -1
- package/dist/components/theme/theme-catalogue-source.js +1 -1
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-mode-toggle.js +7 -7
- package/dist/components/theme/theme-mode-toggle.js.map +1 -1
- package/dist/components/theme/theme-picker.js +2 -2
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.js +1 -1
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-provider.js +1 -1
- package/dist/components/theme/theme-toggle.js +7 -7
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/accordion/accordion.js +13 -13
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.js +12 -12
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +14 -14
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.js +2 -2
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -1
- package/dist/components/ui/attachment/attachment.js +16 -16
- package/dist/components/ui/attachment/attachment.js.map +1 -1
- package/dist/components/ui/avatar/avatar.js +1 -1
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/badge/badge.js +2 -2
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/board/board.js +2 -2
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +7 -7
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble/bubble.js +2 -2
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.js +2 -2
- package/dist/components/ui/button-group/button-group.js +2 -2
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +8 -8
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.js +2 -2
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.js +2 -2
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.js +8 -8
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart.js +2 -2
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +6 -6
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.js +6 -6
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/collapsible/collapsible.js +7 -7
- package/dist/components/ui/collapsible/collapsible.js.map +1 -1
- package/dist/components/ui/combobox/combobox.js +21 -21
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/combobox/value-combobox.js +1 -1
- package/dist/components/ui/command/command.js +23 -23
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.js +2 -2
- package/dist/components/ui/detail-panel/detail-panel.js +5 -5
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +2 -2
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +21 -21
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.js +2 -2
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.js +14 -14
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/ui/dropdown-menu/menu-parts.js +10 -10
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.js +5 -5
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.js +1 -1
- package/dist/components/ui/empty/empty.js.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +2 -2
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.js +14 -14
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.js +2 -2
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.js +10 -10
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input/input-control.js +1 -1
- package/dist/components/ui/input/input-control.js.map +1 -1
- package/dist/components/ui/input/input.js +2 -2
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-group/input-group.js +2 -2
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-group/secret-input-group.js +2 -2
- package/dist/components/ui/input-otp/input-otp.js +2 -2
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.js +2 -2
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.js +2 -2
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/label/label.js +1 -1
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/marker/marker.js +2 -2
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.js +7 -7
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.js +3 -3
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +2 -2
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.js +5 -5
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +18 -18
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.js +28 -28
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.js +15 -15
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.js +5 -5
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +10 -10
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +9 -9
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.js +11 -11
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/select/select.js +21 -21
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/separator/separator.js +5 -5
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/sheet.js +6 -6
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +1 -1
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.js +5 -5
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.js +5 -5
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +2 -2
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.js +4 -4
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table.js +1 -1
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.js +7 -7
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/text-link/text-link.js +1 -1
- package/dist/components/ui/text-link/text-link.js.map +1 -1
- package/dist/components/ui/textarea/textarea.js +2 -2
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.js +7 -7
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.js +6 -6
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +7 -8
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.js +6 -6
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -1
- package/dist/components/ui/tooltip/lazy-tooltip.js +2 -2
- package/dist/components/ui/tooltip/tooltip.js +10 -10
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.js +19 -19
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.js +2 -2
- package/dist/lib/accent-presets.js +1 -1
- package/dist/lib/accent-roles.js +2 -2
- package/dist/lib/async-action.js +1 -1
- package/dist/lib/create-poll.js +1 -1
- package/dist/lib/create-poll.js.map +1 -1
- package/dist/lib/external-link.js +1 -1
- package/dist/lib/external-link.js.map +1 -1
- package/dist/lib/fast-icon.js +1 -1
- package/dist/lib/theme-css.js +1 -1
- package/dist/lib/theme-engine-light.js +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-records.js +1 -1
- package/dist/lib/themes.js +1 -1
- package/dist/lib/themes.js.map +1 -1
- package/dist/lib/tooltip-focus-gate.js.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/vite/source-parser.js +1 -1
- package/dist/vite/tailwind-sources.js +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-anchor.js","names":[],"sources":["../../../../src/components/composites/message-scroller/scroll-anchor.ts"],"sourcesContent":["/**\n * Keeping the reader's place when content appears above them.\n *\n * The browser's own scroll anchoring does this in some engines for some DOM\n * shapes and not in others (and not at all with `content-visibility`), so it is\n * done explicitly. What is remembered is where the turns around the viewport sit\n * in the document (their distance from the top of the content, which scrolling\n * does not change). After the content moves, the turn the reader is on is found\n * again and the scroll offset is moved by however far it moved in the document, so\n * it sits where it did in the viewport.\n *\n * Only the *content's* movement is undone, because the reader's scrolling does not\n * move a turn in the document. A reader who scrolls while a load is open (a wheel\n * fling or touch momentum that was still running when the load began) keeps the\n * scroll: nothing is restored to an offset captured earlier.\n *\n * It is the turn the reader was on that is measured, found from where the turns sat\n * when the marks were taken and not from where the change has left them: a row above\n * the reader that grows far enough to reach into the view has not become the turn they\n * are reading, and the turn they are reading has moved down by the growth. Nothing\n * below that turn counts: a row further down that sizes itself late (an\n * image, highlighted code, a row leaving `content-visibility`) moves rows below the\n * reader, not the reader. The turns above the reader count, because they are what\n * an insert or a late resize above pushes the view down by.\n */\nexport type ScrollAnchor = {\n /** `data-anchor-id` of the first turn in view when the marks were taken, if any turn has one. */\n id: string | undefined\n /**\n * The document position (px from the top of the content) of the turns around the\n * viewport when the marks were taken, by id: a few above the first one in view, it, and\n * some below. Empty when no turn carries an id.\n */\n marks: Map<string, number>\n /** The document position of the bottom edge of each marked turn, when the marks were taken. */\n ends: Map<string, number>\n /** Fallback when no turn carries an id: the scroll height at the last restore. */\n scrollHeight: number\n /**\n * When set, only these turns are marked: the ones that were there when the load began.\n * A turn that has just landed is still at its estimated height, so a correction taken\n * from it would come from a row about to resize.\n */\n known?: ReadonlySet<string>\n}\n\nconst ANCHOR_ATTRIBUTE = 'data-anchor-id'\n\n/** Turns marked above the first one in view, and below it. */\nconst MARKS_ABOVE = 8\nconst MARKS_BELOW = 12\n\n/** The ids of the turns in the scroller now. */\nexport function anchorIds(scroller: HTMLElement): Set<string> {\n const ids = new Set<string>()\n for (const element of scroller.querySelectorAll<HTMLElement>(`[${ANCHOR_ATTRIBUTE}]`))\n ids.add(element.getAttribute(ANCHOR_ATTRIBUTE)!)\n return ids\n}\n\n/**\n * Mark the turns around the viewport: where each sits in the document now. With\n * `known`, only those turns are marked, now and on every later restore.\n */\nexport function captureAnchor(scroller: HTMLElement, known?: ReadonlySet<string>): ScrollAnchor {\n const box = scroller.getBoundingClientRect()\n const scrollTop = scroller.scrollTop\n const marks = new Map<string, number>()\n const ends = new Map<string, number>()\n const above: Array<[string, number, number]> = []\n let id: string | undefined\n let below = 0\n for (const element of scroller.querySelectorAll<HTMLElement>(`[${ANCHOR_ATTRIBUTE}]`)) {\n const turn = element.getAttribute(ANCHOR_ATTRIBUTE)!\n if (known && !known.has(turn)) continue\n const rect = element.getBoundingClientRect()\n const position = rect.top - box.top + scrollTop\n const end = rect.bottom - box.top + scrollTop\n if (id === undefined) {\n if (rect.bottom > box.top) {\n id = turn\n for (const [earlier, where, bottom] of above) {\n marks.set(earlier, where)\n ends.set(earlier, bottom)\n }\n marks.set(turn, position)\n ends.set(turn, end)\n } else {\n above.push([turn, position, end])\n if (above.length > MARKS_ABOVE) above.shift()\n }\n } else {\n marks.set(turn, position)\n ends.set(turn, end)\n below += 1\n if (below >= MARKS_BELOW) break\n }\n }\n return { id, marks, ends, scrollHeight: scroller.scrollHeight, known }\n}\n\n/**\n * The marked turn the reader is on and where it sits in the document now. The turn is\n * chosen by where the marked turns were (the first one that reached into the view at the\n * scroll offset now, or the last one if every marked turn was above it), among those still\n * in the scroller; its position is read from where the content has put it.\n */\nfunction turnInView(\n scroller: HTMLElement,\n anchor: ScrollAnchor\n): { id: string; position: number } | undefined {\n const box = scroller.getBoundingClientRect()\n const scrollTop = scroller.scrollTop\n const present = new Map<string, number>()\n for (const element of scroller.querySelectorAll<HTMLElement>(`[${ANCHOR_ATTRIBUTE}]`)) {\n const id = element.getAttribute(ANCHOR_ATTRIBUTE)!\n if (anchor.marks.has(id))\n present.set(id, element.getBoundingClientRect().top - box.top + scrollTop)\n }\n let last: { id: string; position: number } | undefined\n for (const id of anchor.marks.keys()) {\n const position = present.get(id)\n if (position === undefined) continue\n last = { id, position }\n if ((anchor.ends.get(id) ?? Infinity) > scrollTop) return last\n }\n return last\n}\n\n/**\n * Put the reader back where the content's movement left them. Returns the correction\n * applied, in px.\n *\n * The turn the reader is on is found among the marked turns, and the scroll offset is\n * moved by how far that turn has moved in the document since the marks were taken: an\n * insert or a late resize above it moves it, scrolling and growth below it do not.\n * The marks are then taken again around wherever the reader now is, so a second restore\n * after the same change finds nothing left to correct, and a reader who has moved on\n * (before this call, in the same task as a change, or by a scroll event that has not\n * yet arrived) is measured from the turn they are on and not from one they have left.\n * Nothing here depends on seeing the scroll event first.\n */\nexport function restoreAnchor(scroller: HTMLElement, anchor: ScrollAnchor | undefined): number {\n if (!anchor) return 0\n let correction = 0\n if (anchor.marks.size > 0) {\n const turn = turnInView(scroller, anchor)\n if (turn) correction = turn.position - anchor.marks.get(turn.id)!\n } else if (anchor.id === undefined) {\n // No turn carries an id: the growth since the last restore is added to where the\n // reader is, so a second restore after the same insert (the observer and the settle\n // both run one) finds it already applied, and growth that lands later moves the\n // reader only by what is still missing.\n correction = scroller.scrollHeight - anchor.scrollHeight\n }\n if (Math.abs(correction) >= 1) scroller.scrollTop += correction\n const next = captureAnchor(scroller, anchor.known)\n if (next.marks.size > 0 || anchor.marks.size === 0) {\n anchor.id = next.id\n anchor.marks = next.marks\n anchor.ends = next.ends\n } else {\n // None of the turns that were there before the load is in view (the reader is among\n // the rows that landed): keep the old marks, moved by what the content did.\n for (const [id, position] of anchor.marks) anchor.marks.set(id, position + correction)\n for (const [id, end] of anchor.ends) anchor.ends.set(id, end + correction)\n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K;CACrB,OAAO;EAGL,KAAK,MAAM,CAAC,IAAI,aAAa,OAAO,OAAO,OAAO,MAAM,IAAI,IAAI,WAAW,UAAU;EACrF,KAAK,MAAM,CAAC,IAAI,QAAQ,OAAO,MAAM,OAAO,KAAK,IAAI,IAAI,MAAM,UAAU;CAC3E;CACA,OAAO,eAAe,SAAS;CAC/B,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"scroll-anchor.js","names":[],"sources":["../../../../src/components/composites/message-scroller/scroll-anchor.ts"],"sourcesContent":["/**\n * Keeping the reader's place when content appears above them.\n *\n * The browser's own scroll anchoring does this in some engines for some DOM\n * shapes and not in others (and not at all with `content-visibility`), so it is\n * done explicitly. What is remembered is where the turns around the viewport sit\n * in the document (their distance from the top of the content, which scrolling\n * does not change). After the content moves, the turn the reader is on is found\n * again and the scroll offset is moved by however far it moved in the document, so\n * it sits where it did in the viewport.\n *\n * Only the *content's* movement is undone, because the reader's scrolling does not\n * move a turn in the document. A reader who scrolls while a load is open (a wheel\n * fling or touch momentum that was still running when the load began) keeps the\n * scroll: nothing is restored to an offset captured earlier.\n *\n * It is the turn the reader was on that is measured, found from where the turns sat\n * when the marks were taken and not from where the change has left them: a row above\n * the reader that grows far enough to reach into the view has not become the turn they\n * are reading, and the turn they are reading has moved down by the growth. Nothing\n * below that turn counts: a row further down that sizes itself late (an\n * image, highlighted code, a row leaving `content-visibility`) moves rows below the\n * reader, not the reader. The turns above the reader count, because they are what\n * an insert or a late resize above pushes the view down by.\n */\nexport type ScrollAnchor = {\n /** `data-anchor-id` of the first turn in view when the marks were taken, if any turn has one. */\n id: string | undefined\n /**\n * The document position (px from the top of the content) of the turns around the\n * viewport when the marks were taken, by id: a few above the first one in view, it, and\n * some below. Empty when no turn carries an id.\n */\n marks: Map<string, number>\n /** The document position of the bottom edge of each marked turn, when the marks were taken. */\n ends: Map<string, number>\n /** Fallback when no turn carries an id: the scroll height at the last restore. */\n scrollHeight: number\n /**\n * When set, only these turns are marked: the ones that were there when the load began.\n * A turn that has just landed is still at its estimated height, so a correction taken\n * from it would come from a row about to resize.\n */\n known?: ReadonlySet<string>\n}\n\nconst ANCHOR_ATTRIBUTE = 'data-anchor-id'\n\n/** Turns marked above the first one in view, and below it. */\nconst MARKS_ABOVE = 8\nconst MARKS_BELOW = 12\n\n/** The ids of the turns in the scroller now. */\nexport function anchorIds(scroller: HTMLElement): Set<string> {\n const ids = new Set<string>()\n for (const element of scroller.querySelectorAll<HTMLElement>(`[${ANCHOR_ATTRIBUTE}]`))\n ids.add(element.getAttribute(ANCHOR_ATTRIBUTE)!)\n return ids\n}\n\n/**\n * Mark the turns around the viewport: where each sits in the document now. With\n * `known`, only those turns are marked, now and on every later restore.\n */\nexport function captureAnchor(scroller: HTMLElement, known?: ReadonlySet<string>): ScrollAnchor {\n const box = scroller.getBoundingClientRect()\n const scrollTop = scroller.scrollTop\n const marks = new Map<string, number>()\n const ends = new Map<string, number>()\n const above: Array<[string, number, number]> = []\n let id: string | undefined\n let below = 0\n for (const element of scroller.querySelectorAll<HTMLElement>(`[${ANCHOR_ATTRIBUTE}]`)) {\n const turn = element.getAttribute(ANCHOR_ATTRIBUTE)!\n if (known && !known.has(turn)) continue\n const rect = element.getBoundingClientRect()\n const position = rect.top - box.top + scrollTop\n const end = rect.bottom - box.top + scrollTop\n if (id === undefined) {\n if (rect.bottom > box.top) {\n id = turn\n for (const [earlier, where, bottom] of above) {\n marks.set(earlier, where)\n ends.set(earlier, bottom)\n }\n marks.set(turn, position)\n ends.set(turn, end)\n } else {\n above.push([turn, position, end])\n if (above.length > MARKS_ABOVE) above.shift()\n }\n } else {\n marks.set(turn, position)\n ends.set(turn, end)\n below += 1\n if (below >= MARKS_BELOW) break\n }\n }\n return { id, marks, ends, scrollHeight: scroller.scrollHeight, known }\n}\n\n/**\n * The marked turn the reader is on and where it sits in the document now. The turn is\n * chosen by where the marked turns were (the first one that reached into the view at the\n * scroll offset now, or the last one if every marked turn was above it), among those still\n * in the scroller; its position is read from where the content has put it.\n */\nfunction turnInView(\n scroller: HTMLElement,\n anchor: ScrollAnchor\n): { id: string; position: number } | undefined {\n const box = scroller.getBoundingClientRect()\n const scrollTop = scroller.scrollTop\n const present = new Map<string, number>()\n for (const element of scroller.querySelectorAll<HTMLElement>(`[${ANCHOR_ATTRIBUTE}]`)) {\n const id = element.getAttribute(ANCHOR_ATTRIBUTE)!\n if (anchor.marks.has(id))\n present.set(id, element.getBoundingClientRect().top - box.top + scrollTop)\n }\n let last: { id: string; position: number } | undefined\n for (const id of anchor.marks.keys()) {\n const position = present.get(id)\n if (position === undefined) continue\n last = { id, position }\n if ((anchor.ends.get(id) ?? Infinity) > scrollTop) return last\n }\n return last\n}\n\n/**\n * Put the reader back where the content's movement left them. Returns the correction\n * applied, in px.\n *\n * The turn the reader is on is found among the marked turns, and the scroll offset is\n * moved by how far that turn has moved in the document since the marks were taken: an\n * insert or a late resize above it moves it, scrolling and growth below it do not.\n * The marks are then taken again around wherever the reader now is, so a second restore\n * after the same change finds nothing left to correct, and a reader who has moved on\n * (before this call, in the same task as a change, or by a scroll event that has not\n * yet arrived) is measured from the turn they are on and not from one they have left.\n * Nothing here depends on seeing the scroll event first.\n */\nexport function restoreAnchor(scroller: HTMLElement, anchor: ScrollAnchor | undefined): number {\n if (!anchor) return 0\n let correction = 0\n if (anchor.marks.size > 0) {\n const turn = turnInView(scroller, anchor)\n if (turn) correction = turn.position - anchor.marks.get(turn.id)!\n } else if (anchor.id === undefined) {\n // No turn carries an id: the growth since the last restore is added to where the\n // reader is, so a second restore after the same insert (the observer and the settle\n // both run one) finds it already applied, and growth that lands later moves the\n // reader only by what is still missing.\n correction = scroller.scrollHeight - anchor.scrollHeight\n }\n if (Math.abs(correction) >= 1) scroller.scrollTop += correction\n const next = captureAnchor(scroller, anchor.known)\n if (next.marks.size > 0 || anchor.marks.size === 0) {\n anchor.id = next.id\n anchor.marks = next.marks\n anchor.ends = next.ends\n } else {\n // None of the turns that were there before the load is in view (the reader is among\n // the rows that landed): keep the old marks, moved by what the content did.\n for (const [id, position] of anchor.marks) anchor.marks.set(id, position + correction)\n for (const [id, end] of anchor.ends) anchor.ends.set(id, end + correction)\n }\n anchor.scrollHeight = scroller.scrollHeight\n return correction\n}\n"],"mappings":";AA8CA,IAAM,mBAAmB;;AAGzB,IAAM,cAAc;AACpB,IAAM,cAAc;;AAGpB,SAAgB,UAAU,UAAoC;CAC5D,MAAM,sBAAM,IAAI,IAAY;CAC5B,KAAK,MAAM,WAAW,SAAS,iBAA8B,IAAI,iBAAiB,EAAE,GAClF,IAAI,IAAI,QAAQ,aAAa,gBAAgB,CAAE;CACjD,OAAO;AACT;;;;;AAMA,SAAgB,cAAc,UAAuB,OAA2C;CAC9F,MAAM,MAAM,SAAS,sBAAsB;CAC3C,MAAM,YAAY,SAAS;CAC3B,MAAM,wBAAQ,IAAI,IAAoB;CACtC,MAAM,uBAAO,IAAI,IAAoB;CACrC,MAAM,QAAyC,CAAC;CAChD,IAAI;CACJ,IAAI,QAAQ;CACZ,KAAK,MAAM,WAAW,SAAS,iBAA8B,IAAI,iBAAiB,EAAE,GAAG;EACrF,MAAM,OAAO,QAAQ,aAAa,gBAAgB;EAClD,IAAI,SAAS,CAAC,MAAM,IAAI,IAAI,GAAG;EAC/B,MAAM,OAAO,QAAQ,sBAAsB;EAC3C,MAAM,WAAW,KAAK,MAAM,IAAI,MAAM;EACtC,MAAM,MAAM,KAAK,SAAS,IAAI,MAAM;EACpC,IAAI,OAAO,KAAA,GAAW;GACpB,IAAI,KAAK,SAAS,IAAI,KAAK;IACzB,KAAK;IACL,KAAK,MAAM,CAAC,SAAS,OAAO,WAAW,OAAO;KAC5C,MAAM,IAAI,SAAS,KAAK;KACxB,KAAK,IAAI,SAAS,MAAM;IAC1B;IACA,MAAM,IAAI,MAAM,QAAQ;IACxB,KAAK,IAAI,MAAM,GAAG;GACpB,OAAO;IACL,MAAM,KAAK;KAAC;KAAM;KAAU;IAAG,CAAC;IAChC,IAAI,MAAM,SAAS,aA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O,KAAK,OAAO,MAAM,SAAS,GAAG;EAClD,OAAO,KAAK,KAAK;EACjB,OAAO,QAAQ,KAAK;EACpB,OAAO,OAAO,KAAK;CACrB,OAAO;EAGL,KAAK,MAAM,CAAC,IAAI,aAAa,OAAO,OAAO,OAAO,MAAM,IAAI,IAAI,WAAW,UAAU;EACrF,KAAK,MAAM,CAAC,IAAI,QAAQ,OAAO,MAAM,OAAO,KAAK,IAAI,IAAI,MAAM,UAAU;CAC3E;CACA,OAAO,eAAe,SAAS;CAC/B,OAAO;AACT"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { className, createComponent, delegateEvents, effect, insert, memo, readShallow, setAttribute, template } from "@solidjs/web";
|
|
2
|
+
import { Brain as Brain$1, Check as Check$1, ChevronsUpDown as ChevronsUpDown$1 } from "@lucide/solid";
|
|
3
|
+
import { For, Show, createEffect, createMemo, createSignal, createUniqueId } from "solid-js";
|
|
1
4
|
import { cn } from "../../../lib/utils.js";
|
|
2
5
|
import { PromptInputControl } from "../prompt-input/prompt-input.js";
|
|
3
6
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../ui/command/command.js";
|
|
@@ -8,9 +11,6 @@ import { boundText } from "../../../lib/text.js";
|
|
|
8
11
|
import { findModel, groupModels, modelSearchValue, needsSearch, normalizeEfforts, resolveEffort } from "./models.js";
|
|
9
12
|
import { fastIcon } from "../../../lib/fast-icon.js";
|
|
10
13
|
import { menuItem } from "../../../lib/overlay.js";
|
|
11
|
-
import { className, createComponent, delegateEvents, effect, insert, memo, readShallow, setAttribute, template } from "@solidjs/web";
|
|
12
|
-
import { Brain, Check, ChevronsUpDown } from "@lucide/solid";
|
|
13
|
-
import { For, Show, createEffect, createMemo, createSignal, createUniqueId } from "solid-js";
|
|
14
14
|
// src/components/composites/model-selector/model-selector.tsx
|
|
15
15
|
var _tmpl$ = /* @__PURE__ */ template(`<div data-slot=model-selector><div role=group class="flex min-w-0 items-center gap-1"><!><!>`);
|
|
16
16
|
var _tmpl$2 = /* @__PURE__ */ template(`<span class="truncate px-2 text-sm text-muted-foreground"><span class=visually-hidden>Model: `);
|
|
@@ -29,9 +29,9 @@ var _tmpl$14 = /* @__PURE__ */ template(`<span aria-hidden=true class="text-xs f
|
|
|
29
29
|
var _tmpl$15 = /* @__PURE__ */ template(`<span aria-hidden=true>`);
|
|
30
30
|
var _tmpl$16 = /* @__PURE__ */ template(`<span class="flex min-w-0 flex-col"><span>`);
|
|
31
31
|
var _tmpl$17 = /* @__PURE__ */ template(`<span class="text-xs text-muted-foreground [overflow-wrap:anywhere]">`);
|
|
32
|
-
var Brain
|
|
33
|
-
var Check
|
|
34
|
-
var ChevronsUpDown
|
|
32
|
+
var Brain = fastIcon(Brain$1);
|
|
33
|
+
var Check = fastIcon(Check$1);
|
|
34
|
+
var ChevronsUpDown = fastIcon(ChevronsUpDown$1);
|
|
35
35
|
function ModelSelector(props) {
|
|
36
36
|
const local = props;
|
|
37
37
|
const blocked = () => local.disabledReason !== void 0;
|
|
@@ -169,7 +169,7 @@ function ModelSelector(props) {
|
|
|
169
169
|
var _el$7 = _tmpl$3();
|
|
170
170
|
var _el$8 = _el$7.firstChild;
|
|
171
171
|
var _el$9 = _el$8.nextSibling;
|
|
172
|
-
insert(_el$7, createComponent(Brain
|
|
172
|
+
insert(_el$7, createComponent(Brain, {
|
|
173
173
|
"aria-hidden": "true",
|
|
174
174
|
class: "size-3.5 shrink-0"
|
|
175
175
|
}), _el$8);
|
|
@@ -271,7 +271,7 @@ function ModelTrigger(props) {
|
|
|
271
271
|
})());
|
|
272
272
|
return _el$17;
|
|
273
273
|
})(),
|
|
274
|
-
createComponent(ChevronsUpDown
|
|
274
|
+
createComponent(ChevronsUpDown, { "aria-hidden": "true" })
|
|
275
275
|
];
|
|
276
276
|
}
|
|
277
277
|
function ModelMenu(props) {
|
|
@@ -402,7 +402,7 @@ function FooterBody(props) {
|
|
|
402
402
|
memo(() => {
|
|
403
403
|
return memo(() => {
|
|
404
404
|
return !!props.footer.selected;
|
|
405
|
-
})() ? [createComponent(Check
|
|
405
|
+
})() ? [createComponent(Check, {
|
|
406
406
|
"aria-hidden": "true",
|
|
407
407
|
class: "ms-auto text-primary"
|
|
408
408
|
}), _tmpl$11()] : void 0;
|
|
@@ -523,7 +523,7 @@ function ModelSearch(props) {
|
|
|
523
523
|
return model.id === props.value;
|
|
524
524
|
},
|
|
525
525
|
get children() {
|
|
526
|
-
return [createComponent(Check
|
|
526
|
+
return [createComponent(Check, {
|
|
527
527
|
"aria-hidden": "true",
|
|
528
528
|
class: "ms-auto text-primary"
|
|
529
529
|
}), _tmpl$13()];
|
|
@@ -743,7 +743,7 @@ function ModelTabs(props) {
|
|
|
743
743
|
return model.id === props.value;
|
|
744
744
|
},
|
|
745
745
|
get children() {
|
|
746
|
-
return [createComponent(Check
|
|
746
|
+
return [createComponent(Check, {
|
|
747
747
|
"aria-hidden": "true",
|
|
748
748
|
class: "ms-auto text-primary"
|
|
749
749
|
}), _tmpl$13()];
|
|
@@ -805,7 +805,7 @@ function EffortMenu(props) {
|
|
|
805
805
|
return props.describedBy;
|
|
806
806
|
},
|
|
807
807
|
get children() {
|
|
808
|
-
return [createComponent(Brain
|
|
808
|
+
return [createComponent(Brain, { "aria-hidden": "true" }), (() => {
|
|
809
809
|
var _el$28 = _tmpl$15();
|
|
810
810
|
insert(_el$28, () => {
|
|
811
811
|
return label() ?? "Effort";
|