@stream-io/video-react-native-sdk 0.0.1-alpha.366 → 0.0.1-alpha.368
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/dist/__tests__/components/CallControls.test.js +11 -7
- package/dist/__tests__/components/CallControls.test.js.map +1 -1
- package/dist/src/components/call/CallControls/AcceptCallButton.d.ts +22 -0
- package/dist/src/components/call/CallControls/AcceptCallButton.js +39 -0
- package/dist/src/components/call/CallControls/AcceptCallButton.js.map +1 -0
- package/dist/src/components/call/CallControls/CallControls.d.ts +16 -0
- package/dist/src/components/call/CallControls/CallControls.js +38 -0
- package/dist/src/components/call/CallControls/CallControls.js.map +1 -0
- package/dist/src/components/{utility/internal → call/CallControls}/CallControlsButton.d.ts +5 -1
- package/dist/src/components/{utility/internal → call/CallControls}/CallControlsButton.js +12 -7
- package/dist/src/components/call/CallControls/CallControlsButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ChatButton.d.ts +20 -0
- package/dist/src/components/call/CallControls/ChatButton.js +58 -0
- package/dist/src/components/call/CallControls/ChatButton.js.map +1 -0
- package/dist/src/components/{utility/internal → call/CallControls}/HangupCallButton.d.ts +12 -1
- package/dist/src/components/{utility/internal → call/CallControls}/HangupCallButton.js +10 -16
- package/dist/src/components/call/CallControls/HangupCallButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ReactionButton.d.ts +14 -0
- package/dist/src/components/call/CallControls/ReactionButton.js +76 -0
- package/dist/src/components/call/CallControls/ReactionButton.js.map +1 -0
- package/dist/src/components/call/CallControls/RejectCallButton.d.ts +23 -0
- package/dist/src/components/call/CallControls/RejectCallButton.js +45 -0
- package/dist/src/components/call/CallControls/RejectCallButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ToggleAudioPreviewButton.d.ts +14 -0
- package/dist/src/components/call/CallControls/ToggleAudioPreviewButton.js +39 -0
- package/dist/src/components/call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ToggleAudioPublishingButton.d.ts +14 -0
- package/dist/src/components/{utility/internal/ToggleAudioButton.js → call/CallControls/ToggleAudioPublishingButton.js} +14 -23
- package/dist/src/components/call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ToggleCameraFaceButton.d.ts +14 -0
- package/dist/src/components/{utility/internal → call/CallControls}/ToggleCameraFaceButton.js +12 -16
- package/dist/src/components/call/CallControls/ToggleCameraFaceButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ToggleVideoPreviewButton.d.ts +14 -0
- package/dist/src/components/call/CallControls/ToggleVideoPreviewButton.js +39 -0
- package/dist/src/components/call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
- package/dist/src/components/call/CallControls/ToggleVideoPublishingButton.d.ts +14 -0
- package/dist/src/components/{utility/internal/ToggleVideoButton.js → call/CallControls/ToggleVideoPublishingButton.js} +14 -23
- package/dist/src/components/call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
- package/dist/src/components/call/CallControls/index.d.ts +11 -0
- package/dist/src/components/call/CallControls/index.js +28 -0
- package/dist/src/components/call/CallControls/index.js.map +1 -0
- package/dist/src/components/call/CallTopView/CallTopView.d.ts +22 -0
- package/dist/src/components/call/CallTopView/CallTopView.js +106 -0
- package/dist/src/components/call/CallTopView/CallTopView.js.map +1 -0
- package/dist/src/components/call/CallTopView/ParticipantsInfoBadge.d.ts +7 -0
- package/dist/src/components/call/CallTopView/ParticipantsInfoBadge.js +52 -0
- package/dist/src/components/call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
- package/dist/src/components/call/CallTopView/index.d.ts +2 -0
- package/dist/src/components/call/CallTopView/index.js +19 -0
- package/dist/src/components/call/CallTopView/index.js.map +1 -0
- package/dist/src/components/call/IncomingCall.js +10 -75
- package/dist/src/components/call/IncomingCall.js.map +1 -1
- package/dist/src/components/call/Lobby.js +8 -30
- package/dist/src/components/call/Lobby.js.map +1 -1
- package/dist/src/components/call/OutgoingCall.d.ts +1 -1
- package/dist/src/components/call/OutgoingCall.js +5 -15
- package/dist/src/components/call/OutgoingCall.js.map +1 -1
- package/dist/src/components/call/ReactionsPicker.js +3 -3
- package/dist/src/components/call/ReactionsPicker.js.map +1 -1
- package/dist/src/components/call/index.d.ts +1 -0
- package/dist/src/components/call/index.js +1 -0
- package/dist/src/components/call/index.js.map +1 -1
- package/dist/src/components/participants/index.d.ts +0 -2
- package/dist/src/components/participants/index.js +0 -2
- package/dist/src/components/participants/index.js.map +1 -1
- package/dist/src/icons/Back.d.ts +5 -0
- package/dist/src/icons/Back.js +13 -0
- package/dist/src/icons/Back.js.map +1 -0
- package/dist/src/icons/TopViewBackground.d.ts +13 -0
- package/dist/src/icons/TopViewBackground.js +19 -0
- package/dist/src/icons/TopViewBackground.js.map +1 -0
- package/dist/src/icons/index.d.ts +1 -4
- package/dist/src/icons/index.js +1 -4
- package/dist/src/icons/index.js.map +1 -1
- package/dist/src/theme/padding.js +1 -1
- package/dist/src/translations/en.json +1 -0
- package/dist/src/translations/index.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/components/call/CallControls/AcceptCallButton.tsx +58 -0
- package/src/components/call/CallControls/CallControls.tsx +48 -0
- package/src/components/{utility/internal → call/CallControls}/CallControlsButton.tsx +18 -10
- package/src/components/call/CallControls/ChatButton.tsx +87 -0
- package/src/components/{utility/internal → call/CallControls}/HangupCallButton.tsx +17 -18
- package/src/components/call/CallControls/ReactionButton.tsx +80 -0
- package/src/components/call/CallControls/RejectCallButton.tsx +65 -0
- package/src/components/call/CallControls/ToggleAudioPreviewButton.tsx +61 -0
- package/src/components/{utility/internal/ToggleAudioButton.tsx → call/CallControls/ToggleAudioPublishingButton.tsx} +24 -24
- package/src/components/{utility/internal → call/CallControls}/ToggleCameraFaceButton.tsx +26 -19
- package/src/components/call/CallControls/ToggleVideoPreviewButton.tsx +61 -0
- package/src/components/{utility/internal/ToggleVideoButton.tsx → call/CallControls/ToggleVideoPublishingButton.tsx} +24 -24
- package/src/components/call/CallControls/index.tsx +11 -0
- package/src/components/call/CallTopView/CallTopView.tsx +130 -0
- package/src/components/call/CallTopView/ParticipantsInfoBadge.tsx +61 -0
- package/src/components/call/CallTopView/index.ts +2 -0
- package/src/components/call/IncomingCall.tsx +8 -76
- package/src/components/call/Lobby.tsx +10 -55
- package/src/components/call/OutgoingCall.tsx +5 -38
- package/src/components/call/ReactionsPicker.tsx +3 -3
- package/src/components/call/index.ts +1 -0
- package/src/components/participants/index.ts +0 -2
- package/src/icons/Back.tsx +15 -0
- package/src/icons/TopViewBackground.tsx +43 -0
- package/src/icons/index.tsx +1 -4
- package/src/theme/padding.ts +1 -1
- package/src/translations/en.json +1 -0
- package/dist/__tests__/components/ParticipantBadge.test.d.ts +0 -1
- package/dist/__tests__/components/ParticipantBadge.test.js +0 -70
- package/dist/__tests__/components/ParticipantBadge.test.js.map +0 -1
- package/dist/src/components/call/CallControls.d.ts +0 -35
- package/dist/src/components/call/CallControls.js +0 -136
- package/dist/src/components/call/CallControls.js.map +0 -1
- package/dist/src/components/participants/ParticipantsInfoBadge.d.ts +0 -8
- package/dist/src/components/participants/ParticipantsInfoBadge.js +0 -74
- package/dist/src/components/participants/ParticipantsInfoBadge.js.map +0 -1
- package/dist/src/components/participants/ParticipantsInfoList.d.ts +0 -17
- package/dist/src/components/participants/ParticipantsInfoList.js +0 -243
- package/dist/src/components/participants/ParticipantsInfoList.js.map +0 -1
- package/dist/src/components/participants/internal/ParticipantActions.d.ts +0 -8
- package/dist/src/components/participants/internal/ParticipantActions.js +0 -236
- package/dist/src/components/participants/internal/ParticipantActions.js.map +0 -1
- package/dist/src/components/utility/internal/CallControlsButton.js.map +0 -1
- package/dist/src/components/utility/internal/HangupCallButton.js.map +0 -1
- package/dist/src/components/utility/internal/ToggleAudioButton.d.ts +0 -1
- package/dist/src/components/utility/internal/ToggleAudioButton.js.map +0 -1
- package/dist/src/components/utility/internal/ToggleCameraFaceButton.d.ts +0 -1
- package/dist/src/components/utility/internal/ToggleCameraFaceButton.js.map +0 -1
- package/dist/src/components/utility/internal/ToggleVideoButton.d.ts +0 -1
- package/dist/src/components/utility/internal/ToggleVideoButton.js.map +0 -1
- package/dist/src/icons/ArrowRight.d.ts +0 -5
- package/dist/src/icons/ArrowRight.js +0 -13
- package/dist/src/icons/ArrowRight.js.map +0 -1
- package/dist/src/icons/Cross.d.ts +0 -6
- package/dist/src/icons/Cross.js +0 -13
- package/dist/src/icons/Cross.js.map +0 -1
- package/dist/src/icons/Pin.d.ts +0 -5
- package/dist/src/icons/Pin.js +0 -13
- package/dist/src/icons/Pin.js.map +0 -1
- package/dist/src/icons/VideoDisabled.d.ts +0 -5
- package/dist/src/icons/VideoDisabled.js +0 -14
- package/dist/src/icons/VideoDisabled.js.map +0 -1
- package/src/components/call/CallControls.tsx +0 -195
- package/src/components/participants/ParticipantsInfoBadge.tsx +0 -70
- package/src/components/participants/ParticipantsInfoList.tsx +0 -319
- package/src/components/participants/internal/ParticipantActions.tsx +0 -289
- package/src/icons/ArrowRight.tsx +0 -17
- package/src/icons/Cross.tsx +0 -15
- package/src/icons/Pin.tsx +0 -17
- package/src/icons/VideoDisabled.tsx +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.1-alpha.368](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.0.1-alpha.367...@stream-io/video-react-native-sdk-0.0.1-alpha.368) (2023-08-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **react-native:** CallControls customization ([#920](https://github.com/GetStream/stream-video-js/issues/920)) ([91f6a9d](https://github.com/GetStream/stream-video-js/commit/91f6a9d5723f29b547bd3fdb0c1dfca7b8cab925))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.0.1-alpha.367](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.0.1-alpha.366...@stream-io/video-react-native-sdk-0.0.1-alpha.367) (2023-08-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **react-native:** add CallTopView component ([#921](https://github.com/GetStream/stream-video-js/issues/921)) ([252adf3](https://github.com/GetStream/stream-video-js/commit/252adf36216c7bd291fccd4ecbdf95c9cdb31a18))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
## [0.0.1-alpha.366](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.0.1-alpha.365...@stream-io/video-react-native-sdk-0.0.1-alpha.366) (2023-08-11)
|
|
6
24
|
|
|
7
25
|
|
|
@@ -17,7 +17,7 @@ var P_IDS;
|
|
|
17
17
|
(function (P_IDS) {
|
|
18
18
|
P_IDS["LOCAL_1"] = "local-1";
|
|
19
19
|
})(P_IDS || (P_IDS = {}));
|
|
20
|
-
describe('
|
|
20
|
+
describe('ChatButton', () => {
|
|
21
21
|
it('should render an unread badge indicator when the value is defined in the chatButton prop', async () => {
|
|
22
22
|
const call = (0, call_1.mockCall)((0, client_1.mockClientWithUser)(), [
|
|
23
23
|
(0, participant_1.default)({
|
|
@@ -26,7 +26,7 @@ describe('CallControls', () => {
|
|
|
26
26
|
userId: P_IDS.LOCAL_1,
|
|
27
27
|
}),
|
|
28
28
|
]);
|
|
29
|
-
(0, RNTLTools_1.render)(<components_1.
|
|
29
|
+
(0, RNTLTools_1.render)(<components_1.ChatButton onPressHandler={jest.fn()} unreadBadgeCount={1}/>, {
|
|
30
30
|
call,
|
|
31
31
|
});
|
|
32
32
|
const indicator = await RNTLTools_1.screen.findByText('1');
|
|
@@ -40,11 +40,13 @@ describe('CallControls', () => {
|
|
|
40
40
|
userId: P_IDS.LOCAL_1,
|
|
41
41
|
}),
|
|
42
42
|
]);
|
|
43
|
-
(0, RNTLTools_1.render)(<components_1.
|
|
43
|
+
(0, RNTLTools_1.render)(<components_1.ChatButton onPressHandler={jest.fn()} unreadBadgeCount={0}/>, {
|
|
44
44
|
call,
|
|
45
45
|
});
|
|
46
46
|
await (0, RNTLTools_1.waitFor)(() => expect(() => RNTLTools_1.screen.getByTestId(TestIds_1.ComponentTestIds.CHAT_UNREAD_BADGE_COUNT_INDICATOR)).toThrow(/Unable to find an element with testID: chat-unread-badge-count-indicator/i));
|
|
47
47
|
});
|
|
48
|
+
});
|
|
49
|
+
describe('ReactionButton', () => {
|
|
48
50
|
it('render reaction button in call controls component', async () => {
|
|
49
51
|
const call = (0, call_1.mockCall)((0, client_1.mockClientWithUser)(), [
|
|
50
52
|
(0, participant_1.default)({
|
|
@@ -53,13 +55,15 @@ describe('CallControls', () => {
|
|
|
53
55
|
userId: P_IDS.LOCAL_1,
|
|
54
56
|
}),
|
|
55
57
|
], [video_client_1.OwnCapability.CREATE_REACTION]);
|
|
56
|
-
(0, RNTLTools_1.render)(<components_1.
|
|
58
|
+
(0, RNTLTools_1.render)(<components_1.ReactionButton />, {
|
|
57
59
|
call,
|
|
58
60
|
});
|
|
59
61
|
const button = await RNTLTools_1.screen.findByTestId(TestIds_1.ButtonTestIds.REACTION);
|
|
60
62
|
RNTLTools_1.fireEvent.press(button);
|
|
61
63
|
expect(RNTLTools_1.screen.getByTestId(TestIds_1.ComponentTestIds.REACTIONS_PICKER)).toBeVisible();
|
|
62
64
|
});
|
|
65
|
+
});
|
|
66
|
+
describe('HangupCallButton', () => {
|
|
63
67
|
it('execute onPressHandler when its passed to hangup call button when its pressed in call controls component', async () => {
|
|
64
68
|
const call = (0, call_1.mockCall)((0, client_1.mockClientWithUser)(), [
|
|
65
69
|
(0, participant_1.default)({
|
|
@@ -68,13 +72,13 @@ describe('CallControls', () => {
|
|
|
68
72
|
userId: P_IDS.LOCAL_1,
|
|
69
73
|
}),
|
|
70
74
|
]);
|
|
71
|
-
const
|
|
72
|
-
(0, RNTLTools_1.render)(<components_1.CallControls
|
|
75
|
+
const onHangupCallHandler = jest.fn();
|
|
76
|
+
(0, RNTLTools_1.render)(<components_1.CallControls onHangupCallHandler={onHangupCallHandler}/>, {
|
|
73
77
|
call,
|
|
74
78
|
});
|
|
75
79
|
const button = await RNTLTools_1.screen.findByTestId(TestIds_1.ButtonTestIds.HANG_UP_CALL);
|
|
76
80
|
RNTLTools_1.fireEvent.press(button);
|
|
77
|
-
expect(
|
|
81
|
+
expect(onHangupCallHandler).toHaveBeenCalled();
|
|
78
82
|
});
|
|
79
83
|
it('execute call.leave when hangup button is pressed with no custom handler in call controls component', async () => {
|
|
80
84
|
const call = (0, call_1.mockCall)((0, client_1.mockClientWithUser)(), [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallControls.test.js","sourceRoot":"","sources":["../../../__tests__/components/CallControls.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,4CAAqD;AACrD,uEAAmD;AACnD,yDAA8E;AAC9E,wCAAyC;AACzC,kDAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"CallControls.test.js","sourceRoot":"","sources":["../../../__tests__/components/CallControls.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,4CAAqD;AACrD,uEAAmD;AACnD,yDAA8E;AAC9E,wCAAyC;AACzC,kDAAwE;AACxE,qDAAgF;AAChF,0DAAwD;AAExD,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AACzB,IAAI,CAAC,aAAa,EAAE,CAAC;AAErB,IAAK,KAEJ;AAFD,WAAK,KAAK;IACR,4BAAmB,CAAA;AACrB,CAAC,EAFI,KAAK,KAAL,KAAK,QAET;AAED,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,0FAA0F,EAAE,KAAK,IAAI,EAAE;QACxG,MAAM,IAAI,GAAG,IAAA,eAAQ,EAAC,I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,YAAY,CAAC,uBAAa,CAAC,YAAY,CAAC,CAAC;QAErE,qBAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAExB,MAAM,CAAC,mBAAmB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oGAAoG,EAAE,KAAK,IAAI,EAAE;QAClH,MAAM,IAAI,GAAG,IAAA,eAAQ,EAAC,IAAA,2BAAkB,GAAE,EAAE;YAC1C,IAAA,qBAAe,EAAC;gBACd,kBAAkB,EAAE,IAAI;gBACxB,SAAS,EAAE,KAAK,CAAC,OAAO;gBACxB,MAAM,EAAE,KAAK,CAAC,OAAO;aACtB,CAAC;SACH,CAAC,CAAC;QAEH,IAAA,kBAAM,EAAC,CAAC,yBAAY,CAAC,AAAD,EAAG,EAAE;YACvB,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,kBAAM,CAAC,YAAY,CAAC,uBAAa,CAAC,YAAY,CAAC,CAAC;QAErE,qBAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAExB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The props for the Accept Call button.
|
|
3
|
+
*/
|
|
4
|
+
type AcceptCallButtonProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Handler to be called when the accept call button is pressed.
|
|
7
|
+
*/
|
|
8
|
+
onPressHandler?: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Handler to be called after the incoming call is accepted.
|
|
11
|
+
*
|
|
12
|
+
* Note: If the `onPressHandler` is passed this handler will not be executed.
|
|
13
|
+
*/
|
|
14
|
+
onAcceptHandler?: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Button to accept a call.
|
|
18
|
+
*
|
|
19
|
+
* Mostly calls call.join() internally.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AcceptCallButton: ({ onPressHandler, onAcceptHandler, }: AcceptCallButtonProps) => JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AcceptCallButton = void 0;
|
|
7
|
+
const video_react_bindings_1 = require("@stream-io/video-react-bindings");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const CallControlsButton_1 = require("./CallControlsButton");
|
|
10
|
+
const theme_1 = require("../../../theme");
|
|
11
|
+
const icons_1 = require("../../../icons");
|
|
12
|
+
/**
|
|
13
|
+
* Button to accept a call.
|
|
14
|
+
*
|
|
15
|
+
* Mostly calls call.join() internally.
|
|
16
|
+
*/
|
|
17
|
+
const AcceptCallButton = ({ onPressHandler, onAcceptHandler, }) => {
|
|
18
|
+
const call = (0, video_react_bindings_1.useCall)();
|
|
19
|
+
const acceptCallHandler = async () => {
|
|
20
|
+
if (onPressHandler) {
|
|
21
|
+
onPressHandler();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
await call?.join();
|
|
26
|
+
if (onAcceptHandler) {
|
|
27
|
+
onAcceptHandler();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
console.log('Error joining Call', error);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return (<CallControlsButton_1.CallControlsButton onPress={acceptCallHandler} color={theme_1.theme.light.info} style={theme_1.theme.button.lg} svgContainerStyle={theme_1.theme.icon.lg}>
|
|
35
|
+
<icons_1.Phone color={theme_1.theme.light.static_white}/>
|
|
36
|
+
</CallControlsButton_1.CallControlsButton>);
|
|
37
|
+
};
|
|
38
|
+
exports.AcceptCallButton = AcceptCallButton;
|
|
39
|
+
//# sourceMappingURL=AcceptCallButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptCallButton.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/AcceptCallButton.tsx"],"names":[],"mappings":";;;;;;AAAA,0EAA0D;AAC1D,kDAA0B;AAC1B,6DAA0D;AAC1D,0CAAuC;AACvC,0CAAuC;AAkBvC;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,EAC/B,cAAc,EACd,eAAe,GACO,EAAE,EAAE;IAC1B,MAAM,IAAI,GAAG,IAAA,8BAAO,GAAE,CAAC;IACvB,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;QACnC,IAAI,cAAc,EAAE;YAClB,cAAc,EAAE,CAAC;YACjB,OAAO;SACR;QACD,IAAI;YACF,MAAM,IAAI,EAAE,IAAI,EAAE,CAAC;YACnB,IAAI,eAAe,EAAE;gBACnB,eAAe,EAAE,CAAC;aACnB;SACF;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;SAC1C;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,uCAAkB,CACjB,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAC3B,KAAK,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CACxB,KAAK,CAAC,CAAC,aAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CACvB,iBAAiB,CAAC,CAAC,aAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAEjC;MAAA,CAAC,aAAK,CAAC,KAAK,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,YAAY,CAAC,EACzC;IAAA,EAAE,uCAAkB,CAAC,CACtB,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,gBAAgB,oBA8B3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ViewProps } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the CallControls Component.
|
|
4
|
+
*/
|
|
5
|
+
export interface CallControlsType extends 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;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A list/row of controls (mute audio/video, toggle front/back camera, hangup call etc.)
|
|
14
|
+
* the user can trigger within an active call.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CallControls: ({ onHangupCallHandler, style, }: CallControlsType) => JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CallControls = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
|
+
const theme_1 = require("../../../theme");
|
|
10
|
+
const ToggleAudioPublishingButton_1 = require("./ToggleAudioPublishingButton");
|
|
11
|
+
const ToggleVideoPublishingButton_1 = require("./ToggleVideoPublishingButton");
|
|
12
|
+
const ToggleCameraFaceButton_1 = require("./ToggleCameraFaceButton");
|
|
13
|
+
const constants_1 = require("../../../constants");
|
|
14
|
+
const HangupCallButton_1 = require("./HangupCallButton");
|
|
15
|
+
/**
|
|
16
|
+
* A list/row of controls (mute audio/video, toggle front/back camera, hangup call etc.)
|
|
17
|
+
* the user can trigger within an active call.
|
|
18
|
+
*/
|
|
19
|
+
const CallControls = ({ onHangupCallHandler, style, }) => {
|
|
20
|
+
return (<react_native_1.View style={[styles.container, style]}>
|
|
21
|
+
<ToggleVideoPublishingButton_1.ToggleVideoPublishingButton />
|
|
22
|
+
<ToggleAudioPublishingButton_1.ToggleAudioPublishingButton />
|
|
23
|
+
<ToggleCameraFaceButton_1.ToggleCameraFaceButton />
|
|
24
|
+
<HangupCallButton_1.HangUpCallButton onPressHandler={onHangupCallHandler}/>
|
|
25
|
+
</react_native_1.View>);
|
|
26
|
+
};
|
|
27
|
+
exports.CallControls = CallControls;
|
|
28
|
+
const styles = react_native_1.StyleSheet.create({
|
|
29
|
+
container: {
|
|
30
|
+
paddingTop: theme_1.theme.padding.md,
|
|
31
|
+
paddingBottom: theme_1.theme.padding.lg,
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
justifyContent: 'space-evenly',
|
|
34
|
+
zIndex: constants_1.Z_INDEX.IN_FRONT,
|
|
35
|
+
backgroundColor: theme_1.theme.light.static_grey,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=CallControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallControls.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/CallControls.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAA2D;AAC3D,0CAAuC;AACvC,+EAA4E;AAC5E,+EAA4E;AAC5E,qEAAkE;AAClE,kDAA6C;AAC7C,yDAAsD;AAatD;;;GAGG;AACI,MAAM,YAAY,GAAG,CAAC,EAC3B,mBAAmB,EACnB,KAAK,GACY,EAAE,EAAE;IACrB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACrC;MAAA,CAAC,yDAA2B,CAAC,AAAD,EAC5B;MAAA,CAAC,yDAA2B,CAAC,AAAD,EAC5B;MAAA,CAAC,+CAAsB,CAAC,AAAD,EACvB;MAAA,CAAC,mCAAgB,CAAC,cAAc,CAAC,CAAC,mBAAmB,CAAC,EACxD;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,YAAY,gBAYvB;AAEF,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,UAAU,EAAE,aAAK,CAAC,OAAO,CAAC,EAAE;QAC5B,aAAa,EAAE,aAAK,CAAC,OAAO,CAAC,EAAE;QAC/B,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,cAAc;QAC9B,MAAM,EAAE,mBAAO,CAAC,QAAQ;QACxB,eAAe,EAAE,aAAK,CAAC,KAAK,CAAC,WAAW;KACzC;CACF,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ interface CallControlsButtonProps {
|
|
|
10
10
|
*/
|
|
11
11
|
color?: string;
|
|
12
12
|
/**
|
|
13
|
-
* Boolean to enable/
|
|
13
|
+
* Boolean to enable/disable the button
|
|
14
14
|
*/
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
/**
|
|
@@ -25,6 +25,10 @@ interface CallControlsButtonProps {
|
|
|
25
25
|
* Accessibility label for the button.
|
|
26
26
|
*/
|
|
27
27
|
testID?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Invoked on mount and layout changes with
|
|
30
|
+
* {nativeEvent: { layout: {x, y, width, height}}}.
|
|
31
|
+
*/
|
|
28
32
|
onLayout?: View['props']['onLayout'];
|
|
29
33
|
}
|
|
30
34
|
export declare const CallControlsButton: (props: React.PropsWithChildren<CallControlsButtonProps>) => JSX.Element;
|
|
@@ -18,15 +18,11 @@ const CallControlsButton = (props) => {
|
|
|
18
18
|
backgroundColor: color,
|
|
19
19
|
opacity: pressed ? 0.2 : 1,
|
|
20
20
|
},
|
|
21
|
-
style
|
|
21
|
+
style,
|
|
22
22
|
disabled ? styles.disabledStyle : null,
|
|
23
23
|
];
|
|
24
24
|
return (<react_native_1.Pressable disabled={disabled} style={pressableStyle} onPress={onPress} testID={testID} onLayout={onLayout}>
|
|
25
|
-
<react_native_1.View style={[
|
|
26
|
-
styles.svgContainerStyle,
|
|
27
|
-
DEFAULT_ICON_SIZE,
|
|
28
|
-
svgContainerStyle ?? null,
|
|
29
|
-
]}>
|
|
25
|
+
<react_native_1.View style={[DEFAULT_ICON_SIZE, svgContainerStyle ?? null]}>
|
|
30
26
|
{children}
|
|
31
27
|
</react_native_1.View>
|
|
32
28
|
</react_native_1.Pressable>);
|
|
@@ -38,8 +34,17 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
38
34
|
borderWidth: 1,
|
|
39
35
|
borderColor: theme_1.theme.light.content_bg,
|
|
40
36
|
alignItems: 'center',
|
|
37
|
+
// For iOS
|
|
38
|
+
shadowColor: '#000',
|
|
39
|
+
shadowOffset: {
|
|
40
|
+
width: 0,
|
|
41
|
+
height: 2,
|
|
42
|
+
},
|
|
43
|
+
shadowOpacity: 0.25,
|
|
44
|
+
shadowRadius: 8,
|
|
45
|
+
// For android
|
|
46
|
+
elevation: 6,
|
|
41
47
|
},
|
|
42
|
-
svgContainerStyle: {},
|
|
43
48
|
disabledStyle: {
|
|
44
49
|
backgroundColor: theme_1.theme.light.disabled,
|
|
45
50
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallControlsButton.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/CallControlsButton.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAOsB;AACtB,0CAAuC;AAkCvC,MAAM,iBAAiB,GAAG,aAAK,CAAC,IAAI,CAAC,EAAE,CAAC;AACxC,MAAM,mBAAmB,GAAG,aAAK,CAAC,MAAM,CAAC,EAAE,CAAC;AAErC,MAAM,kBAAkB,GAAG,CAChC,KAAuD,EACvD,EAAE;IACF,MAAM,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,EACL,iBAAiB,EACjB,MAAM,EACN,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,cAAc,GAA4B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC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button in the Call Controls.
|
|
3
|
+
*/
|
|
4
|
+
export type ChatButtonProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Handler to be called when the chat button is pressed.
|
|
7
|
+
* @returns void
|
|
8
|
+
*/
|
|
9
|
+
onPressHandler?: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* The count of the current unread message to be displayed above on the Chat button.
|
|
12
|
+
*/
|
|
13
|
+
unreadBadgeCount?: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Button to open the Chat window while in the call.
|
|
17
|
+
*
|
|
18
|
+
* This call also display the unread count indicator/badge is there messages that are unread.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ChatButton: ({ onPressHandler, unreadBadgeCount, }: ChatButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChatButton = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
|
+
const CallControlsButton_1 = require("./CallControlsButton");
|
|
10
|
+
const theme_1 = require("../../../theme");
|
|
11
|
+
const icons_1 = require("../../../icons");
|
|
12
|
+
const TestIds_1 = require("../../../constants/TestIds");
|
|
13
|
+
const constants_1 = require("../../../constants");
|
|
14
|
+
/**
|
|
15
|
+
* Button to open the Chat window while in the call.
|
|
16
|
+
*
|
|
17
|
+
* This call also display the unread count indicator/badge is there messages that are unread.
|
|
18
|
+
*/
|
|
19
|
+
const ChatButton = ({ onPressHandler, unreadBadgeCount, }) => {
|
|
20
|
+
return (<react_native_1.View>
|
|
21
|
+
<CallControlsButton_1.CallControlsButton color={theme_1.theme.light.static_white} onPress={onPressHandler} svgContainerStyle={styles.svgContainerStyle}>
|
|
22
|
+
<UnreadBadgeCountIndicator count={unreadBadgeCount}/>
|
|
23
|
+
<icons_1.Chat color={theme_1.theme.light.static_black}/>
|
|
24
|
+
</CallControlsButton_1.CallControlsButton>
|
|
25
|
+
</react_native_1.View>);
|
|
26
|
+
};
|
|
27
|
+
exports.ChatButton = ChatButton;
|
|
28
|
+
const UnreadBadgeCountIndicator = ({ count, }) => {
|
|
29
|
+
// Don't show badge if count is 0 or undefined
|
|
30
|
+
if (!count) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return (<react_native_1.View testID={TestIds_1.ComponentTestIds.CHAT_UNREAD_BADGE_COUNT_INDICATOR} style={styles.chatBadge}>
|
|
34
|
+
<react_native_1.Text style={styles.chatBadgeText}>{count}</react_native_1.Text>
|
|
35
|
+
</react_native_1.View>);
|
|
36
|
+
};
|
|
37
|
+
const styles = react_native_1.StyleSheet.create({
|
|
38
|
+
svgContainerStyle: {
|
|
39
|
+
paddingTop: theme_1.theme.padding.xs,
|
|
40
|
+
},
|
|
41
|
+
chatBadge: {
|
|
42
|
+
backgroundColor: theme_1.theme.light.error,
|
|
43
|
+
borderRadius: theme_1.theme.rounded.xl,
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
left: 15,
|
|
46
|
+
bottom: 20,
|
|
47
|
+
zIndex: constants_1.Z_INDEX.IN_FRONT,
|
|
48
|
+
height: 30,
|
|
49
|
+
width: 30,
|
|
50
|
+
justifyContent: 'center',
|
|
51
|
+
},
|
|
52
|
+
chatBadgeText: {
|
|
53
|
+
color: theme_1.theme.light.static_white,
|
|
54
|
+
textAlign: 'center',
|
|
55
|
+
...theme_1.theme.fonts.bodyBold,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=ChatButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatButton.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/ChatButton.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B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EAAE,aAAK,CAAC,KAAK,CAAC,KAAK;QAClC,YAAY,EAAE,aAAK,CAAC,OAAO,CAAC,EAAE;QAC9B,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,mBAAO,CAAC,QAAQ;QACxB,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,EAAE;QACT,cAAc,EAAE,QAAQ;KACzB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,aAAK,CAAC,KAAK,CAAC,YAAY;QAC/B,SAAS,EAAE,QAAQ;QACnB,GAAG,aAAK,CAAC,KAAK,CAAC,QAAQ;KACxB;CACF,CAAC,CAAC"}
|
|
@@ -8,9 +8,20 @@ export type HangUpCallButtonProps = {
|
|
|
8
8
|
* @returns void
|
|
9
9
|
*/
|
|
10
10
|
onPressHandler?: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Handler to be called when the call is hanged up.
|
|
13
|
+
*
|
|
14
|
+
* Note: If the `onPressHandler` is passed this handler will not be executed.
|
|
15
|
+
*/
|
|
16
|
+
onHangUpCall?: () => void;
|
|
11
17
|
/**
|
|
12
18
|
* Style of the Button Container
|
|
13
19
|
*/
|
|
14
20
|
style?: StyleProp<ViewStyle>;
|
|
15
21
|
};
|
|
16
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Button to hangup a call.
|
|
24
|
+
*
|
|
25
|
+
* Mostly calls call.leave() internally.
|
|
26
|
+
*/
|
|
27
|
+
export declare const HangUpCallButton: ({ onPressHandler, onHangUpCall, style, }: HangUpCallButtonProps) => JSX.Element;
|
|
@@ -27,12 +27,16 @@ exports.HangUpCallButton = void 0;
|
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
const CallControlsButton_1 = require("./CallControlsButton");
|
|
29
29
|
const theme_1 = require("../../../theme");
|
|
30
|
-
const react_native_1 = require("react-native");
|
|
31
30
|
const icons_1 = require("../../../icons");
|
|
32
31
|
const TestIds_1 = require("../../../constants/TestIds");
|
|
33
32
|
const video_react_bindings_1 = require("@stream-io/video-react-bindings");
|
|
34
33
|
const video_client_1 = require("@stream-io/video-client");
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Button to hangup a call.
|
|
36
|
+
*
|
|
37
|
+
* Mostly calls call.leave() internally.
|
|
38
|
+
*/
|
|
39
|
+
const HangUpCallButton = ({ onPressHandler, onHangUpCall, style, }) => {
|
|
36
40
|
const call = (0, video_react_bindings_1.useCall)();
|
|
37
41
|
const { useCallCallingState } = (0, video_react_bindings_1.useCallStateHooks)();
|
|
38
42
|
const callingState = useCallCallingState();
|
|
@@ -46,28 +50,18 @@ const HangUpCallButton = ({ onPressHandler, style, }) => {
|
|
|
46
50
|
return;
|
|
47
51
|
}
|
|
48
52
|
await call?.leave();
|
|
53
|
+
if (onHangUpCall) {
|
|
54
|
+
onHangUpCall();
|
|
55
|
+
}
|
|
49
56
|
}
|
|
50
57
|
catch (error) {
|
|
51
58
|
console.error('Error leaving call:', error);
|
|
52
59
|
}
|
|
53
60
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
61
|
}, [call]);
|
|
55
|
-
return (<CallControlsButton_1.CallControlsButton onPress={hangUpCallHandler} color={theme_1.theme.light.error} style={[
|
|
62
|
+
return (<CallControlsButton_1.CallControlsButton onPress={hangUpCallHandler} color={theme_1.theme.light.error} style={[{ shadowColor: theme_1.theme.light.error }, style]} testID={TestIds_1.ButtonTestIds.HANG_UP_CALL}>
|
|
56
63
|
<icons_1.PhoneDown color={theme_1.theme.light.static_white}/>
|
|
57
64
|
</CallControlsButton_1.CallControlsButton>);
|
|
58
65
|
};
|
|
59
66
|
exports.HangUpCallButton = HangUpCallButton;
|
|
60
|
-
const styles = react_native_1.StyleSheet.create({
|
|
61
|
-
button: {
|
|
62
|
-
// For iOS
|
|
63
|
-
shadowOffset: {
|
|
64
|
-
width: 0,
|
|
65
|
-
height: 6,
|
|
66
|
-
},
|
|
67
|
-
shadowOpacity: 0.37,
|
|
68
|
-
shadowRadius: 7.49,
|
|
69
|
-
// For android
|
|
70
|
-
elevation: 6,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
67
|
//# sourceMappingURL=HangupCallButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HangupCallButton.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/HangupCallButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAC3C,6DAA0D;AAC1D,0CAAuC;AAEvC,0CAA2C;AAC3C,wDAA2D;AAC3D,0EAA6E;AAC7E,0DAAuD;AAuBvD;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,EAC/B,cAAc,EACd,YAAY,EACZ,KAAK,GACiB,EAAE,EAAE;IAC1B,MAAM,IAAI,GAAG,IAAA,8BAAO,GAAE,CAAC;IACvB,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAA,wCAAiB,GAAE,CAAC;IACpD,MAAM,YAAY,GAAG,mBAAmB,EAAE,CAAC;IAE3C,MAAM,iBAAiB,GAAG,IAAA,mBAAW,EAAC,KAAK,IAAI,EAAE;QAC/C,IAAI,cAAc,EAAE;YAClB,cAAc,EAAE,CAAC;YACjB,OAAO;SACR;QACD,IAAI;YACF,IAAI,YAAY,KAAK,2BAAY,CAAC,IAAI,EAAE;gBACtC,OAAO;aACR;YACD,MAAM,IAAI,EAAE,KAAK,EAAE,CAAC;YACpB,IAAI,YAAY,EAAE;gBAChB,YAAY,EAAE,CAAC;aAChB;SACF;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;SAC7C;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,CACL,CAAC,uCAAkB,CACjB,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAC3B,KAAK,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACzB,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,aAAK,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC,CACnD,MAAM,CAAC,CAAC,uBAAa,CAAC,YAAY,CAAC,CAEnC;MAAA,CAAC,iBAAS,CAAC,KAAK,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,YAAY,CAAC,EAC7C;IAAA,EAAE,uCAAkB,CAAC,CACtB,CAAC;AACJ,CAAC,CAAC;AAtCW,QAAA,gBAAgB,oBAsC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ReactionButton = void 0;
|
|
27
|
+
const video_react_bindings_1 = require("@stream-io/video-react-bindings");
|
|
28
|
+
const react_1 = __importStar(require("react"));
|
|
29
|
+
const CallControlsButton_1 = require("./CallControlsButton");
|
|
30
|
+
const video_client_1 = require("@stream-io/video-client");
|
|
31
|
+
const TestIds_1 = require("../../../constants/TestIds");
|
|
32
|
+
const theme_1 = require("../../../theme");
|
|
33
|
+
const icons_1 = require("../../../icons");
|
|
34
|
+
const ReactionsPicker_1 = require("../ReactionsPicker");
|
|
35
|
+
const utils_1 = require("../../../utils");
|
|
36
|
+
/**
|
|
37
|
+
* Button to display the list of Reactions supported in the call.
|
|
38
|
+
* On press, it opens a view that can be used to send Reaction.
|
|
39
|
+
*/
|
|
40
|
+
const ReactionButton = ({ onPressHandler }) => {
|
|
41
|
+
const [showReactionsPicker, setShowReactionsPicker] = (0, react_1.useState)(false);
|
|
42
|
+
const [reactionsButtonLayoutRectangle, setReactionsButtonLayoutRectangle] = (0, react_1.useState)();
|
|
43
|
+
// This is for the reaction picker
|
|
44
|
+
const onReactionsButtonLayout = (event) => {
|
|
45
|
+
const layout = event.nativeEvent.layout;
|
|
46
|
+
setReactionsButtonLayoutRectangle((prev) => {
|
|
47
|
+
if (prev &&
|
|
48
|
+
prev.width === layout.width &&
|
|
49
|
+
prev.height === layout.height &&
|
|
50
|
+
prev.x === layout.x &&
|
|
51
|
+
prev.y === layout.y) {
|
|
52
|
+
return prev;
|
|
53
|
+
}
|
|
54
|
+
return layout;
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
const reactionButtonHandler = () => {
|
|
58
|
+
if (onPressHandler) {
|
|
59
|
+
onPressHandler();
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
setShowReactionsPicker(true);
|
|
63
|
+
};
|
|
64
|
+
return (<>
|
|
65
|
+
<video_react_bindings_1.Restricted requiredGrants={[video_client_1.OwnCapability.CREATE_REACTION]}>
|
|
66
|
+
<CallControlsButton_1.CallControlsButton testID={TestIds_1.ButtonTestIds.REACTION} onPress={reactionButtonHandler} color={theme_1.theme.light.static_white} onLayout={onReactionsButtonLayout}>
|
|
67
|
+
<icons_1.Reaction color={theme_1.theme.light.static_black}/>
|
|
68
|
+
</CallControlsButton_1.CallControlsButton>
|
|
69
|
+
</video_react_bindings_1.Restricted>
|
|
70
|
+
{showReactionsPicker && (<ReactionsPicker_1.ReactionsPicker reactions={utils_1.StreamVideoRN.getConfig().supportedReactions} reactionsButtonLayoutRectangle={reactionsButtonLayoutRectangle} onRequestedClose={() => {
|
|
71
|
+
setShowReactionsPicker(false);
|
|
72
|
+
}}/>)}
|
|
73
|
+
</>);
|
|
74
|
+
};
|
|
75
|
+
exports.ReactionButton = ReactionButton;
|
|
76
|
+
//# sourceMappingURL=ReactionButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactionButton.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/ReactionButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA6D;AAC7D,+CAAwC;AACxC,6DAA0D;AAC1D,0DAAwD;AACxD,wDAA2D;AAC3D,0CAAuC;AACvC,0CAA0C;AAC1C,wDAAqD;AACrD,0CAA+C;AAa/C;;;GAGG;AACI,MAAM,cAAc,G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AC,aAAK,CAAC,KAAK,CAAC,YAAY,CAAC,EAC5C;QAAA,EAAE,uCAAkB,CACtB;MAAA,EAAE,iCAAU,CACZ;MAAA,CAAC,mBAAmB,IAAI,CACtB,CAAC,iCAAe,CACd,SAAS,CAAC,CAAC,qBAAa,CAAC,SAAS,EAAE,CAAC,kBAAkB,CAAC,CACxD,8BAA8B,CAAC,CAAC,8BAA8B,CAAC,CAC/D,gBAAgB,CAAC,CAAC,GAAG,EAAE;gBACrB,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC,CAAC,EACF,CACH,CACH;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,cAAc,kBAsDzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The props for the Reject Call button.
|
|
3
|
+
*/
|
|
4
|
+
type RejectCallButtonProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Handler to be called when the accept call button is pressed.
|
|
7
|
+
* @returns void
|
|
8
|
+
*/
|
|
9
|
+
onPressHandler?: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Handler to be called when the reject call button is pressed.
|
|
12
|
+
*
|
|
13
|
+
* Note: If the `onPressHandler` is passed this handler will not be executed.
|
|
14
|
+
*/
|
|
15
|
+
onRejectHandler?: () => void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Button to reject a call.
|
|
19
|
+
*
|
|
20
|
+
* Mostly calls call.leave({ reject: true }) internally.
|
|
21
|
+
*/
|
|
22
|
+
export declare const RejectCallButton: ({ onPressHandler, onRejectHandler, }: RejectCallButtonProps) => JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RejectCallButton = void 0;
|
|
7
|
+
const video_react_bindings_1 = require("@stream-io/video-react-bindings");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const CallControlsButton_1 = require("./CallControlsButton");
|
|
10
|
+
const theme_1 = require("../../../theme");
|
|
11
|
+
const icons_1 = require("../../../icons");
|
|
12
|
+
const video_client_1 = require("@stream-io/video-client");
|
|
13
|
+
/**
|
|
14
|
+
* Button to reject a call.
|
|
15
|
+
*
|
|
16
|
+
* Mostly calls call.leave({ reject: true }) internally.
|
|
17
|
+
*/
|
|
18
|
+
const RejectCallButton = ({ onPressHandler, onRejectHandler, }) => {
|
|
19
|
+
const call = (0, video_react_bindings_1.useCall)();
|
|
20
|
+
const { useCallCallingState } = (0, video_react_bindings_1.useCallStateHooks)();
|
|
21
|
+
const callingState = useCallCallingState();
|
|
22
|
+
const rejectCallHandler = async () => {
|
|
23
|
+
if (onPressHandler) {
|
|
24
|
+
onPressHandler();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
if (callingState === video_client_1.CallingState.LEFT) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
await call?.leave({ reject: true });
|
|
32
|
+
if (onRejectHandler) {
|
|
33
|
+
onRejectHandler();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
console.log('Error rejecting Call', error);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return (<CallControlsButton_1.CallControlsButton onPress={rejectCallHandler} color={theme_1.theme.light.error} style={theme_1.theme.button.lg} svgContainerStyle={theme_1.theme.icon.lg}>
|
|
41
|
+
<icons_1.PhoneDown color={theme_1.theme.light.static_white}/>
|
|
42
|
+
</CallControlsButton_1.CallControlsButton>);
|
|
43
|
+
};
|
|
44
|
+
exports.RejectCallButton = RejectCallButton;
|
|
45
|
+
//# sourceMappingURL=RejectCallButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RejectCallButton.js","sourceRoot":"","sources":["../../../../../src/components/call/CallControls/RejectCallButton.tsx"],"names":[],"mappings":";;;;;;AAAA,0EAA6E;AAC7E,kDAA0B;AAC1B,6DAA0D;AAC1D,0CAAuC;AACvC,0CAA2C;AAC3C,0DAAuD;AAmBvD;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,EAC/B,cAAc,EACd,eAAe,GACO,EAAE,EAAE;IAC1B,MAAM,IAAI,GAAG,IAAA,8BAAO,GAAE,CAAC;IACvB,MAAM,EAAE,mBAAmB,EAAE,GAAG,IAAA,wCAAiB,GAAE,CAAC;IACpD,MAAM,YAAY,GAAG,mBAAmB,EAAE,CAAC;IAC3C,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;QACnC,IAAI,cAAc,EAAE;YAClB,cAAc,EAAE,CAAC;YACjB,OAAO;SACR;QACD,IAAI;YACF,IAAI,YAAY,KAAK,2BAAY,CAAC,IAAI,EAAE;gBACtC,OAAO;aACR;YACD,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;YACpC,IAAI,eAAe,EAAE;gBACnB,eAAe,EAAE,CAAC;aACnB;SACF;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;SAC5C;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,uCAAkB,CACjB,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAC3B,KAAK,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CACzB,KAAK,CAAC,CAAC,aAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CACvB,iBAAiB,CAAC,CAAC,aAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAEjC;MAAA,CAAC,iBAAS,CAAC,KAAK,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,YAAY,CAAC,EAC7C;IAAA,EAA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