agora-appbuilder-core 4.0.13 → 4.0.15
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/package.json +1 -1
- package/template/_package-lock.json +1364 -1576
- package/template/android/app/src/main/assets/fonts/icomoon.ttf +0 -0
- package/template/customization-api/sub-components.ts +6 -4
- package/template/customization-api/types.ts +0 -6
- package/template/defaultConfig.js +0 -3
- package/template/global.d.ts +0 -3
- package/template/ios/Podfile.lock +0 -10
- package/template/package-lock.json +1364 -1576
- package/template/package.json +0 -4
- package/template/src/SDKAppWrapper.tsx +8 -2
- package/template/src/app-state/useMessages.ts +9 -49
- package/template/src/assets/font-styles.css +125 -289
- package/template/src/assets/fonts/icomoon.ttf +0 -0
- package/template/src/assets/selection.json +1 -1
- package/template/src/atoms/ActionMenu.tsx +2 -5
- package/template/src/atoms/CustomIcon.tsx +1 -17
- package/template/src/atoms/ImageIcon.tsx +3 -19
- package/template/src/atoms/Popup.tsx +4 -13
- package/template/src/atoms/ToolbarPreset.tsx +57 -6
- package/template/src/auth/AuthProvider.tsx +0 -5
- package/template/src/auth/config.ts +3 -12
- package/template/src/components/Chat.tsx +1 -7
- package/template/src/components/ChatContext.ts +0 -12
- package/template/src/components/CommonStyles.ts +2 -2
- package/template/src/components/Controls.tsx +57 -29
- package/template/src/components/Leftbar.tsx +4 -4
- package/template/src/components/Navbar.tsx +54 -29
- package/template/src/components/NavbarMobile.tsx +23 -33
- package/template/src/components/PinnedVideo.tsx +1 -1
- package/template/src/components/RTMConfigure.tsx +0 -1
- package/template/src/components/SdkApiContext.tsx +4 -1
- package/template/src/components/chat-messages/useChatMessages.tsx +607 -411
- package/template/src/components/chat-ui/useChatUIControls.tsx +0 -53
- package/template/src/components/meeting-info-invite/MeetingInfoGridTile.tsx +1 -4
- package/template/src/components/participants/Participant.tsx +1 -0
- package/template/src/components/precall/joinWaitingRoomBtn.native.tsx +1 -6
- package/template/src/components/precall/joinWaitingRoomBtn.tsx +1 -6
- package/template/src/components/room-info/useRoomInfo.tsx +5 -5
- package/template/src/language/default-labels/videoCallScreenLabels.ts +6 -86
- package/template/src/pages/VideoCall.tsx +4 -3
- package/template/src/pages/video-call/ActionSheetContent.tsx +32 -3
- package/template/src/pages/video-call/VideoCallScreenWrapper.tsx +12 -22
- package/template/src/pages/video-call/VideoComponent.tsx +11 -5
- package/template/src/pages/video-call/index.ts +0 -8
- package/template/src/subComponents/ChatBubble.tsx +32 -252
- package/template/src/subComponents/ChatContainer.tsx +4 -14
- package/template/src/subComponents/ChatInput.ios.tsx +184 -0
- package/template/src/subComponents/ChatInput.tsx +100 -276
- package/template/src/subComponents/RemoteMutePopup.tsx +131 -12
- package/template/src/subComponents/caption/CaptionContainer.tsx +2 -6
- package/template/src/subComponents/recording/useRecording.tsx +1 -3
- package/template/src/utils/SdkMethodEvents.ts +1 -0
- package/template/src/utils/common.tsx +17 -0
- package/template/src/utils/index.tsx +0 -30
- package/template/src/utils/useEndCall.ts +0 -7
- package/template/src/utils/useJoinRoom.ts +7 -33
- package/template/android/link-assets-manifest.json +0 -13
- package/template/ios/link-assets-manifest.json +0 -13
- package/template/src/atoms/InlinePopup.tsx +0 -185
- package/template/src/components/chat/chatConfigure.native.tsx +0 -488
- package/template/src/components/chat/chatConfigure.tsx +0 -473
- package/template/src/subComponents/ChatInput.native.tsx +0 -269
- package/template/src/subComponents/chat/ChatActionMenu.tsx +0 -224
- package/template/src/subComponents/chat/ChatAttachment.native.tsx +0 -234
- package/template/src/subComponents/chat/ChatAttachment.tsx +0 -145
- package/template/src/subComponents/chat/ChatEmoji.native.tsx +0 -75
- package/template/src/subComponents/chat/ChatEmoji.tsx +0 -181
- package/template/src/subComponents/chat/ChatSendButton.tsx +0 -141
- package/template/src/subComponents/chat/ChatUploadStatus.tsx +0 -65
- package/template/src/subComponents/chat/ImagePopup.tsx +0 -400
package/template/package.json
CHANGED
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"@react-native-community/clipboard": "1.5.1",
|
|
60
60
|
"@supersami/rn-foreground-service": "^1.1.1",
|
|
61
61
|
"add": "^2.0.6",
|
|
62
|
-
"agora-chat": "^1.2.1",
|
|
63
62
|
"agora-extension-ai-denoiser": "1.1.0",
|
|
64
63
|
"agora-extension-virtual-background": "^1.1.3",
|
|
65
64
|
"agora-react-native-rtm": "1.5.1",
|
|
@@ -69,8 +68,6 @@
|
|
|
69
68
|
"electron-log": "4.3.5",
|
|
70
69
|
"electron-squirrel-startup": "1.0.0",
|
|
71
70
|
"electron-updater": "4.3.9",
|
|
72
|
-
"emoji-mart-native": "^0.6.5-beta",
|
|
73
|
-
"emoji-picker-react": "^4.7.1",
|
|
74
71
|
"exponential-backoff": "3.1.0",
|
|
75
72
|
"fetch-retry": "^5.0.6",
|
|
76
73
|
"graphql": "15.5.0",
|
|
@@ -87,7 +84,6 @@
|
|
|
87
84
|
"react-is": "18.0.0",
|
|
88
85
|
"react-native": "0.72.4",
|
|
89
86
|
"react-native-agora": "4.2.6-build.3-rc.1",
|
|
90
|
-
"react-native-agora-chat": "1.2.1",
|
|
91
87
|
"react-native-document-picker": "^9.1.0",
|
|
92
88
|
"react-native-exit-app": "1.1.0",
|
|
93
89
|
"react-native-fs": "^2.20.0",
|
|
@@ -21,11 +21,13 @@ export interface AppBuilderSdkApiInterface {
|
|
|
21
21
|
joinRoom: (
|
|
22
22
|
roomDetails: string | meetingData,
|
|
23
23
|
userName?: string,
|
|
24
|
+
preference?: {disableShareTile: boolean},
|
|
24
25
|
) => Promise<meetingData>;
|
|
25
26
|
joinPrecall: (
|
|
26
27
|
roomDetails: string | meetingData,
|
|
27
28
|
userName?: string,
|
|
28
29
|
skipPrecall?: boolean,
|
|
30
|
+
preference?: {disableShareTile: boolean},
|
|
29
31
|
) => Promise<
|
|
30
32
|
[
|
|
31
33
|
meetingData,
|
|
@@ -67,22 +69,25 @@ export const AppBuilderSdkApi: AppBuilderSdkApiInterface = {
|
|
|
67
69
|
return await SDKMethodEventsManager.emit('customize', customization);
|
|
68
70
|
},
|
|
69
71
|
customEvents: customEvents,
|
|
70
|
-
joinRoom: async (roomDetails, userName) => {
|
|
72
|
+
joinRoom: async (roomDetails, userName, preference) => {
|
|
71
73
|
logger.log(LogSource.SDK, 'Event', 'emiting event for joinRoom - join', {
|
|
72
74
|
room: roomDetails,
|
|
73
75
|
userName: userName,
|
|
76
|
+
preference: preference
|
|
74
77
|
});
|
|
75
78
|
return await SDKMethodEventsManager.emit(
|
|
76
79
|
'join',
|
|
77
80
|
roomDetails,
|
|
78
81
|
true,
|
|
79
82
|
userName,
|
|
83
|
+
preference,
|
|
80
84
|
);
|
|
81
85
|
},
|
|
82
|
-
joinPrecall: async (roomDetails, userName, skipPrecall) => {
|
|
86
|
+
joinPrecall: async (roomDetails, userName, skipPrecall, preference) => {
|
|
83
87
|
logger.log(LogSource.SDK, 'Event', 'emiting event for joinPrecall - join', {
|
|
84
88
|
room: roomDetails,
|
|
85
89
|
userName: userName,
|
|
90
|
+
preference: preference
|
|
86
91
|
});
|
|
87
92
|
if (!$config.PRECALL) {
|
|
88
93
|
logger.error(
|
|
@@ -97,6 +102,7 @@ export const AppBuilderSdkApi: AppBuilderSdkApiInterface = {
|
|
|
97
102
|
roomDetails,
|
|
98
103
|
skipPrecall,
|
|
99
104
|
userName,
|
|
105
|
+
preference,
|
|
100
106
|
);
|
|
101
107
|
return t as unknown as [
|
|
102
108
|
RoomInfoContextInterface['data'],
|
|
@@ -3,39 +3,24 @@ import {
|
|
|
3
3
|
useChatNotification,
|
|
4
4
|
} from '../components/chat-notification/useChatNotification';
|
|
5
5
|
import {
|
|
6
|
-
ChatOption,
|
|
7
|
-
MessageStatusCallback,
|
|
8
6
|
messageStoreInterface,
|
|
9
7
|
useChatMessages,
|
|
10
|
-
SDKChatType,
|
|
11
8
|
} from '../components/chat-messages/useChatMessages';
|
|
12
|
-
import {useChatConfigure} from '../components/chat/chatConfigure';
|
|
13
|
-
import {isWeb} from '../utils/common';
|
|
14
|
-
import type {UidType} from '../../agora-rn-uikit';
|
|
15
9
|
|
|
16
10
|
export interface messageInterface {
|
|
17
11
|
groupMessages: messageStoreInterface[];
|
|
18
12
|
privateMessages: {
|
|
19
13
|
[key: string]: messageStoreInterface[];
|
|
20
14
|
};
|
|
21
|
-
sendMessage: (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
) => void;
|
|
25
|
-
// editMessage: (msgId: string, msg: string, toUid?: number) => void;
|
|
26
|
-
deleteMessage: (msgId: string, to?: string, chatType?: SDKChatType) => void;
|
|
15
|
+
sendMessage: (msg: string, toUid?: number) => void;
|
|
16
|
+
editMessage: (msgId: string, msg: string, toUid?: number) => void;
|
|
17
|
+
deleteMessage: (msgId: string, toUid?: number) => void;
|
|
27
18
|
groupUnreadCount: number;
|
|
28
19
|
individualUnreadCount: individualUnreadMessageCount;
|
|
29
20
|
setGroupUnreadCount: React.Dispatch<React.SetStateAction<number>>;
|
|
30
21
|
setIndividualUnreadCount: React.Dispatch<
|
|
31
22
|
React.SetStateAction<individualUnreadMessageCount>
|
|
32
23
|
>;
|
|
33
|
-
|
|
34
|
-
removeMessageFromStore: (msgId: string, isMsgRecalled: boolean) => void;
|
|
35
|
-
removeMessageFromPrivateStore: (
|
|
36
|
-
msgId: string,
|
|
37
|
-
isMsgRecalled: boolean,
|
|
38
|
-
) => void;
|
|
39
24
|
}
|
|
40
25
|
|
|
41
26
|
/**
|
|
@@ -43,12 +28,12 @@ export interface messageInterface {
|
|
|
43
28
|
*/
|
|
44
29
|
export const useMessages: () => messageInterface = () => {
|
|
45
30
|
const {
|
|
31
|
+
deleteChatMessage: deleteMessage,
|
|
32
|
+
editChatMessage: editMessage,
|
|
46
33
|
messageStore: groupMessages,
|
|
47
34
|
privateMessageStore: privateMessages,
|
|
48
|
-
|
|
49
|
-
removeMessageFromStore,
|
|
35
|
+
sendChatMessage: sendMessage,
|
|
50
36
|
} = useChatMessages();
|
|
51
|
-
const {sendChatSDKMessage, deleteAttachment} = useChatConfigure();
|
|
52
37
|
const {
|
|
53
38
|
setUnreadIndividualMessageCount: setIndividualUnreadCount,
|
|
54
39
|
setUnreadGroupMessageCount: setGroupUnreadCount,
|
|
@@ -56,40 +41,15 @@ export const useMessages: () => messageInterface = () => {
|
|
|
56
41
|
unreadIndividualMessageCount: individualUnreadCount,
|
|
57
42
|
} = useChatNotification();
|
|
58
43
|
|
|
59
|
-
const sendMessageWrapper = (
|
|
60
|
-
option: ChatOption,
|
|
61
|
-
messageStatusCallback?: MessageStatusCallback,
|
|
62
|
-
) => {
|
|
63
|
-
if (isWeb()) {
|
|
64
|
-
sendChatSDKMessage(option);
|
|
65
|
-
} else {
|
|
66
|
-
sendChatSDKMessage(option, messageStatusCallback);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const deleteMessageWrapper = (
|
|
71
|
-
msgId: string,
|
|
72
|
-
to?: string,
|
|
73
|
-
chatType?: SDKChatType,
|
|
74
|
-
) => {
|
|
75
|
-
if (isWeb()) {
|
|
76
|
-
deleteAttachment(msgId, to, chatType);
|
|
77
|
-
} else {
|
|
78
|
-
deleteAttachment(msgId);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
44
|
return {
|
|
83
45
|
groupMessages,
|
|
84
46
|
privateMessages,
|
|
85
|
-
sendMessage
|
|
86
|
-
|
|
87
|
-
deleteMessage
|
|
47
|
+
sendMessage,
|
|
48
|
+
editMessage,
|
|
49
|
+
deleteMessage,
|
|
88
50
|
groupUnreadCount,
|
|
89
51
|
individualUnreadCount,
|
|
90
52
|
setGroupUnreadCount,
|
|
91
53
|
setIndividualUnreadCount,
|
|
92
|
-
removeMessageFromStore,
|
|
93
|
-
removeMessageFromPrivateStore,
|
|
94
54
|
};
|
|
95
55
|
};
|