doct-ui-auth-kit 1.0.8 → 1.0.11
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/doct-ui-auth-kit.css +1 -1
- package/dist/index.js +1657 -1586
- package/dist/pages.js +1 -1
- package/dist/signup-page-B65Xmi2k.js +1629 -0
- package/package.json +8 -4
- package/dist/adapters/http-auth-adapter.d.ts +0 -8
- package/dist/adapters/index.d.ts +0 -1
- package/dist/auth/index.d.ts +0 -23
- package/dist/auth-methods/apple.d.ts +0 -19
- package/dist/auth-methods/google.d.ts +0 -5
- package/dist/auth-methods/index.d.ts +0 -2
- package/dist/auth-methods/use-google-auth.d.ts +0 -69
- package/dist/components/common/default-footer.d.ts +0 -5
- package/dist/components/common/enterprise-header.d.ts +0 -5
- package/dist/components/common/index.d.ts +0 -2
- package/dist/components/form/rhf-doct-phone-input.d.ts +0 -3
- package/dist/components/form/rhf-input-field.d.ts +0 -3
- package/dist/components/form/rhf-otp-input-field.d.ts +0 -3
- package/dist/components/layout/auth-layout-preset.d.ts +0 -30
- package/dist/components/layout/auth-layout-public.d.ts +0 -13
- package/dist/components/layout/auth-layout-wrapper.d.ts +0 -59
- package/dist/components/layout/auth-layout.d.ts +0 -89
- package/dist/components/layout/image-slider.d.ts +0 -28
- package/dist/components/layout/index.d.ts +0 -8
- package/dist/components/layout/main-layout.d.ts +0 -30
- package/dist/constants/demo-slider.d.ts +0 -14
- package/dist/constants/index.d.ts +0 -2
- package/dist/constants/layout-presets.d.ts +0 -6
- package/dist/core/auth-api-adapter.d.ts +0 -6
- package/dist/core/auth-context.d.ts +0 -17
- package/dist/core/auth-flow.d.ts +0 -5
- package/dist/core/auth-provider.d.ts +0 -8
- package/dist/core/auth-types.d.ts +0 -5
- package/dist/core/device-detection.d.ts +0 -15
- package/dist/core/index.d.ts +0 -11
- package/dist/core/sso-session.d.ts +0 -29
- package/dist/core/use-auth-flow.d.ts +0 -5
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/use-login-entry-form.d.ts +0 -12
- package/dist/hooks/use-main-auth-page-handlers.d.ts +0 -9
- package/dist/hooks/use-otp-verification.d.ts +0 -15
- package/dist/hooks/use-repeat-login.d.ts +0 -9
- package/dist/hooks/use-signup-form.d.ts +0 -12
- package/dist/index.d.ts +0 -11
- package/dist/pages/index.d.ts +0 -8
- package/dist/pages/login-entry/index.d.ts +0 -3
- package/dist/pages/login-entry/login-entry-page.d.ts +0 -21
- package/dist/pages/login-entry/login-entry.d.ts +0 -21
- package/dist/pages/main-login/index.d.ts +0 -3
- package/dist/pages/main-login/main-login-page.d.ts +0 -16
- package/dist/pages/main-login/main-login.d.ts +0 -25
- package/dist/pages/otp-verification/index.d.ts +0 -3
- package/dist/pages/otp-verification/otp-verification-page.d.ts +0 -23
- package/dist/pages/otp-verification/otp-verification.d.ts +0 -22
- package/dist/pages/repeat-login/index.d.ts +0 -3
- package/dist/pages/repeat-login/repeat-login-page.d.ts +0 -24
- package/dist/pages/repeat-login/repeat-login.d.ts +0 -25
- package/dist/pages/signup/index.d.ts +0 -3
- package/dist/pages/signup/signup-page.d.ts +0 -6
- package/dist/pages/signup/signup.d.ts +0 -7
- package/dist/signup-page-DBRzdhNj.js +0 -1546
- package/dist/types/auth/auth-api-adapter.d.ts +0 -39
- package/dist/types/auth/auth-provider.d.ts +0 -40
- package/dist/types/auth/auth-types.d.ts +0 -70
- package/dist/types/auth/device-detection.d.ts +0 -10
- package/dist/types/auth/flow.d.ts +0 -122
- package/dist/types/auth/index.d.ts +0 -9
- package/dist/types/auth/sso-session.d.ts +0 -33
- package/dist/types/components/auth-layout-types.d.ts +0 -94
- package/dist/types/components/forms.d.ts +0 -68
- package/dist/types/components/index.d.ts +0 -7
- package/dist/types/components/layout-presets.d.ts +0 -24
- package/dist/types/components/layout.d.ts +0 -57
- package/dist/types/index.d.ts +0 -7
- package/dist/types/pages/index.d.ts +0 -9
- package/dist/types/pages/login-form.d.ts +0 -56
- package/dist/types/pages/main-login.d.ts +0 -40
- package/dist/types/pages/otp-verification.d.ts +0 -40
- package/dist/types/pages/pages.d.ts +0 -133
- package/dist/types/pages/repeat-login.d.ts +0 -29
- package/dist/types/pages/signup-form.d.ts +0 -48
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/set-form-errors-from-zod.d.ts +0 -11
- package/dist/validations/index.d.ts +0 -6
- package/dist/validations/schemas.d.ts +0 -73
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { type EmailFormValues, type LoginEntryFormValues, type LoginEntryMode, type PhoneFormValues, type UseLoginEntryFormOptions, type UseLoginEntryFormReturn, useLoginEntryForm, } from './use-login-entry-form';
|
|
2
|
-
export { type MainAuthPageHandlers, type MainLoginAppleProviderConfig, type MainLoginGoogleProviderConfig, type MainLoginPageProvidersConfig, type UseMainAuthPageHandlersOptions, useMainAuthPageHandlers, } from './use-main-auth-page-handlers';
|
|
3
|
-
export { DEFAULT_OTP_TITLES, OTP_LENGTH, type OtpFormValues, type OtpVerificationMode, RESEND_COOLDOWN_EMAIL_SECONDS, RESEND_COOLDOWN_PHONE_SECONDS, type UseOtpVerificationOptions, type UseOtpVerificationReturn, useOtpVerification, } from './use-otp-verification';
|
|
4
|
-
export { type UseRepeatLoginOptions, type UseRepeatLoginReturn, useRepeatLogin, } from './use-repeat-login';
|
|
5
|
-
export { type SignupEmailFormValues, type SignupEntryMode, type SignupFormValues, type SignupPhoneFormValues, type UseSignupFormOptions, type UseSignupFormReturn, useSignupForm, } from './use-signup-form';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { UseLoginEntryFormOptions, UseLoginEntryFormReturn } from '../types';
|
|
2
|
-
export type { EmailFormValues, LoginEntryFormValues, LoginEntryMode, LoginEntrySubmitData, LoginEntrySuccessParams, PhoneFormValues, UseLoginEntryFormOptions, UseLoginEntryFormReturn, } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Form state and validation for the login entry screen (phone or email).
|
|
5
|
-
*
|
|
6
|
-
* **Dual submission pattern:**
|
|
7
|
-
* - `submitApi` (async): hook owns the flow — validate → submitApi(data) → onSuccess(). Future SSO API integration plugs in here.
|
|
8
|
-
* - `onSubmit` (sync): caller owns the flow — hook validates then hands data back (used by AuthFlow).
|
|
9
|
-
*
|
|
10
|
-
* **Validation flow:** RHF form data → Zod schema (loginSchemas[mode]) → setFormErrorsFromZod → field-level errors.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useLoginEntryForm({ mode, onSubmit, submitApi, onSuccess, onError, }: UseLoginEntryFormOptions): UseLoginEntryFormReturn;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MainAuthPageHandlers, UseMainAuthPageHandlersOptions } from '../types';
|
|
2
|
-
export type { MainAuthPageHandlers, MainLoginAppleProviderConfig, MainLoginGoogleProviderConfig, MainLoginPageProvidersConfig, UseMainAuthPageHandlersOptions, } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Centralizes Google/Apple OAuth and auth-method CTA handlers for the main login page.
|
|
5
|
-
* When `providers.google` / `providers.apple` are configured, the SDK runs the OAuth flow internally
|
|
6
|
-
* and calls `onCredential`; otherwise falls back to consumer-supplied overrides or no-op defaults.
|
|
7
|
-
* Consumer apps pass callbacks (e.g. `onContinueWithMobile`) to wire navigation.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useMainAuthPageHandlers(options?: Readonly<UseMainAuthPageHandlersOptions>): MainAuthPageHandlers;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OtpVerificationMode, UseOtpVerificationOptions, UseOtpVerificationReturn } from '../types';
|
|
2
|
-
export type { OtpFormValues, OtpVerificationMode, UseOtpVerificationOptions, UseOtpVerificationReturn, } from '../types';
|
|
3
|
-
/** Instruction line below recipient (Figma: "Kindly check your Email Inbox."). */
|
|
4
|
-
export declare const DEFAULT_OTP_INSTRUCTIONS: Record<OtpVerificationMode, string>;
|
|
5
|
-
export declare const DEFAULT_OTP_TITLES: Record<OtpVerificationMode, string>;
|
|
6
|
-
/** Re-export for consumers who import from hooks. */
|
|
7
|
-
export { getResendCooldownSeconds, OTP_LENGTH, RESEND_COOLDOWN_EMAIL_SECONDS, RESEND_COOLDOWN_PHONE_SECONDS, } from '../validations';
|
|
8
|
-
/**
|
|
9
|
-
* Form state, resend countdown, and validation for OTP verification.
|
|
10
|
-
*
|
|
11
|
-
* **Resend cooldown:** mode-dependent timer (60s phone / 120s email) blocks re-sends until elapsed.
|
|
12
|
-
* **Dual submission:** `submitApi` (async, hook owns flow) vs `onSubmit` (sync, caller owns flow).
|
|
13
|
-
* **Validation:** otpFormSchema ensures all 6 digits are present before submission.
|
|
14
|
-
*/
|
|
15
|
-
export declare function useOtpVerification({ mode, onSubmit, onResendCode, submitApi, onSuccess, onError, }: UseOtpVerificationOptions): UseOtpVerificationReturn;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UseRepeatLoginOptions, UseRepeatLoginReturn } from '../types';
|
|
2
|
-
export type { UseRepeatLoginOptions, UseRepeatLoginReturn } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Business logic for repeat login (device-based returning-user detection).
|
|
5
|
-
*
|
|
6
|
-
* **Dual submission:** `continueApi` (async, hook owns flow) vs `onContinueWithLastMethod` (sync, caller owns flow).
|
|
7
|
-
* Last-used method is read from localStorage by the provider and passed down as a prop.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useRepeatLogin(options?: UseRepeatLoginOptions): UseRepeatLoginReturn;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { UseSignupFormOptions, UseSignupFormReturn } from '../types';
|
|
2
|
-
export type { SignupEmailFormValues, SignupEntryMode, SignupForeignFormValues, SignupFormValues, SignupPhoneFormValues, SignupSubmitData, UseSignupFormOptions, UseSignupFormReturn, } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Form state and validation for the signup screen (full name + phone or email, or foreign: all three).
|
|
5
|
-
*
|
|
6
|
-
* **Dual submission pattern:**
|
|
7
|
-
* - `submitApi` (async): hook owns the flow — validate → submitApi(data) → onSuccess(). Future SSO profile completion plugs in here.
|
|
8
|
-
* - `onSubmit` (sync): caller owns the flow — hook validates then hands data back (used by AuthFlow).
|
|
9
|
-
*
|
|
10
|
-
* **Validation flow:** RHF form data → Zod schema (signupSchemas[mode]) → setFormErrorsFromZod → field-level errors.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useSignupForm({ mode, defaultPhone, onSubmit, submitApi, onSuccess, onError, }: UseSignupFormOptions): UseSignupFormReturn;
|
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { createHttpAuthAdapter } from './adapters';
|
|
2
|
-
export { Auth } from './auth';
|
|
3
|
-
export type { UseAppleSignInOptions, UseGoogleAuthOptions, UseGoogleAuthReturn, } from './auth-methods';
|
|
4
|
-
export { useAppleSignIn, useGoogleAuth } from './auth-methods';
|
|
5
|
-
export type { AuthLayoutPresetProps, AuthLayoutType, AuthLayoutWrapperProps, } from './components/layout';
|
|
6
|
-
export { AuthLayout, AuthLayoutPreset, AuthLayoutWrapper, ImageSlider, MainLayout, } from './components/layout';
|
|
7
|
-
export * from './core';
|
|
8
|
-
export * from './hooks';
|
|
9
|
-
export type { LoginEntryPageProps, LoginEntryProps, MainLoginPageProps, MainLoginPageProvidersConfig, OtpVerificationPageProps, OtpVerificationProps, RepeatLoginPageProps, RepeatLoginProps, SignupPageFullProps, SignupPageProps, } from './pages';
|
|
10
|
-
export { LoginEntry, LoginEntryPage, MainLogin, MainLoginPage, OtpVerification, OtpVerificationPage, RepeatLogin, RepeatLoginPage, Signup, SignupPage, } from './pages';
|
|
11
|
-
export * from './types';
|
package/dist/pages/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Page components barrel: *Page = full page with layout, bare name = form-only for composition.
|
|
3
|
-
*/
|
|
4
|
-
export { LoginEntry, LoginEntryPage, type LoginEntryMode, type LoginEntryPageProps, type LoginEntryProps, } from './login-entry';
|
|
5
|
-
export { MainLogin, type MainLoginAppleProviderConfig, type MainLoginGoogleProviderConfig, MainLoginPage, type MainLoginPageProps, type MainLoginPageProvidersConfig, } from './main-login';
|
|
6
|
-
export { OtpVerification, type OtpVerificationMode, OtpVerificationPage, type OtpVerificationPageProps, type OtpVerificationProps, } from './otp-verification';
|
|
7
|
-
export { RepeatLogin, RepeatLoginPage, type RepeatLoginPageProps, type RepeatLoginProps, } from './repeat-login';
|
|
8
|
-
export { Signup, SignupPage, type SignupPageFullProps, type SignupPageProps, } from './signup';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { LoginEntryPageProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Full LoginEntry page with AuthLayoutWrapper, back button, and slider/standalone layout.
|
|
4
|
-
* Use when rendering the login entry screen as a standalone page.
|
|
5
|
-
*
|
|
6
|
-
* @example Next.js: API call in hook, redirect with mode + recipient for OTP page
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <LoginEntryPage
|
|
9
|
-
* mode="phone"
|
|
10
|
-
* onBack={() => router.back()}
|
|
11
|
-
* submitApi={(data) => api.sendOtp(data)}
|
|
12
|
-
* onSuccess={(params) => router.push(`/otp?mode=${params.mode}&recipient=${encodeURIComponent(params.recipient)}`)}
|
|
13
|
-
* />
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @example Sync callback (caller owns API)
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <LoginEntryPage mode="phone" onSubmit={(data) => sendOtp(data)} />
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare function LoginEntryPage(props: Readonly<LoginEntryPageProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { LoginEntryProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Login entry form body without layout wrapper.
|
|
4
|
-
* Single form for phone or email based on mode. Use inside your own layout or AuthFlow.
|
|
5
|
-
* Validation per PRODUCT_PROTOCOLS and edge cases 3–5, 18; cursor focus on first field (#26).
|
|
6
|
-
*
|
|
7
|
-
* @example With AuthFlow (sync onSubmit)
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <LoginEntry mode="phone" onSubmit={(data) => actions.submitIdentifier(data)} />
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @example Standalone Next.js (API + redirect in hook)
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <LoginEntry
|
|
15
|
-
* mode="phone"
|
|
16
|
-
* submitApi={(data) => api.sendOtp(data)}
|
|
17
|
-
* onSuccess={() => router.push('/otp')}
|
|
18
|
-
* />
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare function LoginEntry(props: Readonly<LoginEntryProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MainLoginPageProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Full MainLogin page with AuthLayoutWrapper, header, footer, and slider layout.
|
|
4
|
-
* Includes default branding and layout configuration.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <MainLoginPage
|
|
9
|
-
* onContinueWithMobile={() => navigate('/auth/phone')}
|
|
10
|
-
* onContinueWithEmail={() => navigate('/auth/email')}
|
|
11
|
-
* onContinueWithGoogle={() => navigate('/auth/google')}
|
|
12
|
-
* onContinueWithApple={() => navigate('/auth/apple')}
|
|
13
|
-
* />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare const MainLoginPage: (props: Readonly<MainLoginPageProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MainAuthPageHandlers, MainLoginPageProps } from '../../types';
|
|
2
|
-
interface MainLoginPageBodyProps {
|
|
3
|
-
handlers: MainAuthPageHandlers;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Renders the main login form body with four authentication options.
|
|
7
|
-
* Each button triggers its corresponding handler from the handlers prop.
|
|
8
|
-
*/
|
|
9
|
-
export declare const MainLoginPageBody: ({ handlers, }: Readonly<MainLoginPageBodyProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* Login body component without layout wrapper.
|
|
12
|
-
* Displays four authentication method buttons (Mobile, Email, Google, Apple).
|
|
13
|
-
*
|
|
14
|
-
* Use this when you need custom layout or when integrating with AuthFlow.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <MainLogin
|
|
19
|
-
* onContinueWithMobile={() => navigate('/auth/phone')}
|
|
20
|
-
* onContinueWithEmail={() => navigate('/auth/email')}
|
|
21
|
-
* />
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function MainLogin(props: Readonly<MainLoginPageProps>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OtpVerificationPageProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Full OTP verification page with AuthLayoutWrapper and back button.
|
|
4
|
-
* Use when rendering the OTP screen as a standalone page.
|
|
5
|
-
*
|
|
6
|
-
* @example Next.js: API in hook, redirect from consumer
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <OtpVerificationPage
|
|
9
|
-
* mode="phone"
|
|
10
|
-
* recipientDisplay="+91 9825910X0X"
|
|
11
|
-
* onBack={() => router.back()}
|
|
12
|
-
* submitApi={(otp) => api.verifyOtp(otp)}
|
|
13
|
-
* onSuccess={() => router.push('/dashboard')}
|
|
14
|
-
* onResendCode={() => api.resendOtp()}
|
|
15
|
-
* />
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @example Sync callback (AuthFlow)
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <OtpVerificationPage onSubmit={(otp) => actions.verifyOtp(otp)} ... />
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function OtpVerificationPage(props: Readonly<OtpVerificationPageProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OtpVerificationProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* OTP verification form body without layout wrapper.
|
|
4
|
-
* 6-digit OTP input, resend countdown, and submit. Use inside your own layout or AuthFlow.
|
|
5
|
-
* Validation per edge cases 6, 7 (invalid/expired OTP); cursor focus on first OTP box (#26).
|
|
6
|
-
*
|
|
7
|
-
* @example With submitApi + onSuccess (consumer redirect)
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <OtpVerification
|
|
10
|
-
* mode="phone"
|
|
11
|
-
* recipientDisplay="+91 9825910X0X"
|
|
12
|
-
* submitApi={(otp) => api.verifyOtp(otp)}
|
|
13
|
-
* onSuccess={() => router.push('/dashboard')}
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @example Sync onSubmit (AuthFlow)
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <OtpVerification onSubmit={(otp) => actions.verifyOtp(otp)} ... />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function OtpVerification(props: Readonly<OtpVerificationProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { RepeatLoginPageProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Full Repeat Login page with AuthLayoutWrapper, logo, title, description, and footer.
|
|
4
|
-
* Use when rendering the repeat login screen as a standalone page.
|
|
5
|
-
*
|
|
6
|
-
* @example Next.js: API in lib, redirect from consumer
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <RepeatLoginPage
|
|
9
|
-
* lastUsedMethod="Mobile"
|
|
10
|
-
* continueApi={() => api.validateSession()}
|
|
11
|
-
* onSuccess={() => router.push('/dashboard')}
|
|
12
|
-
* onUseAnotherMethod={() => resetFlow()}
|
|
13
|
-
* />
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @example Sync (AuthFlow)
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <RepeatLoginPage
|
|
19
|
-
* onContinueWithLastMethod={() => actions.continueWithLastMethod()}
|
|
20
|
-
* onUseAnotherMethod={() => actions.reset()}
|
|
21
|
-
* />
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function RepeatLoginPage(props: Readonly<RepeatLoginPageProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { RepeatLoginProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Repeat login body without layout wrapper.
|
|
4
|
-
* Primary CTA (continue with last method) and secondary "Use another method" button.
|
|
5
|
-
* When continueApi is provided, primary runs: continueApi() → onSuccess() (e.g. redirect).
|
|
6
|
-
*
|
|
7
|
-
* @example With continueApi + onSuccess (consumer redirect)
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <RepeatLogin
|
|
10
|
-
* lastUsedMethod="Mobile"
|
|
11
|
-
* continueApi={() => api.validateSession()}
|
|
12
|
-
* onSuccess={() => router.push('/dashboard')}
|
|
13
|
-
* onUseAnotherMethod={() => resetFlow()}
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @example Sync (AuthFlow)
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <RepeatLogin
|
|
20
|
-
* onContinueWithLastMethod={() => actions.continueWithLastMethod()}
|
|
21
|
-
* onUseAnotherMethod={() => actions.reset()}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare function RepeatLogin(props: Readonly<RepeatLoginProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SignupPageFullProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Full signup page: AuthLayoutWrapper + logo + title + description + {@link Signup} form.
|
|
4
|
-
* Use when rendering signup as a standalone route. For embedding in a custom layout, use {@link Signup} directly.
|
|
5
|
-
*/
|
|
6
|
-
export declare function SignupPage(props: Readonly<SignupPageFullProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SignupPageProps } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Form-only signup component (no layout wrapper). Use inside a custom layout or AuthFlow.
|
|
4
|
-
* Supports `submitApi` (async, hook-driven — future SSO profile completion plugs in here)
|
|
5
|
-
* and `onSubmit` (sync, caller-driven via AuthFlow actions).
|
|
6
|
-
*/
|
|
7
|
-
export declare function Signup(props: Readonly<SignupPageProps>): import("react/jsx-runtime").JSX.Element;
|