@stream-io/video-react-native-sdk 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/README.md +1 -1
- package/android/build.gradle +7 -1
- package/android/src/main/java/com/streamvideo/reactnative/audio/AudioDeviceManager.kt +110 -58
- package/android/src/main/java/com/streamvideo/reactnative/audio/CommunicationModeKeepAlive.kt +247 -0
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +16 -5
- package/dist/commonjs/components/Call/CallContent/CallContent.js +1 -1
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +78 -7
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -0
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +3 -2
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +4 -3
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +10 -10
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js +3 -3
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js +3 -3
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +3 -2
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +7 -14
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +3 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js +4 -3
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +3 -3
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +9 -4
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +4 -3
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +27 -4
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +4 -3
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/i18n/Streami18n.js +77 -0
- package/dist/commonjs/i18n/Streami18n.js.map +1 -0
- package/dist/commonjs/i18n/TranslationContext.js +52 -0
- package/dist/commonjs/i18n/TranslationContext.js.map +1 -0
- package/dist/commonjs/i18n/index.js +85 -0
- package/dist/commonjs/i18n/index.js.map +1 -0
- package/dist/commonjs/i18n/keys.js +2 -0
- package/dist/commonjs/i18n/keys.js.map +1 -0
- package/dist/commonjs/i18n/runtimeDefaults.js +24 -0
- package/dist/commonjs/i18n/runtimeDefaults.js.map +1 -0
- package/dist/commonjs/i18n/types.js +6 -0
- package/dist/commonjs/i18n/types.js.map +1 -0
- package/dist/commonjs/i18n/useStreami18n.js +61 -0
- package/dist/commonjs/i18n/useStreami18n.js.map +1 -0
- package/dist/commonjs/index.js +18 -5
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/modules/encryption/EncryptionManager.js +305 -0
- package/dist/commonjs/modules/encryption/EncryptionManager.js.map +1 -0
- package/dist/commonjs/modules/encryption/eventMapping.js +143 -0
- package/dist/commonjs/modules/encryption/eventMapping.js.map +1 -0
- package/dist/commonjs/modules/encryption/index.js +13 -0
- package/dist/commonjs/modules/encryption/index.js.map +1 -0
- package/dist/commonjs/modules/encryption/parity.js +6 -0
- package/dist/commonjs/modules/encryption/parity.js.map +1 -0
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +6 -2
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +28 -12
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +46 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/callingx.js +29 -4
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/commonjs/utils/internal/iosPipTrack.js +41 -0
- package/dist/commonjs/utils/internal/iosPipTrack.js.map +1 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +6 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/internal/ringingCallLifecycle.js +142 -0
- package/dist/commonjs/utils/internal/ringingCallLifecycle.js.map +1 -0
- package/dist/commonjs/utils/push/internal/utils.js +4 -0
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +80 -9
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -0
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -2
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +4 -3
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +10 -10
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js +2 -2
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js +2 -2
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +3 -2
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +7 -14
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +3 -2
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js +4 -3
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +9 -4
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +4 -3
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +28 -5
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +4 -3
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/i18n/Streami18n.js +73 -0
- package/dist/module/i18n/Streami18n.js.map +1 -0
- package/dist/module/i18n/TranslationContext.js +48 -0
- package/dist/module/i18n/TranslationContext.js.map +1 -0
- package/dist/module/i18n/index.js +20 -0
- package/dist/module/i18n/index.js.map +1 -0
- package/dist/module/i18n/keys.js +2 -0
- package/dist/module/i18n/keys.js.map +1 -0
- package/dist/module/i18n/runtimeDefaults.js +20 -0
- package/dist/module/i18n/runtimeDefaults.js.map +1 -0
- package/dist/module/i18n/types.js +4 -0
- package/dist/module/i18n/types.js.map +1 -0
- package/dist/module/i18n/useStreami18n.js +56 -0
- package/dist/module/i18n/useStreami18n.js.map +1 -0
- package/dist/module/index.js +6 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/modules/encryption/EncryptionManager.js +301 -0
- package/dist/module/modules/encryption/EncryptionManager.js.map +1 -0
- package/dist/module/modules/encryption/eventMapping.js +135 -0
- package/dist/module/modules/encryption/eventMapping.js.map +1 -0
- package/dist/module/modules/encryption/index.js +4 -0
- package/dist/module/modules/encryption/index.js.map +1 -0
- package/dist/module/modules/encryption/parity.js +4 -0
- package/dist/module/modules/encryption/parity.js.map +1 -0
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +6 -2
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +29 -14
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +46 -0
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/callingx/callingx.js +29 -4
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/module/utils/internal/iosPipTrack.js +35 -0
- package/dist/module/utils/internal/iosPipTrack.js.map +1 -0
- package/dist/module/utils/internal/registerSDKGlobals.js +6 -0
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/internal/ringingCallLifecycle.js +134 -0
- package/dist/module/utils/internal/ringingCallLifecycle.js.map +1 -0
- package/dist/module/utils/push/internal/utils.js +4 -0
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts +12 -0
- package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamEnded.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts +11 -0
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.d.ts.map +1 -1
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -1
- package/dist/typescript/i18n/Streami18n.d.ts +61 -0
- package/dist/typescript/i18n/Streami18n.d.ts.map +1 -0
- package/dist/typescript/i18n/TranslationContext.d.ts +31 -0
- package/dist/typescript/i18n/TranslationContext.d.ts.map +1 -0
- package/dist/typescript/i18n/index.d.ts +17 -0
- package/dist/typescript/i18n/index.d.ts.map +1 -0
- package/dist/typescript/i18n/keys.d.ts +38 -0
- package/dist/typescript/i18n/keys.d.ts.map +1 -0
- package/dist/typescript/i18n/runtimeDefaults.d.ts +18 -0
- package/dist/typescript/i18n/runtimeDefaults.d.ts.map +1 -0
- package/dist/typescript/i18n/types.d.ts +46 -0
- package/dist/typescript/i18n/types.d.ts.map +1 -0
- package/dist/typescript/i18n/useStreami18n.d.ts +20 -0
- package/dist/typescript/i18n/useStreami18n.d.ts.map +1 -0
- package/dist/typescript/index.d.ts +2 -1
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/modules/encryption/EncryptionManager.d.ts +190 -0
- package/dist/typescript/modules/encryption/EncryptionManager.d.ts.map +1 -0
- package/dist/typescript/modules/encryption/eventMapping.d.ts +38 -0
- package/dist/typescript/modules/encryption/eventMapping.d.ts.map +1 -0
- package/dist/typescript/modules/encryption/index.d.ts +2 -0
- package/dist/typescript/modules/encryption/index.d.ts.map +1 -0
- package/dist/typescript/modules/encryption/parity.d.ts +55 -0
- package/dist/typescript/modules/encryption/parity.d.ts.map +1 -0
- package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
- package/dist/typescript/providers/StreamVideo.d.ts +17 -4
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +33 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +67 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
- package/dist/typescript/utils/internal/iosPipTrack.d.ts +9 -0
- package/dist/typescript/utils/internal/iosPipTrack.d.ts.map +1 -0
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/internal/ringingCallLifecycle.d.ts +27 -0
- package/dist/typescript/utils/internal/ringingCallLifecycle.d.ts.map +1 -0
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/ios/RTCViewPip.swift +33 -8
- package/ios/RTCViewPipManager.mm +1 -0
- package/package.json +14 -10
- package/src/components/Call/CallContent/CallContent.tsx +1 -1
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +92 -10
- package/src/components/Call/CallContent/RTCViewPipNative.tsx +13 -0
- package/src/components/Call/Lobby/JoinCallButton.tsx +5 -2
- package/src/components/Call/Lobby/Lobby.tsx +6 -3
- package/src/components/Call/Lobby/LobbyFooter.tsx +15 -10
- package/src/components/Call/RingingCallContent/CallLeftIndicator.tsx +2 -2
- package/src/components/Call/RingingCallContent/CallPreparingIndicator.tsx +2 -2
- package/src/components/Call/RingingCallContent/IncomingCall.tsx +2 -2
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +7 -14
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -8
- package/src/components/Livestream/LivestreamPlayer/LivestreamEnded.tsx +11 -3
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +2 -2
- package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +23 -10
- package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +15 -6
- package/src/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx +58 -5
- package/src/components/utility/ScreenShareOverlay.tsx +7 -3
- package/src/i18n/Streami18n.ts +71 -0
- package/src/i18n/TranslationContext.tsx +55 -0
- package/src/i18n/index.ts +22 -0
- package/src/i18n/keys.ts +42 -0
- package/src/i18n/runtimeDefaults.ts +17 -0
- package/src/i18n/types.ts +78 -0
- package/src/i18n/useStreami18n.ts +66 -0
- package/src/index.ts +6 -1
- package/src/modules/call-manager/native-module.d.ts +14 -0
- package/src/modules/encryption/EncryptionManager.ts +360 -0
- package/src/modules/encryption/eventMapping.ts +151 -0
- package/src/modules/encryption/index.ts +1 -0
- package/src/modules/encryption/parity.ts +83 -0
- package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +8 -4
- package/src/providers/StreamVideo.tsx +39 -28
- package/src/utils/StreamVideoRN/index.ts +51 -1
- package/src/utils/StreamVideoRN/types.ts +68 -0
- package/src/utils/internal/callingx/callingx.ts +37 -2
- package/src/utils/internal/iosPipTrack.ts +39 -0
- package/src/utils/internal/registerSDKGlobals.ts +2 -0
- package/src/utils/internal/ringingCallLifecycle.ts +148 -0
- package/src/utils/push/internal/utils.ts +4 -0
- package/src/version.ts +1 -1
- package/dist/commonjs/translations/en.json +0 -32
- package/dist/commonjs/translations/index.js +0 -12
- package/dist/commonjs/translations/index.js.map +0 -1
- package/dist/module/translations/en.json +0 -32
- package/dist/module/translations/index.js +0 -7
- package/dist/module/translations/index.js.map +0 -1
- package/dist/typescript/translations/index.d.ts +0 -35
- package/dist/typescript/translations/index.d.ts.map +0 -1
- package/src/translations/en.json +0 -32
- package/src/translations/index.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","useCallStateHooks","useI18n","React","useState","ActivityIndicator","Pressable","StyleSheet","Text","View","useTheme","EndBroadcastIcon","StartStreamIcon","SfuModels","videoLoggerSystem","jsx","_jsx","jsxs","_jsxs","HostStartStreamButton","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","isAwaitingResponse","setIsAwaitingResponse","useIsCallLive","useIsCallHLSBroadcastingInProgress","theme","colors","variants","iconSizes","typefaces","hostStartStreamButton","call","isCallLive","isCallBroadcasting","t","liveOrBroadcasting","onStartStreamButtonPress","goLive","startHLS","error","logger","getLogger","onEndStreamButtonPress","stopPublish","TrackType","VIDEO","SCREEN_SHARE","stopHLS","stopLive","disabled","style","styles","container","backgroundColor","sheetTertiary","buttonWarning","buttonPrimary","onPress","children","icon","height","xs","width","text","subtitleBold","color","textPrimary","create","flexDirection","alignItems","padding","borderRadius","marginLeft","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/HostStartStreamButton.tsx"],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"names":["useCall","useCallStateHooks","useI18n","React","useState","ActivityIndicator","Pressable","StyleSheet","Text","View","useTheme","EndBroadcastIcon","StartStreamIcon","SfuModels","videoLoggerSystem","jsx","_jsx","jsxs","_jsxs","HostStartStreamButton","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","isAwaitingResponse","setIsAwaitingResponse","useIsCallLive","useIsCallHLSBroadcastingInProgress","theme","colors","variants","iconSizes","typefaces","hostStartStreamButton","call","isCallLive","isCallBroadcasting","t","liveOrBroadcasting","onStartStreamButtonPress","goLive","startHLS","error","logger","getLogger","onEndStreamButtonPress","stopPublish","TrackType","VIDEO","SCREEN_SHARE","stopHLS","stopLive","disabled","style","styles","container","backgroundColor","sheetTertiary","buttonWarning","buttonPrimary","onPress","children","icon","height","xs","width","text","subtitleBold","color","textPrimary","create","flexDirection","alignItems","padding","borderRadius","marginLeft","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/HostStartStreamButton.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,OAAO,QAAQ,eAAe;AACvC,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,iBAAiB,EACjBC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,cAAc;AACrB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,gBAAgB,EAAEC,eAAe,QAAQ,gBAAgB;AAClE,SAASC,SAAS,EAAEC,iBAAiB,QAAQ,yBAAyB;;AAEtE;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAwBA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC,kBAAkB;EAClBC,oBAAoB;EACpBC,GAAG;EACHC;AAC0B,CAAC,KAAK;EAChC,MAAM,CAACC,kBAAkB,EAAEC,qBAAqB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ACPI,IAAA,CAACR,IAAI;MACH6C,KAAK,EAAE,CACLC,MAAM,CAACY,IAAI,EACXlC,SAAS,CAACmC,YAAY,EACtB;QAAEC,KAAK,EAAEvC,MAAM,CAACwC;MAAY,CAAC,EAC7BpC,qBAAqB,CAACiC,IAAI,CAC1B;MAAAL,QAAA,EAEDrC,kBAAkB,GACfa,CAAC,CAAC,qBAAqB,EAAE,YAAY,CAAC,GACtCC,kBAAkB,GAChBD,CAAC,CAAC,+BAA+B,EAAE,iBAAiB,CAAC,GACrDA,CAAC,CAAC,gCAAgC,EAAE,kBAAkB;IAAC,CACzD,CAAC;EAAA,CACE,CAAC;AAEhB,CAAC;AAED,MAAMiB,MAAM,GAAG/C,UAAU,CAAC+D,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE;EAChB,CAAC;EACDZ,IAAI,EAAE,CAAC,CAAC;EACRI,IAAI,EAAE;IACJS,UAAU,EAAE,CAAC;IACbC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
-
import { useCall
|
|
4
|
+
import { useCall } from '@stream-io/video-react-bindings';
|
|
5
|
+
import { useI18n } from '../../../i18n';
|
|
5
6
|
import { useTheme } from '../../../contexts';
|
|
6
7
|
import { FlatList, Linking, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
7
8
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -74,11 +75,11 @@ export const CallEndedView = () => {
|
|
|
74
75
|
style: styles.container,
|
|
75
76
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
76
77
|
style: styles.title,
|
|
77
|
-
children: t('The livestream has ended.')
|
|
78
|
+
children: t('livestreamPlayer.ended.title', 'The livestream has ended.')
|
|
78
79
|
}), showRecordings && /*#__PURE__*/_jsxs(_Fragment, {
|
|
79
80
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
80
81
|
style: styles.subtitle,
|
|
81
|
-
children: t('Watch recordings:')
|
|
82
|
+
children: t('livestreamPlayer.ended.watchRecordings.title', 'Watch recordings:')
|
|
82
83
|
}), /*#__PURE__*/_jsx(View, {
|
|
83
84
|
style: styles.recordingsContainer,
|
|
84
85
|
children: /*#__PURE__*/_jsx(FlatList, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useEffect","useMemo","useState","useCall","useI18n","useTheme","FlatList","Linking","Pressable","StyleSheet","Text","View","jsxs","_jsxs","jsx","_jsx","Fragment","_Fragment","RecordingRow","memo","recording","onPress","buttonStyle","textStyle","handlePress","url","style","children","substring","displayName","CallEndedView","t","call","recordingsResponse","setRecordingsResponse","undefined","styles","useStyles","isCanceled","fetchRecordings","callRecordingsResponse","queryRecordings","error","console","log","openUrl","canOpenURL","then","supported","openURL","keyExtractor","item","session_id","renderItem","recordingButton","recordingText","showRecordings","recordings","length","container","title","subtitle","recordingsContainer","data","theme","create","flex","backgroundColor","colors","sheetPrimary","justifyContent","alignItems","padding","variants","spacingSizes","md","fontSize","fontSizes","lg","marginBottom","color","textPrimary","fontWeight","sm","width","textSecondary"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamPlayer/LivestreamEnded.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACxE,SAASC,OAAO,
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useMemo","useState","useCall","useI18n","useTheme","FlatList","Linking","Pressable","StyleSheet","Text","View","jsxs","_jsxs","jsx","_jsx","Fragment","_Fragment","RecordingRow","memo","recording","onPress","buttonStyle","textStyle","handlePress","url","style","children","substring","displayName","CallEndedView","t","call","recordingsResponse","setRecordingsResponse","undefined","styles","useStyles","isCanceled","fetchRecordings","callRecordingsResponse","queryRecordings","error","console","log","openUrl","canOpenURL","then","supported","openURL","keyExtractor","item","session_id","renderItem","recordingButton","recordingText","showRecordings","recordings","length","container","title","subtitle","recordingsContainer","data","theme","create","flex","backgroundColor","colors","sheetPrimary","justifyContent","alignItems","padding","variants","spacingSizes","md","fontSize","fontSizes","lg","marginBottom","color","textPrimary","fontWeight","sm","width","textSecondary"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamPlayer/LivestreamEnded.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACxE,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,SACEC,QAAQ,EACRC,OAAO,EAEPC,SAAS,EAETC,UAAU,EACVC,IAAI,EAEJC,IAAI,QAEC,cAAc;AAAC,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAWtB,MAAMC,YAAY,gBAAGpB,KAAK,CAACqB,IAAI,CAC7B,CAAC;EAAEC,SAAS;EAAEC,OAAO;EAAEC,WAAW;EAAEC;AAA6B,CAAC,KAAK;EACrE,MAAMC,WAAW,GAAGzB,WAAW,CAC7B,MAAMsB,OAAO,CAACD,SAAS,CAACK,GAAG,CAAC,EAC5B,CAACJ,OAAO,EAAED,SAAS,CAACK,GAAG,CACzB,CAAC;EACD,oBACEV,IAAA,CAACP,SAAS;IAACkB,KAAK,EAAEJ,WAAY;IAACD,OAAO,EAAEG,WAAY;IAAAG,QAAA,eAClDd,KAAA,CAACH,IAAI;MAACgB,KAAK,EAAEH,SAAU;MAAAI,QAAA,GAAEP,SAAS,CAACK,GAAG,CAACG,SAAS,CAAC,CAAC,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E,MAAM;MACbb,UAAU,EAAE;IACd;EACF,CAAC,CAAC,EACJ,CAACP,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import { StyleSheet, Text, View } from 'react-native';
|
|
5
5
|
import { useTheme } from '../../../contexts';
|
|
6
|
-
import { useI18n } from '
|
|
6
|
+
import { useI18n } from '../../../i18n';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Props for the LiveIndicator component.
|
|
@@ -32,7 +32,7 @@ export const LiveIndicator = ({}) => {
|
|
|
32
32
|
style: [styles.label, {
|
|
33
33
|
color: colors.textPrimary
|
|
34
34
|
}, typefaces.subtitleBold, liveIndicator.label],
|
|
35
|
-
children: t('Live')
|
|
35
|
+
children: t('common.live.label', 'Live')
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","StyleSheet","Text","View","useTheme","useI18n","jsx","_jsx","LiveIndicator","styles","useStyles","theme","colors","typefaces","liveIndicator","t","style","container","backgroundColor","buttonPrimary","children","label","color","textPrimary","subtitleBold","create","paddingHorizontal","variants","spacingSizes","sm","paddingVertical","borderTopLeftRadius","borderRadiusSizes","borderBottomLeftRadius","justifyContent","textAlign","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","useMemo","StyleSheet","Text","View","useTheme","useI18n","jsx","_jsx","LiveIndicator","styles","useStyles","theme","colors","typefaces","liveIndicator","t","style","container","backgroundColor","buttonPrimary","children","label","color","textPrimary","subtitleBold","create","paddingHorizontal","variants","spacingSizes","sm","paddingVertical","borderTopLeftRadius","borderRadiusSizes","borderBottomLeftRadius","justifyContent","textAlign","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,eAAe;;AAEvC;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAKA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAAC,CAAqB,CAAC,KAAK;EACvD,MAAMC,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAc;EAC5C,CAAC,GAAGV,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEW;EAAE,CAAC,GAAGV,OAAO,CAAC,CAAC;EACvB,oBACEE,IAAA,CAACJ,IAAI;IACHa,KAAK,EAAE,CACLP,MAAM,CAACQ,SAAS,EAChB;MAAEC,eAAe,EAAEN,MAAM,CAACO;IAAc,CAAC,EACzCL,aAAa,CAACG,SAAS,CACvB;IAAAG,QAAA,eAEFb,IAAA,CAACL,IAAI;MACHc,KAAK,EAAE,CACLP,MAAM,CAACY,KAAK,EACZ;QAAEC,KAAK,EAAEV,MAAM,CAACW;MAAY,CAAC,EAC7BV,SAAS,CAACW,YAAY,EACtBV,aAAa,CAACO,KAAK,CACnB;MAAAD,QAAA,EAEDL,CAAC,CAAC,mBAAmB,EAAE,MAAM;IAAC,CAC3B;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAML,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC5B,OAAOJ,OAAO,CACZ,MACEC,UAAU,CAACwB,MAAM,CAAC;IAChBR,SAAS,EAAE;MACTS,iBAAiB,EAAEf,KAAK,CAACgB,QAAQ,CAACC,YAAY,CAACC,EAAE;MACjDC,eAAe,EAAEnB,KAAK,CAACgB,QAAQ,CAACC,YAAY,CAACC,EAAE;MAC/CE,mBAAmB,EAAEpB,KAAK,CAACgB,QAAQ,CAACK,iBAAiB,CAACH,EAAE;MACxDI,sBAAsB,EAAEtB,KAAK,CAACgB,QAAQ,CAACK,iBAAiB,CAACH,EAAE;MAC3DK,cAAc,EAAE;IAClB,CAAC;IACDb,KAAK,EAAE;MACLc,SAAS,EAAE,QAAQ;MACnBC,kBAAkB,EAAE;IACtB;EACF,CAAC,CAAC,EACJ,CAACzB,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { useCall, useCallStateHooks
|
|
3
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
4
|
+
import { useI18n } from '../../../i18n';
|
|
4
5
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
6
|
import { ActivityIndicator, Button, StyleSheet, Text, View } from 'react-native';
|
|
6
7
|
import { useTheme } from '../../../contexts';
|
|
@@ -87,17 +88,21 @@ export const ViewerLobby = ({
|
|
|
87
88
|
style: styles.container,
|
|
88
89
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
89
90
|
style: styles.text,
|
|
90
|
-
children: isLive ? t('Livestream is still in progress') : startsAt ? t('Livestream will start in:') : t('Livestream will start soon')
|
|
91
|
+
children: isLive ? t('livestreamViewer.stillInProgress.text', 'Livestream is still in progress') : startsAt ? t('livestreamViewer.willStartIn.text', 'Livestream will start in:') : t('livestreamViewer.willStartSoon.text', 'Livestream will start soon')
|
|
91
92
|
}), startsAt && !isLive && /*#__PURE__*/_jsx(Text, {
|
|
92
93
|
style: styles.countdownText,
|
|
93
94
|
children: countdown
|
|
94
95
|
}), !isLive && participants.length > 0 && /*#__PURE__*/_jsx(_Fragment, {
|
|
95
96
|
children: /*#__PURE__*/_jsx(Text, {
|
|
96
97
|
style: styles.participantsText,
|
|
97
|
-
children:
|
|
98
|
+
children: t('livestreamViewer.earlyParticipants.text', {
|
|
99
|
+
count: participants.length,
|
|
100
|
+
defaultValue_one: '{{ count }} participant has joined early',
|
|
101
|
+
defaultValue_other: '{{ count }} participants have joined early'
|
|
102
|
+
})
|
|
98
103
|
})
|
|
99
104
|
}), isLive && /*#__PURE__*/_jsx(Button, {
|
|
100
|
-
title: t('Join Livestream'),
|
|
105
|
+
title: t('livestreamViewer.join.label', 'Join Livestream'),
|
|
101
106
|
onPress: () => call?.join()
|
|
102
107
|
})]
|
|
103
108
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","useCallStateHooks","useI18n","React","useEffect","useMemo","useState","ActivityIndicator","Button","StyleSheet","Text","View","useTheme","CallingState","videoLoggerSystem","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ViewerLobby","isLive","styles","useStyles","theme","t","useCallStartsAt","useParticipants","useCallCallingState","callingState","call","startsAt","error","setError","undefined","countdown","setCountdown","getCountdown","participants","updateCountdown","timeRemaining","Math","max","getTime","Date","now","clearInterval","intervalId","setInterval","getCall","get","err","Error","logger","getLogger","style","container","children","text","isJoiningLiveCall","JOINING","size","color","colors","textPrimary","countdownText","length","participantsText","title","onPress","join","create","flex","justifyContent","alignItems","backgroundColor","sheetPrimary","padding","variants","spacingSizes","lg","fontSize","fontSizes","margin","md","textAlign","xl","fontWeight","marginBottom","textSecondary","sm","minutes","floor","seconds","toString","padStart"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLobby.tsx"],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"names":["useCall","useCallStateHooks","useI18n","React","useEffect","useMemo","useState","ActivityIndicator","Button","StyleSheet","Text","View","useTheme","CallingState","videoLoggerSystem","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ViewerLobby","isLive","styles","useStyles","theme","t","useCallStartsAt","useParticipants","useCallCallingState","callingState","call","startsAt","error","setError","undefined","countdown","setCountdown","getCountdown","participants","updateCountdown","timeRemaining","Math","max","getTime","Date","now","clearInterval","intervalId","setInterval","getCall","get","err","Error","logger","getLogger","style","container","children","text","isJoiningLiveCall","JOINING","size","color","colors","textPrimary","countdownText","length","participantsText","count","defaultValue_one","defaultValue_other","title","onPress","join","create","flex","justifyContent","alignItems","backgroundColor","sheetPrimary","padding","variants","spacingSizes","lg","fontSize","fontSizes","margin","md","textAlign","xl","fontWeight","marginBottom","textSecondary","sm","minutes","floor","seconds","toString","padStart"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLobby.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,OAAO,QAAQ,eAAe;AACvC,OAAOC,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SACEC,iBAAiB,EACjBC,MAAM,EACNC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,cAAc;AACrB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1E,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC;AAAmB,CAAC,KAAK;EACrD,MAAMC,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAM;IAAEC;EAAM,CAAC,GAAGb,QAAQ,CAAC,CAAC;EAC5B,MAAM;IAAEc;EAAE,CAAC,GAAGxB,OAAO,CAAC,CAAC;EACvB,MAAM;IAAEyB,eAAe;IAAEC,eAAe;IAAEC;EAAoB,CAAC,GAC7D5B,iB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import React, { useMemo } from 'react';
|
|
4
4
|
import { Pressable, StyleSheet, Text, View, ActivityIndicator } from 'react-native';
|
|
5
5
|
import { BadNetwork, MicOff, PinVertical, ScreenShareIndicator, VideoSlash } from '../../../icons';
|
|
6
|
-
import { useCall,
|
|
6
|
+
import { useCall, useIsAudioConnecting, useIsVideoConnecting } from '@stream-io/video-react-bindings';
|
|
7
|
+
import { useI18n } from '../../../i18n';
|
|
7
8
|
import { ComponentTestIds } from '../../../constants/TestIds';
|
|
8
9
|
import { Z_INDEX } from '../../../constants';
|
|
9
10
|
import { hasAudio, hasPausedTrack, hasVideo } from '@stream-io/video-client';
|
|
@@ -51,14 +52,14 @@ export const ParticipantLabel = ({
|
|
|
51
52
|
t
|
|
52
53
|
} = useI18n();
|
|
53
54
|
const participantName = name ?? userId;
|
|
54
|
-
const participantLabel = isLocalParticipant ? t('You') : participantName;
|
|
55
|
+
const participantLabel = isLocalParticipant ? t('common.you.label', 'You') : participantName;
|
|
55
56
|
const isAudioMuted = !hasAudio(participant);
|
|
56
57
|
const isVideoMuted = !hasVideo(participant);
|
|
57
58
|
const isTrackPaused = trackType && hasPausedTrack(participant, trackType);
|
|
58
59
|
const isAudioConnecting = useIsAudioConnecting(participant);
|
|
59
60
|
const isVideoConnecting = useIsVideoConnecting(participant);
|
|
60
61
|
if (trackType === 'screenShareTrack') {
|
|
61
|
-
const screenShareText = isLocalParticipant ? t('You are sharing your screen') : t('{{ userName }} is sharing their screen', {
|
|
62
|
+
const screenShareText = isLocalParticipant ? t('participantView.screenShare.byYou.text', 'You are sharing your screen') : t('participantView.screenShare.byUser.text', '{{ userName }} is sharing their screen', {
|
|
62
63
|
userName: participantName
|
|
63
64
|
});
|
|
64
65
|
return /*#__PURE__*/_jsxs(View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","Pressable","StyleSheet","Text","View","ActivityIndicator","BadNetwork","MicOff","PinVertical","ScreenShareIndicator","VideoSlash","useCall","
|
|
1
|
+
{"version":3,"names":["React","useMemo","Pressable","StyleSheet","Text","View","ActivityIndicator","BadNetwork","MicOff","PinVertical","ScreenShareIndicator","VideoSlash","useCall","useIsAudioConnecting","useIsVideoConnecting","useI18n","ComponentTestIds","Z_INDEX","hasAudio","hasPausedTrack","hasVideo","useTheme","SpeechIndicator","jsx","_jsx","jsxs","_jsxs","ParticipantLabel","participant","trackType","theme","colors","typefaces","variants","iconSizes","participantLabel","container","userNameLabel","audioMutedIconContainer","videoMutedIconContainer","pinIconContainer","screenShareIconContainer","styles","useStyles","name","userId","pin","sessionId","isLocalParticipant","call","t","participantName","isAudioMuted","isVideoMuted","isTrackPaused","isAudioConnecting","isVideoConnecting","screenShareText","userName","style","backgroundColor","sheetOverlay","testID","PARTICIPANT_SCREEN_SHARING","children","height","md","width","color","iconPrimary","textPrimary","caption","numberOfLines","wrapper","size","connectingIndicator","sm","trackPausedIconContainer","onPress","isLocalPin","unpin","undefined","indicatorWrapper","isSpeaking","isDominantSpeaker","create","marginLeft","spacingSizes","flexDirection","alignItems","padding","maxHeight","borderTopRightRadius","marginBottom","flexShrink","zIndex","IN_FRONT","marginTop","fontSize","fontWeight","marginRight","justifyContent","xs"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantLabel.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SACEC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,iBAAiB,QACZ,cAAc;AACrB,SACEC,UAAU,EACVC,MAAM,EACNC,WAAW,EACXC,oBAAoB,EACpBC,UAAU,QACL,gBAAgB;AACvB,SACEC,OAAO,EACPC,oBAAoB,EACpBC,oBAAoB,QACf,iCAAiC;AACxC,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,QAAQ,EAAEC,cAAc,EAAEC,QAAQ,QAAQ,y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,EAAE;MACnByB,WAAW,EAAEtE,KAAK,CAACG,QAAQ,CAACsD,YAAY,CAACX,EAAE;MAC3CyB,cAAc,EAAE;IAClB,CAAC;IACD5D,wBAAwB,EAAE;MACxB2D,WAAW,EAAEtE,KAAK,CAACG,QAAQ,CAACsD,YAAY,CAACX,EAAE;MAC3CyB,cAAc,EAAE;IAClB,CAAC;IACD/D,uBAAuB,EAAE;MACvBgD,UAAU,EAAExD,KAAK,CAACG,QAAQ,CAACsD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB,CAAC;IACD9D,uBAAuB,EAAE;MACvB+C,UAAU,EAAExD,KAAK,CAACG,QAAQ,CAACsD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB,CAAC;IACDxB,wBAAwB,EAAE;MACxBS,UAAU,EAAExD,KAAK,CAACG,QAAQ,CAACsD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB,CAAC;IACD7D,gBAAgB,EAAE;MAChB8C,UAAU,EAAExD,KAAK,CAACG,QAAQ,CAACsD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB;EACF,CAAC,CAAC,EACJ,CAACvE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
|
+
import { Platform } from 'react-native';
|
|
4
5
|
import { CallingState, DebounceType, hasScreenShare, hasVideo } from '@stream-io/video-client';
|
|
5
|
-
import { combineLatest, distinctUntilChanged, distinctUntilKeyChanged, filter, map } from 'rxjs';
|
|
6
|
+
import { combineLatest, distinctUntilChanged, distinctUntilKeyChanged, filter, map, of } from 'rxjs';
|
|
7
|
+
import { getIosPipTrack$, setIosPipTrack } from '../../../../utils/internal/iosPipTrack';
|
|
6
8
|
/**
|
|
7
9
|
* This component is used to subscribe to the video + audio track of the participant in the following cases:
|
|
8
10
|
* 1. When the participant starts publishing the video track
|
|
@@ -13,6 +15,10 @@ import { combineLatest, distinctUntilChanged, distinctUntilKeyChanged, filter, m
|
|
|
13
15
|
* This component is used to unsubscribe to video track and subscribe only to the audio track of the participant (by passing undefined dimensions) in the following cases:
|
|
14
16
|
* 1. When the participant stops publishing the video track
|
|
15
17
|
* 2. When the participant becomes invisible
|
|
18
|
+
*
|
|
19
|
+
* The same component serves the native iOS Picture in Picture window, which
|
|
20
|
+
* renders one of the tracks too. Its bounds take precedence over the inline
|
|
21
|
+
* views of that track for as long as it is on screen.
|
|
16
22
|
*/
|
|
17
23
|
const TrackSubscriber = props => {
|
|
18
24
|
const {
|
|
@@ -20,7 +26,8 @@ const TrackSubscriber = props => {
|
|
|
20
26
|
participantSessionId,
|
|
21
27
|
trackType,
|
|
22
28
|
isVisible,
|
|
23
|
-
dimensions
|
|
29
|
+
dimensions$,
|
|
30
|
+
isPipWriter
|
|
24
31
|
} = props;
|
|
25
32
|
useEffect(() => {
|
|
26
33
|
const requestTrackWithDimensions = (debounceType, dimension) => {
|
|
@@ -40,8 +47,18 @@ const TrackSubscriber = props => {
|
|
|
40
47
|
};
|
|
41
48
|
const isPublishingTrack$ = call.state.participants$.pipe(map(ps => ps.find(p => p.sessionId === participantSessionId)), filter(p => !!p), distinctUntilKeyChanged('publishedTracks'), map(p => trackType === 'videoTrack' ? hasVideo(p) : hasScreenShare(p)), distinctUntilChanged());
|
|
42
49
|
const isJoinedState$ = call.state.callingState$.pipe(map(callingState => callingState === CallingState.JOINED));
|
|
43
|
-
const
|
|
44
|
-
|
|
50
|
+
const trackKey = {
|
|
51
|
+
sessionId: participantSessionId,
|
|
52
|
+
trackType
|
|
53
|
+
};
|
|
54
|
+
const pipTrack$ = Platform.OS === 'ios' ? getIosPipTrack$(call) : undefined;
|
|
55
|
+
if (isPipWriter && pipTrack$) setIosPipTrack(call, trackKey);
|
|
56
|
+
const canWrite$ = pipTrack$ ? pipTrack$.pipe(map(track => {
|
|
57
|
+
const sameTrack = track?.sessionId === participantSessionId && track?.trackType === trackType;
|
|
58
|
+
return isPipWriter ? sameTrack : !sameTrack;
|
|
59
|
+
}), distinctUntilChanged()) : of(true);
|
|
60
|
+
const subscription = combineLatest([dimensions$, isPublishingTrack$, isJoinedState$, canWrite$]).subscribe(([dimension, isPublishing, isJoined, canWrite]) => {
|
|
61
|
+
if (isJoined && canWrite) {
|
|
45
62
|
if (!isVisible || !isPublishing) {
|
|
46
63
|
requestTrackWithDimensions(DebounceType.MEDIUM, undefined);
|
|
47
64
|
} else if (dimension) {
|
|
@@ -51,8 +68,14 @@ const TrackSubscriber = props => {
|
|
|
51
68
|
});
|
|
52
69
|
return () => {
|
|
53
70
|
subscription.unsubscribe();
|
|
71
|
+
if (isPipWriter && pipTrack$) {
|
|
72
|
+
// Let sibling inline views finish unmounting before handing back demand.
|
|
73
|
+
queueMicrotask(() => {
|
|
74
|
+
if (pipTrack$.getValue() === trackKey) setIosPipTrack(call, undefined);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
54
77
|
};
|
|
55
|
-
}, [call, participantSessionId, trackType, isVisible, dimensions
|
|
78
|
+
}, [call, participantSessionId, trackType, isVisible, dimensions$, isPipWriter]);
|
|
56
79
|
return null;
|
|
57
80
|
};
|
|
58
81
|
TrackSubscriber.displayName = 'TrackSubscriber';
|
package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","CallingState","DebounceType","hasScreenShare","hasVideo","combineLatest","distinctUntilChanged","distinctUntilKeyChanged","filter","map","TrackSubscriber","props","call","participantSessionId","trackType","isVisible","dimensions$","requestTrackWithDimensions","debounceType","dimension","width","height","undefined","state","updateParticipantTracks","trackSubscriptionManager","apply","isPublishingTrack$","participants$","pipe","ps","find","p","sessionId","isJoinedState$","callingState$","callingState","JOINED","subscription","subscribe","isPublishing","isJoined","MEDIUM","IMMEDIATE","unsubscribe","displayName"],"sourceRoot":"../../../../../../src","sources":["components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAEEC,YAAY,EACZC,YAAY,EACZC,cAAc,EACdC,QAAQ,QAIH,yBAAyB;AAChC,SAEEC,aAAa,EACbC,oBAAoB,EACpBC,uBAAuB,EACvBC,MAAM,EACNC,GAAG,
|
|
1
|
+
{"version":3,"names":["useEffect","Platform","CallingState","DebounceType","hasScreenShare","hasVideo","combineLatest","distinctUntilChanged","distinctUntilKeyChanged","filter","map","of","getIosPipTrack$","setIosPipTrack","TrackSubscriber","props","call","participantSessionId","trackType","isVisible","dimensions$","isPipWriter","requestTrackWithDimensions","debounceType","dimension","width","height","undefined","state","updateParticipantTracks","trackSubscriptionManager","apply","isPublishingTrack$","participants$","pipe","ps","find","p","sessionId","isJoinedState$","callingState$","callingState","JOINED","trackKey","pipTrack$","OS","canWrite$","track","sameTrack","subscription","subscribe","isPublishing","isJoined","canWrite","MEDIUM","IMMEDIATE","unsubscribe","queueMicrotask","getValue","displayName"],"sourceRoot":"../../../../../../src","sources":["components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAEEC,YAAY,EACZC,YAAY,EACZC,cAAc,EACdC,QAAQ,QAIH,yBAAyB;AAChC,SAEEC,aAAa,EACbC,oBAAoB,EACpBC,uBAAuB,EACvBC,MAAM,EACNC,GAAG,EACHC,EAAE,QACG,MAAM;AACb,SACEC,eAAe,EACfC,cAAc,QACT,wCAAwC;AAqB/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,eAAe,GAAIC,KAA2B,IAAK;EACvD,MAAM;IACJC,IAAI;IACJC,oBAAoB;IACpBC,SAAS;IACTC,SAAS;IACTC,WAAW;IACXC;EACF,CAAC,GAAGN,KAAK;EA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,WAAW,CACZ,CAAC;EAEF,OAAO,IAAI;AACb,CAAC;AAEDP,eAAe,CAAC6C,WAAW,GAAG,iBAAiB;AAE/C,eAAe7C,eAAe","ignoreList":[]}
|
|
@@ -4,7 +4,8 @@ import React from 'react';
|
|
|
4
4
|
import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
5
5
|
import { StopScreenShare } from '../../icons';
|
|
6
6
|
import { useTheme } from '../../contexts';
|
|
7
|
-
import { useCall
|
|
7
|
+
import { useCall } from '@stream-io/video-react-bindings';
|
|
8
|
+
import { useI18n } from '../../i18n';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Props for the ScreenShareOverlay component
|
|
@@ -40,7 +41,7 @@ export const ScreenShareOverlay = ({}) => {
|
|
|
40
41
|
style: [styles.text, typefaces.subtitleBold, {
|
|
41
42
|
color: colors.textPrimary
|
|
42
43
|
}, screenshareOverlay.text],
|
|
43
|
-
children: t('You are sharing your screen with everyone')
|
|
44
|
+
children: t('screenShare.sharingWithEveryone.text', 'You are sharing your screen with everyone')
|
|
44
45
|
}), /*#__PURE__*/_jsxs(Pressable, {
|
|
45
46
|
onPress: onStopScreenshareHandler,
|
|
46
47
|
style: ({
|
|
@@ -64,7 +65,7 @@ export const ScreenShareOverlay = ({}) => {
|
|
|
64
65
|
style: [styles.buttonText, {
|
|
65
66
|
color: colors.textPrimary
|
|
66
67
|
}, screenshareOverlay.buttonText],
|
|
67
|
-
children: t('Stop Screen Sharing')
|
|
68
|
+
children: t('participantView.screenShare.stop.label', 'Stop Screen Sharing')
|
|
68
69
|
})]
|
|
69
70
|
})]
|
|
70
71
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Pressable","StyleSheet","Text","View","StopScreenShare","useTheme","useCall","useI18n","jsx","_jsx","jsxs","_jsxs","ScreenShareOverlay","call","t","theme","colors","typefaces","variants","iconSizes","screenshareOverlay","onStopScreenshareHandler","screenShare","disable","style","styles","container","backgroundColor","sheetTertiary","children","text","subtitleBold","color","textPrimary","onPress","pressed","button","sheetSecondary","opacity","buttonIcon","height","xs","width","size","iconPrimary","buttonText","create","flex","alignItems","justifyContent","marginTop","padding","borderRadius","flexDirection","marginLeft","includeFontPadding"],"sourceRoot":"../../../../src","sources":["components/utility/ScreenShareOverlay.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,OAAO,
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","Text","View","StopScreenShare","useTheme","useCall","useI18n","jsx","_jsx","jsxs","_jsxs","ScreenShareOverlay","call","t","theme","colors","typefaces","variants","iconSizes","screenshareOverlay","onStopScreenshareHandler","screenShare","disable","style","styles","container","backgroundColor","sheetTertiary","children","text","subtitleBold","color","textPrimary","onPress","pressed","button","sheetSecondary","opacity","buttonIcon","height","xs","width","size","iconPrimary","buttonText","create","flex","alignItems","justifyContent","marginTop","padding","borderRadius","flexDirection","marginLeft","includeFontPadding"],"sourceRoot":"../../../../src","sources":["components/utility/ScreenShareOverlay.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,OAAO,QAAQ,YAAY;;AAEpC;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAGA,CAAC,CAA0B,CAAC,KAAK;EACjE,MAAMC,IAAI,GAAGP,OAAO,CAAC,CAAC;EACtB,MAA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B,UAAU,CAC7B;QAAAV,QAAA,eAEFpB,IAAA,CAACL,eAAe;UAACuC,IAAI,EAAExB,SAAS,CAACsB,EAAG;UAACT,KAAK,EAAEhB,MAAM,CAAC4B;QAAY,CAAE;MAAC,CAC9D,CAAC,eACPnC,IAAA,CAACP,IAAI;QACHsB,KAAK,EAAE,CACLC,MAAM,CAACoB,UAAU,EACjB;UAAEb,KAAK,EAAEhB,MAAM,CAACiB;QAAY,CAAC,EAC7Bb,kBAAkB,CAACyB,UAAU,CAC7B;QAAAhB,QAAA,EAEDf,CAAC,CAAC,wCAAwC,EAAE,qBAAqB;MAAC,CAC/D,CAAC;IAAA,CACE,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAGxB,UAAU,CAAC6C,MAAM,CAAC;EAC/BpB,SAAS,EAAE;IACTqB,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDnB,IAAI,EAAE,CAAC,CAAC;EACRM,MAAM,EAAE;IACNc,SAAS,EAAE,EAAE;IACbC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE,CAAC;IACfC,aAAa,EAAE,KAAK;IACpBJ,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE;EACd,CAAC;EACDT,UAAU,EAAE,CAAC,CAAC;EACdM,UAAU,EAAE;IACVS,UAAU,EAAE,CAAC;IACbC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Streami18n as CoreStreami18n } from '@stream-io/i18n';
|
|
4
|
+
import { runtimeDefaults } from './runtimeDefaults';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Options for {@link Streami18n}.
|
|
8
|
+
*
|
|
9
|
+
* Core's options, narrowed to this SDK's catalog so `translationsForLanguage` is key-checked.
|
|
10
|
+
* `runtimeDefaults` is *merged* over the SDK's own rather than replacing it, so supplying it adds to
|
|
11
|
+
* what the SDK ships.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Wrapper around [i18next](https://www.i18next.com/) for this SDK's translations. Pass an instance
|
|
16
|
+
* to `<StreamVideo i18nInstance={…}>` to control the language and the copy.
|
|
17
|
+
*
|
|
18
|
+
* The implementation lives in `@stream-io/i18n`, shared with the web SDK and with Chat. This
|
|
19
|
+
* subclass exists even though {@link runtimeDefaults} is currently empty: its job is to bind the
|
|
20
|
+
* two type parameters, so `new Streami18n()` and its `t` are checked against *this* package's
|
|
21
|
+
* catalog rather than against core's `Record<string, string>` fallback, which would accept any key.
|
|
22
|
+
*
|
|
23
|
+
* ## Overriding some of the English copy
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* const i18n = new Streami18n({
|
|
27
|
+
* translationsForLanguage: {
|
|
28
|
+
* 'common.you.label': 'Jij',
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Adding a language
|
|
34
|
+
*
|
|
35
|
+
* ```ts
|
|
36
|
+
* import 'dayjs/locale/nl';
|
|
37
|
+
*
|
|
38
|
+
* const i18n = new Streami18n({ language: 'nl' });
|
|
39
|
+
* i18n.registerTranslation('nl', {
|
|
40
|
+
* 'common.join.label': 'Deelnemen',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* No dayjs locale file defines `calendar` — that field belongs to the calendar plugin — so a
|
|
45
|
+
* language whose relative dates must read natively needs the locale import *and* a `calendar`
|
|
46
|
+
* config passed as the third argument.
|
|
47
|
+
*
|
|
48
|
+
* Type your dictionary as `TranslationDictionary` to turn a typo or a key removed in a later major
|
|
49
|
+
* into a compile error. A **partial dictionary is safe**: any key you leave out renders the English
|
|
50
|
+
* copy that ships inline at each call site, never a raw dotted path — so there is no need to
|
|
51
|
+
* translate everything before shipping a language.
|
|
52
|
+
*
|
|
53
|
+
* Hermes ships a partial ICU, so `Intl.PluralRules` has no data for most locales and every count
|
|
54
|
+
* would select the `_other` form. Import `intl-pluralrules` before anything else in your entry
|
|
55
|
+
* file; core warns when it is missing.
|
|
56
|
+
*
|
|
57
|
+
* Reactivity goes through `i18n.state`, a `StateStore`. `setLanguage()` returns nothing — the new
|
|
58
|
+
* `t` is published to that store, which the provider subscribes to.
|
|
59
|
+
*/
|
|
60
|
+
export class Streami18n extends CoreStreami18n {
|
|
61
|
+
constructor(options = {}) {
|
|
62
|
+
super({
|
|
63
|
+
...options,
|
|
64
|
+
// Merged, not replaced. Spreading `options` over a literal would let an integrator supplying
|
|
65
|
+
// one entry silently drop the SDK's own bundled data, which then renders as raw keys.
|
|
66
|
+
runtimeDefaults: {
|
|
67
|
+
...runtimeDefaults,
|
|
68
|
+
...options.runtimeDefaults
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=Streami18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Streami18n","CoreStreami18n","runtimeDefaults","constructor","options"],"sourceRoot":"../../../src","sources":["i18n/Streami18n.ts"],"mappings":";;AAAA,SAASA,UAAU,IAAIC,cAAc,QAAQ,iBAAiB;AAG9D,SAASC,eAAe,QAAQ,mBAAmB;;AAGnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMF,UAAU,SAASC,cAAc,CAAiC;EAC7EE,WAAWA,CAACC,OAA0B,GAAG,CAAC,CAAC,EAAE;IAC3C,KAAK,CAAC;MACJ,GAAGA,OAAO;MACV;MACA;MACAF,eAAe,EAAE;QAAE,GAAGA,eAAe;QAAE,GAAGE,OAAO,CAACF;MAAgB;IACpE,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createDefaultTranslatorFunction, defaultDateTimeParser } from '@stream-io/i18n';
|
|
4
|
+
import { createTranslationContext } from '@stream-io/i18n/react';
|
|
5
|
+
/**
|
|
6
|
+
* The `t` in force before i18next has initialized, and the context's default.
|
|
7
|
+
*
|
|
8
|
+
* Core's factory, instantiated against this SDK's catalog so it is typed exactly like the real `t`.
|
|
9
|
+
* It honours the inline `defaultValue` each prose call site passes, which is what stops raw dotted
|
|
10
|
+
* keys flashing on the first frame.
|
|
11
|
+
*/
|
|
12
|
+
const defaultTranslatorFunction = createDefaultTranslatorFunction();
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Built from the shared factory in `@stream-io/i18n/react`.
|
|
16
|
+
*
|
|
17
|
+
* A **default value** is supplied rather than making the hook throw, and that is deliberate: it
|
|
18
|
+
* matches what `useI18n` did before this module existed, so a component rendered outside the
|
|
19
|
+
* provider keeps showing correct English instead of crashing. Chat's React Native SDK throws
|
|
20
|
+
* instead; hence core exposes this as a factory rather than one exported context.
|
|
21
|
+
*/
|
|
22
|
+
const {
|
|
23
|
+
TranslationContext,
|
|
24
|
+
TranslationProvider,
|
|
25
|
+
useTranslationContext
|
|
26
|
+
} = createTranslationContext({
|
|
27
|
+
defaultValue: {
|
|
28
|
+
t: defaultTranslatorFunction,
|
|
29
|
+
tDateTimeParser: defaultDateTimeParser
|
|
30
|
+
},
|
|
31
|
+
displayName: 'StreamVideoTranslationContext'
|
|
32
|
+
});
|
|
33
|
+
export { TranslationContext, TranslationProvider };
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Reads `t` and `tDateTimeParser` from the closest provider.
|
|
37
|
+
*
|
|
38
|
+
* Works outside a provider too — the default translator renders each call site's inline English.
|
|
39
|
+
*
|
|
40
|
+
* The name is `useI18n` rather than core's `useTranslationContext` because ~500 call sites across
|
|
41
|
+
* the video SDKs already import it; renaming them is churn with no payoff.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* const { t } = useI18n();
|
|
45
|
+
* const label = t('common.join.label', 'Join');
|
|
46
|
+
*/
|
|
47
|
+
export const useI18n = useTranslationContext;
|
|
48
|
+
//# sourceMappingURL=TranslationContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createDefaultTranslatorFunction","defaultDateTimeParser","createTranslationContext","defaultTranslatorFunction","TranslationContext","TranslationProvider","useTranslationContext","defaultValue","t","tDateTimeParser","displayName","useI18n"],"sourceRoot":"../../../src","sources":["i18n/TranslationContext.tsx"],"mappings":";;AAAA,SACEA,+BAA+B,EAC/BC,qBAAqB,QAChB,iBAAiB;AACxB,SAASC,wBAAwB,QAAQ,uBAAuB;AAShE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,yBAAyB,GAC7BH,+BAA+B,CAAC,CAAoB;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;EAAEI,kBAAkB;EAAEC,mBAAmB;EAAEC;AAAsB,CAAC,GACtEJ,wBAAwB,CAA0B;EAChDK,YAAY,EAAE;IACZC,CAAC,EAAEL,yBAAyB;IAC5BM,eAAe,EAAER;EACnB,CAAC;EACDS,WAAW,EAAE;AACf,CAAC,CAAC;AAEJ,SAASN,kBAAkB,EAAEC,mBAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,OAAO,GAAGL,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export * from './Streami18n';
|
|
4
|
+
export * from './TranslationContext';
|
|
5
|
+
export * from './types';
|
|
6
|
+
export * from './useStreami18n';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Core helpers re-exported so an integrator never needs a direct dependency on `@stream-io/i18n`:
|
|
10
|
+
* that package is an implementation detail of this SDK, and a second copy resolved from their
|
|
11
|
+
* `node_modules` would register dayjs plugins on the wrong module.
|
|
12
|
+
*
|
|
13
|
+
* - `asDynamicKey` — brands a runtime-resolved string as a translation key, the one sanctioned way
|
|
14
|
+
* past the compile-time key check.
|
|
15
|
+
* - `getDateString` — the timestamp renderer, for a custom component formatting dates itself.
|
|
16
|
+
* - `predefinedFormatters` — the built-in i18next formatters, to spread over when adding one.
|
|
17
|
+
* - `defaultDateTimeParser` — the dayjs-backed parser, with the required plugins already applied.
|
|
18
|
+
*/
|
|
19
|
+
export { asDynamicKey, defaultDateTimeParser, getDateString, predefinedFormatters } from '@stream-io/i18n';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["asDynamicKey","defaultDateTimeParser","getDateString","predefinedFormatters"],"sourceRoot":"../../../src","sources":["i18n/index.ts"],"mappings":";;AAAA,cAAc,cAAc;AAC5B,cAAc,sBAAsB;AACpC,cAAc,SAAS;AACvB,cAAc,iBAAiB;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SACEA,YAAY,EACZC,qBAAqB,EACrBC,aAAa,EACbC,oBAAoB,QACf,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["i18n/keys.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The SDK's bundled translation data: the keys that cannot carry an inline `defaultValue` at their
|
|
5
|
+
* call site. `Streami18n` layers it under *every* language, so a partial dictionary never knocks
|
|
6
|
+
* these out.
|
|
7
|
+
*
|
|
8
|
+
* Empty, and that is the intended steady state. The four lookups this SDK resolved from a runtime
|
|
9
|
+
* value — the only candidates for an entry here — are written as `switch` statements over literal
|
|
10
|
+
* `t()` calls instead, so every branch carries its own English copy inline and the codegen reads it
|
|
11
|
+
* straight off the call site. Nothing is left without a default. `timestamp.*` / `duration.*`
|
|
12
|
+
* formatter expressions would also live here; this SDK has none yet.
|
|
13
|
+
*
|
|
14
|
+
* Adding an entry later needs no wiring. `Streami18n` already spreads this into the core options and
|
|
15
|
+
* `scripts/generate-i18n-keys.mts` already reads this path, so a new key reaches `keys.ts` on the
|
|
16
|
+
* next `build-translations` run — where a key nothing references, or one that shadows an inline
|
|
17
|
+
* default, fails a codegen guard.
|
|
18
|
+
*/
|
|
19
|
+
export const runtimeDefaults = {};
|
|
20
|
+
//# sourceMappingURL=runtimeDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["runtimeDefaults"],"sourceRoot":"../../../src","sources":["i18n/runtimeDefaults.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,eAAe,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["i18n/types.ts"],"mappings":"","ignoreList":[]}
|