idmission-web-sdk 0.0.48 → 0.0.49
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 +26 -0
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +4 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +10 -1
- package/dist/sdk2.cjs.development.js +25 -14
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +25 -14
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +25 -14
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/package.json +1 -1
|
@@ -12466,6 +12466,9 @@
|
|
|
12466
12466
|
cameraInitializingText = _a.cameraInitializingText,
|
|
12467
12467
|
cameraAccessBlockedText = _a.cameraAccessBlockedText,
|
|
12468
12468
|
continueText = _a.continueText,
|
|
12469
|
+
continueBtnDisabledBackgroundColor = _a.continueBtnDisabledBackgroundColor,
|
|
12470
|
+
continueBtnBackgroundColor = _a.continueBtnBackgroundColor,
|
|
12471
|
+
continueBtnTextColor = _a.continueBtnTextColor,
|
|
12469
12472
|
_b = _a.instructionImageUrl,
|
|
12470
12473
|
instructionImageUrl = _b === void 0 ? DEFAULT_CDN_URL + '/WebSDK-Instruction-DL-Capture-3-Portrait.png' : _b,
|
|
12471
12474
|
_c = _a.accessBlockedImageUrl,
|
|
@@ -12483,6 +12486,15 @@
|
|
|
12483
12486
|
var _e = React.useState(false),
|
|
12484
12487
|
dismissed = _e[0],
|
|
12485
12488
|
setDismissed = _e[1];
|
|
12489
|
+
headingText || (headingText = t('Use your device camera to capture your ID'));
|
|
12490
|
+
useContinuityCameraText || (useContinuityCameraText = t('Use your iPhone as a webcam'));
|
|
12491
|
+
modelsWarmingUpText || (modelsWarmingUpText = t('Models warming up...'));
|
|
12492
|
+
cameraInitializingText || (cameraInitializingText = t('Camera initializing...'));
|
|
12493
|
+
cameraAccessBlockedText || (cameraAccessBlockedText = t('Camera access blocked'));
|
|
12494
|
+
continueText || (continueText = t('Continue'));
|
|
12495
|
+
continueBtnDisabledBackgroundColor || (continueBtnDisabledBackgroundColor = 'gray');
|
|
12496
|
+
continueBtnBackgroundColor || (continueBtnBackgroundColor = 'mint');
|
|
12497
|
+
continueBtnTextColor || (continueBtnTextColor = 'white');
|
|
12486
12498
|
React.useEffect(function () {
|
|
12487
12499
|
if (!buttonRef.current) return;
|
|
12488
12500
|
laddaRef.current = create(buttonRef.current);
|
|
@@ -12521,12 +12533,6 @@
|
|
|
12521
12533
|
accessBlockedImageUrl: accessBlockedImageUrl
|
|
12522
12534
|
});
|
|
12523
12535
|
}
|
|
12524
|
-
headingText = headingText || t('Use your device camera to capture your ID');
|
|
12525
|
-
useContinuityCameraText = useContinuityCameraText || t('Use your iPhone as a webcam');
|
|
12526
|
-
modelsWarmingUpText = modelsWarmingUpText || t('Models warming up...');
|
|
12527
|
-
cameraInitializingText = cameraInitializingText || t('Camera initializing...');
|
|
12528
|
-
cameraAccessBlockedText = cameraAccessBlockedText || t('Camera access blocked');
|
|
12529
|
-
continueText = continueText || t('Continue');
|
|
12530
12536
|
return /*#__PURE__*/React__default['default'].createElement(OverlayContainer, null, /*#__PURE__*/React__default['default'].createElement(OverlayInner, null, /*#__PURE__*/React__default['default'].createElement("h3", null, headingText), /*#__PURE__*/React__default['default'].createElement(OverlayImageWrapper, {
|
|
12531
12537
|
style: {
|
|
12532
12538
|
pointerEvents: 'none'
|
|
@@ -12550,11 +12556,14 @@
|
|
|
12550
12556
|
}), /*#__PURE__*/React__default['default'].createElement("label", {
|
|
12551
12557
|
htmlFor: "use-continuity-camera"
|
|
12552
12558
|
}, useContinuityCameraText))), /*#__PURE__*/React__default['default'].createElement("button", {
|
|
12559
|
+
ref: buttonRef,
|
|
12553
12560
|
className: "ladda-button",
|
|
12554
12561
|
"data-style": "expand-right",
|
|
12555
|
-
"data-color": "mint",
|
|
12556
12562
|
disabled: !cameraReady || !modelsReady,
|
|
12557
|
-
|
|
12563
|
+
style: {
|
|
12564
|
+
color: continueBtnTextColor,
|
|
12565
|
+
backgroundColor: !cameraReady || !modelsReady ? continueBtnDisabledBackgroundColor : continueBtnBackgroundColor
|
|
12566
|
+
},
|
|
12558
12567
|
onClick: function onClick() {
|
|
12559
12568
|
setDismissed(true);
|
|
12560
12569
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
@@ -13238,6 +13247,8 @@
|
|
|
13238
13247
|
cameraInitializingText: verbiage.loadingOverlayCameraInitializingText,
|
|
13239
13248
|
cameraAccessBlockedText: verbiage.loadingOverlayCameraAccessBlockedText,
|
|
13240
13249
|
continueText: verbiage.loadingOverlayContinueText,
|
|
13250
|
+
continueBtnBackgroundColor: colors.loadingContinueBtnBackgroundColor,
|
|
13251
|
+
continueBtnTextColor: colors.loadingContinueBtnTextColor,
|
|
13241
13252
|
instructionImageUrl: assets.loadingOverlayInstructionImageUrl,
|
|
13242
13253
|
onDismissed: function onDismissed() {
|
|
13243
13254
|
setOverlayDismissed(true);
|
|
@@ -14553,6 +14564,11 @@
|
|
|
14553
14564
|
if (cameraAccessDenied) return;
|
|
14554
14565
|
listAvailableCameras().then(function (availableCameras) {
|
|
14555
14566
|
var selectedCamera;
|
|
14567
|
+
if (preferFrontFacingCamera) {
|
|
14568
|
+
selectedCamera = availableCameras.find(function (deviceInfo) {
|
|
14569
|
+
return labelMatches(deviceInfo, frontLabels);
|
|
14570
|
+
});
|
|
14571
|
+
}
|
|
14556
14572
|
var platform = getPlatform();
|
|
14557
14573
|
if (!iphoneContinuityCameraDenied && (!platform || platform.os.family === 'OS X')) {
|
|
14558
14574
|
var iphoneContinuityCamera = availableCameras.find(function (deviceInfo) {
|
|
@@ -14560,14 +14576,9 @@
|
|
|
14560
14576
|
});
|
|
14561
14577
|
setIphoneContinuityCameraAvailable(!!iphoneContinuityCamera);
|
|
14562
14578
|
if (iphoneContinuityCamera && iphoneContinuityCameraAllowed) {
|
|
14563
|
-
selectedCamera = iphoneContinuityCamera;
|
|
14579
|
+
selectedCamera || (selectedCamera = iphoneContinuityCamera);
|
|
14564
14580
|
}
|
|
14565
14581
|
}
|
|
14566
|
-
if (preferFrontFacingCamera) {
|
|
14567
|
-
selectedCamera || (selectedCamera = availableCameras.find(function (deviceInfo) {
|
|
14568
|
-
return labelMatches(deviceInfo, frontLabels);
|
|
14569
|
-
}));
|
|
14570
|
-
}
|
|
14571
14582
|
if (wideAngleIsBetter()) {
|
|
14572
14583
|
selectedCamera || (selectedCamera = availableCameras.find(function (deviceInfo) {
|
|
14573
14584
|
return labelMatches(deviceInfo, backUltraWideLabels);
|