@alore/auth-react-ui 1.2.0-alpha.14 → 1.2.0-alpha.16
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/cjs/auth/ForgotPassword.d.ts +15 -0
- package/dist/cjs/auth/ForgotPassword.js +263 -0
- package/dist/cjs/auth/ForgotPassword.js.map +1 -0
- package/dist/cjs/auth/Login.d.ts +19 -1
- package/dist/cjs/auth/Login.js +81 -11
- package/dist/cjs/auth/Login.js.map +1 -1
- package/dist/cjs/components/Auth.d.ts +19 -1
- package/dist/cjs/components/Auth.js +44 -5
- package/dist/cjs/components/Auth.js.map +1 -1
- package/dist/cjs/components/AuthProvider.d.ts +16 -2
- package/dist/cjs/components/FormRules/helpers/index.js +1 -1
- package/dist/cjs/components/FormRules/helpers/index.js.map +1 -1
- package/dist/cjs/components/InputForm.d.ts +2 -1
- package/dist/cjs/components/InputForm.js +2 -2
- package/dist/cjs/components/InputForm.js.map +1 -1
- package/dist/cjs/dictionaries/en.json +19 -0
- package/dist/cjs/dictionaries/pt.json +19 -0
- package/dist/cjs/get-dictionary.d.ts +57 -0
- package/dist/cjs/hooks/useAuthService.d.ts +48 -6
- package/dist/cjs/hooks/useAuthServiceInstance.d.ts +16 -2
- package/dist/cjs/hooks/useDictionary.d.ts +19 -0
- package/dist/cjs/machine/index.d.ts +32 -4
- package/dist/cjs/machine/index.js +76 -5
- package/dist/cjs/machine/index.js.map +1 -1
- package/dist/cjs/machine/types.d.ts +12 -1
- package/dist/mjs/auth/ForgotPassword.d.ts +15 -0
- package/dist/mjs/auth/ForgotPassword.js +224 -0
- package/dist/mjs/auth/ForgotPassword.js.map +1 -0
- package/dist/mjs/auth/Login.d.ts +19 -1
- package/dist/mjs/auth/Login.js +81 -11
- package/dist/mjs/auth/Login.js.map +1 -1
- package/dist/mjs/components/Auth.d.ts +19 -1
- package/dist/mjs/components/Auth.js +44 -5
- package/dist/mjs/components/Auth.js.map +1 -1
- package/dist/mjs/components/AuthProvider.d.ts +16 -2
- package/dist/mjs/components/FormRules/helpers/index.js +1 -1
- package/dist/mjs/components/FormRules/helpers/index.js.map +1 -1
- package/dist/mjs/components/InputForm.d.ts +2 -1
- package/dist/mjs/components/InputForm.js +2 -2
- package/dist/mjs/components/InputForm.js.map +1 -1
- package/dist/mjs/dictionaries/en.json +19 -0
- package/dist/mjs/dictionaries/pt.json +19 -0
- package/dist/mjs/get-dictionary.d.ts +57 -0
- package/dist/mjs/hooks/useAuthService.d.ts +48 -6
- package/dist/mjs/hooks/useAuthServiceInstance.d.ts +16 -2
- package/dist/mjs/hooks/useDictionary.d.ts +19 -0
- package/dist/mjs/machine/index.d.ts +32 -4
- package/dist/mjs/machine/index.js +71 -5
- package/dist/mjs/machine/index.js.map +1 -1
- package/dist/mjs/machine/types.d.ts +12 -1
- 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
|
-
|
|
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.
|
|
3
|
+
"version": "1.2.0-alpha.16",
|
|
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.
|
|
32
|
+
"@alore/auth-react-sdk": "1.1.0-alpha.11"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/js-cookie": "3.0.6",
|