@service_laboratory/auth 4.0.8 → 5.0.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.
- package/dist/index.d.ts +10 -67
- package/dist/index.js +1862 -2953
- package/dist/index.umd.cjs +21 -21
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -85,16 +85,7 @@ export declare const authE2EConfig: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
declare
|
|
89
|
-
submit: ({ code, password }: {
|
|
90
|
-
code: string;
|
|
91
|
-
password: string;
|
|
92
|
-
}) => void;
|
|
93
|
-
i18n: any;
|
|
94
|
-
form: any;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export declare function ConfirmResetPasswordForm(props: ConfirmPasswordFormProps): JSX.Element;
|
|
88
|
+
export declare function ConfirmResetPasswordForm(): JSX.Element;
|
|
98
89
|
|
|
99
90
|
declare interface ConfirmResetPasswordRequest {
|
|
100
91
|
code: string;
|
|
@@ -380,15 +371,7 @@ export declare const locale: {
|
|
|
380
371
|
};
|
|
381
372
|
};
|
|
382
373
|
|
|
383
|
-
export declare function LoginForm(
|
|
384
|
-
|
|
385
|
-
declare interface LoginFormProps {
|
|
386
|
-
submit: ({ email, password }: {
|
|
387
|
-
email: string;
|
|
388
|
-
password: string;
|
|
389
|
-
}) => void;
|
|
390
|
-
form: any;
|
|
391
|
-
}
|
|
374
|
+
export declare function LoginForm(): JSX.Element;
|
|
392
375
|
|
|
393
376
|
declare interface LoginRequest {
|
|
394
377
|
email: string;
|
|
@@ -410,35 +393,15 @@ declare interface Role {
|
|
|
410
393
|
permissions: Permission[];
|
|
411
394
|
}
|
|
412
395
|
|
|
413
|
-
export declare function SignUpForm(
|
|
414
|
-
|
|
415
|
-
declare interface SignUpFormProps {
|
|
416
|
-
submit: ({ email, password }: {
|
|
417
|
-
email: string;
|
|
418
|
-
password: string;
|
|
419
|
-
}) => void;
|
|
420
|
-
i18n: any;
|
|
421
|
-
form: any;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export declare function StartResetPasswordForm(props: StartResetPasswordFormProps): JSX.Element;
|
|
396
|
+
export declare function SignUpForm(): JSX.Element;
|
|
425
397
|
|
|
426
|
-
declare
|
|
427
|
-
submit: ({ email }: {
|
|
428
|
-
email: string;
|
|
429
|
-
}) => void;
|
|
430
|
-
i18n: any;
|
|
431
|
-
form: any;
|
|
432
|
-
}
|
|
398
|
+
export declare function StartResetPasswordForm(): JSX.Element;
|
|
433
399
|
|
|
434
400
|
declare interface StartResetPasswordRequest {
|
|
435
401
|
email: string;
|
|
436
402
|
}
|
|
437
403
|
|
|
438
|
-
export declare const useConfirmResetPasswordForm: (
|
|
439
|
-
i18n: any;
|
|
440
|
-
auth: Auth;
|
|
441
|
-
}) => {
|
|
404
|
+
export declare const useConfirmResetPasswordForm: () => {
|
|
442
405
|
submit: (values: z.infer<z.ZodObject<{
|
|
443
406
|
code: z.ZodString;
|
|
444
407
|
password: z.ZodString;
|
|
@@ -452,10 +415,7 @@ export declare const useConfirmResetPasswordForm: ({ i18n, auth, }: {
|
|
|
452
415
|
}>;
|
|
453
416
|
};
|
|
454
417
|
|
|
455
|
-
export declare const useLoginForm: (
|
|
456
|
-
auth: Auth;
|
|
457
|
-
i18n: any;
|
|
458
|
-
}) => {
|
|
418
|
+
export declare const useLoginForm: () => {
|
|
459
419
|
form: UseFormReturn< {
|
|
460
420
|
email: string;
|
|
461
421
|
password: string;
|
|
@@ -469,10 +429,7 @@ export declare const useLoginForm: ({ auth, i18n }: {
|
|
|
469
429
|
}) => Promise<void>;
|
|
470
430
|
};
|
|
471
431
|
|
|
472
|
-
export declare const useSignUpForm: (
|
|
473
|
-
auth: Auth;
|
|
474
|
-
i18n: any;
|
|
475
|
-
}) => {
|
|
432
|
+
export declare const useSignUpForm: () => {
|
|
476
433
|
submit: (values: z.infer<z.ZodObject<{
|
|
477
434
|
email: z.ZodEmail;
|
|
478
435
|
password: z.ZodString;
|
|
@@ -486,10 +443,7 @@ export declare const useSignUpForm: ({ auth, i18n }: {
|
|
|
486
443
|
}>;
|
|
487
444
|
};
|
|
488
445
|
|
|
489
|
-
export declare const useStartResetPasswordForm: (
|
|
490
|
-
i18n: any;
|
|
491
|
-
auth: Auth;
|
|
492
|
-
}) => {
|
|
446
|
+
export declare const useStartResetPasswordForm: () => {
|
|
493
447
|
form: UseFormReturn< {
|
|
494
448
|
email: string;
|
|
495
449
|
}, unknown, {
|
|
@@ -500,10 +454,7 @@ export declare const useStartResetPasswordForm: ({ i18n, auth, }: {
|
|
|
500
454
|
}, z.core.$strip>>) => void;
|
|
501
455
|
};
|
|
502
456
|
|
|
503
|
-
export declare const useVerifyEmailForm: (
|
|
504
|
-
auth: Auth;
|
|
505
|
-
i18n: any;
|
|
506
|
-
}) => {
|
|
457
|
+
export declare const useVerifyEmailForm: () => {
|
|
507
458
|
submit: (values: {
|
|
508
459
|
code: string;
|
|
509
460
|
}) => void;
|
|
@@ -514,14 +465,6 @@ export declare const useVerifyEmailForm: ({ auth, i18n, }: {
|
|
|
514
465
|
}>;
|
|
515
466
|
};
|
|
516
467
|
|
|
517
|
-
export declare function VerifyEmailForm(
|
|
518
|
-
|
|
519
|
-
declare interface VerifyEmailFormProps {
|
|
520
|
-
submit: ({ code }: {
|
|
521
|
-
code: string;
|
|
522
|
-
}) => void;
|
|
523
|
-
i18n: any;
|
|
524
|
-
form: any;
|
|
525
|
-
}
|
|
468
|
+
export declare function VerifyEmailForm(): JSX.Element;
|
|
526
469
|
|
|
527
470
|
export { }
|