@ankhorage/zora 28.2.0 → 28.3.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 +11 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +76 -2
- package/dist/capabilities/index.js.map +7 -5
- package/dist/constants/authoring.d.ts +5 -3
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +4 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/audio/adapters/inbound/Audio.d.ts +5 -0
- package/dist/features/audio/adapters/inbound/Audio.d.ts.map +1 -0
- package/dist/features/audio/adapters/inbound/Audio.js +80 -0
- package/dist/features/audio/adapters/inbound/Audio.js.map +1 -0
- package/dist/features/audio/audioMeta.d.ts +22 -0
- package/dist/features/audio/audioMeta.d.ts.map +1 -0
- package/dist/features/audio/audioMeta.js +18 -0
- package/dist/features/audio/audioMeta.js.map +1 -0
- package/dist/features/audio/composition/AudioController.d.ts +13 -0
- package/dist/features/audio/composition/AudioController.d.ts.map +1 -0
- package/dist/features/audio/composition/AudioController.js +2 -0
- package/dist/features/audio/composition/AudioController.js.map +1 -0
- package/dist/features/audio/composition/useAudioController.d.ts +5 -0
- package/dist/features/audio/composition/useAudioController.d.ts.map +1 -0
- package/dist/features/audio/composition/useAudioController.js +22 -0
- package/dist/features/audio/composition/useAudioController.js.map +1 -0
- package/dist/features/audio/composition/useAudioController.web.d.ts +5 -0
- package/dist/features/audio/composition/useAudioController.web.d.ts.map +1 -0
- package/dist/features/audio/composition/useAudioController.web.js +80 -0
- package/dist/features/audio/composition/useAudioController.web.js.map +1 -0
- package/dist/features/audio/public.d.ts +3 -0
- package/dist/features/audio/public.d.ts.map +1 -0
- package/dist/features/audio/public.js +2 -0
- package/dist/features/audio/public.js.map +1 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -1
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +4 -0
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -1
- package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
- package/dist/features/registry/componentMeta.d.ts.map +1 -1
- package/dist/features/registry/componentMeta.js +4 -0
- package/dist/features/registry/componentMeta.js.map +1 -1
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/features/video/adapters/inbound/Video.d.ts +2 -0
- package/dist/features/video/adapters/inbound/Video.d.ts.map +1 -0
- package/dist/features/video/adapters/inbound/Video.js +2 -0
- package/dist/features/video/adapters/inbound/Video.js.map +1 -0
- package/dist/features/video/adapters/inbound/Video.native.d.ts +5 -0
- package/dist/features/video/adapters/inbound/Video.native.d.ts.map +1 -0
- package/dist/features/video/adapters/inbound/Video.native.js +160 -0
- package/dist/features/video/adapters/inbound/Video.native.js.map +1 -0
- package/dist/features/video/adapters/inbound/Video.web.d.ts +5 -0
- package/dist/features/video/adapters/inbound/Video.web.d.ts.map +1 -0
- package/dist/features/video/adapters/inbound/Video.web.js +30 -0
- package/dist/features/video/adapters/inbound/Video.web.js.map +1 -0
- package/dist/features/video/public.d.ts +3 -0
- package/dist/features/video/public.d.ts.map +1 -0
- package/dist/features/video/public.js +2 -0
- package/dist/features/video/public.js.map +1 -0
- package/dist/features/video/videoMeta.d.ts +64 -0
- package/dist/features/video/videoMeta.d.ts.map +1 -0
- package/dist/features/video/videoMeta.js +50 -0
- package/dist/features/video/videoMeta.js.map +1 -0
- 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/readerFree.d.ts +3 -0
- package/dist/readerFree.d.ts.map +1 -1
- package/dist/readerFree.js +2 -0
- package/dist/readerFree.js.map +1 -1
- package/dist/types/audio.d.ts +15 -0
- package/dist/types/audio.d.ts.map +1 -0
- package/dist/types/audio.js +2 -0
- package/dist/types/audio.js.map +1 -0
- package/dist/types/video.d.ts +24 -0
- package/dist/types/video.d.ts.map +1 -0
- package/dist/types/video.js +2 -0
- package/dist/types/video.js.map +1 -0
- package/package.json +7 -3
- package/src/constants/authoring.ts +4 -0
- package/src/features/audio/adapters/inbound/Audio.tsx +158 -0
- package/src/features/audio/audioMeta.ts +20 -0
- package/src/features/audio/composition/AudioController.ts +12 -0
- package/src/features/audio/composition/useAudioController.ts +27 -0
- package/src/features/audio/composition/useAudioController.web.ts +106 -0
- package/src/features/audio/public.test.ts +37 -0
- package/src/features/audio/public.ts +2 -0
- package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +4 -0
- package/src/features/registry/componentMeta.test.ts +16 -0
- package/src/features/registry/componentMeta.ts +4 -0
- package/src/features/video/adapters/inbound/Video.native.tsx +296 -0
- package/src/features/video/adapters/inbound/Video.test.tsx +188 -0
- package/src/features/video/adapters/inbound/Video.tsx +1 -0
- package/src/features/video/adapters/inbound/Video.web.tsx +70 -0
- package/src/features/video/public.ts +7 -0
- package/src/features/video/videoMeta.ts +51 -0
- package/src/index.ts +2 -0
- package/src/readerFree.ts +13 -0
- package/src/types/audio.ts +16 -0
- package/src/types/video.ts +28 -0
- package/web-dist/chunks/{Accordion-4v920xz8.js → Accordion-01bsg7zt.js} +1 -1
- package/web-dist/chunks/{Accordion-pvfmhrm0.js → Accordion-17s33h1a.js} +1 -1
- package/web-dist/chunks/{Accordion-vyw2bzye.js → Accordion-2wggrer7.js} +2 -2
- package/web-dist/chunks/{Accordion-bjq32vq2.js → Accordion-2xb252py.js} +3 -3
- package/web-dist/chunks/{Accordion-kr1reyt9.js → Accordion-2xkxthf1.js} +7 -7
- package/web-dist/chunks/{Accordion-fc058wqp.js → Accordion-2ys50fc8.js} +1 -1
- package/web-dist/chunks/{Accordion-7zhdzn00.js → Accordion-379mgrse.js} +1 -1
- package/web-dist/chunks/{Accordion-xeyw6ndr.js → Accordion-38xvj0cq.js} +4 -4
- package/web-dist/chunks/{Accordion-8gfgaq01.js → Accordion-4zb6dcys.js} +1 -1
- package/web-dist/chunks/{Accordion-nrwc0rx2.js → Accordion-5mga7hty.js} +1 -1
- package/web-dist/chunks/{Accordion-3qvtv4g6.js → Accordion-5qz4j8tt.js} +6 -6
- package/web-dist/chunks/{Accordion-4zbh7wfn.js → Accordion-5rwztz14.js} +1 -1
- package/web-dist/chunks/{Accordion-frfh3nz6.js → Accordion-9qg7cjt8.js} +2 -2
- package/web-dist/chunks/{Accordion-g07r4t2f.js → Accordion-a1mgdfg7.js} +1 -1
- package/web-dist/chunks/{Accordion-dcm6ywt2.js → Accordion-axe7nsht.js} +1 -1
- package/web-dist/chunks/{Accordion-e2b9yja2.js → Accordion-bd9vzpbz.js} +6 -6
- package/web-dist/chunks/{Accordion-csz7sgjm.js → Accordion-bp9y7738.js} +6 -6
- package/web-dist/chunks/{Accordion-64w34bgd.js → Accordion-bzgy9sg3.js} +2 -2
- package/web-dist/chunks/{Accordion-r30bwg03.js → Accordion-e0vm82xr.js} +2 -2
- package/web-dist/chunks/{Accordion-em4ktbkk.js → Accordion-f1vargnk.js} +4 -4
- package/web-dist/chunks/{Accordion-k6v7p2na.js → Accordion-f8a49gy8.js} +1 -1
- package/web-dist/chunks/{Accordion-g5c5sqn7.js → Accordion-f8zpd80k.js} +4 -4
- package/web-dist/chunks/{Accordion-22z6y8kw.js → Accordion-gnbt6w4q.js} +3 -3
- package/web-dist/chunks/{Accordion-s1qjbbb0.js → Accordion-hdyzyw8q.js} +1 -1
- package/web-dist/chunks/{Accordion-q0cbpr2d.js → Accordion-htm3j8r8.js} +4 -4
- package/web-dist/chunks/{Accordion-mh3bhcb4.js → Accordion-kdb9g5b1.js} +3 -3
- package/web-dist/chunks/{Accordion-zsd0ar2p.js → Accordion-nmpzv3b0.js} +3 -3
- package/web-dist/chunks/{Accordion-b8ncebyz.js → Accordion-pdjhezmz.js} +1 -1
- package/web-dist/chunks/{Accordion-zqa9mt13.js → Accordion-q683s6kd.js} +2 -2
- package/web-dist/chunks/{Accordion-30284ah1.js → Accordion-r75ep5pg.js} +4 -4
- package/web-dist/chunks/{Accordion-rmakadh6.js → Accordion-rq311z1k.js} +4 -4
- package/web-dist/chunks/{Accordion-w28mb1ed.js → Accordion-rtamzg9j.js} +1 -1
- package/web-dist/chunks/{Accordion-nv1evygk.js → Accordion-sh79sr5g.js} +1 -1
- package/web-dist/chunks/{Accordion-t93g1wq3.js → Accordion-t9n4ey2r.js} +1 -1
- package/web-dist/chunks/{Accordion-zanzeryt.js → Accordion-tqagt6cz.js} +1 -1
- package/web-dist/chunks/{Accordion-0n3y5ry1.js → Accordion-v6vhyv31.js} +1 -1
- package/web-dist/chunks/{Accordion-6pkteb8k.js → Accordion-vb52sts9.js} +3 -3
- package/web-dist/chunks/{Accordion-rwjbwm18.js → Accordion-vkqqktc5.js} +1 -1
- package/web-dist/chunks/{Accordion-9zwdqhf2.js → Accordion-za0jcjgn.js} +2 -2
- package/web-dist/chunks/Video.native-97x0098j.js +905 -0
- package/web-dist/chunks/index-cnnsfz6n.js +1807 -0
- package/web-dist/components/accordion/Accordion.js +3 -3
- package/web-dist/components/accordion-item/AccordionItem.js +3 -3
- package/web-dist/components/app-bar/AppBar.js +7 -7
- package/web-dist/components/app-header/AppHeader.js +7 -7
- package/web-dist/components/app-shell/AppShell.js +2 -2
- package/web-dist/components/audio/Audio.d.ts +7 -0
- package/web-dist/components/audio/Audio.dependency-0.d.ts +27 -0
- package/web-dist/components/audio/Audio.dependency-1.d.ts +3 -0
- package/web-dist/components/audio/Audio.js +264 -0
- package/web-dist/components/audio/Audio.types-0.d.ts +18 -0
- package/web-dist/components/audio/index.d.ts +2 -0
- package/web-dist/components/audio/index.js +2 -0
- package/web-dist/components/auth-screen/AuthScreen.js +11 -11
- package/web-dist/components/avatar/Avatar.js +3 -3
- package/web-dist/components/avatar-group/AvatarGroup.js +3 -3
- package/web-dist/components/badge/Badge.js +2 -2
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +10 -10
- package/web-dist/components/bottom-sheet/BottomSheet.js +4 -4
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +4 -4
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +4 -4
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +4 -4
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +4 -4
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +4 -4
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +4 -4
- package/web-dist/components/button/Button.js +4 -4
- package/web-dist/components/button-group/ButtonGroup.js +4 -4
- package/web-dist/components/calendar/Calendar.js +5 -5
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +10 -10
- package/web-dist/components/card/Card.js +9 -9
- package/web-dist/components/chat-list-item/ChatListItem.js +6 -6
- package/web-dist/components/checkbox/Checkbox.js +4 -4
- package/web-dist/components/checkbox-group/CheckboxGroup.js +4 -4
- package/web-dist/components/chip/Chip.js +4 -4
- package/web-dist/components/chip-group/ChipGroup.js +4 -4
- package/web-dist/components/collection-editor/CollectionEditor.js +9 -9
- package/web-dist/components/color-hue-scale/ColorHueScale.js +14 -14
- package/web-dist/components/color-picker/ColorPicker.js +14 -14
- package/web-dist/components/color-tone/ColorTone.js +14 -14
- package/web-dist/components/color-wheel/ColorWheel.js +14 -14
- package/web-dist/components/content-rail/ContentRail.js +4 -4
- package/web-dist/components/data-table/DataTable.js +15 -15
- package/web-dist/components/date-picker/DatePicker.js +9 -9
- package/web-dist/components/dialog/Dialog.js +4 -4
- package/web-dist/components/divider/Divider.js +2 -2
- package/web-dist/components/empty-state/EmptyState.js +10 -10
- package/web-dist/components/explorer/Explorer.js +4 -4
- package/web-dist/components/field/Field.js +4 -4
- package/web-dist/components/file-explorer/FileExplorer.js +4 -4
- package/web-dist/components/flat-list/FlatList.js +5 -5
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +11 -11
- package/web-dist/components/form/Form.js +7 -7
- package/web-dist/components/form-actions/FormActions.js +7 -7
- package/web-dist/components/form-error/FormError.js +7 -7
- package/web-dist/components/game/Game.js +3 -3
- package/web-dist/components/game-entity/GameEntity.js +3 -3
- package/web-dist/components/game-field/GameField.js +3 -3
- package/web-dist/components/game-input-zone/GameInputZone.js +3 -3
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +3 -3
- package/web-dist/components/game-overlay/GameOverlay.js +3 -3
- package/web-dist/components/gradient/Gradient.js +3 -3
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +3 -3
- package/web-dist/components/grid/Grid.js +2 -2
- package/web-dist/components/hero/Hero.js +9 -9
- package/web-dist/components/icon-button/IconButton.js +4 -4
- package/web-dist/components/image/Image.js +3 -3
- package/web-dist/components/list/List.js +5 -5
- package/web-dist/components/list-item/ListItem.js +5 -5
- package/web-dist/components/list-section/ListSection.js +5 -5
- package/web-dist/components/master-detail/MasterDetail.js +2 -2
- package/web-dist/components/media-card/MediaCard.js +9 -9
- package/web-dist/components/media-explorer/MediaExplorer.js +4 -4
- package/web-dist/components/message-bubble/MessageBubble.js +6 -6
- package/web-dist/components/metric-card/MetricCard.js +9 -9
- package/web-dist/components/missing-element/MissingElement.js +3 -3
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +11 -11
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +11 -11
- package/web-dist/components/otp-form/OtpForm.js +11 -11
- package/web-dist/components/pagination/Pagination.js +4 -4
- package/web-dist/components/palette-item/PaletteItem.js +9 -9
- package/web-dist/components/popover-menu/PopoverMenu.js +4 -4
- package/web-dist/components/post-card/PostCard.js +9 -9
- package/web-dist/components/product-card/ProductCard.js +9 -9
- package/web-dist/components/progress/Progress.js +3 -3
- package/web-dist/components/progress-ring/ProgressRing.js +3 -3
- package/web-dist/components/radio/Radio.js +4 -4
- package/web-dist/components/radio-group/RadioGroup.js +4 -4
- package/web-dist/components/rating/Rating.js +2 -2
- package/web-dist/components/reader/Reader.js +10 -10
- package/web-dist/components/scan-overlay/ScanOverlay.js +10 -10
- package/web-dist/components/screen/Screen.js +2 -2
- package/web-dist/components/screen-section/ScreenSection.js +3 -3
- package/web-dist/components/scroll-view/ScrollView.js +2 -2
- package/web-dist/components/search-input/SearchInput.js +5 -5
- package/web-dist/components/section-header/SectionHeader.js +3 -3
- package/web-dist/components/section-list/SectionList.js +5 -5
- package/web-dist/components/select/Select.js +9 -9
- package/web-dist/components/sign-in-form/SignInForm.js +11 -11
- package/web-dist/components/sign-up-form/SignUpForm.js +11 -11
- package/web-dist/components/skeleton/Skeleton.js +12 -12
- package/web-dist/components/skeleton-card/SkeletonCard.js +12 -12
- package/web-dist/components/skeleton-list/SkeletonList.js +12 -12
- package/web-dist/components/skeleton-text/SkeletonText.js +12 -12
- package/web-dist/components/surface/Surface.js +3 -3
- package/web-dist/components/switch/Switch.js +2 -2
- 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/tabs/Tabs.js +2 -2
- package/web-dist/components/text-input/TextInput.js +5 -5
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +4 -4
- package/web-dist/components/time-picker/TimePicker.js +8 -8
- package/web-dist/components/timeline/Timeline.js +3 -3
- package/web-dist/components/toast/Toast.js +4 -4
- package/web-dist/components/toast-provider/ToastProvider.js +4 -4
- package/web-dist/components/toolbar/Toolbar.js +9 -9
- package/web-dist/components/tree-item/TreeItem.js +6 -6
- package/web-dist/components/uploader/Uploader.js +12 -12
- package/web-dist/components/video/Video.d.ts +7 -0
- package/web-dist/components/video/Video.dependency-0.d.ts +27 -0
- package/web-dist/components/video/Video.dependency-1.d.ts +3 -0
- package/web-dist/components/video/Video.dependency-2.d.ts +9 -0
- package/web-dist/components/video/Video.dependency-3.d.ts +23 -0
- package/web-dist/components/video/Video.js +80 -0
- package/web-dist/components/video/Video.types-0.d.ts +29 -0
- package/web-dist/components/video/index.d.ts +2 -0
- package/web-dist/components/video/index.js +2 -0
- package/web-dist/components/view/View.js +2 -2
- package/web-dist/manifest.json +753 -675
- package/web-dist/runtime/ZoraProvider.js +3 -3
- /package/web-dist/chunks/{Accordion-5kaxyqy1.js → Accordion-ww4f12ty.js} +0 -0
|
@@ -13,6 +13,7 @@ export declare const INVERTED_POLARITY_PROP: {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const FEATURE_MANIFEST_ELEMENTS: {
|
|
15
15
|
readonly auth: readonly ["AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm"];
|
|
16
|
+
readonly audio: readonly ["Audio"];
|
|
16
17
|
readonly surface: readonly ["Surface"];
|
|
17
18
|
readonly avatar: readonly ["Avatar", "AvatarGroup"];
|
|
18
19
|
readonly badge: readonly ["Badge"];
|
|
@@ -43,17 +44,18 @@ export declare const FEATURE_MANIFEST_ELEMENTS: {
|
|
|
43
44
|
readonly 'time-picker': readonly ["TimePicker"];
|
|
44
45
|
readonly timeline: readonly ["Timeline"];
|
|
45
46
|
readonly uploader: readonly ["Uploader"];
|
|
47
|
+
readonly video: readonly ["Video"];
|
|
46
48
|
readonly 'bottom-sheet': readonly ["BottomSheet"];
|
|
47
49
|
readonly chess: readonly ["ChessBoard", "OpeningBook"];
|
|
48
50
|
readonly game: readonly ["Game", "GameField", "GameEntity", "GameInputZone", "GameMeasurementProbe", "GameOverlay"];
|
|
49
51
|
readonly tabletop: readonly ["TabletopTable", "PokerTrainingTable"];
|
|
50
52
|
};
|
|
51
|
-
export declare const CONTAINER_ALLOWED_CHILDREN: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement"];
|
|
53
|
+
export declare const CONTAINER_ALLOWED_CHILDREN: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
52
54
|
export declare const GAME_ALLOWED_CHILDREN: readonly ["Game", "GameField"];
|
|
53
55
|
export declare const CHESS_ALLOWED_CHILDREN: readonly ["ChessBoard", "OpeningBook"];
|
|
54
56
|
export declare const TABLETOP_ALLOWED_CHILDREN: readonly ["TabletopTable", "PokerTrainingTable"];
|
|
55
57
|
export declare const CONTENT_RAIL_ALLOWED_CHILDREN: readonly ["Chip", "ChipGroup", "MediaCard", "MetricCard", "Avatar", "AvatarGroup", "Badge", "Button", "IconButton", "View", "ScrollView", "Card", "Image", "ProductCard", "PostCard", "ChatListItem", "MessageBubble", "MissingElement"];
|
|
56
|
-
export declare const SCREEN_SECTION_ALLOWED_CHILDREN: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
57
|
-
export declare const SCREEN_ALLOWED_CHILDREN: readonly ["ScreenSection", "ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
58
|
+
export declare const SCREEN_SECTION_ALLOWED_CHILDREN: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
59
|
+
export declare const SCREEN_ALLOWED_CHILDREN: readonly ["ScreenSection", "ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
58
60
|
export declare const ZORA_THEME_TOKEN_FAMILIES: readonly ["colors", "spacing", "radii", "typography", "shadows"];
|
|
59
61
|
//# sourceMappingURL=authoring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../../src/constants/authoring.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../../src/constants/authoring.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C5B,CAAC;AAEX,eAAO,MAAM,0BAA0B,26BAuE7B,CAAC;AAEX,eAAO,MAAM,qBAAqB,gCAAiC,CAAC;AAEpE,eAAO,MAAM,sBAAsB,wCAAyC,CAAC;AAC7E,eAAO,MAAM,yBAAyB,kDAAmD,CAAC;AAE1F,eAAO,MAAM,6BAA6B,0OAmBhC,CAAC;AAEX,eAAO,MAAM,+BAA+B,ogCAKlC,CAAC;AAEX,eAAO,MAAM,uBAAuB,qhCAG1B,CAAC;AAEX,eAAO,MAAM,yBAAyB,kEAM5B,CAAC"}
|
|
@@ -19,6 +19,7 @@ export const FEATURE_MANIFEST_ELEMENTS = {
|
|
|
19
19
|
'SignInForm',
|
|
20
20
|
'SignUpForm',
|
|
21
21
|
],
|
|
22
|
+
audio: ['Audio'],
|
|
22
23
|
surface: ['Surface'],
|
|
23
24
|
avatar: ['Avatar', 'AvatarGroup'],
|
|
24
25
|
badge: ['Badge'],
|
|
@@ -49,6 +50,7 @@ export const FEATURE_MANIFEST_ELEMENTS = {
|
|
|
49
50
|
'time-picker': ['TimePicker'],
|
|
50
51
|
timeline: ['Timeline'],
|
|
51
52
|
uploader: ['Uploader'],
|
|
53
|
+
video: ['Video'],
|
|
52
54
|
'bottom-sheet': ['BottomSheet'],
|
|
53
55
|
chess: ['ChessBoard', 'OpeningBook'],
|
|
54
56
|
game: ['Game', 'GameField', 'GameEntity', 'GameInputZone', 'GameMeasurementProbe', 'GameOverlay'],
|
|
@@ -56,6 +58,7 @@ export const FEATURE_MANIFEST_ELEMENTS = {
|
|
|
56
58
|
};
|
|
57
59
|
export const CONTAINER_ALLOWED_CHILDREN = [
|
|
58
60
|
'ActivityIndicator',
|
|
61
|
+
'Audio',
|
|
59
62
|
'AuthScreen',
|
|
60
63
|
'ForgotPasswordForm',
|
|
61
64
|
'OAuthProviderButton',
|
|
@@ -123,6 +126,7 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
123
126
|
'Reader',
|
|
124
127
|
'ContentRail',
|
|
125
128
|
'MissingElement',
|
|
129
|
+
'Video',
|
|
126
130
|
];
|
|
127
131
|
export const GAME_ALLOWED_CHILDREN = ['Game', 'GameField'];
|
|
128
132
|
export const CHESS_ALLOWED_CHILDREN = ['ChessBoard', 'OpeningBook'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring.js","sourceRoot":"","sources":["../../src/constants/authoring.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,WAAW;IAClB,qBAAqB,EAAE,IAAI;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,iEAAiE;IACxE,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;CAC5B,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE;QACJ,YAAY;QACZ,oBAAoB;QACpB,qBAAqB;QACrB,mBAAmB;QACnB,SAAS;QACT,YAAY;QACZ,YAAY;KACb;IACD,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,IAAI,EAAE,CAAC,MAAM,EAAE,WA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U,CAAC;IACtB,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,KAAK,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;IACpC,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,aAAa,CAAC;IACjG,QAAQ,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;CACzC,CAAC;AAEX,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,mBAAmB;IACnB,YAAY;IACZ,oBAAoB;IACpB,qBAAqB;IACrB,mBAAmB;IACnB,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,SAAS;IACT,QAAQ;IACR,aAAa;IACb,OAAO;IACP,WAAW;IACX,YAAY;IACZ,MAAM;IACN,WAAW;IACX,WAAW;IACX,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,aAAa;IACb,MAAM;IACN,SAAS;IACT,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,YAAY;IACZ,UAAU;IACV,eAAe;IACf,cAAc;IACd,UAAU;IACV,aAAa;IACb,aAAa;IACb,aAAa;IACb,MAAM;IACN,YAAY;IACZ,MAAM;IACN,UAAU;IACV,SAAS;IACT,MAAM;IACN,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,sBAAsB;IACtB,MAAM;IACN,cAAc;IACd,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,UAAU;IACV,MAAM;IACN,MAAM;IACN,YAAY;IACZ,eAAe;IACf,UAAU;IACV,cAAc;IACd,eAAe;IACf,cAAc;IACd,QAAQ;IACR,aAAa;IACb,gBAAgB;
|
|
1
|
+
{"version":3,"file":"authoring.js","sourceRoot":"","sources":["../../src/constants/authoring.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS,EAAE,OAAO;IAClB,KAAK,EA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AQ;IACR,SAAS;IACT,OAAO;IACP,YAAY;IACZ,SAAS;CACD,CAAC","sourcesContent":["export const COMPONENT_THEME_AUTHORING = {\n authority: 'theme',\n scope: 'component',\n allowInstanceOverride: true,\n} as const;\n\nexport const INVERTED_POLARITY_PROP = {\n type: 'boolean',\n category: 'Theme',\n label: 'Inverted surface polarity (inherits when omitted; false resets)',\n authoring: { authority: 'instance' },\n} as const;\n\nexport const FEATURE_MANIFEST_ELEMENTS = {\n auth: [\n 'AuthScreen',\n 'ForgotPasswordForm',\n 'OAuthProviderButton',\n 'OAuthProviderList',\n 'OtpForm',\n 'SignInForm',\n 'SignUpForm',\n ],\n audio: ['Audio'],\n surface: ['Surface'],\n avatar: ['Avatar', 'AvatarGroup'],\n badge: ['Badge'],\n card: ['Card', 'MediaCard', 'MetricCard', 'PostCard', 'ProductCard'],\n chip: ['Chip', 'ChipGroup'],\n 'data-table': ['DataTable'],\n 'date-picker': ['DatePicker'],\n explorer: ['MediaExplorer', 'FileExplorer'],\n dialog: ['Dialog'],\n form: ['Form', 'FormError', 'Field'],\n gradient: ['Gradient'],\n button: ['Button', 'IconButton', 'ButtonGroup'],\n icon: ['Icon'],\n image: ['Image'],\n 'keyboard-avoiding-view': ['KeyboardAvoidingView'],\n link: ['Link'],\n 'master-detail': ['MasterDetail'],\n 'content-rail': ['ContentRail'],\n layout: ['Divider', 'Grid', 'Screen', 'ScrollView', 'View'],\n section: ['ScreenSection', 'SectionHeader'],\n list: ['FlatList', 'SectionList'],\n pagination: ['Pagination'],\n rating: ['Rating'],\n skeleton: ['Skeleton', 'SkeletonCard', 'SkeletonList', 'SkeletonText'],\n tabs: ['Tabs', 'TabList', 'Tab', 'TabPanel'],\n toolbar: ['Toolbar'],\n typography: ['Heading', 'Text'],\n 'time-picker': ['TimePicker'],\n timeline: ['Timeline'],\n uploader: ['Uploader'],\n video: ['Video'],\n 'bottom-sheet': ['BottomSheet'],\n chess: ['ChessBoard', 'OpeningBook'],\n game: ['Game', 'GameField', 'GameEntity', 'GameInputZone', 'GameMeasurementProbe', 'GameOverlay'],\n tabletop: ['TabletopTable', 'PokerTrainingTable'],\n} as const;\n\nexport const CONTAINER_ALLOWED_CHILDREN = [\n 'ActivityIndicator',\n 'Audio',\n 'AuthScreen',\n 'ForgotPasswordForm',\n 'OAuthProviderButton',\n 'OAuthProviderList',\n 'OtpForm',\n 'SignInForm',\n 'SignUpForm',\n 'Accordion',\n 'Surface',\n 'Avatar',\n 'AvatarGroup',\n 'Badge',\n 'MediaCard',\n 'MetricCard',\n 'Chip',\n 'ChipGroup',\n 'DataTable',\n 'DatePicker',\n 'Dialog',\n 'Pagination',\n 'Rating',\n 'SearchInput',\n 'Tabs',\n 'Toolbar',\n 'Skeleton',\n 'SkeletonCard',\n 'SkeletonList',\n 'SkeletonText',\n 'IconButton',\n 'Uploader',\n 'MediaExplorer',\n 'FileExplorer',\n 'FlatList',\n 'SectionList',\n 'BottomSheet',\n 'ProductCard',\n 'View',\n 'ScrollView',\n 'Grid',\n 'Gradient',\n 'Divider',\n 'Text',\n 'Heading',\n 'Icon',\n 'Image',\n 'Hero',\n 'KeyboardAvoidingView',\n 'Link',\n 'MasterDetail',\n 'Button',\n 'ButtonGroup',\n 'RadioGroup',\n 'ThemeModeToggle',\n 'TextInput',\n 'TimePicker',\n 'Timeline',\n 'Form',\n 'Card',\n 'EmptyState',\n 'SectionHeader',\n 'PostCard',\n 'ChatListItem',\n 'MessageBubble',\n 'ProgressRing',\n 'Reader',\n 'ContentRail',\n 'MissingElement',\n 'Video',\n] as const;\n\nexport const GAME_ALLOWED_CHILDREN = ['Game', 'GameField'] as const;\n\nexport const CHESS_ALLOWED_CHILDREN = ['ChessBoard', 'OpeningBook'] as const;\nexport const TABLETOP_ALLOWED_CHILDREN = ['TabletopTable', 'PokerTrainingTable'] as const;\n\nexport const CONTENT_RAIL_ALLOWED_CHILDREN = [\n 'Chip',\n 'ChipGroup',\n 'MediaCard',\n 'MetricCard',\n 'Avatar',\n 'AvatarGroup',\n 'Badge',\n 'Button',\n 'IconButton',\n 'View',\n 'ScrollView',\n 'Card',\n 'Image',\n 'ProductCard',\n 'PostCard',\n 'ChatListItem',\n 'MessageBubble',\n 'MissingElement',\n] as const;\n\nexport const SCREEN_SECTION_ALLOWED_CHILDREN = [\n ...CONTAINER_ALLOWED_CHILDREN,\n ...CHESS_ALLOWED_CHILDREN,\n ...GAME_ALLOWED_CHILDREN,\n ...TABLETOP_ALLOWED_CHILDREN,\n] as const;\n\nexport const SCREEN_ALLOWED_CHILDREN = [\n 'ScreenSection',\n ...SCREEN_SECTION_ALLOWED_CHILDREN,\n] as const;\n\nexport const ZORA_THEME_TOKEN_FAMILIES = [\n 'colors',\n 'spacing',\n 'radii',\n 'typography',\n 'shadows',\n] as const;\n"]}
|
|
@@ -3,7 +3,7 @@ export declare const accordionItemMeta: {
|
|
|
3
3
|
readonly category: "component";
|
|
4
4
|
readonly description: "One expandable accordion item with authored content and optional actions.";
|
|
5
5
|
readonly directManifestNode: true;
|
|
6
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement"];
|
|
6
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
7
7
|
readonly blueprint: {
|
|
8
8
|
readonly label: "Accordion item";
|
|
9
9
|
readonly defaultProps: {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AudioProps } from '../../../../types/audio';
|
|
3
|
+
/** Renders the canonical themed Audio player backed by Expo Audio. */
|
|
4
|
+
export declare const Audio: (props: AudioProps) => React.ReactElement | null;
|
|
5
|
+
//# sourceMappingURL=Audio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../../../src/features/audio/adapters/inbound/Audio.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAU1D,sEAAsE;AACtE,eAAO,MAAM,KAAK,kDAAiC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Pressable } from '@ankhorage/surface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconButton } from '../../../button/public';
|
|
4
|
+
import { View } from '../../../layout/public';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
7
|
+
import { Text } from '../../../typography/public';
|
|
8
|
+
import { useAudioController } from '../../composition/useAudioController';
|
|
9
|
+
const AUDIO_CONTROL_TRACK_WIDTH = 160;
|
|
10
|
+
/** Renders the canonical themed Audio player backed by Expo Audio. */
|
|
11
|
+
export const Audio = withZoraThemeScope(AudioInner);
|
|
12
|
+
/** Keeps a value inside an inclusive fractional range. */
|
|
13
|
+
function clampFraction(value) {
|
|
14
|
+
return Math.max(0, Math.min(1, value));
|
|
15
|
+
}
|
|
16
|
+
/** Normalizes a finite non-negative playback value. */
|
|
17
|
+
function normalizePlaybackTime(value) {
|
|
18
|
+
return Number.isFinite(value) && value > 0 ? value : 0;
|
|
19
|
+
}
|
|
20
|
+
/** Formats a playback duration as minutes and seconds. */
|
|
21
|
+
function formatAudioTime(value) {
|
|
22
|
+
const seconds = Math.floor(normalizePlaybackTime(value));
|
|
23
|
+
return `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`;
|
|
24
|
+
}
|
|
25
|
+
/** Renders an accessible themed press target for an audio playback range. */
|
|
26
|
+
function AudioRange({ accessibilityLabel, color, disabled, onChange, value, }) {
|
|
27
|
+
const { theme } = useZoraTheme();
|
|
28
|
+
const fraction = clampFraction(value);
|
|
29
|
+
return (<Pressable accessibilityLabel={accessibilityLabel} accessibilityRole="adjustable" accessibilityState={{ disabled }} bg={theme.semantics.neutral.surface} disabled={disabled} height={16} onPress={(event) => onChange(clampFraction(event.nativeEvent.locationX / AUDIO_CONTROL_TRACK_WIDTH))} radius="full" style={{ justifyContent: 'center', width: AUDIO_CONTROL_TRACK_WIDTH }}>
|
|
30
|
+
<View bg={color} height={4} radius="full" style={{ width: `${fraction * 100}%` }}/>
|
|
31
|
+
</Pressable>);
|
|
32
|
+
}
|
|
33
|
+
/** Owns Expo Audio playback state and composes the portable themed player controls. */
|
|
34
|
+
function AudioInner({ themeId: _themeId, mode: _mode, interactionPolicy, source, testID, }) {
|
|
35
|
+
const { theme } = useZoraTheme();
|
|
36
|
+
const controller = useAudioController(source);
|
|
37
|
+
const duration = normalizePlaybackTime(controller.duration);
|
|
38
|
+
const currentTime = Math.min(normalizePlaybackTime(controller.currentTime), duration || Infinity);
|
|
39
|
+
const progress = duration > 0 ? currentTime / duration : 0;
|
|
40
|
+
const disabled = interactionPolicy === 'passive' || !source || !controller.isLoaded;
|
|
41
|
+
/** Seeks the Expo player to a fraction of its current duration. */
|
|
42
|
+
const seek = React.useCallback((fraction) => {
|
|
43
|
+
if (duration <= 0 || disabled)
|
|
44
|
+
return;
|
|
45
|
+
void controller.seekTo(clampFraction(fraction) * duration).catch(() => undefined);
|
|
46
|
+
}, [controller, disabled, duration]);
|
|
47
|
+
/** Updates the player volume immediately from the themed volume range. */
|
|
48
|
+
const changeVolume = React.useCallback((nextVolume) => {
|
|
49
|
+
if (disabled)
|
|
50
|
+
return;
|
|
51
|
+
const resolvedVolume = clampFraction(nextVolume);
|
|
52
|
+
controller.setVolume(resolvedVolume);
|
|
53
|
+
}, [controller, disabled]);
|
|
54
|
+
/** Toggles the current Expo Audio player state. */
|
|
55
|
+
const togglePlayback = React.useCallback(() => {
|
|
56
|
+
if (disabled)
|
|
57
|
+
return;
|
|
58
|
+
if (controller.playing) {
|
|
59
|
+
controller.pause();
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
controller.play();
|
|
63
|
+
}, [controller, disabled]);
|
|
64
|
+
return (<View accessibilityLabel="Audio player" accessibilityRole="summary" bg={theme.semantics.surface.raised} borderColor={theme.semantics.neutral.divider} borderWidth={1} gap="s" p="m" radius="m" testID={testID}>
|
|
65
|
+
<View align="center" direction="row" gap="s" wrap="nowrap">
|
|
66
|
+
<IconButton disabled={disabled} icon={{ name: controller.playing ? 'pause' : 'play' }} interactionPolicy={interactionPolicy} label={controller.playing ? 'Pause audio' : 'Play audio'} onPress={togglePlayback}/>
|
|
67
|
+
<AudioRange accessibilityLabel="Audio progress" color={theme.semantics.action.primary.base} disabled={disabled || duration <= 0} onChange={seek} value={progress}/>
|
|
68
|
+
<Text accessibilityLiveRegion="polite" emphasis="muted" variant="caption">
|
|
69
|
+
{`${formatAudioTime(currentTime)} / ${formatAudioTime(duration)}`}
|
|
70
|
+
</Text>
|
|
71
|
+
</View>
|
|
72
|
+
<View align="center" direction="row" gap="s" wrap="nowrap">
|
|
73
|
+
<Text accessibilityLabel="Volume" emphasis="muted" variant="caption">
|
|
74
|
+
Volume
|
|
75
|
+
</Text>
|
|
76
|
+
<AudioRange accessibilityLabel="Audio volume" color={theme.semantics.action.primary.base} disabled={disabled} onChange={changeVolume} value={controller.volume}/>
|
|
77
|
+
</View>
|
|
78
|
+
</View>);
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=Audio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Audio.js","sourceRoot":"","sources":["../../../../../src/features/audio/adapters/inbound/Audio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAEtC,sEAAsE;AACtE,MAAM,CAAC,MAAM,KAAK,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UAAU,CACT,kBAAkB,CAAC,cAAc,CACjC,KAAK,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAC3C,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,YAAY,CAAC,CACvB,KAAK,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,EAE7B;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { Pressable } from '@ankhorage/surface';\nimport React from 'react';\n\nimport type { AudioProps } from '../../../../types/audio';\nimport { IconButton } from '../../../button/public';\nimport { View } from '../../../layout/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { useZoraTheme } from '../../../theme/composition/useZoraTheme';\nimport { Text } from '../../../typography/public';\nimport { useAudioController } from '../../composition/useAudioController';\n\nconst AUDIO_CONTROL_TRACK_WIDTH = 160;\n\n/** Renders the canonical themed Audio player backed by Expo Audio. */\nexport const Audio = withZoraThemeScope(AudioInner);\n\n/** Keeps a value inside an inclusive fractional range. */\nfunction clampFraction(value: number): number {\n return Math.max(0, Math.min(1, value));\n}\n\n/** Normalizes a finite non-negative playback value. */\nfunction normalizePlaybackTime(value: number): number {\n return Number.isFinite(value) && value > 0 ? value : 0;\n}\n\n/** Formats a playback duration as minutes and seconds. */\nfunction formatAudioTime(value: number): string {\n const seconds = Math.floor(normalizePlaybackTime(value));\n return `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`;\n}\n\n/** Renders an accessible themed press target for an audio playback range. */\nfunction AudioRange({\n accessibilityLabel,\n color,\n disabled,\n onChange,\n value,\n}: {\n readonly accessibilityLabel: string;\n readonly color: string;\n readonly disabled: boolean;\n readonly onChange: (value: number) => void;\n readonly value: number;\n}) {\n const { theme } = useZoraTheme();\n const fraction = clampFraction(value);\n\n return (\n <Pressable\n accessibilityLabel={accessibilityLabel}\n accessibilityRole=\"adjustable\"\n accessibilityState={{ disabled }}\n bg={theme.semantics.neutral.surface}\n disabled={disabled}\n height={16}\n onPress={(event) =>\n onChange(clampFraction(event.nativeEvent.locationX / AUDIO_CONTROL_TRACK_WIDTH))\n }\n radius=\"full\"\n style={{ justifyContent: 'center', width: AUDIO_CONTROL_TRACK_WIDTH }}\n >\n <View bg={color} height={4} radius=\"full\" style={{ width: `${fraction * 100}%` }} />\n </Pressable>\n );\n}\n\n/** Owns Expo Audio playback state and composes the portable themed player controls. */\nfunction AudioInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy,\n source,\n testID,\n}: AudioProps) {\n const { theme } = useZoraTheme();\n const controller = useAudioController(source);\n const duration = normalizePlaybackTime(controller.duration);\n const currentTime = Math.min(normalizePlaybackTime(controller.currentTime), duration || Infinity);\n const progress = duration > 0 ? currentTime / duration : 0;\n const disabled = interactionPolicy === 'passive' || !source || !controller.isLoaded;\n\n /** Seeks the Expo player to a fraction of its current duration. */\n const seek = React.useCallback(\n (fraction: number) => {\n if (duration <= 0 || disabled) return;\n void controller.seekTo(clampFraction(fraction) * duration).catch(() => undefined);\n },\n [controller, disabled, duration],\n );\n\n /** Updates the player volume immediately from the themed volume range. */\n const changeVolume = React.useCallback(\n (nextVolume: number) => {\n if (disabled) return;\n const resolvedVolume = clampFraction(nextVolume);\n controller.setVolume(resolvedVolume);\n },\n [controller, disabled],\n );\n\n /** Toggles the current Expo Audio player state. */\n const togglePlayback = React.useCallback(() => {\n if (disabled) return;\n if (controller.playing) {\n controller.pause();\n return;\n }\n controller.play();\n }, [controller, disabled]);\n\n return (\n <View\n accessibilityLabel=\"Audio player\"\n accessibilityRole=\"summary\"\n bg={theme.semantics.surface.raised}\n borderColor={theme.semantics.neutral.divider}\n borderWidth={1}\n gap=\"s\"\n p=\"m\"\n radius=\"m\"\n testID={testID}\n >\n <View align=\"center\" direction=\"row\" gap=\"s\" wrap=\"nowrap\">\n <IconButton\n disabled={disabled}\n icon={{ name: controller.playing ? 'pause' : 'play' }}\n interactionPolicy={interactionPolicy}\n label={controller.playing ? 'Pause audio' : 'Play audio'}\n onPress={togglePlayback}\n />\n <AudioRange\n accessibilityLabel=\"Audio progress\"\n color={theme.semantics.action.primary.base}\n disabled={disabled || duration <= 0}\n onChange={seek}\n value={progress}\n />\n <Text accessibilityLiveRegion=\"polite\" emphasis=\"muted\" variant=\"caption\">\n {`${formatAudioTime(currentTime)} / ${formatAudioTime(duration)}`}\n </Text>\n </View>\n <View align=\"center\" direction=\"row\" gap=\"s\" wrap=\"nowrap\">\n <Text accessibilityLabel=\"Volume\" emphasis=\"muted\" variant=\"caption\">\n Volume\n </Text>\n <AudioRange\n accessibilityLabel=\"Audio volume\"\n color={theme.semantics.action.primary.base}\n disabled={disabled}\n onChange={changeVolume}\n value={controller.volume}\n />\n </View>\n </View>\n );\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const audioMeta: {
|
|
2
|
+
readonly name: "Audio";
|
|
3
|
+
readonly category: "component";
|
|
4
|
+
readonly description: "Plays one authored audio asset with themed playback, seek, progress, and volume controls.";
|
|
5
|
+
readonly directManifestNode: true;
|
|
6
|
+
readonly allowedChildren: readonly [];
|
|
7
|
+
readonly blueprint: {
|
|
8
|
+
readonly label: "Audio";
|
|
9
|
+
};
|
|
10
|
+
readonly props: {
|
|
11
|
+
readonly source: {
|
|
12
|
+
readonly type: "media";
|
|
13
|
+
readonly category: "Content";
|
|
14
|
+
readonly label: "Source";
|
|
15
|
+
readonly mediaKinds: readonly ["audio"];
|
|
16
|
+
readonly authoring: {
|
|
17
|
+
readonly authority: "instance";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=audioMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audioMeta.d.ts","sourceRoot":"","sources":["../../../src/features/audio/audioMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAiBgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const audioMeta = {
|
|
2
|
+
name: 'Audio',
|
|
3
|
+
category: 'component',
|
|
4
|
+
description: 'Plays one authored audio asset with themed playback, seek, progress, and volume controls.',
|
|
5
|
+
directManifestNode: true,
|
|
6
|
+
allowedChildren: [],
|
|
7
|
+
blueprint: { label: 'Audio' },
|
|
8
|
+
props: {
|
|
9
|
+
source: {
|
|
10
|
+
type: 'media',
|
|
11
|
+
category: 'Content',
|
|
12
|
+
label: 'Source',
|
|
13
|
+
mediaKinds: ['audio'],
|
|
14
|
+
authoring: { authority: 'instance' },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=audioMeta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audioMeta.js","sourceRoot":"","sources":["../../../src/features/audio/audioMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EACT,2FAA2F;IAC7F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;IAC7B,KAAK,EAAE;QACL,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const audioMeta = {\n name: 'Audio',\n category: 'component',\n description:\n 'Plays one authored audio asset with themed playback, seek, progress, and volume controls.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: { label: 'Audio' },\n props: {\n source: {\n type: 'media',\n category: 'Content',\n label: 'Source',\n mediaKinds: ['audio'],\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Internal playback state and operations consumed by the themed Audio controls. */
|
|
2
|
+
export interface AudioController {
|
|
3
|
+
readonly currentTime: number;
|
|
4
|
+
readonly duration: number;
|
|
5
|
+
readonly isLoaded: boolean;
|
|
6
|
+
readonly playing: boolean;
|
|
7
|
+
readonly volume: number;
|
|
8
|
+
pause(): void;
|
|
9
|
+
play(): void;
|
|
10
|
+
seekTo(seconds: number): Promise<void>;
|
|
11
|
+
setVolume(volume: number): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=AudioController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioController.d.ts","sourceRoot":"","sources":["../../../../src/features/audio/composition/AudioController.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioController.js","sourceRoot":"","sources":["../../../../src/features/audio/composition/AudioController.ts"],"names":[],"mappings":"","sourcesContent":["/** Internal playback state and operations consumed by the themed Audio controls. */\nexport interface AudioController {\n readonly currentTime: number;\n readonly duration: number;\n readonly isLoaded: boolean;\n readonly playing: boolean;\n readonly volume: number;\n pause(): void;\n play(): void;\n seekTo(seconds: number): Promise<void>;\n setVolume(volume: number): void;\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AudioProps } from '../../../types/audio';
|
|
2
|
+
import type { AudioController } from './AudioController';
|
|
3
|
+
/** Connects native Audio controls to the lifecycle-managed Expo Audio player. */
|
|
4
|
+
export declare function useAudioController(source: AudioProps['source']): AudioController;
|
|
5
|
+
//# sourceMappingURL=useAudioController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../src/features/audio/composition/useAudioController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,eAAe,CAehF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useAudioPlayer, useAudioPlayerStatus } from 'expo-audio';
|
|
2
|
+
/** Applies the requested volume through Expo Audio's mutable player boundary. */
|
|
3
|
+
function setAudioPlayerVolume(player, volume) {
|
|
4
|
+
player.volume = volume;
|
|
5
|
+
}
|
|
6
|
+
/** Connects native Audio controls to the lifecycle-managed Expo Audio player. */
|
|
7
|
+
export function useAudioController(source) {
|
|
8
|
+
const player = useAudioPlayer(source, { updateInterval: 250 });
|
|
9
|
+
const status = useAudioPlayerStatus(player);
|
|
10
|
+
return {
|
|
11
|
+
currentTime: status.currentTime,
|
|
12
|
+
duration: status.duration || player.duration,
|
|
13
|
+
isLoaded: status.isLoaded,
|
|
14
|
+
pause: () => player.pause(),
|
|
15
|
+
play: () => player.play(),
|
|
16
|
+
playing: status.playing,
|
|
17
|
+
seekTo: (seconds) => player.seekTo(seconds),
|
|
18
|
+
setVolume: (volume) => setAudioPlayerVolume(player, volume),
|
|
19
|
+
volume: player.volume,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=useAudioController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAudioController.js","sourceRoot":"","sources":["../../../../src/features/audio/composition/useAudioController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAKlE,iFAAiF;AACjF,SAAS,oBAAoB,CAAC,MAA0B,EAAE,MAAc;IACtE,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,kBAAkB,CAAC,MAA4B;IAC7D,MAAM,MAAM,GAAG,cAAc,CAAC,MAAM,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAE5C,OAAO;QACL,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;QAC3B,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE;QACzB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;QAC3C,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC;QAC3D,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC;AACJ,CAAC","sourcesContent":["import { useAudioPlayer, useAudioPlayerStatus } from 'expo-audio';\n\nimport type { AudioProps } from '../../../types/audio';\nimport type { AudioController } from './AudioController';\n\n/** Applies the requested volume through Expo Audio's mutable player boundary. */\nfunction setAudioPlayerVolume(player: { volume: number }, volume: number): void {\n player.volume = volume;\n}\n\n/** Connects native Audio controls to the lifecycle-managed Expo Audio player. */\nexport function useAudioController(source: AudioProps['source']): AudioController {\n const player = useAudioPlayer(source, { updateInterval: 250 });\n const status = useAudioPlayerStatus(player);\n\n return {\n currentTime: status.currentTime,\n duration: status.duration || player.duration,\n isLoaded: status.isLoaded,\n pause: () => player.pause(),\n play: () => player.play(),\n playing: status.playing,\n seekTo: (seconds) => player.seekTo(seconds),\n setVolume: (volume) => setAudioPlayerVolume(player, volume),\n volume: player.volume,\n };\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AudioProps } from '../../../types/audio';
|
|
2
|
+
import type { AudioController } from './AudioController';
|
|
3
|
+
/** Connects web Audio controls to Expo Audio after the SSR-safe client boundary mounts. */
|
|
4
|
+
export declare function useAudioController(source: AudioProps['source']): AudioController;
|
|
5
|
+
//# sourceMappingURL=useAudioController.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAudioController.web.d.ts","sourceRoot":"","sources":["../../../../src/features/audio/composition/useAudioController.web.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAsCzD,2FAA2F;AAC3F,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,eAAe,CA+DhF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const UNAVAILABLE_AUDIO_CONTROLLER = {
|
|
3
|
+
currentTime: 0,
|
|
4
|
+
duration: 0,
|
|
5
|
+
isLoaded: false,
|
|
6
|
+
pause: () => undefined,
|
|
7
|
+
play: () => undefined,
|
|
8
|
+
playing: false,
|
|
9
|
+
seekTo: () => Promise.resolve(),
|
|
10
|
+
setVolume: () => undefined,
|
|
11
|
+
volume: 1,
|
|
12
|
+
};
|
|
13
|
+
/** Applies the requested volume through Expo Audio's mutable web player boundary. */
|
|
14
|
+
function setWebAudioPlayerVolume(player, volume) {
|
|
15
|
+
player.volume = volume;
|
|
16
|
+
}
|
|
17
|
+
/** Connects web Audio controls to Expo Audio after the SSR-safe client boundary mounts. */
|
|
18
|
+
export function useAudioController(source) {
|
|
19
|
+
const [player, setPlayer] = React.useState(null);
|
|
20
|
+
const [state, setState] = React.useState(UNAVAILABLE_AUDIO_CONTROLLER);
|
|
21
|
+
React.useEffect(() => {
|
|
22
|
+
let active = true;
|
|
23
|
+
let resolvedPlayer = null;
|
|
24
|
+
let timer = null;
|
|
25
|
+
/** Publishes the latest lightweight Expo Audio player state. */
|
|
26
|
+
const publish = () => {
|
|
27
|
+
const activePlayer = resolvedPlayer;
|
|
28
|
+
if (!activePlayer || !active)
|
|
29
|
+
return;
|
|
30
|
+
setState((current) => ({
|
|
31
|
+
...current,
|
|
32
|
+
currentTime: activePlayer.currentTime,
|
|
33
|
+
duration: activePlayer.duration,
|
|
34
|
+
isLoaded: activePlayer.isLoaded,
|
|
35
|
+
playing: activePlayer.playing,
|
|
36
|
+
volume: activePlayer.volume,
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
/** Loads Expo Audio only after hydration, preserving a safe web module entrypoint. */
|
|
40
|
+
const load = async () => {
|
|
41
|
+
const expoAudio = (await import('expo-audio'));
|
|
42
|
+
if (!active)
|
|
43
|
+
return;
|
|
44
|
+
resolvedPlayer = expoAudio.createAudioPlayer(source, { updateInterval: 250 });
|
|
45
|
+
setPlayer(resolvedPlayer);
|
|
46
|
+
publish();
|
|
47
|
+
timer = setInterval(publish, 250);
|
|
48
|
+
};
|
|
49
|
+
void load();
|
|
50
|
+
return () => {
|
|
51
|
+
active = false;
|
|
52
|
+
if (timer)
|
|
53
|
+
clearInterval(timer);
|
|
54
|
+
resolvedPlayer?.remove();
|
|
55
|
+
setPlayer(null);
|
|
56
|
+
setState(UNAVAILABLE_AUDIO_CONTROLLER);
|
|
57
|
+
};
|
|
58
|
+
}, [source]);
|
|
59
|
+
return {
|
|
60
|
+
...state,
|
|
61
|
+
pause: () => {
|
|
62
|
+
player?.pause();
|
|
63
|
+
setState((current) => ({ ...current, playing: false }));
|
|
64
|
+
},
|
|
65
|
+
play: () => {
|
|
66
|
+
player?.play();
|
|
67
|
+
setState((current) => ({ ...current, playing: true }));
|
|
68
|
+
},
|
|
69
|
+
seekTo: async (seconds) => {
|
|
70
|
+
await player?.seekTo(seconds);
|
|
71
|
+
setState((current) => ({ ...current, currentTime: seconds }));
|
|
72
|
+
},
|
|
73
|
+
setVolume: (volume) => {
|
|
74
|
+
if (player)
|
|
75
|
+
setWebAudioPlayerVolume(player, volume);
|
|
76
|
+
setState((current) => ({ ...current, volume }));
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=useAudioController.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAudioController.web.js","sourceRoot":"","sources":["../../../../src/features/audio/composition/useAudioController.web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwB1B,MAAM,4BAA4B,GAAoB;IACpD,WAAW,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC;IACX,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS;IACtB,IAAI,EAAE,GAAG,EAAE,CAAC,SAAS;IACrB,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;IAC/B,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS;IAC1B,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,qFAAqF;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C,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAClD,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\n\nimport type { AudioProps } from '../../../types/audio';\nimport type { AudioController } from './AudioController';\n\ninterface ExpoAudioPlayer {\n readonly currentTime: number;\n readonly duration: number;\n readonly isLoaded: boolean;\n readonly playing: boolean;\n volume: number;\n pause(): void;\n play(): void;\n remove(): void;\n seekTo(seconds: number): Promise<void>;\n}\n\ninterface ExpoAudioModule {\n createAudioPlayer(\n source: AudioProps['source'],\n options: { readonly updateInterval: number },\n ): ExpoAudioPlayer;\n}\n\nconst UNAVAILABLE_AUDIO_CONTROLLER: AudioController = {\n currentTime: 0,\n duration: 0,\n isLoaded: false,\n pause: () => undefined,\n play: () => undefined,\n playing: false,\n seekTo: () => Promise.resolve(),\n setVolume: () => undefined,\n volume: 1,\n};\n\n/** Applies the requested volume through Expo Audio's mutable web player boundary. */\nfunction setWebAudioPlayerVolume(player: ExpoAudioPlayer, volume: number): void {\n player.volume = volume;\n}\n\n/** Connects web Audio controls to Expo Audio after the SSR-safe client boundary mounts. */\nexport function useAudioController(source: AudioProps['source']): AudioController {\n const [player, setPlayer] = React.useState<ExpoAudioPlayer | null>(null);\n const [state, setState] = React.useState<AudioController>(UNAVAILABLE_AUDIO_CONTROLLER);\n\n React.useEffect(() => {\n let active = true;\n let resolvedPlayer: ExpoAudioPlayer | null = null;\n let timer: ReturnType<typeof setInterval> | null = null;\n\n /** Publishes the latest lightweight Expo Audio player state. */\n const publish = () => {\n const activePlayer = resolvedPlayer;\n if (!activePlayer || !active) return;\n setState((current) => ({\n ...current,\n currentTime: activePlayer.currentTime,\n duration: activePlayer.duration,\n isLoaded: activePlayer.isLoaded,\n playing: activePlayer.playing,\n volume: activePlayer.volume,\n }));\n };\n\n /** Loads Expo Audio only after hydration, preserving a safe web module entrypoint. */\n const load = async () => {\n const expoAudio = (await import('expo-audio')) as ExpoAudioModule;\n if (!active) return;\n resolvedPlayer = expoAudio.createAudioPlayer(source, { updateInterval: 250 });\n setPlayer(resolvedPlayer);\n publish();\n timer = setInterval(publish, 250);\n };\n\n void load();\n\n return () => {\n active = false;\n if (timer) clearInterval(timer);\n resolvedPlayer?.remove();\n setPlayer(null);\n setState(UNAVAILABLE_AUDIO_CONTROLLER);\n };\n }, [source]);\n\n return {\n ...state,\n pause: () => {\n player?.pause();\n setState((current) => ({ ...current, playing: false }));\n },\n play: () => {\n player?.play();\n setState((current) => ({ ...current, playing: true }));\n },\n seekTo: async (seconds) => {\n await player?.seekTo(seconds);\n setState((current) => ({ ...current, currentTime: seconds }));\n },\n setVolume: (volume) => {\n if (player) setWebAudioPlayerVolume(player, volume);\n setState((current) => ({ ...current, volume }));\n },\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/audio/public.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/audio/public.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["export type { AudioManifestProps, AudioProps, AudioResolvedSource } from '../../types/audio';\nexport { Audio } from './adapters/inbound/Audio';\n"]}
|
|
@@ -2,7 +2,7 @@ export declare const bottomSheetMeta: {
|
|
|
2
2
|
readonly name: "BottomSheet";
|
|
3
3
|
readonly category: "layout";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly description: "Controlled presentation through the shared single-sheet host. Bind dismiss to clear open.";
|
|
7
7
|
readonly events: {
|
|
8
8
|
readonly dismiss: {
|
|
@@ -2,7 +2,7 @@ export declare const cardMeta: {
|
|
|
2
2
|
readonly name: "Card";
|
|
3
3
|
readonly category: "component";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
6
6
|
readonly blueprint: {
|
|
7
7
|
readonly label: "Card";
|
|
8
8
|
readonly defaultProps: {
|
|
@@ -2,7 +2,7 @@ export declare const mediaCardMeta: {
|
|
|
2
2
|
readonly name: "MediaCard";
|
|
3
3
|
readonly category: "component";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly events: {
|
|
7
7
|
readonly press: {
|
|
8
8
|
readonly label: "Press";
|
|
@@ -3,7 +3,7 @@ export declare const postCardMeta: {
|
|
|
3
3
|
readonly category: "pattern";
|
|
4
4
|
readonly description: "Social/content post card with author identity, body, media, actions, and comment previews.";
|
|
5
5
|
readonly directManifestNode: true;
|
|
6
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement"];
|
|
6
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
7
7
|
readonly blueprint: {
|
|
8
8
|
readonly label: "Post card";
|
|
9
9
|
readonly icon: {
|
|
@@ -3,7 +3,7 @@ export declare const messageBubbleMeta: {
|
|
|
3
3
|
readonly category: "pattern";
|
|
4
4
|
readonly description: "Chat/message bubble with direction, author, text, meta, and delivery status presentation.";
|
|
5
5
|
readonly directManifestNode: true;
|
|
6
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement"];
|
|
6
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
7
7
|
readonly blueprint: {
|
|
8
8
|
readonly label: "Message bubble";
|
|
9
9
|
readonly icon: {
|