@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.
Files changed (79) hide show
  1. package/dist/auth/Auth.js +19 -36
  2. package/dist/auth/AuthButtons.d.ts +18 -0
  3. package/dist/auth/AuthButtons.js +29 -0
  4. package/dist/auth/AuthFooterLinks.js +9 -25
  5. package/dist/auth/AuthModal.d.ts +9 -0
  6. package/dist/auth/AuthModal.js +5 -0
  7. package/dist/auth/Forgot.js +48 -56
  8. package/dist/auth/Login.js +33 -48
  9. package/dist/auth/LoginForm.js +18 -47
  10. package/dist/auth/LogoutButton.d.ts +3 -0
  11. package/dist/auth/LogoutButton.js +39 -0
  12. package/dist/auth/RecoverPassword.js +64 -76
  13. package/dist/auth/Register.js +47 -55
  14. package/dist/auth/ResendLinkButton.d.ts +3 -4
  15. package/dist/auth/ResendLinkButton.js +41 -39
  16. package/dist/auth/__tests__/Login.test.d.ts +1 -0
  17. package/dist/auth/__tests__/Login.test.js +75 -0
  18. package/dist/auth/index.d.ts +3 -0
  19. package/dist/auth/index.js +11 -22
  20. package/dist/graphql/ForgotMutation.graphql.d.ts +24 -0
  21. package/dist/graphql/{ForgotPasswordMutation.graphql.js → ForgotMutation.graphql.js} +11 -13
  22. package/dist/graphql/LoginMutation.graphql.d.ts +5 -5
  23. package/dist/graphql/LoginMutation.graphql.js +6 -8
  24. package/dist/graphql/LogoutButtonMutation.graphql.d.ts +18 -0
  25. package/dist/graphql/LogoutButtonMutation.graphql.js +55 -0
  26. package/dist/graphql/RecoverPasswordMutation.graphql.d.ts +24 -0
  27. package/dist/graphql/{recoveryMutation.graphql.js → RecoverPasswordMutation.graphql.js} +13 -13
  28. package/dist/graphql/RegisterMutation.graphql.d.ts +7 -6
  29. package/dist/graphql/RegisterMutation.graphql.js +15 -10
  30. package/dist/graphql/ResendLinkButtonMutation.graphql.d.ts +5 -6
  31. package/dist/graphql/ResendLinkButtonMutation.graphql.js +9 -11
  32. package/dist/index.d.ts +0 -1
  33. package/dist/index.js +3 -20
  34. package/dist/ui/AreYouSure.js +9 -23
  35. package/dist/ui/FormError.js +9 -14
  36. package/dist/ui/FormItem.js +8 -22
  37. package/dist/ui/H.d.ts +1 -1
  38. package/dist/ui/H.js +15 -32
  39. package/dist/ui/Panel.d.ts +1 -1
  40. package/dist/ui/Panel.js +6 -23
  41. package/dist/ui/SeoHead.js +7 -13
  42. package/dist/ui/index.js +6 -18
  43. package/dist/utils/FrontendContext.js +6 -25
  44. package/dist/utils/getError.js +12 -20
  45. package/dist/utils/handleFormErrors.js +20 -29
  46. package/dist/utils/index.js +5 -28
  47. package/dist/utils/isObject.js +2 -6
  48. package/dist/utils/limitExpiresAt.js +9 -12
  49. package/package.json +8 -6
  50. package/src/auth/Auth.tsx +2 -2
  51. package/src/auth/AuthButtons.tsx +119 -0
  52. package/src/auth/AuthModal.tsx +28 -0
  53. package/src/auth/Forgot.tsx +32 -21
  54. package/src/auth/Login.tsx +25 -10
  55. package/src/auth/LoginForm.tsx +4 -4
  56. package/src/auth/LogoutButton.tsx +53 -0
  57. package/src/auth/RecoverPassword.tsx +37 -23
  58. package/src/auth/Register.tsx +29 -13
  59. package/src/auth/ResendLinkButton.tsx +34 -18
  60. package/src/auth/__tests__/Login.test.tsx +99 -0
  61. package/src/auth/index.ts +3 -0
  62. package/src/graphql/ForgotMutation.graphql.ts +100 -0
  63. package/src/graphql/LoginMutation.graphql.ts +73 -73
  64. package/src/graphql/LogoutButtonMutation.graphql.ts +74 -0
  65. package/src/graphql/RecoverPasswordMutation.graphql.ts +93 -0
  66. package/src/graphql/RegisterMutation.graphql.ts +81 -73
  67. package/src/graphql/ResendLinkButtonMutation.graphql.ts +78 -79
  68. package/src/index.ts +0 -1
  69. package/src/locales/ru/common.json +8 -190
  70. package/src/ui/H.tsx +1 -1
  71. package/src/ui/Panel.tsx +1 -1
  72. package/src/utils/limitExpiresAt.ts +3 -1
  73. package/dist/graphql/ForgotPasswordMutation.graphql.d.ts +0 -24
  74. package/dist/graphql/index.d.ts +0 -5
  75. package/dist/graphql/index.js +0 -16
  76. package/dist/graphql/recoveryMutation.graphql.d.ts +0 -19
  77. package/src/graphql/ForgotPasswordMutation.graphql.ts +0 -100
  78. package/src/graphql/index.ts +0 -5
  79. 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;