@adea-ai/ui 0.152.4 → 0.153.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/README.md +469 -580
- package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
- package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
- package/dist/components/composites/account-menu/account-menu.js +37 -13
- package/dist/components/composites/account-menu/account-menu.js.map +1 -1
- package/dist/components/composites/action-button/action-button.d.ts +2 -1
- package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
- package/dist/components/composites/action-button/action-button.js +92 -66
- package/dist/components/composites/action-button/action-button.js.map +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
- package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
- package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
- package/dist/components/composites/appearance-editor/theme-preview.d.ts +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.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
- package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
- package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
- package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
- package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
- package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
- package/dist/components/composites/chat/chat.d.ts.map +1 -1
- package/dist/components/composites/chat/chat.js +33 -37
- package/dist/components/composites/chat/chat.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
- package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
- package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
- package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
- package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
- package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
- package/dist/components/composites/confirmation/confirmation.js +1 -1
- package/dist/components/composites/confirmation/confirmation.js.map +1 -1
- package/dist/components/composites/context/context.d.ts +2 -2
- package/dist/components/composites/context/context.js.map +1 -1
- package/dist/components/composites/file-tree/build-file-tree.d.ts +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.d.ts.map +1 -1
- package/dist/components/composites/file-tree/file-tree.js +7 -3
- package/dist/components/composites/file-tree/file-tree.js.map +1 -1
- package/dist/components/composites/icon-picker/icon-picker.js +1 -3
- package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
- package/dist/components/composites/inline-citation/citation.d.ts +1 -1
- package/dist/components/composites/inline-citation/citation.js +1 -1
- package/dist/components/composites/inline-citation/citation.js.map +1 -1
- package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
- package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
- package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row-control.js +22 -22
- package/dist/components/composites/list-row/list-row-control.js.map +1 -1
- package/dist/components/composites/list-row/list-row.d.ts +5 -0
- package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
- package/dist/components/composites/list-row/list-row.js +75 -83
- package/dist/components/composites/list-row/list-row.js.map +1 -1
- package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
- package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
- package/dist/components/composites/model-selector/model-selector.d.ts +4 -4
- package/dist/components/composites/model-selector/model-selector.js.map +1 -1
- package/dist/components/composites/model-selector/models.d.ts +2 -2
- package/dist/components/composites/model-selector/models.js +1 -1
- package/dist/components/composites/model-selector/models.js.map +1 -1
- package/dist/components/composites/plan/plan.d.ts.map +1 -1
- package/dist/components/composites/plan/plan.js +17 -15
- package/dist/components/composites/plan/plan.js.map +1 -1
- package/dist/components/composites/queue/queue.d.ts.map +1 -1
- package/dist/components/composites/queue/queue.js +5 -7
- package/dist/components/composites/queue/queue.js.map +1 -1
- package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
- package/dist/components/composites/reasoning/reasoning.js +4 -4
- package/dist/components/composites/reasoning/reasoning.js.map +1 -1
- package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
- package/dist/components/composites/settings/settings-navigation.js +63 -14
- package/dist/components/composites/settings/settings-navigation.js.map +1 -1
- package/dist/components/composites/settings/settings.d.ts.map +1 -1
- package/dist/components/composites/settings/settings.js +32 -32
- package/dist/components/composites/settings/settings.js.map +1 -1
- package/dist/components/composites/sources/source.d.ts +1 -1
- package/dist/components/composites/sources/source.js.map +1 -1
- package/dist/components/composites/sources/sources.d.ts +2 -2
- package/dist/components/composites/sources/sources.js.map +1 -1
- package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
- package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
- package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
- package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
- package/dist/components/composites/stat/stat.d.ts.map +1 -1
- package/dist/components/composites/stat/stat.js +14 -16
- package/dist/components/composites/stat/stat.js.map +1 -1
- package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
- package/dist/components/composites/subagent/subagent.js +6 -4
- package/dist/components/composites/subagent/subagent.js.map +1 -1
- package/dist/components/composites/task/task.d.ts +1 -1
- package/dist/components/composites/task/task.js.map +1 -1
- package/dist/components/composites/terminal/ansi.d.ts +3 -3
- package/dist/components/composites/terminal/ansi.js.map +1 -1
- package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
- package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal-model.js +1 -1
- package/dist/components/composites/terminal/terminal-model.js.map +1 -1
- package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
- package/dist/components/composites/terminal/terminal.js +24 -11
- package/dist/components/composites/terminal/terminal.js.map +1 -1
- package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
- package/dist/components/composites/test-results/test-results-model.js +2 -2
- package/dist/components/composites/test-results/test-results-model.js.map +1 -1
- package/dist/components/composites/test-results/test-results.d.ts +1 -1
- package/dist/components/composites/test-results/test-results.js.map +1 -1
- package/dist/components/composites/tool/tool.d.ts +4 -4
- package/dist/components/composites/tool/tool.js.map +1 -1
- package/dist/components/composites/tree/tree.d.ts +1 -1
- package/dist/components/composites/tree/tree.d.ts.map +1 -1
- package/dist/components/composites/tree/tree.js +25 -18
- package/dist/components/composites/tree/tree.js.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
- package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/channel-control.js +14 -19
- package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
- package/dist/components/composites/update-dialog/index.d.ts +1 -1
- package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
- package/dist/components/composites/update-dialog/update-dialog.js +4 -5
- package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
- package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
- package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
- package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
- package/dist/components/conversation/busy-send-button.js +18 -20
- package/dist/components/conversation/busy-send-button.js.map +1 -1
- package/dist/components/conversation/composer-menu.d.ts +3 -3
- package/dist/components/conversation/composer-menu.js +3 -3
- package/dist/components/conversation/composer-menu.js.map +1 -1
- package/dist/components/conversation/conversation-avatar.js +2 -4
- package/dist/components/conversation/conversation-avatar.js.map +1 -1
- package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
- package/dist/components/conversation/conversation-pane.js +6 -5
- package/dist/components/conversation/conversation-pane.js.map +1 -1
- package/dist/components/conversation/conversation-surface.js +3 -7
- package/dist/components/conversation/conversation-surface.js.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
- package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
- package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
- package/dist/components/conversation/message-composer.d.ts.map +1 -1
- package/dist/components/conversation/message-composer.js +32 -38
- package/dist/components/conversation/message-composer.js.map +1 -1
- package/dist/components/conversation/message-row.d.ts.map +1 -1
- package/dist/components/conversation/message-row.js +79 -73
- package/dist/components/conversation/message-row.js.map +1 -1
- package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
- package/dist/components/conversation/scroll-follow-core.js +4 -4
- package/dist/components/conversation/scroll-follow-core.js.map +1 -1
- package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
- package/dist/components/conversation/scroll-follow.js +19 -4
- package/dist/components/conversation/scroll-follow.js.map +1 -1
- package/dist/components/conversation/thread-panel.d.ts.map +1 -1
- package/dist/components/conversation/thread-panel.js +23 -23
- package/dist/components/conversation/thread-panel.js.map +1 -1
- package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
- package/dist/components/conversation/transcript-composition.js +2 -2
- package/dist/components/conversation/transcript-composition.js.map +1 -1
- package/dist/components/layout/app-shell/app-shell.d.ts +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.d.ts.map +1 -1
- package/dist/components/layout/app-shell/skip-link.js +4 -6
- package/dist/components/layout/app-shell/skip-link.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +17 -17
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/panel/panel.js +2 -4
- package/dist/components/layout/panel/panel.js.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
- package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
- package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
- package/dist/components/layout/side-rail/side-rail.js +35 -34
- package/dist/components/layout/side-rail/side-rail.js.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
- package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
- package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
- package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
- package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
- package/dist/components/layout/split-layout/split-layout.js +2 -2
- package/dist/components/layout/split-layout/split-layout.js.map +1 -1
- package/dist/components/layout/status-bar/status-bar.d.ts +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.d.ts.map +1 -1
- package/dist/components/layout/top-bar/top-bar.js +7 -7
- package/dist/components/layout/top-bar/top-bar.js.map +1 -1
- package/dist/components/motion/presence.d.ts +2 -2
- package/dist/components/motion/presence.js.map +1 -1
- package/dist/components/theme/appearance-panel.d.ts +5 -5
- package/dist/components/theme/appearance-panel.js.map +1 -1
- package/dist/components/theme/lazy.d.ts +1 -1
- package/dist/components/theme/lazy.js.map +1 -1
- package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
- package/dist/components/theme/theme-catalogue-source.js +2 -2
- package/dist/components/theme/theme-catalogue-source.js.map +1 -1
- package/dist/components/theme/theme-context.d.ts +2 -2
- package/dist/components/theme/theme-context.js +3 -3
- package/dist/components/theme/theme-context.js.map +1 -1
- package/dist/components/theme/theme-document.d.ts.map +1 -1
- package/dist/components/theme/theme-document.js +14 -9
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-picker.d.ts +5 -5
- package/dist/components/theme/theme-picker.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +0 -6
- package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
- package/dist/components/theme/theme-provider-value.js +9 -3
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/theme/theme-script.d.ts +14 -0
- package/dist/components/theme/theme-script.d.ts.map +1 -1
- package/dist/components/theme/theme-script.js +1 -0
- package/dist/components/theme/theme-script.js.map +1 -1
- package/dist/components/theme/theme-state.d.ts +7 -7
- package/dist/components/theme/theme-state.js.map +1 -1
- package/dist/components/theme/theme-toggle.d.ts +1 -1
- package/dist/components/theme/theme-toggle.js.map +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.js +4 -3
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +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.d.ts.map +1 -1
- package/dist/components/ui/board/board.js +10 -6
- package/dist/components/ui/board/board.js.map +1 -1
- package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble/bubble.js +6 -4
- package/dist/components/ui/bubble/bubble.js.map +1 -1
- package/dist/components/ui/button/button.js +2 -2
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.js +1 -1
- package/dist/components/ui/button-group/button-group.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +6 -6
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/callout/callout.d.ts +4 -4
- package/dist/components/ui/callout/callout.js +4 -4
- package/dist/components/ui/callout/callout.js.map +1 -1
- package/dist/components/ui/card/card.d.ts +2 -2
- 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.d.ts +4 -4
- package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/chart/chart-options.d.ts +7 -7
- package/dist/components/ui/chart/chart-options.js +9 -9
- package/dist/components/ui/chart/chart-options.js.map +1 -1
- package/dist/components/ui/chart/chart.d.ts.map +1 -1
- package/dist/components/ui/chart/chart.js +16 -7
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +8 -6
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block/code-block.js +8 -6
- package/dist/components/ui/code-block/code-block.js.map +1 -1
- package/dist/components/ui/command/command.d.ts +4 -4
- package/dist/components/ui/command/command.js +4 -4
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/components/ui/detail-panel/detail-panel.js +13 -13
- package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
- package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog-layer.js +17 -1
- package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.js +4 -3
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
- package/dist/components/ui/diff-block/diff-block.js +3 -3
- package/dist/components/ui/diff-block/diff-block.js.map +1 -1
- package/dist/components/ui/drawer/drawer.d.ts +3 -3
- package/dist/components/ui/drawer/drawer.js +2 -2
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
- package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
- package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
- package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
- package/dist/components/ui/empty/empty-state.js +33 -36
- package/dist/components/ui/empty/empty-state.js.map +1 -1
- package/dist/components/ui/empty/empty.d.ts +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.d.ts.map +1 -1
- package/dist/components/ui/entity-icon/entity-icon.js +7 -7
- package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.js +15 -15
- package/dist/components/ui/field/field.js.map +1 -1
- package/dist/components/ui/field/number-field.d.ts +1 -1
- package/dist/components/ui/field/number-field.js +1 -1
- package/dist/components/ui/field/number-field.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/item/item.d.ts.map +1 -1
- package/dist/components/ui/item/item.js +26 -26
- package/dist/components/ui/item/item.js.map +1 -1
- package/dist/components/ui/kbd/kbd.d.ts +2 -2
- package/dist/components/ui/kbd/kbd.js +2 -2
- package/dist/components/ui/kbd/kbd.js.map +1 -1
- package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
- package/dist/components/ui/kbd/platform-modifier.js +3 -3
- package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
- package/dist/components/ui/label/label.d.ts +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.d.ts.map +1 -1
- package/dist/components/ui/marker/marker.js +17 -19
- package/dist/components/ui/marker/marker.js.map +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +2 -2
- package/dist/components/ui/menubar/menubar.js +1 -1
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/message/message.d.ts.map +1 -1
- package/dist/components/ui/message/message.js +16 -18
- package/dist/components/ui/message/message.js.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
- package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/ui/native-select/native-select.d.ts +1 -1
- package/dist/components/ui/native-select/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.js +2 -4
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.js +11 -4
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.js +6 -8
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire/questionnaire.js +73 -73
- package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +12 -6
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.d.ts +2 -2
- package/dist/components/ui/resizable/resizable.js +3 -3
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/select/select.d.ts +3 -3
- package/dist/components/ui/select/select.js +1 -1
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.js +4 -3
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +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.d.ts +1 -1
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/spinner/spinner.js +1 -1
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
- package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
- package/dist/components/ui/status-chip/status-chip.js +11 -11
- package/dist/components/ui/status-chip/status-chip.js.map +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.js +8 -6
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +4 -4
- package/dist/components/ui/tabs/tabs.js +4 -4
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.js +1 -1
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/components/ui/toast/toast.js +13 -15
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.js +1 -1
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
- package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
- package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -1
- package/dist/components/ui/tooltip/index.js +3 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +6 -5
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/components/ui/trace/trace.d.ts.map +1 -1
- package/dist/components/ui/trace/trace.js +17 -17
- package/dist/components/ui/trace/trace.js.map +1 -1
- package/dist/components/ui/typography/typography.d.ts +3 -3
- package/dist/components/ui/typography/typography.js +5 -5
- package/dist/components/ui/typography/typography.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/lib/accent-presets.d.ts +1 -1
- package/dist/lib/accent-presets.js.map +1 -1
- package/dist/lib/accent-roles.d.ts +2 -2
- package/dist/lib/accent-roles.js +2 -2
- package/dist/lib/accent-roles.js.map +1 -1
- package/dist/lib/appearance-font-settings.d.ts.map +1 -1
- package/dist/lib/appearance-font-settings.js +15 -7
- package/dist/lib/appearance-font-settings.js.map +1 -1
- package/dist/lib/create-poll.d.ts +39 -0
- package/dist/lib/create-poll.d.ts.map +1 -0
- package/dist/lib/create-poll.js +116 -0
- package/dist/lib/create-poll.js.map +1 -0
- package/dist/lib/font-zoom.d.ts +1 -1
- package/dist/lib/font-zoom.js +1 -1
- package/dist/lib/font-zoom.js.map +1 -1
- package/dist/lib/keyed-rows.d.ts +2 -1
- package/dist/lib/keyed-rows.d.ts.map +1 -1
- package/dist/lib/keyed-rows.js +3 -2
- package/dist/lib/keyed-rows.js.map +1 -1
- package/dist/lib/overlay.d.ts +5 -5
- package/dist/lib/overlay.js +5 -5
- package/dist/lib/overlay.js.map +1 -1
- package/dist/lib/preference-store.d.ts +2 -2
- package/dist/lib/preference-store.js +2 -2
- package/dist/lib/preference-store.js.map +1 -1
- package/dist/lib/safe-script.d.ts +2 -2
- package/dist/lib/safe-script.js +2 -2
- package/dist/lib/safe-script.js.map +1 -1
- package/dist/lib/scroll-geometry.d.ts +1 -1
- package/dist/lib/scroll-geometry.js +1 -1
- package/dist/lib/scroll-geometry.js.map +1 -1
- package/dist/lib/text.d.ts +1 -1
- package/dist/lib/text.js +1 -1
- package/dist/lib/text.js.map +1 -1
- package/dist/lib/theme-accents.js +3 -3
- package/dist/lib/theme-accents.js.map +1 -1
- package/dist/lib/theme-css.js.map +1 -1
- package/dist/lib/theme-defaults.d.ts +4 -4
- package/dist/lib/theme-defaults.js +4 -4
- package/dist/lib/theme-defaults.js.map +1 -1
- package/dist/lib/theme-engine-light.js.map +1 -1
- package/dist/lib/theme-engine.d.ts +2 -2
- package/dist/lib/theme-engine.js +2 -2
- package/dist/lib/theme-engine.js.map +1 -1
- package/dist/lib/theme-projection.d.ts +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-projection.js.map +1 -1
- package/dist/lib/theme-records.d.ts +2 -2
- package/dist/lib/theme-records.js +2 -2
- package/dist/lib/theme-records.js.map +1 -1
- package/dist/lib/theme-types.d.ts +1 -1
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/lib/themes.d.ts +13 -13
- package/dist/lib/themes.js +13 -13
- package/dist/lib/themes.js.map +1 -1
- package/dist/lib/tokens.d.ts +2 -2
- package/dist/lib/tokens.js +1 -1
- package/dist/lib/tokens.js.map +1 -1
- package/dist/lib/tooltip-focus-gate.d.ts +2 -2
- package/dist/lib/tooltip-focus-gate.js +2 -2
- package/dist/lib/tooltip-focus-gate.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/lib/variants.d.ts +4 -4
- package/dist/lib/variants.js +1 -1
- package/dist/lib/variants.js.map +1 -1
- package/dist/lib/version-notes.d.ts +4 -4
- package/dist/lib/version-notes.js +4 -4
- package/dist/lib/version-notes.js.map +1 -1
- package/dist/lint.js.map +1 -1
- package/dist/r/account-menu.json +1 -0
- package/dist/r/lib.json +5 -0
- package/dist/r/registry.json +11 -0
- package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
- package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/dist/r/src/components/composites/chat/chat.tsx +15 -9
- package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/dist/r/src/components/composites/context/context.tsx +2 -2
- package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
- package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
- package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/dist/r/src/components/composites/model-selector/model-selector.tsx +4 -4
- package/dist/r/src/components/composites/model-selector/models.ts +2 -2
- package/dist/r/src/components/composites/plan/plan.tsx +19 -11
- package/dist/r/src/components/composites/queue/queue.tsx +5 -3
- package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/dist/r/src/components/composites/settings/settings.tsx +14 -6
- package/dist/r/src/components/composites/sources/source.ts +1 -1
- package/dist/r/src/components/composites/sources/sources.tsx +2 -2
- package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/dist/r/src/components/composites/stat/stat.tsx +20 -16
- package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
- package/dist/r/src/components/composites/task/task.tsx +1 -1
- package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
- package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
- package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
- package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
- package/dist/r/src/components/composites/tool/tool.tsx +4 -4
- package/dist/r/src/components/composites/tree/tree.tsx +31 -15
- package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
- package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
- package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
- package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
- package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
- package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
- package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/dist/r/src/components/conversation/message-composer.tsx +4 -6
- package/dist/r/src/components/conversation/message-row.tsx +34 -26
- package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
- package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
- package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
- package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
- package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/dist/r/src/components/layout/page/page.tsx +15 -11
- package/dist/r/src/components/layout/panel/panel.tsx +1 -1
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/dist/r/src/components/layout/side-rail/side-rail.tsx +38 -22
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/dist/r/src/components/layout/top-bar/top-bar.tsx +8 -6
- package/dist/r/src/components/motion/presence.tsx +2 -2
- package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
- package/dist/r/src/components/theme/lazy.ts +1 -1
- package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
- package/dist/r/src/components/theme/theme-context.ts +3 -3
- package/dist/r/src/components/theme/theme-document.ts +22 -11
- package/dist/r/src/components/theme/theme-picker.tsx +5 -5
- package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
- package/dist/r/src/components/theme/theme-script.ts +20 -0
- package/dist/r/src/components/theme/theme-state.ts +7 -7
- package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
- package/dist/r/src/components/ui/alert/alert.tsx +4 -3
- package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/dist/r/src/components/ui/badge/badge.tsx +2 -2
- package/dist/r/src/components/ui/board/board.tsx +17 -5
- package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
- package/dist/r/src/components/ui/button/button.tsx +2 -2
- package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
- package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
- package/dist/r/src/components/ui/callout/callout.tsx +4 -4
- package/dist/r/src/components/ui/card/card.tsx +2 -2
- package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
- package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
- package/dist/r/src/components/ui/chart/chart.tsx +14 -1
- package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
- package/dist/r/src/components/ui/command/command.tsx +7 -7
- package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/dist/r/src/components/ui/dialog/dialog-layer.tsx +27 -1
- package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
- package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
- package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
- package/dist/r/src/components/ui/empty/empty.tsx +1 -1
- package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/dist/r/src/components/ui/field/field.tsx +15 -7
- package/dist/r/src/components/ui/field/number-field.tsx +1 -1
- package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
- package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/dist/r/src/components/ui/item/item.tsx +24 -18
- package/dist/r/src/components/ui/kbd/kbd.tsx +2 -2
- package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/dist/r/src/components/ui/label/label.tsx +1 -1
- package/dist/r/src/components/ui/marker/marker.tsx +9 -5
- package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
- package/dist/r/src/components/ui/message/message.tsx +14 -13
- package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
- package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
- package/dist/r/src/components/ui/popover/popover.tsx +4 -2
- package/dist/r/src/components/ui/progress/progress.tsx +5 -3
- package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
- package/dist/r/src/components/ui/select/select.tsx +4 -4
- package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
- package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/dist/r/src/components/ui/slider/slider.tsx +1 -1
- package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
- package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/dist/r/src/components/ui/switch/switch.tsx +9 -6
- package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
- package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
- package/dist/r/src/components/ui/toast/toast.tsx +6 -4
- package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
- package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/dist/r/src/components/ui/tooltip/index.ts +1 -0
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/dist/r/src/components/ui/trace/trace.tsx +13 -9
- package/dist/r/src/components/ui/typography/typography.tsx +5 -5
- package/dist/r/src/lib/accent-presets.ts +1 -1
- package/dist/r/src/lib/accent-roles.ts +2 -2
- package/dist/r/src/lib/appearance-font-settings.ts +18 -7
- package/dist/r/src/lib/create-poll.ts +150 -0
- package/dist/r/src/lib/font-zoom.ts +3 -3
- package/dist/r/src/lib/keyed-rows.ts +3 -2
- package/dist/r/src/lib/overlay.ts +5 -5
- package/dist/r/src/lib/preference-store.ts +2 -2
- package/dist/r/src/lib/safe-script.ts +2 -2
- package/dist/r/src/lib/scroll-geometry.ts +1 -1
- package/dist/r/src/lib/text.ts +1 -1
- package/dist/r/src/lib/theme-accents.ts +3 -3
- package/dist/r/src/lib/theme-css.ts +2 -2
- package/dist/r/src/lib/theme-defaults.ts +4 -4
- package/dist/r/src/lib/theme-engine-light.ts +2 -2
- package/dist/r/src/lib/theme-engine.ts +2 -2
- package/dist/r/src/lib/theme-projection.ts +2 -2
- package/dist/r/src/lib/theme-records.ts +2 -2
- package/dist/r/src/lib/theme-types.ts +1 -1
- package/dist/r/src/lib/themes.ts +14 -14
- package/dist/r/src/lib/tokens.ts +2 -2
- package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
- package/dist/r/src/lib/utils.ts +1 -1
- package/dist/r/src/lib/variants.ts +4 -4
- package/dist/r/src/lib/version-notes.ts +4 -4
- package/dist/r/src/styles/base.css +12 -43
- package/dist/r/src/styles/fonts.css +1 -1
- package/dist/r/src/styles/theme.css +35 -35
- package/dist/r/tooltip.json +5 -0
- package/package.json +2 -1
- package/registry.json +11 -0
- package/src/components/composites/account-menu/account-menu.tsx +22 -2
- package/src/components/composites/action-button/action-button.tsx +124 -78
- package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
- package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
- package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
- package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
- package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
- package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
- package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
- package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
- package/src/components/composites/chat/chat.tsx +15 -9
- package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
- package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
- package/src/components/composites/confirmation/confirmation.tsx +8 -4
- package/src/components/composites/context/context.tsx +2 -2
- package/src/components/composites/file-tree/build-file-tree.ts +1 -1
- package/src/components/composites/file-tree/file-tree.tsx +16 -2
- package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
- package/src/components/composites/inline-citation/citation.ts +1 -1
- package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
- package/src/components/composites/list-row/list-row-control.tsx +31 -22
- package/src/components/composites/list-row/list-row.tsx +69 -73
- package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
- package/src/components/composites/model-selector/model-selector.tsx +4 -4
- package/src/components/composites/model-selector/models.ts +2 -2
- package/src/components/composites/plan/plan.tsx +19 -11
- package/src/components/composites/queue/queue.tsx +5 -3
- package/src/components/composites/reasoning/reasoning.tsx +4 -4
- package/src/components/composites/settings/settings-navigation.tsx +57 -17
- package/src/components/composites/settings/settings.tsx +14 -6
- package/src/components/composites/sources/source.ts +1 -1
- package/src/components/composites/sources/sources.tsx +2 -2
- package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
- package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
- package/src/components/composites/stat/stat.tsx +20 -16
- package/src/components/composites/subagent/subagent.tsx +6 -4
- package/src/components/composites/task/task.tsx +1 -1
- package/src/components/composites/terminal/ansi.ts +3 -3
- package/src/components/composites/terminal/terminal-model.ts +3 -3
- package/src/components/composites/terminal/terminal.tsx +24 -12
- package/src/components/composites/test-results/test-results-model.ts +4 -4
- package/src/components/composites/test-results/test-results.tsx +1 -1
- package/src/components/composites/tool/tool.tsx +4 -4
- package/src/components/composites/tree/tree.tsx +31 -15
- package/src/components/composites/update-dialog/channel-control.tsx +17 -8
- package/src/components/composites/update-dialog/index.ts +1 -0
- package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
- package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
- package/src/components/conversation/busy-send-button.tsx +6 -2
- package/src/components/conversation/composer-menu.tsx +3 -3
- package/src/components/conversation/conversation-avatar.tsx +1 -1
- package/src/components/conversation/conversation-pane.tsx +8 -5
- package/src/components/conversation/conversation-surface.tsx +2 -2
- package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
- package/src/components/conversation/message-composer.tsx +4 -6
- package/src/components/conversation/message-row.tsx +34 -26
- package/src/components/conversation/scroll-follow-core.ts +8 -8
- package/src/components/conversation/scroll-follow.ts +24 -8
- package/src/components/conversation/thread-panel.tsx +7 -3
- package/src/components/conversation/transcript-composition.tsx +4 -2
- package/src/components/layout/app-shell/app-shell.tsx +1 -1
- package/src/components/layout/app-shell/skip-link.tsx +3 -2
- package/src/components/layout/page/page.tsx +15 -11
- package/src/components/layout/panel/panel.tsx +1 -1
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
- package/src/components/layout/side-rail/side-rail-context.ts +1 -1
- package/src/components/layout/side-rail/side-rail.tsx +38 -22
- package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
- package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
- package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
- package/src/components/layout/split-layout/split-layout.tsx +6 -2
- package/src/components/layout/status-bar/status-bar.tsx +1 -1
- package/src/components/layout/top-bar/top-bar.tsx +8 -6
- package/src/components/motion/presence.tsx +2 -2
- package/src/components/theme/appearance-panel.tsx +5 -5
- package/src/components/theme/lazy.ts +1 -1
- package/src/components/theme/theme-catalogue-source.ts +2 -2
- package/src/components/theme/theme-context.ts +3 -3
- package/src/components/theme/theme-document.ts +22 -11
- package/src/components/theme/theme-picker.tsx +5 -5
- package/src/components/theme/theme-provider-value.ts +15 -3
- package/src/components/theme/theme-script.ts +20 -0
- package/src/components/theme/theme-state.ts +7 -7
- package/src/components/theme/theme-toggle.tsx +1 -1
- package/src/components/ui/alert/alert.tsx +4 -3
- package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
- package/src/components/ui/badge/badge.tsx +2 -2
- package/src/components/ui/board/board.tsx +17 -5
- package/src/components/ui/bubble/bubble.tsx +6 -4
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/button-group/button-group.tsx +1 -1
- package/src/components/ui/calendar/calendar.tsx +2 -2
- package/src/components/ui/callout/callout.tsx +4 -4
- package/src/components/ui/card/card.tsx +2 -2
- package/src/components/ui/carousel/carousel.tsx +6 -6
- package/src/components/ui/chart/chart-options.ts +9 -9
- package/src/components/ui/chart/chart.tsx +14 -1
- package/src/components/ui/checkbox/checkbox.tsx +9 -6
- package/src/components/ui/code-block/code-block.tsx +14 -7
- package/src/components/ui/command/command.tsx +7 -7
- package/src/components/ui/context-menu/context-menu.tsx +1 -1
- package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
- package/src/components/ui/dialog/dialog-layer.tsx +27 -1
- package/src/components/ui/dialog/dialog.tsx +4 -3
- package/src/components/ui/diff-block/diff-block.tsx +6 -6
- package/src/components/ui/drawer/drawer.tsx +3 -3
- package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
- package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
- package/src/components/ui/empty/empty-state.tsx +23 -18
- package/src/components/ui/empty/empty.tsx +1 -1
- package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
- package/src/components/ui/field/field.tsx +15 -7
- package/src/components/ui/field/number-field.tsx +1 -1
- package/src/components/ui/hover-card/hover-card.tsx +1 -1
- package/src/components/ui/input-group/input-group.tsx +1 -1
- package/src/components/ui/input-otp/input-otp.tsx +1 -1
- package/src/components/ui/item/item.tsx +24 -18
- package/src/components/ui/kbd/kbd.tsx +2 -2
- package/src/components/ui/kbd/platform-modifier.ts +3 -3
- package/src/components/ui/label/label.tsx +1 -1
- package/src/components/ui/marker/marker.tsx +9 -5
- package/src/components/ui/menubar/menubar.tsx +2 -2
- package/src/components/ui/message/message.tsx +14 -13
- package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
- package/src/components/ui/native-select/native-select.tsx +1 -1
- package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
- package/src/components/ui/pagination/pagination.tsx +1 -1
- package/src/components/ui/popover/popover.tsx +4 -2
- package/src/components/ui/progress/progress.tsx +5 -3
- package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
- package/src/components/ui/radio-group/radio-group.tsx +9 -6
- package/src/components/ui/resizable/resizable.tsx +5 -5
- package/src/components/ui/select/select.tsx +4 -4
- package/src/components/ui/sheet/sheet.tsx +4 -3
- package/src/components/ui/skeleton/skeleton.tsx +1 -1
- package/src/components/ui/slider/slider.tsx +1 -1
- package/src/components/ui/spinner/spinner.tsx +1 -1
- package/src/components/ui/status-chip/status-chip.tsx +13 -13
- package/src/components/ui/switch/switch.tsx +9 -6
- package/src/components/ui/tabs/tabs.tsx +4 -4
- package/src/components/ui/textarea/textarea.tsx +1 -1
- package/src/components/ui/toast/toast.tsx +6 -4
- package/src/components/ui/toggle/toggle.tsx +1 -1
- package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
- package/src/components/ui/tooltip/index.ts +1 -0
- package/src/components/ui/tooltip/tooltip.tsx +6 -4
- package/src/components/ui/trace/trace.tsx +13 -9
- package/src/components/ui/typography/typography.tsx +5 -5
- package/src/index.ts +1 -0
- package/src/lib/accent-presets.ts +1 -1
- package/src/lib/accent-roles.ts +2 -2
- package/src/lib/appearance-font-settings.ts +18 -7
- package/src/lib/create-poll.ts +150 -0
- package/src/lib/font-zoom.ts +3 -3
- package/src/lib/keyed-rows.ts +3 -2
- package/src/lib/overlay.ts +5 -5
- package/src/lib/preference-store.ts +2 -2
- package/src/lib/safe-script.ts +2 -2
- package/src/lib/scroll-geometry.ts +1 -1
- package/src/lib/text.ts +1 -1
- package/src/lib/theme-accents.ts +3 -3
- package/src/lib/theme-css.ts +2 -2
- package/src/lib/theme-defaults.ts +4 -4
- package/src/lib/theme-engine-light.ts +2 -2
- package/src/lib/theme-engine.ts +2 -2
- package/src/lib/theme-projection.ts +2 -2
- package/src/lib/theme-records.ts +2 -2
- package/src/lib/theme-types.ts +1 -1
- package/src/lib/themes.ts +14 -14
- package/src/lib/tokens.ts +2 -2
- package/src/lib/tooltip-focus-gate.ts +11 -11
- package/src/lib/utils.ts +1 -1
- package/src/lib/variants.ts +4 -4
- package/src/lib/version-notes.ts +4 -4
- package/src/lint/index.ts +1 -1
- package/src/styles/base.css +12 -43
- package/src/styles/fonts.css +1 -1
- package/src/styles/theme.css +35 -35
- package/src/styles/themes/aardvark-blue.css +98 -0
- package/src/styles/themes/aardvark-ink.css +98 -0
- package/src/styles/themes/adea-dark-colorblind.css +98 -0
- package/src/styles/themes/adea-dark-high-contrast.css +98 -0
- package/src/styles/themes/adea-dark.css +47 -0
- package/src/styles/themes/adea-light-colorblind.css +141 -0
- package/src/styles/themes/adea-light-high-contrast.css +141 -0
- package/src/styles/themes/adea-light.css +47 -0
- package/src/styles/themes/ayu-light.css +141 -0
- package/src/styles/themes/ayu-mirage.css +98 -0
- package/src/styles/themes/ayu.css +98 -0
- package/src/styles/themes/catppuccin-frappe.css +98 -0
- package/src/styles/themes/catppuccin-latte.css +141 -0
- package/src/styles/themes/catppuccin-macchiato.css +98 -0
- package/src/styles/themes/catppuccin-mocha.css +98 -0
- package/src/styles/themes/dracula.css +98 -0
- package/src/styles/themes/everforest-dark.css +98 -0
- package/src/styles/themes/everforest-light.css +141 -0
- package/src/styles/themes/gruvbox-dark.css +98 -0
- package/src/styles/themes/gruvbox-light.css +141 -0
- package/src/styles/themes/kanagawa.css +98 -0
- package/src/styles/themes/monokai.css +98 -0
- package/src/styles/themes/nord-light.css +141 -0
- package/src/styles/themes/nord.css +98 -0
- package/src/styles/themes/one-dark.css +98 -0
- package/src/styles/themes/rosepine-dawn.css +141 -0
- package/src/styles/themes/rosepine-moon.css +98 -0
- package/src/styles/themes/rosepine.css +98 -0
- package/src/styles/themes/solarized-dark.css +98 -0
- package/src/styles/themes/solarized-light.css +141 -0
- package/src/styles/themes/tokyonight-day.css +141 -0
- package/src/styles/themes/tokyonight-night.css +98 -0
- package/src/styles/themes/tokyonight-storm.css +98 -0
- package/src/styles/themes/vesper.css +98 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* A terminal's text, read safely.
|
|
3
3
|
*
|
|
4
4
|
* Command output is untrusted bytes, not text: it carries colour for the human
|
|
5
|
-
* who ran the command, cursor control for a screen that is not here, and
|
|
6
|
-
* a hostile program
|
|
5
|
+
* who ran the command, cursor control for a screen that is not here, and, from
|
|
6
|
+
* a hostile program, sequences that ask a terminal emulator to rewrite its
|
|
7
7
|
* title, write to the clipboard (OSC 52) or hide what it printed. This parser
|
|
8
8
|
* accepts exactly the part a transcript can honour and drops the rest:
|
|
9
9
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*
|
|
28
28
|
* ## Why a stateful parser
|
|
29
29
|
*
|
|
30
|
-
* Output arrives in chunks that split anywhere
|
|
30
|
+
* Output arrives in chunks that split anywhere, inside an escape sequence, in
|
|
31
31
|
* the middle of a line. `createAnsiParser` keeps the half-read sequence, the
|
|
32
32
|
* current style and the line being written between `write` calls, so a chunk
|
|
33
33
|
* boundary changes nothing about the result. Finished lines are immutable and
|
|
@@ -3,8 +3,8 @@ import { isAtEnd } from '#lib/scroll-geometry'
|
|
|
3
3
|
/**
|
|
4
4
|
* The terminal's pure decisions: what its status says, which lines are mounted,
|
|
5
5
|
* and whether the reader is at the end. They live apart from the component so
|
|
6
|
-
* the rules that are easy to get subtly wrong
|
|
7
|
-
* lines", a tolerance that yanks the reader back to the bottom
|
|
6
|
+
* the rules that are easy to get subtly wrong, an off-by-one in "N earlier
|
|
7
|
+
* lines", a tolerance that yanks the reader back to the bottom, have tests.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -23,7 +23,7 @@ export function terminalStatusLabel(status: TerminalStatus): string {
|
|
|
23
23
|
return Number.isInteger(status.code) ? `Exited with code ${status.code}` : 'Exited'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/** Whether a status is a non-zero exit
|
|
26
|
+
/** Whether a status is a non-zero exit, the one thing the header tones as a failure. */
|
|
27
27
|
export function isFailedExit(status: TerminalStatus | undefined): boolean {
|
|
28
28
|
return status?.state === 'exited' && Number.isInteger(status.code) && status.code !== 0
|
|
29
29
|
}
|
|
@@ -319,22 +319,34 @@ export function Terminal(props: TerminalProps) {
|
|
|
319
319
|
)
|
|
320
320
|
)
|
|
321
321
|
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
// The retained buffer can hold hundreds of thousands of lines, and only a window
|
|
323
|
+
// of them is drawn, so rows are read by position instead of copying the buffer
|
|
324
|
+
// on every streamed chunk. The open line, when there is one, is the last row.
|
|
325
|
+
const outputRows = {
|
|
326
|
+
get length() {
|
|
327
|
+
return outputRowCount()
|
|
328
|
+
},
|
|
329
|
+
at(index: number): AnsiLine | undefined {
|
|
324
330
|
revision()
|
|
325
|
-
|
|
331
|
+
return index === parser.lines.length ? parser.openLine() : parser.lines[index]
|
|
332
|
+
},
|
|
333
|
+
slice(start: number, end: number): AnsiLine[] {
|
|
334
|
+
revision()
|
|
335
|
+
const rows = parser.lines.slice(start, Math.min(end, parser.lines.length))
|
|
326
336
|
const open = parser.openLine()
|
|
327
|
-
if (open) rows.push(open)
|
|
337
|
+
if (open && end > parser.lines.length && start <= parser.lines.length) rows.push(open)
|
|
328
338
|
return rows
|
|
329
339
|
},
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
340
|
+
}
|
|
341
|
+
const outputRowCount = createMemo(() => {
|
|
342
|
+
revision()
|
|
343
|
+
return parser.lines.length + (parser.openLine() ? 1 : 0)
|
|
344
|
+
})
|
|
333
345
|
// Where the reader parked, as a count of lines since the output began. An open
|
|
334
346
|
// line is a row too: freeze its snapshot so streamed characters and CR redraws
|
|
335
347
|
// do not rewrite the text under a parked reader.
|
|
336
348
|
const [parked, setParked] = createSignal<{ epoch: number; end: number; open?: AnsiLine }>()
|
|
337
|
-
const total = () => parser.droppedLines + outputRows
|
|
349
|
+
const total = () => parser.droppedLines + outputRows.length
|
|
338
350
|
const anchorEnd = () => {
|
|
339
351
|
const current = revision()
|
|
340
352
|
const position = parked()
|
|
@@ -342,7 +354,7 @@ export function Terminal(props: TerminalProps) {
|
|
|
342
354
|
}
|
|
343
355
|
const lineWindow = createMemo(() => {
|
|
344
356
|
revision()
|
|
345
|
-
return terminalWindow(outputRows
|
|
357
|
+
return terminalWindow(outputRows.length, parser.droppedLines, limit(), anchorEnd())
|
|
346
358
|
})
|
|
347
359
|
// Finished rows keep their parser identity. If an open row existed when the
|
|
348
360
|
// reader parked, substitute its immutable snapshot until they jump to latest.
|
|
@@ -351,7 +363,7 @@ export function Terminal(props: TerminalProps) {
|
|
|
351
363
|
revision()
|
|
352
364
|
const start = lineWindow().start
|
|
353
365
|
const end = lineWindow().end
|
|
354
|
-
const rows = outputRows
|
|
366
|
+
const rows = outputRows.slice(start, end)
|
|
355
367
|
const position = parked()
|
|
356
368
|
if (position?.epoch === revision() && position.open) {
|
|
357
369
|
const retainedIndex = position.end - 1 - parser.droppedLines
|
|
@@ -368,7 +380,7 @@ export function Terminal(props: TerminalProps) {
|
|
|
368
380
|
const position = parked()
|
|
369
381
|
if (position?.epoch !== revision() || !position.open) return false
|
|
370
382
|
const retainedIndex = position.end - 1 - parser.droppedLines
|
|
371
|
-
const current = outputRows()
|
|
383
|
+
const current = outputRows.at(retainedIndex)
|
|
372
384
|
return current !== undefined && !sameAnsiLine(position.open, current)
|
|
373
385
|
}
|
|
374
386
|
const newerRows = () => lineWindow().later + (changedParkedLine() ? 1 : 0)
|
|
@@ -504,7 +516,7 @@ export function Terminal(props: TerminalProps) {
|
|
|
504
516
|
<Button
|
|
505
517
|
variant="ghost"
|
|
506
518
|
size="2xs"
|
|
507
|
-
onClick={() => setLimit(revealEarlier(limit(), pageSize(), outputRows
|
|
519
|
+
onClick={() => setLimit(revealEarlier(limit(), pageSize(), outputRows.length))}
|
|
508
520
|
>
|
|
509
521
|
Show {Math.min(pageSize(), lineWindow().revealable).toLocaleString()} earlier
|
|
510
522
|
</Button>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* with the counts the host reported, and how a duration is said.
|
|
4
4
|
*
|
|
5
5
|
* The one rule that shapes everything here is that a count is a claim. There are
|
|
6
|
-
* two honest sources for one
|
|
7
|
-
* chose to list
|
|
6
|
+
* two honest sources for one, the host's own tally (`summary`), and the tests it
|
|
7
|
+
* chose to list, and they are allowed to disagree: a host may list only the
|
|
8
8
|
* failures, a runner may count tests it did not stream, a suite may have been cut
|
|
9
9
|
* short. So nothing is silently recomputed. A supplied count is shown as given; if
|
|
10
10
|
* the tests listed do not add up to it, the listed number is shown beside it; and
|
|
@@ -128,7 +128,7 @@ const OUTCOMES: readonly TestOutcome[] = ['failed', 'passed', 'skipped']
|
|
|
128
128
|
*
|
|
129
129
|
* With a summary: exactly the counts it supplied, as given. `differs` is set
|
|
130
130
|
* when tests are listed at all and the listed number for that outcome is not the
|
|
131
|
-
* supplied one
|
|
131
|
+
* supplied one, a host that lists only failures will see "40 passed (0 listed)",
|
|
132
132
|
* which is true and tells the reader the list is partial. Without a summary: the
|
|
133
133
|
* outcomes that occur among the listed tests, with `basis: 'listed'`.
|
|
134
134
|
*/
|
|
@@ -206,7 +206,7 @@ export type SuiteState = 'failed' | 'passed' | 'running' | undefined
|
|
|
206
206
|
* What a suite can say about itself from the tests listed in it. Any listed
|
|
207
207
|
* failure makes it `failed`; a listed test still running makes it `running`;
|
|
208
208
|
* `passed` needs at least one passed test and every listed test to be passed or
|
|
209
|
-
* skipped. Anything else
|
|
209
|
+
* skipped. Anything else, no tests, a test with no status, is silence.
|
|
210
210
|
*/
|
|
211
211
|
export function suiteState(counts: ListedCounts): SuiteState {
|
|
212
212
|
if (counts.failed > 0) return 'failed'
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
* Nothing is computed that the host did not supply data for, and nothing the host
|
|
59
59
|
* supplied is quietly recomputed. `summary` is the host's own tally and is shown
|
|
60
60
|
* as given. If tests are listed and their number for an outcome does not match, the
|
|
61
|
-
* listed number is shown beside it
|
|
61
|
+
* listed number is shown beside it, "40 passed (2 listed)", which is also how a
|
|
62
62
|
* host that lists only its failures reads. Without a `summary` the counts shown are
|
|
63
63
|
* those of the tests listed, and the component says so; it does not present them as
|
|
64
64
|
* the run's totals. A suite is marked failed or passed only from the tests listed in
|
|
@@ -16,8 +16,8 @@ import { formatToolValue, TOOL_VALUE_MAX_CHARS } from './format-tool-value'
|
|
|
16
16
|
* Tool.
|
|
17
17
|
*
|
|
18
18
|
* One tool call, from what was asked to what came back, as a `TraceLine`: the
|
|
19
|
-
* tool's name and a short description on the line, and
|
|
20
|
-
* to show
|
|
19
|
+
* tool's name and a short description on the line, and, when there is anything
|
|
20
|
+
* to show, an input section, an output section and an error underneath. Reach
|
|
21
21
|
* for `Subagent` when the "tool" is another agent with steps of its own, for a
|
|
22
22
|
* bare `CodeBlock` when the point is the output itself and not the call that made
|
|
23
23
|
* it, and for a confirmation (passed as `children`) when the reader has to decide
|
|
@@ -25,7 +25,7 @@ import { formatToolValue, TOOL_VALUE_MAX_CHARS } from './format-tool-value'
|
|
|
25
25
|
*
|
|
26
26
|
* ## Everything is optional, and absence is not a claim
|
|
27
27
|
*
|
|
28
|
-
* A call with no `status` shows no mark at all
|
|
28
|
+
* A call with no `status` shows no mark at all, an event that merely arrived is
|
|
29
29
|
* not "done". `input`, `output` and `errorText` each render a section only when
|
|
30
30
|
* the host passed them: no empty "Output" box under a call that is still running,
|
|
31
31
|
* and no invented "No output" under one that failed. An error with no output is
|
|
@@ -42,7 +42,7 @@ import { formatToolValue, TOOL_VALUE_MAX_CHARS } from './format-tool-value'
|
|
|
42
42
|
*
|
|
43
43
|
* ## Payloads are untrusted and unbounded
|
|
44
44
|
*
|
|
45
|
-
* `input` and `output` are `unknown
|
|
45
|
+
* `input` and `output` are `unknown`, whatever the model sent and the tool
|
|
46
46
|
* returned. They go through `formatToolValue`, which cannot throw (circular
|
|
47
47
|
* references, `BigInt`, throwing getters) and stops after `maxChars`; a cut view
|
|
48
48
|
* says so rather than presenting half a document as the whole. Sections render in
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
createContext,
|
|
5
5
|
createEffect,
|
|
6
6
|
createMemo,
|
|
7
|
+
createSelector,
|
|
7
8
|
createUniqueId,
|
|
8
9
|
For,
|
|
9
10
|
onCleanup,
|
|
@@ -23,6 +24,8 @@ import {
|
|
|
23
24
|
type TreeContextValue = {
|
|
24
25
|
idPrefix: string
|
|
25
26
|
activeId: () => string | null
|
|
27
|
+
/** O(1) per change: only the rows whose answer flips re-run, not every row. */
|
|
28
|
+
isActive: (id: string) => boolean
|
|
26
29
|
index: () => TreeNavigationIndex
|
|
27
30
|
register: (id: string, element: HTMLDivElement) => void
|
|
28
31
|
unregister: (id: string, element: HTMLDivElement | undefined) => void
|
|
@@ -188,8 +191,10 @@ export function Tree(props: TreeProps) {
|
|
|
188
191
|
!isInsideTreeRow(active)
|
|
189
192
|
)
|
|
190
193
|
}
|
|
194
|
+
// Rows are only observed for a host that reads their sizes (a virtualiser); an
|
|
195
|
+
// observer per tree otherwise measures every row on every mount for nothing.
|
|
191
196
|
const rowSizeObserver =
|
|
192
|
-
typeof ResizeObserver === 'undefined'
|
|
197
|
+
typeof ResizeObserver === 'undefined' || !local.onRowSizeChange
|
|
193
198
|
? undefined
|
|
194
199
|
: new ResizeObserver((entries) => {
|
|
195
200
|
if (disposed) return
|
|
@@ -269,6 +274,7 @@ export function Tree(props: TreeProps) {
|
|
|
269
274
|
const context: TreeContextValue = {
|
|
270
275
|
idPrefix,
|
|
271
276
|
activeId: effectiveActiveId,
|
|
277
|
+
isActive: createSelector(effectiveActiveId),
|
|
272
278
|
index,
|
|
273
279
|
register: (id, element) => {
|
|
274
280
|
rows.set(id, element)
|
|
@@ -319,7 +325,7 @@ export function Tree(props: TreeProps) {
|
|
|
319
325
|
expand: (id, expanded) => local.onExpand?.(id, expanded),
|
|
320
326
|
disclosure: () => local.disclosure ?? 'row',
|
|
321
327
|
guides: () => local.guides ?? false,
|
|
322
|
-
onActiveIdChange: local.onActiveIdChange,
|
|
328
|
+
onActiveIdChange: (id) => local.onActiveIdChange(id),
|
|
323
329
|
}
|
|
324
330
|
|
|
325
331
|
// A filtered, collapsed-away or removed active ID falls back to the first
|
|
@@ -455,7 +461,7 @@ export type TreeRowProps = Omit<
|
|
|
455
461
|
* expand and collapse, so the marker adds a pointer path and nothing else.
|
|
456
462
|
* Pressing it does not move focus or the roving stop to its row; if the toggle
|
|
457
463
|
* hides the focused row, `Tree` recovers focus as it does for any collapse (see
|
|
458
|
-
* the `Tree` comment
|
|
464
|
+
* the `Tree` comment).
|
|
459
465
|
*/
|
|
460
466
|
export function TreeRow(props: TreeRowProps) {
|
|
461
467
|
const tree = useTreeContext()
|
|
@@ -473,6 +479,12 @@ export function TreeRow(props: TreeRowProps) {
|
|
|
473
479
|
let row: HTMLDivElement | undefined
|
|
474
480
|
let registeredId: string | undefined
|
|
475
481
|
const id = () => local.item.id
|
|
482
|
+
// Each slot is a JSX getter that builds its subtree per read, so it is read once
|
|
483
|
+
// into a memo. The memo holds the slot as given (not resolved), so the wrapper
|
|
484
|
+
// span renders exactly when it did before: whenever a slot is passed, even one
|
|
485
|
+
// whose content is currently empty, which keeps the row's spacing stable.
|
|
486
|
+
const leading = createMemo(() => local.leading)
|
|
487
|
+
const trailing = createMemo(() => local.trailing)
|
|
476
488
|
|
|
477
489
|
const handleFocusOut = (event: FocusEvent) => tree.noteBlur(event.relatedTarget)
|
|
478
490
|
|
|
@@ -534,9 +546,9 @@ export function TreeRow(props: TreeRowProps) {
|
|
|
534
546
|
aria-selected={local.selected === undefined ? undefined : local.selected ? 'true' : 'false'}
|
|
535
547
|
aria-posinset={position()?.position}
|
|
536
548
|
aria-setsize={position()?.setSize}
|
|
537
|
-
tabIndex={tree.
|
|
549
|
+
tabIndex={tree.isActive(id()) ? 0 : -1}
|
|
538
550
|
data-tree-id={id()}
|
|
539
|
-
data-active={tree.
|
|
551
|
+
data-active={tree.isActive(id()) ? '' : undefined}
|
|
540
552
|
data-selected={local.selected ? '' : undefined}
|
|
541
553
|
data-expanded={local.item.expandable ? String(local.item.expanded) : undefined}
|
|
542
554
|
class={cn(
|
|
@@ -591,17 +603,21 @@ export function TreeRow(props: TreeRowProps) {
|
|
|
591
603
|
/>
|
|
592
604
|
) : null}
|
|
593
605
|
</span>
|
|
594
|
-
{
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
606
|
+
<Show when={leading()}>
|
|
607
|
+
{(slot) => (
|
|
608
|
+
<span class="flex size-4 shrink-0 items-center justify-center [&_svg]:size-4">
|
|
609
|
+
{slot()}
|
|
610
|
+
</span>
|
|
611
|
+
)}
|
|
612
|
+
</Show>
|
|
599
613
|
<span class="min-w-0 flex-1 truncate">{local.children}</span>
|
|
600
|
-
{
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
614
|
+
<Show when={trailing()}>
|
|
615
|
+
{(slot) => (
|
|
616
|
+
<span class="ms-auto flex shrink-0 items-center gap-1 text-muted-foreground">
|
|
617
|
+
{slot()}
|
|
618
|
+
</span>
|
|
619
|
+
)}
|
|
620
|
+
</Show>
|
|
605
621
|
</div>
|
|
606
622
|
)
|
|
607
623
|
}
|
|
@@ -4,27 +4,36 @@ import { createEffect, createSignal, onCleanup, Show, type Accessor } from 'soli
|
|
|
4
4
|
|
|
5
5
|
import type { ChannelControlActions } from './update-dialog'
|
|
6
6
|
|
|
7
|
-
export type UpdateChannel = 'stable' | 'pre-release'
|
|
7
|
+
export type UpdateChannel = 'stable' | 'pre-release'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A channel as a host may still have it stored. `dev` was retired: there are no
|
|
11
|
+
* dev releases, and the framework maps a stored `dev` to `pre-release`, so the
|
|
12
|
+
* control shows and saves it as that.
|
|
13
|
+
*/
|
|
14
|
+
export type StoredUpdateChannel = UpdateChannel | 'dev'
|
|
8
15
|
|
|
9
16
|
const CHANNEL_OPTIONS: ReadonlyArray<{ value: UpdateChannel; label: string }> = [
|
|
10
17
|
{ value: 'stable', label: 'Stable' },
|
|
11
18
|
{ value: 'pre-release', label: 'Pre-release' },
|
|
12
|
-
{ value: 'dev', label: 'Dev' },
|
|
13
19
|
]
|
|
14
20
|
|
|
15
21
|
const CHANNEL_DESCRIPTIONS: Record<UpdateChannel, string> = {
|
|
16
22
|
stable: 'Tested releases, after four days in pre-release.',
|
|
17
23
|
'pre-release': 'Daily builds. Early, with rough edges.',
|
|
18
|
-
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function knownChannel(value: StoredUpdateChannel): UpdateChannel {
|
|
27
|
+
return value === 'stable' ? 'stable' : 'pre-release'
|
|
19
28
|
}
|
|
20
29
|
|
|
21
30
|
export type UpdateChannelControlProps = {
|
|
22
31
|
/** The dialog's channel actions; every save flows through `recheck`. */
|
|
23
32
|
controls: ChannelControlActions
|
|
24
33
|
/** Read the persisted channel. */
|
|
25
|
-
read: () => Promise<
|
|
34
|
+
read: () => Promise<StoredUpdateChannel>
|
|
26
35
|
/** Persist a selection; resolves with the channel that actually stuck. */
|
|
27
|
-
persist: (value: UpdateChannel) => Promise<
|
|
36
|
+
persist: (value: UpdateChannel) => Promise<StoredUpdateChannel>
|
|
28
37
|
/** Disable beyond the dialog's own working state, e.g. a host save in flight. */
|
|
29
38
|
disabled?: Accessor<boolean>
|
|
30
39
|
/** Per-channel option labels, when the defaults don't fit the app. Values remain unchanged. */
|
|
@@ -41,7 +50,7 @@ export type UpdateChannelControlProps = {
|
|
|
41
50
|
|
|
42
51
|
/**
|
|
43
52
|
* The updater dialog's release-channel row: one setting, a select trailing.
|
|
44
|
-
* Every desktop application that ships channels presents the same
|
|
53
|
+
* Every desktop application that ships channels presents the same two of
|
|
45
54
|
* them with consistent behavior, which is why the row lives here rather than
|
|
46
55
|
* being redrawn per app. A save always flows through the dialog's `recheck`, so a
|
|
47
56
|
* channel switch re-asks the feed and the offer never outlives its channel.
|
|
@@ -61,7 +70,7 @@ export function UpdateChannelControl(props: UpdateChannelControlProps) {
|
|
|
61
70
|
void props
|
|
62
71
|
.read()
|
|
63
72
|
.then((value) => {
|
|
64
|
-
if (active) setChannel(value)
|
|
73
|
+
if (active) setChannel(knownChannel(value))
|
|
65
74
|
})
|
|
66
75
|
.catch(() => {
|
|
67
76
|
if (active) setError('The current update channel could not be read.')
|
|
@@ -87,7 +96,7 @@ export function UpdateChannelControl(props: UpdateChannelControlProps) {
|
|
|
87
96
|
try {
|
|
88
97
|
await props.controls.recheck(async () => {
|
|
89
98
|
try {
|
|
90
|
-
setChannel(await props.persist(next))
|
|
99
|
+
setChannel(knownChannel(await props.persist(next)))
|
|
91
100
|
persisted = true
|
|
92
101
|
} catch (caught) {
|
|
93
102
|
rollBack(caught)
|
|
@@ -465,13 +465,13 @@ export function UpdateDialog(props: UpdateDialogProps) {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
468
|
+
// Status is polled (every 400 ms during a download) and each snapshot can
|
|
469
|
+
// carry the whole changelog. The source strings are memos, so a poll with the
|
|
470
|
+
// same text does not convert the markdown again; only new text does.
|
|
471
|
+
const changelogSource = createMemo(() => state()?.changelog || local.changelog || '')
|
|
472
|
+
const changelog = createMemo(() => plainTextFromMarkdown(changelogSource()))
|
|
473
|
+
const notesSource = createMemo(() => state()?.releaseNotes || '')
|
|
474
|
+
const notes = createMemo(() => (notesSource() ? plainTextFromMarkdown(notesSource()) : ''))
|
|
475
475
|
const working = () => busy() || cancelPending() || isBusy(state())
|
|
476
476
|
const channelControlDisabled = () => !desktop() || working()
|
|
477
477
|
const recheckChannel = (beforeCheck?: () => Promise<void>) => check(beforeCheck, true)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
2
|
-
import { Show, createUniqueId, splitProps } from 'solid-js'
|
|
2
|
+
import { children as resolveChildren, Show, createUniqueId, splitProps } from 'solid-js'
|
|
3
3
|
import { cn } from '#lib/utils'
|
|
4
4
|
import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
|
|
5
5
|
|
|
@@ -30,12 +30,13 @@ export function WorkspaceMark(props: WorkspaceMarkProps) {
|
|
|
30
30
|
// A count is visible label text, so the accessible name must include it and the monogram.
|
|
31
31
|
const labelId = createUniqueId()
|
|
32
32
|
|
|
33
|
+
const badge = resolveChildren(() => local.badge)
|
|
33
34
|
const mark = (
|
|
34
35
|
<button
|
|
35
36
|
type="button"
|
|
36
|
-
aria-label={
|
|
37
|
+
aria-label={badge() ? undefined : local.name}
|
|
37
38
|
aria-labelledby={
|
|
38
|
-
|
|
39
|
+
badge() && !props['aria-label']
|
|
39
40
|
? `${labelId}-name ${labelId}-mark ${labelId}-badge`
|
|
40
41
|
: undefined
|
|
41
42
|
}
|
|
@@ -64,21 +65,23 @@ export function WorkspaceMark(props: WorkspaceMarkProps) {
|
|
|
64
65
|
<span data-slot="workspace-mark-initial">{local.name.charAt(0).toUpperCase()}</span>
|
|
65
66
|
}
|
|
66
67
|
>
|
|
67
|
-
{
|
|
68
|
+
{(childrenSlot) => <>{childrenSlot()}</>}
|
|
68
69
|
</Show>
|
|
69
70
|
</span>{' '}
|
|
70
71
|
{/* The badge is centred on the corner rather than tucked inside it. Inset
|
|
71
72
|
by an edge offset, a count badge is wider than the space between the
|
|
72
73
|
corner and the monogram, so it sat on the letter; centred on the corner,
|
|
73
74
|
a dot, a one-digit and a two-digit count all clear the letter's box. */}
|
|
74
|
-
<Show when={
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
<Show when={badge()}>
|
|
76
|
+
{(badgeSlot) => (
|
|
77
|
+
<span
|
|
78
|
+
id={`${labelId}-badge`}
|
|
79
|
+
data-slot="workspace-mark-badge"
|
|
80
|
+
class="absolute end-0 top-0 flex translate-x-1/2 -translate-y-1/2 items-center justify-center rtl:-translate-x-1/2"
|
|
81
|
+
>
|
|
82
|
+
{badgeSlot()}
|
|
83
|
+
</span>
|
|
84
|
+
)}
|
|
82
85
|
</Show>
|
|
83
86
|
</button>
|
|
84
87
|
)
|
|
@@ -117,8 +117,12 @@ export function BusySendButton(props: BusySendButtonProps) {
|
|
|
117
117
|
</For>
|
|
118
118
|
</DropdownMenuRadioGroup>
|
|
119
119
|
<Show when={props.alternateActionHint}>
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
{(alternateActionHintSlot) => (
|
|
121
|
+
<>
|
|
122
|
+
<DropdownMenuSeparator />
|
|
123
|
+
<p class="text-muted-foreground px-2 py-1 text-xs">{alternateActionHintSlot()}</p>
|
|
124
|
+
</>
|
|
125
|
+
)}
|
|
122
126
|
</Show>
|
|
123
127
|
</DropdownMenuContent>
|
|
124
128
|
</DropdownMenu>
|
|
@@ -14,12 +14,12 @@ export type ComposerMenuProps = ComponentProps<'div'> & {
|
|
|
14
14
|
*
|
|
15
15
|
* The panel a composer raises above the field: mention suggestions while the
|
|
16
16
|
* reader types a name, the picker of what can be attached, follow-up prompts.
|
|
17
|
-
* It is deliberately *not* a `Menu`: there is no trigger and no focus trap
|
|
17
|
+
* It is deliberately *not* a `Menu`: there is no trigger and no focus trap,
|
|
18
18
|
* the reader keeps typing while it is open, and it opens and closes on the
|
|
19
19
|
* draft's own grammar rather than on a button press.
|
|
20
20
|
*
|
|
21
21
|
* Rows are `ComposerMenuItem`s; anything else a caller renders (a checkbox
|
|
22
|
-
* list, a heading) sits inside the same panel. Placement stays with the host
|
|
22
|
+
* list, a heading) sits inside the same panel. Placement stays with the host,
|
|
23
23
|
* a suggestion menu renders in the composer's `menu` slot, a picker anchors to
|
|
24
24
|
* its own control.
|
|
25
25
|
*/
|
|
@@ -48,7 +48,7 @@ export type ComposerMenuItemProps = ComponentProps<typeof Button>
|
|
|
48
48
|
/**
|
|
49
49
|
* ComposerMenuItem.
|
|
50
50
|
*
|
|
51
|
-
* One row of a `ComposerMenu`. A ghost button stretched across the panel
|
|
51
|
+
* One row of a `ComposerMenu`. A ghost button stretched across the panel,
|
|
52
52
|
* the same row every menu in the library draws, so a suggestion never reads as
|
|
53
53
|
* a stray button floating over the draft.
|
|
54
54
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, JSX } from 'solid-js'
|
|
2
|
-
import { Show, splitProps } from 'solid-js'
|
|
2
|
+
import { children as resolveChildren, Show, splitProps } from 'solid-js'
|
|
3
3
|
import { cn } from '#lib/utils'
|
|
4
4
|
|
|
5
5
|
export type ConversationPaneProps = ComponentProps<'section'> & {
|
|
@@ -50,7 +50,10 @@ export function ConversationPane(props: ConversationPaneProps) {
|
|
|
50
50
|
'gutter',
|
|
51
51
|
'children',
|
|
52
52
|
])
|
|
53
|
-
|
|
53
|
+
// A JSX prop is a getter that builds its subtree on every read; resolve the
|
|
54
|
+
// thread once so the open check and the column share one panel instance.
|
|
55
|
+
const thread = resolveChildren(() => local.thread)
|
|
56
|
+
const threadOpen = () => thread() != null
|
|
54
57
|
|
|
55
58
|
return (
|
|
56
59
|
<section
|
|
@@ -96,8 +99,8 @@ export function ConversationPane(props: ConversationPaneProps) {
|
|
|
96
99
|
)}
|
|
97
100
|
</Show>
|
|
98
101
|
|
|
99
|
-
<Show when={
|
|
100
|
-
{(
|
|
102
|
+
<Show when={thread()}>
|
|
103
|
+
{(threadSlot) => (
|
|
101
104
|
<div
|
|
102
105
|
class={cn(
|
|
103
106
|
'min-h-0 min-w-0',
|
|
@@ -105,7 +108,7 @@ export function ConversationPane(props: ConversationPaneProps) {
|
|
|
105
108
|
'max-md:absolute max-md:inset-0 max-md:z-(--z-docked) max-md:*:border-s-0 md:col-start-2 md:row-span-3 md:row-start-1'
|
|
106
109
|
)}
|
|
107
110
|
>
|
|
108
|
-
{
|
|
111
|
+
{threadSlot()}
|
|
109
112
|
</div>
|
|
110
113
|
)}
|
|
111
114
|
</Show>
|
|
@@ -121,9 +121,9 @@ export function ConversationSurface(props: ConversationSurfaceProps) {
|
|
|
121
121
|
}}
|
|
122
122
|
data-slot="conversation-content"
|
|
123
123
|
>
|
|
124
|
-
<Show when={local.header}>{
|
|
124
|
+
<Show when={local.header}>{(headerSlot) => <>{headerSlot()}</>}</Show>
|
|
125
125
|
<Show when={local.children} fallback={<div class="p-4">{local.empty}</div>}>
|
|
126
|
-
{
|
|
126
|
+
{(childrenSlot) => <>{childrenSlot()}</>}
|
|
127
127
|
</Show>
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
@@ -206,26 +206,28 @@ export function ChatComposerShell<Extra extends object>(props: ChatComposerShell
|
|
|
206
206
|
>
|
|
207
207
|
<Show when={!props.approvalFocus}>
|
|
208
208
|
<Show when={props.knowledge}>
|
|
209
|
-
<div data-slot="composer-knowledge">{
|
|
209
|
+
{(knowledgeSlot) => <div data-slot="composer-knowledge">{knowledgeSlot()}</div>}
|
|
210
210
|
</Show>
|
|
211
211
|
<Show when={props.followUps}>
|
|
212
|
-
<div data-slot="composer-follow-ups">{
|
|
212
|
+
{(followUpsSlot) => <div data-slot="composer-follow-ups">{followUpsSlot()}</div>}
|
|
213
213
|
</Show>
|
|
214
214
|
</Show>
|
|
215
215
|
<Show when={props.band}>
|
|
216
|
-
<div data-slot="composer-band">{
|
|
216
|
+
{(bandSlot) => <div data-slot="composer-band">{bandSlot()}</div>}
|
|
217
217
|
</Show>
|
|
218
218
|
<div aria-hidden="true" class="h-1.5 shrink-0" />
|
|
219
219
|
<Show when={props.approval}>
|
|
220
|
-
<div data-slot="composer-approval">{
|
|
220
|
+
{(approvalSlot) => <div data-slot="composer-approval">{approvalSlot()}</div>}
|
|
221
221
|
</Show>
|
|
222
222
|
<Show when={props.notices}>
|
|
223
|
-
<div data-slot="composer-notices">{
|
|
223
|
+
{(noticesSlot) => <div data-slot="composer-notices">{noticesSlot()}</div>}
|
|
224
224
|
</Show>
|
|
225
225
|
<Show when={props.blockedReason}>
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
{(blockedReasonSlot) => (
|
|
227
|
+
<p role="status" class="text-muted-foreground mb-1 text-xs">
|
|
228
|
+
{blockedReasonSlot()}
|
|
229
|
+
</p>
|
|
230
|
+
)}
|
|
229
231
|
</Show>
|
|
230
232
|
<Show when={composer.error()}>
|
|
231
233
|
{(message) => (
|
|
@@ -274,7 +276,9 @@ export function ChatComposerShell<Extra extends object>(props: ChatComposerShell
|
|
|
274
276
|
}}
|
|
275
277
|
>
|
|
276
278
|
<Show when={props.attachments}>
|
|
277
|
-
|
|
279
|
+
{(attachmentsSlot) => (
|
|
280
|
+
<div data-slot="composer-staged-content">{attachmentsSlot()}</div>
|
|
281
|
+
)}
|
|
278
282
|
</Show>
|
|
279
283
|
{props.renderInput({
|
|
280
284
|
ref: (element) => {
|
|
@@ -372,9 +376,11 @@ export function ChatComposerShell<Extra extends object>(props: ChatComposerShell
|
|
|
372
376
|
</div>
|
|
373
377
|
</form>
|
|
374
378
|
<Show when={props.context}>
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
379
|
+
{(contextSlot) => (
|
|
380
|
+
<div data-slot="composer-context" class="flex min-w-0 items-center gap-2 pt-1">
|
|
381
|
+
{contextSlot()}
|
|
382
|
+
</div>
|
|
383
|
+
)}
|
|
378
384
|
</Show>
|
|
379
385
|
</Show>
|
|
380
386
|
</Show>
|