agora-appbuilder-core 4.0.20 → 4.0.21-beta.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/package.json +1 -1
- package/template/customization-api/sub-components.ts +3 -0
- package/template/customization-api/typeDefinition.ts +2 -0
- package/template/customization-api/utils.ts +3 -0
- package/template/defaultConfig.js +4 -1
- package/template/global.d.ts +3 -0
- package/template/src/AppRoutes.tsx +7 -0
- package/template/src/assets/font-styles.css +164 -160
- package/template/src/assets/fonts/icomoon.ttf +0 -0
- package/template/src/assets/selection.json +3452 -1
- package/template/src/atoms/CustomIcon.tsx +1 -0
- package/template/src/auth/AuthProvider.tsx +0 -5
- package/template/src/auth/config.ts +1 -9
- package/template/src/components/Controls.tsx +42 -28
- package/template/src/components/Navbar.tsx +3 -1
- package/template/src/components/chat/chatConfigure.native.tsx +20 -15
- package/template/src/components/chat/chatConfigure.tsx +32 -20
- package/template/src/components/precall/joinWaitingRoomBtn.native.tsx +3 -3
- package/template/src/components/precall/joinWaitingRoomBtn.tsx +3 -3
- package/template/src/components/recording-bot/RecordingBotRoute.tsx +6 -0
- package/template/src/components/recordings/recording-table.tsx +165 -69
- package/template/src/components/recordings/style.ts +55 -0
- package/template/src/components/recordings/utils.ts +46 -4
- package/template/src/language/default-labels/videoCallScreenLabels.ts +3 -1
- package/template/src/logger/transports/agora-transport.native.ts +3 -3
- package/template/src/logger/transports/agora-transport.ts +2 -2
- package/template/src/pages/VideoCall.tsx +25 -22
- package/template/src/pages/video-call/ActionSheetContent.tsx +3 -0
- package/template/src/pages/video-call/VideoCallScreen.tsx +38 -3
- package/template/src/rtm-events/constants.ts +5 -8
- package/template/src/subComponents/ChatInput.native.tsx +4 -2
- package/template/src/subComponents/ChatInput.tsx +6 -2
- package/template/src/subComponents/EndcallPopup.tsx +5 -1
- package/template/src/subComponents/caption/Transcript.tsx +1 -1
- package/template/src/subComponents/caption/TranscriptIcon.tsx +2 -2
- package/template/src/subComponents/caption/useSTTAPI.tsx +17 -2
- package/template/src/subComponents/chat/ChatActionMenu.tsx +8 -2
- package/template/src/subComponents/chat/ChatAttachment.native.tsx +10 -4
- package/template/src/subComponents/chat/ChatSendButton.tsx +4 -2
- package/template/src/subComponents/chat/ImagePopup.tsx +8 -2
- package/template/src/subComponents/recording/useIsRecordingBot.tsx +2 -1
- package/template/src/subComponents/recording/useRecording.tsx +346 -129
- package/template/src/subComponents/screenshare/ScreenshareConfigure.tsx +30 -1
- package/template/src/utils/fetch-retry.ts +23 -0
- package/template/src/utils/useLocalAudio.ts +32 -1
- package/template/src/utils/useLocalVideo.ts +69 -0
- package/template/src/utils/useSpeechToText.ts +102 -0
- package/template/tsconfig_wsdk_index.json +1 -1
package/package.json
CHANGED
|
@@ -72,3 +72,6 @@ export type {
|
|
|
72
72
|
ToolbarCustomItem,
|
|
73
73
|
ToolbarPresetProps,
|
|
74
74
|
} from '../src/atoms/ToolbarPreset';
|
|
75
|
+
export {default as TranscriptPanel} from '../src/subComponents/caption/Transcript';
|
|
76
|
+
export type {TranscriptProps} from '../src/subComponents/caption/Transcript';
|
|
77
|
+
export {default as CaptionPanel} from '../src/subComponents/caption/CaptionContainer';
|
|
@@ -68,6 +68,8 @@ export interface VideoCallInterface extends BeforeAndAfterInterface {
|
|
|
68
68
|
//settingsPanel?: React.ComponentType;
|
|
69
69
|
participantsPanel?: React.ComponentType;
|
|
70
70
|
chat?: ChatCmpInterface;
|
|
71
|
+
captionPanel?: React.ComponentType;
|
|
72
|
+
transcriptPanel?: React.ComponentType;
|
|
71
73
|
customLayout?: (layouts: LayoutItem[]) => LayoutItem[];
|
|
72
74
|
wrapper?: React.ComponentType;
|
|
73
75
|
invitePopup?: {
|
|
@@ -32,3 +32,6 @@ export {isWeb, isIOS, isAndroid, isDesktop} from '../src/utils/common';
|
|
|
32
32
|
export {default as isMobileOrTablet} from '../src/utils/isMobileOrTablet';
|
|
33
33
|
export {useLocalUid} from '../agora-rn-uikit';
|
|
34
34
|
export {default as useLocalAudio} from '../src/utils/useLocalAudio';
|
|
35
|
+
export {default as useLocalVideo} from '../src/utils/useLocalVideo';
|
|
36
|
+
export type {LanguageType} from '../src/subComponents/caption/utils';
|
|
37
|
+
export {default as useSpeechToText} from '../src/utils/useSpeechToText';
|
|
@@ -11,6 +11,7 @@ const DefaultConfig = {
|
|
|
11
11
|
PRECALL: true,
|
|
12
12
|
CHAT: true,
|
|
13
13
|
CLOUD_RECORDING: false,
|
|
14
|
+
RECORDING_MODE: 'WEB',
|
|
14
15
|
SCREEN_SHARING: true,
|
|
15
16
|
LANDING_SUB_HEADING: 'The Real-Time Engagement Platform',
|
|
16
17
|
ENCRYPTION_ENABLED: false,
|
|
@@ -61,6 +62,8 @@ const DefaultConfig = {
|
|
|
61
62
|
ENABLE_IDP_AUTH: false,
|
|
62
63
|
ENABLE_TOKEN_AUTH: false,
|
|
63
64
|
ENABLE_STT: false,
|
|
65
|
+
ENABLE_CAPTION: true,
|
|
66
|
+
ENABLE_MEETING_TRANSCRIPT: true,
|
|
64
67
|
ENABLE_NOISE_CANCELLATION: true,
|
|
65
68
|
ENABLE_VIRTUAL_BACKGROUND: true,
|
|
66
69
|
ENABLE_WHITEBOARD: false,
|
|
@@ -69,7 +72,7 @@ const DefaultConfig = {
|
|
|
69
72
|
WHITEBOARD_APPIDENTIFIER: '',
|
|
70
73
|
WHITEBOARD_REGION: '',
|
|
71
74
|
ENABLE_NOISE_CANCELLATION_BY_DEFAULT: false,
|
|
72
|
-
CHAT_ORG_NAME:'',
|
|
75
|
+
CHAT_ORG_NAME: '',
|
|
73
76
|
CHAT_APP_NAME: '',
|
|
74
77
|
CHAT_URL: '',
|
|
75
78
|
};
|
package/template/global.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ interface ConfigInterface {
|
|
|
53
53
|
PRECALL: boolean;
|
|
54
54
|
CHAT: boolean;
|
|
55
55
|
CLOUD_RECORDING: boolean;
|
|
56
|
+
RECORDING_MODE: 'WEB' | 'MIX';
|
|
56
57
|
SCREEN_SHARING: boolean;
|
|
57
58
|
CLIENT_ID: string;
|
|
58
59
|
LANDING_SUB_HEADING: string;
|
|
@@ -104,6 +105,8 @@ interface ConfigInterface {
|
|
|
104
105
|
ENABLE_IDP_AUTH: boolean;
|
|
105
106
|
PROJECT_ID: string;
|
|
106
107
|
ENABLE_STT: boolean;
|
|
108
|
+
ENABLE_CAPTION: boolean;
|
|
109
|
+
ENABLE_MEETING_TRANSCRIPT: boolean;
|
|
107
110
|
ENABLE_NOISE_CANCELLATION: boolean;
|
|
108
111
|
ENABLE_VIRTUAL_BACKGROUND: boolean;
|
|
109
112
|
ENABLE_WHITEBOARD: boolean;
|
|
@@ -22,10 +22,17 @@ import {CUSTOM_ROUTES_PREFIX, CustomRoutesInterface} from 'customization-api';
|
|
|
22
22
|
import PrivateRoute from './components/PrivateRoute';
|
|
23
23
|
import RecordingBotRoute from './components/recording-bot/RecordingBotRoute';
|
|
24
24
|
import {useIsRecordingBot} from './subComponents/recording/useIsRecordingBot';
|
|
25
|
+
import {LogSource, logger} from './logger/AppBuilderLogger';
|
|
25
26
|
import {isValidReactComponent} from './utils/common';
|
|
26
27
|
|
|
27
28
|
function VideoCallWrapper(props) {
|
|
28
29
|
const {isRecordingBotRoute} = useIsRecordingBot();
|
|
30
|
+
logger.debug(
|
|
31
|
+
LogSource.Internals,
|
|
32
|
+
'RECORDING',
|
|
33
|
+
'Check if this is a recording bot route',
|
|
34
|
+
isRecordingBotRoute,
|
|
35
|
+
);
|
|
29
36
|
return isRecordingBotRoute ? (
|
|
30
37
|
<RecordingBotRoute history={props.history}>
|
|
31
38
|
<VideoCall />
|