@ekyc_qoobiss/qbs-ect-cmp 3.6.0 → 3.6.2
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/dist/cjs/agreement-check_18.cjs.entry.js +49 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/components/common/capture-error/capture-error.js +19 -1
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +1 -1
- package/dist/collection/components/common/id-capture/id-capture.js +1 -1
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +1 -1
- package/dist/collection/components/flow/id-single-side/id-single-side.js +8 -2
- package/dist/collection/helpers/Cameras.js +35 -12
- package/dist/esm/agreement-check_18.entry.js +49 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-ed55aa4d.entry.js → p-32177442.entry.js} +24 -24
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/capture-error/capture-error.d.ts +1 -0
- package/dist/types/components/flow/id-single-side/id-single-side.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/helpers/Cameras.d.ts +2 -2
- package/package.json +1 -1
- package/dist/collection/models/IConstraints.js +0 -1
- package/dist/types/models/IConstraints.d.ts +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-4c8e922b",[[1,"loader-dots"]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-06e42b28.js";export{s as setNonce}from"./p-06e42b28.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-4c8e922b",[[1,"loader-dots"]]],["p-32177442",[[1,"identification-component",{token:[1537],order_id:[1537],api_url:[1537],env:[1537],redirect_id:[1537],phone_number:[1537],idSide:[32],errorMessage:[32],errorTitle:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{showTimeout:[32],showInvalid:[32],showHowTo:[32],front:[32],flow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{showTimeout:[32],showHowTo:[32],idFlow:[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{showError:[32],showHowTo:[32],selfieFlow:[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{agreementsChecked:[32],termsChecked:[32],openAgreements:[32],openTerms:[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{title:[32],description:[32],buttonDisabled:[32],demoVideo:[32]}],[0,"end-redirect"],[0,"error-end",{message:[1],errorTitle:[1,"error-title"]}],[0,"landing-validation",{warningText:[32],buttonDisabled:[32]}],[0,"mobile-redirect",{infoTextTop:[32],infoTextBottom:[32],contact:[32],invalidValue:[32],waitingMobile:[32],orderStatus:[32],redirectLink:[32],qrCode:[32],prefilledPhone:[32]}],[0,"sms-code-validation",{title:[32],details:[32],buttonText:[32],phoneNumber:[32],code:[32],prefilledPhone:[32],canSend:[32]}],[0,"id-back-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{videoStarted:[32],captureTaken:[32],verified:[32],titleMesage:[32],demoEnded:[32],demoVideo:[32],uploadingLink:[32],captureHeight:[32],captureWidth:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{agreementType:[1,"agreement-type"],htmlContent:[32],buttonEnabled:[32]}],[0,"id-capture",{videoStarted:[32],cameraSize:[32],captureTaken:[32],verified:[32],titleMesage:[32],showDemo:[32],demoVideo:[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{type:[1],message:[1],buttonEnabled:[32],buttonText:[32]}],[0,"how-to-info",{idSide:[1,"id-side"],topTitle:[32],subTitle:[32],imagePath:[32],buttonText:[32],buttonEnabled:[32]}],[0,"camera-comp",{modelPath:[1,"model-path"],probabilityThreshold:[2,"probability-threshold"],captureMode:[1,"capture-mode"]}]]]],e)));
|
|
@@ -19,6 +19,7 @@ export namespace Components {
|
|
|
19
19
|
interface CameraError {
|
|
20
20
|
}
|
|
21
21
|
interface CaptureError {
|
|
22
|
+
"message": string;
|
|
22
23
|
"type": string;
|
|
23
24
|
}
|
|
24
25
|
interface EndRedirect {
|
|
@@ -287,6 +288,7 @@ declare namespace LocalJSX {
|
|
|
287
288
|
"onApiError"?: (event: CameraErrorCustomEvent<any>) => void;
|
|
288
289
|
}
|
|
289
290
|
interface CaptureError {
|
|
291
|
+
"message"?: string;
|
|
290
292
|
"onCaptureErrorDone"?: (event: CaptureErrorCustomEvent<any>) => void;
|
|
291
293
|
"type"?: string;
|
|
292
294
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Camera } from '../models/ICamera';
|
|
2
|
-
import { Constraints } from '../models/IConstraints';
|
|
3
2
|
import { DeviceState } from '../models/IDevice';
|
|
4
3
|
export declare class Cameras {
|
|
5
4
|
GetCameras(deviceInfo: DeviceState): Promise<Camera[]>;
|
|
6
|
-
GetConstraints(selectedDeviceId: string, device: DeviceState, portrait?: boolean):
|
|
5
|
+
GetConstraints(selectedDeviceId: string, device: DeviceState, portrait?: boolean): MediaStreamConstraints | any;
|
|
6
|
+
GetConstraintsIOs(device: DeviceState, portrait?: boolean): MediaStreamConstraints | any;
|
|
7
7
|
GetRecommendedCamera(cameras: any): any;
|
|
8
8
|
static InitCameras(device: DeviceState): Promise<boolean>;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface Constraints {
|
|
2
|
-
audio: boolean;
|
|
3
|
-
video: {
|
|
4
|
-
deviceId?: any;
|
|
5
|
-
aspectRatio?: number;
|
|
6
|
-
facingMode?: string;
|
|
7
|
-
frameRate?: number;
|
|
8
|
-
width?: {
|
|
9
|
-
min?: number;
|
|
10
|
-
exact?: number;
|
|
11
|
-
ideal?: number;
|
|
12
|
-
max?: number;
|
|
13
|
-
};
|
|
14
|
-
height?: {
|
|
15
|
-
min?: number;
|
|
16
|
-
exact?: number;
|
|
17
|
-
ideal?: number;
|
|
18
|
-
max?: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|