agora-appbuilder-core 4.0.32-2 → 4.0.32-3

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.0.32-2",
3
+ "version": "4.0.32-3",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -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.32-2',
80
- CORE_VERSION: '4.0.32-2',
79
+ CLI_VERSION: '3.0.32-3',
80
+ CORE_VERSION: '4.0.32-3',
81
81
  DISABLE_LANDSCAPE_MODE: false,
82
82
  STT_AUTO_START: false,
83
83
  CLOUD_RECORDING_AUTO_START: false,
@@ -14,7 +14,8 @@ export const getIDPAuthLoginURL = (returnTo?: any) => {
14
14
  };
15
15
 
16
16
  export const enableIDPAuth = async (returnTo?: any, heading?: string) => {
17
- Linking.openURL(getIDPAuthLoginURL(returnTo));
17
+ //react-native-web support 2nd argument
18
+ Linking.openURL(getIDPAuthLoginURL(returnTo), '_self');
18
19
  };
19
20
 
20
21
  export const exitApp = () => {};
@@ -66,7 +66,8 @@ export const useIDPAuth = () => {
66
66
  tokenLogout(false)
67
67
  .then(() => {
68
68
  //open idp logout url
69
- Linking.openURL(IDPAuthLogoutURL);
69
+ //react-native-web support 2nd argument
70
+ Linking.openURL(IDPAuthLogoutURL, '_self');
70
71
  resolve(true);
71
72
  })
72
73
  .catch(() => {
@@ -49,11 +49,6 @@ const MeetingInfo = (props: MeetingInfoProps) => {
49
49
  <FpeShareComponent />
50
50
  ) : (
51
51
  <View style={style.root}>
52
- {!isMobileUA() ? (
53
- <IDPLogoutComponent containerStyle={{marginBottom: -100}} />
54
- ) : (
55
- <></>
56
- )}
57
52
  <ScrollView contentContainerStyle={style.scrollMain}>
58
53
  <Card
59
54
  margin={margin}
@@ -25,22 +25,6 @@ export const MeetingInfoCardHeader = (props: MeetingInfoCardHeaderProps) => {
25
25
  const {avatar, children} = props;
26
26
  return (
27
27
  <View>
28
- <View
29
- style={{
30
- flexDirection: 'row',
31
- justifyContent: 'space-between',
32
- alignItems: 'center',
33
- }}>
34
- {isMobileUA() ? (
35
- <>
36
- <IDPLogoutComponent
37
- containerStyle={{marginTop: 0, marginRight: 0}}
38
- />
39
- </>
40
- ) : (
41
- <></>
42
- )}
43
- </View>
44
28
  <View style={style.flexRow}>
45
29
  {React.isValidElement(avatar) && (
46
30
  <View style={style.avatar}>{avatar}</View>
@@ -204,7 +204,7 @@ const ChatContainer = (props?: {
204
204
  <Loading text={loadingLabel} />
205
205
  ) : (
206
206
  <View style={style.containerView}>
207
- {showEmojiPicker && <View style={CommonStyles.tintedOverlay} />}
207
+ {showEmojiPicker ? <View style={CommonStyles.tintedOverlay} /> : null}
208
208
  {chatType === ChatType.Private && privateChatUser ? (
209
209
  <>
210
210
  <View style={style.participantContainer}>
@@ -223,12 +223,10 @@ const ChatContainer = (props?: {
223
223
  </View>
224
224
  <Spacer size={10} />
225
225
  </>
226
- ) : (
227
- <></>
228
- )}
229
- {pinMsgId && chatType === ChatType.Group && (
226
+ ) : null}
227
+ {pinMsgId && chatType === ChatType.Group ? (
230
228
  <PinnedMessage pinMsgId={pinMsgId} pinnedByUser={pinnedByUser} />
231
- )}
229
+ ) : null}
232
230
  <ScrollView
233
231
  ref={scrollViewRef}
234
232
  onContentSizeChange={onContentSizeChange}
@@ -242,7 +240,7 @@ const ChatContainer = (props?: {
242
240
  </View>
243
241
 
244
242
  {messageStore.map((message: messageStoreInterface, index) => (
245
- <>
243
+ <React.Fragment key={`message-group-${message.msgId}`}>
246
244
  {messageStoreLengthRef.current === messageStore.length &&
247
245
  grpUnreadCount &&
248
246
  messageStore.length - grpUnreadCount === index ? (
@@ -256,9 +254,7 @@ const ChatContainer = (props?: {
256
254
  {grpUnreadCount} {unreadMessageLabel}
257
255
  </Text>
258
256
  </View>
259
- ) : (
260
- <></>
261
- )}
257
+ ) : null}
262
258
  {!message?.hide ? (
263
259
  <ChatBubbleComponent
264
260
  isLocal={localUid === message.uid}
@@ -293,15 +289,11 @@ const ChatContainer = (props?: {
293
289
  ) : null}
294
290
  {messageStore?.length - 1 === index ? (
295
291
  <Spacer size={10} />
296
- ) : (
297
- <></>
298
- )}
299
- </>
292
+ ) : null}
293
+ </React.Fragment>
300
294
  ))}
301
295
  </>
302
- ) : (
303
- <></>
304
- )}
296
+ ) : null}
305
297
  {chatType === ChatType.Private &&
306
298
  privateChatUser &&
307
299
  privateMessageStore[privateChatUser] ? (
@@ -325,9 +317,7 @@ const ChatContainer = (props?: {
325
317
  {privateUnreadCount} {unreadMessageLabel}
326
318
  </Text>
327
319
  </View>
328
- ) : (
329
- <></>
330
- )}
320
+ ) : null}
331
321
  {!message?.hide ? (
332
322
  <ChatBubbleComponent
333
323
  isLocal={localUid === message.uid}
@@ -362,16 +352,12 @@ const ChatContainer = (props?: {
362
352
  {privateMessageStore[privateChatUser]?.length - 1 ===
363
353
  index ? (
364
354
  <Spacer size={10} />
365
- ) : (
366
- <></>
367
- )}
355
+ ) : null}
368
356
  </>
369
357
  ),
370
358
  )}
371
359
  </>
372
- ) : (
373
- <></>
374
- )}
360
+ ) : null}
375
361
  {defaultContent[privateChatUser]?.offline && (
376
362
  <View style={style.infoTextView}>
377
363
  <Text style={style.infoText}>{userOfflineLabel}</Text>
@@ -314,10 +314,11 @@ export const ChatTextInput = (props: ChatTextInputProps) => {
314
314
  {!replyToMsgId && uploadedFiles.map(renderAttachmentBubble)}
315
315
  {/* {replyToMsgId && renderTextInput({borderWidth: 0, padddingLeft: 0})} */}
316
316
  <View>
317
- {replyToMsgId && <View>{renderReplyMsg()}</View>}
318
- {replyToMsgId && uploadedFiles.map(renderAttachmentBubble)}
319
- {!replyToMsgId &&
320
- renderTextInput({borderWidth: 0, padddingLeft: 0})}
317
+ {replyToMsgId ? <View>{renderReplyMsg()}</View> : null}
318
+ {replyToMsgId ? uploadedFiles.map(renderAttachmentBubble) : null}
319
+ {!replyToMsgId
320
+ ? renderTextInput({borderWidth: 0, padddingLeft: 0})
321
+ : null}
321
322
  </View>
322
323
  </ScrollView>
323
324
  </View>
@@ -328,7 +329,7 @@ export const ChatTextInput = (props: ChatTextInputProps) => {
328
329
  ? [style.inputWrapper, {borderRadius: 8, borderTopWidth: 1}]
329
330
  : {}
330
331
  }>
331
- {replyToMsgId && <View>{renderReplyMsg()}</View>}
332
+ {replyToMsgId ? <View>{renderReplyMsg()}</View> : null}
332
333
  {renderTextInput({borderWidth: 0, padddingLeft: 0})}
333
334
  </View>
334
335
  )}
@@ -186,6 +186,7 @@ const ChatSendButton = (props: ChatSendButtonProps) => {
186
186
  const toastHeadingSize = useString(chatSendErrorTextSizeToastHeading)();
187
187
  const errorSubHeadingSize = useString(chatSendErrorTextSizeToastSubHeading);
188
188
  const groupID = data.chat.group_id;
189
+ const sendMessageBtnText = useString(chatSendMessageBtnText)();
189
190
 
190
191
  const onPress = () =>
191
192
  handleChatSend({
@@ -224,11 +225,7 @@ const ChatSendButton = (props: ChatSendButtonProps) => {
224
225
  : {}
225
226
  }
226
227
  disabled={!isValidMsg}
227
- toolTipMessage={
228
- isMobileUA() || !isValidMsg
229
- ? null
230
- : useString(chatSendMessageBtnText)()
231
- }
228
+ toolTipMessage={isMobileUA() || !isValidMsg ? null : sendMessageBtnText}
232
229
  iconProps={{
233
230
  iconType: 'plain',
234
231
  iconContainerStyle: {