@q9labsai/chalk-react-native 4.1.17 → 5.0.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/README.md +134 -29
- package/android/build.gradle +35 -0
- package/android/compatibility/ModuleApiCompatibility.java +215 -0
- package/android/src/main/AndroidManifest.xml +2 -1
- package/android/src/main/java/ai/q9labs/chalk/reactnative/ChalkSpaceForegroundService.java +105 -31
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkAndroidConnectionServicePackage.kt +2 -0
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkAudioRouteModule.kt +137 -0
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/ChalkCallServiceModule.kt +32 -0
- package/android/src/main/kotlin/ai/q9labs/chalk/reactnative/CommunicationDeviceListener.kt +23 -0
- package/android/src/test/kotlin/ai/q9labs/chalk/compatibility/UnsafeSignatures.kt +29 -0
- package/dist/android/call-service.d.ts +4 -0
- package/dist/android/call-service.d.ts.map +1 -0
- package/dist/avatar/FaceAvatar.d.ts +19 -0
- package/dist/avatar/FaceAvatar.d.ts.map +1 -0
- package/dist/avatar/tile-avatar-size.d.ts +3 -0
- package/dist/avatar/tile-avatar-size.d.ts.map +1 -0
- package/dist/chunk-GYVZSOGQ.js +30 -0
- package/dist/chunk-IHE6EA3T.js +25 -0
- package/dist/chunk-OIBT2FNM.js +1479 -0
- package/dist/client.d.ts +1 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +185 -2
- package/dist/components/EmbeddedWhiteboard.d.ts.map +1 -1
- package/dist/components/native-media-visibility.d.ts +3 -2
- package/dist/components/native-media-visibility.d.ts.map +1 -1
- package/dist/components/useAndroidCallService.d.ts +8 -0
- package/dist/components/useAndroidCallService.d.ts.map +1 -0
- package/dist/dev.d.ts +10 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/dev.js +10 -0
- package/dist/dock/Dock.d.ts +23 -0
- package/dist/dock/Dock.d.ts.map +1 -0
- package/dist/dock/LeaveMenu.d.ts +12 -0
- package/dist/dock/LeaveMenu.d.ts.map +1 -0
- package/dist/dock/MoreSheet.d.ts +17 -0
- package/dist/dock/MoreSheet.d.ts.map +1 -0
- package/dist/dock/ReactionBurst.d.ts +8 -0
- package/dist/dock/ReactionBurst.d.ts.map +1 -0
- package/dist/dock/RoutePicker.d.ts +16 -0
- package/dist/dock/RoutePicker.d.ts.map +1 -0
- package/dist/dock/audio-route.d.ts +25 -0
- package/dist/dock/audio-route.d.ts.map +1 -0
- package/dist/error-YOPTEH5N.wav +0 -0
- package/dist/frame/CallFrame.d.ts +17 -0
- package/dist/frame/CallFrame.d.ts.map +1 -0
- package/dist/frame/Chalk.d.ts +40 -0
- package/dist/frame/Chalk.d.ts.map +1 -0
- package/dist/frame/back-handler.d.ts +6 -0
- package/dist/frame/back-handler.d.ts.map +1 -0
- package/dist/frame/dev-scenario.d.ts +28 -0
- package/dist/frame/dev-scenario.d.ts.map +1 -0
- package/dist/frame/device-layout.d.ts +16 -0
- package/dist/frame/device-layout.d.ts.map +1 -0
- package/dist/frame/measurement.d.ts +28 -0
- package/dist/frame/measurement.d.ts.map +1 -0
- package/dist/frame/portal.d.ts +24 -0
- package/dist/frame/portal.d.ts.map +1 -0
- package/dist/frame/preferences.d.ts +21 -0
- package/dist/frame/preferences.d.ts.map +1 -0
- package/dist/frame/regions.d.ts +25 -0
- package/dist/frame/regions.d.ts.map +1 -0
- package/dist/hand-DFWVXPH2.wav +0 -0
- package/dist/haptics/haptics.d.ts +12 -0
- package/dist/haptics/haptics.d.ts.map +1 -0
- package/dist/header/CallDetailsSheet.d.ts +18 -0
- package/dist/header/CallDetailsSheet.d.ts.map +1 -0
- package/dist/header/Header.d.ts +17 -0
- package/dist/header/Header.d.ts.map +1 -0
- package/dist/header/QrCode.d.ts +6 -0
- package/dist/header/QrCode.d.ts.map +1 -0
- package/dist/icons/Icon.d.ts +12 -0
- package/dist/icons/Icon.d.ts.map +1 -0
- package/dist/icons/icon-element.d.ts +24 -0
- package/dist/icons/icon-element.d.ts.map +1 -0
- package/dist/icons/icon-paths.d.ts +530 -0
- package/dist/icons/icon-paths.d.ts.map +1 -0
- package/dist/index.d.ts +6 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2956 -38
- package/dist/join-Z6RL5AHE.wav +0 -0
- package/dist/knock-4VBQSHK4.wav +0 -0
- package/dist/leave-MQLZOWQD.wav +0 -0
- package/dist/limbo/Limbo.d.ts +25 -0
- package/dist/limbo/Limbo.d.ts.map +1 -0
- package/dist/limbo/Veil.d.ts +10 -0
- package/dist/limbo/Veil.d.ts.map +1 -0
- package/dist/media/native-capture-error.d.ts +7 -0
- package/dist/media/native-capture-error.d.ts.map +1 -0
- package/dist/message-6Y6WJGTB.wav +0 -0
- package/dist/motion/MovingFrame.d.ts +36 -0
- package/dist/motion/MovingFrame.d.ts.map +1 -0
- package/dist/motion/motion.d.ts +82 -0
- package/dist/motion/motion.d.ts.map +1 -0
- package/dist/motion/presence.d.ts +6 -0
- package/dist/motion/presence.d.ts.map +1 -0
- package/dist/motion/press.d.ts +15 -0
- package/dist/motion/press.d.ts.map +1 -0
- package/dist/mute-H5SJFXVI.wav +0 -0
- package/dist/primitives/BottomSheet.d.ts +36 -0
- package/dist/primitives/BottomSheet.d.ts.map +1 -0
- package/dist/primitives/ChalkText.d.ts +13 -0
- package/dist/primitives/ChalkText.d.ts.map +1 -0
- package/dist/primitives/CopyButton.d.ts +11 -0
- package/dist/primitives/CopyButton.d.ts.map +1 -0
- package/dist/primitives/IconButton.d.ts +26 -0
- package/dist/primitives/IconButton.d.ts.map +1 -0
- package/dist/primitives/Menu.d.ts +39 -0
- package/dist/primitives/Menu.d.ts.map +1 -0
- package/dist/primitives/NameTag.d.ts +19 -0
- package/dist/primitives/NameTag.d.ts.map +1 -0
- package/dist/primitives/PillButton.d.ts +19 -0
- package/dist/primitives/PillButton.d.ts.map +1 -0
- package/dist/primitives/SegmentedControl.d.ts +17 -0
- package/dist/primitives/SegmentedControl.d.ts.map +1 -0
- package/dist/primitives/SheetGroup.d.ts +24 -0
- package/dist/primitives/SheetGroup.d.ts.map +1 -0
- package/dist/primitives/Switch.d.ts +9 -0
- package/dist/primitives/Switch.d.ts.map +1 -0
- package/dist/primitives/TileShell.d.ts +18 -0
- package/dist/primitives/TileShell.d.ts.map +1 -0
- package/dist/primitives/announce.d.ts +3 -0
- package/dist/primitives/announce.d.ts.map +1 -0
- package/dist/primitives/menu-placement.d.ts +32 -0
- package/dist/primitives/menu-placement.d.ts.map +1 -0
- package/dist/primitives/toast/Toast.d.ts +8 -0
- package/dist/primitives/toast/Toast.d.ts.map +1 -0
- package/dist/primitives/toast/ToastStack.d.ts +18 -0
- package/dist/primitives/toast/ToastStack.d.ts.map +1 -0
- package/dist/primitives/toast/toast-store.d.ts +39 -0
- package/dist/primitives/toast/toast-store.d.ts.map +1 -0
- package/dist/recording-Q4GB77Y4.wav +0 -0
- package/dist/sheets/people-chat/ChatNotices.d.ts +14 -0
- package/dist/sheets/people-chat/ChatNotices.d.ts.map +1 -0
- package/dist/sheets/people-chat/ChatTab.d.ts +6 -0
- package/dist/sheets/people-chat/ChatTab.d.ts.map +1 -0
- package/dist/sheets/people-chat/Composer.d.ts +7 -0
- package/dist/sheets/people-chat/Composer.d.ts.map +1 -0
- package/dist/sheets/people-chat/PeopleChatSheet.d.ts +17 -0
- package/dist/sheets/people-chat/PeopleChatSheet.d.ts.map +1 -0
- package/dist/sheets/people-chat/PeopleTab.d.ts +3 -0
- package/dist/sheets/people-chat/PeopleTab.d.ts.map +1 -0
- package/dist/sheets/people-chat/PhotoViewer.d.ts +19 -0
- package/dist/sheets/people-chat/PhotoViewer.d.ts.map +1 -0
- package/dist/sheets/people-chat/TextField.d.ts +4 -0
- package/dist/sheets/people-chat/TextField.d.ts.map +1 -0
- package/dist/sheets/people-chat/attachments.d.ts +33 -0
- package/dist/sheets/people-chat/attachments.d.ts.map +1 -0
- package/dist/sheets/people-chat/chat-model.d.ts +64 -0
- package/dist/sheets/people-chat/chat-model.d.ts.map +1 -0
- package/dist/sheets/people-chat/people-model.d.ts +43 -0
- package/dist/sheets/people-chat/people-model.d.ts.map +1 -0
- package/dist/sounds/sounds.d.ts +33 -0
- package/dist/sounds/sounds.d.ts.map +1 -0
- package/dist/space-client/create-native-space-client.d.ts +0 -4
- package/dist/space-client/create-native-space-client.d.ts.map +1 -1
- package/dist/space-client/random-uuid.d.ts +7 -0
- package/dist/space-client/random-uuid.d.ts.map +1 -0
- package/dist/stage/ContentTile.d.ts +18 -0
- package/dist/stage/ContentTile.d.ts.map +1 -0
- package/dist/stage/ParticipantTile.d.ts +18 -0
- package/dist/stage/ParticipantTile.d.ts.map +1 -0
- package/dist/stage/Stage.d.ts +14 -0
- package/dist/stage/Stage.d.ts.map +1 -0
- package/dist/stage/TileSheet.d.ts +12 -0
- package/dist/stage/TileSheet.d.ts.map +1 -0
- package/dist/stage/camera.d.ts +7 -0
- package/dist/stage/camera.d.ts.map +1 -0
- package/dist/stage/layout.d.ts +57 -0
- package/dist/stage/layout.d.ts.map +1 -0
- package/dist/stage/space-selector.d.ts +10 -0
- package/dist/stage/space-selector.d.ts.map +1 -0
- package/dist/stage/stage-view.d.ts +23 -0
- package/dist/stage/stage-view.d.ts.map +1 -0
- package/dist/status/CallOverlays.d.ts +17 -0
- package/dist/status/CallOverlays.d.ts.map +1 -0
- package/dist/status/ChalkArrival.d.ts +24 -0
- package/dist/status/ChalkArrival.d.ts.map +1 -0
- package/dist/status/StatusPage.d.ts +14 -0
- package/dist/status/StatusPage.d.ts.map +1 -0
- package/dist/status/call-screen.d.ts +20 -0
- package/dist/status/call-screen.d.ts.map +1 -0
- package/dist/test-VD2KAM4D.wav +0 -0
- package/dist/theme/theme.d.ts +15 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/theme/tokens.d.ts +248 -0
- package/dist/theme/tokens.d.ts.map +1 -0
- package/dist/toasts/CallEventToasts.d.ts +21 -0
- package/dist/toasts/CallEventToasts.d.ts.map +1 -0
- package/dist/toasts/notices.d.ts +34 -0
- package/dist/toasts/notices.d.ts.map +1 -0
- package/dist/ui/ChalkUI.d.ts +12 -0
- package/dist/ui/ChalkUI.d.ts.map +1 -0
- package/dist/ui.d.ts +25 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +77 -0
- package/dist/unmute-2XR2LICU.wav +0 -0
- package/embedded/chalk-whiteboard/asset-manifest.json +2 -2
- package/embedded/chalk-whiteboard/renderer.js +510 -510
- package/ios/ChalkAudioRouteModule.swift +93 -0
- package/ios/ChalkAudioRouteModuleBridge.m +9 -0
- package/package.json +46 -76
- package/src/android/call-service.ts +19 -0
- package/src/avatar/FaceAvatar.tsx +145 -0
- package/src/avatar/tile-avatar-size.ts +4 -0
- package/src/client.ts +1 -5
- package/src/components/EmbeddedWhiteboard.tsx +14 -71
- package/src/components/native-media-visibility.ts +1 -2
- package/src/components/useAndroidCallService.ts +41 -0
- package/src/dev.ts +9 -0
- package/src/dock/Dock.tsx +95 -0
- package/src/dock/LeaveMenu.tsx +21 -0
- package/src/dock/MoreSheet.tsx +233 -0
- package/src/dock/ReactionBurst.tsx +55 -0
- package/src/dock/RoutePicker.tsx +42 -0
- package/src/dock/audio-route.ts +69 -0
- package/src/frame/CallFrame.tsx +209 -0
- package/src/frame/Chalk.tsx +83 -0
- package/src/frame/back-handler.ts +19 -0
- package/src/frame/dev-scenario.ts +48 -0
- package/src/frame/device-layout.tsx +31 -0
- package/src/frame/measurement.ts +44 -0
- package/src/frame/portal.tsx +107 -0
- package/src/frame/preferences.tsx +48 -0
- package/src/frame/regions.test.ts +38 -0
- package/src/frame/regions.ts +60 -0
- package/src/haptics/haptics.ts +19 -0
- package/src/header/CallDetailsSheet.tsx +139 -0
- package/src/header/Header.tsx +107 -0
- package/src/header/QrCode.tsx +34 -0
- package/src/icons/Icon.tsx +35 -0
- package/src/icons/icon-element.ts +11 -0
- package/src/icons/icon-paths.ts +199 -0
- package/src/index.ts +6 -9
- package/src/limbo/Limbo.tsx +159 -0
- package/src/limbo/Veil.tsx +36 -0
- package/src/media/native-capture-error.test.ts +19 -0
- package/src/media/native-capture-error.ts +13 -0
- package/src/motion/MovingFrame.tsx +101 -0
- package/src/motion/motion.ts +33 -0
- package/src/motion/presence.ts +20 -0
- package/src/motion/press.ts +35 -0
- package/src/primitives/BottomSheet.tsx +211 -0
- package/src/primitives/ChalkText.tsx +23 -0
- package/src/primitives/CopyButton.tsx +78 -0
- package/src/primitives/IconButton.tsx +90 -0
- package/src/primitives/Menu.tsx +212 -0
- package/src/primitives/NameTag.tsx +68 -0
- package/src/primitives/PillButton.tsx +56 -0
- package/src/primitives/SegmentedControl.tsx +55 -0
- package/src/primitives/SheetGroup.tsx +72 -0
- package/src/primitives/Switch.tsx +39 -0
- package/src/primitives/TileShell.tsx +53 -0
- package/src/primitives/announce.ts +7 -0
- package/src/primitives/menu-placement.test.ts +50 -0
- package/src/primitives/menu-placement.ts +43 -0
- package/src/primitives/toast/Toast.tsx +50 -0
- package/src/primitives/toast/ToastStack.tsx +89 -0
- package/src/primitives/toast/toast-store.ts +86 -0
- package/src/sheets/people-chat/ChatNotices.tsx +69 -0
- package/src/sheets/people-chat/ChatTab.tsx +186 -0
- package/src/sheets/people-chat/Composer.tsx +182 -0
- package/src/sheets/people-chat/PeopleChatSheet.tsx +100 -0
- package/src/sheets/people-chat/PeopleTab.tsx +326 -0
- package/src/sheets/people-chat/PhotoViewer.tsx +132 -0
- package/src/sheets/people-chat/TextField.tsx +14 -0
- package/src/sheets/people-chat/attachments.tsx +183 -0
- package/src/sheets/people-chat/chat-model.ts +157 -0
- package/src/sheets/people-chat/people-chat-model.test.ts +98 -0
- package/src/sheets/people-chat/people-model.ts +68 -0
- package/src/sounds/assets/error.wav +0 -0
- package/src/sounds/assets/hand.wav +0 -0
- package/src/sounds/assets/join.wav +0 -0
- package/src/sounds/assets/knock.wav +0 -0
- package/src/sounds/assets/leave.wav +0 -0
- package/src/sounds/assets/message.wav +0 -0
- package/src/sounds/assets/mute.wav +0 -0
- package/src/sounds/assets/recording.wav +0 -0
- package/src/sounds/assets/test.wav +0 -0
- package/src/sounds/assets/unmute.wav +0 -0
- package/src/sounds/assets.d.ts +5 -0
- package/src/sounds/sounds.ts +50 -0
- package/src/space-client/create-native-space-client.ts +20 -181
- package/src/space-client/random-uuid.ts +17 -0
- package/src/space-client/whiteboard-watchdog.test.ts +23 -0
- package/src/stage/ContentTile.tsx +100 -0
- package/src/stage/ParticipantTile.tsx +140 -0
- package/src/stage/Stage.tsx +152 -0
- package/src/stage/TileSheet.tsx +116 -0
- package/src/stage/camera.ts +20 -0
- package/src/stage/layout.test.ts +77 -0
- package/src/stage/layout.ts +226 -0
- package/src/stage/space-selector.ts +31 -0
- package/src/stage/stage-view.tsx +68 -0
- package/src/status/CallOverlays.tsx +47 -0
- package/src/status/ChalkArrival.tsx +53 -0
- package/src/status/StatusPage.tsx +123 -0
- package/src/status/call-screen.test.ts +42 -0
- package/src/status/call-screen.ts +29 -0
- package/src/theme/theme.tsx +28 -0
- package/src/theme/tokens.ts +247 -0
- package/src/toasts/CallEventToasts.tsx +192 -0
- package/src/toasts/notices.test.ts +92 -0
- package/src/toasts/notices.ts +62 -0
- package/src/ui/ChalkUI.tsx +49 -0
- package/src/ui.ts +24 -0
- package/dist/android.d.ts +0 -2
- package/dist/android.d.ts.map +0 -1
- package/dist/android.js +0 -62
- package/dist/chunk-2OS7SSXE.js +0 -552
- package/dist/chunk-5DQ4KBRH.js +0 -690
- package/dist/chunk-ITLUHTVS.js +0 -5271
- package/dist/chunk-JB4LNWVP.js +0 -247
- package/dist/components/Chalk.d.ts +0 -79
- package/dist/components/Chalk.d.ts.map +0 -1
- package/dist/components/ChatMessageList.d.ts +0 -11
- package/dist/components/ChatMessageList.d.ts.map +0 -1
- package/dist/components/Entrance.d.ts +0 -22
- package/dist/components/Entrance.d.ts.map +0 -1
- package/dist/components/EntranceView.android.d.ts +0 -4
- package/dist/components/EntranceView.android.d.ts.map +0 -1
- package/dist/components/EntranceView.d.ts +0 -18
- package/dist/components/EntranceView.d.ts.map +0 -1
- package/dist/components/EntranceView.ios-pad.d.ts +0 -3
- package/dist/components/EntranceView.ios-pad.d.ts.map +0 -1
- package/dist/components/EntranceView.ios-phone.d.ts +0 -3
- package/dist/components/EntranceView.ios-phone.d.ts.map +0 -1
- package/dist/components/EntranceView.macos.d.ts +0 -4
- package/dist/components/EntranceView.macos.d.ts.map +0 -1
- package/dist/components/FaceAvatar.d.ts +0 -16
- package/dist/components/FaceAvatar.d.ts.map +0 -1
- package/dist/components/GradientSurface.d.ts +0 -14
- package/dist/components/GradientSurface.d.ts.map +0 -1
- package/dist/components/MediaView.d.ts +0 -14
- package/dist/components/MediaView.d.ts.map +0 -1
- package/dist/components/ReactionPicker.d.ts +0 -10
- package/dist/components/ReactionPicker.d.ts.map +0 -1
- package/dist/components/SpaceView.android.d.ts +0 -2
- package/dist/components/SpaceView.android.d.ts.map +0 -1
- package/dist/components/SpaceView.d.ts +0 -33
- package/dist/components/SpaceView.d.ts.map +0 -1
- package/dist/components/SpaceView.ios-pad.d.ts +0 -2
- package/dist/components/SpaceView.ios-pad.d.ts.map +0 -1
- package/dist/components/SpaceView.ios-phone.d.ts +0 -2
- package/dist/components/SpaceView.ios-phone.d.ts.map +0 -1
- package/dist/components/SpaceView.macos.d.ts +0 -2
- package/dist/components/SpaceView.macos.d.ts.map +0 -1
- package/dist/components/SpaceView.shared.d.ts +0 -3
- package/dist/components/SpaceView.shared.d.ts.map +0 -1
- package/dist/components/episode-diagnostic-render-observer.d.ts +0 -2
- package/dist/components/episode-diagnostic-render-observer.d.ts.map +0 -1
- package/dist/components/logo/Logo.d.ts +0 -11
- package/dist/components/logo/Logo.d.ts.map +0 -1
- package/dist/components/native-animation-controller.d.ts +0 -7
- package/dist/components/native-animation-controller.d.ts.map +0 -1
- package/dist/components/native-chat.d.ts +0 -8
- package/dist/components/native-chat.d.ts.map +0 -1
- package/dist/components/native-entrance/entrance-controller-store.d.ts +0 -34
- package/dist/components/native-entrance/entrance-controller-store.d.ts.map +0 -1
- package/dist/components/native-entrance/useEntranceController.d.ts +0 -19
- package/dist/components/native-entrance/useEntranceController.d.ts.map +0 -1
- package/dist/components/native-joining-loading-animation.d.ts +0 -9
- package/dist/components/native-joining-loading-animation.d.ts.map +0 -1
- package/dist/components/native-space-view/AppearanceSettings.d.ts +0 -2
- package/dist/components/native-space-view/AppearanceSettings.d.ts.map +0 -1
- package/dist/components/native-space-view/FeedbackSheet.d.ts +0 -12
- package/dist/components/native-space-view/FeedbackSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/ParticipantActionSheet.d.ts +0 -9
- package/dist/components/native-space-view/ParticipantActionSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SettingsSheet.d.ts +0 -7
- package/dist/components/native-space-view/SettingsSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceActionMenu.d.ts +0 -10
- package/dist/components/native-space-view/SpaceActionMenu.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceBottomDock.android.d.ts +0 -4
- package/dist/components/native-space-view/SpaceBottomDock.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceChatAttachment.d.ts +0 -8
- package/dist/components/native-space-view/SpaceChatAttachment.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceChatSheet.d.ts +0 -5
- package/dist/components/native-space-view/SpaceChatSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceGrid.android.d.ts +0 -8
- package/dist/components/native-space-view/SpaceGrid.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceMoreSheet.d.ts +0 -7
- package/dist/components/native-space-view/SpaceMoreSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpacePanelSheet.d.ts +0 -5
- package/dist/components/native-space-view/SpacePanelSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpacePeopleSheet.d.ts +0 -5
- package/dist/components/native-space-view/SpacePeopleSheet.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceStage.android.d.ts +0 -29
- package/dist/components/native-space-view/SpaceStage.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceSurfacePrimitives.d.ts +0 -30
- package/dist/components/native-space-view/SpaceSurfacePrimitives.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceTopBar.android.d.ts +0 -11
- package/dist/components/native-space-view/SpaceTopBar.android.d.ts.map +0 -1
- package/dist/components/native-space-view/SpaceWhiteboardSurface.d.ts +0 -15
- package/dist/components/native-space-view/SpaceWhiteboardSurface.d.ts.map +0 -1
- package/dist/components/native-space-view/diagnostics.d.ts +0 -48
- package/dist/components/native-space-view/diagnostics.d.ts.map +0 -1
- package/dist/components/native-space-view/format-space-duration.d.ts +0 -2
- package/dist/components/native-space-view/format-space-duration.d.ts.map +0 -1
- package/dist/components/native-space-view/native-space-grid-keys.d.ts +0 -3
- package/dist/components/native-space-view/native-space-grid-keys.d.ts.map +0 -1
- package/dist/components/native-space-view/native-space-page-store.d.ts +0 -8
- package/dist/components/native-space-view/native-space-page-store.d.ts.map +0 -1
- package/dist/components/native-space-view/space-chat-attachments.d.ts +0 -15
- package/dist/components/native-space-view/space-chat-attachments.d.ts.map +0 -1
- package/dist/components/native-space-view/space-panel-layout.d.ts +0 -10
- package/dist/components/native-space-view/space-panel-layout.d.ts.map +0 -1
- package/dist/components/native-space-view/space-progressive-surface-helpers.d.ts +0 -16
- package/dist/components/native-space-view/space-progressive-surface-helpers.d.ts.map +0 -1
- package/dist/components/native-space-view/space-progressive-surface-types.d.ts +0 -3
- package/dist/components/native-space-view/space-progressive-surface-types.d.ts.map +0 -1
- package/dist/components/native-space-view/types.d.ts +0 -24
- package/dist/components/native-space-view/types.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewController.contract.d.ts +0 -41
- package/dist/components/native-space-view/useSpaceViewController.contract.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewController.d.ts +0 -156
- package/dist/components/native-space-view/useSpaceViewController.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewDerived.d.ts +0 -12
- package/dist/components/native-space-view/useSpaceViewDerived.d.ts.map +0 -1
- package/dist/components/native-space-view/useSpaceViewPanels.d.ts +0 -70
- package/dist/components/native-space-view/useSpaceViewPanels.d.ts.map +0 -1
- package/dist/feedback/native-capture.d.ts +0 -9
- package/dist/feedback/native-capture.d.ts.map +0 -1
- package/dist/feedback/native-evidence.d.ts +0 -3
- package/dist/feedback/native-evidence.d.ts.map +0 -1
- package/dist/hooks/entrance-preview-store.d.ts +0 -16
- package/dist/hooks/entrance-preview-store.d.ts.map +0 -1
- package/dist/hooks/useEntrancePreview.d.ts +0 -7
- package/dist/hooks/useEntrancePreview.d.ts.map +0 -1
- package/dist/hooks/useLayout.d.ts +0 -16
- package/dist/hooks/useLayout.d.ts.map +0 -1
- package/dist/hooks/usePanels.d.ts +0 -12
- package/dist/hooks/usePanels.d.ts.map +0 -1
- package/dist/ios-pad.d.ts +0 -2
- package/dist/ios-pad.d.ts.map +0 -1
- package/dist/ios-pad.js +0 -62
- package/dist/ios-phone.d.ts +0 -2
- package/dist/ios-phone.d.ts.map +0 -1
- package/dist/ios-phone.js +0 -62
- package/dist/ios.d.ts +0 -2
- package/dist/ios.d.ts.map +0 -1
- package/dist/ios.js +0 -62
- package/dist/macos.d.ts +0 -2
- package/dist/macos.d.ts.map +0 -1
- package/dist/macos.js +0 -62
- package/dist/space-client/cloudflare-rtk-native.d.ts +0 -3
- package/dist/space-client/cloudflare-rtk-native.d.ts.map +0 -1
- package/dist/telemetry.d.ts +0 -63
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/ui/appearance.d.ts +0 -246
- package/dist/ui/appearance.d.ts.map +0 -1
- package/dist/ui/appearance.js +0 -14
- package/dist/ui/native-appearance-context.d.ts +0 -15
- package/dist/ui/native-appearance-context.d.ts.map +0 -1
- package/dist/ui/native-theme.d.ts +0 -17
- package/dist/ui/native-theme.d.ts.map +0 -1
- package/dist/ui/native-types.d.ts +0 -38
- package/dist/ui/native-types.d.ts.map +0 -1
- package/dist/ui/participant-avatar.d.ts +0 -21
- package/dist/ui/participant-avatar.d.ts.map +0 -1
- package/dist/ui/theme-tokens.d.ts +0 -25
- package/dist/ui/theme-tokens.d.ts.map +0 -1
- package/dist/ui/theme.d.ts +0 -404
- package/dist/ui/theme.d.ts.map +0 -1
- package/dist/ui/theme.js +0 -8
- package/dist/utils/native-space-layout.d.ts +0 -42
- package/dist/utils/native-space-layout.d.ts.map +0 -1
- package/src/android.ts +0 -1
- package/src/components/Chalk.tsx +0 -363
- package/src/components/ChatMessageList.tsx +0 -209
- package/src/components/Entrance.tsx +0 -42
- package/src/components/EntranceView.android.tsx +0 -274
- package/src/components/EntranceView.ios-pad.tsx +0 -326
- package/src/components/EntranceView.ios-phone.tsx +0 -271
- package/src/components/EntranceView.macos.tsx +0 -278
- package/src/components/EntranceView.tsx +0 -38
- package/src/components/FaceAvatar.tsx +0 -120
- package/src/components/GradientSurface.tsx +0 -23
- package/src/components/MediaView.tsx +0 -76
- package/src/components/ReactionPicker.tsx +0 -98
- package/src/components/SpaceView.android.tsx +0 -1
- package/src/components/SpaceView.ios-pad.tsx +0 -1
- package/src/components/SpaceView.ios-phone.tsx +0 -1
- package/src/components/SpaceView.macos.tsx +0 -1
- package/src/components/SpaceView.shared.tsx +0 -98
- package/src/components/SpaceView.tsx +0 -54
- package/src/components/episode-diagnostic-render-observer.ts +0 -12
- package/src/components/logo/Logo.tsx +0 -309
- package/src/components/native-animation-controller.ts +0 -36
- package/src/components/native-chat.ts +0 -23
- package/src/components/native-entrance/entrance-controller-store.ts +0 -112
- package/src/components/native-entrance/useEntranceController.ts +0 -60
- package/src/components/native-joining-loading-animation.ts +0 -26
- package/src/components/native-space-view/AppearanceSettings.tsx +0 -114
- package/src/components/native-space-view/FeedbackSheet.tsx +0 -296
- package/src/components/native-space-view/ParticipantActionSheet.tsx +0 -99
- package/src/components/native-space-view/SettingsSheet.tsx +0 -164
- package/src/components/native-space-view/SpaceActionMenu.tsx +0 -109
- package/src/components/native-space-view/SpaceBottomDock.android.tsx +0 -115
- package/src/components/native-space-view/SpaceChatAttachment.tsx +0 -105
- package/src/components/native-space-view/SpaceChatSheet.tsx +0 -184
- package/src/components/native-space-view/SpaceGrid.android.tsx +0 -323
- package/src/components/native-space-view/SpaceMoreSheet.tsx +0 -190
- package/src/components/native-space-view/SpacePanelSheet.tsx +0 -45
- package/src/components/native-space-view/SpacePeopleSheet.tsx +0 -116
- package/src/components/native-space-view/SpaceStage.android.tsx +0 -372
- package/src/components/native-space-view/SpaceSurfacePrimitives.tsx +0 -75
- package/src/components/native-space-view/SpaceTopBar.android.tsx +0 -113
- package/src/components/native-space-view/SpaceWhiteboardSurface.tsx +0 -69
- package/src/components/native-space-view/diagnostics.ts +0 -84
- package/src/components/native-space-view/format-space-duration.ts +0 -3
- package/src/components/native-space-view/native-space-grid-keys.ts +0 -6
- package/src/components/native-space-view/native-space-page-store.ts +0 -41
- package/src/components/native-space-view/space-chat-attachments.test.ts +0 -26
- package/src/components/native-space-view/space-chat-attachments.ts +0 -37
- package/src/components/native-space-view/space-panel-layout.ts +0 -10
- package/src/components/native-space-view/space-progressive-surface-helpers.ts +0 -33
- package/src/components/native-space-view/space-progressive-surface-types.ts +0 -3
- package/src/components/native-space-view/types.ts +0 -25
- package/src/components/native-space-view/useSpaceViewController.contract.ts +0 -34
- package/src/components/native-space-view/useSpaceViewController.ts +0 -416
- package/src/components/native-space-view/useSpaceViewDerived.ts +0 -29
- package/src/components/native-space-view/useSpaceViewPanels.ts +0 -170
- package/src/feedback/native-capture.ts +0 -62
- package/src/feedback/native-evidence.ts +0 -37
- package/src/hooks/entrance-preview-store.ts +0 -99
- package/src/hooks/useEntrancePreview.ts +0 -26
- package/src/hooks/useLayout.ts +0 -37
- package/src/hooks/usePanels.ts +0 -30
- package/src/ios-pad.ts +0 -1
- package/src/ios-phone.ts +0 -1
- package/src/ios.ts +0 -1
- package/src/macos.ts +0 -1
- package/src/space-client/cloudflare-rtk-native.ts +0 -104
- package/src/telemetry.ts +0 -234
- package/src/types/hugeicons-direct.d.ts +0 -4
- package/src/types/react-native-safe-area-context.d.ts +0 -8
- package/src/ui/appearance.ts +0 -808
- package/src/ui/native-appearance-context.tsx +0 -74
- package/src/ui/native-theme.tsx +0 -54
- package/src/ui/native-types.ts +0 -40
- package/src/ui/participant-avatar.ts +0 -47
- package/src/ui/theme-tokens.ts +0 -41
- package/src/ui/theme.ts +0 -214
- package/src/utils/native-space-layout.ts +0 -135
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** The waiting states that sit over the blurred call (T1, T3 to T6). */
|
|
2
|
+
export type LimboState = {
|
|
3
|
+
readonly kind: "joining";
|
|
4
|
+
readonly rejoining: boolean;
|
|
5
|
+
} | {
|
|
6
|
+
readonly kind: "knocking";
|
|
7
|
+
readonly onCancel: () => void;
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: "refused";
|
|
10
|
+
readonly onAskAgain: () => void;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: "reconnecting";
|
|
13
|
+
readonly queuedMessages: number;
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: "hold";
|
|
16
|
+
};
|
|
17
|
+
export type LimboProps = {
|
|
18
|
+
readonly state: LimboState;
|
|
19
|
+
readonly callName: string;
|
|
20
|
+
/** Shows the recording consent line while joining or knocking. */
|
|
21
|
+
readonly recording: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** The limbo card (`.lmsg`) centred over the veiled call, with the mockup's copy for each state. */
|
|
24
|
+
export declare function Limbo({ state, callName, recording }: LimboProps): React.JSX.Element;
|
|
25
|
+
//# sourceMappingURL=Limbo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Limbo.d.ts","sourceRoot":"","sources":["../../src/limbo/Limbo.tsx"],"names":[],"mappings":"AAUA,wEAAwE;AACxE,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,IAAI,CAAA;CAAE,GAC7D;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GAClE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,oGAAoG;AACpG,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiDnF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How much of the call shows through. The mockup blurs the call (18 pt while joining or
|
|
3
|
+
* knocking, 10 pt and greyed while reconnecting or on hold); without a native blur view the
|
|
4
|
+
* veil covers it with the canvas colour instead.
|
|
5
|
+
*/
|
|
6
|
+
export type VeilLevel = "none" | "limbo" | "paused";
|
|
7
|
+
export declare function Veil({ level }: {
|
|
8
|
+
readonly level: VeilLevel;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=Veil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Veil.d.ts","sourceRoot":"","sources":["../../src/limbo/Veil.tsx"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAOpD,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiBhF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@cloudflare/react-native-webrtc` reports a denied microphone or camera as a `SecurityError`, which the
|
|
3
|
+
* shared capture classifier reads as an unsupported environment. A denial is a `NotAllowedError` on the
|
|
4
|
+
* web, so the native adapter gives it that name and the call can offer Open Settings.
|
|
5
|
+
*/
|
|
6
|
+
export declare function toNativeCaptureError(cause: unknown): unknown;
|
|
7
|
+
//# sourceMappingURL=native-capture-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-capture-error.d.ts","sourceRoot":"","sources":["../../src/media/native-capture-error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAG5D"}
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
export type Frame = {
|
|
4
|
+
readonly x: number;
|
|
5
|
+
readonly y: number;
|
|
6
|
+
readonly width: number;
|
|
7
|
+
readonly height: number;
|
|
8
|
+
};
|
|
9
|
+
export type MovingFrameProps = {
|
|
10
|
+
readonly frame: Frame;
|
|
11
|
+
readonly children: ReactNode;
|
|
12
|
+
readonly style?: StyleProp<ViewStyle>;
|
|
13
|
+
readonly testID?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Places its children in `frame` and, when `frame` changes, moves them there from where they
|
|
17
|
+
* were drawn: the view takes its new box at once and a translate-and-scale transform plays from
|
|
18
|
+
* the old box to identity over 220 ms on the UI thread. The children are never remounted, so a
|
|
19
|
+
* video view inside keeps its surface. A move that starts mid-move begins from the current
|
|
20
|
+
* on-screen box. Reduced motion jumps straight to the new box.
|
|
21
|
+
*
|
|
22
|
+
* Example, a stage tile keyed by participant so React keeps the same view across layouts:
|
|
23
|
+
*
|
|
24
|
+
* ```tsx
|
|
25
|
+
* {tiles.map((tile) => (
|
|
26
|
+
* <MovingFrame frame={tile.frame} key={tile.participantId} testID={`tile.${tile.participantId}`}>
|
|
27
|
+
* <TileShell cameraOn={tile.cameraOn} level={tile.level}>
|
|
28
|
+
* <ParticipantVideo participantId={tile.participantId} />
|
|
29
|
+
* <NameTag name={tile.name} muted={tile.muted} />
|
|
30
|
+
* </TileShell>
|
|
31
|
+
* </MovingFrame>
|
|
32
|
+
* ))}
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function MovingFrame({ frame, children, style, testID }: MovingFrameProps): React.JSX.Element;
|
|
36
|
+
//# sourceMappingURL=MovingFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovingFrame.d.ts","sourceRoot":"","sources":["../../src/motion/MovingFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1E,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyDnG"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ReduceMotion, useReducedMotion } from "react-native-reanimated";
|
|
2
|
+
export { useReducedMotion };
|
|
3
|
+
/**
|
|
4
|
+
* Named timings from the mockup. Each one also honours the system's reduced-motion setting,
|
|
5
|
+
* which makes the change instant.
|
|
6
|
+
*/
|
|
7
|
+
export declare const timings: {
|
|
8
|
+
readonly press: {
|
|
9
|
+
readonly duration: 150;
|
|
10
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
11
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
12
|
+
};
|
|
13
|
+
readonly fade: {
|
|
14
|
+
readonly duration: 250;
|
|
15
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
16
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
17
|
+
};
|
|
18
|
+
readonly menu: {
|
|
19
|
+
readonly duration: 180;
|
|
20
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
21
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
22
|
+
};
|
|
23
|
+
readonly toastIn: {
|
|
24
|
+
readonly duration: 200;
|
|
25
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
26
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
27
|
+
};
|
|
28
|
+
readonly toastOut: {
|
|
29
|
+
readonly duration: 160;
|
|
30
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
31
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
32
|
+
};
|
|
33
|
+
readonly scrim: {
|
|
34
|
+
readonly duration: 200;
|
|
35
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
36
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
37
|
+
};
|
|
38
|
+
readonly sheet: {
|
|
39
|
+
readonly duration: 240;
|
|
40
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
41
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
42
|
+
};
|
|
43
|
+
readonly move: {
|
|
44
|
+
readonly duration: 220;
|
|
45
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
46
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
47
|
+
};
|
|
48
|
+
readonly enter: {
|
|
49
|
+
readonly duration: 220;
|
|
50
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
51
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
52
|
+
};
|
|
53
|
+
readonly leave: {
|
|
54
|
+
readonly duration: 160;
|
|
55
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
56
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
57
|
+
};
|
|
58
|
+
readonly copyMorph: {
|
|
59
|
+
readonly duration: 200;
|
|
60
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
61
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
62
|
+
};
|
|
63
|
+
readonly switch: {
|
|
64
|
+
readonly duration: 150;
|
|
65
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
66
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
67
|
+
};
|
|
68
|
+
readonly avatarTurn: {
|
|
69
|
+
readonly duration: 300;
|
|
70
|
+
readonly easing: import("react-native-reanimated").EasingFunctionFactory;
|
|
71
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
72
|
+
};
|
|
73
|
+
readonly level: {
|
|
74
|
+
readonly duration: 90;
|
|
75
|
+
readonly easing: (t: number) => number;
|
|
76
|
+
readonly reduceMotion: ReduceMotion.System;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type TimingName = keyof typeof timings;
|
|
80
|
+
/** `withTiming` with one of the named timings. Call it from a worklet or from JS. */
|
|
81
|
+
export declare function animateTo(value: number, timing: TimingName): number;
|
|
82
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/motion/motion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAqC,MAAM,yBAAyB,CAAC;AAG5G,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2C,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC;AAE9C,qFAAqF;AACrF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAGnE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type EntryExitAnimationFunction } from "react-native-reanimated";
|
|
2
|
+
/** A new tile fades in from 97 % scale over 220 ms. Pass as `entering` on an Animated.View. */
|
|
3
|
+
export declare const tileEntering: EntryExitAnimationFunction;
|
|
4
|
+
/** A leaving tile fades out over 160 ms. Pass as `exiting` on an Animated.View. */
|
|
5
|
+
export declare const tileLeaving: EntryExitAnimationFunction;
|
|
6
|
+
//# sourceMappingURL=presence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../src/motion/presence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGtF,+FAA+F;AAC/F,eAAO,MAAM,YAAY,EAAE,0BAM1B,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,WAAW,EAAE,0BAMzB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useAnimatedStyle, type SharedValue } from "react-native-reanimated";
|
|
2
|
+
import { pressScale } from "../theme/tokens";
|
|
3
|
+
export type PressAnimation = {
|
|
4
|
+
/** 1 while the finger is down, 0 otherwise; flips at once, for instant colour changes. */
|
|
5
|
+
readonly down: SharedValue<number>;
|
|
6
|
+
readonly onPressIn: () => void;
|
|
7
|
+
readonly onPressOut: () => void;
|
|
8
|
+
readonly scaleStyle: ReturnType<typeof useAnimatedStyle>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The mockup's `:active` press: the control scales down over 150 ms ease-out while its
|
|
12
|
+
* background switches at once. Runs on the UI thread; reduced motion keeps the scale at 1.
|
|
13
|
+
*/
|
|
14
|
+
export declare function usePressAnimation(family: keyof typeof pressScale): PressAnimation;
|
|
15
|
+
//# sourceMappingURL=press.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"press.d.ts","sourceRoot":"","sources":["../../src/motion/press.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAA8B,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,MAAM,MAAM,cAAc,GAAG;IAC3B,0FAA0F;IAC1F,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;CAC1D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,OAAO,UAAU,GAAG,cAAc,CAiBjF"}
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
export type BottomSheetProps = {
|
|
4
|
+
readonly open: boolean;
|
|
5
|
+
readonly onClose: () => void;
|
|
6
|
+
readonly accessibilityLabel: string;
|
|
7
|
+
readonly children: ReactNode;
|
|
8
|
+
/** A header line under the grabber (`.shd`); it takes accessibility focus when the sheet opens. */
|
|
9
|
+
readonly title?: string;
|
|
10
|
+
/** A fixed height as a share of the screen; People and Chat use 0.78. Without it the sheet fits its content. */
|
|
11
|
+
readonly heightRatio?: number;
|
|
12
|
+
/** Side padding: 12 for menu-like sheets (`.sheet`), 20 for card-like ones (`.ready`). */
|
|
13
|
+
readonly inset?: 12 | 14 | 20;
|
|
14
|
+
/**
|
|
15
|
+
* `card` is the People and Chat card (`.phone .card`): no side padding, the grabber 8 pt from the
|
|
16
|
+
* top with nothing under it, and no bottom padding, because its content runs to the bottom edge
|
|
17
|
+
* and pads itself for the safe area. `popover` is call details (`.phone .infop`): the popover surface
|
|
18
|
+
* with a top border.
|
|
19
|
+
*/
|
|
20
|
+
readonly variant?: "sheet" | "card" | "popover";
|
|
21
|
+
/** Where accessibility focus returns when the sheet closes, usually the button that opened it. */
|
|
22
|
+
readonly returnFocusRef?: RefObject<View | null>;
|
|
23
|
+
readonly testID?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The phone bottom sheet. It runs to the very bottom edge of the screen with the safe area as
|
|
27
|
+
* padding inside, and only its top corners are rounded. Drag the grabber (or a `SheetDragRegion`)
|
|
28
|
+
* down to close; the sheet follows the finger on the UI thread. It rides above the keyboard,
|
|
29
|
+
* Android back closes the top sheet, and accessibility focus moves in and back out.
|
|
30
|
+
*/
|
|
31
|
+
export declare function BottomSheet({ open, onClose, accessibilityLabel, children, title, heightRatio, inset, variant, returnFocusRef, testID }: BottomSheetProps): React.JSX.Element | null;
|
|
32
|
+
/** Makes its children a handle that drags the enclosing sheet, like the tab row of People and Chat. */
|
|
33
|
+
export declare function SheetDragRegion({ children }: {
|
|
34
|
+
readonly children: ReactNode;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
//# sourceMappingURL=BottomSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../src/primitives/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5H,OAAO,EAA4D,IAAI,EAA0B,MAAM,cAAc,CAAC;AAatH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,mGAAmG;IACnG,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,gHAAgH;IAChH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAChD,kGAAkG;IAClG,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAWF;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAU,EAAE,OAAiB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CA6HlM;AAED,uGAAuG;AACvG,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsBjG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TextProps } from "react-native";
|
|
2
|
+
import { type Palette, type TypeStyle } from "../theme/tokens";
|
|
3
|
+
export type ChalkTextProps = TextProps & {
|
|
4
|
+
readonly variant?: TypeStyle;
|
|
5
|
+
readonly tone?: keyof Palette;
|
|
6
|
+
/** A fixed colour for text on video or on a fixed overlay; wins over `tone`. */
|
|
7
|
+
readonly color?: string;
|
|
8
|
+
/** Tabular figures, so timers and counts don't jitter. */
|
|
9
|
+
readonly tabular?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** Figtree text in one of the call's type styles. */
|
|
12
|
+
export declare function ChalkText({ variant, tone, color, tabular, style, ...rest }: ChalkTextProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=ChalkText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChalkText.d.ts","sourceRoot":"","sources":["../../src/primitives/ChalkText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,EAAQ,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;IAC9B,gFAAgF;IAChF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,qDAAqD;AACrD,wBAAgB,SAAS,CAAC,EAAE,OAAgB,EAAE,IAAa,EAAE,KAAK,EAAE,OAAe,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAKxI"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CopyButtonProps = {
|
|
2
|
+
/** Writes the value to the clipboard. The button morphs to a check once it resolves. */
|
|
3
|
+
readonly onCopy: () => void | Promise<void>;
|
|
4
|
+
readonly accessibilityLabel: string;
|
|
5
|
+
/** Spoken once the copy succeeds, for example "Link copied". */
|
|
6
|
+
readonly announcement: string;
|
|
7
|
+
readonly testID?: string;
|
|
8
|
+
};
|
|
9
|
+
/** The mockup's copy button (`.cp`): the copy icon turns into a green check for two seconds. */
|
|
10
|
+
export declare const CopyButton: import("react").MemoExoticComponent<({ onCopy, accessibilityLabel, announcement, testID }: CopyButtonProps) => React.JSX.Element>;
|
|
11
|
+
//# sourceMappingURL=CopyButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../src/primitives/CopyButton.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,eAAe,GAAG;IAC5B,wFAAwF;IACxF,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,gEAAgE;IAChE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,UAAU,6FAAkF,eAAe,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+C1I,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { View } from "react-native";
|
|
2
|
+
import { type IconName } from "../icons/Icon";
|
|
3
|
+
export type IconButtonProps = {
|
|
4
|
+
readonly icon: IconName;
|
|
5
|
+
readonly accessibilityLabel: string;
|
|
6
|
+
readonly onPress?: () => void;
|
|
7
|
+
/** 44 pt by default, 52 pt in the phone dock, 40 pt in the header, 36 pt for a close button. */
|
|
8
|
+
readonly size?: 36 | 40 | 44 | 52;
|
|
9
|
+
/** `raised` for dock buttons, `surface` for header buttons, `danger` for Leave, `ghost` for close buttons (`.x`). */
|
|
10
|
+
readonly tone?: "raised" | "surface" | "danger" | "ghost";
|
|
11
|
+
/** An on state: the button inverts, as `aria-pressed="true"` does in the mockup. */
|
|
12
|
+
readonly selected?: boolean;
|
|
13
|
+
/** Draws the icon in the danger text colour, for a muted microphone or a camera that's off. */
|
|
14
|
+
readonly off?: boolean;
|
|
15
|
+
/** A short name under the button, such as the dock's "Speaker". */
|
|
16
|
+
readonly caption?: string;
|
|
17
|
+
/** The button opens a menu or sheet; reported as expanded while it's open. */
|
|
18
|
+
readonly expanded?: boolean;
|
|
19
|
+
/** Sits directly on the call canvas (dock, header); the light theme rings it with a hairline. */
|
|
20
|
+
readonly onCanvas?: boolean;
|
|
21
|
+
readonly disabled?: boolean;
|
|
22
|
+
readonly testID?: string;
|
|
23
|
+
};
|
|
24
|
+
/** The mockup's round button (`.rb`): press scale 0.94 over 150 ms, background switches at once. */
|
|
25
|
+
export declare const IconButton: import("react").NamedExoticComponent<IconButtonProps & import("react").RefAttributes<View>>;
|
|
26
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/primitives/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,IAAI,EAAyB,MAAM,cAAc,CAAC;AAElF,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAOpD,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,gGAAgG;IAChG,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAClC,qHAAqH;IACrH,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC1D,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,+FAA+F;IAC/F,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,iGAAiG;IACjG,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,UAAU,6FA0CtB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { type IconName } from "../icons/Icon";
|
|
4
|
+
export type MenuProps = {
|
|
5
|
+
readonly open: boolean;
|
|
6
|
+
readonly onClose: () => void;
|
|
7
|
+
/** The button that opened the menu. The menu sits next to it and focus returns to it. */
|
|
8
|
+
readonly anchorRef: RefObject<View | null>;
|
|
9
|
+
readonly accessibilityLabel: string;
|
|
10
|
+
readonly children: ReactNode;
|
|
11
|
+
readonly minWidth?: number;
|
|
12
|
+
readonly testID?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The menu and popover surface (`.pop`): 12 pt radius, sentence-case section labels and
|
|
16
|
+
* 40 pt rows (48 pt on a phone). It opens below its trigger, flips above only when there's
|
|
17
|
+
* more room there, shifts sideways to stay on screen, and stays inside the safe area.
|
|
18
|
+
*/
|
|
19
|
+
export declare function Menu({ open, onClose, anchorRef, accessibilityLabel, children, minWidth, testID }: MenuProps): React.JSX.Element | null;
|
|
20
|
+
export type MenuItemProps = {
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly onPress: () => void;
|
|
23
|
+
readonly icon?: IconName;
|
|
24
|
+
/** A smaller second line under the label (`.mi small`). */
|
|
25
|
+
readonly detail?: string;
|
|
26
|
+
/** Muted text at the end of the row (`.mi .end`). */
|
|
27
|
+
readonly trailing?: string;
|
|
28
|
+
/** Rows in a choice list reserve a check column; `true` draws the check. */
|
|
29
|
+
readonly checked?: boolean;
|
|
30
|
+
readonly danger?: boolean;
|
|
31
|
+
readonly testID?: string;
|
|
32
|
+
};
|
|
33
|
+
export declare function MenuItem({ label, onPress, icon, detail, trailing, checked, danger, testID }: MenuItemProps): React.JSX.Element;
|
|
34
|
+
/** A sentence-case label above a group of rows (`.mh2`). */
|
|
35
|
+
export declare function MenuSection({ label }: {
|
|
36
|
+
readonly label: string;
|
|
37
|
+
}): React.JSX.Element;
|
|
38
|
+
export declare function MenuSeparator(): React.JSX.Element;
|
|
39
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../src/primitives/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiG,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtJ,OAAO,EAAkF,IAAI,EAA0B,MAAM,cAAc,CAAC;AAM5I,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAOpD,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,yFAAyF;IACzF,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAKF;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,QAAc,EAAE,MAAM,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAqF5I;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAc,EAAE,MAAM,EAAE,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsCtI;AAED,4DAA4D;AAC5D,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQpF;AAED,wBAAgB,aAAa,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAGjD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IconName } from "../icons/Icon";
|
|
2
|
+
export type NameTagProps = {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly muted?: boolean;
|
|
5
|
+
readonly pinned?: boolean;
|
|
6
|
+
/** A leading icon for a tile that isn't a person, such as `share` on a shared screen or `pen` on the board. */
|
|
7
|
+
readonly icon?: IconName;
|
|
8
|
+
/** Your own tile: `(You)` follows the name and stays whole when a long name truncates. */
|
|
9
|
+
readonly you?: boolean;
|
|
10
|
+
/** Raised hand; `handOrder` shows the place in the queue when more than one hand is up. */
|
|
11
|
+
readonly handRaised?: boolean;
|
|
12
|
+
readonly handOrder?: number;
|
|
13
|
+
readonly testID?: string;
|
|
14
|
+
};
|
|
15
|
+
/** The mockup's name tag (`.tag`): bottom-left of a tile, white on the dark overlay in both themes. */
|
|
16
|
+
export declare const NameTag: import("react").MemoExoticComponent<({ name, muted, pinned, icon, you, handRaised, handOrder, testID }: NameTagProps) => React.JSX.Element>;
|
|
17
|
+
/** The strip at the bottom of a tile that the name tag can cover, so tile content can keep clear of it. */
|
|
18
|
+
export declare const nameTagZone: number;
|
|
19
|
+
//# sourceMappingURL=NameTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NameTag.d.ts","sourceRoot":"","sources":["../../src/primitives/NameTag.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIpD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,+GAA+G;IAC/G,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,0FAA0F;IAC1F,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,2FAA2F;IAC3F,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,uGAAuG;AACvG,eAAO,MAAM,OAAO,0GAA4H,YAAY,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA6B9K,CAAC;AAKH,2GAA2G;AAC3G,eAAO,MAAM,WAAW,QAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type View as ViewType } from "react-native";
|
|
2
|
+
import { type IconName } from "../icons/Icon";
|
|
3
|
+
export type PillButtonProps = {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly onPress?: () => void;
|
|
6
|
+
readonly variant?: "primary" | "secondary" | "danger";
|
|
7
|
+
/**
|
|
8
|
+
* `sm` 32, `md` 36 (`.pb`), `lg` 40, `wide` 48 and full width (sheets), `big` 52 and full width (Home).
|
|
9
|
+
* Home's inline buttons: `inline` 40 (`.clipc .pb`), `card` 44 and full width (`.lcard .pb`), `field` 48 beside a field (`.yrow .pb`).
|
|
10
|
+
*/
|
|
11
|
+
readonly size?: "sm" | "md" | "lg" | "wide" | "big" | "inline" | "card" | "field";
|
|
12
|
+
readonly icon?: IconName;
|
|
13
|
+
readonly accessibilityLabel?: string;
|
|
14
|
+
readonly disabled?: boolean;
|
|
15
|
+
readonly testID?: string;
|
|
16
|
+
};
|
|
17
|
+
/** The mockup's pill button (`.pb`, `.big`): primary inverts, secondary is raised, danger is red. */
|
|
18
|
+
export declare const PillButton: import("react").NamedExoticComponent<PillButtonProps & import("react").RefAttributes<ViewType>>;
|
|
19
|
+
//# sourceMappingURL=PillButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PillButton.d.ts","sourceRoot":"","sources":["../../src/primitives/PillButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAMpD,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACtD;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAClF,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAOF,qGAAqG;AACrG,eAAO,MAAM,UAAU,iGAoBtB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type SegmentOption<TValue extends string> = {
|
|
2
|
+
readonly value: TValue;
|
|
3
|
+
readonly label: string;
|
|
4
|
+
readonly testID?: string;
|
|
5
|
+
};
|
|
6
|
+
export type SegmentedControlProps<TValue extends string> = {
|
|
7
|
+
readonly options: readonly SegmentOption<TValue>[];
|
|
8
|
+
readonly value: TValue;
|
|
9
|
+
readonly onChange: (value: TValue) => void;
|
|
10
|
+
readonly accessibilityLabel: string;
|
|
11
|
+
/** `regular` is the sheet row control (38 pt segments); `compact` is the call details one (30 pt). */
|
|
12
|
+
readonly size?: "regular" | "compact";
|
|
13
|
+
readonly testID?: string;
|
|
14
|
+
};
|
|
15
|
+
/** The mockup's segmented control (`.seg2`). The selected segment lifts onto a brighter surface. */
|
|
16
|
+
export declare function SegmentedControl<TValue extends string>({ options, value, onChange, accessibilityLabel, size, testID }: SegmentedControlProps<TValue>): React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/primitives/SegmentedControl.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,IAAI;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,MAAM,SAAS,MAAM,IAAI;IACzD,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;IACnD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,sGAAsG;IACtG,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,oGAAoG;AACpG,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAgB,EAAE,MAAM,EAAE,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAYpL"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type IconName } from "../icons/Icon";
|
|
3
|
+
/** A rounded group of sheet rows (`.sgrp`), with a hairline between rows. */
|
|
4
|
+
export declare function SheetGroup({ children, testID }: {
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
readonly testID?: string;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
export type SheetRowProps = {
|
|
9
|
+
readonly label: string;
|
|
10
|
+
readonly icon?: IconName;
|
|
11
|
+
/** A control or muted text at the end of the row: a switch, a segmented control, a count. */
|
|
12
|
+
readonly end?: ReactNode;
|
|
13
|
+
/** A mark right after the label, such as the unread dot (`.udot`); the end control stays at the edge. */
|
|
14
|
+
readonly badge?: ReactNode;
|
|
15
|
+
/** What a screen reader says for the row, when the badge adds meaning the label lacks. Defaults to the label. */
|
|
16
|
+
readonly accessibilityLabel?: string;
|
|
17
|
+
/** Makes the whole row a button. Leave it out when the row holds its own control. */
|
|
18
|
+
readonly onPress?: () => void;
|
|
19
|
+
readonly danger?: boolean;
|
|
20
|
+
readonly testID?: string;
|
|
21
|
+
};
|
|
22
|
+
/** A phone sheet row (`.srow`): 52 pt high, 16 pt text, an optional icon in front and a control at the end. */
|
|
23
|
+
export declare function SheetRow({ label, icon, end, badge, accessibilityLabel, onPress, danger, testID }: SheetRowProps): React.JSX.Element;
|
|
24
|
+
//# sourceMappingURL=SheetGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetGroup.d.ts","sourceRoot":"","sources":["../../src/primitives/SheetGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIpD,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAa9H;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,6FAA6F;IAC7F,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;IACzB,yGAAyG;IACzG,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,iHAAiH;IACjH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,qFAAqF;IACrF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,+GAA+G;AAC/G,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,kBAA0B,EAAE,OAAO,EAAE,MAAc,EAAE,MAAM,EAAE,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwBnJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type SwitchProps = {
|
|
2
|
+
readonly value: boolean;
|
|
3
|
+
readonly onValueChange: (value: boolean) => void;
|
|
4
|
+
readonly accessibilityLabel: string;
|
|
5
|
+
readonly testID?: string;
|
|
6
|
+
};
|
|
7
|
+
/** The mockup's switch (`.sw`): a 36 by 22 track, green when on, with a knob that slides 14 pt in 150 ms. */
|
|
8
|
+
export declare const Switch: import("react").MemoExoticComponent<({ value, onValueChange, accessibilityLabel, testID }: SwitchProps) => React.JSX.Element>;
|
|
9
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/primitives/Switch.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,MAAM,6FAA8E,WAAW,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAkB9H,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type SharedValue } from "react-native-reanimated";
|
|
3
|
+
export type TileShellProps = {
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
/** The live ring shows only on a speaking person whose camera is on; a camera-off face reacts instead. */
|
|
6
|
+
readonly speaking?: boolean;
|
|
7
|
+
readonly cameraOn?: boolean;
|
|
8
|
+
/** Speaking level from 0 to 1; the ring's opacity follows it (0.3 + 0.7 × level). */
|
|
9
|
+
readonly level?: SharedValue<number>;
|
|
10
|
+
readonly testID?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A stage tile's frame (`.tile`): tile surface, 12 pt radius (14 pt on a phone), clipped
|
|
14
|
+
* content, and the live ring drawn over the video. The stage fills it with video or an
|
|
15
|
+
* avatar and a `NameTag`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const TileShell: import("react").MemoExoticComponent<({ children, speaking, cameraOn, level, testID }: TileShellProps) => React.JSX.Element>;
|
|
18
|
+
//# sourceMappingURL=TileShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileShell.d.ts","sourceRoot":"","sources":["../../src/primitives/TileShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAiB,EAAgD,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMnH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,0GAA0G;IAC1G,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,wFAA4F,cAAc,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsBlJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announce.d.ts","sourceRoot":"","sources":["../../src/primitives/announce.ts"],"names":[],"mappings":"AAEA,uJAAuJ;AACvJ,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAG9C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type Rect = {
|
|
2
|
+
readonly x: number;
|
|
3
|
+
readonly y: number;
|
|
4
|
+
readonly width: number;
|
|
5
|
+
readonly height: number;
|
|
6
|
+
};
|
|
7
|
+
export type Insets = {
|
|
8
|
+
readonly top: number;
|
|
9
|
+
readonly bottom: number;
|
|
10
|
+
readonly left: number;
|
|
11
|
+
readonly right: number;
|
|
12
|
+
};
|
|
13
|
+
export type MenuPlacement = {
|
|
14
|
+
readonly x: number;
|
|
15
|
+
readonly y: number;
|
|
16
|
+
/** Set when the menu is taller than the room inside the safe area; the menu then scrolls. */
|
|
17
|
+
readonly maxHeight: number | null;
|
|
18
|
+
readonly side: "below" | "above";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Places a menu next to its trigger, as the mockup's `fitBox` does: below the trigger unless
|
|
22
|
+
* there's more room above, shifted sideways to stay on screen, and always inside the safe area
|
|
23
|
+
* (clear of the status bar, the Dynamic Island, the home indicator and the keyboard).
|
|
24
|
+
*/
|
|
25
|
+
export declare function placeMenu(trigger: Rect, menu: {
|
|
26
|
+
readonly width: number;
|
|
27
|
+
readonly height: number;
|
|
28
|
+
}, screen: {
|
|
29
|
+
readonly width: number;
|
|
30
|
+
readonly height: number;
|
|
31
|
+
}, insets: Insets, keyboardHeight?: number): MenuPlacement;
|
|
32
|
+
//# sourceMappingURL=menu-placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-placement.d.ts","sourceRoot":"","sources":["../../src/primitives/menu-placement.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAC/G,MAAM,MAAM,MAAM,GAAG;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;CAClC,CAAC;AAOF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,SAAI,GAAG,aAAa,CAiBlN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Toast as ToastModel } from "./toast-store";
|
|
2
|
+
export type ToastProps = {
|
|
3
|
+
readonly toast: ToastModel;
|
|
4
|
+
readonly onDismiss: () => void;
|
|
5
|
+
};
|
|
6
|
+
/** One event notice (`.toast`). Every notice in the call uses this look. */
|
|
7
|
+
export declare const Toast: import("react").MemoExoticComponent<({ toast, onDismiss }: ToastProps) => React.JSX.Element>;
|
|
8
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/primitives/toast/Toast.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;CAChC,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,KAAK,6DAA6C,UAAU,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0B3F,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ToastStore } from "./toast-store";
|
|
3
|
+
export declare function ToastProvider({ children }: {
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
/** Shows and dismisses event notices: `const toasts = useToasts(); toasts.show({ message: [{ strong: "Nora" }, " joined"] })`. */
|
|
7
|
+
export declare function useToasts(): Pick<ToastStore, "show" | "dismiss" | "clear">;
|
|
8
|
+
/**
|
|
9
|
+
* Lifts the notices above a screen's own bottom controls, such as Home's buttons, which are taller
|
|
10
|
+
* than the call dock. Call it with null when the screen unmounts.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useToastClearance(): (bottom: number | null) => void;
|
|
13
|
+
/**
|
|
14
|
+
* The stack of notices, centred above the dock. While a phone sheet is up, the stack moves to
|
|
15
|
+
* the top of the screen with the newest notice nearest the top edge, as in the mockup.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ToastStack(): React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=ToastStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastStack.d.ts","sourceRoot":"","sources":["../../../src/primitives/toast/ToastStack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAO3G,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAQlE,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAS/F;AAED,kIAAkI;AAClI,wBAAgB,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,CAI1E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAInE;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAqB9C"}
|