@alore/auth-react-ui 1.2.0-alpha.26 → 1.2.0-alpha.27

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 (35) hide show
  1. package/dist/cjs/auth/Login.js +90 -43
  2. package/dist/cjs/auth/Login.js.map +1 -1
  3. package/dist/cjs/auth/Register.js +4 -24
  4. package/dist/cjs/auth/Register.js.map +1 -1
  5. package/dist/cjs/components/Auth.js +1 -5
  6. package/dist/cjs/components/Auth.js.map +1 -1
  7. package/dist/cjs/components/AuthProvider.d.ts +0 -26
  8. package/dist/cjs/dictionaries/en.json +4 -0
  9. package/dist/cjs/dictionaries/pt.json +4 -0
  10. package/dist/cjs/get-dictionary.d.ts +12 -0
  11. package/dist/cjs/hooks/useAuthService.d.ts +0 -78
  12. package/dist/cjs/hooks/useAuthServiceInstance.d.ts +0 -26
  13. package/dist/cjs/hooks/useDictionary.d.ts +4 -0
  14. package/dist/cjs/machine/index.d.ts +0 -52
  15. package/dist/cjs/machine/index.js +22 -156
  16. package/dist/cjs/machine/index.js.map +1 -1
  17. package/dist/cjs/machine/types.d.ts +0 -22
  18. package/dist/mjs/auth/Login.js +90 -43
  19. package/dist/mjs/auth/Login.js.map +1 -1
  20. package/dist/mjs/auth/Register.js +6 -26
  21. package/dist/mjs/auth/Register.js.map +1 -1
  22. package/dist/mjs/components/Auth.js +1 -5
  23. package/dist/mjs/components/Auth.js.map +1 -1
  24. package/dist/mjs/components/AuthProvider.d.ts +0 -26
  25. package/dist/mjs/dictionaries/en.json +4 -0
  26. package/dist/mjs/dictionaries/pt.json +4 -0
  27. package/dist/mjs/get-dictionary.d.ts +12 -0
  28. package/dist/mjs/hooks/useAuthService.d.ts +0 -78
  29. package/dist/mjs/hooks/useAuthServiceInstance.d.ts +0 -26
  30. package/dist/mjs/hooks/useDictionary.d.ts +4 -0
  31. package/dist/mjs/machine/index.d.ts +0 -52
  32. package/dist/mjs/machine/index.js +0 -131
  33. package/dist/mjs/machine/index.js.map +1 -1
  34. package/dist/mjs/machine/types.d.ts +0 -22
  35. package/package.json +2 -2
@@ -71,10 +71,14 @@ export declare const dictionaries: {
71
71
  verifyEmail: string;
72
72
  verifyEmailDescription: string;
73
73
  wrongCode: string;
74
+ wrongCodeDescription: string;
74
75
  codeExpired: string;
76
+ codeExpiredDescription: string;
75
77
  confirmCode: string;
76
78
  trustThisDevice: string;
77
79
  resendCode: string;
80
+ resendUnavailable: string;
81
+ resendUnavailableDescription: string;
78
82
  inform2FACode: string;
79
83
  newDevice: string;
80
84
  touchHardware: string;
@@ -227,10 +231,14 @@ export declare const dictionaries: {
227
231
  verifyEmail: string;
228
232
  verifyEmailDescription: string;
229
233
  wrongCode: string;
234
+ wrongCodeDescription: string;
230
235
  codeExpired: string;
236
+ codeExpiredDescription: string;
231
237
  confirmCode: string;
232
238
  trustThisDevice: string;
233
239
  resendCode: string;
240
+ resendUnavailable: string;
241
+ resendUnavailableDescription: string;
234
242
  inform2FACode: string;
235
243
  newDevice: string;
236
244
  touchHardware: string;
@@ -384,10 +392,14 @@ export declare const getDictionary: (locale: Locale) => Promise<{
384
392
  verifyEmail: string;
385
393
  verifyEmailDescription: string;
386
394
  wrongCode: string;
395
+ wrongCodeDescription: string;
387
396
  codeExpired: string;
397
+ codeExpiredDescription: string;
388
398
  confirmCode: string;
389
399
  trustThisDevice: string;
390
400
  resendCode: string;
401
+ resendUnavailable: string;
402
+ resendUnavailableDescription: string;
391
403
  inform2FACode: string;
392
404
  newDevice: string;
393
405
  touchHardware: string;
@@ -32,12 +32,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
32
32
  payload: {
33
33
  email: string;
34
34
  };
35
- } | {
36
- type: "GOOGLE_LOGIN";
37
- payload: {
38
- accessToken: string;
39
- providerName: string;
40
- };
41
35
  } | {
42
36
  type: "SOCIAL_LOGIN";
43
37
  payload: {
@@ -116,13 +110,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
116
110
  payload: {
117
111
  email: string;
118
112
  };
119
- } | {
120
- type: "COMPLETE_GOOGLE_SIGN_IN";
121
- payload: {
122
- email: string;
123
- passwordHash: string;
124
- otp: string;
125
- };
126
113
  } | {
127
114
  type: "VERIFY_LOGIN";
128
115
  payload: {
@@ -307,12 +294,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
307
294
  payload: {
308
295
  email: string;
309
296
  };
310
- } | {
311
- type: "GOOGLE_LOGIN";
312
- payload: {
313
- accessToken: string;
314
- providerName: string;
315
- };
316
297
  } | {
317
298
  type: "SOCIAL_LOGIN";
318
299
  payload: {
@@ -391,13 +372,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
391
372
  payload: {
392
373
  email: string;
393
374
  };
394
- } | {
395
- type: "COMPLETE_GOOGLE_SIGN_IN";
396
- payload: {
397
- email: string;
398
- passwordHash: string;
399
- otp: string;
400
- };
401
375
  } | {
402
376
  type: "VERIFY_LOGIN";
403
377
  payload: {
@@ -579,12 +553,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
579
553
  payload: {
580
554
  email: string;
581
555
  };
582
- } | {
583
- type: "GOOGLE_LOGIN";
584
- payload: {
585
- accessToken: string;
586
- providerName: string;
587
- };
588
556
  } | {
589
557
  type: "SOCIAL_LOGIN";
590
558
  payload: {
@@ -663,13 +631,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
663
631
  payload: {
664
632
  email: string;
665
633
  };
666
- } | {
667
- type: "COMPLETE_GOOGLE_SIGN_IN";
668
- payload: {
669
- email: string;
670
- passwordHash: string;
671
- otp: string;
672
- };
673
634
  } | {
674
635
  type: "VERIFY_LOGIN";
675
636
  payload: {
@@ -851,12 +812,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
851
812
  payload: {
852
813
  email: string;
853
814
  };
854
- } | {
855
- type: "GOOGLE_LOGIN";
856
- payload: {
857
- accessToken: string;
858
- providerName: string;
859
- };
860
815
  } | {
861
816
  type: "SOCIAL_LOGIN";
862
817
  payload: {
@@ -935,13 +890,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
935
890
  payload: {
936
891
  email: string;
937
892
  };
938
- } | {
939
- type: "COMPLETE_GOOGLE_SIGN_IN";
940
- payload: {
941
- email: string;
942
- passwordHash: string;
943
- otp: string;
944
- };
945
893
  } | {
946
894
  type: "VERIFY_LOGIN";
947
895
  payload: {
@@ -1123,12 +1071,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
1123
1071
  payload: {
1124
1072
  email: string;
1125
1073
  };
1126
- } | {
1127
- type: "GOOGLE_LOGIN";
1128
- payload: {
1129
- accessToken: string;
1130
- providerName: string;
1131
- };
1132
1074
  } | {
1133
1075
  type: "SOCIAL_LOGIN";
1134
1076
  payload: {
@@ -1207,13 +1149,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
1207
1149
  payload: {
1208
1150
  email: string;
1209
1151
  };
1210
- } | {
1211
- type: "COMPLETE_GOOGLE_SIGN_IN";
1212
- payload: {
1213
- email: string;
1214
- passwordHash: string;
1215
- otp: string;
1216
- };
1217
1152
  } | {
1218
1153
  type: "VERIFY_LOGIN";
1219
1154
  payload: {
@@ -1398,12 +1333,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
1398
1333
  payload: {
1399
1334
  email: string;
1400
1335
  };
1401
- } | {
1402
- type: "GOOGLE_LOGIN";
1403
- payload: {
1404
- accessToken: string;
1405
- providerName: string;
1406
- };
1407
1336
  } | {
1408
1337
  type: "SOCIAL_LOGIN";
1409
1338
  payload: {
@@ -1482,13 +1411,6 @@ declare const useAuthService: () => readonly [import("xstate").State<import("../
1482
1411
  payload: {
1483
1412
  email: string;
1484
1413
  };
1485
- } | {
1486
- type: "COMPLETE_GOOGLE_SIGN_IN";
1487
- payload: {
1488
- email: string;
1489
- passwordHash: string;
1490
- otp: string;
1491
- };
1492
1414
  } | {
1493
1415
  type: "VERIFY_LOGIN";
1494
1416
  payload: {
@@ -32,12 +32,6 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
32
32
  payload: {
33
33
  email: string;
34
34
  };
35
- } | {
36
- type: "GOOGLE_LOGIN";
37
- payload: {
38
- accessToken: string;
39
- providerName: string;
40
- };
41
35
  } | {
42
36
  type: "SOCIAL_LOGIN";
43
37
  payload: {
@@ -116,13 +110,6 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
116
110
  payload: {
117
111
  email: string;
118
112
  };
119
- } | {
120
- type: "COMPLETE_GOOGLE_SIGN_IN";
121
- payload: {
122
- email: string;
123
- passwordHash: string;
124
- otp: string;
125
- };
126
113
  } | {
127
114
  type: "VERIFY_LOGIN";
128
115
  payload: {
@@ -307,12 +294,6 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
307
294
  payload: {
308
295
  email: string;
309
296
  };
310
- } | {
311
- type: "GOOGLE_LOGIN";
312
- payload: {
313
- accessToken: string;
314
- providerName: string;
315
- };
316
297
  } | {
317
298
  type: "SOCIAL_LOGIN";
318
299
  payload: {
@@ -391,13 +372,6 @@ declare const useAuthServiceInstance: () => import("xstate").Interpreter<import(
391
372
  payload: {
392
373
  email: string;
393
374
  };
394
- } | {
395
- type: "COMPLETE_GOOGLE_SIGN_IN";
396
- payload: {
397
- email: string;
398
- passwordHash: string;
399
- otp: string;
400
- };
401
375
  } | {
402
376
  type: "VERIFY_LOGIN";
403
377
  payload: {
@@ -66,10 +66,14 @@ declare const useDictionary: (locale: Locale) => {
66
66
  verifyEmail: string;
67
67
  verifyEmailDescription: string;
68
68
  wrongCode: string;
69
+ wrongCodeDescription: string;
69
70
  codeExpired: string;
71
+ codeExpiredDescription: string;
70
72
  confirmCode: string;
71
73
  trustThisDevice: string;
72
74
  resendCode: string;
75
+ resendUnavailable: string;
76
+ resendUnavailableDescription: string;
73
77
  inform2FACode: string;
74
78
  newDevice: string;
75
79
  touchHardware: string;
@@ -33,12 +33,6 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
33
33
  payload: {
34
34
  email: string;
35
35
  };
36
- } | {
37
- type: "GOOGLE_LOGIN";
38
- payload: {
39
- accessToken: string;
40
- providerName: string;
41
- };
42
36
  } | {
43
37
  type: "SOCIAL_LOGIN";
44
38
  payload: {
@@ -117,13 +111,6 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
117
111
  payload: {
118
112
  email: string;
119
113
  };
120
- } | {
121
- type: "COMPLETE_GOOGLE_SIGN_IN";
122
- payload: {
123
- email: string;
124
- passwordHash: string;
125
- otp: string;
126
- };
127
114
  } | {
128
115
  type: "VERIFY_LOGIN";
129
116
  payload: {
@@ -308,12 +295,6 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
308
295
  payload: {
309
296
  email: string;
310
297
  };
311
- } | {
312
- type: "GOOGLE_LOGIN";
313
- payload: {
314
- accessToken: string;
315
- providerName: string;
316
- };
317
298
  } | {
318
299
  type: "SOCIAL_LOGIN";
319
300
  payload: {
@@ -392,13 +373,6 @@ export declare const authMachine: import("xstate").StateMachine<AuthMachineConte
392
373
  payload: {
393
374
  email: string;
394
375
  };
395
- } | {
396
- type: "COMPLETE_GOOGLE_SIGN_IN";
397
- payload: {
398
- email: string;
399
- passwordHash: string;
400
- otp: string;
401
- };
402
376
  } | {
403
377
  type: "VERIFY_LOGIN";
404
378
  payload: {
@@ -581,12 +555,6 @@ export declare const authService: (services: {}, context: AuthMachineContext) =>
581
555
  payload: {
582
556
  email: string;
583
557
  };
584
- } | {
585
- type: "GOOGLE_LOGIN";
586
- payload: {
587
- accessToken: string;
588
- providerName: string;
589
- };
590
558
  } | {
591
559
  type: "SOCIAL_LOGIN";
592
560
  payload: {
@@ -665,13 +633,6 @@ export declare const authService: (services: {}, context: AuthMachineContext) =>
665
633
  payload: {
666
634
  email: string;
667
635
  };
668
- } | {
669
- type: "COMPLETE_GOOGLE_SIGN_IN";
670
- payload: {
671
- email: string;
672
- passwordHash: string;
673
- otp: string;
674
- };
675
636
  } | {
676
637
  type: "VERIFY_LOGIN";
677
638
  payload: {
@@ -856,12 +817,6 @@ export declare const authService: (services: {}, context: AuthMachineContext) =>
856
817
  payload: {
857
818
  email: string;
858
819
  };
859
- } | {
860
- type: "GOOGLE_LOGIN";
861
- payload: {
862
- accessToken: string;
863
- providerName: string;
864
- };
865
820
  } | {
866
821
  type: "SOCIAL_LOGIN";
867
822
  payload: {
@@ -940,13 +895,6 @@ export declare const authService: (services: {}, context: AuthMachineContext) =>
940
895
  payload: {
941
896
  email: string;
942
897
  };
943
- } | {
944
- type: "COMPLETE_GOOGLE_SIGN_IN";
945
- payload: {
946
- email: string;
947
- passwordHash: string;
948
- otp: string;
949
- };
950
898
  } | {
951
899
  type: "VERIFY_LOGIN";
952
900
  payload: {