doct-ui-auth-kit 1.0.8 → 1.0.9

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 (80) hide show
  1. package/package.json +3 -2
  2. package/dist/adapters/http-auth-adapter.d.ts +0 -8
  3. package/dist/adapters/index.d.ts +0 -1
  4. package/dist/auth/index.d.ts +0 -23
  5. package/dist/auth-methods/apple.d.ts +0 -19
  6. package/dist/auth-methods/google.d.ts +0 -5
  7. package/dist/auth-methods/index.d.ts +0 -2
  8. package/dist/auth-methods/use-google-auth.d.ts +0 -69
  9. package/dist/components/common/default-footer.d.ts +0 -5
  10. package/dist/components/common/enterprise-header.d.ts +0 -5
  11. package/dist/components/common/index.d.ts +0 -2
  12. package/dist/components/form/rhf-doct-phone-input.d.ts +0 -3
  13. package/dist/components/form/rhf-input-field.d.ts +0 -3
  14. package/dist/components/form/rhf-otp-input-field.d.ts +0 -3
  15. package/dist/components/layout/auth-layout-preset.d.ts +0 -30
  16. package/dist/components/layout/auth-layout-public.d.ts +0 -13
  17. package/dist/components/layout/auth-layout-wrapper.d.ts +0 -59
  18. package/dist/components/layout/auth-layout.d.ts +0 -89
  19. package/dist/components/layout/image-slider.d.ts +0 -28
  20. package/dist/components/layout/index.d.ts +0 -8
  21. package/dist/components/layout/main-layout.d.ts +0 -30
  22. package/dist/constants/demo-slider.d.ts +0 -14
  23. package/dist/constants/index.d.ts +0 -2
  24. package/dist/constants/layout-presets.d.ts +0 -6
  25. package/dist/core/auth-api-adapter.d.ts +0 -6
  26. package/dist/core/auth-context.d.ts +0 -17
  27. package/dist/core/auth-flow.d.ts +0 -5
  28. package/dist/core/auth-provider.d.ts +0 -8
  29. package/dist/core/auth-types.d.ts +0 -5
  30. package/dist/core/device-detection.d.ts +0 -15
  31. package/dist/core/index.d.ts +0 -11
  32. package/dist/core/sso-session.d.ts +0 -29
  33. package/dist/core/use-auth-flow.d.ts +0 -5
  34. package/dist/hooks/index.d.ts +0 -5
  35. package/dist/hooks/use-login-entry-form.d.ts +0 -12
  36. package/dist/hooks/use-main-auth-page-handlers.d.ts +0 -9
  37. package/dist/hooks/use-otp-verification.d.ts +0 -15
  38. package/dist/hooks/use-repeat-login.d.ts +0 -9
  39. package/dist/hooks/use-signup-form.d.ts +0 -12
  40. package/dist/index.d.ts +0 -11
  41. package/dist/pages/index.d.ts +0 -8
  42. package/dist/pages/login-entry/index.d.ts +0 -3
  43. package/dist/pages/login-entry/login-entry-page.d.ts +0 -21
  44. package/dist/pages/login-entry/login-entry.d.ts +0 -21
  45. package/dist/pages/main-login/index.d.ts +0 -3
  46. package/dist/pages/main-login/main-login-page.d.ts +0 -16
  47. package/dist/pages/main-login/main-login.d.ts +0 -25
  48. package/dist/pages/otp-verification/index.d.ts +0 -3
  49. package/dist/pages/otp-verification/otp-verification-page.d.ts +0 -23
  50. package/dist/pages/otp-verification/otp-verification.d.ts +0 -22
  51. package/dist/pages/repeat-login/index.d.ts +0 -3
  52. package/dist/pages/repeat-login/repeat-login-page.d.ts +0 -24
  53. package/dist/pages/repeat-login/repeat-login.d.ts +0 -25
  54. package/dist/pages/signup/index.d.ts +0 -3
  55. package/dist/pages/signup/signup-page.d.ts +0 -6
  56. package/dist/pages/signup/signup.d.ts +0 -7
  57. package/dist/types/auth/auth-api-adapter.d.ts +0 -39
  58. package/dist/types/auth/auth-provider.d.ts +0 -40
  59. package/dist/types/auth/auth-types.d.ts +0 -70
  60. package/dist/types/auth/device-detection.d.ts +0 -10
  61. package/dist/types/auth/flow.d.ts +0 -122
  62. package/dist/types/auth/index.d.ts +0 -9
  63. package/dist/types/auth/sso-session.d.ts +0 -33
  64. package/dist/types/components/auth-layout-types.d.ts +0 -94
  65. package/dist/types/components/forms.d.ts +0 -68
  66. package/dist/types/components/index.d.ts +0 -7
  67. package/dist/types/components/layout-presets.d.ts +0 -24
  68. package/dist/types/components/layout.d.ts +0 -57
  69. package/dist/types/index.d.ts +0 -7
  70. package/dist/types/pages/index.d.ts +0 -9
  71. package/dist/types/pages/login-form.d.ts +0 -56
  72. package/dist/types/pages/main-login.d.ts +0 -40
  73. package/dist/types/pages/otp-verification.d.ts +0 -40
  74. package/dist/types/pages/pages.d.ts +0 -133
  75. package/dist/types/pages/repeat-login.d.ts +0 -29
  76. package/dist/types/pages/signup-form.d.ts +0 -48
  77. package/dist/utils/index.d.ts +0 -4
  78. package/dist/utils/set-form-errors-from-zod.d.ts +0 -11
  79. package/dist/validations/index.d.ts +0 -6
  80. package/dist/validations/schemas.d.ts +0 -73
@@ -1,73 +0,0 @@
1
- import { z } from 'zod';
2
- /** Capitalize first letter of each word (PRODUCT_PROTOCOLS #25 – Naming conventions). */
3
- export declare function capitalizeWords(value: string): string;
4
- /**
5
- * Full name: required, min 3 chars, trim, capitalize each word (Protocol #1, #25; Edge case 9).
6
- */
7
- export declare const fullNameSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
8
- /**
9
- * Phone: required; national part (after "-") digits only, length between 7 and 15.
10
- * Matches Storybook/react-hook-form validate: value format "countryCode-nationalNumber" (e.g. "91-9876543210").
11
- */
12
- export declare const phoneSchema: z.ZodString;
13
- /**
14
- * Email: required, valid format, trim and lowercase before save (Edge case 10).
15
- */
16
- export declare const emailSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
17
- export declare const signupPhoneFormSchema: z.ZodObject<{
18
- fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
19
- phone: z.ZodString;
20
- }, z.core.$strip>;
21
- export declare const signupEmailFormSchema: z.ZodObject<{
22
- fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
23
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
24
- }, z.core.$strip>;
25
- export declare const signupForeignFormSchema: z.ZodObject<{
26
- fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
27
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
28
- phone: z.ZodString;
29
- }, z.core.$strip>;
30
- export declare const signupSchemas: {
31
- readonly phone: z.ZodObject<{
32
- fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
33
- phone: z.ZodString;
34
- }, z.core.$strip>;
35
- readonly email: z.ZodObject<{
36
- fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
37
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
38
- }, z.core.$strip>;
39
- readonly foreign: z.ZodObject<{
40
- fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
41
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
42
- phone: z.ZodString;
43
- }, z.core.$strip>;
44
- };
45
- /**
46
- * Phone validation per PRODUCT_PROTOCOLS #2, #5 and edge cases 3–5.
47
- */
48
- export declare const loginPhoneFormSchema: z.ZodObject<{
49
- phone: z.ZodString;
50
- }, z.core.$strip>;
51
- /**
52
- * Email validation: trim and lowercase per edge case 10.
53
- */
54
- export declare const loginEmailFormSchema: z.ZodObject<{
55
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
56
- }, z.core.$strip>;
57
- export declare const loginSchemas: {
58
- readonly phone: z.ZodObject<{
59
- phone: z.ZodString;
60
- }, z.core.$strip>;
61
- readonly email: z.ZodObject<{
62
- email: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
63
- }, z.core.$strip>;
64
- };
65
- export declare const OTP_LENGTH = 6;
66
- /** Resend cooldown: 60s for phone OTP, 2 min for email OTP (per design). */
67
- export declare const RESEND_COOLDOWN_PHONE_SECONDS = 60;
68
- export declare const RESEND_COOLDOWN_EMAIL_SECONDS = 120;
69
- export type OtpVerificationMode = 'phone' | 'email';
70
- export declare function getResendCooldownSeconds(mode: OtpVerificationMode): number;
71
- export declare const otpFormSchema: z.ZodObject<{
72
- otp: z.ZodArray<z.ZodString>;
73
- }, z.core.$strip>;