@ankhorage/zora 28.0.0 → 28.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -1
- package/dist/features/color/ColorHexField.d.ts +1 -1
- package/dist/features/color/ColorHexField.d.ts.map +1 -1
- package/dist/features/color/ColorHexField.js +30 -3
- package/dist/features/color/ColorHexField.js.map +1 -1
- package/dist/features/color/ColorPicker.d.ts.map +1 -1
- package/dist/features/color/ColorPicker.js +124 -63
- package/dist/features/color/ColorPicker.js.map +1 -1
- package/dist/features/color/ColorWheel.d.ts.map +1 -1
- package/dist/features/color/ColorWheel.js +33 -22
- package/dist/features/color/ColorWheel.js.map +1 -1
- package/dist/features/color/ColorWheelKeyboardProxy.d.ts +1 -0
- package/dist/features/color/ColorWheelKeyboardProxy.d.ts.map +1 -1
- package/dist/features/color/ColorWheelKeyboardProxy.js.map +1 -1
- package/dist/features/color/ColorWheelKeyboardProxy.web.d.ts +1 -1
- package/dist/features/color/ColorWheelKeyboardProxy.web.d.ts.map +1 -1
- package/dist/features/color/ColorWheelKeyboardProxy.web.js +4 -4
- package/dist/features/color/ColorWheelKeyboardProxy.web.js.map +1 -1
- package/dist/features/color/ColorWheelPointerProxy.d.ts +1 -0
- package/dist/features/color/ColorWheelPointerProxy.d.ts.map +1 -1
- package/dist/features/color/ColorWheelPointerProxy.js.map +1 -1
- package/dist/features/color/ColorWheelPointerProxy.native.d.ts +3 -2
- package/dist/features/color/ColorWheelPointerProxy.native.d.ts.map +1 -1
- package/dist/features/color/ColorWheelPointerProxy.native.js +12 -3
- package/dist/features/color/ColorWheelPointerProxy.native.js.map +1 -1
- package/dist/features/color/ColorWheelPointerProxy.web.d.ts +1 -1
- package/dist/features/color/ColorWheelPointerProxy.web.d.ts.map +1 -1
- package/dist/features/color/ColorWheelPointerProxy.web.js +1 -1
- package/dist/features/color/ColorWheelPointerProxy.web.js.map +1 -1
- package/dist/features/color/resolveColorPickerGeometry.d.ts +31 -0
- package/dist/features/color/resolveColorPickerGeometry.d.ts.map +1 -0
- package/dist/features/color/resolveColorPickerGeometry.js +94 -0
- package/dist/features/color/resolveColorPickerGeometry.js.map +1 -0
- package/dist/features/color/utils/resolveWheelColor.d.ts +2 -2
- package/dist/features/color/utils/resolveWheelColor.d.ts.map +1 -1
- package/dist/features/color/utils/resolveWheelColor.js +2 -3
- package/dist/features/color/utils/resolveWheelColor.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.js.map +1 -1
- package/dist/features/form/select/composition/SelectTrigger.d.ts.map +1 -1
- package/dist/features/form/select/composition/SelectTrigger.js +2 -2
- package/dist/features/form/select/composition/SelectTrigger.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/color.d.ts +9 -1
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/color.js.map +1 -1
- package/dist/types/select.d.ts +2 -0
- package/dist/types/select.d.ts.map +1 -1
- package/dist/types/select.js.map +1 -1
- package/package.json +8 -8
- package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +1 -1
- package/src/features/color/ColorHexField.tsx +67 -21
- package/src/features/color/ColorPicker.layout.test.tsx +19 -10
- package/src/features/color/ColorPicker.tsx +319 -115
- package/src/features/color/ColorWheel.tsx +53 -51
- package/src/features/color/ColorWheelKeyboardProxy.tsx +1 -0
- package/src/features/color/ColorWheelKeyboardProxy.web.tsx +4 -3
- package/src/features/color/ColorWheelPointerProxy.native.tsx +25 -3
- package/src/features/color/ColorWheelPointerProxy.tsx +1 -0
- package/src/features/color/ColorWheelPointerProxy.web.tsx +1 -0
- package/src/features/color/resolveColorPickerGeometry.test.ts +43 -0
- package/src/features/color/resolveColorPickerGeometry.ts +116 -0
- package/src/features/color/utils/resolveWheelColor.ts +2 -3
- package/src/features/form/select/adapters/inbound/Select.native.tsx +1 -1
- package/src/features/form/select/composition/SelectTrigger.tsx +2 -1
- package/src/index.ts +6 -0
- package/src/types/color.ts +9 -1
- package/src/types/select.ts +2 -0
- package/web-dist/chunks/{Accordion-sn241nek.js → Accordion-01bsg7zt.js} +5 -5
- package/web-dist/chunks/{Accordion-jara9sqj.js → Accordion-01zvarrn.js} +8 -9
- package/web-dist/chunks/{Accordion-dxh9yn4f.js → Accordion-0dj1r7w3.js} +1 -1
- package/web-dist/chunks/{Accordion-nkppqfz4.js → Accordion-0xaq2k2h.js} +8 -8
- package/web-dist/chunks/{Accordion-3t2936t6.js → Accordion-15sxxjym.js} +4 -5
- package/web-dist/chunks/{Accordion-eq27a9ms.js → Accordion-1fz55hk4.js} +1 -1
- package/web-dist/chunks/{Accordion-q697hacs.js → Accordion-22cda3h5.js} +7 -8
- package/web-dist/chunks/{Accordion-3ar6p84m.js → Accordion-27yg9ktv.js} +3 -3
- package/web-dist/chunks/{Accordion-94vndckf.js → Accordion-34b3rwbc.js} +6 -8
- package/web-dist/chunks/{Accordion-8wm25z0h.js → Accordion-3zzzw7a8.js} +2 -2
- package/web-dist/chunks/{Accordion-00h253nv.js → Accordion-46n609yq.js} +13 -12
- package/web-dist/chunks/{Accordion-0t53jhx1.js → Accordion-4zb6dcys.js} +4 -7
- package/web-dist/chunks/{Accordion-dfv6p6gt.js → Accordion-5cjhz94e.js} +5 -5
- package/web-dist/chunks/{Accordion-5wx67nhg.js → Accordion-5mga7hty.js} +2 -2
- package/web-dist/chunks/{Accordion-kcx57mk5.js → Accordion-76b0qz8y.js} +24 -22
- package/web-dist/chunks/{Accordion-5adv6dv1.js → Accordion-78tknqmc.js} +4 -4
- package/web-dist/chunks/{Accordion-81rx3bh0.js → Accordion-7bd6zq4s.js} +9 -9
- package/web-dist/chunks/{Accordion-7ppf31tg.js → Accordion-8c4w7366.js} +5 -5
- package/web-dist/chunks/{Accordion-1b2t4k36.js → Accordion-8t6vh482.js} +3 -4
- package/web-dist/chunks/{Accordion-7d0e5vhe.js → Accordion-9d38cgqj.js} +87 -91
- package/web-dist/chunks/{Accordion-6wcbzxzb.js → Accordion-9k7ktksc.js} +212 -215
- package/web-dist/chunks/{Accordion-1dv8wytq.js → Accordion-afpjg1d6.js} +3 -4
- package/web-dist/chunks/{Accordion-j6hgazmz.js → Accordion-b1y5mjac.js} +1 -1
- package/web-dist/chunks/{Accordion-re4r47xn.js → Accordion-b8w0f8s0.js} +6 -7
- package/web-dist/chunks/{Accordion-9fhsfynt.js → Accordion-bexwrnfh.js} +3 -4
- package/web-dist/chunks/Accordion-chdbfcm6.js +93 -0
- package/web-dist/chunks/{Accordion-wbmzvfaw.js → Accordion-d405whfb.js} +2 -2
- package/web-dist/chunks/{Accordion-z9yw0xy9.js → Accordion-de8srt4x.js} +8 -8
- package/web-dist/chunks/{Accordion-dpkp0y4p.js → Accordion-epv5yhch.js} +3 -3
- package/web-dist/chunks/{Accordion-d4dp5ryp.js → Accordion-f4919ghm.js} +4 -4
- package/web-dist/chunks/{Accordion-0gae3kzr.js → Accordion-f8a49gy8.js} +19 -22
- package/web-dist/chunks/{Accordion-3s7zeagv.js → Accordion-fdzyyqe9.js} +1 -1
- package/web-dist/chunks/{Accordion-rev9ssd4.js → Accordion-gnxmybxx.js} +490 -205
- package/web-dist/chunks/{Accordion-36674tfw.js → Accordion-h1q243zq.js} +13 -11
- package/web-dist/chunks/{Accordion-dtt4qkrb.js → Accordion-h63c9k9k.js} +1 -1
- package/web-dist/chunks/{Accordion-43gp801f.js → Accordion-hdyzyw8q.js} +3 -3
- package/web-dist/chunks/{Accordion-phcp8d5v.js → Accordion-htvmkx8s.js} +118 -118
- package/web-dist/chunks/{Accordion-b41rev86.js → Accordion-jmxe6kw0.js} +9 -11
- package/web-dist/chunks/{Accordion-wpj8pd40.js → Accordion-kcm6jcpp.js} +2 -3
- package/web-dist/chunks/{Accordion-fcczvwgg.js → Accordion-mrstcjcm.js} +1 -0
- package/web-dist/chunks/{Accordion-6225tr9r.js → Accordion-mx7nkg85.js} +1 -1
- package/web-dist/chunks/{Accordion-pm2f2j32.js → Accordion-pdjhezmz.js} +2 -2
- package/web-dist/chunks/{Accordion-hbkzy0bg.js → Accordion-q046ws5p.js} +6 -6
- package/web-dist/chunks/{Accordion-tppk4vwt.js → Accordion-q11svb96.js} +19 -19
- package/web-dist/chunks/{Accordion-36j1fw8r.js → Accordion-qkkeyr18.js} +6 -8
- package/web-dist/chunks/{Accordion-c8mmgjtj.js → Accordion-qrt9xz0h.js} +7 -8
- package/web-dist/chunks/{Accordion-z1cq2mnx.js → Accordion-qsppnx7g.js} +10 -11
- package/web-dist/chunks/{Accordion-neg1cgeh.js → Accordion-rhjddvkh.js} +1 -2
- package/web-dist/chunks/{Accordion-238zba4h.js → Accordion-rtamzg9j.js} +47 -28
- package/web-dist/chunks/{Accordion-zzymcpty.js → Accordion-sfvqf4fz.js} +134 -132
- package/web-dist/chunks/{Accordion-ah1d9b6z.js → Accordion-sh79sr5g.js} +5 -5
- package/web-dist/chunks/{Accordion-wcw153f0.js → Accordion-t9n4ey2r.js} +5 -3
- package/web-dist/chunks/{Accordion-zte416jw.js → Accordion-tk8zf9ff.js} +3 -3
- package/web-dist/chunks/{Accordion-zypyr9xw.js → Accordion-tnyqv1xv.js} +296 -305
- package/web-dist/chunks/{Accordion-52s4t1aq.js → Accordion-v6vhyv31.js} +95 -165
- package/web-dist/chunks/{Accordion-m5baah44.js → Accordion-vkqqktc5.js} +3 -3
- package/web-dist/chunks/{Accordion-ytxgphds.js → Accordion-vzq344av.js} +2 -3
- package/web-dist/chunks/{Accordion-d2kg4729.js → Accordion-wb9pmykz.js} +5 -6
- package/web-dist/chunks/{Accordion-6r1e7k5r.js → Accordion-ww4f12ty.js} +1 -1
- package/web-dist/chunks/{Accordion-ec1tt3be.js → Accordion-xb9zhdhp.js} +42 -45
- package/web-dist/chunks/{Accordion-knb3e18b.js → Accordion-xfkg7dcw.js} +4 -5
- package/web-dist/chunks/{Accordion-6ec4gxv2.js → Accordion-xzaa9s7f.js} +12 -23
- package/web-dist/chunks/{Accordion-epwpdegg.js → Accordion-yrac5a7m.js} +1 -1
- package/web-dist/chunks/{zip-reader-f0yphjb9.js → zip-reader-5xrcmjr8.js} +1 -1
- package/web-dist/components/accordion/Accordion.js +11 -11
- package/web-dist/components/accordion-item/AccordionItem.js +11 -11
- package/web-dist/components/activity-indicator/ActivityIndicator.js +4 -4
- package/web-dist/components/app-bar/AppBar.js +18 -18
- package/web-dist/components/app-header/AppHeader.js +18 -18
- package/web-dist/components/app-shell/AppShell.js +5 -5
- package/web-dist/components/auth-screen/AuthScreen.js +21 -21
- package/web-dist/components/avatar/Avatar.js +11 -11
- package/web-dist/components/avatar-group/AvatarGroup.js +11 -11
- package/web-dist/components/badge/Badge.js +6 -6
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +19 -19
- package/web-dist/components/bottom-sheet/BottomSheet.js +10 -7
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +10 -7
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +10 -7
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +10 -7
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +10 -7
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +10 -7
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +13 -13
- package/web-dist/components/button/Button.js +11 -11
- package/web-dist/components/button-group/ButtonGroup.js +11 -11
- package/web-dist/components/calendar/Calendar.js +14 -14
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +19 -19
- package/web-dist/components/card/Card.js +18 -18
- package/web-dist/components/card-back/CardBack.js +5 -5
- package/web-dist/components/card-hand/CardHand.js +5 -5
- package/web-dist/components/carousel/Carousel.js +2 -2
- package/web-dist/components/chat-list-item/ChatListItem.js +15 -15
- package/web-dist/components/checkbox/Checkbox.js +11 -11
- package/web-dist/components/checkbox-group/CheckboxGroup.js +11 -11
- package/web-dist/components/chess-board/ChessBoard.js +6 -6
- package/web-dist/components/chip/Chip.js +12 -12
- package/web-dist/components/chip-group/ChipGroup.js +12 -12
- package/web-dist/components/collection-editor/CollectionEditor.js +18 -18
- package/web-dist/components/color-hue-scale/ColorHueScale.js +27 -27
- package/web-dist/components/color-picker/ColorPicker.js +27 -27
- package/web-dist/components/color-picker/ColorPicker.types-0.d.ts +9 -1
- package/web-dist/components/color-tone/ColorTone.js +27 -27
- package/web-dist/components/color-wheel/ColorWheel.js +27 -27
- package/web-dist/components/color-wheel/ColorWheel.types-0.d.ts +8 -0
- package/web-dist/components/content-rail/ContentRail.js +12 -12
- package/web-dist/components/data-table/DataTable.js +26 -26
- package/web-dist/components/date-picker/DatePicker.js +20 -20
- package/web-dist/components/dialog/Dialog.js +11 -11
- package/web-dist/components/divider/Divider.js +5 -5
- package/web-dist/components/empty-state/EmptyState.js +19 -19
- package/web-dist/components/explorer/Explorer.js +13 -13
- package/web-dist/components/field/Field.js +11 -11
- package/web-dist/components/file-explorer/FileExplorer.js +13 -13
- package/web-dist/components/flat-list/FlatList.js +12 -12
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -21
- package/web-dist/components/form/Form.js +15 -15
- package/web-dist/components/form-actions/FormActions.js +15 -15
- package/web-dist/components/form-error/FormError.js +15 -15
- package/web-dist/components/game/Game.js +7 -6
- package/web-dist/components/game-entity/GameEntity.js +7 -6
- package/web-dist/components/game-field/GameField.js +7 -6
- package/web-dist/components/game-input-zone/GameInputZone.js +7 -6
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +7 -6
- package/web-dist/components/game-overlay/GameOverlay.js +7 -6
- package/web-dist/components/gradient/Gradient.js +6 -6
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +6 -6
- package/web-dist/components/graph-view/GraphView.js +2 -2
- package/web-dist/components/grid/Grid.js +5 -5
- package/web-dist/components/grid-interactions/GridInteractions.js +1 -1
- package/web-dist/components/grid-line-overlay/GridLineOverlay.js +5 -5
- package/web-dist/components/grid-ruler/GridRuler.js +5 -5
- package/web-dist/components/grid-view/GridView.js +1 -1
- package/web-dist/components/heading/Heading.js +6 -6
- package/web-dist/components/hero/Hero.js +18 -18
- package/web-dist/components/icon/Icon.js +5 -5
- package/web-dist/components/icon-button/IconButton.js +11 -11
- package/web-dist/components/image/Image.js +9 -9
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +4 -4
- package/web-dist/components/list/List.js +12 -12
- package/web-dist/components/list-item/ListItem.js +12 -12
- package/web-dist/components/list-section/ListSection.js +12 -12
- package/web-dist/components/master-detail/MasterDetail.js +5 -5
- package/web-dist/components/matrix-grid/MatrixGrid.js +9 -9
- package/web-dist/components/media-card/MediaCard.js +18 -18
- package/web-dist/components/media-explorer/MediaExplorer.js +13 -13
- package/web-dist/components/message-bubble/MessageBubble.js +15 -15
- package/web-dist/components/metric-card/MetricCard.js +18 -18
- package/web-dist/components/missing-element/MissingElement.js +10 -10
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -21
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -21
- package/web-dist/components/opening-book/OpeningBook.js +6 -6
- package/web-dist/components/otp-form/OtpForm.js +21 -21
- package/web-dist/components/pagination/Pagination.js +12 -12
- package/web-dist/components/palette-item/PaletteItem.js +18 -18
- package/web-dist/components/playing-card/PlayingCard.js +5 -5
- package/web-dist/components/poker-training-table/PokerTrainingTable.js +5 -5
- package/web-dist/components/popover-menu/PopoverMenu.js +13 -13
- package/web-dist/components/post-card/PostCard.js +18 -18
- package/web-dist/components/product-card/ProductCard.js +18 -18
- package/web-dist/components/progress/Progress.js +9 -9
- package/web-dist/components/progress-ring/ProgressRing.js +9 -9
- package/web-dist/components/radio/Radio.js +13 -13
- package/web-dist/components/radio-group/RadioGroup.js +13 -13
- package/web-dist/components/rating/Rating.js +8 -8
- package/web-dist/components/reader/Reader.js +34 -34
- package/web-dist/components/scan-overlay/ScanOverlay.js +19 -19
- package/web-dist/components/screen/Screen.js +5 -5
- package/web-dist/components/screen-section/ScreenSection.js +9 -9
- package/web-dist/components/scroll-view/ScrollView.js +5 -5
- package/web-dist/components/search-input/SearchInput.js +13 -13
- package/web-dist/components/section-header/SectionHeader.js +9 -9
- package/web-dist/components/section-list/SectionList.js +12 -12
- package/web-dist/components/select/Select.js +20 -20
- package/web-dist/components/select/Select.types-0.d.ts +2 -0
- package/web-dist/components/selectable-item/SelectableItem.js +4 -4
- package/web-dist/components/selection-provider/SelectionProvider.js +4 -4
- package/web-dist/components/sign-in-form/SignInForm.js +21 -21
- package/web-dist/components/sign-up-form/SignUpForm.js +21 -21
- package/web-dist/components/skeleton/Skeleton.js +21 -21
- package/web-dist/components/skeleton-card/SkeletonCard.js +21 -21
- package/web-dist/components/skeleton-list/SkeletonList.js +21 -21
- package/web-dist/components/skeleton-text/SkeletonText.js +21 -21
- package/web-dist/components/spatial-grid/SpatialGrid.js +1 -1
- package/web-dist/components/surface/Surface.js +6 -6
- package/web-dist/components/switch/Switch.js +8 -8
- package/web-dist/components/tab/Tab.js +6 -6
- package/web-dist/components/tab-list/TabList.js +6 -6
- package/web-dist/components/tab-panel/TabPanel.js +6 -6
- package/web-dist/components/tabletop-table/TabletopTable.js +5 -5
- package/web-dist/components/tabs/Tabs.js +6 -6
- package/web-dist/components/text/Text.js +6 -6
- package/web-dist/components/text-input/TextInput.js +13 -13
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +11 -11
- package/web-dist/components/tile-grid/TileGrid.js +1 -1
- package/web-dist/components/time-grid/TimeGrid.js +2 -2
- package/web-dist/components/time-picker/TimePicker.js +18 -18
- package/web-dist/components/timeline/Timeline.js +11 -11
- package/web-dist/components/toast/Toast.js +9 -9
- package/web-dist/components/toast-provider/ToastProvider.js +9 -9
- package/web-dist/components/toolbar/Toolbar.js +18 -18
- package/web-dist/components/tree-item/TreeItem.js +17 -17
- package/web-dist/components/tree-view/TreeView.js +1 -1
- package/web-dist/components/uploader/Uploader.js +23 -23
- package/web-dist/components/view/View.js +5 -5
- package/web-dist/manifest.json +1897 -1873
- package/web-dist/runtime/ZoraProvider.js +9 -9
- package/web-dist/chunks/{Accordion-vgkvvdvg.js → Accordion-ykk40jz9.js} +36 -36
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import {
|
|
3
|
+
RuntimeRendererConfigProvider
|
|
4
|
+
} from "./Accordion-chdbfcm6.js";
|
|
2
5
|
import {
|
|
3
6
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-tk8zf9ff.js";
|
|
5
8
|
import {
|
|
6
9
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-f8a49gy8.js";
|
|
8
11
|
import {
|
|
9
12
|
require_cjs
|
|
10
13
|
} from "./Accordion-xgpzh4wq.js";
|
|
@@ -12,124 +15,8 @@ import {
|
|
|
12
15
|
__toESM
|
|
13
16
|
} from "./Accordion-nh0cs9hq.js";
|
|
14
17
|
|
|
15
|
-
// src/features/game/adapters/inbound/GameField.tsx
|
|
16
|
-
var import_react_native = __toESM(require_cjs(), 1);
|
|
17
|
-
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
var GameField2 = withZoraThemeScope(GameFieldInner);
|
|
19
|
-
function GameFieldInner({
|
|
20
|
-
children,
|
|
21
|
-
aspectRatio,
|
|
22
|
-
minHeight = 320,
|
|
23
|
-
fill = false,
|
|
24
|
-
clip = true,
|
|
25
|
-
accessibilityLabel,
|
|
26
|
-
interactionPolicy,
|
|
27
|
-
testID
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */ jsx(View2, {
|
|
30
|
-
...accessibilityLabel === undefined ? {} : { accessibilityLabel },
|
|
31
|
-
...testID === undefined ? {} : { testID },
|
|
32
|
-
interactionPolicy,
|
|
33
|
-
pointerEvents: interactionPolicy === "passive" ? "none" : "auto",
|
|
34
|
-
style: [
|
|
35
|
-
styles.root,
|
|
36
|
-
clip ? styles.clipped : styles.overflowVisible,
|
|
37
|
-
fill ? styles.fill : undefined,
|
|
38
|
-
{
|
|
39
|
-
...aspectRatio === undefined ? {} : { aspectRatio },
|
|
40
|
-
minHeight
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
children
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
var styles = import_react_native.StyleSheet.create({
|
|
47
|
-
clipped: {
|
|
48
|
-
overflow: "hidden"
|
|
49
|
-
},
|
|
50
|
-
fill: {
|
|
51
|
-
flex: 1
|
|
52
|
-
},
|
|
53
|
-
overflowVisible: {
|
|
54
|
-
overflow: "visible"
|
|
55
|
-
},
|
|
56
|
-
root: {
|
|
57
|
-
position: "relative",
|
|
58
|
-
width: "100%"
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
// node_modules/@ankhorage/runtime/dist/RuntimeRendererConfig.js
|
|
62
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
63
|
-
import React, { createContext, use } from "react";
|
|
64
|
-
var EMPTY_RUNTIME_RENDERER_CONFIG = {};
|
|
65
|
-
var RuntimeRendererConfigContext = createContext(EMPTY_RUNTIME_RENDERER_CONFIG);
|
|
66
|
-
function composeRuntimeRendererWrapNode(innerWrapNode, outerWrapNode) {
|
|
67
|
-
if (!innerWrapNode) {
|
|
68
|
-
return outerWrapNode;
|
|
69
|
-
}
|
|
70
|
-
if (!outerWrapNode) {
|
|
71
|
-
return innerWrapNode;
|
|
72
|
-
}
|
|
73
|
-
return (args) => outerWrapNode({ ...args, rendered: innerWrapNode(args) });
|
|
74
|
-
}
|
|
75
|
-
function composeRuntimeNodePropsResolver(localResolver, inheritedResolver) {
|
|
76
|
-
if (!localResolver) {
|
|
77
|
-
return inheritedResolver;
|
|
78
|
-
}
|
|
79
|
-
if (!inheritedResolver) {
|
|
80
|
-
return localResolver;
|
|
81
|
-
}
|
|
82
|
-
return (args) => {
|
|
83
|
-
const inheritedProps = inheritedResolver(args);
|
|
84
|
-
return localResolver({ ...args, props: inheritedProps });
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function mergeRuntimeRendererConfig(localConfig, inheritedConfig) {
|
|
88
|
-
if (!localConfig && !inheritedConfig) {
|
|
89
|
-
return EMPTY_RUNTIME_RENDERER_CONFIG;
|
|
90
|
-
}
|
|
91
|
-
const bindingContext = mergeRecordConfig(inheritedConfig?.bindingContext, localConfig?.bindingContext);
|
|
92
|
-
const capabilityValues = mergeRecordConfig(inheritedConfig?.capabilityValues, localConfig?.capabilityValues);
|
|
93
|
-
const resultSlots = mergeRecordConfig(inheritedConfig?.resultSlots, localConfig?.resultSlots);
|
|
94
|
-
return {
|
|
95
|
-
disableActions: localConfig?.disableActions === true || inheritedConfig?.disableActions === true,
|
|
96
|
-
registry: localConfig?.registry ?? inheritedConfig?.registry,
|
|
97
|
-
wrapNode: composeRuntimeRendererWrapNode(localConfig?.wrapNode, inheritedConfig?.wrapNode),
|
|
98
|
-
resolveNodeProps: composeRuntimeNodePropsResolver(localConfig?.resolveNodeProps, inheritedConfig?.resolveNodeProps),
|
|
99
|
-
resolveMediaAsset: localConfig?.resolveMediaAsset ?? inheritedConfig?.resolveMediaAsset,
|
|
100
|
-
mediaAssets: localConfig?.mediaAssets ?? inheritedConfig?.mediaAssets,
|
|
101
|
-
dbAdapter: localConfig?.dbAdapter ?? inheritedConfig?.dbAdapter,
|
|
102
|
-
dbRealtimeAdapter: localConfig?.dbRealtimeAdapter ?? inheritedConfig?.dbRealtimeAdapter,
|
|
103
|
-
stateAdapter: localConfig?.stateAdapter ?? inheritedConfig?.stateAdapter,
|
|
104
|
-
bindingContext,
|
|
105
|
-
capabilityValues,
|
|
106
|
-
dataBindings: localConfig?.dataBindings ?? inheritedConfig?.dataBindings,
|
|
107
|
-
resultSlots,
|
|
108
|
-
writeResultSlot: localConfig?.writeResultSlot ?? inheritedConfig?.writeResultSlot,
|
|
109
|
-
executeCapability: localConfig?.executeCapability ?? inheritedConfig?.executeCapability,
|
|
110
|
-
flowPort: localConfig?.flowPort ?? inheritedConfig?.flowPort,
|
|
111
|
-
resolveEventCapability: localConfig?.resolveEventCapability ?? inheritedConfig?.resolveEventCapability,
|
|
112
|
-
onDiagnostics: localConfig?.onDiagnostics ?? inheritedConfig?.onDiagnostics,
|
|
113
|
-
eventOperationLifecycle: localConfig?.eventOperationLifecycle ?? inheritedConfig?.eventOperationLifecycle,
|
|
114
|
-
eventOperationState: localConfig?.eventOperationState ?? inheritedConfig?.eventOperationState
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function RuntimeRendererConfigProvider(props) {
|
|
118
|
-
const { value, children } = props;
|
|
119
|
-
const inheritedConfig = use(RuntimeRendererConfigContext);
|
|
120
|
-
const mergedConfig = mergeRuntimeRendererConfig(value, inheritedConfig);
|
|
121
|
-
return _jsx(RuntimeRendererConfigContext, { value: mergedConfig, children });
|
|
122
|
-
}
|
|
123
|
-
function mergeRecordConfig(inherited, local) {
|
|
124
|
-
if (!inherited && !local)
|
|
125
|
-
return;
|
|
126
|
-
return {
|
|
127
|
-
...inherited ?? {},
|
|
128
|
-
...local ?? {}
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
18
|
// src/features/game/adapters/inbound/Game.tsx
|
|
132
|
-
import
|
|
19
|
+
import React4 from "react";
|
|
133
20
|
|
|
134
21
|
// src/features/game/composition/createGameBindingContext.ts
|
|
135
22
|
function createGameBindingContext(session) {
|
|
@@ -157,8 +44,8 @@ function createGameMeasurementRegistry() {
|
|
|
157
44
|
}
|
|
158
45
|
|
|
159
46
|
// src/features/game/composition/GameRuntimeContext.ts
|
|
160
|
-
import
|
|
161
|
-
var GameRuntimeContext =
|
|
47
|
+
import React from "react";
|
|
48
|
+
var GameRuntimeContext = React.createContext(null);
|
|
162
49
|
|
|
163
50
|
// node_modules/@ankhorage/game/dist/features/session/utils/gamePath.js
|
|
164
51
|
function readGamePath(value, path) {
|
|
@@ -785,10 +672,10 @@ function createGameSession(definition, initialization = {}) {
|
|
|
785
672
|
return applyGameEvent(definition, session, { type: "game.start", seed }, input);
|
|
786
673
|
}
|
|
787
674
|
// src/features/game/composition/useGameRuntime.ts
|
|
788
|
-
import
|
|
675
|
+
import React3 from "react";
|
|
789
676
|
|
|
790
677
|
// src/features/game/composition/useGameScheduledEffects.ts
|
|
791
|
-
import
|
|
678
|
+
import React2 from "react";
|
|
792
679
|
function useGameScheduledEffects({
|
|
793
680
|
clockRef,
|
|
794
681
|
definitionRef,
|
|
@@ -798,7 +685,7 @@ function useGameScheduledEffects({
|
|
|
798
685
|
scheduled,
|
|
799
686
|
setRuntime
|
|
800
687
|
}) {
|
|
801
|
-
|
|
688
|
+
React2.useEffect(() => {
|
|
802
689
|
if (!enabled || scheduled.length === 0)
|
|
803
690
|
return;
|
|
804
691
|
const delayMs = resolveNextScheduledDelay(scheduled);
|
|
@@ -846,9 +733,9 @@ function useGameRuntime(props) {
|
|
|
846
733
|
const inputRef = useLatestValue(input);
|
|
847
734
|
const outputRef = useLatestValue(props.onOutput);
|
|
848
735
|
const autoAdvanceTime = props.autoAdvanceTime ?? true;
|
|
849
|
-
const clockRef =
|
|
736
|
+
const clockRef = React3.useRef(0);
|
|
850
737
|
const runtimeKey = createRuntimeKey(definition.id, resetKey, seed);
|
|
851
|
-
const [runtime, setRuntime] =
|
|
738
|
+
const [runtime, setRuntime] = React3.useState(() => createRuntimeState(definition, input, seed, runtimeKey, 0));
|
|
852
739
|
useGameRuntimeReset({
|
|
853
740
|
clockRef,
|
|
854
741
|
definitionRef,
|
|
@@ -859,7 +746,7 @@ function useGameRuntime(props) {
|
|
|
859
746
|
});
|
|
860
747
|
useGameAutoAdvanceClock(autoAdvanceTime, clockRef);
|
|
861
748
|
useGameOutputEmitter(runtime, outputRef, setRuntime);
|
|
862
|
-
const dispatch =
|
|
749
|
+
const dispatch = React3.useCallback((event) => {
|
|
863
750
|
const now = Date.now();
|
|
864
751
|
setRuntime((current) => applyRuntimeEvent({
|
|
865
752
|
autoAdvanceTime,
|
|
@@ -882,7 +769,7 @@ function useGameRuntime(props) {
|
|
|
882
769
|
scheduled: runtime.session.scheduled,
|
|
883
770
|
setRuntime
|
|
884
771
|
});
|
|
885
|
-
return
|
|
772
|
+
return React3.useMemo(() => ({ session: runtime.session, dispatch }), [dispatch, runtime.session]);
|
|
886
773
|
}
|
|
887
774
|
function useGameRuntimeReset({
|
|
888
775
|
clockRef,
|
|
@@ -892,14 +779,14 @@ function useGameRuntimeReset({
|
|
|
892
779
|
seed,
|
|
893
780
|
setRuntime
|
|
894
781
|
}) {
|
|
895
|
-
|
|
782
|
+
React3.useEffect(() => {
|
|
896
783
|
clockRef.current = Date.now();
|
|
897
784
|
setRuntime((current) => current.key === runtimeKey ? current : createRuntimeState(definitionRef.current, inputRef.current, seed, runtimeKey, current.revision + 1));
|
|
898
785
|
}, [clockRef, definitionRef, inputRef, runtimeKey, seed, setRuntime]);
|
|
899
786
|
}
|
|
900
787
|
function useGameAutoAdvanceClock(enabled, clockRef) {
|
|
901
|
-
const previousEnabledRef =
|
|
902
|
-
|
|
788
|
+
const previousEnabledRef = React3.useRef(enabled);
|
|
789
|
+
React3.useEffect(() => {
|
|
903
790
|
if (enabled && !previousEnabledRef.current) {
|
|
904
791
|
clockRef.current = Date.now();
|
|
905
792
|
}
|
|
@@ -907,7 +794,7 @@ function useGameAutoAdvanceClock(enabled, clockRef) {
|
|
|
907
794
|
}, [clockRef, enabled]);
|
|
908
795
|
}
|
|
909
796
|
function useGameOutputEmitter(runtime, outputRef, setRuntime) {
|
|
910
|
-
|
|
797
|
+
React3.useEffect(() => {
|
|
911
798
|
if (runtime.outputs.length === 0)
|
|
912
799
|
return;
|
|
913
800
|
setRuntime((current) => current.revision === runtime.revision ? { ...current, outputs: [] } : current);
|
|
@@ -938,21 +825,68 @@ function emitGameOutputs(outputs, onOutput) {
|
|
|
938
825
|
outputs.forEach((output) => onOutput(output));
|
|
939
826
|
}
|
|
940
827
|
function useLatestValue(value) {
|
|
941
|
-
const ref =
|
|
942
|
-
|
|
828
|
+
const ref = React3.useRef(value);
|
|
829
|
+
React3.useEffect(() => {
|
|
943
830
|
ref.current = value;
|
|
944
831
|
}, [value]);
|
|
945
832
|
return ref;
|
|
946
833
|
}
|
|
947
834
|
|
|
835
|
+
// src/features/game/adapters/inbound/GameField.tsx
|
|
836
|
+
var import_react_native = __toESM(require_cjs(), 1);
|
|
837
|
+
import { jsx } from "react/jsx-runtime";
|
|
838
|
+
var GameField2 = withZoraThemeScope(GameFieldInner);
|
|
839
|
+
function GameFieldInner({
|
|
840
|
+
children,
|
|
841
|
+
aspectRatio,
|
|
842
|
+
minHeight = 320,
|
|
843
|
+
fill = false,
|
|
844
|
+
clip = true,
|
|
845
|
+
accessibilityLabel,
|
|
846
|
+
interactionPolicy,
|
|
847
|
+
testID
|
|
848
|
+
}) {
|
|
849
|
+
return /* @__PURE__ */ jsx(View2, {
|
|
850
|
+
...accessibilityLabel === undefined ? {} : { accessibilityLabel },
|
|
851
|
+
...testID === undefined ? {} : { testID },
|
|
852
|
+
interactionPolicy,
|
|
853
|
+
pointerEvents: interactionPolicy === "passive" ? "none" : "auto",
|
|
854
|
+
style: [
|
|
855
|
+
styles.root,
|
|
856
|
+
clip ? styles.clipped : styles.overflowVisible,
|
|
857
|
+
fill ? styles.fill : undefined,
|
|
858
|
+
{
|
|
859
|
+
...aspectRatio === undefined ? {} : { aspectRatio },
|
|
860
|
+
minHeight
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
children
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
var styles = import_react_native.StyleSheet.create({
|
|
867
|
+
clipped: {
|
|
868
|
+
overflow: "hidden"
|
|
869
|
+
},
|
|
870
|
+
fill: {
|
|
871
|
+
flex: 1
|
|
872
|
+
},
|
|
873
|
+
overflowVisible: {
|
|
874
|
+
overflow: "visible"
|
|
875
|
+
},
|
|
876
|
+
root: {
|
|
877
|
+
position: "relative",
|
|
878
|
+
width: "100%"
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
|
|
948
882
|
// src/features/game/adapters/inbound/Game.tsx
|
|
949
883
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
950
884
|
var Game2 = withZoraThemeScope(GameInner);
|
|
951
885
|
function GameInner(props) {
|
|
952
886
|
const runtime = useGameRuntime(props);
|
|
953
|
-
const [measurementRegistry] =
|
|
954
|
-
const runtimeContext =
|
|
955
|
-
const runtimeBindingConfig =
|
|
887
|
+
const [measurementRegistry] = React4.useState(createGameMeasurementRegistry);
|
|
888
|
+
const runtimeContext = React4.useMemo(() => ({ ...runtime, ...measurementRegistry, interactionPolicy: props.interactionPolicy }), [measurementRegistry, props.interactionPolicy, runtime]);
|
|
889
|
+
const runtimeBindingConfig = React4.useMemo(() => ({ bindingContext: createGameBindingContext(runtime.session) }), [runtime.session]);
|
|
956
890
|
return /* @__PURE__ */ jsx2(GameRuntimeContext.Provider, {
|
|
957
891
|
value: runtimeContext,
|
|
958
892
|
children: /* @__PURE__ */ jsx2(RuntimeRendererConfigProvider, {
|
|
@@ -970,10 +904,9 @@ function GameInner(props) {
|
|
|
970
904
|
})
|
|
971
905
|
});
|
|
972
906
|
}
|
|
973
|
-
|
|
974
907
|
// src/features/game/adapters/inbound/GameEntity.tsx
|
|
975
908
|
var import_react_native6 = __toESM(require_cjs(), 1);
|
|
976
|
-
import
|
|
909
|
+
import React9 from "react";
|
|
977
910
|
|
|
978
911
|
// src/features/game/utils/useGameEntityAnimatedStyle.ts
|
|
979
912
|
var import_react_native5 = __toESM(require_cjs(), 1);
|
|
@@ -1003,10 +936,10 @@ function normalizeDuration(value) {
|
|
|
1003
936
|
|
|
1004
937
|
// src/features/game/utils/useAnimatedGameEntityValue.ts
|
|
1005
938
|
var import_react_native2 = __toESM(require_cjs(), 1);
|
|
1006
|
-
import
|
|
939
|
+
import React5 from "react";
|
|
1007
940
|
function useAnimatedGameEntityValue(target, durationMs, easing) {
|
|
1008
|
-
const [value] =
|
|
1009
|
-
|
|
941
|
+
const [value] = React5.useState(() => new import_react_native2.Animated.Value(target));
|
|
942
|
+
React5.useEffect(() => {
|
|
1010
943
|
value.stopAnimation();
|
|
1011
944
|
if (durationMs === 0) {
|
|
1012
945
|
value.setValue(target);
|
|
@@ -1035,11 +968,11 @@ function resolveGameEntityEasing(easing) {
|
|
|
1035
968
|
|
|
1036
969
|
// src/features/game/utils/useGameEntityMotionProgress.ts
|
|
1037
970
|
var import_react_native3 = __toESM(require_cjs(), 1);
|
|
1038
|
-
import
|
|
971
|
+
import React6 from "react";
|
|
1039
972
|
function useGameEntityMotionProgress(plan) {
|
|
1040
|
-
const [progress] =
|
|
973
|
+
const [progress] = React6.useState(() => new import_react_native3.Animated.Value(0));
|
|
1041
974
|
const signature = createMotionSignature(plan);
|
|
1042
|
-
const previousSignature =
|
|
975
|
+
const previousSignature = React6.useRef(signature);
|
|
1043
976
|
const {
|
|
1044
977
|
motionEnabled,
|
|
1045
978
|
motionPaused,
|
|
@@ -1049,7 +982,7 @@ function useGameEntityMotionProgress(plan) {
|
|
|
1049
982
|
motionRepeat,
|
|
1050
983
|
motionAlternate
|
|
1051
984
|
} = plan;
|
|
1052
|
-
|
|
985
|
+
React6.useEffect(() => {
|
|
1053
986
|
progress.stopAnimation();
|
|
1054
987
|
if (!motionEnabled) {
|
|
1055
988
|
progress.setValue(0);
|
|
@@ -1121,10 +1054,10 @@ function resolveMotionEasing(easing) {
|
|
|
1121
1054
|
|
|
1122
1055
|
// src/features/game/utils/useGameReducedMotion.ts
|
|
1123
1056
|
var import_react_native4 = __toESM(require_cjs(), 1);
|
|
1124
|
-
import
|
|
1057
|
+
import React7 from "react";
|
|
1125
1058
|
function useGameReducedMotion() {
|
|
1126
|
-
const [reduceMotion, setReduceMotion] =
|
|
1127
|
-
|
|
1059
|
+
const [reduceMotion, setReduceMotion] = React7.useState(false);
|
|
1060
|
+
React7.useEffect(() => {
|
|
1128
1061
|
import_react_native4.AccessibilityInfo.isReduceMotionEnabled().then(setReduceMotion);
|
|
1129
1062
|
const subscription = import_react_native4.AccessibilityInfo.addEventListener("reduceMotionChanged", setReduceMotion);
|
|
1130
1063
|
return () => subscription.remove();
|
|
@@ -1179,7 +1112,7 @@ function createGameEntityAnimatedStyle(values, input) {
|
|
|
1179
1112
|
}
|
|
1180
1113
|
|
|
1181
1114
|
// src/features/game/utils/useGameEntityMeasurement.ts
|
|
1182
|
-
import
|
|
1115
|
+
import React8 from "react";
|
|
1183
1116
|
|
|
1184
1117
|
// src/features/game/utils/measureGameEntity.ts
|
|
1185
1118
|
function measureGameEntity(element) {
|
|
@@ -1205,9 +1138,9 @@ function measureGameEntity(element) {
|
|
|
1205
1138
|
|
|
1206
1139
|
// src/features/game/utils/useGameEntityMeasurement.ts
|
|
1207
1140
|
function useGameEntityMeasurement(elementRef, measurementId) {
|
|
1208
|
-
const runtime =
|
|
1141
|
+
const runtime = React8.useContext(GameRuntimeContext);
|
|
1209
1142
|
const registerMeasurement = runtime?.registerMeasurement;
|
|
1210
|
-
|
|
1143
|
+
React8.useEffect(() => {
|
|
1211
1144
|
if (measurementId === undefined || registerMeasurement === undefined)
|
|
1212
1145
|
return;
|
|
1213
1146
|
return registerMeasurement(measurementId, () => measureGameEntity(elementRef.current));
|
|
@@ -1218,7 +1151,7 @@ function useGameEntityMeasurement(elementRef, measurementId) {
|
|
|
1218
1151
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1219
1152
|
var GameEntity2 = withZoraThemeScope(GameEntityInner);
|
|
1220
1153
|
function GameEntityInner(props) {
|
|
1221
|
-
const elementRef =
|
|
1154
|
+
const elementRef = React9.useRef(null);
|
|
1222
1155
|
const animatedStyle = useGameEntityAnimatedStyle(props);
|
|
1223
1156
|
useGameEntityMeasurement(elementRef, props.measurementId);
|
|
1224
1157
|
return /* @__PURE__ */ jsx3(import_react_native6.Animated.View, {
|
|
@@ -1244,7 +1177,6 @@ var styles2 = import_react_native6.StyleSheet.create({
|
|
|
1244
1177
|
position: "absolute"
|
|
1245
1178
|
}
|
|
1246
1179
|
});
|
|
1247
|
-
|
|
1248
1180
|
// src/features/game/adapters/inbound/GameInputZone.tsx
|
|
1249
1181
|
var import_react_native7 = __toESM(require_cjs(), 1);
|
|
1250
1182
|
|
|
@@ -1259,7 +1191,7 @@ function toGamePercentage(value) {
|
|
|
1259
1191
|
}
|
|
1260
1192
|
|
|
1261
1193
|
// src/features/game/adapters/inbound/useGameInputZoneResponder.ts
|
|
1262
|
-
import
|
|
1194
|
+
import React10 from "react";
|
|
1263
1195
|
|
|
1264
1196
|
// src/features/game/adapters/inbound/createGameKeyboardEvent.ts
|
|
1265
1197
|
function createGameKeyboardEvent(input) {
|
|
@@ -1295,15 +1227,15 @@ function createGamePointerEvent(input) {
|
|
|
1295
1227
|
|
|
1296
1228
|
// src/features/game/adapters/inbound/useGameInputZoneResponder.ts
|
|
1297
1229
|
function useGameInputZoneResponder(props) {
|
|
1298
|
-
const runtime =
|
|
1230
|
+
const runtime = React10.useContext(GameRuntimeContext);
|
|
1299
1231
|
if (runtime === null)
|
|
1300
1232
|
throw new Error("GameInputZone must be rendered inside Game.");
|
|
1301
|
-
const measuredSizeRef =
|
|
1302
|
-
const handleLayout =
|
|
1233
|
+
const measuredSizeRef = React10.useRef({ width: 0, height: 0 });
|
|
1234
|
+
const handleLayout = React10.useCallback((event) => {
|
|
1303
1235
|
const { width, height } = event.nativeEvent.layout;
|
|
1304
1236
|
measuredSizeRef.current = { width, height };
|
|
1305
1237
|
}, []);
|
|
1306
|
-
const dispatchPointer =
|
|
1238
|
+
const dispatchPointer = React10.useCallback((event) => {
|
|
1307
1239
|
if (runtime.interactionPolicy === "passive" || props.interactionPolicy === "passive")
|
|
1308
1240
|
return;
|
|
1309
1241
|
const measured = measuredSizeRef.current;
|
|
@@ -1331,7 +1263,7 @@ function useGameInputZoneResponder(props) {
|
|
|
1331
1263
|
props.y,
|
|
1332
1264
|
runtime
|
|
1333
1265
|
]);
|
|
1334
|
-
const dispatchKeyboard =
|
|
1266
|
+
const dispatchKeyboard = React10.useCallback((event) => {
|
|
1335
1267
|
if (runtime.interactionPolicy === "passive" || props.interactionPolicy === "passive")
|
|
1336
1268
|
return;
|
|
1337
1269
|
const result = createGameKeyboardEvent({
|
|
@@ -1431,9 +1363,8 @@ var styles3 = import_react_native7.StyleSheet.create({
|
|
|
1431
1363
|
position: "absolute"
|
|
1432
1364
|
}
|
|
1433
1365
|
});
|
|
1434
|
-
|
|
1435
1366
|
// src/features/game/adapters/inbound/GameMeasurementProbe.tsx
|
|
1436
|
-
import
|
|
1367
|
+
import React11 from "react";
|
|
1437
1368
|
|
|
1438
1369
|
// src/features/game/adapters/inbound/createGameMeasurementEvent.ts
|
|
1439
1370
|
function createGameMeasurementEvent(input) {
|
|
@@ -1470,10 +1401,10 @@ function GameMeasurementProbeInner({
|
|
|
1470
1401
|
enabled = true,
|
|
1471
1402
|
interactionPolicy
|
|
1472
1403
|
}) {
|
|
1473
|
-
const runtime =
|
|
1404
|
+
const runtime = React11.useContext(GameRuntimeContext);
|
|
1474
1405
|
if (runtime === null)
|
|
1475
1406
|
throw new Error("GameMeasurementProbe must be rendered inside Game.");
|
|
1476
|
-
|
|
1407
|
+
React11.useEffect(() => {
|
|
1477
1408
|
if (!enabled || interactionPolicy === "passive" || runtime.interactionPolicy === "passive")
|
|
1478
1409
|
return;
|
|
1479
1410
|
const timer = setTimeout(() => {
|
|
@@ -1517,7 +1448,6 @@ async function dispatchGameMeasurement(input) {
|
|
|
1517
1448
|
target
|
|
1518
1449
|
}));
|
|
1519
1450
|
}
|
|
1520
|
-
|
|
1521
1451
|
// src/features/game/adapters/inbound/GameOverlay.tsx
|
|
1522
1452
|
var import_react_native8 = __toESM(require_cjs(), 1);
|
|
1523
1453
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
View3
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-ww4f12ty.js";
|
|
5
5
|
import {
|
|
6
6
|
Text2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-kcm6jcpp.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveFieldPresentation,
|
|
10
10
|
resolveFieldState
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-xzaa9s7f.js";
|
|
12
12
|
|
|
13
13
|
// node_modules/@ankhorage/surface/src/features/form/field/adapters/inbound/Field.tsx
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Toast3,
|
|
4
4
|
ToastProvider3
|
|
5
|
-
} from "./Accordion-
|
|
5
|
+
} from "./Accordion-q046ws5p.js";
|
|
6
6
|
import {
|
|
7
7
|
withZoraThemeScope
|
|
8
|
-
} from "./Accordion-
|
|
8
|
+
} from "./Accordion-tk8zf9ff.js";
|
|
9
9
|
|
|
10
10
|
// src/features/toast/adapters/inbound/Toast.tsx
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -15,7 +15,6 @@ function ToastInner({ mode: _mode, themeId: _themeId, ...props }) {
|
|
|
15
15
|
...props
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
// src/features/toast/adapters/inbound/ToastProvider.tsx
|
|
20
19
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
21
20
|
function ToastProvider2(props) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-tk8zf9ff.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-3zzzw7a8.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-f8a49gy8.js";
|
|
11
11
|
import {
|
|
12
12
|
Text3
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-afpjg1d6.js";
|
|
14
14
|
import {
|
|
15
15
|
useZoraTheme2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-b1y5mjac.js";
|
|
17
17
|
import {
|
|
18
18
|
require_cjs
|
|
19
19
|
} from "./Accordion-xgpzh4wq.js";
|
|
@@ -247,5 +247,4 @@ function AvatarGroupInner({
|
|
|
247
247
|
]
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
-
|
|
251
250
|
export { Avatar2, AvatarGroup2 };
|