agora-appbuilder-core 4.1.5-beta.5 → 4.1.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.1.5-beta.5",
3
+ "version": "4.1.5",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -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.5-beta.5',
81
- CORE_VERSION: '4.1.5-beta.5',
80
+ CLI_VERSION: '3.1.5',
81
+ CORE_VERSION: '4.1.5',
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -4,12 +4,11 @@ import {AgentControl} from '../AgentControls';
4
4
  import {CustomSettingButton, CustomTranscriptButton} from '../Bottombar';
5
5
 
6
6
  const Bottombar = () => {
7
+ const AI_LAYOUT = $config.AI_LAYOUT ? $config.AI_LAYOUT : 'LAYOUT_TYPE_1';
7
8
  return (
8
9
  <ToolbarPreset
9
10
  align="bottom"
10
- snapPointsMinMax={
11
- $config.AI_LAYOUT === 'LAYOUT_TYPE_1' ? [100, 100] : [0, 0]
12
- }
11
+ snapPointsMinMax={AI_LAYOUT === 'LAYOUT_TYPE_1' ? [100, 100] : [0, 0]}
13
12
  items={{
14
13
  layout: {hide: true},
15
14
  invite: {hide: true},
@@ -20,8 +20,12 @@ const DummyComponent = () => {
20
20
  return <></>;
21
21
  };
22
22
 
23
+ const getAILayoutType = () => {
24
+ return $config.AI_LAYOUT ? $config.AI_LAYOUT : 'LAYOUT_TYPE_1';
25
+ };
26
+
23
27
  const getTopBarComponent = () => {
24
- return isMobileUA() || $config.AI_LAYOUT !== 'LAYOUT_TYPE_1'
28
+ return isMobileUA() || getAILayoutType() !== 'LAYOUT_TYPE_1'
25
29
  ? MobileTopBar
26
30
  : DummyComponent;
27
31
  };
@@ -29,15 +33,15 @@ const getTopBarComponent = () => {
29
33
  const getBottombarComponent = () => {
30
34
  return isMobileUA()
31
35
  ? MobileBottombar
32
- : $config.AI_LAYOUT === 'LAYOUT_TYPE_1'
36
+ : getAILayoutType() === 'LAYOUT_TYPE_1'
33
37
  ? Bottombar
34
38
  : DummyComponent;
35
39
  };
36
40
 
37
41
  const getCustomLayoutComponent = () => {
38
- return $config.AI_LAYOUT === 'LAYOUT_TYPE_3'
42
+ return getAILayoutType() === 'LAYOUT_TYPE_3'
39
43
  ? NewAnimationLayout
40
- : $config.AI_LAYOUT === 'LAYOUT_TYPE_2'
44
+ : getAILayoutType() === 'LAYOUT_TYPE_2'
41
45
  ? ConversationalAILayout
42
46
  : DefaultLayout;
43
47
  };
@@ -50,7 +54,7 @@ export const AI_AGENT_CUSTOMIZATION: CustomizationApiInterface = {
50
54
  customLayout() {
51
55
  return [
52
56
  {
53
- name: $config.AI_LAYOUT,
57
+ name: getAILayoutType(),
54
58
  label: 'Ai-Agent',
55
59
  icon: '',
56
60
  component: getCustomLayoutComponent(),