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.
Files changed (81) hide show
  1. package/dist/adapters/http-auth-adapter.d.ts +1 -5
  2. package/dist/auth/index.d.ts +2 -2
  3. package/dist/components/form/rhf-doct-phone-input.d.ts +2 -1
  4. package/dist/components/form/rhf-input-field.d.ts +2 -1
  5. package/dist/components/form/rhf-otp-input-field.d.ts +2 -1
  6. package/dist/components/layout/auth-layout-preset.d.ts +7 -2
  7. package/dist/components/layout/auth-layout-public.d.ts +8 -12
  8. package/dist/components/layout/auth-layout-wrapper.d.ts +39 -3
  9. package/dist/components/layout/auth-layout.d.ts +1 -1
  10. package/dist/components/layout/image-slider.d.ts +2 -2
  11. package/dist/components/layout/index.d.ts +1 -1
  12. package/dist/components/layout/main-layout.d.ts +2 -2
  13. package/dist/constants/layout-presets.d.ts +1 -5
  14. package/dist/core/auth-api-adapter.d.ts +1 -1
  15. package/dist/core/auth-context.d.ts +5 -5
  16. package/dist/core/auth-flow.d.ts +2 -2
  17. package/dist/core/auth-provider.d.ts +5 -3
  18. package/dist/core/auth-types.d.ts +1 -1
  19. package/dist/core/device-detection.d.ts +2 -6
  20. package/dist/core/sso-session.d.ts +2 -6
  21. package/dist/core/use-auth-flow.d.ts +2 -6
  22. package/dist/doct-ui-auth-kit.css +1 -1
  23. package/dist/hooks/use-login-entry-form.d.ts +8 -4
  24. package/dist/hooks/use-main-auth-page-handlers.d.ts +6 -5
  25. package/dist/hooks/use-otp-verification.d.ts +7 -4
  26. package/dist/hooks/use-repeat-login.d.ts +6 -4
  27. package/dist/hooks/use-signup-form.d.ts +8 -3
  28. package/dist/index.d.ts +11 -36
  29. package/dist/index.js +28 -27
  30. package/dist/pages/index.d.ts +4 -1
  31. package/dist/pages/login-entry/index.d.ts +3 -0
  32. package/dist/pages/login-entry/login-entry-page.d.ts +21 -0
  33. package/dist/pages/login-entry/login-entry.d.ts +21 -0
  34. package/dist/pages/main-login/index.d.ts +3 -0
  35. package/dist/pages/main-login/main-login-page.d.ts +16 -0
  36. package/dist/pages/main-login/main-login.d.ts +25 -0
  37. package/dist/pages/otp-verification/index.d.ts +3 -0
  38. package/dist/pages/otp-verification/otp-verification-page.d.ts +23 -0
  39. package/dist/pages/otp-verification/otp-verification.d.ts +22 -0
  40. package/dist/pages/repeat-login/index.d.ts +3 -0
  41. package/dist/pages/repeat-login/repeat-login-page.d.ts +24 -0
  42. package/dist/pages/repeat-login/repeat-login.d.ts +25 -0
  43. package/dist/pages/signup/index.d.ts +3 -0
  44. package/dist/pages/signup/signup-page.d.ts +6 -0
  45. package/dist/pages/signup/signup.d.ts +7 -0
  46. package/dist/pages.js +1 -1
  47. package/dist/signup-page-DBRzdhNj.js +1546 -0
  48. package/dist/types/{auth-api-adapter.d.ts → auth/auth-api-adapter.d.ts} +1 -5
  49. package/dist/types/{auth-provider.d.ts → auth/auth-provider.d.ts} +7 -4
  50. package/dist/types/auth/device-detection.d.ts +10 -0
  51. package/dist/types/{flow.d.ts → auth/flow.d.ts} +1 -4
  52. package/dist/types/auth/index.d.ts +9 -0
  53. package/dist/types/{auth-layout-types.d.ts → components/auth-layout-types.d.ts} +1 -1
  54. package/dist/types/components/forms.d.ts +68 -0
  55. package/dist/types/components/index.d.ts +7 -0
  56. package/dist/types/{layout-presets.d.ts → components/layout-presets.d.ts} +1 -6
  57. package/dist/types/{layout.d.ts → components/layout.d.ts} +1 -1
  58. package/dist/types/index.d.ts +4 -17
  59. package/dist/types/pages/index.d.ts +9 -0
  60. package/dist/types/{login-form.d.ts → pages/login-form.d.ts} +13 -6
  61. package/dist/types/{main-login.d.ts → pages/main-login.d.ts} +11 -0
  62. package/dist/types/{otp-verification.d.ts → pages/otp-verification.d.ts} +16 -6
  63. package/dist/types/{pages.d.ts → pages/pages.d.ts} +32 -35
  64. package/dist/types/{repeat-login.d.ts → pages/repeat-login.d.ts} +7 -6
  65. package/dist/types/{signup-form.d.ts → pages/signup-form.d.ts} +14 -7
  66. package/dist/utils/set-form-errors-from-zod.d.ts +1 -1
  67. package/dist/validations/schemas.d.ts +0 -4
  68. package/package.json +2 -2
  69. package/dist/pages/login-entry.d.ts +0 -42
  70. package/dist/pages/main-login.d.ts +0 -32
  71. package/dist/pages/otp-verification.d.ts +0 -45
  72. package/dist/pages/repeat-login.d.ts +0 -49
  73. package/dist/pages/signup.d.ts +0 -4
  74. package/dist/signup-DeeuWsoF.js +0 -1718
  75. package/dist/types/device-detection.d.ts +0 -7
  76. package/dist/types/forms.d.ts +0 -42
  77. /package/dist/{stories/components → components/common}/default-footer.d.ts +0 -0
  78. /package/dist/{stories/components → components/common}/enterprise-header.d.ts +0 -0
  79. /package/dist/{stories/components → components/common}/index.d.ts +0 -0
  80. /package/dist/types/{auth-types.d.ts → auth/auth-types.d.ts} +0 -0
  81. /package/dist/types/{sso-session.d.ts → auth/sso-session.d.ts} +0 -0
@@ -1,32 +0,0 @@
1
- import type { MainLoginPageProps } from '@/types';
2
- export type { MainLoginAppleProviderConfig, MainLoginGoogleProviderConfig, MainLoginPageProps, MainLoginPageProvidersConfig, } from '@/types';
3
- /**
4
- * Full MainLogin page with AuthLayoutWrapper, header, footer, and slider layout.
5
- * Includes default branding and layout configuration.
6
- *
7
- * @example
8
- * ```tsx
9
- * <MainLoginPage
10
- * onContinueWithMobile={() => navigate('/auth/phone')}
11
- * onContinueWithEmail={() => navigate('/auth/email')}
12
- * onContinueWithGoogle={() => navigate('/auth/google')}
13
- * onContinueWithApple={() => navigate('/auth/apple')}
14
- * />
15
- * ```
16
- */
17
- export declare const MainLoginPage: (props: Readonly<MainLoginPageProps>) => import("react/jsx-runtime").JSX.Element;
18
- /**
19
- * Login body component without layout wrapper.
20
- * Displays four authentication method buttons (Mobile, Email, Google, Apple).
21
- *
22
- * Use this when you need custom layout or when integrating with AuthFlow.
23
- *
24
- * @example
25
- * ```tsx
26
- * <MainLogin
27
- * onContinueWithMobile={() => navigate('/auth/phone')}
28
- * onContinueWithEmail={() => navigate('/auth/email')}
29
- * />
30
- * ```
31
- */
32
- export declare function MainLogin(props: Readonly<MainLoginPageProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,45 +0,0 @@
1
- import type { OtpVerificationPageProps, OtpVerificationProps } from '@/types';
2
- export type { OtpVerificationMode, OtpVerificationPageProps, OtpVerificationProps, } from '@/types';
3
- /**
4
- * Full OTP verification page with AuthLayoutWrapper and back button.
5
- * Use when rendering the OTP screen as a standalone page.
6
- *
7
- * @example Next.js: API in hook, redirect from consumer
8
- * ```tsx
9
- * <OtpVerificationPage
10
- * mode="phone"
11
- * recipientDisplay="+91 9825910X0X"
12
- * onBack={() => router.back()}
13
- * submitApi={(otp) => api.verifyOtp(otp)}
14
- * onSuccess={() => router.push('/dashboard')}
15
- * onResendCode={() => api.resendOtp()}
16
- * />
17
- * ```
18
- *
19
- * @example Sync callback (AuthFlow)
20
- * ```tsx
21
- * <OtpVerificationPage onSubmit={(otp) => actions.verifyOtp(otp)} ... />
22
- * ```
23
- */
24
- export declare function OtpVerificationPage(props: Readonly<OtpVerificationPageProps>): import("react/jsx-runtime").JSX.Element;
25
- /**
26
- * OTP verification form body without layout wrapper.
27
- * 6-digit OTP input, resend countdown, and submit. Use inside your own layout or AuthFlow.
28
- * Validation per edge cases 6, 7 (invalid/expired OTP); cursor focus on first OTP box (#26).
29
- *
30
- * @example With submitApi + onSuccess (consumer redirect)
31
- * ```tsx
32
- * <OtpVerification
33
- * mode="phone"
34
- * recipientDisplay="+91 9825910X0X"
35
- * submitApi={(otp) => api.verifyOtp(otp)}
36
- * onSuccess={() => router.push('/dashboard')}
37
- * />
38
- * ```
39
- *
40
- * @example Sync onSubmit (AuthFlow)
41
- * ```tsx
42
- * <OtpVerification onSubmit={(otp) => actions.verifyOtp(otp)} ... />
43
- * ```
44
- */
45
- export declare function OtpVerification(props: Readonly<OtpVerificationProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,49 +0,0 @@
1
- import type { RepeatLoginPageProps, RepeatLoginProps } from '@/types';
2
- export type { RepeatLoginPageProps, RepeatLoginProps } from '@/types';
3
- /**
4
- * Full Repeat Login page with AuthLayoutWrapper, logo, title, description, and footer.
5
- * Use when rendering the repeat login screen as a standalone page.
6
- *
7
- * @example Next.js: API in lib, redirect from consumer
8
- * ```tsx
9
- * <RepeatLoginPage
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
- * <RepeatLoginPage
20
- * onContinueWithLastMethod={() => actions.continueWithLastMethod()}
21
- * onUseAnotherMethod={() => actions.reset()}
22
- * />
23
- * ```
24
- */
25
- export declare function RepeatLoginPage(props: Readonly<RepeatLoginPageProps>): import("react/jsx-runtime").JSX.Element;
26
- /**
27
- * Repeat login body without layout wrapper.
28
- * Primary CTA (continue with last method) and secondary "Use another method" button.
29
- * When continueApi is provided, primary runs: continueApi() → onSuccess() (e.g. redirect).
30
- *
31
- * @example With continueApi + onSuccess (consumer redirect)
32
- * ```tsx
33
- * <RepeatLogin
34
- * lastUsedMethod="Mobile"
35
- * continueApi={() => api.validateSession()}
36
- * onSuccess={() => router.push('/dashboard')}
37
- * onUseAnotherMethod={() => resetFlow()}
38
- * />
39
- * ```
40
- *
41
- * @example Sync (AuthFlow)
42
- * ```tsx
43
- * <RepeatLogin
44
- * onContinueWithLastMethod={() => actions.continueWithLastMethod()}
45
- * onUseAnotherMethod={() => actions.reset()}
46
- * />
47
- * ```
48
- */
49
- export declare function RepeatLogin(props: Readonly<RepeatLoginProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import type { SignupPageFullProps, SignupPageProps } from '@/types';
2
- export type { SignupEntryMode, SignupPageFullProps, SignupPageProps, } from '@/types';
3
- export declare function SignupPage(props: Readonly<SignupPageFullProps>): import("react/jsx-runtime").JSX.Element;
4
- export declare function Signup(props: Readonly<SignupPageProps>): import("react/jsx-runtime").JSX.Element;