@stream-io/video-react-native-sdk 0.6.2 → 0.6.3
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 +7 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +3 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/{ScreenShareButton.js → ScreenShareToggleButton.js} +44 -43
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/index.js +4 -4
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -2
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +59 -6
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +7 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +13 -9
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +126 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +4 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js +44 -11
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +45 -6
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +4 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +4 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js +11 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +24 -23
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +4 -3
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +33 -9
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +92 -0
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -0
- package/dist/commonjs/components/utility/index.js +11 -0
- package/dist/commonjs/components/utility/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +5 -3
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +26 -0
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -0
- package/dist/commonjs/icons/index.js +11 -0
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js +13 -4
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/translations/en.json +2 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js +2 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +6 -4
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js +6 -4
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +3 -0
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallControls/{ScreenShareButton.js → ScreenShareToggleButton.js} +41 -40
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/index.js +1 -1
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -2
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +60 -7
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +7 -3
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +13 -9
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +117 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +4 -2
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js +4 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +43 -5
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +4 -2
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +4 -2
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/index.js +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +24 -24
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +4 -3
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +33 -9
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +85 -0
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -0
- package/dist/module/components/utility/index.js +1 -0
- package/dist/module/components/utility/index.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +5 -3
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js +16 -0
- package/dist/module/icons/StopScreenShare.js.map +1 -0
- package/dist/module/icons/index.js +1 -0
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/theme/theme.js +13 -4
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/translations/en.json +2 -0
- package/dist/module/utils/StreamVideoRN/index.js +2 -1
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/push/android.js +6 -4
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/ios.js +6 -4
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +6 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/{ScreenShareButton.d.ts → ScreenShareToggleButton.d.ts} +3 -3
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts +1 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +2 -2
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts +16 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts +7 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts +7 -3
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts +7 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts +3 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts +4 -1
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts +6 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts +3 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts +3 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +8 -3
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -1
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts +10 -0
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -0
- package/dist/typescript/components/utility/index.d.ts +1 -0
- package/dist/typescript/components/utility/index.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/icons/StopScreenShare.d.ts +8 -0
- package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -0
- package/dist/typescript/icons/index.d.ts +1 -0
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/theme/theme.d.ts +12 -3
- package/dist/typescript/theme/theme.d.ts.map +1 -1
- package/dist/typescript/translations/index.d.ts +2 -0
- package/dist/typescript/translations/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts +2 -2
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Call/CallContent/CallContent.tsx +10 -0
- package/src/components/Call/CallControls/{ScreenShareButton.tsx → ScreenShareToggleButton.tsx} +59 -41
- package/src/components/Call/CallControls/index.tsx +1 -1
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +32 -24
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +92 -6
- package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +10 -1
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +18 -10
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +161 -0
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +4 -1
- package/src/components/Livestream/LivestreamControls/index.ts +4 -1
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +66 -6
- package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +4 -1
- package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +4 -1
- package/src/components/Livestream/LivestreamTopView/index.ts +1 -0
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +39 -38
- package/src/components/Participant/FloatingParticipantView/index.tsx +15 -5
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +54 -8
- package/src/components/utility/ScreenShareOverlay.tsx +106 -0
- package/src/components/utility/index.ts +1 -0
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +5 -3
- package/src/icons/StopScreenShare.tsx +22 -0
- package/src/icons/index.tsx +1 -0
- package/src/theme/theme.ts +24 -6
- package/src/translations/en.json +2 -0
- package/src/utils/StreamVideoRN/index.ts +4 -1
- package/src/utils/internal/pushLogoutCallback.ts +2 -2
- package/src/utils/push/android.ts +6 -4
- package/src/utils/push/ios.ts +6 -4
- package/src/version.ts +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js.map +0 -1
- package/dist/module/components/Call/CallControls/ScreenShareButton.js.map +0 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareButton.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","useTheme","Z_INDEX","ViewerLivestreamTopView","theme","colors","viewerLivestreamTopView","createElement","style","styles","container","backgroundColor","static_overlay","leftElement","liveInfo","centerElement","mode","rightElement","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","IN_FRONT","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","useTheme","Z_INDEX","ViewerLivestreamTopView","onLayout","theme","colors","viewerLivestreamTopView","createElement","style","styles","container","backgroundColor","static_overlay","leftElement","liveInfo","centerElement","mode","rightElement","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","IN_FRONT","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;;AAiBA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGA,CAAC;EACtCR,aAAa,GAAGC,oBAAoB;EACpCC,aAAa,GAAGC,oBAAoB;EACpCC,aAAa,GAAGC,oBAAoB;E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E,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,CAAC;IACpBC,qBAAqB,EAAE,CAAC;IACxBC,uBAAuB,EAAE,CAAC;IAC1BC,MAAM,EAAE1B,OAAO,CAAC2B;EAClB,CAAC;EACDd,QAAQ,EAAE;IACRO,aAAa,EAAE;EACjB,CAAC;EACDR,WAAW,EAAE;IACXgB,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd,CAAC;EACDP,aAAa,EAAE;IACbc,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE,QAAQ;IACpBQ,QAAQ,EAAE;EACZ,CAAC;EACDb,YAAY,EAAE;IACZY,IAAI,EAAE,CAAC;IACPP,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/index.ts"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,yBAAyB"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/index.ts"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,yBAAyB;AACvC,cAAc,2BAA2B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { StyleSheet,
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import InCallManager from 'react-native-incall-manager';
|
|
4
4
|
import { useTheme } from '../../../contexts';
|
|
5
5
|
import { ViewerLivestreamTopView as DefaultViewerLivestreamTopView } from '../LivestreamTopView/ViewerLivestreamTopView';
|
|
@@ -7,7 +7,8 @@ import { ViewerLivestreamControls as DefaultViewerLivestreamControls } from '../
|
|
|
7
7
|
import { LivestreamLayout as DefaultLivestreamLayout } from '../LivestreamLayout';
|
|
8
8
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
9
9
|
import { FloatingParticipantView as DefaultFloatingParticipantView } from '../../Participant';
|
|
10
|
-
import {
|
|
10
|
+
import { SfuModels } from '@stream-io/video-client';
|
|
11
|
+
const hasVideoTrack = p => p === null || p === void 0 ? void 0 : p.publishedTracks.includes(SfuModels.TrackType.VIDEO);
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Props for the ViewerLivestream component.
|
|
@@ -29,7 +30,6 @@ export const ViewerLivestream = ({
|
|
|
29
30
|
}) => {
|
|
30
31
|
const {
|
|
31
32
|
theme: {
|
|
32
|
-
colors,
|
|
33
33
|
viewerLivestream
|
|
34
34
|
}
|
|
35
35
|
} = useTheme();
|
|
@@ -39,6 +39,9 @@ export const ViewerLivestream = ({
|
|
|
39
39
|
} = useCallStateHooks();
|
|
40
40
|
const hasOngoingScreenShare = useHasOngoingScreenShare();
|
|
41
41
|
const [currentSpeaker] = useParticipants();
|
|
42
|
+
const floatingParticipant = hasOngoingScreenShare && hasVideoTrack(currentSpeaker) && currentSpeaker;
|
|
43
|
+
const [topViewHeight, setTopViewHeight] = React.useState();
|
|
44
|
+
const [controlsHeight, setControlsHeight] = React.useState();
|
|
42
45
|
|
|
43
46
|
// Automatically route audio to speaker devices as relevant for watching videos.
|
|
44
47
|
useEffect(() => {
|
|
@@ -50,33 +53,30 @@ export const ViewerLivestream = ({
|
|
|
50
53
|
const topViewProps = {
|
|
51
54
|
LiveIndicator,
|
|
52
55
|
FollowerCount,
|
|
53
|
-
DurationBadge
|
|
56
|
+
DurationBadge,
|
|
57
|
+
onLayout: event => {
|
|
58
|
+
setTopViewHeight(event.nativeEvent.layout.height);
|
|
59
|
+
}
|
|
54
60
|
};
|
|
55
|
-
return /*#__PURE__*/React.createElement(
|
|
56
|
-
style: [styles.container,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
participant: currentSpeaker
|
|
65
|
-
})), ViewerLivestreamControls && /*#__PURE__*/React.createElement(ViewerLivestreamControls, {
|
|
61
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
62
|
+
style: [styles.container, viewerLivestream.container]
|
|
63
|
+
}, ViewerLivestreamTopView && /*#__PURE__*/React.createElement(ViewerLivestreamTopView, topViewProps), FloatingParticipantView && floatingParticipant && topViewHeight && controlsHeight && /*#__PURE__*/React.createElement(FloatingParticipantView, {
|
|
64
|
+
participant: floatingParticipant,
|
|
65
|
+
draggableContainerStyle: [StyleSheet.absoluteFill, {
|
|
66
|
+
top: topViewHeight,
|
|
67
|
+
bottom: controlsHeight
|
|
68
|
+
}]
|
|
69
|
+
}), LivestreamLayout && /*#__PURE__*/React.createElement(LivestreamLayout, null), ViewerLivestreamControls && /*#__PURE__*/React.createElement(ViewerLivestreamControls, {
|
|
66
70
|
ViewerLeaveStreamButton: ViewerLeaveStreamButton,
|
|
67
|
-
onLeaveStreamHandler: onLeaveStreamHandler
|
|
68
|
-
|
|
71
|
+
onLeaveStreamHandler: onLeaveStreamHandler,
|
|
72
|
+
onLayout: event => {
|
|
73
|
+
setControlsHeight(event.nativeEvent.layout.height);
|
|
74
|
+
}
|
|
75
|
+
}));
|
|
69
76
|
};
|
|
70
77
|
const styles = StyleSheet.create({
|
|
71
78
|
container: {
|
|
72
79
|
flex: 1
|
|
73
|
-
},
|
|
74
|
-
floatingParticipantView: {
|
|
75
|
-
flex: 1
|
|
76
|
-
},
|
|
77
|
-
view: {
|
|
78
|
-
...StyleSheet.absoluteFillObject,
|
|
79
|
-
zIndex: Z_INDEX.IN_FRONT
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
//# sourceMappingURL=ViewerLivestream.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","StyleSheet","
|
|
1
|
+
{"version":3,"names":["React","useEffect","StyleSheet","View","InCallManager","useTheme","ViewerLivestreamTopView","DefaultViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","useCallStateHooks","FloatingParticipantView","DefaultFloatingParticipantView","SfuModels","hasVideoTrack","p","publishedTracks","includes","TrackType","VIDEO","ViewerLivestream","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","theme","viewerLivestream","useHasOngoingScreenShare","useParticipants","hasOngoingScreenShare","currentSpeaker","floatingParticipant","topViewHeight","setTopViewHeight","useState","controlsHeight","setControlsHeight","start","media","stop","topViewProps","onLayout","event","nativeEvent","layout","height","createElement","style","styles","container","participant","draggableContainerStyle","absoluteFill","top","bottom","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AAExC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,aAAa,MAAM,6BAA6B;AACvD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SACEC,uBAAuB,IAAIC,8BAA8B,QAEpD,8CAA8C;AACrD,SACEC,wBAAwB,IAAIC,+BAA+B,QAEtD,gDAAgD;AAEvD,SACEC,gBAAgB,IAAIC,uBAAuB,QAEtC,qBAAqB;AAC5B,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SACEC,uBAAuB,IAAIC,8BAA8B,QAEpD,mBAAmB;AAC1B,SAASC,SAAS,QAAgC,yBAAyB;AAE3E,MAAMC,aAAa,GAAIC,CAA0B,IAC/CA,CAAC,aAADA,CAAC,uBAADA,CAAC,CAAEC,eAAe,CAACC,QAAQ,CAACJ,SAAS,CAACK,SAAS,CAACC,KAAK,CAAC;;AAExD;AACA;AACA;;AAsBA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BhB,uBAAuB,GAAGC,8BAA8B;EACxDC,wBAAwB,GAAGC,+B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AAuB,EAAKqC,YAAe,CAAC,EACxE9B,uBAAuB,IACtBqB,mBAAmB,IACnBC,aAAa,IACbG,cAAc,iBACZtC,KAAA,CAAAiD,aAAA,CAACpC,uBAAuB;IACtBwC,WAAW,EAAEnB,mBAAoB;IACjCoB,uBAAuB,EAAE,CACvBpD,UAAU,CAACqD,YAAY,EACvB;MACEC,GAAG,EAAErB,aAAa;MAClBsB,MAAM,EAAEnB;IACV,CAAC;EACD,CACH,CACF,EACF5B,gBAAgB,iBAAIV,KAAA,CAAAiD,aAAA,CAACvC,gBAAgB,MAAE,CAAC,EACxCF,wBAAwB,iBACvBR,KAAA,CAAAiD,aAAA,CAACzC,wBAAwB;IACvBkB,uBAAuB,EAAEA,uBAAwB;IACjDC,oBAAoB,EAAEA,oBAAqB;IAC3CiB,QAAQ,EAAGC,KAAK,IAAK;MACnBN,iBAAiB,CAACM,KAAK,CAACC,WAAW,CAACC,MAAM,CAACC,MAAM,CAAC;IACpD;EAAE,CACH,CAEC,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGjD,UAAU,CAACwD,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
|
|
@@ -44,7 +44,8 @@ export const FloatingParticipantView = ({
|
|
|
44
44
|
alignment = 'top-right',
|
|
45
45
|
onPressHandler,
|
|
46
46
|
participant,
|
|
47
|
-
|
|
47
|
+
participantViewStyle,
|
|
48
|
+
draggableContainerStyle,
|
|
48
49
|
ParticipantView = DefaultParticipantView,
|
|
49
50
|
ParticipantNetworkQualityIndicator,
|
|
50
51
|
ParticipantReaction,
|
|
@@ -78,7 +79,7 @@ export const FloatingParticipantView = ({
|
|
|
78
79
|
}
|
|
79
80
|
return /*#__PURE__*/React.createElement(View, {
|
|
80
81
|
testID: ComponentTestIds.LOCAL_PARTICIPANT,
|
|
81
|
-
style: [styles.container, floatingParticipantsView.container]
|
|
82
|
+
style: [styles.container, draggableContainerStyle, floatingParticipantsView.container]
|
|
82
83
|
// "box-none" disallows the container view to be not take up touches
|
|
83
84
|
// and allows only the floating view (its child view) to take up the touches
|
|
84
85
|
,
|
|
@@ -107,7 +108,7 @@ export const FloatingParticipantView = ({
|
|
|
107
108
|
}, ParticipantView && /*#__PURE__*/React.createElement(ParticipantView, _extends({
|
|
108
109
|
participant: participant,
|
|
109
110
|
trackType: "videoTrack",
|
|
110
|
-
style: [styles.participantViewContainer,
|
|
111
|
+
style: [styles.participantViewContainer, participantViewStyle, {
|
|
111
112
|
shadowColor: colors.static_black
|
|
112
113
|
}, floatingParticipantsView.participantViewContainer]
|
|
113
114
|
// video z order must be one above the one used in grid view
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Pressable","StyleSheet","View","FLOATING_VIDEO_VIEW_STYLE","Z_INDEX","ComponentTestIds","VideoSlash","FloatingView","FloatingViewAlignment","ParticipantView","DefaultParticipantView","useTheme","CustomLocalParticipantViewVideoFallback","theme","colors","floatingParticipantsView","variants","iconSizes","createElement","style","styles","videoFallback","backgroundColor","disabled","height","md","width","color","static_white","FloatingParticipantView","alignment","onPressHandler","participant","ParticipantNetworkQualityIndicator","ParticipantReaction","VideoRenderer","supportedReactions","videoZOrder","objectFit","floatingAlignmentMap","topLeft","topRight","bottomLeft","bottomRight","containerDimensions","setContainerDimensions","useState","participantViewProps","ParticipantLabel","ParticipantVideoFallback","testID","LOCAL_PARTICIPANT","container","pointerEvents","onLayout","event","nativeEvent","layout","prev","containerHeight","containerWidth","initialAlignment","onPress","_extends","trackType","participantViewContainer","shadowColor","static_black","create","margin","zIndex","IN_MIDDLE","flex","borderRadius","shadowOffset","shadowOpacity","shadowRadius","elevation","absoluteFillObject","alignItems","justifyContent"],"sourceRoot":"../../../../../src","sources":["components/Participant/FloatingParticipantView/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,SAAS,EAETC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,SAASC,yBAAyB,EAAEC,OAAO,QAAQ,oBAAoB;AACvE,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,OAAOC,YAAY,MAAM,gBAAgB;AAKzC,SAASC,qBAAqB,QAAQ,uBAAuB;AAC7D,SACEC,eAAe,IAAIC,sBAAsB,QAGpC,oBAAoB;AAC3B,SAASC,QAAQ,QAAQ,gCAAgC;;AASzD;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","View","FLOATING_VIDEO_VIEW_STYLE","Z_INDEX","ComponentTestIds","VideoSlash","FloatingView","FloatingViewAlignment","ParticipantView","DefaultParticipantView","useTheme","CustomLocalParticipantViewVideoFallback","theme","colors","floatingParticipantsView","variants","iconSizes","createElement","style","styles","videoFallback","backgroundColor","disabled","height","md","width","color","static_white","FloatingParticipantView","alignment","onPressHandler","participant","participantViewStyle","draggableContainerStyle","ParticipantNetworkQualityIndicator","ParticipantReaction","VideoRenderer","supportedReactions","videoZOrder","objectFit","floatingAlignmentMap","topLeft","topRight","bottomLeft","bottomRight","containerDimensions","setContainerDimensions","useState","participantViewProps","ParticipantLabel","ParticipantVideoFallback","testID","LOCAL_PARTICIPANT","container","pointerEvents","onLayout","event","nativeEvent","layout","prev","containerHeight","containerWidth","initialAlignment","onPress","_extends","trackType","participantViewContainer","shadowColor","static_black","create","margin","zIndex","IN_MIDDLE","flex","borderRadius","shadowOffset","shadowOpacity","shadowRadius","elevation","absoluteFillObject","alignItems","justifyContent"],"sourceRoot":"../../../../../src","sources":["components/Participant/FloatingParticipantView/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,SAAS,EAETC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,SAASC,yBAAyB,EAAEC,OAAO,QAAQ,oBAAoB;AACvE,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,OAAOC,YAAY,MAAM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,aAAA,CAAClB,SAAS;IAACgE,OAAO,EAAEjC;EAAe,GAChCtB,eAAe,iBACdV,KAAA,CAAAmB,aAAA,CAACT,eAAe,EAAAwD,QAAA;IACdjC,WAAW,EAAEA,WAAY;IACzBkC,SAAS,EAAC,YAAY;IACtB/C,KAAK,EAAE,CACLC,MAAM,CAAC+C,wBAAwB,EAC/BlC,oBAAoB,EACpB;MACEmC,WAAW,EAAEtD,MAAM,CAACuD;IACtB,CAAC,EACDtD,wBAAwB,CAACoD,wBAAwB;IAEnD;IACA;IAAA;IACA5B,WAAW,EAAEA,WAAY;IACzBC,SAAS,EAAEA,SAAU;IACrBF,kBAAkB,EAAEA;EAAmB,GACnCW,oBAAoB,CACzB,CAEM,CACC,CAEZ,CAAC;AAEX,CAAC;AAED,MAAM7B,MAAM,GAAGnB,UAAU,CAACqE,MAAM,CAAC;EAC/BhB,SAAS,EAAE;IACTiB,MAAM,EAAE,CAAC;IACT;IACAC,MAAM,EAAEpE,OAAO,CAACqE,SAAS;IACzBC,IAAI,EAAE;EACR,CAAC;EACDP,wBAAwB,EAAE;IACxB3C,MAAM,EAAErB,yBAAyB,CAACqB,MAAM;IACxCE,KAAK,EAAEvB,yBAAyB,CAACuB,KAAK;IACtCiD,YAAY,EAAExE,yBAAyB,CAACwE,YAAY;IACpDC,YAAY,EAAE;MACZlD,KAAK,EAAE,CAAC;MACRF,MAAM,EAAE;IACV,CAAC;IACDqD,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,IAAI;IAClBC,SAAS,EAAE;EACb,CAAC;EACD1D,aAAa,EAAE;IACb,GAAGpB,UAAU,CAAC+E,kBAAkB;IAChCC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -54,8 +54,8 @@ export const VideoRenderer = ({
|
|
|
54
54
|
const isScreenSharing = trackType === 'screenShareTrack';
|
|
55
55
|
const isPublishingVideoTrack = publishedTracks.includes(isScreenSharing ? SfuModels.TrackType.SCREEN_SHARE : SfuModels.TrackType.VIDEO);
|
|
56
56
|
const hasJoinedCall = callingState === CallingState.JOINED;
|
|
57
|
-
const canShowVideo = !!videoStream && isVisible && isPublishingVideoTrack;
|
|
58
57
|
const videoStreamToRender = isScreenSharing ? screenShareStream : videoStream;
|
|
58
|
+
const canShowVideo = !!videoStreamToRender && isVisible && isPublishingVideoTrack;
|
|
59
59
|
const mirror = isLocalParticipant && !isScreenSharing && direction === 'front';
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -63,11 +63,11 @@ export const VideoRenderer = ({
|
|
|
63
63
|
* Additionally makes sure that when this view becomes visible again, the layout to subscribe is known
|
|
64
64
|
*/
|
|
65
65
|
useEffect(() => {
|
|
66
|
-
if (!call) {
|
|
66
|
+
if (!call || isLocalParticipant) {
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
if (
|
|
70
|
-
if ((viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.videoTrack) !== VisibilityState.VISIBLE) {
|
|
69
|
+
if (isVisible) {
|
|
70
|
+
if (trackType === 'videoTrack' && (viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.videoTrack) !== VisibilityState.VISIBLE) {
|
|
71
71
|
call.state.updateParticipant(sessionId, p => ({
|
|
72
72
|
...p,
|
|
73
73
|
viewportVisibilityState: {
|
|
@@ -76,8 +76,17 @@ export const VideoRenderer = ({
|
|
|
76
76
|
}
|
|
77
77
|
}));
|
|
78
78
|
}
|
|
79
|
+
if (trackType === 'screenShareTrack' && (viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.screenShareTrack) !== VisibilityState.VISIBLE) {
|
|
80
|
+
call.state.updateParticipant(sessionId, p => ({
|
|
81
|
+
...p,
|
|
82
|
+
viewportVisibilityState: {
|
|
83
|
+
...(p.viewportVisibilityState ?? DEFAULT_VIEWPORT_VISIBILITY_STATE),
|
|
84
|
+
screenShareTrack: VisibilityState.VISIBLE
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
79
88
|
} else {
|
|
80
|
-
if ((viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.videoTrack) !== VisibilityState.INVISIBLE) {
|
|
89
|
+
if (trackType === 'videoTrack' && (viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.videoTrack) !== VisibilityState.INVISIBLE) {
|
|
81
90
|
call.state.updateParticipant(sessionId, p => ({
|
|
82
91
|
...p,
|
|
83
92
|
viewportVisibilityState: {
|
|
@@ -86,13 +95,22 @@ export const VideoRenderer = ({
|
|
|
86
95
|
}
|
|
87
96
|
}));
|
|
88
97
|
}
|
|
98
|
+
if (trackType === 'screenShareTrack' && (viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.screenShareTrack) !== VisibilityState.INVISIBLE) {
|
|
99
|
+
call.state.updateParticipant(sessionId, p => ({
|
|
100
|
+
...p,
|
|
101
|
+
viewportVisibilityState: {
|
|
102
|
+
...(p.viewportVisibilityState ?? DEFAULT_VIEWPORT_VISIBILITY_STATE),
|
|
103
|
+
screenShareTrack: VisibilityState.INVISIBLE
|
|
104
|
+
}
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
89
107
|
if (subscribedVideoLayoutRef.current) {
|
|
90
108
|
// when video is enabled again, we want to use the last subscribed dimension to resubscribe
|
|
91
109
|
pendingVideoLayoutRef.current = subscribedVideoLayoutRef.current;
|
|
92
110
|
subscribedVideoLayoutRef.current = undefined;
|
|
93
111
|
}
|
|
94
112
|
}
|
|
95
|
-
}, [sessionId, viewportVisibilityState, isVisible, call]);
|
|
113
|
+
}, [sessionId, viewportVisibilityState, isVisible, call, trackType, isLocalParticipant]);
|
|
96
114
|
useEffect(() => {
|
|
97
115
|
if (!hasJoinedCall && subscribedVideoLayoutRef.current) {
|
|
98
116
|
// when call is joined again, we want to use the last subscribed dimension to resubscribe
|
|
@@ -108,9 +126,12 @@ export const VideoRenderer = ({
|
|
|
108
126
|
* 3. when call was rejoined
|
|
109
127
|
*/
|
|
110
128
|
useEffect(() => {
|
|
129
|
+
if (!call || isLocalParticipant) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
111
132
|
// NOTE: We only want to update the subscription if the pendingVideoLayoutRef is set
|
|
112
133
|
const updateIsNeeded = pendingVideoLayoutRef.current;
|
|
113
|
-
if (!updateIsNeeded || !
|
|
134
|
+
if (!updateIsNeeded || !isPublishingVideoTrack || !hasJoinedCall) {
|
|
114
135
|
return;
|
|
115
136
|
}
|
|
116
137
|
|
|
@@ -126,7 +147,7 @@ export const VideoRenderer = ({
|
|
|
126
147
|
subscribedVideoLayoutRef.current = pendingVideoLayoutRef.current;
|
|
127
148
|
pendingVideoLayoutRef.current = undefined;
|
|
128
149
|
}
|
|
129
|
-
}, [call, isPublishingVideoTrack, trackType, isVisible, sessionId, hasJoinedCall]);
|
|
150
|
+
}, [call, isPublishingVideoTrack, trackType, isVisible, sessionId, hasJoinedCall, isLocalParticipant]);
|
|
130
151
|
useEffect(() => {
|
|
131
152
|
return () => {
|
|
132
153
|
subscribedVideoLayoutRef.current = undefined;
|
|
@@ -135,6 +156,9 @@ export const VideoRenderer = ({
|
|
|
135
156
|
}, [trackType, sessionId]);
|
|
136
157
|
const onLayout = event => {
|
|
137
158
|
var _subscribedVideoLayou, _subscribedVideoLayou2;
|
|
159
|
+
if (!call || isLocalParticipant) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
138
162
|
const dimension = {
|
|
139
163
|
width: Math.trunc(event.nativeEvent.layout.width),
|
|
140
164
|
height: Math.trunc(event.nativeEvent.layout.height)
|
|
@@ -143,7 +167,7 @@ export const VideoRenderer = ({
|
|
|
143
167
|
// NOTE: If the participant hasn't published a video track yet,
|
|
144
168
|
// or the view is not viewable, we store the dimensions and handle it
|
|
145
169
|
// when the track is published or the video is enabled.
|
|
146
|
-
if (!
|
|
170
|
+
if (!isPublishingVideoTrack || !isVisible || !hasJoinedCall) {
|
|
147
171
|
pendingVideoLayoutRef.current = dimension;
|
|
148
172
|
return;
|
|
149
173
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","StyleSheet","View","RTCView","CallingState","SfuModels","VisibilityState","useCall","useCallStateHooks","ParticipantVideoFallback","DefaultParticipantVideoFallback","useTheme","DEFAULT_VIEWPORT_VISIBILITY_STATE","videoTrack","UNKNOWN","screenShareTrack","VideoRenderer","trackType","participant","isVisible","objectFit","videoZOrder","theme","videoRenderer","call","useCallCallingState","useCameraState","callingState","pendingVideoLayoutRef","subscribedVideoLayoutRef","direction","isLocalParticipant","sessionId","publishedTracks","viewportVisibilityState","videoStream","screenShareStream","isScreenSharing","isPublishingVideoTrack","includes","TrackType","SCREEN_SHARE","VIDEO","hasJoinedCall","JOINED","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","StyleSheet","View","RTCView","CallingState","SfuModels","VisibilityState","useCall","useCallStateHooks","ParticipantVideoFallback","DefaultParticipantVideoFallback","useTheme","DEFAULT_VIEWPORT_VISIBILITY_STATE","videoTrack","UNKNOWN","screenShareTrack","VideoRenderer","trackType","participant","isVisible","objectFit","videoZOrder","theme","videoRenderer","call","useCallCallingState","useCameraState","callingState","pendingVideoLayoutRef","subscribedVideoLayoutRef","direction","isLocalParticipant","sessionId","publishedTracks","viewportVisibilityState","videoStream","screenShareStream","isScreenSharing","isPublishingVideoTrack","includes","TrackType","SCREEN_SHARE","VIDEO","hasJoinedCall","JOINED","videoStreamToRender","canShowVideo","mirror","VISIBLE","state","updateParticipant","p","INVISIBLE","current","undefined","updateIsNeeded","dimension","updateSubscriptionsPartial","onLayout","event","_subscribedVideoLayou","_subscribedVideoLayou2","width","Math","trunc","nativeEvent","layout","height","createElement","style","styles","container","streamURL","toURL","zOrder","create","absoluteFillObject"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/VideoRenderer.tsx"],"mappings":"AAAA,OAAOA,K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OAAO,CAAE;IAChEqC,MAAM,EAAErD;EAAY,CACrB,CAAC,GAEFZ,wBAAwB,iBACtBX,KAAA,CAAAsE,aAAA,CAAC3D,wBAAwB;IAACS,WAAW,EAAEA;EAAY,CAAE,CAGrD,CAAC;AAEX,CAAC;AAED,MAAMoD,MAAM,GAAGrE,UAAU,CAAC0E,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACT,GAAGtE,UAAU,CAAC2E;EAChB,CAAC;EACDzC,WAAW,EAAE;IACX,GAAGlC,UAAU,CAAC2E;EAChB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { StopScreenShare } from '../../icons';
|
|
4
|
+
import { useTheme } from '../../contexts';
|
|
5
|
+
import { useCall, useI18n } from '@stream-io/video-react-bindings';
|
|
6
|
+
import { SfuModels } from '@stream-io/video-client';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Props for the ScreenShareOverlay component
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The component that displays the screen sharing overlay, when the screen is shared.
|
|
14
|
+
*/
|
|
15
|
+
export const ScreenShareOverlay = ({}) => {
|
|
16
|
+
const call = useCall();
|
|
17
|
+
const {
|
|
18
|
+
t
|
|
19
|
+
} = useI18n();
|
|
20
|
+
const {
|
|
21
|
+
theme: {
|
|
22
|
+
colors,
|
|
23
|
+
typefaces,
|
|
24
|
+
variants: {
|
|
25
|
+
iconSizes
|
|
26
|
+
},
|
|
27
|
+
screenshareOverlay
|
|
28
|
+
}
|
|
29
|
+
} = useTheme();
|
|
30
|
+
const onStopScreenshareHandler = async () => {
|
|
31
|
+
await (call === null || call === void 0 ? void 0 : call.stopPublish(SfuModels.TrackType.SCREEN_SHARE));
|
|
32
|
+
};
|
|
33
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
34
|
+
style: [styles.container, {
|
|
35
|
+
backgroundColor: colors.static_grey
|
|
36
|
+
}, screenshareOverlay.container]
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
38
|
+
style: [styles.text, typefaces.subtitleBold, {
|
|
39
|
+
color: colors.static_white
|
|
40
|
+
}, screenshareOverlay.text]
|
|
41
|
+
}, t('You are sharing your screen with everyone')), /*#__PURE__*/React.createElement(Pressable, {
|
|
42
|
+
onPress: onStopScreenshareHandler,
|
|
43
|
+
style: ({
|
|
44
|
+
pressed
|
|
45
|
+
}) => {
|
|
46
|
+
return [styles.button, {
|
|
47
|
+
backgroundColor: colors.dark_gray,
|
|
48
|
+
opacity: pressed ? 0.2 : 1
|
|
49
|
+
}, screenshareOverlay.button];
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
52
|
+
style: [styles.buttonIcon, {
|
|
53
|
+
height: iconSizes.xs,
|
|
54
|
+
width: iconSizes.xs
|
|
55
|
+
}, screenshareOverlay.buttonIcon]
|
|
56
|
+
}, /*#__PURE__*/React.createElement(StopScreenShare, {
|
|
57
|
+
color: colors.static_white
|
|
58
|
+
})), /*#__PURE__*/React.createElement(Text, {
|
|
59
|
+
style: [styles.buttonText, {
|
|
60
|
+
color: colors.static_white
|
|
61
|
+
}, screenshareOverlay.buttonText]
|
|
62
|
+
}, t('Stop Screen Sharing'))));
|
|
63
|
+
};
|
|
64
|
+
const styles = StyleSheet.create({
|
|
65
|
+
container: {
|
|
66
|
+
flex: 1,
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
justifyContent: 'center'
|
|
69
|
+
},
|
|
70
|
+
text: {},
|
|
71
|
+
button: {
|
|
72
|
+
marginTop: 16,
|
|
73
|
+
padding: 8,
|
|
74
|
+
borderRadius: 8,
|
|
75
|
+
flexDirection: 'row',
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
alignItems: 'center'
|
|
78
|
+
},
|
|
79
|
+
buttonIcon: {},
|
|
80
|
+
buttonText: {
|
|
81
|
+
marginLeft: 8,
|
|
82
|
+
includeFontPadding: false
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=ScreenShareOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","Text","View","StopScreenShare","useTheme","useCall","useI18n","SfuModels","ScreenShareOverlay","call","t","theme","colors","typefaces","variants","iconSizes","screenshareOverlay","onStopScreenshareHandler","stopPublish","TrackType","SCREEN_SHARE","createElement","style","styles","container","backgroundColor","static_grey","text","subtitleBold","color","static_white","onPress","pressed","button","dark_gray","opacity","buttonIcon","height","xs","width","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,EAAEC,OAAO,QAAQ,iCAAiC;AAClE,SAASC,SAAS,QAAQ,yBAAyB;;AAEnD;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,GAAGA,CAAC,CAA0B,CAAC,KAAK;EACjE,MAAMC,IAAI,GAAGJ,OAAO,CAAC,CAAC;EACtB,MAAM;IAAEK;EAAE,CAAC,GAAGJ,OAAO,CAAC,CAAC;EACvB,MAAM;IACJK,KAAK,EAAE;MACLC,MAAM;MACNC,SAAS;MACTC,QAAQ,EAAE;QAAEC;MAAU,CAAC;MACvBC;IACF;EACF,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EAEd,MAAMa,wBAAwB,GAAG,MAAAA,CAAA,KAAY;IAC3C,OAAMR,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAES,WAAW,CAACX,SAA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AC9Bd,kBAAkB,CAACwB,UAAU;EAC7B,GAED9B,CAAC,CAAC,qBAAqB,CACpB,CACG,CACP,CAAC;AAEX,CAAC;AAED,MAAMa,MAAM,GAAGvB,UAAU,CAACyC,MAAM,CAAC;EAC/BjB,SAAS,EAAE;IACTkB,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDjB,IAAI,EAAE,CAAC,CAAC;EACRM,MAAM,EAAE;IACNY,SAAS,EAAE,EAAE;IACbC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE,CAAC;IACfC,aAAa,EAAE,KAAK;IACpBJ,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE;EACd,CAAC;EACDP,UAAU,EAAE,CAAC,CAAC;EACdI,UAAU,EAAE;IACVS,UAAU,EAAE,CAAC;IACbC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/utility/index.ts"],"mappings":"AAAA,cAAc,UAAU"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/utility/index.ts"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,sBAAsB"}
|
|
@@ -43,10 +43,12 @@ export const useIosVoipPushEventsSetupEffect = () => {
|
|
|
43
43
|
console.warn('Failed to send voip token to stream', err);
|
|
44
44
|
});
|
|
45
45
|
// set the logout callback
|
|
46
|
-
setPushLogoutCallback(() => {
|
|
47
|
-
|
|
46
|
+
setPushLogoutCallback(async () => {
|
|
47
|
+
try {
|
|
48
|
+
client.removeDevice(token);
|
|
49
|
+
} catch (err) {
|
|
48
50
|
console.warn('Failed to remove voip token from stream', err);
|
|
49
|
-
}
|
|
51
|
+
}
|
|
50
52
|
});
|
|
51
53
|
};
|
|
52
54
|
// fired when PushKit give us the latest token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","getCallKeepLib","getVoipPushNotificationLib","AppState","Platform","StreamVideoRN","useStreamVideoClient","setPushLogoutCallback","NativeModules","canAddPushWSSubscriptionsRef","shouldCallBeEnded","pushUnsubscriptionCallbacks$","voipPushNotificationCallCId$","RxUtils","lastVoipToken","useIosVoipPushEventsSetupEffect","client","pushConfig","getConfig","push","OS","push_provider_name","ios","pushProviderName","addVoipDevice","catch","err","console","warn","voipPushNotification","onTokenReceived","token","removeDevice","addEventListener","events","Array","isArray","length","voipPushEvent","name","data","onNotificationReceived","removeEventListener","notification","_notification$stream","_notification$stream2","_notification$stream3","_notification$stream4","_notification$stream5","sender","stream","type","call_cid","createStreamVideoClient","callFromPush","onRingingCall","uuid","_NativeModules$Stream","StreamVideoReactNative","getIncomingCallUUid","error","log","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","closed","canListenToWS","current","currentState","unsubscribe","on","_closed","unsubscriptionCallbacks","getCurrentValue","next","onVoipNotificationCompleted"],"sourceRoot":"../../../../src","sources":["hooks/push/useIosVoipPushEventsSetupEffect.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SACEC,cAAc,EACdC,0BAA0B,QACrB,uBAAuB;AAE9B,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AACjD,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,oBAAoB,QAAQ,iCAAiC;AACtE,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,aAAa,QAAQ,cAAc;AAC5C,SACEC,4BAA4B,EAC5BC,iBAAiB,QACZ,wBAAwB;AAC/B,SACEC,4BAA4B,EAC5BC,4BAA4B,QACvB,6BAA6B;AACpC,SAASC,OAAO,QAAQ,yBAAyB;AAEjD,IAAIC,aAAiC,GAAG,EAAE;;AAE1C;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAGA,CAAA,KAAM;EACnD,MAAMC,MAAM,GAAGV,oBAAoB,CAAC,CAAC;EACrCN,SAAS,CAAC,MAAM;IACd,MAAMiB,UAAU,GAAGZ,aAAa,CAACa,SAAS,CAAC,CAAC,CAACC,IAAI;IACjD,IAAIf,QAAQ,CAACgB,EAAE,KAAK,KAAK,IAAI,CAACH,UAAU,IAAI,CAACD,MAAM,EAAE;MACnD;IACF;IACA,IAAIF,aAAa,EAAE;MACjB;MACA,MAAMO,kBAAkB,GAAGJ,UAAU,CAACK,GAAG,CAACC,gBAAgB;MAC1D,IAAI,CAACF,kBAAkB,EAAE;QACvB;MACF;MACAL,MAAM,CACHQ,aAAa,CAACV,aAAa,EAAE,KAAK,EAAEO,kBAAkB,CAAC,CACvDI,KAAK,CAAEC,GAAG,IAAK;QACdC,OAAO,CAACC,IAAI,CAAC,qCAAqC,EAAEF,GAAG,CAAC;MAC1D,CAAC,CAAC;IACN;IACA,MAAMG,oBAAoB,GAAG3B,0BAA0B,CAAC,CAAC;IACzD,MAAM4B,eAAe,GAAIC,KAAa,IAAK;MACzC;MACAjB,aAAa,GAAGiB,KAAK;MACrB,MAAMV,kBAAkB,GAAGJ,UAAU,CAACK,GAAG,CAACC,gBAAgB;MAC1D,IAAI,CAACF,kBAAkB,EAAE;QACvB;MACF;MACAL,MAAM,CAACQ,aAAa,CAACO,KAAK,EAAE,KAAK,EAAEV,kBAAkB,CAAC,CAACI,KAAK,CAAEC,GAAG,IAAK;QACpEC,OAAO,CAACC,IAAI,CAAC,qCAAqC,EAAEF,GAAG,CAAC;MAC1D,CAAC,CAAC;MACF;MACAnB,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"names":["useEffect","getCallKeepLib","getVoipPushNotificationLib","AppState","Platform","StreamVideoRN","useStreamVideoClient","setPushLogoutCallback","NativeModules","canAddPushWSSubscriptionsRef","shouldCallBeEnded","pushUnsubscriptionCallbacks$","voipPushNotificationCallCId$","RxUtils","lastVoipToken","useIosVoipPushEventsSetupEffect","client","pushConfig","getConfig","push","OS","push_provider_name","ios","pushProviderName","addVoipDevice","catch","err","console","warn","voipPushNotification","onTokenReceived","token","removeDevice","addEventListener","events","Array","isArray","length","voipPushEvent","name","data","onNotificationReceived","removeEventListener","notification","_notification$stream","_notification$stream2","_notification$stream3","_notification$stream4","_notification$stream5","sender","stream","type","call_cid","createStreamVideoClient","callFromPush","onRingingCall","uuid","_NativeModules$Stream","StreamVideoReactNative","getIncomingCallUUid","error","log","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","closed","canListenToWS","current","currentState","unsubscribe","on","_closed","unsubscriptionCallbacks","getCurrentValue","next","onVoipNotificationCompleted"],"sourceRoot":"../../../../src","sources":["hooks/push/useIosVoipPushEventsSetupEffect.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SACEC,cAAc,EACdC,0BAA0B,QACrB,uBAAuB;AAE9B,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AACjD,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,oBAAoB,QAAQ,iCAAiC;AACtE,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,aAAa,QAAQ,cAAc;AAC5C,SACEC,4BAA4B,EAC5BC,iBAAiB,QACZ,wBAAwB;AAC/B,SACEC,4BAA4B,EAC5BC,4BAA4B,QACvB,6BAA6B;AACpC,SAASC,OAAO,QAAQ,yBAAyB;AAEjD,IAAIC,aAAiC,GAAG,EAAE;;AAE1C;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAGA,CAAA,KAAM;EACnD,MAAMC,MAAM,GAAGV,oBAAoB,CAAC,CAAC;EACrCN,SAAS,CAAC,MAAM;IACd,MAAMiB,UAAU,GAAGZ,aAAa,CAACa,SAAS,CAAC,CAAC,CAACC,IAAI;IACjD,IAAIf,QAAQ,CAACgB,EAAE,KAAK,KAAK,IAAI,CAACH,UAAU,IAAI,CAACD,MAAM,EAAE;MACnD;IACF;IACA,IAAIF,aAAa,EAAE;MACjB;MACA,MA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BAAoB,CAACkD,2BAA2B,CAACvB,IAAI,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const StopScreenShare = ({
|
|
4
|
+
color
|
|
5
|
+
}) => {
|
|
6
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
7
|
+
viewBox: "0 0 25 25"
|
|
8
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
9
|
+
fill: color,
|
|
10
|
+
d: "M21.478 19.1H3.47803V5H21.478V19.1ZM21.478 3H3.47803C2.37803 3 1.47803 3.9 1.47803 5V19C1.47803 20.1 2.37803 21 3.47803 21H21.478C22.578 21 23.478 20.1 23.478 19V5C23.478 3.9 22.578 3 21.478 3Z"
|
|
11
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
12
|
+
fill: color,
|
|
13
|
+
d: "M15.068 8L12.478 10.59L9.88803 8L8.47803 9.41L11.068 12L8.47803 14.59L9.88803 16L12.478 13.41L15.068 16L16.478 14.59L13.888 12L16.478 9.41L15.068 8Z"
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=StopScreenShare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","StopScreenShare","color","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/StopScreenShare.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAa,CAAC,KAAK;EACnD,oBACEJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;IAACK,OAAO,EAAC;EAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;IACHK,IAAI,EAAEH,KAAM;IACZI,CAAC,EAAC;EAAmM,CACtM,CAAC,eACFR,KAAA,CAAAK,aAAA,CAACH,IAAI;IACHK,IAAI,EAAEH,KAAM;IACZI,CAAC,EAAC;EAAsJ,CACzJ,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -18,6 +18,7 @@ export * from './TopViewBackground';
|
|
|
18
18
|
export * from './Eye';
|
|
19
19
|
export * from './ShieldBadge';
|
|
20
20
|
export * from './StartStreamIcon';
|
|
21
|
+
export * from './StopScreenShare';
|
|
21
22
|
export * from './EndStreamIcon';
|
|
22
23
|
export * from './LeaveStreamIcon';
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["icons/index.tsx"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["icons/index.tsx"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB"}
|
|
@@ -91,7 +91,7 @@ export const defaultTheme = {
|
|
|
91
91
|
container: {},
|
|
92
92
|
svgContainer: {}
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
screenShareToggleButton: {
|
|
95
95
|
container: {},
|
|
96
96
|
svgContainer: {}
|
|
97
97
|
},
|
|
@@ -240,9 +240,7 @@ export const defaultTheme = {
|
|
|
240
240
|
liveInfo: {}
|
|
241
241
|
},
|
|
242
242
|
viewerLivestream: {
|
|
243
|
-
container: {}
|
|
244
|
-
floatingParticipantView: {},
|
|
245
|
-
view: {}
|
|
243
|
+
container: {}
|
|
246
244
|
},
|
|
247
245
|
livestreamLayout: {
|
|
248
246
|
container: {}
|
|
@@ -298,6 +296,17 @@ export const defaultTheme = {
|
|
|
298
296
|
livestreamVideoControlButton: {
|
|
299
297
|
container: {},
|
|
300
298
|
icon: {}
|
|
299
|
+
},
|
|
300
|
+
livestreamScreenShareToggleButton: {
|
|
301
|
+
container: {},
|
|
302
|
+
icon: {}
|
|
303
|
+
},
|
|
304
|
+
screenshareOverlay: {
|
|
305
|
+
container: {},
|
|
306
|
+
text: {},
|
|
307
|
+
button: {},
|
|
308
|
+
buttonIcon: {},
|
|
309
|
+
buttonText: {}
|
|
301
310
|
}
|
|
302
311
|
};
|
|
303
312
|
//# sourceMappingURL=theme.js.map
|