@sanctum-key/react-native-sdk 1.0.49 → 1.0.50

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.
Files changed (58) hide show
  1. package/build/package.json +1 -1
  2. package/build/src/components/KYCElements/CountrySelection.d.ts.map +1 -1
  3. package/build/src/components/KYCElements/CountrySelection.js +33 -108
  4. package/build/src/components/KYCElements/CountrySelection.js.map +1 -1
  5. package/build/src/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -1
  6. package/build/src/components/KYCElements/CountrySelectionTemplate.js +50 -164
  7. package/build/src/components/KYCElements/CountrySelectionTemplate.js.map +1 -1
  8. package/build/src/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -1
  9. package/build/src/components/KYCElements/DocumentTypeSelection.js +32 -109
  10. package/build/src/components/KYCElements/DocumentTypeSelection.js.map +1 -1
  11. package/build/src/components/KYCElements/IDCardCapture.d.ts.map +1 -1
  12. package/build/src/components/KYCElements/IDCardCapture.js +58 -25
  13. package/build/src/components/KYCElements/IDCardCapture.js.map +1 -1
  14. package/build/src/components/KYCElements/InitializationStep.d.ts.map +1 -1
  15. package/build/src/components/KYCElements/InitializationStep.js +13 -1
  16. package/build/src/components/KYCElements/InitializationStep.js.map +1 -1
  17. package/build/src/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -1
  18. package/build/src/components/KYCElements/LocationCaptureTemplate.js +46 -157
  19. package/build/src/components/KYCElements/LocationCaptureTemplate.js.map +1 -1
  20. package/build/src/components/KYCElements/SelfieCapture.d.ts.map +1 -1
  21. package/build/src/components/KYCElements/SelfieCapture.js +28 -24
  22. package/build/src/components/KYCElements/SelfieCapture.js.map +1 -1
  23. package/build/src/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -1
  24. package/build/src/components/KYCElements/VerificationProgressTemplate.js +0 -4
  25. package/build/src/components/KYCElements/VerificationProgressTemplate.js.map +1 -1
  26. package/build/src/components/SelfieCapture.d.ts.map +1 -1
  27. package/build/src/components/SelfieCapture.js +33 -90
  28. package/build/src/components/SelfieCapture.js.map +1 -1
  29. package/build/src/components/TemplateKYCExample.d.ts.map +1 -1
  30. package/build/src/components/TemplateKYCExample.js +69 -120
  31. package/build/src/components/TemplateKYCExample.js.map +1 -1
  32. package/build/src/components/TemplateKYCFlowRefactored.d.ts +0 -2
  33. package/build/src/components/TemplateKYCFlowRefactored.d.ts.map +1 -1
  34. package/build/src/components/TemplateKYCFlowRefactored.js +95 -210
  35. package/build/src/components/TemplateKYCFlowRefactored.js.map +1 -1
  36. package/build/src/hooks/useTemplateKYCFlow.d.ts.map +1 -1
  37. package/build/src/hooks/useTemplateKYCFlow.js.map +1 -1
  38. package/build/src/types/KYC.types.d.ts.map +1 -1
  39. package/build/src/types/KYC.types.js.map +1 -1
  40. package/build/src/utils/logger.d.ts +12 -4
  41. package/build/src/utils/logger.d.ts.map +1 -1
  42. package/build/src/utils/logger.js +156 -28
  43. package/build/src/utils/logger.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/components/KYCElements/CountrySelection.tsx +36 -109
  46. package/src/components/KYCElements/CountrySelectionTemplate.tsx +67 -266
  47. package/src/components/KYCElements/DocumentTypeSelection.tsx +34 -110
  48. package/src/components/KYCElements/IDCardCapture.tsx +93 -39
  49. package/src/components/KYCElements/InitializationStep.tsx +17 -2
  50. package/src/components/KYCElements/LocationCaptureTemplate.tsx +53 -170
  51. package/src/components/KYCElements/SelfieCapture.tsx +50 -58
  52. package/src/components/KYCElements/VerificationProgressTemplate.tsx +1 -4
  53. package/src/components/SelfieCapture.tsx +44 -100
  54. package/src/components/TemplateKYCExample.tsx +94 -145
  55. package/src/components/TemplateKYCFlowRefactored.tsx +105 -239
  56. package/src/hooks/useTemplateKYCFlow.tsx +1 -0
  57. package/src/types/KYC.types.ts +0 -1
  58. package/src/utils/logger.ts +182 -29
@@ -18,66 +18,82 @@ import { PhoneVerificationTemplate } from './KYCElements/PhoneVerificationTempla
18
18
  import { PersonalInformationTemplate } from './KYCElements/PersonalInformationTemplate';
19
19
  import { AdditionalDocumentsTemplate } from './KYCElements/AdditionalDocumentsTemplate';
20
20
  import KYCConfig from '../config/KYCConfig';
21
+ import { sdkLogger } from '../utils/logger'; // 🚨 IMPORT SDK LOGGER
21
22
  export const TemplateKYCFlow = ({ template: providedTemplate, templateId, onComplete, onError, language = 'fr', onCancel, API_KEY, env = 'PRODUCTION', serverEnv, existingSessionId, initialComponentIndex, initialCountryResume, referenceId, onSessionSave, kyc_session_id, }) => {
22
23
  const { t } = useI18n();
23
24
  const { template: loadedTemplate, isLoading, error, loadTemplate } = useTemplateLoader();
24
- // Which backend URL to call (independent from flow env)
25
+ useEffect(() => {
26
+ if (API_KEY) {
27
+ if (sdkLogger.setApiKey)
28
+ sdkLogger.setApiKey(API_KEY);
29
+ }
30
+ }, [env, serverEnv, existingSessionId, API_KEY]);
25
31
  useEffect(() => {
26
32
  if (serverEnv !== undefined) {
27
33
  KYCConfig.setBackendEnvironment(serverEnv);
28
34
  }
29
35
  }, [serverEnv]);
30
- // Validate props
31
36
  useEffect(() => {
32
37
  if (!providedTemplate && !templateId) {
33
38
  const errorMsg = 'Either template or templateId must be provided';
39
+ sdkLogger.error("Template Loading Failed: Missing Props", { errorMsg });
34
40
  onError?.(errorMsg);
35
41
  return;
36
42
  }
37
43
  if (templateId && !API_KEY) {
38
- // Try to load without API key (will use token authentication)
44
+ sdkLogger.info(`Fetching template ${templateId} via token authentication`);
39
45
  loadTemplate(templateId);
40
46
  }
41
47
  else if (templateId && API_KEY) {
48
+ sdkLogger.info(`Fetching template ${templateId} via API Key`);
42
49
  loadTemplate(templateId, API_KEY);
43
50
  }
44
51
  }, [templateId, API_KEY, providedTemplate, loadTemplate, onError]);
45
- // Handle loading errors
46
52
  useEffect(() => {
47
53
  if (error) {
54
+ sdkLogger.error("Template Fetch Error", { error });
48
55
  onError?.(error);
49
56
  }
50
57
  }, [error, onError]);
51
58
  const OnCancel = () => {
52
59
  showAlert(t('kyc.cancelConfirmation.title'), t('kyc.cancelConfirmation.message'), [
53
- { text: t('kyc.cancelConfirmation.cancelButton'), style: 'cancel' },
60
+ {
61
+ text: t('kyc.cancelConfirmation.cancelButton'),
62
+ style: 'cancel',
63
+ },
54
64
  {
55
65
  text: t('kyc.cancelConfirmation.confirmButton'),
56
66
  onPress: () => {
67
+ sdkLogger.warn("User confirmed flow cancellation");
68
+ sdkLogger.flush();
57
69
  onCancel?.();
58
70
  }
59
71
  },
60
72
  ]);
61
73
  };
62
- // Determine which template to use
63
74
  const template = providedTemplate || loadedTemplate;
64
- // Show loading state while fetching template
75
+ useEffect(() => {
76
+ if (template) {
77
+ sdkLogger.info("Template loaded successfully", { componentCount: template.components.length });
78
+ }
79
+ }, [template]);
65
80
  if (templateId && isLoading && !template) {
66
81
  return (<View style={styles.loadingContainer}>
67
82
  <ActivityIndicator size="large" color="#2DBD60"/>
68
83
  <Text style={styles.loadingText}>{t('common.loading') || 'Loading template...'}</Text>
69
84
  </View>);
70
85
  }
71
- // Show error state if template failed to load
72
86
  if (templateId && error && !template) {
73
87
  return (<View style={styles.errorContainer}>
74
88
  <Text style={styles.errorText}>{error}</Text>
75
- <TouchableOpacity style={styles.retryButton} onPress={() => loadTemplate(templateId, API_KEY)}>
89
+ <TouchableOpacity style={styles.retryButton} onPress={() => {
90
+ sdkLogger.info("User retrying template fetch");
91
+ loadTemplate(templateId, API_KEY);
92
+ }}>
76
93
  <Text style={styles.retryButtonText}>{t('common.retry') || 'Retry'}</Text>
77
94
  </TouchableOpacity>
78
95
  </View>);
79
96
  }
80
- // Show error if no template available
81
97
  if (!template) {
82
98
  return (<View style={styles.errorContainer}>
83
99
  <Text style={styles.errorText}>
@@ -85,13 +101,37 @@ export const TemplateKYCFlow = ({ template: providedTemplate, templateId, onComp
85
101
  </Text>
86
102
  </View>);
87
103
  }
88
- return (<TemplateKYCFlowProvider template={template} onComplete={onComplete} onError={onError} onCancel={OnCancel} initialLanguage={language} apiKey={API_KEY} env={env} existingSessionId={existingSessionId} initialComponentIndex={initialComponentIndex} initialCountryResume={initialCountryResume} referenceId={referenceId} onSessionSave={onSessionSave} kyc_session_id={kyc_session_id}>
104
+ return (<TemplateKYCFlowProvider template={template} onComplete={(data) => {
105
+ sdkLogger.info("KYC Flow Completed", { referenceId: data?.result?.referenceId });
106
+ sdkLogger.flush();
107
+ if (onComplete)
108
+ onComplete(data);
109
+ }} onError={(err) => {
110
+ sdkLogger.error("KYC Flow Error", { error: err });
111
+ sdkLogger.flush();
112
+ if (onError)
113
+ onError(err);
114
+ }} onCancel={OnCancel} initialLanguage={language} apiKey={API_KEY} env={env} existingSessionId={existingSessionId} initialComponentIndex={initialComponentIndex} initialCountryResume={initialCountryResume} referenceId={referenceId} onSessionSave={onSessionSave} kyc_session_id={kyc_session_id}>
89
115
  <TemplateKYCFlowContent onCancel={OnCancel}/>
90
116
  </TemplateKYCFlowProvider>);
91
117
  };
92
118
  const TemplateKYCFlowContent = ({ onCancel }) => {
93
- const { state, actions, currentComponent, progress, } = useTemplateKYCFlowContext();
119
+ const { state, actions, currentComponent, progress } = useTemplateKYCFlowContext();
94
120
  const { t } = useI18n();
121
+ console.log(`sessionnnn id: ${state.session.session_id}`);
122
+ useEffect(() => {
123
+ if (state.session?.session_id) {
124
+ sdkLogger.setSessionId(state.session.session_id);
125
+ }
126
+ }, [state.session?.session_id]);
127
+ useEffect(() => {
128
+ if (currentComponent) {
129
+ sdkLogger.info(`User navigated to step ${state.currentComponentIndex + 1}: ${currentComponent.type}`, {
130
+ componentId: currentComponent.id,
131
+ progress: `${progress}%`
132
+ });
133
+ }
134
+ }, [currentComponent?.id, state.currentComponentIndex, progress]);
95
135
  const updateComponentData = (componentId, data) => {
96
136
  actions.updateComponentData(componentId, data);
97
137
  };
@@ -100,7 +140,6 @@ const TemplateKYCFlowContent = ({ onCancel }) => {
100
140
  <Text style={styles.errorText}>{t('errors.unknownError')}</Text>
101
141
  </View>);
102
142
  }
103
- // Rendu du composant actuel
104
143
  const renderCurrentComponent = () => {
105
144
  const commonProps = {
106
145
  component: currentComponent,
@@ -113,31 +152,20 @@ const TemplateKYCFlowContent = ({ onCancel }) => {
113
152
  return <InitializationStep session={state.session}/>;
114
153
  }
115
154
  switch (currentComponent.type) {
116
- case 'welcome':
117
- return <WelcomeTemplate {...commonProps}/>;
118
- case 'id_card':
119
- return <IDCardCapture {...commonProps}/>;
120
- case 'selfie':
121
- return <SelfieCaptureTemplate {...commonProps}/>;
122
- case 'file_upload':
123
- return <FileUploadTemplate {...commonProps}/>;
124
- case 'location':
125
- return <LocationCaptureTemplate {...commonProps}/>;
126
- case 'country_selection':
127
- return <CountrySelectionTemplate {...commonProps}/>;
128
- case 'review_submit':
129
- return <ReviewSubmitTemplate {...commonProps}/>;
130
- case 'email_verification':
131
- return <EmailVerificationTemplate {...commonProps}/>;
132
- case 'phone_verification':
133
- return <PhoneVerificationTemplate {...commonProps}/>;
134
- case 'personal_information':
135
- return <PersonalInformationTemplate {...commonProps}/>;
136
- case 'additional_documents':
137
- return <AdditionalDocumentsTemplate {...commonProps}/>;
138
- case 'verification_progress':
139
- return <VerificationProgressTemplate {...commonProps}/>;
155
+ case 'welcome': return <WelcomeTemplate {...commonProps}/>;
156
+ case 'id_card': return <IDCardCapture {...commonProps}/>;
157
+ case 'selfie': return <SelfieCaptureTemplate {...commonProps}/>;
158
+ case 'file_upload': return <FileUploadTemplate {...commonProps}/>;
159
+ case 'location': return <LocationCaptureTemplate {...commonProps}/>;
160
+ case 'country_selection': return <CountrySelectionTemplate {...commonProps}/>;
161
+ case 'review_submit': return <ReviewSubmitTemplate {...commonProps}/>;
162
+ case 'email_verification': return <EmailVerificationTemplate {...commonProps}/>;
163
+ case 'phone_verification': return <PhoneVerificationTemplate {...commonProps}/>;
164
+ case 'personal_information': return <PersonalInformationTemplate {...commonProps}/>;
165
+ case 'additional_documents': return <AdditionalDocumentsTemplate {...commonProps}/>;
166
+ case 'verification_progress': return <VerificationProgressTemplate {...commonProps}/>;
140
167
  default:
168
+ sdkLogger.error("Attempted to render unsupported component type", { type: currentComponent.type });
141
169
  return (<View style={styles.unsupportedContainer}>
142
170
  <Text style={styles.unsupportedText}>
143
171
  {t('errors.unknownError')}: {currentComponent.type}
@@ -150,9 +178,8 @@ const TemplateKYCFlowContent = ({ onCancel }) => {
150
178
  <Text style={styles.processingText}>{t('common.loading')}</Text>
151
179
  <ActivityIndicator size="large" color="#fff"/>
152
180
  </View>)}
153
- <SafeAreaView style={styles.container}>
154
- {/* Header avec informations sur l'étape */}
155
181
 
182
+ <SafeAreaView style={styles.container}>
156
183
  {(state.showCustomStepper && state.session.isInitialized) ? (<View style={styles.header}>
157
184
  <Text style={styles.progressText}>
158
185
  {t('kyc.step', {
@@ -160,14 +187,11 @@ const TemplateKYCFlowContent = ({ onCancel }) => {
160
187
  total: state.template.components.length,
161
188
  })}
162
189
  </Text>
190
+
163
191
  <View style={styles.progressContainer}>
164
192
  <View style={styles.progressBar}>
165
- <View style={[
166
- styles.progressFill,
167
- { width: `${progress}%` }
168
- ]}/>
193
+ <View style={[styles.progressFill, { width: `${progress}%` }]}/>
169
194
  </View>
170
-
171
195
  </View>
172
196
 
173
197
  <View style={{ position: 'absolute', right: 12, top: 12 }}>
@@ -177,7 +201,6 @@ const TemplateKYCFlowContent = ({ onCancel }) => {
177
201
  </View>
178
202
  </View>) : null}
179
203
 
180
- {/* Contenu principal */}
181
204
  <ScrollView style={styles.scrollView} contentContainerStyle={styles.content} showsVerticalScrollIndicator={Platform.OS === 'web'} bounces={false}>
182
205
  {renderCurrentComponent()}
183
206
  </ScrollView>
@@ -190,170 +213,32 @@ const TemplateKYCFlowContent = ({ onCancel }) => {
190
213
  </View>);
191
214
  };
192
215
  const styles = StyleSheet.create({
193
- container: {
194
- flex: 1,
195
- backgroundColor: '#f5f5f5',
196
- },
197
- header: {
198
- backgroundColor: 'white',
199
- paddingVertical: 20,
200
- paddingHorizontal: 12,
201
- borderBottomWidth: 1,
202
- borderBottomColor: '#e0e0e0',
203
- marginHorizontal: 12,
204
- marginTop: 12,
205
- // shadow
206
- shadowColor: '#000',
207
- shadowOffset: { width: 0, height: 2 },
208
- shadowOpacity: 0.15,
209
- shadowRadius: 1.84,
210
- elevation: 5,
211
- },
212
- title: {
213
- fontSize: 24,
214
- fontWeight: 'bold',
215
- color: '#333',
216
- marginBottom: 8,
217
- },
218
- description: {
219
- fontSize: 16,
220
- color: '#666',
221
- marginBottom: 20,
222
- },
223
- progressContainer: {
224
- // marginBottom: 20,
225
- },
226
- progressBar: {
227
- height: 8,
228
- backgroundColor: '#e0e0e0',
229
- borderRadius: 4,
230
- overflow: 'hidden',
231
- },
232
- progressFill: {
233
- height: '100%',
234
- backgroundColor: '#2DBD60',
235
- borderRadius: 4,
236
- },
237
- progressText: {
238
- fontSize: 14,
239
- color: 'black',
240
- fontWeight: '600',
241
- textAlign: 'left',
242
- marginBottom: 8,
243
- },
244
- stepInfo: {
245
- backgroundColor: '#f8f9fa',
246
- padding: 16,
247
- borderRadius: 8,
248
- borderLeftWidth: 4,
249
- borderLeftColor: '#2DBD60',
250
- },
251
- stepTitle: {
252
- fontSize: 18,
253
- fontWeight: '600',
254
- color: '#333',
255
- marginBottom: 8,
256
- },
257
- stepDescription: {
258
- fontSize: 14,
259
- color: '#666',
260
- lineHeight: 20,
261
- },
262
- scrollView: {
263
- flex: 1,
264
- },
265
- content: {
266
- flexGrow: 1,
267
- alignItems: 'center',
268
- paddingBottom: 20, // Add padding for better mobile scrolling
269
- },
270
- navigation: {
271
- flexDirection: 'row',
272
- justifyContent: 'space-between',
273
- padding: 20,
274
- backgroundColor: 'white',
275
- borderTopWidth: 1,
276
- borderTopColor: '#e0e0e0',
277
- },
278
- navButton: {
279
- paddingHorizontal: 24,
280
- paddingVertical: 12,
281
- borderRadius: 8,
282
- minWidth: 100,
283
- alignItems: 'center',
284
- },
285
- primaryButton: {
286
- backgroundColor: '#2DBD60',
287
- },
288
- navButtonText: {
289
- fontSize: 16,
290
- fontWeight: '600',
291
- color: 'white',
292
- },
293
- errorText: {
294
- color: '#dc2626',
295
- fontSize: 16,
296
- textAlign: 'center',
297
- margin: 20,
298
- },
299
- unsupportedContainer: {
300
- flex: 1,
301
- justifyContent: 'center',
302
- alignItems: 'center',
303
- padding: 20,
304
- },
305
- unsupportedText: {
306
- fontSize: 16,
307
- color: '#666',
308
- textAlign: 'center',
309
- },
310
- processingContainer: {
311
- position: 'absolute',
312
- flex: 1,
313
- width: Dimensions.get('window').width,
314
- height: Dimensions.get('window').height,
315
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
316
- justifyContent: 'center',
317
- alignItems: 'center',
318
- zIndex: 10000000,
319
- },
320
- processingText: {
321
- fontSize: 16,
322
- color: '#fff',
323
- textAlign: 'center',
324
- fontWeight: 'bold',
325
- marginBottom: 10,
326
- },
327
- loadingContainer: {
328
- flex: 1,
329
- justifyContent: 'center',
330
- alignItems: 'center',
331
- backgroundColor: '#f5f5f5',
332
- },
333
- loadingText: {
334
- marginTop: 16,
335
- fontSize: 16,
336
- color: '#666',
337
- textAlign: 'center',
338
- },
339
- errorContainer: {
340
- flex: 1,
341
- justifyContent: 'center',
342
- alignItems: 'center',
343
- backgroundColor: '#f5f5f5',
344
- padding: 20,
345
- },
346
- retryButton: {
347
- marginTop: 20,
348
- paddingHorizontal: 24,
349
- paddingVertical: 12,
350
- backgroundColor: '#2DBD60',
351
- borderRadius: 8,
352
- },
353
- retryButtonText: {
354
- color: '#fff',
355
- fontSize: 16,
356
- fontWeight: '600',
357
- },
216
+ container: { flex: 1, backgroundColor: '#f5f5f5', },
217
+ header: { backgroundColor: 'white', paddingVertical: 20, paddingHorizontal: 12, borderBottomWidth: 1, borderBottomColor: '#e0e0e0', marginHorizontal: 12, marginTop: 12, shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.15, shadowRadius: 1.84, elevation: 5, },
218
+ title: { fontSize: 24, fontWeight: 'bold', color: '#333', marginBottom: 8, },
219
+ description: { fontSize: 16, color: '#666', marginBottom: 20, },
220
+ progressContainer: {},
221
+ progressBar: { height: 8, backgroundColor: '#e0e0e0', borderRadius: 4, overflow: 'hidden', },
222
+ progressFill: { height: '100%', backgroundColor: '#2DBD60', borderRadius: 4, },
223
+ progressText: { fontSize: 14, color: 'black', fontWeight: '600', textAlign: 'left', marginBottom: 8, },
224
+ stepInfo: { backgroundColor: '#f8f9fa', padding: 16, borderRadius: 8, borderLeftWidth: 4, borderLeftColor: '#2DBD60', },
225
+ stepTitle: { fontSize: 18, fontWeight: '600', color: '#333', marginBottom: 8, },
226
+ stepDescription: { fontSize: 14, color: '#666', lineHeight: 20, },
227
+ scrollView: { flex: 1, },
228
+ content: { flexGrow: 1, alignItems: 'center', paddingBottom: 20, },
229
+ navigation: { flexDirection: 'row', justifyContent: 'space-between', padding: 20, backgroundColor: 'white', borderTopWidth: 1, borderTopColor: '#e0e0e0', },
230
+ navButton: { paddingHorizontal: 24, paddingVertical: 12, borderRadius: 8, minWidth: 100, alignItems: 'center', },
231
+ primaryButton: { backgroundColor: '#2DBD60', },
232
+ navButtonText: { fontSize: 16, fontWeight: '600', color: 'white', },
233
+ errorText: { color: '#dc2626', fontSize: 16, textAlign: 'center', margin: 20, },
234
+ unsupportedContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', padding: 20, },
235
+ unsupportedText: { fontSize: 16, color: '#666', textAlign: 'center', },
236
+ processingContainer: { position: 'absolute', flex: 1, width: Dimensions.get('window').width, height: Dimensions.get('window').height, backgroundColor: 'rgba(0, 0, 0, 0.5)', justifyContent: 'center', alignItems: 'center', zIndex: 10000000, },
237
+ processingText: { fontSize: 16, color: '#fff', textAlign: 'center', fontWeight: 'bold', marginBottom: 10, },
238
+ loadingContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#f5f5f5', },
239
+ loadingText: { marginTop: 16, fontSize: 16, color: '#666', textAlign: 'center', },
240
+ errorContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#f5f5f5', padding: 20, },
241
+ retryButton: { marginTop: 20, paddingHorizontal: 24, paddingVertical: 12, backgroundColor: '#2DBD60', borderRadius: 8, },
242
+ retryButtonText: { color: '#fff', fontSize: 16, fontWeight: '600', },
358
243
  });
359
244
  //# sourceMappingURL=TemplateKYCFlowRefactored.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TemplateKYCFlowRefactored.js","sourceRoot":"","sources":["../../../src/components/TemplateKYCFlowRefactored.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE3I,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,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QAAQ;QACnB,UAAU,EAAE,MAAM;QAClB,YAAY,EAAE,EAAE;KACjB;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,SAAS;KAC3B;IACD,WAAW,EAAE;QACX,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,cAAc,EAAE;QACd,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,SAAS;QAC1B,OAAO,EAAE,EAAE;KACZ;IACD,WAAW,EAAE;QACX,SAAS,EAAE,EAAE;QACb,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,EAAE;QACnB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,CAAC;KAChB;IACD,eAAe,EAAE;QACf,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC","sourcesContent":["import React, { useEffect } from 'react';\nimport { View, Text, StyleSheet, SafeAreaView, TouchableOpacity, ActivityIndicator, Dimensions, ScrollView, Platform } from 'react-native';\nimport { KYCTemplate, VerificationState } from '../types/KYC.types';\nimport { TemplateKYCFlowProvider, useTemplateKYCFlowContext } from '../hooks/useTemplateKYCFlow';\nimport { useI18n } from '../hooks/useI18n';\nimport { showAlert } from '../utils/platformAlert';\nimport { IDCardCapture } from './KYCElements/IDCardCapture';\nimport { SelfieCaptureTemplate } from './KYCElements/SelfieCaptureTemplate';\nimport { FileUploadTemplate } from './KYCElements/FileUploadTemplate';\nimport { LocationCaptureTemplate } from './KYCElements/LocationCaptureTemplate';\nimport { CountrySelectionTemplate } from './KYCElements/CountrySelectionTemplate';\nimport { InitializationStep } from './KYCElements/InitializationStep';\nimport { ReviewSubmitTemplate } from './KYCElements/ReviewSubmitTemplate';\nimport { VerificationProgressTemplate } from './KYCElements/VerificationProgressTemplate';\nimport { useTemplateLoader } from '../hooks/useTemplateLoader';\nimport { WelcomeTemplate } from './KYCElements/WelcomeTemplate';\nimport { EmailVerificationTemplate } from './KYCElements/EmailVerificationTemplate';\nimport { PhoneVerificationTemplate } from './KYCElements/PhoneVerificationTemplate';\nimport { PersonalInformationTemplate } from './KYCElements/PersonalInformationTemplate';\nimport { AdditionalDocumentsTemplate } from './KYCElements/AdditionalDocumentsTemplate';\nimport { KycEnvironment, BackendEnvironment } from '../types/env.types';\nimport KYCConfig from '../config/KYCConfig';\n\ninterface TemplateKYCFlowProps {\n template?: KYCTemplate; // Format SDK direct (existing, now optional)\n templateId?: string; // New: ID to load from API\n onComplete?: (data: VerificationState) => void;\n onError?: (error: string) => void;\n language?: string;\n onCancel?: () => void;\n API_KEY?: string; // Required if templateId is used\n env?: KycEnvironment; // Flow execution: PRODUCTION (full AI) or SANDBOX (skip AI)\n serverEnv?: BackendEnvironment; // Backend to call: PRODUCTION or TEST (API URL)\n existingSessionId?: string;\n /** Index in template.components (0-based) to resume at — e.g. from URL component_index or template table */\n initialComponentIndex?: number;\n /** Pays / type de document depuis l'URL de reprise (reprise multi-appareil) */\n initialCountryResume?: { code: string; documentType: string; region?: string };\n referenceId?: string;\n onSessionSave?: (sessionId: string) => void;\n kyc_session_id?: string;\n}\n\nexport const TemplateKYCFlow: React.FC<TemplateKYCFlowProps> = ({\n template: providedTemplate,\n templateId,\n onComplete,\n onError,\n language = 'fr',\n onCancel,\n API_KEY,\n env = 'PRODUCTION',\n serverEnv,\n existingSessionId,\n initialComponentIndex,\n initialCountryResume,\n referenceId,\n onSessionSave,\n kyc_session_id,\n}) => {\n const { t } = useI18n();\n const { template: loadedTemplate, isLoading, error, loadTemplate } = useTemplateLoader();\n\n // Which backend URL to call (independent from flow env)\n useEffect(() => {\n if (serverEnv !== undefined) {\n KYCConfig.setBackendEnvironment(serverEnv);\n }\n }, [serverEnv]);\n\n // Validate props\n useEffect(() => {\n if (!providedTemplate && !templateId) {\n const errorMsg = 'Either template or templateId must be provided';\n onError?.(errorMsg);\n return;\n }\n\n if (templateId && !API_KEY) {\n // Try to load without API key (will use token authentication)\n loadTemplate(templateId);\n } else if (templateId && API_KEY) {\n loadTemplate(templateId, API_KEY);\n }\n }, [templateId, API_KEY, providedTemplate, loadTemplate, onError]);\n\n // Handle loading errors\n useEffect(() => {\n if (error) {\n onError?.(error);\n }\n }, [error, onError]);\n\n const OnCancel = () => {\n showAlert(\n t('kyc.cancelConfirmation.title'),\n t('kyc.cancelConfirmation.message'),\n [\n { text: t('kyc.cancelConfirmation.cancelButton'), style: 'cancel' },\n {\n text: t('kyc.cancelConfirmation.confirmButton'),\n onPress: () => {\n onCancel?.();\n }\n },\n ]\n );\n };\n\n // Determine which template to use\n const template = providedTemplate || loadedTemplate;\n\n // Show loading state while fetching template\n if (templateId && isLoading && !template) {\n return (\n <View style={styles.loadingContainer}>\n <ActivityIndicator size=\"large\" color=\"#2DBD60\" />\n <Text style={styles.loadingText}>{t('common.loading') || 'Loading template...'}</Text>\n </View>\n );\n }\n\n // Show error state if template failed to load\n if (templateId && error && !template) {\n return (\n <View style={styles.errorContainer}>\n <Text style={styles.errorText}>{error}</Text>\n <TouchableOpacity\n style={styles.retryButton}\n onPress={() => loadTemplate(templateId, API_KEY)}\n >\n <Text style={styles.retryButtonText}>{t('common.retry') || 'Retry'}</Text>\n </TouchableOpacity>\n </View>\n );\n }\n\n // Show error if no template available\n if (!template) {\n return (\n <View style={styles.errorContainer}>\n <Text style={styles.errorText}>\n {t('errors.unknownError') || 'Template not available'}\n </Text>\n </View>\n );\n }\n\n return (\n <TemplateKYCFlowProvider\n template={template}\n onComplete={onComplete}\n onError={onError}\n onCancel={OnCancel}\n initialLanguage={language}\n apiKey={API_KEY}\n env={env}\n existingSessionId={existingSessionId}\n initialComponentIndex={initialComponentIndex}\n initialCountryResume={initialCountryResume}\n referenceId={referenceId}\n onSessionSave={onSessionSave}\n kyc_session_id={kyc_session_id}\n >\n <TemplateKYCFlowContent onCancel={OnCancel} />\n </TemplateKYCFlowProvider>\n );\n};\n\nconst TemplateKYCFlowContent: React.FC<{ onCancel?: () => void }> = ({ onCancel }) => {\n const {\n state,\n actions,\n currentComponent,\n progress,\n } = useTemplateKYCFlowContext();\n\n const { t } = useI18n();\n\n const updateComponentData = (componentId: number, data: unknown) => {\n actions.updateComponentData(componentId, data);\n };\n\n if (!currentComponent) {\n return (\n <View style={styles.container}>\n <Text style={styles.errorText}>{t('errors.unknownError')}</Text>\n </View>\n );\n }\n\n // Rendu du composant actuel\n const renderCurrentComponent = () => {\n const commonProps = {\n component: currentComponent,\n value: state.componentData[currentComponent.id],\n onValueChange: (data: unknown) => updateComponentData(currentComponent.id, data),\n error: state.errors[currentComponent.id],\n language: state.currentLanguage,\n };\n\n if (!state.session.isInitialized) {\n return <InitializationStep session={state.session} />\n }\n\n switch (currentComponent.type) {\n case 'welcome':\n return <WelcomeTemplate {...commonProps} />;\n\n case 'id_card':\n return <IDCardCapture {...commonProps} />;\n\n case 'selfie':\n return <SelfieCaptureTemplate {...commonProps} />;\n\n case 'file_upload':\n return <FileUploadTemplate {...commonProps} />;\n\n case 'location':\n return <LocationCaptureTemplate {...commonProps} />;\n\n case 'country_selection':\n return <CountrySelectionTemplate {...commonProps} />;\n\n case 'review_submit':\n return <ReviewSubmitTemplate {...commonProps} />;\n\n case 'email_verification':\n return <EmailVerificationTemplate {...commonProps} />;\n\n case 'phone_verification':\n return <PhoneVerificationTemplate {...commonProps} />;\n\n case 'personal_information':\n return <PersonalInformationTemplate {...commonProps} />;\n\n case 'additional_documents':\n return <AdditionalDocumentsTemplate {...commonProps} />;\n\n case 'verification_progress':\n return <VerificationProgressTemplate {...commonProps} />;\n\n default:\n return (\n <View style={styles.unsupportedContainer}>\n <Text style={styles.unsupportedText}>\n {t('errors.unknownError')}: {currentComponent.type}\n </Text>\n </View>\n );\n }\n };\n\n return (\n <View style={{ flex: 1, position: 'relative' }}>\n {state.isProcessing && (\n <View style={styles.processingContainer}>\n <Text style={styles.processingText}>{t('common.loading')}</Text>\n <ActivityIndicator size=\"large\" color=\"#fff\" />\n </View>\n )}\n <SafeAreaView style={styles.container}>\n {/* Header avec informations sur l'étape */}\n\n {(state.showCustomStepper && state.session.isInitialized) ? (\n <View style={styles.header}>\n <Text style={styles.progressText}>\n {t('kyc.step', {\n current: (state.template.components.findIndex(c => c.id === currentComponent.id) + 1) || (state.currentComponentIndex + 1),\n total: state.template.components.length,\n })}\n </Text>\n <View style={styles.progressContainer}>\n <View style={styles.progressBar}>\n <View\n style={[\n styles.progressFill,\n { width: `${progress}%` }\n ]}\n />\n </View>\n\n </View>\n\n <View style={{ position: 'absolute', right: 12, top: 12 }}>\n <TouchableOpacity onPress={onCancel} disabled={!onCancel} style={{ opacity: onCancel ? 1 : 0.5 }}>\n <Text style={{ fontSize: 20, fontWeight: 'bold', color: '#333' }}>{`X`}</Text>\n </TouchableOpacity>\n </View>\n </View>\n ) : null}\n\n {/* Contenu principal */}\n <ScrollView\n style={styles.scrollView}\n contentContainerStyle={styles.content}\n showsVerticalScrollIndicator={Platform.OS === 'web'}\n bounces={false}\n >\n {renderCurrentComponent()}\n </ScrollView>\n\n {state.isProcessing && (\n <View style={styles.processingContainer}>\n <Text style={styles.processingText}>{t('common.loading')}</Text>\n <ActivityIndicator size=\"large\" color=\"#fff\" />\n </View>\n )}\n </SafeAreaView>\n </View>\n\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#f5f5f5',\n\n },\n header: {\n backgroundColor: 'white',\n paddingVertical: 20,\n paddingHorizontal: 12,\n borderBottomWidth: 1,\n borderBottomColor: '#e0e0e0',\n marginHorizontal: 12,\n marginTop: 12,\n // shadow\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.15,\n shadowRadius: 1.84,\n elevation: 5,\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 8,\n },\n description: {\n fontSize: 16,\n color: '#666',\n marginBottom: 20,\n },\n progressContainer: {\n // marginBottom: 20,\n },\n progressBar: {\n height: 8,\n backgroundColor: '#e0e0e0',\n borderRadius: 4,\n overflow: 'hidden',\n },\n progressFill: {\n height: '100%',\n backgroundColor: '#2DBD60',\n borderRadius: 4,\n },\n progressText: {\n fontSize: 14,\n color: 'black',\n fontWeight: '600',\n textAlign: 'left',\n marginBottom: 8,\n },\n stepInfo: {\n backgroundColor: '#f8f9fa',\n padding: 16,\n borderRadius: 8,\n borderLeftWidth: 4,\n borderLeftColor: '#2DBD60',\n },\n stepTitle: {\n fontSize: 18,\n fontWeight: '600',\n color: '#333',\n marginBottom: 8,\n },\n stepDescription: {\n fontSize: 14,\n color: '#666',\n lineHeight: 20,\n },\n scrollView: {\n flex: 1,\n },\n content: {\n flexGrow: 1,\n alignItems: 'center',\n paddingBottom: 20, // Add padding for better mobile scrolling\n },\n navigation: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n padding: 20,\n backgroundColor: 'white',\n borderTopWidth: 1,\n borderTopColor: '#e0e0e0',\n },\n navButton: {\n paddingHorizontal: 24,\n paddingVertical: 12,\n borderRadius: 8,\n minWidth: 100,\n alignItems: 'center',\n },\n primaryButton: {\n backgroundColor: '#2DBD60',\n },\n navButtonText: {\n fontSize: 16,\n fontWeight: '600',\n color: 'white',\n },\n errorText: {\n color: '#dc2626',\n fontSize: 16,\n textAlign: 'center',\n margin: 20,\n },\n unsupportedContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n padding: 20,\n },\n unsupportedText: {\n fontSize: 16,\n color: '#666',\n textAlign: 'center',\n },\n processingContainer: {\n position: 'absolute',\n flex: 1,\n width: Dimensions.get('window').width,\n height: Dimensions.get('window').height,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n justifyContent: 'center',\n alignItems: 'center',\n zIndex: 10000000,\n },\n processingText: {\n fontSize: 16,\n color: '#fff',\n textAlign: 'center',\n fontWeight: 'bold',\n marginBottom: 10,\n },\n loadingContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: '#f5f5f5',\n },\n loadingText: {\n marginTop: 16,\n fontSize: 16,\n color: '#666',\n textAlign: 'center',\n },\n errorContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: '#f5f5f5',\n padding: 20,\n },\n retryButton: {\n marginTop: 20,\n paddingHorizontal: 24,\n paddingVertical: 12,\n backgroundColor: '#2DBD60',\n borderRadius: 8,\n },\n retryButtonText: {\n color: '#fff',\n fontSize: 16,\n fontWeight: '600',\n },\n}); "]}
1
+ {"version":3,"file":"TemplateKYCFlowRefactored.js","sourceRoot":"","sources":["../../../src/components/TemplateKYCFlowRefactored.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE3I,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAA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CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,GAAG;IAC1G,WAAW,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,GAAG;IACjF,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,GAAG;IACrH,WAAW,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,GAAG;IACxH,eAAe,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,GAAG;CACrE,CAAC,CAAC","sourcesContent":["import React, { useEffect } from 'react';\nimport { View, Text, StyleSheet, SafeAreaView, TouchableOpacity, ActivityIndicator, Dimensions, ScrollView, Platform } from 'react-native';\nimport { KYCTemplate, VerificationState } from '../types/KYC.types';\nimport { TemplateKYCFlowProvider, useTemplateKYCFlowContext } from '../hooks/useTemplateKYCFlow';\nimport { useI18n } from '../hooks/useI18n';\nimport { showAlert } from '../utils/platformAlert';\n\nimport { IDCardCapture } from './KYCElements/IDCardCapture';\nimport { SelfieCaptureTemplate } from './KYCElements/SelfieCaptureTemplate';\nimport { FileUploadTemplate } from './KYCElements/FileUploadTemplate';\nimport { LocationCaptureTemplate } from './KYCElements/LocationCaptureTemplate';\nimport { CountrySelectionTemplate } from './KYCElements/CountrySelectionTemplate';\nimport { InitializationStep } from './KYCElements/InitializationStep';\nimport { ReviewSubmitTemplate } from './KYCElements/ReviewSubmitTemplate';\nimport { VerificationProgressTemplate } from './KYCElements/VerificationProgressTemplate';\nimport { useTemplateLoader } from '../hooks/useTemplateLoader';\nimport { WelcomeTemplate } from './KYCElements/WelcomeTemplate';\nimport { EmailVerificationTemplate } from './KYCElements/EmailVerificationTemplate';\nimport { PhoneVerificationTemplate } from './KYCElements/PhoneVerificationTemplate';\nimport { PersonalInformationTemplate } from './KYCElements/PersonalInformationTemplate';\nimport { AdditionalDocumentsTemplate } from './KYCElements/AdditionalDocumentsTemplate';\nimport { KycEnvironment, BackendEnvironment } from '../types/env.types';\nimport KYCConfig from '../config/KYCConfig';\nimport { sdkLogger } from '../utils/logger'; // 🚨 IMPORT SDK LOGGER\n\ninterface TemplateKYCFlowProps {\n template?: KYCTemplate; // Format SDK direct (existing, now optional)\n templateId?: string; // New: ID to load from API\n onComplete?: (data: VerificationState) => void;\n onError?: (error: string) => void;\n language?: string;\n onCancel?: () => void;\n API_KEY?: string; // Required if templateId is used\n env?: KycEnvironment; // Flow execution: PRODUCTION (full AI) or SANDBOX (skip AI)\n serverEnv?: BackendEnvironment; // Backend to call: PRODUCTION or TEST (API URL)\n existingSessionId?: string;\n initialComponentIndex?: number;\n initialCountryResume?: { code: string; documentType: string; region?: string };\n referenceId?: string;\n onSessionSave?: (sessionId: string) => void;\n kyc_session_id?: string;\n}\n\nexport const TemplateKYCFlow: React.FC<TemplateKYCFlowProps> = ({\n template: providedTemplate,\n templateId,\n onComplete,\n onError,\n language = 'fr',\n onCancel,\n API_KEY,\n env = 'PRODUCTION',\n serverEnv,\n existingSessionId,\n initialComponentIndex,\n initialCountryResume,\n referenceId,\n onSessionSave,\n kyc_session_id,\n}) => {\n const { t } = useI18n();\n const { template: loadedTemplate, isLoading, error, loadTemplate } = useTemplateLoader();\n\n useEffect(() => {\n if (API_KEY) {\n if (sdkLogger.setApiKey) sdkLogger.setApiKey(API_KEY);\n }\n \n }, [env, serverEnv, existingSessionId, API_KEY]);\n\n useEffect(() => {\n if (serverEnv !== undefined) {\n KYCConfig.setBackendEnvironment(serverEnv);\n }\n }, [serverEnv]);\n\n useEffect(() => {\n if (!providedTemplate && !templateId) {\n const errorMsg = 'Either template or templateId must be provided';\n sdkLogger.error(\"Template Loading Failed: Missing Props\", { errorMsg });\n onError?.(errorMsg);\n return;\n }\n\n if (templateId && !API_KEY) {\n sdkLogger.info(`Fetching template ${templateId} via token authentication`);\n loadTemplate(templateId);\n } else if (templateId && API_KEY) {\n sdkLogger.info(`Fetching template ${templateId} via API Key`);\n loadTemplate(templateId, API_KEY);\n }\n }, [templateId, API_KEY, providedTemplate, loadTemplate, onError]);\n\n useEffect(() => {\n if (error) {\n sdkLogger.error(\"Template Fetch Error\", { error });\n onError?.(error);\n }\n }, [error, onError]);\n\n const OnCancel = () => {\n showAlert(\n t('kyc.cancelConfirmation.title'),\n t('kyc.cancelConfirmation.message'),\n [\n { \n text: t('kyc.cancelConfirmation.cancelButton'), \n style: 'cancel',\n },\n {\n text: t('kyc.cancelConfirmation.confirmButton'),\n onPress: () => {\n sdkLogger.warn(\"User confirmed flow cancellation\");\n sdkLogger.flush();\n onCancel?.();\n }\n },\n ]\n );\n };\n\n const template = providedTemplate || loadedTemplate;\n\n useEffect(() => {\n if (template) {\n sdkLogger.info(\"Template loaded successfully\", { componentCount: template.components.length });\n }\n }, [template]);\n\n if (templateId && isLoading && !template) {\n return (\n <View style={styles.loadingContainer}>\n <ActivityIndicator size=\"large\" color=\"#2DBD60\" />\n <Text style={styles.loadingText}>{t('common.loading') || 'Loading template...'}</Text>\n </View>\n );\n }\n\n if (templateId && error && !template) {\n return (\n <View style={styles.errorContainer}>\n <Text style={styles.errorText}>{error}</Text>\n <TouchableOpacity \n style={styles.retryButton} \n onPress={() => {\n sdkLogger.info(\"User retrying template fetch\");\n loadTemplate(templateId, API_KEY);\n }}\n >\n <Text style={styles.retryButtonText}>{t('common.retry') || 'Retry'}</Text>\n </TouchableOpacity>\n </View>\n );\n }\n\n if (!template) {\n return (\n <View style={styles.errorContainer}>\n <Text style={styles.errorText}>\n {t('errors.unknownError') || 'Template not available'}\n </Text>\n </View>\n );\n }\n\n\n return (\n <TemplateKYCFlowProvider\n template={template}\n onComplete={(data) => {\n sdkLogger.info(\"KYC Flow Completed\", { referenceId: data?.result?.referenceId });\n sdkLogger.flush();\n if (onComplete) onComplete(data);\n }}\n onError={(err) => {\n sdkLogger.error(\"KYC Flow Error\", { error: err });\n sdkLogger.flush();\n if (onError) onError(err);\n }}\n onCancel={OnCancel}\n initialLanguage={language}\n apiKey={API_KEY}\n env={env}\n existingSessionId={existingSessionId}\n initialComponentIndex={initialComponentIndex}\n initialCountryResume={initialCountryResume}\n referenceId={referenceId}\n onSessionSave={onSessionSave}\n kyc_session_id={kyc_session_id}\n >\n <TemplateKYCFlowContent onCancel={OnCancel} />\n </TemplateKYCFlowProvider>\n );\n};\n\nconst TemplateKYCFlowContent: React.FC<{ onCancel?: () => void }> = ({ onCancel }) => {\n const { state, actions, currentComponent, progress } = useTemplateKYCFlowContext();\n const { t } = useI18n();\n\n console.log(`sessionnnn id: ${state.session.session_id}`)\n\n useEffect(() => {\n if (state.session?.session_id) {\n sdkLogger.setSessionId(state.session.session_id);\n }\n }, [state.session?.session_id]);\n\n useEffect(() => {\n if (currentComponent) {\n sdkLogger.info(`User navigated to step ${state.currentComponentIndex + 1}: ${currentComponent.type}`, {\n componentId: currentComponent.id,\n progress: `${progress}%`\n });\n }\n }, [currentComponent?.id, state.currentComponentIndex, progress]);\n\n const updateComponentData = (componentId: number, data: unknown) => {\n actions.updateComponentData(componentId, data);\n };\n\n if (!currentComponent) {\n return (\n <View style={styles.container}>\n <Text style={styles.errorText}>{t('errors.unknownError')}</Text>\n </View>\n );\n }\n\n const renderCurrentComponent = () => {\n const commonProps = {\n component: currentComponent,\n value: state.componentData[currentComponent.id],\n onValueChange: (data: unknown) => updateComponentData(currentComponent.id, data),\n error: state.errors[currentComponent.id],\n language: state.currentLanguage,\n };\n\n if (!state.session.isInitialized) {\n return <InitializationStep session={state.session} />\n }\n\n switch (currentComponent.type) {\n case 'welcome': return <WelcomeTemplate {...commonProps} />;\n case 'id_card': return <IDCardCapture {...commonProps} />;\n case 'selfie': return <SelfieCaptureTemplate {...commonProps} />;\n case 'file_upload': return <FileUploadTemplate {...commonProps} />;\n case 'location': return <LocationCaptureTemplate {...commonProps} />;\n case 'country_selection': return <CountrySelectionTemplate {...commonProps} />;\n case 'review_submit': return <ReviewSubmitTemplate {...commonProps} />;\n case 'email_verification': return <EmailVerificationTemplate {...commonProps} />;\n case 'phone_verification': return <PhoneVerificationTemplate {...commonProps} />;\n case 'personal_information': return <PersonalInformationTemplate {...commonProps} />;\n case 'additional_documents': return <AdditionalDocumentsTemplate {...commonProps} />;\n case 'verification_progress': return <VerificationProgressTemplate {...commonProps} />;\n default:\n sdkLogger.error(\"Attempted to render unsupported component type\", { type: currentComponent.type });\n return (\n <View style={styles.unsupportedContainer}>\n <Text style={styles.unsupportedText}>\n {t('errors.unknownError')}: {currentComponent.type}\n </Text>\n </View>\n );\n }\n };\n\n return (\n <View style={{ flex: 1, position: 'relative' }}>\n {state.isProcessing && (\n <View style={styles.processingContainer}>\n <Text style={styles.processingText}>{t('common.loading')}</Text>\n <ActivityIndicator size=\"large\" color=\"#fff\" />\n </View>\n )}\n\n <SafeAreaView style={styles.container}>\n {(state.showCustomStepper && state.session.isInitialized) ? (\n <View style={styles.header}>\n <Text style={styles.progressText}>\n {t('kyc.step', {\n current: (state.template.components.findIndex(c => c.id === currentComponent.id) + 1) || (state.currentComponentIndex + 1),\n total: state.template.components.length,\n })}\n </Text>\n \n <View style={styles.progressContainer}>\n <View style={styles.progressBar}>\n <View style={[styles.progressFill, { width: `${progress}%` }]} />\n </View>\n </View>\n\n <View style={{ position: 'absolute', right: 12, top: 12 }}>\n <TouchableOpacity onPress={onCancel} disabled={!onCancel} style={{ opacity: onCancel ? 1 : 0.5 }}>\n <Text style={{ fontSize: 20, fontWeight: 'bold', color: '#333' }}>{`X`}</Text>\n </TouchableOpacity>\n </View>\n </View>\n ) : null}\n\n <ScrollView\n style={styles.scrollView}\n contentContainerStyle={styles.content}\n showsVerticalScrollIndicator={Platform.OS === 'web'}\n bounces={false}\n >\n {renderCurrentComponent()}\n </ScrollView>\n\n {state.isProcessing && (\n <View style={styles.processingContainer}>\n <Text style={styles.processingText}>{t('common.loading')}</Text>\n <ActivityIndicator size=\"large\" color=\"#fff\" />\n </View>\n )}\n </SafeAreaView>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { flex: 1, backgroundColor: '#f5f5f5', },\n header: { backgroundColor: 'white', paddingVertical: 20, paddingHorizontal: 12, borderBottomWidth: 1, borderBottomColor: '#e0e0e0', marginHorizontal: 12, marginTop: 12, shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.15, shadowRadius: 1.84, elevation: 5, },\n title: { fontSize: 24, fontWeight: 'bold', color: '#333', marginBottom: 8, },\n description: { fontSize: 16, color: '#666', marginBottom: 20, },\n progressContainer: { },\n progressBar: { height: 8, backgroundColor: '#e0e0e0', borderRadius: 4, overflow: 'hidden', },\n progressFill: { height: '100%', backgroundColor: '#2DBD60', borderRadius: 4, },\n progressText: { fontSize: 14, color: 'black', fontWeight: '600', textAlign: 'left', marginBottom: 8, },\n stepInfo: { backgroundColor: '#f8f9fa', padding: 16, borderRadius: 8, borderLeftWidth: 4, borderLeftColor: '#2DBD60', },\n stepTitle: { fontSize: 18, fontWeight: '600', color: '#333', marginBottom: 8, },\n stepDescription: { fontSize: 14, color: '#666', lineHeight: 20, },\n scrollView: { flex: 1, },\n content: { flexGrow: 1, alignItems: 'center', paddingBottom: 20, },\n navigation: { flexDirection: 'row', justifyContent: 'space-between', padding: 20, backgroundColor: 'white', borderTopWidth: 1, borderTopColor: '#e0e0e0', },\n navButton: { paddingHorizontal: 24, paddingVertical: 12, borderRadius: 8, minWidth: 100, alignItems: 'center', },\n primaryButton: { backgroundColor: '#2DBD60', },\n navButtonText: { fontSize: 16, fontWeight: '600', color: 'white', },\n errorText: { color: '#dc2626', fontSize: 16, textAlign: 'center', margin: 20, },\n unsupportedContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', padding: 20, },\n unsupportedText: { fontSize: 16, color: '#666', textAlign: 'center', },\n processingContainer: { position: 'absolute', flex: 1, width: Dimensions.get('window').width, height: Dimensions.get('window').height, backgroundColor: 'rgba(0, 0, 0, 0.5)', justifyContent: 'center', alignItems: 'center', zIndex: 10000000, },\n processingText: { fontSize: 16, color: '#fff', textAlign: 'center', fontWeight: 'bold', marginBottom: 10, },\n loadingContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#f5f5f5', },\n loadingText: { marginTop: 16, fontSize: 16, color: '#666', textAlign: 'center', },\n errorContainer: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#f5f5f5', padding: 20, },\n retryButton: { marginTop: 20, paddingHorizontal: 24, paddingVertical: 12, backgroundColor: '#2DBD60', borderRadius: 8, },\n retryButtonText: { color: '#fff', fontSize: 16, fontWeight: '600', },\n});"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplateKYCFlow.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTemplateKYCFlow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6D,SAAS,EAAqB,MAAM,OAAO,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAA6C,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAClK,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAQpD,UAAU,0BAA0B;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,eAAe,CAAC;IACzB,gBAAgB,EAAE,GAAG,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,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