agora-appbuilder-core 4.0.25-beta-10 → 4.0.25-beta-12
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
|
@@ -76,8 +76,8 @@ const DefaultConfig = {
|
|
|
76
76
|
CHAT_ORG_NAME: '',
|
|
77
77
|
CHAT_APP_NAME: '',
|
|
78
78
|
CHAT_URL: '',
|
|
79
|
-
CLI_VERSION: '3.0.25-beta-
|
|
80
|
-
CORE_VERSION: '4.0.25-beta-
|
|
79
|
+
CLI_VERSION: '3.0.25-beta-12',
|
|
80
|
+
CORE_VERSION: '4.0.25-beta-12',
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
module.exports = DefaultConfig;
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
} from '../language/default-labels/commonLabels';
|
|
40
40
|
import {LogSource, logger} from '../logger/AppBuilderLogger';
|
|
41
41
|
import getUniqueID from '../utils/getUniqueID';
|
|
42
|
+
import {useIsRecordingBot} from '../subComponents/recording/useIsRecordingBot';
|
|
42
43
|
|
|
43
44
|
export const GET_USER = gql`
|
|
44
45
|
query getUser {
|
|
@@ -83,7 +84,7 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
83
84
|
const location = useLocation();
|
|
84
85
|
// client
|
|
85
86
|
const apolloClient = useApolloClient();
|
|
86
|
-
|
|
87
|
+
const {isRecordingBot} = useIsRecordingBot();
|
|
87
88
|
const indexesOf = (arr, item) =>
|
|
88
89
|
arr.reduce((acc, v, i) => (v === item && acc.push(i), acc), []);
|
|
89
90
|
const nonprodenv = ['dev', 'staging', 'preprod', 'test'];
|
|
@@ -348,6 +349,16 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
348
349
|
// Ignore if on sdk since IDP flow is not supported
|
|
349
350
|
// For unauthenticated flow authLogin should be called to get the token
|
|
350
351
|
logger.log(LogSource.Internals, 'AUTH', 'App loaded');
|
|
352
|
+
if (isRecordingBot) {
|
|
353
|
+
logger.debug(
|
|
354
|
+
LogSource.Internals,
|
|
355
|
+
'AUTH',
|
|
356
|
+
'skip app authentication as it is a bot',
|
|
357
|
+
);
|
|
358
|
+
setIsAuthenticated(true);
|
|
359
|
+
setLoading(false);
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
351
362
|
if (isSDK() && ENABLE_AUTH) {
|
|
352
363
|
setIsAuthenticated(true);
|
|
353
364
|
setLoading(false);
|
|
@@ -401,7 +412,7 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
401
412
|
setLoading(false);
|
|
402
413
|
}
|
|
403
414
|
}
|
|
404
|
-
}, []);
|
|
415
|
+
}, [isRecordingBot]);
|
|
405
416
|
|
|
406
417
|
const authLogin = () => {
|
|
407
418
|
// Authenticated login flow
|
|
@@ -18,6 +18,7 @@ import Spacer from '../../atoms/Spacer';
|
|
|
18
18
|
import Transcript from '../../subComponents/caption/Transcript';
|
|
19
19
|
import {ToolbarProvider} from '../../utils/useToolbar';
|
|
20
20
|
import {ActionSheetProvider} from '../../utils/useActionSheet';
|
|
21
|
+
import {useOrientation} from '../../utils/useOrientation';
|
|
21
22
|
|
|
22
23
|
const ActionSheet = props => {
|
|
23
24
|
const {snapPointsMinMax = [100, 400]} = props;
|
|
@@ -136,6 +137,10 @@ const ActionSheet = props => {
|
|
|
136
137
|
default:
|
|
137
138
|
}
|
|
138
139
|
};
|
|
140
|
+
const orientation = useOrientation();
|
|
141
|
+
if (orientation === 'LANDSCAPE') {
|
|
142
|
+
return <></>;
|
|
143
|
+
}
|
|
139
144
|
return (
|
|
140
145
|
<>
|
|
141
146
|
{showOverlay && (
|
|
@@ -3,7 +3,8 @@ import {Dimensions} from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
const isPortrait = () => {
|
|
5
5
|
const dim = Dimensions.get('window');
|
|
6
|
-
|
|
6
|
+
// This 20 is added to adjust for keyboard autocomplete suggestion area height
|
|
7
|
+
return dim.height + 20 >= dim.width;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
/**
|