agora-appbuilder-core 4.1.25 → 4.1.27-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/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/auth/AuthProvider.tsx +9 -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
|
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.1",
|
|
81
|
+
CORE_VERSION: "4.1.27-beta.1",
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
Binary file
|