@skroz/frontend 0.0.5 → 0.0.7
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/auth/Auth.js +19 -36
- package/dist/auth/AuthButtons.d.ts +18 -0
- package/dist/auth/AuthButtons.js +29 -0
- package/dist/auth/AuthFooterLinks.js +9 -25
- package/dist/auth/AuthModal.d.ts +9 -0
- package/dist/auth/AuthModal.js +5 -0
- package/dist/auth/Forgot.js +48 -56
- package/dist/auth/Login.js +33 -48
- package/dist/auth/LoginForm.js +18 -47
- package/dist/auth/LogoutButton.d.ts +3 -0
- package/dist/auth/LogoutButton.js +39 -0
- package/dist/auth/RecoverPassword.js +64 -76
- package/dist/auth/Register.js +47 -55
- package/dist/auth/ResendLinkButton.d.ts +3 -4
- package/dist/auth/ResendLinkButton.js +41 -39
- package/dist/auth/__tests__/Login.test.d.ts +1 -0
- package/dist/auth/__tests__/Login.test.js +75 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.js +11 -22
- package/dist/graphql/ForgotMutation.graphql.d.ts +24 -0
- package/dist/graphql/{ForgotPasswordMutation.graphql.js → ForgotMutation.graphql.js} +11 -13
- package/dist/graphql/LoginMutation.graphql.d.ts +5 -5
- package/dist/graphql/LoginMutation.graphql.js +6 -8
- package/dist/graphql/LogoutButtonMutation.graphql.d.ts +18 -0
- package/dist/graphql/LogoutButtonMutation.graphql.js +55 -0
- package/dist/graphql/RecoverPasswordMutation.graphql.d.ts +24 -0
- package/dist/graphql/{recoveryMutation.graphql.js → RecoverPasswordMutation.graphql.js} +13 -13
- package/dist/graphql/RegisterMutation.graphql.d.ts +7 -6
- package/dist/graphql/RegisterMutation.graphql.js +15 -10
- package/dist/graphql/ResendLinkButtonMutation.graphql.d.ts +5 -6
- package/dist/graphql/ResendLinkButtonMutation.graphql.js +9 -11
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -20
- package/dist/ui/AreYouSure.js +9 -23
- package/dist/ui/FormError.js +9 -14
- package/dist/ui/FormItem.js +8 -22
- package/dist/ui/H.d.ts +1 -1
- package/dist/ui/H.js +15 -32
- package/dist/ui/Panel.d.ts +1 -1
- package/dist/ui/Panel.js +6 -23
- package/dist/ui/SeoHead.js +7 -13
- package/dist/ui/index.js +6 -18
- package/dist/utils/FrontendContext.js +6 -25
- package/dist/utils/getError.js +12 -20
- package/dist/utils/handleFormErrors.js +20 -29
- package/dist/utils/index.js +5 -28
- package/dist/utils/isObject.js +2 -6
- package/dist/utils/limitExpiresAt.js +9 -12
- package/package.json +8 -6
- package/src/auth/Auth.tsx +2 -2
- package/src/auth/AuthButtons.tsx +119 -0
- package/src/auth/AuthModal.tsx +28 -0
- package/src/auth/Forgot.tsx +32 -21
- package/src/auth/Login.tsx +25 -10
- package/src/auth/LoginForm.tsx +4 -4
- package/src/auth/LogoutButton.tsx +53 -0
- package/src/auth/RecoverPassword.tsx +37 -23
- package/src/auth/Register.tsx +29 -13
- package/src/auth/ResendLinkButton.tsx +34 -18
- package/src/auth/__tests__/Login.test.tsx +99 -0
- package/src/auth/index.ts +3 -0
- package/src/graphql/ForgotMutation.graphql.ts +100 -0
- package/src/graphql/LoginMutation.graphql.ts +73 -73
- package/src/graphql/LogoutButtonMutation.graphql.ts +74 -0
- package/src/graphql/RecoverPasswordMutation.graphql.ts +93 -0
- package/src/graphql/RegisterMutation.graphql.ts +81 -73
- package/src/graphql/ResendLinkButtonMutation.graphql.ts +78 -79
- package/src/index.ts +0 -1
- package/src/locales/ru/common.json +8 -190
- package/src/ui/H.tsx +1 -1
- package/src/ui/Panel.tsx +1 -1
- package/src/utils/limitExpiresAt.ts +3 -1
- package/dist/graphql/ForgotPasswordMutation.graphql.d.ts +0 -24
- package/dist/graphql/index.d.ts +0 -5
- package/dist/graphql/index.js +0 -16
- package/dist/graphql/recoveryMutation.graphql.d.ts +0 -19
- package/src/graphql/ForgotPasswordMutation.graphql.ts +0 -100
- package/src/graphql/index.ts +0 -5
- package/src/graphql/recoveryMutation.graphql.ts +0 -91
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
import { ConcreteRequest, Mutation } from 'relay-runtime';
|
|
6
|
-
|
|
7
|
-
export type RecoverPasswordInput = {
|
|
8
|
-
token: string;
|
|
9
|
-
password: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type recoveryMutation$variables = {
|
|
13
|
-
input: RecoverPasswordInput;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type recoveryMutation$data = {
|
|
17
|
-
readonly recoverPassword: {
|
|
18
|
-
readonly ok: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type recoveryMutation = {
|
|
23
|
-
response: recoveryMutation$data;
|
|
24
|
-
variables: recoveryMutation$variables;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const node: ConcreteRequest = (function () {
|
|
28
|
-
var v0 = [
|
|
29
|
-
{
|
|
30
|
-
"defaultValue": null,
|
|
31
|
-
"kind": "LocalArgument",
|
|
32
|
-
"name": "input"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
v1 = [
|
|
36
|
-
{
|
|
37
|
-
"alias": null,
|
|
38
|
-
"args": [
|
|
39
|
-
{
|
|
40
|
-
"kind": "Variable",
|
|
41
|
-
"name": "input",
|
|
42
|
-
"variableName": "input"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"concreteType": "StatusPayload",
|
|
46
|
-
"kind": "LinkedField",
|
|
47
|
-
"name": "recoverPassword",
|
|
48
|
-
"plural": false,
|
|
49
|
-
"selections": [
|
|
50
|
-
{
|
|
51
|
-
"alias": null,
|
|
52
|
-
"args": null,
|
|
53
|
-
"kind": "ScalarField",
|
|
54
|
-
"name": "ok",
|
|
55
|
-
"storageKey": null
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"storageKey": null
|
|
59
|
-
}
|
|
60
|
-
];
|
|
61
|
-
return {
|
|
62
|
-
"fragment": {
|
|
63
|
-
"argumentDefinitions": (v0/*: any*/),
|
|
64
|
-
"kind": "Fragment",
|
|
65
|
-
"metadata": null,
|
|
66
|
-
"name": "recoveryMutation",
|
|
67
|
-
"selections": (v1/*: any*/),
|
|
68
|
-
"type": "Mutation",
|
|
69
|
-
"abstractKey": null
|
|
70
|
-
},
|
|
71
|
-
"kind": "Request",
|
|
72
|
-
"operation": {
|
|
73
|
-
"argumentDefinitions": (v0/*: any*/),
|
|
74
|
-
"kind": "Operation",
|
|
75
|
-
"name": "recoveryMutation",
|
|
76
|
-
"selections": (v1/*: any*/)
|
|
77
|
-
},
|
|
78
|
-
"params": {
|
|
79
|
-
"cacheID": "recoveryMutationManualReconstruction",
|
|
80
|
-
"id": null,
|
|
81
|
-
"metadata": {},
|
|
82
|
-
"name": "recoveryMutation",
|
|
83
|
-
"operationKind": "mutation",
|
|
84
|
-
"text": "mutation recoveryMutation(\n $input: RecoverPasswordInput!\n) {\n recoverPassword(input: $input) {\n ok\n }\n}\n"
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
})();
|
|
88
|
-
|
|
89
|
-
(node as any).hash = "recoveryMutationHash";
|
|
90
|
-
|
|
91
|
-
export default node;
|