@exegia/corpora-ui 1.0.0 → 2.0.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 +1 -1
- package/dist-lib/components/atoms/avatar/base.d.ts +2 -0
- package/dist-lib/components/atoms/avatar/index.d.ts +3 -0
- package/dist-lib/components/atoms/avatar/types.d.ts +20 -0
- package/dist-lib/components/atoms/avatar/utils.d.ts +13 -0
- package/dist-lib/components/atoms/background/texture.d.ts +2 -0
- package/dist-lib/components/atoms/background/type.d.ts +7 -0
- package/dist-lib/components/atoms/background/utils.d.ts +4 -0
- package/dist-lib/components/atoms/bubble/actions.d.ts +7 -0
- package/dist-lib/components/atoms/bubble/context.d.ts +4 -0
- package/dist-lib/components/atoms/bubble/default.d.ts +3 -0
- package/dist-lib/components/atoms/bubble/header.d.ts +8 -0
- package/dist-lib/components/atoms/bubble/index.d.ts +16 -0
- package/dist-lib/components/atoms/bubble/message.d.ts +3 -0
- package/dist-lib/components/atoms/bubble/reactions.d.ts +14 -0
- package/dist-lib/components/atoms/bubble/types.d.ts +62 -0
- package/dist-lib/components/atoms/bubble/utils.d.ts +13 -0
- package/dist-lib/components/atoms/field.d.ts +2 -0
- package/dist-lib/components/atoms/index.d.ts +10 -0
- package/dist-lib/components/atoms/loader.d.ts +2 -0
- package/dist-lib/components/atoms/reference.d.ts +7 -0
- package/dist-lib/components/atoms/text/default.d.ts +1144 -0
- package/dist-lib/components/atoms/text/heading.d.ts +2 -0
- package/dist-lib/components/atoms/text/index.d.ts +18 -0
- package/dist-lib/components/atoms/text/label.d.ts +2 -0
- package/dist-lib/components/atoms/text/paragraph.d.ts +2 -0
- package/dist-lib/components/atoms/text/span.d.ts +2 -0
- package/dist-lib/components/atoms/text/types.d.ts +27 -0
- package/dist-lib/components/atoms/text/utils.d.ts +4 -0
- package/dist-lib/components/atoms/text-selection/click-popover.d.ts +3 -0
- package/dist-lib/components/atoms/text-selection/index.d.ts +6 -0
- package/dist-lib/components/atoms/text-selection/popover.d.ts +3 -0
- package/dist-lib/components/atoms/text-selection/selection-atom.d.ts +30 -0
- package/dist-lib/components/atoms/text-selection/selection.d.ts +3 -0
- package/dist-lib/components/atoms/text-selection/types.d.ts +90 -0
- package/dist-lib/components/atoms/text-selection/use-selection.d.ts +7 -0
- package/dist-lib/components/atoms/types.d.ts +39 -0
- package/dist-lib/components/blocks/auth/auth-flow-atom.d.ts +76 -0
- package/dist-lib/components/blocks/auth/auth-flow-block.d.ts +41 -0
- package/dist-lib/components/blocks/auth/auth-session-atom.d.ts +28 -0
- package/dist-lib/components/blocks/auth/auth-shell.d.ts +55 -0
- package/dist-lib/components/blocks/auth/auth-state.d.ts +8 -0
- package/dist-lib/components/blocks/auth/code-auth-block.d.ts +3 -0
- package/dist-lib/components/blocks/auth/forgot-password-block.d.ts +3 -0
- package/dist-lib/components/blocks/auth/linked-accounts-block.d.ts +9 -0
- package/dist-lib/components/blocks/auth/login-block.d.ts +3 -0
- package/dist-lib/components/blocks/auth/onboarding/profile-step.d.ts +8 -0
- package/dist-lib/components/blocks/auth/onboarding-block.d.ts +15 -0
- package/dist-lib/components/blocks/auth/passkey-manager-block.d.ts +10 -0
- package/dist-lib/components/blocks/auth/passkey-sign-in-block.d.ts +8 -0
- package/dist-lib/components/blocks/auth/signup-block.d.ts +3 -0
- package/dist-lib/components/blocks/auth/type.d.ts +398 -0
- package/dist-lib/components/blocks/auth/update-password-block.d.ts +9 -0
- package/dist-lib/components/blocks/auth/use-auth-state.d.ts +52 -0
- package/dist-lib/components/blocks/chat/banners.d.ts +5 -0
- package/dist-lib/components/blocks/chat/base.d.ts +10 -0
- package/dist-lib/components/blocks/chat/header.d.ts +4 -0
- package/dist-lib/components/blocks/chat/index.d.ts +11 -0
- package/dist-lib/components/blocks/chat/recommendation-stack.d.ts +11 -0
- package/dist-lib/components/blocks/chat/suggested-prompts.d.ts +3 -0
- package/dist-lib/components/blocks/chat/type.d.ts +75 -0
- package/dist-lib/components/blocks/chat/version-history-record.d.ts +3 -0
- package/dist-lib/components/blocks/layout.d.ts +8 -0
- package/dist-lib/components/blocks/profile/index.d.ts +7 -0
- package/dist-lib/components/blocks/profile/profile-card-atom.d.ts +68 -0
- package/dist-lib/components/blocks/profile/profile-card-block.d.ts +66 -0
- package/dist-lib/components/blocks/profile/type.d.ts +80 -0
- package/dist-lib/components/blocks/profile/use-profile-card-state.d.ts +24 -0
- package/dist-lib/components/blocks/profile/use-profile-card.d.ts +34 -0
- package/dist-lib/components/blocks/scaffold/index.d.ts +29 -0
- package/dist-lib/components/blocks/scaffold/panel-close-button.d.ts +4 -0
- package/dist-lib/components/blocks/scaffold/panel-menu-button.d.ts +8 -0
- package/dist-lib/components/blocks/scaffold/scaffold-actions.d.ts +10 -0
- package/dist-lib/components/blocks/scaffold/scaffold-atom.d.ts +112 -0
- package/dist-lib/components/blocks/scaffold/scaffold-canvas.d.ts +9 -0
- package/dist-lib/components/blocks/scaffold/scaffold-context.d.ts +7 -0
- package/dist-lib/components/blocks/scaffold/scaffold-inspector.d.ts +9 -0
- package/dist-lib/components/blocks/scaffold/scaffold-main.d.ts +8 -0
- package/dist-lib/components/blocks/scaffold/scaffold-panel.d.ts +16 -0
- package/dist-lib/components/blocks/scaffold/scaffold-root.d.ts +17 -0
- package/dist-lib/components/blocks/scaffold/scaffold-sidebar.d.ts +7 -0
- package/dist-lib/components/blocks/scaffold/scaffold-sub-panel.d.ts +6 -0
- package/dist-lib/components/blocks/scaffold/scaffold-tab.d.ts +14 -0
- package/dist-lib/components/blocks/scaffold/type.d.ts +216 -0
- package/dist-lib/components/blocks/scaffold/use-scaffold-state.d.ts +26 -0
- package/dist-lib/components/blocks/scaffold/use-scaffold.d.ts +14 -0
- package/dist-lib/components/blocks/scaffold/utils.d.ts +38 -0
- package/dist-lib/components/blocks/shell/animated-panel-inset.d.ts +2 -0
- package/dist-lib/components/blocks/shell/animated-panel-provider.d.ts +2 -0
- package/dist-lib/components/blocks/shell/animated-panel-trigger.d.ts +2 -0
- package/dist-lib/components/blocks/shell/animated-panel.d.ts +2 -0
- package/dist-lib/components/blocks/shell/shell-fit-atom.d.ts +68 -0
- package/dist-lib/components/blocks/shell/shell-layout.d.ts +3 -0
- package/dist-lib/components/blocks/shell/shell-metrics.d.ts +72 -0
- package/dist-lib/components/blocks/shell/shell-panel-atom.d.ts +40 -0
- package/dist-lib/components/blocks/shell/type.d.ts +301 -0
- package/dist-lib/components/blocks/shell/use-shell-fit-state.d.ts +25 -0
- package/dist-lib/components/blocks/shell/use-shell-fit.d.ts +13 -0
- package/dist-lib/components/blocks/shell/use-shell-panels.d.ts +20 -0
- package/dist-lib/components/blocks/shell/utils.d.ts +72 -0
- package/dist-lib/components/blocks/sidebar/ai-sidebar-atom.d.ts +217 -0
- package/dist-lib/components/blocks/sidebar/ai-sidebar.d.ts +11 -0
- package/dist-lib/components/blocks/sidebar/index.d.ts +15 -0
- package/dist-lib/components/blocks/sidebar/sidebar-context.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar/sidebar-icon.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar/sidebar-row.d.ts +4 -0
- package/dist-lib/components/blocks/sidebar/type.d.ts +245 -0
- package/dist-lib/components/blocks/sidebar/use-ai-sidebar-state.d.ts +29 -0
- package/dist-lib/components/blocks/sidebar/use-ai-sidebar.d.ts +27 -0
- package/dist-lib/components/blocks/sidebar/utils.d.ts +21 -0
- package/dist-lib/components/blocks/types.d.ts +6 -0
- package/dist-lib/components/composed/action-bar/action.d.ts +18 -0
- package/dist-lib/components/composed/action-bar/emojis.d.ts +10 -0
- package/dist-lib/components/composed/action-bar/index.d.ts +12 -0
- package/dist-lib/components/composed/action-bar/toolbar.d.ts +2 -0
- package/dist-lib/components/composed/action-bar/types.d.ts +55 -0
- package/dist-lib/components/composed/action-bar/utils.d.ts +56 -0
- package/dist-lib/components/composed/ai/index.d.ts +17 -0
- package/dist-lib/components/composed/ai/message.d.ts +7 -0
- package/dist-lib/components/composed/ai/research-answer.d.ts +30 -0
- package/dist-lib/components/composed/ai/streaming-text.d.ts +26 -0
- package/dist-lib/components/composed/ai/suggested-prompt.d.ts +35 -0
- package/dist-lib/components/composed/ai/types.d.ts +68 -0
- package/dist-lib/components/composed/chat/attachment-file.d.ts +17 -0
- package/dist-lib/components/composed/chat/attachment.d.ts +60 -0
- package/dist-lib/components/composed/chat/chart.d.ts +44 -0
- package/dist-lib/components/composed/chat/code-block.d.ts +26 -0
- package/dist-lib/components/composed/chat/composer/add-button.d.ts +5 -0
- package/dist-lib/components/composed/chat/composer/base.d.ts +5 -0
- package/dist-lib/components/composed/chat/composer/command-menu.d.ts +3 -0
- package/dist-lib/components/composed/chat/composer/hooks.d.ts +9 -0
- package/dist-lib/components/composed/chat/composer/send-button.d.ts +3 -0
- package/dist-lib/components/composed/chat/composer/suggestions.d.ts +7 -0
- package/dist-lib/components/composed/chat/composer/use-dictation.d.ts +8 -0
- package/dist-lib/components/composed/chat/composer/utils.d.ts +19 -0
- package/dist-lib/components/composed/chat/context-cards.d.ts +27 -0
- package/dist-lib/components/composed/chat/filter-table.d.ts +40 -0
- package/dist-lib/components/composed/chat/flowchart/chart-node.d.ts +2 -0
- package/dist-lib/components/composed/chat/flowchart/connector.d.ts +2 -0
- package/dist-lib/components/composed/chat/flowchart/default.d.ts +7 -0
- package/dist-lib/components/composed/chat/flowchart/edge-toolbar.d.ts +9 -0
- package/dist-lib/components/composed/chat/flowchart/hooks.d.ts +290 -0
- package/dist-lib/components/composed/chat/flowchart/step-body.d.ts +6 -0
- package/dist-lib/components/composed/chat/flowchart/types.d.ts +91 -0
- package/dist-lib/components/composed/chat/flowchart/utils.d.ts +64 -0
- package/dist-lib/components/composed/chat/index.d.ts +15 -0
- package/dist-lib/components/composed/chat/insight-cards.d.ts +54 -0
- package/dist-lib/components/composed/chat/markdown-atom.d.ts +7 -0
- package/dist-lib/components/composed/chat/markdown.d.ts +22 -0
- package/dist-lib/components/composed/chat/recommendation/checkbox.d.ts +9 -0
- package/dist-lib/components/composed/chat/recommendation/constant.d.ts +52 -0
- package/dist-lib/components/composed/chat/recommendation/default.d.ts +7 -0
- package/dist-lib/components/composed/chat/recommendation/group.d.ts +7 -0
- package/dist-lib/components/composed/chat/recommendation/index.d.ts +13 -0
- package/dist-lib/components/composed/chat/recommendation/item.d.ts +12 -0
- package/dist-lib/components/composed/chat/recommendation/types.d.ts +62 -0
- package/dist-lib/components/composed/chat/records-table.d.ts +40 -0
- package/dist-lib/components/composed/chat/type.d.ts +117 -0
- package/dist-lib/components/composed/logo.d.ts +34 -0
- package/dist-lib/components/composed/password-input.d.ts +30 -0
- package/dist-lib/components/composed/reader/applied-mark.d.ts +3 -0
- package/dist-lib/components/composed/reader/apply-toast.d.ts +3 -0
- package/dist-lib/components/composed/reader/selection-highlight.d.ts +3 -0
- package/dist-lib/components/composed/reader/selection-popover.d.ts +9 -0
- package/dist-lib/components/composed/reader/type.d.ts +40 -0
- package/dist-lib/components/composed/social-providers.d.ts +39 -0
- package/dist-lib/components/composed/tree/index.d.ts +6 -0
- package/dist-lib/components/composed/tree/tree-atom.d.ts +160 -0
- package/dist-lib/components/composed/tree/tree-context.d.ts +4 -0
- package/dist-lib/components/composed/tree/tree-node.d.ts +12 -0
- package/dist-lib/components/composed/tree/tree.d.ts +19 -0
- package/dist-lib/components/composed/tree/type.d.ts +290 -0
- package/dist-lib/components/composed/tree/use-tree-dnd.d.ts +18 -0
- package/dist-lib/components/composed/tree/use-tree-state.d.ts +25 -0
- package/dist-lib/components/composed/tree/use-tree.d.ts +24 -0
- package/dist-lib/components/composed/tree/utils.d.ts +28 -0
- package/dist-lib/components/composed/types.d.ts +7 -0
- package/dist-lib/components/composed/user/index.d.ts +11 -0
- package/dist-lib/components/composed/user/info.d.ts +12 -0
- package/dist-lib/components/composed/user/message.d.ts +2 -0
- package/dist-lib/components/composed/user/pill.d.ts +10 -0
- package/dist-lib/components/composed/user/types.d.ts +27 -0
- package/dist-lib/components/composed/verse/index.d.ts +2 -0
- package/dist-lib/components/composed/verse/types.d.ts +18 -0
- package/dist-lib/components/composed/verse/verse.d.ts +5 -0
- package/dist-lib/components/docs/atoms-gallery.d.ts +12 -0
- package/dist-lib/components/docs/block-demo-stage.d.ts +7 -0
- package/dist-lib/components/docs/blocks-gallery.d.ts +2 -0
- package/dist-lib/components/docs/browser.d.ts +10 -0
- package/dist-lib/components/docs/components-gallery.d.ts +2 -0
- package/dist-lib/components/docs/demo-controls.d.ts +21 -0
- package/dist-lib/components/icons/__tests__/icons.test.d.ts +1 -0
- package/dist-lib/components/icons/file-badge-cfm.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-corpus.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-pdf.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-tei.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-tf.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-txt.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-xml.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-cfm.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-corpus.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-pdf.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-tei.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-tf.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-txt.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-xml.d.ts +7 -0
- package/dist-lib/components/icons/index.d.ts +15 -0
- package/dist-lib/components/icons/types.d.ts +7 -0
- package/dist-lib/components/motion/index.d.ts +1 -0
- package/dist-lib/components/motion/overflow-actions.d.ts +35 -0
- package/dist-lib/components/motion/popover-morph.d.ts +35 -0
- package/dist-lib/components/motion/popover-position.d.ts +15 -0
- package/dist-lib/components/motion/shared-layout-bg.d.ts +13 -0
- package/dist-lib/components/stories/attachment.story.d.ts +11 -0
- package/dist-lib/components/stories/auth-flow-block.story.d.ts +2 -0
- package/dist-lib/components/stories/avatar.story.d.ts +6 -0
- package/dist-lib/components/stories/base.story.d.ts +6 -0
- package/dist-lib/components/stories/bubble.story.d.ts +6 -0
- package/dist-lib/components/stories/button.story.d.ts +9 -0
- package/dist-lib/components/stories/card.story.d.ts +8 -0
- package/dist-lib/components/stories/chart.story.d.ts +34 -0
- package/dist-lib/components/stories/checkbox.story.d.ts +6 -0
- package/dist-lib/components/stories/code-auth-block.story.d.ts +2 -0
- package/dist-lib/components/stories/code-block.story.d.ts +12 -0
- package/dist-lib/components/stories/composed-password-input.story.d.ts +6 -0
- package/dist-lib/components/stories/context-cards.story.d.ts +3 -0
- package/dist-lib/components/stories/emoji-action-bar.story.d.ts +3 -0
- package/dist-lib/components/stories/field.story.d.ts +6 -0
- package/dist-lib/components/stories/file-icons.story.d.ts +5 -0
- package/dist-lib/components/stories/filter-table.story.d.ts +21 -0
- package/dist-lib/components/stories/flowchart.story.d.ts +3 -0
- package/dist-lib/components/stories/forgot-password-block.story.d.ts +2 -0
- package/dist-lib/components/stories/frame.story.d.ts +8 -0
- package/dist-lib/components/stories/index.d.ts +54 -0
- package/dist-lib/components/stories/input-group.story.d.ts +6 -0
- package/dist-lib/components/stories/input.story.d.ts +8 -0
- package/dist-lib/components/stories/insight-cards.story.d.ts +45 -0
- package/dist-lib/components/stories/label.story.d.ts +8 -0
- package/dist-lib/components/stories/linked-accounts-block.story.d.ts +2 -0
- package/dist-lib/components/stories/login-block.story.d.ts +2 -0
- package/dist-lib/components/stories/logo.story.d.ts +3 -0
- package/dist-lib/components/stories/markdown.story.d.ts +7 -0
- package/dist-lib/components/stories/menu-command.story.d.ts +13 -0
- package/dist-lib/components/stories/onboarding-block.story.d.ts +2 -0
- package/dist-lib/components/stories/otp-field.story.d.ts +8 -0
- package/dist-lib/components/stories/passkey-manager-block.story.d.ts +2 -0
- package/dist-lib/components/stories/passkey-sign-in-block.story.d.ts +2 -0
- package/dist-lib/components/stories/password-input.story.d.ts +9 -0
- package/dist-lib/components/stories/profile-card-block.story.d.ts +6 -0
- package/dist-lib/components/stories/recommendation-card.story.d.ts +3 -0
- package/dist-lib/components/stories/records-table.story.d.ts +23 -0
- package/dist-lib/components/stories/reference.story.d.ts +9 -0
- package/dist-lib/components/stories/research-answer.story.d.ts +10 -0
- package/dist-lib/components/stories/scaffold-root.story.d.ts +6 -0
- package/dist-lib/components/stories/separator.story.d.ts +6 -0
- package/dist-lib/components/stories/shell-layout.story.d.ts +2 -0
- package/dist-lib/components/stories/signup-block.story.d.ts +2 -0
- package/dist-lib/components/stories/social-providers.story.d.ts +3 -0
- package/dist-lib/components/stories/streaming-text.story.d.ts +3 -0
- package/dist-lib/components/stories/text.story.d.ts +8 -0
- package/dist-lib/components/stories/textarea.story.d.ts +6 -0
- package/dist-lib/components/stories/tree.story.d.ts +4 -0
- package/dist-lib/components/stories/update-password-block.story.d.ts +2 -0
- package/dist-lib/components/stories/user.story.d.ts +8 -0
- package/dist-lib/components/stories/verse.story.d.ts +6 -0
- package/dist-lib/components/theme-provider.d.ts +15 -0
- package/dist-lib/components/types.d.ts +11 -0
- package/dist-lib/components/ui/badge.d.ts +14 -0
- package/dist-lib/components/ui/button.d.ts +28 -0
- package/dist-lib/components/ui/chat/__tests__/segmented-toggle.test.d.ts +1 -0
- package/dist-lib/components/ui/chat/avatar-handle.d.ts +13 -0
- package/dist-lib/components/ui/chat/badges.d.ts +29 -0
- package/dist-lib/components/ui/chat/buttons.d.ts +29 -0
- package/dist-lib/components/ui/chat/chips.d.ts +48 -0
- package/dist-lib/components/ui/chat/dot.d.ts +30 -0
- package/dist-lib/components/ui/chat/icon-button.d.ts +18 -0
- package/dist-lib/components/ui/chat/icon-tile.d.ts +20 -0
- package/dist-lib/components/ui/chat/index.d.ts +12 -0
- package/dist-lib/components/ui/chat/inline-source.d.ts +20 -0
- package/dist-lib/components/ui/chat/segmented-toggle.d.ts +20 -0
- package/dist-lib/components/ui/chat/tag.d.ts +21 -0
- package/dist-lib/components/ui/chat/thumbnail.d.ts +13 -0
- package/dist-lib/components/ui/chat/waveform.d.ts +13 -0
- package/dist-lib/components/ui/glasscn/glass-button-group.d.ts +7 -0
- package/dist-lib/components/ui/glasscn/glass-button.d.ts +6 -0
- package/dist-lib/components/ui/glasscn/glass-container.d.ts +8 -0
- package/dist-lib/components/ui/glasscn/glass-separator.d.ts +5 -0
- package/dist-lib/components/ui/glasscn/liquid-glass.d.ts +29 -0
- package/dist-lib/components/ui/input-group.d.ts +13 -0
- package/dist-lib/components/ui/input.d.ts +9 -0
- package/dist-lib/components/ui/menu-command.d.ts +36 -0
- package/dist-lib/components/ui/popover-glass.d.ts +32 -0
- package/dist-lib/components/ui/select.d.ts +30 -0
- package/dist-lib/components/ui/tabs.d.ts +15 -0
- package/dist-lib/components/ui/textarea.d.ts +8 -0
- package/dist-lib/components/ui/toast.d.ts +15 -0
- package/dist-lib/index.d.ts +65 -0
- package/dist-lib/index.js +6911 -5932
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/attachment-content.d.ts +4 -0
- package/dist-lib/lib/auth-accent.d.ts +33 -0
- package/dist-lib/lib/glass-variants.d.ts +9 -0
- package/dist-lib/lib/keyed-atom.d.ts +14 -0
- package/dist-lib/lib/segmented-control.d.ts +8 -0
- package/dist-lib/lib/specular.d.ts +12 -0
- package/dist-lib/lib/state/__tests__/sound.test.d.ts +1 -0
- package/dist-lib/lib/state/exegia-provider.d.ts +51 -0
- package/dist-lib/lib/state/index.d.ts +4 -0
- package/dist-lib/lib/state/store.d.ts +17 -0
- package/dist-lib/lib/use-motion-panel.d.ts +9 -0
- package/dist-lib/lib/utils.test.d.ts +1 -0
- package/package.json +5 -1
- package/src/components/atoms/avatar/base.tsx +3 -3
- package/src/components/atoms/avatar/index.ts +8 -1
- package/src/components/atoms/avatar/types.ts +9 -9
- package/src/components/atoms/avatar/utils.ts +6 -6
- package/src/components/atoms/background/texture.tsx +2 -2
- package/src/components/atoms/background/type.ts +3 -3
- package/src/components/atoms/background/utils.ts +2 -2
- package/src/components/atoms/bubble/__tests__/bubble.test.tsx +59 -4
- package/src/components/atoms/bubble/actions.tsx +2 -2
- package/src/components/atoms/bubble/context.ts +3 -3
- package/src/components/atoms/bubble/default.tsx +2 -2
- package/src/components/atoms/bubble/header.tsx +6 -4
- package/src/components/atoms/bubble/index.ts +9 -9
- package/src/components/atoms/bubble/message.tsx +12 -5
- package/src/components/atoms/bubble/reactions.tsx +11 -14
- package/src/components/atoms/bubble/types.ts +21 -18
- package/src/components/atoms/bubble/utils.ts +10 -10
- package/src/components/atoms/field.tsx +43 -0
- package/src/components/atoms/index.ts +0 -26
- package/src/components/atoms/loader.tsx +2 -11
- package/src/components/atoms/reference.tsx +2 -2
- package/src/components/atoms/text/default.tsx +5 -5
- package/src/components/atoms/text/heading.tsx +2 -5
- package/src/components/atoms/text/index.ts +8 -4
- package/src/components/atoms/text/label.tsx +2 -2
- package/src/components/atoms/text/paragraph.tsx +2 -5
- package/src/components/atoms/text/span.tsx +2 -3
- package/src/components/atoms/text/types.ts +18 -8
- package/src/components/atoms/text/utils.ts +2 -2
- package/src/components/atoms/text-selection/click-popover.tsx +3 -3
- package/src/components/atoms/text-selection/index.ts +12 -12
- package/src/components/atoms/text-selection/popover.tsx +7 -4
- package/src/components/atoms/text-selection/selection-atom.ts +7 -7
- package/src/components/atoms/text-selection/selection.tsx +2 -2
- package/src/components/atoms/text-selection/types.ts +24 -24
- package/src/components/atoms/text-selection/use-selection.ts +3 -3
- package/src/components/atoms/types.ts +30 -2
- package/src/components/blocks/auth/__tests__/auth-flow-block.test.tsx +4 -4
- package/src/components/blocks/auth/__tests__/auth-state-atom.test.tsx +2 -2
- package/src/components/blocks/auth/__tests__/linked-accounts-block.test.tsx +2 -2
- package/src/components/blocks/auth/__tests__/onboarding-block.test.tsx +39 -12
- package/src/components/blocks/auth/__tests__/passkey-manager-block.test.tsx +4 -4
- package/src/components/blocks/auth/auth-flow-atom.ts +27 -27
- package/src/components/blocks/auth/auth-flow-block.tsx +8 -93
- package/src/components/blocks/auth/auth-session-atom.ts +9 -9
- package/src/components/blocks/auth/auth-shell.tsx +2 -3
- package/src/components/blocks/auth/auth-state.ts +0 -12
- package/src/components/blocks/auth/code-auth-block.tsx +16 -30
- package/src/components/blocks/auth/forgot-password-block.tsx +4 -15
- package/src/components/blocks/auth/linked-accounts-block.tsx +10 -36
- package/src/components/blocks/auth/login-block.tsx +7 -29
- package/src/components/blocks/auth/onboarding/profile-step.tsx +14 -25
- package/src/components/blocks/auth/onboarding-block.tsx +39 -96
- package/src/components/blocks/auth/passkey-manager-block.tsx +8 -33
- package/src/components/blocks/auth/passkey-sign-in-block.tsx +6 -20
- package/src/components/blocks/auth/signup-block.tsx +7 -44
- package/src/components/blocks/auth/type.ts +436 -0
- package/src/components/blocks/auth/update-password-block.tsx +4 -22
- package/src/components/blocks/auth/use-auth-state.ts +12 -12
- package/src/components/blocks/chat/__tests__/ai-panel.test.tsx +2 -2
- package/src/components/blocks/chat/banners.tsx +5 -13
- package/src/components/blocks/chat/base.tsx +2 -2
- package/src/components/blocks/chat/header.tsx +2 -2
- package/src/components/blocks/chat/index.ts +17 -19
- package/src/components/blocks/chat/recommendation-stack.tsx +4 -6
- package/src/components/blocks/chat/suggested-prompts.tsx +2 -2
- package/src/components/blocks/chat/type.ts +96 -0
- package/src/components/blocks/chat/version-history-record.tsx +2 -2
- package/src/components/blocks/profile/__tests__/profile-card-block.test.tsx +6 -6
- package/src/components/blocks/profile/index.ts +2 -2
- package/src/components/blocks/profile/profile-card-atom.ts +29 -29
- package/src/components/blocks/profile/profile-card-block.tsx +30 -30
- package/src/components/blocks/profile/type.ts +17 -17
- package/src/components/blocks/profile/use-profile-card-state.ts +7 -7
- package/src/components/blocks/profile/use-profile-card.ts +18 -18
- package/src/components/blocks/scaffold/__tests__/scaffold-atom.test.tsx +28 -2
- package/src/components/blocks/scaffold/__tests__/scaffold.test.tsx +90 -11
- package/src/components/blocks/scaffold/index.ts +4 -0
- package/src/components/blocks/scaffold/panel-close-button.tsx +2 -2
- package/src/components/blocks/scaffold/panel-menu-button.tsx +2 -2
- package/src/components/blocks/scaffold/scaffold-actions.tsx +2 -2
- package/src/components/blocks/scaffold/scaffold-atom.ts +76 -32
- package/src/components/blocks/scaffold/scaffold-canvas.tsx +89 -10
- package/src/components/blocks/scaffold/scaffold-context.ts +3 -3
- package/src/components/blocks/scaffold/scaffold-inspector.tsx +56 -7
- package/src/components/blocks/scaffold/scaffold-main.tsx +2 -2
- package/src/components/blocks/scaffold/scaffold-panel.tsx +119 -71
- package/src/components/blocks/scaffold/scaffold-root.tsx +14 -12
- package/src/components/blocks/scaffold/scaffold-sidebar.tsx +2 -2
- package/src/components/blocks/scaffold/scaffold-sub-panel.tsx +82 -13
- package/src/components/blocks/scaffold/scaffold-tab.tsx +2 -2
- package/src/components/blocks/scaffold/type.ts +46 -28
- package/src/components/blocks/scaffold/use-scaffold-state.ts +35 -8
- package/src/components/blocks/scaffold/use-scaffold.ts +3 -3
- package/src/components/blocks/scaffold/utils.ts +9 -6
- package/src/components/blocks/shell/__tests__/shell-fit-atom.test.tsx +7 -5
- package/src/components/blocks/shell/__tests__/shell-layout.test.tsx +154 -9
- package/src/components/blocks/shell/__tests__/shell-metrics.test.ts +56 -10
- package/src/components/blocks/shell/animated-panel-inset.tsx +9 -9
- package/src/components/blocks/shell/animated-panel-provider.tsx +76 -30
- package/src/components/blocks/shell/animated-panel-trigger.tsx +10 -5
- package/src/components/blocks/shell/animated-panel.tsx +76 -128
- package/src/components/blocks/shell/shell-fit-atom.ts +29 -26
- package/src/components/blocks/shell/shell-layout.tsx +29 -13
- package/src/components/blocks/shell/shell-metrics.ts +69 -15
- package/src/components/blocks/shell/shell-panel-atom.ts +74 -0
- package/src/components/blocks/shell/type.ts +78 -69
- package/src/components/blocks/shell/use-shell-fit-state.ts +4 -4
- package/src/components/blocks/shell/use-shell-fit.ts +52 -34
- package/src/components/blocks/shell/use-shell-panels.ts +32 -66
- package/src/components/blocks/shell/utils.ts +8 -4
- package/src/components/blocks/sidebar/__tests__/ai-sidebar-atom.test.tsx +325 -0
- package/src/components/blocks/sidebar/__tests__/ai-sidebar.test.tsx +93 -0
- package/src/components/blocks/sidebar/__tests__/use-ai-sidebar.test.tsx +310 -0
- package/src/components/blocks/sidebar/ai-sidebar-atom.ts +698 -0
- package/src/components/blocks/sidebar/ai-sidebar.tsx +150 -0
- package/src/components/blocks/sidebar/index.ts +67 -0
- package/src/components/blocks/sidebar/sidebar-context.ts +15 -0
- package/src/components/blocks/sidebar/sidebar-icon.tsx +14 -0
- package/src/components/blocks/sidebar/sidebar-row.tsx +378 -0
- package/src/components/blocks/sidebar/type.ts +294 -0
- package/src/components/blocks/sidebar/use-ai-sidebar-state.ts +123 -0
- package/src/components/blocks/sidebar/use-ai-sidebar.ts +619 -0
- package/src/components/blocks/sidebar/utils.ts +170 -0
- package/src/components/blocks/types.ts +6 -0
- package/src/components/composed/action-bar/__tests__/action-bar.test.tsx +43 -14
- package/src/components/composed/action-bar/action.tsx +9 -12
- package/src/components/composed/action-bar/emojis.tsx +4 -4
- package/src/components/composed/action-bar/index.ts +8 -8
- package/src/components/composed/action-bar/toolbar.tsx +36 -30
- package/src/components/composed/action-bar/types.ts +14 -14
- package/src/components/composed/action-bar/utils.ts +17 -18
- package/src/components/composed/ai/__tests__/ai.test.tsx +3 -4
- package/src/components/composed/ai/avatar.tsx +4 -5
- package/src/components/composed/ai/index.ts +7 -7
- package/src/components/composed/ai/message.tsx +7 -7
- package/src/components/composed/ai/research-answer.tsx +7 -7
- package/src/components/composed/ai/streaming-text.tsx +5 -5
- package/src/components/composed/ai/suggested-prompt.tsx +4 -4
- package/src/components/composed/ai/types.ts +30 -30
- package/src/components/composed/chat/__tests__/attachment.test.tsx +182 -9
- package/src/components/composed/chat/__tests__/chart.test.tsx +40 -7
- package/src/components/composed/chat/__tests__/composer-attachments.test.tsx +51 -3
- package/src/components/composed/chat/__tests__/composer.test.tsx +173 -6
- package/src/components/composed/chat/__tests__/flowchart.test.tsx +15 -2
- package/src/components/composed/chat/__tests__/glass-material.test.tsx +54 -0
- package/src/components/composed/chat/__tests__/menu-command.test.tsx +35 -0
- package/src/components/composed/chat/__tests__/recommendation.test.tsx +43 -0
- package/src/components/composed/chat/attachment-file.ts +82 -0
- package/src/components/composed/chat/attachment.tsx +387 -117
- package/src/components/composed/chat/chart.tsx +265 -57
- package/src/components/composed/chat/code-block.tsx +5 -5
- package/src/components/composed/chat/composer/BEAUTIFUL-UI-LICENSE.txt +23 -0
- package/src/components/composed/chat/composer/add-button.tsx +24 -17
- package/src/components/composed/chat/composer/base.tsx +503 -178
- package/src/components/composed/chat/composer/command-menu.tsx +31 -26
- package/src/components/composed/chat/composer/hooks.ts +3 -3
- package/src/components/composed/chat/composer/send-button.tsx +20 -28
- package/src/components/composed/chat/composer/suggestions.tsx +2 -2
- package/src/components/composed/chat/composer/use-dictation.ts +123 -0
- package/src/components/composed/chat/composer/utils.ts +4 -4
- package/src/components/composed/chat/context-cards.tsx +5 -5
- package/src/components/composed/chat/filter-table.tsx +8 -8
- package/src/components/composed/chat/flowchart/chart-node.tsx +2 -2
- package/src/components/composed/chat/flowchart/connector.tsx +2 -2
- package/src/components/composed/chat/flowchart/default.tsx +3 -3
- package/src/components/composed/chat/flowchart/edge-toolbar.tsx +5 -5
- package/src/components/composed/chat/flowchart/hooks.tsx +28 -26
- package/src/components/composed/chat/flowchart/step-body.tsx +2 -2
- package/src/components/composed/chat/flowchart/types.ts +14 -14
- package/src/components/composed/chat/flowchart/utils.ts +15 -15
- package/src/components/composed/chat/index.ts +38 -36
- package/src/components/composed/chat/insight-cards.tsx +17 -17
- package/src/components/composed/chat/markdown-atom.ts +2 -2
- package/src/components/composed/chat/markdown.tsx +10 -10
- package/src/components/composed/chat/recommendation/checkbox.tsx +3 -14
- package/src/components/composed/chat/recommendation/constant.ts +35 -6
- package/src/components/composed/chat/recommendation/default.tsx +2 -2
- package/src/components/composed/chat/recommendation/group.tsx +4 -11
- package/src/components/composed/chat/recommendation/index.ts +0 -2
- package/src/components/composed/chat/recommendation/item.tsx +35 -64
- package/src/components/composed/chat/recommendation/types.ts +26 -15
- package/src/components/composed/chat/records-table.tsx +20 -18
- package/src/components/composed/chat/type.ts +56 -25
- package/src/components/composed/logo.tsx +4 -4
- package/src/components/composed/password-input.tsx +2 -2
- package/src/components/composed/reader/applied-mark.tsx +2 -2
- package/src/components/composed/reader/apply-toast.tsx +2 -2
- package/src/components/composed/reader/selection-highlight.tsx +2 -2
- package/src/components/composed/reader/selection-popover.tsx +2 -2
- package/src/components/composed/reader/type.ts +8 -8
- package/src/components/composed/social-providers.tsx +26 -18
- package/src/components/composed/tree/CLAUDE.md +3 -3
- package/src/components/composed/tree/__tests__/tree-atom.test.tsx +8 -8
- package/src/components/composed/tree/__tests__/tree.test.tsx +10 -10
- package/src/components/composed/tree/__tests__/use-tree.test.tsx +10 -10
- package/src/components/composed/tree/index.ts +12 -12
- package/src/components/composed/tree/tree-atom.ts +46 -46
- package/src/components/composed/tree/tree-context.ts +3 -3
- package/src/components/composed/tree/tree-node.tsx +7 -7
- package/src/components/composed/tree/tree.tsx +13 -13
- package/src/components/composed/tree/type.ts +56 -56
- package/src/components/composed/tree/use-tree-dnd.ts +10 -10
- package/src/components/composed/tree/use-tree-state.ts +3 -3
- package/src/components/composed/tree/use-tree.ts +10 -10
- package/src/components/composed/tree/utils.ts +21 -21
- package/src/components/composed/types.ts +9 -0
- package/src/components/composed/user/__tests__/message.test.tsx +79 -0
- package/src/components/composed/user/index.ts +2 -2
- package/src/components/composed/user/info.tsx +15 -7
- package/src/components/composed/user/message.tsx +33 -7
- package/src/components/composed/user/pill.tsx +3 -3
- package/src/components/composed/user/types.ts +34 -14
- package/src/components/composed/verse/index.ts +1 -1
- package/src/components/composed/verse/types.ts +8 -8
- package/src/components/composed/verse/verse.tsx +6 -6
- package/src/components/docs/atoms-gallery.tsx +45 -45
- package/src/components/docs/block-demo-stage.tsx +38 -0
- package/src/components/docs/blocks-gallery.tsx +224 -0
- package/src/components/docs/browser.tsx +87 -0
- package/src/components/docs/components-gallery.tsx +182 -0
- package/src/components/docs/demo-controls.tsx +6 -7
- package/src/components/docs/hero.tsx +2 -3
- package/src/components/icons/file-badge-cfm.tsx +2 -2
- package/src/components/icons/file-badge-corpus.tsx +2 -2
- package/src/components/icons/file-badge-pdf.tsx +2 -2
- package/src/components/icons/file-badge-tei.tsx +2 -2
- package/src/components/icons/file-badge-tf.tsx +2 -2
- package/src/components/icons/file-badge-txt.tsx +2 -2
- package/src/components/icons/file-badge-xml.tsx +2 -2
- package/src/components/icons/file-wordmark-cfm.tsx +2 -2
- package/src/components/icons/file-wordmark-corpus.tsx +2 -2
- package/src/components/icons/file-wordmark-pdf.tsx +2 -2
- package/src/components/icons/file-wordmark-tei.tsx +2 -2
- package/src/components/icons/file-wordmark-tf.tsx +2 -2
- package/src/components/icons/file-wordmark-txt.tsx +2 -2
- package/src/components/icons/file-wordmark-xml.tsx +2 -2
- package/src/components/icons/index.ts +1 -1
- package/src/components/icons/types.ts +1 -1
- package/src/components/motion/overflow-actions.tsx +19 -19
- package/src/components/motion/popover-morph.tsx +15 -15
- package/src/components/motion/popover-position.ts +4 -4
- package/src/components/motion/shared-layout-bg.tsx +2 -2
- package/src/components/stories/attachment.story.tsx +40 -0
- package/src/components/stories/auth-flow-block.story.tsx +17 -0
- package/src/components/stories/avatar.story.tsx +33 -0
- package/src/components/stories/base.story.tsx +70 -0
- package/src/components/stories/bubble.story.tsx +61 -0
- package/src/components/stories/button.story.tsx +32 -0
- package/src/components/stories/card.story.tsx +36 -0
- package/src/components/stories/chart.story.tsx +54 -0
- package/src/components/stories/checkbox.story.tsx +30 -0
- package/src/components/stories/code-auth-block.story.tsx +20 -0
- package/src/components/stories/code-block.story.tsx +35 -0
- package/src/components/stories/composed-password-input.story.tsx +41 -0
- package/src/components/stories/context-cards.story.tsx +30 -0
- package/src/components/stories/emoji-action-bar.story.tsx +20 -0
- package/src/components/stories/field.story.tsx +32 -0
- package/src/components/stories/file-icons.story.tsx +20 -0
- package/src/components/stories/filter-table.story.tsx +63 -0
- package/src/components/stories/flowchart.story.tsx +25 -0
- package/src/components/stories/forgot-password-block.story.tsx +14 -0
- package/src/components/stories/frame.story.tsx +32 -0
- package/src/components/stories/index.ts +57 -0
- package/src/components/stories/input-group.story.tsx +27 -0
- package/src/components/stories/input.story.tsx +42 -0
- package/src/components/stories/insight-cards.story.tsx +67 -0
- package/src/components/stories/label.story.tsx +32 -0
- package/src/components/stories/linked-accounts-block.story.tsx +23 -0
- package/src/components/stories/login-block.story.tsx +18 -0
- package/src/components/stories/logo.story.tsx +21 -0
- package/src/components/stories/markdown.story.tsx +31 -0
- package/src/components/stories/menu-command.story.tsx +43 -0
- package/src/components/stories/onboarding-block.story.tsx +14 -0
- package/src/components/stories/otp-field.story.tsx +35 -0
- package/src/components/stories/passkey-manager-block.story.tsx +18 -0
- package/src/components/stories/passkey-sign-in-block.story.tsx +15 -0
- package/src/components/stories/password-input.story.tsx +35 -0
- package/src/components/stories/profile-card-block.story.tsx +29 -0
- package/src/components/stories/recommendation-card.story.tsx +37 -0
- package/src/components/stories/records-table.story.tsx +52 -0
- package/src/components/stories/reference.story.tsx +33 -0
- package/src/components/stories/research-answer.story.tsx +32 -0
- package/src/components/stories/scaffold-root.story.tsx +47 -0
- package/src/components/stories/separator.story.tsx +37 -0
- package/src/components/stories/shell-layout.story.tsx +19 -0
- package/src/components/stories/signup-block.story.tsx +18 -0
- package/src/components/stories/social-providers.story.tsx +26 -0
- package/src/components/stories/streaming-text.story.tsx +25 -0
- package/src/components/stories/text.story.tsx +31 -0
- package/src/components/stories/textarea.story.tsx +34 -0
- package/src/components/stories/tree.story.tsx +31 -0
- package/src/components/stories/update-password-block.story.tsx +14 -0
- package/src/components/stories/user.story.tsx +32 -0
- package/src/components/stories/verse.story.tsx +42 -0
- package/src/components/theme-provider.tsx +16 -16
- package/src/components/types.ts +106 -0
- package/src/components/ui/badge.tsx +3 -3
- package/src/components/ui/button.tsx +15 -22
- package/src/components/ui/chat/avatar-handle.tsx +2 -2
- package/src/components/ui/chat/badges.tsx +2 -2
- package/src/components/ui/chat/buttons.tsx +7 -7
- package/src/components/ui/chat/chips.tsx +11 -11
- package/src/components/ui/chat/dot.tsx +8 -8
- package/src/components/ui/chat/icon-button.tsx +3 -3
- package/src/components/ui/chat/icon-tile.tsx +2 -2
- package/src/components/ui/chat/index.ts +12 -12
- package/src/components/ui/chat/inline-source.tsx +2 -2
- package/src/components/ui/chat/segmented-toggle.tsx +4 -4
- package/src/components/ui/chat/tag.tsx +10 -10
- package/src/components/ui/chat/thumbnail.tsx +2 -2
- package/src/components/ui/chat/waveform.tsx +2 -2
- package/src/components/ui/field.tsx +3 -3
- package/src/components/ui/glasscn/glass-button-group.tsx +7 -21
- package/src/components/ui/glasscn/glass-button.tsx +5 -5
- package/src/components/ui/glasscn/glass-container.tsx +10 -47
- package/src/components/ui/glasscn/glass-separator.tsx +6 -6
- package/src/components/ui/glasscn/liquid-glass.tsx +43 -300
- package/src/components/ui/input-group.tsx +4 -4
- package/src/components/ui/input.tsx +2 -2
- package/src/components/ui/menu-command.tsx +103 -75
- package/src/components/ui/popover-glass.tsx +11 -14
- package/src/components/ui/select.tsx +2 -2
- package/src/components/ui/tabs.tsx +12 -12
- package/src/components/ui/textarea.tsx +2 -2
- package/src/components/ui/toast.tsx +13 -13
- package/src/index.css +3 -1
- package/src/index.ts +3 -1
- package/src/lib/attachment-content.ts +28 -0
- package/src/lib/auth-accent.ts +2 -2
- package/src/lib/glass-variants.ts +19 -54
- package/src/lib/keyed-atom.ts +3 -3
- package/src/lib/segmented-control.ts +2 -2
- package/src/lib/specular.ts +10 -0
- package/src/lib/state/__tests__/sound.test.tsx +53 -0
- package/src/lib/state/exegia-provider.tsx +6 -6
- package/src/lib/state/index.ts +2 -2
- package/src/lib/state/store.ts +2 -2
- package/src/lib/use-motion-panel.ts +78 -0
- package/src/lib/utils.ts +7 -5
- package/src/specular.js +4 -0
- package/dist-lib/src/components/atoms/avatar/base.d.ts +0 -2
- package/dist-lib/src/components/atoms/avatar/index.d.ts +0 -2
- package/dist-lib/src/components/atoms/avatar/types.d.ts +0 -20
- package/dist-lib/src/components/atoms/avatar/utils.d.ts +0 -13
- package/dist-lib/src/components/atoms/background/texture.d.ts +0 -2
- package/dist-lib/src/components/atoms/background/type.d.ts +0 -7
- package/dist-lib/src/components/atoms/background/utils.d.ts +0 -4
- package/dist-lib/src/components/atoms/bubble/actions.d.ts +0 -7
- package/dist-lib/src/components/atoms/bubble/context.d.ts +0 -4
- package/dist-lib/src/components/atoms/bubble/default.d.ts +0 -3
- package/dist-lib/src/components/atoms/bubble/header.d.ts +0 -8
- package/dist-lib/src/components/atoms/bubble/index.d.ts +0 -16
- package/dist-lib/src/components/atoms/bubble/message.d.ts +0 -3
- package/dist-lib/src/components/atoms/bubble/reactions.d.ts +0 -14
- package/dist-lib/src/components/atoms/bubble/types.d.ts +0 -59
- package/dist-lib/src/components/atoms/bubble/utils.d.ts +0 -13
- package/dist-lib/src/components/atoms/index.d.ts +0 -15
- package/dist-lib/src/components/atoms/loader.d.ts +0 -8
- package/dist-lib/src/components/atoms/reference.d.ts +0 -7
- package/dist-lib/src/components/atoms/text/default.d.ts +0 -1144
- package/dist-lib/src/components/atoms/text/heading.d.ts +0 -4
- package/dist-lib/src/components/atoms/text/index.d.ts +0 -21
- package/dist-lib/src/components/atoms/text/label.d.ts +0 -2
- package/dist-lib/src/components/atoms/text/paragraph.d.ts +0 -4
- package/dist-lib/src/components/atoms/text/span.d.ts +0 -3
- package/dist-lib/src/components/atoms/text/types.d.ts +0 -23
- package/dist-lib/src/components/atoms/text/utils.d.ts +0 -4
- package/dist-lib/src/components/atoms/text-selection/click-popover.d.ts +0 -3
- package/dist-lib/src/components/atoms/text-selection/index.d.ts +0 -6
- package/dist-lib/src/components/atoms/text-selection/popover.d.ts +0 -3
- package/dist-lib/src/components/atoms/text-selection/selection-atom.d.ts +0 -30
- package/dist-lib/src/components/atoms/text-selection/selection.d.ts +0 -3
- package/dist-lib/src/components/atoms/text-selection/types.d.ts +0 -90
- package/dist-lib/src/components/atoms/text-selection/use-selection.d.ts +0 -7
- package/dist-lib/src/components/atoms/types.d.ts +0 -17
- package/dist-lib/src/components/blocks/auth/auth-flow-atom.d.ts +0 -77
- package/dist-lib/src/components/blocks/auth/auth-flow-block.d.ts +0 -123
- package/dist-lib/src/components/blocks/auth/auth-flow-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/auth-session-atom.d.ts +0 -28
- package/dist-lib/src/components/blocks/auth/auth-shell.d.ts +0 -56
- package/dist-lib/src/components/blocks/auth/auth-state-type.d.ts +0 -71
- package/dist-lib/src/components/blocks/auth/auth-state.d.ts +0 -9
- package/dist-lib/src/components/blocks/auth/code-auth-block.d.ts +0 -22
- package/dist-lib/src/components/blocks/auth/code-auth-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/forgot-password-block.d.ts +0 -15
- package/dist-lib/src/components/blocks/auth/forgot-password-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/linked-accounts-block.d.ts +0 -36
- package/dist-lib/src/components/blocks/auth/linked-accounts-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/login-block.d.ts +0 -25
- package/dist-lib/src/components/blocks/auth/login-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/onboarding/profile-step.d.ts +0 -19
- package/dist-lib/src/components/blocks/auth/onboarding-block.d.ts +0 -69
- package/dist-lib/src/components/blocks/auth/onboarding-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/passkey-manager-block.d.ts +0 -38
- package/dist-lib/src/components/blocks/auth/passkey-manager-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/passkey-sign-in-block.d.ts +0 -27
- package/dist-lib/src/components/blocks/auth/passkey-sign-in-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/signup-block.d.ts +0 -41
- package/dist-lib/src/components/blocks/auth/signup-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/update-password-block.d.ts +0 -28
- package/dist-lib/src/components/blocks/auth/update-password-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/auth/use-auth-state.d.ts +0 -52
- package/dist-lib/src/components/blocks/chat/banners.d.ts +0 -13
- package/dist-lib/src/components/blocks/chat/base.d.ts +0 -10
- package/dist-lib/src/components/blocks/chat/base.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/chat/header.d.ts +0 -4
- package/dist-lib/src/components/blocks/chat/index.d.ts +0 -13
- package/dist-lib/src/components/blocks/chat/recommendation-stack.d.ts +0 -13
- package/dist-lib/src/components/blocks/chat/suggested-prompts.d.ts +0 -3
- package/dist-lib/src/components/blocks/chat/types.d.ts +0 -64
- package/dist-lib/src/components/blocks/chat/version-history-record.d.ts +0 -3
- package/dist-lib/src/components/blocks/layout.d.ts +0 -8
- package/dist-lib/src/components/blocks/nav/sidebar/ai-sidebar-atom.d.ts +0 -217
- package/dist-lib/src/components/blocks/nav/sidebar/ai-sidebar.d.ts +0 -11
- package/dist-lib/src/components/blocks/nav/sidebar/index.d.ts +0 -15
- package/dist-lib/src/components/blocks/nav/sidebar/sidebar-context.d.ts +0 -3
- package/dist-lib/src/components/blocks/nav/sidebar/sidebar-icon.d.ts +0 -2
- package/dist-lib/src/components/blocks/nav/sidebar/sidebar-row.d.ts +0 -4
- package/dist-lib/src/components/blocks/nav/sidebar/type.d.ts +0 -245
- package/dist-lib/src/components/blocks/nav/sidebar/use-ai-sidebar-state.d.ts +0 -29
- package/dist-lib/src/components/blocks/nav/sidebar/use-ai-sidebar.d.ts +0 -27
- package/dist-lib/src/components/blocks/nav/sidebar/utils.d.ts +0 -21
- package/dist-lib/src/components/blocks/profile/index.d.ts +0 -7
- package/dist-lib/src/components/blocks/profile/profile-card-atom.d.ts +0 -68
- package/dist-lib/src/components/blocks/profile/profile-card-block.d.ts +0 -66
- package/dist-lib/src/components/blocks/profile/profile-card-block.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/profile/type.d.ts +0 -80
- package/dist-lib/src/components/blocks/profile/use-profile-card-state.d.ts +0 -24
- package/dist-lib/src/components/blocks/profile/use-profile-card.d.ts +0 -34
- package/dist-lib/src/components/blocks/scaffold/index.d.ts +0 -29
- package/dist-lib/src/components/blocks/scaffold/panel-close-button.d.ts +0 -4
- package/dist-lib/src/components/blocks/scaffold/panel-menu-button.d.ts +0 -8
- package/dist-lib/src/components/blocks/scaffold/scaffold-actions.d.ts +0 -10
- package/dist-lib/src/components/blocks/scaffold/scaffold-atom.d.ts +0 -97
- package/dist-lib/src/components/blocks/scaffold/scaffold-canvas.d.ts +0 -9
- package/dist-lib/src/components/blocks/scaffold/scaffold-context.d.ts +0 -7
- package/dist-lib/src/components/blocks/scaffold/scaffold-inspector.d.ts +0 -9
- package/dist-lib/src/components/blocks/scaffold/scaffold-main.d.ts +0 -8
- package/dist-lib/src/components/blocks/scaffold/scaffold-panel.d.ts +0 -10
- package/dist-lib/src/components/blocks/scaffold/scaffold-root.d.ts +0 -17
- package/dist-lib/src/components/blocks/scaffold/scaffold-root.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/scaffold/scaffold-sidebar.d.ts +0 -7
- package/dist-lib/src/components/blocks/scaffold/scaffold-sub-panel.d.ts +0 -3
- package/dist-lib/src/components/blocks/scaffold/scaffold-tab.d.ts +0 -14
- package/dist-lib/src/components/blocks/scaffold/type.d.ts +0 -203
- package/dist-lib/src/components/blocks/scaffold/use-scaffold-state.d.ts +0 -26
- package/dist-lib/src/components/blocks/scaffold/use-scaffold.d.ts +0 -14
- package/dist-lib/src/components/blocks/scaffold/utils.d.ts +0 -37
- package/dist-lib/src/components/blocks/shell/animated-panel-inset.d.ts +0 -2
- package/dist-lib/src/components/blocks/shell/animated-panel-provider.d.ts +0 -2
- package/dist-lib/src/components/blocks/shell/animated-panel-trigger.d.ts +0 -2
- package/dist-lib/src/components/blocks/shell/animated-panel.d.ts +0 -2
- package/dist-lib/src/components/blocks/shell/shell-fit-atom.d.ts +0 -68
- package/dist-lib/src/components/blocks/shell/shell-layout.d.ts +0 -3
- package/dist-lib/src/components/blocks/shell/shell-layout.story.d.ts +0 -3
- package/dist-lib/src/components/blocks/shell/shell-metrics.d.ts +0 -54
- package/dist-lib/src/components/blocks/shell/type.d.ts +0 -292
- package/dist-lib/src/components/blocks/shell/use-shell-fit-state.d.ts +0 -25
- package/dist-lib/src/components/blocks/shell/use-shell-fit.d.ts +0 -14
- package/dist-lib/src/components/blocks/shell/use-shell-panels.d.ts +0 -20
- package/dist-lib/src/components/blocks/shell/utils.d.ts +0 -70
- package/dist-lib/src/components/composed/action-bar/action.d.ts +0 -18
- package/dist-lib/src/components/composed/action-bar/emojis.d.ts +0 -10
- package/dist-lib/src/components/composed/action-bar/index.d.ts +0 -12
- package/dist-lib/src/components/composed/action-bar/toolbar.d.ts +0 -2
- package/dist-lib/src/components/composed/action-bar/types.d.ts +0 -55
- package/dist-lib/src/components/composed/action-bar/utils.d.ts +0 -57
- package/dist-lib/src/components/composed/ai/index.d.ts +0 -17
- package/dist-lib/src/components/composed/ai/message.d.ts +0 -7
- package/dist-lib/src/components/composed/ai/research-answer.d.ts +0 -30
- package/dist-lib/src/components/composed/ai/streaming-text.d.ts +0 -26
- package/dist-lib/src/components/composed/ai/suggested-prompt.d.ts +0 -35
- package/dist-lib/src/components/composed/ai/types.d.ts +0 -66
- package/dist-lib/src/components/composed/attachment.story.d.ts +0 -3
- package/dist-lib/src/components/composed/chart.story.d.ts +0 -3
- package/dist-lib/src/components/composed/chat/attachment.d.ts +0 -62
- package/dist-lib/src/components/composed/chat/chart.d.ts +0 -41
- package/dist-lib/src/components/composed/chat/code-block.d.ts +0 -26
- package/dist-lib/src/components/composed/chat/composer/add-button.d.ts +0 -5
- package/dist-lib/src/components/composed/chat/composer/base.d.ts +0 -8
- package/dist-lib/src/components/composed/chat/composer/command-menu.d.ts +0 -2
- package/dist-lib/src/components/composed/chat/composer/hooks.d.ts +0 -9
- package/dist-lib/src/components/composed/chat/composer/send-button.d.ts +0 -3
- package/dist-lib/src/components/composed/chat/composer/suggestions.d.ts +0 -7
- package/dist-lib/src/components/composed/chat/composer/utils.d.ts +0 -19
- package/dist-lib/src/components/composed/chat/context-cards.d.ts +0 -27
- package/dist-lib/src/components/composed/chat/filter-table.d.ts +0 -40
- package/dist-lib/src/components/composed/chat/flowchart/chart-node.d.ts +0 -2
- package/dist-lib/src/components/composed/chat/flowchart/connector.d.ts +0 -2
- package/dist-lib/src/components/composed/chat/flowchart/default.d.ts +0 -7
- package/dist-lib/src/components/composed/chat/flowchart/edge-toolbar.d.ts +0 -9
- package/dist-lib/src/components/composed/chat/flowchart/hooks.d.ts +0 -290
- package/dist-lib/src/components/composed/chat/flowchart/step-body.d.ts +0 -6
- package/dist-lib/src/components/composed/chat/flowchart/types.d.ts +0 -91
- package/dist-lib/src/components/composed/chat/flowchart/utils.d.ts +0 -64
- package/dist-lib/src/components/composed/chat/index.d.ts +0 -15
- package/dist-lib/src/components/composed/chat/insight-cards.d.ts +0 -54
- package/dist-lib/src/components/composed/chat/markdown-atom.d.ts +0 -7
- package/dist-lib/src/components/composed/chat/markdown.d.ts +0 -22
- package/dist-lib/src/components/composed/chat/recommendation/checkbox.d.ts +0 -15
- package/dist-lib/src/components/composed/chat/recommendation/constant.d.ts +0 -6
- package/dist-lib/src/components/composed/chat/recommendation/default.d.ts +0 -7
- package/dist-lib/src/components/composed/chat/recommendation/group.d.ts +0 -8
- package/dist-lib/src/components/composed/chat/recommendation/index.d.ts +0 -15
- package/dist-lib/src/components/composed/chat/recommendation/item.d.ts +0 -12
- package/dist-lib/src/components/composed/chat/recommendation/types.d.ts +0 -53
- package/dist-lib/src/components/composed/chat/records-table.d.ts +0 -38
- package/dist-lib/src/components/composed/chat/type.d.ts +0 -86
- package/dist-lib/src/components/composed/code-block.story.d.ts +0 -3
- package/dist-lib/src/components/composed/context-cards.story.d.ts +0 -3
- package/dist-lib/src/components/composed/emoji-action-bar.story.d.ts +0 -3
- package/dist-lib/src/components/composed/filter-table.story.d.ts +0 -7
- package/dist-lib/src/components/composed/flowchart.story.d.ts +0 -3
- package/dist-lib/src/components/composed/insight-cards.story.d.ts +0 -3
- package/dist-lib/src/components/composed/logo.d.ts +0 -34
- package/dist-lib/src/components/composed/logo.story.d.ts +0 -3
- package/dist-lib/src/components/composed/markdown.story.d.ts +0 -3
- package/dist-lib/src/components/composed/password-input.d.ts +0 -30
- package/dist-lib/src/components/composed/password-input.story.d.ts +0 -7
- package/dist-lib/src/components/composed/reader/applied-mark.d.ts +0 -3
- package/dist-lib/src/components/composed/reader/apply-toast.d.ts +0 -3
- package/dist-lib/src/components/composed/reader/selection-highlight.d.ts +0 -3
- package/dist-lib/src/components/composed/reader/selection-popover.d.ts +0 -9
- package/dist-lib/src/components/composed/reader/type.d.ts +0 -40
- package/dist-lib/src/components/composed/recommendation-card.story.d.ts +0 -3
- package/dist-lib/src/components/composed/records-table.story.d.ts +0 -3
- package/dist-lib/src/components/composed/research-answer.story.d.ts +0 -3
- package/dist-lib/src/components/composed/social-providers.d.ts +0 -37
- package/dist-lib/src/components/composed/social-providers.story.d.ts +0 -3
- package/dist-lib/src/components/composed/streaming-text.story.d.ts +0 -3
- package/dist-lib/src/components/composed/tree/index.d.ts +0 -6
- package/dist-lib/src/components/composed/tree/tree-atom.d.ts +0 -160
- package/dist-lib/src/components/composed/tree/tree-context.d.ts +0 -4
- package/dist-lib/src/components/composed/tree/tree-node.d.ts +0 -12
- package/dist-lib/src/components/composed/tree/tree.d.ts +0 -19
- package/dist-lib/src/components/composed/tree/type.d.ts +0 -290
- package/dist-lib/src/components/composed/tree/use-tree-dnd.d.ts +0 -18
- package/dist-lib/src/components/composed/tree/use-tree-state.d.ts +0 -25
- package/dist-lib/src/components/composed/tree/use-tree.d.ts +0 -24
- package/dist-lib/src/components/composed/tree/utils.d.ts +0 -28
- package/dist-lib/src/components/composed/tree.story.d.ts +0 -6
- package/dist-lib/src/components/composed/user/index.d.ts +0 -11
- package/dist-lib/src/components/composed/user/info.d.ts +0 -12
- package/dist-lib/src/components/composed/user/message.d.ts +0 -3
- package/dist-lib/src/components/composed/user/pill.d.ts +0 -10
- package/dist-lib/src/components/composed/user/types.d.ts +0 -20
- package/dist-lib/src/components/composed/user.story.d.ts +0 -8
- package/dist-lib/src/components/composed/verse/index.d.ts +0 -2
- package/dist-lib/src/components/composed/verse/types.d.ts +0 -18
- package/dist-lib/src/components/composed/verse/verse.d.ts +0 -5
- package/dist-lib/src/components/composed/verse.story.d.ts +0 -3
- package/dist-lib/src/components/docs/atoms-gallery.d.ts +0 -3
- package/dist-lib/src/components/docs/demo-controls.d.ts +0 -21
- package/dist-lib/src/components/icons/file-badge-cfm.d.ts +0 -7
- package/dist-lib/src/components/icons/file-badge-corpus.d.ts +0 -7
- package/dist-lib/src/components/icons/file-badge-pdf.d.ts +0 -7
- package/dist-lib/src/components/icons/file-badge-tei.d.ts +0 -7
- package/dist-lib/src/components/icons/file-badge-tf.d.ts +0 -7
- package/dist-lib/src/components/icons/file-badge-txt.d.ts +0 -7
- package/dist-lib/src/components/icons/file-badge-xml.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-cfm.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-corpus.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-pdf.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-tei.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-tf.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-txt.d.ts +0 -7
- package/dist-lib/src/components/icons/file-wordmark-xml.d.ts +0 -7
- package/dist-lib/src/components/icons/index.d.ts +0 -15
- package/dist-lib/src/components/icons/types.d.ts +0 -7
- package/dist-lib/src/components/motion/overflow-actions.d.ts +0 -35
- package/dist-lib/src/components/motion/popover-morph.d.ts +0 -35
- package/dist-lib/src/components/motion/popover-position.d.ts +0 -15
- package/dist-lib/src/components/motion/shared-layout-bg.d.ts +0 -13
- package/dist-lib/src/components/theme-provider.d.ts +0 -15
- package/dist-lib/src/components/ui/avatar.story.d.ts +0 -7
- package/dist-lib/src/components/ui/badge.d.ts +0 -14
- package/dist-lib/src/components/ui/bubble.story.d.ts +0 -7
- package/dist-lib/src/components/ui/button.d.ts +0 -28
- package/dist-lib/src/components/ui/button.story.d.ts +0 -8
- package/dist-lib/src/components/ui/card.story.d.ts +0 -9
- package/dist-lib/src/components/ui/chat/avatar-handle.d.ts +0 -13
- package/dist-lib/src/components/ui/chat/badges.d.ts +0 -29
- package/dist-lib/src/components/ui/chat/buttons.d.ts +0 -29
- package/dist-lib/src/components/ui/chat/chips.d.ts +0 -48
- package/dist-lib/src/components/ui/chat/dot.d.ts +0 -30
- package/dist-lib/src/components/ui/chat/icon-button.d.ts +0 -18
- package/dist-lib/src/components/ui/chat/icon-tile.d.ts +0 -20
- package/dist-lib/src/components/ui/chat/index.d.ts +0 -12
- package/dist-lib/src/components/ui/chat/inline-source.d.ts +0 -20
- package/dist-lib/src/components/ui/chat/segmented-toggle.d.ts +0 -20
- package/dist-lib/src/components/ui/chat/tag.d.ts +0 -21
- package/dist-lib/src/components/ui/chat/thumbnail.d.ts +0 -13
- package/dist-lib/src/components/ui/chat/waveform.d.ts +0 -13
- package/dist-lib/src/components/ui/chat-atoms.story.d.ts +0 -22
- package/dist-lib/src/components/ui/checkbox.story.d.ts +0 -7
- package/dist-lib/src/components/ui/field.story.d.ts +0 -7
- package/dist-lib/src/components/ui/file-icons.story.d.ts +0 -7
- package/dist-lib/src/components/ui/frame.story.d.ts +0 -9
- package/dist-lib/src/components/ui/glasscn/glass-button-group.d.ts +0 -5
- package/dist-lib/src/components/ui/glasscn/glass-button.d.ts +0 -6
- package/dist-lib/src/components/ui/glasscn/glass-container.d.ts +0 -12
- package/dist-lib/src/components/ui/glasscn/glass-separator.d.ts +0 -5
- package/dist-lib/src/components/ui/glasscn/liquid-glass.d.ts +0 -31
- package/dist-lib/src/components/ui/input-group.d.ts +0 -13
- package/dist-lib/src/components/ui/input-group.story.d.ts +0 -7
- package/dist-lib/src/components/ui/input.d.ts +0 -9
- package/dist-lib/src/components/ui/input.story.d.ts +0 -9
- package/dist-lib/src/components/ui/label.story.d.ts +0 -9
- package/dist-lib/src/components/ui/menu-command.d.ts +0 -37
- package/dist-lib/src/components/ui/menu-command.story.d.ts +0 -7
- package/dist-lib/src/components/ui/otp-field.story.d.ts +0 -9
- package/dist-lib/src/components/ui/password-input.story.d.ts +0 -3
- package/dist-lib/src/components/ui/popover-glass.d.ts +0 -32
- package/dist-lib/src/components/ui/reference.story.d.ts +0 -10
- package/dist-lib/src/components/ui/select.d.ts +0 -30
- package/dist-lib/src/components/ui/separator.story.d.ts +0 -7
- package/dist-lib/src/components/ui/tabs.d.ts +0 -15
- package/dist-lib/src/components/ui/text.story.d.ts +0 -9
- package/dist-lib/src/components/ui/textarea.d.ts +0 -8
- package/dist-lib/src/components/ui/textarea.story.d.ts +0 -7
- package/dist-lib/src/components/ui/toast.d.ts +0 -15
- package/dist-lib/src/index.d.ts +0 -63
- package/dist-lib/src/lib/auth-accent.d.ts +0 -33
- package/dist-lib/src/lib/glass-variants.d.ts +0 -6
- package/dist-lib/src/lib/keyed-atom.d.ts +0 -14
- package/dist-lib/src/lib/segmented-control.d.ts +0 -8
- package/dist-lib/src/lib/state/exegia-provider.d.ts +0 -51
- package/dist-lib/src/lib/state/index.d.ts +0 -4
- package/dist-lib/src/lib/state/store.d.ts +0 -17
- package/src/components/blocks/auth/auth-flow-block.story.tsx +0 -17
- package/src/components/blocks/auth/auth-state-type.ts +0 -97
- package/src/components/blocks/auth/code-auth-block.story.tsx +0 -20
- package/src/components/blocks/auth/forgot-password-block.story.tsx +0 -14
- package/src/components/blocks/auth/linked-accounts-block.story.tsx +0 -23
- package/src/components/blocks/auth/login-block.story.tsx +0 -18
- package/src/components/blocks/auth/onboarding-block.story.tsx +0 -14
- package/src/components/blocks/auth/passkey-manager-block.story.tsx +0 -18
- package/src/components/blocks/auth/passkey-sign-in-block.story.tsx +0 -14
- package/src/components/blocks/auth/signup-block.story.tsx +0 -18
- package/src/components/blocks/auth/update-password-block.story.tsx +0 -14
- package/src/components/blocks/chat/base.story.tsx +0 -19
- package/src/components/blocks/chat/types.ts +0 -81
- package/src/components/blocks/nav/sidebar/__tests__/ai-sidebar-atom.test.tsx +0 -325
- package/src/components/blocks/nav/sidebar/__tests__/ai-sidebar.test.tsx +0 -93
- package/src/components/blocks/nav/sidebar/__tests__/use-ai-sidebar.test.tsx +0 -310
- package/src/components/blocks/nav/sidebar/ai-sidebar-atom.ts +0 -698
- package/src/components/blocks/nav/sidebar/ai-sidebar.tsx +0 -150
- package/src/components/blocks/nav/sidebar/index.ts +0 -67
- package/src/components/blocks/nav/sidebar/sidebar-context.ts +0 -15
- package/src/components/blocks/nav/sidebar/sidebar-icon.tsx +0 -14
- package/src/components/blocks/nav/sidebar/sidebar-row.tsx +0 -378
- package/src/components/blocks/nav/sidebar/type.ts +0 -294
- package/src/components/blocks/nav/sidebar/use-ai-sidebar-state.ts +0 -123
- package/src/components/blocks/nav/sidebar/use-ai-sidebar.ts +0 -619
- package/src/components/blocks/nav/sidebar/utils.ts +0 -170
- package/src/components/blocks/profile/profile-card-block.story.tsx +0 -18
- package/src/components/blocks/scaffold/scaffold-root.story.tsx +0 -36
- package/src/components/blocks/shell/shell-layout.story.tsx +0 -19
- package/src/components/composed/attachment.story.tsx +0 -52
- package/src/components/composed/chart.story.tsx +0 -46
- package/src/components/composed/code-block.story.tsx +0 -29
- package/src/components/composed/context-cards.story.tsx +0 -30
- package/src/components/composed/emoji-action-bar.story.tsx +0 -20
- package/src/components/composed/filter-table.story.tsx +0 -58
- package/src/components/composed/flowchart.story.tsx +0 -24
- package/src/components/composed/insight-cards.story.tsx +0 -51
- package/src/components/composed/logo.story.tsx +0 -21
- package/src/components/composed/markdown.story.tsx +0 -21
- package/src/components/composed/password-input.story.tsx +0 -38
- package/src/components/composed/recommendation-card.story.tsx +0 -32
- package/src/components/composed/records-table.story.tsx +0 -46
- package/src/components/composed/research-answer.story.tsx +0 -32
- package/src/components/composed/social-providers.story.tsx +0 -24
- package/src/components/composed/streaming-text.story.tsx +0 -24
- package/src/components/composed/tree.story.tsx +0 -31
- package/src/components/composed/user.story.tsx +0 -29
- package/src/components/composed/verse.story.tsx +0 -21
- package/src/components/ui/avatar.story.tsx +0 -33
- package/src/components/ui/bubble.story.tsx +0 -45
- package/src/components/ui/button.story.tsx +0 -62
- package/src/components/ui/card.story.tsx +0 -36
- package/src/components/ui/chat-atoms.story.tsx +0 -94
- package/src/components/ui/checkbox.story.tsx +0 -30
- package/src/components/ui/field.story.tsx +0 -32
- package/src/components/ui/file-icons.story.tsx +0 -24
- package/src/components/ui/frame.story.tsx +0 -32
- package/src/components/ui/input-group.story.tsx +0 -27
- package/src/components/ui/input.story.tsx +0 -42
- package/src/components/ui/label.story.tsx +0 -32
- package/src/components/ui/menu-command.story.tsx +0 -37
- package/src/components/ui/otp-field.story.tsx +0 -35
- package/src/components/ui/password-input.story.tsx +0 -19
- package/src/components/ui/reference.story.tsx +0 -33
- package/src/components/ui/separator.story.tsx +0 -34
- package/src/components/ui/text.story.tsx +0 -31
- package/src/components/ui/textarea.story.tsx +0 -34
- /package/dist-lib/{src/components → components}/atoms/_layout.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/avatar/verified.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/background/index.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/bubble/__tests__/bubble.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/bubble/__tests__/reference.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/chip.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/text/__tests__/text.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/text-selection/__tests__/click-popover.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/atoms/text-selection/__tests__/text-selection.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/auth-flow-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/auth-state-atom.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/linked-accounts-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/onboarding-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/passkey-manager-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/passkey-sign-in-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/signup-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/auth/__tests__/update-password-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/chat/__tests__/ai-panel.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/chat/shared.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/profile/__tests__/profile-card-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/scaffold/__tests__/scaffold-atom.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/scaffold/__tests__/scaffold.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/scaffold/constants.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/shell/__tests__/shell-fit-atom.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/shell/__tests__/shell-layout.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/shell/__tests__/shell-metrics.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/blocks/shell/index.d.ts +0 -0
- /package/dist-lib/{src/components/blocks/nav → components/blocks}/sidebar/__tests__/ai-sidebar-atom.test.d.ts +0 -0
- /package/dist-lib/{src/components/blocks/nav → components/blocks}/sidebar/__tests__/ai-sidebar.test.d.ts +0 -0
- /package/dist-lib/{src/components/blocks/nav → components/blocks}/sidebar/__tests__/use-ai-sidebar.test.d.ts +0 -0
- /package/dist-lib/{src/components/blocks/nav → components/blocks}/sidebar/marquee-label.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/__tests__/logo.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/action-bar/__tests__/action-bar.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/ai/__tests__/ai.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/ai/avatar.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/ai/shared.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/attachment.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/beautiful-ui.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/chart.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/code-block.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/composer-attachments.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/composer.test.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/__tests__/flowchart.test.d.ts +0 -0
- /package/dist-lib/{src/components/composed/chat/__tests__/markdown.test.d.ts → components/composed/chat/__tests__/glass-material.test.d.ts} +0 -0
- /package/dist-lib/{src/components/composed/tree/__tests__/tree-atom.test.d.ts → components/composed/chat/__tests__/markdown.test.d.ts} +0 -0
- /package/dist-lib/{src/components/composed/tree/__tests__/tree.test.d.ts → components/composed/chat/__tests__/menu-command.test.d.ts} +0 -0
- /package/dist-lib/{src/components/composed/tree/__tests__/use-tree.test.d.ts → components/composed/chat/__tests__/recommendation.test.d.ts} +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/actions.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/composer/index.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/flowchart/constant.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/flowchart/index.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/chat/hint.d.ts +0 -0
- /package/dist-lib/{src/components → components}/composed/reader/index.d.ts +0 -0
- /package/dist-lib/{src/components/composed/user/utils.d.ts → components/composed/tree/__tests__/tree-atom.test.d.ts} +0 -0
- /package/dist-lib/{src/components/composed/verse/__tests__/verse.test.d.ts → components/composed/tree/__tests__/tree.test.d.ts} +0 -0
- /package/dist-lib/{src/components/icons/__tests__/icons.test.d.ts → components/composed/tree/__tests__/use-tree.test.d.ts} +0 -0
- /package/dist-lib/{src/components → components}/composed/tree/constants.d.ts +0 -0
- /package/dist-lib/{src/components/motion/index.d.ts → components/composed/user/__tests__/message.test.d.ts} +0 -0
- /package/dist-lib/{src/components/ui/chat/__tests__/segmented-toggle.test.d.ts → components/composed/user/utils.d.ts} +0 -0
- /package/dist-lib/{src/lib/utils.test.d.ts → components/composed/verse/__tests__/verse.test.d.ts} +0 -0
- /package/dist-lib/{src/components → components}/docs/code-block.d.ts +0 -0
- /package/dist-lib/{src/components → components}/docs/hero.d.ts +0 -0
- /package/dist-lib/{src/components → components}/docs/mermaid.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/accordion.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/alert-dialog.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/alert.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/autocomplete.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/avatar.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/button-group.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/card.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/checkbox.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/collapsible.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/command.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/context-menu.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/emoji-picker.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/field.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/frame.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/group.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/kbd.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/label.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/menu.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/otp-field.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/popover.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/preview-card.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/scroll-area.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/separator.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/sheet.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/skeleton.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/spinner.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/switch.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/toolbar.d.ts +0 -0
- /package/dist-lib/{src/components → components}/ui/tooltip.d.ts +0 -0
- /package/dist-lib/{src/lib → lib}/ease.d.ts +0 -0
- /package/dist-lib/{src/lib → lib}/hooks/use-hover-capable.d.ts +0 -0
- /package/dist-lib/{src/lib → lib}/hooks/use-mobile.d.ts +0 -0
- /package/dist-lib/{src/lib → lib}/sound.d.ts +0 -0
- /package/dist-lib/{src/lib → lib}/utils.d.ts +0 -0
- /package/src/components/blocks/{nav/sidebar → sidebar}/marquee-label.tsx +0 -0
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { Atom } from 'jotai';
|
|
2
|
-
import { AISidebarConfig, AISidebarHandlers, AISidebarInstanceId, AISidebarSeed, AISidebarState, DropTarget, FlatResource, SidebarResource, SidebarResourceDropPosition, SidebarResourceMove } from './type.ts';
|
|
3
|
-
/** What a sidebar reads as before `useAISidebar` publishes its options. */
|
|
4
|
-
export declare const DEFAULT_AI_SIDEBAR_CONFIG: AISidebarConfig;
|
|
5
|
-
/**
|
|
6
|
-
* A string-keyed atom family.
|
|
7
|
-
*
|
|
8
|
-
* `jotai/utils`' `atomFamily` is deprecated for Jotai v3, and we need only
|
|
9
|
-
* the string-keyed case with a `remove` — so this stays in-house rather than
|
|
10
|
-
* adding `jotai-family` as a second Jotai package to keep version-aligned.
|
|
11
|
-
* Dropping a key lets the store's WeakMap release that instance's state.
|
|
12
|
-
*/
|
|
13
|
-
type Family<AtomType> = ((id: AISidebarInstanceId) => AtomType) & {
|
|
14
|
-
remove: (id: AISidebarInstanceId) => void;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const aiSidebarConfigAtom: Family<import('jotai').PrimitiveAtom<AISidebarConfig> & {
|
|
18
|
-
init: AISidebarConfig;
|
|
19
|
-
}>;
|
|
20
|
-
/** @internal Refreshed every commit; nothing subscribes, so it is free. */
|
|
21
|
-
export declare const aiSidebarHandlersAtom: Family<import('jotai').PrimitiveAtom<AISidebarHandlers> & {
|
|
22
|
-
init: AISidebarHandlers;
|
|
23
|
-
}>;
|
|
24
|
-
/** The sidebar's current data — hook-owned, or the projection of a
|
|
25
|
-
* controlled `items` prop. */
|
|
26
|
-
export declare const aiSidebarItemsAtom: Family<import('jotai').PrimitiveAtom<SidebarResource[]> & {
|
|
27
|
-
init: SidebarResource[];
|
|
28
|
-
}>;
|
|
29
|
-
/** @internal The hook-owned selection. `select` writes it only while no
|
|
30
|
-
* `activeId` prop owns the selection — read `aiSidebarActiveIdAtom` for the
|
|
31
|
-
* value the sidebar actually renders. */
|
|
32
|
-
export declare const aiSidebarOwnActiveIdAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
33
|
-
init: string | null;
|
|
34
|
-
}>;
|
|
35
|
-
/** @internal Projection of a controlled `activeId` prop; `undefined` while
|
|
36
|
-
* the selection is hook-owned. */
|
|
37
|
-
export declare const aiSidebarControlledActiveIdAtom: Family<import('jotai').PrimitiveAtom<string | null | undefined> & {
|
|
38
|
-
init: string | null | undefined;
|
|
39
|
-
}>;
|
|
40
|
-
/** Open rows — hook-owned, or the projection of a controlled `expandedIds`
|
|
41
|
-
* prop. */
|
|
42
|
-
export declare const aiSidebarExpandedIdsAtom: Family<import('jotai').PrimitiveAtom<ReadonlySet<string>> & {
|
|
43
|
-
init: ReadonlySet<string>;
|
|
44
|
-
}>;
|
|
45
|
-
/** Roving-focus target. DOM focus is moved by the block, which owns the row
|
|
46
|
-
* refs; this is only which row is tabbable. */
|
|
47
|
-
export declare const aiSidebarFocusedIdAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
48
|
-
init: string | null;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const aiSidebarDraggingIdAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
51
|
-
init: string | null;
|
|
52
|
-
}>;
|
|
53
|
-
export declare const aiSidebarDropTargetAtom: Family<import('jotai').PrimitiveAtom<DropTarget | null> & {
|
|
54
|
-
init: DropTarget | null;
|
|
55
|
-
}>;
|
|
56
|
-
export declare const aiSidebarMenuOpenIdAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
57
|
-
init: string | null;
|
|
58
|
-
}>;
|
|
59
|
-
export declare const aiSidebarRenamingIdAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
60
|
-
init: string | null;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const aiSidebarHoveredIdAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
63
|
-
init: string | null;
|
|
64
|
-
}>;
|
|
65
|
-
/** Live-region text for the last move or rename outcome. */
|
|
66
|
-
export declare const aiSidebarAnnouncementAtom: Family<import('jotai').PrimitiveAtom<string> & {
|
|
67
|
-
init: string;
|
|
68
|
-
}>;
|
|
69
|
-
/** A move is in flight. Read synchronously by `moveAISidebarRowAtom` before
|
|
70
|
-
* it starts another — the store needs no ref to see its own latest write. */
|
|
71
|
-
export declare const aiSidebarMovePendingAtom: Family<import('jotai').PrimitiveAtom<boolean> & {
|
|
72
|
-
init: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
/** @internal The only items atom `useAISidebar` may subscribe to: empty
|
|
75
|
-
* while a controlled `items` prop owns the data, so the projection write
|
|
76
|
-
* never feeds back into the render that produced it. An inline `items={[…]}`
|
|
77
|
-
* array is a new reference every render, and a subscribed round-trip would
|
|
78
|
-
* loop. */
|
|
79
|
-
export declare const aiSidebarOwnedItemsAtom: Family<Atom<SidebarResource[]>>;
|
|
80
|
-
/** @internal The same guard for `expandedIds`, which is controllable here
|
|
81
|
-
* and arrives as an array — just as unstable an identity as `items`. */
|
|
82
|
-
export declare const aiSidebarOwnedExpandedIdsAtom: Family<Atom<ReadonlySet<string>>>;
|
|
83
|
-
/** The selected row: the controlled `activeId` when there is one, the
|
|
84
|
-
* hook-owned selection otherwise. Kept as two atoms because a controlled
|
|
85
|
-
* `activeId` of `null` falls through to the hook-owned value — the block has
|
|
86
|
-
* always read `activeId ?? internalActiveId`. */
|
|
87
|
-
export declare const aiSidebarActiveIdAtom: Family<Atom<string | null>>;
|
|
88
|
-
/** Visible rows in order, each with its depth and parent id. */
|
|
89
|
-
export declare const aiSidebarFlatAtom: Family<Atom<FlatResource[]>>;
|
|
90
|
-
/** Some row is hovered and no drag is running — mounts the pill wrapper. */
|
|
91
|
-
export declare const aiSidebarHoverActiveAtom: Family<Atom<boolean>>;
|
|
92
|
-
/** Whether this one row is the current selection. */
|
|
93
|
-
export declare const aiSidebarRowSelectedAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
94
|
-
/** Whether this one row is open. */
|
|
95
|
-
export declare const aiSidebarRowExpandedAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
96
|
-
/** Whether this one row is the roving-focus target. */
|
|
97
|
-
export declare const aiSidebarRowFocusedAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
98
|
-
/** Whether this one row is in rename mode. */
|
|
99
|
-
export declare const aiSidebarRowRenamingAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
100
|
-
/** Whether this one row's action menu is open. */
|
|
101
|
-
export declare const aiSidebarRowMenuOpenAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
102
|
-
/** Whether this one row is the row in flight. */
|
|
103
|
-
export declare const aiSidebarRowDraggingAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
104
|
-
/** Where a drop on this one row would land, `null` when it is not hovered
|
|
105
|
-
* by a drag. */
|
|
106
|
-
export declare const aiSidebarRowDropAtom: (id: AISidebarInstanceId, rowId: string) => Atom<SidebarResourceDropPosition | null>;
|
|
107
|
-
/** Whether this one row owns the sliding hover pill. */
|
|
108
|
-
export declare const aiSidebarRowHoveredAtom: (id: AISidebarInstanceId, rowId: string) => Atom<boolean>;
|
|
109
|
-
/** The whole state of one sidebar. Components reading a single field should
|
|
110
|
-
* subscribe to that field's atom instead — this one changes on every edit. */
|
|
111
|
-
export declare const aiSidebarStateAtom: Family<Atom<AISidebarState>>;
|
|
112
|
-
export declare const expandAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
113
|
-
init: null;
|
|
114
|
-
}>;
|
|
115
|
-
export declare const collapseAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
116
|
-
init: null;
|
|
117
|
-
}>;
|
|
118
|
-
export declare const toggleAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
119
|
-
init: null;
|
|
120
|
-
}>;
|
|
121
|
-
export declare const expandAllAISidebarRowsAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
122
|
-
init: null;
|
|
123
|
-
}>;
|
|
124
|
-
export declare const collapseAllAISidebarRowsAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
125
|
-
init: null;
|
|
126
|
-
}>;
|
|
127
|
-
/** Open every ancestor of `rowId` without touching the rest of the tree. */
|
|
128
|
-
export declare const revealAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
129
|
-
init: null;
|
|
130
|
-
}>;
|
|
131
|
-
export declare const selectAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
132
|
-
init: null;
|
|
133
|
-
}>;
|
|
134
|
-
/** The store half of `focus`: which row is tabbable. Moving DOM focus is the
|
|
135
|
-
* block's job — it owns the row refs. */
|
|
136
|
-
export declare const focusAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
137
|
-
init: null;
|
|
138
|
-
}>;
|
|
139
|
-
/** @internal Keeps the roving target on a row that still renders: a focused
|
|
140
|
-
* row that folds away hands focus to the first visible row instead of
|
|
141
|
-
* pointing at nothing. `useAISidebar` runs it after every projection. */
|
|
142
|
-
export declare const normalizeAISidebarFocusAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
143
|
-
init: null;
|
|
144
|
-
}>;
|
|
145
|
-
export declare const startAISidebarRenameAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
146
|
-
init: null;
|
|
147
|
-
}>;
|
|
148
|
-
export declare const cancelAISidebarRenameAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
149
|
-
init: null;
|
|
150
|
-
}>;
|
|
151
|
-
/** Commit a rename and leave rename mode. Applied optimistically and rolled
|
|
152
|
-
* back if `onRename` rejects. Blank and unchanged labels are dropped. */
|
|
153
|
-
export declare const renameAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [rowId: string, label: string], void> & {
|
|
154
|
-
init: null;
|
|
155
|
-
}>;
|
|
156
|
-
export declare const openAISidebarMenuAtom: Family<import('jotai').WritableAtom<null, [rowId: string], void> & {
|
|
157
|
-
init: null;
|
|
158
|
-
}>;
|
|
159
|
-
/** Closes the menu and hands the roving target back to the row that owned
|
|
160
|
-
* it, then returns that id so the block can move DOM focus there — otherwise
|
|
161
|
-
* focus falls back to the body and the keyboard user loses their place. */
|
|
162
|
-
export declare const closeAISidebarMenuAtom: Family<import('jotai').WritableAtom<null, [], string | null> & {
|
|
163
|
-
init: null;
|
|
164
|
-
}>;
|
|
165
|
-
/**
|
|
166
|
-
* Reorder, applied optimistically and rolled back if `onMove` rejects.
|
|
167
|
-
*
|
|
168
|
-
* The pending flag is read straight back out of the store, which is why this
|
|
169
|
-
* needs no ref to guard overlapping moves the way React state did: the write
|
|
170
|
-
* is visible to the next call immediately, not after a commit.
|
|
171
|
-
*/
|
|
172
|
-
export declare const moveAISidebarRowAtom: Family<import('jotai').WritableAtom<null, [move: SidebarResourceMove], Promise<void>> & {
|
|
173
|
-
init: null;
|
|
174
|
-
}>;
|
|
175
|
-
/** Replace the data. Reports through `onItemsChange`; writes the atom only
|
|
176
|
-
* when no controlled `items` prop owns it. */
|
|
177
|
-
export declare const setAISidebarItemsAtom: Family<import('jotai').WritableAtom<null, [items: SidebarResource[]], void> & {
|
|
178
|
-
init: null;
|
|
179
|
-
}>;
|
|
180
|
-
export declare const setAISidebarHoveredAtom: Family<import('jotai').WritableAtom<null, [rowId: string, hovered: boolean], void> & {
|
|
181
|
-
init: null;
|
|
182
|
-
}>;
|
|
183
|
-
export declare const clearAISidebarHoverAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
184
|
-
init: null;
|
|
185
|
-
}>;
|
|
186
|
-
export declare const endAISidebarDragAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
187
|
-
init: null;
|
|
188
|
-
}>;
|
|
189
|
-
/** @internal Publish the latest options; seed the instance once. */
|
|
190
|
-
export declare const mountAISidebarAtom: Family<import('jotai').WritableAtom<null, [config: AISidebarConfig, seed: AISidebarSeed], void> & {
|
|
191
|
-
init: null;
|
|
192
|
-
}>;
|
|
193
|
-
/** @internal */
|
|
194
|
-
export declare const setAISidebarHandlersAtom: Family<import('jotai').WritableAtom<null, [handlers: AISidebarHandlers], void> & {
|
|
195
|
-
init: null;
|
|
196
|
-
}>;
|
|
197
|
-
/** @internal One-way projections of controlled props — no callbacks fire. */
|
|
198
|
-
export declare const projectAISidebarItemsAtom: Family<import('jotai').WritableAtom<null, [items: SidebarResource[]], void> & {
|
|
199
|
-
init: null;
|
|
200
|
-
}>;
|
|
201
|
-
/** @internal */
|
|
202
|
-
export declare const projectAISidebarActiveIdAtom: Family<import('jotai').WritableAtom<null, [activeId: string | null], void> & {
|
|
203
|
-
init: null;
|
|
204
|
-
}>;
|
|
205
|
-
/** @internal */
|
|
206
|
-
export declare const projectAISidebarExpandedIdsAtom: Family<import('jotai').WritableAtom<null, [expandedIds: string[]], void> & {
|
|
207
|
-
init: null;
|
|
208
|
-
}>;
|
|
209
|
-
/** Back to the values the instance mounted with. */
|
|
210
|
-
export declare const resetAISidebarAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
211
|
-
init: null;
|
|
212
|
-
}>;
|
|
213
|
-
/** Drop every atom for `id`. `useAISidebar` calls this on unmount for
|
|
214
|
-
* sidebars it keyed itself; an explicit `sidebarId` outlives its component,
|
|
215
|
-
* so an app-named sidebar keeps its open rows across a route change. */
|
|
216
|
-
export declare function removeAISidebarInstance(id: AISidebarInstanceId): void;
|
|
217
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AISidebarComponentProps } from './type';
|
|
2
|
-
/**
|
|
3
|
-
* Resource tree for the app rail: nested rows with drag-and-drop reorder,
|
|
4
|
-
* inline rename, per-row action menus and full keyboard navigation.
|
|
5
|
-
*
|
|
6
|
-
* Two ways to drive it. Pass the data and handlers as props and the block
|
|
7
|
-
* owns its state, or hold a `useAISidebar` controller and pass it as
|
|
8
|
-
* `controller` — the same rendering, but select, expand, rename, reorder
|
|
9
|
-
* and menu state are then callable from anywhere in your app.
|
|
10
|
-
*/
|
|
11
|
-
export declare function AISidebar(props: AISidebarComponentProps): import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AISidebar } from './ai-sidebar';
|
|
2
|
-
import { MarqueeLabel } from './marquee-label.tsx';
|
|
3
|
-
import { ResourceRow } from './sidebar-row.tsx';
|
|
4
|
-
import { SidebarIcon } from './sidebar-icon.tsx';
|
|
5
|
-
export { useAISidebar, type UseAISidebarOptions } from './use-ai-sidebar.ts';
|
|
6
|
-
export { useAISidebarActions, useAISidebarState, } from './use-ai-sidebar-state.ts';
|
|
7
|
-
export type * from './type.ts';
|
|
8
|
-
export { aiSidebarActiveIdAtom, aiSidebarAnnouncementAtom, aiSidebarDraggingIdAtom, aiSidebarDropTargetAtom, aiSidebarExpandedIdsAtom, aiSidebarFlatAtom, aiSidebarFocusedIdAtom, aiSidebarHoverActiveAtom, aiSidebarHoveredIdAtom, aiSidebarItemsAtom, aiSidebarMenuOpenIdAtom, aiSidebarMovePendingAtom, aiSidebarRenamingIdAtom, aiSidebarRowDraggingAtom, aiSidebarRowDropAtom, aiSidebarRowExpandedAtom, aiSidebarRowFocusedAtom, aiSidebarRowHoveredAtom, aiSidebarRowMenuOpenAtom, aiSidebarRowRenamingAtom, aiSidebarRowSelectedAtom, aiSidebarStateAtom, cancelAISidebarRenameAtom, clearAISidebarHoverAtom, closeAISidebarMenuAtom, collapseAISidebarRowAtom, collapseAllAISidebarRowsAtom, endAISidebarDragAtom, expandAISidebarRowAtom, expandAllAISidebarRowsAtom, focusAISidebarRowAtom, moveAISidebarRowAtom, openAISidebarMenuAtom, removeAISidebarInstance, renameAISidebarRowAtom, resetAISidebarAtom, revealAISidebarRowAtom, selectAISidebarRowAtom, setAISidebarHoveredAtom, setAISidebarItemsAtom, startAISidebarRenameAtom, toggleAISidebarRowAtom, } from './ai-sidebar-atom.ts';
|
|
9
|
-
export { AISidebar, MarqueeLabel, ResourceRow, SidebarIcon };
|
|
10
|
-
export declare const Sidebar: {
|
|
11
|
-
Wrapper: typeof AISidebar;
|
|
12
|
-
MarqueeLabel: typeof MarqueeLabel;
|
|
13
|
-
Row: import('react').MemoExoticComponent<({ row }: import('./type.ts').ResourceRowProps) => import("react").JSX.Element>;
|
|
14
|
-
Icon: typeof SidebarIcon;
|
|
15
|
-
};
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, DragEvent, KeyboardEvent } from 'react';
|
|
2
|
-
export type SidebarResourceKind = "folder" | "project" | "file" | "bookmark";
|
|
3
|
-
export interface SidebarResource {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
kind: SidebarResourceKind;
|
|
7
|
-
children?: SidebarResource[];
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export type SidebarResourceDropPosition = "before" | "inside" | "after";
|
|
11
|
-
export interface SidebarResourceMove {
|
|
12
|
-
itemId: string;
|
|
13
|
-
targetId: string | null;
|
|
14
|
-
position: SidebarResourceDropPosition;
|
|
15
|
-
}
|
|
16
|
-
export interface SidebarResourceMenuControls {
|
|
17
|
-
close: () => void;
|
|
18
|
-
rename: () => void;
|
|
19
|
-
}
|
|
20
|
-
/** Key for one sidebar's state in the store. Any stable string;
|
|
21
|
-
* `useAISidebar` generates one when you don't pass it. */
|
|
22
|
-
export type AISidebarInstanceId = string;
|
|
23
|
-
/** Options for `useAISidebar`. `items`, `activeId` and `expandedIds` are
|
|
24
|
-
* each controlled when passed and hook-owned via their `default*` twin
|
|
25
|
-
* otherwise. */
|
|
26
|
-
export interface UseAISidebarOptions {
|
|
27
|
-
/** Key this sidebar's state under a name your app can address —
|
|
28
|
-
* `useAISidebarState("app-resources")` / `useAISidebarActions(...)` reach
|
|
29
|
-
* it from anywhere under `ExegiaProvider`. Without one the hook generates
|
|
30
|
-
* a key and the state is dropped when the component unmounts. */
|
|
31
|
-
sidebarId?: AISidebarInstanceId;
|
|
32
|
-
items?: SidebarResource[];
|
|
33
|
-
defaultItems?: SidebarResource[];
|
|
34
|
-
onItemsChange?: (items: SidebarResource[]) => void;
|
|
35
|
-
/** Reject the promise to roll the optimistic move back. */
|
|
36
|
-
onMove?: (move: SidebarResourceMove) => void | Promise<void>;
|
|
37
|
-
onMoveError?: (error: unknown, move: SidebarResourceMove) => void;
|
|
38
|
-
onRename?: (item: SidebarResource, label: string) => void | Promise<void>;
|
|
39
|
-
activeId?: string | null;
|
|
40
|
-
defaultActiveId?: string | null;
|
|
41
|
-
onActiveChange?: (id: string) => void;
|
|
42
|
-
expandedIds?: string[];
|
|
43
|
-
defaultExpandedIds?: string[];
|
|
44
|
-
onExpandedChange?: (ids: string[]) => void;
|
|
45
|
-
}
|
|
46
|
-
/** Everything the sidebar can do, callable from outside the block — a
|
|
47
|
-
* toolbar, a command palette, a route change. Returned by `useAISidebar`
|
|
48
|
-
* and accepted by `<AISidebar controller={…} />`. */
|
|
49
|
-
export interface AISidebarController {
|
|
50
|
-
/** The key this sidebar's state is stored under. */
|
|
51
|
-
sidebarId: AISidebarInstanceId;
|
|
52
|
-
items: SidebarResource[];
|
|
53
|
-
/** Visible rows in order, each with its depth and parent id. */
|
|
54
|
-
flat: FlatResource[];
|
|
55
|
-
getItem: (id: string) => SidebarResource | undefined;
|
|
56
|
-
selectedId: string | null;
|
|
57
|
-
select: (id: string) => void;
|
|
58
|
-
expandedIds: ReadonlySet<string>;
|
|
59
|
-
isExpanded: (id: string) => boolean;
|
|
60
|
-
expand: (id: string) => void;
|
|
61
|
-
collapse: (id: string) => void;
|
|
62
|
-
toggleExpanded: (id: string) => void;
|
|
63
|
-
expandAll: () => void;
|
|
64
|
-
collapseAll: () => void;
|
|
65
|
-
/** Open every ancestor of `id`, leaving the rest of the tree alone. */
|
|
66
|
-
reveal: (id: string) => void;
|
|
67
|
-
/** Roving-focus target. `focus` also moves DOM focus to the row. */
|
|
68
|
-
focusedId: string | null;
|
|
69
|
-
focus: (id: string) => void;
|
|
70
|
-
renamingId: string | null;
|
|
71
|
-
startRename: (id: string) => void;
|
|
72
|
-
cancelRename: () => void;
|
|
73
|
-
/** Commit a rename and leave rename mode. Applied optimistically and
|
|
74
|
-
* rolled back if `onRename` rejects. Blank and unchanged labels are
|
|
75
|
-
* dropped. */
|
|
76
|
-
rename: (id: string, label: string) => void;
|
|
77
|
-
menuOpenId: string | null;
|
|
78
|
-
openMenu: (id: string) => void;
|
|
79
|
-
closeMenu: () => void;
|
|
80
|
-
/** Reorder, applied optimistically and rolled back if `onMove` rejects.
|
|
81
|
-
* Refuses moves the data forbids (into itself, into a non-container). */
|
|
82
|
-
move: (move: SidebarResourceMove) => Promise<void>;
|
|
83
|
-
/** A move is in flight — further moves are refused until it settles. */
|
|
84
|
-
movePending: boolean;
|
|
85
|
-
/** Live-region text for the last move or rename outcome. */
|
|
86
|
-
announcement: string;
|
|
87
|
-
/** Back to the values the sidebar mounted with. */
|
|
88
|
-
reset: () => void;
|
|
89
|
-
/** @internal Row wiring the view threads through — drag state, the
|
|
90
|
-
* hover pill and roving keyboard nav all belong to the rendering. */
|
|
91
|
-
dnd: AISidebarDndState;
|
|
92
|
-
hover: AISidebarHoverState;
|
|
93
|
-
onRowKeyDown: (event: KeyboardEvent<HTMLDivElement>, row: FlatResource) => void;
|
|
94
|
-
setRowRef: (id: string, node: HTMLDivElement | null) => void;
|
|
95
|
-
}
|
|
96
|
-
/** @internal */
|
|
97
|
-
export interface AISidebarDndState extends AISidebarRowDndHandlers {
|
|
98
|
-
draggingId: string | null;
|
|
99
|
-
dropTarget: DropTarget | null;
|
|
100
|
-
onRootDragOver: (event: DragEvent<HTMLDivElement>) => void;
|
|
101
|
-
}
|
|
102
|
-
/** @internal The drag handlers a row needs, stable for the life of the
|
|
103
|
-
* sidebar — they read drag state out of the store when they run instead of
|
|
104
|
-
* closing over it, so handing them to every row costs no re-renders. */
|
|
105
|
-
export interface AISidebarRowDndHandlers {
|
|
106
|
-
onDrop: (event: DragEvent<HTMLDivElement>) => void;
|
|
107
|
-
onRowDragStart: (event: DragEvent<HTMLDivElement>, id: string) => void;
|
|
108
|
-
onRowDragEnd: () => void;
|
|
109
|
-
onRowDragOver: (event: DragEvent<HTMLDivElement>, row: FlatResource) => void;
|
|
110
|
-
}
|
|
111
|
-
/** @internal */
|
|
112
|
-
export interface AISidebarHoverState {
|
|
113
|
-
hoveredId: string | null;
|
|
114
|
-
/** Shared motion layoutId that lets the pill travel between rows. */
|
|
115
|
-
layoutId: string;
|
|
116
|
-
onRowHover: (id: string, hovered: boolean) => void;
|
|
117
|
-
clear: () => void;
|
|
118
|
-
}
|
|
119
|
-
export interface AISidebarProps extends UseAISidebarOptions {
|
|
120
|
-
/** Never set on the data form — `controller` selects the other one. */
|
|
121
|
-
controller?: never;
|
|
122
|
-
renderIcon?: (item: SidebarResource) => ReactNode;
|
|
123
|
-
renderMenu?: (item: SidebarResource, controls: SidebarResourceMenuControls) => ReactNode;
|
|
124
|
-
/**
|
|
125
|
-
* Replaces the default "…" actions button. Must return a single element —
|
|
126
|
-
* the popover clones it to attach its trigger ref and click handler.
|
|
127
|
-
*/
|
|
128
|
-
renderActionsTrigger?: (item: SidebarResource) => ReactElement;
|
|
129
|
-
ariaLabel?: string;
|
|
130
|
-
className?: string;
|
|
131
|
-
}
|
|
132
|
-
/** Presentational props, shared by both forms of `<AISidebar>`. */
|
|
133
|
-
export type AISidebarViewProps = Pick<AISidebarProps, "renderIcon" | "renderMenu" | "renderActionsTrigger" | "ariaLabel" | "className">;
|
|
134
|
-
/** Drive the block from a `useAISidebar` controller instead of raw props —
|
|
135
|
-
* the controller carries the data and every handler. */
|
|
136
|
-
export interface AISidebarControllerProps extends AISidebarViewProps {
|
|
137
|
-
controller: AISidebarController;
|
|
138
|
-
}
|
|
139
|
-
/** Either form: raw props, or a `useAISidebar` controller. */
|
|
140
|
-
export type AISidebarComponentProps = AISidebarProps | AISidebarControllerProps;
|
|
141
|
-
export interface FlatResource {
|
|
142
|
-
item: SidebarResource;
|
|
143
|
-
depth: number;
|
|
144
|
-
parentId: string | null;
|
|
145
|
-
}
|
|
146
|
-
export interface DropTarget {
|
|
147
|
-
id: string | null;
|
|
148
|
-
position: SidebarResourceDropPosition;
|
|
149
|
-
}
|
|
150
|
-
/** A row takes its place in the tree and nothing else: selection,
|
|
151
|
-
* expansion, focus, rename, drag and hover state all arrive through its own
|
|
152
|
-
* atoms, and the rendering options through the sidebar context. */
|
|
153
|
-
export interface ResourceRowProps {
|
|
154
|
-
row: FlatResource;
|
|
155
|
-
}
|
|
156
|
-
/** @internal What a row needs from the block, threaded through context so
|
|
157
|
-
* the rows stay prop-light.
|
|
158
|
-
*
|
|
159
|
-
* Deliberately free of sidebar state and of the controller. Rows read state
|
|
160
|
-
* from per-row atoms, so this value keeps its identity for the life of the
|
|
161
|
-
* sidebar and hovering or expanding one row no longer re-renders every row
|
|
162
|
-
* through context. */
|
|
163
|
-
export interface AISidebarContextValue {
|
|
164
|
-
sidebarId: AISidebarInstanceId;
|
|
165
|
-
/** Shared motion layoutId that lets the hover pill travel between rows. */
|
|
166
|
-
hoverLayoutId: string;
|
|
167
|
-
renderIcon?: AISidebarProps["renderIcon"];
|
|
168
|
-
renderMenu?: AISidebarProps["renderMenu"];
|
|
169
|
-
renderActionsTrigger?: AISidebarProps["renderActionsTrigger"];
|
|
170
|
-
/** Registers the row's DOM node with the block, which owns the ref map —
|
|
171
|
-
* DOM nodes never go in the store. */
|
|
172
|
-
setRowRef: (id: string, node: HTMLDivElement | null) => void;
|
|
173
|
-
onRowKeyDown: (event: KeyboardEvent<HTMLDivElement>, row: FlatResource) => void;
|
|
174
|
-
onRowHover: (id: string, hovered: boolean) => void;
|
|
175
|
-
/** Closing returns DOM focus to the row that owned the menu, so it goes
|
|
176
|
-
* through the block rather than the store. */
|
|
177
|
-
closeMenu: () => void;
|
|
178
|
-
dnd: AISidebarRowDndHandlers;
|
|
179
|
-
}
|
|
180
|
-
/** Everything observable about one sidebar, for consumers reading it by id. */
|
|
181
|
-
export interface AISidebarState {
|
|
182
|
-
items: SidebarResource[];
|
|
183
|
-
/** Visible rows in order, each with its depth and parent id. */
|
|
184
|
-
flat: FlatResource[];
|
|
185
|
-
selectedId: string | null;
|
|
186
|
-
expandedIds: ReadonlySet<string>;
|
|
187
|
-
focusedId: string | null;
|
|
188
|
-
renamingId: string | null;
|
|
189
|
-
menuOpenId: string | null;
|
|
190
|
-
draggingId: string | null;
|
|
191
|
-
dropTarget: DropTarget | null;
|
|
192
|
-
hoveredId: string | null;
|
|
193
|
-
/** A move is in flight — further moves are refused until it settles. */
|
|
194
|
-
movePending: boolean;
|
|
195
|
-
/** Live-region text for the last move or rename outcome. */
|
|
196
|
-
announcement: string;
|
|
197
|
-
}
|
|
198
|
-
/** Everything doable to one sidebar from outside its component. */
|
|
199
|
-
export interface AISidebarActions {
|
|
200
|
-
select: (id: string) => void;
|
|
201
|
-
expand: (id: string) => void;
|
|
202
|
-
collapse: (id: string) => void;
|
|
203
|
-
toggleExpanded: (id: string) => void;
|
|
204
|
-
expandAll: () => void;
|
|
205
|
-
collapseAll: () => void;
|
|
206
|
-
reveal: (id: string) => void;
|
|
207
|
-
/** Moves the roving-focus target. DOM focus follows only for callers that
|
|
208
|
-
* hold the controller — the ref map lives in the block, not the store. */
|
|
209
|
-
focus: (id: string) => void;
|
|
210
|
-
startRename: (id: string) => void;
|
|
211
|
-
cancelRename: () => void;
|
|
212
|
-
rename: (id: string, label: string) => void;
|
|
213
|
-
openMenu: (id: string) => void;
|
|
214
|
-
closeMenu: () => void;
|
|
215
|
-
move: (move: SidebarResourceMove) => Promise<void>;
|
|
216
|
-
setItems: (items: SidebarResource[]) => void;
|
|
217
|
-
reset: () => void;
|
|
218
|
-
}
|
|
219
|
-
/** @internal Projection of `useAISidebar`'s options — primitives only, so
|
|
220
|
-
* the store write runs once per real change instead of once per render. */
|
|
221
|
-
export interface AISidebarConfig {
|
|
222
|
-
controlsItems: boolean;
|
|
223
|
-
controlsActiveId: boolean;
|
|
224
|
-
controlsExpandedIds: boolean;
|
|
225
|
-
}
|
|
226
|
-
/** @internal Latest option callbacks. Only write atoms read this, so it can
|
|
227
|
-
* be refreshed every commit without re-rendering anything. */
|
|
228
|
-
export interface AISidebarHandlers {
|
|
229
|
-
onItemsChange?: (items: SidebarResource[]) => void;
|
|
230
|
-
onMove?: (move: SidebarResourceMove) => void | Promise<void>;
|
|
231
|
-
onMoveError?: (error: unknown, move: SidebarResourceMove) => void;
|
|
232
|
-
onRename?: (item: SidebarResource, label: string) => void | Promise<void>;
|
|
233
|
-
onActiveChange?: (id: string) => void;
|
|
234
|
-
onExpandedChange?: (ids: string[]) => void;
|
|
235
|
-
}
|
|
236
|
-
/** @internal What an instance starts from, replayed by
|
|
237
|
-
* `resetAISidebarAtom`. */
|
|
238
|
-
export interface AISidebarSeed {
|
|
239
|
-
items: SidebarResource[];
|
|
240
|
-
/** Hook-owned selection — the `defaultActiveId`, never the controlled
|
|
241
|
-
* `activeId`. */
|
|
242
|
-
activeId: string | null;
|
|
243
|
-
focusedId: string | null;
|
|
244
|
-
expandedIds: string[];
|
|
245
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AISidebarActions, AISidebarInstanceId, AISidebarState } from './type.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Read the sidebar registered under `sidebarId` from anywhere below
|
|
4
|
-
* `ExegiaProvider` — no controller, no props, no provider of its own.
|
|
5
|
-
*
|
|
6
|
-
* ```tsx
|
|
7
|
-
* const { selectedId, movePending } = useAISidebarState("app-resources")
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* This returns the whole state object, so the caller re-renders on any
|
|
11
|
-
* change. A component that reads one field should subscribe to that field's
|
|
12
|
-
* atom instead: `useAtomValue(aiSidebarActiveIdAtom("app-resources"))`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function useAISidebarState(sidebarId: AISidebarInstanceId): AISidebarState;
|
|
15
|
-
/**
|
|
16
|
-
* Drive the sidebar registered under `sidebarId` from anywhere. Writes only —
|
|
17
|
-
* the caller never re-renders when the sidebar changes, so this is what a
|
|
18
|
-
* command palette, a keyboard shortcut or a route guard should reach for.
|
|
19
|
-
*
|
|
20
|
-
* `focus` and `closeMenu` move the store's roving target; DOM focus follows
|
|
21
|
-
* only for callers that hold the controller, because the row refs live in
|
|
22
|
-
* the block rather than the store.
|
|
23
|
-
*
|
|
24
|
-
* ```tsx
|
|
25
|
-
* const resources = useAISidebarActions("app-resources")
|
|
26
|
-
* <Button onClick={resources.collapseAll}>Collapse all</Button>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare function useAISidebarActions(sidebarId: AISidebarInstanceId): AISidebarActions;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AISidebarController, UseAISidebarOptions } from './type.ts';
|
|
2
|
-
export type { UseAISidebarOptions };
|
|
3
|
-
/**
|
|
4
|
-
* The AI sidebar's headless controller — every behaviour the block
|
|
5
|
-
* performs, callable from outside it: select, expand/collapse (one row,
|
|
6
|
-
* every row, or just the ancestors of one), move focus, rename, open a
|
|
7
|
-
* row's action menu, reorder.
|
|
8
|
-
*
|
|
9
|
-
* `items`, `activeId` and `expandedIds` are each controlled when passed
|
|
10
|
-
* and hook-owned via their `default*` twin otherwise. Reorder and rename
|
|
11
|
-
* are applied to the data optimistically and rolled back if
|
|
12
|
-
* `onMove`/`onRename` rejects, so a consumer never reduces the tree
|
|
13
|
-
* itself — `moveResource` and `renameResource` are exported for the ones
|
|
14
|
-
* who keep their data elsewhere.
|
|
15
|
-
*
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const sidebar = useAISidebar({ defaultItems: resources })
|
|
18
|
-
* <AISidebar controller={sidebar} />
|
|
19
|
-
* <Button onClick={sidebar.collapseAll}>Collapse all</Button>
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* State lives in Jotai atoms keyed by `sidebarId`, so anything under
|
|
23
|
-
* `ExegiaProvider` can drive this sidebar without the controller — name it
|
|
24
|
-
* and reach for `useAISidebarState(sidebarId)` /
|
|
25
|
-
* `useAISidebarActions(sidebarId)` elsewhere.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useAISidebar(options: UseAISidebarOptions): AISidebarController;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FlatResource, SidebarResource, SidebarResourceDropPosition, SidebarResourceMove } from './type.ts';
|
|
2
|
-
export declare const ROW_REVEAL: {
|
|
3
|
-
readonly duration: 0.16;
|
|
4
|
-
readonly ease: readonly [0.16, 1, 0.3, 1];
|
|
5
|
-
};
|
|
6
|
-
export declare function canContain(item: SidebarResource): boolean;
|
|
7
|
-
export declare function flattenResources(items: SidebarResource[], expanded: ReadonlySet<string>, depth?: number, parentId?: string | null): FlatResource[];
|
|
8
|
-
export declare function findResource(items: SidebarResource[], id: string): SidebarResource | undefined;
|
|
9
|
-
/** Ids of every ancestor of `id` (nearest last); empty when absent. */
|
|
10
|
-
export declare function ancestorIdsOf(items: SidebarResource[], id: string): string[];
|
|
11
|
-
/** Ids of every row that can hold children and has some — the set
|
|
12
|
-
* `expandAll` opens. */
|
|
13
|
-
export declare function expandableIdsOf(items: SidebarResource[]): string[];
|
|
14
|
-
export declare function containsResource(item: SidebarResource, id: string): boolean;
|
|
15
|
-
export declare function removeResource(items: SidebarResource[], id: string): {
|
|
16
|
-
items: SidebarResource[];
|
|
17
|
-
removed?: SidebarResource;
|
|
18
|
-
};
|
|
19
|
-
export declare function insertResource(items: SidebarResource[], resource: SidebarResource, targetId: string | null, position: SidebarResourceDropPosition): SidebarResource[];
|
|
20
|
-
export declare function moveResource(items: SidebarResource[], move: SidebarResourceMove): SidebarResource[] | null;
|
|
21
|
-
export declare function renameResource(items: SidebarResource[], id: string, label: string): SidebarResource[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { ProfileCardBlock, defaultProfileCardItems, } from './profile-card-block';
|
|
2
|
-
export type { ProfileCardBlockProps } from './profile-card-block';
|
|
3
|
-
export { useProfileCard } from './use-profile-card';
|
|
4
|
-
export type { ProfileCardBinding, UseProfileCardOptions } from './use-profile-card';
|
|
5
|
-
export { useProfileCardActions, useProfileCardState, } from './use-profile-card-state';
|
|
6
|
-
export { profileCardBusyAtom, profileCardCollapsedAtom, profileCardMenuOpenAtom, profileCardPendingActionIdAtom, profileCardStateAtom, profileCardVariantAtom, removeProfileCardInstance, resetProfileCardAtom, selectProfileCardActionAtom, setProfileCardMenuOpenAtom, setProfileCardVariantAtom, toggleProfileCardVariantAtom, } from './profile-card-atom';
|
|
7
|
-
export type * from './type';
|