agora-appbuilder-core 4.1.7-beta.1 → 4.1.7-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 +1 -1
- package/template/defaultConfig.js +2 -2
- package/template/src/ai-agent/components/AgentControls/AgentContext.tsx +12 -0
- package/template/src/ai-agent/components/AgentControls/index.tsx +5 -1
- package/template/src/ai-agent/layout/ConversationalAI.tsx +3 -1
- package/template/src/ai-agent/layout/NewAnimation.tsx +3 -1
package/package.json
CHANGED
|
@@ -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.7-beta.
|
|
81
|
-
CORE_VERSION: '4.1.7-beta.
|
|
80
|
+
CLI_VERSION: '3.1.7-beta.2',
|
|
81
|
+
CORE_VERSION: '4.1.7-beta.2',
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
@@ -330,6 +330,18 @@ export const AgentProvider: React.FC<{children: React.ReactNode}> = ({
|
|
|
330
330
|
secondaryBtn: null,
|
|
331
331
|
leadingIcon: null,
|
|
332
332
|
});
|
|
333
|
+
} else if (agentConnectError.toString().indexOf('403') !== -1) {
|
|
334
|
+
Toast.show({
|
|
335
|
+
leadingIconName: 'alert',
|
|
336
|
+
type: 'error',
|
|
337
|
+
text1: 'Uh oh! Agent failed to connect',
|
|
338
|
+
text2:
|
|
339
|
+
"Verify if you've enabled conversational AI on agora console or if they have configured correct customerId & customer certificate for your project on appbuilder console",
|
|
340
|
+
visibilityTime: 5000,
|
|
341
|
+
primaryBtn: null,
|
|
342
|
+
secondaryBtn: null,
|
|
343
|
+
leadingIcon: null,
|
|
344
|
+
});
|
|
333
345
|
} else {
|
|
334
346
|
Toast.show({
|
|
335
347
|
leadingIconName: 'alert',
|
|
@@ -73,7 +73,11 @@ export const AgentControl: React.FC = () => {
|
|
|
73
73
|
) : (
|
|
74
74
|
<Image style={{width: 24, height: 24}} source={LeaveCallIcon} />
|
|
75
75
|
)}
|
|
76
|
-
{!isMobileUA() &&
|
|
76
|
+
{!isMobileUA() &&
|
|
77
|
+
!(
|
|
78
|
+
agentConnectionState === 'AGENT_CONNECTED' ||
|
|
79
|
+
agentConnectionState === 'AGENT_DISCONNECT_FAILED'
|
|
80
|
+
) ? (
|
|
77
81
|
<Text
|
|
78
82
|
style={{
|
|
79
83
|
fontFamily: ThemeConfig.FontFamily.sansPro,
|
|
@@ -84,7 +84,9 @@ export default function ConversationalAI() {
|
|
|
84
84
|
)}
|
|
85
85
|
</View>
|
|
86
86
|
<View style={styles.btnContainer}>
|
|
87
|
-
{!isLoading &&
|
|
87
|
+
{!isLoading &&
|
|
88
|
+
(agentConnectionState === 'AGENT_CONNECTED' ||
|
|
89
|
+
agentConnectionState === 'AGENT_DISCONNECT_FAILED') ? (
|
|
88
90
|
<View style={styles.controlsContainer}>
|
|
89
91
|
<MicButton />
|
|
90
92
|
<TranscriptButton />
|
|
@@ -51,7 +51,9 @@ export default function NewAnimation() {
|
|
|
51
51
|
<AiAgentCustomView connectionState={agentConnectionState} />
|
|
52
52
|
</View>
|
|
53
53
|
<View style={styles.btnContainer}>
|
|
54
|
-
{!isLoading &&
|
|
54
|
+
{!isLoading &&
|
|
55
|
+
(agentConnectionState === 'AGENT_CONNECTED' ||
|
|
56
|
+
agentConnectionState === 'AGENT_DISCONNECT_FAILED') ? (
|
|
55
57
|
<View style={styles.controlsContainer}>
|
|
56
58
|
<MicButton />
|
|
57
59
|
<TranscriptButton />
|