@stream-io/video-react-native-sdk 0.0.28 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -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/Call/Lobby/Lobby.js +7 -23
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +63 -0
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/index.js +11 -0
- package/dist/commonjs/components/Call/Lobby/index.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/translations/en.json +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/Call/Lobby/Lobby.js +7 -23
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +56 -0
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -0
- package/dist/module/components/Call/Lobby/index.js +1 -0
- package/dist/module/components/Call/Lobby/index.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/translations/en.json +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/Call/Lobby/Lobby.d.ts +6 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts +10 -0
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts +1 -0
- package/dist/typescript/components/Call/Lobby/index.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/translations/index.d.ts +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/Call/Lobby/Lobby.tsx +16 -36
- package/src/components/Call/Lobby/LobbyFooter.tsx +75 -0
- package/src/components/Call/Lobby/index.ts +1 -0
- 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/translations/en.json +1 -1
- 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
|
@@ -10,7 +10,10 @@ import { FLOATING_VIDEO_VIEW_STYLE, Z_INDEX } from '../../../constants';
|
|
|
10
10
|
import { ComponentTestIds } from '../../../constants/TestIds';
|
|
11
11
|
import { VideoSlash } from '../../../icons';
|
|
12
12
|
import FloatingView from './FloatingView';
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
CallContentProps,
|
|
15
|
+
CallParticipantsListComponentProps,
|
|
16
|
+
} from '../../Call';
|
|
14
17
|
import { FloatingViewAlignment } from './FloatingView/common';
|
|
15
18
|
import {
|
|
16
19
|
ParticipantView as DefaultParticipantView,
|
|
@@ -29,7 +32,8 @@ export type FloatingParticipantViewAlignment =
|
|
|
29
32
|
* Props to be passed for the LocalVideoView component.
|
|
30
33
|
*/
|
|
31
34
|
export type FloatingParticipantViewProps = ParticipantViewComponentProps &
|
|
32
|
-
Pick<
|
|
35
|
+
Pick<CallParticipantsListComponentProps, 'ParticipantView'> &
|
|
36
|
+
Pick<CallContentProps, 'supportedReactions'> & {
|
|
33
37
|
/**
|
|
34
38
|
* Determines where the floating participant video will be placed.
|
|
35
39
|
*/
|
|
@@ -85,6 +89,7 @@ export const FloatingParticipantView = ({
|
|
|
85
89
|
ParticipantNetworkQualityIndicator,
|
|
86
90
|
ParticipantReaction,
|
|
87
91
|
VideoRenderer,
|
|
92
|
+
supportedReactions,
|
|
88
93
|
}: FloatingParticipantViewProps) => {
|
|
89
94
|
const {
|
|
90
95
|
theme: { colors, floatingParticipantsView },
|
|
@@ -160,6 +165,7 @@ export const FloatingParticipantView = ({
|
|
|
160
165
|
// video z order must be one above the one used in grid view
|
|
161
166
|
// (which uses the default: 0)
|
|
162
167
|
videoZOrder={1}
|
|
168
|
+
supportedReactions={supportedReactions}
|
|
163
169
|
{...participantViewProps}
|
|
164
170
|
/>
|
|
165
171
|
)}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { ParticipantViewProps } from './ParticipantView';
|
|
7
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
|
+
import { CallContentProps } from '../../Call';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Props for the ParticipantReaction component.
|
|
@@ -12,23 +12,24 @@ import { useTheme } from '../../../contexts/ThemeContext';
|
|
|
12
12
|
export type ParticipantReactionProps = Pick<
|
|
13
13
|
ParticipantViewProps,
|
|
14
14
|
'participant'
|
|
15
|
-
> &
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
> &
|
|
16
|
+
Pick<CallContentProps, 'supportedReactions'> & {
|
|
17
|
+
/**
|
|
18
|
+
* The duration after which the reaction should disappear.
|
|
19
|
+
*
|
|
20
|
+
* @default 5500
|
|
21
|
+
*/
|
|
22
|
+
hideAfterTimeoutInMs?: number;
|
|
23
|
+
};
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* This component is used to display the current participant reaction.
|
|
26
27
|
*/
|
|
27
28
|
export const ParticipantReaction = ({
|
|
28
29
|
participant,
|
|
30
|
+
supportedReactions = defaultEmojiReactions,
|
|
29
31
|
hideAfterTimeoutInMs = 5500,
|
|
30
32
|
}: ParticipantReactionProps) => {
|
|
31
|
-
const { supportedReactions } = StreamVideoRN.getConfig();
|
|
32
33
|
const { reaction, sessionId } = participant;
|
|
33
34
|
const call = useCall();
|
|
34
35
|
const {
|
|
@@ -38,14 +39,11 @@ export const ParticipantReaction = ({
|
|
|
38
39
|
participantReaction,
|
|
39
40
|
},
|
|
40
41
|
} = useTheme();
|
|
41
|
-
const [isShowing, setIsShowing] = useState<boolean>(false);
|
|
42
42
|
|
|
43
43
|
useEffect(() => {
|
|
44
44
|
let timeoutId: NodeJS.Timeout;
|
|
45
45
|
if (call) {
|
|
46
|
-
setIsShowing(true);
|
|
47
46
|
timeoutId = setTimeout(() => {
|
|
48
|
-
setIsShowing(false);
|
|
49
47
|
call.resetReaction(sessionId);
|
|
50
48
|
}, hideAfterTimeoutInMs);
|
|
51
49
|
}
|
|
@@ -61,19 +59,6 @@ export const ParticipantReaction = ({
|
|
|
61
59
|
supportedReaction.emoji_code === reaction.emoji_code,
|
|
62
60
|
);
|
|
63
61
|
|
|
64
|
-
let component;
|
|
65
|
-
if (isShowing) {
|
|
66
|
-
if (typeof currentReaction?.icon !== 'string') {
|
|
67
|
-
component = currentReaction?.icon;
|
|
68
|
-
} else {
|
|
69
|
-
component = (
|
|
70
|
-
<Text style={[participantReaction.reaction, typefaces.heading6]}>
|
|
71
|
-
{currentReaction.icon}
|
|
72
|
-
</Text>
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
62
|
return (
|
|
78
63
|
<View
|
|
79
64
|
style={[
|
|
@@ -85,7 +70,9 @@ export const ParticipantReaction = ({
|
|
|
85
70
|
participantReaction.container,
|
|
86
71
|
]}
|
|
87
72
|
>
|
|
88
|
-
{
|
|
73
|
+
<Text style={[participantReaction.reaction, typefaces.heading6]}>
|
|
74
|
+
{currentReaction?.icon}
|
|
75
|
+
</Text>
|
|
89
76
|
</View>
|
|
90
77
|
);
|
|
91
78
|
};
|
|
@@ -25,8 +25,7 @@ import {
|
|
|
25
25
|
VideoRendererProps,
|
|
26
26
|
} from './VideoRenderer';
|
|
27
27
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
28
|
-
|
|
29
|
-
export type ParticipantVideoType = VideoTrackType;
|
|
28
|
+
import { CallContentProps } from '../../Call';
|
|
30
29
|
|
|
31
30
|
export type ParticipantViewComponentProps = {
|
|
32
31
|
/**
|
|
@@ -54,35 +53,36 @@ export type ParticipantViewComponentProps = {
|
|
|
54
53
|
/**
|
|
55
54
|
* Props to be passed for the Participant component.
|
|
56
55
|
*/
|
|
57
|
-
export type ParticipantViewProps = ParticipantViewComponentProps &
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
56
|
+
export type ParticipantViewProps = ParticipantViewComponentProps &
|
|
57
|
+
Pick<CallContentProps, 'supportedReactions'> & {
|
|
58
|
+
/**
|
|
59
|
+
* The participant that will be displayed.
|
|
60
|
+
*/
|
|
61
|
+
participant: StreamVideoParticipant;
|
|
62
|
+
/**
|
|
63
|
+
* The zOrder for the video that will be displayed.
|
|
64
|
+
* For example, a video call
|
|
65
|
+
* application usually needs a maximum of two zOrder values: 0 for the
|
|
66
|
+
* remote video(s) which appear in the background, and 1 for the local
|
|
67
|
+
* video(s) which appear above the remote video(s).
|
|
68
|
+
* @default 0
|
|
69
|
+
*/
|
|
70
|
+
videoZOrder?: number;
|
|
71
|
+
/**
|
|
72
|
+
* The video track that is to be displayed.
|
|
73
|
+
*/
|
|
74
|
+
trackType?: VideoTrackType;
|
|
75
|
+
/**
|
|
76
|
+
* Custom style to be merged with the participant view.
|
|
77
|
+
*/
|
|
78
|
+
style?: StyleProp<ViewStyle>;
|
|
79
|
+
/**
|
|
80
|
+
* When set to false, the video stream will not be shown even if it is available.
|
|
81
|
+
*
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
isVisible?: boolean;
|
|
85
|
+
};
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* A component that renders the participants' video track or screenShare track
|
|
@@ -100,6 +100,7 @@ export const ParticipantView = ({
|
|
|
100
100
|
ParticipantNetworkQualityIndicator = DefaultParticipantNetworkQualityIndicator,
|
|
101
101
|
ParticipantVideoFallback = DefaultParticipantVideoFallback,
|
|
102
102
|
videoZOrder = 0,
|
|
103
|
+
supportedReactions,
|
|
103
104
|
}: ParticipantViewProps) => {
|
|
104
105
|
const {
|
|
105
106
|
theme: { colors, participantView },
|
|
@@ -124,7 +125,12 @@ export const ParticipantView = ({
|
|
|
124
125
|
: `participant-${userId}-is-not-speaking`
|
|
125
126
|
}
|
|
126
127
|
>
|
|
127
|
-
{ParticipantReaction &&
|
|
128
|
+
{ParticipantReaction && (
|
|
129
|
+
<ParticipantReaction
|
|
130
|
+
participant={participant}
|
|
131
|
+
supportedReactions={supportedReactions}
|
|
132
|
+
/>
|
|
133
|
+
)}
|
|
128
134
|
{VideoRenderer && (
|
|
129
135
|
<VideoRenderer
|
|
130
136
|
isVisible={isVisible}
|
package/src/constants/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StreamReactionType } from '../components';
|
|
2
2
|
|
|
3
3
|
export const FLOATING_VIDEO_VIEW_STYLE = {
|
|
4
4
|
height: 140,
|
|
@@ -8,7 +8,7 @@ export const FLOATING_VIDEO_VIEW_STYLE = {
|
|
|
8
8
|
|
|
9
9
|
export const LOBBY_VIDEO_VIEW_HEIGHT = 280;
|
|
10
10
|
|
|
11
|
-
export const defaultEmojiReactions:
|
|
11
|
+
export const defaultEmojiReactions: StreamReactionType[] = [
|
|
12
12
|
{
|
|
13
13
|
type: 'reaction',
|
|
14
14
|
emoji_code: ':like:',
|
package/src/translations/en.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"Join": "Join",
|
|
7
7
|
"You": "You",
|
|
8
8
|
"Reconnecting...": "Reconnecting...",
|
|
9
|
-
"You are first to
|
|
9
|
+
"You are first to join the call.": "You are first to join the call.",
|
|
10
10
|
"Participants ({{ numberOfParticipants }})": "Participants ({{ numberOfParticipants }})",
|
|
11
11
|
"{{ userName }} is sharing their screen": "{{ userName }} is sharing their screen",
|
|
12
12
|
"{{ numberOfParticipants }} participant(s) are in the call.": "{{ numberOfParticipants }} participant(s) are in the call.",
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { AndroidImportance } from '@notifee/react-native';
|
|
2
|
-
import { defaultEmojiReactions } from '../../constants';
|
|
3
2
|
import { setupFirebaseHandlerAndroid } from '../push/android';
|
|
4
3
|
import { StreamVideoConfig } from './types';
|
|
5
4
|
|
|
6
5
|
const DEFAULT_STREAM_VIDEO_CONFIG: StreamVideoConfig = {
|
|
7
|
-
supportedReactions: defaultEmojiReactions,
|
|
8
6
|
foregroundService: {
|
|
9
7
|
android: {
|
|
10
8
|
channel: {
|
|
@@ -24,6 +22,7 @@ const DEFAULT_STREAM_VIDEO_CONFIG: StreamVideoConfig = {
|
|
|
24
22
|
|
|
25
23
|
export class StreamVideoRN {
|
|
26
24
|
private static config = DEFAULT_STREAM_VIDEO_CONFIG;
|
|
25
|
+
|
|
27
26
|
/**
|
|
28
27
|
* Update the global config for StreamVideoRN except for push config.
|
|
29
28
|
* To set push config use `StreamVideoRN.setPushConfig` instead.
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StreamVideoClient } from '@stream-io/video-client';
|
|
2
2
|
import { AndroidChannel } from '@notifee/react-native';
|
|
3
3
|
|
|
4
|
-
type StreamReactionType = Required<StreamReaction> & {
|
|
5
|
-
icon: string | JSX.Element;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
4
|
export type StreamVideoConfig = {
|
|
9
|
-
/**
|
|
10
|
-
* Reactions that are to be supported in the app.
|
|
11
|
-
*
|
|
12
|
-
* Note: This is an array of reactions that is rendered in the Reaction list.
|
|
13
|
-
*/
|
|
14
|
-
supportedReactions: StreamReactionType[];
|
|
15
5
|
/**
|
|
16
6
|
* The configuration to be used for push notifications.
|
|
17
7
|
* If undefined, push notifications will not be enabled for the app
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.
|
|
1
|
+
export const version = '0.1.1';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_CallControlsButton","_videoClient","_TestIds","_icons","_ReactionsPicker","_utils","_ThemeContext","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ReactionButton","_ref","onPressHandler","showReactionsPicker","setShowReactionsPicker","useState","reactionsButtonLayoutRectangle","setReactionsButtonLayoutRectangle","theme","colors","useTheme","onReactionsButtonLayout","event","layout","nativeEvent","prev","width","height","x","y","reactionButtonHandler","createElement","Fragment","Restricted","requiredGrants","OwnCapability","CREATE_REACTION","CallControlsButton","testID","ButtonTestIds","REACTION","onPress","onLayout","Reaction","color","static_black","ReactionsPicker","reactions","StreamVideoRN","getConfig","supportedReactions","onRequestedClose","exports"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ReactionButton.tsx"],"mappings":";;;;;;AAAA,IAA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AAAgB,OAAA,CAAAoC,aAAA,CAACtD,mBAAA,CAAAwD,UAAU;IAACC,cAAc,EAAE,CAACC,0BAAa,CAACC,eAAe;EAAE,gBAC1DzD,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAClD,mBAAA,CAAAwD,kBAAkB;IACjBC,MAAM,EAAEC,sBAAa,CAACC,QAAS;IAC/BC,OAAO,EAAEX,qBAAsB;IAC/BY,QAAQ,EAAErB;EAAwB,gBAElC1C,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAC/C,MAAA,CAAA2D,QAAQ;IAACC,KAAK,EAAEzB,MAAM,CAAC0B;EAAa,CAAE,CACrB,CACV,CAAC,EACZhC,mBAAmB,iBAClBlC,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAC9C,gBAAA,CAAA6D,eAAe;IACdC,SAAS,EAAEC,oBAAa,CAACC,SAAS,CAAC,CAAC,CAACC,kBAAmB;IACxDlC,8BAA8B,EAAEA,8BAA+B;IAC/DmC,gBAAgB,EAAEA,CAAA,KAAM;MACtBrC,sBAAsB,CAAC,KAAK,CAAC;IAC/B;EAAE,CACH,CAEH,CAAC;AAEP,CAAC;AAACsC,OAAA,CAAA1C,cAAA,GAAAA,cAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Restricted","React","useState","CallControlsButton","OwnCapability","ButtonTestIds","Reaction","ReactionsPicker","StreamVideoRN","useTheme","ReactionButton","_ref","onPressHandler","showReactionsPicker","setShowReactionsPicker","reactionsButtonLayoutRectangle","setReactionsButtonLayoutRectangle","theme","colors","onReactionsButtonLayout","event","layout","nativeEvent","prev","width","height","x","y","reactionButtonHandler","createElement","Fragment","requiredGrants","CREATE_REACTION","testID","REACTION","onPress","onLayout","color","static_black","reactions","getConfig","supportedReactions","onRequestedClose"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ReactionButton.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,iCAAiC;AAC5D,OAAOC,K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AAC;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,qBAAsB;IAC/BQ,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;IACdgC,SAAS,EAAE/B,aAAa,CAACgC,SAAS,CAAC,CAAC,CAACC,kBAAmB;IACxD1B,8BAA8B,EAAEA,8BAA+B;IAC/D2B,gBAAgB,EAAEA,CAAA,KAAM;MACtB5B,sBAAsB,CAAC,KAAK,CAAC;IAC/B;EAAE,CACH,CAEH,CAAC;AAEP,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the Reaction button
|
|
3
|
-
*/
|
|
4
|
-
export type ReactionButtonProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Handler to be called when the reaction button is pressed.
|
|
7
|
-
*/
|
|
8
|
-
onPressHandler?: () => void;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Button to display the list of Reactions supported in the call.
|
|
12
|
-
* On press, it opens a view that can be used to send Reaction.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ReactionButton: ({ onPressHandler }: ReactionButtonProps) => JSX.Element;
|
|
15
|
-
//# sourceMappingURL=ReactionButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/ReactionButton.tsx"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,uBAAwB,mBAAmB,gBAuDrE,CAAC"}
|