@incodetech/welcome 1.85.0-20251112200601.0 → 1.85.0-rc.20251112170256
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/incode-utils/src/hooks.d.ts +1 -1
- package/dist/incode-welcome/src/Face/FaceCapture.d.ts +0 -1
- package/dist/incode-welcome/src/Face/detection/DetectionManager.d.ts +1 -0
- package/dist/incode-welcome/src/ID/CaptureId.d.ts +1 -2
- package/dist/incode-welcome/src/curp/EnterCurp.d.ts +4 -8
- package/dist/incode-welcome/src/curp/EnterCurpManager.d.ts +9 -0
- package/dist/incode-welcome/src/curp/EnterCurpV2.d.ts +9 -0
- package/dist/incode-welcome/src/faceMatch/FaceMatch.d.ts +4 -7
- package/dist/incode-welcome/src/faceMatch/FaceMatchManager.d.ts +11 -0
- package/dist/incode-welcome/src/faceMatch/FaceMatchV2.d.ts +11 -0
- package/dist/incode-welcome/src/faceMatch/index.d.ts +2 -0
- package/dist/incode-welcome/src/index.d.ts +0 -1
- package/dist/incode-welcome/src/setup.d.ts +3 -5
- package/dist/incode-welcome/src/wasmUtils/mlWasmJSApi.d.ts +1 -1
- package/dist/onBoarding.mjs +36893 -27426
- package/dist/onBoarding.umd.js +758 -354
- package/package.json +1 -1
- package/dist/incode-welcome/src/camera/useOnCameraPermissionChange.d.ts +0 -3
- package/dist/incode-welcome/src/contexts/ReadyToRenderContext.d.ts +0 -12
- /package/dist/incode-welcome/src/faceMatch/{FaceMatch.test.d.ts → FaceMatchV2.test.d.ts} +0 -0
|
@@ -16,7 +16,7 @@ export declare const useSessionState: (initialState: unknown) => any[];
|
|
|
16
16
|
export declare function usePermissions(): readonly [boolean, React.Dispatch<React.SetStateAction<boolean>>, boolean];
|
|
17
17
|
export declare function useInterval(callback: () => unknown, delay: number): number;
|
|
18
18
|
export declare function useTimeout(callback: () => unknown, delay: number): void;
|
|
19
|
-
export declare const useResize: () => void;
|
|
19
|
+
export declare const useResize: (isKiosk?: boolean) => void;
|
|
20
20
|
export declare const isPortrait: () => boolean;
|
|
21
21
|
export declare function useOrientation(): {
|
|
22
22
|
isRotated: boolean;
|
|
@@ -2,7 +2,6 @@ import { LooseSession } from '../../../types/src';
|
|
|
2
2
|
import { UiConfig } from '../ui/types';
|
|
3
3
|
import { FaceError, FaceSuccess } from './state/FaceFlowManager.types';
|
|
4
4
|
|
|
5
|
-
export type { FaceError, FaceSuccess };
|
|
6
5
|
export type FaceCaptureOnlyResponse = {
|
|
7
6
|
image: {
|
|
8
7
|
imageBase64: string;
|
|
@@ -2,7 +2,6 @@ import { LooseSession } from '../../../types/src';
|
|
|
2
2
|
import { UiConfig } from '../ui/types';
|
|
3
3
|
import { IdError, IdSuccess } from './IDV2/state/IdFlowManager.types';
|
|
4
4
|
|
|
5
|
-
export type { IdError, IdSuccess };
|
|
6
5
|
export type CaptureOnlyResponse = {
|
|
7
6
|
frontImage: {
|
|
8
7
|
imageBase64: string;
|
|
@@ -15,7 +14,7 @@ export type CaptureOnlyResponse = {
|
|
|
15
14
|
blob: Blob;
|
|
16
15
|
url: string;
|
|
17
16
|
metadata: string;
|
|
18
|
-
}
|
|
17
|
+
};
|
|
19
18
|
};
|
|
20
19
|
export type KioskOptions = {
|
|
21
20
|
enableKiosk?: boolean;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { UiConfig } from '../ui/types';
|
|
2
|
-
|
|
3
|
-
type EnterCurpProps = {
|
|
4
|
-
token: string;
|
|
5
|
-
uiConfig?: UiConfig;
|
|
6
|
-
onSuccess?: () => void;
|
|
7
|
-
};
|
|
8
|
-
declare const EnterCurp: ({ token, uiConfig, onSuccess }: EnterCurpProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
1
|
export default EnterCurp;
|
|
2
|
+
declare function EnterCurp({ onSuccess, token }: {
|
|
3
|
+
onSuccess: any;
|
|
4
|
+
token: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UiConfig } from '../ui/types';
|
|
2
|
+
|
|
3
|
+
type EnterCurpManagerProps = {
|
|
4
|
+
onSuccess: () => void;
|
|
5
|
+
token: string;
|
|
6
|
+
uiConfig?: UiConfig;
|
|
7
|
+
};
|
|
8
|
+
declare const EnterCurpManager: ({ onSuccess, token, uiConfig, }: EnterCurpManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default EnterCurpManager;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UiConfig } from '../ui/types';
|
|
2
|
+
|
|
3
|
+
type EnterCurpV2Props = {
|
|
4
|
+
token: string;
|
|
5
|
+
uiConfig?: UiConfig;
|
|
6
|
+
onSuccess?: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const EnterCurpV2: ({ token, uiConfig, onSuccess }: EnterCurpV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default EnterCurpV2;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { UiConfig } from '../ui/types';
|
|
2
|
-
|
|
3
1
|
type FaceMatchProps = {
|
|
2
|
+
onSuccess: () => void;
|
|
4
3
|
token: string;
|
|
5
|
-
|
|
6
|
-
isSecondId
|
|
7
|
-
existingUser?: boolean;
|
|
8
|
-
onSuccess?: () => void;
|
|
4
|
+
existingUser: boolean;
|
|
5
|
+
isSecondId: boolean;
|
|
9
6
|
};
|
|
10
|
-
declare const FaceMatch: ({
|
|
7
|
+
declare const FaceMatch: ({ onSuccess, token, existingUser, isSecondId, }: FaceMatchProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
8
|
export default FaceMatch;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiConfig } from '../ui/types';
|
|
2
|
+
|
|
3
|
+
type FaceMatchManagerProps = {
|
|
4
|
+
onSuccess: () => void;
|
|
5
|
+
token: string;
|
|
6
|
+
existingUser: boolean;
|
|
7
|
+
isSecondId: boolean;
|
|
8
|
+
uiConfig?: UiConfig;
|
|
9
|
+
};
|
|
10
|
+
declare const FaceMatchManager: ({ onSuccess, token, existingUser, isSecondId, uiConfig, }: FaceMatchManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default FaceMatchManager;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiConfig } from '../ui/types';
|
|
2
|
+
|
|
3
|
+
type FaceMatchV2Props = {
|
|
4
|
+
token: string;
|
|
5
|
+
uiConfig?: UiConfig;
|
|
6
|
+
isSecondId?: boolean;
|
|
7
|
+
existingUser?: boolean;
|
|
8
|
+
onSuccess?: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const FaceMatchV2: ({ token, uiConfig, isSecondId, existingUser, onSuccess, }: FaceMatchV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default FaceMatchV2;
|
|
@@ -136,4 +136,3 @@ export { default as getTheme } from './getTheme';
|
|
|
136
136
|
export { createTheme } from './ui/theme';
|
|
137
137
|
export { default as NameCapture } from './NameCapture';
|
|
138
138
|
export { initialize as initializeStatsig } from './statsig';
|
|
139
|
-
export { default as publishKeys } from './publishKeys';
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { IncodeOptions, IncodeTheme } from '../../types/src';
|
|
2
2
|
import { AxiosRequestConfig } from 'axios';
|
|
3
3
|
|
|
4
|
-
export type Translations = {
|
|
5
|
-
[key: string]: string | Translations;
|
|
6
|
-
};
|
|
7
4
|
export declare const initializeDetection: ({ forceProductionMode, disableIpify, sdkVersion, }?: {
|
|
8
5
|
forceProductionMode?: boolean;
|
|
9
6
|
sdkVersion?: string;
|
|
10
7
|
disableIpify?: boolean;
|
|
11
8
|
}) => Promise<void>;
|
|
12
|
-
export declare const setupI18n: (lang: string, translations: Translations) => Promise<void>;
|
|
13
9
|
type SetupParams = {
|
|
14
10
|
forceProductionMode?: boolean;
|
|
15
11
|
theme?: IncodeTheme;
|
|
16
12
|
clientId?: string;
|
|
17
13
|
lang?: string;
|
|
18
|
-
translations?:
|
|
14
|
+
translations?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
19
17
|
apiKey?: string;
|
|
20
18
|
apiURL?: string;
|
|
21
19
|
/** @deprecated This parameter is no longer used. The apiKey is now received from backend responses */
|
|
@@ -158,7 +158,7 @@ declare class MlWasmJSApi {
|
|
|
158
158
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
159
159
|
getCheck(): string;
|
|
160
160
|
getMetadata(): string;
|
|
161
|
-
prc(): Promise<void>;
|
|
161
|
+
prc(wtc: boolean): Promise<void>;
|
|
162
162
|
poc(output: object): Promise<void>;
|
|
163
163
|
pc(deviceId: string): Promise<void>;
|
|
164
164
|
private pipelineTypeToWasmEnum;
|