agora-appbuilder-core 4.0.0-beta.40 → 4.0.0-beta.41
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/agora-rn-uikit/src/Rtc/Join.tsx +0 -2
- package/template/src/auth/AuthProvider.tsx +0 -7
- package/template/src/auth/IDPAuth.electron.tsx +0 -1
- package/template/src/auth/useIDPAuth.tsx +0 -4
- package/template/src/components/EventsConfigure.tsx +0 -1
- package/template/src/components/GraphQLProvider.tsx +0 -1
- package/template/src/components/StorageContext.tsx +0 -2
- package/template/src/components/precall/joinWaitingRoomBtn.native.tsx +0 -1
- package/template/src/components/precall/joinWaitingRoomBtn.tsx +0 -1
- package/template/src/components/whiteboard/WhiteboardConfigure.tsx +0 -4
- package/template/src/subComponents/caption/useSTTAPI.tsx +0 -2
- package/template/src/subComponents/recording/useRecording.tsx +0 -2
- package/template/src/subComponents/recording/useRecordingLayoutQuery.tsx +0 -1
- package/template/src/subComponents/waiting-rooms/useWaitingRoomAPI.ts +0 -2
- package/template/src/utils/useJoinRoom.ts +0 -5
package/package.json
CHANGED
|
@@ -48,7 +48,6 @@ const Join: React.FC<{
|
|
|
48
48
|
rtcProps.encryption.key &&
|
|
49
49
|
rtcProps.encryption.mode
|
|
50
50
|
) {
|
|
51
|
-
console.log('using channel encryption', rtcProps.encryption);
|
|
52
51
|
await engine.enableEncryption(true, {
|
|
53
52
|
encryptionKey: rtcProps.encryption.key,
|
|
54
53
|
encryptionMode: rtcProps.encryption.mode,
|
|
@@ -109,7 +108,6 @@ const Join: React.FC<{
|
|
|
109
108
|
await leave();
|
|
110
109
|
await join();
|
|
111
110
|
}
|
|
112
|
-
console.log('Attempted join: ', rtcProps.channel);
|
|
113
111
|
} else {
|
|
114
112
|
console.log('In precall - waiting to join');
|
|
115
113
|
}
|
|
@@ -136,13 +136,10 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
136
136
|
}, [store?.token]);
|
|
137
137
|
|
|
138
138
|
const deepLinkUrl = (link: string | null) => {
|
|
139
|
-
console.log('debugging Deep-linking url: ', link);
|
|
140
|
-
|
|
141
139
|
if (link !== null) {
|
|
142
140
|
//deeplinking handling with authentication enabled
|
|
143
141
|
if ($config.ENABLE_IDP_AUTH) {
|
|
144
142
|
const url = processDeepLinkURI(link);
|
|
145
|
-
console.log('debugging Deep-linking processed url', url);
|
|
146
143
|
try {
|
|
147
144
|
//login link expiry fix
|
|
148
145
|
if (url?.indexOf('msg') !== -1) {
|
|
@@ -159,7 +156,6 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
159
156
|
} else if (url?.indexOf('authorize') !== -1) {
|
|
160
157
|
const token = getParamFromURL(url, 'token');
|
|
161
158
|
if (token) {
|
|
162
|
-
console.log('debugging deep-linking got token');
|
|
163
159
|
enableTokenAuth(token)
|
|
164
160
|
.then(() => {
|
|
165
161
|
setIsAuthenticated(true);
|
|
@@ -189,7 +185,6 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
189
185
|
}
|
|
190
186
|
} else {
|
|
191
187
|
//deeplinking handling with authentication enabled
|
|
192
|
-
console.log('debugging path', processDeepLinkURI(link));
|
|
193
188
|
const url = processDeepLinkURI(link);
|
|
194
189
|
setReturnTo(url);
|
|
195
190
|
}
|
|
@@ -201,9 +196,7 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
201
196
|
if (isIOS() || isAndroid()) {
|
|
202
197
|
const deepLink = async () => {
|
|
203
198
|
const initialUrl = await Linking.getInitialURL();
|
|
204
|
-
console.log('debugging getting initialUrl', initialUrl);
|
|
205
199
|
Linking.addEventListener('url', e => {
|
|
206
|
-
console.log('debugging url from listener', e.url);
|
|
207
200
|
deepLinkUrl(e.url);
|
|
208
201
|
});
|
|
209
202
|
deepLinkUrl(initialUrl);
|
|
@@ -30,10 +30,6 @@ export const useIDPAuth = () => {
|
|
|
30
30
|
`&returnTo=${encodeURIComponent(
|
|
31
31
|
getIDPAuthLoginURL(location.pathname),
|
|
32
32
|
)}`;
|
|
33
|
-
console.log(
|
|
34
|
-
'debugging non native IDPAuthLogoutURL',
|
|
35
|
-
IDPAuthLogoutURL,
|
|
36
|
-
);
|
|
37
33
|
//manage backend logout
|
|
38
34
|
//it will invalid the user session from the manage backend
|
|
39
35
|
//cookie logout -> true
|
|
@@ -382,7 +382,6 @@ const EventsConfigure: React.FC<Props> = props => {
|
|
|
382
382
|
attendee_screenshare_uid: attendee_screenshare_uid,
|
|
383
383
|
approved: true,
|
|
384
384
|
});
|
|
385
|
-
console.log('waiting-room:approval', res);
|
|
386
385
|
dispatch({
|
|
387
386
|
type: 'UpdateRenderList',
|
|
388
387
|
value: [attendee_uid, {isInWaitingRoom: false}],
|
|
@@ -90,7 +90,6 @@ export const StorageProvider = (props: {children: React.ReactNode}) => {
|
|
|
90
90
|
setStore(storeFromStorage);
|
|
91
91
|
setReady(true);
|
|
92
92
|
}
|
|
93
|
-
console.log('store hydrated', storeString);
|
|
94
93
|
setReady(true);
|
|
95
94
|
} catch (e) {
|
|
96
95
|
console.error('problem hydrating store', e);
|
|
@@ -113,7 +112,6 @@ export const StorageProvider = (props: {children: React.ReactNode}) => {
|
|
|
113
112
|
tempStore['token'] = null;
|
|
114
113
|
}
|
|
115
114
|
await AsyncStorage.setItem('store', JSON.stringify(tempStore));
|
|
116
|
-
console.log('store synced with value', tempStore);
|
|
117
115
|
} catch (e) {
|
|
118
116
|
console.log('problem syncing the store', e);
|
|
119
117
|
}
|
|
@@ -147,7 +147,6 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
147
147
|
const pollFunction = async () => {
|
|
148
148
|
if (shouldWaitingRoomPoll) {
|
|
149
149
|
const res = await requestToJoin({send_event: true});
|
|
150
|
-
console.log('in join btn', res);
|
|
151
150
|
pollingTimeout.current = setTimeout(() => {
|
|
152
151
|
pollFunction();
|
|
153
152
|
}, 15000);
|
|
@@ -153,7 +153,6 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
153
153
|
const pollFunction = async () => {
|
|
154
154
|
if (shouldWaitingRoomPoll) {
|
|
155
155
|
const res = await requestToJoin({send_event: true});
|
|
156
|
-
console.log('in join btn', res);
|
|
157
156
|
pollingTimeout.current = setTimeout(() => {
|
|
158
157
|
clearTimeout(pollingTimeout.current);
|
|
159
158
|
pollFunction();
|
|
@@ -60,10 +60,6 @@ const WhiteboardConfigure: React.FC<WhiteboardPropsInterface> = props => {
|
|
|
60
60
|
} = useRoomInfo();
|
|
61
61
|
|
|
62
62
|
const join = () => {
|
|
63
|
-
console.log(
|
|
64
|
-
'[Whiteboard] join called UID:' + room_uuid + ' Token:',
|
|
65
|
-
room_token,
|
|
66
|
-
);
|
|
67
63
|
|
|
68
64
|
const InitState = whiteboardRoomState;
|
|
69
65
|
try {
|
|
@@ -69,7 +69,6 @@ const useSTTAPI = (): IuseSTTAPI => {
|
|
|
69
69
|
try {
|
|
70
70
|
setIsLangChangeInProgress(true);
|
|
71
71
|
const res = await apiCall('start', lang);
|
|
72
|
-
console.log('response aftet start api call', res);
|
|
73
72
|
// null means stt startred successfully
|
|
74
73
|
const isSTTAlreadyActive =
|
|
75
74
|
res?.error?.message
|
|
@@ -135,7 +134,6 @@ const useSTTAPI = (): IuseSTTAPI => {
|
|
|
135
134
|
const stop = async () => {
|
|
136
135
|
try {
|
|
137
136
|
const res = await apiCall('stop');
|
|
138
|
-
console.log('response aftet start api call', res);
|
|
139
137
|
// once STT is non-active in the channel , notify others so that they dont' trigger start again
|
|
140
138
|
// events.send(
|
|
141
139
|
// EventNames.STT_ACTIVE,
|
|
@@ -190,7 +190,6 @@ const RecordingProvider = (props: RecordingProviderProps) => {
|
|
|
190
190
|
},
|
|
191
191
|
})
|
|
192
192
|
.then(res => {
|
|
193
|
-
console.log(res.data);
|
|
194
193
|
setInProgress(false);
|
|
195
194
|
if (res.data.startRecordingSession === 'success') {
|
|
196
195
|
/**
|
|
@@ -253,7 +252,6 @@ const RecordingProvider = (props: RecordingProviderProps) => {
|
|
|
253
252
|
// If recording is already going on, stop the recording by executing the graphql query.
|
|
254
253
|
stopRecordingQuery({variables: {passphrase: phrase}})
|
|
255
254
|
.then(res => {
|
|
256
|
-
console.log(res.data);
|
|
257
255
|
setInProgress(false);
|
|
258
256
|
if (res.data.stopRecordingSession === 'success') {
|
|
259
257
|
/**
|
|
@@ -47,7 +47,6 @@ function useRecordingLayoutQuery() {
|
|
|
47
47
|
const executeNormalQuery = () => {
|
|
48
48
|
setNormalQuery({variables: {passphrase: phrase}})
|
|
49
49
|
.then((res) => {
|
|
50
|
-
console.log(res.data);
|
|
51
50
|
if (res.data.stopRecordingSession === 'success') {
|
|
52
51
|
// Once the backend sucessfuly stops recording,
|
|
53
52
|
// send a control message to everbody in the channel indicating that cloud recording is now inactive.
|
|
@@ -49,7 +49,6 @@ const useWaitingRoomAPI = (): IuseWaitingRoomAPI => {
|
|
|
49
49
|
send_event: send_event,
|
|
50
50
|
});
|
|
51
51
|
const res = await apiCall('request', payload);
|
|
52
|
-
console.log('waitingRoom: request response', res);
|
|
53
52
|
return res;
|
|
54
53
|
};
|
|
55
54
|
|
|
@@ -67,7 +66,6 @@ const useWaitingRoomAPI = (): IuseWaitingRoomAPI => {
|
|
|
67
66
|
approved: approved, //approval status,
|
|
68
67
|
});
|
|
69
68
|
const res = await apiCall('approval', payload);
|
|
70
|
-
console.log('waitingRoom: approval response', res);
|
|
71
69
|
return res;
|
|
72
70
|
};
|
|
73
71
|
|
|
@@ -86,7 +86,6 @@ export default function useJoinRoom() {
|
|
|
86
86
|
meetingPhrase: phrase,
|
|
87
87
|
send_event: false,
|
|
88
88
|
});
|
|
89
|
-
console.log('in use join', response);
|
|
90
89
|
} else {
|
|
91
90
|
response = await client.query({
|
|
92
91
|
query:
|
|
@@ -167,10 +166,6 @@ export default function useJoinRoom() {
|
|
|
167
166
|
// if (data?.getUser?.name) {
|
|
168
167
|
// roomInfo.username = data.getUser.name;
|
|
169
168
|
// }
|
|
170
|
-
console.log('!!!!!Meetinginfo', {
|
|
171
|
-
roomInfo,
|
|
172
|
-
response: response,
|
|
173
|
-
});
|
|
174
169
|
setRoomInfo(prevState => {
|
|
175
170
|
let compiledMeetingInfo = {
|
|
176
171
|
...prevState.data,
|