@idscan/onboarding 2.2.15 → 2.2.17
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/@types/Fingerprinting/src/modules/browserInfo.d.ts +0 -1
- package/dist/@types/src/@types/Api/Requests.d.ts +1 -1
- package/dist/@types/src/@types/Data.d.ts +0 -1
- package/dist/@types/src/@types/Step.d.ts +1 -1
- package/dist/@types/src/Wrapper.d.ts +2 -0
- package/dist/@types/src/helpers/mobileChecker.d.ts +15 -0
- package/dist/@types/src/helpers/utils.d.ts +3 -35
- package/dist/@types/src/mocks/defaultValues.d.ts +2 -0
- package/dist/@types/src/modules/QRCodeModal.d.ts +2 -2
- package/dist/js/wrapper.js +1 -1
- package/package.json +1 -1
- package/readme.md +7 -0
|
@@ -20,9 +20,11 @@ export default class Wrapper {
|
|
|
20
20
|
private beforeMount;
|
|
21
21
|
private getQueryParam;
|
|
22
22
|
private get isEmbeddedFromQR();
|
|
23
|
+
private get QRCodeIsAvailable();
|
|
23
24
|
private mountQRCodeButton;
|
|
24
25
|
private mount;
|
|
25
26
|
private checkApplicantIsValid;
|
|
27
|
+
private prepareConfig;
|
|
26
28
|
updateConfig(newConfig: JSONString): void;
|
|
27
29
|
/**
|
|
28
30
|
* reinitialize the library with new applicant id
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const isiOS: () => boolean;
|
|
2
|
+
export declare const checkTouchPoints: () => boolean;
|
|
3
|
+
export declare const checkIsTouchScreen: () => boolean;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param {Number} maxWidth - preferable max width device
|
|
7
|
+
*/
|
|
8
|
+
export declare const isMobile: () => {
|
|
9
|
+
isMobileUserAgent: () => boolean;
|
|
10
|
+
isTouchable: () => boolean;
|
|
11
|
+
isTouchScreen: () => boolean;
|
|
12
|
+
isSurface: () => boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const checkIfMobile: () => boolean;
|
|
15
|
+
export default checkIfMobile;
|
|
@@ -1,40 +1,8 @@
|
|
|
1
|
-
import { IDVCConfig } from '../@types/Data';
|
|
1
|
+
import { IDocumentType, IDVCConfig, IWebLibDocument } from '../@types/Data';
|
|
2
2
|
export declare const createGuid: () => string;
|
|
3
3
|
/**
|
|
4
4
|
* 1. Filter Active DocumentTypes
|
|
5
5
|
* 2. Filter Steps that have at least one active mode
|
|
6
6
|
* */
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
type: import("../@types/IDVCTypes").DocumentTypeName;
|
|
10
|
-
steps: import("../@types/Step").IStepConfig[];
|
|
11
|
-
}[];
|
|
12
|
-
priority: string;
|
|
13
|
-
realFaceMode: import("../@types/IDVCTypes").RealFaceModeType;
|
|
14
|
-
steps: import("../@types/Step").IStepConfig[];
|
|
15
|
-
types: string[];
|
|
16
|
-
capturingMode: string;
|
|
17
|
-
resizeUploadedImage: number;
|
|
18
|
-
isShowManualSwitchButton: boolean;
|
|
19
|
-
showSubmitBtn: boolean;
|
|
20
|
-
enableLimitation: boolean;
|
|
21
|
-
autoContinue: boolean;
|
|
22
|
-
fixFrontOrientAfterUpload: boolean;
|
|
23
|
-
strictAllowedTypes: boolean;
|
|
24
|
-
useCDN?: boolean | undefined;
|
|
25
|
-
isShowVersion: boolean;
|
|
26
|
-
showForceCapturingBtn: boolean;
|
|
27
|
-
isShowGuidlinesButton: boolean;
|
|
28
|
-
licenseKey: string;
|
|
29
|
-
el: string;
|
|
30
|
-
networkUrl?: string | undefined;
|
|
31
|
-
chunkPublicPath?: string | undefined;
|
|
32
|
-
language: import("../@types/IDVCTypes").SupportedLanguage;
|
|
33
|
-
h_stepMode: import("../@types/Step").IStepMode;
|
|
34
|
-
isShowDocumentTypeSelect: boolean;
|
|
35
|
-
useHeic: boolean;
|
|
36
|
-
isShowGuidelinesButton: boolean;
|
|
37
|
-
isSubmitMetaData: boolean;
|
|
38
|
-
hideDocumentTitle?: boolean | undefined;
|
|
39
|
-
processingImageFormat?: "jpeg" | "png" | "webp" | undefined;
|
|
40
|
-
};
|
|
7
|
+
export declare const getFilteredDocumentTypes: (documentTypes: IWebLibDocument[]) => IDocumentType[];
|
|
8
|
+
export declare const prepareDocumentTypes: (config: IDVCConfig) => IDocumentType[];
|
|
@@ -12,8 +12,8 @@ export default class QRCodeModal extends Modal {
|
|
|
12
12
|
private readonly applicantId;
|
|
13
13
|
private QRCodeURL;
|
|
14
14
|
private domainApi;
|
|
15
|
-
private readonly
|
|
16
|
-
constructor(mountEl: HTMLElement | string, applicantId: string, domainApi: string,
|
|
15
|
+
private readonly embeddedAppConnectionId;
|
|
16
|
+
constructor(mountEl: HTMLElement | string, applicantId: string, domainApi: string, embeddedAppConnectionId: string, state?: QRCodeModalState);
|
|
17
17
|
init(html?: string): void;
|
|
18
18
|
initQRCodeURL(): void;
|
|
19
19
|
set state(newState: QRCodeModalState);
|