@incodetech/welcome 1.85.0-20251105121333.0 → 1.85.0-20251105124000.0
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-welcome/src/create.d.ts +4 -1
- package/dist/incode-welcome/src/redirect/PhishingResistanceScreen.d.ts +2 -0
- package/dist/incode-welcome/src/redirect/Redirect.d.ts +4 -1
- package/dist/incode-welcome/src/workflows/Workflow.d.ts +8 -1
- package/dist/incode-welcome/src/workflows/executeWorkflow.d.ts +8 -1
- package/dist/incode-welcome/src/workflows/modules/RedirectToMobile.d.ts +2 -1
- package/dist/onBoarding.mjs +235 -124
- package/dist/onBoarding.umd.js +7 -7
- package/dist/types/src/index.d.ts +10 -0
- package/package.json +1 -1
|
@@ -549,6 +549,9 @@ tokboxApiKey, darkMode, hostingApp, unsafeMode, customHeaders, fingerprintApiKey
|
|
|
549
549
|
uiConfig?: import('./ui/types').UiConfig;
|
|
550
550
|
config?: import('./flow/Flow').FlowConfig;
|
|
551
551
|
}) => Promise<void>;
|
|
552
|
-
executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, qrUuid, uuid, redirectUrl, clientId, showFinishScreen, }: import('./workflows/executeWorkflow').WorkflowPropsWithToken | import('./workflows/executeWorkflow').WorkflowPropsWithoutToken) => Promise<void>;
|
|
552
|
+
executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, qrUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, }: import('./workflows/executeWorkflow').WorkflowPropsWithToken | import('./workflows/executeWorkflow').WorkflowPropsWithoutToken) => Promise<void>;
|
|
553
|
+
getWorkflowConfig: ({ token }: {
|
|
554
|
+
token: any;
|
|
555
|
+
}) => Promise<any>;
|
|
553
556
|
};
|
|
554
557
|
export default create;
|
|
@@ -5,6 +5,8 @@ export type PhishingResistanceScreenProps = {
|
|
|
5
5
|
token: string;
|
|
6
6
|
uiConfig: UiConfig;
|
|
7
7
|
redirectUrl: string;
|
|
8
|
+
allowSkipRedirect: boolean;
|
|
9
|
+
onContinueOnDesktop: () => void;
|
|
8
10
|
};
|
|
9
11
|
declare const PhishingResistanceScreen: FC<PhishingResistanceScreenProps>;
|
|
10
12
|
export default PhishingResistanceScreen;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LooseSession, OnboardingStatus } from '../../../types/src';
|
|
2
|
+
import { UiConfig } from '../ui/types';
|
|
2
3
|
|
|
3
4
|
export type RedirectProps = {
|
|
4
5
|
onSuccess: (res: {
|
|
@@ -20,6 +21,8 @@ export type RedirectProps = {
|
|
|
20
21
|
allowSkipRedirect?: boolean;
|
|
21
22
|
externalId?: string;
|
|
22
23
|
authHint?: string;
|
|
24
|
+
qrPhishingResistance?: boolean;
|
|
25
|
+
uiConfig?: UiConfig;
|
|
23
26
|
};
|
|
24
|
-
declare function Redirect({ session, onSuccess, url, showSms, assets, smsText, skipDesktopRedirect, allowSkipRedirect, externalId, expired, allowReEnrollment, authHint, qrPhishingResistance, }: RedirectProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function Redirect({ session, onSuccess, url, showSms, assets, smsText, skipDesktopRedirect, allowSkipRedirect, externalId, expired, allowReEnrollment, authHint, qrPhishingResistance, uiConfig, }: RedirectProps): import("react/jsx-runtime").JSX.Element;
|
|
25
28
|
export default Redirect;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Session } from '../../../types/src';
|
|
2
|
+
import { UiConfig } from '../ui/types';
|
|
2
3
|
import { CustomModuleCallback } from './types';
|
|
3
4
|
|
|
4
5
|
interface WorkflowType {
|
|
@@ -14,6 +15,8 @@ interface WorkflowWithTokenProps extends WorkflowType {
|
|
|
14
15
|
qrUuid?: string;
|
|
15
16
|
uuid?: string;
|
|
16
17
|
showFinishScreen?: boolean;
|
|
18
|
+
skipDesktopRedirect?: () => void;
|
|
19
|
+
authHint?: string;
|
|
17
20
|
}
|
|
18
21
|
interface WorkflowWithoutTokenProps extends WorkflowType {
|
|
19
22
|
token?: Session;
|
|
@@ -23,6 +26,10 @@ interface WorkflowWithoutTokenProps extends WorkflowType {
|
|
|
23
26
|
qrUuid?: string;
|
|
24
27
|
uuid?: string;
|
|
25
28
|
showFinishScreen?: boolean;
|
|
29
|
+
skipDesktopRedirect?: () => void;
|
|
30
|
+
authHint?: string;
|
|
31
|
+
uiConfig?: UiConfig;
|
|
32
|
+
qrPhishingResistance?: boolean;
|
|
26
33
|
}
|
|
27
34
|
type WorkflowProps = WorkflowWithTokenProps | WorkflowWithoutTokenProps;
|
|
28
35
|
export type WorkflowConfig = {
|
|
@@ -35,5 +42,5 @@ export type WorkflowConfig = {
|
|
|
35
42
|
qrPhishingResistance?: boolean;
|
|
36
43
|
disableUnsupportedBrowserScreen?: boolean;
|
|
37
44
|
};
|
|
38
|
-
declare const Workflow: ({ workflowId, token, onError, onSuccess, wfConfig, customModuleCallback, authHint, redirectUrl, qrUuid, uuid, showFinishScreen, }: WorkflowProps) => void | import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare const Workflow: ({ workflowId, token, onError, onSuccess, wfConfig, customModuleCallback, authHint, redirectUrl, qrUuid, uuid, showFinishScreen, skipDesktopRedirect, }: WorkflowProps) => void | import("react/jsx-runtime").JSX.Element;
|
|
39
46
|
export default Workflow;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Session } from '../../../types/src';
|
|
2
2
|
import { WorkflowConfig } from './Workflow';
|
|
3
|
+
import { UiConfig } from '../ui/types';
|
|
3
4
|
import { CustomModuleCallback } from './types';
|
|
4
5
|
|
|
5
6
|
interface BaseWorkflowProps {
|
|
@@ -9,6 +10,8 @@ interface BaseWorkflowProps {
|
|
|
9
10
|
onError: (msg?: string) => void;
|
|
10
11
|
customModuleCallback?: (data?: CustomModuleCallback) => void;
|
|
11
12
|
authHint?: string;
|
|
13
|
+
skipDesktopRedirect?: () => void;
|
|
14
|
+
uiConfig?: UiConfig;
|
|
12
15
|
}
|
|
13
16
|
export interface WorkflowPropsWithToken extends BaseWorkflowProps {
|
|
14
17
|
token: Session;
|
|
@@ -19,6 +22,8 @@ export interface WorkflowPropsWithToken extends BaseWorkflowProps {
|
|
|
19
22
|
qrUuid?: string;
|
|
20
23
|
uuid?: string;
|
|
21
24
|
showFinishScreen?: boolean;
|
|
25
|
+
skipDesktopRedirect?: () => void;
|
|
26
|
+
uiConfig?: UiConfig;
|
|
22
27
|
}
|
|
23
28
|
export interface WorkflowPropsWithoutToken extends BaseWorkflowProps {
|
|
24
29
|
token?: Session;
|
|
@@ -30,6 +35,8 @@ export interface WorkflowPropsWithoutToken extends BaseWorkflowProps {
|
|
|
30
35
|
uuid?: string;
|
|
31
36
|
apiKey?: string;
|
|
32
37
|
showFinishScreen?: boolean;
|
|
38
|
+
skipDesktopRedirect?: () => void;
|
|
39
|
+
uiConfig?: UiConfig;
|
|
33
40
|
}
|
|
34
|
-
declare const executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, qrUuid, uuid, redirectUrl, clientId, showFinishScreen, }: WorkflowPropsWithToken | WorkflowPropsWithoutToken) => Promise<void>;
|
|
41
|
+
declare const executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, qrUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, }: WorkflowPropsWithToken | WorkflowPropsWithoutToken) => Promise<void>;
|
|
35
42
|
export default executeWorkflow;
|
|
@@ -15,6 +15,7 @@ type Props = {
|
|
|
15
15
|
displayOnboardingResultOnDesktop?: boolean;
|
|
16
16
|
qrPhishingResistance?: boolean;
|
|
17
17
|
url?: string;
|
|
18
|
+
showFinishScreen?: boolean;
|
|
18
19
|
};
|
|
19
|
-
declare const RedirectToMobile: ({ session, disableSmsOption, skipDesktopRedirect, allowSkipRedirect, expired, allowReEnrollment, displayOnboardingResultOnDesktop, qrPhishingResistance, url, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare const RedirectToMobile: ({ session, disableSmsOption, skipDesktopRedirect, allowSkipRedirect, expired, allowReEnrollment, displayOnboardingResultOnDesktop, qrPhishingResistance, url, showFinishScreen, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export default RedirectToMobile;
|