agora-appbuilder-core 4.1.10-beta.1 → 4.1.11-beta.2
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 +2 -2
- package/template/agora-rn-uikit/src/Utils/isBotUser.ts +1 -1
- package/template/android/app/build.gradle +0 -7
- package/template/bridge/rtc/webNg/RtcEngine.ts +2 -2
- package/template/bridge/rtm/web/Types.ts +0 -183
- package/template/bridge/rtm/web/index.ts +488 -450
- package/template/customization-api/typeDefinition.ts +0 -1
- package/template/defaultConfig.js +3 -4
- package/template/global.d.ts +0 -1
- package/template/ios/Podfile +0 -41
- package/template/package.json +5 -5
- package/template/src/AppRoutes.tsx +3 -3
- package/template/src/ai-agent/components/ControlButtons.tsx +1 -1
- package/template/src/assets/font-styles.css +1 -33
- package/template/src/assets/fonts/icomoon.ttf +0 -0
- package/template/src/assets/selection.json +1 -1
- package/template/src/atoms/ActionMenu.tsx +93 -13
- package/template/src/atoms/CustomIcon.tsx +1 -8
- package/template/src/atoms/DropDownMulti.tsx +80 -29
- package/template/src/atoms/Dropdown.tsx +0 -5
- package/template/src/atoms/Input.tsx +2 -1
- package/template/src/atoms/TertiaryButton.tsx +1 -1
- package/template/src/atoms/UserAvatar.tsx +1 -1
- package/template/src/components/ChatContext.ts +3 -5
- package/template/src/components/Controls.tsx +167 -208
- package/template/src/components/DeviceConfigure.tsx +1 -1
- package/template/src/components/EventsConfigure.tsx +168 -118
- package/template/src/components/Navbar.tsx +11 -14
- package/template/src/components/RTMConfigure.tsx +819 -32
- package/template/src/components/beauty-effect/useBeautyEffects.tsx +13 -50
- package/template/src/components/chat/chatConfigure.tsx +1 -7
- package/template/src/components/chat-messages/useChatMessages.tsx +11 -43
- package/template/src/components/controls/useControlPermissionMatrix.tsx +4 -32
- package/template/src/components/participants/AllHostParticipants.tsx +2 -10
- package/template/src/components/participants/Participant.tsx +1 -7
- package/template/src/components/participants/UserActionMenuOptions.tsx +2 -12
- package/template/src/components/precall/joinCallBtn.native.tsx +7 -2
- package/template/src/components/precall/joinCallBtn.tsx +7 -2
- package/template/src/components/precall/joinWaitingRoomBtn.native.tsx +16 -15
- package/template/src/components/precall/joinWaitingRoomBtn.tsx +31 -17
- package/template/src/components/precall/textInput.tsx +45 -22
- package/template/src/components/precall/usePreCall.tsx +7 -0
- package/template/src/components/recordings/RecordingsDateTable.tsx +2 -3
- package/template/src/components/room-info/useRoomInfo.tsx +5 -0
- package/template/src/components/useUserPreference.tsx +12 -39
- package/template/src/components/virtual-background/useVB.tsx +0 -18
- package/template/src/components/whiteboard/WhiteboardConfigure.tsx +0 -27
- package/template/src/language/default-labels/videoCallScreenLabels.ts +27 -11
- package/template/src/logger/AppBuilderLogger.tsx +3 -11
- package/template/src/pages/VideoCall.tsx +518 -171
- package/template/src/pages/video-call/ActionSheetContent.tsx +77 -77
- package/template/src/pages/video-call/SidePanelHeader.tsx +81 -53
- package/template/src/pages/video-call/VideoCallScreen.tsx +0 -18
- package/template/src/pages/video-call/VideoCallScreenWrapper.tsx +1 -0
- package/template/src/rtm/RTMEngine.ts +37 -262
- package/template/src/rtm/utils.ts +1 -68
- package/template/src/rtm-events/constants.ts +7 -40
- package/template/src/rtm-events-api/Events.ts +39 -158
- package/template/src/subComponents/ChatBubble.tsx +3 -3
- package/template/src/subComponents/ChatContainer.tsx +9 -19
- package/template/src/subComponents/LocalAudioMute.tsx +2 -2
- package/template/src/subComponents/LocalVideoMute.tsx +2 -2
- package/template/src/subComponents/SidePanelEnum.tsx +0 -1
- package/template/src/subComponents/caption/Caption.tsx +48 -7
- package/template/src/subComponents/caption/CaptionContainer.tsx +324 -51
- package/template/src/subComponents/caption/CaptionIcon.tsx +35 -34
- package/template/src/subComponents/caption/CaptionText.tsx +103 -2
- package/template/src/subComponents/caption/LanguageSelectorPopup.tsx +179 -69
- package/template/src/subComponents/caption/Transcript.tsx +46 -11
- package/template/src/subComponents/caption/TranscriptIcon.tsx +27 -35
- package/template/src/subComponents/caption/TranscriptText.tsx +78 -3
- package/template/src/subComponents/caption/proto/ptoto.js +38 -4
- package/template/src/subComponents/caption/proto/test.proto +34 -19
- package/template/src/subComponents/caption/useCaption.tsx +754 -11
- package/template/src/subComponents/caption/useSTTAPI.tsx +118 -205
- package/template/src/subComponents/caption/useStreamMessageUtils.native.ts +152 -33
- package/template/src/subComponents/caption/useStreamMessageUtils.ts +165 -34
- package/template/src/subComponents/caption/utils.ts +171 -3
- package/template/src/subComponents/chat/ChatSendButton.tsx +0 -1
- package/template/src/subComponents/screenshare/ScreenshareButton.tsx +0 -16
- package/template/src/subComponents/screenshare/ScreenshareConfigure.native.tsx +1 -1
- package/template/src/subComponents/waiting-rooms/WaitingRoomControls.tsx +4 -7
- package/template/src/utils/SdkEvents.ts +3 -0
- package/template/src/utils/useEndCall.ts +4 -4
- package/template/src/utils/useMuteToggleLocal.ts +10 -14
- package/template/src/utils/useSpeechToText.ts +31 -20
- package/template/bridge/rtm/web/index-legacy.ts +0 -540
- package/template/src/components/RTMConfigure-legacy.tsx +0 -848
- package/template/src/components/UserGlobalPreferenceProvider.tsx +0 -227
- package/template/src/components/breakout-room/BreakoutRoomPanel.tsx +0 -58
- package/template/src/components/breakout-room/context/BreakoutRoomContext.tsx +0 -2508
- package/template/src/components/breakout-room/events/BreakoutRoomEventsConfigure.tsx +0 -272
- package/template/src/components/breakout-room/events/constants.ts +0 -17
- package/template/src/components/breakout-room/hoc/BreakoutRoomNameRenderer.tsx +0 -68
- package/template/src/components/breakout-room/hooks/useBreakoutRoomExit.ts +0 -49
- package/template/src/components/breakout-room/state/reducer.ts +0 -522
- package/template/src/components/breakout-room/state/types.ts +0 -54
- package/template/src/components/breakout-room/ui/BreakoutMeetingTitle.tsx +0 -60
- package/template/src/components/breakout-room/ui/BreakoutRoomActionMenu.tsx +0 -136
- package/template/src/components/breakout-room/ui/BreakoutRoomAnnouncementModal.tsx +0 -135
- package/template/src/components/breakout-room/ui/BreakoutRoomGroupSettings.tsx +0 -588
- package/template/src/components/breakout-room/ui/BreakoutRoomMainRoomUsers.tsx +0 -142
- package/template/src/components/breakout-room/ui/BreakoutRoomMemberActionMenu.tsx +0 -122
- package/template/src/components/breakout-room/ui/BreakoutRoomParticipants.tsx +0 -124
- package/template/src/components/breakout-room/ui/BreakoutRoomRaiseHand.tsx +0 -65
- package/template/src/components/breakout-room/ui/BreakoutRoomRenameModal.tsx +0 -227
- package/template/src/components/breakout-room/ui/BreakoutRoomSettings.tsx +0 -140
- package/template/src/components/breakout-room/ui/BreakoutRoomTransition.tsx +0 -52
- package/template/src/components/breakout-room/ui/BreakoutRoomView.tsx +0 -193
- package/template/src/components/breakout-room/ui/ExitBreakoutRoomIconButton.tsx +0 -79
- package/template/src/components/breakout-room/ui/ParticipantManualAssignmentModal.tsx +0 -638
- package/template/src/components/breakout-room/ui/SelectParticipantAssignmentStrategy.tsx +0 -57
- package/template/src/components/common/Dividers.tsx +0 -53
- package/template/src/components/controls/toolbar-items/ExitBreakoutRoomToolbarItem.tsx +0 -13
- package/template/src/components/raise-hand/RaiseHandButton.tsx +0 -50
- package/template/src/components/raise-hand/RaiseHandProvider.tsx +0 -308
- package/template/src/components/raise-hand/index.ts +0 -14
- package/template/src/components/room-info/useCurrentRoomInfo.tsx +0 -42
- package/template/src/components/room-info/useSetBreakoutRoomInfo.tsx +0 -64
- package/template/src/pages/video-call/BreakoutVideoCall.tsx +0 -213
- package/template/src/pages/video-call/VideoCallContent.tsx +0 -211
- package/template/src/pages/video-call/VideoCallStateWrapper.tsx +0 -495
- package/template/src/rtm/RTMConfigureBreakoutRoomProvider.tsx +0 -882
- package/template/src/rtm/RTMConfigureMainRoomProvider.tsx +0 -757
- package/template/src/rtm/RTMCoreProvider.tsx +0 -419
- package/template/src/rtm/RTMGlobalStateProvider.tsx +0 -706
- package/template/src/rtm/RTMStatusBanner.tsx +0 -99
- package/template/src/rtm/constants.ts +0 -12
- package/template/src/rtm/hooks/useMainRoomUserDisplayName.ts +0 -45
- package/template/src/rtm/rtm-presence-utils.ts +0 -344
- package/template/src/subComponents/chat/ChatAnnouncementView.tsx +0 -65
- package/template/src/utils/useDebouncedCallback.tsx +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agora-appbuilder-core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.11-beta.2",
|
|
4
4
|
"description": "React Native template for RTE app builder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"vercel-build": "npm run dev-setup && cd template && npm run web:build && cd .. && npm run copy-vercel",
|
|
12
|
-
"uikit": "rm -rf template/agora-rn-uikit && git clone https://github.com/AgoraIO-Community/appbuilder-ui-kit.git template/agora-rn-uikit && cd template/agora-rn-uikit && git checkout appbuilder-uikit-3.1.
|
|
12
|
+
"uikit": "rm -rf template/agora-rn-uikit && git clone https://github.com/AgoraIO-Community/appbuilder-ui-kit.git template/agora-rn-uikit && cd template/agora-rn-uikit && git checkout appbuilder-uikit-3.1.11",
|
|
13
13
|
"deps": "cd template && npm i --force",
|
|
14
14
|
"dev-setup": "npm run uikit && npm run deps && node devSetup.js",
|
|
15
15
|
"web-build": "cd template && npm run web:build && cd .. && npm run copy-vercel",
|
|
@@ -101,13 +101,6 @@ android {
|
|
|
101
101
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
packagingOptions {
|
|
106
|
-
pickFirst '**/lib/arm64-v8a/libaosl.so'
|
|
107
|
-
pickFirst '**/lib/armeabi-v7a/libaosl.so'
|
|
108
|
-
pickFirst '**/lib/x86/libaosl.so'
|
|
109
|
-
pickFirst '**/lib/x86_64/libaosl.so'
|
|
110
|
-
}
|
|
111
104
|
}
|
|
112
105
|
|
|
113
106
|
dependencies {
|
|
@@ -1466,13 +1466,13 @@ export default class RtcEngine {
|
|
|
1466
1466
|
this.client.setEncryptionConfig(
|
|
1467
1467
|
mode,
|
|
1468
1468
|
config.encryptionKey,
|
|
1469
|
-
config.encryptionMode === 1
|
|
1469
|
+
config.encryptionMode === 1? null:config.encryptionKdfSalt,
|
|
1470
1470
|
true, // encryptDataStream
|
|
1471
1471
|
),
|
|
1472
1472
|
this.screenClient.setEncryptionConfig(
|
|
1473
1473
|
mode,
|
|
1474
1474
|
config.encryptionKey,
|
|
1475
|
-
config.encryptionMode === 1
|
|
1475
|
+
config.encryptionMode === 1? null:config.encryptionKdfSalt,
|
|
1476
1476
|
true, // encryptDataStream
|
|
1477
1477
|
),
|
|
1478
1478
|
]);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {ChannelType as WebChannelType} from 'agora-rtm-sdk';
|
|
2
|
-
|
|
3
1
|
export interface AttributesMap {
|
|
4
2
|
[key: string]: string;
|
|
5
3
|
}
|
|
@@ -13,184 +11,3 @@ export interface ChannelAttributeOptions {
|
|
|
13
11
|
*/
|
|
14
12
|
enableNotificationToChannelMembers?: undefined | false | true;
|
|
15
13
|
}
|
|
16
|
-
|
|
17
|
-
// LINK STATE
|
|
18
|
-
export const nativeLinkStateMapping = {
|
|
19
|
-
IDLE: 0,
|
|
20
|
-
CONNECTING: 1,
|
|
21
|
-
CONNECTED: 2,
|
|
22
|
-
DISCONNECTED: 3,
|
|
23
|
-
SUSPENDED: 4,
|
|
24
|
-
FAILED: 5,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// Create reverse mapping: number -> string
|
|
28
|
-
export const webLinkStateMapping = Object.fromEntries(
|
|
29
|
-
Object.entries(nativeLinkStateMapping).map(([key, value]) => [value, key]),
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
export const linkStatusReasonCodeMapping: {[key: string]: number} = {
|
|
33
|
-
UNKNOWN: 0,
|
|
34
|
-
LOGIN: 1,
|
|
35
|
-
LOGIN_SUCCESS: 2,
|
|
36
|
-
LOGIN_TIMEOUT: 3,
|
|
37
|
-
LOGIN_NOT_AUTHORIZED: 4,
|
|
38
|
-
LOGIN_REJECTED: 5,
|
|
39
|
-
RELOGIN: 6,
|
|
40
|
-
LOGOUT: 7,
|
|
41
|
-
AUTO_RECONNECT: 8,
|
|
42
|
-
RECONNECT_TIMEOUT: 9,
|
|
43
|
-
RECONNECT_SUCCESS: 10,
|
|
44
|
-
JOIN: 11,
|
|
45
|
-
JOIN_SUCCESS: 12,
|
|
46
|
-
JOIN_FAILED: 13,
|
|
47
|
-
REJOIN: 14,
|
|
48
|
-
LEAVE: 15,
|
|
49
|
-
INVALID_TOKEN: 16,
|
|
50
|
-
TOKEN_EXPIRED: 17,
|
|
51
|
-
INCONSISTENT_APP_ID: 18,
|
|
52
|
-
INVALID_CHANNEL_NAME: 19,
|
|
53
|
-
INVALID_USER_ID: 20,
|
|
54
|
-
NOT_INITIALIZED: 21,
|
|
55
|
-
RTM_SERVICE_NOT_CONNECTED: 22,
|
|
56
|
-
CHANNEL_INSTANCE_EXCEED_LIMITATION: 23,
|
|
57
|
-
OPERATION_RATE_EXCEED_LIMITATION: 24,
|
|
58
|
-
CHANNEL_IN_ERROR_STATE: 25,
|
|
59
|
-
PRESENCE_NOT_CONNECTED: 26,
|
|
60
|
-
SAME_UID_LOGIN: 27,
|
|
61
|
-
KICKED_OUT_BY_SERVER: 28,
|
|
62
|
-
KEEP_ALIVE_TIMEOUT: 29,
|
|
63
|
-
CONNECTION_ERROR: 30,
|
|
64
|
-
PRESENCE_NOT_READY: 31,
|
|
65
|
-
NETWORK_CHANGE: 32,
|
|
66
|
-
SERVICE_NOT_SUPPORTED: 33,
|
|
67
|
-
STREAM_CHANNEL_NOT_AVAILABLE: 34,
|
|
68
|
-
STORAGE_NOT_AVAILABLE: 35,
|
|
69
|
-
LOCK_NOT_AVAILABLE: 36,
|
|
70
|
-
LOGIN_TOO_FREQUENT: 37,
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// CHANNEL TYPE
|
|
74
|
-
// string -> number
|
|
75
|
-
export const nativeChannelTypeMapping = {
|
|
76
|
-
NONE: 0,
|
|
77
|
-
MESSAGE: 1,
|
|
78
|
-
STREAM: 2,
|
|
79
|
-
USER: 3,
|
|
80
|
-
};
|
|
81
|
-
// number -> string
|
|
82
|
-
export const webChannelTypeMapping = Object.fromEntries(
|
|
83
|
-
Object.entries(nativeChannelTypeMapping).map(([key, value]) => [value, key]),
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
// STORAGE TYPE
|
|
87
|
-
// string -> number
|
|
88
|
-
export const nativeStorageTypeMapping = {
|
|
89
|
-
NONE: 0,
|
|
90
|
-
/**
|
|
91
|
-
* 1: The user storage event.
|
|
92
|
-
*/
|
|
93
|
-
USER: 1,
|
|
94
|
-
/**
|
|
95
|
-
* 2: The channel storage event.
|
|
96
|
-
*/
|
|
97
|
-
CHANNEL: 2,
|
|
98
|
-
};
|
|
99
|
-
// number -> string
|
|
100
|
-
export const webStorageTypeMapping = Object.fromEntries(
|
|
101
|
-
Object.entries(nativeStorageTypeMapping).map(([key, value]) => [value, key]),
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
// STORAGE EVENT TYPE
|
|
105
|
-
export const nativeStorageEventTypeMapping = {
|
|
106
|
-
/**
|
|
107
|
-
* 0: Unknown event type.
|
|
108
|
-
*/
|
|
109
|
-
NONE: 0,
|
|
110
|
-
/**
|
|
111
|
-
* 1: Triggered when user subscribe user metadata state or join channel with options.withMetadata = true
|
|
112
|
-
*/
|
|
113
|
-
SNAPSHOT: 1,
|
|
114
|
-
/**
|
|
115
|
-
* 2: Triggered when a remote user set metadata
|
|
116
|
-
*/
|
|
117
|
-
SET: 2,
|
|
118
|
-
/**
|
|
119
|
-
* 3: Triggered when a remote user update metadata
|
|
120
|
-
*/
|
|
121
|
-
UPDATE: 3,
|
|
122
|
-
/**
|
|
123
|
-
* 4: Triggered when a remote user remove metadata
|
|
124
|
-
*/
|
|
125
|
-
REMOVE: 4,
|
|
126
|
-
};
|
|
127
|
-
// number -> string
|
|
128
|
-
export const webStorageEventTypeMapping = Object.fromEntries(
|
|
129
|
-
Object.entries(nativeStorageEventTypeMapping).map(([key, value]) => [
|
|
130
|
-
value,
|
|
131
|
-
key,
|
|
132
|
-
]),
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
// PRESENCE EVENT TYPE
|
|
136
|
-
export const nativePresenceEventTypeMapping = {
|
|
137
|
-
/**
|
|
138
|
-
* 0: Unknown event type
|
|
139
|
-
*/
|
|
140
|
-
NONE: 0,
|
|
141
|
-
/**
|
|
142
|
-
* 1: The presence snapshot of this channel
|
|
143
|
-
*/
|
|
144
|
-
SNAPSHOT: 1,
|
|
145
|
-
/**
|
|
146
|
-
* 2: The presence event triggered in interval mode
|
|
147
|
-
*/
|
|
148
|
-
INTERVAL: 2,
|
|
149
|
-
/**
|
|
150
|
-
* 3: Triggered when remote user join channel
|
|
151
|
-
*/
|
|
152
|
-
REMOTE_JOIN: 3,
|
|
153
|
-
/**
|
|
154
|
-
* 4: Triggered when remote user leave channel
|
|
155
|
-
*/
|
|
156
|
-
REMOTE_LEAVE: 4,
|
|
157
|
-
/**
|
|
158
|
-
* 5: Triggered when remote user's connection timeout
|
|
159
|
-
*/
|
|
160
|
-
REMOTE_TIMEOUT: 5,
|
|
161
|
-
/**
|
|
162
|
-
* 6: Triggered when user changed state
|
|
163
|
-
*/
|
|
164
|
-
REMOTE_STATE_CHANGED: 6,
|
|
165
|
-
/**
|
|
166
|
-
* 7: Triggered when user joined channel without presence service
|
|
167
|
-
*/
|
|
168
|
-
ERROR_OUT_OF_SERVICE: 7,
|
|
169
|
-
};
|
|
170
|
-
// number -> string
|
|
171
|
-
export const webPresenceEventTypeMapping = Object.fromEntries(
|
|
172
|
-
Object.entries(nativePresenceEventTypeMapping).map(([key, value]) => [
|
|
173
|
-
value,
|
|
174
|
-
key,
|
|
175
|
-
]),
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
// MESSAGE EVENT TYPE
|
|
179
|
-
// string -> number
|
|
180
|
-
export const nativeMessageEventTypeMapping = {
|
|
181
|
-
/**
|
|
182
|
-
* 0: The binary message.
|
|
183
|
-
*/
|
|
184
|
-
BINARY: 0,
|
|
185
|
-
/**
|
|
186
|
-
* 1: The ascii message.
|
|
187
|
-
*/
|
|
188
|
-
STRING: 1,
|
|
189
|
-
};
|
|
190
|
-
// number -> string
|
|
191
|
-
export const webMessageEventTypeMapping = Object.fromEntries(
|
|
192
|
-
Object.entries(nativePresenceEventTypeMapping).map(([key, value]) => [
|
|
193
|
-
value,
|
|
194
|
-
key,
|
|
195
|
-
]),
|
|
196
|
-
);
|