@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,4 +0,0 @@
|
|
|
1
|
-
import { TextSelectionProps } from '../text-selection';
|
|
2
|
-
import { TextProps } from './types';
|
|
3
|
-
export type HeadingProps = Omit<TextProps, "type"> & Omit<TextSelectionProps, "children" | "className">;
|
|
4
|
-
export declare function Heading({ children, selected, popover, component, componentProps, popoverComponent, popoverProps, renderPopover, onSelectionStart, onSelectionEnd, onPopoverShow, onPopoverHide, offset, zIndex, className, alignment, minSelectionLength, ...textProps }: HeadingProps): import("react").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Text as TextDefault } from './default';
|
|
2
|
-
import { Heading } from './heading';
|
|
3
|
-
import { Paragraph } from './paragraph';
|
|
4
|
-
import { Span } from './span';
|
|
5
|
-
import { Label } from './label';
|
|
6
|
-
export type { HeadingProps } from './heading';
|
|
7
|
-
export type { ParagraphProps } from './paragraph';
|
|
8
|
-
export type { SpanProps } from './span';
|
|
9
|
-
export type { TextProps, TextSize, TextVariant } from './types';
|
|
10
|
-
export declare const Text: {
|
|
11
|
-
/** The polymorphic base the presets below are built on — the only member
|
|
12
|
-
* that takes `type`, so it is what reaches `link` and `subscript`. The
|
|
13
|
-
* presets are reachable through the atoms barrel, and without this it
|
|
14
|
-
* would not be: `export *` does not carry a default export. */
|
|
15
|
-
Root: typeof TextDefault;
|
|
16
|
-
Heading: typeof Heading;
|
|
17
|
-
Paragraph: typeof Paragraph;
|
|
18
|
-
Span: typeof Span;
|
|
19
|
-
Label: typeof Label;
|
|
20
|
-
};
|
|
21
|
-
export { TextDefault as default };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TextSelectionProps } from '../text-selection';
|
|
2
|
-
import { TextProps } from './types';
|
|
3
|
-
export type ParagraphProps = Omit<TextProps, "type"> & Omit<TextSelectionProps, "children" | "className">;
|
|
4
|
-
export declare function Paragraph({ children, selected, popover, component, componentProps, popoverComponent, popoverProps, renderPopover, onSelectionStart, onSelectionEnd, onPopoverShow, onPopoverHide, offset, zIndex, alignment, className, minSelectionLength, ...textProps }: ParagraphProps): import("react").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type TextVariant = "default" | "heading" | "paragraph" | "link" | "subscript";
|
|
3
|
-
export type TextSize = "small" | "medium" | "large" | number;
|
|
4
|
-
export type TextProps = Omit<HTMLAttributes<HTMLElement>, "children" | "style"> & {
|
|
5
|
-
id?: string;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Named sizes use the type scale; a number is interpreted as pixels. */
|
|
9
|
-
size?: TextSize;
|
|
10
|
-
type?: TextVariant;
|
|
11
|
-
href?: string;
|
|
12
|
-
/** Marks a reader selection. A string is also exposed as data-selection. */
|
|
13
|
-
selection?: string | boolean;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
};
|
|
16
|
-
export type LabelLevel = "heading" | "title" | "caption" | "subtitle";
|
|
17
|
-
export type LabelProps = {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
className?: string;
|
|
20
|
-
/** Type scale of the label. Defaults to "title". */
|
|
21
|
-
level?: LabelLevel;
|
|
22
|
-
id?: string;
|
|
23
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TextClickPopoverProps } from './types';
|
|
3
|
-
export declare function TextClickPopover({ children, popover, renderPopover, popoverProps, open: controlledOpen, defaultOpen, onOpenChange, className, ...textProps }: TextClickPopoverProps): ReactElement;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { TextClickPopover } from './click-popover';
|
|
2
|
-
export { HighlightPopover } from './popover';
|
|
3
|
-
export { TextSelection } from './selection';
|
|
4
|
-
export { initialSelectionState, resetSelectionAtom, selectionAtom, setCurrentSelectionAtom, setPopoverPositionAtom, setSelectionAtom, setSelectionPopoverAtom, setSelectionPositionAtom, setShowPopoverAtom, updateSelectionAtom, } from './selection-atom';
|
|
5
|
-
export { useSelection } from './use-selection';
|
|
6
|
-
export type { HighlightPopoverPrimitiveProps, HighlightPopoverProps, SelectionPosition, SelectionPopoverComponent, SelectionRenderProps, SelectionState, SelectionStateUpdate, TextClickPopoverProps, TextPopoverRenderProps, TextSelectionProps, UseSelectionOptions, UseSelectionResult, } from './types';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SelectionPosition, SelectionState, SelectionStateUpdate } from './types';
|
|
2
|
-
export declare const initialSelectionState: SelectionState;
|
|
3
|
-
export declare const selectionAtom: import('jotai').PrimitiveAtom<SelectionState> & {
|
|
4
|
-
init: SelectionState;
|
|
5
|
-
};
|
|
6
|
-
/** Update only the fields that changed, keeping selection state atomic. */
|
|
7
|
-
export declare const updateSelectionAtom: import('jotai').WritableAtom<null, [update: SelectionStateUpdate], void> & {
|
|
8
|
-
init: null;
|
|
9
|
-
};
|
|
10
|
-
export declare const setSelectionAtom: import('jotai').WritableAtom<null, [selection: string], void> & {
|
|
11
|
-
init: null;
|
|
12
|
-
};
|
|
13
|
-
export declare const setSelectionPositionAtom: import('jotai').WritableAtom<null, [popoverPosition: SelectionPosition], void> & {
|
|
14
|
-
init: null;
|
|
15
|
-
};
|
|
16
|
-
export declare const setSelectionPopoverAtom: import('jotai').WritableAtom<null, [showPopover: boolean], void> & {
|
|
17
|
-
init: null;
|
|
18
|
-
};
|
|
19
|
-
export declare const setCurrentSelectionAtom: import('jotai').WritableAtom<null, [selection: string], void> & {
|
|
20
|
-
init: null;
|
|
21
|
-
};
|
|
22
|
-
export declare const setPopoverPositionAtom: import('jotai').WritableAtom<null, [popoverPosition: SelectionPosition], void> & {
|
|
23
|
-
init: null;
|
|
24
|
-
};
|
|
25
|
-
export declare const setShowPopoverAtom: import('jotai').WritableAtom<null, [showPopover: boolean], void> & {
|
|
26
|
-
init: null;
|
|
27
|
-
};
|
|
28
|
-
export declare const resetSelectionAtom: import('jotai').WritableAtom<null, [], void> & {
|
|
29
|
-
init: null;
|
|
30
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { TextSelectionProps } from './types';
|
|
3
|
-
export declare function TextSelection({ children, selected, popover, component, componentProps, popoverComponent, popoverProps, renderPopover, onSelectionStart, onSelectionEnd, onPopoverShow, onPopoverHide, ...props }: TextSelectionProps): ReactElement;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ComponentType, ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { HighlightPopover as HighlightPopoverPrimitive } from '@omsimos/react-highlight-popover';
|
|
3
|
-
import { PopoverPopup } from '../../ui/popover';
|
|
4
|
-
import { TextProps } from '../text/types';
|
|
5
|
-
export interface SelectionPosition {
|
|
6
|
-
top: number;
|
|
7
|
-
left: number;
|
|
8
|
-
}
|
|
9
|
-
export interface SelectionState {
|
|
10
|
-
selected: boolean;
|
|
11
|
-
currentSelection: string;
|
|
12
|
-
showPopover: boolean;
|
|
13
|
-
popoverPosition: SelectionPosition | null;
|
|
14
|
-
}
|
|
15
|
-
export type SelectionStateUpdate = Partial<SelectionState> | ((state: SelectionState) => Partial<SelectionState>);
|
|
16
|
-
export interface SelectionRenderProps {
|
|
17
|
-
position: SelectionPosition;
|
|
18
|
-
selection: string;
|
|
19
|
-
selected: boolean;
|
|
20
|
-
showPopover: boolean;
|
|
21
|
-
setCurrentSelection: (selection: string) => void;
|
|
22
|
-
setShowPopover: (show: boolean) => void;
|
|
23
|
-
close: () => void;
|
|
24
|
-
}
|
|
25
|
-
export type SelectionPopoverComponent = ComponentType<SelectionRenderProps>;
|
|
26
|
-
export type HighlightPopoverPrimitiveProps = ComponentProps<typeof HighlightPopoverPrimitive>;
|
|
27
|
-
export interface HighlightPopoverProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
|
|
28
|
-
children?: ReactNode;
|
|
29
|
-
/** Render a component around the popover content. */
|
|
30
|
-
component?: ElementType;
|
|
31
|
-
/** Props forwarded to the custom component. */
|
|
32
|
-
componentProps?: Record<string, unknown>;
|
|
33
|
-
/** Render function for applications that need full control of the markup. */
|
|
34
|
-
render?: (props: SelectionRenderProps) => ReactNode;
|
|
35
|
-
}
|
|
36
|
-
export interface TextSelectionProps extends Omit<HighlightPopoverPrimitiveProps, "children" | "renderPopover" | "onSelectionStart" | "onSelectionEnd" | "onPopoverShow" | "onPopoverHide"> {
|
|
37
|
-
children: ReactNode;
|
|
38
|
-
selected?: boolean;
|
|
39
|
-
popover?: ReactNode;
|
|
40
|
-
component?: ElementType;
|
|
41
|
-
componentProps?: Record<string, unknown>;
|
|
42
|
-
popoverComponent?: ElementType;
|
|
43
|
-
popoverProps?: Record<string, unknown>;
|
|
44
|
-
renderPopover?: (props: SelectionRenderProps) => ReactNode;
|
|
45
|
-
onSelectionStart?: () => void;
|
|
46
|
-
onSelectionEnd?: (selection: string) => void;
|
|
47
|
-
onPopoverShow?: () => void;
|
|
48
|
-
onPopoverHide?: () => void;
|
|
49
|
-
}
|
|
50
|
-
export interface TextPopoverRenderProps {
|
|
51
|
-
open: boolean;
|
|
52
|
-
setOpen: (open: boolean) => void;
|
|
53
|
-
close: () => void;
|
|
54
|
-
}
|
|
55
|
-
export interface TextClickPopoverProps extends Omit<TextProps, "popover"> {
|
|
56
|
-
/** Popover content rendered when the text is clicked. */
|
|
57
|
-
popover?: ReactNode;
|
|
58
|
-
/** Render function for applications that need full control of the markup. */
|
|
59
|
-
renderPopover?: (props: TextPopoverRenderProps) => ReactNode;
|
|
60
|
-
/** Props forwarded to the popup (side, align, className, …). */
|
|
61
|
-
popoverProps?: ComponentProps<typeof PopoverPopup>;
|
|
62
|
-
open?: boolean;
|
|
63
|
-
defaultOpen?: boolean;
|
|
64
|
-
onOpenChange?: (open: boolean) => void;
|
|
65
|
-
}
|
|
66
|
-
export interface UseSelectionOptions {
|
|
67
|
-
selected?: boolean;
|
|
68
|
-
onSelectionStart?: () => void;
|
|
69
|
-
onSelectionEnd?: (selection: string) => void;
|
|
70
|
-
onPopoverShow?: () => void;
|
|
71
|
-
onPopoverHide?: () => void;
|
|
72
|
-
}
|
|
73
|
-
export interface UseSelectionResult {
|
|
74
|
-
state: SelectionState;
|
|
75
|
-
selected: boolean;
|
|
76
|
-
currentSelection: string;
|
|
77
|
-
showPopover: boolean;
|
|
78
|
-
popoverPosition: SelectionState["popoverPosition"];
|
|
79
|
-
setSelection: (selection: string) => void;
|
|
80
|
-
setPosition: (position: NonNullable<SelectionState["popoverPosition"]>) => void;
|
|
81
|
-
setShowPopover: (show: boolean) => void;
|
|
82
|
-
update: (update: SelectionStateUpdate) => void;
|
|
83
|
-
reset: () => void;
|
|
84
|
-
selectionProps: {
|
|
85
|
-
onSelectionStart: () => void;
|
|
86
|
-
onSelectionEnd: (selection: string) => void;
|
|
87
|
-
onPopoverShow: () => void;
|
|
88
|
-
onPopoverHide: () => void;
|
|
89
|
-
};
|
|
90
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UseSelectionOptions, UseSelectionResult } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Coordinates the third-party highlight popover callbacks with the shared
|
|
4
|
-
* selection atom. The returned `selectionProps` can be spread directly onto
|
|
5
|
-
* `@omsimos/react-highlight-popover`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useSelection(options?: UseSelectionOptions): UseSelectionResult;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type AtomSize = "xs" | "sm" | "default" | "lg" | "xl" | "xxl";
|
|
2
|
-
export interface ReferenceProps {
|
|
3
|
-
/** With an href the chip renders as a link, otherwise as a button. */
|
|
4
|
-
href?: string;
|
|
5
|
-
target?: React.HTMLAttributeAnchorTarget;
|
|
6
|
-
rel?: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
"aria-label"?: string;
|
|
11
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
12
|
-
/**
|
|
13
|
-
* The passage the chip points at, shown in a preview card on hover or
|
|
14
|
-
* focus. Omitted, the chip is just a link.
|
|
15
|
-
*/
|
|
16
|
-
preview?: React.ReactNode;
|
|
17
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { AuthStatus } from './auth-shell';
|
|
2
|
-
import { AuthFlowChannel, AuthFlowId, AuthFlowState, AuthFlowStep, AuthUser, BeginAuthVerificationOptions } from './auth-state-type';
|
|
3
|
-
export declare const DEFAULT_AUTH_FLOW_ID: AuthFlowId;
|
|
4
|
-
/**
|
|
5
|
-
* A string-keyed atom family (same in-house shape as `tree-atom.ts`:
|
|
6
|
-
* `jotai/utils`' `atomFamily` is deprecated for Jotai v3, and we need only
|
|
7
|
-
* the string-keyed case with a `remove`). Dropping a key lets the store's
|
|
8
|
-
* WeakMap release that instance's state.
|
|
9
|
-
*/
|
|
10
|
-
type Family<AtomType> = ((id: AuthFlowId) => AtomType) & {
|
|
11
|
-
remove: (id: AuthFlowId) => void;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Mask an identifier for display. Email → first character of the local part
|
|
15
|
-
* plus `"•••"`, domain intact (`"y•••@example.com"`; a 1-char local part
|
|
16
|
-
* still gets `"y•••@…"`). Non-email (sms) → `"•••"` + last 4 characters;
|
|
17
|
-
* fewer than 4 characters masks everything as `"•••"`.
|
|
18
|
-
*/
|
|
19
|
-
export declare function maskAuthIdentifier(identifier: string): string;
|
|
20
|
-
export declare const authFlowStepAtom: Family<import('jotai').PrimitiveAtom<AuthFlowStep> & {
|
|
21
|
-
init: AuthFlowStep;
|
|
22
|
-
}>;
|
|
23
|
-
/** An email or phone number in flight — never a password or a code. */
|
|
24
|
-
export declare const authFlowIdentifierAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
25
|
-
init: string | null;
|
|
26
|
-
}>;
|
|
27
|
-
export declare const authFlowChannelAtom: Family<import('jotai').PrimitiveAtom<AuthFlowChannel> & {
|
|
28
|
-
init: AuthFlowChannel;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const authFlowStatusAtom: Family<import('jotai').PrimitiveAtom<AuthStatus> & {
|
|
31
|
-
init: AuthStatus;
|
|
32
|
-
}>;
|
|
33
|
-
export declare const authFlowErrorAtom: Family<import('jotai').PrimitiveAtom<string | null> & {
|
|
34
|
-
init: string | null;
|
|
35
|
-
}>;
|
|
36
|
-
/** `identifier` masked for display, `null` while nothing is in flight. */
|
|
37
|
-
export declare const authFlowMaskedIdentifierAtom: Family<import('jotai').Atom<string | null>>;
|
|
38
|
-
export declare const authFlowStateAtom: Family<import('jotai').Atom<AuthFlowState>>;
|
|
39
|
-
/** Show a step with a clean slate (`"idle"`, no error). Keeps the
|
|
40
|
-
* identifier so "back to verify" flows don't lose the destination. */
|
|
41
|
-
export declare const goToAuthStepAtom: Family<import('jotai').WritableAtom<null, [step: AuthFlowStep], void> & {
|
|
42
|
-
init: null;
|
|
43
|
-
}>;
|
|
44
|
-
/** Record the identifier in flight and move to the verification step. */
|
|
45
|
-
export declare const beginAuthVerificationAtom: Family<import('jotai').WritableAtom<null, [options: BeginAuthVerificationOptions], void> & {
|
|
46
|
-
init: null;
|
|
47
|
-
}>;
|
|
48
|
-
/** Mark the flow `"loading"` while an async attempt is in flight. */
|
|
49
|
-
export declare const beginAuthAttemptAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
50
|
-
init: null;
|
|
51
|
-
}>;
|
|
52
|
-
export declare const failAuthFlowAtom: Family<import('jotai').WritableAtom<null, [message: string], void> & {
|
|
53
|
-
init: null;
|
|
54
|
-
}>;
|
|
55
|
-
/** Mark the flow `"success"` and land on the success step. When `user` is
|
|
56
|
-
* given, also sign the session in — one atomic write for the whole
|
|
57
|
-
* "verification passed" transition. */
|
|
58
|
-
export declare const completeAuthFlowAtom: Family<import('jotai').WritableAtom<null, [user?: AuthUser | undefined], void> & {
|
|
59
|
-
init: null;
|
|
60
|
-
}>;
|
|
61
|
-
/** Back to the initial values (login step, no identifier, `"email"`,
|
|
62
|
-
* `"idle"`, no error). */
|
|
63
|
-
export declare const resetAuthFlowAtom: Family<import('jotai').WritableAtom<null, [], void> & {
|
|
64
|
-
init: null;
|
|
65
|
-
}>;
|
|
66
|
-
/**
|
|
67
|
-
* Sign out and return the default flow to the login step — the one to wire
|
|
68
|
-
* to a logout button. `useAuthSessionActions().signOut` is this atom;
|
|
69
|
-
* `signOutAtom` in `auth-session-atom.ts` clears the session only.
|
|
70
|
-
*/
|
|
71
|
-
export declare const endAuthSessionAtom: import('jotai').WritableAtom<null, [], void> & {
|
|
72
|
-
init: null;
|
|
73
|
-
};
|
|
74
|
-
/** Drop every atom for `id`. Call on teardown of an explicit flow id; the
|
|
75
|
-
* default flow usually just gets `resetAuthFlowAtom`. */
|
|
76
|
-
export declare function removeAuthFlowInstance(id: AuthFlowId): void;
|
|
77
|
-
export {};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { SocialProvider } from '../../composed/social-providers';
|
|
2
|
-
import { AuthAccent } from '../../../lib/auth-accent';
|
|
3
|
-
import { CodeAuthBlockProps } from './code-auth-block';
|
|
4
|
-
import { ForgotPasswordBlockProps } from './forgot-password-block';
|
|
5
|
-
import { LoginBlockProps } from './login-block';
|
|
6
|
-
import { OnboardingBlockProps, OnboardingStepConfig, OnboardingValue } from './onboarding-block';
|
|
7
|
-
import { SignupBlockProps } from './signup-block';
|
|
8
|
-
import { UpdatePasswordBlockProps } from './update-password-block';
|
|
9
|
-
import { AuthFlowId, AuthFlowState, AuthFlowStep, AuthUser, BeginAuthVerificationOptions } from './auth-state-type';
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
/**
|
|
12
|
-
* Where the flow goes after a step callback resolves. Returned from every
|
|
13
|
-
* `AuthFlowBlock` handler:
|
|
14
|
-
*
|
|
15
|
-
* - `{ user }` — the attempt signed someone in: mark the flow complete AND
|
|
16
|
-
* sign the session in (one atomic write, `completeAuthFlowAtom`).
|
|
17
|
-
* - `{ verify }` — a code went out: record the identifier and move to the
|
|
18
|
-
* verification step (`beginAuthVerificationAtom`).
|
|
19
|
-
* - `{ step }` — plain navigation with a clean slate (`goToAuthStepAtom`).
|
|
20
|
-
* - `void` — stay put; the block renders its own success state.
|
|
21
|
-
*
|
|
22
|
-
* Rejections are NOT handled here — they propagate back into the block,
|
|
23
|
-
* which owns its transient error/shake state (see `react/CLAUDE.md`,
|
|
24
|
-
* "Third implementation: auth").
|
|
25
|
-
*/
|
|
26
|
-
export type AuthFlowDirective = {
|
|
27
|
-
user: AuthUser;
|
|
28
|
-
} | {
|
|
29
|
-
verify: BeginAuthVerificationOptions;
|
|
30
|
-
} | {
|
|
31
|
-
step: AuthFlowStep;
|
|
32
|
-
} | void;
|
|
33
|
-
export type AuthFlowHandler<Data = void> = (data: Data) => Promise<AuthFlowDirective> | AuthFlowDirective;
|
|
34
|
-
/** Per-step prop overrides, merged over the orchestrator's wiring — spread
|
|
35
|
-
* last, so an app can restyle a block or unhook a default navigation link
|
|
36
|
-
* (`{ login: { onSignup: undefined } }` removes the sign-up hand-off). */
|
|
37
|
-
export interface AuthFlowStepOverrides {
|
|
38
|
-
login?: Partial<LoginBlockProps>;
|
|
39
|
-
signup?: Partial<SignupBlockProps>;
|
|
40
|
-
"verify-code"?: Partial<CodeAuthBlockProps>;
|
|
41
|
-
"forgot-password"?: Partial<ForgotPasswordBlockProps>;
|
|
42
|
-
"update-password"?: Partial<UpdatePasswordBlockProps>;
|
|
43
|
-
onboarding?: Partial<OnboardingBlockProps>;
|
|
44
|
-
}
|
|
45
|
-
export interface AuthFlowBlockProps {
|
|
46
|
-
/** Which flow instance to orchestrate. The default flow unless a re-auth
|
|
47
|
-
* modal or a second surface needs its own. */
|
|
48
|
-
flowId?: AuthFlowId;
|
|
49
|
-
/** Brand mark handed to every step's card. */
|
|
50
|
-
logo?: React.ReactNode;
|
|
51
|
-
/** Brand accent handed to every step's card. */
|
|
52
|
-
accent?: AuthAccent;
|
|
53
|
-
/** Social providers offered on the login and signup steps. */
|
|
54
|
-
providers?: SocialProvider[];
|
|
55
|
-
/** The login attempt. Resolve with a directive; reject to show the error
|
|
56
|
-
* in the block. */
|
|
57
|
-
onLogin?: AuthFlowHandler<{
|
|
58
|
-
email: string;
|
|
59
|
-
password: string;
|
|
60
|
-
remember: boolean;
|
|
61
|
-
}>;
|
|
62
|
-
/** The signup attempt. */
|
|
63
|
-
onSignup?: AuthFlowHandler<{
|
|
64
|
-
name: string;
|
|
65
|
-
email: string;
|
|
66
|
-
password: string;
|
|
67
|
-
}>;
|
|
68
|
-
/** A social provider chosen on the login or signup step. */
|
|
69
|
-
onProviderSelect?: AuthFlowHandler<SocialProvider>;
|
|
70
|
-
/** The forgot-password request. Resolving without a directive stays on the
|
|
71
|
-
* step (the block shows its own "link sent" state). */
|
|
72
|
-
onRequestReset?: AuthFlowHandler<{
|
|
73
|
-
email: string;
|
|
74
|
-
}>;
|
|
75
|
-
/** The code entered on the verification step. */
|
|
76
|
-
onVerifyCode?: AuthFlowHandler<string>;
|
|
77
|
-
/** "Resend code" on the verification step. */
|
|
78
|
-
onResendCode?: AuthFlowHandler;
|
|
79
|
-
/** The update-password submit. */
|
|
80
|
-
onUpdatePassword?: AuthFlowHandler<{
|
|
81
|
-
password: string;
|
|
82
|
-
}>;
|
|
83
|
-
/** Onboarding finished, with the merged profile. */
|
|
84
|
-
onOnboardingComplete?: AuthFlowHandler<Record<string, OnboardingValue>>;
|
|
85
|
-
/** Declared onboarding steps, handed to `OnboardingBlock`. */
|
|
86
|
-
onboardingSteps?: OnboardingStepConfig[];
|
|
87
|
-
/** Per-step prop overrides, merged over the orchestrator's wiring. */
|
|
88
|
-
steps?: AuthFlowStepOverrides;
|
|
89
|
-
/** Replace any step's UI entirely; return `undefined` to keep the default
|
|
90
|
-
* for that step. Receives the flow state for destination copy etc. */
|
|
91
|
-
renderStep?: (step: AuthFlowStep, flow: AuthFlowState) => React.ReactNode | undefined;
|
|
92
|
-
/** Replaces the whole default success card. */
|
|
93
|
-
success?: React.ReactNode;
|
|
94
|
-
/** Card title of the default success step. */
|
|
95
|
-
successTitle?: string;
|
|
96
|
-
/** Body under the default success step's "You're signed in" check. */
|
|
97
|
-
successDescription?: string;
|
|
98
|
-
className?: string;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Renders the right auth block for the flow's current step with the store
|
|
102
|
-
* wiring built in — the switchboard every host app was hand-rolling around
|
|
103
|
-
* `useAuthFlow`. Navigation links between steps (login ↔ signup, forgot
|
|
104
|
-
* password, back from verification) are pre-wired to `goToStep`; each
|
|
105
|
-
* submit-shaped prop awaits your handler and applies the returned
|
|
106
|
-
* {@link AuthFlowDirective}.
|
|
107
|
-
*
|
|
108
|
-
* The blocks themselves stay untouched: passwords, codes and field drafts
|
|
109
|
-
* live in their local state, and a rejected handler renders as the block's
|
|
110
|
-
* own error — the orchestrator never mirrors transients into the store.
|
|
111
|
-
* Needs `ExegiaProvider` above it, like every stateful block.
|
|
112
|
-
*
|
|
113
|
-
* ```tsx
|
|
114
|
-
* <AuthFlowBlock
|
|
115
|
-
* onLogin={async ({ email, password }) => {
|
|
116
|
-
* const outcome = await api.signIn(email, password)
|
|
117
|
-
* return outcome.mfa ? { verify: { identifier: email } } : { user: outcome.user }
|
|
118
|
-
* }}
|
|
119
|
-
* onVerifyCode={async (code) => ({ user: await api.verify(code) })}
|
|
120
|
-
* />
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
export declare function AuthFlowBlock({ flowId, logo, accent, providers, onLogin, onSignup, onProviderSelect, onRequestReset, onVerifyCode, onResendCode, onUpdatePassword, onOnboardingComplete, onboardingSteps, steps, renderStep, success, successTitle, successDescription, className, }: AuthFlowBlockProps): React.ReactElement;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AuthSessionState, AuthSessionStatus, AuthUser } from './auth-state-type';
|
|
2
|
-
/** `"unknown"` until the app restores or rejects a session at boot. */
|
|
3
|
-
export declare const authSessionStatusAtom: import('jotai').PrimitiveAtom<AuthSessionStatus> & {
|
|
4
|
-
init: AuthSessionStatus;
|
|
5
|
-
};
|
|
6
|
-
export declare const authUserAtom: import('jotai').PrimitiveAtom<AuthUser | null> & {
|
|
7
|
-
init: AuthUser | null;
|
|
8
|
-
};
|
|
9
|
-
export declare const isAuthenticatedAtom: import('jotai').Atom<boolean>;
|
|
10
|
-
export declare const authSessionStateAtom: import('jotai').Atom<AuthSessionState>;
|
|
11
|
-
export declare const signInAtom: import('jotai').WritableAtom<null, [user: AuthUser], void> & {
|
|
12
|
-
init: null;
|
|
13
|
-
};
|
|
14
|
-
export declare const updateAuthUserAtom: import('jotai').WritableAtom<null, [patch: Partial<AuthUser>], void> & {
|
|
15
|
-
init: null;
|
|
16
|
-
};
|
|
17
|
-
/** What an app calls at boot when session restore fails. */
|
|
18
|
-
export declare const markUnauthenticatedAtom: import('jotai').WritableAtom<null, [], void> & {
|
|
19
|
-
init: null;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Clears the session only. Most consumers want `endAuthSessionAtom` from
|
|
23
|
-
* `auth-flow-atom.ts` instead, which also returns the default flow to the
|
|
24
|
-
* login step — the hooks expose that one as `signOut`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const signOutAtom: import('jotai').WritableAtom<null, [], void> & {
|
|
27
|
-
init: null;
|
|
28
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { AuthAccent } from '../../../lib/auth-accent';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
/** transitions.dev motion scale, shared by all auth blocks. */
|
|
4
|
-
export declare const EASE: readonly [0.22, 1, 0.36, 1];
|
|
5
|
-
export type AuthStatus = "idle" | "loading" | "success" | "error";
|
|
6
|
-
/**
|
|
7
|
-
* Frame shell shared by the auth blocks (coss particle p-card-8): a raised
|
|
8
|
-
* Card inside a muted Frame, with the footer in the frame strip below the
|
|
9
|
-
* card. Wraps content in a MotionConfig that honors prefers-reduced-motion
|
|
10
|
-
* and layout-animates height changes so step swaps morph instead of jumping.
|
|
11
|
-
*/
|
|
12
|
-
export declare function AuthCard({ title, description, children, footer, className, logo, accent, }: {
|
|
13
|
-
title: React.ReactNode;
|
|
14
|
-
description?: React.ReactNode;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
footer?: React.ReactNode;
|
|
17
|
-
className?: string;
|
|
18
|
-
/** Brand mark rendered above the title. Omit for no logo row at all. */
|
|
19
|
-
logo?: React.ReactNode;
|
|
20
|
-
/** Brand accent for the card's primary action. Omit to keep `bg-primary`. */
|
|
21
|
-
accent?: AuthAccent;
|
|
22
|
-
}): React.JSX.Element;
|
|
23
|
-
/** Cross-morphs between steps (form → success, …) keyed by `step`. */
|
|
24
|
-
export declare function MorphStep({ step, children, className, }: {
|
|
25
|
-
step: string;
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
className?: string;
|
|
28
|
-
}): React.JSX.Element;
|
|
29
|
-
/**
|
|
30
|
-
* Progressive-disclosure wrapper: collapses/expands a step as `show` flips.
|
|
31
|
-
*
|
|
32
|
-
* `overflow-hidden` is only worn while the height is in flight — leaving it on
|
|
33
|
-
* would clip the focus ring of any full-width control inside (the ring sits
|
|
34
|
-
* 3px outside the input's border box, so the left/right edges would be cut).
|
|
35
|
-
*/
|
|
36
|
-
export declare function Reveal({ show, children, className, }: {
|
|
37
|
-
show: boolean;
|
|
38
|
-
children: React.ReactNode;
|
|
39
|
-
className?: string;
|
|
40
|
-
}): React.JSX.Element;
|
|
41
|
-
/** Inline error message that shakes each time `message` changes. */
|
|
42
|
-
export declare function AuthError({ message }: {
|
|
43
|
-
message: string | null;
|
|
44
|
-
}): React.JSX.Element;
|
|
45
|
-
/** Success panel with a stroke-drawn check. */
|
|
46
|
-
export declare function AuthSuccess({ title, description, children, }: {
|
|
47
|
-
title: React.ReactNode;
|
|
48
|
-
description?: React.ReactNode;
|
|
49
|
-
children?: React.ReactNode;
|
|
50
|
-
}): React.JSX.Element;
|
|
51
|
-
/** "Or continue with" style divider. */
|
|
52
|
-
export declare function AuthSeparator({ label }: {
|
|
53
|
-
label?: string;
|
|
54
|
-
}): React.JSX.Element;
|
|
55
|
-
/** Countdown for resend links; restarts when `restartKey` changes. */
|
|
56
|
-
export declare function useCountdown(seconds: number, restartKey: number): number;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { AuthStatus } from './auth-shell';
|
|
2
|
-
export type AuthFlowId = string;
|
|
3
|
-
/** Which auth block the app is showing. */
|
|
4
|
-
export type AuthFlowStep = "login" | "signup" | "verify-code" | "forgot-password" | "update-password" | "onboarding" | "success";
|
|
5
|
-
export type AuthFlowChannel = "email" | "sms";
|
|
6
|
-
export interface AuthFlowState {
|
|
7
|
-
step: AuthFlowStep;
|
|
8
|
-
/** The identifier in flight — an email or phone number. Cleared by reset
|
|
9
|
-
* and by signOut. Never store passwords or codes here. */
|
|
10
|
-
identifier: string | null;
|
|
11
|
-
/** `identifier` masked for display — "y•••@example.com", "•••1234". */
|
|
12
|
-
maskedIdentifier: string | null;
|
|
13
|
-
channel: AuthFlowChannel;
|
|
14
|
-
status: AuthStatus;
|
|
15
|
-
error: string | null;
|
|
16
|
-
}
|
|
17
|
-
/** Options for `beginAuthVerificationAtom` / `beginVerification`. */
|
|
18
|
-
export interface BeginAuthVerificationOptions {
|
|
19
|
-
identifier: string;
|
|
20
|
-
/** @default "email" */
|
|
21
|
-
channel?: AuthFlowChannel;
|
|
22
|
-
/** @default "verify-code" */
|
|
23
|
-
step?: AuthFlowStep;
|
|
24
|
-
}
|
|
25
|
-
/** What `useAuthFlowActions(flowId)` returns. */
|
|
26
|
-
export interface AuthFlowActions {
|
|
27
|
-
/** Show a step; resets status to `"idle"` and clears the error. Keeps the
|
|
28
|
-
* identifier. */
|
|
29
|
-
goToStep: (step: AuthFlowStep) => void;
|
|
30
|
-
/** Record the identifier in flight and move to the verification step. */
|
|
31
|
-
beginVerification: (options: BeginAuthVerificationOptions) => void;
|
|
32
|
-
/** Mark the flow `"loading"` while an async attempt is in flight. */
|
|
33
|
-
beginAttempt: () => void;
|
|
34
|
-
/** Mark the flow `"error"` with a message. */
|
|
35
|
-
fail: (message: string) => void;
|
|
36
|
-
/** Mark the flow `"success"`; when a user is given, also sign the session
|
|
37
|
-
* in. */
|
|
38
|
-
complete: (user?: AuthUser) => void;
|
|
39
|
-
/** Back to the initial values (login step, no identifier). */
|
|
40
|
-
reset: () => void;
|
|
41
|
-
}
|
|
42
|
-
/** The signed-in identity, kept for the whole session. Structurally
|
|
43
|
-
* assignable to `ProfileCardUser`, so it drops into `ProfileCardBlock`. */
|
|
44
|
-
export interface AuthUser {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
/** Secondary line — a handle, an email, a role. */
|
|
48
|
-
username?: string;
|
|
49
|
-
email?: string;
|
|
50
|
-
/** Avatar image URL. */
|
|
51
|
-
avatar?: string;
|
|
52
|
-
initials?: string;
|
|
53
|
-
/** App-specific extras the library never interprets. */
|
|
54
|
-
metadata?: Record<string, unknown>;
|
|
55
|
-
}
|
|
56
|
-
/** `unknown` until the app restores or rejects a session at boot. */
|
|
57
|
-
export type AuthSessionStatus = "unknown" | "unauthenticated" | "authenticated";
|
|
58
|
-
export interface AuthSessionState {
|
|
59
|
-
status: AuthSessionStatus;
|
|
60
|
-
user: AuthUser | null;
|
|
61
|
-
}
|
|
62
|
-
/** What `useAuthSessionActions()` returns. */
|
|
63
|
-
export interface AuthSessionActions {
|
|
64
|
-
signIn: (user: AuthUser) => void;
|
|
65
|
-
/** Shallow-merge a patch into the signed-in user; no-op when signed out. */
|
|
66
|
-
updateUser: (patch: Partial<AuthUser>) => void;
|
|
67
|
-
/** What an app calls at boot when session restore fails. */
|
|
68
|
-
markUnauthenticated: () => void;
|
|
69
|
-
/** Sign out AND return the default auth flow to the login step. */
|
|
70
|
-
signOut: () => void;
|
|
71
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public barrel for the auth coordination state. Explicit named exports
|
|
3
|
-
* only — never `export *` from the atom modules, so internals can move
|
|
4
|
-
* without becoming a breaking-change surface.
|
|
5
|
-
*/
|
|
6
|
-
export { DEFAULT_AUTH_FLOW_ID, authFlowChannelAtom, authFlowErrorAtom, authFlowIdentifierAtom, authFlowMaskedIdentifierAtom, authFlowStateAtom, authFlowStatusAtom, authFlowStepAtom, beginAuthAttemptAtom, beginAuthVerificationAtom, completeAuthFlowAtom, endAuthSessionAtom, failAuthFlowAtom, goToAuthStepAtom, maskAuthIdentifier, removeAuthFlowInstance, resetAuthFlowAtom, } from './auth-flow-atom';
|
|
7
|
-
export { authSessionStateAtom, authSessionStatusAtom, authUserAtom, isAuthenticatedAtom, markUnauthenticatedAtom, signInAtom, signOutAtom, updateAuthUserAtom, } from './auth-session-atom';
|
|
8
|
-
export { useAuthFlow, useAuthFlowActions, useAuthSession, useAuthSessionActions, } from './use-auth-state';
|
|
9
|
-
export type { AuthFlowActions, AuthFlowChannel, AuthFlowId, AuthFlowState, AuthFlowStep, AuthSessionActions, AuthSessionState, AuthSessionStatus, AuthUser, BeginAuthVerificationOptions, } from './auth-state-type';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AuthAccent } from '../../../lib/auth-accent';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface CodeAuthBlockProps {
|
|
4
|
-
/** Brand mark rendered above the title. Omit for no logo row at all. */
|
|
5
|
-
logo?: React.ReactNode;
|
|
6
|
-
/** Brand accent for the primary action. Omit to keep the default primary. */
|
|
7
|
-
accent?: AuthAccent;
|
|
8
|
-
/** Where the code was sent; drives copy and icon. */
|
|
9
|
-
channel?: "email" | "sms";
|
|
10
|
-
/** Masked destination shown in the description, e.g. "y•••@example.com". */
|
|
11
|
-
destination?: string;
|
|
12
|
-
length?: number;
|
|
13
|
-
/** Submit automatically once all digits are entered. */
|
|
14
|
-
autoSubmit?: boolean;
|
|
15
|
-
/** Seconds before "Resend code" becomes available. 0 disables the wait. */
|
|
16
|
-
resendSeconds?: number;
|
|
17
|
-
/** Reject (or throw) to show the error shake and clear the code. */
|
|
18
|
-
onVerify?: (code: string) => Promise<void> | void;
|
|
19
|
-
onResend?: () => Promise<void> | void;
|
|
20
|
-
onBack?: () => void;
|
|
21
|
-
}
|
|
22
|
-
export declare function CodeAuthBlock({ channel, logo, accent, destination, length, autoSubmit, resendSeconds, onVerify, onResend, onBack, }: CodeAuthBlockProps): React.JSX.Element;
|