assentify-sdk-react-native 1.0.0-Beta.20 → 1.0.0-Beta.22
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/README.md +7 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +8 -5
- package/android/src/main/java/com/assentifysdk/FlowActivity.kt +5 -5
- package/assentify-sdk.podspec +1 -1
- package/ios/NativeAssentifySdk.mm +2 -1
- package/ios/NativeAssentifySdk.swift +9 -6
- package/lib/commonjs/AssentifyWrapper.js +4 -4
- package/lib/commonjs/AssentifyWrapper.js.map +1 -1
- package/lib/commonjs/Language.js +5 -1
- package/lib/commonjs/Language.js.map +1 -1
- package/lib/module/AssentifyWrapper.js +4 -4
- package/lib/module/AssentifyWrapper.js.map +1 -1
- package/lib/module/Language.js +4 -0
- package/lib/module/Language.js.map +1 -1
- package/lib/typescript/example/src/Home.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +2 -2
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Language.d.ts +6 -0
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +2 -2
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/Language.d.ts +6 -0
- package/lib/typescript/lib/module/index.d.ts +2 -2
- package/lib/typescript/src/AssentifyWrapper.d.ts +3 -2
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/src/Language.d.ts +5 -0
- package/lib/typescript/src/Language.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/AssentifyWrapper.ts +7 -4
- package/src/Language.ts +7 -0
package/README.md
CHANGED
|
@@ -93,6 +93,13 @@ yarn add assentify-sdk-react-native
|
|
|
93
93
|
|
|
94
94
|
## Versions
|
|
95
95
|
|
|
96
|
+
***1.0.0-Beta.22***
|
|
97
|
+
1. *Added full RTL (Right-to-Left) and LTR (Left-to-Right) , Arabic and English layout support.*
|
|
98
|
+
2. *Enhanced the slider click animation*
|
|
99
|
+
|
|
100
|
+
***1.0.0-Beta.21***
|
|
101
|
+
1. "Assisted Data Entry Step" Improvements
|
|
102
|
+
|
|
96
103
|
***1.0.0-Beta.20***
|
|
97
104
|
1. "Assisted Data Entry Step" Improvements
|
|
98
105
|
|
package/android/build.gradle
CHANGED
|
@@ -101,7 +101,7 @@ dependencies {
|
|
|
101
101
|
compileOnly("com.facebook.react:react-android")
|
|
102
102
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
103
103
|
|
|
104
|
-
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:1.0.0-Beta.
|
|
104
|
+
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:1.0.0-Beta.33'
|
|
105
105
|
|
|
106
106
|
implementation 'com.google.code.gson:gson:2.13.2'
|
|
107
107
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.9.7'
|
|
@@ -77,8 +77,8 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
77
77
|
iOSMinRam:Int = 2,
|
|
78
78
|
minCPUCores:Int = 6,
|
|
79
79
|
manualClickColor: String? = null,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
countDownNumbersColor: String? = null,
|
|
81
|
+
flowUiLanguage: String? = null
|
|
82
82
|
|
|
83
83
|
) {
|
|
84
84
|
try {
|
|
@@ -117,6 +117,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
117
117
|
println("$tag MinCPUCores: $minCPUCores")
|
|
118
118
|
println("$tag ManualClickColor: $manualClickColor")
|
|
119
119
|
println("$tag countDownNumbersColor: $countDownNumbersColor")
|
|
120
|
+
println("$tag flowUiLanguage: $flowUiLanguage")
|
|
120
121
|
println("$tag ==============================================")
|
|
121
122
|
|
|
122
123
|
val typeActive: ActiveLiveType = when (activeLiveType) {
|
|
@@ -140,7 +141,9 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
140
141
|
activeLivenessCheckCount = activeLivenessCheckCount,
|
|
141
142
|
faceLivenessRetryCount = faceLivenessRetryCount ,
|
|
142
143
|
minRam = minRam,
|
|
143
|
-
minCPUCores = minCPUCores
|
|
144
|
+
minCPUCores = minCPUCores,
|
|
145
|
+
flowUiLanguage = flowUiLanguage ?: "en",
|
|
146
|
+
|
|
144
147
|
)
|
|
145
148
|
|
|
146
149
|
val eventResultMap = Arguments.createMap().apply {
|
|
@@ -507,7 +510,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
507
510
|
holdUntilClickColors: Double? = null,
|
|
508
511
|
backgroundType: String? = null,
|
|
509
512
|
clear: Boolean? = null,
|
|
510
|
-
|
|
513
|
+
extractedDataLanguage: String,
|
|
511
514
|
enableNfc: Boolean? = null,
|
|
512
515
|
enableQr: Boolean? = null,
|
|
513
516
|
jsonBlockLoaderCustomProperties: String? = null,
|
|
@@ -539,7 +542,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
539
542
|
)
|
|
540
543
|
intent.putExtra("angleDegreesClickColors", angleDegreesClickColors)
|
|
541
544
|
intent.putExtra("holdUntilClickColors", holdUntilClickColors)
|
|
542
|
-
intent.putExtra("
|
|
545
|
+
intent.putExtra("extractedDataLanguage", extractedDataLanguage)
|
|
543
546
|
intent.putExtra("enableNfc", enableNfc)
|
|
544
547
|
intent.putExtra("enableQr", enableQr)
|
|
545
548
|
intent.putExtra("jsonBlockLoaderCustomProperties", jsonBlockLoaderCustomProperties)
|
|
@@ -27,7 +27,7 @@ class FlowActivity : AppCompatActivity() , FlowCallBack {
|
|
|
27
27
|
private lateinit var reactApplicationContext: ReactApplicationContext
|
|
28
28
|
private lateinit var assentifySdk: AssentifySdk
|
|
29
29
|
|
|
30
|
-
private lateinit var
|
|
30
|
+
private lateinit var extractedDataLanguage: String;
|
|
31
31
|
private var enableNfc: Boolean = false;
|
|
32
32
|
private var enableQr: Boolean = false;
|
|
33
33
|
private var blockLoaderCustomProperties: Map<String, Any> = emptyMap()
|
|
@@ -71,8 +71,8 @@ class FlowActivity : AppCompatActivity() , FlowCallBack {
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
intent.getStringExtra("
|
|
74
|
+
extractedDataLanguage =
|
|
75
|
+
intent.getStringExtra("extractedDataLanguage") ?: extractedDataLanguage
|
|
76
76
|
|
|
77
77
|
enableNfc = intent.getBooleanExtra("enableNfc", false)
|
|
78
78
|
enableQr = intent.getBooleanExtra("enableQr", false)
|
|
@@ -107,7 +107,7 @@ class FlowActivity : AppCompatActivity() , FlowCallBack {
|
|
|
107
107
|
Log.d("FlowActivity", "angleDegreesClickColors: $angleDegreesClickColors")
|
|
108
108
|
Log.d("FlowActivity", "holdUntilClickColors: $holdUntilClickColors")
|
|
109
109
|
|
|
110
|
-
Log.d("FlowActivity", "
|
|
110
|
+
Log.d("FlowActivity", "extractedDataLanguage: $extractedDataLanguage")
|
|
111
111
|
Log.d("FlowActivity", "enableNfc: $enableNfc")
|
|
112
112
|
Log.d("FlowActivity", "enableQr: $enableQr")
|
|
113
113
|
Log.d("FlowActivity", "blockLoaderCustomProperties: $blockLoaderCustomProperties")
|
|
@@ -169,7 +169,7 @@ class FlowActivity : AppCompatActivity() , FlowCallBack {
|
|
|
169
169
|
backgroundType = bType,
|
|
170
170
|
backgroundColor = backgroundColor,
|
|
171
171
|
clickColor = clickColor,
|
|
172
|
-
|
|
172
|
+
extractedDataLanguage = extractedDataLanguage,
|
|
173
173
|
enableNfc = enableNfc,
|
|
174
174
|
enableQr = enableQr,
|
|
175
175
|
blockLoaderCustomProperties = blockLoaderCustomProperties,
|
package/assentify-sdk.podspec
CHANGED
|
@@ -25,6 +25,7 @@ RCT_EXTERN_METHOD(initialize: (NSString *)apiKey
|
|
|
25
25
|
minCPUCores:(nonnull NSNumber * )minCPUCores
|
|
26
26
|
manualClickColor:(NSString * )manualClickColor
|
|
27
27
|
countDownNumbersColor:(NSString * )countDownNumbersColor
|
|
28
|
+
flowUiLanguage:(NSString * )flowUiLanguage
|
|
28
29
|
)
|
|
29
30
|
RCT_EXTERN_METHOD(startScanPassport:
|
|
30
31
|
(NSString *)language
|
|
@@ -69,7 +70,7 @@ RCT_EXTERN_METHOD(startFlow:(NSString *)logoUrl
|
|
|
69
70
|
holdUntilClickColors:(nonnull NSNumber *)holdUntilClickColors
|
|
70
71
|
backgroundType:(NSString *)backgroundType
|
|
71
72
|
clear:(BOOL)clear
|
|
72
|
-
|
|
73
|
+
extractedDataLanguage:(NSString *)extractedDataLanguage
|
|
73
74
|
enableNfc:(BOOL)enableNfc
|
|
74
75
|
enableQr:(BOOL)enableQr
|
|
75
76
|
blockLoaderCustomProperties:(NSString *)blockLoaderCustomProperties
|
|
@@ -48,6 +48,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
48
48
|
minCPUCores:NSNumber,
|
|
49
49
|
manualClickColor:String,
|
|
50
50
|
countDownNumbersColor: String = "#f5a103",
|
|
51
|
+
flowUiLanguage: String = "en",
|
|
51
52
|
) -> Void {
|
|
52
53
|
|
|
53
54
|
if(apiKey.isEmpty || configFileName.isEmpty ){
|
|
@@ -83,6 +84,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
83
84
|
print("\(tag) MinCPUCores: \(minCPUCores)")
|
|
84
85
|
print("\(tag) ManualClickColor: \(manualClickColor)")
|
|
85
86
|
print("\(tag) CountDownNumbersColor: \(countDownNumbersColor)")
|
|
87
|
+
print("\(tag) flowUiLanguage: \(flowUiLanguage)")
|
|
86
88
|
print("\(tag) ==============================================")
|
|
87
89
|
|
|
88
90
|
|
|
@@ -125,7 +127,8 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
125
127
|
activeLivenessCheckCount:activeLivenessCheckCount.intValue,
|
|
126
128
|
faceLivenessRetryCount:faceLivenessRetryCount.intValue,
|
|
127
129
|
minRam:iOSMinRam.intValue,
|
|
128
|
-
minCPUCores:minCPUCores.intValue
|
|
130
|
+
minCPUCores:minCPUCores.intValue,
|
|
131
|
+
flowUiLanguage:flowUiLanguage
|
|
129
132
|
)
|
|
130
133
|
|
|
131
134
|
self.holdHandColor = ENV_CustomColor;
|
|
@@ -657,7 +660,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
657
660
|
holdUntilClickColors: NSNumber,
|
|
658
661
|
backgroundType: String,
|
|
659
662
|
clear: Bool,
|
|
660
|
-
|
|
663
|
+
extractedDataLanguage: String,
|
|
661
664
|
enableNfc: Bool,
|
|
662
665
|
enableQr: Bool,
|
|
663
666
|
blockLoaderCustomProperties: String,
|
|
@@ -682,7 +685,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
682
685
|
holdUntilClickColors: holdUntilClickColors,
|
|
683
686
|
backgroundType: backgroundType,
|
|
684
687
|
clear: clear,
|
|
685
|
-
|
|
688
|
+
extractedDataLanguage: extractedDataLanguage,
|
|
686
689
|
enableNfc: enableNfc,
|
|
687
690
|
enableQr: enableQr,
|
|
688
691
|
blockLoaderCustomProperties: blockLoaderCustomProperties,
|
|
@@ -712,7 +715,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
712
715
|
holdUntilClickColors: NSNumber,
|
|
713
716
|
backgroundType: String,
|
|
714
717
|
clear: Bool,
|
|
715
|
-
|
|
718
|
+
extractedDataLanguage: String,
|
|
716
719
|
enableNfc: Bool,
|
|
717
720
|
enableQr: Bool,
|
|
718
721
|
blockLoaderCustomProperties: String,
|
|
@@ -756,7 +759,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
756
759
|
print("\(tag) clickColors: \(clickColors)")
|
|
757
760
|
print("\(tag) angleDegreesClickColors: \(angleClick)")
|
|
758
761
|
print("\(tag) holdUntilClickColors: \(holdClick)")
|
|
759
|
-
print("\(tag)
|
|
762
|
+
print("\(tag) extractedDataLanguage: \(extractedDataLanguage)")
|
|
760
763
|
print("\(tag) enableNfc: \(enableNfc)")
|
|
761
764
|
print("\(tag) enableQr: \(enableQr)")
|
|
762
765
|
print("\(tag) clear: \(clear)")
|
|
@@ -831,7 +834,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
831
834
|
rangeStart: rangeStart.intValue,
|
|
832
835
|
rangeEnd:rangeEnd.intValue,
|
|
833
836
|
stepperTitle:stepperTitle,
|
|
834
|
-
|
|
837
|
+
extractedDataLanguage: extractedDataLanguage,
|
|
835
838
|
enableNfc: enableNfc,
|
|
836
839
|
enableQr: enableQr,
|
|
837
840
|
showCountDown:showCountDown,
|
|
@@ -19,8 +19,8 @@ const AssentifySdk = _reactNative.NativeModules.NativeAssentifySdk ? _reactNativ
|
|
|
19
19
|
});
|
|
20
20
|
const AssentifyWrapper = {
|
|
21
21
|
/// Initialize
|
|
22
|
-
initialize: function (apiKey, configFileName, processJsonConfigFile, performLivenessFace, ENV_CustomColor, enableDetect, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount, faceLivenessRetryCount, minRam, iOSMinRam, minCPUCores, manualClickColor, countDownNumbersColor) {
|
|
23
|
-
AssentifySdk.initialize(apiKey, configFileName, processJsonConfigFile ?? '', performLivenessFace ?? false, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0, faceLivenessRetryCount ?? 2, minRam ?? 8, iOSMinRam ?? 2, minCPUCores ?? 6, manualClickColor ?? '#f5a103', countDownNumbersColor ?? '#f5a103');
|
|
22
|
+
initialize: function (apiKey, configFileName, processJsonConfigFile, performLivenessFace, ENV_CustomColor, enableDetect, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount, faceLivenessRetryCount, minRam, iOSMinRam, minCPUCores, manualClickColor, countDownNumbersColor, flowUiLanguage) {
|
|
23
|
+
AssentifySdk.initialize(apiKey, configFileName, processJsonConfigFile ?? '', performLivenessFace ?? false, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0, faceLivenessRetryCount ?? 2, minRam ?? 8, iOSMinRam ?? 2, minCPUCores ?? 6, manualClickColor ?? '#f5a103', countDownNumbersColor ?? '#f5a103', flowUiLanguage ?? "en");
|
|
24
24
|
},
|
|
25
25
|
/// Passport
|
|
26
26
|
startScanPassport: function (language, stepID) {
|
|
@@ -47,8 +47,8 @@ const AssentifyWrapper = {
|
|
|
47
47
|
},
|
|
48
48
|
/// Flow
|
|
49
49
|
|
|
50
|
-
startFlow: function (logoUrl, svgBackgroundImageUrl, textColor, secondaryTextColor, backgroundCardColor, accentColor, backgroundColors, clickColors, angleDegreesBackgroundColors, holdUntilBackgroundColors, angleDegreesClickColors, holdUntilClickColors, backgroundType, clear,
|
|
51
|
-
AssentifySdk.startFlow(logoUrl ?? "", svgBackgroundImageUrl ?? "", textColor ?? "", secondaryTextColor ?? "", backgroundCardColor ?? "", accentColor ?? "", backgroundColors ?? [], clickColors ?? [], angleDegreesBackgroundColors ?? 90.0, holdUntilBackgroundColors ?? 0.4, angleDegreesClickColors ?? 90.0, holdUntilClickColors ?? 0.4, backgroundType, clear,
|
|
50
|
+
startFlow: function (logoUrl, svgBackgroundImageUrl, textColor, secondaryTextColor, backgroundCardColor, accentColor, backgroundColors, clickColors, angleDegreesBackgroundColors, holdUntilBackgroundColors, angleDegreesClickColors, holdUntilClickColors, backgroundType, clear, extractedDataLanguage, enableNfc, enableQr, blockLoaderCustomProperties, flowStepperType, rangeStart, rangeEnd, stepperTitle, showCountDown) {
|
|
51
|
+
AssentifySdk.startFlow(logoUrl ?? "", svgBackgroundImageUrl ?? "", textColor ?? "", secondaryTextColor ?? "", backgroundCardColor ?? "", accentColor ?? "", backgroundColors ?? [], clickColors ?? [], angleDegreesBackgroundColors ?? 90.0, holdUntilBackgroundColors ?? 0.4, angleDegreesClickColors ?? 90.0, holdUntilClickColors ?? 0.4, backgroundType, clear, extractedDataLanguage ?? "NON", enableNfc ?? false, enableQr ?? false, JSON.stringify(blockLoaderCustomProperties ?? {}), flowStepperType ?? "Normal", rangeStart ?? 25, rangeEnd ?? 50, stepperTitle ?? "Identification", showCountDown ?? true);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
var _default = exports.default = AssentifyWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","NativeAssentifySdk","NativeModules","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","configFileName","processJsonConfigFile","performLivenessFace","ENV_CustomColor","enableDetect","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","faceLivenessRetryCount","minRam","iOSMinRam","minCPUCores","manualClickColor","countDownNumbersColor","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","templatesByCountryObject","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startScanQr","startScanQrPage","submitData","dataMap","startFlow","logoUrl","svgBackgroundImageUrl","textColor","secondaryTextColor","backgroundCardColor","accentColor","backgroundColors","clickColors","angleDegreesBackgroundColors","holdUntilBackgroundColors","angleDegreesClickColors","holdUntilClickColors","backgroundType","clear","enableNfc","enableQr","blockLoaderCustomProperties","flowStepperType","rangeStart","rangeEnd","stepperTitle","_default","exports"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","NativeAssentifySdk","NativeModules","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","configFileName","processJsonConfigFile","performLivenessFace","ENV_CustomColor","enableDetect","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","faceLivenessRetryCount","minRam","iOSMinRam","minCPUCores","manualClickColor","countDownNumbersColor","flowUiLanguage","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","templatesByCountryObject","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startScanQr","startScanQrPage","submitData","dataMap","startFlow","logoUrl","svgBackgroundImageUrl","textColor","secondaryTextColor","backgroundCardColor","accentColor","backgroundColors","clickColors","angleDegreesBackgroundColors","holdUntilBackgroundColors","angleDegreesClickColors","holdUntilClickColors","backgroundType","clear","extractedDataLanguage","enableNfc","enableQr","blockLoaderCustomProperties","flowStepperType","rangeStart","rangeEnd","stepperTitle","_default","exports"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,MAAMC,aAAa,GACjB,kGAAkG,GAClGC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAM;EAAEC;AAAmB,CAAC,GAAGC,0BAAa;AAE5C,MAAMC,YAAY,GAAGD,0BAAa,CAACD,kBAAkB,GACjDC,0BAAa,CAACD,kBAAkB,GAChC,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACV,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMW,gBAAgB,GAAG;EACxB;EACCC,UAAU,EAAE,SAAAA,CACVC,MAAc,EACdC,cAAsB,EACtBC,qBAA8B,EAC9BC,mBAA6B,EAC7BC,eAAwB,EACxBC,YAAsB,EACtBC,sBAA+B,EAC/BC,0BAAmC,EACnCC,mBAA4B,EAC5BC,kBAA2B,EAC3BC,8BAAuC,EACvCC,6BAAsC,EACtCC,0BAAmC,EACnCC,yBAAkC,EAClCC,cAAuB,EACvBC,wBAAiC,EACjCC,sBAA+B,EAC/BC,MAAe,EACfC,SAAkB,EAClBC,WAAqB,EACrBC,gBAAyB,EACzBC,qBAA8B,EAC9BC,cAAoC,EACpC;IACE5B,YAAY,CAACK,UAAU,CACbC,MAAM,EACNC,cAAc,EACdC,qBAAqB,IAAG,EAAE,EAC1BC,mBAAmB,IAAI,KAAK,EAC5BC,eAAe,IAAI,SAAS,EAC5BC,YAAY,IAAI,IAAI,EACpBC,sBAAsB,IAAG,EAAE,EAC3BC,0BAA0B,IAAG,EAAE,EAC/BC,mBAAmB,IAAG,E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,OAAA,GAEaO,gBAAgB","ignoreList":[]}
|
package/lib/commonjs/Language.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Language = void 0;
|
|
6
|
+
exports.Language = exports.FlowUiLanguage = void 0;
|
|
7
7
|
const Language = exports.Language = {
|
|
8
8
|
English: "en",
|
|
9
9
|
Arabic: "ar",
|
|
@@ -24,4 +24,8 @@ const Language = exports.Language = {
|
|
|
24
24
|
Uyghur: "ug",
|
|
25
25
|
NON: "NON"
|
|
26
26
|
};
|
|
27
|
+
const FlowUiLanguage = exports.FlowUiLanguage = {
|
|
28
|
+
English: "en",
|
|
29
|
+
Arabic: "ar"
|
|
30
|
+
};
|
|
27
31
|
//# sourceMappingURL=Language.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Language","exports","English","Arabic","Azerbaijani","Belarusian","Georgian","Korean","Latvian","Lithuanian","Punjabi","Russian","Sanskrit","Sindhi","Thai","Turkish","Ukrainian","Urdu","Uyghur","NON"],"sourceRoot":"..\\..\\src","sources":["Language.ts"],"mappings":";;;;;;AAAO,MAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACtBE,OAAO,EAAE,IAAI;EACbC,MAAM,EAAE,IAAI;EACZC,WAAW,EAAE,IAAI;EACjBC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE,IAAI;EACfC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,IAAI;EACZC,GAAG,EAAE;AACP,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Language","exports","English","Arabic","Azerbaijani","Belarusian","Georgian","Korean","Latvian","Lithuanian","Punjabi","Russian","Sanskrit","Sindhi","Thai","Turkish","Ukrainian","Urdu","Uyghur","NON","FlowUiLanguage"],"sourceRoot":"..\\..\\src","sources":["Language.ts"],"mappings":";;;;;;AAAO,MAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACtBE,OAAO,EAAE,IAAI;EACbC,MAAM,EAAE,IAAI;EACZC,WAAW,EAAE,IAAI;EACjBC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE,IAAI;EACfC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,IAAI;EACZC,GAAG,EAAE;AACP,CAAC;AAIM,MAAMC,cAAc,GAAAnB,OAAA,CAAAmB,cAAA,GAAG;EAC5BlB,OAAO,EAAE,IAAI;EACbC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -13,8 +13,8 @@ const AssentifySdk = NativeModules.NativeAssentifySdk ? NativeModules.NativeAsse
|
|
|
13
13
|
});
|
|
14
14
|
const AssentifyWrapper = {
|
|
15
15
|
/// Initialize
|
|
16
|
-
initialize: function (apiKey, configFileName, processJsonConfigFile, performLivenessFace, ENV_CustomColor, enableDetect, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount, faceLivenessRetryCount, minRam, iOSMinRam, minCPUCores, manualClickColor, countDownNumbersColor) {
|
|
17
|
-
AssentifySdk.initialize(apiKey, configFileName, processJsonConfigFile ?? '', performLivenessFace ?? false, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0, faceLivenessRetryCount ?? 2, minRam ?? 8, iOSMinRam ?? 2, minCPUCores ?? 6, manualClickColor ?? '#f5a103', countDownNumbersColor ?? '#f5a103');
|
|
16
|
+
initialize: function (apiKey, configFileName, processJsonConfigFile, performLivenessFace, ENV_CustomColor, enableDetect, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount, faceLivenessRetryCount, minRam, iOSMinRam, minCPUCores, manualClickColor, countDownNumbersColor, flowUiLanguage) {
|
|
17
|
+
AssentifySdk.initialize(apiKey, configFileName, processJsonConfigFile ?? '', performLivenessFace ?? false, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0, faceLivenessRetryCount ?? 2, minRam ?? 8, iOSMinRam ?? 2, minCPUCores ?? 6, manualClickColor ?? '#f5a103', countDownNumbersColor ?? '#f5a103', flowUiLanguage ?? "en");
|
|
18
18
|
},
|
|
19
19
|
/// Passport
|
|
20
20
|
startScanPassport: function (language, stepID) {
|
|
@@ -41,8 +41,8 @@ const AssentifyWrapper = {
|
|
|
41
41
|
},
|
|
42
42
|
/// Flow
|
|
43
43
|
|
|
44
|
-
startFlow: function (logoUrl, svgBackgroundImageUrl, textColor, secondaryTextColor, backgroundCardColor, accentColor, backgroundColors, clickColors, angleDegreesBackgroundColors, holdUntilBackgroundColors, angleDegreesClickColors, holdUntilClickColors, backgroundType, clear,
|
|
45
|
-
AssentifySdk.startFlow(logoUrl ?? "", svgBackgroundImageUrl ?? "", textColor ?? "", secondaryTextColor ?? "", backgroundCardColor ?? "", accentColor ?? "", backgroundColors ?? [], clickColors ?? [], angleDegreesBackgroundColors ?? 90.0, holdUntilBackgroundColors ?? 0.4, angleDegreesClickColors ?? 90.0, holdUntilClickColors ?? 0.4, backgroundType, clear,
|
|
44
|
+
startFlow: function (logoUrl, svgBackgroundImageUrl, textColor, secondaryTextColor, backgroundCardColor, accentColor, backgroundColors, clickColors, angleDegreesBackgroundColors, holdUntilBackgroundColors, angleDegreesClickColors, holdUntilClickColors, backgroundType, clear, extractedDataLanguage, enableNfc, enableQr, blockLoaderCustomProperties, flowStepperType, rangeStart, rangeEnd, stepperTitle, showCountDown) {
|
|
45
|
+
AssentifySdk.startFlow(logoUrl ?? "", svgBackgroundImageUrl ?? "", textColor ?? "", secondaryTextColor ?? "", backgroundCardColor ?? "", accentColor ?? "", backgroundColors ?? [], clickColors ?? [], angleDegreesBackgroundColors ?? 90.0, holdUntilBackgroundColors ?? 0.4, angleDegreesClickColors ?? 90.0, holdUntilClickColors ?? 0.4, backgroundType, clear, extractedDataLanguage ?? "NON", enableNfc ?? false, enableQr ?? false, JSON.stringify(blockLoaderCustomProperties ?? {}), flowStepperType ?? "Normal", rangeStart ?? 25, rangeEnd ?? 50, stepperTitle ?? "Identification", showCountDown ?? true);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
export default AssentifyWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","NativeAssentifySdk","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","configFileName","processJsonConfigFile","performLivenessFace","ENV_CustomColor","enableDetect","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","faceLivenessRetryCount","minRam","iOSMinRam","minCPUCores","manualClickColor","countDownNumbersColor","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","templatesByCountryObject","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startScanQr","startScanQrPage","submitData","dataMap","startFlow","logoUrl","svgBackgroundImageUrl","textColor","secondaryTextColor","backgroundCardColor","accentColor","backgroundColors","clickColors","angleDegreesBackgroundColors","holdUntilBackgroundColors","angleDegreesClickColors","holdUntilClickColors","backgroundType","clear","enableNfc","enableQr","blockLoaderCustomProperties","flowStepperType","rangeStart","rangeEnd","stepperTitle"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAwB,cAAc;
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","NativeAssentifySdk","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","configFileName","processJsonConfigFile","performLivenessFace","ENV_CustomColor","enableDetect","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","faceLivenessRetryCount","minRam","iOSMinRam","minCPUCores","manualClickColor","countDownNumbersColor","flowUiLanguage","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","templatesByCountryObject","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startScanQr","startScanQrPage","submitData","dataMap","startFlow","logoUrl","svgBackgroundImageUrl","textColor","secondaryTextColor","backgroundCardColor","accentColor","backgroundColors","clickColors","angleDegreesBackgroundColors","holdUntilBackgroundColors","angleDegreesClickColors","holdUntilClickColors","backgroundType","clear","extractedDataLanguage","enableNfc","enableQr","blockLoaderCustomProperties","flowStepperType","rangeStart","rangeEnd","stepperTitle"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAwB,cAAc;AAOtE,MAAMC,aAAa,GACjB,kGAAkG,GAClGD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAM;EAAEC;AAAmB,CAAC,GAAGN,aAAa;AAE5C,MAAMO,YAAY,GAAGP,aAAa,CAACM,kBAAkB,GACjDN,aAAa,CAACM,kBAAkB,GAChC,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMS,gBAAgB,GAAG;EACxB;EACCC,UAAU,EAAE,SAAAA,CACVC,MAAc,EACdC,cAAsB,EACtBC,qBAA8B,EAC9BC,mBAA6B,EAC7BC,eAAwB,EACxBC,YAAsB,EACtBC,sBAA+B,EAC/BC,0BAAmC,EACnCC,mBAA4B,EAC5BC,kBAA2B,EAC3BC,8BAAuC,EACvCC,6BAAsC,EACtCC,0BAAmC,EACnCC,yBAAkC,EAClCC,cAAuB,EACvBC,wBAAiC,EACjCC,sBAA+B,EAC/BC,MAAe,EACfC,SAAkB,EAClBC,WAAqB,EACrBC,gBAAyB,EACzBC,qBAA8B,EAC9BC,cAAoC,EACpC;I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CAAC0B,2BAA2B,IAAI,CAAC,CAAC,CAAC,EACjDC,eAAe,IAAI,QAAQ,EAC3BC,UAAU,IAAI,EAAE,EAChBC,QAAQ,IAAI,EAAE,EACdC,YAAY,IAAI,gBAAgB,EAChC3B,aAAa,IAAI,IACnB,CAAC;EACL;AAEF,CAAC;AAED,eAAetC,gBAAgB","ignoreList":[]}
|
package/lib/module/Language.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Language","English","Arabic","Azerbaijani","Belarusian","Georgian","Korean","Latvian","Lithuanian","Punjabi","Russian","Sanskrit","Sindhi","Thai","Turkish","Ukrainian","Urdu","Uyghur","NON"],"sourceRoot":"..\\..\\src","sources":["Language.ts"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,GAAG;EACtBC,OAAO,EAAE,IAAI;EACbC,MAAM,EAAE,IAAI;EACZC,WAAW,EAAE,IAAI;EACjBC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE,IAAI;EACfC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,IAAI;EACZC,GAAG,EAAE;AACP,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Language","English","Arabic","Azerbaijani","Belarusian","Georgian","Korean","Latvian","Lithuanian","Punjabi","Russian","Sanskrit","Sindhi","Thai","Turkish","Ukrainian","Urdu","Uyghur","NON","FlowUiLanguage"],"sourceRoot":"..\\..\\src","sources":["Language.ts"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,GAAG;EACtBC,OAAO,EAAE,IAAI;EACbC,MAAM,EAAE,IAAI;EACZC,WAAW,EAAE,IAAI;EACjBC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAE,IAAI;EACbC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE,IAAI;EACfC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAE,IAAI;EACZC,GAAG,EAAE;AACP,CAAC;AAID,OAAO,MAAMC,cAAc,GAAG;EAC5BlB,OAAO,EAAE,IAAI;EACbC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6CnD,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6CnD,QAAA,MAAM,IAAI,yBAsbT,CAAC;AAcF,eAAe,IAAI,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default AssentifyWrapper;
|
|
3
3
|
declare namespace AssentifyWrapper {
|
|
4
|
-
function initialize(apiKey: any, configFileName: any, processJsonConfigFile: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any): void;
|
|
4
|
+
function initialize(apiKey: any, configFileName: any, processJsonConfigFile: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any, flowUiLanguage: any): void;
|
|
5
5
|
function startScanPassport(language: any, stepID: any): void;
|
|
6
6
|
function startScanOther(language: any, stepID: any): void;
|
|
7
7
|
function startScanIDCard(templatesByCountryObject: any, language: any, flippingCard: any, stepID: any): void;
|
|
8
8
|
function startFaceMatch(imageUrl: any, showCountDown: any, stepID: any): void;
|
|
9
9
|
function startScanQr(templatesByCountryObject: any, language: any, stepID: any): void;
|
|
10
10
|
function submitData(dataMap: any): void;
|
|
11
|
-
function startFlow(logoUrl: any, svgBackgroundImageUrl: any, textColor: any, secondaryTextColor: any, backgroundCardColor: any, accentColor: any, backgroundColors: any, clickColors: any, angleDegreesBackgroundColors: any, holdUntilBackgroundColors: any, angleDegreesClickColors: any, holdUntilClickColors: any, backgroundType: any, clear: any,
|
|
11
|
+
function startFlow(logoUrl: any, svgBackgroundImageUrl: any, textColor: any, secondaryTextColor: any, backgroundCardColor: any, accentColor: any, backgroundColors: any, clickColors: any, angleDegreesBackgroundColors: any, holdUntilBackgroundColors: any, angleDegreesClickColors: any, holdUntilClickColors: any, backgroundType: any, clear: any, extractedDataLanguage: any, enableNfc: any, enableQr: any, blockLoaderCustomProperties: any, flowStepperType: any, rangeStart: any, rangeEnd: any, stepperTitle: any, showCountDown: any): void;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=AssentifyWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IAqBc,
|
|
1
|
+
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IAqBc,8lBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,6GAEhB;IAEe,8EAEf;IACY,sFAEZ;IAEW,wCAEX;IAGU,whBAEV"}
|
|
@@ -19,4 +19,10 @@ export namespace Language {
|
|
|
19
19
|
let Uyghur: string;
|
|
20
20
|
let NON: string;
|
|
21
21
|
}
|
|
22
|
+
export namespace FlowUiLanguage {
|
|
23
|
+
let English_1: string;
|
|
24
|
+
export { English_1 as English };
|
|
25
|
+
let Arabic_1: string;
|
|
26
|
+
export { Arabic_1 as Arabic };
|
|
27
|
+
}
|
|
22
28
|
//# sourceMappingURL=Language.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export default AssentifyWrapper;
|
|
2
2
|
declare namespace AssentifyWrapper {
|
|
3
|
-
function initialize(apiKey: any, configFileName: any, processJsonConfigFile: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any): void;
|
|
3
|
+
function initialize(apiKey: any, configFileName: any, processJsonConfigFile: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any, flowUiLanguage: any): void;
|
|
4
4
|
function startScanPassport(language: any, stepID: any): void;
|
|
5
5
|
function startScanOther(language: any, stepID: any): void;
|
|
6
6
|
function startScanIDCard(templatesByCountryObject: any, language: any, flippingCard: any, stepID: any): void;
|
|
7
7
|
function startFaceMatch(imageUrl: any, showCountDown: any, stepID: any): void;
|
|
8
8
|
function startScanQr(templatesByCountryObject: any, language: any, stepID: any): void;
|
|
9
9
|
function submitData(dataMap: any): void;
|
|
10
|
-
function startFlow(logoUrl: any, svgBackgroundImageUrl: any, textColor: any, secondaryTextColor: any, backgroundCardColor: any, accentColor: any, backgroundColors: any, clickColors: any, angleDegreesBackgroundColors: any, holdUntilBackgroundColors: any, angleDegreesClickColors: any, holdUntilClickColors: any, backgroundType: any, clear: any,
|
|
10
|
+
function startFlow(logoUrl: any, svgBackgroundImageUrl: any, textColor: any, secondaryTextColor: any, backgroundCardColor: any, accentColor: any, backgroundColors: any, clickColors: any, angleDegreesBackgroundColors: any, holdUntilBackgroundColors: any, angleDegreesClickColors: any, holdUntilClickColors: any, backgroundType: any, clear: any, extractedDataLanguage: any, enableNfc: any, enableQr: any, blockLoaderCustomProperties: any, flowStepperType: any, rangeStart: any, rangeEnd: any, stepperTitle: any, showCountDown: any): void;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=AssentifyWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../module/AssentifyWrapper.js"],"names":[],"mappings":";;IAec,
|
|
1
|
+
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../module/AssentifyWrapper.js"],"names":[],"mappings":";;IAec,8lBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,6GAEhB;IAEe,8EAEf;IACY,sFAEZ;IAEW,wCAEX;IAGU,whBAEV"}
|
|
@@ -18,4 +18,10 @@ export namespace Language {
|
|
|
18
18
|
let Uyghur: string;
|
|
19
19
|
let NON: string;
|
|
20
20
|
}
|
|
21
|
+
export namespace FlowUiLanguage {
|
|
22
|
+
let English_1: string;
|
|
23
|
+
export { English_1 as English };
|
|
24
|
+
let Arabic_1: string;
|
|
25
|
+
export { Arabic_1 as Arabic };
|
|
26
|
+
}
|
|
21
27
|
//# sourceMappingURL=Language.d.ts.map
|
|
@@ -5,13 +5,13 @@ export * from "./BackgroundType";
|
|
|
5
5
|
export * from "./FlowStepperType";
|
|
6
6
|
export * from "./AssentifyProvider";
|
|
7
7
|
export const Assentify: {
|
|
8
|
-
initialize: (apiKey: any, configFileName: any, processJsonConfigFile: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any) => void;
|
|
8
|
+
initialize: (apiKey: any, configFileName: any, processJsonConfigFile: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any, flowUiLanguage: any) => void;
|
|
9
9
|
startScanPassport: (language: any, stepID: any) => void;
|
|
10
10
|
startScanOther: (language: any, stepID: any) => void;
|
|
11
11
|
startScanIDCard: (templatesByCountryObject: any, language: any, flippingCard: any, stepID: any) => void;
|
|
12
12
|
startFaceMatch: (imageUrl: any, showCountDown: any, stepID: any) => void;
|
|
13
13
|
startScanQr: (templatesByCountryObject: any, language: any, stepID: any) => void;
|
|
14
14
|
submitData: (dataMap: any) => void;
|
|
15
|
-
startFlow: (logoUrl: any, svgBackgroundImageUrl: any, textColor: any, secondaryTextColor: any, backgroundCardColor: any, accentColor: any, backgroundColors: any, clickColors: any, angleDegreesBackgroundColors: any, holdUntilBackgroundColors: any, angleDegreesClickColors: any, holdUntilClickColors: any, backgroundType: any, clear: any,
|
|
15
|
+
startFlow: (logoUrl: any, svgBackgroundImageUrl: any, textColor: any, secondaryTextColor: any, backgroundCardColor: any, accentColor: any, backgroundColors: any, clickColors: any, angleDegreesBackgroundColors: any, holdUntilBackgroundColors: any, angleDegreesClickColors: any, holdUntilClickColors: any, backgroundType: any, clear: any, extractedDataLanguage: any, enableNfc: any, enableQr: any, blockLoaderCustomProperties: any, flowStepperType: any, rangeStart: any, rangeEnd: any, stepperTitle: any, showCountDown: any) => void;
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { type LanguageCode } from './Language';
|
|
2
|
+
import { type FlowUiLanguageCode } from './Language';
|
|
2
3
|
import { type TemplatesByCountry } from './types';
|
|
3
4
|
import { type BackgroundTypeCode } from './BackgroundType';
|
|
4
5
|
import { type FlowStepperTypeCode } from './FlowStepperType';
|
|
5
6
|
declare const AssentifyWrapper: {
|
|
6
|
-
initialize: (apiKey: string, configFileName: string, processJsonConfigFile?: string, performLivenessFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number, faceLivenessRetryCount?: number, minRam?: number, iOSMinRam?: number, minCPUCores?: number, manualClickColor?: string, countDownNumbersColor?: string) => void;
|
|
7
|
+
initialize: (apiKey: string, configFileName: string, processJsonConfigFile?: string, performLivenessFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number, faceLivenessRetryCount?: number, minRam?: number, iOSMinRam?: number, minCPUCores?: number, manualClickColor?: string, countDownNumbersColor?: string, flowUiLanguage?: FlowUiLanguageCode) => void;
|
|
7
8
|
startScanPassport: (language: LanguageCode, stepID: number) => void;
|
|
8
9
|
startScanOther: (language: LanguageCode, stepID: number) => void;
|
|
9
10
|
startScanIDCard: (templatesByCountryObject: TemplatesByCountry, language: LanguageCode, flippingCard: boolean, stepID: number) => void;
|
|
10
11
|
startFaceMatch: (imageUrl: String, showCountDown: boolean, stepID: number) => void;
|
|
11
12
|
startScanQr: (templatesByCountryObject: TemplatesByCountry, language: LanguageCode, stepID: number) => void;
|
|
12
13
|
submitData: (dataMap: Record<string, string>) => void;
|
|
13
|
-
startFlow: (logoUrl?: string, svgBackgroundImageUrl?: string, textColor?: string, secondaryTextColor?: string, backgroundCardColor?: string, accentColor?: string, backgroundColors?: string[], clickColors?: string[], angleDegreesBackgroundColors?: number, holdUntilBackgroundColors?: number, angleDegreesClickColors?: number, holdUntilClickColors?: number, backgroundType?: BackgroundTypeCode, clear?: boolean,
|
|
14
|
+
startFlow: (logoUrl?: string, svgBackgroundImageUrl?: string, textColor?: string, secondaryTextColor?: string, backgroundCardColor?: string, accentColor?: string, backgroundColors?: string[], clickColors?: string[], angleDegreesBackgroundColors?: number, holdUntilBackgroundColors?: number, angleDegreesClickColors?: number, holdUntilClickColors?: number, backgroundType?: BackgroundTypeCode, clear?: boolean, extractedDataLanguage?: LanguageCode, enableNfc?: boolean, enableQr?: boolean, blockLoaderCustomProperties?: Record<string, string>, flowStepperType?: FlowStepperTypeCode, rangeStart?: number, rangeEnd?: number, stepperTitle?: string, showCountDown?: boolean) => void;
|
|
14
15
|
};
|
|
15
16
|
export default AssentifyWrapper;
|
|
16
17
|
//# sourceMappingURL=AssentifyWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../src/AssentifyWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAqB7D,QAAA,MAAM,gBAAgB;yBAGV,MAAM,kBACE,MAAM,0BACE,MAAM,wBACR,OAAO,oBACX,MAAM,iBACT,OAAO,2BACG,MAAM,+BACF,MAAM,wBACb,MAAM,uBACP,MAAM,mCACM,MAAM,kCACP,MAAM,+BACT,MAAM,8BACP,MAAM,mBACjB,MAAM,6BACI,MAAM,2BACR,MAAM,WACtB,MAAM,cACH,MAAM,gBACH,MAAM,qBACF,MAAM,0BACD,MAAM;
|
|
1
|
+
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../src/AssentifyWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAqB7D,QAAA,MAAM,gBAAgB;yBAGV,MAAM,kBACE,MAAM,0BACE,MAAM,wBACR,OAAO,oBACX,MAAM,iBACT,OAAO,2BACG,MAAM,+BACF,MAAM,wBACb,MAAM,uBACP,MAAM,mCACM,MAAM,kCACP,MAAM,+BACT,MAAM,8BACP,MAAM,mBACjB,MAAM,6BACI,MAAM,2BACR,MAAM,WACtB,MAAM,cACH,MAAM,gBACH,MAAM,qBACF,MAAM,0BACD,MAAM,mBACZ,kBAAkB;kCA8BE,YAAY,UAAS,MAAM;+BAK7B,YAAY,UAAS,MAAM;gDAKV,kBAAkB,YAAW,YAAY,gBAAe,OAAO,UAAS,MAAM;+BAK9F,MAAM,iBAAgB,OAAO,UAAS,MAAM;4CAOhC,kBAAkB,YAAW,YAAY,UAAS,MAAM;0BAM1E,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;0BAQ3C,MAAM,0BACQ,MAAM,cAClB,MAAM,uBACG,MAAM,wBACL,MAAM,gBACd,MAAM,qBACD,MAAM,EAAE,gBACb,MAAM,EAAE,iCACS,MAAM,8BACT,MAAM,4BACR,MAAM,yBACT,MAAM,mBACZ,kBAAkB,UAC3B,OAAO,0BACS,YAAY,cACxB,OAAO,aACR,OAAO,gCACW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,oBAClC,mBAAmB,eACvB,MAAM,aACR,MAAM,iBACF,MAAM,kBACL,OAAO;CA6B1B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -19,4 +19,9 @@ export declare const Language: {
|
|
|
19
19
|
NON: string;
|
|
20
20
|
};
|
|
21
21
|
export type LanguageCode = typeof Language[keyof typeof Language];
|
|
22
|
+
export declare const FlowUiLanguage: {
|
|
23
|
+
English: string;
|
|
24
|
+
Arabic: string;
|
|
25
|
+
};
|
|
26
|
+
export type FlowUiLanguageCode = typeof FlowUiLanguage[keyof typeof FlowUiLanguage];
|
|
22
27
|
//# sourceMappingURL=Language.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Language.d.ts","sourceRoot":"","sources":["../../../src/Language.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Language.d.ts","sourceRoot":"","sources":["../../../src/Language.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc;;;CAG1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -4,14 +4,14 @@ export * from './ActiveLiveType';
|
|
|
4
4
|
export * from './BackgroundType';
|
|
5
5
|
export * from './FlowStepperType';
|
|
6
6
|
export declare const Assentify: {
|
|
7
|
-
initialize: (apiKey: string, configFileName: string, processJsonConfigFile?: string, performLivenessFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number, faceLivenessRetryCount?: number, minRam?: number, iOSMinRam?: number, minCPUCores?: number, manualClickColor?: string, countDownNumbersColor?: string) => void;
|
|
7
|
+
initialize: (apiKey: string, configFileName: string, processJsonConfigFile?: string, performLivenessFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number, faceLivenessRetryCount?: number, minRam?: number, iOSMinRam?: number, minCPUCores?: number, manualClickColor?: string, countDownNumbersColor?: string, flowUiLanguage?: import("./Language").FlowUiLanguageCode) => void;
|
|
8
8
|
startScanPassport: (language: import("./Language").LanguageCode, stepID: number) => void;
|
|
9
9
|
startScanOther: (language: import("./Language").LanguageCode, stepID: number) => void;
|
|
10
10
|
startScanIDCard: (templatesByCountryObject: import("./types").TemplatesByCountry, language: import("./Language").LanguageCode, flippingCard: boolean, stepID: number) => void;
|
|
11
11
|
startFaceMatch: (imageUrl: String, showCountDown: boolean, stepID: number) => void;
|
|
12
12
|
startScanQr: (templatesByCountryObject: import("./types").TemplatesByCountry, language: import("./Language").LanguageCode, stepID: number) => void;
|
|
13
13
|
submitData: (dataMap: Record<string, string>) => void;
|
|
14
|
-
startFlow: (logoUrl?: string, svgBackgroundImageUrl?: string, textColor?: string, secondaryTextColor?: string, backgroundCardColor?: string, accentColor?: string, backgroundColors?: string[], clickColors?: string[], angleDegreesBackgroundColors?: number, holdUntilBackgroundColors?: number, angleDegreesClickColors?: number, holdUntilClickColors?: number, backgroundType?: import("./BackgroundType").BackgroundTypeCode, clear?: boolean,
|
|
14
|
+
startFlow: (logoUrl?: string, svgBackgroundImageUrl?: string, textColor?: string, secondaryTextColor?: string, backgroundCardColor?: string, accentColor?: string, backgroundColors?: string[], clickColors?: string[], angleDegreesBackgroundColors?: number, holdUntilBackgroundColors?: number, angleDegreesClickColors?: number, holdUntilClickColors?: number, backgroundType?: import("./BackgroundType").BackgroundTypeCode, clear?: boolean, extractedDataLanguage?: import("./Language").LanguageCode, enableNfc?: boolean, enableQr?: boolean, blockLoaderCustomProperties?: Record<string, string>, flowStepperType?: import("./FlowStepperType").FlowStepperTypeCode, rangeStart?: number, rangeEnd?: number, stepperTitle?: string, showCountDown?: boolean) => void;
|
|
15
15
|
};
|
|
16
16
|
export * from './AssentifyProvider';
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assentify-sdk-react-native",
|
|
3
|
-
"version": "1.0.0-Beta.
|
|
3
|
+
"version": "1.0.0-Beta.22",
|
|
4
4
|
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
package/src/AssentifyWrapper.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NativeModules, Platform, Alert, Linking } from 'react-native';
|
|
2
2
|
import { type LanguageCode } from './Language';
|
|
3
|
+
import { type FlowUiLanguageCode } from './Language';
|
|
3
4
|
import { type TemplatesByCountry } from './types';
|
|
4
5
|
import { type BackgroundTypeCode } from './BackgroundType';
|
|
5
6
|
import { type FlowStepperTypeCode } from './FlowStepperType';
|
|
@@ -47,7 +48,8 @@ const AssentifyWrapper = {
|
|
|
47
48
|
iOSMinRam?: number,
|
|
48
49
|
minCPUCores ?: number,
|
|
49
50
|
manualClickColor?: string,
|
|
50
|
-
countDownNumbersColor?: string
|
|
51
|
+
countDownNumbersColor?: string,
|
|
52
|
+
flowUiLanguage ?: FlowUiLanguageCode
|
|
51
53
|
) {
|
|
52
54
|
AssentifySdk.initialize(
|
|
53
55
|
apiKey,
|
|
@@ -71,7 +73,8 @@ const AssentifyWrapper = {
|
|
|
71
73
|
iOSMinRam??2,
|
|
72
74
|
minCPUCores??6,
|
|
73
75
|
manualClickColor ?? '#f5a103',
|
|
74
|
-
countDownNumbersColor ?? '#f5a103'
|
|
76
|
+
countDownNumbersColor ?? '#f5a103',
|
|
77
|
+
flowUiLanguage ?? "en",
|
|
75
78
|
);
|
|
76
79
|
},
|
|
77
80
|
|
|
@@ -126,7 +129,7 @@ const AssentifyWrapper = {
|
|
|
126
129
|
holdUntilClickColors?: number,
|
|
127
130
|
backgroundType?: BackgroundTypeCode,
|
|
128
131
|
clear?: boolean,
|
|
129
|
-
|
|
132
|
+
extractedDataLanguage?: LanguageCode,
|
|
130
133
|
enableNfc?: boolean,
|
|
131
134
|
enableQr?: boolean,
|
|
132
135
|
blockLoaderCustomProperties?:Record<string, string>,
|
|
@@ -151,7 +154,7 @@ const AssentifyWrapper = {
|
|
|
151
154
|
holdUntilClickColors ?? 0.4,
|
|
152
155
|
backgroundType,
|
|
153
156
|
clear,
|
|
154
|
-
|
|
157
|
+
extractedDataLanguage ?? "NON",
|
|
155
158
|
enableNfc ?? false,
|
|
156
159
|
enableQr ?? false,
|
|
157
160
|
JSON.stringify(blockLoaderCustomProperties ?? {}),
|
package/src/Language.ts
CHANGED
|
@@ -20,3 +20,10 @@ export const Language = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export type LanguageCode = typeof Language[keyof typeof Language];
|
|
23
|
+
|
|
24
|
+
export const FlowUiLanguage = {
|
|
25
|
+
English: "en",
|
|
26
|
+
Arabic: "ar",
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type FlowUiLanguageCode = typeof FlowUiLanguage[keyof typeof FlowUiLanguage];
|