@cometchat/chat-uikit-react-native 5.2.1 → 5.2.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/src/CometChatMessageComposer/CometChatMessageComposer.tsx +9 -5
- package/src/CometChatMessageList/CometChatMessageList.tsx +32 -0
- package/src/calls/CallingExtensionDecorator.tsx +29 -4
- package/src/calls/CometChatOngoingCall/CometChatOngoingCall.tsx +21 -12
- package/src/shared/resources/CometChatLocalizeNew/resources/de/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/en/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/es/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/fr/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/hi/translation.json +8 -4
- package/src/shared/resources/CometChatLocalizeNew/resources/hu/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/it/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ja/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ko/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/lt/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ms/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/nl/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/pt/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/ru/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/sv/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/tr/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/zh/translation.json +5 -1
- package/src/shared/resources/CometChatLocalizeNew/resources/zh-tw/translation.json +5 -1
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +2 -2
- package/src/shared/views/CometChatConfirmDialog/style.ts +9 -6
- package/src/theme/default/typography.ts +4 -4
package/package.json
CHANGED
|
@@ -1495,7 +1495,9 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
1495
1495
|
if (shouldOpenList(selection, searchString, tracker)) {
|
|
1496
1496
|
activeCharacter.current = tracker;
|
|
1497
1497
|
searchStringRef.current = searchString;
|
|
1498
|
+
// Show the suggestion list immediately (even while data is loading) to avoid layout jumps
|
|
1498
1499
|
setShowMentionList(true);
|
|
1500
|
+
setSuggestionListLoader(true);
|
|
1499
1501
|
|
|
1500
1502
|
let formatter = allFormatters.current.get(tracker);
|
|
1501
1503
|
if (formatter instanceof CometChatMentionsFormatter) {
|
|
@@ -1514,6 +1516,7 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
1514
1516
|
searchStringRef.current = "";
|
|
1515
1517
|
setShowMentionList(false);
|
|
1516
1518
|
setMentionsSearchData([]);
|
|
1519
|
+
setSuggestionListLoader(false);
|
|
1517
1520
|
}
|
|
1518
1521
|
}, 100);
|
|
1519
1522
|
};
|
|
@@ -1701,7 +1704,6 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
1701
1704
|
};
|
|
1702
1705
|
|
|
1703
1706
|
const textChangeHandler = (txt: string) => {
|
|
1704
|
-
setPlainText(txt);
|
|
1705
1707
|
if (messagePreview) {
|
|
1706
1708
|
setHasEdited(txt.trim() !== originalText.trim());
|
|
1707
1709
|
}
|
|
@@ -1726,7 +1728,9 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
1726
1728
|
let decr = 0;
|
|
1727
1729
|
|
|
1728
1730
|
plainTextInput.current = newText;
|
|
1729
|
-
|
|
1731
|
+
if (!(oldText.length > newText.length)) {
|
|
1732
|
+
setPlainText(newText);
|
|
1733
|
+
}
|
|
1730
1734
|
|
|
1731
1735
|
const newMentionMap: Map<string, SuggestionItem> = new Map(mentionMap.current);
|
|
1732
1736
|
|
|
@@ -1995,7 +1999,6 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
1995
1999
|
{CustomView && CustomView}
|
|
1996
2000
|
</Modal>
|
|
1997
2001
|
<KeyboardAvoidingView
|
|
1998
|
-
key={id}
|
|
1999
2002
|
behavior={Platform.OS === "ios" ? "padding" : "height"}
|
|
2000
2003
|
keyboardVerticalOffset={Platform.select({ ios: kbOffset })}
|
|
2001
2004
|
{...keyboardAvoidingViewProps}
|
|
@@ -2034,11 +2037,12 @@ export const CometChatMessageComposer = React.forwardRef(
|
|
|
2034
2037
|
mediaRecorderStyle={mergedComposerStyle.mediaRecorderStyle}
|
|
2035
2038
|
/>
|
|
2036
2039
|
|
|
2037
|
-
{
|
|
2040
|
+
{showMentionList && (plainTextInput.current?.length ?? 0) > 0 && (
|
|
2038
2041
|
<View
|
|
2039
2042
|
style={[
|
|
2040
2043
|
theme.mentionsListStyle.containerStyle,
|
|
2041
|
-
|
|
2044
|
+
// Keep height stable to reduce flicker when list data loads/empties
|
|
2045
|
+
{ maxHeight: Dimensions.get("window").height * (messagePreview ? 0.2 : (Platform.OS === "ios" ? 0.15 : 0.22)) },
|
|
2042
2046
|
]}
|
|
2043
2047
|
>
|
|
2044
2048
|
<CometChatSuggestionList
|
|
@@ -1364,6 +1364,35 @@ export const CometChatMessageList = memo(
|
|
|
1364
1364
|
conversationId.current = newMessage.getConversationId();
|
|
1365
1365
|
}
|
|
1366
1366
|
|
|
1367
|
+
// ----------------------------------------------------------------------------------
|
|
1368
|
+
// De-duplication / in-place update logic
|
|
1369
|
+
// ----------------------------------------------------------------------------------
|
|
1370
|
+
// Fix: Before inserting, check for an existing message with matching id OR muid.
|
|
1371
|
+
// If found, update it in place instead of inserting again.
|
|
1372
|
+
try {
|
|
1373
|
+
const incomingId = (newMessage as any)?.getId?.();
|
|
1374
|
+
const incomingMuid = (newMessage as any)?.muid || (newMessage as any)?.getMuid?.();
|
|
1375
|
+
const existingIndex = messagesContentListRef.current.findIndex((m: any) => {
|
|
1376
|
+
const mid = m?.getId?.();
|
|
1377
|
+
const mmuid = m?.muid || m?.getMuid?.();
|
|
1378
|
+
return (
|
|
1379
|
+
(incomingId && mid && String(mid) === String(incomingId)) ||
|
|
1380
|
+
(incomingMuid && mmuid && String(mmuid) === String(incomingMuid))
|
|
1381
|
+
);
|
|
1382
|
+
});
|
|
1383
|
+
if (existingIndex !== -1) {
|
|
1384
|
+
// Update existing message instead of duplicating.
|
|
1385
|
+
const updatedList = [...messagesContentListRef.current];
|
|
1386
|
+
updatedList[existingIndex] = CommonUtils.clone(newMessage);
|
|
1387
|
+
messagesContentListRef.current = updatedList;
|
|
1388
|
+
onLoad && onLoad([...messagesContentListRef.current].reverse());
|
|
1389
|
+
setMessagesList(updatedList);
|
|
1390
|
+
return; // prevent duplicate insert
|
|
1391
|
+
}
|
|
1392
|
+
} catch (e) {
|
|
1393
|
+
console.log('Error in message de-duplication:', e);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1367
1396
|
const isStreamMessage = (newMessage as any).isStreamMessage;
|
|
1368
1397
|
const targetMessageId = (newMessage as any).targetMessageId;
|
|
1369
1398
|
if (isStreamMessage && targetMessageId) {
|
|
@@ -2587,6 +2616,9 @@ export const CometChatMessageList = memo(
|
|
|
2587
2616
|
if (hasTemplate?.BubbleView) return hasTemplate?.BubbleView(message);
|
|
2588
2617
|
|
|
2589
2618
|
const onLongPress = useCallback(() => {
|
|
2619
|
+
// Ensure the keyboard is dismissed before showing options so the action sheet / menu isn't obscured
|
|
2620
|
+
Keyboard.dismiss();
|
|
2621
|
+
|
|
2590
2622
|
if (message.getDeletedBy() != null) return;
|
|
2591
2623
|
|
|
2592
2624
|
if (!message.getId()) {
|
|
@@ -227,8 +227,12 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
227
227
|
: theme.messageListStyles.incomingMessageBubbleStyles?.meetCallBubbleStyles;
|
|
228
228
|
|
|
229
229
|
const sentAt = message?.getSentAt() ? message.getSentAt() * 1000 : Date.now();
|
|
230
|
+
const customData = message.getCustomData() as any;
|
|
230
231
|
const callType = (message.getCustomData() as any).callType;
|
|
231
232
|
|
|
233
|
+
// Extract session ID with cross-platform compatibility
|
|
234
|
+
const sessionId = customData.sessionId || customData.sessionID;
|
|
235
|
+
|
|
232
236
|
const BubbleIcon = (() => {
|
|
233
237
|
if (isSentByMe) {
|
|
234
238
|
if (callType === "audio") {
|
|
@@ -251,7 +255,7 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
251
255
|
icon={BubbleIcon}
|
|
252
256
|
onClick={() =>
|
|
253
257
|
this.startDirectCall(
|
|
254
|
-
|
|
258
|
+
sessionId,
|
|
255
259
|
message,
|
|
256
260
|
theme,
|
|
257
261
|
callType
|
|
@@ -281,9 +285,27 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
281
285
|
theme?: CometChatTheme,
|
|
282
286
|
callType?: string
|
|
283
287
|
) {
|
|
284
|
-
|
|
288
|
+
// Validate session ID
|
|
289
|
+
if (!sessionId || sessionId === 'undefined' || sessionId === 'null') {
|
|
290
|
+
console.error('[CallingExtensionDecorator] Invalid session ID provided:', sessionId);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// Request only the necessary permissions based on call type.
|
|
295
|
+
try {
|
|
296
|
+
const resources: ("mic" | "camera")[] = callType === "audio" ? ["mic"] : ["mic", "camera"];
|
|
297
|
+
const allowed = await permissionUtil.startResourceBasedTask(resources);
|
|
298
|
+
if (!allowed) {
|
|
299
|
+
console.warn(
|
|
300
|
+
`[CallingExtensionDecorator] Permission check failed for resources: ${resources.join(",")}. Aborting join.`
|
|
301
|
+
);
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
} catch (e) {
|
|
305
|
+
console.error("[CallingExtensionDecorator] Unexpected error while requesting permissions", e);
|
|
285
306
|
return;
|
|
286
307
|
}
|
|
308
|
+
|
|
287
309
|
const callSettingsBuilder = (
|
|
288
310
|
this.configuration?.groupCallSettingsBuilder
|
|
289
311
|
? this.configuration?.groupCallSettingsBuilder(
|
|
@@ -300,6 +322,7 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
300
322
|
});
|
|
301
323
|
},
|
|
302
324
|
onError: (error: CometChat.CometChatException) => {
|
|
325
|
+
console.error("[CallingExtensionDecorator] OngoingCallListener onError while joining", error);
|
|
303
326
|
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
304
327
|
child: null,
|
|
305
328
|
});
|
|
@@ -313,6 +336,7 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
313
336
|
sessionID={sessionId}
|
|
314
337
|
callSettingsBuilder={callSettingsBuilder}
|
|
315
338
|
onError={(e) => {
|
|
339
|
+
console.error("[CallingExtensionDecorator] CometChatOngoingCall onError for session", sessionId, e);
|
|
316
340
|
CometChatUIEventHandler.emitCallEvent(CallUIEvents.ccShowOngoingCall, {
|
|
317
341
|
child: null,
|
|
318
342
|
});
|
|
@@ -375,8 +399,9 @@ export class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
375
399
|
}
|
|
376
400
|
return <></>;
|
|
377
401
|
},
|
|
378
|
-
options
|
|
379
|
-
|
|
402
|
+
// Pass theme explicitly so common options (e.g. Message Privately) validate group context correctly.
|
|
403
|
+
options: (loggedInUser, messageObject, _theme, group) => {
|
|
404
|
+
return super.getCommonOptions(loggedInUser, messageObject, _theme, group);
|
|
380
405
|
},
|
|
381
406
|
});
|
|
382
407
|
};
|
|
@@ -47,19 +47,28 @@ export const CometChatOngoingCall = (props: CometChatOngoingCallInterface): JSX.
|
|
|
47
47
|
// Fetch the logged-in user and generate a token for the ongoing call session.
|
|
48
48
|
CometChat.getLoggedinUser()
|
|
49
49
|
.then((user) => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
50
|
+
if (!user) {
|
|
51
|
+
throw new Error('No logged in user found');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const authToken = user.getAuthToken();
|
|
55
|
+
console.log('[CometChatOngoingCall] Got auth token, generating call token...');
|
|
56
|
+
|
|
57
|
+
return CometChatCalls.generateToken(sessionID, authToken);
|
|
59
58
|
})
|
|
60
|
-
.
|
|
61
|
-
console.log(
|
|
62
|
-
|
|
59
|
+
.then((token: any) => {
|
|
60
|
+
console.log('[CometChatOngoingCall] Successfully generated call token');
|
|
61
|
+
setToken(token.token);
|
|
62
|
+
})
|
|
63
|
+
.catch((rej: CometChat.CometChatException | Error) => {
|
|
64
|
+
console.error('[CometChatOngoingCall] Failed to generate token for session:', sessionID, rej);
|
|
65
|
+
setToken(undefined);
|
|
66
|
+
onError && onError(rej instanceof Error ?
|
|
67
|
+
new CometChat.CometChatException({
|
|
68
|
+
code: 'TOKEN_GENERATION_FAILED',
|
|
69
|
+
message: rej.message
|
|
70
|
+
}) : rej
|
|
71
|
+
);
|
|
63
72
|
});
|
|
64
73
|
|
|
65
74
|
// Cleanup call settings on unmount.
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Beginnen Sie einen Chat, indem Sie auf die Schaltfläche 'Neuer Chat' tippen",
|
|
460
460
|
"CHAT_HISTORY": "Chat-Verlauf",
|
|
461
461
|
"ASK_ANYTHING": "Frag etwas...",
|
|
462
|
-
"AI_ASSISTANT": "AI-Assistent"
|
|
462
|
+
"AI_ASSISTANT": "AI-Assistent",
|
|
463
|
+
"START_REPORTING": "Bericht starten",
|
|
464
|
+
"LOGOUT": "Abmelden",
|
|
465
|
+
"AI_ASSISTANTS": "KI-Assistenten",
|
|
466
|
+
"CREATE_CONVERSATION": "Konversation erstellen"
|
|
463
467
|
}
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "Click the 'New Chat' button to start a chat.",
|
|
459
459
|
"CHAT_HISTORY": "Chat History",
|
|
460
460
|
"ASK_ANYTHING": "Ask anything...",
|
|
461
|
-
"AI_ASSISTANT": "AI Assistant"
|
|
461
|
+
"AI_ASSISTANT": "AI Assistant",
|
|
462
|
+
"START_REPORTING": "Start Reporting",
|
|
463
|
+
"LOGOUT": "Logout",
|
|
464
|
+
"AI_ASSISTANTS": "AI Assistants",
|
|
465
|
+
"CREATE_CONVERSATION": "Create Conversation"
|
|
462
466
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Comienza un chat tocando el botón 'Nueva conversación'",
|
|
460
460
|
"CHAT_HISTORY": "Historial de chat",
|
|
461
461
|
"ASK_ANYTHING": "Pregunta lo que sea...",
|
|
462
|
-
"AI_ASSISTANT": "Asistente AI"
|
|
462
|
+
"AI_ASSISTANT": "Asistente AI",
|
|
463
|
+
"START_REPORTING": "Iniciar informe",
|
|
464
|
+
"LOGOUT": "Cerrar sesión",
|
|
465
|
+
"AI_ASSISTANTS": "Asistentes de IA",
|
|
466
|
+
"CREATE_CONVERSATION": "Crear conversación"
|
|
463
467
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Commencez un chat en appuyant sur le bouton 'Nouvelle conversation'",
|
|
460
460
|
"CHAT_HISTORY": "Historique des chats",
|
|
461
461
|
"ASK_ANYTHING": "Demandez n'importe quoi...",
|
|
462
|
-
"AI_ASSISTANT": "Assistant IA"
|
|
462
|
+
"AI_ASSISTANT": "Assistant IA",
|
|
463
|
+
"START_REPORTING": "Commencer le rapport",
|
|
464
|
+
"LOGOUT": "Se déconnecter",
|
|
465
|
+
"AI_ASSISTANTS": "Assistants IA",
|
|
466
|
+
"CREATE_CONVERSATION": "Créer une conversation"
|
|
463
467
|
}
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"BANNED_MEMBERS": "प्रतिबंधित सदस्य",
|
|
176
176
|
"NAME": "नाम",
|
|
177
177
|
"SCOPE": "स्कोप",
|
|
178
|
-
"UNBAN": "
|
|
178
|
+
"UNBAN": "प्रतिबंध हटाएँ",
|
|
179
179
|
"SELECT_GROUP_TYPE": "ग्रुप क़िस्म चुनें",
|
|
180
180
|
"ENTER_GROUP_PASSWORD": "ग्रुप पासवर्ड डालें",
|
|
181
181
|
"CREATE": "बनाएँ",
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
"DELETE_CONFIRM": "क्या आप वाकई डिलीट करना चाहते हैं?",
|
|
292
292
|
"DELETE_CHAT": "इस चैट को डिलीट करें?",
|
|
293
293
|
"SURE_TO_DELETE_CHAT": "क्या आप वाकई इस चैट को डिलीट करना चाहते हैं? इस क्रिया को पूर्ववत नहीं किया जा सकता।",
|
|
294
|
-
"CANCEL": "
|
|
294
|
+
"CANCEL": "रद्द करें",
|
|
295
295
|
"LEAVE_CONFIRM": "क्या आप वाकई समूह छोड़ना चाहते हैं?",
|
|
296
296
|
"TRANSFER_CONFIRM": "आप समूह के स्वामी हैं; कृपया समूह छोड़ने से पहले किसी सदस्य को स्वामित्व हस्तांतरित करें",
|
|
297
297
|
"ADDING": "जोड़ रहा है...",
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
"GROUP_INFO": "ग्रुप जानकारी",
|
|
435
435
|
"LEAVE_GROUP_TEXT": "इस ग्रुप को छोड़ें",
|
|
436
436
|
"LEAVE_SURE": "क्या आप वाकई ग्रुप छोड़ना चाहते हैं? अब आप इस चैट से संदेश प्राप्त नहीं करेंगे।",
|
|
437
|
-
"UNBAN_SURE": "क्या आप वाकई इस उपयोगकर्ता
|
|
437
|
+
"UNBAN_SURE": "क्या आप वाकई इस उपयोगकर्ता से प्रतिबंध हटाना चाहते हैं?",
|
|
438
438
|
"DELETE_THIS_CONVERSATION": "क्या इस बातचीत को हटाना है?",
|
|
439
439
|
"LINK": "लिंक",
|
|
440
440
|
"DELETE_THIS_MESSAGE": "इस संदेश को हटाएं?",
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "'नई चैट' बटन पर टैप करके चैट शुरू करें।",
|
|
459
459
|
"CHAT_HISTORY": "चैट इतिहास",
|
|
460
460
|
"ASK_ANYTHING": "कुछ भी पूछें...",
|
|
461
|
-
"AI_ASSISTANT": "एआई सहायक"
|
|
461
|
+
"AI_ASSISTANT": "एआई सहायक",
|
|
462
|
+
"START_REPORTING": "रिपोर्ट शुरू करें",
|
|
463
|
+
"LOGOUT": "लॉगआउट करें",
|
|
464
|
+
"AI_ASSISTANTS": "एआई सहायक",
|
|
465
|
+
"CREATE_CONVERSATION": "बातचीत बनाएँ"
|
|
462
466
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Kezdje el a csevegést a 'Új csevegés' gombra kattintva",
|
|
460
460
|
"CHAT_HISTORY": "Chat előzményei",
|
|
461
461
|
"ASK_ANYTHING": "Kérdezz bármit...",
|
|
462
|
-
"AI_ASSISTANT": "AI asszisztens"
|
|
462
|
+
"AI_ASSISTANT": "AI asszisztens",
|
|
463
|
+
"START_REPORTING": "Jelentés indítása",
|
|
464
|
+
"LOGOUT": "Kijelentkezés",
|
|
465
|
+
"AI_ASSISTANTS": "AI asszisztensek",
|
|
466
|
+
"CREATE_CONVERSATION": "Beszélgetés létrehozása"
|
|
463
467
|
}
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "Inizia una chat toccando il pulsante 'Nuova conversazione'",
|
|
459
459
|
"CHAT_HISTORY": "Cronologia delle conversazioni",
|
|
460
460
|
"ASK_ANYTHING": "Chiedi qualsiasi cosa...",
|
|
461
|
-
"AI_ASSISTANT": "Assistente AI"
|
|
461
|
+
"AI_ASSISTANT": "Assistente AI",
|
|
462
|
+
"START_REPORTING": "Avvia report",
|
|
463
|
+
"LOGOUT": "Esci",
|
|
464
|
+
"AI_ASSISTANTS": "Assistenti AI",
|
|
465
|
+
"CREATE_CONVERSATION": "Crea conversazione"
|
|
462
466
|
}
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "'新しいチャット' ボタンをタップしてチャットを開始します",
|
|
459
459
|
"CHAT_HISTORY": "チャット履歴",
|
|
460
460
|
"ASK_ANYTHING": "何でも聞いてください...",
|
|
461
|
-
"AI_ASSISTANT": "AIアシスタント"
|
|
461
|
+
"AI_ASSISTANT": "AIアシスタント",
|
|
462
|
+
"START_REPORTING": "レポートを開始",
|
|
463
|
+
"LOGOUT": "ログアウト",
|
|
464
|
+
"AI_ASSISTANTS": "AIアシスタント",
|
|
465
|
+
"CREATE_CONVERSATION": "会話を作成"
|
|
462
466
|
}
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "'새로운 채팅' 버튼을 눌러 채팅을 시작하세요",
|
|
459
459
|
"CHAT_HISTORY": "채팅 기록",
|
|
460
460
|
"ASK_ANYTHING": "무엇이든 물어보세요...",
|
|
461
|
-
"AI_ASSISTANT": "AI 어시스턴트"
|
|
461
|
+
"AI_ASSISTANT": "AI 어시스턴트",
|
|
462
|
+
"START_REPORTING": "보고 시작",
|
|
463
|
+
"LOGOUT": "로그아웃",
|
|
464
|
+
"AI_ASSISTANTS": "AI 도우미",
|
|
465
|
+
"CREATE_CONVERSATION": "대화 생성"
|
|
462
466
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Pradėkite pokalbį paspaudę „Naujas pokalbis“ mygtuką",
|
|
460
460
|
"CHAT_HISTORY": "Pokalbių istorija",
|
|
461
461
|
"ASK_ANYTHING": "Klauskite bet ko...",
|
|
462
|
-
"AI_ASSISTANT": "AI asistentas"
|
|
462
|
+
"AI_ASSISTANT": "AI asistentas",
|
|
463
|
+
"START_REPORTING": "Pradėti ataskaitą",
|
|
464
|
+
"LOGOUT": "Atsijungti",
|
|
465
|
+
"AI_ASSISTANTS": "DI asistentai",
|
|
466
|
+
"CREATE_CONVERSATION": "Sukurti pokalbį"
|
|
463
467
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Mulakan perbualan dengan mengetik butang 'Sembang Baru'",
|
|
460
460
|
"CHAT_HISTORY": "Sejarah Sembang",
|
|
461
461
|
"ASK_ANYTHING": "Tanyakan apa-apa...",
|
|
462
|
-
"AI_ASSISTANT": "Pembantu AI"
|
|
462
|
+
"AI_ASSISTANT": "Pembantu AI",
|
|
463
|
+
"START_REPORTING": "Mulakan Laporan",
|
|
464
|
+
"LOGOUT": "Log keluar",
|
|
465
|
+
"AI_ASSISTANTS": "Pembantu AI",
|
|
466
|
+
"CREATE_CONVERSATION": "Buat Perbualan"
|
|
463
467
|
}
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "Start een chat door op de knop 'Nieuwe chat' te tikken",
|
|
459
459
|
"CHAT_HISTORY": "Chatgeschiedenis",
|
|
460
460
|
"ASK_ANYTHING": "Vraag iets...",
|
|
461
|
-
"AI_ASSISTANT": "AI-assistent"
|
|
461
|
+
"AI_ASSISTANT": "AI-assistent",
|
|
462
|
+
"START_REPORTING": "Rapportage starten",
|
|
463
|
+
"LOGOUT": "Uitloggen",
|
|
464
|
+
"AI_ASSISTANTS": "AI-assistenten",
|
|
465
|
+
"CREATE_CONVERSATION": "Gesprek maken"
|
|
462
466
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Inicie um chat tocando no botão 'Nova conversa'",
|
|
460
460
|
"CHAT_HISTORY": "Histórico de chat",
|
|
461
461
|
"ASK_ANYTHING": "Pergunte qualquer coisa...",
|
|
462
|
-
"AI_ASSISTANT": "Assistente de IA"
|
|
462
|
+
"AI_ASSISTANT": "Assistente de IA",
|
|
463
|
+
"START_REPORTING": "Iniciar relatório",
|
|
464
|
+
"LOGOUT": "Sair",
|
|
465
|
+
"AI_ASSISTANTS": "Assistentes de IA",
|
|
466
|
+
"CREATE_CONVERSATION": "Criar conversa"
|
|
463
467
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Начните чат, нажав кнопку 'Новый чат'",
|
|
460
460
|
"CHAT_HISTORY": "История чатов",
|
|
461
461
|
"ASK_ANYTHING": "Спрашивайте все...",
|
|
462
|
-
"AI_ASSISTANT": "AI ассистент"
|
|
462
|
+
"AI_ASSISTANT": "AI ассистент",
|
|
463
|
+
"START_REPORTING": "Начать отчет",
|
|
464
|
+
"LOGOUT": "Выйти",
|
|
465
|
+
"AI_ASSISTANTS": "ИИ ассистенты",
|
|
466
|
+
"CREATE_CONVERSATION": "Создать разговор"
|
|
463
467
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "Starta en chatt genom att trycka på knappen 'Ny chatt'",
|
|
460
460
|
"CHAT_HISTORY": "Chattens historik",
|
|
461
461
|
"ASK_ANYTHING": "Fråga vad som helst...",
|
|
462
|
-
"AI_ASSISTANT": "AI-assistent"
|
|
462
|
+
"AI_ASSISTANT": "AI-assistent",
|
|
463
|
+
"START_REPORTING": "Starta rapportering",
|
|
464
|
+
"LOGOUT": "Logga ut",
|
|
465
|
+
"AI_ASSISTANTS": "AI-assistenter",
|
|
466
|
+
"CREATE_CONVERSATION": "Skapa konversation"
|
|
463
467
|
}
|
|
@@ -458,5 +458,9 @@
|
|
|
458
458
|
"START_A_CHAT": "'Yeni Sohbet' butonuna tıklayarak sohbet başlatın.",
|
|
459
459
|
"CHAT_HISTORY": "Sohbet Geçmişi",
|
|
460
460
|
"ASK_ANYTHING": "Herhangi bir şey sorun...",
|
|
461
|
-
"AI_ASSISTANT": "AI Asistanı"
|
|
461
|
+
"AI_ASSISTANT": "AI Asistanı",
|
|
462
|
+
"START_REPORTING": "Raporlamayı başlat",
|
|
463
|
+
"LOGOUT": "Çıkış Yap",
|
|
464
|
+
"AI_ASSISTANTS": "Yapay Zekâ Asistanları",
|
|
465
|
+
"CREATE_CONVERSATION": "Konuşma oluştur"
|
|
462
466
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "通过点击“新聊天”按钮开始聊天",
|
|
460
460
|
"CHAT_HISTORY": "聊天记录",
|
|
461
461
|
"ASK_ANYTHING": "提问任何问题...",
|
|
462
|
-
"AI_ASSISTANT": "AI 助手"
|
|
462
|
+
"AI_ASSISTANT": "AI 助手",
|
|
463
|
+
"START_REPORTING": "开始报告",
|
|
464
|
+
"LOGOUT": "退出登录",
|
|
465
|
+
"AI_ASSISTANTS": "AI 助手",
|
|
466
|
+
"CREATE_CONVERSATION": "创建对话"
|
|
463
467
|
}
|
|
@@ -459,5 +459,9 @@
|
|
|
459
459
|
"START_A_CHAT": "點擊“新聊天”按鈕開始聊天",
|
|
460
460
|
"CHAT_HISTORY": "聊天記錄",
|
|
461
461
|
"ASK_ANYTHING": "提問任何問題...",
|
|
462
|
-
"AI_ASSISTANT": "AI 助手"
|
|
462
|
+
"AI_ASSISTANT": "AI 助手",
|
|
463
|
+
"START_REPORTING": "開始報告",
|
|
464
|
+
"LOGOUT": "登出",
|
|
465
|
+
"AI_ASSISTANTS": "AI 助手",
|
|
466
|
+
"CREATE_CONVERSATION": "建立對話"
|
|
463
467
|
}
|
|
@@ -160,7 +160,7 @@ export const CometChatConfirmDialog = (props: CometChatConfirmDialogInterface) =
|
|
|
160
160
|
onCancel?.();
|
|
161
161
|
}}
|
|
162
162
|
>
|
|
163
|
-
<Text style={[theme.confirmDialogStyles.cancelButtonTextStyle, cancelButtonTextStyle]}>
|
|
163
|
+
<Text numberOfLines={1} style={[theme.confirmDialogStyles.cancelButtonTextStyle, cancelButtonTextStyle]}>
|
|
164
164
|
{cancelButtonText}
|
|
165
165
|
</Text>
|
|
166
166
|
</TouchableOpacity>
|
|
@@ -171,7 +171,7 @@ export const CometChatConfirmDialog = (props: CometChatConfirmDialogInterface) =
|
|
|
171
171
|
onConfirm?.();
|
|
172
172
|
}}
|
|
173
173
|
>
|
|
174
|
-
<Text style={[theme.confirmDialogStyles.confirmButtonTextStyle, confirmButtonTextStyle]}>
|
|
174
|
+
<Text numberOfLines={1} style={[theme.confirmDialogStyles.confirmButtonTextStyle, confirmButtonTextStyle]}>
|
|
175
175
|
{confirmButtonText}
|
|
176
176
|
</Text>
|
|
177
177
|
</TouchableOpacity>
|
|
@@ -32,6 +32,7 @@ export const getConfirmDialogStyleLight = (
|
|
|
32
32
|
titleTextStyle: {
|
|
33
33
|
color: color.textPrimary,
|
|
34
34
|
marginBottom: spacing.margin.m2,
|
|
35
|
+
textAlign: "center",
|
|
35
36
|
...typography.heading2.medium,
|
|
36
37
|
},
|
|
37
38
|
messageTextStyle: {
|
|
@@ -55,9 +56,9 @@ export const getConfirmDialogStyleLight = (
|
|
|
55
56
|
tintColor: color.iconPrimary,
|
|
56
57
|
},
|
|
57
58
|
cancelButtonStyle: {
|
|
59
|
+
flex: 1,
|
|
58
60
|
borderRadius: spacing.radius.r2,
|
|
59
|
-
height:
|
|
60
|
-
width: "50%",
|
|
61
|
+
height: 45,
|
|
61
62
|
justifyContent: "center",
|
|
62
63
|
alignItems: "center",
|
|
63
64
|
borderWidth: 1,
|
|
@@ -65,20 +66,22 @@ export const getConfirmDialogStyleLight = (
|
|
|
65
66
|
},
|
|
66
67
|
cancelButtonTextStyle: {
|
|
67
68
|
color: color.textPrimary,
|
|
68
|
-
//textTransform: "uppercase",
|
|
69
69
|
...typography.button.medium,
|
|
70
|
+
paddingHorizontal: 6,
|
|
71
|
+
textAlign: "center",
|
|
70
72
|
},
|
|
71
73
|
confirmButtonStyle: {
|
|
74
|
+
flex: 1,
|
|
72
75
|
backgroundColor: color.error,
|
|
73
76
|
borderRadius: spacing.radius.r2,
|
|
74
|
-
height:
|
|
75
|
-
width: "50%",
|
|
77
|
+
height: 45,
|
|
76
78
|
justifyContent: "center",
|
|
77
79
|
alignItems: "center",
|
|
78
80
|
},
|
|
79
81
|
confirmButtonTextStyle: {
|
|
80
82
|
color: color.primaryButtonIcon,
|
|
81
|
-
|
|
83
|
+
paddingHorizontal: 6,
|
|
84
|
+
textAlign: "center",
|
|
82
85
|
...typography.button.medium,
|
|
83
86
|
},
|
|
84
87
|
});
|
|
@@ -44,7 +44,7 @@ export const defaultTypography = {
|
|
|
44
44
|
bold: {
|
|
45
45
|
fontWeight: "700",
|
|
46
46
|
fontSize: 24,
|
|
47
|
-
lineHeight: 28.8,
|
|
47
|
+
// lineHeight: 28.8,
|
|
48
48
|
},
|
|
49
49
|
medium: {
|
|
50
50
|
fontWeight: "500",
|
|
@@ -66,7 +66,7 @@ export const defaultTypography = {
|
|
|
66
66
|
medium: {
|
|
67
67
|
fontWeight: "500",
|
|
68
68
|
fontSize: 20,
|
|
69
|
-
lineHeight: 24,
|
|
69
|
+
// lineHeight: 24,
|
|
70
70
|
},
|
|
71
71
|
regular: {
|
|
72
72
|
fontWeight: "400",
|
|
@@ -100,7 +100,7 @@ export const defaultTypography = {
|
|
|
100
100
|
medium: {
|
|
101
101
|
fontWeight: "500",
|
|
102
102
|
fontSize: 16,
|
|
103
|
-
lineHeight: 20.8,
|
|
103
|
+
// lineHeight: 20.8,
|
|
104
104
|
},
|
|
105
105
|
regular: {
|
|
106
106
|
fontWeight: "400",
|
|
@@ -168,7 +168,7 @@ export const defaultTypography = {
|
|
|
168
168
|
medium: {
|
|
169
169
|
fontWeight: "500",
|
|
170
170
|
fontSize: 14,
|
|
171
|
-
lineHeight: 16.8,
|
|
171
|
+
// lineHeight: 16.8,
|
|
172
172
|
},
|
|
173
173
|
regular: {
|
|
174
174
|
fontWeight: "400",
|