kwikid-forms 0.6.45 → 0.6.46
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/bundles/kwikid-forms.umd.js +30 -14
- package/bundles/kwikid-forms.umd.js.map +1 -1
- package/esm2015/lib/renderer/config-converter/config-converter.constants.js +5 -1
- package/esm2015/lib/renderer/form-view/form-view.component.js +7 -3
- package/fesm2015/kwikid-forms.js +10 -2
- package/fesm2015/kwikid-forms.js.map +1 -1
- package/lib/renderer/config-converter/config-converter.constants.d.ts +4 -0
- package/package.json +2 -2
package/fesm2015/kwikid-forms.js
CHANGED
|
@@ -385,6 +385,10 @@ const FIELD_PROPERTIES = {
|
|
|
385
385
|
isFacematchFromServer: false,
|
|
386
386
|
sources: []
|
|
387
387
|
},
|
|
388
|
+
liveliness: {
|
|
389
|
+
isEnabled: false,
|
|
390
|
+
isLivelinessFromServer: false
|
|
391
|
+
},
|
|
388
392
|
watermark: {
|
|
389
393
|
isEnabled: false,
|
|
390
394
|
isWatermarkFromServer: false,
|
|
@@ -3911,9 +3915,13 @@ class KwikIDFormViewComponent {
|
|
|
3911
3915
|
const image = response === null || response === void 0 ? void 0 : response.image_url;
|
|
3912
3916
|
const imageOcr = response === null || response === void 0 ? void 0 : response.image_ocr;
|
|
3913
3917
|
const imageFacematch = response === null || response === void 0 ? void 0 : response.image_facematch;
|
|
3918
|
+
const imageLiveliness = response === null || response === void 0 ? void 0 : response.image_liveliness;
|
|
3914
3919
|
const imageWatermark = response === null || response === void 0 ? void 0 : response.image_watermark;
|
|
3915
|
-
const
|
|
3916
|
-
|
|
3920
|
+
const isCheckCameraFeatures = () => {
|
|
3921
|
+
return (imageOcr || imageLiveliness || imageFacematch || imageWatermark);
|
|
3922
|
+
};
|
|
3923
|
+
const imageData = isCheckCameraFeatures()
|
|
3924
|
+
? Object.assign(Object.assign(Object.assign(Object.assign({ image }, (imageOcr && { ocr: imageOcr })), (imageFacematch && { facematch: imageFacematch })), (imageLiveliness && { liveliness: imageLiveliness })), (imageWatermark && { watermark: imageWatermark })) : image;
|
|
3917
3925
|
this.formData[field.key] = getObjectDeepCopy([imageData]);
|
|
3918
3926
|
this.cameraData[field.key] = getObjectDeepCopy(imageData);
|
|
3919
3927
|
this.mediaFiles[field.key] = getObjectDeepCopy([imageData]);
|