@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.
@@ -1,6 +1,5 @@
1
1
  export interface InternationalizationInfo {
2
2
  locale: string;
3
- dateFormat: string;
4
3
  calendar: string;
5
4
  numberingSystem: string;
6
5
  weekInfo: string;
@@ -16,5 +16,5 @@ export interface IValidationModel extends IFaceAuthorizationModel {
16
16
  export interface IValidationRequest {
17
17
  applicantId: string;
18
18
  model: IValidationModel;
19
- connectionId: string;
19
+ embeddedAppConnectionId: string;
20
20
  }
@@ -21,7 +21,6 @@ export interface IConsentFormState {
21
21
  }
22
22
  export interface IDocumentType {
23
23
  type: DocumentTypeName;
24
- mode?: IStepMode;
25
24
  steps: IStepConfig[];
26
25
  }
27
26
  export interface IDataForSubmit {
@@ -32,7 +32,7 @@ export interface Step extends IStepCallback, IStepObj {
32
32
  export interface IStepConfig {
33
33
  type: StepType;
34
34
  name: string;
35
- mode: IStepMode;
35
+ mode?: IStepMode;
36
36
  }
37
37
  export interface IStepConfigMode {
38
38
  name: 'mode';
@@ -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 getFilteredConfiguration: (configuration: IDVCConfig) => {
8
- documentTypes: {
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[];
@@ -0,0 +1,2 @@
1
+ import { IDocumentType } from '../@types/Data';
2
+ export declare const defaultDocumentTypes: 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 connectionId;
16
- constructor(mountEl: HTMLElement | string, applicantId: string, domainApi: string, connectionId: string, state?: QRCodeModalState);
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);