@sanctum-key/react-native-sdk 1.0.48 → 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.
- package/build/package.json +1 -1
- package/build/src/components/KYCElements/CountrySelection.d.ts.map +1 -1
- package/build/src/components/KYCElements/CountrySelection.js +33 -108
- package/build/src/components/KYCElements/CountrySelection.js.map +1 -1
- package/build/src/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -1
- package/build/src/components/KYCElements/CountrySelectionTemplate.js +50 -164
- package/build/src/components/KYCElements/CountrySelectionTemplate.js.map +1 -1
- package/build/src/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -1
- package/build/src/components/KYCElements/DocumentTypeSelection.js +32 -109
- package/build/src/components/KYCElements/DocumentTypeSelection.js.map +1 -1
- package/build/src/components/KYCElements/IDCardCapture.d.ts.map +1 -1
- package/build/src/components/KYCElements/IDCardCapture.js +58 -25
- package/build/src/components/KYCElements/IDCardCapture.js.map +1 -1
- package/build/src/components/KYCElements/InitializationStep.d.ts.map +1 -1
- package/build/src/components/KYCElements/InitializationStep.js +13 -1
- package/build/src/components/KYCElements/InitializationStep.js.map +1 -1
- package/build/src/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -1
- package/build/src/components/KYCElements/LocationCaptureTemplate.js +46 -157
- package/build/src/components/KYCElements/LocationCaptureTemplate.js.map +1 -1
- package/build/src/components/KYCElements/SelfieCapture.d.ts.map +1 -1
- package/build/src/components/KYCElements/SelfieCapture.js +28 -24
- package/build/src/components/KYCElements/SelfieCapture.js.map +1 -1
- package/build/src/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -1
- package/build/src/components/KYCElements/VerificationProgressTemplate.js +31 -40
- package/build/src/components/KYCElements/VerificationProgressTemplate.js.map +1 -1
- package/build/src/components/SelfieCapture.d.ts.map +1 -1
- package/build/src/components/SelfieCapture.js +33 -90
- package/build/src/components/SelfieCapture.js.map +1 -1
- package/build/src/components/TemplateKYCExample.d.ts.map +1 -1
- package/build/src/components/TemplateKYCExample.js +69 -120
- package/build/src/components/TemplateKYCExample.js.map +1 -1
- package/build/src/components/TemplateKYCFlowRefactored.d.ts +0 -2
- package/build/src/components/TemplateKYCFlowRefactored.d.ts.map +1 -1
- package/build/src/components/TemplateKYCFlowRefactored.js +95 -210
- package/build/src/components/TemplateKYCFlowRefactored.js.map +1 -1
- package/build/src/hooks/useTemplateKYCFlow.d.ts.map +1 -1
- package/build/src/hooks/useTemplateKYCFlow.js.map +1 -1
- package/build/src/types/KYC.types.d.ts.map +1 -1
- package/build/src/types/KYC.types.js.map +1 -1
- package/build/src/utils/logger.d.ts +12 -4
- package/build/src/utils/logger.d.ts.map +1 -1
- package/build/src/utils/logger.js +156 -28
- package/build/src/utils/logger.js.map +1 -1
- package/package.json +1 -1
- package/src/components/KYCElements/CountrySelection.tsx +36 -109
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +67 -266
- package/src/components/KYCElements/DocumentTypeSelection.tsx +34 -110
- package/src/components/KYCElements/IDCardCapture.tsx +93 -39
- package/src/components/KYCElements/InitializationStep.tsx +17 -2
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +53 -170
- package/src/components/KYCElements/SelfieCapture.tsx +50 -58
- package/src/components/KYCElements/VerificationProgressTemplate.tsx +38 -45
- package/src/components/SelfieCapture.tsx +44 -100
- package/src/components/TemplateKYCExample.tsx +94 -145
- package/src/components/TemplateKYCFlowRefactored.tsx +105 -239
- package/src/hooks/useTemplateKYCFlow.tsx +1 -0
- package/src/types/KYC.types.ts +0 -1
- package/src/utils/logger.ts +182 -29
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountrySelectionTemplate.js","sourceRoot":"","sources":["../../../../src/components/KYCElements/CountrySelectionTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,E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EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;IACzD,eAAe,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACjE,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE;IAChF,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;CACrG,CAAC,CAAC","sourcesContent":["import React, { useState, useMemo, useEffect } from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet, ScrollView, TextInput } from 'react-native';\nimport { TemplateComponent, CountrySelectionConfig, LocalizedText, Country, IDCardConfig } from '../../types/KYC.types';\nimport { countryMapping } from '../../config/region_mapping';\nimport { useTemplateKYCFlowContext } from '../../hooks/useTemplateKYCFlow';\nimport { Button } from '../ui/Button';\nimport { countryData } from '../../config/countriesData';\nimport REGION_MAPPING from '../../config/region_mapping.json';\n\ninterface CountrySelectionTemplateProps {\n component: TemplateComponent;\n value?: any;\n onValueChange: (value: Country & { documentType?: string; region?: string }) => void;\n error?: string;\n language?: string;\n}\n\ntype SelectionStep = 'country' | 'documentType' | 'region';\n\ntype ExtendedIDCardConfig = IDCardConfig & {\n selectedCountries?: string[];\n documentTypesByCountry?: Record<string, string[]>;\n regionsByCountry?: Record<string, Record<string, string[]>>;\n instructionsByDocumentType?: Record<string, LocalizedText>;\n};\n\nconst ISO_TO_COUNTRY_NAME: Record<string, string> = { 'KE': 'Kenya', 'CM': 'Cameroon', 'NG': 'Nigeria', 'CA': 'Canada', 'FR': 'France', 'GH': 'Ghana', 'ZA': 'South Africa', 'GB': 'Britain', 'CI': 'Ivory Coast', 'SN': 'Senegal', 'TG': 'Togo', 'ML': 'Mali' };\n\nconst jsonDocMap: Record<string, string> = {\n 'nationalId': 'identity_card',\n 'national_id': 'identity_card',\n 'passport': 'passport',\n 'driversLicense': 'drivers_licence',\n 'drivers_licence': 'drivers_licence',\n 'residencePermit': 'permanent_residence',\n 'healthInsuranceCard': 'health_insurance_card'\n};\n\nconst SUB_REGION_CODES: Record<string, string> = {\n \"Alberta\": \"AB\",\n \"British Columbia\": \"BC\",\n \"Manitoba\": \"MB\",\n \"New Brunswick\": \"NB\",\n \"Newfoundland and Labrador\": \"NL\",\n \"Northwest Territories\": \"NT\",\n \"Nova Scotia\": \"NS\",\n \"Nunavut\": \"NU\",\n \"Ontario\": \"ON\",\n \"Prince Edward Island\": \"PE\",\n \"Quebec\": \"QC\",\n \"Saskatchewan\": \"SK\",\n \"Yukon\": \"YT\"\n};\n\nexport const CountrySelectionTemplate: React.FC<CountrySelectionTemplateProps> = ({\n component,\n value,\n onValueChange,\n error,\n language = 'en',\n}) => {\n const config = component.config as CountrySelectionConfig;\n const { actions, state } = useTemplateKYCFlowContext();\n\n const idCardComponent = useMemo(() => {\n return state.template.components.find(c => c.type === 'id_card');\n }, [state.template.components]);\n\n const idCardConfig = useMemo(() => {\n return idCardComponent?.config as ExtendedIDCardConfig | undefined;\n }, [idCardComponent]);\n\n const [currentStep, setCurrentStep] = useState<SelectionStep>(() => {\n if (value?.code && value?.documentType) {\n if (value.region) return 'region';\n return 'documentType';\n }\n return 'country';\n });\n\n const [selectedCountryCode, setSelectedCountryCode] = useState<string | null>(value?.code || null);\n const [selectedDocumentType, setSelectedDocumentType] = useState<string | null>(value?.documentType || null);\n const [selectedRegion, setSelectedRegion] = useState<string | null>(value?.region || null);\n \n const [searchQuery, setSearchQuery] = useState('');\n\n useEffect(() => {\n if (value?.code && value?.documentType) {\n setSelectedCountryCode(value.code);\n setSelectedDocumentType(value.documentType);\n setSelectedRegion(value.region || null);\n\n if (value.region) {\n setCurrentStep('region');\n } else {\n let regionsCheck = idCardConfig?.regionsByCountry?.[value.code]?.[value.documentType] || [];\n \n if (regionsCheck.length === 0) {\n const rawCountryName = ISO_TO_COUNTRY_NAME[value.code] || value.code;\n const searchDocType = jsonDocMap[value.documentType] || value.documentType;\n const baseMapping = (REGION_MAPPING as any).regionMapping || REGION_MAPPING;\n \n let countryMapping = baseMapping[rawCountryName];\n if (!countryMapping) {\n const foundKey = Object.keys(baseMapping).find(k => k.toLowerCase() === rawCountryName.toLowerCase());\n if (foundKey) countryMapping = baseMapping[foundKey];\n }\n\n if (countryMapping && countryMapping[searchDocType]) {\n regionsCheck = Object.keys(countryMapping[searchDocType]).filter(k => k !== 'root');\n }\n }\n\n if (Array.isArray(regionsCheck) && regionsCheck.length > 0) {\n setCurrentStep('region');\n } else {\n setCurrentStep('documentType');\n }\n }\n } else {\n setSelectedCountryCode(null);\n setSelectedDocumentType(null);\n setSelectedRegion(null);\n setCurrentStep('country');\n }\n }, [value?.code, value?.documentType, value?.region, idCardConfig]);\n\n useEffect(() => {\n if (error) {\n actions.updateComponentData(component.id, value);\n }\n }, []);\n\n const availableCountries = useMemo(() => {\n const explicitlyAllowed = idCardConfig?.selectedCountries || config.allowed_countries || [];\n \n const configuredCodes = new Set(explicitlyAllowed);\n\n return Array.from(configuredCodes)\n .filter((code: string) => countryData[code])\n .map((code: string) => ({ code, ...countryData[code] }))\n .sort((a: Country, b: Country) => a.name.localeCompare(b.name));\n }, [idCardConfig?.selectedCountries, config.allowed_countries]);\n\n const filteredCountries = useMemo(() => {\n if (!searchQuery.trim()) return availableCountries;\n const cleanQuery = searchQuery.toLowerCase().trim();\n\n return availableCountries.filter(country => \n country.name.toLowerCase().includes(cleanQuery) || \n country.name_en.toLowerCase().includes(cleanQuery) || \n country.code.toLowerCase().includes(cleanQuery)\n );\n }, [searchQuery, availableCountries]);\n\n const availableDocumentTypes = useMemo(() => {\n if (!selectedCountryCode) return [];\n \n // Check if custom layout configuration explicitly defined items for it\n if (idCardConfig?.documentTypesByCountry?.[selectedCountryCode]) {\n return idCardConfig.documentTypesByCountry[selectedCountryCode];\n }\n\n // Default Fallback: Query mapping matrix dynamically\n const rawCountryName = ISO_TO_COUNTRY_NAME[selectedCountryCode] || selectedCountryCode;\n const baseMapping = (REGION_MAPPING as any).regionMapping || REGION_MAPPING;\n \n let countryMapping = baseMapping[rawCountryName];\n if (!countryMapping) {\n const foundKey = Object.keys(baseMapping).find(k => k.toLowerCase() === rawCountryName.toLowerCase());\n if (foundKey) countryMapping = baseMapping[foundKey];\n }\n\n if (countryMapping) {\n const inverseDocMap: Record<string, string> = {\n 'identity_card': 'nationalId',\n 'passport': 'passport',\n 'drivers_licence': 'driversLicense',\n 'permanent_residence': 'residencePermit',\n 'health_insurance_card': 'healthInsuranceCard'\n };\n return Object.keys(countryMapping).map(key => inverseDocMap[key] || key);\n }\n\n return ['nationalId', 'passport', 'driversLicense'];\n }, [selectedCountryCode, idCardConfig?.documentTypesByCountry]);\n\n const availableRegions = useMemo(() => {\n if (!selectedCountryCode || !selectedDocumentType) return [];\n\n let rawRegions: string[] = [];\n \n if (idCardConfig?.regionsByCountry?.[selectedCountryCode]?.[selectedDocumentType]) {\n rawRegions = idCardConfig.regionsByCountry[selectedCountryCode][selectedDocumentType];\n }\n\n if (rawRegions.length === 0) {\n const rawCountryName = ISO_TO_COUNTRY_NAME[selectedCountryCode] || selectedCountryCode;\n const searchDocType = jsonDocMap[selectedDocumentType] || selectedDocumentType;\n const baseMapping = (REGION_MAPPING as any).regionMapping || REGION_MAPPING;\n \n let countryMapping = baseMapping[rawCountryName];\n if (!countryMapping) {\n const foundKey = Object.keys(baseMapping).find(k => k.toLowerCase() === rawCountryName.toLowerCase());\n if (foundKey) countryMapping = baseMapping[foundKey];\n }\n\n if (countryMapping && countryMapping[searchDocType]) {\n rawRegions = Object.keys(countryMapping[searchDocType]).filter(k => k !== 'root');\n }\n }\n\n if (!Array.isArray(rawRegions)) return [];\n\n return rawRegions.sort((a, b) => a.localeCompare(b)).map(region => ({\n label: region,\n value: SUB_REGION_CODES[region] || region\n }));\n }, [selectedCountryCode, selectedDocumentType, idCardConfig?.regionsByCountry]);\n\n const needsRegion = useMemo(() => {\n return availableRegions.length > 0;\n }, [availableRegions]);\n\n const getLocalizedText = (text: LocalizedText): string => {\n return text[state.currentLanguage] || text.en || '';\n };\n\n const handleCountrySelect = (countryCode: string) => {\n setSelectedCountryCode(countryCode);\n setSelectedDocumentType(null);\n setSelectedRegion(null);\n };\n\n const handleDocumentTypeSelect = (docType: string) => {\n setSelectedDocumentType(docType);\n setSelectedRegion(null);\n };\n\n const handleRegionSelect = (regionValue: string) => {\n setSelectedRegion(regionValue);\n };\n\n const finalizeSelection = (countryCode: string, docType: string, region: string | null) => {\n const country = countryData[countryCode];\n if (!country) return;\n\n const mapping = countryMapping[countryCode as keyof typeof countryMapping];\n const countryObj: Country & { documentType?: string; region?: string } = {\n code: countryCode,\n ...country,\n regionMapping: mapping,\n documentType: docType,\n region: region || undefined,\n };\n\n onValueChange(countryObj);\n\n setTimeout(() => {\n actions.nextComponent(countryObj);\n }, 100);\n };\n\n const handleBack = () => {\n if (currentStep === 'region') {\n setCurrentStep('documentType');\n setSelectedRegion(null);\n } else if (currentStep === 'documentType') {\n setCurrentStep('country');\n setSelectedDocumentType(null);\n setSelectedRegion(null);\n setSearchQuery('');\n } else if (currentStep === 'country') {\n actions.previousComponent();\n }\n };\n\n const handleNext = () => {\n if (currentStep === 'country' && selectedCountryCode) {\n setCurrentStep('documentType');\n } else if (currentStep === 'documentType' && selectedDocumentType) {\n if (needsRegion) {\n setCurrentStep('region');\n } else {\n if (selectedCountryCode) {\n finalizeSelection(selectedCountryCode, selectedDocumentType, null);\n }\n }\n } else if (currentStep === 'region' && selectedRegion) {\n if (selectedCountryCode && selectedDocumentType) {\n finalizeSelection(selectedCountryCode, selectedDocumentType, selectedRegion);\n }\n }\n };\n\n const renderCountrySelection = () => {\n return (\n <>\n <TextInput \n style={styles.searchBar}\n placeholder={state.currentLanguage === \"en\" ? \"🔍 Search country...\" : \"🔍 Rechercher un pays...\"}\n placeholderTextColor=\"#94A3B8\"\n value={searchQuery}\n onChangeText={setSearchQuery}\n autoCorrect={false}\n />\n <ScrollView style={styles.listContainer} showsVerticalScrollIndicator={false}>\n {filteredCountries.map((country: Country & { code?: string }) => (\n <TouchableOpacity\n key={country.code}\n style={[\n styles.option,\n selectedCountryCode === country.code && styles.selectedOption\n ]}\n onPress={() => handleCountrySelect(country.code!)}\n >\n <Text style={styles.flag}>{country.flag}</Text>\n \n <View style={styles.optionContent}>\n <Text style={[\n styles.optionName,\n selectedCountryCode === country.code && styles.selectedOptionName\n ]}>\n {state.currentLanguage === \"en\" ? country.name_en : country.name}\n </Text>\n <Text style={styles.optionCode}>{country.code}</Text>\n </View>\n\n {selectedCountryCode === country.code && (\n <View style={[\n styles.checkmark,\n { backgroundColor: component.ui.themeColor as string || '#2DBD60' }\n ]}>\n <Text style={styles.checkmarkText}>✓</Text>\n </View>\n )}\n </TouchableOpacity>\n ))}\n \n {filteredCountries.length === 0 && (\n <Text style={styles.emptyText}>\n {state.currentLanguage === \"en\" ? \"No matching countries found.\" : \"Aucun pays trouvé.\"}\n </Text>\n )}\n </ScrollView>\n </>\n );\n };\n\n const renderDocumentTypeSelection = () => {\n const instructions = selectedDocumentType && idCardConfig?.instructionsByDocumentType?.[selectedDocumentType]\n ? getLocalizedText(idCardConfig.instructionsByDocumentType[selectedDocumentType])\n : null;\n\n const documentTypeLabels: Record<string, { en: string; fr: string; icon?: string }> = {\n 'nationalId': { en: 'National ID', fr: 'Carte nationale d\\'identité', icon: '🏛️' },\n 'passport': { en: 'Passport', fr: 'Passeport', icon: '📘' },\n 'driversLicense': { en: 'Driver\\'s License', fr: 'Permis de conduire', icon: '🚗' },\n 'residencePermit': { en: 'Residence Permit', fr: 'Permis de séjour', icon: '🏠' },\n 'healthInsuranceCard': { en: 'Health Insurance Card', fr: 'Carte d\\'assurance maladie', icon: '🗳️' },\n };\n\n return (\n <>\n {instructions && (\n <View style={styles.infoBox}>\n <Text style={styles.infoText}>{instructions}</Text>\n </View>\n )}\n <ScrollView style={styles.listContainer} showsVerticalScrollIndicator={false}>\n {availableDocumentTypes.map((docType: string) => {\n const label = documentTypeLabels[docType];\n const displayName = label ? (state.currentLanguage === \"en\" ? label.en : label.fr) : docType;\n const icon = label?.icon || '📄';\n\n return (\n <TouchableOpacity\n key={docType}\n style={[\n styles.option,\n selectedDocumentType === docType && styles.selectedOption\n ]}\n onPress={() => handleDocumentTypeSelect(docType)}\n >\n <Text style={styles.flag}>{icon}</Text>\n <View style={styles.optionContent}>\n <Text style={[\n styles.optionName,\n selectedDocumentType === docType && styles.selectedOptionName\n ]}>\n {displayName}\n </Text>\n </View>\n {selectedDocumentType === docType && (\n <View style={[\n styles.checkmark,\n { backgroundColor: component.ui.themeColor as string || '#2DBD60' }\n ]}>\n <Text style={styles.checkmarkText}>✓</Text>\n </View>\n )}\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n </>\n );\n };\n\n const renderRegionSelection = () => {\n return (\n <>\n <ScrollView style={styles.listContainer} showsVerticalScrollIndicator={false}>\n {availableRegions.map((regionObj, index: number) => {\n return (\n <TouchableOpacity\n key={index}\n style={[\n styles.option,\n selectedRegion === regionObj.value && styles.selectedOption\n ]}\n onPress={() => handleRegionSelect(regionObj.value)}\n >\n <View style={styles.optionContent}>\n <Text style={[\n styles.optionName,\n selectedRegion === regionObj.value && styles.selectedOptionName\n ]}>\n {regionObj.label}\n </Text>\n {regionObj.value !== regionObj.label && (\n <Text style={styles.optionCode}>{regionObj.value}</Text>\n )}\n </View>\n {selectedRegion === regionObj.value && (\n <View style={[\n styles.checkmark,\n { backgroundColor: component.ui.themeColor as string || '#2DBD60' }\n ]}>\n <Text style={styles.checkmarkText}>✓</Text>\n </View>\n )}\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n </>\n );\n };\n\n const getStepTitle = (): string => {\n switch (currentStep) {\n case 'country':\n return getLocalizedText(component.labels as LocalizedText);\n case 'documentType':\n return state.currentLanguage === \"en\" ? \"Select Document Type\" : \"Sélectionnez le type de document\";\n case 'region':\n return state.currentLanguage === \"en\" ? \"Select Province/State\" : \"Sélectionnez la province/l'état\";\n default:\n return '';\n }\n };\n\n const getStepDescription = (): string => {\n switch (currentStep) {\n case 'country':\n return getLocalizedText(component.instructions as LocalizedText);\n case 'documentType':\n return state.currentLanguage === \"en\"\n ? \"Choose the type of document you want to use\"\n : \"Choisissez le type de document que vous souhaitez utiliser\";\n case 'region':\n return state.currentLanguage === \"en\"\n ? \"Select the issuing province or territory\"\n : \"Sélectionnez la province ou le territoire de délivrance\";\n default:\n return '';\n }\n };\n\n const getProgressStep = (): number => {\n if (currentStep === 'country') return 1;\n if (currentStep === 'documentType') return 2;\n return 3;\n };\n\n const getTotalSteps = (): number => {\n return needsRegion ? 3 : 2;\n };\n\n const canGoNext = (): boolean => {\n if (currentStep === 'country') return selectedCountryCode !== null;\n if (currentStep === 'documentType') return selectedDocumentType !== null;\n if (currentStep === 'region') return selectedRegion !== null;\n return false;\n };\n\n return (\n <View style={styles.root}>\n <View style={styles.container}>\n <View style={styles.progressContainer}>\n <Text style={styles.progressText}>\n {state.currentLanguage === \"en\"\n ? `Step ${getProgressStep()} of ${getTotalSteps()}`\n : `Étape ${getProgressStep()} sur ${getTotalSteps()}`}\n </Text>\n </View>\n\n <Text style={styles.title}>{getStepTitle()}</Text>\n <Text style={styles.description}>{getStepDescription()}</Text>\n\n {currentStep === 'country' && renderCountrySelection()}\n {currentStep === 'documentType' && renderDocumentTypeSelection()}\n {currentStep === 'region' && renderRegionSelection()}\n\n <View style={styles.buttonContainer}>\n <Button\n title={state.currentLanguage === \"en\" ? \"Back\" : \"Retour\"}\n onPress={handleBack}\n variant={currentStep === 'country' ? \"secondary\" : \"outline\"}\n size=\"large\"\n style={{ flex: 1, marginRight: 8 }}\n />\n <Button\n title={state.currentLanguage === \"en\" ? \"Next\" : \"Suivant\"}\n onPress={handleNext}\n variant=\"primary\"\n size=\"large\"\n style={{ flex: 1 }}\n disabled={!canGoNext()}\n />\n </View>\n\n {error && (\n <Text style={styles.errorText}>{error}</Text>\n )}\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n root: { flex: 1, maxWidth: 760, width: '100%' },\n container: { backgroundColor: 'white', margin: 10, borderRadius: 10, paddingVertical: 16, paddingHorizontal: 16, shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.35, shadowRadius: 4.84, elevation: 10 },\n progressContainer: { marginBottom: 16, alignItems: 'center' },\n progressText: { fontSize: 14, color: '#666', fontWeight: '500' },\n title: { fontSize: 24, fontWeight: 'bold', color: '#333', marginBottom: 8, textAlign: 'center' },\n description: { fontSize: 16, color: '#666', textAlign: 'center', marginBottom: 24, lineHeight: 22 },\n searchBar: { height: 52, backgroundColor: '#F1F5F9', borderRadius: 12, paddingHorizontal: 16, fontSize: 16, color: '#1E293B', marginBottom: 16, borderWidth: 1, borderColor: '#CBD5E1', fontWeight: '500' },\n listContainer: { maxHeight: 360, marginBottom: 24 },\n option: { flexDirection: 'row', alignItems: 'center', padding: 16, backgroundColor: '#F8F9FA', borderRadius: 12, marginBottom: 12, borderWidth: 2, borderColor: '#E9ECEF', minHeight: 64 },\n selectedOption: { borderColor: '#2DBD60', backgroundColor: '#F0F9F0' },\n flag: { fontSize: 32, marginRight: 16 },\n optionContent: { flex: 1 },\n optionName: { fontSize: 18, fontWeight: '600', color: '#333' },\n selectedOptionName: { color: '#2DBD60' },\n optionCode: { fontSize: 14, color: '#666', marginTop: 4, fontWeight: '500' },\n checkmark: { width: 24, height: 24, borderRadius: 12, justifyContent: 'center', alignItems: 'center' },\n checkmarkText: { color: 'white', fontSize: 16, fontWeight: 'bold' },\n infoBox: { backgroundColor: '#F9FAFB', padding: 12, borderRadius: 12, marginBottom: 16 },\n infoText: { fontSize: 14, color: '#666', lineHeight: 20 },\n buttonContainer: { flexDirection: 'row', marginTop: 24, gap: 12 },\n errorText: { color: '#dc2626', fontSize: 14, marginTop: 8, textAlign: 'center' },\n emptyText: { textAlign: 'center', color: '#64748B', fontSize: 16, marginTop: 24, fontWeight: '500' }\n});"]}
|
|
1
|
+
{"version":3,"file":"CountrySelectionTemplate.js","sourceRoot":"","sources":["../../../../src/components/KYCElements/CountrySelectionTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC,CAAC,uBAAuB;AAmBvE,MAAM,mBAAmB,GAA2B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACjQ,MAAM,UAAU,GAA2B,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,qBAAqB,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Opacity, StyleSheet, ScrollView, TextInput } from 'react-native';\nimport { TemplateComponent, CountrySelectionConfig, LocalizedText, Country, IDCardConfig } from '../../types/KYC.types';\nimport { countryMapping } from '../../config/region_mapping';\nimport { useTemplateKYCFlowContext } from '../../hooks/useTemplateKYCFlow';\nimport { Button } from '../ui/Button';\nimport { countryData } from '../../config/countriesData';\nimport REGION_MAPPING from '../../config/region_mapping.json';\nimport { sdkLogger } from '../../utils/logger'; // 🚨 IMPORT SDK LOGGER\n\ninterface CountrySelectionTemplateProps {\n component: TemplateComponent;\n value?: any;\n onValueChange: (value: Country & { documentType?: string; region?: string }) => void;\n error?: string;\n language?: string;\n}\n\ntype SelectionStep = 'country' | 'documentType' | 'region';\n\ntype ExtendedIDCardConfig = IDCardConfig & {\n selectedCountries?: string[];\n documentTypesByCountry?: Record<string, string[]>;\n regionsByCountry?: Record<string, Record<string, string[]>>;\n instructionsByDocumentType?: Record<string, LocalizedText>;\n};\n\nconst ISO_TO_COUNTRY_NAME: Record<string, string> = { 'KE': 'Kenya', 'CM': 'Cameroon', 'NG': 'Nigeria', 'CA': 'Canada', 'FR': 'France', 'GH': 'Ghana', 'ZA': 'South Africa', 'GB': 'Britain', 'CI': 'Ivory Coast', 'SN': 'Senegal', 'TG': 'Togo', 'ML': 'Mali' };\nconst jsonDocMap: Record<string, string> = { 'nationalId': 'identity_card', 'national_id': 'identity_card', 'passport': 'passport', 'driversLicense': 'drivers_licence', 'drivers_licence': 'drivers_licence', 'residencePermit': 'permanent_residence', 'healthInsuranceCard': 'health_insurance_card' };\nconst SUB_REGION_CODES: Record<string, string> = { \"Alberta\": \"AB\", \"British Columbia\": \"BC\", \"Manitoba\": \"MB\", \"New Brunswick\": \"NB\", \"Newfoundland and Labrador\": \"NL\", \"Northwest Territories\": \"NT\", \"Nova Scotia\": \"NS\", \"Nunavut\": \"NU\", \"Ontario\": \"ON\", \"Prince Edward Island\": \"PE\", \"Quebec\": \"QC\", \"Saskatchewan\": \"SK\", \"Yukon\": \"YT\" };\n\nexport const CountrySelectionTemplate: React.FC<CountrySelectionTemplateProps> = ({ component, value, onValueChange, error, language = 'en', }) => {\n const config = component.config as CountrySelectionConfig;\n const { actions, state } = useTemplateKYCFlowContext();\n\n // 🚨 LOG: Track when the user reaches this step\n useEffect(() => {\n if (state.session?.session_id) {\n sdkLogger.info(\"User started country and document selection step\");\n }\n }, [state.session?.session_id]);\n\n const idCardComponent = useMemo(() => { return state.template.components.find(c => c.type === 'id_card'); }, [state.template.components]);\n const idCardConfig = useMemo(() => { return idCardComponent?.config as ExtendedIDCardConfig | undefined; }, [idCardComponent]);\n \n const [currentStep, setCurrentStep] = useState<SelectionStep>(() => {\n if (value?.code && value?.documentType) {\n if (value.region) return 'region';\n return 'documentType';\n }\n return 'country';\n });\n \n const [selectedCountryCode, setSelectedCountryCode] = useState<string | null>(value?.code || null);\n const [selectedDocumentType, setSelectedDocumentType] = useState<string | null>(value?.documentType || null);\n const [selectedRegion, setSelectedRegion] = useState<string | null>(value?.region || null);\n const [searchQuery, setSearchQuery] = useState('');\n\n useEffect(() => {\n if (value?.code && value?.documentType) {\n setSelectedCountryCode(value.code);\n setSelectedDocumentType(value.documentType);\n setSelectedRegion(value.region || null);\n if (value.region) {\n setCurrentStep('region');\n } else {\n let regionsCheck = idCardConfig?.regionsByCountry?.[value.code]?.[value.documentType] || [];\n if (regionsCheck.length === 0) {\n const rawCountryName = ISO_TO_COUNTRY_NAME[value.code] || value.code;\n const searchDocType = jsonDocMap[value.documentType] || value.documentType;\n const baseMapping = (REGION_MAPPING as any).regionMapping || REGION_MAPPING;\n let countryMapping = baseMapping[rawCountryName];\n if (!countryMapping) {\n const foundKey = Object.keys(baseMapping).find(k => k.toLowerCase() === rawCountryName.toLowerCase());\n if (foundKey) countryMapping = baseMapping[foundKey];\n }\n if (countryMapping && countryMapping[searchDocType]) {\n regionsCheck = Object.keys(countryMapping[searchDocType]).filter(k => k !== 'root');\n }\n }\n if (Array.isArray(regionsCheck) && regionsCheck.length > 0) {\n setCurrentStep('region');\n } else {\n setCurrentStep('documentType');\n }\n }\n } else {\n setSelectedCountryCode(null);\n setSelectedDocumentType(null);\n setSelectedRegion(null);\n setCurrentStep('country');\n }\n }, [value?.code, value?.documentType, value?.region, idCardConfig]);\n\n useEffect(() => {\n if (error) { actions.updateComponentData(component.id, value); }\n }, []);\n\n const availableCountries = useMemo(() => {\n const explicitlyAllowed = idCardConfig?.selectedCountries || config.allowed_countries || [];\n const configuredCodes = new Set(explicitlyAllowed);\n return Array.from(configuredCodes)\n .filter((code: string) => countryData[code])\n .map((code: string) => ({ code, ...countryData[code] }))\n .sort((a: Country, b: Country) => a.name.localeCompare(b.name));\n }, [idCardConfig?.selectedCountries, config.allowed_countries]);\n\n const filteredCountries = useMemo(() => {\n if (!searchQuery.trim()) return availableCountries;\n const cleanQuery = searchQuery.toLowerCase().trim();\n return availableCountries.filter(country =>\n country.name.toLowerCase().includes(cleanQuery) || country.name_en.toLowerCase().includes(cleanQuery) || country.code.toLowerCase().includes(cleanQuery)\n );\n }, [searchQuery, availableCountries]);\n\n const availableDocumentTypes = useMemo(() => {\n if (!selectedCountryCode) return [];\n if (idCardConfig?.documentTypesByCountry?.[selectedCountryCode]) {\n return idCardConfig.documentTypesByCountry[selectedCountryCode];\n }\n const rawCountryName = ISO_TO_COUNTRY_NAME[selectedCountryCode] || selectedCountryCode;\n const baseMapping = (REGION_MAPPING as any).regionMapping || REGION_MAPPING;\n let countryMapping = baseMapping[rawCountryName];\n if (!countryMapping) {\n const foundKey = Object.keys(baseMapping).find(k => k.toLowerCase() === rawCountryName.toLowerCase());\n if (foundKey) countryMapping = baseMapping[foundKey];\n }\n if (countryMapping) {\n const inverseDocMap: Record<string, string> = { 'identity_card': 'nationalId', 'passport': 'passport', 'drivers_licence': 'driversLicense', 'permanent_residence': 'residencePermit', 'health_insurance_card': 'healthInsuranceCard' };\n return Object.keys(countryMapping).map(key => inverseDocMap[key] || key);\n }\n return ['nationalId', 'passport', 'driversLicense'];\n }, [selectedCountryCode, idCardConfig?.documentTypesByCountry]);\n\n const availableRegions = useMemo(() => {\n if (!selectedCountryCode || !selectedDocumentType) return [];\n let rawRegions: string[] = [];\n if (idCardConfig?.regionsByCountry?.[selectedCountryCode]?.[selectedDocumentType]) {\n rawRegions = idCardConfig.regionsByCountry[selectedCountryCode][selectedDocumentType];\n }\n if (rawRegions.length === 0) {\n const rawCountryName = ISO_TO_COUNTRY_NAME[selectedCountryCode] || selectedCountryCode;\n const searchDocType = jsonDocMap[selectedDocumentType] || selectedDocumentType;\n const baseMapping = (REGION_MAPPING as any).regionMapping || REGION_MAPPING;\n let countryMapping = baseMapping[rawCountryName];\n if (!countryMapping) {\n const foundKey = Object.keys(baseMapping).find(k => k.toLowerCase() === rawCountryName.toLowerCase());\n if (foundKey) countryMapping = baseMapping[foundKey];\n }\n if (countryMapping && countryMapping[searchDocType]) {\n rawRegions = Object.keys(countryMapping[searchDocType]).filter(k => k !== 'root');\n }\n }\n if (!Array.isArray(rawRegions)) return [];\n return rawRegions.sort((a, b) => a.localeCompare(b)).map(region => ({ label: region, value: SUB_REGION_CODES[region] || region }));\n }, [selectedCountryCode, selectedDocumentType, idCardConfig?.regionsByCountry]);\n\n const needsRegion = useMemo(() => { return availableRegions.length > 0; }, [availableRegions]);\n const getLocalizedText = (text: LocalizedText): string => { return text[state.currentLanguage] || text.en || ''; };\n\n const handleCountrySelect = (countryCode: string) => { setSelectedCountryCode(countryCode); setSelectedDocumentType(null); setSelectedRegion(null); };\n const handleDocumentTypeSelect = (docType: string) => { setSelectedDocumentType(docType); setSelectedRegion(null); };\n const handleRegionSelect = (regionValue: string) => { setSelectedRegion(regionValue); };\n\n const finalizeSelection = (countryCode: string, docType: string, region: string | null) => {\n const country = countryData[countryCode];\n if (!country) return;\n \n // 🚨 LOG: Final payload successfully selected\n sdkLogger.info(\"User finalized document configuration\", {\n countryCode,\n documentType: docType,\n region: region || 'none'\n });\n\n const mapping = countryMapping[countryCode as keyof typeof countryMapping];\n const countryObj: Country & { documentType?: string; region?: string } = {\n code: countryCode, ...country, regionMapping: mapping, documentType: docType, region: region || undefined,\n };\n onValueChange(countryObj);\n setTimeout(() => { actions.nextComponent(countryObj); }, 100);\n };\n\n const handleBack = () => {\n sdkLogger.info(\"User navigated back in document selection\", { fromStep: currentStep }); // 🚨 LOG\n\n if (currentStep === 'region') {\n setCurrentStep('documentType'); setSelectedRegion(null);\n } else if (currentStep === 'documentType') {\n setCurrentStep('country'); setSelectedDocumentType(null); setSelectedRegion(null); setSearchQuery('');\n } else if (currentStep === 'country') {\n actions.previousComponent();\n }\n };\n\n const handleNext = () => {\n if (currentStep === 'country' && selectedCountryCode) {\n setCurrentStep('documentType');\n } else if (currentStep === 'documentType' && selectedDocumentType) {\n if (needsRegion) { setCurrentStep('region'); } else {\n if (selectedCountryCode) { finalizeSelection(selectedCountryCode, selectedDocumentType, null); }\n }\n } else if (currentStep === 'region' && selectedRegion) {\n if (selectedCountryCode && selectedDocumentType) { finalizeSelection(selectedCountryCode, selectedDocumentType, selectedRegion); }\n }\n };\n\n const renderCountrySelection = () => {\n return (\n <>\n <TextInput style={styles.searchBar} placeholder={state.currentLanguage === \"en\" ? \"🔍 Search country...\" : \"🔍 Rechercher un pays...\"} placeholderTextColor=\"#94A3B8\" value={searchQuery} onChangeText={setSearchQuery} autoCorrect={false} />\n <ScrollView style={styles.listContainer} showsVerticalScrollIndicator={false}>\n {filteredCountries.map((country: Country & { code?: string }) => (\n <TouchableOpacity key={country.code} style={[styles.option, selectedCountryCode === country.code && styles.selectedOption]} onPress={() => handleCountrySelect(country.code!)}>\n <Text style={styles.flag}>{country.flag}</Text>\n <View style={styles.optionContent}>\n <Text style={[styles.optionName, selectedCountryCode === country.code && styles.selectedOptionName]}>{state.currentLanguage === \"en\" ? country.name_en : country.name}</Text>\n <Text style={styles.optionCode}>{country.code}</Text>\n </View>\n {selectedCountryCode === country.code && (\n <View style={[styles.checkmark, { backgroundColor: component.ui.themeColor as string || '#2DBD60' }]}><Text style={styles.checkmarkText}>✓</Text></View>\n )}\n </TouchableOpacity>\n ))}\n {filteredCountries.length === 0 && (\n <Text style={styles.emptyText}>{state.currentLanguage === \"en\" ? \"No matching countries found.\" : \"Aucun pays trouvé.\"}</Text>\n )}\n </ScrollView>\n </>\n );\n };\n\n const renderDocumentTypeSelection = () => {\n const instructions = selectedDocumentType && idCardConfig?.instructionsByDocumentType?.[selectedDocumentType] ? getLocalizedText(idCardConfig.instructionsByDocumentType[selectedDocumentType]) : null;\n const documentTypeLabels: Record<string, { en: string; fr: string; icon?: string }> = {\n 'nationalId': { en: 'National ID', fr: 'Carte nationale d\\'identité', icon: '🏛️' },\n 'passport': { en: 'Passport', fr: 'Passeport', icon: '📘' },\n 'driversLicense': { en: 'Driver\\'s License', fr: 'Permis de conduire', icon: '🚗' },\n 'residencePermit': { en: 'Residence Permit', fr: 'Permis de séjour', icon: '🏠' },\n 'healthInsuranceCard': { en: 'Health Insurance Card', fr: 'Carte d\\'assurance maladie', icon: '🗳️' },\n };\n return (\n <>\n {instructions && (<View style={styles.infoBox}><Text style={styles.infoText}>{instructions}</Text></View>)}\n <ScrollView style={styles.listContainer} showsVerticalScrollIndicator={false}>\n {availableDocumentTypes.map((docType: string) => {\n const label = documentTypeLabels[docType];\n const displayName = label ? (state.currentLanguage === \"en\" ? label.en : label.fr) : docType;\n const icon = label?.icon || '📄';\n return (\n <TouchableOpacity key={docType} style={[styles.option, selectedDocumentType === docType && styles.selectedOption]} onPress={() => handleDocumentTypeSelect(docType)}>\n <Text style={styles.flag}>{icon}</Text>\n <View style={styles.optionContent}>\n <Text style={[styles.optionName, selectedDocumentType === docType && styles.selectedOptionName]}>{displayName}</Text>\n </View>\n {selectedDocumentType === docType && (\n <View style={[styles.checkmark, { backgroundColor: component.ui.themeColor as string || '#2DBD60' }]}><Text style={styles.checkmarkText}>✓</Text></View>\n )}\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n </>\n );\n };\n\n const renderRegionSelection = () => {\n return (\n <>\n <ScrollView style={styles.listContainer} showsVerticalScrollIndicator={false}>\n {availableRegions.map((regionObj, index: number) => {\n return (\n <TouchableOpacity key={index} style={[styles.option, selectedRegion === regionObj.value && styles.selectedOption]} onPress={() => handleRegionSelect(regionObj.value)}>\n <View style={styles.optionContent}>\n <Text style={[styles.optionName, selectedRegion === regionObj.value && styles.selectedOptionName]}>{regionObj.label}</Text>\n {regionObj.value !== regionObj.label && (<Text style={styles.optionCode}>{regionObj.value}</Text>)}\n </View>\n {selectedRegion === regionObj.value && (\n <View style={[styles.checkmark, { backgroundColor: component.ui.themeColor as string || '#2DBD60' }]}><Text style={styles.checkmarkText}>✓</Text></View>\n )}\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n </>\n );\n };\n\n const getStepTitle = (): string => {\n switch (currentStep) {\n case 'country': return getLocalizedText(component.labels as LocalizedText);\n case 'documentType': return state.currentLanguage === \"en\" ? \"Select Document Type\" : \"Sélectionnez le type de document\";\n case 'region': return state.currentLanguage === \"en\" ? \"Select Province/State\" : \"Sélectionnez la province/l'état\";\n default: return '';\n }\n };\n\n const getStepDescription = (): string => {\n switch (currentStep) {\n case 'country': return getLocalizedText(component.instructions as LocalizedText);\n case 'documentType': return state.currentLanguage === \"en\" ? \"Choose the type of document you want to use\" : \"Choisissez le type de document que vous souhaitez utiliser\";\n case 'region': return state.currentLanguage === \"en\" ? \"Select the issuing province or territory\" : \"Sélectionnez la province ou le territoire de délivrance\";\n default: return '';\n }\n };\n\n const getProgressStep = (): number => {\n if (currentStep === 'country') return 1;\n if (currentStep === 'documentType') return 2;\n return 3;\n };\n\n const getTotalSteps = (): number => { return needsRegion ? 3 : 2; };\n\n const canGoNext = (): boolean => {\n if (currentStep === 'country') return selectedCountryCode !== null;\n if (currentStep === 'documentType') return selectedDocumentType !== null;\n if (currentStep === 'region') return selectedRegion !== null;\n return false;\n };\n\n return (\n <View style={styles.root}>\n <View style={styles.container}>\n <View style={styles.progressContainer}>\n <Text style={styles.progressText}>{state.currentLanguage === \"en\" ? `Step ${getProgressStep()} of ${getTotalSteps()}` : `Étape ${getProgressStep()} sur ${getTotalSteps()}`}</Text>\n </View>\n <Text style={styles.title}>{getStepTitle()}</Text>\n <Text style={styles.description}>{getStepDescription()}</Text>\n {currentStep === 'country' && renderCountrySelection()}\n {currentStep === 'documentType' && renderDocumentTypeSelection()}\n {currentStep === 'region' && renderRegionSelection()}\n <View style={styles.buttonContainer}>\n <Button title={state.currentLanguage === \"en\" ? \"Back\" : \"Retour\"} onPress={handleBack} variant={currentStep === 'country' ? \"secondary\" : \"outline\"} size=\"large\" style={{ flex: 1, marginRight: 8 }} />\n <Button title={state.currentLanguage === \"en\" ? \"Next\" : \"Suivant\"} onPress={handleNext} variant=\"primary\" size=\"large\" style={{ flex: 1 }} disabled={!canGoNext()} />\n </View>\n {error && (<Text style={styles.errorText}>{error}</Text>)}\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n root: { flex: 1, maxWidth: 760, width: '100%' },\n container: { backgroundColor: 'white', margin: 10, borderRadius: 10, paddingVertical: 16, paddingHorizontal: 16, shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.35, shadowRadius: 4.84, elevation: 10 },\n progressContainer: { marginBottom: 16, alignItems: 'center' },\n progressText: { fontSize: 14, color: '#666', fontWeight: '500' },\n title: { fontSize: 24, fontWeight: 'bold', color: '#333', marginBottom: 8, textAlign: 'center' },\n description: { fontSize: 16, color: '#666', textAlign: 'center', marginBottom: 24, lineHeight: 22 },\n searchBar: { height: 52, backgroundColor: '#F1F5F9', borderRadius: 12, paddingHorizontal: 16, fontSize: 16, color: '#1E293B', marginBottom: 16, borderWidth: 1, borderColor: '#CBD5E1', fontWeight: '500' },\n listContainer: { maxHeight: 360, marginBottom: 24 },\n option: { flexDirection: 'row', alignItems: 'center', padding: 16, backgroundColor: '#F8F9FA', borderRadius: 12, marginBottom: 12, borderWidth: 2, borderColor: '#E9ECEF', minHeight: 64 },\n selectedOption: { borderColor: '#2DBD60', backgroundColor: '#F0F9F0' },\n flag: { fontSize: 32, marginRight: 16 },\n optionContent: { flex: 1 },\n optionName: { fontSize: 18, fontWeight: '600', color: '#333' },\n selectedOptionName: { color: '#2DBD60' },\n optionCode: { fontSize: 14, color: '#666', marginTop: 4, fontWeight: '500' },\n checkmark: { width: 24, height: 24, borderRadius: 12, justifyContent: 'center', alignItems: 'center' },\n checkmarkText: { color: 'white', fontSize: 16, fontWeight: 'bold' },\n infoBox: { backgroundColor: '#F9FAFB', padding: 12, borderRadius: 12, marginBottom: 16 },\n infoText: { fontSize: 14, color: '#666', lineHeight: 20 },\n buttonContainer: { flexDirection: 'row', marginTop: 24, gap: 12 },\n errorText: { color: '#dc2626', fontSize: 14, marginTop: 8, textAlign: 'center' },\n emptyText: { textAlign: 'center', color: '#64748B', fontSize: 16, marginTop: 24, fontWeight: '500' }\n});"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTypeSelection.d.ts","sourceRoot":"","sources":["../../../../src/components/KYCElements/DocumentTypeSelection.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DocumentTypeSelection.d.ts","sourceRoot":"","sources":["../../../../src/components/KYCElements/DocumentTypeSelection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAoB,MAAM,uBAAuB,CAAC;AAIrE,UAAU,0BAA0B;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA2DtE,CAAC"}
|
|
@@ -1,42 +1,33 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';
|
|
3
|
+
import { sdkLogger } from '../../utils/logger'; // 🚨 IMPORT SDK LOGGER
|
|
4
|
+
import { useTemplateKYCFlowContext } from '../../hooks/useTemplateKYCFlow'; // 🚨 IMPORT CONTEXT
|
|
3
5
|
const defaultDocumentTypes = [
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: 'Document de voyage officiel'
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
value: 'id_card',
|
|
12
|
-
label: 'Carte d\'identité',
|
|
13
|
-
icon: '🆔',
|
|
14
|
-
description: 'Carte d\'identité nationale'
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
value: 'drivers_license',
|
|
18
|
-
label: 'Permis de conduire',
|
|
19
|
-
icon: '🚗',
|
|
20
|
-
description: 'Permis de conduire valide'
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
value: 'other',
|
|
24
|
-
label: 'Autre document',
|
|
25
|
-
icon: '📄',
|
|
26
|
-
description: 'Autre document d\'identité officiel'
|
|
27
|
-
},
|
|
6
|
+
{ value: 'passport', label: 'Passeport', icon: '📘', description: 'Document de voyage officiel' },
|
|
7
|
+
{ value: 'id_card', label: 'Carte d\'identité', icon: '🆔', description: 'Carte d\'identité nationale' },
|
|
8
|
+
{ value: 'drivers_license', label: 'Permis de conduire', icon: '🚗', description: 'Permis de conduire valide' },
|
|
9
|
+
{ value: 'other', label: 'Autre document', icon: '📄', description: 'Autre document d\'identité officiel' },
|
|
28
10
|
];
|
|
29
11
|
export const DocumentTypeSelection = ({ element, value, onValueChange, error, }) => {
|
|
30
12
|
const documentTypes = element.options || defaultDocumentTypes;
|
|
13
|
+
const { state } = useTemplateKYCFlowContext();
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (state.session?.session_id) {
|
|
16
|
+
sdkLogger.info("User started standalone document type selection step");
|
|
17
|
+
}
|
|
18
|
+
}, [state.session?.session_id]);
|
|
31
19
|
return (<View style={styles.container}>
|
|
32
20
|
<Text style={styles.title}>{element.title}</Text>
|
|
33
21
|
<Text style={styles.description}>{element.description}</Text>
|
|
34
|
-
|
|
22
|
+
|
|
35
23
|
<ScrollView style={styles.optionsContainer} showsVerticalScrollIndicator={false}>
|
|
36
24
|
{documentTypes.map((docType) => (<TouchableOpacity key={docType.value} style={[
|
|
37
25
|
styles.option,
|
|
38
26
|
value === docType.value && styles.selectedOption
|
|
39
|
-
]} onPress={() =>
|
|
27
|
+
]} onPress={() => {
|
|
28
|
+
sdkLogger.info("User selected document type", { documentType: docType.value }); // 🚨 LOG
|
|
29
|
+
onValueChange(docType.value);
|
|
30
|
+
}}>
|
|
40
31
|
<Text style={styles.optionIcon}>{docType.icon}</Text>
|
|
41
32
|
<View style={styles.optionContent}>
|
|
42
33
|
<Text style={[
|
|
@@ -57,87 +48,19 @@ export const DocumentTypeSelection = ({ element, value, onValueChange, error, })
|
|
|
57
48
|
</View>);
|
|
58
49
|
};
|
|
59
50
|
const styles = StyleSheet.create({
|
|
60
|
-
container: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
textAlign: 'center',
|
|
75
|
-
marginBottom: 24,
|
|
76
|
-
lineHeight: 22,
|
|
77
|
-
},
|
|
78
|
-
optionsContainer: {
|
|
79
|
-
flex: 1,
|
|
80
|
-
},
|
|
81
|
-
option: {
|
|
82
|
-
flexDirection: 'row',
|
|
83
|
-
alignItems: 'center',
|
|
84
|
-
padding: 16,
|
|
85
|
-
backgroundColor: 'white',
|
|
86
|
-
borderRadius: 12,
|
|
87
|
-
marginBottom: 12,
|
|
88
|
-
borderWidth: 2,
|
|
89
|
-
borderColor: '#e5e5e5',
|
|
90
|
-
shadowColor: '#000',
|
|
91
|
-
shadowOffset: {
|
|
92
|
-
width: 0,
|
|
93
|
-
height: 2,
|
|
94
|
-
},
|
|
95
|
-
shadowOpacity: 0.1,
|
|
96
|
-
shadowRadius: 3.84,
|
|
97
|
-
elevation: 5,
|
|
98
|
-
},
|
|
99
|
-
selectedOption: {
|
|
100
|
-
borderColor: '#4CAF50',
|
|
101
|
-
backgroundColor: '#f0f9f0',
|
|
102
|
-
},
|
|
103
|
-
optionIcon: {
|
|
104
|
-
fontSize: 32,
|
|
105
|
-
marginRight: 16,
|
|
106
|
-
},
|
|
107
|
-
optionContent: {
|
|
108
|
-
flex: 1,
|
|
109
|
-
},
|
|
110
|
-
optionLabel: {
|
|
111
|
-
fontSize: 18,
|
|
112
|
-
fontWeight: '600',
|
|
113
|
-
color: '#333',
|
|
114
|
-
},
|
|
115
|
-
selectedOptionLabel: {
|
|
116
|
-
color: '#4CAF50',
|
|
117
|
-
},
|
|
118
|
-
optionDescription: {
|
|
119
|
-
fontSize: 14,
|
|
120
|
-
color: '#666',
|
|
121
|
-
marginTop: 4,
|
|
122
|
-
},
|
|
123
|
-
checkmark: {
|
|
124
|
-
width: 24,
|
|
125
|
-
height: 24,
|
|
126
|
-
borderRadius: 12,
|
|
127
|
-
backgroundColor: '#4CAF50',
|
|
128
|
-
justifyContent: 'center',
|
|
129
|
-
alignItems: 'center',
|
|
130
|
-
},
|
|
131
|
-
checkmarkText: {
|
|
132
|
-
color: 'white',
|
|
133
|
-
fontSize: 16,
|
|
134
|
-
fontWeight: 'bold',
|
|
135
|
-
},
|
|
136
|
-
errorText: {
|
|
137
|
-
color: '#dc2626',
|
|
138
|
-
fontSize: 14,
|
|
139
|
-
marginTop: 8,
|
|
140
|
-
textAlign: 'center',
|
|
141
|
-
},
|
|
51
|
+
container: { flex: 1, padding: 16, },
|
|
52
|
+
title: { fontSize: 24, fontWeight: 'bold', color: '#333', marginBottom: 8, textAlign: 'center', },
|
|
53
|
+
description: { fontSize: 16, color: '#666', textAlign: 'center', marginBottom: 24, lineHeight: 22, },
|
|
54
|
+
optionsContainer: { flex: 1, },
|
|
55
|
+
option: { flexDirection: 'row', alignItems: 'center', padding: 16, backgroundColor: 'white', borderRadius: 12, marginBottom: 12, borderWidth: 2, borderColor: '#e5e5e5', shadowColor: '#000', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.1, shadowRadius: 3.84, elevation: 5, },
|
|
56
|
+
selectedOption: { borderColor: '#4CAF50', backgroundColor: '#f0f9f0', },
|
|
57
|
+
optionIcon: { fontSize: 32, marginRight: 16, },
|
|
58
|
+
optionContent: { flex: 1, },
|
|
59
|
+
optionLabel: { fontSize: 18, fontWeight: '600', color: '#333', },
|
|
60
|
+
selectedOptionLabel: { color: '#4CAF50', },
|
|
61
|
+
optionDescription: { fontSize: 14, color: '#666', marginTop: 4, },
|
|
62
|
+
checkmark: { width: 24, height: 24, borderRadius: 12, backgroundColor: '#4CAF50', justifyContent: 'center', alignItems: 'center', },
|
|
63
|
+
checkmarkText: { color: 'white', fontSize: 16, fontWeight: 'bold', },
|
|
64
|
+
errorText: { color: '#dc2626', fontSize: 14, marginTop: 8, textAlign: 'center', },
|
|
142
65
|
});
|
|
143
66
|
//# sourceMappingURL=DocumentTypeSelection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTypeSelection.js","sourceRoot":"","sources":["../../../../src/components/KYCElements/DocumentTypeSelection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DocumentTypeSelection.js","sourceRoot":"","sources":["../../../../src/components/KYCElements/DocumentTypeSelection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,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EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,GAAG;IAC7R,cAAc,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,GAAG;IACvE,UAAU,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,GAAG;IAC9C,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG;IAC3B,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG;IAChE,mBAAmB,EAAE,EAAE,KAAK,EAAE,SAAS,GAAG;IAC1C,iBAAiB,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG;IACjE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAAG;IACnI,aAAa,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG;IACpE,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAG;CAClF,CAAC,CAAC","sourcesContent":["import React, { useEffect } from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';\nimport { KYCElement, KYCElementOption } from '../../types/KYC.types';\nimport { sdkLogger } from '../../utils/logger'; // 🚨 IMPORT SDK LOGGER\nimport { useTemplateKYCFlowContext } from '../../hooks/useTemplateKYCFlow'; // 🚨 IMPORT CONTEXT\n\ninterface DocumentTypeSelectionProps {\n element: KYCElement;\n value?: string;\n onValueChange: (value: string) => void;\n error?: string;\n}\n\nconst defaultDocumentTypes: KYCElementOption[] = [\n { value: 'passport', label: 'Passeport', icon: '📘', description: 'Document de voyage officiel' },\n { value: 'id_card', label: 'Carte d\\'identité', icon: '🆔', description: 'Carte d\\'identité nationale' },\n { value: 'drivers_license', label: 'Permis de conduire', icon: '🚗', description: 'Permis de conduire valide' },\n { value: 'other', label: 'Autre document', icon: '📄', description: 'Autre document d\\'identité officiel' },\n];\n\nexport const DocumentTypeSelection: React.FC<DocumentTypeSelectionProps> = ({\n element,\n value,\n onValueChange,\n error,\n}) => {\n const documentTypes = element.options || defaultDocumentTypes;\n const { state } = useTemplateKYCFlowContext();\n\n useEffect(() => {\n if (state.session?.session_id) {\n sdkLogger.info(\"User started standalone document type selection step\");\n }\n }, [state.session?.session_id]);\n\n return (\n <View style={styles.container}>\n <Text style={styles.title}>{element.title}</Text>\n <Text style={styles.description}>{element.description}</Text>\n\n <ScrollView style={styles.optionsContainer} showsVerticalScrollIndicator={false}>\n {documentTypes.map((docType) => (\n <TouchableOpacity\n key={docType.value}\n style={[\n styles.option,\n value === docType.value && styles.selectedOption\n ]}\n onPress={() => {\n sdkLogger.info(\"User selected document type\", { documentType: docType.value }); // 🚨 LOG\n onValueChange(docType.value);\n }}\n >\n <Text style={styles.optionIcon}>{docType.icon}</Text>\n <View style={styles.optionContent}>\n <Text style={[\n styles.optionLabel,\n value === docType.value && styles.selectedOptionLabel\n ]}>\n {docType.label}\n </Text>\n {docType.description && (\n <Text style={styles.optionDescription}>{docType.description}</Text>\n )}\n </View>\n {value === docType.value && (\n <View style={styles.checkmark}>\n <Text style={styles.checkmarkText}>✓</Text>\n </View>\n )}\n </TouchableOpacity>\n ))}\n </ScrollView>\n\n {error && (\n <Text style={styles.errorText}>{error}</Text>\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { flex: 1, padding: 16, },\n title: { fontSize: 24, fontWeight: 'bold', color: '#333', marginBottom: 8, textAlign: 'center', },\n description: { fontSize: 16, color: '#666', textAlign: 'center', marginBottom: 24, lineHeight: 22, },\n optionsContainer: { flex: 1, },\n option: { flexDirection: 'row', alignItems: 'center', padding: 16, backgroundColor: 'white', borderRadius: 12, marginBottom: 12, borderWidth: 2, borderColor: '#e5e5e5', shadowColor: '#000', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.1, shadowRadius: 3.84, elevation: 5, },\n selectedOption: { borderColor: '#4CAF50', backgroundColor: '#f0f9f0', },\n optionIcon: { fontSize: 32, marginRight: 16, },\n optionContent: { flex: 1, },\n optionLabel: { fontSize: 18, fontWeight: '600', color: '#333', },\n selectedOptionLabel: { color: '#4CAF50', },\n optionDescription: { fontSize: 14, color: '#666', marginTop: 4, },\n checkmark: { width: 24, height: 24, borderRadius: 12, backgroundColor: '#4CAF50', justifyContent: 'center', alignItems: 'center', },\n checkmarkText: { color: 'white', fontSize: 16, fontWeight: 'bold', },\n errorText: { color: '#dc2626', fontSize: 14, marginTop: 8, textAlign: 'center', },\n});"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDCardCapture.d.ts","sourceRoot":"","sources":["../../../../src/components/KYCElements/IDCardCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,EAAE,iBAAiB,EAAoI,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"IDCardCapture.d.ts","sourceRoot":"","sources":["../../../../src/components/KYCElements/IDCardCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,EAAE,iBAAiB,EAAoI,MAAM,uBAAuB,CAAC;AAwB5L,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,kBAAkB;IAC1B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACvC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAkCD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAw8BtD,CAAC"}
|