@ethora/chat-component-rn 26.9.0 → 26.9.1
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/CHANGELOG.md +4 -0
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +22 -3
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +13 -2
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +30 -0
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +23 -4
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/context/xmppProvider.js +12 -1
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/i18n/strings.js +30 -0
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts +2 -0
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +2 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/MainComponents/ChatWrapper.tsx +27 -5
- package/src/context/xmppProvider.tsx +12 -0
- package/src/i18n/strings.ts +30 -0
- package/src/types/types.ts +2 -0
- package/src/version.ts +1 -1
package/src/i18n/strings.ts
CHANGED
|
@@ -18,6 +18,11 @@ const en: UiStringTable = {
|
|
|
18
18
|
'roomList.title': 'Chats',
|
|
19
19
|
'connection.connecting': 'Connecting…',
|
|
20
20
|
'connection.updating': 'Updating…',
|
|
21
|
+
'connection.errorTitle': 'Connection error',
|
|
22
|
+
'connection.errorBody': 'Something went wrong while connecting to chat.',
|
|
23
|
+
'session.expiredTitle': 'Session expired',
|
|
24
|
+
'session.expiredBody': 'Your sign-in is no longer valid. Sign in again to continue.',
|
|
25
|
+
'action.retry': 'Retry',
|
|
21
26
|
'menu.newChat': 'New Chat',
|
|
22
27
|
'menu.profile': 'Profile',
|
|
23
28
|
'menu.settings': 'Settings',
|
|
@@ -339,6 +344,11 @@ const fr: UiStringTable = {
|
|
|
339
344
|
'roomList.title': 'Discussions',
|
|
340
345
|
'connection.connecting': 'Connexion…',
|
|
341
346
|
'connection.updating': 'Mise à jour…',
|
|
347
|
+
'connection.errorTitle': 'Erreur de connexion',
|
|
348
|
+
'connection.errorBody': 'Un problème est survenu lors de la connexion au chat.',
|
|
349
|
+
'session.expiredTitle': 'Session expirée',
|
|
350
|
+
'session.expiredBody': "Votre connexion n'est plus valide. Reconnectez-vous pour continuer.",
|
|
351
|
+
'action.retry': 'Réessayer',
|
|
342
352
|
'menu.newChat': 'Nouvelle discussion',
|
|
343
353
|
'menu.profile': 'Profil',
|
|
344
354
|
'menu.settings': 'Paramètres',
|
|
@@ -660,6 +670,11 @@ const es: UiStringTable = {
|
|
|
660
670
|
'roomList.title': 'Conversaciones',
|
|
661
671
|
'connection.connecting': 'Conectando…',
|
|
662
672
|
'connection.updating': 'Actualizando…',
|
|
673
|
+
'connection.errorTitle': 'Error de conexión',
|
|
674
|
+
'connection.errorBody': 'Algo salió mal al conectar con el chat.',
|
|
675
|
+
'session.expiredTitle': 'Sesión caducada',
|
|
676
|
+
'session.expiredBody': 'Tu inicio de sesión ya no es válido. Vuelve a iniciar sesión para continuar.',
|
|
677
|
+
'action.retry': 'Reintentar',
|
|
663
678
|
'menu.newChat': 'Nuevo chat',
|
|
664
679
|
'menu.profile': 'Perfil',
|
|
665
680
|
'menu.settings': 'Configuración',
|
|
@@ -981,6 +996,11 @@ const pt: UiStringTable = {
|
|
|
981
996
|
'roomList.title': 'Conversas',
|
|
982
997
|
'connection.connecting': 'A ligar…',
|
|
983
998
|
'connection.updating': 'A atualizar…',
|
|
999
|
+
'connection.errorTitle': 'Erro de ligação',
|
|
1000
|
+
'connection.errorBody': 'Algo correu mal ao ligar ao chat.',
|
|
1001
|
+
'session.expiredTitle': 'Sessão expirada',
|
|
1002
|
+
'session.expiredBody': 'O seu início de sessão já não é válido. Inicie sessão de novo para continuar.',
|
|
1003
|
+
'action.retry': 'Tentar de novo',
|
|
984
1004
|
'menu.newChat': 'Nova conversa',
|
|
985
1005
|
'menu.profile': 'Perfil',
|
|
986
1006
|
'menu.settings': 'Definições',
|
|
@@ -1302,6 +1322,11 @@ const ht: UiStringTable = {
|
|
|
1302
1322
|
'roomList.title': 'Chat yo',
|
|
1303
1323
|
'connection.connecting': 'Ap konekte…',
|
|
1304
1324
|
'connection.updating': 'Ap mete ajou…',
|
|
1325
|
+
'connection.errorTitle': 'Erè koneksyon',
|
|
1326
|
+
'connection.errorBody': 'Yon bagay pa mache pandan koneksyon ak chat la.',
|
|
1327
|
+
'session.expiredTitle': 'Sesyon an ekspire',
|
|
1328
|
+
'session.expiredBody': 'Koneksyon ou an pa valab ankò. Konekte ankò pou kontinye.',
|
|
1329
|
+
'action.retry': 'Eseye ankò',
|
|
1305
1330
|
'menu.newChat': 'Nouvo chat',
|
|
1306
1331
|
'menu.profile': 'Pwofil',
|
|
1307
1332
|
'menu.settings': 'Paramèt',
|
|
@@ -1623,6 +1648,11 @@ const zh: UiStringTable = {
|
|
|
1623
1648
|
'roomList.title': '聊天',
|
|
1624
1649
|
'connection.connecting': '连接中…',
|
|
1625
1650
|
'connection.updating': '更新中…',
|
|
1651
|
+
'connection.errorTitle': '连接错误',
|
|
1652
|
+
'connection.errorBody': '连接聊天时出了问题。',
|
|
1653
|
+
'session.expiredTitle': '会话已过期',
|
|
1654
|
+
'session.expiredBody': '您的登录已失效,请重新登录以继续。',
|
|
1655
|
+
'action.retry': '重试',
|
|
1626
1656
|
'menu.newChat': '新聊天',
|
|
1627
1657
|
'menu.profile': '个人资料',
|
|
1628
1658
|
'menu.settings': '设置',
|
package/src/types/types.ts
CHANGED
|
@@ -794,12 +794,14 @@ export interface IConfig {
|
|
|
794
794
|
apiUrl?: string;
|
|
795
795
|
iconPath?: string;
|
|
796
796
|
badgePath?: string;
|
|
797
|
+
/** @deprecated Never called. Hand the tapped notification's data to `handlePushPayload`; the SDK opens the room itself. */
|
|
797
798
|
onClick?: (params: {
|
|
798
799
|
roomJID?: string;
|
|
799
800
|
messageId?: string;
|
|
800
801
|
data?: Record<string, any>;
|
|
801
802
|
notification?: { title?: string; body?: string };
|
|
802
803
|
}) => void | Promise<void>;
|
|
804
|
+
/** @deprecated Never called; see `onClick`. */
|
|
803
805
|
onNotificationPress?: (data: any) => void;
|
|
804
806
|
getPushTokens?: () => Promise<
|
|
805
807
|
PushTokenRegistration[] | PushTokenRegistration | null | undefined
|
package/src/version.ts
CHANGED