@service_laboratory/auth 4.0.3 → 4.0.4

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 CHANGED
@@ -99,7 +99,7 @@ declare interface ConfirmResetPasswordRequest {
99
99
  password: string;
100
100
  }
101
101
 
102
- export declare const DevPanel: ({ reset, processing, }: {
102
+ export declare const DevPanel: ({ reset, processing }: {
103
103
  reset: () => void;
104
104
  processing: boolean;
105
105
  }) => JSX.Element;
@@ -252,6 +252,56 @@ export declare const locale: {
252
252
  };
253
253
  };
254
254
  en: {
255
+ confirmResetPasswordForm: {
256
+ form: {
257
+ title: string;
258
+ description: string;
259
+ submitButtonLabel: string;
260
+ passwordInputLabel: string;
261
+ authCodeInputLabel: string;
262
+ confirmPasswordLabel: string;
263
+ loginLinkMessage: string;
264
+ loginLink: string;
265
+ };
266
+ success: {
267
+ notifications: {
268
+ confirmResetPasswordSuccess: string;
269
+ };
270
+ };
271
+ errors: {
272
+ fields: {
273
+ passwordToSmall: string;
274
+ };
275
+ notifications: {
276
+ wrongAuthCode: string;
277
+ unknownError: string;
278
+ unknownErrorDescription: string;
279
+ };
280
+ };
281
+ };
282
+ startResetPasswordForm: {
283
+ form: {
284
+ title: string;
285
+ description: string;
286
+ submitButtonLabel: string;
287
+ emailLabel: string;
288
+ resetPasswordDescription: string;
289
+ loginLinkMessage: string;
290
+ loginLink: string;
291
+ };
292
+ success: {
293
+ notifications: {
294
+ startResetPasswordSuccess: string;
295
+ };
296
+ };
297
+ errors: {
298
+ notifications: {
299
+ emailNotFound: string;
300
+ unknownError: string;
301
+ unknownErrorDescription: string;
302
+ };
303
+ };
304
+ };
255
305
  verifyEmailForm: {
256
306
  form: {
257
307
  title: string;
@@ -291,6 +341,8 @@ export declare const locale: {
291
341
  userIsNotEnabled: string;
292
342
  emailNotVerified: string;
293
343
  invalidPassword: string;
344
+ unknownError: string;
345
+ unknownErrorDescription: string;
294
346
  };
295
347
  };
296
348
  success: {
@@ -333,10 +385,7 @@ declare interface LoginFormProps {
333
385
  email: string;
334
386
  password: string;
335
387
  }) => void;
336
- i18n: any;
337
388
  form: any;
338
- resetPasswordLinkComponent?: () => ReactNode;
339
- signUpLinkComponent?: () => ReactNode;
340
389
  }
341
390
 
342
391
  declare interface LoginRequest {
@@ -415,7 +464,7 @@ export declare const useLoginForm: ({ auth, i18n }: {
415
464
  submit: (values: {
416
465
  email: string;
417
466
  password: string;
418
- }) => void;
467
+ }) => Promise<void>;
419
468
  };
420
469
 
421
470
  export declare const useSignUpForm: ({ auth, i18n }: {