@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,372 +0,0 @@
|
|
|
1
|
-
import type { Layout } from "../../ui/native-types";
|
|
2
|
-
import ComputerScreenShareIcon from "@hugeicons/core-free-icons/dist/esm/ComputerScreenShareIcon";
|
|
3
|
-
import MicOff01Icon from "@hugeicons/core-free-icons/dist/esm/MicOff01Icon";
|
|
4
|
-
import Presentation01Icon from "@hugeicons/core-free-icons/dist/esm/Presentation01Icon";
|
|
5
|
-
import WavingHand01Icon from "@hugeicons/core-free-icons/dist/esm/WavingHand01Icon";
|
|
6
|
-
import { HugeiconsIcon } from "@hugeicons/react-native";
|
|
7
|
-
import { FlatList, StyleSheet, Text, View } from "react-native";
|
|
8
|
-
import type { SpacePrimaryContent } from "../../utils/native-space-layout";
|
|
9
|
-
import { Theme } from "../../ui/theme";
|
|
10
|
-
import { useNativeTheme } from "../../ui/native-theme";
|
|
11
|
-
import { GradientSurface } from "../GradientSurface";
|
|
12
|
-
import { MediaView } from "../MediaView";
|
|
13
|
-
import type { SpaceParticipant } from "./types";
|
|
14
|
-
|
|
15
|
-
export interface SpaceStageProps {
|
|
16
|
-
layoutMode: Layout;
|
|
17
|
-
isCompactViewport: boolean;
|
|
18
|
-
primaryContent: SpacePrimaryContent;
|
|
19
|
-
screenSharer: SpaceParticipant | null;
|
|
20
|
-
screenShareTrack: MediaStreamTrack | null;
|
|
21
|
-
stripParticipants: readonly SpaceParticipant[];
|
|
22
|
-
selfName: string;
|
|
23
|
-
isMuted: boolean;
|
|
24
|
-
handRaised: boolean;
|
|
25
|
-
raisedHandCount: number;
|
|
26
|
-
activeReactions: readonly { id: string; emoji: string; participantName: string }[];
|
|
27
|
-
whiteboard: {
|
|
28
|
-
isOpen: boolean;
|
|
29
|
-
canDraw: boolean;
|
|
30
|
-
elementCount: number;
|
|
31
|
-
participantCount: number;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function getParticipantStripTrack(participant: SpaceParticipant): MediaStreamTrack | null {
|
|
36
|
-
return participant.videoTrack ?? null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function StageSurface({ children }: { children: React.ReactNode }): React.JSX.Element {
|
|
40
|
-
const theme = useNativeTheme();
|
|
41
|
-
return <View style={[styles.surface, { backgroundColor: theme.colors.stageBackground }]}>{children}</View>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function InfoChip({ icon, label, align = "left" }: { icon: React.ComponentProps<typeof HugeiconsIcon>["icon"]; label: string; align?: "left" | "right" }): React.JSX.Element {
|
|
45
|
-
const theme = useNativeTheme();
|
|
46
|
-
return (
|
|
47
|
-
<View style={[styles.infoChip, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }, align === "right" ? styles.infoChipRight : styles.infoChipLeft]}>
|
|
48
|
-
<HugeiconsIcon color={theme.colors.foreground} icon={icon} size={14} />
|
|
49
|
-
<Text style={[styles.infoChipText, { color: theme.colors.foreground }]}>{label}</Text>
|
|
50
|
-
</View>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function NativeWhiteboardPlaceholder({ whiteboard }: Pick<SpaceStageProps, "whiteboard">): React.JSX.Element {
|
|
55
|
-
return (
|
|
56
|
-
<StageSurface>
|
|
57
|
-
<GradientSurface angle="diagonal" borderRadius={24} opacity={0.6} participantId="whiteboard-stage" />
|
|
58
|
-
<View style={styles.placeholderCenter}>
|
|
59
|
-
<View style={styles.presentingIconCircle}>
|
|
60
|
-
<HugeiconsIcon color={Theme.colors.primary} icon={Presentation01Icon} size={32} />
|
|
61
|
-
</View>
|
|
62
|
-
<Text style={styles.placeholderEyebrow}>SHARED CANVAS</Text>
|
|
63
|
-
<Text style={styles.placeholderTitle}>Whiteboard active</Text>
|
|
64
|
-
<Text style={styles.placeholderCopy}>{whiteboard.canDraw ? "Collaborative board is open." : "Board is open in view-only mode."}</Text>
|
|
65
|
-
</View>
|
|
66
|
-
</StageSurface>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function NativeLocalSharePlaceholder(): React.JSX.Element {
|
|
71
|
-
return (
|
|
72
|
-
<StageSurface>
|
|
73
|
-
<GradientSurface angle="diagonal" borderRadius={24} opacity={0.4} participantId="local-presenting" />
|
|
74
|
-
<View style={styles.placeholderCenter}>
|
|
75
|
-
<View style={styles.presentingIconCircle}>
|
|
76
|
-
<HugeiconsIcon color={Theme.colors.primary} icon={ComputerScreenShareIcon} size={32} />
|
|
77
|
-
</View>
|
|
78
|
-
<Text style={styles.placeholderEyebrow}>YOU ARE PRESENTING</Text>
|
|
79
|
-
<Text style={styles.placeholderTitle}>Screen sharing active</Text>
|
|
80
|
-
<Text style={styles.placeholderCopy}>Your preview is hidden here to prevent an infinite mirror effect. Everyone else can see your screen.</Text>
|
|
81
|
-
</View>
|
|
82
|
-
</StageSurface>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function NativeParticipantStrip({ participants, vertical }: { participants: readonly SpaceParticipant[]; vertical: boolean }): React.JSX.Element {
|
|
87
|
-
return (
|
|
88
|
-
<FlatList
|
|
89
|
-
contentContainerStyle={[styles.stripContent, vertical ? styles.stripVertical : styles.stripHorizontal]}
|
|
90
|
-
data={participants}
|
|
91
|
-
horizontal={!vertical}
|
|
92
|
-
initialNumToRender={vertical ? 4 : 5}
|
|
93
|
-
keyExtractor={(participant, index) => `${participant.id}-${index}`}
|
|
94
|
-
maxToRenderPerBatch={vertical ? 5 : 6}
|
|
95
|
-
removeClippedSubviews
|
|
96
|
-
renderItem={({ item: participant }) => (
|
|
97
|
-
<View style={[styles.stripTile, vertical ? styles.stripTileVertical : styles.stripTileHorizontal]}>
|
|
98
|
-
<MediaView emphasizeMuted participant={participant} track={getParticipantStripTrack(participant)} />
|
|
99
|
-
</View>
|
|
100
|
-
)}
|
|
101
|
-
showsHorizontalScrollIndicator={false}
|
|
102
|
-
showsVerticalScrollIndicator={false}
|
|
103
|
-
windowSize={4}
|
|
104
|
-
/>
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function SpaceStageAndroid({ layoutMode, isCompactViewport, primaryContent, screenSharer, screenShareTrack, stripParticipants, selfName, isMuted, handRaised, raisedHandCount, activeReactions, whiteboard }: SpaceStageProps): React.JSX.Element {
|
|
109
|
-
const theme = useNativeTheme();
|
|
110
|
-
const verticalStrip = !isCompactViewport && layoutMode === "focus";
|
|
111
|
-
|
|
112
|
-
let primaryStage: React.JSX.Element;
|
|
113
|
-
if (primaryContent === "whiteboard") {
|
|
114
|
-
primaryStage = <NativeWhiteboardPlaceholder whiteboard={whiteboard} />;
|
|
115
|
-
} else if (primaryContent === "screen-share-placeholder") {
|
|
116
|
-
primaryStage = <NativeLocalSharePlaceholder />;
|
|
117
|
-
} else if (primaryContent === "split") {
|
|
118
|
-
primaryStage = (
|
|
119
|
-
<View style={styles.splitStage}>
|
|
120
|
-
<View style={styles.splitPanel}>
|
|
121
|
-
<StageSurface>
|
|
122
|
-
<MediaView participant={screenSharer} track={screenShareTrack} objectFit="contain" />
|
|
123
|
-
</StageSurface>
|
|
124
|
-
</View>
|
|
125
|
-
<View style={styles.splitPanel}>
|
|
126
|
-
<NativeWhiteboardPlaceholder whiteboard={whiteboard} />
|
|
127
|
-
</View>
|
|
128
|
-
</View>
|
|
129
|
-
);
|
|
130
|
-
} else {
|
|
131
|
-
primaryStage = (
|
|
132
|
-
<StageSurface>
|
|
133
|
-
<MediaView participant={screenSharer} track={screenShareTrack} label={screenSharer?.displayName || "Participant"} objectFit="contain" />
|
|
134
|
-
</StageSurface>
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return (
|
|
139
|
-
<View style={[styles.container, { backgroundColor: theme.colors.darkCanvas }, verticalStrip && styles.containerVertical]}>
|
|
140
|
-
<View style={styles.primaryFrame}>
|
|
141
|
-
{primaryStage}
|
|
142
|
-
|
|
143
|
-
{raisedHandCount > 0 ? <InfoChip icon={WavingHand01Icon} label={raisedHandCount === 1 ? "1 hand raised" : `${raisedHandCount} hands raised`} /> : null}
|
|
144
|
-
|
|
145
|
-
{activeReactions.length > 0 ? (
|
|
146
|
-
<View style={styles.reactionRail}>
|
|
147
|
-
{activeReactions.map((reaction, index) => (
|
|
148
|
-
<View key={`${reaction.id}-${index}`} style={[styles.reactionBubble, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }]}>
|
|
149
|
-
<Text style={styles.reactionEmoji}>{reaction.emoji}</Text>
|
|
150
|
-
<Text numberOfLines={1} style={[styles.reactionName, { color: theme.colors.foreground }]}>
|
|
151
|
-
{reaction.participantName}
|
|
152
|
-
</Text>
|
|
153
|
-
</View>
|
|
154
|
-
))}
|
|
155
|
-
</View>
|
|
156
|
-
) : null}
|
|
157
|
-
|
|
158
|
-
<View style={[styles.identityBar, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }]}>
|
|
159
|
-
<Text style={[styles.nameLabel, { color: theme.colors.foreground }]} numberOfLines={1}>
|
|
160
|
-
{selfName}
|
|
161
|
-
</Text>
|
|
162
|
-
{isMuted ? (
|
|
163
|
-
<View style={styles.muteIndicator}>
|
|
164
|
-
<HugeiconsIcon color={theme.colors.primaryForeground} icon={MicOff01Icon} size={10} />
|
|
165
|
-
</View>
|
|
166
|
-
) : null}
|
|
167
|
-
{handRaised ? (
|
|
168
|
-
<View style={styles.handIndicator}>
|
|
169
|
-
<HugeiconsIcon color={theme.colors.primaryForeground} icon={WavingHand01Icon} size={10} />
|
|
170
|
-
</View>
|
|
171
|
-
) : null}
|
|
172
|
-
</View>
|
|
173
|
-
</View>
|
|
174
|
-
|
|
175
|
-
{stripParticipants.length > 0 ? (
|
|
176
|
-
<View style={[styles.stripShell, verticalStrip ? styles.stripShellVertical : styles.stripShellHorizontal]}>
|
|
177
|
-
<NativeParticipantStrip participants={stripParticipants} vertical={verticalStrip} />
|
|
178
|
-
</View>
|
|
179
|
-
) : null}
|
|
180
|
-
</View>
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export { SpaceStageAndroid as SpaceStage };
|
|
185
|
-
|
|
186
|
-
const styles = StyleSheet.create({
|
|
187
|
-
container: {
|
|
188
|
-
flex: 1,
|
|
189
|
-
width: "100%",
|
|
190
|
-
paddingHorizontal: 12,
|
|
191
|
-
},
|
|
192
|
-
containerVertical: {
|
|
193
|
-
flexDirection: "row",
|
|
194
|
-
},
|
|
195
|
-
primaryFrame: {
|
|
196
|
-
flex: 1,
|
|
197
|
-
minHeight: 0,
|
|
198
|
-
width: "100%",
|
|
199
|
-
marginBottom: 12,
|
|
200
|
-
},
|
|
201
|
-
surface: {
|
|
202
|
-
flex: 1,
|
|
203
|
-
backgroundColor: Theme.colors.stageBackground,
|
|
204
|
-
width: "100%",
|
|
205
|
-
borderRadius: 24,
|
|
206
|
-
overflow: "hidden",
|
|
207
|
-
},
|
|
208
|
-
splitStage: {
|
|
209
|
-
flex: 1,
|
|
210
|
-
flexDirection: "row",
|
|
211
|
-
gap: 10,
|
|
212
|
-
},
|
|
213
|
-
splitPanel: {
|
|
214
|
-
flex: 1,
|
|
215
|
-
},
|
|
216
|
-
placeholderCenter: {
|
|
217
|
-
flex: 1,
|
|
218
|
-
alignItems: "center",
|
|
219
|
-
justifyContent: "center",
|
|
220
|
-
paddingHorizontal: Theme.spacing["3xl"],
|
|
221
|
-
gap: 12,
|
|
222
|
-
},
|
|
223
|
-
presentingIconCircle: {
|
|
224
|
-
width: 80,
|
|
225
|
-
height: 80,
|
|
226
|
-
borderRadius: 40,
|
|
227
|
-
alignItems: "center",
|
|
228
|
-
justifyContent: "center",
|
|
229
|
-
backgroundColor: Theme.colors.whiteOverlay06,
|
|
230
|
-
borderWidth: 1,
|
|
231
|
-
borderColor: Theme.colors.whiteOverlay12,
|
|
232
|
-
marginBottom: 8,
|
|
233
|
-
},
|
|
234
|
-
placeholderEyebrow: {
|
|
235
|
-
fontSize: 11,
|
|
236
|
-
fontWeight: "800",
|
|
237
|
-
color: Theme.colors.primary,
|
|
238
|
-
letterSpacing: 1,
|
|
239
|
-
},
|
|
240
|
-
placeholderTitle: {
|
|
241
|
-
fontSize: 22,
|
|
242
|
-
fontWeight: "800",
|
|
243
|
-
color: Theme.colors.onDark,
|
|
244
|
-
textAlign: "center",
|
|
245
|
-
letterSpacing: -0.5,
|
|
246
|
-
},
|
|
247
|
-
placeholderCopy: {
|
|
248
|
-
fontSize: 14,
|
|
249
|
-
color: Theme.colors.whiteOverlay50,
|
|
250
|
-
textAlign: "center",
|
|
251
|
-
lineHeight: 20,
|
|
252
|
-
paddingHorizontal: 20,
|
|
253
|
-
},
|
|
254
|
-
infoChip: {
|
|
255
|
-
position: "absolute",
|
|
256
|
-
top: 20,
|
|
257
|
-
flexDirection: "row",
|
|
258
|
-
alignItems: "center",
|
|
259
|
-
gap: 5,
|
|
260
|
-
backgroundColor: Theme.colors.darkOverlay50,
|
|
261
|
-
paddingHorizontal: 10,
|
|
262
|
-
paddingVertical: 6,
|
|
263
|
-
borderRadius: 999,
|
|
264
|
-
borderWidth: 1,
|
|
265
|
-
borderColor: Theme.colors.whiteOverlay06,
|
|
266
|
-
},
|
|
267
|
-
infoChipLeft: {
|
|
268
|
-
left: 20,
|
|
269
|
-
},
|
|
270
|
-
infoChipRight: {
|
|
271
|
-
right: 20,
|
|
272
|
-
},
|
|
273
|
-
infoChipText: {
|
|
274
|
-
color: Theme.colors.onDark,
|
|
275
|
-
fontSize: 12,
|
|
276
|
-
fontWeight: "700",
|
|
277
|
-
},
|
|
278
|
-
reactionRail: {
|
|
279
|
-
position: "absolute",
|
|
280
|
-
right: 16,
|
|
281
|
-
bottom: 24,
|
|
282
|
-
gap: 8,
|
|
283
|
-
maxWidth: 180,
|
|
284
|
-
},
|
|
285
|
-
reactionBubble: {
|
|
286
|
-
flexDirection: "row",
|
|
287
|
-
alignItems: "center",
|
|
288
|
-
gap: 8,
|
|
289
|
-
backgroundColor: Theme.colors.darkOverlay45,
|
|
290
|
-
borderRadius: 999,
|
|
291
|
-
paddingHorizontal: 12,
|
|
292
|
-
paddingVertical: 8,
|
|
293
|
-
borderWidth: 1,
|
|
294
|
-
borderColor: Theme.colors.whiteOverlay08,
|
|
295
|
-
},
|
|
296
|
-
reactionEmoji: {
|
|
297
|
-
fontSize: 16,
|
|
298
|
-
},
|
|
299
|
-
reactionName: {
|
|
300
|
-
flex: 1,
|
|
301
|
-
color: Theme.colors.onDark,
|
|
302
|
-
fontSize: 12,
|
|
303
|
-
fontWeight: "700",
|
|
304
|
-
},
|
|
305
|
-
identityBar: {
|
|
306
|
-
position: "absolute",
|
|
307
|
-
left: 20,
|
|
308
|
-
bottom: 20,
|
|
309
|
-
flexDirection: "row",
|
|
310
|
-
alignItems: "center",
|
|
311
|
-
gap: 8,
|
|
312
|
-
backgroundColor: Theme.colors.darkOverlay50,
|
|
313
|
-
paddingHorizontal: 12,
|
|
314
|
-
paddingVertical: 8,
|
|
315
|
-
borderRadius: 999,
|
|
316
|
-
borderWidth: 1,
|
|
317
|
-
borderColor: Theme.colors.whiteOverlay06,
|
|
318
|
-
maxWidth: "70%",
|
|
319
|
-
},
|
|
320
|
-
nameLabel: {
|
|
321
|
-
color: Theme.colors.onDark,
|
|
322
|
-
fontSize: 12,
|
|
323
|
-
fontWeight: "700",
|
|
324
|
-
},
|
|
325
|
-
muteIndicator: {
|
|
326
|
-
width: 18,
|
|
327
|
-
height: 18,
|
|
328
|
-
borderRadius: 9,
|
|
329
|
-
backgroundColor: Theme.colors.dangerStrong,
|
|
330
|
-
alignItems: "center",
|
|
331
|
-
justifyContent: "center",
|
|
332
|
-
},
|
|
333
|
-
handIndicator: {
|
|
334
|
-
width: 18,
|
|
335
|
-
height: 18,
|
|
336
|
-
borderRadius: 9,
|
|
337
|
-
backgroundColor: Theme.colors.warning,
|
|
338
|
-
alignItems: "center",
|
|
339
|
-
justifyContent: "center",
|
|
340
|
-
},
|
|
341
|
-
stripShell: {
|
|
342
|
-
minHeight: 96,
|
|
343
|
-
},
|
|
344
|
-
stripShellHorizontal: {
|
|
345
|
-
height: 110,
|
|
346
|
-
},
|
|
347
|
-
stripShellVertical: {
|
|
348
|
-
width: 110,
|
|
349
|
-
marginLeft: 12,
|
|
350
|
-
},
|
|
351
|
-
stripContent: {
|
|
352
|
-
gap: 10,
|
|
353
|
-
},
|
|
354
|
-
stripHorizontal: {
|
|
355
|
-
paddingBottom: 8,
|
|
356
|
-
},
|
|
357
|
-
stripVertical: {
|
|
358
|
-
paddingRight: 8,
|
|
359
|
-
},
|
|
360
|
-
stripTile: {
|
|
361
|
-
overflow: "hidden",
|
|
362
|
-
borderRadius: 18,
|
|
363
|
-
},
|
|
364
|
-
stripTileHorizontal: {
|
|
365
|
-
width: 132,
|
|
366
|
-
height: 100,
|
|
367
|
-
},
|
|
368
|
-
stripTileVertical: {
|
|
369
|
-
width: 100,
|
|
370
|
-
height: 132,
|
|
371
|
-
},
|
|
372
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { HugeiconsIcon } from "@hugeicons/react-native";
|
|
2
|
-
import { Pressable, StyleSheet, Text, View, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
-
|
|
4
|
-
import { getParticipantColor, getParticipantInitials } from "../../ui/participant-avatar";
|
|
5
|
-
import { Theme } from "../../ui/theme";
|
|
6
|
-
|
|
7
|
-
export type SpaceIcon = React.ComponentProps<typeof HugeiconsIcon>["icon"];
|
|
8
|
-
|
|
9
|
-
export function SheetGrip(): React.JSX.Element {
|
|
10
|
-
return <View accessibilityElementsHidden style={styles.grip} />;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function CloseButton({ label, onPress }: { readonly label: string; readonly onPress: () => void }): React.JSX.Element {
|
|
14
|
-
return (
|
|
15
|
-
<Pressable accessibilityLabel={label} accessibilityRole="button" hitSlop={6} onPress={onPress} style={({ pressed }) => [styles.closeButton, pressed && styles.pressed]}>
|
|
16
|
-
<Text style={styles.closeGlyph}>×</Text>
|
|
17
|
-
</Pressable>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function SurfaceHeader({ title, count, subtitle, onClose, closeLabel }: { readonly title: string; readonly count?: number; readonly subtitle?: string; readonly onClose: () => void; readonly closeLabel: string }): React.JSX.Element {
|
|
22
|
-
return (
|
|
23
|
-
<View style={styles.header}>
|
|
24
|
-
<View style={styles.headerCopy}>
|
|
25
|
-
<View style={styles.titleRow}>
|
|
26
|
-
<Text style={styles.title}>{title}</Text>
|
|
27
|
-
{count !== undefined ? (
|
|
28
|
-
<View style={styles.countPill}>
|
|
29
|
-
<Text style={styles.countText}>{count}</Text>
|
|
30
|
-
</View>
|
|
31
|
-
) : null}
|
|
32
|
-
</View>
|
|
33
|
-
{subtitle ? <Text style={styles.subtitle}>{subtitle}</Text> : null}
|
|
34
|
-
</View>
|
|
35
|
-
<CloseButton label={closeLabel} onPress={onClose} />
|
|
36
|
-
</View>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function InitialsAvatar({ name, size = 52, style }: { readonly name: string; readonly size?: number; readonly style?: StyleProp<ViewStyle> }): React.JSX.Element {
|
|
41
|
-
const color = getParticipantColor(name);
|
|
42
|
-
return (
|
|
43
|
-
<View style={[styles.avatar, { backgroundColor: color.primary, borderRadius: size / 2, height: size, width: size }, style]}>
|
|
44
|
-
<Text allowFontScaling={false} style={[styles.avatarText, { fontSize: Math.max(16, Math.round(size * 0.34)) }]}>
|
|
45
|
-
{getParticipantInitials(name)}
|
|
46
|
-
</Text>
|
|
47
|
-
</View>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function IconTile({ icon, symbol, color = Theme.colors.ink, wash = Theme.colors.surface }: { readonly icon?: SpaceIcon; readonly symbol?: string; readonly color?: string; readonly wash?: string }): React.JSX.Element {
|
|
52
|
-
return <View style={[styles.iconTile, { backgroundColor: wash }]}>{icon ? <HugeiconsIcon color={color} icon={icon} size={22} /> : <Text style={[styles.symbol, { color }]}>{symbol}</Text>}</View>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function PressedStyle({ pressed }: { readonly pressed: boolean }): StyleProp<ViewStyle> {
|
|
56
|
-
return pressed ? styles.pressed : undefined;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const styles = StyleSheet.create({
|
|
60
|
-
grip: { alignSelf: "center", backgroundColor: Theme.colors.lineStrong, borderRadius: Theme.radius.full, height: 5, marginTop: Theme.spacing.sm, width: 48 },
|
|
61
|
-
closeButton: { alignItems: "center", borderColor: Theme.colors.line, borderRadius: Theme.radius.full, borderWidth: 1, height: 46, justifyContent: "center", width: 46 },
|
|
62
|
-
closeGlyph: { color: Theme.colors.ink, fontSize: 28, fontWeight: "400", lineHeight: 30 },
|
|
63
|
-
header: { alignItems: "center", borderBottomColor: Theme.colors.line, borderBottomWidth: 1, flexDirection: "row", justifyContent: "space-between", minHeight: 88, paddingHorizontal: Theme.spacing.lg, paddingVertical: Theme.spacing.md },
|
|
64
|
-
headerCopy: { flex: 1, minWidth: 0, paddingRight: Theme.spacing.md },
|
|
65
|
-
titleRow: { alignItems: "center", flexDirection: "row", gap: Theme.spacing.sm },
|
|
66
|
-
title: { ...Theme.typography.heading, color: Theme.colors.ink },
|
|
67
|
-
subtitle: { ...Theme.typography.meta, color: Theme.colors.ink2, marginTop: 2 },
|
|
68
|
-
countPill: { alignItems: "center", backgroundColor: Theme.colors.paper2, borderRadius: Theme.radius.sm, justifyContent: "center", minHeight: 32, minWidth: 36, paddingHorizontal: Theme.spacing.sm },
|
|
69
|
-
countText: { ...Theme.typography.label, color: Theme.colors.ink },
|
|
70
|
-
avatar: { alignItems: "center", justifyContent: "center", overflow: "hidden" },
|
|
71
|
-
avatarText: { color: Theme.colors.surface, fontWeight: "500", includeFontPadding: false, textAlign: "center" },
|
|
72
|
-
iconTile: { alignItems: "center", borderColor: Theme.colors.line, borderRadius: Theme.radius.md, borderWidth: 1, height: 44, justifyContent: "center", width: 44 },
|
|
73
|
-
symbol: { fontSize: 24, fontWeight: "500", includeFontPadding: false },
|
|
74
|
-
pressed: { opacity: 0.72, transform: [{ scale: 0.98 }] },
|
|
75
|
-
});
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { Recording } from "@q9labsai/chalk-client";
|
|
2
|
-
import UserGroupIcon from "@hugeicons/core-free-icons/dist/esm/UserGroupIcon";
|
|
3
|
-
import { HugeiconsIcon } from "@hugeicons/react-native";
|
|
4
|
-
import { Image, Platform, StyleSheet, Text, View } from "react-native";
|
|
5
|
-
import { Theme } from "../../ui/theme";
|
|
6
|
-
import { useNativeTheme } from "../../ui/native-theme";
|
|
7
|
-
import { Logo } from "../logo/Logo";
|
|
8
|
-
|
|
9
|
-
export interface SpaceTopBarProps {
|
|
10
|
-
spaceName: string;
|
|
11
|
-
participantCount: number;
|
|
12
|
-
formattedDuration: string;
|
|
13
|
-
logoUrl?: string;
|
|
14
|
-
recording?: Recording | null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function SpaceTopBarAndroid({ spaceName, participantCount, formattedDuration, logoUrl, recording }: SpaceTopBarProps): React.JSX.Element {
|
|
18
|
-
const theme = useNativeTheme();
|
|
19
|
-
return (
|
|
20
|
-
<View style={[styles.topBar, { backgroundColor: theme.colors.darkCanvas, borderColor: theme.colors.border }]}>
|
|
21
|
-
<View style={styles.topBarLeft}>
|
|
22
|
-
{logoUrl ? <Image accessibilityLabel="Chalk" source={{ uri: logoUrl }} style={styles.logo} /> : <Logo height={24} variant="mark" />}
|
|
23
|
-
<View style={[styles.connectionDot, { backgroundColor: theme.colors.success }]} />
|
|
24
|
-
<Text style={[styles.topBarSpaceName, { color: theme.colors.foreground }]} numberOfLines={1}>
|
|
25
|
-
{spaceName}
|
|
26
|
-
</Text>
|
|
27
|
-
<View style={[styles.timerBadge, { backgroundColor: theme.colors.surface }]}>
|
|
28
|
-
<Text style={[styles.timerText, { color: theme.colors.mutedForeground }]}>{formattedDuration}</Text>
|
|
29
|
-
</View>
|
|
30
|
-
</View>
|
|
31
|
-
{recording && recording.status !== "stopped" ? (
|
|
32
|
-
<Text accessibilityLiveRegion="polite" style={[styles.timerText, { color: theme.colors.error }]}>
|
|
33
|
-
{recordingLabels[recording.status]}
|
|
34
|
-
</Text>
|
|
35
|
-
) : null}
|
|
36
|
-
<View style={[styles.topBarRight, { backgroundColor: theme.colors.surface }]}>
|
|
37
|
-
<HugeiconsIcon icon={UserGroupIcon} size={14} color={theme.colors.foreground} />
|
|
38
|
-
<Text style={[styles.topBarCount, { color: theme.colors.foreground }]}>{participantCount}</Text>
|
|
39
|
-
</View>
|
|
40
|
-
</View>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const recordingLabels = {
|
|
45
|
-
starting: "Starting recording…",
|
|
46
|
-
recording: "Recording",
|
|
47
|
-
stopping: "Stopping recording…",
|
|
48
|
-
stopped: "Recording stopped",
|
|
49
|
-
failed: "Recording failed",
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { SpaceTopBarAndroid as SpaceTopBar };
|
|
53
|
-
|
|
54
|
-
const styles = StyleSheet.create({
|
|
55
|
-
topBar: {
|
|
56
|
-
paddingTop: Platform.OS === "ios" ? 54 : 42,
|
|
57
|
-
paddingBottom: 14,
|
|
58
|
-
paddingHorizontal: 24,
|
|
59
|
-
backgroundColor: Theme.colors.darkCanvas,
|
|
60
|
-
flexDirection: "row",
|
|
61
|
-
alignItems: "center",
|
|
62
|
-
justifyContent: "space-between",
|
|
63
|
-
borderBottomWidth: 1,
|
|
64
|
-
borderColor: Theme.colors.whiteOverlay06,
|
|
65
|
-
width: "100%",
|
|
66
|
-
},
|
|
67
|
-
topBarLeft: {
|
|
68
|
-
flexDirection: "row",
|
|
69
|
-
alignItems: "center",
|
|
70
|
-
gap: 10,
|
|
71
|
-
flex: 1,
|
|
72
|
-
},
|
|
73
|
-
logo: { width: 24, height: 24, borderRadius: 6 },
|
|
74
|
-
connectionDot: {
|
|
75
|
-
width: 6,
|
|
76
|
-
height: 6,
|
|
77
|
-
borderRadius: 3,
|
|
78
|
-
backgroundColor: Theme.colors.success,
|
|
79
|
-
},
|
|
80
|
-
topBarSpaceName: {
|
|
81
|
-
color: Theme.colors.onDark,
|
|
82
|
-
fontSize: 14,
|
|
83
|
-
fontWeight: "800",
|
|
84
|
-
letterSpacing: -0.2,
|
|
85
|
-
},
|
|
86
|
-
timerBadge: {
|
|
87
|
-
backgroundColor: Theme.colors.whiteOverlay10,
|
|
88
|
-
paddingHorizontal: 8,
|
|
89
|
-
paddingVertical: 2,
|
|
90
|
-
borderRadius: 6,
|
|
91
|
-
marginLeft: 4,
|
|
92
|
-
},
|
|
93
|
-
timerText: {
|
|
94
|
-
color: Theme.colors.whiteOverlay60,
|
|
95
|
-
fontSize: 11,
|
|
96
|
-
fontWeight: "700",
|
|
97
|
-
fontVariant: ["tabular-nums"],
|
|
98
|
-
},
|
|
99
|
-
topBarRight: {
|
|
100
|
-
flexDirection: "row",
|
|
101
|
-
alignItems: "center",
|
|
102
|
-
gap: 4,
|
|
103
|
-
backgroundColor: Theme.colors.whiteOverlay08,
|
|
104
|
-
paddingHorizontal: 8,
|
|
105
|
-
paddingVertical: 4,
|
|
106
|
-
borderRadius: 10,
|
|
107
|
-
},
|
|
108
|
-
topBarCount: {
|
|
109
|
-
color: Theme.colors.onDark,
|
|
110
|
-
fontSize: 12,
|
|
111
|
-
fontWeight: "800",
|
|
112
|
-
},
|
|
113
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { useCallback } from "react";
|
|
2
|
-
import { StyleSheet } from "react-native";
|
|
3
|
-
|
|
4
|
-
import { EmbeddedWhiteboard } from "../EmbeddedWhiteboard";
|
|
5
|
-
import type { WhiteboardMetric } from "../../telemetry";
|
|
6
|
-
import { useNativeTheme } from "../../ui/native-theme";
|
|
7
|
-
import type { SpaceWhiteboardState } from "./useSpaceViewPanels";
|
|
8
|
-
|
|
9
|
-
export interface SpaceWhiteboardSurfaceProps {
|
|
10
|
-
readonly whiteboard: SpaceWhiteboardState;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function shouldRenderNativeSpaceWhiteboard(whiteboard: SpaceWhiteboardState): whiteboard is SpaceWhiteboardState & {
|
|
14
|
-
readonly transport: NonNullable<SpaceWhiteboardState["transport"]>;
|
|
15
|
-
} {
|
|
16
|
-
return whiteboard.isOpen && whiteboard.transport !== null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function forwardNativeSpaceWhiteboardMetric(metric: WhiteboardMetric, onMetric: SpaceWhiteboardState["onMetric"]): void {
|
|
20
|
-
onMetric?.(metric);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function forwardNativeSpaceWhiteboardFailure(error: { readonly code: string; readonly recoverable: boolean }, onMetric: SpaceWhiteboardState["onMetric"]): void {
|
|
24
|
-
onMetric?.({
|
|
25
|
-
name: "whiteboard.renderer.failure",
|
|
26
|
-
value: 1,
|
|
27
|
-
attributes: { code: error.code, recoverable: error.recoverable },
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function SpaceWhiteboardSurface({ whiteboard }: SpaceWhiteboardSurfaceProps): React.JSX.Element | null {
|
|
32
|
-
const nativeTheme = useNativeTheme();
|
|
33
|
-
const handleError = useCallback(
|
|
34
|
-
(error: { readonly code: string; readonly message: string; readonly recoverable: boolean }) => {
|
|
35
|
-
forwardNativeSpaceWhiteboardFailure(error, whiteboard.onMetric);
|
|
36
|
-
},
|
|
37
|
-
[whiteboard.onMetric],
|
|
38
|
-
);
|
|
39
|
-
const handleMetric = useCallback(
|
|
40
|
-
(metric: WhiteboardMetric) => {
|
|
41
|
-
forwardNativeSpaceWhiteboardMetric(metric, whiteboard.onMetric);
|
|
42
|
-
},
|
|
43
|
-
[whiteboard.onMetric],
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
if (!shouldRenderNativeSpaceWhiteboard(whiteboard)) return null;
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<EmbeddedWhiteboard
|
|
50
|
-
canClear={whiteboard.canClear}
|
|
51
|
-
canDraw={whiteboard.canDraw}
|
|
52
|
-
journeyId={whiteboard.journeyId}
|
|
53
|
-
onError={handleError}
|
|
54
|
-
onMetric={handleMetric}
|
|
55
|
-
style={styles.surface}
|
|
56
|
-
theme={nativeTheme.colorScheme}
|
|
57
|
-
transport={whiteboard.transport}
|
|
58
|
-
{...(whiteboard.traceparent ? { traceparent: whiteboard.traceparent } : {})}
|
|
59
|
-
{...(whiteboard.tracestate ? { tracestate: whiteboard.tracestate } : {})}
|
|
60
|
-
/>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const styles = StyleSheet.create({
|
|
65
|
-
surface: {
|
|
66
|
-
flex: 1,
|
|
67
|
-
width: "100%",
|
|
68
|
-
},
|
|
69
|
-
});
|