@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","useReducer","useRef","useState","FlatList","StyleSheet","VisibilityState","useDebouncedValue","useCall","ComponentTestIds","ParticipantView","DefaultParticipantView","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","_ref","numberOfColumns","horizontal","participants","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","landscape","containerLayout","setContainerLayout","width","height","viewableParticipantSessionIds","Set","_forceUpdateValue","forceUpdate","x","forceUpdateValue","activeCall","activeCallRef","current","onViewableItemsChanged","_ref2","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","v","key","oldVisibleParticipantSessionIds","forEach","has","viewportVisibilityState","videoTrack","VISIBLE","screenShareTrack","UNKNOWN","_activeCallRef$curren","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","length","itemContainerStyle","style","styles","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","_ref3","participant","isVisible","createElement","Fragment","_extends","trackType","shouldWrapByColumns","index","flexed","undefined","data","viewabilityConfig","numColumns","showsHorizontalScrollIndicator","extraData","testID","CALL_PARTICIPANTS_LIST","create","flex","marginHorizontal","borderRadius","_ref4"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,OAAO,EACPC,UAAU,EACVC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,QAAQ,EAAaC,UAAU,QAAmB,cAAc;AAEzE,SAIEC,eAAe,QACV,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,eAAe,IAAIC,sBAAsB,QAGpC,mCAAmC;
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useReducer","useRef","useState","FlatList","StyleSheet","VisibilityState","useDebouncedValue","useCall","ComponentTestIds","ParticipantView","DefaultParticipantView","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","_ref","numberOfColumns","horizontal","participants","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","containerLayout","setContainerLayout","width","height","viewableParticipantSessionIds","Set","_forceUpdateValue","forceUpdate","x","forceUpdateValue","activeCall","activeCallRef","current","onViewableItemsChanged","_ref2","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","v","key","oldVisibleParticipantSessionIds","forEach","has","viewportVisibilityState","videoTrack","VISIBLE","screenShareTrack","UNKNOWN","_activeCallRef$curren","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","length","itemContainerStyle","style","styles","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","_ref3","participant","isVisible","createElement","Fragment","_extends","trackType","shouldWrapByColumns","index","flexed","undefined","data","viewabilityConfig","numColumns","showsHorizontalScrollIndicator","extraData","testID","CALL_PARTICIPANTS_LIST","create","flex","marginHorizontal","borderRadius","_ref4"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,OAAO,EACPC,UAAU,EACVC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,QAAQ,EAAaC,UAAU,QAAmB,cAAc;AAEzE,SAIEC,eAAe,QACV,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,eAAe,IAAIC,sBAAsB,QAGpC,mCAAmC;AAO1C,MAAMC,kBAAsD,GAAG;EAC7DC,kBAAkB,EAAE,KAAK;EACzBC,2BAA2B,EAAE;AAC/B,CAAC;;AAUD;AACA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGC,IAAA,IAYH;EAAA,IAZI;IACnCC,eAAe,GAAG,CAAC;IACnBC,UAAU;IACVC,YAAY;IACZT,eAAe,GAAGC,sBAAsB;IACxCS,gBAAgB;IAChBC,kCAAkC;IAClCC,mBAAmB;IACnBC,wBAAwB;IACxBC,aAAa;IACbC,kBAAkB;IAClBC;EACyB,CAAC,GAAAV,IAAA;EAC1B,MAAM,CAACW,eAAe,EAAEC,kBAAkB,CAAC,GAAGzB,QAAQ,CAAC;IACrD0B,KAAK,EAAE,CAAC;IACR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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASjC,4BAA4BA,CAAAkC,KAAA,EAYlC;EAAA,IAZmC;IACpCjC,eAAe;IACfC,cAAc;IACdC,kBAAkB;IAClBxD,eAAe;IACfC;EAOF,CAAC,GAAAsF,KAAA;EACC,IAAIpC,UAAU,GAAGG,eAAe;EAChC;EACA,IAAI,CAACrD,UAAU,EAAE;IACf,IAAIuD,kBAAkB,IAAI,CAAC,EAAE;MAC3B;MACAL,UAAU,GAAGG,eAAe,GAAG,CAAC;IAClC,CAAC,MAAM;MACL;MACAH,UAAU,GAAGG,eAAe,GAAG,CAAC;IAClC;EACF;EAEA,IAAIF,SAAS,GAAGG,cAAc,GAAGvD,eAAe;EAChD,IAAIC,UAAU,EAAE;IACd;IACAmD,SAAS,GAAGA,SAAS,GAAG,CAAC,GAAG,CAAC;EAC/B;EAEA,OAAO;IAAED,UAAU;IAAEC;EAAU,CAAC;AAClC"}
|
|
@@ -49,7 +49,8 @@ export const FloatingParticipantView = _ref => {
|
|
|
49
49
|
ParticipantView = DefaultParticipantView,
|
|
50
50
|
ParticipantNetworkQualityIndicator,
|
|
51
51
|
ParticipantReaction,
|
|
52
|
-
VideoRenderer
|
|
52
|
+
VideoRenderer,
|
|
53
|
+
supportedReactions
|
|
53
54
|
} = _ref;
|
|
54
55
|
const {
|
|
55
56
|
theme: {
|
|
@@ -112,7 +113,8 @@ export const FloatingParticipantView = _ref => {
|
|
|
112
113
|
// video z order must be one above the one used in grid view
|
|
113
114
|
// (which uses the default: 0)
|
|
114
115
|
,
|
|
115
|
-
videoZOrder: 1
|
|
116
|
+
videoZOrder: 1,
|
|
117
|
+
supportedReactions: supportedReactions
|
|
116
118
|
}, participantViewProps)))));
|
|
117
119
|
};
|
|
118
120
|
const styles = StyleSheet.create({
|
|
@@ -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","_ref","alignment","onPressHandler","participant","ParticipantNetworkQualityIndicator","ParticipantReaction","VideoRenderer","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","static_grey","shadowColor","static_black","videoZOrder","create","margin","zIndex","IN_MIDDLE","flex","borderRadius","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","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;
|
|
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","_ref","alignment","onPressHandler","participant","ParticipantNetworkQualityIndicator","ParticipantReaction","VideoRenderer","supportedReactions","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","static_grey","shadowColor","static_black","videoZOrder","create","margin","zIndex","IN_MIDDLE","flex","borderRadius","shadowOffset","shadowOpacity","shadowRadius","elevation","borderWidth","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,QAEpC,oBAAoB;AAC3B,SAASC,QAAQ,QAAQ,gCAAgC;;AASzD;AACA;AACA;;AAuBA,MAAMC,uCAAuC,GAAGA,CAAA,KAAM;EACpD,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC;MAAU;IACxB;EACF,CAAC,GAAGN,QAAQ,CAAC,CAAC;EAEd,oBACEZ,KAAA,CAAAmB,aAAA,CAAChB,IAAI;IACHiB,KAAK,EAAE,CACLC,MAAM,CAACC,aAAa,EACpB;MAAEC,eAAe,EAAER,MAAM,CAACS;IAAS,CAAC,EACpCR,wBAAwB,CAACM,aAAa;EACtC,gBAEFtB,KAAA,CAAAmB,aAAA,CAAChB,IAAI;IAACiB,KAAK,EAAE;MAAEK,MAAM,EAAEP,SAAS,CAACQ,EAAE;MAAEC,KAAK,EAAET,SAAS,CAACQ;IAAG;EAAE,gBACzD1B,KAAA,CAAA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qB,MAAM;IACxCE,KAAK,EAAEvB,yBAAyB,CAACuB,KAAK;IACtCgD,YAAY,EAAEvE,yBAAyB,CAACuE,YAAY;IACpDC,YAAY,EAAE;MACZjD,KAAK,EAAE,CAAC;MACRF,MAAM,EAAE;IACV,CAAC;IACDoD,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,IAAI;IAClBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE;EACf,CAAC;EACD1D,aAAa,EAAE;IACb,GAAGpB,UAAU,CAAC+E,kBAAkB;IAChCC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React, { useEffect
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import { useCall } from '@stream-io/video-react-bindings';
|
|
4
|
-
import {
|
|
5
|
-
import { Z_INDEX } from '../../../constants';
|
|
4
|
+
import { Z_INDEX, defaultEmojiReactions } from '../../../constants';
|
|
6
5
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -15,11 +14,9 @@ import { useTheme } from '../../../contexts/ThemeContext';
|
|
|
15
14
|
export const ParticipantReaction = _ref => {
|
|
16
15
|
let {
|
|
17
16
|
participant,
|
|
17
|
+
supportedReactions = defaultEmojiReactions,
|
|
18
18
|
hideAfterTimeoutInMs = 5500
|
|
19
19
|
} = _ref;
|
|
20
|
-
const {
|
|
21
|
-
supportedReactions
|
|
22
|
-
} = StreamVideoRN.getConfig();
|
|
23
20
|
const {
|
|
24
21
|
reaction,
|
|
25
22
|
sessionId
|
|
@@ -34,13 +31,10 @@ export const ParticipantReaction = _ref => {
|
|
|
34
31
|
participantReaction
|
|
35
32
|
}
|
|
36
33
|
} = useTheme();
|
|
37
|
-
const [isShowing, setIsShowing] = useState(false);
|
|
38
34
|
useEffect(() => {
|
|
39
35
|
let timeoutId;
|
|
40
36
|
if (call) {
|
|
41
|
-
setIsShowing(true);
|
|
42
37
|
timeoutId = setTimeout(() => {
|
|
43
|
-
setIsShowing(false);
|
|
44
38
|
call.resetReaction(sessionId);
|
|
45
39
|
}, hideAfterTimeoutInMs);
|
|
46
40
|
}
|
|
@@ -49,22 +43,14 @@ export const ParticipantReaction = _ref => {
|
|
|
49
43
|
};
|
|
50
44
|
}, [call, hideAfterTimeoutInMs, sessionId, reaction]);
|
|
51
45
|
const currentReaction = reaction && supportedReactions.find(supportedReaction => supportedReaction.emoji_code === reaction.emoji_code);
|
|
52
|
-
let component;
|
|
53
|
-
if (isShowing) {
|
|
54
|
-
if (typeof (currentReaction === null || currentReaction === void 0 ? void 0 : currentReaction.icon) !== 'string') {
|
|
55
|
-
component = currentReaction === null || currentReaction === void 0 ? void 0 : currentReaction.icon;
|
|
56
|
-
} else {
|
|
57
|
-
component = /*#__PURE__*/React.createElement(Text, {
|
|
58
|
-
style: [participantReaction.reaction, typefaces.heading6]
|
|
59
|
-
}, currentReaction.icon);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
46
|
return /*#__PURE__*/React.createElement(View, {
|
|
63
47
|
style: [styles.container, {
|
|
64
48
|
height: iconSizes.md,
|
|
65
49
|
width: iconSizes.md
|
|
66
50
|
}, participantReaction.container]
|
|
67
|
-
},
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
style: [participantReaction.reaction, typefaces.heading6]
|
|
53
|
+
}, currentReaction === null || currentReaction === void 0 ? void 0 : currentReaction.icon));
|
|
68
54
|
};
|
|
69
55
|
const styles = StyleSheet.create({
|
|
70
56
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","
|
|
1
|
+
{"version":3,"names":["React","useEffect","StyleSheet","Text","View","useCall","Z_INDEX","defaultEmojiReactions","useTheme","ParticipantReaction","_ref","participant","supportedReactions","hideAfterTimeoutInMs","reaction","sessionId","call","theme","typefaces","variants","iconSizes","participantReaction","timeoutId","setTimeout","resetReaction","clearTimeout","currentReaction","find","supportedReaction","emoji_code","createElement","style","styles","container","height","md","width","heading6","icon","create","alignSelf","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantReaction.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,OAAO,EAAEC,qBAAqB,QAAQ,oBAAoB;AAEnE,SAASC,QAAQ,QAAQ,gCAAgC;;AAGzD;AACA;AACA;;AAcA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAGC,IAAA,IAIH;EAAA,IAJI;IAClCC,WAAW;IACXC,kBAAkB,GAAGL,qBAAqB;IAC1CM,oBAAoB,GAAG;EACC,CAAC,GAAAH,IAAA;EACzB,MAAM;IAAEI,QAAQ;IAAEC;EAAU,CAAC,GAAGJ,WAAW;EAC3C,MAAMK,IAAI,GAAGX,OAAO,CAAC,CAAC;EACtB,MAAM;IACJY,KAAK,EAAE;MACLC,SAAS;MACTC,QAAQ,EAAE;QAAEC;MAAU,CAAC;MACvBC;IACF;EACF,CAAC,GAAGb,QAAQ,CAAC,CAAC;EAEdP,SAAS,CAAC,MAAM;IACd,IAAIqB,SAAyB;IAC7B,IAAIN,IAAI,EAAE;MACRM,SAAS,GAAGC,UAAU,CAAC,MAAM;QAC3BP,IAAI,CAACQ,aAAa,CAACT,SAAS,CAAC;MAC/B,CAAC,EAAEF,oBAAoB,CAAC;IAC1B;IACA,OAAO,MAAM;MACXY,YAAY,CAACH,SAAS,CAAC;IACzB,CAAC;EACH,CAAC,EAAE,CAACN,IAAI,EAAEH,oBAAoB,EAAEE,SAAS,EAAED,QAAQ,CAAC,CAAC;EAErD,MAAMY,eAAe,GACnBZ,QAAQ,IACRF,kBAAkB,CAACe,IAAI,CACpBC,iBAAiB,IAChBA,iBAAiB,CAACC,UAAU,KAAKf,QAAQ,CAACe,UAC9C,CAAC;EAEH,oBACE7B,KAAA,CAAA8B,aAAA,CAAC1B,IAAI;IACH2B,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,MAAM,EAAEd,SAAS,CAACe,EAAE;MACpBC,KAAK,EAAEhB,SAAS,CAACe;IACnB,CAAC,EACDd,mBAAmB,CAACY,SAAS;EAC7B,gBAEFjC,KAAA,CAAA8B,aAAA,CAAC3B,IAAI;IAAC4B,KAAK,EAAE,CAACV,mBAAmB,CAACP,QAAQ,EAAEI,SAAS,CAACmB,QAAQ;EAAE,GAC7DX,eAAe,aAAfA,eAAe,uBAAfA,eAAe,CAAEY,IACd,CACF,CAAC;AAEX,CAAC;AAED,MAAMN,MAAM,GAAG9B,UAAU,CAACqC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,SAAS,EAAE,YAAY;IACvBC,MAAM,EAAEnC,OAAO,CAACoC;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -27,7 +27,8 @@ export const ParticipantView = _ref => {
|
|
|
27
27
|
VideoRenderer = DefaultVideoRenderer,
|
|
28
28
|
ParticipantNetworkQualityIndicator = DefaultParticipantNetworkQualityIndicator,
|
|
29
29
|
ParticipantVideoFallback = DefaultParticipantVideoFallback,
|
|
30
|
-
videoZOrder = 0
|
|
30
|
+
videoZOrder = 0,
|
|
31
|
+
supportedReactions
|
|
31
32
|
} = _ref;
|
|
32
33
|
const {
|
|
33
34
|
theme: {
|
|
@@ -48,7 +49,8 @@ export const ParticipantView = _ref => {
|
|
|
48
49
|
style: [styles.container, style, speakerStyle],
|
|
49
50
|
testID: isSpeaking ? `participant-${userId}-is-speaking` : `participant-${userId}-is-not-speaking`
|
|
50
51
|
}, ParticipantReaction && /*#__PURE__*/React.createElement(ParticipantReaction, {
|
|
51
|
-
participant: participant
|
|
52
|
+
participant: participant,
|
|
53
|
+
supportedReactions: supportedReactions
|
|
52
54
|
}), VideoRenderer && /*#__PURE__*/React.createElement(VideoRenderer, {
|
|
53
55
|
isVisible: isVisible,
|
|
54
56
|
participant: participant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","ParticipantNetworkQualityIndicator","DefaultParticipantNetworkQualityIndicator","ParticipantReaction","DefaultParticipantReaction","ParticipantLabel","DefaultParticipantLabel","ParticipantVideoFallback","DefaultParticipantVideoFallback","VideoRenderer","DefaultVideoRenderer","useTheme","ParticipantView","_ref","participant","trackType","isVisible","style","videoZOrder","theme","colors","participantView","isSpeaking","userId","isScreenSharing","applySpeakerStyle","speakerStyle","styles","highligtedContainer","borderColor","primary","createElement","container","testID","footerContainer","create","justifyContent","padding","overflow","borderWidth","flexDirection","alignItems"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAyB,OAAO;AAC5C,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAKrE,SACEC,kCAAkC,IAAIC,yCAAyC,QAE1E,sCAAsC;AAC7C,SACEC,mBAAmB,IAAIC,0BAA0B,QAE5C,uBAAuB;AAC9B,SACEC,gBAAgB,IAAIC,uBAAuB,QAEtC,oBAAoB;AAC3B,SACEC,wBAAwB,IAAIC,+BAA+B,QAEtD,4BAA4B;AACnC,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,gCAAgC;;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ParticipantNetworkQualityIndicator","DefaultParticipantNetworkQualityIndicator","ParticipantReaction","DefaultParticipantReaction","ParticipantLabel","DefaultParticipantLabel","ParticipantVideoFallback","DefaultParticipantVideoFallback","VideoRenderer","DefaultVideoRenderer","useTheme","ParticipantView","_ref","participant","trackType","isVisible","style","videoZOrder","supportedReactions","theme","colors","participantView","isSpeaking","userId","isScreenSharing","applySpeakerStyle","speakerStyle","styles","highligtedContainer","borderColor","primary","createElement","container","testID","footerContainer","create","justifyContent","padding","overflow","borderWidth","flexDirection","alignItems"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAyB,OAAO;AAC5C,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAKrE,SACEC,kCAAkC,IAAIC,yCAAyC,QAE1E,sCAAsC;AAC7C,SACEC,mBAAmB,IAAIC,0BAA0B,QAE5C,uBAAuB;AAC9B,SACEC,gBAAgB,IAAIC,uBAAuB,QAEtC,oBAAoB;AAC3B,SACEC,wBAAwB,IAAIC,+BAA+B,QAEtD,4BAA4B;AACnC,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,gCAAgC;;AA0BzD;AACA;AACA;;AAgCA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGC,IAAA,IAYH;EAAA,IAZI;IAC9BC,WAAW;IACXC,SAAS,GAAG,YAAY;IACxBC,SAAS,GAAG,IAAI;IAChBC,KAAK;IACLZ,gBAAgB,GAAGC,uBAAuB;IAC1CH,mBAAmB,GAAGC,0BAA0B;IAChDK,aAAa,GAAGC,oBAAoB;IACpCT,kCAAkC,GAAGC,yCAAyC;IAC9EK,wBAAwB,GAAGC,+BAA+B;IAC1DU,WAAW,GAAG,CAAC;IACfC;EACoB,CAAC,GAAAN,IAAA;EACrB,MAAM;IACJO,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAgB;EACnC,CAAC,GAAGX,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEY,UAAU;IAAEC;EAAO,CAAC,GAAGV,WAAW;EAC1C,MAAMW,eAAe,GAAGV,SAAS,KAAK,kBAAkB;EACxD,MAAMW,iBAAiB,GAAGH,UAAU,IAAI,CAACE,eAAe;EACxD,MAAME,YAAY,GAAGD,iBAAiB,IAAI,CACxCE,MAAM,CAACC,mBAAmB,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,EAAE,eAAe;IAC/BK,UAAU,EAAE;EACd,CAAC;EACDb,mBAAmB,EAAE;IACnBW,WAAW,EAAE;EACf;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FLOATING_VIDEO_VIEW_STYLE","height","width","borderRadius","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":"AAEA,OAAO,MAAMA,yBAAyB,GAAG;EACvCC,MAAM,EAAE,GAAG;EACXC,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAAG,GAAG;AAE1C,OAAO,MAAMC,
|
|
1
|
+
{"version":3,"names":["FLOATING_VIDEO_VIEW_STYLE","height","width","borderRadius","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":"AAEA,OAAO,MAAMA,yBAAyB,GAAG;EACvCC,MAAM,EAAE,GAAG;EACXC,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAAG,GAAG;AAE1C,OAAO,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;AAED,OAAO,MAAMC,OAAO,GAAG;EACrBC,OAAO,EAAE,CAAC;EACVC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE;AACZ,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { AndroidImportance } from '@notifee/react-native';
|
|
2
|
-
import { defaultEmojiReactions } from '../../constants';
|
|
3
2
|
import { setupFirebaseHandlerAndroid } from '../push/android';
|
|
4
3
|
const DEFAULT_STREAM_VIDEO_CONFIG = {
|
|
5
|
-
supportedReactions: defaultEmojiReactions,
|
|
6
4
|
foregroundService: {
|
|
7
5
|
android: {
|
|
8
6
|
channel: {
|
|
@@ -21,6 +19,7 @@ const DEFAULT_STREAM_VIDEO_CONFIG = {
|
|
|
21
19
|
};
|
|
22
20
|
export class StreamVideoRN {
|
|
23
21
|
static config = DEFAULT_STREAM_VIDEO_CONFIG;
|
|
22
|
+
|
|
24
23
|
/**
|
|
25
24
|
* Update the global config for StreamVideoRN except for push config.
|
|
26
25
|
* To set push config use `StreamVideoRN.setPushConfig` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AndroidImportance","
|
|
1
|
+
{"version":3,"names":["AndroidImportance","setupFirebaseHandlerAndroid","DEFAULT_STREAM_VIDEO_CONFIG","foregroundService","android","channel","id","name","lights","vibration","importance","DEFAULT","notificationTexts","title","body","StreamVideoRN","config","updateConfig","setPushConfig","pushConfig","push","getConfig"],"sourceRoot":"../../../../src","sources":["utils/StreamVideoRN/index.ts"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,uBAAuB;AACzD,SAASC,2BAA2B,QAAQ,iBAAiB;AAG7D,MAAMC,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,EAAEV,iBAAiB,CAACW;MAChC,CAAC;MACDC,iBAAiB,EAAE;QACjBC,KAAK,EAAE,kBAAkB;QACzBC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC;AAED,OAAO,MAAMC,aAAa,CAAC;EACzB,OAAeC,MAAM,GAAGd,2BAA2B;;EAEnD;AACF;AACA;AACA;AACA;EACE,OAAOe,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;IACAlB,2BAA2B,CAACkB,UAAU,CAAC;EACzC;EAEA,OAAOE,SAASA,CAAA,EAAG;IACjB,OAAO,IAAI,CAACL,MAAM;EACpB;AACF"}
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '0.0
|
|
1
|
+
export const version = '0.1.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,OAAO"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CallTopViewProps } from '../CallTopView';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { FloatingParticipantViewProps } from '../../Participant';
|
|
6
|
-
|
|
3
|
+
import { CallControlProps, HangUpCallButtonProps } from '../CallControls';
|
|
4
|
+
import { StreamReaction } from '@stream-io/video-client';
|
|
5
|
+
import { FloatingParticipantViewProps, ParticipantViewComponentProps } from '../../Participant';
|
|
6
|
+
import { CallParticipantsListComponentProps, CallParticipantsListProps } from '../CallParticipantsList';
|
|
7
|
+
export type StreamReactionType = StreamReaction & {
|
|
8
|
+
icon: string;
|
|
9
|
+
};
|
|
10
|
+
type CallContentComponentProps = ParticipantViewComponentProps & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
|
|
7
11
|
/**
|
|
8
12
|
* Component to customize the CallTopView component.
|
|
9
13
|
*/
|
|
@@ -16,17 +20,22 @@ export type CallParticipantsComponentProps = Pick<CallParticipantsGridProps, 'Ca
|
|
|
16
20
|
* Component to customize the FloatingParticipantView.
|
|
17
21
|
*/
|
|
18
22
|
FloatingParticipantView?: React.ComponentType<FloatingParticipantViewProps> | null;
|
|
23
|
+
/**
|
|
24
|
+
* Component to customize the CallParticipantsList.
|
|
25
|
+
*/
|
|
26
|
+
CallParticipantsList?: React.ComponentType<CallParticipantsListProps> | null;
|
|
19
27
|
};
|
|
20
|
-
export type CallContentProps = Pick<
|
|
28
|
+
export type CallContentProps = Pick<HangUpCallButtonProps, 'onHangupCallHandler'> & Pick<CallTopViewProps, 'onBackPressed' | 'onParticipantInfoPress' | 'ParticipantsInfoBadge'> & CallContentComponentProps & {
|
|
21
29
|
/**
|
|
22
30
|
* This switches the participant's layout between the grid and the spotlight mode.
|
|
23
31
|
*/
|
|
24
32
|
layout?: 'grid' | 'spotlight';
|
|
25
33
|
/**
|
|
26
|
-
*
|
|
27
|
-
* This will apply the landscape mode styles to the component.
|
|
34
|
+
* Reactions that are to be supported in the call
|
|
28
35
|
*/
|
|
36
|
+
supportedReactions?: StreamReactionType[];
|
|
29
37
|
landscape?: boolean;
|
|
30
38
|
};
|
|
31
|
-
export declare const CallContent: ({ onBackPressed, onParticipantInfoPress, onHangupCallHandler, CallParticipantsList, CallTopView, CallControls, FloatingParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ParticipantsInfoBadge, VideoRenderer, layout, landscape, }: CallContentProps) => JSX.Element;
|
|
39
|
+
export declare const CallContent: ({ onBackPressed, onParticipantInfoPress, onHangupCallHandler, CallParticipantsList, CallTopView, CallControls, FloatingParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ParticipantsInfoBadge, VideoRenderer, layout, supportedReactions, landscape, }: CallContentProps) => JSX.Element;
|
|
40
|
+
export {};
|
|
32
41
|
//# sourceMappingURL=CallContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/CallContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"CallContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/CallContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAgB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIvE,OAAO,EAEL,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,kCAAkC,EAClC,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,yBAAyB,GAAG,6BAA6B,GAC5D,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAAG;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAC3D;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAC5D;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;IACnF;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;CAC9E,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,qBAAqB,EACrB,qBAAqB,CACtB,GACC,IAAI,CACF,gBAAgB,EAChB,eAAe,GAAG,wBAAwB,GAAG,uBAAuB,CACrE,GACD,yBAAyB,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAK1C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ,eAAO,MAAM,WAAW,iVAkBrB,gBAAgB,gBA6HlB,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { ViewProps } from 'react-native';
|
|
2
|
+
import { HangUpCallButtonProps } from './HangupCallButton';
|
|
2
3
|
/**
|
|
3
4
|
* Props for the CallControls Component.
|
|
4
5
|
*/
|
|
5
|
-
export type CallControlProps = Pick<ViewProps, 'style'> & {
|
|
6
|
-
/**
|
|
7
|
-
* Handler to override the hang up handler when the hangup button is pressed.
|
|
8
|
-
* @returns void
|
|
9
|
-
*/
|
|
10
|
-
onHangupCallHandler?: () => void;
|
|
6
|
+
export type CallControlProps = Pick<ViewProps, 'style'> & Pick<HangUpCallButtonProps, 'onHangupCallHandler'> & {
|
|
11
7
|
/**
|
|
12
8
|
* Check if device is in landscape mode.
|
|
13
9
|
* This will apply the landscape mode styles to the component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/CallControls.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAAa,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"CallControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/CallControls.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAAa,MAAM,cAAc,CAAC;AAKtE,OAAO,EAAoB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG7E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GACrD,IAAI,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,GAAG;IACnD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,YAAY,+CAItB,gBAAgB,gBAyBlB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StreamReactionType } from '../CallContent';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Reaction button
|
|
4
|
+
*/
|
|
5
|
+
export type ReactionsButtonProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Supported Reactions to be sent while in the call.
|
|
8
|
+
*/
|
|
9
|
+
supportedReactions?: StreamReactionType[];
|
|
10
|
+
/**
|
|
11
|
+
* Handler to be called when the reaction button is pressed.
|
|
12
|
+
*/
|
|
13
|
+
onPressHandler?: () => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Button to display the list of Reactions supported in the call.
|
|
17
|
+
* On press, it opens a view that can be used to send Reaction.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ReactionsButton: ({ supportedReactions, onPressHandler, }: ReactionsButtonProps) => JSX.Element;
|
|
20
|
+
//# sourceMappingURL=ReactionsButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactionsButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/ReactionsButton.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,4CAGzB,oBAAoB,gBAuDtB,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,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { LayoutRectangle } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
reactions: StreamVideoConfig['supportedReactions'];
|
|
2
|
+
import { ReactionsButtonProps } from '../ReactionsButton';
|
|
3
|
+
type ReactionPickerProps = Pick<ReactionsButtonProps, 'supportedReactions'> & {
|
|
5
4
|
reactionsButtonLayoutRectangle?: LayoutRectangle;
|
|
6
5
|
onRequestedClose: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const ReactionsPicker: ({
|
|
6
|
+
};
|
|
7
|
+
export declare const ReactionsPicker: ({ supportedReactions, reactionsButtonLayoutRectangle, onRequestedClose, }: ReactionPickerProps) => JSX.Element;
|
|
9
8
|
export {};
|
|
10
9
|
//# sourceMappingURL=ReactionsPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionsPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Call/CallControls/internal/ReactionsPicker.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAKhB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ReactionsPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Call/CallControls/internal/ReactionsPicker.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAKhB,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG1D,KAAK,mBAAmB,GAAG,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,GAAG;IAC5E,8BAA8B,CAAC,EAAE,eAAe,CAAC;IACjD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAKF,eAAO,MAAM,eAAe,8EAIzB,mBAAmB,gBA6IrB,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { CallParticipantsListComponentProps } from '../CallParticipantsList/CallParticipantsList';
|
|
2
|
+
import { CallContentProps } from '../CallContent';
|
|
3
|
+
import { ParticipantViewComponentProps } from '../../Participant';
|
|
3
4
|
/**
|
|
4
5
|
* Props for the CallParticipantsGrid component.
|
|
5
6
|
*/
|
|
6
|
-
export type CallParticipantsGridProps = CallParticipantsListComponentProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Component to customize the CallParticipantsList.
|
|
9
|
-
*/
|
|
10
|
-
CallParticipantsList?: React.ComponentType<CallParticipantsListProps> | null;
|
|
7
|
+
export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList'> & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
|
|
11
8
|
/**
|
|
12
9
|
* Boolean to decide if local participant will be visible in the grid when there is 1:1 call.
|
|
13
10
|
*/
|
|
@@ -21,5 +18,5 @@ export type CallParticipantsGridProps = CallParticipantsListComponentProps & {
|
|
|
21
18
|
/**
|
|
22
19
|
* Component used to display the list of participants in a grid mode.
|
|
23
20
|
*/
|
|
24
|
-
export declare const CallParticipantsGrid: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, showLocalParticipant, landscape, }: CallParticipantsGridProps) => JSX.Element;
|
|
21
|
+
export declare const CallParticipantsGrid: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, showLocalParticipant, supportedReactions, landscape, }: CallParticipantsGridProps) => JSX.Element;
|
|
25
22
|
//# sourceMappingURL=CallParticipantsGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallParticipantsGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CallParticipantsGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,kCAAkC,EACnC,MAAM,8CAA8C,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,GACnE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,sBAAsB,CAAC,GACrE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAAG;IAC5D;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,wNAW9B,yBAAyB,gBAsD3B,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { CallParticipantsListComponentProps } from '../CallParticipantsList/CallParticipantsList';
|
|
2
|
+
import { ParticipantViewComponentProps } from '../../Participant';
|
|
3
|
+
import { CallContentProps } from '../CallContent';
|
|
3
4
|
/**
|
|
4
5
|
* Props for the CallParticipantsSpotlight component.
|
|
5
6
|
*/
|
|
6
|
-
export type CallParticipantsSpotlightProps = CallParticipantsListComponentProps & {
|
|
7
|
-
/**
|
|
8
|
-
* Component to customize the CallParticipantsList.
|
|
9
|
-
*/
|
|
10
|
-
CallParticipantsList?: React.ComponentType<CallParticipantsListProps> | null;
|
|
7
|
+
export type CallParticipantsSpotlightProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList'> & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
|
|
11
8
|
/**
|
|
12
9
|
* Check if device is in landscape mode.
|
|
13
10
|
* This will apply the landscape mode styles to the component.
|
|
@@ -18,5 +15,5 @@ export type CallParticipantsSpotlightProps = CallParticipantsListComponentProps
|
|
|
18
15
|
* Component used to display the list of participants in a spotlight mode.
|
|
19
16
|
* This can be used when you want to render the screen sharing stream.
|
|
20
17
|
*/
|
|
21
|
-
export declare const CallParticipantsSpotlight: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, landscape, }: CallParticipantsSpotlightProps) => JSX.Element;
|
|
18
|
+
export declare const CallParticipantsSpotlight: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, supportedReactions, landscape, }: CallParticipantsSpotlightProps) => JSX.Element;
|
|
22
19
|
//# sourceMappingURL=CallParticipantsSpotlight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallParticipantsSpotlight.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CallParticipantsSpotlight.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,kCAAkC,EACnC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,6BAA6B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,GACxE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,sBAAsB,CAAC,GACrE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAAG;IAC5D;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAKJ;;;GAGG;AACH,eAAO,MAAM,yBAAyB,kMAUnC,8BAA8B,gBA2FhC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StreamVideoLocalParticipant, StreamVideoParticipant } from '@stream-io/video-client';
|
|
3
3
|
import { ParticipantViewComponentProps, ParticipantViewProps } from '../../Participant/ParticipantView';
|
|
4
|
+
import { CallContentProps } from '../CallContent';
|
|
4
5
|
export type CallParticipantsListComponentProps = ParticipantViewComponentProps & {
|
|
5
6
|
/**
|
|
6
7
|
* Component to customize the participant view.
|
|
@@ -10,7 +11,7 @@ export type CallParticipantsListComponentProps = ParticipantViewComponentProps &
|
|
|
10
11
|
/**
|
|
11
12
|
* Props of the CallParticipantsList component
|
|
12
13
|
*/
|
|
13
|
-
export type CallParticipantsListProps = CallParticipantsListComponentProps & {
|
|
14
|
+
export type CallParticipantsListProps = CallParticipantsListComponentProps & Pick<CallContentProps, 'supportedReactions'> & {
|
|
14
15
|
/**
|
|
15
16
|
* The list of participants to display in the list
|
|
16
17
|
*/
|
|
@@ -36,5 +37,5 @@ export type CallParticipantsListProps = CallParticipantsListComponentProps & {
|
|
|
36
37
|
* NOTE: this component depends on a flex container to calculate the width and height of the participant view,
|
|
37
38
|
* hence it should be used only in a flex parent container
|
|
38
39
|
*/
|
|
39
|
-
export declare const CallParticipantsList: ({ numberOfColumns, horizontal, participants, ParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, VideoRenderer, landscape, }: CallParticipantsListProps) => JSX.Element;
|
|
40
|
+
export declare const CallParticipantsList: ({ numberOfColumns, horizontal, participants, ParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, VideoRenderer, supportedReactions, landscape, }: CallParticipantsListProps) => JSX.Element;
|
|
40
41
|
//# sourceMappingURL=CallParticipantsList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallParticipantsList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallParticipantsList/CallParticipantsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EAGvB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"CallParticipantsList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallParticipantsList/CallParticipantsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EAGvB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAWlD,MAAM,MAAM,kCAAkC,GAC5C,6BAA6B,GAAG;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;CACpE,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,kCAAkC,GACxE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG;IAC7C;;OAEG;IACH,YAAY,EAAE,CAAC,sBAAsB,GAAG,2BAA2B,CAAC,EAAE,CAAC;IACvE;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,uNAY9B,yBAAyB,gBAuK3B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { CallContentProps, CallParticipantsListComponentProps } from '../../Call';
|
|
3
3
|
import { ParticipantViewComponentProps } from '../ParticipantView';
|
|
4
4
|
import { StreamVideoParticipant } from '@stream-io/video-client';
|
|
5
5
|
export type FloatingParticipantViewAlignment = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
6
|
/**
|
|
7
7
|
* Props to be passed for the LocalVideoView component.
|
|
8
8
|
*/
|
|
9
|
-
export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<
|
|
9
|
+
export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & Pick<CallContentProps, 'supportedReactions'> & {
|
|
10
10
|
/**
|
|
11
11
|
* Determines where the floating participant video will be placed.
|
|
12
12
|
*/
|
|
@@ -28,5 +28,5 @@ export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<
|
|
|
28
28
|
/**
|
|
29
29
|
* A component to render the floating participant's video.
|
|
30
30
|
*/
|
|
31
|
-
export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant, style, ParticipantView, ParticipantNetworkQualityIndicator, ParticipantReaction, VideoRenderer, }: FloatingParticipantViewProps) => JSX.Element | null;
|
|
31
|
+
export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant, style, ParticipantView, ParticipantNetworkQualityIndicator, ParticipantReaction, VideoRenderer, supportedReactions, }: FloatingParticipantViewProps) => JSX.Element | null;
|
|
32
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,gBAAgB,EAChB,kCAAkC,EACnC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,MAAM,gCAAgC,GACxC,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,GACtE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAC3D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AA0BJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,oKAUjC,4BAA4B,uBAoF9B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ParticipantViewProps } from './ParticipantView';
|
|
2
|
+
import { CallContentProps } from '../../Call';
|
|
2
3
|
/**
|
|
3
4
|
* Props for the ParticipantReaction component.
|
|
4
5
|
*/
|
|
5
|
-
export type ParticipantReactionProps = Pick<ParticipantViewProps, 'participant'> & {
|
|
6
|
+
export type ParticipantReactionProps = Pick<ParticipantViewProps, 'participant'> & Pick<CallContentProps, 'supportedReactions'> & {
|
|
6
7
|
/**
|
|
7
8
|
* The duration after which the reaction should disappear.
|
|
8
9
|
*
|
|
@@ -13,5 +14,5 @@ export type ParticipantReactionProps = Pick<ParticipantViewProps, 'participant'>
|
|
|
13
14
|
/**
|
|
14
15
|
* This component is used to display the current participant reaction.
|
|
15
16
|
*/
|
|
16
|
-
export declare const ParticipantReaction: ({ participant, hideAfterTimeoutInMs, }: ParticipantReactionProps) => JSX.Element;
|
|
17
|
+
export declare const ParticipantReaction: ({ participant, supportedReactions, hideAfterTimeoutInMs, }: ParticipantReactionProps) => JSX.Element;
|
|
17
18
|
//# sourceMappingURL=ParticipantReaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParticipantReaction.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/ParticipantReaction.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParticipantReaction.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/ParticipantReaction.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,oBAAoB,EACpB,aAAa,CACd,GACC,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG;IAC7C;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,mBAAmB,+DAI7B,wBAAwB,gBA8C1B,CAAC"}
|