@trustchex/react-native-sdk 1.381.0 → 1.409.0
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/android/src/main/java/com/trustchex/reactnativesdk/camera/TrustchexCameraView.kt +1 -12
- package/android/src/main/java/com/trustchex/reactnativesdk/mlkit/MLKitModule.kt +1 -1
- package/ios/Camera/TrustchexCameraView.swift +1 -12
- package/ios/MLKit/MLKitModule.swift +1 -1
- package/lib/module/Screens/Debug/BarcodeTestScreen.js +308 -0
- package/lib/module/Screens/Debug/MRZTestScreen.js +105 -13
- package/lib/module/Screens/Dynamic/ContractAcceptanceScreen.js +49 -29
- package/lib/module/Screens/Dynamic/IdentityDocumentEIDScanningScreen.js +5 -0
- package/lib/module/Screens/Dynamic/IdentityDocumentScanningScreen.js +5 -0
- package/lib/module/Screens/Dynamic/LivenessDetectionScreen.js +26 -6
- package/lib/module/Screens/Dynamic/VideoCallScreen.js +676 -0
- package/lib/module/Screens/Static/OTPVerificationScreen.js +6 -0
- package/lib/module/Screens/Static/QrCodeScanningScreen.js +7 -1
- package/lib/module/Screens/Static/ResultScreen.js +27 -13
- package/lib/module/Screens/Static/VerificationSessionCheckScreen.js +51 -51
- package/lib/module/Shared/Animations/video-call.json +1 -0
- package/lib/module/Shared/Components/DebugNavigationPanel.js +180 -14
- package/lib/module/Shared/Components/EIDScanner.js +1 -4
- package/lib/module/Shared/Components/IdentityDocumentCamera.js +29 -8
- package/lib/module/Shared/Components/NavigationManager.js +15 -3
- package/lib/module/Shared/Contexts/AppContext.js +1 -0
- package/lib/module/Shared/Libs/SignalingClient.js +128 -0
- package/lib/module/Shared/Libs/analytics.utils.js +4 -0
- package/lib/module/Shared/Libs/deeplink.utils.js +9 -1
- package/lib/module/Shared/Libs/http-client.js +9 -0
- package/lib/module/Shared/Libs/promise.utils.js +16 -2
- package/lib/module/Shared/Libs/status-bar.utils.js +21 -0
- package/lib/module/Shared/Services/DataUploadService.js +294 -0
- package/lib/module/Shared/Services/VideoSessionService.js +156 -0
- package/lib/module/Shared/Services/WebRTCService.js +510 -0
- package/lib/module/Shared/Types/analytics.types.js +2 -0
- package/lib/module/Translation/Resources/en.js +20 -0
- package/lib/module/Translation/Resources/tr.js +20 -0
- package/lib/module/Trustchex.js +10 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/src/Screens/Debug/BarcodeTestScreen.d.ts +3 -0
- package/lib/typescript/src/Screens/Debug/BarcodeTestScreen.d.ts.map +1 -0
- package/lib/typescript/src/Screens/Debug/MRZTestScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Dynamic/ContractAcceptanceScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Dynamic/IdentityDocumentEIDScanningScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Dynamic/IdentityDocumentScanningScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Dynamic/LivenessDetectionScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Dynamic/VideoCallScreen.d.ts +3 -0
- package/lib/typescript/src/Screens/Dynamic/VideoCallScreen.d.ts.map +1 -0
- package/lib/typescript/src/Screens/Static/OTPVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Static/QrCodeScanningScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Static/ResultScreen.d.ts.map +1 -1
- package/lib/typescript/src/Screens/Static/VerificationSessionCheckScreen.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Components/DebugNavigationPanel.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Components/EIDScanner.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Components/NavigationManager.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Contexts/AppContext.d.ts +1 -0
- package/lib/typescript/src/Shared/Contexts/AppContext.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Libs/SignalingClient.d.ts +24 -0
- package/lib/typescript/src/Shared/Libs/SignalingClient.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Libs/analytics.utils.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Libs/deeplink.utils.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Libs/http-client.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Libs/promise.utils.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Libs/status-bar.utils.d.ts +9 -0
- package/lib/typescript/src/Shared/Libs/status-bar.utils.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Services/DataUploadService.d.ts +25 -0
- package/lib/typescript/src/Shared/Services/DataUploadService.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Services/VideoSessionService.d.ts +33 -0
- package/lib/typescript/src/Shared/Services/VideoSessionService.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Services/WebRTCService.d.ts +58 -0
- package/lib/typescript/src/Shared/Services/WebRTCService.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Types/analytics.types.d.ts +2 -0
- package/lib/typescript/src/Shared/Types/analytics.types.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Types/identificationInfo.d.ts +4 -1
- package/lib/typescript/src/Shared/Types/identificationInfo.d.ts.map +1 -1
- package/lib/typescript/src/Translation/Resources/en.d.ts +20 -0
- package/lib/typescript/src/Translation/Resources/en.d.ts.map +1 -1
- package/lib/typescript/src/Translation/Resources/tr.d.ts +20 -0
- package/lib/typescript/src/Translation/Resources/tr.d.ts.map +1 -1
- package/lib/typescript/src/Trustchex.d.ts.map +1 -1
- package/lib/typescript/src/version.d.ts +1 -1
- package/package.json +29 -2
- package/src/Screens/Debug/BarcodeTestScreen.tsx +317 -0
- package/src/Screens/Debug/MRZTestScreen.tsx +107 -13
- package/src/Screens/Dynamic/ContractAcceptanceScreen.tsx +59 -33
- package/src/Screens/Dynamic/IdentityDocumentEIDScanningScreen.tsx +6 -0
- package/src/Screens/Dynamic/IdentityDocumentScanningScreen.tsx +6 -0
- package/src/Screens/Dynamic/LivenessDetectionScreen.tsx +34 -6
- package/src/Screens/Dynamic/VideoCallScreen.tsx +764 -0
- package/src/Screens/Static/OTPVerificationScreen.tsx +6 -0
- package/src/Screens/Static/QrCodeScanningScreen.tsx +7 -1
- package/src/Screens/Static/ResultScreen.tsx +58 -23
- package/src/Screens/Static/VerificationSessionCheckScreen.tsx +58 -72
- package/src/Shared/Animations/video-call.json +1 -0
- package/src/Shared/Components/DebugNavigationPanel.tsx +185 -9
- package/src/Shared/Components/EIDScanner.tsx +1 -5
- package/src/Shared/Components/IdentityDocumentCamera.tsx +29 -8
- package/src/Shared/Components/NavigationManager.tsx +14 -1
- package/src/Shared/Contexts/AppContext.ts +2 -0
- package/src/Shared/Libs/SignalingClient.ts +189 -0
- package/src/Shared/Libs/analytics.utils.ts +4 -0
- package/src/Shared/Libs/deeplink.utils.ts +12 -1
- package/src/Shared/Libs/http-client.ts +10 -0
- package/src/Shared/Libs/promise.utils.ts +16 -2
- package/src/Shared/Libs/status-bar.utils.ts +19 -0
- package/src/Shared/Services/DataUploadService.ts +395 -0
- package/src/Shared/Services/VideoSessionService.ts +190 -0
- package/src/Shared/Services/WebRTCService.ts +636 -0
- package/src/Shared/Types/analytics.types.ts +2 -0
- package/src/Shared/Types/identificationInfo.ts +5 -1
- package/src/Translation/Resources/en.ts +25 -0
- package/src/Translation/Resources/tr.ts +27 -0
- package/src/Trustchex.tsx +12 -2
- package/src/version.ts +1 -1
|
@@ -160,6 +160,33 @@ export default {
|
|
|
160
160
|
'identityDocumentCamera.documentTooLarge': 'Belge çok yakın. Uzaklaşın.',
|
|
161
161
|
'identityDocumentCamera.holdSteady': 'Cihazı sabit tutun',
|
|
162
162
|
'identityDocumentCamera.centerDocument': 'Belgeyi çerçevede ortalayın',
|
|
163
|
+
'videoCallScreen.guideHeader': 'Görüntülü Görüşme İçin Hazırlanın',
|
|
164
|
+
'videoCallScreen.guideText':
|
|
165
|
+
'Başlamadan önce lütfen aşağıdaki hususlara dikkat edin:',
|
|
166
|
+
'videoCallScreen.guidePoint1':
|
|
167
|
+
'Sessiz ve iyi aydınlatılmış bir ortamda olduğunuzdan emin olun',
|
|
168
|
+
'videoCallScreen.guidePoint2':
|
|
169
|
+
'İstendiğinde kimlik belgenizi hazır bulundurun',
|
|
170
|
+
'videoCallScreen.guidePoint3':
|
|
171
|
+
'İnternet bağlantınızın stabil olduğundan emin olun',
|
|
172
|
+
'videoCallScreen.guidePoint4':
|
|
173
|
+
'Temsilci sizi doğrulama sürecinde yönlendirecektir',
|
|
174
|
+
'videoCallScreen.waitingForAgent': 'Temsilci bekleniyor...',
|
|
175
|
+
'videoCallScreen.queuePosition': 'Sıra konumu: {position}',
|
|
176
|
+
'videoCallScreen.new': 'Bağlantı başlatılıyor...',
|
|
177
|
+
'videoCallScreen.connecting': 'Bağlanıyor...',
|
|
178
|
+
'videoCallScreen.connected': 'Bağlandı',
|
|
179
|
+
'videoCallScreen.disconnected': 'Bağlantı kesildi',
|
|
180
|
+
'videoCallScreen.failed': 'Bağlantı başarısız',
|
|
181
|
+
'videoCallScreen.closed': 'Bağlantı kapatıldı',
|
|
182
|
+
'videoCallScreen.permissions_denied': 'Kamera izni gerekiyor',
|
|
183
|
+
'videoCallScreen.leaveQueue': 'Kuyruktan Çık',
|
|
184
|
+
'videoCallScreen.closeSession': 'Oturumu Kapat',
|
|
185
|
+
'videoCallScreen.closeSessionHint':
|
|
186
|
+
'Bu oturumu kapatıp yeni bir doğrulama başlatabilirsiniz',
|
|
187
|
+
'videoCallScreen.agentInstructions': 'Temsilciden Talimatlar',
|
|
188
|
+
'videoCallScreen.callNotCompleted':
|
|
189
|
+
'Görüntülü görüşme tamamlanmadı. Devam etmek için bu adım zorunludur.',
|
|
163
190
|
'navigationManager.skipStepWarning':
|
|
164
191
|
'Başarılı bir doğrulama için bu adımı tamamlamanız önerilir. Yine de atlamak istiyor musunuz?',
|
|
165
192
|
'navigationManager.skipStepLabel': 'Bu Adımı Atla',
|
package/src/Trustchex.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
|
4
4
|
import { View, ActivityIndicator, StyleSheet } from 'react-native';
|
|
5
5
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
6
6
|
import 'react-native-get-random-values';
|
|
7
|
+
import { registerGlobals } from 'react-native-webrtc';
|
|
7
8
|
import { ThemeProvider } from './Shared/Contexts/ThemeContext';
|
|
8
9
|
import { setDebugMode, setLogLevel, logWarn } from './Shared/Libs/debug.utils';
|
|
9
10
|
|
|
@@ -14,8 +15,10 @@ import ResultScreen from './Screens/Static/ResultScreen';
|
|
|
14
15
|
import ContractAcceptanceScreen from './Screens/Dynamic/ContractAcceptanceScreen';
|
|
15
16
|
import VerificationSessionCheckScreen from './Screens/Static/VerificationSessionCheckScreen';
|
|
16
17
|
import QrCodeScanningScreen from './Screens/Static/QrCodeScanningScreen';
|
|
18
|
+
import VideoCallScreen from './Screens/Dynamic/VideoCallScreen';
|
|
17
19
|
import OTPVerificationScreen from './Screens/Static/OTPVerificationScreen';
|
|
18
20
|
import MRZTestScreen from './Screens/Debug/MRZTestScreen';
|
|
21
|
+
import BarcodeTestScreen from './Screens/Debug/BarcodeTestScreen';
|
|
19
22
|
import AppContext from './Shared/Contexts/AppContext';
|
|
20
23
|
import DebugNavigationPanel from './Shared/Components/DebugNavigationPanel';
|
|
21
24
|
import i18n from './Translation';
|
|
@@ -26,6 +29,8 @@ import {
|
|
|
26
29
|
AnalyticsEventName,
|
|
27
30
|
} from './Shared/Types/analytics.types';
|
|
28
31
|
|
|
32
|
+
registerGlobals();
|
|
33
|
+
|
|
29
34
|
const Stack = createNativeStackNavigator();
|
|
30
35
|
|
|
31
36
|
interface TrustchexBranding {
|
|
@@ -229,8 +234,13 @@ const Trustchex: React.FC<TrustchexProps> = ({
|
|
|
229
234
|
component={QrCodeScanningScreen}
|
|
230
235
|
/>
|
|
231
236
|
<Stack.Screen
|
|
232
|
-
name="
|
|
233
|
-
component={
|
|
237
|
+
name="VideoCallScreen"
|
|
238
|
+
component={VideoCallScreen}
|
|
239
|
+
/>
|
|
240
|
+
<Stack.Screen name="MRZTestScreen" component={MRZTestScreen} />
|
|
241
|
+
<Stack.Screen
|
|
242
|
+
name="BarcodeTestScreen"
|
|
243
|
+
component={BarcodeTestScreen}
|
|
234
244
|
/>
|
|
235
245
|
</Stack.Navigator>
|
|
236
246
|
<DebugNavigationPanel />
|
package/src/version.ts
CHANGED