@stream-io/video-react-native-sdk 0.0.28 → 0.1.0
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 +11 -0
- package/README.md +19 -10
- package/dist/commonjs/components/Call/CallContent/CallContent.js +7 -3
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/{ReactionButton.js → ReactionsButton.js} +8 -8
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.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/CallControls/internal/ReactionsPicker.js +10 -9
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +2 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +4 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +5 -2
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +4 -2
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +4 -18
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +4 -2
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/constants/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +1 -2
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +7 -3
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/{ReactionButton.js → ReactionsButton.js} +6 -6
- package/dist/module/components/Call/CallControls/ReactionsButton.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/CallControls/internal/ReactionsPicker.js +10 -9
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +2 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +4 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +5 -2
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +4 -2
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +6 -20
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +4 -2
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +1 -2
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +17 -8
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts +2 -6
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts +20 -0
- package/dist/typescript/components/Call/CallControls/ReactionsButton.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/CallControls/internal/ReactionsPicker.d.ts +4 -5
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +5 -8
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +5 -8
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts +3 -2
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +3 -3
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +3 -2
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +4 -4
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
- package/dist/typescript/constants/index.d.ts +2 -2
- package/dist/typescript/constants/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +1 -11
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Call/CallContent/CallContent.tsx +41 -25
- package/src/components/Call/CallControls/CallControls.tsx +9 -13
- package/src/components/Call/CallControls/{ReactionButton.tsx → ReactionsButton.tsx} +13 -6
- package/src/components/Call/CallControls/index.tsx +1 -1
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +14 -14
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +17 -16
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +7 -7
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +25 -20
- package/src/components/Participant/FloatingParticipantView/index.tsx +8 -2
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +16 -29
- package/src/components/Participant/ParticipantView/ParticipantView.tsx +38 -32
- package/src/constants/index.ts +2 -2
- package/src/utils/StreamVideoRN/index.ts +1 -2
- package/src/utils/StreamVideoRN/types.ts +1 -11
- package/src/version.ts +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionButton.js.map +0 -1
- package/dist/module/components/Call/CallControls/ReactionButton.js.map +0 -1
- package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts +0 -15
- package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts.map +0 -1
|
@@ -55,7 +55,8 @@ const FloatingParticipantView = _ref => {
|
|
|
55
55
|
ParticipantView = _ParticipantView.ParticipantView,
|
|
56
56
|
ParticipantNetworkQualityIndicator,
|
|
57
57
|
ParticipantReaction,
|
|
58
|
-
VideoRenderer
|
|
58
|
+
VideoRenderer,
|
|
59
|
+
supportedReactions
|
|
59
60
|
} = _ref;
|
|
60
61
|
const {
|
|
61
62
|
theme: {
|
|
@@ -118,7 +119,8 @@ const FloatingParticipantView = _ref => {
|
|
|
118
119
|
// video z order must be one above the one used in grid view
|
|
119
120
|
// (which uses the default: 0)
|
|
120
121
|
,
|
|
121
|
-
videoZOrder: 1
|
|
122
|
+
videoZOrder: 1,
|
|
123
|
+
supportedReactions: supportedReactions
|
|
122
124
|
}, participantViewProps)))));
|
|
123
125
|
};
|
|
124
126
|
exports.FloatingParticipantView = FloatingParticipantView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_constants","_TestIds","_icons","_FloatingView","_common","_ParticipantView","_ThemeContext","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","CustomLocalParticipantViewVideoFallback","theme","colors","floatingParticipantsView","variants","iconSizes","useTheme","createElement","View","style","styles","videoFallback","backgroundColor","disabled","height","md","width","VideoSlash","color","static_white","FloatingParticipantView","_ref","alignment","onPressHandler","participant","ParticipantView","DefaultParticipantView","ParticipantNetworkQualityIndicator","ParticipantReaction","VideoRenderer","floatingAlignmentMap","FloatingViewAlignment","topLeft","topRight","bottomLeft","bottomRight","containerDimensions","setContainerDimensions","React","useState","participantViewProps","ParticipantLabel","ParticipantVideoFallback","testID","ComponentTestIds","LOCAL_PARTICIPANT","container","pointerEvents","onLayout","event","nativeEvent","layout","prev","containerHeight","containerWidth","initialAlignment","Pressable","onPress","trackType","participantViewContainer","static_grey","shadowColor","static_black","videoZOrder","exports","StyleSheet","create","margin","zIndex","Z_INDEX","IN_MIDDLE","flex","FLOATING_VIDEO_VIEW_STYLE","borderRadius","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","absoluteFillObject","alignItems","justifyContent"],"sourceRoot":"../../../../../src","sources":["components/Participant/FloatingParticipantView/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_constants","_TestIds","_icons","_FloatingView","_common","_ParticipantView","_ThemeContext","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","CustomLocalParticipantViewVideoFallback","theme","colors","floatingParticipantsView","variants","iconSizes","useTheme","createElement","View","style","styles","videoFallback","backgroundColor","disabled","height","md","width","VideoSlash","color","static_white","FloatingParticipantView","_ref","alignment","onPressHandler","participant","ParticipantView","DefaultParticipantView","ParticipantNetworkQualityIndicator","ParticipantReaction","VideoRenderer","supportedReactions","floatingAlignmentMap","FloatingViewAlignment","topLeft","topRight","bottomLeft","bottomRight","containerDimensions","setContainerDimensions","React","useState","participantViewProps","ParticipantLabel","ParticipantVideoFallback","testID","ComponentTestIds","LOCAL_PARTICIPANT","container","pointerEvents","onLayout","event","nativeEvent","layout","prev","containerHeight","containerWidth","initialAlignment","Pressable","onPress","trackType","participantViewContainer","static_grey","shadowColor","static_black","videoZOrder","exports","StyleSheet","create","margin","zIndex","Z_INDEX","IN_MIDDLE","flex","FLOATING_VIDEO_VIEW_STYLE","borderRadius","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","absoluteFillObject","alignItems","justifyContent"],"sourceRoot":"../../../../../src","sources":["components/Participant/FloatingParticipantView/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AAKA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAIA,IAAAQ,aAAA,GAAAR,OAAA;AAA0D,SAAAD,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA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AC;MACRF,MAAM,EAAE;IACV,CAAC;IACD8D,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,IAAI;IAClBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE;EACf,CAAC;EACDpE,aAAa,EAAE;IACb,GAAGuD,uBAAU,CAACc,kBAAkB;IAChCC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -7,7 +7,6 @@ exports.ParticipantReaction = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
10
|
-
var _utils = require("../../../utils");
|
|
11
10
|
var _constants = require("../../../constants");
|
|
12
11
|
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
13
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -22,11 +21,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
22
21
|
const ParticipantReaction = _ref => {
|
|
23
22
|
let {
|
|
24
23
|
participant,
|
|
24
|
+
supportedReactions = _constants.defaultEmojiReactions,
|
|
25
25
|
hideAfterTimeoutInMs = 5500
|
|
26
26
|
} = _ref;
|
|
27
|
-
const {
|
|
28
|
-
supportedReactions
|
|
29
|
-
} = _utils.StreamVideoRN.getConfig();
|
|
30
27
|
const {
|
|
31
28
|
reaction,
|
|
32
29
|
sessionId
|
|
@@ -41,13 +38,10 @@ const ParticipantReaction = _ref => {
|
|
|
41
38
|
participantReaction
|
|
42
39
|
}
|
|
43
40
|
} = (0, _ThemeContext.useTheme)();
|
|
44
|
-
const [isShowing, setIsShowing] = (0, _react.useState)(false);
|
|
45
41
|
(0, _react.useEffect)(() => {
|
|
46
42
|
let timeoutId;
|
|
47
43
|
if (call) {
|
|
48
|
-
setIsShowing(true);
|
|
49
44
|
timeoutId = setTimeout(() => {
|
|
50
|
-
setIsShowing(false);
|
|
51
45
|
call.resetReaction(sessionId);
|
|
52
46
|
}, hideAfterTimeoutInMs);
|
|
53
47
|
}
|
|
@@ -56,22 +50,14 @@ const ParticipantReaction = _ref => {
|
|
|
56
50
|
};
|
|
57
51
|
}, [call, hideAfterTimeoutInMs, sessionId, reaction]);
|
|
58
52
|
const currentReaction = reaction && supportedReactions.find(supportedReaction => supportedReaction.emoji_code === reaction.emoji_code);
|
|
59
|
-
let component;
|
|
60
|
-
if (isShowing) {
|
|
61
|
-
if (typeof (currentReaction === null || currentReaction === void 0 ? void 0 : currentReaction.icon) !== 'string') {
|
|
62
|
-
component = currentReaction === null || currentReaction === void 0 ? void 0 : currentReaction.icon;
|
|
63
|
-
} else {
|
|
64
|
-
component = /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
65
|
-
style: [participantReaction.reaction, typefaces.heading6]
|
|
66
|
-
}, currentReaction.icon);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
53
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
70
54
|
style: [styles.container, {
|
|
71
55
|
height: iconSizes.md,
|
|
72
56
|
width: iconSizes.md
|
|
73
57
|
}, participantReaction.container]
|
|
74
|
-
},
|
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
59
|
+
style: [participantReaction.reaction, typefaces.heading6]
|
|
60
|
+
}, currentReaction === null || currentReaction === void 0 ? void 0 : currentReaction.icon));
|
|
75
61
|
};
|
|
76
62
|
exports.ParticipantReaction = ParticipantReaction;
|
|
77
63
|
const styles = _reactNative.StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoReactBindings","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoReactBindings","_constants","_ThemeContext","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ParticipantReaction","_ref","participant","supportedReactions","defaultEmojiReactions","hideAfterTimeoutInMs","reaction","sessionId","useCall","theme","typefaces","variants","iconSizes","participantReaction","useTheme","useEffect","timeoutId","setTimeout","resetReaction","clearTimeout","currentReaction","find","supportedReaction","emoji_code","createElement","View","style","styles","container","height","md","width","Text","heading6","icon","exports","StyleSheet","create","alignSelf","zIndex","Z_INDEX","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantReaction.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAA0D,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,M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IACzB,CAAC;EACH,CAAC,EAAE,CAACnB,IAAI,EAAEQ,oBAAoB,EAAEE,SAAS,EAAED,QAAQ,CAAC,CAAC;EAErD,MAAMc,eAAe,GACnBd,QAAQ,IACRH,kBAAkB,CAACkB,IAAI,CACpBC,iBAAiB,IAChBA,iBAAiB,CAACC,UAAU,KAAKjB,QAAQ,CAACiB,UAC9C,CAAC;EAEH,oBACEpD,MAAA,CAAAc,OAAA,CAAAuC,aAAA,CAAClD,YAAA,CAAAmD,IAAI;IACHC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,MAAM,EAAEjB,SAAS,CAACkB,EAAE;MACpBC,KAAK,EAAEnB,SAAS,CAACkB;IACnB,CAAC,EACDjB,mBAAmB,CAACe,SAAS;EAC7B,gBAEFzD,MAAA,CAAAc,OAAA,CAAAuC,aAAA,CAAClD,YAAA,CAAA0D,IAAI;IAACN,KAAK,EAAE,CAACb,mBAAmB,CAACP,QAAQ,EAAEI,SAAS,CAACuB,QAAQ;EAAE,GAC7Db,eAAe,aAAfA,eAAe,uBAAfA,eAAe,CAAEc,IACd,CACF,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAnC,mBAAA,GAAAA,mBAAA;AAEF,MAAM2B,MAAM,GAAGS,uBAAU,CAACC,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,SAAS,EAAE,YAAY;IACvBC,MAAM,EAAEC,kBAAO,CAACC;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -33,7 +33,8 @@ const ParticipantView = _ref => {
|
|
|
33
33
|
VideoRenderer = _VideoRenderer.VideoRenderer,
|
|
34
34
|
ParticipantNetworkQualityIndicator = _ParticipantNetworkQualityIndicator.ParticipantNetworkQualityIndicator,
|
|
35
35
|
ParticipantVideoFallback = _ParticipantVideoFallback.ParticipantVideoFallback,
|
|
36
|
-
videoZOrder = 0
|
|
36
|
+
videoZOrder = 0,
|
|
37
|
+
supportedReactions
|
|
37
38
|
} = _ref;
|
|
38
39
|
const {
|
|
39
40
|
theme: {
|
|
@@ -54,7 +55,8 @@ const ParticipantView = _ref => {
|
|
|
54
55
|
style: [styles.container, style, speakerStyle],
|
|
55
56
|
testID: isSpeaking ? `participant-${userId}-is-speaking` : `participant-${userId}-is-not-speaking`
|
|
56
57
|
}, ParticipantReaction && /*#__PURE__*/_react.default.createElement(ParticipantReaction, {
|
|
57
|
-
participant: participant
|
|
58
|
+
participant: participant,
|
|
59
|
+
supportedReactions: supportedReactions
|
|
58
60
|
}), VideoRenderer && /*#__PURE__*/_react.default.createElement(VideoRenderer, {
|
|
59
61
|
isVisible: isVisible,
|
|
60
62
|
participant: participant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ParticipantNetworkQualityIndicator","_ParticipantReaction","_ParticipantLabel","_ParticipantVideoFallback","_VideoRenderer","_ThemeContext","obj","__esModule","default","ParticipantView","_ref","participant","trackType","isVisible","style","ParticipantLabel","DefaultParticipantLabel","ParticipantReaction","DefaultParticipantReaction","VideoRenderer","DefaultVideoRenderer","ParticipantNetworkQualityIndicator","DefaultParticipantNetworkQualityIndicator","ParticipantVideoFallback","DefaultParticipantVideoFallback","videoZOrder","theme","colors","participantView","useTheme","isSpeaking","userId","isScreenSharing","applySpeakerStyle","speakerStyle","styles","highligtedContainer","borderColor","primary","createElement","View","container","testID","footerContainer","exports","StyleSheet","create","justifyContent","padding","overflow","borderWidth","flexDirection","alignItems"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,mCAAA,GAAAF,OAAA;AAIA,IAAAG,oBAAA,GAAAH,OAAA;AAIA,IAAAI,iBAAA,GAAAJ,OAAA;AAIA,IAAAK,yBAAA,GAAAL,OAAA;AAIA,IAAAM,cAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AAA0D,SAAAD,uBAAAS,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ParticipantNetworkQualityIndicator","_ParticipantReaction","_ParticipantLabel","_ParticipantVideoFallback","_VideoRenderer","_ThemeContext","obj","__esModule","default","ParticipantView","_ref","participant","trackType","isVisible","style","ParticipantLabel","DefaultParticipantLabel","ParticipantReaction","DefaultParticipantReaction","VideoRenderer","DefaultVideoRenderer","ParticipantNetworkQualityIndicator","DefaultParticipantNetworkQualityIndicator","ParticipantVideoFallback","DefaultParticipantVideoFallback","videoZOrder","supportedReactions","theme","colors","participantView","useTheme","isSpeaking","userId","isScreenSharing","applySpeakerStyle","speakerStyle","styles","highligtedContainer","borderColor","primary","createElement","View","container","testID","footerContainer","exports","StyleSheet","create","justifyContent","padding","overflow","borderWidth","flexDirection","alignItems"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,mCAAA,GAAAF,OAAA;AAIA,IAAAG,oBAAA,GAAAH,OAAA;AAIA,IAAAI,iBAAA,GAAAJ,OAAA;AAIA,IAAAK,yBAAA,GAAAL,OAAA;AAIA,IAAAM,cAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AAA0D,SAAAD,uBAAAS,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AA0B1D;AACA;AACA;;AAgCA;AACA;AACA;AACA;AACA;AACO,MAAMG,eAAe,GAAGC,IAAA,IAYH;EAAA,IAZI;IAC9BC,WAAW;IACXC,SAAS,GAAG,YAAY;IACxBC,SAAS,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AAY,CAC1B,CACF,eACD7B,MAAA,CAAAY,OAAA,CAAAgC,aAAA,CAACzC,YAAA,CAAA0C,IAAI;IAAC3B,KAAK,EAAE,CAACsB,MAAM,CAACQ,eAAe,EAAEf,eAAe,CAACe,eAAe;EAAE,GACpE7B,gBAAgB,iBACfnB,MAAA,CAAAY,OAAA,CAAAgC,aAAA,CAACzB,gBAAgB;IAACJ,WAAW,EAAEA,WAAY;IAACC,SAAS,EAAEA;EAAU,CAAE,CACpE,EACAS,kCAAkC,iBACjCzB,MAAA,CAAAY,OAAA,CAAAgC,aAAA,CAACnB,kCAAkC;IAACV,WAAW,EAAEA;EAAY,CAAE,CAE7D,CACF,CAAC;AAEX,CAAC;AAACkC,OAAA,CAAApC,eAAA,GAAAA,eAAA;AAEF,MAAM2B,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,cAAc,EAAE,eAAe;IAC/BC,OAAO,EAAE,CAAC;IACVC,QAAQ,EAAE,QAAQ;IAClBC,WAAW,EAAE,CAAC;IACdb,WAAW,EAAE;EACf,CAAC;EACDM,eAAe,EAAE;IACfQ,aAAa,EAAE,KAAK;IACpBJ,cAAc,EAAE,eAAe;IAC/BK,UAAU,EAAE;EACd,CAAC;EACDhB,mBAAmB,EAAE;IACnBc,WAAW,EAAE;EACf;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FLOATING_VIDEO_VIEW_STYLE","height","width","borderRadius","exports","LOBBY_VIDEO_VIEW_HEIGHT","defaultEmojiReactions","type","emoji_code","custom","icon","Z_INDEX","IN_BACK","IN_MIDDLE","IN_FRONT"],"sourceRoot":"../../../src","sources":["constants/index.ts"],"mappings":";;;;;;AAEO,MAAMA,yBAAyB,GAAG;EACvCC,MAAM,EAAE,GAAG;EACXC,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE;AAChB,CAAC;AAACC,OAAA,CAAAJ,yBAAA,GAAAA,yBAAA;AAEK,MAAMK,uBAAuB,GAAG,GAAG;AAACD,OAAA,CAAAC,uBAAA,GAAAA,uBAAA;AAEpC,MAAMC,
|
|
1
|
+
{"version":3,"names":["FLOATING_VIDEO_VIEW_STYLE","height","width","borderRadius","exports","LOBBY_VIDEO_VIEW_HEIGHT","defaultEmojiReactions","type","emoji_code","custom","icon","Z_INDEX","IN_BACK","IN_MIDDLE","IN_FRONT"],"sourceRoot":"../../../src","sources":["constants/index.ts"],"mappings":";;;;;;AAEO,MAAMA,yBAAyB,GAAG;EACvCC,MAAM,EAAE,GAAG;EACXC,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE;AAChB,CAAC;AAACC,OAAA,CAAAJ,yBAAA,GAAAA,yBAAA;AAEK,MAAMK,uBAAuB,GAAG,GAAG;AAACD,OAAA,CAAAC,uBAAA,GAAAA,uBAAA;AAEpC,MAAMC,qBAA2C,GAAG,CACzD;EACEC,IAAI,EAAE,UAAU;EAChBC,UAAU,EAAE,QAAQ;EACpBC,MAAM,EAAE,CAAC,CAAC;EACVC,IAAI,EAAE;AACR,CAAC,EACD;EACEH,IAAI,EAAE,aAAa;EACnBC,UAAU,EAAE,cAAc;EAC1BC,MAAM,EAAE,CAAC,CAAC;EACVC,IAAI,EAAE;AACR,CAAC,EACD;EACEH,IAAI,EAAE,UAAU;EAChBC,UAAU,EAAE,aAAa;EACzBC,MAAM,EAAE,CAAC,CAAC;EACVC,IAAI,EAAE;AACR,CAAC,CACF;AAACN,OAAA,CAAAE,qBAAA,GAAAA,qBAAA;AAEK,MAAMK,OAAO,GAAG;EACrBC,OAAO,EAAE,CAAC;EACVC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE;AACZ,CAAC;AAACV,OAAA,CAAAO,OAAA,GAAAA,OAAA"}
|
|
@@ -5,10 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.StreamVideoRN = void 0;
|
|
7
7
|
var _reactNative = require("@notifee/react-native");
|
|
8
|
-
var _constants = require("../../constants");
|
|
9
8
|
var _android = require("../push/android");
|
|
10
9
|
const DEFAULT_STREAM_VIDEO_CONFIG = {
|
|
11
|
-
supportedReactions: _constants.defaultEmojiReactions,
|
|
12
10
|
foregroundService: {
|
|
13
11
|
android: {
|
|
14
12
|
channel: {
|
|
@@ -27,6 +25,7 @@ const DEFAULT_STREAM_VIDEO_CONFIG = {
|
|
|
27
25
|
};
|
|
28
26
|
class StreamVideoRN {
|
|
29
27
|
static config = DEFAULT_STREAM_VIDEO_CONFIG;
|
|
28
|
+
|
|
30
29
|
/**
|
|
31
30
|
* Update the global config for StreamVideoRN except for push config.
|
|
32
31
|
* To set push config use `StreamVideoRN.setPushConfig` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_android","DEFAULT_STREAM_VIDEO_CONFIG","foregroundService","android","channel","id","name","lights","vibration","importance","AndroidImportance","DEFAULT","notificationTexts","title","body","StreamVideoRN","config","updateConfig","setPushConfig","pushConfig","push","setupFirebaseHandlerAndroid","getConfig","exports"],"sourceRoot":"../../../../src","sources":["utils/StreamVideoRN/index.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGA,MAAME,2BAA8C,GAAG;EACrDC,iBAAiB,EAAE;IACjBC,OAAO,EAAE;MACPC,OAAO,EAAE;QACPC,EAAE,EAAE,gCAAgC;QACpCC,IAAI,EAAE,yCAAyC;QAC/CC,MAAM,EAAE,KAAK;QACbC,SAAS,EAAE,KAAK;QAChBC,UAAU,EAAEC,8BAAiB,CAACC;MAChC,CAAC;MACDC,iBAAiB,EAAE;QACjBC,KAAK,EAAE,kBAAkB;QACzBC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC;AAEM,MAAMC,aAAa,CAAC;EACzB,OAAeC,MAAM,GAAGf,2BAA2B;;EAEnD;AACF;AACA;AACA;AACA;EACE,OAAOgB,YAAYA,CAACA,YAAsD,EAAE;IAC1E,IAAI,CAACD,MAAM,GAAG;MACZ,GAAG,IAAI,CAACA,MAAM;MACd,GAAGC;IACL,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAOC,aAAaA,CAACC,UAAkD,EAAE;IACvE,IAAI,IAAI,CAACH,MAAM,CAACI,IAAI,EAAE;MACpB;MACA;IACF;IACA,IAAI,CAACJ,MAAM,CAACI,IAAI,GAAGD,UAAU;IAC7B;IACA,IAAAE,oCAA2B,EAACF,UAAU,CAAC;EACzC;EAEA,OAAOG,SAASA,CAAA,EAAG;IACjB,OAAO,IAAI,CAACN,MAAM;EACpB;AACF;AAACO,OAAA,CAAAR,aAAA,GAAAA,aAAA"}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAG,OAAO;AAACC,OAAA,CAAAD,OAAA,GAAAA,OAAA"}
|
|
@@ -28,6 +28,7 @@ export const CallContent = _ref => {
|
|
|
28
28
|
ParticipantsInfoBadge,
|
|
29
29
|
VideoRenderer,
|
|
30
30
|
layout = 'grid',
|
|
31
|
+
supportedReactions,
|
|
31
32
|
landscape = true
|
|
32
33
|
} = _ref;
|
|
33
34
|
const [showRemoteParticipantInFloatingView, setShowRemoteParticipantInFloatingView] = useState(false);
|
|
@@ -86,13 +87,15 @@ export const CallContent = _ref => {
|
|
|
86
87
|
landscape,
|
|
87
88
|
showLocalParticipant: isRemoteParticipantInFloatingView,
|
|
88
89
|
ParticipantView,
|
|
89
|
-
CallParticipantsList
|
|
90
|
+
CallParticipantsList,
|
|
91
|
+
supportedReactions
|
|
90
92
|
};
|
|
91
93
|
const callParticipantsSpotlightProps = {
|
|
92
94
|
...participantViewProps,
|
|
93
95
|
landscape,
|
|
94
96
|
ParticipantView,
|
|
95
|
-
CallParticipantsList
|
|
97
|
+
CallParticipantsList,
|
|
98
|
+
supportedReactions
|
|
96
99
|
};
|
|
97
100
|
const landScapeStyles = {
|
|
98
101
|
flexDirection: landscape ? 'row' : 'column'
|
|
@@ -113,7 +116,8 @@ export const CallContent = _ref => {
|
|
|
113
116
|
ParticipantsInfoBadge: ParticipantsInfoBadge
|
|
114
117
|
}), showFloatingView && FloatingParticipantView && /*#__PURE__*/React.createElement(FloatingParticipantView, _extends({
|
|
115
118
|
participant: isRemoteParticipantInFloatingView ? remoteParticipants[0] : localParticipant,
|
|
116
|
-
onPressHandler: handleFloatingViewParticipantSwitch
|
|
119
|
+
onPressHandler: handleFloatingViewParticipantSwitch,
|
|
120
|
+
supportedReactions: supportedReactions
|
|
117
121
|
}, participantViewProps))), showSpotlightLayout ? /*#__PURE__*/React.createElement(CallParticipantsSpotlight, callParticipantsSpotlightProps) : /*#__PURE__*/React.createElement(CallParticipantsGrid, callParticipantsGridProps)), CallControls && /*#__PURE__*/React.createElement(CallControls, {
|
|
118
122
|
onHangupCallHandler: onHangupCallHandler,
|
|
119
123
|
landscape: landscape
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","useState","StyleSheet","View","CallTopView","DefaultCallTopView","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCall","useCallStateHooks","CallingState","useIncallManager","Z_INDEX","useDebouncedValue","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","CallContent","_ref","onBackPressed","onParticipantInfoPress","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","ParticipantsInfoBadge","VideoRenderer","layout","landscape","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","theme","callContent","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","_remoteParticipants","remoteParticipants","localParticipant","hasScreenShare","showSpotlightLayout","showFloatingView","length","isRemoteParticipantInFloatingView","media","auto","call","activeCallRef","current","handleFloatingViewParticipantSwitch","prevState","_activeCallRef$curren","state","callingState","LEFT","_activeCallRef$curren2","leave","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landScapeStyles","flexDirection","createElement","style","styles","container","callParticipantsContainer","view","topContainer","pointerEvents","_extends","participant","onPressHandler","create","flex","absoluteFillObject","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/CallContent.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SACEC,WAAW,IAAIC,kBAAkB,QAE5B,gBAAgB;AACvB,SACEC,oBAAoB,EAEpBC,yBAAyB,QAEpB,eAAe;AACtB,SAEEC,YAAY,IAAIC,mBAAmB,
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","useState","StyleSheet","View","CallTopView","DefaultCallTopView","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCall","useCallStateHooks","CallingState","useIncallManager","Z_INDEX","useDebouncedValue","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","CallContent","_ref","onBackPressed","onParticipantInfoPress","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","ParticipantsInfoBadge","VideoRenderer","layout","supportedReactions","landscape","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","theme","callContent","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","_remoteParticipants","remoteParticipants","localParticipant","hasScreenShare","showSpotlightLayout","showFloatingView","length","isRemoteParticipantInFloatingView","media","auto","call","activeCallRef","current","handleFloatingViewParticipantSwitch","prevState","_activeCallRef$curren","state","callingState","LEFT","_activeCallRef$curren2","leave","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landScapeStyles","flexDirection","createElement","style","styles","container","callParticipantsContainer","view","topContainer","pointerEvents","_extends","participant","onPressHandler","create","flex","absoluteFillObject","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/CallContent.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SACEC,WAAW,IAAIC,kBAAkB,QAE5B,gBAAgB;AACvB,SACEC,oBAAoB,EAEpBC,yBAAyB,QAEpB,eAAe;AACtB,SAEEC,YAAY,IAAIC,mBAAmB,QAE9B,iBAAiB;AACxB,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,YAAY,QAAwB,yBAAyB;AACtE,SAASC,gBAAgB,QAAQ,gBAAgB;AACjD,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,SACEC,uBAAuB,IAAIC,8BAA8B,QAGpD,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,mBAAmB;AAsD5C,OAAO,MAAMC,WAAW,GAAGC,IAAA,IAkBH;EAAA,IAlBI;IAC1BC,aAAa;IACbC,sBAAsB;IACtBC,mBAAmB;IACnBC,oBAAoB;IACpBpB,WAAW,GAAGC,kBAAkB;IAChCG,YAAY,GAAGC,mBAAmB;IAClCO,uBAAuB,GAAGC,8BAA8B;IACxDQ,gBAAgB;IAChBC,kCAAkC;IAClCC,mBAAmB;IACnBC,wBAAwB;IACxBC,eAAe;IACfC,qBAAqB;IACrBC,aAAa;IACbC,MAAM,GAAG,MAAM;IACfC,kBAAkB;IAClBC,SAAS,GAAG;EACI,CAAC,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WAAW;IACViB,aAAa,EAAEA,aAAc;IAC7BC,sBAAsB,EAAEA,sBAAuB;IAC/CQ,qBAAqB,EAAEA;EAAsB,CAC9C,CACF,EACAiB,gBAAgB,IAAI/B,uBAAuB,iBAC1ClB,KAAA,CAAAuE,aAAA,CAACrD,uBAAuB,EAAA6D,QAAA;IACtBC,WAAW,EACT7B,iCAAiC,GAC7BN,kBAAkB,CAAC,CAAC,CAAC,GACrBC,gBACL;IACDmC,cAAc,EAAExB,mCAAoC;IACpDtB,kBAAkB,EAAEA;EAAmB,GACnC8B,oBAAoB,CACzB,CAEC,CAAC,EACNjB,mBAAmB,gBAClBhD,KAAA,CAAAuE,aAAA,CAAC9D,yBAAyB,EAAK2D,8BAAiC,CAAC,gBAEjEpE,KAAA,CAAAuE,aAAA,CAAC/D,oBAAoB,EAAK0D,yBAA4B,CAEpD,CAAC,EAENxD,YAAY,iBACXV,KAAA,CAAAuE,aAAA,CAAC7D,YAAY;IACXe,mBAAmB,EAAEA,mBAAoB;IACzCW,SAAS,EAAEA;EAAU,CACtB,CAEC,CAAC;AAEX,CAAC;AAED,MAAMqC,MAAM,GAAGrE,UAAU,CAAC8E,MAAM,CAAC;EAC/BR,SAAS,EAAE;IAAES,IAAI,EAAE;EAAE,CAAC;EACtBP,IAAI,EAAE;IACJ,GAAGxE,UAAU,CAACgF,kBAAkB;IAChCC,MAAM,EAAErE,OAAO,CAACsE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","ToggleAudioPublishingButton","ToggleVideoPublishingButton","ToggleCameraFaceButton","Z_INDEX","HangUpCallButton","useTheme","CallControls","_ref","style","onHangupCallHandler","landscape","theme","colors","callControls","landScapeStyles","flexDirection","paddingHorizontal","paddingVertical","createElement","styles","container","backgroundColor","static_grey","create","justifyContent","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/CallControls.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAA8B,cAAc;AACrE,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,sBAAsB,QAAQ,0BAA0B;AACjE,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,gBAAgB,
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ToggleAudioPublishingButton","ToggleVideoPublishingButton","ToggleCameraFaceButton","Z_INDEX","HangUpCallButton","useTheme","CallControls","_ref","style","onHangupCallHandler","landscape","theme","colors","callControls","landScapeStyles","flexDirection","paddingHorizontal","paddingVertical","createElement","styles","container","backgroundColor","static_grey","create","justifyContent","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/CallControls.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAA8B,cAAc;AACrE,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,sBAAsB,QAAQ,0BAA0B;AACjE,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,gBAAgB,QAA+B,oBAAoB;AAC5E,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAGC,IAAA,IAIJ;EAAA,IAJK;IAC3BC,KAAK;IACLC,mBAAmB;IACnBC;EACgB,CAAC,GAAAH,IAAA;EACjB,MAAM;IACJI,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAa;EAChC,CAAC,GAAGR,QAAQ,CAAC,CAAC;EACd,MAAMS,eAA0B,GAAG;IACjCC,aAAa,EAAEL,SAAS,GAAG,gBAAgB,GAAG,KAAK;IACnDM,iBAAiB,EAAEN,SAAS,GAAG,EAAE,GAAG,CAAC;IACrCO,eAAe,EAAEP,SAAS,GAAG,CAAC,GAAG;EACnC,CAAC;EACD,oBACEb,KAAA,CAAAqB,aAAA,CAACnB,IAAI;IACHS,KAAK,EAAE,CACLW,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAET,MAAM,CAACU;IAAY,CAAC,EACvCT,YAAY,CAACO,SAAS,EACtBN,eAAe,EACfN,KAAK;EACL,gBAEFX,KAAA,CAAAqB,aAAA,CAACjB,2BAA2B,MAAE,CAAC,eAC/BJ,KAAA,CAAAqB,aAAA,CAAClB,2BAA2B,MAAE,CAAC,eAC/BH,KAAA,CAAAqB,aAAA,CAAChB,sBAAsB,MAAE,CAAC,eAC1BL,KAAA,CAAAqB,aAAA,CAACd,gBAAgB;IAACK,mBAAmB,EAAEA;EAAoB,CAAE,CACzD,CAAC;AAEX,CAAC;AAED,MAAMU,MAAM,GAAGrB,UAAU,CAACyB,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,cAAc,EAAE,cAAc;IAC9BC,MAAM,EAAEtB,OAAO,CAACuB;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { OwnCapability } from '@stream-io/video-client';
|
|
|
5
5
|
import { ButtonTestIds } from '../../../constants/TestIds';
|
|
6
6
|
import { Reaction } from '../../../icons';
|
|
7
7
|
import { ReactionsPicker } from './internal/ReactionsPicker';
|
|
8
|
-
import { StreamVideoRN } from '../../../utils';
|
|
9
8
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -16,8 +15,9 @@ import { useTheme } from '../../../contexts/ThemeContext';
|
|
|
16
15
|
* Button to display the list of Reactions supported in the call.
|
|
17
16
|
* On press, it opens a view that can be used to send Reaction.
|
|
18
17
|
*/
|
|
19
|
-
export const
|
|
18
|
+
export const ReactionsButton = _ref => {
|
|
20
19
|
let {
|
|
20
|
+
supportedReactions,
|
|
21
21
|
onPressHandler
|
|
22
22
|
} = _ref;
|
|
23
23
|
const [showReactionsPicker, setShowReactionsPicker] = useState(false);
|
|
@@ -37,7 +37,7 @@ export const ReactionButton = _ref => {
|
|
|
37
37
|
return layout;
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
const
|
|
40
|
+
const reactionsButtonHandler = () => {
|
|
41
41
|
if (onPressHandler) {
|
|
42
42
|
onPressHandler();
|
|
43
43
|
return;
|
|
@@ -48,16 +48,16 @@ export const ReactionButton = _ref => {
|
|
|
48
48
|
requiredGrants: [OwnCapability.CREATE_REACTION]
|
|
49
49
|
}, /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
50
50
|
testID: ButtonTestIds.REACTION,
|
|
51
|
-
onPress:
|
|
51
|
+
onPress: reactionsButtonHandler,
|
|
52
52
|
onLayout: onReactionsButtonLayout
|
|
53
53
|
}, /*#__PURE__*/React.createElement(Reaction, {
|
|
54
54
|
color: colors.static_black
|
|
55
55
|
}))), showReactionsPicker && /*#__PURE__*/React.createElement(ReactionsPicker, {
|
|
56
|
-
|
|
56
|
+
supportedReactions: supportedReactions,
|
|
57
57
|
reactionsButtonLayoutRectangle: reactionsButtonLayoutRectangle,
|
|
58
58
|
onRequestedClose: () => {
|
|
59
59
|
setShowReactionsPicker(false);
|
|
60
60
|
}
|
|
61
61
|
}));
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=
|
|
63
|
+
//# sourceMappingURL=ReactionsButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Restricted","React","useState","CallControlsButton","OwnCapability","ButtonTestIds","Reaction","ReactionsPicker","useTheme","ReactionsButton","_ref","supportedReactions","onPressHandler","showReactionsPicker","setShowReactionsPicker","reactionsButtonLayoutRectangle","setReactionsButtonLayoutRectangle","theme","colors","onReactionsButtonLayout","event","layout","nativeEvent","prev","width","height","x","y","reactionsButtonHandler","createElement","Fragment","requiredGrants","CREATE_REACTION","testID","REACTION","onPress","onLayout","color","static_black","onRequestedClose"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ReactionsButton.tsx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E,sBAAsB,CAAC,IAAI,CAAC;EAC9B,CAAC;EAED,oBACEb,KAAA,CAAA4B,aAAA,CAAA5B,KAAA,CAAA6B,QAAA,qBACE7B,KAAA,CAAA4B,aAAA,CAAC7B,UAAU;IAAC+B,cAAc,EAAE,CAAC3B,aAAa,CAAC4B,eAAe;EAAE,gBAC1D/B,KAAA,CAAA4B,aAAA,CAAC1B,kBAAkB;IACjB8B,MAAM,EAAE5B,aAAa,CAAC6B,QAAS;IAC/BC,OAAO,EAAEP,sBAAuB;IAChCQ,QAAQ,EAAEjB;EAAwB,gBAElClB,KAAA,CAAA4B,aAAA,CAACvB,QAAQ;IAAC+B,KAAK,EAAEnB,MAAM,CAACoB;EAAa,CAAE,CACrB,CACV,CAAC,EACZzB,mBAAmB,iBAClBZ,KAAA,CAAA4B,aAAA,CAACtB,eAAe;IACdI,kBAAkB,EAAEA,kBAAmB;IACvCI,8BAA8B,EAAEA,8BAA+B;IAC/DwB,gBAAgB,EAAEA,CAAA,KAAM;MACtBzB,sBAAsB,CAAC,KAAK,CAAC;IAC/B;EAAE,CACH,CAEH,CAAC;AAEP,CAAC"}
|
|
@@ -7,7 +7,7 @@ export * from './ToggleAudioPublishingButton';
|
|
|
7
7
|
export * from './ToggleVideoPublishingButton';
|
|
8
8
|
export * from './ToggleCameraFaceButton';
|
|
9
9
|
export * from './ChatButton';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './ReactionsButton';
|
|
11
11
|
export * from './CallControls';
|
|
12
12
|
export * from './LobbyControls';
|
|
13
13
|
export * from './IncomingCallControls';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AACxC,cAAc,cAAc;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AACxC,cAAc,cAAc;AAC5B,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,wBAAwB"}
|
|
@@ -3,11 +3,12 @@ import { Pressable, StyleSheet, Animated, Easing } from 'react-native';
|
|
|
3
3
|
import { useCall } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { ComponentTestIds } from '../../../../constants/TestIds';
|
|
5
5
|
import { useTheme } from '../../../../contexts/ThemeContext';
|
|
6
|
+
import { defaultEmojiReactions } from '../../../../constants';
|
|
6
7
|
const TOP_PADDING = 4;
|
|
7
8
|
const REACTION_MARGIN_BOTTOM = 4;
|
|
8
9
|
export const ReactionsPicker = _ref => {
|
|
9
10
|
let {
|
|
10
|
-
|
|
11
|
+
supportedReactions = defaultEmojiReactions,
|
|
11
12
|
reactionsButtonLayoutRectangle,
|
|
12
13
|
onRequestedClose
|
|
13
14
|
} = _ref;
|
|
@@ -24,9 +25,9 @@ export const ReactionsPicker = _ref => {
|
|
|
24
25
|
// the top padding
|
|
25
26
|
TOP_PADDING +
|
|
26
27
|
// take margins into account
|
|
27
|
-
REACTION_MARGIN_BOTTOM *
|
|
28
|
+
REACTION_MARGIN_BOTTOM * supportedReactions.length +
|
|
28
29
|
// the size of the reaction icon items (same size as reactions button * amount of reactions)
|
|
29
|
-
reactionItemSize *
|
|
30
|
+
reactionItemSize * supportedReactions.length;
|
|
30
31
|
const reactionsPopupStyle = {
|
|
31
32
|
// we should show the popup right above the reactions button and not top of it
|
|
32
33
|
top: ((reactionsButtonLayoutRectangle === null || reactionsButtonLayoutRectangle === void 0 ? void 0 : reactionsButtonLayoutRectangle.y) ?? 0) - popupHeight,
|
|
@@ -84,17 +85,17 @@ export const ReactionsPicker = _ref => {
|
|
|
84
85
|
onPress: () => {
|
|
85
86
|
onClose();
|
|
86
87
|
}
|
|
87
|
-
},
|
|
88
|
-
key:
|
|
88
|
+
}, supportedReactions.map(supportedReaction => /*#__PURE__*/React.createElement(Pressable, {
|
|
89
|
+
key: supportedReaction.emoji_code,
|
|
89
90
|
style: [styles.reactionItem, reactionItemStyle, {
|
|
90
91
|
// temporary background color until we have theming
|
|
91
92
|
backgroundColor: colors.overlay
|
|
92
93
|
}, reactionsPicker.reactionItem],
|
|
93
94
|
onPress: () => {
|
|
94
95
|
onClose({
|
|
95
|
-
type:
|
|
96
|
-
custom:
|
|
97
|
-
emoji_code:
|
|
96
|
+
type: supportedReaction.type,
|
|
97
|
+
custom: supportedReaction.custom,
|
|
98
|
+
emoji_code: supportedReaction.emoji_code
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
}, /*#__PURE__*/React.createElement(Animated.Text, {
|
|
@@ -105,7 +106,7 @@ export const ReactionsPicker = _ref => {
|
|
|
105
106
|
scaleX: elasticAnimRef.current
|
|
106
107
|
}]
|
|
107
108
|
}, reactionsPicker.reactionText]
|
|
108
|
-
},
|
|
109
|
+
}, supportedReaction.icon)))), /*#__PURE__*/React.createElement(Pressable, {
|
|
109
110
|
style: [reactionsButtonDimmerStyle, {
|
|
110
111
|
backgroundColor: colors.static_grey
|
|
111
112
|
}, reactionsPicker.reactionsButtonDimmer],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","Pressable","StyleSheet","Animated","Easing","useCall","ComponentTestIds","useTheme","TOP_PADDING","REACTION_MARGIN_BOTTOM","ReactionsPicker","_ref","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","Pressable","StyleSheet","Animated","Easing","useCall","ComponentTestIds","useTheme","defaultEmojiReactions","TOP_PADDING","REACTION_MARGIN_BOTTOM","ReactionsPicker","_ref","supportedReactions","reactionsButtonLayoutRectangle","onRequestedClose","theme","colors","reactionsPicker","call","size","width","reactionItemSize","popupHeight","length","reactionsPopupStyle","top","y","left","x","height","borderTopStartRadius","borderTopEndRadius","elasticAnimRef","Value","timing","current","toValue","duration","useNativeDriver","easing","elastic","start","reactionItemStyle","borderRadius","reactionsButtonDimmerStyle","styles","reactionsButtonDimmer","onClose","reaction","sendReaction","catch","e","console","error","linear","createElement","Fragment","testID","REACTIONS_PICKER","style","reactionsPopup","backgroundColor","static_grey","onPress","map","supportedReaction","key","emoji_code","reactionItem","overlay","type","custom","Text","reactionText","transform","scaleY","scaleX","icon","create","position","alignItems","paddingTop","opacity","justifyContent","marginBottom","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Call/CallControls/internal/ReactionsPicker.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAEEC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,MAAM,QACD,cAAc;AACrB,SAASC,OAAO,QAAQ,iCAAiC;AAEzD,SAASC,gBAAgB,QAAQ,+BAA+B;AAChE,SAASC,QAAQ,QAAQ,mCAAmC;AAE5D,SAASC,qBAAqB,QAAQ,uBAAuB;AAO7D,MAAMC,WAAW,GAAG,CAAC;AACrB,MAAMC,sBAAsB,GAAG,CAAC;AAEhC,OAAO,MAAMC,eAAe,GAAGC,IAAA,IAIJ;EAAA,IAJK;IAC9BC,kBAAkB,GAAGL,qBAAqB;IAC1CM,8BAA8B;IAC9BC;EACmB,CAAC,GAAAH,IAAA;EACpB,MAAM;IACJI,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAgB;EACnC,CAAC,GAAGX,QAAQ,CAAC,CAAC;EACd,MAAMY,IAAI,GAAGd,OAAO,CAAC,CAAC;EACtB,MAAMe,IAAI,GAAG,CA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cAAc,EAAE,QAAQ;IACxBC,YAAY,EAAE3E;EAChB,CAAC;EACDgE,YAAY,EAAE;IACZY,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC"}
|
|
@@ -24,6 +24,7 @@ export const CallParticipantsGrid = _ref => {
|
|
|
24
24
|
ParticipantView,
|
|
25
25
|
VideoRenderer,
|
|
26
26
|
showLocalParticipant = false,
|
|
27
|
+
supportedReactions,
|
|
27
28
|
landscape
|
|
28
29
|
} = _ref;
|
|
29
30
|
const {
|
|
@@ -63,6 +64,7 @@ export const CallParticipantsGrid = _ref => {
|
|
|
63
64
|
testID: ComponentTestIds.CALL_PARTICIPANTS_GRID
|
|
64
65
|
}, CallParticipantsList && /*#__PURE__*/React.createElement(CallParticipantsList, _extends({
|
|
65
66
|
participants: participants,
|
|
67
|
+
supportedReactions: supportedReactions,
|
|
66
68
|
landscape: landscape
|
|
67
69
|
}, participantViewProps)));
|
|
68
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","CallParticipantsGrid","_ref","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","landscape","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","_remoteParticipants","localParticipant","_allParticipants","remoteParticipants","allParticipants","landScapeStyles","flexDirection","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","dark_gray","testID","CALL_PARTICIPANTS_GRID","_extends","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SACEC,oBAAoB,IAAIC,2BAA2B,
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","CallParticipantsGrid","_ref","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","_remoteParticipants","localParticipant","_allParticipants","remoteParticipants","allParticipants","landScapeStyles","flexDirection","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","dark_gray","testID","CALL_PARTICIPANTS_GRID","_extends","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,QAAQ,QAAQ,gCAAgC;;AAIzD;AACA;AACA;;AAeA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGC,IAAA,IAWH;EAAA,IAXI;IACnCL,oBAAoB,GAAGC,2BAA2B;IAClDK,gBAAgB;IAChBC,kCAAkC;IAClCC,mBAAmB;IACnBC,wBAAwB;IACxBC,eAAe;IACfC,aAAa;IACbC,oBAAoB,GAAG,KAAK;IAC5BC,kBAAkB;IAClBC;EACyB,CAAC,GAAAT,IAAA;EAC1B,MAAM;IACJU,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAqB;EACxC,CAAC,GAAGd,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEe,qBAAqB;IAAEC,eAAe;IAAEC;EAAoB,CAAC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UAAU,CAAC6C,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
|
|
@@ -28,6 +28,7 @@ export const CallParticipantsSpotlight = _ref => {
|
|
|
28
28
|
ParticipantVideoFallback,
|
|
29
29
|
ParticipantView = DefaultParticipantView,
|
|
30
30
|
VideoRenderer,
|
|
31
|
+
supportedReactions,
|
|
31
32
|
landscape
|
|
32
33
|
} = _ref;
|
|
33
34
|
const {
|
|
@@ -71,11 +72,13 @@ export const CallParticipantsSpotlight = _ref => {
|
|
|
71
72
|
}, participantInSpotlight && ParticipantView && /*#__PURE__*/React.createElement(ParticipantView, _extends({
|
|
72
73
|
participant: participantInSpotlight,
|
|
73
74
|
style: isUserAloneInCall ? [styles.fullScreenSpotlightContainer, callParticipantsSpotlight.fullScreenSpotlightContainer] : [styles.spotlightContainer, spotlightContainerLandscapeStyles, callParticipantsSpotlight.spotlightContainer],
|
|
74
|
-
trackType: isScreenShareOnSpotlight ? 'screenShareTrack' : 'videoTrack'
|
|
75
|
+
trackType: isScreenShareOnSpotlight ? 'screenShareTrack' : 'videoTrack',
|
|
76
|
+
supportedReactions: supportedReactions
|
|
75
77
|
}, participantViewProps)), !isUserAloneInCall && /*#__PURE__*/React.createElement(View, {
|
|
76
78
|
style: [styles.callParticipantsListContainer, callParticipantsSpotlight.callParticipantsListContainer]
|
|
77
79
|
}, CallParticipantsList && /*#__PURE__*/React.createElement(CallParticipantsList, _extends({
|
|
78
80
|
participants: isScreenShareOnSpotlight ? allParticipants : otherParticipants,
|
|
81
|
+
supportedReactions: supportedReactions,
|
|
79
82
|
horizontal: !landscape,
|
|
80
83
|
numberOfColumns: !landscape ? 2 : 1,
|
|
81
84
|
landscape: landscape
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","SfuModels","speakerLayoutSortPreset","useCallStateHooks","StyleSheet","View","useDebouncedValue","ComponentTestIds","CallParticipantsList","DefaultCallParticipantsList","ParticipantView","DefaultParticipantView","useTheme","hasScreenShare","p","publishedTracks","includes","TrackType","SCREEN_SHARE","CallParticipantsSpotlight","_ref","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","landscape","theme","colors","callParticipantsSpotlight","useParticipants","_allParticipants","sortBy","allParticipants","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","length","participantViewProps","callParticipantsListProps","landScapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","createElement","testID","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","_extends","participant","fullScreenSpotlightContainer","spotlightContainer","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,SAAS,EACTC,uBAAuB,QAElB,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,oBAAoB,IAAIC,2BAA2B,
|
|
1
|
+
{"version":3,"names":["React","SfuModels","speakerLayoutSortPreset","useCallStateHooks","StyleSheet","View","useDebouncedValue","ComponentTestIds","CallParticipantsList","DefaultCallParticipantsList","ParticipantView","DefaultParticipantView","useTheme","hasScreenShare","p","publishedTracks","includes","TrackType","SCREEN_SHARE","CallParticipantsSpotlight","_ref","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","theme","colors","callParticipantsSpotlight","useParticipants","_allParticipants","sortBy","allParticipants","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","length","participantViewProps","callParticipantsListProps","landScapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","createElement","testID","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","_extends","participant","fullScreenSpotlightContainer","spotlightContainer","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,SAAS,EACTC,uBAAuB,QAElB,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SACEC,eAAe,IAAIC,sBAAsB,QAEpC,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,gCAAgC;;AAGzD;AACA;AACA;;AAWA,MAAMC,cAAc,GAAIC,CAAyB,IAC/CA,CAAC,CAACC,eAAe,CAACC,QAAQ,CAACf,SAAS,CAACgB,SAAS,CAACC,YAAY,CAAC;;AAE9D;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAGC,IAAA,IAUH;EAAA,IAVI;IACxCZ,oBAAoB,GAAGC,2BAA2B;IAClDY,gBAAgB;IAChBC,kCAAkC;IAClCC,mBAAmB;IACnBC,wBAAwB;IACxBd,eAAe,GAAGC,sBAAsB;IACxCc,aAAa;IACbC,kBAAkB;IAClBC;EAC8B,CAAC,GAAAP,IAAA;EAC/B,MAAM;IACJQ,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAA0B;EAC7C,CAAC,GAAGlB,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEmB;EAAgB,CAAC,GAAG5B,iBAAiB,CAAC,CAAC;EAC/C,MAAM6B,gBAAgB,GAAGD,eAAe,CAA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CAEnD;IACDC,SAAS,EACPrB,wBAAwB,GAAG,kBAAkB,GAAG,YACjD;IACDX,kBAAkB,EAAEA;EAAmB,GACnCc,oBAAoB,CACzB,CACF,EACA,CAACF,iBAAiB,iBACjBtC,KAAA,CAAA8C,aAAA,CAACzC,IAAI;IACH4C,KAAK,EAAE,CACLC,MAAM,CAACS,6BAA6B,EACpC7B,yBAAyB,CAAC6B,6BAA6B;EACvD,GAEDnD,oBAAoB,iBACnBR,KAAA,CAAA8C,aAAA,CAACtC,oBAAoB,EAAA8C,QAAA;IACnBM,YAAY,EACVvB,wBAAwB,GAAGH,eAAe,GAAGE,iBAC9C;IACDV,kBAAkB,EAAEA,kBAAmB;IACvCmC,UAAU,EAAE,CAAClC,SAAU;IACvBmC,eAAe,EAAE,CAACnC,SAAS,GAAG,CAAC,GAAG,CAAE;IACpCA,SAAS,EAAEA;EAAU,GACjBc,yBAAyB,CAC9B,CAEC,CAEJ,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAG9C,UAAU,CAAC2D,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,IAAI,EAAE;EACR,CAAC;EACDR,4BAA4B,EAAE;IAC5BQ,IAAI,EAAE;EACR,CAAC;EACDP,kBAAkB,EAAE;IAClBO,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,EAAE;IAChBrB,gBAAgB,EAAE;EACpB,CAAC;EACDc,6BAA6B,EAAE;IAC7BK,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
|
|
@@ -32,6 +32,7 @@ export const CallParticipantsList = _ref => {
|
|
|
32
32
|
ParticipantReaction,
|
|
33
33
|
ParticipantVideoFallback,
|
|
34
34
|
VideoRenderer,
|
|
35
|
+
supportedReactions,
|
|
35
36
|
landscape
|
|
36
37
|
} = _ref;
|
|
37
38
|
const [containerLayout, setContainerLayout] = useState({
|
|
@@ -148,7 +149,8 @@ export const CallParticipantsList = _ref => {
|
|
|
148
149
|
participant: participant,
|
|
149
150
|
style: itemContainerStyle,
|
|
150
151
|
trackType: "videoTrack",
|
|
151
|
-
isVisible: isVisible
|
|
152
|
+
isVisible: isVisible,
|
|
153
|
+
supportedReactions: supportedReactions
|
|
152
154
|
}, participantProps)));
|
|
153
155
|
},
|
|
154
156
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -163,7 +165,8 @@ export const CallParticipantsList = _ref => {
|
|
|
163
165
|
participant: participant,
|
|
164
166
|
style: styles.flexed,
|
|
165
167
|
trackType: "videoTrack",
|
|
166
|
-
key: keyExtractor(participant, index)
|
|
168
|
+
key: keyExtractor(participant, index),
|
|
169
|
+
supportedReactions: supportedReactions
|
|
167
170
|
}, participantProps));
|
|
168
171
|
}));
|
|
169
172
|
}
|