@oxy.so/bloom 22.0.1 → 22.1.1
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/docs/adoption-matrix.mdx +13 -13
- package/docs/agent-task-index.mdx +1 -1
- package/docs/app-conventions.mdx +11 -0
- package/docs/app-shell.mdx +25 -2
- package/docs/compose-layouts.mdx +6 -0
- package/docs/composition.mdx +3 -1
- package/docs/dialog.mdx +57 -0
- package/docs/layout.mdx +10 -0
- package/docs/list.mdx +6 -0
- package/docs/project-board.mdx +28 -1
- package/docs/public-parts.mdx +8 -2
- package/docs/screen.mdx +15 -0
- package/docs/semantic-composition.mdx +207 -0
- package/docs/swipe-row.mdx +30 -0
- package/docs/task-catalog.json +16 -3
- package/docs/task-catalog.mdx +6 -6
- package/docs/ui-architecture.mdx +6 -4
- package/lib/commonjs/app-shell/AppShell.js +18 -9
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +18 -5
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +59 -30
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanels.js +53 -31
- package/lib/commonjs/app-shell/AppShellPanels.js.map +1 -1
- package/lib/commonjs/app-shell/composition.js +232 -0
- package/lib/commonjs/app-shell/composition.js.map +1 -0
- package/lib/commonjs/app-shell/context.js +7 -1
- package/lib/commonjs/app-shell/context.js.map +1 -1
- package/lib/commonjs/app-shell/hooks/index.js +13 -0
- package/lib/commonjs/app-shell/hooks/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.js +38 -0
- package/lib/commonjs/app-shell/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.web.js +38 -0
- package/lib/commonjs/app-shell/index.web.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout-css.js +7 -3
- package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/panel-session.js +210 -0
- package/lib/commonjs/app-shell/panel-session.js.map +1 -0
- package/lib/commonjs/app-shell/shell-layout-css.js +6 -4
- package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
- package/lib/commonjs/canvas/CanvasPanelBase.js +1 -0
- package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialog.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialog.web.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogBase.js +204 -0
- package/lib/commonjs/dialog/DetailDialogBase.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js +87 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js +345 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogSection.js +49 -0
- package/lib/commonjs/dialog/DetailDialogSection.js.map +1 -0
- package/lib/commonjs/dialog/Dialog.js +101 -90
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/dialog/context.js +4 -1
- package/lib/commonjs/dialog/context.js.map +1 -1
- package/lib/commonjs/dialog/index.js +20 -0
- package/lib/commonjs/dialog/index.js.map +1 -1
- package/lib/commonjs/dialog/index.web.js +20 -0
- package/lib/commonjs/dialog/index.web.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +28 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/app-shell-region.js.map +1 -1
- package/lib/commonjs/layout/index.js +7 -0
- package/lib/commonjs/layout/index.js.map +1 -1
- package/lib/commonjs/layout/index.web.js +7 -0
- package/lib/commonjs/layout/index.web.js.map +1 -1
- package/lib/commonjs/layout/safe-area-ownership.js +31 -0
- package/lib/commonjs/layout/safe-area-ownership.js.map +1 -0
- package/lib/commonjs/layout/screen-scope.js +26 -20
- package/lib/commonjs/layout/screen-scope.js.map +1 -1
- package/lib/commonjs/list/ListMail.js +5 -1
- package/lib/commonjs/list/ListMail.js.map +1 -1
- package/lib/commonjs/list/ListPerson.js +6 -9
- package/lib/commonjs/list/ListPerson.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +3 -1
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.web.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +29 -41
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCardContent.js +56 -0
- package/lib/commonjs/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +7 -340
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/commonjs/project-board/TicketDetailDialog.js +317 -412
- package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.js +13 -82
- package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -1
- package/lib/commonjs/project-board/context.js +9 -2
- package/lib/commonjs/project-board/context.js.map +1 -1
- package/lib/commonjs/project-board/index.js +7 -0
- package/lib/commonjs/project-board/index.js.map +1 -1
- package/lib/commonjs/project-board/index.web.js +7 -0
- package/lib/commonjs/project-board/index.web.js.map +1 -1
- package/lib/commonjs/screen/ScreenBase.js +44 -32
- package/lib/commonjs/screen/ScreenBase.js.map +1 -1
- package/lib/commonjs/screen/ScreenContent.js +61 -0
- package/lib/commonjs/screen/ScreenContent.js.map +1 -0
- package/lib/commonjs/screen/ScreenScrollViewBase.js +66 -1
- package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/commonjs/screen/content.js +25 -0
- package/lib/commonjs/screen/content.js.map +1 -0
- package/lib/commonjs/screen/index.js +7 -0
- package/lib/commonjs/screen/index.js.map +1 -1
- package/lib/commonjs/screen/index.web.js +7 -0
- package/lib/commonjs/screen/index.web.js.map +1 -1
- package/lib/commonjs/screen/keyboard-components.js.map +1 -1
- package/lib/commonjs/swipe-row/SwipeRow.js +6 -1
- package/lib/commonjs/swipe-row/SwipeRow.js.map +1 -1
- package/lib/commonjs/swipe-row/SwipeRowBubble.js +7 -8
- package/lib/commonjs/swipe-row/SwipeRowBubble.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +15 -5
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +18 -5
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +60 -30
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/AppShellPanels.js +52 -28
- package/lib/module/app-shell/AppShellPanels.js.map +1 -1
- package/lib/module/app-shell/composition.js +226 -0
- package/lib/module/app-shell/composition.js.map +1 -0
- package/lib/module/app-shell/context.js +4 -0
- package/lib/module/app-shell/context.js.map +1 -1
- package/lib/module/app-shell/hooks/index.js +1 -0
- package/lib/module/app-shell/hooks/index.js.map +1 -1
- package/lib/module/app-shell/index.js +3 -0
- package/lib/module/app-shell/index.js.map +1 -1
- package/lib/module/app-shell/index.web.js +3 -0
- package/lib/module/app-shell/index.web.js.map +1 -1
- package/lib/module/app-shell/panel-layout-css.js +7 -3
- package/lib/module/app-shell/panel-layout-css.js.map +1 -1
- package/lib/module/app-shell/panel-session.js +204 -0
- package/lib/module/app-shell/panel-session.js.map +1 -0
- package/lib/module/app-shell/shell-layout-css.js +6 -4
- package/lib/module/app-shell/shell-layout-css.js.map +1 -1
- package/lib/module/canvas/CanvasPanelBase.js +1 -0
- package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/module/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/module/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/module/dialog/DetailDialog.js +15 -0
- package/lib/module/dialog/DetailDialog.js.map +1 -0
- package/lib/module/dialog/DetailDialog.web.js +15 -0
- package/lib/module/dialog/DetailDialog.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogBase.js +200 -0
- package/lib/module/dialog/DetailDialogBase.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.js +81 -0
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.web.js +342 -0
- package/lib/module/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogSection.js +44 -0
- package/lib/module/dialog/DetailDialogSection.js.map +1 -0
- package/lib/module/dialog/Dialog.js +102 -91
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/dialog/context.js +3 -0
- package/lib/module/dialog/context.js.map +1 -1
- package/lib/module/dialog/index.js +2 -0
- package/lib/module/dialog/index.js.map +1 -1
- package/lib/module/dialog/index.web.js +2 -0
- package/lib/module/dialog/index.web.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +2 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/app-shell-region.js.map +1 -1
- package/lib/module/layout/index.js +1 -0
- package/lib/module/layout/index.js.map +1 -1
- package/lib/module/layout/index.web.js +1 -0
- package/lib/module/layout/index.web.js.map +1 -1
- package/lib/module/layout/safe-area-ownership.js +26 -0
- package/lib/module/layout/safe-area-ownership.js.map +1 -0
- package/lib/module/layout/screen-scope.js +26 -20
- package/lib/module/layout/screen-scope.js.map +1 -1
- package/lib/module/list/ListMail.js +5 -1
- package/lib/module/list/ListMail.js.map +1 -1
- package/lib/module/list/ListPerson.js +7 -10
- package/lib/module/list/ListPerson.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +3 -1
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.js +2 -0
- package/lib/module/project-board/ProjectBoard.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.web.js +2 -0
- package/lib/module/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +30 -42
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCardContent.js +52 -0
- package/lib/module/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/module/project-board/TicketCornerGenieSurface.web.js +1 -339
- package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/module/project-board/TicketDetailDialog.js +317 -412
- package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/module/project-board/TicketGenieSurface.js +1 -78
- package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/module/project-board/TicketTokenChart.js +1 -1
- package/lib/module/project-board/TicketTokenChart.js.map +1 -1
- package/lib/module/project-board/context.js +1 -1
- package/lib/module/project-board/context.js.map +1 -1
- package/lib/module/project-board/index.js +1 -0
- package/lib/module/project-board/index.js.map +1 -1
- package/lib/module/project-board/index.web.js +1 -0
- package/lib/module/project-board/index.web.js.map +1 -1
- package/lib/module/screen/ScreenBase.js +22 -10
- package/lib/module/screen/ScreenBase.js.map +1 -1
- package/lib/module/screen/ScreenContent.js +57 -0
- package/lib/module/screen/ScreenContent.js.map +1 -0
- package/lib/module/screen/ScreenScrollViewBase.js +67 -2
- package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/module/screen/content.js +21 -0
- package/lib/module/screen/content.js.map +1 -0
- package/lib/module/screen/index.js +1 -0
- package/lib/module/screen/index.js.map +1 -1
- package/lib/module/screen/index.web.js +1 -0
- package/lib/module/screen/index.web.js.map +1 -1
- package/lib/module/screen/keyboard-components.js.map +1 -1
- package/lib/module/swipe-row/SwipeRow.js +6 -1
- package/lib/module/swipe-row/SwipeRow.js.map +1 -1
- package/lib/module/swipe-row/SwipeRowBubble.js +8 -9
- package/lib/module/swipe-row/SwipeRowBubble.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/composition.d.ts +52 -0
- package/lib/typescript/commonjs/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +15 -3
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/context.d.ts +2 -0
- package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +37 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +3 -3
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/commonjs/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/commonjs/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListPerson.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/context.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/types.d.ts +12 -0
- package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/content.d.ts +6 -0
- package/lib/typescript/commonjs/screen/content.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/index.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/types.d.ts +7 -0
- package/lib/typescript/commonjs/screen/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/swipe-row/SwipeRowBubble.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/composition.d.ts +52 -0
- package/lib/typescript/module/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/context.d.ts +4 -0
- package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/module/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/module/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +15 -3
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/dialog/context.d.ts +2 -0
- package/lib/typescript/module/dialog/context.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.d.ts +3 -1
- package/lib/typescript/module/dialog/index.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.web.d.ts +3 -1
- package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +37 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +3 -3
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/module/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.d.ts +1 -0
- package/lib/typescript/module/layout/index.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.web.d.ts +1 -0
- package/lib/typescript/module/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/module/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/module/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/module/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/module/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/module/list/ListPerson.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/module/project-board/context.d.ts +2 -1
- package/lib/typescript/module/project-board/context.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.d.ts +2 -1
- package/lib/typescript/module/project-board/index.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.web.d.ts +2 -1
- package/lib/typescript/module/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/types.d.ts +12 -0
- package/lib/typescript/module/project-board/types.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/module/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/content.d.ts +6 -0
- package/lib/typescript/module/screen/content.d.ts.map +1 -0
- package/lib/typescript/module/screen/index.d.ts +3 -0
- package/lib/typescript/module/screen/index.d.ts.map +1 -1
- package/lib/typescript/module/screen/index.web.d.ts +3 -0
- package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/module/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/module/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/module/screen/types.d.ts +7 -0
- package/lib/typescript/module/screen/types.d.ts.map +1 -1
- package/lib/typescript/module/swipe-row/SwipeRowBubble.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +19 -1
- package/src/app-shell/AppShell.tsx +15 -6
- package/src/app-shell/AppShellEngine.tsx +36 -10
- package/src/app-shell/AppShellPanelLayout.tsx +106 -55
- package/src/app-shell/AppShellPanels.tsx +75 -44
- package/src/app-shell/composition.ts +257 -0
- package/src/app-shell/context.ts +5 -0
- package/src/app-shell/hooks/index.ts +3 -0
- package/src/app-shell/index.ts +16 -0
- package/src/app-shell/index.web.ts +16 -0
- package/src/app-shell/panel-layout-css.ts +7 -3
- package/src/app-shell/panel-layout-types.ts +2 -1
- package/src/app-shell/panel-session.tsx +246 -0
- package/src/app-shell/shell-layout-css.ts +6 -1
- package/src/app-shell/types.ts +15 -3
- package/src/canvas/CanvasPanelBase.tsx +1 -1
- package/src/chat-screen/ChatInfoPanelBase.tsx +1 -1
- package/src/dialog/DetailDialog.tsx +13 -0
- package/src/dialog/DetailDialog.web.tsx +13 -0
- package/src/dialog/DetailDialogBase.tsx +207 -0
- package/src/dialog/DetailDialogMotion.tsx +75 -0
- package/src/dialog/DetailDialogMotion.web.tsx +360 -0
- package/src/dialog/DetailDialogSection.tsx +42 -0
- package/src/dialog/Dialog.tsx +98 -85
- package/src/dialog/context.ts +3 -0
- package/src/dialog/index.ts +5 -0
- package/src/dialog/index.web.ts +5 -0
- package/src/dialog/types.ts +40 -0
- package/src/index.ts +7 -0
- package/src/index.web.ts +7 -0
- package/src/layout/app-shell-region.ts +2 -0
- package/src/layout/index.ts +2 -0
- package/src/layout/index.web.ts +2 -0
- package/src/layout/safe-area-ownership.ts +22 -0
- package/src/layout/screen-scope.tsx +31 -22
- package/src/list/ListMail.tsx +5 -1
- package/src/list/ListPerson.tsx +12 -7
- package/src/page-header/PageHeader.tsx +3 -1
- package/src/project-board/ProjectBoard.tsx +2 -0
- package/src/project-board/ProjectBoard.web.tsx +2 -0
- package/src/project-board/ProjectBoardBase.tsx +13 -13
- package/src/project-board/ProjectBoardCardContent.tsx +54 -0
- package/src/project-board/TicketCornerGenieSurface.web.tsx +1 -362
- package/src/project-board/TicketDetailDialog.tsx +311 -426
- package/src/project-board/TicketGenieSurface.tsx +4 -75
- package/src/project-board/TicketTokenChart.tsx +1 -1
- package/src/project-board/context.ts +2 -1
- package/src/project-board/index.ts +2 -0
- package/src/project-board/index.web.ts +2 -0
- package/src/project-board/types.ts +13 -0
- package/src/screen/ScreenBase.tsx +30 -7
- package/src/screen/ScreenContent.tsx +61 -0
- package/src/screen/ScreenScrollViewBase.tsx +80 -1
- package/src/screen/content.ts +26 -0
- package/src/screen/index.ts +4 -0
- package/src/screen/index.web.ts +4 -0
- package/src/screen/keyboard-components.ts +2 -0
- package/src/screen/types.ts +7 -0
- package/src/swipe-row/SwipeRow.tsx +5 -4
- package/src/swipe-row/SwipeRowBubble.tsx +12 -8
|
@@ -1,75 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
useAnimatedStyle,
|
|
6
|
-
useSharedValue,
|
|
7
|
-
withTiming,
|
|
8
|
-
} from 'react-native-reanimated';
|
|
9
|
-
import { useDialogContext } from '../dialog/context';
|
|
10
|
-
import { StyledView } from '../styles/styled-primitives';
|
|
11
|
-
import { TicketGenieEnteredContext } from './context';
|
|
12
|
-
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
13
|
-
const AnimatedView = Animated.createAnimatedComponent(StyledView);
|
|
14
|
-
function phase(start: number, end: number, value: number) {
|
|
15
|
-
'worklet';
|
|
16
|
-
const t = Math.min(1, Math.max(0, (value - start) / (end - start)));
|
|
17
|
-
return t * t * (3 - 2 * t);
|
|
18
|
-
}
|
|
19
|
-
export function TicketGenieSurface({
|
|
20
|
-
children,
|
|
21
|
-
corner = false,
|
|
22
|
-
}: {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
corner?: boolean;
|
|
25
|
-
}) {
|
|
26
|
-
const { isClosing = false } = useDialogContext();
|
|
27
|
-
const reduced = usePrefersReducedMotion();
|
|
28
|
-
const progress = useSharedValue(reduced ? 0 : 1);
|
|
29
|
-
const [height, setHeight] = useState(280);
|
|
30
|
-
const [entered, setEntered] = useState(reduced || !corner);
|
|
31
|
-
const { height: viewportHeight } = useWindowDimensions();
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
progress.value = withTiming(isClosing ? 1 : 0, {
|
|
34
|
-
duration: reduced ? 0 : 480,
|
|
35
|
-
easing: Easing.bezier(0.42, 0, 0.58, 1),
|
|
36
|
-
});
|
|
37
|
-
}, [isClosing, progress, reduced]);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (isClosing || !corner) return;
|
|
40
|
-
const timer = setTimeout(() => setEntered(true), reduced ? 0 : 480);
|
|
41
|
-
return () => clearTimeout(timer);
|
|
42
|
-
}, [isClosing, corner, reduced]);
|
|
43
|
-
const style = useAnimatedStyle(() => {
|
|
44
|
-
const p = reduced ? 0 : progress.value;
|
|
45
|
-
const extension = 64 * phase(0, 0.42, p);
|
|
46
|
-
const swallow = phase(0.32, 1, p);
|
|
47
|
-
const stretch = Math.max(0.001, ((height + extension) * (1 - swallow)) / height);
|
|
48
|
-
return {
|
|
49
|
-
opacity: 1 - phase(0.94, 1, p),
|
|
50
|
-
transform: [
|
|
51
|
-
{
|
|
52
|
-
translateY: corner
|
|
53
|
-
? viewportHeight * swallow * 0.5
|
|
54
|
-
: extension + (height * (1 - stretch)) / 2,
|
|
55
|
-
},
|
|
56
|
-
{ translateX: corner ? 24 * phase(0, 0.72, p) : 0 },
|
|
57
|
-
{ scaleX: corner ? 1 - 0.88 * swallow : 1 },
|
|
58
|
-
{ scaleY: stretch },
|
|
59
|
-
],
|
|
60
|
-
};
|
|
61
|
-
}, [progress, reduced, corner, height, viewportHeight]);
|
|
62
|
-
return (
|
|
63
|
-
<TicketGenieEnteredContext.Provider value={entered}>
|
|
64
|
-
<AnimatedView
|
|
65
|
-
onLayout={(event) => setHeight(event.nativeEvent.layout.height || 280)}
|
|
66
|
-
style={[corner ? { flex: 1, minHeight: 0 } : {}, style]}
|
|
67
|
-
>
|
|
68
|
-
{children}
|
|
69
|
-
</AnimatedView>
|
|
70
|
-
</TicketGenieEnteredContext.Provider>
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
export function TicketCornerGenieSurface({ children }: { children: ReactNode }) {
|
|
74
|
-
return <TicketGenieSurface corner>{children}</TicketGenieSurface>;
|
|
75
|
-
}
|
|
1
|
+
export {
|
|
2
|
+
DetailDialogMotion as TicketCornerGenieSurface,
|
|
3
|
+
GenieSurface as TicketGenieSurface,
|
|
4
|
+
} from '../dialog/DetailDialogMotion';
|
|
@@ -7,7 +7,7 @@ import { TicketGenieEnteredContext } from './context';
|
|
|
7
7
|
export function TicketTokenChart(props: ComponentProps<typeof TokensChartCard>) {
|
|
8
8
|
const entered = useContext(TicketGenieEnteredContext);
|
|
9
9
|
return (
|
|
10
|
-
<StyledView className="bloom-
|
|
10
|
+
<StyledView className="bloom-detail-deferred">
|
|
11
11
|
<TokensChartCard {...props} animate={entered} />
|
|
12
12
|
</StyledView>
|
|
13
13
|
);
|
|
@@ -14,6 +14,7 @@ import type { AppShellPanels } from '../app-shell';
|
|
|
14
14
|
import type { Screen, ScreenScrollView } from '../screen';
|
|
15
15
|
|
|
16
16
|
export interface ProjectBoardPlatform {
|
|
17
|
+
DetailDialog: typeof import('../dialog/DetailDialog').DetailDialog;
|
|
17
18
|
Screen: typeof Screen;
|
|
18
19
|
Accordion: ComponentType<AccordionProps>;
|
|
19
20
|
AccordionItem: ComponentType<AccordionItemProps>;
|
|
@@ -45,7 +46,7 @@ export interface ProjectBoardPlatform {
|
|
|
45
46
|
}
|
|
46
47
|
export const ProjectBoardPlatformContext = createContext<ProjectBoardPlatform | null>(null);
|
|
47
48
|
/** The plot starts its own reveal after the panel has reached its live pixels. */
|
|
48
|
-
export
|
|
49
|
+
export { DetailDialogEnteredContext as TicketGenieEnteredContext } from '../dialog/context';
|
|
49
50
|
export function useProjectBoardPlatform() {
|
|
50
51
|
const platform = useContext(ProjectBoardPlatformContext);
|
|
51
52
|
if (!platform) throw new Error('Project Board parts must be rendered inside ProjectBoard.');
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export { ProjectBoardCardContent } from './ProjectBoardCardContent';
|
|
1
2
|
export { ProjectBoard } from './ProjectBoard';
|
|
2
3
|
export { BoardDragHandle } from './BoardGesture';
|
|
3
4
|
export type {
|
|
5
|
+
ProjectBoardCardContentProps,
|
|
4
6
|
BoardColumn,
|
|
5
7
|
ProjectBoardLane,
|
|
6
8
|
GroupedProjectBoardProps,
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
// Re-run `bun run generate:exports` (or any `bun run build`) after
|
|
4
4
|
// changing that barrel or the set of web-forked subpaths.
|
|
5
5
|
|
|
6
|
+
export { ProjectBoardCardContent } from './ProjectBoardCardContent';
|
|
6
7
|
export { ProjectBoard } from './ProjectBoard.web';
|
|
7
8
|
export { BoardDragHandle } from './BoardGesture';
|
|
8
9
|
export type {
|
|
10
|
+
ProjectBoardCardContentProps,
|
|
9
11
|
BoardColumn,
|
|
10
12
|
ProjectBoardLane,
|
|
11
13
|
GroupedProjectBoardProps,
|
|
@@ -169,3 +169,16 @@ export type ProjectBoardProps<Item = ProjectTicket> =
|
|
|
169
169
|
| ProjectBoardTemplateProps
|
|
170
170
|
| ControlledProjectBoardProps<Item>
|
|
171
171
|
| GroupedProjectBoardProps<Item>;
|
|
172
|
+
|
|
173
|
+
/** Slots use the exact template card spacing without imposing a record schema. */
|
|
174
|
+
export interface ProjectBoardCardContentProps {
|
|
175
|
+
preview?: ReactNode;
|
|
176
|
+
header?: ReactNode;
|
|
177
|
+
actions?: ReactNode;
|
|
178
|
+
badges?: ReactNode;
|
|
179
|
+
title?: ReactNode;
|
|
180
|
+
description?: ReactNode;
|
|
181
|
+
children?: ReactNode;
|
|
182
|
+
footer?: ReactNode;
|
|
183
|
+
testID?: string;
|
|
184
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { SafeAreaConsumedContext } from '../layout/safe-area-ownership';
|
|
2
|
+
import { useAppShellPanel } from '../app-shell/context';
|
|
3
|
+
import { ScreenKindContext } from './content';
|
|
1
4
|
import { useThemeRecipe } from '../theme/use-theme-paint';
|
|
2
5
|
import { resolvePaintMode } from '../theme/paint';
|
|
3
6
|
import { resolveSurfaceMaterial } from '../surface/resolve-surface-material';
|
|
@@ -74,23 +77,32 @@ export function createScreen(
|
|
|
74
77
|
/** One continuous canvas; chrome overlays it and content reserves its measured footprint. */
|
|
75
78
|
function Screen(props: ScreenProps) {
|
|
76
79
|
return (
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
+
<ScreenKindContext.Provider value={props.kind}>
|
|
81
|
+
<BloomColorScope colorPreset={props.colorPreset} seed={props.seed} asChild>
|
|
82
|
+
<ScreenCanvas {...props} />
|
|
83
|
+
</BloomColorScope>
|
|
84
|
+
</ScreenKindContext.Provider>
|
|
80
85
|
);
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
function ScreenCanvas({
|
|
84
89
|
colorPreset,
|
|
85
90
|
seed,
|
|
91
|
+
kind,
|
|
86
92
|
header,
|
|
87
|
-
scroll = '
|
|
93
|
+
scroll = kind === 'canvas'
|
|
94
|
+
? 'none'
|
|
95
|
+
: kind === 'table' || kind === 'collection'
|
|
96
|
+
? 'content'
|
|
97
|
+
: 'auto',
|
|
88
98
|
headerPlacement = 'inset',
|
|
89
99
|
bottomBarPlacement = 'inset',
|
|
90
100
|
bottomBar,
|
|
91
101
|
underlay,
|
|
92
102
|
bottomBarKeyboardBehavior = 'hide',
|
|
93
|
-
primaryAction,
|
|
103
|
+
primaryAction: declaredPrimaryAction,
|
|
104
|
+
primaryActionVisibility = 'always',
|
|
105
|
+
primaryActionPlacement = 'end',
|
|
94
106
|
reselect,
|
|
95
107
|
active: requestedActive = true,
|
|
96
108
|
navigationScope = 'inherit',
|
|
@@ -103,6 +115,9 @@ export function createScreen(
|
|
|
103
115
|
testID,
|
|
104
116
|
...props
|
|
105
117
|
}: ScreenProps) {
|
|
118
|
+
const panel = useAppShellPanel();
|
|
119
|
+
const primaryAction =
|
|
120
|
+
primaryActionVisibility === 'alone' && !panel.alone ? null : declaredPrimaryAction;
|
|
106
121
|
const surfaceRecipe = useSurfaceFillRecipe();
|
|
107
122
|
// On the page the canvas is the page fill. Inside a painted surface (a panel,
|
|
108
123
|
// a sheet) that surface is already the paint, material and edge light included,
|
|
@@ -229,8 +244,11 @@ export function createScreen(
|
|
|
229
244
|
};
|
|
230
245
|
const headerSize = useBorderBoxSize(({ height }) => setTop(height));
|
|
231
246
|
const footerSize = useBorderBoxSize(({ height }) => setBottom(height));
|
|
247
|
+
const safeTopConsumed = useContext(SafeAreaConsumedContext).top > 0;
|
|
232
248
|
const top =
|
|
233
|
-
measuredTop ??
|
|
249
|
+
measuredTop ??
|
|
250
|
+
headerHeight ??
|
|
251
|
+
56 + (Platform.OS === 'web' || safeTopConsumed ? 0 : (insets?.top ?? 0));
|
|
234
252
|
const bottom = measuredBottom ?? bottomBarHeight ?? 58 + windowEdgeGap(insets?.bottom ?? 0);
|
|
235
253
|
const keyboardVisible = useKeyboardVisible();
|
|
236
254
|
// A desktop window's keys are physical: there is no on-screen keyboard for
|
|
@@ -421,7 +439,12 @@ export function createScreen(
|
|
|
421
439
|
<View
|
|
422
440
|
pointerEvents="box-none"
|
|
423
441
|
style={{
|
|
424
|
-
alignItems:
|
|
442
|
+
alignItems:
|
|
443
|
+
primaryActionPlacement === 'center'
|
|
444
|
+
? 'center'
|
|
445
|
+
: primaryActionPlacement === 'start'
|
|
446
|
+
? 'flex-start'
|
|
447
|
+
: 'flex-end',
|
|
425
448
|
paddingHorizontal: 16,
|
|
426
449
|
paddingBottom: windowEdgeGap(insets?.bottom ?? 0),
|
|
427
450
|
minHeight: host.bottomBar
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useContext, useId } from 'react';
|
|
2
|
+
import { Platform, View, type ViewProps } from 'react-native';
|
|
3
|
+
import { StyledView } from '../styles/styled-primitives';
|
|
4
|
+
import { useMeasuredSizeClass } from '../hooks/use-width-class';
|
|
5
|
+
import { ServerStyleSheet } from '../styles/ServerStyleSheet';
|
|
6
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
7
|
+
import { ScreenKindContext, screenContentStyle, type ScreenKind } from './content';
|
|
8
|
+
|
|
9
|
+
export interface ScreenContentProps extends ViewProps {
|
|
10
|
+
/** Defaults to the enclosing Screen's body kind. */
|
|
11
|
+
kind?: ScreenKind;
|
|
12
|
+
/** Full removes the reading measure, preserving the body's edge inset. */
|
|
13
|
+
width?: 'readable' | 'full';
|
|
14
|
+
className?: string;
|
|
15
|
+
/** React Native Web data attributes; the internal bloomBody marker is reserved. */
|
|
16
|
+
dataSet?: Record<string, string | number>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** A body column in the existing scroller; never adds a viewport or a surface. */
|
|
20
|
+
export function ScreenContent({ kind, width = 'readable', style, ...props }: ScreenContentProps) {
|
|
21
|
+
const inherited = useContext(ScreenKindContext);
|
|
22
|
+
const resolvedKind = kind ?? inherited;
|
|
23
|
+
const reading = resolvedKind === 'document' || resolvedKind === 'form';
|
|
24
|
+
const available = useMeasuredSizeClass([768]);
|
|
25
|
+
const scope = `bloom-body-${useId().replace(/[^a-zA-Z0-9_-]/g, '')}`;
|
|
26
|
+
const inset = `--${scope}-inset`;
|
|
27
|
+
const web = Platform.OS === 'web';
|
|
28
|
+
const css = reading
|
|
29
|
+
? `@container ${scope} (min-width:768px){[data-bloom-body="${scope}"]{${inset}:40px}}`
|
|
30
|
+
: '';
|
|
31
|
+
return (
|
|
32
|
+
<View
|
|
33
|
+
onLayout={web ? undefined : available.onLayout}
|
|
34
|
+
style={
|
|
35
|
+
{
|
|
36
|
+
width: '100%',
|
|
37
|
+
minWidth: 0,
|
|
38
|
+
...(web ? { containerType: 'inline-size', containerName: scope } : {}),
|
|
39
|
+
} as WebCssStyle
|
|
40
|
+
}
|
|
41
|
+
>
|
|
42
|
+
{web ? <ServerStyleSheet id={scope} css={css} owned /> : null}
|
|
43
|
+
<StyledView
|
|
44
|
+
{...props}
|
|
45
|
+
{...(web ? { dataSet: { ...props.dataSet, bloomBody: scope } } : {})}
|
|
46
|
+
style={[
|
|
47
|
+
{
|
|
48
|
+
...screenContentStyle(resolvedKind, width === 'full', !web && available.width >= 768),
|
|
49
|
+
...(web && reading
|
|
50
|
+
? {
|
|
51
|
+
paddingLeft: `var(${inset}, 24px)`,
|
|
52
|
+
paddingRight: `var(${inset}, 24px)`,
|
|
53
|
+
}
|
|
54
|
+
: {}),
|
|
55
|
+
} as WebCssStyle,
|
|
56
|
+
style,
|
|
57
|
+
]}
|
|
58
|
+
/>
|
|
59
|
+
</View>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
Platform,
|
|
15
15
|
StyleSheet,
|
|
16
16
|
View,
|
|
17
|
+
useWindowDimensions,
|
|
17
18
|
type LayoutChangeEvent,
|
|
18
19
|
type StyleProp,
|
|
19
20
|
type ViewStyle,
|
|
@@ -37,6 +38,7 @@ import { useScreenWindowScroll } from './use-screen-window-scroll';
|
|
|
37
38
|
import type { ScreenScrollViewProps } from './types';
|
|
38
39
|
import type { RefComponent } from '../styles/native-refs';
|
|
39
40
|
import type { ScreenKeyboardComponents } from './keyboard-components';
|
|
41
|
+
import { useKeyboardMetrics } from '../hooks/use-keyboard-metrics';
|
|
40
42
|
|
|
41
43
|
export function createScreenScrollView(
|
|
42
44
|
ScrollBar: React.ComponentType<ScrollBarProps>,
|
|
@@ -181,7 +183,7 @@ export function createScreenScrollView(
|
|
|
181
183
|
];
|
|
182
184
|
const ScrollContainer =
|
|
183
185
|
screen.keyboardFollow && getKeyboardComponents
|
|
184
|
-
?
|
|
186
|
+
? KeyboardFollowScrollView
|
|
185
187
|
: Animated.ScrollView;
|
|
186
188
|
const content = (
|
|
187
189
|
<ScrollContainer
|
|
@@ -237,6 +239,83 @@ export function createScreenScrollView(
|
|
|
237
239
|
|
|
238
240
|
type ScrollViewRef = ComponentRef<typeof ScrollView>;
|
|
239
241
|
|
|
242
|
+
type KeyboardScrollProps = React.ComponentProps<
|
|
243
|
+
ScreenKeyboardComponents['KeyboardAwareScrollView']
|
|
244
|
+
>;
|
|
245
|
+
|
|
246
|
+
// The controller reveals an input relative to the WINDOW. A Screen can end
|
|
247
|
+
// above that window edge (system bars, a framed dialog, or another panel).
|
|
248
|
+
// Translate only that measured distance; footer height remains its own slot.
|
|
249
|
+
const KeyboardFollowScrollView = forwardRef<ScrollViewRef, KeyboardScrollProps>(
|
|
250
|
+
function KeyboardFollowScrollView(
|
|
251
|
+
{
|
|
252
|
+
enabled = true,
|
|
253
|
+
bottomOffset = 0,
|
|
254
|
+
extraKeyboardSpace = 0,
|
|
255
|
+
onLayout,
|
|
256
|
+
onTouchStart,
|
|
257
|
+
...props
|
|
258
|
+
},
|
|
259
|
+
forwardedRef,
|
|
260
|
+
) {
|
|
261
|
+
const integration = getKeyboardComponents?.();
|
|
262
|
+
if (!integration) throw new Error('Native keyboard integration is required for follow');
|
|
263
|
+
const useControllerDimensions = integration.useWindowDimensions ?? useWindowDimensions;
|
|
264
|
+
const { height: windowHeight } = useControllerDimensions();
|
|
265
|
+
const keyboard = useKeyboardMetrics({ enabled });
|
|
266
|
+
const target = useRef<ScrollViewRef | null>(null);
|
|
267
|
+
const measureRevision = useRef(0);
|
|
268
|
+
const [bottomDistance, setBottomDistance] = useState(0);
|
|
269
|
+
const measureViewport = useCallback(() => {
|
|
270
|
+
const node = target.current;
|
|
271
|
+
if (!enabled || !node) return;
|
|
272
|
+
const revision = ++measureRevision.current;
|
|
273
|
+
const native = node.getNativeScrollRef?.() ?? node;
|
|
274
|
+
native?.measureInWindow?.((_x: number, y: number, _width: number, height: number) => {
|
|
275
|
+
if (target.current !== node || measureRevision.current !== revision || height <= 0)
|
|
276
|
+
return;
|
|
277
|
+
const distance = Math.max(0, windowHeight - y - height);
|
|
278
|
+
if (Number.isFinite(distance)) setBottomDistance(distance);
|
|
279
|
+
});
|
|
280
|
+
}, [enabled, windowHeight]);
|
|
281
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: Keyboard changes require a fresh native window measurement.
|
|
282
|
+
useEffect(() => {
|
|
283
|
+
measureViewport();
|
|
284
|
+
return () => {
|
|
285
|
+
measureRevision.current++;
|
|
286
|
+
};
|
|
287
|
+
}, [measureViewport, keyboard.visible, keyboard.height]);
|
|
288
|
+
// The controller already reveals on IME changes and bottomOffset updates.
|
|
289
|
+
// A second imperative reveal races its native focus/scroll measurements.
|
|
290
|
+
const setRef = useCallback(
|
|
291
|
+
(node: ScrollViewRef | null) => {
|
|
292
|
+
target.current = node;
|
|
293
|
+
if (typeof forwardedRef === 'function') forwardedRef(node);
|
|
294
|
+
else if (forwardedRef) forwardedRef.current = node;
|
|
295
|
+
},
|
|
296
|
+
[forwardedRef],
|
|
297
|
+
);
|
|
298
|
+
const KeyboardAwareScrollView = integration.KeyboardAwareScrollView;
|
|
299
|
+
return (
|
|
300
|
+
<KeyboardAwareScrollView
|
|
301
|
+
{...props}
|
|
302
|
+
ref={setRef}
|
|
303
|
+
enabled={enabled}
|
|
304
|
+
bottomOffset={bottomOffset + bottomDistance}
|
|
305
|
+
extraKeyboardSpace={extraKeyboardSpace + bottomDistance}
|
|
306
|
+
onLayout={(event) => {
|
|
307
|
+
measureViewport();
|
|
308
|
+
onLayout?.(event);
|
|
309
|
+
}}
|
|
310
|
+
onTouchStart={(event) => {
|
|
311
|
+
measureViewport();
|
|
312
|
+
onTouchStart?.(event);
|
|
313
|
+
}}
|
|
314
|
+
/>
|
|
315
|
+
);
|
|
316
|
+
},
|
|
317
|
+
);
|
|
318
|
+
|
|
240
319
|
/**
|
|
241
320
|
* `ScrollView`'s imperative surface, answered by the window. The two node
|
|
242
321
|
* getters return what react-native-web's own `ScrollView` returns on web — DOM
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
import type { ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
/** The body contract does not style its enclosing header, cover or overlays. */
|
|
5
|
+
export type ScreenKind = 'document' | 'collection' | 'table' | 'canvas' | 'form';
|
|
6
|
+
export const ScreenKindContext = createContext<ScreenKind | undefined>(undefined);
|
|
7
|
+
|
|
8
|
+
export function screenContentStyle(
|
|
9
|
+
kind: ScreenKind | undefined,
|
|
10
|
+
full: boolean,
|
|
11
|
+
wide: boolean,
|
|
12
|
+
): ViewStyle {
|
|
13
|
+
const reading = kind === 'document' || kind === 'form';
|
|
14
|
+
return {
|
|
15
|
+
width: '100%',
|
|
16
|
+
minWidth: 0,
|
|
17
|
+
...(reading
|
|
18
|
+
? {
|
|
19
|
+
alignSelf: 'center',
|
|
20
|
+
maxWidth: full ? undefined : kind === 'form' ? 640 : 768,
|
|
21
|
+
paddingLeft: wide ? 40 : 24,
|
|
22
|
+
paddingRight: wide ? 40 : 24,
|
|
23
|
+
}
|
|
24
|
+
: {}),
|
|
25
|
+
};
|
|
26
|
+
}
|
package/src/screen/index.ts
CHANGED
|
@@ -19,3 +19,7 @@ export type { ScreenViewportValue } from './context';
|
|
|
19
19
|
|
|
20
20
|
export { ScreenPager } from './ScreenPager';
|
|
21
21
|
export type { ScreenPagerProps, ScreenPagerHandle } from './types';
|
|
22
|
+
|
|
23
|
+
export { ScreenContent } from './ScreenContent';
|
|
24
|
+
export type { ScreenContentProps } from './ScreenContent';
|
|
25
|
+
export type { ScreenKind } from './content';
|
package/src/screen/index.web.ts
CHANGED
|
@@ -24,3 +24,7 @@ export type { ScreenViewportValue } from './context';
|
|
|
24
24
|
|
|
25
25
|
export { ScreenPager } from './ScreenPager';
|
|
26
26
|
export type { ScreenPagerProps, ScreenPagerHandle } from './types';
|
|
27
|
+
|
|
28
|
+
export { ScreenContent } from './ScreenContent';
|
|
29
|
+
export type { ScreenContentProps } from './ScreenContent';
|
|
30
|
+
export type { ScreenKind } from './content';
|
|
@@ -2,6 +2,8 @@ import type { ComponentRef, ComponentType, RefAttributes } from 'react';
|
|
|
2
2
|
import type { ScrollView, ScrollViewProps, ViewProps } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export interface ScreenKeyboardComponents {
|
|
5
|
+
/** The controller's window coordinate space, including its native resize events. */
|
|
6
|
+
useWindowDimensions?: () => { width: number; height: number };
|
|
5
7
|
KeyboardAwareScrollView: ComponentType<
|
|
6
8
|
ScrollViewProps &
|
|
7
9
|
RefAttributes<ComponentRef<typeof ScrollView>> & {
|
package/src/screen/types.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ScreenKind } from './content';
|
|
1
2
|
import type { AppColorName } from '../theme/color-presets';
|
|
2
3
|
import type { ReactNode, Ref } from 'react';
|
|
3
4
|
import type { ScrollViewProps, ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
@@ -5,6 +6,8 @@ import type { ScrollRestorationBinding } from '../scroll/types';
|
|
|
5
6
|
import type { ScrollHandlerProcessed } from 'react-native-reanimated';
|
|
6
7
|
|
|
7
8
|
export interface ScreenProps extends ViewProps {
|
|
9
|
+
/** Body semantics shared with ScreenContent; canvas owns its own viewport. */
|
|
10
|
+
kind?: ScreenKind;
|
|
8
11
|
/** Local screen recipe, including its enclosing panel surface. Restored on departure. */
|
|
9
12
|
colorPreset?: AppColorName;
|
|
10
13
|
/**
|
|
@@ -55,6 +58,10 @@ export interface ScreenProps extends ViewProps {
|
|
|
55
58
|
* shell's floating action steps aside while this screen is in front.
|
|
56
59
|
*/
|
|
57
60
|
primaryAction?: ReactNode;
|
|
61
|
+
/** Logical alignment of the screen-owned floating action. */
|
|
62
|
+
primaryActionPlacement?: 'start' | 'center' | 'end';
|
|
63
|
+
/** Show a panel-switch action only while this region is shown alone. */
|
|
64
|
+
primaryActionVisibility?: 'always' | 'alone';
|
|
58
65
|
/**
|
|
59
66
|
* What reselecting this screen means — pressing the place the reader is
|
|
60
67
|
* already on: usually `{ refresh }`. Answered only while the screen is active.
|
|
@@ -488,10 +488,11 @@ function SwipeScrollGate({ children }: { children: ReactNode }) {
|
|
|
488
488
|
const gesture = useMemo(
|
|
489
489
|
() =>
|
|
490
490
|
pan
|
|
491
|
-
?
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
491
|
+
? // Let the ScrollView intercept actual travel before claiming the stream.
|
|
492
|
+
// Activating on DOWN cancels its child Pressables on Android, so taps
|
|
493
|
+
// on attachments never reach their actions. The row still waits for
|
|
494
|
+
// this gesture, and cannot interrupt it once scrolling starts.
|
|
495
|
+
Gesture.Native().blocksExternalGesture(pan).disallowInterruption(true)
|
|
495
496
|
: null,
|
|
496
497
|
[pan],
|
|
497
498
|
);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { useCallback } from 'react';
|
|
2
1
|
import { Pressable } from 'react-native';
|
|
3
|
-
import Animated, {
|
|
2
|
+
import Animated, {
|
|
3
|
+
useAnimatedStyle,
|
|
4
|
+
useDerivedValue,
|
|
5
|
+
type SharedValue,
|
|
6
|
+
} from 'react-native-reanimated';
|
|
4
7
|
import { Text } from '../typography';
|
|
5
8
|
import { bubbleGeometry } from './bubble-geometry';
|
|
6
9
|
import type { SwipeRowAction } from './types';
|
|
@@ -36,8 +39,9 @@ export function SwipeRowBubble({
|
|
|
36
39
|
testID?: string;
|
|
37
40
|
}) {
|
|
38
41
|
const sign = side === 'left' ? 1 : -1;
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
// Native mapper subscriptions do not traverse a captured function's closure.
|
|
43
|
+
// Share the derived shape so both styles subscribe to every drag update.
|
|
44
|
+
const geometry = useDerivedValue(() => {
|
|
41
45
|
return bubbleGeometry(
|
|
42
46
|
Math.max(0, sign * translateX.value),
|
|
43
47
|
count * actionWidth,
|
|
@@ -48,18 +52,18 @@ export function SwipeRowBubble({
|
|
|
48
52
|
);
|
|
49
53
|
}, [actionWidth, count, index, primary, rowWidth, sign, translateX]);
|
|
50
54
|
const style = useAnimatedStyle(() => {
|
|
51
|
-
const shape = geometry
|
|
55
|
+
const shape = geometry.value;
|
|
52
56
|
return {
|
|
53
57
|
width: shape.width,
|
|
54
58
|
marginLeft: index === 0 ? shape.gap : 0,
|
|
55
59
|
marginRight: shape.gap,
|
|
56
60
|
transform: [{ scaleY: shape.scaleY }],
|
|
57
61
|
};
|
|
58
|
-
}, [geometry, index
|
|
62
|
+
}, [geometry, index]);
|
|
59
63
|
const labelStyle = useAnimatedStyle(() => {
|
|
60
|
-
const width = Math.max(0, Math.min(96, geometry
|
|
64
|
+
const width = Math.max(0, Math.min(96, geometry.value.width - 64));
|
|
61
65
|
return { width, opacity: Math.min(1, width / 32) };
|
|
62
|
-
}, [geometry
|
|
66
|
+
}, [geometry]);
|
|
63
67
|
const Icon = action.icon;
|
|
64
68
|
return (
|
|
65
69
|
<Animated.View
|