@incodetech/welcome 1.85.0-20251121161338.0 → 1.85.0-20251121162635.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.
@@ -4,6 +4,7 @@ type EnterCurpProps = {
4
4
  token: string;
5
5
  uiConfig?: UiConfig;
6
6
  onSuccess?: () => void;
7
+ curpValidationRetries?: number;
7
8
  };
8
- declare const EnterCurp: ({ token, uiConfig, onSuccess }: EnterCurpProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const EnterCurp: ({ token, uiConfig, onSuccess, curpValidationRetries, }: EnterCurpProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export default EnterCurp;
@@ -4,6 +4,9 @@ type GenerateCurpProps = {
4
4
  token: string;
5
5
  uiConfig?: UiConfig;
6
6
  onSuccess?: () => void;
7
+ curpValidationRetries?: number;
8
+ retryCount: number;
9
+ setRetryCount: (count: number) => void;
7
10
  };
8
- declare const GenerateCurp: ({ token, uiConfig, onSuccess, }: GenerateCurpProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const GenerateCurp: ({ token, uiConfig, onSuccess, curpValidationRetries, retryCount, setRetryCount, }: GenerateCurpProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export default GenerateCurp;
@@ -1,5 +1,6 @@
1
1
  export default renderEnterCurp;
2
- declare function renderEnterCurp(element: any, { onSuccess, token }: {
2
+ declare function renderEnterCurp(element: any, { onSuccess, token, curpValidationRetries }: {
3
3
  onSuccess: any;
4
4
  token: any;
5
+ curpValidationRetries: any;
5
6
  }): void;
@@ -6,6 +6,7 @@ export type { FlowRendererError } from './types';
6
6
  export type FlowConfig = {
7
7
  mobileQrRedirectUrl?: string;
8
8
  forceSkipRedirect?: boolean;
9
+ curpValidationRetries?: number;
9
10
  };
10
11
  type FlowRendererProps = {
11
12
  token: string;
@@ -16,7 +17,7 @@ type FlowRendererProps = {
16
17
  onEvent?: (event: FlowEvent) => void;
17
18
  flow?: Flow;
18
19
  uiConfig?: UiConfig;
19
- config?: FlowConfig;
20
+ startConfig?: FlowConfig;
20
21
  authHint?: string;
21
22
  };
22
- export declare function FlowRenderer({ token, onError, onSuccess, onEvent, flow: flowFromProps, uiConfig, config, authHint, }: FlowRendererProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function FlowRenderer({ token, onError, onSuccess, onEvent, flow: flowFromProps, uiConfig, startConfig, authHint, }: FlowRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { FlowModuleConfig } from '../services/flowService';
2
2
  import { ModuleProps } from './types';
3
3
 
4
- export default function CurpModule({ onSuccess, token, }: ModuleProps<FlowModuleConfig['CURP_VALIDATION']>): import("react/jsx-runtime").JSX.Element;
4
+ export default function CurpModule({ onSuccess, token, startConfig, }: ModuleProps<FlowModuleConfig['CURP_VALIDATION']>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { UiConfig } from '../../ui/types';
2
+ import { FlowConfig } from '../Flow';
2
3
  import { Flow, FlowModule, FlowModuleConfig } from '../services/flowService';
3
4
  import { FlowEvent, FlowRendererError } from '../types';
4
5
 
@@ -13,7 +14,8 @@ type ModuleRendererProps<K extends keyof FlowModuleConfig> = {
13
14
  flow: Flow;
14
15
  uiConfig?: UiConfig;
15
16
  finishWithError: (err: FlowRendererError) => void;
17
+ startConfig: FlowConfig;
16
18
  authHint?: string;
17
19
  };
18
- declare function ModuleRenderer<K extends keyof FlowModuleConfig>({ module, onSuccess, emit, token, onError, flow, uiConfig, finishWithError, authHint, }: ModuleRendererProps<K>): import("react/jsx-runtime").JSX.Element;
20
+ declare function ModuleRenderer<K extends keyof FlowModuleConfig>({ module, onSuccess, emit, token, onError, flow, uiConfig, finishWithError, startConfig, authHint, }: ModuleRendererProps<K>): import("react/jsx-runtime").JSX.Element;
19
21
  export { ModuleRenderer };
@@ -1,4 +1,5 @@
1
1
  import { UiConfig } from '../../ui/types';
2
+ import { FlowConfig } from '../Flow';
2
3
  import { Flow } from '../services/flowService';
3
4
  import { FlowEvent, FlowRendererError } from '../types';
4
5
 
@@ -11,5 +12,6 @@ export type ModuleProps<TConfig> = {
11
12
  flow: Flow;
12
13
  uiConfig?: UiConfig;
13
14
  finishWithError: (err: FlowRendererError) => void;
15
+ startConfig?: FlowConfig;
14
16
  authHint?: string;
15
17
  };
@@ -1,8 +1,8 @@
1
1
  import { Session } from '../../../../types/src';
2
2
 
3
3
  type CurpProps = {
4
- token: Session;
4
+ session: Session;
5
5
  goNext: () => void;
6
6
  };
7
- declare const Curp: ({ token, goNext }: CurpProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const Curp: ({ session, goNext }: CurpProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default Curp;