agora-appbuilder-core 4.1.26 → 4.1.27-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/Rtc/Create.tsx +9 -0
- package/template/android/app/src/main/assets/fonts/icomoon.ttf +0 -0
- package/template/customization-api/index.ts +1 -0
- package/template/customization-api/logger.ts +33 -0
- package/template/defaultConfig.js +2 -2
- package/template/src/assets/font-styles.css +4 -0
- package/template/src/assets/fonts/icomoon.ttf +0 -0
- package/template/src/assets/selection.json +1 -1
- package/template/src/atoms/CustomIcon.tsx +1 -0
- package/template/src/logger/AppBuilderLogger.tsx +3 -4
- package/template/src/subComponents/caption/Transcript.tsx +37 -0
- package/template/src/subComponents/caption/__tests__/transcriptJourney.test.ts +7 -0
- package/template/src/subComponents/caption/useCaption.tsx +144 -42
- package/template/src/subComponents/caption/useSTTAPI.tsx +13 -12
- package/template/src/subComponents/caption/useStreamMessageUtils.ts +109 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agora-appbuilder-core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.27-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.27",
|
|
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",
|
|
@@ -294,6 +294,15 @@ const Create = ({
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
if (
|
|
298
|
+
Platform.OS === 'ios' &&
|
|
299
|
+
mode === ChannelProfileType.ChannelProfileCommunication
|
|
300
|
+
) {
|
|
301
|
+
await engine.current.setAudioScenario(
|
|
302
|
+
AudioScenarioType.AudioScenarioMeeting,
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
297
306
|
/**
|
|
298
307
|
* API enableVideo :
|
|
299
308
|
* On Web -> Asks permissions and then creates microphone and camera tracks
|
|
Binary file
|
|
@@ -21,6 +21,7 @@ export {customize, $config};
|
|
|
21
21
|
export * from './action-library';
|
|
22
22
|
export * from './app-state';
|
|
23
23
|
export * from './customEvents';
|
|
24
|
+
export * from './logger';
|
|
24
25
|
export * from './sub-components';
|
|
25
26
|
export * from './typeDefinition';
|
|
26
27
|
export * from './utils';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CustomizationLogType,
|
|
3
|
+
LogSource,
|
|
4
|
+
logger,
|
|
5
|
+
} from '../src/logger/AppBuilderLogger';
|
|
6
|
+
|
|
7
|
+
export type CustomizationLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
8
|
+
export type CustomizationLogData = Record<string, unknown>;
|
|
9
|
+
export type CustomizationLogEvent = {
|
|
10
|
+
type: CustomizationLogType;
|
|
11
|
+
event: string;
|
|
12
|
+
data?: CustomizationLogData;
|
|
13
|
+
level?: CustomizationLogLevel;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Sends a customization event through the active App Builder log transport.
|
|
18
|
+
* The logger adds the current session, room, user, platform, and SDK context.
|
|
19
|
+
* Callers must redact credentials and other sensitive values before logging.
|
|
20
|
+
*/
|
|
21
|
+
export const logCustomizationEvent = ({
|
|
22
|
+
type,
|
|
23
|
+
event,
|
|
24
|
+
data,
|
|
25
|
+
level = 'info',
|
|
26
|
+
}: CustomizationLogEvent) => {
|
|
27
|
+
if (data) {
|
|
28
|
+
logger[level](LogSource.CustomizationAPI, type, event, data);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
logger[level](LogSource.CustomizationAPI, type, event);
|
|
33
|
+
};
|
|
@@ -77,8 +77,8 @@ const DefaultConfig = {
|
|
|
77
77
|
CHAT_ORG_NAME: "",
|
|
78
78
|
CHAT_APP_NAME: "",
|
|
79
79
|
CHAT_URL: "",
|
|
80
|
-
CLI_VERSION: "3.1.
|
|
81
|
-
CORE_VERSION: "4.1.
|
|
80
|
+
CLI_VERSION: "3.1.27-beta.2",
|
|
81
|
+
CORE_VERSION: "4.1.27-beta.2",
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
Binary file
|