doct-ui-auth-kit 1.0.6 → 1.0.8
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/adapters/http-auth-adapter.d.ts +1 -5
- package/dist/auth/index.d.ts +2 -2
- package/dist/components/form/rhf-doct-phone-input.d.ts +2 -1
- package/dist/components/form/rhf-input-field.d.ts +2 -1
- package/dist/components/form/rhf-otp-input-field.d.ts +2 -1
- package/dist/components/layout/auth-layout-preset.d.ts +7 -2
- package/dist/components/layout/auth-layout-public.d.ts +8 -12
- package/dist/components/layout/auth-layout-wrapper.d.ts +39 -3
- package/dist/components/layout/auth-layout.d.ts +1 -1
- package/dist/components/layout/image-slider.d.ts +2 -2
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/main-layout.d.ts +2 -2
- package/dist/constants/layout-presets.d.ts +1 -5
- package/dist/core/auth-api-adapter.d.ts +1 -1
- package/dist/core/auth-context.d.ts +5 -5
- package/dist/core/auth-flow.d.ts +2 -2
- package/dist/core/auth-provider.d.ts +5 -3
- package/dist/core/auth-types.d.ts +1 -1
- package/dist/core/device-detection.d.ts +2 -6
- package/dist/core/sso-session.d.ts +2 -6
- package/dist/core/use-auth-flow.d.ts +2 -6
- package/dist/doct-ui-auth-kit.css +1 -1
- package/dist/hooks/use-login-entry-form.d.ts +8 -4
- package/dist/hooks/use-main-auth-page-handlers.d.ts +6 -5
- package/dist/hooks/use-otp-verification.d.ts +7 -4
- package/dist/hooks/use-repeat-login.d.ts +6 -4
- package/dist/hooks/use-signup-form.d.ts +8 -3
- package/dist/index.d.ts +11 -36
- package/dist/index.js +28 -27
- package/dist/pages/index.d.ts +4 -1
- package/dist/pages/login-entry/index.d.ts +3 -0
- package/dist/pages/login-entry/login-entry-page.d.ts +21 -0
- package/dist/pages/login-entry/login-entry.d.ts +21 -0
- package/dist/pages/main-login/index.d.ts +3 -0
- package/dist/pages/main-login/main-login-page.d.ts +16 -0
- package/dist/pages/main-login/main-login.d.ts +25 -0
- package/dist/pages/otp-verification/index.d.ts +3 -0
- package/dist/pages/otp-verification/otp-verification-page.d.ts +23 -0
- package/dist/pages/otp-verification/otp-verification.d.ts +22 -0
- package/dist/pages/repeat-login/index.d.ts +3 -0
- package/dist/pages/repeat-login/repeat-login-page.d.ts +24 -0
- package/dist/pages/repeat-login/repeat-login.d.ts +25 -0
- package/dist/pages/signup/index.d.ts +3 -0
- package/dist/pages/signup/signup-page.d.ts +6 -0
- package/dist/pages/signup/signup.d.ts +7 -0
- package/dist/pages.js +1 -1
- package/dist/signup-page-DBRzdhNj.js +1546 -0
- package/dist/types/{auth-api-adapter.d.ts → auth/auth-api-adapter.d.ts} +1 -5
- package/dist/types/{auth-provider.d.ts → auth/auth-provider.d.ts} +7 -4
- package/dist/types/auth/device-detection.d.ts +10 -0
- package/dist/types/{flow.d.ts → auth/flow.d.ts} +1 -4
- package/dist/types/auth/index.d.ts +9 -0
- package/dist/types/{auth-layout-types.d.ts → components/auth-layout-types.d.ts} +1 -1
- package/dist/types/components/forms.d.ts +68 -0
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/{layout-presets.d.ts → components/layout-presets.d.ts} +1 -6
- package/dist/types/{layout.d.ts → components/layout.d.ts} +1 -1
- package/dist/types/index.d.ts +4 -17
- package/dist/types/pages/index.d.ts +9 -0
- package/dist/types/{login-form.d.ts → pages/login-form.d.ts} +13 -6
- package/dist/types/{main-login.d.ts → pages/main-login.d.ts} +11 -0
- package/dist/types/{otp-verification.d.ts → pages/otp-verification.d.ts} +16 -6
- package/dist/types/{pages.d.ts → pages/pages.d.ts} +32 -35
- package/dist/types/{repeat-login.d.ts → pages/repeat-login.d.ts} +7 -6
- package/dist/types/{signup-form.d.ts → pages/signup-form.d.ts} +14 -7
- package/dist/utils/set-form-errors-from-zod.d.ts +1 -1
- package/dist/validations/schemas.d.ts +0 -4
- package/package.json +2 -2
- package/dist/pages/login-entry.d.ts +0 -42
- package/dist/pages/main-login.d.ts +0 -32
- package/dist/pages/otp-verification.d.ts +0 -45
- package/dist/pages/repeat-login.d.ts +0 -49
- package/dist/pages/signup.d.ts +0 -4
- package/dist/signup-DeeuWsoF.js +0 -1718
- package/dist/types/device-detection.d.ts +0 -7
- package/dist/types/forms.d.ts +0 -42
- /package/dist/{stories/components → components/common}/default-footer.d.ts +0 -0
- /package/dist/{stories/components → components/common}/enterprise-header.d.ts +0 -0
- /package/dist/{stories/components → components/common}/index.d.ts +0 -0
- /package/dist/types/{auth-types.d.ts → auth/auth-types.d.ts} +0 -0
- /package/dist/types/{sso-session.d.ts → auth/sso-session.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as G, Fragment as Kt } from "react/jsx-runtime";
|
|
3
|
-
import { f as le, A as Zr, g as Xr, u as Jr, d as zr, e as Qr, c as ei, a as Yt, b as ti, O as ni, S as ri } from "./signup-
|
|
4
|
-
import { D as
|
|
3
|
+
import { f as le, A as Zr, g as Xr, u as Jr, d as zr, e as Qr, c as ei, a as Yt, b as ti, O as ni, S as ri } from "./signup-page-DBRzdhNj.js";
|
|
4
|
+
import { D as o1, I as d1, L as u1, h as l1, M as s1, i as c1, j as f1, k as $1, R as p1, l as y1, m as h1, n as m1, o as g1, p as v1, q as b1 } from "./signup-page-DBRzdhNj.js";
|
|
5
5
|
import N, { createContext as ii, useContext as tr, useRef as nr, useCallback as ae, useMemo as We, useReducer as ai, useEffect as oi } from "react";
|
|
6
6
|
import { DoctCircularProgress as di } from "docthub-core-components";
|
|
7
|
+
import "react-hook-form";
|
|
7
8
|
function Ft(e) {
|
|
8
9
|
return e.replace(/\/+$/, "");
|
|
9
10
|
}
|
|
@@ -32,7 +33,7 @@ async function ui(e, t) {
|
|
|
32
33
|
}
|
|
33
34
|
return r.json();
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function Ql(e) {
|
|
36
37
|
const t = Ft(e), r = `${t.endsWith("/api") ? t : `${t}/api`}/auth`;
|
|
37
38
|
return {
|
|
38
39
|
async sendOtp(i) {
|
|
@@ -132,7 +133,7 @@ function fi() {
|
|
|
132
133
|
throw new Error("useAuthFlow must be used within SSOAuthProvider");
|
|
133
134
|
return e;
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function e1() {
|
|
136
137
|
const e = le.c(6), t = tr(Mt);
|
|
137
138
|
if (!t)
|
|
138
139
|
throw new Error("useAuthSession must be used within SSOAuthProvider");
|
|
@@ -6569,7 +6570,7 @@ function Gl() {
|
|
|
6569
6570
|
}
|
|
6570
6571
|
};
|
|
6571
6572
|
}
|
|
6572
|
-
function
|
|
6573
|
+
function t1() {
|
|
6573
6574
|
return {
|
|
6574
6575
|
get() {
|
|
6575
6576
|
return null;
|
|
@@ -6580,7 +6581,7 @@ function e1() {
|
|
|
6580
6581
|
}
|
|
6581
6582
|
};
|
|
6582
6583
|
}
|
|
6583
|
-
function
|
|
6584
|
+
function n1(e, t) {
|
|
6584
6585
|
e.defaults.withCredentials = !0, e.interceptors.request.use((n) => {
|
|
6585
6586
|
const r = {
|
|
6586
6587
|
...n
|
|
@@ -7113,53 +7114,53 @@ function Yl(e) {
|
|
|
7113
7114
|
let n;
|
|
7114
7115
|
return t[0] !== e ? (n = /* @__PURE__ */ G(ir.Preset, { preset: "verification", children: /* @__PURE__ */ G(ni, { ...e }) }), t[0] = e, t[1] = n) : n = t[1], n;
|
|
7115
7116
|
}
|
|
7116
|
-
const
|
|
7117
|
+
const r1 = {
|
|
7117
7118
|
Provider: Hl,
|
|
7118
7119
|
Login: Vl,
|
|
7119
7120
|
Signup: Kl,
|
|
7120
7121
|
Otp: Yl
|
|
7121
7122
|
};
|
|
7122
7123
|
export {
|
|
7123
|
-
|
|
7124
|
+
r1 as Auth,
|
|
7124
7125
|
$i as AuthFlow,
|
|
7125
7126
|
Mt as AuthFlowContext,
|
|
7126
7127
|
ir as AuthLayout,
|
|
7127
7128
|
ci as AuthLayoutPreset,
|
|
7128
7129
|
Zr as AuthLayoutWrapper,
|
|
7129
|
-
|
|
7130
|
+
o1 as DEFAULT_OTP_TITLES,
|
|
7130
7131
|
Bl as INITIAL_STEP,
|
|
7131
|
-
|
|
7132
|
-
|
|
7132
|
+
d1 as ImageSlider,
|
|
7133
|
+
u1 as LoginEntry,
|
|
7133
7134
|
Yt as LoginEntryPage,
|
|
7134
|
-
|
|
7135
|
-
|
|
7135
|
+
l1 as MainLayout,
|
|
7136
|
+
s1 as MainLogin,
|
|
7136
7137
|
ti as MainLoginPage,
|
|
7137
|
-
|
|
7138
|
+
c1 as OTP_LENGTH,
|
|
7138
7139
|
ni as OtpVerification,
|
|
7139
7140
|
ei as OtpVerificationPage,
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7141
|
+
f1 as RESEND_COOLDOWN_EMAIL_SECONDS,
|
|
7142
|
+
$1 as RESEND_COOLDOWN_PHONE_SECONDS,
|
|
7143
|
+
p1 as RepeatLogin,
|
|
7143
7144
|
zr as RepeatLoginPage,
|
|
7144
7145
|
Hl as SSOAuthProvider,
|
|
7145
7146
|
ri as Signup,
|
|
7146
7147
|
Qr as SignupPage,
|
|
7147
7148
|
Wl as authFlowReducer,
|
|
7148
7149
|
kl as clearRepeatLoginInfo,
|
|
7149
|
-
|
|
7150
|
-
|
|
7150
|
+
n1 as createAxiosAuthInterceptors,
|
|
7151
|
+
Ql as createHttpAuthAdapter,
|
|
7151
7152
|
Ul as getInitialAuthFlowState,
|
|
7152
7153
|
pt as getRepeatLoginInfo,
|
|
7153
7154
|
Gl as localStorageTokenStorage,
|
|
7154
|
-
|
|
7155
|
+
t1 as serverCookieTokenStorage,
|
|
7155
7156
|
jl as setRepeatLoginInfo,
|
|
7156
|
-
|
|
7157
|
+
y1 as useAppleSignIn,
|
|
7157
7158
|
fi as useAuthFlow,
|
|
7158
|
-
|
|
7159
|
+
e1 as useAuthSession,
|
|
7159
7160
|
Jr as useGoogleAuth,
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7161
|
+
h1 as useLoginEntryForm,
|
|
7162
|
+
m1 as useMainAuthPageHandlers,
|
|
7163
|
+
g1 as useOtpVerification,
|
|
7164
|
+
v1 as useRepeatLogin,
|
|
7165
|
+
b1 as useSignupForm
|
|
7165
7166
|
};
|
package/dist/pages/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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';
|
|
2
5
|
export { MainLogin, type MainLoginAppleProviderConfig, type MainLoginGoogleProviderConfig, MainLoginPage, type MainLoginPageProps, type MainLoginPageProvidersConfig, } from './main-login';
|
|
3
6
|
export { OtpVerification, type OtpVerificationMode, OtpVerificationPage, type OtpVerificationPageProps, type OtpVerificationProps, } from './otp-verification';
|
|
4
7
|
export { RepeatLogin, RepeatLoginPage, type RepeatLoginPageProps, type RepeatLoginProps, } from './repeat-login';
|
|
@@ -0,0 +1,21 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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;
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
package/dist/pages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as e, a as n, M as g, b as s, O as o, c as t, R as p, d as L, S as r, e as P } from "./signup-
|
|
2
|
+
import { L as e, a as n, M as g, b as s, O as o, c as t, R as p, d as L, S as r, e as P } from "./signup-page-DBRzdhNj.js";
|
|
3
3
|
export {
|
|
4
4
|
e as LoginEntry,
|
|
5
5
|
n as LoginEntryPage,
|