@ankhorage/zora 28.10.1 → 28.11.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/features/flow/adapters/inbound/FlowCanvas.d.ts +5 -0
- package/dist/features/flow/adapters/inbound/FlowCanvas.d.ts.map +1 -0
- package/dist/features/flow/adapters/inbound/FlowCanvas.js +261 -0
- package/dist/features/flow/adapters/inbound/FlowCanvas.js.map +1 -0
- package/dist/features/flow/application/createFlowEditorController.d.ts +13 -0
- package/dist/features/flow/application/createFlowEditorController.d.ts.map +1 -0
- package/dist/features/flow/application/createFlowEditorController.js +86 -0
- package/dist/features/flow/application/createFlowEditorController.js.map +1 -0
- package/dist/features/flow/application/getFlowPortAnchor.d.ts +10 -0
- package/dist/features/flow/application/getFlowPortAnchor.d.ts.map +1 -0
- package/dist/features/flow/application/getFlowPortAnchor.js +18 -0
- package/dist/features/flow/application/getFlowPortAnchor.js.map +1 -0
- package/dist/features/flow/application/mapFlowViewport.d.ts +10 -0
- package/dist/features/flow/application/mapFlowViewport.d.ts.map +1 -0
- package/dist/features/flow/application/mapFlowViewport.js +22 -0
- package/dist/features/flow/application/mapFlowViewport.js.map +1 -0
- package/dist/features/flow/public.d.ts +3 -0
- package/dist/features/flow/public.d.ts.map +1 -0
- package/dist/features/flow/public.js +2 -0
- package/dist/features/flow/public.js.map +1 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.d.ts +5 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.d.ts.map +1 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.js +190 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.js.map +1 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.d.ts +17 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.d.ts.map +1 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.js +23 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.js.map +1 -0
- package/dist/features/graph-node/public.d.ts +3 -0
- package/dist/features/graph-node/public.d.ts.map +1 -0
- package/dist/features/graph-node/public.js +2 -0
- package/dist/features/graph-node/public.js.map +1 -0
- package/dist/features/grid-view/adapters/inbound/GridView.d.ts +1 -1
- package/dist/features/grid-view/adapters/inbound/GridView.d.ts.map +1 -1
- package/dist/features/grid-view/adapters/inbound/GridView.js +105 -41
- package/dist/features/grid-view/adapters/inbound/GridView.js.map +1 -1
- package/dist/features/grid-view/application/createGridScrollSync.d.ts +2 -5
- package/dist/features/grid-view/application/createGridScrollSync.d.ts.map +1 -1
- package/dist/features/grid-view/application/createGridScrollSync.js +109 -45
- package/dist/features/grid-view/application/createGridScrollSync.js.map +1 -1
- package/dist/features/grid-view/public.d.ts +1 -1
- package/dist/features/grid-view/public.d.ts.map +1 -1
- package/dist/features/grid-view/public.js.map +1 -1
- package/dist/features/layout/utils/createScrollGestureLock.d.ts.map +1 -1
- package/dist/features/layout/utils/createScrollGestureLock.js +4 -0
- package/dist/features/layout/utils/createScrollGestureLock.js.map +1 -1
- package/dist/features/theme/node.d.ts +5 -0
- package/dist/features/theme/node.d.ts.map +1 -0
- package/dist/features/theme/node.js +4 -0
- package/dist/features/theme/node.js.map +1 -0
- package/dist/features/theme/public.d.ts +2 -0
- package/dist/features/theme/public.d.ts.map +1 -1
- package/dist/features/theme/public.js +1 -0
- package/dist/features/theme/public.js.map +1 -1
- package/dist/types/flow.d.ts +81 -0
- package/dist/types/flow.d.ts.map +1 -0
- package/dist/types/flow.js +2 -0
- package/dist/types/flow.js.map +1 -0
- package/dist/types/graph-node.d.ts +42 -0
- package/dist/types/graph-node.d.ts.map +1 -0
- package/dist/types/graph-node.js +2 -0
- package/dist/types/graph-node.js.map +1 -0
- package/dist/types/grid-view.d.ts +27 -3
- package/dist/types/grid-view.d.ts.map +1 -1
- package/dist/types/grid-view.js.map +1 -1
- package/dist/types/layout.d.ts +2 -0
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/types/layout.js.map +1 -1
- package/package.json +21 -3
- package/src/features/flow/adapters/inbound/FlowCanvas.tsx +501 -0
- package/src/features/flow/application/createFlowEditorController.test.ts +146 -0
- package/src/features/flow/application/createFlowEditorController.ts +99 -0
- package/src/features/flow/application/getFlowPortAnchor.test.ts +23 -0
- package/src/features/flow/application/getFlowPortAnchor.ts +30 -0
- package/src/features/flow/application/mapFlowViewport.test.ts +11 -0
- package/src/features/flow/application/mapFlowViewport.ts +29 -0
- package/src/features/flow/public.test.ts +7 -0
- package/src/features/flow/public.ts +13 -0
- package/src/features/graph-node/adapters/inbound/GraphNode.test.tsx +80 -0
- package/src/features/graph-node/adapters/inbound/GraphNode.tsx +259 -0
- package/src/features/graph-node/getGraphNodePortGeometry.test.ts +35 -0
- package/src/features/graph-node/getGraphNodePortGeometry.ts +41 -0
- package/src/features/graph-node/public.test.ts +7 -0
- package/src/features/graph-node/public.ts +2 -0
- package/src/features/grid-view/adapters/inbound/GridView.nativeScrollSync.test.tsx +198 -7
- package/src/features/grid-view/adapters/inbound/GridView.tsx +248 -145
- package/src/features/grid-view/application/createGridScrollSync.test.ts +46 -17
- package/src/features/grid-view/application/createGridScrollSync.ts +100 -43
- package/src/features/grid-view/public.ts +6 -1
- package/src/features/layout/utils/createScrollGestureLock.ts +4 -0
- package/src/features/theme/application/use-cases/compileZoraTheme.test.ts +1 -1
- package/src/features/theme/node.ts +18 -0
- package/src/features/theme/public.ts +7 -0
- package/src/platformAcceptance.test.ts +15 -11
- package/src/types/flow.ts +99 -0
- package/src/types/graph-node.ts +45 -0
- package/src/types/grid-view.ts +25 -3
- package/src/types/layout.ts +2 -0
- package/web-dist/chunks/{Accordion-9dq115tn.js → Accordion-064hgrct.js} +3 -3
- package/web-dist/chunks/{Accordion-wbf7gqrm.js → Accordion-2b3sd76b.js} +3 -3
- package/web-dist/chunks/{Accordion-k9n1yse4.js → Accordion-2kv6p7by.js} +10 -38
- package/web-dist/chunks/{Accordion-6gc0jw1n.js → Accordion-5x4cv0kv.js} +1 -1
- package/web-dist/chunks/{Accordion-r8swmfjm.js → Accordion-6d63tc7d.js} +1 -1
- package/web-dist/chunks/{Accordion-vbz1mjm6.js → Accordion-7eysykr1.js} +4 -4
- package/web-dist/chunks/{Accordion-59x6e7bs.js → Accordion-91qf4q27.js} +1 -1
- package/web-dist/chunks/{Accordion-hadw5304.js → Accordion-98886mbn.js} +1 -1
- package/web-dist/chunks/{Accordion-vtbs98r4.js → Accordion-a0hbjxg9.js} +4 -4
- package/web-dist/chunks/{Accordion-73p2mg3h.js → Accordion-a49s4ywn.js} +4 -4
- package/web-dist/chunks/{Accordion-tb0vc91c.js → Accordion-a8b6g53f.js} +4 -4
- package/web-dist/chunks/{Accordion-25v2vczc.js → Accordion-afxbyvwp.js} +3 -3
- package/web-dist/chunks/{Accordion-g5pvs1aa.js → Accordion-ajqj6ymg.js} +5 -5
- package/web-dist/chunks/{Accordion-w2kx944a.js → Accordion-ak6dvant.js} +3 -3
- package/web-dist/chunks/{Accordion-778fjjsh.js → Accordion-b1tqkxx6.js} +3 -3
- package/web-dist/chunks/{Accordion-rp9cjtpg.js → Accordion-bm30dkbw.js} +2 -2
- package/web-dist/chunks/{Accordion-rsw5jt7m.js → Accordion-cah5j61y.js} +2 -2
- package/web-dist/chunks/{Accordion-pr1tv6jx.js → Accordion-dfr26j8m.js} +1 -1
- package/web-dist/chunks/{Accordion-zmrbktd8.js → Accordion-dnfgtbq3.js} +8 -8
- package/web-dist/chunks/{Accordion-m3tq2vcc.js → Accordion-dy1j2a7p.js} +6 -6
- package/web-dist/chunks/{Accordion-7pgh8q4h.js → Accordion-e9jwetg7.js} +2 -2
- package/web-dist/chunks/{Accordion-gnkzvj03.js → Accordion-e9xmwxzp.js} +1 -1
- package/web-dist/chunks/{Accordion-q8ymmar7.js → Accordion-ek0hh2nx.js} +4 -4
- package/web-dist/chunks/{Accordion-2berhsg5.js → Accordion-et7xzm6k.js} +9 -9
- package/web-dist/chunks/Accordion-eysfka31.js +1590 -0
- package/web-dist/chunks/{Accordion-3xfqmr1r.js → Accordion-gy3bx3xa.js} +2 -2
- package/web-dist/chunks/{Accordion-tj4fe6wk.js → Accordion-h2rnzgyv.js} +3 -3
- package/web-dist/chunks/Accordion-hbwhya78.js +83 -0
- package/web-dist/chunks/{Accordion-t9w365ke.js → Accordion-hbwyj12m.js} +1 -1
- package/web-dist/chunks/{Accordion-q2yxtdzc.js → Accordion-j3esnt3f.js} +6 -6
- package/web-dist/chunks/Accordion-jkgd7dmf.js +1 -0
- package/web-dist/chunks/{Accordion-qwftammh.js → Accordion-kxjjp03t.js} +5 -5
- package/web-dist/chunks/Accordion-mkd3k28h.js +275 -0
- package/web-dist/chunks/{Accordion-xqkkfwkm.js → Accordion-nhf8zjt4.js} +2 -2
- package/web-dist/chunks/{Accordion-hg4db1sk.js → Accordion-p84h11ek.js} +4 -4
- package/web-dist/chunks/{Accordion-zhgty1ae.js → Accordion-pagdkp07.js} +3 -3
- package/web-dist/chunks/{Accordion-dv5c27w4.js → Accordion-pjbmmr20.js} +1 -1
- package/web-dist/chunks/{Accordion-7ayxbm7k.js → Accordion-pr4a281g.js} +1 -1
- package/web-dist/chunks/{Accordion-yca8r7kx.js → Accordion-qz6ddnmv.js} +3 -3
- package/web-dist/chunks/{Accordion-dcjzxzv3.js → Accordion-rv90tjqr.js} +2 -2
- package/web-dist/chunks/{Accordion-0zk0xp73.js → Accordion-snk6nggm.js} +326 -174
- package/web-dist/chunks/{Accordion-casb2ndy.js → Accordion-th7yhwhf.js} +5 -5
- package/web-dist/chunks/{Accordion-e6ettgh0.js → Accordion-vbh3xqv6.js} +2 -2
- package/web-dist/chunks/{Accordion-vdzyhtyd.js → Accordion-w4zh2nws.js} +8 -8
- package/web-dist/chunks/Accordion-w8zke8fa.js +37 -0
- package/web-dist/chunks/{Accordion-3e60xwvy.js → Accordion-wkqemqjw.js} +1 -1
- package/web-dist/chunks/{Accordion-vwqf8kn1.js → Accordion-x9sb23p3.js} +3 -3
- package/web-dist/chunks/{Accordion-xhkphta6.js → Accordion-y6sg47rv.js} +1 -1
- package/web-dist/chunks/{Accordion-mw8zh0vs.js → Accordion-yannd7r3.js} +4 -4
- package/web-dist/chunks/{Accordion-457amtv7.js → Accordion-z3m3wvfz.js} +6 -1580
- package/web-dist/chunks/{Accordion-pvcdvh3w.js → Accordion-zagrbkq1.js} +2 -2
- package/web-dist/chunks/{Accordion-2jcas7qq.js → Accordion-zays65re.js} +5 -5
- package/web-dist/chunks/{RichTextClient-w75r2x97.js → RichTextClient-qd6gmm0x.js} +12 -11
- package/web-dist/chunks/{Video.native-bb9g33nd.js → Video.native-7zsbp5vg.js} +7 -6
- package/web-dist/components/accordion/Accordion.js +6 -5
- package/web-dist/components/accordion-item/AccordionItem.js +6 -5
- package/web-dist/components/activity-indicator/ActivityIndicator.js +1 -1
- package/web-dist/components/app-bar/AppBar.js +8 -7
- package/web-dist/components/app-header/AppHeader.js +8 -7
- package/web-dist/components/app-shell/AppShell.js +3 -2
- package/web-dist/components/audio/Audio.js +6 -5
- package/web-dist/components/auth-screen/AuthScreen.js +11 -10
- package/web-dist/components/avatar/Avatar.js +6 -5
- package/web-dist/components/avatar-group/AvatarGroup.js +6 -5
- package/web-dist/components/badge/Badge.js +2 -2
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +11 -10
- package/web-dist/components/bottom-sheet/BottomSheet.js +4 -3
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +4 -3
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +4 -3
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +4 -3
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +4 -3
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +4 -3
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +6 -5
- package/web-dist/components/button/Button.js +4 -3
- package/web-dist/components/button-group/ButtonGroup.js +4 -3
- package/web-dist/components/calendar/Calendar.js +8 -7
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +11 -10
- package/web-dist/components/card/Card.js +10 -9
- package/web-dist/components/card-back/CardBack.js +2 -2
- package/web-dist/components/card-hand/CardHand.js +2 -2
- package/web-dist/components/chat-list-item/ChatListItem.js +8 -7
- package/web-dist/components/checkbox/Checkbox.js +5 -4
- package/web-dist/components/checkbox-group/CheckboxGroup.js +5 -4
- package/web-dist/components/chess-board/ChessBoard.js +4 -3
- package/web-dist/components/chip/Chip.js +6 -5
- package/web-dist/components/chip-group/ChipGroup.js +6 -5
- package/web-dist/components/collection-editor/CollectionEditor.js +10 -9
- package/web-dist/components/color-hue-scale/ColorHueScale.js +17 -15
- package/web-dist/components/color-picker/ColorPicker.js +17 -15
- package/web-dist/components/color-tone/ColorTone.js +17 -15
- package/web-dist/components/color-wheel/ColorWheel.js +17 -15
- package/web-dist/components/content-rail/ContentRail.js +5 -4
- package/web-dist/components/data-table/DataTable.js +16 -15
- package/web-dist/components/date-picker/DatePicker.js +10 -9
- package/web-dist/components/dialog/Dialog.js +5 -4
- package/web-dist/components/divider/Divider.js +3 -2
- package/web-dist/components/empty-state/EmptyState.js +11 -10
- package/web-dist/components/explorer/Explorer.js +8 -7
- package/web-dist/components/field/Field.js +5 -4
- package/web-dist/components/file-explorer/FileExplorer.js +8 -7
- package/web-dist/components/flat-list/FlatList.js +6 -5
- package/web-dist/components/flow-canvas/FlowCanvas.d.ts +7 -0
- package/web-dist/components/flow-canvas/FlowCanvas.dependency-0.d.ts +27 -0
- package/web-dist/components/flow-canvas/FlowCanvas.dependency-1.d.ts +3 -0
- package/web-dist/components/flow-canvas/FlowCanvas.js +513 -0
- package/web-dist/components/flow-canvas/FlowCanvas.types-0.d.ts +92 -0
- package/web-dist/components/flow-canvas/index.d.ts +2 -0
- package/web-dist/components/flow-canvas/index.js +2 -0
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +11 -10
- package/web-dist/components/form/Form.js +7 -6
- package/web-dist/components/form-actions/FormActions.js +7 -6
- package/web-dist/components/form-error/FormError.js +7 -6
- package/web-dist/components/game/Game.js +4 -3
- package/web-dist/components/game-entity/GameEntity.js +4 -3
- package/web-dist/components/game-field/GameField.js +4 -3
- package/web-dist/components/game-input-zone/GameInputZone.js +4 -3
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +4 -3
- package/web-dist/components/game-overlay/GameOverlay.js +4 -3
- package/web-dist/components/gradient/Gradient.js +4 -3
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +4 -3
- package/web-dist/components/graph-node/GraphNode.d.ts +7 -0
- package/web-dist/components/graph-node/GraphNode.dependency-0.d.ts +27 -0
- package/web-dist/components/graph-node/GraphNode.dependency-1.d.ts +3 -0
- package/web-dist/components/graph-node/GraphNode.dependency-2.d.ts +5 -0
- package/web-dist/components/graph-node/GraphNode.js +20 -0
- package/web-dist/components/graph-node/GraphNode.types-0.d.ts +46 -0
- package/web-dist/components/graph-node/index.d.ts +2 -0
- package/web-dist/components/graph-node/index.js +2 -0
- package/web-dist/components/grid/Grid.js +3 -2
- package/web-dist/components/grid-line-overlay/GridLineOverlay.js +2 -2
- package/web-dist/components/grid-ruler/GridRuler.js +2 -2
- package/web-dist/components/grid-view/GridView.d.ts +1 -1
- package/web-dist/components/grid-view/GridView.js +2 -1
- package/web-dist/components/grid-view/GridView.types-0.d.ts +21 -0
- package/web-dist/components/heading/Heading.js +2 -2
- package/web-dist/components/hero/Hero.js +10 -9
- package/web-dist/components/icon/Icon.js +2 -2
- package/web-dist/components/icon-button/IconButton.js +4 -3
- package/web-dist/components/image/Image.js +5 -4
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +2 -2
- package/web-dist/components/link/Link.js +2 -2
- package/web-dist/components/list/List.js +6 -5
- package/web-dist/components/list-item/ListItem.js +6 -5
- package/web-dist/components/list-section/ListSection.js +6 -5
- package/web-dist/components/master-detail/MasterDetail.js +3 -2
- package/web-dist/components/matrix-grid/MatrixGrid.js +5 -4
- package/web-dist/components/media-card/MediaCard.js +10 -9
- package/web-dist/components/media-explorer/MediaExplorer.js +8 -7
- package/web-dist/components/message-bubble/MessageBubble.js +8 -7
- package/web-dist/components/metric-card/MetricCard.js +10 -9
- package/web-dist/components/missing-element/MissingElement.js +5 -4
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +11 -10
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +11 -10
- package/web-dist/components/opening-book/OpeningBook.js +4 -3
- package/web-dist/components/otp-form/OtpForm.js +11 -10
- package/web-dist/components/pagination/Pagination.js +5 -4
- package/web-dist/components/palette-item/PaletteItem.js +10 -9
- package/web-dist/components/playing-card/PlayingCard.js +2 -2
- package/web-dist/components/poker-training-table/PokerTrainingTable.js +2 -2
- package/web-dist/components/popover/Popover.js +1 -1
- package/web-dist/components/popover-menu/PopoverMenu.js +5 -4
- package/web-dist/components/post-card/PostCard.js +10 -9
- package/web-dist/components/product-card/ProductCard.js +10 -9
- package/web-dist/components/progress/Progress.js +5 -4
- package/web-dist/components/progress-ring/ProgressRing.js +5 -4
- package/web-dist/components/radio/Radio.js +6 -5
- package/web-dist/components/radio-group/RadioGroup.js +6 -5
- package/web-dist/components/rating/Rating.js +4 -3
- package/web-dist/components/reader/Reader.js +11 -10
- package/web-dist/components/rich-text/RichText.js +3 -3
- package/web-dist/components/runtime-authoring-overlay/RuntimeAuthoringOverlay.js +4 -3
- package/web-dist/components/scan-overlay/ScanOverlay.js +11 -10
- package/web-dist/components/screen/Screen.js +3 -2
- package/web-dist/components/screen-section/ScreenSection.js +5 -4
- package/web-dist/components/scroll-view/ScrollView.js +3 -2
- package/web-dist/components/search-input/SearchInput.js +6 -5
- package/web-dist/components/section-header/SectionHeader.js +5 -4
- package/web-dist/components/section-list/SectionList.js +6 -5
- package/web-dist/components/select/Select.js +11 -10
- package/web-dist/components/selectable-item/SelectableItem.js +4 -3
- package/web-dist/components/selection-provider/SelectionProvider.js +4 -3
- package/web-dist/components/sign-in-form/SignInForm.js +11 -10
- package/web-dist/components/sign-up-form/SignUpForm.js +11 -10
- package/web-dist/components/skeleton/Skeleton.js +13 -12
- package/web-dist/components/skeleton-card/SkeletonCard.js +13 -12
- package/web-dist/components/skeleton-list/SkeletonList.js +13 -12
- package/web-dist/components/skeleton-text/SkeletonText.js +13 -12
- package/web-dist/components/spatial-grid/SpatialGrid.js +2 -1
- package/web-dist/components/surface/Surface.js +2 -2
- package/web-dist/components/switch/Switch.js +1 -1
- package/web-dist/components/tab/Tab.js +2 -2
- package/web-dist/components/tab-list/TabList.js +2 -2
- package/web-dist/components/tab-panel/TabPanel.js +2 -2
- package/web-dist/components/tabletop-table/TabletopTable.js +2 -2
- package/web-dist/components/tabs/Tabs.js +2 -2
- package/web-dist/components/text/Text.js +2 -2
- package/web-dist/components/text-input/TextInput.js +5 -4
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +4 -3
- package/web-dist/components/tile-grid/TileGrid.js +2 -1
- package/web-dist/components/time-grid/TimeGrid.js +3 -2
- package/web-dist/components/time-picker/TimePicker.js +7 -6
- package/web-dist/components/timeline/Timeline.js +6 -5
- package/web-dist/components/toast/Toast.js +2 -2
- package/web-dist/components/toast-provider/ToastProvider.js +2 -2
- package/web-dist/components/toolbar/Toolbar.js +11 -10
- package/web-dist/components/tree-item/TreeItem.js +9 -8
- package/web-dist/components/uploader/Uploader.js +13 -12
- package/web-dist/components/video/Video.js +7 -6
- package/web-dist/components/view/View.js +3 -2
- package/web-dist/components/zora-provider/ZoraProvider.d.ts +7 -0
- package/web-dist/components/zora-provider/ZoraProvider.dependency-0.d.ts +15 -0
- package/web-dist/components/zora-provider/ZoraProvider.js +11 -0
- package/web-dist/components/zora-provider/ZoraProvider.types-0.d.ts +19 -0
- package/web-dist/components/zora-provider/index.d.ts +2 -0
- package/web-dist/components/zora-provider/index.js +2 -0
- package/web-dist/components/zora-theme-scope/ZoraThemeScope.d.ts +14 -0
- package/web-dist/components/zora-theme-scope/ZoraThemeScope.js +11 -0
- package/web-dist/components/zora-theme-scope/ZoraThemeScope.types-0.d.ts +3 -0
- package/web-dist/components/zora-theme-scope/index.d.ts +2 -0
- package/web-dist/components/zora-theme-scope/index.js +2 -0
- package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.js +3 -2
- package/web-dist/manifest.json +1058 -832
- package/web-dist/runtime/ZoraProvider.js +4 -80
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { useZoraTheme, withZoraThemeScope, ZoraProvider, ZoraThemeScope } from './runtime.js';
|
|
1
2
|
export { compileZoraTheme } from '#zora/theme/application/use-cases/compileZoraTheme';
|
|
2
3
|
export { createZoraThemeConfig } from '#zora/theme/application/use-cases/createZoraThemeConfig';
|
|
3
4
|
export { zoraDefaultTheme } from '#zora/theme/zoraDefaultTheme';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC","sourcesContent":["export type {\n ZoraBaseProps,\n ZoraProviderProps,\n ZoraThemeScopeProps,\n ZoraToastCapability,\n} from './runtime';\nexport { useZoraTheme, withZoraThemeScope, ZoraProvider, ZoraThemeScope } from './runtime';\nexport { compileZoraTheme } from '#zora/theme/application/use-cases/compileZoraTheme';\nexport { createZoraThemeConfig } from '#zora/theme/application/use-cases/createZoraThemeConfig';\nexport { zoraDefaultTheme } from '#zora/theme/zoraDefaultTheme';\nexport type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraTheme,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationDiagnosticCode,\n ZoraThemeCompilationOptions,\n ZoraThemeId,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n ZoraThemeSwatchRole,\n ZoraThemeValueOrigin,\n} from '#zora/types/theme';\n"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { FlowPortDescriptor } from '@ankhorage/contracts/flow';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { ZoraBaseProps } from './base';
|
|
4
|
+
/** A position in the caller-owned flow coordinate space. */
|
|
5
|
+
export interface FlowPoint {
|
|
6
|
+
readonly x: number;
|
|
7
|
+
readonly y: number;
|
|
8
|
+
}
|
|
9
|
+
/** A typed connection endpoint owned by one flow node. */
|
|
10
|
+
export interface FlowPort {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly direction: 'input' | 'output';
|
|
13
|
+
readonly label: string;
|
|
14
|
+
/** The portable Contracts schema used to validate a prospective connection. */
|
|
15
|
+
readonly data?: FlowPortDescriptor['data'];
|
|
16
|
+
readonly disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** Explains why the controlled canvas refused a connection request. */
|
|
19
|
+
export type FlowConnectionRejection = 'connection_requires_distinct_nodes' | 'connection_requires_output_to_input' | 'connection_targets_disabled_port' | 'connection_types_incompatible';
|
|
20
|
+
/** A caller-owned node rendered on the flow canvas. */
|
|
21
|
+
export interface FlowNodeData {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly title: string;
|
|
24
|
+
readonly position: FlowPoint;
|
|
25
|
+
readonly ports: readonly FlowPort[];
|
|
26
|
+
readonly description?: string;
|
|
27
|
+
readonly disabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** A stable address for a typed flow port. */
|
|
30
|
+
export interface FlowPortAddress {
|
|
31
|
+
readonly nodeId: string;
|
|
32
|
+
readonly portId: string;
|
|
33
|
+
}
|
|
34
|
+
/** A directed connection from an output port to an input port. */
|
|
35
|
+
export interface FlowConnection {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly source: FlowPortAddress;
|
|
38
|
+
readonly target: FlowPortAddress;
|
|
39
|
+
readonly label?: string;
|
|
40
|
+
}
|
|
41
|
+
/** A palette entry that asks the controlled host to insert a node. */
|
|
42
|
+
export interface FlowPaletteItem {
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly title: string;
|
|
45
|
+
readonly description?: string;
|
|
46
|
+
readonly disabled?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** The controlled viewport for pan and zoom. */
|
|
49
|
+
export interface FlowViewport {
|
|
50
|
+
readonly pan: FlowPoint;
|
|
51
|
+
readonly zoom: number;
|
|
52
|
+
}
|
|
53
|
+
/** State given to a custom node renderer. */
|
|
54
|
+
export interface FlowNodeRenderState {
|
|
55
|
+
readonly selected: boolean;
|
|
56
|
+
}
|
|
57
|
+
/** Public controlled interaction contract for the shared React Native and React Native Web canvas. */
|
|
58
|
+
export interface FlowCanvasProps extends ZoraBaseProps {
|
|
59
|
+
readonly nodes: readonly FlowNodeData[];
|
|
60
|
+
readonly connections: readonly FlowConnection[];
|
|
61
|
+
readonly viewport: FlowViewport;
|
|
62
|
+
readonly paletteItems?: readonly FlowPaletteItem[];
|
|
63
|
+
readonly selectedNodeIds?: readonly string[];
|
|
64
|
+
readonly readOnly?: boolean;
|
|
65
|
+
readonly canUndo?: boolean;
|
|
66
|
+
readonly canRedo?: boolean;
|
|
67
|
+
readonly minZoom?: number;
|
|
68
|
+
readonly maxZoom?: number;
|
|
69
|
+
readonly renderNode?: (node: FlowNodeData, state: FlowNodeRenderState) => React.ReactNode;
|
|
70
|
+
readonly onNodeSelectionChange?: (nodeIds: readonly string[]) => void;
|
|
71
|
+
readonly onNodesMove?: (nodes: readonly FlowNodeData[]) => void;
|
|
72
|
+
readonly onViewportChange?: (viewport: FlowViewport) => void;
|
|
73
|
+
readonly onConnect?: (source: FlowPortAddress, target: FlowPortAddress) => void;
|
|
74
|
+
readonly onConnectionRejected?: (source: FlowPortAddress, target: FlowPortAddress, reason: FlowConnectionRejection) => void;
|
|
75
|
+
readonly onDisconnect?: (connectionId: string) => void;
|
|
76
|
+
readonly onInsert?: (paletteItemId: string) => void;
|
|
77
|
+
readonly onNodesDelete?: (nodeIds: readonly string[]) => void;
|
|
78
|
+
readonly onUndo?: () => void;
|
|
79
|
+
readonly onRedo?: () => void;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,4DAA4D;AAC5D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0DAA0D;AAC1D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,uEAAuE;AACvE,MAAM,MAAM,uBAAuB,GAC/B,oCAAoC,GACpC,qCAAqC,GACrC,kCAAkC,GAClC,+BAA+B,CAAC;AAEpC,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,QAAQ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CAAC;IACpD,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/types/flow.ts"],"names":[],"mappings":"","sourcesContent":["import type { FlowPortDescriptor } from '@ankhorage/contracts/flow';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\n/** A position in the caller-owned flow coordinate space. */\nexport interface FlowPoint {\n readonly x: number;\n readonly y: number;\n}\n\n/** A typed connection endpoint owned by one flow node. */\nexport interface FlowPort {\n readonly id: string;\n readonly direction: 'input' | 'output';\n readonly label: string;\n /** The portable Contracts schema used to validate a prospective connection. */\n readonly data?: FlowPortDescriptor['data'];\n readonly disabled?: boolean;\n}\n\n/** Explains why the controlled canvas refused a connection request. */\nexport type FlowConnectionRejection =\n | 'connection_requires_distinct_nodes'\n | 'connection_requires_output_to_input'\n | 'connection_targets_disabled_port'\n | 'connection_types_incompatible';\n\n/** A caller-owned node rendered on the flow canvas. */\nexport interface FlowNodeData {\n readonly id: string;\n readonly title: string;\n readonly position: FlowPoint;\n readonly ports: readonly FlowPort[];\n readonly description?: string;\n readonly disabled?: boolean;\n}\n\n/** A stable address for a typed flow port. */\nexport interface FlowPortAddress {\n readonly nodeId: string;\n readonly portId: string;\n}\n\n/** A directed connection from an output port to an input port. */\nexport interface FlowConnection {\n readonly id: string;\n readonly source: FlowPortAddress;\n readonly target: FlowPortAddress;\n readonly label?: string;\n}\n\n/** A palette entry that asks the controlled host to insert a node. */\nexport interface FlowPaletteItem {\n readonly id: string;\n readonly title: string;\n readonly description?: string;\n readonly disabled?: boolean;\n}\n\n/** The controlled viewport for pan and zoom. */\nexport interface FlowViewport {\n readonly pan: FlowPoint;\n readonly zoom: number;\n}\n\n/** State given to a custom node renderer. */\nexport interface FlowNodeRenderState {\n readonly selected: boolean;\n}\n\n/** Public controlled interaction contract for the shared React Native and React Native Web canvas. */\nexport interface FlowCanvasProps extends ZoraBaseProps {\n readonly nodes: readonly FlowNodeData[];\n readonly connections: readonly FlowConnection[];\n readonly viewport: FlowViewport;\n readonly paletteItems?: readonly FlowPaletteItem[];\n readonly selectedNodeIds?: readonly string[];\n readonly readOnly?: boolean;\n readonly canUndo?: boolean;\n readonly canRedo?: boolean;\n readonly minZoom?: number;\n readonly maxZoom?: number;\n readonly renderNode?: (node: FlowNodeData, state: FlowNodeRenderState) => React.ReactNode;\n readonly onNodeSelectionChange?: (nodeIds: readonly string[]) => void;\n readonly onNodesMove?: (nodes: readonly FlowNodeData[]) => void;\n readonly onViewportChange?: (viewport: FlowViewport) => void;\n readonly onConnect?: (source: FlowPortAddress, target: FlowPortAddress) => void;\n readonly onConnectionRejected?: (\n source: FlowPortAddress,\n target: FlowPortAddress,\n reason: FlowConnectionRejection,\n ) => void;\n readonly onDisconnect?: (connectionId: string) => void;\n readonly onInsert?: (paletteItemId: string) => void;\n readonly onNodesDelete?: (nodeIds: readonly string[]) => void;\n readonly onUndo?: () => void;\n readonly onRedo?: () => void;\n}\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ZoraBaseProps } from './base';
|
|
3
|
+
import type { IconProps } from './icon';
|
|
4
|
+
/** A node-local point in unscaled pixels, measured from the node's top-left corner. */
|
|
5
|
+
export interface GraphNodePoint {
|
|
6
|
+
readonly x: number;
|
|
7
|
+
readonly y: number;
|
|
8
|
+
}
|
|
9
|
+
/** An optional connection anchor presented by a GraphNode; connection rules belong to the caller. */
|
|
10
|
+
export interface GraphNodePort {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly direction: 'input' | 'output';
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly disabled?: boolean;
|
|
15
|
+
readonly testID?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Generic, cross-platform node presentation shared by graph and canvas hosts. */
|
|
18
|
+
export interface GraphNodeProps extends ZoraBaseProps {
|
|
19
|
+
/** Optional default header title. Omit all header props to compose the entire card body. */
|
|
20
|
+
readonly title?: string;
|
|
21
|
+
readonly description?: string;
|
|
22
|
+
/** Leading icon source, rendered with the ZORA Icon. */
|
|
23
|
+
readonly icon?: IconProps;
|
|
24
|
+
/** Trailing caller-supplied badge content, rendered with the ZORA Badge. */
|
|
25
|
+
readonly badge?: React.ReactNode;
|
|
26
|
+
/** Arbitrary ZORA content composed beneath the title. */
|
|
27
|
+
readonly children?: React.ReactNode;
|
|
28
|
+
readonly ports?: readonly GraphNodePort[];
|
|
29
|
+
readonly selected?: boolean;
|
|
30
|
+
readonly disabled?: boolean;
|
|
31
|
+
readonly readOnly?: boolean;
|
|
32
|
+
/** Unscaled node width in pixels; defaults to 224. */
|
|
33
|
+
readonly width?: number;
|
|
34
|
+
/** Controlled press. Omit it, with `onMove`, to leave pointer handling to the host. */
|
|
35
|
+
readonly onPress?: () => void;
|
|
36
|
+
/** Controlled drag in screen-pixel deltas. Omit it to attach no gesture handlers. */
|
|
37
|
+
readonly onMove?: (delta: GraphNodePoint) => void;
|
|
38
|
+
readonly onPortPress?: (portId: string) => void;
|
|
39
|
+
/** Reports a port's anchor center in node-local pixels whenever layout changes. */
|
|
40
|
+
readonly onPortLayout?: (portId: string, anchor: GraphNodePoint) => void;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=graph-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-node.d.ts","sourceRoot":"","sources":["../../src/types/graph-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAA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,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,mFAAmF;IACnF,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-node.js","sourceRoot":"","sources":["../../src/types/graph-node.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\nimport type { IconProps } from './icon';\n\n/** A node-local point in unscaled pixels, measured from the node's top-left corner. */\nexport interface GraphNodePoint {\n readonly x: number;\n readonly y: number;\n}\n\n/** An optional connection anchor presented by a GraphNode; connection rules belong to the caller. */\nexport interface GraphNodePort {\n readonly id: string;\n readonly direction: 'input' | 'output';\n readonly label: string;\n readonly disabled?: boolean;\n readonly testID?: string;\n}\n\n/** Generic, cross-platform node presentation shared by graph and canvas hosts. */\nexport interface GraphNodeProps extends ZoraBaseProps {\n /** Optional default header title. Omit all header props to compose the entire card body. */\n readonly title?: string;\n readonly description?: string;\n /** Leading icon source, rendered with the ZORA Icon. */\n readonly icon?: IconProps;\n /** Trailing caller-supplied badge content, rendered with the ZORA Badge. */\n readonly badge?: React.ReactNode;\n /** Arbitrary ZORA content composed beneath the title. */\n readonly children?: React.ReactNode;\n readonly ports?: readonly GraphNodePort[];\n readonly selected?: boolean;\n readonly disabled?: boolean;\n readonly readOnly?: boolean;\n /** Unscaled node width in pixels; defaults to 224. */\n readonly width?: number;\n /** Controlled press. Omit it, with `onMove`, to leave pointer handling to the host. */\n readonly onPress?: () => void;\n /** Controlled drag in screen-pixel deltas. Omit it to attach no gesture handlers. */\n readonly onMove?: (delta: GraphNodePoint) => void;\n readonly onPortPress?: (portId: string) => void;\n /** Reports a port's anchor center in node-local pixels whenever layout changes. */\n readonly onPortLayout?: (portId: string, anchor: GraphNodePoint) => void;\n}\n"]}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { GridRectItem, GridViewport, GridViewportConstraints, GridZoomLimits } from '@ankhorage/grid-view';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { ZoraBaseProps } from './base';
|
|
4
|
+
/** Pixel mapping handed to a world layer so it can draw in the same coordinates as the items. */
|
|
5
|
+
export interface GridWorldLayerContext {
|
|
6
|
+
/** Pixel position of world coordinate (0, 0) inside the layer. */
|
|
7
|
+
readonly origin: {
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly y: number;
|
|
10
|
+
};
|
|
11
|
+
readonly pixelsPerUnitX: number;
|
|
12
|
+
readonly pixelsPerUnitY: number;
|
|
13
|
+
/** Pixel size of the scrollable layer. */
|
|
14
|
+
readonly width: number;
|
|
15
|
+
readonly height: number;
|
|
16
|
+
}
|
|
4
17
|
/** The renderer owns presentation only; world geometry comes from grid-view. */
|
|
5
18
|
export interface GridViewProps extends ZoraBaseProps {
|
|
6
19
|
items: readonly GridRectItem[];
|
|
@@ -28,6 +41,13 @@ export interface GridViewProps extends ZoraBaseProps {
|
|
|
28
41
|
revealPaddingPixels?: number;
|
|
29
42
|
/** Keeps the rendered viewport fixed while preserving interaction within rendered items. */
|
|
30
43
|
viewportInteraction?: 'enabled' | 'locked';
|
|
44
|
+
/** Shows or hides the built-in pan and zoom buttons while keeping scroll and pinch interaction. */
|
|
45
|
+
viewportControls?: 'visible' | 'hidden';
|
|
46
|
+
/**
|
|
47
|
+
* Renders content in world coordinates beneath the items, scrolling and zooming with them.
|
|
48
|
+
* The layer is not virtualized and does not receive touches outside its own children.
|
|
49
|
+
*/
|
|
50
|
+
renderWorldLayer?: (layer: GridWorldLayerContext) => React.ReactNode;
|
|
31
51
|
onViewportChange?: (viewport: GridViewport) => void;
|
|
32
52
|
onVisibleItemIdsChange?: (ids: readonly string[]) => void;
|
|
33
53
|
renderItem: (item: GridRectItem) => React.ReactNode;
|
|
@@ -69,6 +89,8 @@ export interface GridPendingScroll {
|
|
|
69
89
|
readonly animated: boolean;
|
|
70
90
|
readonly expiresAt: number;
|
|
71
91
|
readonly target: number;
|
|
92
|
+
/** Keeps ownership until the native offset returns to its locked-gesture restore target. */
|
|
93
|
+
readonly restoring?: boolean;
|
|
72
94
|
}
|
|
73
95
|
/** Native capabilities and clock used by the programmatic-versus-user scroll arbiter. */
|
|
74
96
|
export interface GridScrollSyncOptions {
|
|
@@ -76,8 +98,8 @@ export interface GridScrollSyncOptions {
|
|
|
76
98
|
readonly scrollTo: (axis: GridScrollAxis, offset: number, animated: boolean) => void;
|
|
77
99
|
/** Reports a genuine user scroll as the pixel displacement of the native offset. */
|
|
78
100
|
readonly onUserScroll: (axis: GridScrollAxis, displacement: number) => void;
|
|
79
|
-
/**
|
|
80
|
-
readonly
|
|
101
|
+
/** Enables browser scroll events that lack native drag lifecycle signals. */
|
|
102
|
+
readonly acceptUnownedScroll?: boolean;
|
|
81
103
|
readonly now?: () => number;
|
|
82
104
|
readonly schedule?: (callback: () => void, delay: number) => ReturnType<typeof setTimeout>;
|
|
83
105
|
readonly cancel?: (handle: ReturnType<typeof setTimeout>) => void;
|
|
@@ -88,11 +110,13 @@ export interface GridScrollSync {
|
|
|
88
110
|
readonly isCurrent: (position: GridScrollPosition) => boolean;
|
|
89
111
|
/** Moves native scrolling to a viewport-derived position. */
|
|
90
112
|
readonly request: (position: GridScrollPosition, animated: boolean) => void;
|
|
113
|
+
/** Restores one native axis after a descendant gesture displaced it without publishing a pan. */
|
|
114
|
+
readonly restore: (axis: GridScrollAxis, offset: number, target: number) => void;
|
|
91
115
|
/** Routes one native scroll event. */
|
|
92
116
|
readonly scrolled: (axis: GridScrollAxis, offset: number) => void;
|
|
93
117
|
/** Hands an axis to the user, adopting the native offset at the start of their drag. */
|
|
94
118
|
readonly dragBegan: (axis: GridScrollAxis, offset: number) => void;
|
|
95
|
-
/** Adopts the final native offset
|
|
119
|
+
/** Adopts the final native offset after a genuine user gesture ends. */
|
|
96
120
|
readonly scrollEnded: (axis: GridScrollAxis, offset: number) => void;
|
|
97
121
|
/** Cancels every pending settle timer. */
|
|
98
122
|
readonly dispose: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-view.d.ts","sourceRoot":"","sources":["../../src/types/grid-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,gFAAgF;AAChF,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,qFAAqF;IACrF,eAAe,CAAC,EAAE,OAAO,CACvB,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAChF,CAAC;IACF,uFAAuF;IACvF,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;IAC9C,6EAA6E;IAC7E,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kGAAkG;IAClG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4FAA4F;IAC5F,mBAAmB,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC3C,gBAAgB,CAA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MAAM,KAAK,IAAI,CAAC;IACnE,wEAAwE;IACxE,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-view.js","sourceRoot":"","sources":["../../src/types/grid-view.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n GridRectItem,\n GridViewport,\n GridViewportConstraints,\n GridZoomLimits,\n} from '@ankhorage/grid-view';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\n/** The renderer owns presentation only; world geometry comes from grid-view. */\nexport interface GridViewProps extends ZoraBaseProps {\n items: readonly GridRectItem[];\n contentWidth: number;\n contentHeight: number;\n width: number;\n height: number;\n /**\n * Canonical controlled world viewport. Supplying this value makes `onViewportChange`\n * report interaction proposals without mutating renderer-owned state.\n */\n viewport?: GridViewport;\n /** Initial world position and independent axis scales for uncontrolled rendering. */\n defaultViewport?: Partial<\n Pick<GridViewport, 'offsetX' | 'offsetY' | 'pixelsPerUnitX' | 'pixelsPerUnitY'>\n >;\n /** Finite world bounds and optional overscroll for panning and focused-item reveal. */\n viewportConstraints?: GridViewportConstraints;\n /** Independent X/Y scale limits applied to focal-point zoom interactions. */\n zoomLimits?: GridZoomLimits;\n /** @deprecated Use `defaultViewport` for new code. */\n zoom?: number;\n overscanPixels?: number;\n /** Stable item identity that must be scrolled into view without duplicating viewport geometry. */\n focusedItemId?: string;\n /** Pixel inset retained around a revealed focused item. */\n revealPaddingPixels?: number;\n /** Keeps the rendered viewport fixed while preserving interaction within rendered items. */\n viewportInteraction?: 'enabled' | 'locked';\n onViewportChange?: (viewport: GridViewport) => void;\n onVisibleItemIdsChange?: (ids: readonly string[]) => void;\n renderItem: (item: GridRectItem) => React.ReactNode;\n}\n\n/** An item needs a stable ID; visual positioning belongs to the TileGrid composition. */\nexport interface TileGridItem {\n readonly id: string;\n}\n\n/** Reusable tile presentation based on the generic world/viewport engine. */\nexport interface TileGridProps extends ZoraBaseProps {\n items: readonly TileGridItem[];\n width?: number;\n height?: number;\n tileSize?: number;\n gap?: number;\n zoom?: number;\n viewport?: GridViewport;\n defaultViewport?: Partial<\n Pick<GridViewport, 'offsetX' | 'offsetY' | 'pixelsPerUnitX' | 'pixelsPerUnitY'>\n >;\n viewportConstraints?: GridViewportConstraints;\n zoomLimits?: GridZoomLimits;\n overscanPixels?: number;\n focusedItemId?: string;\n revealPaddingPixels?: number;\n /** Reports the same measured column count used to position tiles. */\n onColumnsChange?: (columns: number) => void;\n onViewportChange?: (viewport: GridViewport) => void;\n onVisibleItemIdsChange?: (ids: readonly string[]) => void;\n renderItem: (item: TileGridItem) => React.ReactNode;\n}\n\n/** The two independent native scroll axes that back a GridView viewport. */\nexport type GridScrollAxis = 'x' | 'y';\n\n/** A physical native scroll position in pixels. */\nexport interface GridScrollPosition {\n readonly x: number;\n readonly y: number;\n}\n\n/** A programmatic native scroll request that GridView is still waiting to observe. */\nexport interface GridPendingScroll {\n readonly animated: boolean;\n readonly expiresAt: number;\n readonly target: number;\n}\n\n/** Native capabilities and clock used by the programmatic-versus-user scroll arbiter. */\nexport interface GridScrollSyncOptions {\n /** Requests a native scroll of one axis. */\n readonly scrollTo: (axis: GridScrollAxis, offset: number, animated: boolean) => void;\n /** Reports a genuine user scroll as the pixel displacement of the native offset. */\n readonly onUserScroll: (axis: GridScrollAxis, displacement: number) => void;\n /**
|
|
1
|
+
{"version":3,"file":"grid-view.js","sourceRoot":"","sources":["../../src/types/grid-view.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n GridRectItem,\n GridViewport,\n GridViewportConstraints,\n GridZoomLimits,\n} from '@ankhorage/grid-view';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\n/** Pixel mapping handed to a world layer so it can draw in the same coordinates as the items. */\nexport interface GridWorldLayerContext {\n /** Pixel position of world coordinate (0, 0) inside the layer. */\n readonly origin: { readonly x: number; readonly y: number };\n readonly pixelsPerUnitX: number;\n readonly pixelsPerUnitY: number;\n /** Pixel size of the scrollable layer. */\n readonly width: number;\n readonly height: number;\n}\n\n/** The renderer owns presentation only; world geometry comes from grid-view. */\nexport interface GridViewProps extends ZoraBaseProps {\n items: readonly GridRectItem[];\n contentWidth: number;\n contentHeight: number;\n width: number;\n height: number;\n /**\n * Canonical controlled world viewport. Supplying this value makes `onViewportChange`\n * report interaction proposals without mutating renderer-owned state.\n */\n viewport?: GridViewport;\n /** Initial world position and independent axis scales for uncontrolled rendering. */\n defaultViewport?: Partial<\n Pick<GridViewport, 'offsetX' | 'offsetY' | 'pixelsPerUnitX' | 'pixelsPerUnitY'>\n >;\n /** Finite world bounds and optional overscroll for panning and focused-item reveal. */\n viewportConstraints?: GridViewportConstraints;\n /** Independent X/Y scale limits applied to focal-point zoom interactions. */\n zoomLimits?: GridZoomLimits;\n /** @deprecated Use `defaultViewport` for new code. */\n zoom?: number;\n overscanPixels?: number;\n /** Stable item identity that must be scrolled into view without duplicating viewport geometry. */\n focusedItemId?: string;\n /** Pixel inset retained around a revealed focused item. */\n revealPaddingPixels?: number;\n /** Keeps the rendered viewport fixed while preserving interaction within rendered items. */\n viewportInteraction?: 'enabled' | 'locked';\n /** Shows or hides the built-in pan and zoom buttons while keeping scroll and pinch interaction. */\n viewportControls?: 'visible' | 'hidden';\n /**\n * Renders content in world coordinates beneath the items, scrolling and zooming with them.\n * The layer is not virtualized and does not receive touches outside its own children.\n */\n renderWorldLayer?: (layer: GridWorldLayerContext) => React.ReactNode;\n onViewportChange?: (viewport: GridViewport) => void;\n onVisibleItemIdsChange?: (ids: readonly string[]) => void;\n renderItem: (item: GridRectItem) => React.ReactNode;\n}\n\n/** An item needs a stable ID; visual positioning belongs to the TileGrid composition. */\nexport interface TileGridItem {\n readonly id: string;\n}\n\n/** Reusable tile presentation based on the generic world/viewport engine. */\nexport interface TileGridProps extends ZoraBaseProps {\n items: readonly TileGridItem[];\n width?: number;\n height?: number;\n tileSize?: number;\n gap?: number;\n zoom?: number;\n viewport?: GridViewport;\n defaultViewport?: Partial<\n Pick<GridViewport, 'offsetX' | 'offsetY' | 'pixelsPerUnitX' | 'pixelsPerUnitY'>\n >;\n viewportConstraints?: GridViewportConstraints;\n zoomLimits?: GridZoomLimits;\n overscanPixels?: number;\n focusedItemId?: string;\n revealPaddingPixels?: number;\n /** Reports the same measured column count used to position tiles. */\n onColumnsChange?: (columns: number) => void;\n onViewportChange?: (viewport: GridViewport) => void;\n onVisibleItemIdsChange?: (ids: readonly string[]) => void;\n renderItem: (item: TileGridItem) => React.ReactNode;\n}\n\n/** The two independent native scroll axes that back a GridView viewport. */\nexport type GridScrollAxis = 'x' | 'y';\n\n/** A physical native scroll position in pixels. */\nexport interface GridScrollPosition {\n readonly x: number;\n readonly y: number;\n}\n\n/** A programmatic native scroll request that GridView is still waiting to observe. */\nexport interface GridPendingScroll {\n readonly animated: boolean;\n readonly expiresAt: number;\n readonly target: number;\n /** Keeps ownership until the native offset returns to its locked-gesture restore target. */\n readonly restoring?: boolean;\n}\n\n/** Native capabilities and clock used by the programmatic-versus-user scroll arbiter. */\nexport interface GridScrollSyncOptions {\n /** Requests a native scroll of one axis. */\n readonly scrollTo: (axis: GridScrollAxis, offset: number, animated: boolean) => void;\n /** Reports a genuine user scroll as the pixel displacement of the native offset. */\n readonly onUserScroll: (axis: GridScrollAxis, displacement: number) => void;\n /** Enables browser scroll events that lack native drag lifecycle signals. */\n readonly acceptUnownedScroll?: boolean;\n readonly now?: () => number;\n readonly schedule?: (callback: () => void, delay: number) => ReturnType<typeof setTimeout>;\n readonly cancel?: (handle: ReturnType<typeof setTimeout>) => void;\n}\n\n/** Separates echoes of programmatic scrolls from user scrolling, independently per axis. */\nexport interface GridScrollSync {\n /** True when the baseline already matches the position within native tolerance. */\n readonly isCurrent: (position: GridScrollPosition) => boolean;\n /** Moves native scrolling to a viewport-derived position. */\n readonly request: (position: GridScrollPosition, animated: boolean) => void;\n /** Restores one native axis after a descendant gesture displaced it without publishing a pan. */\n readonly restore: (axis: GridScrollAxis, offset: number, target: number) => void;\n /** Routes one native scroll event. */\n readonly scrolled: (axis: GridScrollAxis, offset: number) => void;\n /** Hands an axis to the user, adopting the native offset at the start of their drag. */\n readonly dragBegan: (axis: GridScrollAxis, offset: number) => void;\n /** Adopts the final native offset after a genuine user gesture ends. */\n readonly scrollEnded: (axis: GridScrollAxis, offset: number) => void;\n /** Cancels every pending settle timer. */\n readonly dispose: () => void;\n}\n"]}
|
package/dist/types/layout.d.ts
CHANGED
|
@@ -26,5 +26,7 @@ export interface ScreenProps extends ZoraBaseProps {
|
|
|
26
26
|
export interface ScrollGestureLock {
|
|
27
27
|
/** Suspends scrolling until the returned release function runs; releasing twice is harmless. */
|
|
28
28
|
readonly acquire: () => () => void;
|
|
29
|
+
/** Reports whether this container currently has an active descendant gesture. */
|
|
30
|
+
readonly isActive?: () => boolean;
|
|
29
31
|
}
|
|
30
32
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/types/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,IAAI,mBAAmB,EACnC,SAAS,IAAI,gBAAgB,EAC7B,eAAe,IAAI,sBAAsB,EACzC,SAAS,IAAI,gBAAgB,EAC9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAC/F,MAAM,WAAW,eACf,SAAQ,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AAG,MAAM,CAAC;AAE7D,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAC/F,MAAM,WAAW,eACf,SAAQ,aAAa,EAAE,IAAI,CAAC,sBAAsB,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CAAG;AACvF,MAAM,WAAW,YACf,SAAQ,aAAa,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AACzE,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAE/F,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAED,kGAAkG;AAClG,MAAM,WAAW,iBAAiB;IAChC,gGAAgG;IAChG,QAAQ,CAAC,OAAO,EAAE,MAAM,MAAM,IAAI,CAAC;IACnC,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC;CACnC"}
|
package/dist/types/layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/types/layout.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n DividerProps as SurfaceDividerProps,\n GridProps as SurfaceGridProps,\n ScrollViewProps as SurfaceScrollViewProps,\n ViewProps as SurfaceViewProps,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type ZoraContentWidth = 'narrow' | 'default' | 'wide';\n\nexport interface ViewProps extends ZoraBaseProps, Omit<SurfaceViewProps, 'mode' | 'themeId'> {}\nexport interface ScrollViewProps\n extends ZoraBaseProps, Omit<SurfaceScrollViewProps, 'mode' | 'testID' | 'themeId'> {}\nexport interface DividerProps\n extends ZoraBaseProps, Omit<SurfaceDividerProps, 'mode' | 'themeId'> {}\nexport interface GridProps extends ZoraBaseProps, Omit<SurfaceGridProps, 'mode' | 'themeId'> {}\n\nexport interface AppShellProps extends ZoraBaseProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n overlay?: React.ReactNode;\n}\n\nexport interface ScreenProps extends ZoraBaseProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n scroll?: boolean;\n width?: ZoraContentWidth;\n}\n\n/** Exclusive-gesture coordination between a ZORA scroll container and its descendant surfaces. */\nexport interface ScrollGestureLock {\n /** Suspends scrolling until the returned release function runs; releasing twice is harmless. */\n readonly acquire: () => () => void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/types/layout.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n DividerProps as SurfaceDividerProps,\n GridProps as SurfaceGridProps,\n ScrollViewProps as SurfaceScrollViewProps,\n ViewProps as SurfaceViewProps,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type ZoraContentWidth = 'narrow' | 'default' | 'wide';\n\nexport interface ViewProps extends ZoraBaseProps, Omit<SurfaceViewProps, 'mode' | 'themeId'> {}\nexport interface ScrollViewProps\n extends ZoraBaseProps, Omit<SurfaceScrollViewProps, 'mode' | 'testID' | 'themeId'> {}\nexport interface DividerProps\n extends ZoraBaseProps, Omit<SurfaceDividerProps, 'mode' | 'themeId'> {}\nexport interface GridProps extends ZoraBaseProps, Omit<SurfaceGridProps, 'mode' | 'themeId'> {}\n\nexport interface AppShellProps extends ZoraBaseProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n overlay?: React.ReactNode;\n}\n\nexport interface ScreenProps extends ZoraBaseProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n scroll?: boolean;\n width?: ZoraContentWidth;\n}\n\n/** Exclusive-gesture coordination between a ZORA scroll container and its descendant surfaces. */\nexport interface ScrollGestureLock {\n /** Suspends scrolling until the returned release function runs; releasing twice is harmless. */\n readonly acquire: () => () => void;\n /** Reports whether this container currently has an active descendant gesture. */\n readonly isActive?: () => boolean;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "28.
|
|
4
|
+
"version": "28.11.0",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -98,6 +98,20 @@
|
|
|
98
98
|
"import": "./dist/features/bottom-sheet/public.js",
|
|
99
99
|
"default": "./dist/features/bottom-sheet/public.js"
|
|
100
100
|
},
|
|
101
|
+
"./graph-node": {
|
|
102
|
+
"react-native": "./src/features/graph-node/public.ts",
|
|
103
|
+
"browser": "./src/features/graph-node/public.ts",
|
|
104
|
+
"types": "./dist/features/graph-node/public.d.ts",
|
|
105
|
+
"import": "./dist/features/graph-node/public.js",
|
|
106
|
+
"default": "./dist/features/graph-node/public.js"
|
|
107
|
+
},
|
|
108
|
+
"./flow": {
|
|
109
|
+
"react-native": "./src/features/flow/public.ts",
|
|
110
|
+
"browser": "./src/features/flow/public.ts",
|
|
111
|
+
"types": "./dist/features/flow/public.d.ts",
|
|
112
|
+
"import": "./dist/features/flow/public.js",
|
|
113
|
+
"default": "./dist/features/flow/public.js"
|
|
114
|
+
},
|
|
101
115
|
"./uploader": {
|
|
102
116
|
"react-native": "./src/features/uploader/public.ts",
|
|
103
117
|
"browser": "./src/features/uploader/public.ts",
|
|
@@ -132,10 +146,11 @@
|
|
|
132
146
|
"default": "./dist/capabilities/index.js"
|
|
133
147
|
},
|
|
134
148
|
"./theme": {
|
|
135
|
-
"
|
|
149
|
+
"types": "./dist/features/theme/public.d.ts",
|
|
150
|
+
"bun": "./src/features/theme/node.ts",
|
|
136
151
|
"react-native": "./src/features/theme/public.ts",
|
|
137
152
|
"browser": "./src/features/theme/public.ts",
|
|
138
|
-
"
|
|
153
|
+
"node": "./dist/features/theme/node.js",
|
|
139
154
|
"import": "./dist/features/theme/public.js",
|
|
140
155
|
"default": "./dist/features/theme/public.js"
|
|
141
156
|
},
|
|
@@ -187,6 +202,9 @@
|
|
|
187
202
|
"test:packed-authoring-consumer": "bun scripts/verify-packed-web-consumer.ts --authoring",
|
|
188
203
|
"test:checkbox:chromium": "bun scripts/test-packed-checkbox-chromium.ts",
|
|
189
204
|
"test:chess:chromium": "bun scripts/test-chess-chromium.ts",
|
|
205
|
+
"test:flow-canvas:chromium": "bun scripts/test-flow-canvas-chromium.ts",
|
|
206
|
+
"test:flow-canvas:native": "bun scripts/test-packed-flow-canvas-native.ts",
|
|
207
|
+
"benchmark:flow-canvas": "bun scripts/benchmark-flow-canvas.ts",
|
|
190
208
|
"test:graph-view:chromium": "bun scripts/test-graph-view-chromium.ts",
|
|
191
209
|
"test:color-picker:chromium": "bun scripts/test-packed-color-picker-chromium.ts",
|
|
192
210
|
"typecheck": "bun x tsc --noEmit -p tsconfig.json && bun x tsc --noEmit -p tsconfig.scripts.json && bun x tsc -p tsconfig.typecheck.json",
|