@alore/auth-react-ui 1.2.0-alpha.14 → 1.2.0-alpha.15

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 (41) hide show
  1. package/dist/cjs/auth/ForgotPassword.d.ts +15 -0
  2. package/dist/cjs/auth/ForgotPassword.js +263 -0
  3. package/dist/cjs/auth/ForgotPassword.js.map +1 -0
  4. package/dist/cjs/auth/Login.js +3 -1
  5. package/dist/cjs/auth/Login.js.map +1 -1
  6. package/dist/cjs/components/Auth.js +42 -3
  7. package/dist/cjs/components/Auth.js.map +1 -1
  8. package/dist/cjs/components/AuthProvider.d.ts +16 -2
  9. package/dist/cjs/components/FormRules/helpers/index.js +1 -1
  10. package/dist/cjs/components/FormRules/helpers/index.js.map +1 -1
  11. package/dist/cjs/dictionaries/en.json +19 -0
  12. package/dist/cjs/dictionaries/pt.json +19 -0
  13. package/dist/cjs/get-dictionary.d.ts +57 -0
  14. package/dist/cjs/hooks/useAuthService.d.ts +48 -6
  15. package/dist/cjs/hooks/useAuthServiceInstance.d.ts +16 -2
  16. package/dist/cjs/hooks/useDictionary.d.ts +19 -0
  17. package/dist/cjs/machine/index.d.ts +32 -4
  18. package/dist/cjs/machine/index.js +76 -5
  19. package/dist/cjs/machine/index.js.map +1 -1
  20. package/dist/cjs/machine/types.d.ts +12 -1
  21. package/dist/mjs/auth/ForgotPassword.d.ts +15 -0
  22. package/dist/mjs/auth/ForgotPassword.js +224 -0
  23. package/dist/mjs/auth/ForgotPassword.js.map +1 -0
  24. package/dist/mjs/auth/Login.js +3 -1
  25. package/dist/mjs/auth/Login.js.map +1 -1
  26. package/dist/mjs/components/Auth.js +42 -3
  27. package/dist/mjs/components/Auth.js.map +1 -1
  28. package/dist/mjs/components/AuthProvider.d.ts +16 -2
  29. package/dist/mjs/components/FormRules/helpers/index.js +1 -1
  30. package/dist/mjs/components/FormRules/helpers/index.js.map +1 -1
  31. package/dist/mjs/dictionaries/en.json +19 -0
  32. package/dist/mjs/dictionaries/pt.json +19 -0
  33. package/dist/mjs/get-dictionary.d.ts +57 -0
  34. package/dist/mjs/hooks/useAuthService.d.ts +48 -6
  35. package/dist/mjs/hooks/useAuthServiceInstance.d.ts +16 -2
  36. package/dist/mjs/hooks/useDictionary.d.ts +19 -0
  37. package/dist/mjs/machine/index.d.ts +32 -4
  38. package/dist/mjs/machine/index.js +71 -5
  39. package/dist/mjs/machine/index.js.map +1 -1
  40. package/dist/mjs/machine/types.d.ts +12 -1
  41. package/package.json +2 -2
@@ -52,6 +52,10 @@ export interface AuthMachineContext {
52
52
  mediation?: CredentialMediationRequirement;
53
53
  };
54
54
  credentialEmail?: string;
55
+ forgotPasswordSession?: {
56
+ salt: string;
57
+ token: string;
58
+ };
55
59
  }
56
60
  export type AuthMachineEvents = {
57
61
  type: 'INITIALIZE';
@@ -256,15 +260,22 @@ export type AuthMachineEvents = {
256
260
  type: 'SEND_CODE';
257
261
  payload: {
258
262
  email: string;
263
+ locale?: string;
259
264
  };
260
265
  } | {
261
266
  type: 'CONFIRM_PASSWORD';
262
267
  payload: {
263
- email: string;
268
+ salt: string;
269
+ token: string;
264
270
  passwordHash: string;
271
+ device?: string;
265
272
  };
266
273
  } | {
267
274
  type: 'RESET_PASSWORD';
275
+ payload: {
276
+ salt: string;
277
+ token: string;
278
+ };
268
279
  } | {
269
280
  type: 'LOGIN';
270
281
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alore/auth-react-ui",
3
- "version": "1.2.0-alpha.14",
3
+ "version": "1.2.0-alpha.15",
4
4
  "repository": "https://github.com/0xCarbon/alore-js",
5
5
  "description": "React Auth UI component for Alore",
6
6
  "main": "dist/cjs/index.js",
@@ -29,7 +29,7 @@
29
29
  "tailwind-merge": "2.3.0",
30
30
  "xstate": "4.38.2",
31
31
  "yup": "1.1.1",
32
- "@alore/auth-react-sdk": "1.1.0-alpha.10"
32
+ "@alore/auth-react-sdk": "1.1.0-alpha.11"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/js-cookie": "3.0.6",