@oxy.so/bloom 23.8.0 → 23.9.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/android/src/main/java/so/oxy/bloom/AvatarLoops.kt +293 -0
- package/android/src/main/java/so/oxy/bloom/AvatarSurface.kt +351 -0
- package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +1 -1
- package/docs/agent-avatar.mdx +77 -1
- package/docs/bloom-language-classnames.mdx +11 -11
- package/docs/bloom-language-codemod.mdx +30 -5
- package/docs/bloom-language-for-agents.mdx +1 -1
- package/docs/bloom-language-modifiers.mdx +222 -77
- package/docs/bloom-language-nodes.mdx +43 -21
- package/docs/bloom-language-tokens.mdx +69 -14
- package/docs/bloom-language.mdx +148 -46
- package/docs/design-tokens.mdx +12 -2
- package/docs/no-nativewind.mdx +5 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/theme.mdx +37 -0
- package/lib/commonjs/accordion/Accordion.js +12 -12
- package/lib/commonjs/accordion/Accordion.js.map +1 -1
- package/lib/commonjs/accordion/Accordion.web.js +8 -8
- package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +267 -111
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js +75 -0
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-loop.js +161 -0
- package/lib/commonjs/agent-avatar/vector-loop.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-visibility.js +4 -1
- package/lib/commonjs/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/commonjs/agent-log/AgentLog.js +131 -174
- package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
- package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
- package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
- package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
- package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/commonjs/app-shell/AppShell.js +5 -7
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/NotificationBell.js +9 -9
- package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
- package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
- package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/commonjs/blur/BlurIsland.js +112 -118
- package/lib/commonjs/blur/BlurIsland.js.map +1 -1
- package/lib/commonjs/button/Button.js +12 -22
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/button/GroupBase.js +35 -50
- package/lib/commonjs/button/GroupBase.js.map +1 -1
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/commonjs/choice-list/ChoiceList.js +5 -5
- package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +3 -3
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
- package/lib/commonjs/data-table/DataTableSelect.js +8 -8
- package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
- package/lib/commonjs/design-tokens/theme.css +1 -0
- package/lib/commonjs/design-tokens/tokens.json +390 -0
- package/lib/commonjs/dialog/DialogContent.js +5 -4
- package/lib/commonjs/dialog/DialogContent.js.map +1 -1
- package/lib/commonjs/dialog/DialogHeader.js +6 -5
- package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
- package/lib/commonjs/dialog/SheetShell.js +5 -4
- package/lib/commonjs/dialog/SheetShell.js.map +1 -1
- package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
- package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
- package/lib/commonjs/floating/lens/lens-cover.js +56 -0
- package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-frame.js +286 -0
- package/lib/commonjs/floating/lens/lens-frame.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-material.js +1 -1
- package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
- package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
- package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
- package/lib/commonjs/home-search/BudgetPicker.js +8 -8
- package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
- package/lib/commonjs/home-search/MoveInPicker.js +7 -7
- package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
- package/lib/commonjs/icon-circle/IconCircle.js +14 -16
- package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
- package/lib/commonjs/icons/shared.js +3 -5
- package/lib/commonjs/icons/shared.js.map +1 -1
- package/lib/commonjs/kbd/Kbd.js +8 -8
- package/lib/commonjs/kbd/Kbd.js.map +1 -1
- package/lib/commonjs/layout/ResizeHandle.js +6 -5
- package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/commonjs/list/ListBase.js +3 -3
- package/lib/commonjs/list/ListBase.js.map +1 -1
- package/lib/commonjs/list/ListPerson.js +3 -3
- package/lib/commonjs/list/ListPerson.js.map +1 -1
- package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
- package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
- package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
- package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
- package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
- package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +24 -15
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +43 -24
- package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
- package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/commonjs/project-board/MemberAvatars.js +7 -9
- package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/commonjs/project-board/styles.js +2 -5
- package/lib/commonjs/project-board/styles.js.map +1 -1
- package/lib/commonjs/radio/RadioSwatch.js +5 -5
- package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
- package/lib/commonjs/rating/Rating.js +7 -7
- package/lib/commonjs/rating/Rating.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.js +8 -8
- package/lib/commonjs/rating/RatingBar.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.web.js +5 -5
- package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
- package/lib/commonjs/rating/RatingInput.js +9 -9
- package/lib/commonjs/rating/RatingInput.js.map +1 -1
- package/lib/commonjs/rating/RatingSummary.js +6 -6
- package/lib/commonjs/rating/RatingSummary.js.map +1 -1
- package/lib/commonjs/row-actions/RowActions.js +5 -5
- package/lib/commonjs/row-actions/RowActions.js.map +1 -1
- package/lib/commonjs/select/Select.js +5 -5
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/skeleton/Skeleton.js +22 -30
- package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
- package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/CountFilter.js +3 -3
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterSection.js +12 -12
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/commonjs/stay-search/GuestPicker.js +5 -5
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
- package/lib/commonjs/stepper/Stepper.js +11 -10
- package/lib/commonjs/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/stepper/StepperRow.js +12 -12
- package/lib/commonjs/stepper/StepperRow.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/commonjs/surface/Surface.js +64 -193
- package/lib/commonjs/surface/Surface.js.map +1 -1
- package/lib/commonjs/tab-bar/TabBarBase.js +18 -15
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
- package/lib/commonjs/task-list/TaskList.js +14 -15
- package/lib/commonjs/task-list/TaskList.js.map +1 -1
- package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
- package/lib/commonjs/theme/build-theme.js +39 -9
- package/lib/commonjs/theme/build-theme.js.map +1 -1
- package/lib/commonjs/theme/canonical-tokens.js +40 -0
- package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
- package/lib/commonjs/theme/color-policy.js +3 -0
- package/lib/commonjs/theme/color-policy.js.map +1 -1
- package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
- package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
- package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
- package/lib/commonjs/theme/color-tokens.js +32 -10
- package/lib/commonjs/theme/color-tokens.js.map +1 -1
- package/lib/commonjs/theme/color-utils.js +4 -0
- package/lib/commonjs/theme/color-utils.js.map +1 -1
- package/lib/commonjs/theme/default-token-vars.js +92 -0
- package/lib/commonjs/theme/default-token-vars.js.map +1 -0
- package/lib/commonjs/theme/index.js +6 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/index.web.js +6 -0
- package/lib/commonjs/theme/index.web.js.map +1 -1
- package/lib/commonjs/theme/prepaint-palettes.js +1 -5
- package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
- package/lib/commonjs/theme/token-registry.js +7 -28
- package/lib/commonjs/theme/token-registry.js.map +1 -1
- package/lib/commonjs/theme/use-theme-paint.js +28 -0
- package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
- package/lib/commonjs/typography/Typography.js +27 -27
- package/lib/commonjs/typography/Typography.js.map +1 -1
- package/lib/commonjs/web-search/WebSearch.js +18 -19
- package/lib/commonjs/web-search/WebSearch.js.map +1 -1
- package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
- package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
- package/lib/commonjs/wizard/WizardProgress.js +5 -5
- package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
- package/lib/module/accordion/Accordion.js +12 -12
- package/lib/module/accordion/Accordion.js.map +1 -1
- package/lib/module/accordion/Accordion.web.js +8 -8
- package/lib/module/accordion/Accordion.web.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +268 -112
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorNativeSurface.js +66 -0
- package/lib/module/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/module/agent-avatar/vector-loop.js +150 -0
- package/lib/module/agent-avatar/vector-loop.js.map +1 -0
- package/lib/module/agent-avatar/vector-visibility.js +3 -1
- package/lib/module/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/module/agent-creator/EmotionPicker.js +3 -5
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/module/agent-log/AgentLog.js +131 -174
- package/lib/module/agent-log/AgentLog.js.map +1 -1
- package/lib/module/agent-reply/AgentProfile.js +7 -10
- package/lib/module/agent-reply/AgentProfile.js.map +1 -1
- package/lib/module/agent-thinking/AgentThinking.js +8 -7
- package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +5 -7
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +73 -29
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/NotificationBell.js +9 -9
- package/lib/module/app-shell/NotificationBell.js.map +1 -1
- package/lib/module/app-shell/PanelReorderHandle.js +4 -6
- package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/blur/BlurIsland.js +112 -116
- package/lib/module/blur/BlurIsland.js.map +1 -1
- package/lib/module/button/Button.js +13 -23
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/button/GroupBase.js +37 -52
- package/lib/module/button/GroupBase.js.map +1 -1
- package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/module/choice-list/ChoiceList.js +5 -5
- package/lib/module/choice-list/ChoiceList.js.map +1 -1
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +3 -3
- package/lib/module/cover-header/CoverHeader.js.map +1 -1
- package/lib/module/data-table/DataTableSelect.js +8 -8
- package/lib/module/data-table/DataTableSelect.js.map +1 -1
- package/lib/module/design-tokens/theme.css +1 -0
- package/lib/module/design-tokens/tokens.json +390 -0
- package/lib/module/dialog/DialogContent.js +5 -4
- package/lib/module/dialog/DialogContent.js.map +1 -1
- package/lib/module/dialog/DialogHeader.js +6 -5
- package/lib/module/dialog/DialogHeader.js.map +1 -1
- package/lib/module/dialog/SheetShell.js +5 -4
- package/lib/module/dialog/SheetShell.js.map +1 -1
- package/lib/module/expandable-text/ExpandableText.js +3 -3
- package/lib/module/expandable-text/ExpandableText.js.map +1 -1
- package/lib/module/floating/lens/lens-cover.js +51 -0
- package/lib/module/floating/lens/lens-cover.js.map +1 -0
- package/lib/module/floating/lens/lens-frame.js +282 -0
- package/lib/module/floating/lens/lens-frame.js.map +1 -0
- package/lib/module/floating/lens/lens-material.js +1 -1
- package/lib/module/floating/lens/native-lens.js.map +1 -1
- package/lib/module/grouped-section/GroupedSection.js +16 -15
- package/lib/module/grouped-section/GroupedSection.js.map +1 -1
- package/lib/module/home-search/BudgetPicker.js +8 -8
- package/lib/module/home-search/BudgetPicker.js.map +1 -1
- package/lib/module/home-search/MoveInPicker.js +7 -7
- package/lib/module/home-search/MoveInPicker.js.map +1 -1
- package/lib/module/icon-circle/IconCircle.js +14 -16
- package/lib/module/icon-circle/IconCircle.js.map +1 -1
- package/lib/module/icons/shared.js +3 -5
- package/lib/module/icons/shared.js.map +1 -1
- package/lib/module/kbd/Kbd.js +8 -8
- package/lib/module/kbd/Kbd.js.map +1 -1
- package/lib/module/layout/ResizeHandle.js +6 -5
- package/lib/module/layout/ResizeHandle.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +24 -26
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/list/ListBase.js +3 -3
- package/lib/module/list/ListBase.js.map +1 -1
- package/lib/module/list/ListPerson.js +3 -3
- package/lib/module/list/ListPerson.js.map +1 -1
- package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/module/markdown/InlineMarkdown.js +9 -11
- package/lib/module/markdown/InlineMarkdown.js.map +1 -1
- package/lib/module/markdown/MarkdownBlocks.js +35 -43
- package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/module/notifications/NotificationsScreen.js +21 -27
- package/lib/module/notifications/NotificationsScreen.js.map +1 -1
- package/lib/module/overlay/OverlayInertBoundary.js +33 -12
- package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +24 -15
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +43 -24
- package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/module/phone-input/CountryCodeSelect.js +4 -4
- package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/module/project-board/MemberAvatars.js +7 -9
- package/lib/module/project-board/MemberAvatars.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +4 -7
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/module/project-board/styles.js +3 -6
- package/lib/module/project-board/styles.js.map +1 -1
- package/lib/module/radio/RadioSwatch.js +5 -5
- package/lib/module/radio/RadioSwatch.js.map +1 -1
- package/lib/module/rating/Rating.js +7 -7
- package/lib/module/rating/Rating.js.map +1 -1
- package/lib/module/rating/RatingBar.js +8 -8
- package/lib/module/rating/RatingBar.js.map +1 -1
- package/lib/module/rating/RatingBar.web.js +5 -5
- package/lib/module/rating/RatingBar.web.js.map +1 -1
- package/lib/module/rating/RatingInput.js +9 -9
- package/lib/module/rating/RatingInput.js.map +1 -1
- package/lib/module/rating/RatingSummary.js +6 -6
- package/lib/module/rating/RatingSummary.js.map +1 -1
- package/lib/module/row-actions/RowActions.js +5 -5
- package/lib/module/row-actions/RowActions.js.map +1 -1
- package/lib/module/select/Select.js +5 -5
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/skeleton/Skeleton.js +22 -30
- package/lib/module/skeleton/Skeleton.js.map +1 -1
- package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/module/stay-filters/CountFilter.js +3 -3
- package/lib/module/stay-filters/CountFilter.js.map +1 -1
- package/lib/module/stay-filters/FilterFooter.js +7 -7
- package/lib/module/stay-filters/FilterFooter.js.map +1 -1
- package/lib/module/stay-filters/FilterSection.js +12 -12
- package/lib/module/stay-filters/FilterSection.js.map +1 -1
- package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/module/stay-search/GuestPicker.js +5 -5
- package/lib/module/stay-search/GuestPicker.js.map +1 -1
- package/lib/module/stepper/Stepper.js +11 -10
- package/lib/module/stepper/Stepper.js.map +1 -1
- package/lib/module/stepper/StepperRow.js +12 -12
- package/lib/module/stepper/StepperRow.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/module/surface/Surface.js +65 -194
- package/lib/module/surface/Surface.js.map +1 -1
- package/lib/module/tab-bar/TabBarBase.js +18 -15
- package/lib/module/tab-bar/TabBarBase.js.map +1 -1
- package/lib/module/task-list/TaskList.js +14 -15
- package/lib/module/task-list/TaskList.js.map +1 -1
- package/lib/module/theme/BloomThemeProvider.js +208 -224
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/build-theme-from-seed.js +1 -1
- package/lib/module/theme/build-theme.js +38 -9
- package/lib/module/theme/build-theme.js.map +1 -1
- package/lib/module/theme/canonical-tokens.js +36 -0
- package/lib/module/theme/canonical-tokens.js.map +1 -0
- package/lib/module/theme/color-policy.js +3 -0
- package/lib/module/theme/color-policy.js.map +1 -1
- package/lib/module/theme/color-scope/resolve-scope.js +46 -5
- package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/module/theme/color-scope/use-scope.js +2 -6
- package/lib/module/theme/color-scope/use-scope.js.map +1 -1
- package/lib/module/theme/color-tokens.js +30 -8
- package/lib/module/theme/color-tokens.js.map +1 -1
- package/lib/module/theme/color-utils.js +4 -0
- package/lib/module/theme/color-utils.js.map +1 -1
- package/lib/module/theme/default-token-vars.js +88 -0
- package/lib/module/theme/default-token-vars.js.map +1 -0
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/index.web.js +1 -1
- package/lib/module/theme/index.web.js.map +1 -1
- package/lib/module/theme/prepaint-palettes.js +2 -6
- package/lib/module/theme/prepaint-palettes.js.map +1 -1
- package/lib/module/theme/token-registry.js +1 -27
- package/lib/module/theme/token-registry.js.map +1 -1
- package/lib/module/theme/use-theme-paint.js +30 -3
- package/lib/module/theme/use-theme-paint.js.map +1 -1
- package/lib/module/typography/Typography.js +27 -27
- package/lib/module/typography/Typography.js.map +1 -1
- package/lib/module/web-search/WebSearch.js +18 -19
- package/lib/module/web-search/WebSearch.js.map +1 -1
- package/lib/module/wizard/WizardFooterBase.js +10 -10
- package/lib/module/wizard/WizardFooterBase.js.map +1 -1
- package/lib/module/wizard/WizardProgress.js +5 -5
- package/lib/module/wizard/WizardProgress.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
- package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
- package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
- package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.d.ts.map +1 -1
- package/lib/typescript/module/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/theme/build-theme.d.ts +9 -0
- package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-utils.d.ts +3 -0
- package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/module/theme/index.d.ts +1 -1
- package/lib/typescript/module/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/index.web.d.ts +1 -1
- package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/module/theme/token-registry.d.ts +1 -16
- package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/accordion/Accordion.tsx +6 -6
- package/src/accordion/Accordion.web.tsx +6 -6
- package/src/agent-avatar/VectorCharacterAvatar.tsx +327 -120
- package/src/agent-avatar/VectorNativeSurface.tsx +117 -0
- package/src/agent-avatar/vector-loop.ts +213 -0
- package/src/agent-avatar/vector-visibility.ts +3 -1
- package/src/agent-creator/AgentCreatorSection.tsx +4 -6
- package/src/agent-creator/EmotionPicker.tsx +3 -3
- package/src/agent-log/AgentLog.tsx +8 -21
- package/src/agent-reply/AgentProfile.tsx +4 -5
- package/src/agent-thinking/AgentThinking.tsx +4 -3
- package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
- package/src/app-shell/AppShell.tsx +3 -3
- package/src/app-shell/AppShellEngine.tsx +67 -19
- package/src/app-shell/AppShellPanelLayout.tsx +3 -3
- package/src/app-shell/NotificationBell.tsx +6 -6
- package/src/app-shell/PanelReorderHandle.tsx +4 -4
- package/src/avatar-group/AvatarGroupBase.tsx +6 -6
- package/src/blur/BlurIsland.tsx +16 -14
- package/src/button/Button.tsx +19 -36
- package/src/button/GroupBase.tsx +42 -56
- package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
- package/src/choice-list/ChoiceList.tsx +3 -3
- package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
- package/src/connection-dots/ConnectionDots.tsx +4 -4
- package/src/connection-dots/ConnectionDots.web.tsx +4 -4
- package/src/cover-header/CoverHeader.tsx +3 -3
- package/src/data-table/DataTableSelect.tsx +4 -4
- package/src/design-tokens/theme.css +1 -0
- package/src/design-tokens/tokens.json +390 -0
- package/src/dialog/DialogContent.tsx +3 -2
- package/src/dialog/DialogHeader.tsx +6 -5
- package/src/dialog/SheetShell.tsx +3 -2
- package/src/expandable-text/ExpandableText.tsx +3 -3
- package/src/floating/lens/lens-cover.tsx +29 -0
- package/src/floating/lens/lens-frame.tsx +195 -0
- package/src/floating/lens/lens-material.ts +1 -1
- package/src/floating/lens/native-lens.ts +2 -0
- package/src/grouped-section/GroupedSection.tsx +7 -6
- package/src/home-search/BudgetPicker.tsx +4 -4
- package/src/home-search/MoveInPicker.tsx +3 -3
- package/src/icon-circle/IconCircle.tsx +5 -5
- package/src/icons/shared.tsx +3 -3
- package/src/kbd/Kbd.tsx +4 -4
- package/src/layout/ResizeHandle.tsx +7 -5
- package/src/link-preview/LinkPreviewCard.tsx +7 -7
- package/src/list/ListBase.tsx +3 -6
- package/src/list/ListPerson.tsx +3 -3
- package/src/listing-editor/ListingPreviewPane.tsx +13 -13
- package/src/markdown/InlineMarkdown.tsx +3 -3
- package/src/markdown/MarkdownBlocks.tsx +14 -14
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
- package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
- package/src/notifications/NotificationPermissionSheet.tsx +3 -3
- package/src/notifications/NotificationsScreen.tsx +9 -9
- package/src/overlay/OverlayInertBoundary.tsx +10 -1
- package/src/page-header/PageHeader.tsx +26 -13
- package/src/page-header/PageHeaderTitleInput.tsx +4 -4
- package/src/panel-routing/expo-router/StackScene.tsx +16 -2
- package/src/phone-input/CountryCodeSelect.tsx +4 -4
- package/src/project-board/MemberAvatars.tsx +3 -3
- package/src/project-board/ProjectBoardBase.tsx +4 -5
- package/src/project-board/ProjectBoardCanvas.tsx +2 -2
- package/src/project-board/styles.ts +3 -4
- package/src/radio/RadioSwatch.tsx +3 -3
- package/src/rating/Rating.tsx +5 -5
- package/src/rating/RatingBar.tsx +4 -4
- package/src/rating/RatingBar.web.tsx +3 -3
- package/src/rating/RatingInput.tsx +5 -5
- package/src/rating/RatingSummary.tsx +4 -4
- package/src/row-actions/RowActions.tsx +3 -3
- package/src/select/Select.tsx +3 -3
- package/src/skeleton/Skeleton.tsx +9 -9
- package/src/stay-filters/AvailabilityFilter.tsx +3 -3
- package/src/stay-filters/CountFilter.tsx +3 -3
- package/src/stay-filters/FilterFooter.tsx +4 -4
- package/src/stay-filters/FilterSection.tsx +5 -5
- package/src/stay-filters/SwitchFilterRow.tsx +4 -4
- package/src/stay-search/GuestPicker.tsx +3 -6
- package/src/stepper/Stepper.tsx +6 -5
- package/src/stepper/StepperRow.tsx +5 -5
- package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
- package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
- package/src/surface/Surface.tsx +13 -28
- package/src/tab-bar/TabBarBase.tsx +13 -8
- package/src/task-list/TaskList.tsx +14 -16
- package/src/theme/BloomThemeProvider.tsx +33 -33
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
- package/src/theme/build-theme-from-seed.ts +1 -1
- package/src/theme/build-theme.ts +52 -11
- package/src/theme/canonical-tokens.ts +108 -0
- package/src/theme/color-policy.ts +3 -0
- package/src/theme/color-scope/resolve-scope.ts +47 -8
- package/src/theme/color-scope/use-scope.ts +2 -6
- package/src/theme/color-tokens.ts +7 -7
- package/src/theme/color-utils.ts +4 -0
- package/src/theme/default-token-vars.ts +86 -0
- package/src/theme/index.ts +1 -1
- package/src/theme/index.web.ts +1 -1
- package/src/theme/prepaint-palettes.ts +2 -3
- package/src/theme/token-registry.ts +1 -101
- package/src/theme/use-theme-paint.ts +26 -3
- package/src/typography/Typography.tsx +12 -12
- package/src/web-search/WebSearch.tsx +16 -18
- package/src/wizard/WizardFooterBase.tsx +5 -5
- package/src/wizard/WizardProgress.tsx +5 -5
- package/lib/commonjs/floating/lens/lens-button-host.js +0 -218
- package/lib/commonjs/floating/lens/lens-button-host.js.map +0 -1
- package/lib/module/floating/lens/lens-button-host.js +0 -214
- package/lib/module/floating/lens/lens-button-host.js.map +0 -1
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +0 -1
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +0 -1
- package/src/floating/lens/lens-button-host.tsx +0 -148
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as ReactNative from 'react-native';
|
|
2
|
+
import {
|
|
3
|
+
Platform,
|
|
4
|
+
processColor,
|
|
5
|
+
UIManager,
|
|
6
|
+
type HostComponent,
|
|
7
|
+
type NativeSyntheticEvent,
|
|
8
|
+
type ViewProps,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
import type { VectorLoopTracks } from './vector-loop';
|
|
11
|
+
|
|
12
|
+
/** One frame as the native surface draws it: colours as native colour numbers, the viewBox as four numbers. */
|
|
13
|
+
export type NativeVectorFrame = {
|
|
14
|
+
/** Changes with every frame JS draws, so a frame equal to an older one still replaces the loop's. */
|
|
15
|
+
revision: number;
|
|
16
|
+
viewBox: number[];
|
|
17
|
+
/** The whole drawing's opacity (the entrance), as one layer. */
|
|
18
|
+
opacity: number;
|
|
19
|
+
paths: {
|
|
20
|
+
d: string;
|
|
21
|
+
clip?: string;
|
|
22
|
+
fill: number;
|
|
23
|
+
opacity: number;
|
|
24
|
+
fillOpacity: number;
|
|
25
|
+
stroke?: number;
|
|
26
|
+
strokeWidth?: number;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
/** A complete rest loop (`VectorLoopTracks`) in the same native form. */
|
|
30
|
+
export type NativeVectorLoop = {
|
|
31
|
+
duration: number;
|
|
32
|
+
length: number;
|
|
33
|
+
viewBox: number[];
|
|
34
|
+
paths: {
|
|
35
|
+
fill: number;
|
|
36
|
+
fillOpacity: number;
|
|
37
|
+
stroke?: number;
|
|
38
|
+
strokeWidth?: number;
|
|
39
|
+
d: string[];
|
|
40
|
+
opacity: number[];
|
|
41
|
+
clip?: string[];
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
/** Plays the loop: at `epoch` (a `performance.now()` reading) the loop is `time` seconds in. */
|
|
45
|
+
export type NativeVectorClock = { epoch: number; time: number };
|
|
46
|
+
|
|
47
|
+
export type NativeVectorSurfaceProps = ViewProps & {
|
|
48
|
+
frame?: NativeVectorFrame;
|
|
49
|
+
/** The rest loop this surface is about: it answers `onLoop` with whether it has it. */
|
|
50
|
+
loopKey?: string;
|
|
51
|
+
/** The loop `loopKey` names, handed over once when the surface does not have it. */
|
|
52
|
+
loopTracks?: NativeVectorLoop;
|
|
53
|
+
/** Set while the surface plays the loop by itself; the JS thread draws nothing meanwhile. */
|
|
54
|
+
loopClock?: NativeVectorClock;
|
|
55
|
+
/** A non-zero id asks for a PNG of what is on screen, answered by `onCapture`. */
|
|
56
|
+
capture?: number;
|
|
57
|
+
onLoop?: (event: NativeSyntheticEvent<{ key: string; ready: boolean }>) => void;
|
|
58
|
+
onCapture?: (event: NativeSyntheticEvent<{ id: number; data: string | null }>) => void;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const NAME = 'BloomAvatarSurfaceV1';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The native avatar surface (`android/.../AvatarSurface.kt`), when the app's binary has it. It
|
|
65
|
+
* draws a frame with its paths parsed once, and plays a rest loop on its own frame clock, kept
|
|
66
|
+
* across starts: no shadow-tree commits, no bitmaps and no layout events per frame. A JS-only
|
|
67
|
+
* update keeps the SVG drawing until the binary is rebuilt; the web always draws SVG.
|
|
68
|
+
*/
|
|
69
|
+
function resolveSurface(): HostComponent<NativeVectorSurfaceProps> | null {
|
|
70
|
+
if (Platform.OS === 'web') return null;
|
|
71
|
+
try {
|
|
72
|
+
if (!UIManager?.getViewManagerConfig?.(NAME)) return null;
|
|
73
|
+
// Through the namespace: react-native-web has no `requireNativeComponent` export.
|
|
74
|
+
return ReactNative.requireNativeComponent<NativeVectorSurfaceProps>(NAME);
|
|
75
|
+
} catch {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export const VectorNativeSurface = resolveSurface();
|
|
80
|
+
|
|
81
|
+
const color = (value: string): number => {
|
|
82
|
+
const processed = processColor(value);
|
|
83
|
+
return typeof processed === 'number' ? processed : 0xff000000;
|
|
84
|
+
};
|
|
85
|
+
/** A viewBox string as four numbers. */
|
|
86
|
+
export const viewBoxNumbers = (viewBox: string): number[] =>
|
|
87
|
+
viewBox
|
|
88
|
+
.trim()
|
|
89
|
+
.split(/[\s,]+/)
|
|
90
|
+
.map(Number);
|
|
91
|
+
|
|
92
|
+
/** The native form of one drawn path's paint. */
|
|
93
|
+
export function nativePaint(path: { fill: string; stroke?: string; strokeWidth?: number }): {
|
|
94
|
+
fill: number;
|
|
95
|
+
stroke?: number;
|
|
96
|
+
strokeWidth?: number;
|
|
97
|
+
} {
|
|
98
|
+
return path.stroke === undefined
|
|
99
|
+
? { fill: color(path.fill) }
|
|
100
|
+
: { fill: color(path.fill), stroke: color(path.stroke), strokeWidth: path.strokeWidth ?? 1.5 };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** A complete loop in the surface's form. */
|
|
104
|
+
export function nativeVectorLoop(tracks: VectorLoopTracks, viewBox: string): NativeVectorLoop {
|
|
105
|
+
return {
|
|
106
|
+
duration: tracks.duration,
|
|
107
|
+
length: tracks.length,
|
|
108
|
+
viewBox: viewBoxNumbers(viewBox),
|
|
109
|
+
paths: tracks.paths.map((track) => ({
|
|
110
|
+
...nativePaint(track),
|
|
111
|
+
fillOpacity: track.fillOpacity,
|
|
112
|
+
d: track.d,
|
|
113
|
+
opacity: track.opacity,
|
|
114
|
+
...(track.clip ? { clip: track.clip } : {}),
|
|
115
|
+
})),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { VECTOR_UNCLIPPED } from './vector-visibility';
|
|
2
|
+
import type { VectorFrame } from './vector-types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A character at rest repeats itself. With no gesture, pointer, mood or transition, and no
|
|
6
|
+
* reference face (whose procedural gaze never repeats), the frame it draws depends on one number:
|
|
7
|
+
* where it is in its idle clip. So the frames of that clip are computed once, the first time
|
|
8
|
+
* round, and replayed after that: its loop.
|
|
9
|
+
*
|
|
10
|
+
* The loop's frames sit on a fixed grid, `VECTOR_LOOP_FPS` a second, the rate frames are painted
|
|
11
|
+
* at, and an avatar at rest draws the grid frame its clock is in. Every avatar with the same
|
|
12
|
+
* geometry and paint shares one loop, keyed by `vectorFrameRecipeKey`.
|
|
13
|
+
*/
|
|
14
|
+
export const VECTOR_LOOP_FPS = 30;
|
|
15
|
+
/** The loops kept, in path characters (about bytes): Alia's is 2 M, the largest character 10 M. */
|
|
16
|
+
export const VECTOR_LOOP_CACHE_CHARACTERS = 24_000_000;
|
|
17
|
+
|
|
18
|
+
export type VectorLoop<Frame extends { drawing: VectorFrame }> = {
|
|
19
|
+
/** Seconds the loop takes: its idle clip's duration. */
|
|
20
|
+
duration: number;
|
|
21
|
+
/** One slot per grid frame, filled the first time that frame is drawn. */
|
|
22
|
+
frames: (Frame | undefined)[];
|
|
23
|
+
/** How many slots are filled. */
|
|
24
|
+
drawn: number;
|
|
25
|
+
/** Path characters held, for the cache budget. */
|
|
26
|
+
characters: number;
|
|
27
|
+
/** Its tracks, built once every frame is drawn (`vectorLoopTracks`); `null` if it has none. */
|
|
28
|
+
tracks?: VectorLoopTracks | null;
|
|
29
|
+
/** What it is made from, as a name that is the same on every start (`vectorLoopKey`). */
|
|
30
|
+
key?: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A complete loop as one track per drawn path, for a player that draws it frame by frame without
|
|
35
|
+
* recomputing anything: what stays the same on every frame (the paint) and what changes (outline,
|
|
36
|
+
* clip and opacity, one entry per frame). A path that is clipped on some frames and not on others
|
|
37
|
+
* gets `VECTOR_UNCLIPPED` on the frames it has none, which hides nothing.
|
|
38
|
+
*/
|
|
39
|
+
export type VectorLoopTracks = {
|
|
40
|
+
/** Seconds the loop takes. */
|
|
41
|
+
duration: number;
|
|
42
|
+
/** Grid frames in it: the length of every per-frame list. */
|
|
43
|
+
length: number;
|
|
44
|
+
viewBox: string;
|
|
45
|
+
paths: {
|
|
46
|
+
id: string;
|
|
47
|
+
fill: string;
|
|
48
|
+
fillOpacity: number;
|
|
49
|
+
stroke?: string;
|
|
50
|
+
strokeWidth?: number;
|
|
51
|
+
d: string[];
|
|
52
|
+
opacity: number[];
|
|
53
|
+
clip?: string[];
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const loops = new Map<string, VectorLoop<{ drawing: VectorFrame }>>();
|
|
58
|
+
let held = 0;
|
|
59
|
+
|
|
60
|
+
/** The loop of the avatar whose frame recipe is `key`, with an idle clip of `duration` seconds. */
|
|
61
|
+
export function vectorLoop<Frame extends { drawing: VectorFrame }>(
|
|
62
|
+
key: string,
|
|
63
|
+
duration: number,
|
|
64
|
+
): VectorLoop<Frame> {
|
|
65
|
+
const known = loops.get(key);
|
|
66
|
+
if (known) {
|
|
67
|
+
loops.delete(key);
|
|
68
|
+
loops.set(key, known);
|
|
69
|
+
return known as VectorLoop<Frame>;
|
|
70
|
+
}
|
|
71
|
+
const length = Math.max(1, Math.round(duration * VECTOR_LOOP_FPS));
|
|
72
|
+
const loop: VectorLoop<Frame> = {
|
|
73
|
+
duration,
|
|
74
|
+
frames: Array.from({ length }, () => undefined),
|
|
75
|
+
drawn: 0,
|
|
76
|
+
characters: 0,
|
|
77
|
+
};
|
|
78
|
+
loops.set(key, loop);
|
|
79
|
+
return loop;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A name for a loop's content that is the same on every start of the app, for a store that keeps
|
|
84
|
+
* loops across starts (the native avatar surface). It is a hash of what the loop is drawn from: the
|
|
85
|
+
* character (`recipe`), its idle clip's tracks, and its first frame as drawn, which carries the
|
|
86
|
+
* geometry, the paint and what the renderer makes of them. Remembered on the loop.
|
|
87
|
+
*/
|
|
88
|
+
export function vectorLoopKey(
|
|
89
|
+
loop: VectorLoop<{ drawing: VectorFrame }>,
|
|
90
|
+
recipe: string,
|
|
91
|
+
clip: unknown,
|
|
92
|
+
first: () => VectorFrame,
|
|
93
|
+
): string {
|
|
94
|
+
loop.key ??= hashText(
|
|
95
|
+
JSON.stringify([LOOP_KEY_FORMAT, recipe, loop.duration, loop.frames.length, clip, first()]),
|
|
96
|
+
);
|
|
97
|
+
return loop.key;
|
|
98
|
+
}
|
|
99
|
+
const LOOP_KEY_FORMAT = 1;
|
|
100
|
+
/** 64 bits of two multiply-xor lanes over the text's UTF-16 units, as 16 hex digits. */
|
|
101
|
+
function hashText(text: string): string {
|
|
102
|
+
let a = 0xdeadbeef,
|
|
103
|
+
b = 0x41c6ce57;
|
|
104
|
+
for (let i = 0; i < text.length; i++) {
|
|
105
|
+
const unit = text.charCodeAt(i);
|
|
106
|
+
a = Math.imul(a ^ unit, 2654435761);
|
|
107
|
+
b = Math.imul(b ^ unit, 1597334677);
|
|
108
|
+
}
|
|
109
|
+
a = Math.imul(a ^ (a >>> 16), 2246822507) ^ Math.imul(b ^ (b >>> 13), 3266489909);
|
|
110
|
+
b = Math.imul(b ^ (b >>> 16), 2246822507) ^ Math.imul(a ^ (a >>> 13), 3266489909);
|
|
111
|
+
return (b >>> 0).toString(16).padStart(8, '0') + (a >>> 0).toString(16).padStart(8, '0');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Lets go of a loop's frames once something else plays it (the native surface): the JS thread
|
|
116
|
+
* draws none of them again, and if it ever must, it draws them again.
|
|
117
|
+
*/
|
|
118
|
+
export function releaseVectorLoop(loop: VectorLoop<{ drawing: VectorFrame }>) {
|
|
119
|
+
held -= loop.characters;
|
|
120
|
+
loop.frames.fill(undefined);
|
|
121
|
+
loop.drawn = 0;
|
|
122
|
+
loop.characters = 0;
|
|
123
|
+
loop.tracks = undefined;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** The grid frame a clock of `time` seconds is in. */
|
|
127
|
+
export function vectorLoopIndex(loop: VectorLoop<{ drawing: VectorFrame }>, time: number): number {
|
|
128
|
+
const length = loop.frames.length;
|
|
129
|
+
const elapsed = loop.duration > 0 ? ((time % loop.duration) + loop.duration) % loop.duration : 0;
|
|
130
|
+
return Math.min(length - 1, Math.floor((elapsed / loop.duration) * length)) || 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** The clip time grid frame `index` is drawn at. */
|
|
134
|
+
export function vectorLoopTime(loop: VectorLoop<{ drawing: VectorFrame }>, index: number): number {
|
|
135
|
+
return (index * loop.duration) / loop.frames.length;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Grid frame `index`: drawn by `draw` the first time it is asked for, remembered after that. */
|
|
139
|
+
export function vectorLoopFrame<Frame extends { drawing: VectorFrame }>(
|
|
140
|
+
loop: VectorLoop<Frame>,
|
|
141
|
+
index: number,
|
|
142
|
+
draw: () => Frame,
|
|
143
|
+
): Frame {
|
|
144
|
+
const known = loop.frames[index];
|
|
145
|
+
if (known) return known;
|
|
146
|
+
const frame = draw();
|
|
147
|
+
loop.frames[index] = frame;
|
|
148
|
+
loop.drawn++;
|
|
149
|
+
const characters = frame.drawing.paths.reduce(
|
|
150
|
+
(sum, path) => sum + path.d.length + (path.clip?.length ?? 0),
|
|
151
|
+
0,
|
|
152
|
+
);
|
|
153
|
+
loop.characters += characters;
|
|
154
|
+
held += characters;
|
|
155
|
+
// The least recently used loops go first; one in use is rebuilt by the avatar that needs it.
|
|
156
|
+
for (const [key, old] of loops) {
|
|
157
|
+
if (held <= VECTOR_LOOP_CACHE_CHARACTERS || old === loop) break;
|
|
158
|
+
loops.delete(key);
|
|
159
|
+
held -= old.characters;
|
|
160
|
+
}
|
|
161
|
+
return frame;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The tracks of a complete loop, or `null` while frames are missing or when its frames do not
|
|
166
|
+
* draw the same paths with the same paint (then it is replayed frame by frame instead).
|
|
167
|
+
*/
|
|
168
|
+
export function vectorLoopTracks(
|
|
169
|
+
loop: VectorLoop<{ drawing: VectorFrame }>,
|
|
170
|
+
): VectorLoopTracks | null {
|
|
171
|
+
if (loop.tracks !== undefined) return loop.tracks;
|
|
172
|
+
if (loop.drawn < loop.frames.length) return null;
|
|
173
|
+
const drawings = loop.frames.map((frame) => frame!.drawing);
|
|
174
|
+
const first = drawings[0]!;
|
|
175
|
+
const same = drawings.every(
|
|
176
|
+
(drawing) =>
|
|
177
|
+
drawing.viewBox === first.viewBox &&
|
|
178
|
+
drawing.paths.length === first.paths.length &&
|
|
179
|
+
drawing.paths.every((path, i) => {
|
|
180
|
+
const model = first.paths[i]!;
|
|
181
|
+
return (
|
|
182
|
+
path.id === model.id &&
|
|
183
|
+
path.fill === model.fill &&
|
|
184
|
+
path.fillOpacity === model.fillOpacity &&
|
|
185
|
+
path.stroke === model.stroke &&
|
|
186
|
+
path.strokeWidth === model.strokeWidth
|
|
187
|
+
);
|
|
188
|
+
}),
|
|
189
|
+
);
|
|
190
|
+
loop.tracks = same
|
|
191
|
+
? {
|
|
192
|
+
duration: loop.duration,
|
|
193
|
+
length: loop.frames.length,
|
|
194
|
+
viewBox: first.viewBox,
|
|
195
|
+
paths: first.paths.map((path, i) => {
|
|
196
|
+
const clipped = drawings.some((drawing) => drawing.paths[i]!.clip !== undefined);
|
|
197
|
+
return {
|
|
198
|
+
id: path.id,
|
|
199
|
+
fill: path.fill,
|
|
200
|
+
fillOpacity: path.fillOpacity,
|
|
201
|
+
stroke: path.stroke,
|
|
202
|
+
strokeWidth: path.strokeWidth,
|
|
203
|
+
d: drawings.map((drawing) => drawing.paths[i]!.d),
|
|
204
|
+
opacity: drawings.map((drawing) => drawing.paths[i]!.opacity),
|
|
205
|
+
clip: clipped
|
|
206
|
+
? drawings.map((drawing) => drawing.paths[i]!.clip ?? VECTOR_UNCLIPPED)
|
|
207
|
+
: undefined,
|
|
208
|
+
};
|
|
209
|
+
}),
|
|
210
|
+
}
|
|
211
|
+
: null;
|
|
212
|
+
return loop.tracks;
|
|
213
|
+
}
|
|
@@ -9,6 +9,8 @@ export type OcclusionPart = {
|
|
|
9
9
|
opaque?: boolean;
|
|
10
10
|
group?: string;
|
|
11
11
|
};
|
|
12
|
+
/** A clip that hides nothing: the frame and a margin round it. Every mask starts from it. */
|
|
13
|
+
export const VECTOR_UNCLIPPED = 'M-2 -2H322V322H-2Z';
|
|
12
14
|
const SIZE = 322,
|
|
13
15
|
STEP = 1,
|
|
14
16
|
ORIGIN = -1,
|
|
@@ -190,7 +192,7 @@ function contours(field: Float32Array, bounds: [number, number, number, number])
|
|
|
190
192
|
next.set(ia, ib);
|
|
191
193
|
}
|
|
192
194
|
}
|
|
193
|
-
let d =
|
|
195
|
+
let d = VECTOR_UNCLIPPED;
|
|
194
196
|
for (const start of [...next.keys()]) {
|
|
195
197
|
if (!next.has(start)) continue;
|
|
196
198
|
const loop: number[] = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
4
4
|
import { Text } from '../typography';
|
|
5
5
|
import { AGENT_CREATOR_CARD } from './shared';
|
|
6
6
|
|
|
@@ -18,15 +18,13 @@ export interface AgentCreatorSectionProps {
|
|
|
18
18
|
* as `sections`.
|
|
19
19
|
*/
|
|
20
20
|
export function AgentCreatorSection({ title, children }: AgentCreatorSectionProps) {
|
|
21
|
-
const
|
|
21
|
+
const tokens = useColorTokens();
|
|
22
22
|
return (
|
|
23
23
|
<View style={styles.section}>
|
|
24
|
-
<Text variant="body-2-medium" style={[styles.title, { color:
|
|
24
|
+
<Text variant="body-2-medium" style={[styles.title, { color: tokens.mutedForeground }]}>
|
|
25
25
|
{title}
|
|
26
26
|
</Text>
|
|
27
|
-
<View style={[AGENT_CREATOR_CARD, { backgroundColor:
|
|
28
|
-
{children}
|
|
29
|
-
</View>
|
|
27
|
+
<View style={[AGENT_CREATOR_CARD, { backgroundColor: tokens.surface }]}>{children}</View>
|
|
30
28
|
</View>
|
|
31
29
|
);
|
|
32
30
|
}
|
|
@@ -15,7 +15,7 @@ import { CharacterAvatar } from '../agent-avatar/CharacterAvatar';
|
|
|
15
15
|
import { updateAvatarCharacter } from '../agent-avatar/character';
|
|
16
16
|
import { pointerEventsStyles } from '../styles/pointer-events';
|
|
17
17
|
import { ROUNDED_FULL } from '../styles/rounded-full';
|
|
18
|
-
import {
|
|
18
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
19
19
|
import { useAgentCreatorMessages } from './context';
|
|
20
20
|
import { AGENT_CREATOR_HOOKS, useAgentCreatorWebCss } from './web-css';
|
|
21
21
|
import { useTrackEvents } from './use-track-events';
|
|
@@ -59,7 +59,7 @@ function Emotion({
|
|
|
59
59
|
rotation: SharedValue<number>;
|
|
60
60
|
onChange: (id: string) => void;
|
|
61
61
|
}) {
|
|
62
|
-
const
|
|
62
|
+
const tokens = useColorTokens();
|
|
63
63
|
// The eyes alone, on a plain circle: the chip shows the eyes, not the body they sit in.
|
|
64
64
|
const eyeCharacter = useMemo(
|
|
65
65
|
() =>
|
|
@@ -105,7 +105,7 @@ function Emotion({
|
|
|
105
105
|
style={[
|
|
106
106
|
styles.chip,
|
|
107
107
|
CHIP_MOTION,
|
|
108
|
-
{ backgroundColor, borderColor: active ?
|
|
108
|
+
{ backgroundColor, borderColor: active ? tokens.mutedForeground : 'transparent' },
|
|
109
109
|
]}
|
|
110
110
|
>
|
|
111
111
|
<CharacterAvatar
|
|
@@ -20,8 +20,7 @@ import Animated, {
|
|
|
20
20
|
import { AgentThinking } from '../agent-thinking';
|
|
21
21
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
22
22
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
23
|
-
import
|
|
24
|
-
import { useTheme } from '../theme/use-theme';
|
|
23
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
25
24
|
import {
|
|
26
25
|
AGENT_LOG_BRANCH,
|
|
27
26
|
AGENT_LOG_ROW_INDENT,
|
|
@@ -57,19 +56,6 @@ import { IS_WEB } from '../styles/platform';
|
|
|
57
56
|
* native shows the flat text-secondary it rests on under reduced motion.
|
|
58
57
|
*/
|
|
59
58
|
|
|
60
|
-
// ---------------------------------------------------------------------------
|
|
61
|
-
// Palette
|
|
62
|
-
// ---------------------------------------------------------------------------
|
|
63
|
-
|
|
64
|
-
/** Canonical theme surfaces, foregrounds and focus roles. */
|
|
65
|
-
function resolveLogPalette(theme: Theme) {
|
|
66
|
-
return {
|
|
67
|
-
guide: theme.colors.border,
|
|
68
|
-
textSecondary: theme.colors.textSecondary,
|
|
69
|
-
textPrimary: theme.colors.text,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
59
|
// ---------------------------------------------------------------------------
|
|
74
60
|
// Reveal
|
|
75
61
|
// ---------------------------------------------------------------------------
|
|
@@ -211,10 +197,10 @@ function AgentLogRowConnectorComponent({
|
|
|
211
197
|
last,
|
|
212
198
|
reduce: reduceProp,
|
|
213
199
|
}: AgentLogRowConnectorProps) {
|
|
214
|
-
const
|
|
200
|
+
const tokens = useColorTokens();
|
|
215
201
|
const systemReduce = useAgentLogMotion();
|
|
216
202
|
const reduce = reduceProp ?? systemReduce;
|
|
217
|
-
const
|
|
203
|
+
const guide = tokens.border;
|
|
218
204
|
|
|
219
205
|
const [animate] = useState(!reduce);
|
|
220
206
|
const draw = useSharedValue(animate ? 0 : 1);
|
|
@@ -298,10 +284,10 @@ function AgentLogGuideBridgeComponent({
|
|
|
298
284
|
offset = 8,
|
|
299
285
|
reduce: reduceProp,
|
|
300
286
|
}: AgentLogGuideBridgeProps) {
|
|
301
|
-
const
|
|
287
|
+
const tokens = useColorTokens();
|
|
302
288
|
const systemReduce = useAgentLogMotion();
|
|
303
289
|
const reduce = reduceProp ?? systemReduce;
|
|
304
|
-
const
|
|
290
|
+
const guide = tokens.border;
|
|
305
291
|
|
|
306
292
|
const [animate] = useState(!reduce);
|
|
307
293
|
const scale = useSharedValue(animate ? 0 : 1);
|
|
@@ -431,8 +417,9 @@ type ShimmerStyle = TextStyle & {
|
|
|
431
417
|
* `<span>` inherits its paragraph's `text-body-regular`.
|
|
432
418
|
*/
|
|
433
419
|
function AgentLogShimmerTextComponent({ children, style }: AgentLogShimmerTextProps) {
|
|
434
|
-
const
|
|
435
|
-
const
|
|
420
|
+
const tokens = useColorTokens();
|
|
421
|
+
const textSecondary = tokens.mutedForeground;
|
|
422
|
+
const textPrimary = tokens.foreground;
|
|
436
423
|
|
|
437
424
|
useEffect(() => {
|
|
438
425
|
if (Platform.OS === 'web') adoptStyleSheet(STYLE_ID, WEB_CSS);
|
|
@@ -2,8 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
3
3
|
import { AgentAvatar } from '../agent-avatar';
|
|
4
4
|
import { webDataSet } from '../styles/web-data';
|
|
5
|
-
import { createTokenStyles } from '../theme/color-tokens';
|
|
6
|
-
import { useTheme } from '../theme/use-theme';
|
|
5
|
+
import { createTokenStyles, useColorTokens } from '../theme/color-tokens';
|
|
7
6
|
import { Text } from '../typography';
|
|
8
7
|
import type { AgentProfileProps } from './types';
|
|
9
8
|
import { useAgentReplyWebCss } from './web-css';
|
|
@@ -60,7 +59,7 @@ export function AgentProfile({
|
|
|
60
59
|
avatarRef,
|
|
61
60
|
avatarHidden = false,
|
|
62
61
|
}: AgentProfileProps) {
|
|
63
|
-
const
|
|
62
|
+
const tokens = useColorTokens();
|
|
64
63
|
const themed = useStyles();
|
|
65
64
|
useAgentReplyWebCss();
|
|
66
65
|
const reduced = usePrefersReducedMotion();
|
|
@@ -130,9 +129,9 @@ export function AgentProfile({
|
|
|
130
129
|
style={[
|
|
131
130
|
styles.ring,
|
|
132
131
|
{
|
|
133
|
-
backgroundColor: hovered ?
|
|
132
|
+
backgroundColor: hovered ? tokens.popover : tokens.surface,
|
|
134
133
|
borderWidth: StyleSheet.hairlineWidth,
|
|
135
|
-
borderColor:
|
|
134
|
+
borderColor: tokens.border,
|
|
136
135
|
},
|
|
137
136
|
]}
|
|
138
137
|
/>
|
|
@@ -22,6 +22,7 @@ import { interactiveWebCss, useInteractiveWebCss } from '../styles/interactive-w
|
|
|
22
22
|
import { useRingOffsetStyle } from '../styles/surface-levels';
|
|
23
23
|
import { space } from '../styles/tokens';
|
|
24
24
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
25
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
25
26
|
import { withAlpha } from '../theme/color-utils';
|
|
26
27
|
import type { Theme } from '../theme/types';
|
|
27
28
|
import { useTheme } from '../theme/use-theme';
|
|
@@ -504,7 +505,7 @@ function ThinkingDisclosure({
|
|
|
504
505
|
testID,
|
|
505
506
|
...row
|
|
506
507
|
}: AgentThinkingProps) {
|
|
507
|
-
const
|
|
508
|
+
const tokens = useColorTokens();
|
|
508
509
|
const direction = useDirectionProps();
|
|
509
510
|
const ringOffset = useRingOffsetStyle();
|
|
510
511
|
useInteractiveWebCss(TOGGLE_STYLE_ID, TOGGLE_CSS);
|
|
@@ -539,7 +540,7 @@ function ThinkingDisclosure({
|
|
|
539
540
|
gap: 6,
|
|
540
541
|
alignSelf: 'flex-start',
|
|
541
542
|
borderRadius: 6,
|
|
542
|
-
'--bloom-agent-thinking-ring':
|
|
543
|
+
'--bloom-agent-thinking-ring': tokens.primary,
|
|
543
544
|
...ringOffset,
|
|
544
545
|
};
|
|
545
546
|
|
|
@@ -565,7 +566,7 @@ function ThinkingDisclosure({
|
|
|
565
566
|
<RiArrowDownSLine
|
|
566
567
|
width={16}
|
|
567
568
|
height={16}
|
|
568
|
-
fill={
|
|
569
|
+
fill={tokens.faintForeground}
|
|
569
570
|
style={{ transform: [{ rotate: open ? '180deg' : '0deg' }] }}
|
|
570
571
|
/>
|
|
571
572
|
</Pressable>
|
|
@@ -3,7 +3,7 @@ import { View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { Collapsible } from '../collapsible';
|
|
5
5
|
import { space } from '../styles/tokens';
|
|
6
|
-
import {
|
|
6
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
7
7
|
import { Text } from '../typography';
|
|
8
8
|
|
|
9
9
|
const RULE_WIDTH = 2;
|
|
@@ -23,7 +23,7 @@ export function ThinkingReasoning({
|
|
|
23
23
|
children: ReactNode;
|
|
24
24
|
testID?: string;
|
|
25
25
|
}) {
|
|
26
|
-
const
|
|
26
|
+
const tokens = useColorTokens();
|
|
27
27
|
return (
|
|
28
28
|
<Collapsible open={open} testID={testID}>
|
|
29
29
|
<View
|
|
@@ -31,12 +31,12 @@ export function ThinkingReasoning({
|
|
|
31
31
|
marginStart: space.md,
|
|
32
32
|
paddingStart: space.md,
|
|
33
33
|
paddingVertical: space.xs,
|
|
34
|
-
borderStartColor:
|
|
34
|
+
borderStartColor: tokens.border,
|
|
35
35
|
borderStartWidth: RULE_WIDTH,
|
|
36
36
|
}}
|
|
37
37
|
>
|
|
38
38
|
{typeof children === 'string' ? (
|
|
39
|
-
<Text variant="body-2-regular" style={{ color:
|
|
39
|
+
<Text variant="body-2-regular" style={{ color: tokens.mutedForeground }}>
|
|
40
40
|
{children}
|
|
41
41
|
</Text>
|
|
42
42
|
) : (
|
|
@@ -9,7 +9,7 @@ import type { ScreenComponents } from '../screen/types';
|
|
|
9
9
|
import { SidebarSlot } from './SidebarSlot';
|
|
10
10
|
import { useAppShellSidebarMetrics } from './use-sidebar-metrics';
|
|
11
11
|
import { APP_SHELL_DEFAULTS } from './constants';
|
|
12
|
-
import {
|
|
12
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
13
13
|
import { PageHeader } from '../page-header/PageHeader';
|
|
14
14
|
import type { BottomBarProps } from '../bottom-bar/types';
|
|
15
15
|
import type { FabProps } from '../fab/types';
|
|
@@ -126,7 +126,7 @@ export function createAppShell(
|
|
|
126
126
|
const platformWindow = useWindow();
|
|
127
127
|
const appWindow = useWindowCornerTaken() ? null : platformWindow;
|
|
128
128
|
const actionClaimed = useScreenActionClaimed();
|
|
129
|
-
const
|
|
129
|
+
const tokens = useColorTokens();
|
|
130
130
|
const sidebarMetrics = useAppShellSidebarMetrics(sidebar);
|
|
131
131
|
const [userCollapsed, setUserCollapsed] = useState(sidebar?.defaultCollapsed ?? false);
|
|
132
132
|
const navigationPadding = APP_SHELL_DEFAULTS.dashboardGutter;
|
|
@@ -206,7 +206,7 @@ export function createAppShell(
|
|
|
206
206
|
onLayout={onRootLayout}
|
|
207
207
|
testID={testID}
|
|
208
208
|
style={[
|
|
209
|
-
{ flex: 1, minHeight: 0, flexDirection: 'row', backgroundColor:
|
|
209
|
+
{ flex: 1, minHeight: 0, flexDirection: 'row', backgroundColor: tokens.background },
|
|
210
210
|
style,
|
|
211
211
|
]}
|
|
212
212
|
>
|