@incodetech/welcome 1.75.0 → 1.75.1-rc.20240926235940

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,33 +1,15 @@
1
1
  import UAParser from 'ua-parser-js';
2
2
  export declare const setUxType: (type: 'desktop' | 'mobile' | null) => void;
3
3
  export declare const getUxType: () => "desktop" | "mobile";
4
+ export declare const isTouchDevice: () => boolean;
5
+ export declare const isTabletWithoutAndroid: () => boolean;
4
6
  export declare const mobile: {
5
7
  Android: () => boolean;
6
- S10: () => boolean;
7
- J7: () => boolean;
8
- BlackBerry: () => boolean;
9
8
  iOS: () => boolean;
10
- Opera: () => boolean;
11
- Windows: () => boolean;
12
- Xiaomi: () => boolean;
13
- J7Prime: () => boolean;
14
- J7Star: () => boolean;
15
- Alcatel1x: () => boolean;
16
- LenovoVibeB: () => boolean;
17
- MiA3: () => boolean;
18
- Redmi7: () => boolean;
19
- G7: () => boolean;
20
- HuaweiY9: () => boolean;
21
- HuaweiP30: () => boolean;
22
- J4: () => boolean;
23
- S5: () => boolean;
24
- E5: () => boolean;
25
- E5Play: () => boolean;
26
9
  isIpad: () => boolean;
27
- isFBInAppBrowser: () => RegExpMatchArray;
28
- isInstagramAppBrowser: () => RegExpMatchArray;
10
+ isFBInAppBrowser: () => boolean;
11
+ isInstagramAppBrowser: () => boolean;
29
12
  any: () => boolean;
30
- isIOS12: () => boolean;
31
13
  isDesktop: () => boolean;
32
14
  isAppleDevice: () => boolean;
33
15
  isBrowserSupported: () => boolean;
@@ -86,4 +86,5 @@ export declare const isFirefox: () => boolean;
86
86
  export declare function pollUntil<T>(promiseFunc: () => Promise<T>, checkCondition: (response: T) => boolean, interval: number): Promise<T>;
87
87
  export declare const validateCPF: (cpf: any) => boolean;
88
88
  export declare const maskDate: (value: string) => string;
89
+ export declare const deleteQueryParam: (queryParam: string) => void;
89
90
  export {};
@@ -1,17 +1,19 @@
1
1
  type FacingMode = 'user' | 'environment';
2
2
  export declare const killStream: (mediaStream: MediaStream, onlyVideo?: boolean) => void;
3
- export declare const selfieChecks: ({ confidence, isBright, hasLenses, hasFaceMask, hasClosedEyes }: {
3
+ export declare const selfieChecks: ({ confidence, isBright, hasLenses, hasFaceMask, hasClosedEyes, hasHeadCover }: {
4
4
  confidence: any;
5
5
  isBright: any;
6
6
  hasLenses: any;
7
7
  hasFaceMask: any;
8
8
  hasClosedEyes: any;
9
+ hasHeadCover: any;
9
10
  }) => {
10
11
  livenessPassed: boolean;
11
12
  brightnessPassed: any;
12
13
  lensesPassed: boolean;
13
14
  maskPassed: boolean;
14
15
  closedEyesPassed: boolean;
16
+ headCoverPassed: boolean;
15
17
  hasErrors: boolean;
16
18
  };
17
19
  export declare const logSelfieChecks: (response: any, checks: any, onLog: any, setNotificationMessage: any, t: any) => void;
@@ -1,5 +1,7 @@
1
1
  export default CapturePreview;
2
- declare function CapturePreview({ progress, finishCapture, captureSuccessful, onClose, message, fileType, imageBase64, isSelfie, isPassport, isPoa, shouldBlurImage, shouldRotate, ageAssurance, }: {
2
+ declare function CapturePreview({ timesCaptureFailed, numberOfTries, progress, finishCapture, captureSuccessful, onClose, message, fileType, imageBase64, isSelfie, isPassport, isPoa, shouldBlurImage, shouldRotate, ageAssurance, resumeAutocapture, }: {
3
+ timesCaptureFailed?: number;
4
+ numberOfTries?: number;
3
5
  progress?: number;
4
6
  finishCapture: any;
5
7
  captureSuccessful: any;
@@ -13,4 +15,5 @@ declare function CapturePreview({ progress, finishCapture, captureSuccessful, on
13
15
  shouldBlurImage?: boolean;
14
16
  shouldRotate?: boolean;
15
17
  ageAssurance?: boolean;
18
+ resumeAutocapture?: () => void;
16
19
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,6 @@
1
+ export declare const RetryButtonsContainer: import("styled-components").StyledComponent<"div", any, {
2
+ isDesktop: boolean;
3
+ }, never>;
1
4
  export declare const CaptureButtonContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
2
5
  export declare const Hidder: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
3
6
  export declare const WebcamContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -492,5 +492,6 @@ declare function create({ apiKey, apiURL, lang, encrypt, translations, theme: _t
492
492
  setUxType: (type: "desktop" | "mobile") => void;
493
493
  getOtpStatus: typeof getOtpStatus;
494
494
  getLocationSuggestions: typeof getLocationSuggestions;
495
+ initialize: () => Promise<void>;
495
496
  };
496
497
  export default create;
@@ -6,7 +6,7 @@ declare abstract class IdDetectorBase {
6
6
  protected currentCanvas: IncodeCanvas | null;
7
7
  abstract getOnCapturing(onCapturing: any): any;
8
8
  abstract detect(canvas: IncodeCanvas): Promise<void>;
9
- initialize({ onCapturing, onFarAway, onGlare, onBlur, onIDNotDetected, onMaskChange, onDetectionStarted, onSwitchToManualCapture, onIDTypeChange, idType, isFixedMask, isBlurCheckEnabled, isGlareCheckEnabled, pipelineProfile, autocaptureTimeout, }: {
9
+ initialize({ onCapturing, onFarAway, onGlare, onBlur, onIDNotDetected, onMaskChange, onDetectionStarted, onSwitchToManualCapture, onIDTypeChange, onIDSideChange, idType, isFixedMask, isBlurCheckEnabled, isGlareCheckEnabled, pipelineProfile, autocaptureTimeout, }: {
10
10
  onCapturing: any;
11
11
  onFarAway: any;
12
12
  onGlare: any;
@@ -16,6 +16,7 @@ declare abstract class IdDetectorBase {
16
16
  onDetectionStarted: any;
17
17
  onSwitchToManualCapture: any;
18
18
  onIDTypeChange: any;
19
+ onIDSideChange: any;
19
20
  idType: any;
20
21
  isFixedMask: boolean;
21
22
  isBlurCheckEnabled: boolean;
@@ -14,5 +14,5 @@ type SetupParams = {
14
14
  customHeaders?: AxiosRequestConfig['headers'];
15
15
  fingerprintApiKey: string;
16
16
  };
17
- declare const setup: ({ theme: _theme, clientId, lang, translations, apiKey, apiURL, tokboxApiKey, options, customHeaders, fingerprintApiKey, }: SetupParams) => void;
17
+ declare const setup: ({ theme: _theme, clientId, lang, translations, apiKey, apiURL, tokboxApiKey, options, customHeaders, fingerprintApiKey, }: SetupParams) => Promise<void>;
18
18
  export default setup;
@@ -115,7 +115,7 @@ declare class MlWasmJSApi {
115
115
  setFaceDetectionMode(type: WasmPipelineType, isVideoSelfie: boolean): Promise<void>;
116
116
  setFaceDetectionCallbacks(type: WasmPipelineType, onFarAway: Function, onTooClose: Function, onTooManyFaces: Function, onNoFace: Function, onCapture: Function, onCapturing: Function, onCenterFace: Function, onDark: Function, onBlur: Function, onFaceAngle: Function, onBestShot: Function, onLenses: Function, onMask: Function, onEyesClosed: Function, onHeadWear: Function, onSwitchToManualCapture: Function): Promise<void>;
117
117
  setIdCaptureThresholds(type: WasmPipelineType, blurThreshold: number, blurChangeThreshold: number, glareThreshold: number, clsThreshold: number, autocaptureInterval: Number): Promise<void>;
118
- setIdCaptureCallbacks(type: WasmPipelineType, onFarAway: Function, onDetectionStarted: Function, onMaskChange: Function, onBlur: Function, onGlare: Function, onCapturing: Function, onIDNotDetected: Function, onSwitchToManualCapture: Function, onIDTypeChange: Function): Promise<void>;
118
+ setIdCaptureCallbacks(type: WasmPipelineType, onFarAway: Function, onDetectionStarted: Function, onMaskChange: Function, onBlur: Function, onGlare: Function, onCapturing: Function, onIDNotDetected: Function, onSwitchToManualCapture: Function, onIDTypeChange: Function, onIDSideChange: Function): Promise<void>;
119
119
  setIdCaptureGeometryParams(type: WasmPipelineType, areaDown: number, areaUp: number, areaIOSPassportUp: number, areaIOSPassportDown: number, widthIOSUp: number, widthIOSDown: number, widthDown: number, widthUp: number, windowOuterWidth: number, windowOuterHeight: number, windowInnerWidth: number, windowInnerHeight: number): Promise<void>;
120
120
  setIdCaptureConfigParams(type: WasmPipelineType, isFixedMask: boolean, isIPhone14OrHigher: boolean, idType: string, isBlurCheckEnabled: boolean, isGlareCheckEnabled: boolean): Promise<void>;
121
121
  getVersions(): Promise<any>;