@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,120 +0,0 @@
|
|
|
1
|
-
import { getParticipantAvatarRecipe } from "../ui/participant-avatar";
|
|
2
|
-
import type { ParticipantGradientPreference } from "../ui/native-types";
|
|
3
|
-
import { FacehashNative } from "@q9labsai/facehash/react-native";
|
|
4
|
-
import { memo, useMemo, useState } from "react";
|
|
5
|
-
import { Image, StyleSheet, View } from "react-native";
|
|
6
|
-
import { Theme } from "../ui/theme";
|
|
7
|
-
import { GradientSurface } from "./GradientSurface";
|
|
8
|
-
|
|
9
|
-
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
10
|
-
export type AvatarStatus = "online" | "away" | "busy" | "offline";
|
|
11
|
-
|
|
12
|
-
const sizeMap: Record<AvatarSize, { size: number }> = {
|
|
13
|
-
xs: { size: 24 },
|
|
14
|
-
sm: { size: 32 },
|
|
15
|
-
md: { size: 48 },
|
|
16
|
-
lg: { size: 64 },
|
|
17
|
-
xl: { size: 96 },
|
|
18
|
-
"2xl": { size: 120 },
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const statusColorMap: Record<AvatarStatus, string> = {
|
|
22
|
-
online: Theme.colors.success,
|
|
23
|
-
away: Theme.colors.warning,
|
|
24
|
-
busy: Theme.colors.error,
|
|
25
|
-
offline: Theme.colors.statusOffline,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export interface FaceAvatarProps {
|
|
29
|
-
name?: string;
|
|
30
|
-
src?: string;
|
|
31
|
-
size?: AvatarSize | number;
|
|
32
|
-
status?: AvatarStatus;
|
|
33
|
-
gradientPreference?: ParticipantGradientPreference;
|
|
34
|
-
audioLevel?: number;
|
|
35
|
-
textSize?: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function FaceAvatarBase({ name, src, size = "md", status, gradientPreference, audioLevel = 0 }: FaceAvatarProps): React.JSX.Element {
|
|
39
|
-
const [imageError, setImageError] = useState(false);
|
|
40
|
-
const hasUploadedImage = Boolean(src) && !imageError;
|
|
41
|
-
|
|
42
|
-
const { pxSize } = useMemo(() => {
|
|
43
|
-
if (typeof size === "number") {
|
|
44
|
-
return { pxSize: size };
|
|
45
|
-
}
|
|
46
|
-
const mapped = sizeMap[size];
|
|
47
|
-
return { pxSize: mapped.size };
|
|
48
|
-
}, [size]);
|
|
49
|
-
|
|
50
|
-
const avatarRecipe = useMemo(() => getParticipantAvatarRecipe(name || "unknown", gradientPreference), [gradientPreference, name]);
|
|
51
|
-
|
|
52
|
-
const wrapperStyle = useMemo(
|
|
53
|
-
() => ({
|
|
54
|
-
height: pxSize,
|
|
55
|
-
width: pxSize,
|
|
56
|
-
transform: [{ scale: 1 + Math.min(0.06, Math.max(0, audioLevel) * 0.04) }],
|
|
57
|
-
}),
|
|
58
|
-
[pxSize, audioLevel],
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
const avatarStyle = useMemo(
|
|
62
|
-
() => ({
|
|
63
|
-
borderRadius: pxSize / 2,
|
|
64
|
-
height: pxSize,
|
|
65
|
-
width: pxSize,
|
|
66
|
-
}),
|
|
67
|
-
[pxSize],
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
const statusSize = Math.max(8, pxSize / 4);
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<View style={[styles.wrapper, wrapperStyle]}>
|
|
74
|
-
<View style={[styles.avatar, avatarStyle]}>
|
|
75
|
-
{hasUploadedImage ? (
|
|
76
|
-
<Image source={{ uri: src }} style={{ width: pxSize, height: pxSize, borderRadius: pxSize / 2 }} onError={() => setImageError(true)} />
|
|
77
|
-
) : (
|
|
78
|
-
<>
|
|
79
|
-
<GradientSurface variant="avatar" participantId={name} gradientPreference={gradientPreference} borderRadius={pxSize / 2} />
|
|
80
|
-
<View style={StyleSheet.absoluteFillObject}>
|
|
81
|
-
<FacehashNative colors={avatarRecipe.facehashColors} enableBlink interactive name={name || "guest"} size={pxSize} testID="native-facehash" />
|
|
82
|
-
</View>
|
|
83
|
-
</>
|
|
84
|
-
)}
|
|
85
|
-
</View>
|
|
86
|
-
{status && (
|
|
87
|
-
<View
|
|
88
|
-
style={[
|
|
89
|
-
styles.statusIndicator,
|
|
90
|
-
{
|
|
91
|
-
width: statusSize,
|
|
92
|
-
height: statusSize,
|
|
93
|
-
borderRadius: statusSize / 2,
|
|
94
|
-
backgroundColor: statusColorMap[status],
|
|
95
|
-
borderWidth: 2,
|
|
96
|
-
borderColor: Theme.colors.darkCanvas,
|
|
97
|
-
},
|
|
98
|
-
]}
|
|
99
|
-
/>
|
|
100
|
-
)}
|
|
101
|
-
</View>
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const styles = StyleSheet.create({
|
|
106
|
-
wrapper: {
|
|
107
|
-
alignItems: "center",
|
|
108
|
-
justifyContent: "center",
|
|
109
|
-
},
|
|
110
|
-
avatar: {
|
|
111
|
-
overflow: "hidden",
|
|
112
|
-
},
|
|
113
|
-
statusIndicator: {
|
|
114
|
-
position: "absolute",
|
|
115
|
-
bottom: 0,
|
|
116
|
-
right: 0,
|
|
117
|
-
},
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
export const FaceAvatar = memo(FaceAvatarBase);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { memo, useMemo } from "react";
|
|
2
|
-
import { StyleSheet, View } from "react-native";
|
|
3
|
-
import { getParticipantColor } from "../ui/participant-avatar";
|
|
4
|
-
import type { ParticipantGradientPreference } from "../ui/native-types";
|
|
5
|
-
|
|
6
|
-
export interface GradientSurfaceProps {
|
|
7
|
-
participantId?: string;
|
|
8
|
-
gradientPreference?: ParticipantGradientPreference;
|
|
9
|
-
borderRadius?: number;
|
|
10
|
-
/** @deprecated Kept for API compatibility; identity surfaces are now flat. */
|
|
11
|
-
angle?: "vertical" | "diagonal";
|
|
12
|
-
opacity?: number;
|
|
13
|
-
variant?: "surface" | "avatar";
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function GradientSurfaceBase({ participantId, gradientPreference, borderRadius = 0, opacity = 1, variant = "surface" }: GradientSurfaceProps): React.JSX.Element {
|
|
17
|
-
const colors = useMemo(() => getParticipantColor(participantId, gradientPreference), [gradientPreference, participantId]);
|
|
18
|
-
const backgroundColor = variant === "avatar" ? colors.primary : colors.surface;
|
|
19
|
-
|
|
20
|
-
return <View pointerEvents="none" style={[StyleSheet.absoluteFillObject, { backgroundColor, borderRadius, opacity }]} />;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const GradientSurface = memo(GradientSurfaceBase);
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import type { NativeParticipant as Participant } from "../ui/native-types";
|
|
2
|
-
import { createNativeMediaStream, type NativeMediaStreamTrack } from "../media/native-webrtc";
|
|
3
|
-
import { useEffect, useMemo } from "react";
|
|
4
|
-
import { StyleSheet, View } from "react-native";
|
|
5
|
-
import { Theme } from "../ui/theme";
|
|
6
|
-
import { useNativeTheme } from "../ui/native-theme";
|
|
7
|
-
import { shouldRenderNativeMediaTrack } from "./native-media-visibility";
|
|
8
|
-
import { FaceAvatar } from "./FaceAvatar";
|
|
9
|
-
import { GradientSurface } from "./GradientSurface";
|
|
10
|
-
import { hasRtcVideoView, RtcVideoView } from "./RtcVideoView";
|
|
11
|
-
import { observeNativeFrameNotObservable } from "./episode-diagnostic-render-observer";
|
|
12
|
-
|
|
13
|
-
export interface MediaViewProps {
|
|
14
|
-
participant: Participant | null;
|
|
15
|
-
track: MediaStreamTrack | NativeMediaStreamTrack | null | undefined;
|
|
16
|
-
mediaKind?: "camera" | "screen-share";
|
|
17
|
-
label?: string;
|
|
18
|
-
mirror?: boolean;
|
|
19
|
-
objectFit?: "cover" | "contain";
|
|
20
|
-
emphasizeMuted?: boolean;
|
|
21
|
-
zOrder?: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function MediaView({ participant, track, mediaKind = "camera", label, mirror = false, objectFit = "cover", zOrder = 0 }: MediaViewProps): React.JSX.Element {
|
|
25
|
-
const theme = useNativeTheme();
|
|
26
|
-
const shouldRenderVideo = shouldRenderNativeMediaTrack({ participant, track, mediaKind });
|
|
27
|
-
const canRenderPreview = hasRtcVideoView();
|
|
28
|
-
const stream = useMemo(() => {
|
|
29
|
-
if (!shouldRenderVideo || !track) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return createNativeMediaStream(track);
|
|
34
|
-
}, [shouldRenderVideo, track]);
|
|
35
|
-
|
|
36
|
-
const name = participant?.displayName?.trim() || label || "Participant";
|
|
37
|
-
const showStream = Boolean(stream && canRenderPreview);
|
|
38
|
-
const streamURL = showStream && stream ? stream.toURL() : null;
|
|
39
|
-
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
if (shouldRenderVideo && track) observeNativeFrameNotObservable(track);
|
|
42
|
-
}, [shouldRenderVideo, track]);
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<View style={[styles.surface, { backgroundColor: theme.colors.stageBackground }]}>
|
|
46
|
-
{streamURL ? <RtcVideoView mirror={mirror} objectFit={objectFit} streamURL={streamURL} style={StyleSheet.absoluteFillObject} zOrder={Math.max(1, zOrder)} /> : null}
|
|
47
|
-
|
|
48
|
-
{!showStream ? (
|
|
49
|
-
<View style={styles.fallback}>
|
|
50
|
-
<GradientSurface borderRadius={0} opacity={0.92} participantId={name} />
|
|
51
|
-
<FaceAvatar name={name} size={88} textSize={34} />
|
|
52
|
-
</View>
|
|
53
|
-
) : null}
|
|
54
|
-
</View>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const styles = StyleSheet.create({
|
|
59
|
-
surface: {
|
|
60
|
-
flex: 1,
|
|
61
|
-
minHeight: 80,
|
|
62
|
-
width: "100%",
|
|
63
|
-
height: "100%",
|
|
64
|
-
overflow: "hidden",
|
|
65
|
-
backgroundColor: Theme.colors.stageBackground,
|
|
66
|
-
borderRadius: Theme.radius.md,
|
|
67
|
-
position: "relative",
|
|
68
|
-
},
|
|
69
|
-
fallback: {
|
|
70
|
-
...StyleSheet.absoluteFillObject,
|
|
71
|
-
alignItems: "center",
|
|
72
|
-
justifyContent: "center",
|
|
73
|
-
width: "100%",
|
|
74
|
-
height: "100%",
|
|
75
|
-
},
|
|
76
|
-
});
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { memo } from "react";
|
|
2
|
-
import { Modal, Pressable, StyleSheet, Text, View } from "react-native";
|
|
3
|
-
|
|
4
|
-
import { Theme } from "../ui/theme";
|
|
5
|
-
|
|
6
|
-
export interface ReactionPickerProps {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
onSelect: (emoji: string) => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const DEFAULT_REACTIONS = ["👍", "❤️", "😂", "😮", "😢", "🎉"] as const;
|
|
13
|
-
|
|
14
|
-
function ReactionPickerBase({ isOpen, onClose, onSelect }: ReactionPickerProps): React.JSX.Element {
|
|
15
|
-
return (
|
|
16
|
-
<Modal animationType="fade" transparent={true} visible={isOpen} onRequestClose={onClose}>
|
|
17
|
-
<View style={styles.overlay}>
|
|
18
|
-
<Pressable accessibilityLabel="Close Reactions" onPress={onClose} style={styles.backdrop} />
|
|
19
|
-
<View style={styles.picker}>
|
|
20
|
-
<View style={styles.header}>
|
|
21
|
-
<Text accessibilityRole="header" style={styles.title}>
|
|
22
|
-
Reactions
|
|
23
|
-
</Text>
|
|
24
|
-
<Pressable accessibilityLabel="Close Reactions" accessibilityRole="button" onPress={onClose} style={({ pressed }) => [styles.closeButton, pressed && styles.pressed]}>
|
|
25
|
-
<Text style={styles.closeText}>×</Text>
|
|
26
|
-
</Pressable>
|
|
27
|
-
</View>
|
|
28
|
-
{DEFAULT_REACTIONS.map((emoji) => (
|
|
29
|
-
<Pressable
|
|
30
|
-
accessibilityLabel={`Send ${emoji} reaction`}
|
|
31
|
-
accessibilityRole="button"
|
|
32
|
-
key={emoji}
|
|
33
|
-
onPress={() => {
|
|
34
|
-
onSelect(emoji);
|
|
35
|
-
onClose();
|
|
36
|
-
}}
|
|
37
|
-
style={({ pressed }) => [styles.emojiButton, pressed && styles.emojiButtonPressed]}
|
|
38
|
-
>
|
|
39
|
-
<Text style={styles.emojiText}>{emoji}</Text>
|
|
40
|
-
</Pressable>
|
|
41
|
-
))}
|
|
42
|
-
</View>
|
|
43
|
-
</View>
|
|
44
|
-
</Modal>
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const styles = StyleSheet.create({
|
|
49
|
-
overlay: {
|
|
50
|
-
flex: 1,
|
|
51
|
-
backgroundColor: Theme.colors.darkOverlay30,
|
|
52
|
-
justifyContent: "flex-end",
|
|
53
|
-
alignItems: "center",
|
|
54
|
-
paddingBottom: 100,
|
|
55
|
-
},
|
|
56
|
-
backdrop: {
|
|
57
|
-
...StyleSheet.absoluteFillObject,
|
|
58
|
-
backgroundColor: Theme.colors.darkOverlay30,
|
|
59
|
-
},
|
|
60
|
-
picker: {
|
|
61
|
-
flexDirection: "column",
|
|
62
|
-
backgroundColor: Theme.colors.insetSurface,
|
|
63
|
-
borderRadius: 28,
|
|
64
|
-
padding: 6,
|
|
65
|
-
gap: 4,
|
|
66
|
-
borderWidth: 1,
|
|
67
|
-
borderColor: Theme.colors.whiteOverlay08,
|
|
68
|
-
shadowColor: Theme.colors.darkCanvas,
|
|
69
|
-
shadowOffset: { width: 0, height: 8 },
|
|
70
|
-
shadowOpacity: 0.4,
|
|
71
|
-
shadowRadius: 16,
|
|
72
|
-
elevation: 12,
|
|
73
|
-
},
|
|
74
|
-
header: { alignItems: "center", flexDirection: "row", justifyContent: "space-between", minHeight: 46, paddingHorizontal: 8, width: "100%" },
|
|
75
|
-
title: { color: Theme.colors.foreground, fontSize: 16, fontWeight: "700" },
|
|
76
|
-
closeButton: { alignItems: "center", borderColor: Theme.colors.border, borderRadius: Theme.radius.full, borderWidth: 1, height: 36, justifyContent: "center", width: 36 },
|
|
77
|
-
closeText: { color: Theme.colors.foreground, fontSize: 23, fontWeight: "400", lineHeight: 24 },
|
|
78
|
-
emojiButton: {
|
|
79
|
-
width: 48,
|
|
80
|
-
height: 48,
|
|
81
|
-
borderRadius: 24,
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
justifyContent: "center",
|
|
84
|
-
},
|
|
85
|
-
emojiButtonPressed: {
|
|
86
|
-
backgroundColor: Theme.colors.whiteOverlay12,
|
|
87
|
-
transform: [{ scale: 0.88 }],
|
|
88
|
-
},
|
|
89
|
-
pressed: {
|
|
90
|
-
opacity: 0.72,
|
|
91
|
-
transform: [{ scale: 0.96 }],
|
|
92
|
-
},
|
|
93
|
-
emojiText: {
|
|
94
|
-
fontSize: 26,
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
export const ReactionPicker = memo(ReactionPickerBase);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SpaceViewShared as SpaceViewAndroid, SpaceViewShared as SpaceView } from "./SpaceView.shared";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SpaceViewShared as SpaceViewIosPad, SpaceViewShared as SpaceView } from "./SpaceView.shared";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SpaceViewShared as SpaceViewIosPhone, SpaceViewShared as SpaceView } from "./SpaceView.shared";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SpaceViewShared as SpaceViewMacos, SpaceViewShared as SpaceView } from "./SpaceView.shared";
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { useRef, useState } from "react";
|
|
2
|
-
import { Alert, StyleSheet, Text, View } from "react-native";
|
|
3
|
-
|
|
4
|
-
import { useSpaceClient } from "../context/space-client-context";
|
|
5
|
-
import { Theme } from "../ui/theme";
|
|
6
|
-
import { useNativeTheme } from "../ui/native-theme";
|
|
7
|
-
import { getIosSimulatorMediaMessage } from "../utils/ios-simulator";
|
|
8
|
-
import { ReactionPicker } from "./ReactionPicker";
|
|
9
|
-
import type { SpaceViewProps } from "./SpaceView";
|
|
10
|
-
import { SpaceGridAndroid } from "./native-space-view/SpaceGrid.android";
|
|
11
|
-
import { SpaceBottomDockAndroid } from "./native-space-view/SpaceBottomDock.android";
|
|
12
|
-
import { SpaceActionMenu, selectSpaceReaction } from "./native-space-view/SpaceActionMenu";
|
|
13
|
-
import { FeedbackSheet } from "./native-space-view/FeedbackSheet";
|
|
14
|
-
import type { FeedbackCaptureSize } from "../feedback/native-capture";
|
|
15
|
-
import { SpaceStageAndroid } from "./native-space-view/SpaceStage.android";
|
|
16
|
-
import { SpaceTopBarAndroid } from "./native-space-view/SpaceTopBar.android";
|
|
17
|
-
import { SpaceWhiteboardSurface } from "./native-space-view/SpaceWhiteboardSurface";
|
|
18
|
-
import { SettingsSheet } from "./native-space-view/SettingsSheet";
|
|
19
|
-
import { SpacePanelSheet } from "./native-space-view/SpacePanelSheet";
|
|
20
|
-
import { useSpaceViewController } from "./native-space-view/useSpaceViewController";
|
|
21
|
-
|
|
22
|
-
export function SpaceViewShared(props: SpaceViewProps): React.JSX.Element {
|
|
23
|
-
const controller = useSpaceViewController(props);
|
|
24
|
-
const client = useSpaceClient();
|
|
25
|
-
const theme = useNativeTheme();
|
|
26
|
-
const captureTarget = useRef<View>(null);
|
|
27
|
-
const [captureSize, setCaptureSize] = useState<FeedbackCaptureSize>({ width: 0, height: 0 });
|
|
28
|
-
const [feedbackRequested, setFeedbackRequested] = useState(false);
|
|
29
|
-
const toggleMedia = (action: () => void) => {
|
|
30
|
-
if (controller.simulatorMediaDisabled) {
|
|
31
|
-
Alert.alert("Media unavailable", getIosSimulatorMediaMessage());
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
action();
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<>
|
|
39
|
-
<View collapsable={false} onLayout={(event) => setCaptureSize({ width: event.nativeEvent.layout.width, height: event.nativeEvent.layout.height })} ref={captureTarget} style={[styles.space, { backgroundColor: theme.colors.darkCanvas }]}>
|
|
40
|
-
<SpaceTopBarAndroid recording={controller.recording} formattedDuration={controller.formattedDuration} logoUrl={props.logoUrl} participantCount={controller.participantCount} spaceName={controller.spaceName} />
|
|
41
|
-
{props.reconnecting ? (
|
|
42
|
-
<View accessibilityLiveRegion="polite" style={[styles.recovery, { backgroundColor: theme.colors.primary }]}>
|
|
43
|
-
<Text style={[styles.recoveryText, { color: theme.colors.primaryForeground }]}>Reconnecting… controls will resume shortly.</Text>
|
|
44
|
-
</View>
|
|
45
|
-
) : null}
|
|
46
|
-
<View style={styles.stage}>
|
|
47
|
-
{controller.whiteboard.isOpen ? (
|
|
48
|
-
<SpaceWhiteboardSurface whiteboard={controller.whiteboard} />
|
|
49
|
-
) : controller.derived.isStageMode || controller.layout.layout !== "grid" ? (
|
|
50
|
-
<SpaceStageAndroid
|
|
51
|
-
activeReactions={controller.activeReactions}
|
|
52
|
-
handRaised={controller.handRaised}
|
|
53
|
-
isCompactViewport={controller.derived.isCompactViewport}
|
|
54
|
-
isMuted={controller.isMuted}
|
|
55
|
-
layoutMode={controller.layout.layout}
|
|
56
|
-
primaryContent={controller.derived.primaryContent}
|
|
57
|
-
raisedHandCount={controller.raisedHandCount}
|
|
58
|
-
screenShareTrack={controller.derived.screenShareTrack}
|
|
59
|
-
screenSharer={controller.derived.screenSharer}
|
|
60
|
-
selfName={controller.selfName}
|
|
61
|
-
stripParticipants={controller.derived.allParticipants}
|
|
62
|
-
whiteboard={{
|
|
63
|
-
isOpen: controller.whiteboard.isOpen,
|
|
64
|
-
canDraw: controller.whiteboard.canDraw,
|
|
65
|
-
elementCount: controller.whiteboard.elements.length,
|
|
66
|
-
participantCount: controller.whiteboard.openParticipants.length,
|
|
67
|
-
}}
|
|
68
|
-
/>
|
|
69
|
-
) : (
|
|
70
|
-
<SpaceGridAndroid gridPages={controller.derived.gridPages} participants={controller.derived.allParticipants} />
|
|
71
|
-
)}
|
|
72
|
-
</View>
|
|
73
|
-
<SpaceBottomDockAndroid
|
|
74
|
-
isCameraOff={controller.isCameraOff}
|
|
75
|
-
isMuted={controller.isMuted}
|
|
76
|
-
onLeave={controller.handleLeave}
|
|
77
|
-
onOpenChat={controller.canChat ? () => controller.openPanel("chat") : undefined}
|
|
78
|
-
onOpenMore={() => controller.setActionsOpen(true)}
|
|
79
|
-
onToggleAudio={() => toggleMedia(controller.toggleAudio)}
|
|
80
|
-
onToggleVideo={() => toggleMedia(controller.toggleVideo)}
|
|
81
|
-
simulatorMediaDisabled={controller.simulatorMediaDisabled}
|
|
82
|
-
unreadChatCount={controller.chat.unreadCount}
|
|
83
|
-
/>
|
|
84
|
-
<SpaceActionMenu controller={controller} onOpenDiagnostics={props.onOpenDiagnostics} onOpenFeedback={() => setFeedbackRequested(true)} />
|
|
85
|
-
{controller.panel === "settings" ? <SettingsSheet controller={controller} isOpen onClose={controller.closePanel} /> : <SpacePanelSheet controller={controller} />}
|
|
86
|
-
<ReactionPicker isOpen={controller.reactionPickerOpen} onClose={() => controller.setReactionPickerOpen(false)} onSelect={(reaction) => selectSpaceReaction(controller, reaction)} />
|
|
87
|
-
</View>
|
|
88
|
-
<FeedbackSheet client={client} captureSize={captureSize} captureTarget={captureTarget} feedbackEvidence={props.feedbackEvidence} onClose={() => setFeedbackRequested(false)} requested={feedbackRequested} />
|
|
89
|
-
</>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const styles = StyleSheet.create({
|
|
94
|
-
space: { flex: 1, backgroundColor: Theme.colors.darkCanvas },
|
|
95
|
-
stage: { flex: 1, width: "100%", overflow: "hidden", justifyContent: "center" },
|
|
96
|
-
recovery: { alignItems: "center", paddingHorizontal: 16, paddingVertical: 8 },
|
|
97
|
-
recoveryText: { fontSize: 13, fontWeight: "700" },
|
|
98
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ChatUploadFile, FeedbackEvidenceInput } from "@q9labsai/chalk-client";
|
|
2
|
-
import { resolvePlatformVariant } from "../platform/platform";
|
|
3
|
-
import type { Layout } from "../ui/native-types";
|
|
4
|
-
import { SpaceViewAndroid } from "./SpaceView.android";
|
|
5
|
-
import { SpaceViewIosPad } from "./SpaceView.ios-pad";
|
|
6
|
-
import { SpaceViewIosPhone } from "./SpaceView.ios-phone";
|
|
7
|
-
import { SpaceViewMacos } from "./SpaceView.macos";
|
|
8
|
-
import type { SpaceViewDiagnosticsSnapshot } from "./native-space-view/diagnostics";
|
|
9
|
-
|
|
10
|
-
export interface SpaceViewFeatures {
|
|
11
|
-
chat?: boolean;
|
|
12
|
-
participants?: boolean;
|
|
13
|
-
admission?: boolean;
|
|
14
|
-
screenShare?: boolean;
|
|
15
|
-
reactions?: boolean;
|
|
16
|
-
handRaise?: boolean;
|
|
17
|
-
whiteboard?: boolean;
|
|
18
|
-
info?: boolean;
|
|
19
|
-
settings?: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface SpaceViewProps {
|
|
23
|
-
spaceName?: string;
|
|
24
|
-
inviteLink?: string;
|
|
25
|
-
logoUrl?: string;
|
|
26
|
-
reconnecting?: boolean;
|
|
27
|
-
layout?: Layout;
|
|
28
|
-
onLayoutChange?: (layout: Layout) => void;
|
|
29
|
-
features?: SpaceViewFeatures;
|
|
30
|
-
onLeave: () => void | Promise<void>;
|
|
31
|
-
onEndEpisode?: () => void | Promise<void>;
|
|
32
|
-
onOpenDiagnostics?: () => void;
|
|
33
|
-
feedbackEvidence?: Partial<FeedbackEvidenceInput>;
|
|
34
|
-
onDiagnosticsChange?: (snapshot: SpaceViewDiagnosticsSnapshot) => void;
|
|
35
|
-
/** Selects files; the SDK owns bounds, upload, and send sequencing. */
|
|
36
|
-
pickChatFiles?: () => Promise<readonly ChatUploadFile[]>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type { SpaceViewDiagnosticsSnapshot };
|
|
40
|
-
|
|
41
|
-
export function SpaceView(props: SpaceViewProps): React.JSX.Element {
|
|
42
|
-
switch (resolvePlatformVariant()) {
|
|
43
|
-
case "ios-pad":
|
|
44
|
-
return <SpaceViewIosPad {...props} />;
|
|
45
|
-
case "ios-phone":
|
|
46
|
-
return <SpaceViewIosPhone {...props} />;
|
|
47
|
-
case "macos":
|
|
48
|
-
return <SpaceViewMacos {...props} />;
|
|
49
|
-
case "tvos":
|
|
50
|
-
case "android":
|
|
51
|
-
default:
|
|
52
|
-
return <SpaceViewAndroid {...props} />;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const REGISTRY = Symbol.for("@chalk/private/episode-diagnostic-render-registry/v1");
|
|
2
|
-
|
|
3
|
-
type RenderReporter = (observation: "first_frame" | "not_observable") => void;
|
|
4
|
-
type DiagnosticGlobal = typeof globalThis & { [REGISTRY]?: WeakMap<object, RenderReporter> };
|
|
5
|
-
|
|
6
|
-
export function observeNativeFrameNotObservable(track: object): void {
|
|
7
|
-
try {
|
|
8
|
-
(globalThis as DiagnosticGlobal)[REGISTRY]?.get(track)?.("not_observable");
|
|
9
|
-
} catch {
|
|
10
|
-
// Native rendering stays independent from diagnostic observation.
|
|
11
|
-
}
|
|
12
|
-
}
|