agora-appbuilder-core 4.1.0-beta-1 → 4.1.0-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.1.0-beta-1",
3
+ "version": "4.1.0-beta-2",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -195,7 +195,7 @@ export const customize = (config: CustomizationApiInterface) => {
195
195
 
196
196
  try {
197
197
  //check if is ai agent and merge agent and user config
198
- if ($config.ENABLE_AI_AGENT) {
198
+ if ($config.ENABLE_CONVERSATIONAL_AI) {
199
199
  newConfig = mergeCustomization(config, AI_AGENT_CUSTOMIZATION);
200
200
  } else {
201
201
  newConfig = config;
@@ -76,14 +76,14 @@ const DefaultConfig = {
76
76
  CHAT_ORG_NAME: '',
77
77
  CHAT_APP_NAME: '',
78
78
  CHAT_URL: '',
79
- CLI_VERSION: '3.1.0-beta-1',
80
- CORE_VERSION: '4.1.0-beta-1',
79
+ CLI_VERSION: '3.1.0-beta-2',
80
+ CORE_VERSION: '4.1.0-beta-2',
81
81
  DISABLE_LANDSCAPE_MODE: false,
82
82
  STT_AUTO_START: false,
83
83
  CLOUD_RECORDING_AUTO_START: false,
84
84
  ENABLE_SPOTLIGHT: false,
85
85
  AUTO_CONNECT_RTM: false,
86
- ENABLE_AI_AGENT: false,
86
+ ENABLE_CONVERSATIONAL_AI: false,
87
87
  };
88
88
 
89
89
  module.exports = DefaultConfig;
@@ -170,7 +170,7 @@ interface ConfigInterface {
170
170
  CLOUD_RECORDING_AUTO_START: boolean;
171
171
  ENABLE_SPOTLIGHT: boolean;
172
172
  AUTO_CONNECT_RTM: boolean;
173
- ENABLE_AI_AGENT: boolean;
173
+ ENABLE_CONVERSATIONAL_AI: boolean;
174
174
  }
175
175
  declare var $config: ConfigInterface;
176
176
  declare module 'customization' {
@@ -114,7 +114,7 @@ const RtmConfigure = (props: any) => {
114
114
  }, [defaultContent]);
115
115
 
116
116
  React.useEffect(() => {
117
- if (!$config.ENABLE_AI_AGENT) {
117
+ if (!$config.ENABLE_CONVERSATIONAL_AI) {
118
118
  const handBrowserClose = ev => {
119
119
  ev.preventDefault();
120
120
  window.setTimeout(function () {
@@ -57,7 +57,11 @@ export const SettingsHeader = props => {
57
57
  <Text style={SidePanelStyles.heading}>{settingsLabel}</Text>
58
58
  }
59
59
  trailingIconName={
60
- $config.ENABLE_AI_AGENT ? (isMobileUA() ? 'close' : '') : 'close'
60
+ $config.ENABLE_CONVERSATIONAL_AI
61
+ ? isMobileUA()
62
+ ? 'close'
63
+ : ''
64
+ : 'close'
61
65
  }
62
66
  trailingIconOnPress={() => {
63
67
  props.handleClose && props.handleClose();
@@ -203,7 +203,7 @@ const VideoCallView = React.memo(() => {
203
203
  BottombarProps: {},
204
204
  TopbarComponent: NavbarMobile,
205
205
  TopbarProps: {},
206
- VideocallWrapper: $config.ENABLE_AI_AGENT
206
+ VideocallWrapper: $config.ENABLE_CONVERSATIONAL_AI
207
207
  ? ContainerView
208
208
  : React.Fragment,
209
209
  };
@@ -281,7 +281,9 @@ const VideoCallView = React.memo(() => {
281
281
  <ActionSheet
282
282
  includeDefaultItems={false}
283
283
  items={{}}
284
- hideDefaultActionSheet={$config.ENABLE_AI_AGENT ? true : false}
284
+ hideDefaultActionSheet={
285
+ $config.ENABLE_CONVERSATIONAL_AI ? true : false
286
+ }
285
287
  />
286
288
  </>
287
289
  )}
@@ -295,7 +297,7 @@ export default VideoCallMobileView;
295
297
 
296
298
  const styles = StyleSheet.create({
297
299
  container: {
298
- paddingHorizontal: $config.ENABLE_AI_AGENT ? 20 : 16,
300
+ paddingHorizontal: $config.ENABLE_CONVERSATIONAL_AI ? 20 : 16,
299
301
  paddingVertical: 20,
300
302
  flex: 1,
301
303
  },
@@ -308,7 +310,7 @@ const styles = StyleSheet.create({
308
310
  paddingVertical: 2,
309
311
  },
310
312
  videoView: {
311
- flex: $config.ENABLE_AI_AGENT ? (isMobileUA() ? 1 : 0.85) : 0.85,
313
+ flex: $config.ENABLE_CONVERSATIONAL_AI ? (isMobileUA() ? 1 : 0.85) : 0.85,
312
314
  zIndex: 0,
313
315
  elevation: 0,
314
316
  },
@@ -102,7 +102,7 @@ export default function FallbackLogo(
102
102
  const styles = StyleSheet.create({
103
103
  container: {
104
104
  flex: 1,
105
- backgroundColor: $config.ENABLE_AI_AGENT
105
+ backgroundColor: $config.ENABLE_CONVERSATIONAL_AI
106
106
  ? '#333'
107
107
  : $config.VIDEO_AUDIO_TILE_COLOR,
108
108
  justifyContent: 'center',
@@ -45,6 +45,13 @@ const JOIN_CHANNEL_PHRASE_AND_GET_USER = gql`
45
45
  rtm
46
46
  uid
47
47
  }
48
+ agents {
49
+ id
50
+ agent_type
51
+ model
52
+ agent_name
53
+ voice
54
+ }
48
55
  }
49
56
  getUser {
50
57
  name
@@ -88,6 +95,13 @@ const JOIN_CHANNEL_PHRASE = gql`
88
95
  rtm
89
96
  uid
90
97
  }
98
+ agents {
99
+ id
100
+ agent_type
101
+ model
102
+ agent_name
103
+ voice
104
+ }
91
105
  }
92
106
  }
93
107
  `;