@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
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { RTCView } from "../media/native-webrtc";
|
|
2
|
-
import ArrowLeft01Icon from "@hugeicons/core-free-icons/dist/esm/ArrowLeft01Icon";
|
|
3
|
-
import Mic01Icon from "@hugeicons/core-free-icons/dist/esm/Mic01Icon";
|
|
4
|
-
import MicOff01Icon from "@hugeicons/core-free-icons/dist/esm/MicOff01Icon";
|
|
5
|
-
import UserIcon from "@hugeicons/core-free-icons/dist/esm/UserIcon";
|
|
6
|
-
import Video01Icon from "@hugeicons/core-free-icons/dist/esm/Video01Icon";
|
|
7
|
-
import VideoOffIcon from "@hugeicons/core-free-icons/dist/esm/VideoOffIcon";
|
|
8
|
-
import { HugeiconsIcon } from "@hugeicons/react-native";
|
|
9
|
-
import { KeyboardAvoidingView, Platform, Pressable, StyleSheet, Text, TextInput, View } from "react-native";
|
|
10
|
-
import { Theme } from "../ui/theme";
|
|
11
|
-
import { useNativeTheme } from "../ui/native-theme";
|
|
12
|
-
import { getIosSimulatorMediaMessage } from "../utils/ios-simulator";
|
|
13
|
-
import { FaceAvatar } from "./FaceAvatar";
|
|
14
|
-
import type { EntranceViewProps } from "./EntranceView";
|
|
15
|
-
import { useEntranceController } from "./native-entrance/useEntranceController";
|
|
16
|
-
|
|
17
|
-
export function EntranceViewAndroid({ spaceName, error, joinDisabled = false, onCancel, ...props }: EntranceViewProps): React.JSX.Element {
|
|
18
|
-
const controller = useEntranceController({ ...props, joinDisabled });
|
|
19
|
-
const theme = useNativeTheme();
|
|
20
|
-
const canJoin = controller.displayName.trim().length > 0 && !joinDisabled && !controller.isSubmitting;
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<KeyboardAvoidingView behavior={Platform.OS === "ios" ? "padding" : "height"} style={[styles.screen, { backgroundColor: theme.colors.background }]}>
|
|
24
|
-
<View style={styles.content}>
|
|
25
|
-
<View style={styles.previewContainer}>
|
|
26
|
-
<View style={[styles.previewSurface, { backgroundColor: theme.colors.raisedSurface, borderColor: theme.colors.border }]}>
|
|
27
|
-
{controller.previewStream && controller.videoEnabled ? (
|
|
28
|
-
<RTCView mirror objectFit="cover" streamURL={controller.previewStream.toURL()} style={styles.previewVideo} zOrder={0} />
|
|
29
|
-
) : (
|
|
30
|
-
<View style={[styles.avatarContainer, { backgroundColor: theme.colors.insetSurface }]}>
|
|
31
|
-
<FaceAvatar name={controller.displayName} size={140} textSize={52} />
|
|
32
|
-
</View>
|
|
33
|
-
)}
|
|
34
|
-
|
|
35
|
-
{onCancel ? (
|
|
36
|
-
<Pressable accessibilityLabel="Cancel and leave Entrance" accessibilityRole="button" onPress={onCancel} style={({ pressed }) => [styles.floatingBack, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }, pressed && styles.topIconButtonPressed]}>
|
|
37
|
-
<HugeiconsIcon icon={ArrowLeft01Icon} size={22} color={theme.colors.foreground} />
|
|
38
|
-
</Pressable>
|
|
39
|
-
) : null}
|
|
40
|
-
</View>
|
|
41
|
-
|
|
42
|
-
{controller.previewError && controller.videoEnabled ? <Text style={styles.previewError}>{controller.previewError}</Text> : null}
|
|
43
|
-
{controller.simulatorMediaDisabled ? <Text style={styles.previewHint}>{getIosSimulatorMediaMessage()}</Text> : null}
|
|
44
|
-
</View>
|
|
45
|
-
|
|
46
|
-
<View style={[styles.sheetContainer, { backgroundColor: theme.colors.card, borderColor: theme.colors.border, shadowColor: theme.colors.darkCanvas }]}>
|
|
47
|
-
<View style={styles.sheetHandle} />
|
|
48
|
-
<View style={styles.sheetHeader}>
|
|
49
|
-
<Text style={[styles.spaceName, { color: theme.colors.foreground }]} numberOfLines={1}>
|
|
50
|
-
{spaceName}
|
|
51
|
-
</Text>
|
|
52
|
-
</View>
|
|
53
|
-
|
|
54
|
-
<View style={[styles.inputCard, { backgroundColor: theme.colors.surface, borderColor: controller.isInputFocused ? theme.colors.ring : theme.colors.border }]}>
|
|
55
|
-
<HugeiconsIcon icon={UserIcon} size={18} color={controller.isInputFocused ? theme.colors.primary : theme.colors.mutedForeground} style={styles.inputIcon} />
|
|
56
|
-
<TextInput
|
|
57
|
-
onChangeText={controller.setDisplayName}
|
|
58
|
-
onFocus={() => controller.setInputFocused(true)}
|
|
59
|
-
onBlur={() => controller.setInputFocused(false)}
|
|
60
|
-
placeholder="Enter your name"
|
|
61
|
-
placeholderTextColor={theme.colors.mutedForeground}
|
|
62
|
-
style={[styles.nameInput, { color: theme.colors.foreground }]}
|
|
63
|
-
value={controller.displayName}
|
|
64
|
-
maxLength={30}
|
|
65
|
-
returnKeyType="join"
|
|
66
|
-
onSubmitEditing={controller.handleJoin}
|
|
67
|
-
/>
|
|
68
|
-
</View>
|
|
69
|
-
|
|
70
|
-
<View style={styles.mediaRow}>
|
|
71
|
-
<Pressable
|
|
72
|
-
disabled={controller.simulatorMediaDisabled}
|
|
73
|
-
onPress={controller.toggleAudio}
|
|
74
|
-
style={({ pressed }) => [styles.controlCircle, { backgroundColor: controller.audioEnabled ? theme.colors.controlsBackground : theme.colors.error, borderColor: theme.colors.border }, controller.simulatorMediaDisabled && styles.toggleCircleDisabled, pressed && styles.togglePressed]}
|
|
75
|
-
>
|
|
76
|
-
<HugeiconsIcon icon={controller.audioEnabled ? Mic01Icon : MicOff01Icon} size={24} color={theme.colors.primaryForeground} />
|
|
77
|
-
</Pressable>
|
|
78
|
-
<Pressable
|
|
79
|
-
disabled={controller.simulatorMediaDisabled}
|
|
80
|
-
onPress={controller.toggleVideo}
|
|
81
|
-
style={({ pressed }) => [styles.controlCircle, { backgroundColor: controller.videoEnabled ? theme.colors.controlsBackground : theme.colors.error, borderColor: theme.colors.border }, controller.simulatorMediaDisabled && styles.toggleCircleDisabled, pressed && styles.togglePressed]}
|
|
82
|
-
>
|
|
83
|
-
<HugeiconsIcon icon={controller.videoEnabled ? Video01Icon : VideoOffIcon} size={24} color={theme.colors.primaryForeground} />
|
|
84
|
-
</Pressable>
|
|
85
|
-
</View>
|
|
86
|
-
|
|
87
|
-
{error ? <Text style={[styles.globalError, { color: theme.colors.error }]}>{error}</Text> : null}
|
|
88
|
-
|
|
89
|
-
<Pressable disabled={!canJoin} onPress={controller.handleJoin} style={({ pressed }) => [styles.joinButton, { backgroundColor: canJoin ? theme.colors.primary : theme.colors.muted }, !canJoin && styles.joinButtonDisabled, pressed && styles.togglePressed]}>
|
|
90
|
-
<Text style={[styles.joinButtonText, { color: theme.colors.primaryForeground }]}>{controller.isSubmitting || joinDisabled ? "Joining..." : "Enter Space"}</Text>
|
|
91
|
-
</Pressable>
|
|
92
|
-
</View>
|
|
93
|
-
</View>
|
|
94
|
-
</KeyboardAvoidingView>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export { EntranceViewAndroid as EntranceView };
|
|
99
|
-
|
|
100
|
-
const styles = StyleSheet.create({
|
|
101
|
-
screen: {
|
|
102
|
-
flex: 1,
|
|
103
|
-
backgroundColor: Theme.colors.background,
|
|
104
|
-
},
|
|
105
|
-
content: {
|
|
106
|
-
flex: 1,
|
|
107
|
-
},
|
|
108
|
-
floatingBack: {
|
|
109
|
-
position: "absolute",
|
|
110
|
-
top: Platform.OS === "ios" ? 24 : 20,
|
|
111
|
-
left: 20,
|
|
112
|
-
width: 42,
|
|
113
|
-
height: 42,
|
|
114
|
-
borderRadius: 21,
|
|
115
|
-
backgroundColor: Theme.colors.darkOverlay40,
|
|
116
|
-
alignItems: "center",
|
|
117
|
-
justifyContent: "center",
|
|
118
|
-
zIndex: 10,
|
|
119
|
-
borderWidth: 1,
|
|
120
|
-
borderColor: Theme.colors.whiteOverlay10,
|
|
121
|
-
},
|
|
122
|
-
previewContainer: {
|
|
123
|
-
flex: 1,
|
|
124
|
-
justifyContent: "center",
|
|
125
|
-
paddingTop: Platform.OS === "ios" ? 10 : 0,
|
|
126
|
-
marginBottom: 0,
|
|
127
|
-
},
|
|
128
|
-
previewSurface: {
|
|
129
|
-
width: "100%",
|
|
130
|
-
aspectRatio: 0.72,
|
|
131
|
-
backgroundColor: Theme.colors.raisedSurface,
|
|
132
|
-
borderRadius: 32,
|
|
133
|
-
alignSelf: "center",
|
|
134
|
-
overflow: "hidden",
|
|
135
|
-
position: "relative",
|
|
136
|
-
borderWidth: 1,
|
|
137
|
-
borderColor: Theme.colors.whiteOverlay06,
|
|
138
|
-
},
|
|
139
|
-
previewVideo: {
|
|
140
|
-
...StyleSheet.absoluteFillObject,
|
|
141
|
-
},
|
|
142
|
-
avatarContainer: {
|
|
143
|
-
...StyleSheet.absoluteFillObject,
|
|
144
|
-
alignItems: "center",
|
|
145
|
-
justifyContent: "center",
|
|
146
|
-
backgroundColor: Theme.colors.insetSurface,
|
|
147
|
-
},
|
|
148
|
-
togglePressed: {
|
|
149
|
-
opacity: 0.7,
|
|
150
|
-
transform: [{ scale: 0.9 }],
|
|
151
|
-
},
|
|
152
|
-
previewError: {
|
|
153
|
-
color: Theme.colors.error,
|
|
154
|
-
fontSize: 12,
|
|
155
|
-
marginTop: 10,
|
|
156
|
-
textAlign: "center",
|
|
157
|
-
fontWeight: "600",
|
|
158
|
-
paddingHorizontal: 24,
|
|
159
|
-
},
|
|
160
|
-
previewHint: {
|
|
161
|
-
color: Theme.colors.mutedForeground,
|
|
162
|
-
fontSize: 12,
|
|
163
|
-
marginTop: 10,
|
|
164
|
-
textAlign: "center",
|
|
165
|
-
lineHeight: 18,
|
|
166
|
-
paddingHorizontal: 24,
|
|
167
|
-
},
|
|
168
|
-
sheetContainer: {
|
|
169
|
-
backgroundColor: Theme.colors.elevatedSurface,
|
|
170
|
-
borderTopLeftRadius: 32,
|
|
171
|
-
borderTopRightRadius: 32,
|
|
172
|
-
paddingHorizontal: 24,
|
|
173
|
-
paddingTop: 16,
|
|
174
|
-
paddingBottom: Platform.OS === "ios" ? 44 : 32,
|
|
175
|
-
gap: 20,
|
|
176
|
-
borderTopWidth: 1,
|
|
177
|
-
borderColor: Theme.colors.whiteOverlay08,
|
|
178
|
-
shadowColor: Theme.colors.darkCanvas,
|
|
179
|
-
shadowOffset: { width: 0, height: -12 },
|
|
180
|
-
shadowOpacity: 0.3,
|
|
181
|
-
shadowRadius: 16,
|
|
182
|
-
elevation: 20,
|
|
183
|
-
},
|
|
184
|
-
sheetHandle: {
|
|
185
|
-
width: 36,
|
|
186
|
-
height: 4,
|
|
187
|
-
borderRadius: 2,
|
|
188
|
-
backgroundColor: Theme.colors.whiteOverlay10,
|
|
189
|
-
alignSelf: "center",
|
|
190
|
-
marginBottom: 8,
|
|
191
|
-
},
|
|
192
|
-
sheetHeader: {
|
|
193
|
-
alignItems: "center",
|
|
194
|
-
marginBottom: 4,
|
|
195
|
-
},
|
|
196
|
-
spaceName: {
|
|
197
|
-
color: Theme.colors.foreground,
|
|
198
|
-
fontSize: 22,
|
|
199
|
-
fontWeight: "800",
|
|
200
|
-
textAlign: "center",
|
|
201
|
-
letterSpacing: -0.6,
|
|
202
|
-
},
|
|
203
|
-
inputCard: {
|
|
204
|
-
flexDirection: "row",
|
|
205
|
-
alignItems: "center",
|
|
206
|
-
backgroundColor: Theme.colors.whiteOverlay04,
|
|
207
|
-
borderRadius: 18,
|
|
208
|
-
paddingHorizontal: 16,
|
|
209
|
-
height: 56,
|
|
210
|
-
borderWidth: 1,
|
|
211
|
-
borderColor: Theme.colors.whiteOverlay08,
|
|
212
|
-
},
|
|
213
|
-
inputCardFocused: {
|
|
214
|
-
borderColor: Theme.colors.primary,
|
|
215
|
-
backgroundColor: Theme.colors.accentOverlay04,
|
|
216
|
-
},
|
|
217
|
-
inputIcon: {
|
|
218
|
-
marginRight: 24,
|
|
219
|
-
},
|
|
220
|
-
nameInput: {
|
|
221
|
-
flex: 1,
|
|
222
|
-
color: Theme.colors.onDark,
|
|
223
|
-
fontSize: 16,
|
|
224
|
-
fontWeight: "600",
|
|
225
|
-
padding: 0,
|
|
226
|
-
},
|
|
227
|
-
mediaRow: {
|
|
228
|
-
flexDirection: "row",
|
|
229
|
-
justifyContent: "center",
|
|
230
|
-
gap: 20,
|
|
231
|
-
},
|
|
232
|
-
controlCircle: {
|
|
233
|
-
width: 64,
|
|
234
|
-
height: 64,
|
|
235
|
-
borderRadius: 32,
|
|
236
|
-
backgroundColor: Theme.colors.whiteOverlay06,
|
|
237
|
-
alignItems: "center",
|
|
238
|
-
justifyContent: "center",
|
|
239
|
-
borderWidth: 1,
|
|
240
|
-
borderColor: Theme.colors.whiteOverlay10,
|
|
241
|
-
},
|
|
242
|
-
toggleCircleOff: {
|
|
243
|
-
backgroundColor: Theme.colors.dangerStrong,
|
|
244
|
-
borderColor: Theme.colors.dangerStrong,
|
|
245
|
-
},
|
|
246
|
-
toggleCircleDisabled: {
|
|
247
|
-
opacity: 0.45,
|
|
248
|
-
},
|
|
249
|
-
joinButton: {
|
|
250
|
-
width: "100%",
|
|
251
|
-
height: 58,
|
|
252
|
-
borderRadius: 18,
|
|
253
|
-
alignItems: "center",
|
|
254
|
-
justifyContent: "center",
|
|
255
|
-
},
|
|
256
|
-
joinButtonDisabled: {
|
|
257
|
-
opacity: 0.6,
|
|
258
|
-
},
|
|
259
|
-
joinButtonText: {
|
|
260
|
-
color: Theme.colors.onDark,
|
|
261
|
-
fontSize: 16,
|
|
262
|
-
fontWeight: "700",
|
|
263
|
-
},
|
|
264
|
-
globalError: {
|
|
265
|
-
color: Theme.colors.error,
|
|
266
|
-
fontSize: 13,
|
|
267
|
-
fontWeight: "600",
|
|
268
|
-
textAlign: "center",
|
|
269
|
-
},
|
|
270
|
-
topIconButtonPressed: {
|
|
271
|
-
opacity: 0.6,
|
|
272
|
-
transform: [{ scale: 0.92 }],
|
|
273
|
-
},
|
|
274
|
-
});
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import ArrowLeft01Icon from "@hugeicons/core-free-icons/dist/esm/ArrowLeft01Icon";
|
|
2
|
-
import Mic01Icon from "@hugeicons/core-free-icons/dist/esm/Mic01Icon";
|
|
3
|
-
import MicOff01Icon from "@hugeicons/core-free-icons/dist/esm/MicOff01Icon";
|
|
4
|
-
import Video01Icon from "@hugeicons/core-free-icons/dist/esm/Video01Icon";
|
|
5
|
-
import VideoOffIcon from "@hugeicons/core-free-icons/dist/esm/VideoOffIcon";
|
|
6
|
-
import ArrowRight02Icon from "@hugeicons/core-free-icons/dist/esm/ArrowRight02Icon";
|
|
7
|
-
import CancelCircleIcon from "@hugeicons/core-free-icons/dist/esm/CancelCircleIcon";
|
|
8
|
-
import { HugeiconsIcon } from "@hugeicons/react-native";
|
|
9
|
-
import { KeyboardAvoidingView, Platform, Pressable, StyleSheet, Text, TextInput, View, Animated, ActivityIndicator } from "react-native";
|
|
10
|
-
import { Theme } from "../ui/theme";
|
|
11
|
-
import { useNativeTheme } from "../ui/native-theme";
|
|
12
|
-
import { getIosSimulatorMediaMessage } from "../utils/ios-simulator";
|
|
13
|
-
import { FaceAvatar } from "./FaceAvatar";
|
|
14
|
-
import { hasRtcVideoView, RtcVideoView } from "./RtcVideoView";
|
|
15
|
-
import type { EntranceViewProps } from "./EntranceView";
|
|
16
|
-
import { useEntranceController } from "./native-entrance/useEntranceController";
|
|
17
|
-
import { createAnimationRefController, type AnimationRefCallback } from "./native-animation-controller";
|
|
18
|
-
import { useRef } from "react";
|
|
19
|
-
|
|
20
|
-
export function EntranceViewIosPad({ spaceName, error, joinDisabled = false, onCancel, ...props }: EntranceViewProps): React.JSX.Element {
|
|
21
|
-
const controller = useEntranceController({ ...props, joinDisabled });
|
|
22
|
-
const theme = useNativeTheme();
|
|
23
|
-
const canRenderPreview = hasRtcVideoView();
|
|
24
|
-
const entryAnim = useRef(new Animated.Value(0)).current;
|
|
25
|
-
const islandAnim = useRef(new Animated.Value(0)).current;
|
|
26
|
-
const animationRef = useRef<AnimationRefCallback<unknown> | null>(null);
|
|
27
|
-
const attachEntryAnimation =
|
|
28
|
-
animationRef.current ??
|
|
29
|
-
(animationRef.current = createAnimationRefController<unknown>(() => [
|
|
30
|
-
Animated.stagger(300, [
|
|
31
|
-
Animated.spring(entryAnim, {
|
|
32
|
-
toValue: 1,
|
|
33
|
-
tension: 20,
|
|
34
|
-
friction: 8,
|
|
35
|
-
useNativeDriver: true,
|
|
36
|
-
}),
|
|
37
|
-
Animated.spring(islandAnim, {
|
|
38
|
-
toValue: 1,
|
|
39
|
-
tension: 25,
|
|
40
|
-
friction: 9,
|
|
41
|
-
useNativeDriver: true,
|
|
42
|
-
}),
|
|
43
|
-
]),
|
|
44
|
-
]));
|
|
45
|
-
|
|
46
|
-
const canJoin = controller.displayName.trim().length > 0 && !joinDisabled && !controller.isSubmitting;
|
|
47
|
-
const showPreview = Boolean(controller.previewStream && controller.videoEnabled && canRenderPreview);
|
|
48
|
-
const previewStreamURL = showPreview && controller.previewStream ? controller.previewStream.toURL() : null;
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<KeyboardAvoidingView behavior={Platform.OS === "ios" ? "padding" : "height"} style={[styles.screen, { backgroundColor: theme.colors.background }]}>
|
|
52
|
-
{/* Immersive Background */}
|
|
53
|
-
<View style={[styles.immersiveContainer, { backgroundColor: theme.colors.darkCanvas }]}>
|
|
54
|
-
{previewStreamURL ? (
|
|
55
|
-
<RtcVideoView mirror objectFit="cover" streamURL={previewStreamURL} style={styles.fullScreenVideo} zOrder={-1} />
|
|
56
|
-
) : (
|
|
57
|
-
<View style={[styles.immersiveAvatarContainer, { backgroundColor: theme.colors.background }]}>
|
|
58
|
-
<FaceAvatar name={controller.displayName} size={200} textSize={80} />
|
|
59
|
-
</View>
|
|
60
|
-
)}
|
|
61
|
-
{/* Subtle Brand Frost - only show over video, not avatar */}
|
|
62
|
-
{showPreview ? <View style={styles.frostOverlay} /> : null}
|
|
63
|
-
</View>
|
|
64
|
-
|
|
65
|
-
<View style={styles.hudLayer}>
|
|
66
|
-
{/* Top HUD */}
|
|
67
|
-
<View style={styles.topHud}>
|
|
68
|
-
{onCancel ? (
|
|
69
|
-
<Pressable accessibilityLabel="Cancel and leave Entrance" accessibilityRole="button" onPress={onCancel} style={({ pressed }) => [styles.backPuck, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }, pressed && styles.pressed]}>
|
|
70
|
-
<HugeiconsIcon icon={ArrowLeft01Icon} size={22} color={theme.colors.foreground} />
|
|
71
|
-
</Pressable>
|
|
72
|
-
) : null}
|
|
73
|
-
<View style={styles.spaceInfo}>
|
|
74
|
-
<Text style={[styles.spaceTitle, { color: theme.colors.foreground }]} numberOfLines={1}>
|
|
75
|
-
{spaceName}
|
|
76
|
-
</Text>
|
|
77
|
-
</View>
|
|
78
|
-
<View style={styles.topHudSpacer} />
|
|
79
|
-
</View>
|
|
80
|
-
|
|
81
|
-
<View style={styles.flexFill} />
|
|
82
|
-
|
|
83
|
-
{/* Bottom HUD */}
|
|
84
|
-
<Animated.View
|
|
85
|
-
ref={attachEntryAnimation}
|
|
86
|
-
style={[
|
|
87
|
-
styles.bottomHud,
|
|
88
|
-
{
|
|
89
|
-
opacity: islandAnim,
|
|
90
|
-
transform: [{ translateY: islandAnim.interpolate({ inputRange: [0, 1], outputRange: [40, 0] }) }],
|
|
91
|
-
},
|
|
92
|
-
]}
|
|
93
|
-
>
|
|
94
|
-
{/* Unified Launch Pad */}
|
|
95
|
-
<View style={[styles.launchPad, { backgroundColor: theme.colors.card, borderColor: theme.colors.border, shadowColor: theme.colors.darkCanvas }]}>
|
|
96
|
-
{/* Media Controls Integrated */}
|
|
97
|
-
<View style={styles.mediaGroup}>
|
|
98
|
-
<Pressable
|
|
99
|
-
accessibilityLabel={controller.audioEnabled ? "Mute microphone" : "Unmute microphone"}
|
|
100
|
-
accessibilityRole="button"
|
|
101
|
-
accessibilityState={{ disabled: controller.simulatorMediaDisabled, selected: controller.audioEnabled }}
|
|
102
|
-
disabled={controller.simulatorMediaDisabled}
|
|
103
|
-
onPress={controller.toggleAudio}
|
|
104
|
-
style={({ pressed }) => [styles.mediaToggle, { backgroundColor: controller.audioEnabled ? theme.colors.controlsBackground : theme.colors.error, borderColor: theme.colors.border }, pressed && styles.pressed]}
|
|
105
|
-
>
|
|
106
|
-
<HugeiconsIcon icon={controller.audioEnabled ? Mic01Icon : MicOff01Icon} size={22} color={theme.colors.primaryForeground} />
|
|
107
|
-
</Pressable>
|
|
108
|
-
<Pressable
|
|
109
|
-
accessibilityLabel={controller.videoEnabled ? "Turn camera off" : "Turn camera on"}
|
|
110
|
-
accessibilityRole="button"
|
|
111
|
-
accessibilityState={{ disabled: controller.simulatorMediaDisabled, selected: controller.videoEnabled }}
|
|
112
|
-
disabled={controller.simulatorMediaDisabled}
|
|
113
|
-
onPress={controller.toggleVideo}
|
|
114
|
-
style={({ pressed }) => [styles.mediaToggle, { backgroundColor: controller.videoEnabled ? theme.colors.controlsBackground : theme.colors.error, borderColor: theme.colors.border }, pressed && styles.pressed]}
|
|
115
|
-
>
|
|
116
|
-
<HugeiconsIcon icon={controller.videoEnabled ? Video01Icon : VideoOffIcon} size={22} color={theme.colors.primaryForeground} />
|
|
117
|
-
</Pressable>
|
|
118
|
-
</View>
|
|
119
|
-
|
|
120
|
-
<View style={styles.islandDivider} />
|
|
121
|
-
|
|
122
|
-
{/* Identity Field */}
|
|
123
|
-
<View style={[styles.identityArea, { backgroundColor: theme.colors.surface, borderColor: controller.isInputFocused ? theme.colors.ring : theme.colors.border }, controller.isInputFocused && styles.identityAreaFocused]}>
|
|
124
|
-
<TextInput
|
|
125
|
-
accessibilityLabel="Your name"
|
|
126
|
-
onChangeText={controller.setDisplayName}
|
|
127
|
-
onFocus={() => controller.setInputFocused(true)}
|
|
128
|
-
onBlur={() => controller.setInputFocused(false)}
|
|
129
|
-
placeholder="Enter your name to join"
|
|
130
|
-
placeholderTextColor={theme.colors.mutedForeground}
|
|
131
|
-
style={[styles.immersiveInput, { color: theme.colors.foreground }]}
|
|
132
|
-
value={controller.displayName}
|
|
133
|
-
maxLength={30}
|
|
134
|
-
returnKeyType="join"
|
|
135
|
-
onSubmitEditing={controller.handleJoin}
|
|
136
|
-
/>
|
|
137
|
-
{controller.displayName.length > 0 && (
|
|
138
|
-
<Pressable accessibilityLabel="Clear name" accessibilityRole="button" onPress={() => controller.setDisplayName("")} style={styles.clearAction}>
|
|
139
|
-
<HugeiconsIcon icon={CancelCircleIcon} size={18} color={theme.colors.mutedForeground} />
|
|
140
|
-
</Pressable>
|
|
141
|
-
)}
|
|
142
|
-
</View>
|
|
143
|
-
|
|
144
|
-
<Pressable
|
|
145
|
-
accessibilityLabel="Enter Space"
|
|
146
|
-
accessibilityRole="button"
|
|
147
|
-
accessibilityState={{ disabled: !canJoin }}
|
|
148
|
-
disabled={!canJoin}
|
|
149
|
-
onPress={controller.handleJoin}
|
|
150
|
-
style={({ pressed }) => [
|
|
151
|
-
styles.joinArrow,
|
|
152
|
-
canJoin && {
|
|
153
|
-
backgroundColor: theme.colors.primary,
|
|
154
|
-
shadowColor: theme.colors.primary,
|
|
155
|
-
shadowOffset: { width: 0, height: 4 },
|
|
156
|
-
shadowOpacity: 0.3,
|
|
157
|
-
shadowRadius: 8,
|
|
158
|
-
},
|
|
159
|
-
pressed && canJoin && styles.pressed,
|
|
160
|
-
controller.isSubmitting && styles.disabled,
|
|
161
|
-
]}
|
|
162
|
-
>
|
|
163
|
-
{controller.isSubmitting ? <ActivityIndicator color={theme.colors.primaryForeground} size="small" /> : <HugeiconsIcon icon={ArrowRight02Icon} size={28} color={canJoin ? theme.colors.primaryForeground : theme.colors.mutedForeground} />}
|
|
164
|
-
</Pressable>
|
|
165
|
-
</View>
|
|
166
|
-
|
|
167
|
-
{error ? <Text style={[styles.immersiveError, { color: theme.colors.error }]}>{error}</Text> : null}
|
|
168
|
-
{controller.simulatorMediaDisabled && <Text style={[styles.simulatorHintText, { color: theme.colors.mutedForeground }]}>{getIosSimulatorMediaMessage()}</Text>}
|
|
169
|
-
</Animated.View>
|
|
170
|
-
</View>
|
|
171
|
-
</KeyboardAvoidingView>
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const styles = StyleSheet.create({
|
|
176
|
-
screen: {
|
|
177
|
-
flex: 1,
|
|
178
|
-
backgroundColor: Theme.colors.darkCanvas,
|
|
179
|
-
},
|
|
180
|
-
immersiveContainer: {
|
|
181
|
-
...StyleSheet.absoluteFillObject,
|
|
182
|
-
backgroundColor: Theme.colors.darkCanvas,
|
|
183
|
-
},
|
|
184
|
-
fullScreenVideo: {
|
|
185
|
-
...StyleSheet.absoluteFillObject,
|
|
186
|
-
},
|
|
187
|
-
immersiveAvatarContainer: {
|
|
188
|
-
...StyleSheet.absoluteFillObject,
|
|
189
|
-
alignItems: "center",
|
|
190
|
-
justifyContent: "center",
|
|
191
|
-
backgroundColor: Theme.colors.background,
|
|
192
|
-
},
|
|
193
|
-
frostOverlay: {
|
|
194
|
-
...StyleSheet.absoluteFillObject,
|
|
195
|
-
backgroundColor: Theme.colors.darkOverlay30,
|
|
196
|
-
},
|
|
197
|
-
hudLayer: {
|
|
198
|
-
flex: 1,
|
|
199
|
-
paddingHorizontal: 60,
|
|
200
|
-
paddingTop: 40,
|
|
201
|
-
paddingBottom: 60,
|
|
202
|
-
},
|
|
203
|
-
flexFill: {
|
|
204
|
-
flex: 1,
|
|
205
|
-
},
|
|
206
|
-
topHud: {
|
|
207
|
-
flexDirection: "row",
|
|
208
|
-
alignItems: "center",
|
|
209
|
-
justifyContent: "space-between",
|
|
210
|
-
},
|
|
211
|
-
backPuck: {
|
|
212
|
-
width: 52,
|
|
213
|
-
height: 52,
|
|
214
|
-
borderRadius: 26,
|
|
215
|
-
backgroundColor: Theme.colors.whiteOverlay08,
|
|
216
|
-
alignItems: "center",
|
|
217
|
-
justifyContent: "center",
|
|
218
|
-
borderWidth: 1,
|
|
219
|
-
borderColor: Theme.colors.whiteOverlay10,
|
|
220
|
-
},
|
|
221
|
-
spaceInfo: {
|
|
222
|
-
alignItems: "center",
|
|
223
|
-
},
|
|
224
|
-
spaceTitle: {
|
|
225
|
-
color: Theme.colors.onDark,
|
|
226
|
-
fontSize: 28,
|
|
227
|
-
fontWeight: "900",
|
|
228
|
-
letterSpacing: -0.5,
|
|
229
|
-
},
|
|
230
|
-
topHudSpacer: {
|
|
231
|
-
width: 52,
|
|
232
|
-
},
|
|
233
|
-
bottomHud: {
|
|
234
|
-
width: "100%",
|
|
235
|
-
maxWidth: 700,
|
|
236
|
-
alignSelf: "center",
|
|
237
|
-
gap: 16,
|
|
238
|
-
},
|
|
239
|
-
launchPad: {
|
|
240
|
-
flexDirection: "row",
|
|
241
|
-
alignItems: "center",
|
|
242
|
-
backgroundColor: Theme.colors.canvasOverlay85,
|
|
243
|
-
borderRadius: 40,
|
|
244
|
-
borderWidth: 1,
|
|
245
|
-
borderColor: Theme.colors.whiteOverlay12,
|
|
246
|
-
padding: 8,
|
|
247
|
-
height: 80,
|
|
248
|
-
shadowColor: Theme.colors.darkCanvas,
|
|
249
|
-
shadowOffset: { width: 0, height: 12 },
|
|
250
|
-
shadowOpacity: 0.5,
|
|
251
|
-
shadowRadius: 20,
|
|
252
|
-
elevation: 20,
|
|
253
|
-
},
|
|
254
|
-
mediaGroup: {
|
|
255
|
-
flexDirection: "row",
|
|
256
|
-
gap: 8,
|
|
257
|
-
paddingLeft: 4,
|
|
258
|
-
},
|
|
259
|
-
mediaToggle: {
|
|
260
|
-
width: 64,
|
|
261
|
-
height: 64,
|
|
262
|
-
borderRadius: 32,
|
|
263
|
-
backgroundColor: Theme.colors.whiteOverlay06,
|
|
264
|
-
alignItems: "center",
|
|
265
|
-
justifyContent: "center",
|
|
266
|
-
borderWidth: 1,
|
|
267
|
-
borderColor: Theme.colors.whiteOverlay05,
|
|
268
|
-
},
|
|
269
|
-
toggleOff: {
|
|
270
|
-
backgroundColor: Theme.colors.error,
|
|
271
|
-
borderColor: Theme.colors.error,
|
|
272
|
-
},
|
|
273
|
-
islandDivider: {
|
|
274
|
-
width: 1,
|
|
275
|
-
height: 32,
|
|
276
|
-
backgroundColor: Theme.colors.whiteOverlay10,
|
|
277
|
-
marginHorizontal: 16,
|
|
278
|
-
},
|
|
279
|
-
identityArea: {
|
|
280
|
-
flex: 1,
|
|
281
|
-
flexDirection: "row",
|
|
282
|
-
alignItems: "center",
|
|
283
|
-
height: "100%",
|
|
284
|
-
paddingHorizontal: 8,
|
|
285
|
-
},
|
|
286
|
-
identityAreaFocused: {},
|
|
287
|
-
immersiveInput: {
|
|
288
|
-
flex: 1,
|
|
289
|
-
color: Theme.colors.onDark,
|
|
290
|
-
fontSize: 20,
|
|
291
|
-
fontWeight: "700",
|
|
292
|
-
padding: 0,
|
|
293
|
-
letterSpacing: -0.5,
|
|
294
|
-
},
|
|
295
|
-
clearAction: {
|
|
296
|
-
padding: 10,
|
|
297
|
-
},
|
|
298
|
-
joinArrow: {
|
|
299
|
-
width: 64,
|
|
300
|
-
height: 64,
|
|
301
|
-
borderRadius: 32,
|
|
302
|
-
backgroundColor: Theme.colors.whiteOverlay05,
|
|
303
|
-
alignItems: "center",
|
|
304
|
-
justifyContent: "center",
|
|
305
|
-
},
|
|
306
|
-
immersiveError: {
|
|
307
|
-
color: Theme.colors.error,
|
|
308
|
-
fontSize: 14,
|
|
309
|
-
fontWeight: "700",
|
|
310
|
-
textAlign: "center",
|
|
311
|
-
marginTop: 8,
|
|
312
|
-
},
|
|
313
|
-
simulatorHintText: {
|
|
314
|
-
color: Theme.colors.whiteOverlay50,
|
|
315
|
-
fontSize: 12,
|
|
316
|
-
textAlign: "center",
|
|
317
|
-
fontWeight: "600",
|
|
318
|
-
},
|
|
319
|
-
pressed: {
|
|
320
|
-
opacity: 0.7,
|
|
321
|
-
transform: [{ scale: 0.94 }],
|
|
322
|
-
},
|
|
323
|
-
disabled: {
|
|
324
|
-
opacity: 0.5,
|
|
325
|
-
},
|
|
326
|
-
});
|