@ttoss/react-auth-core 0.2.0

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.
@@ -0,0 +1,272 @@
1
+ {
2
+ "0XOzcH": [
3
+ {
4
+ "type": 0,
5
+ "value": "Required field"
6
+ }
7
+ ],
8
+ "38HSjr": [
9
+ {
10
+ "type": 0,
11
+ "value": "Sign In"
12
+ }
13
+ ],
14
+ "5E12mO": [
15
+ {
16
+ "type": 0,
17
+ "value": "Email"
18
+ }
19
+ ],
20
+ "6PdOcy": [
21
+ {
22
+ "type": 0,
23
+ "value": "Cancel"
24
+ }
25
+ ],
26
+ "8GMUPk": [
27
+ {
28
+ "type": 0,
29
+ "value": "I'm already registered"
30
+ }
31
+ ],
32
+ "9cApwd": [
33
+ {
34
+ "type": 0,
35
+ "value": "Please, insert a valid e-mail"
36
+ }
37
+ ],
38
+ "BtK6KR": [
39
+ {
40
+ "type": 0,
41
+ "value": "Forgot password?"
42
+ }
43
+ ],
44
+ "Co3exe": [
45
+ {
46
+ "type": 0,
47
+ "value": "By signing up, you agree to the following Terms and Conditions."
48
+ }
49
+ ],
50
+ "D1C6fR": [
51
+ {
52
+ "type": 0,
53
+ "value": "Field must be at least "
54
+ },
55
+ {
56
+ "type": 1,
57
+ "value": "min"
58
+ },
59
+ {
60
+ "type": 0,
61
+ "value": " characters"
62
+ }
63
+ ],
64
+ "EZ3YF2": [
65
+ {
66
+ "type": 0,
67
+ "value": "Sign up"
68
+ }
69
+ ],
70
+ "HT4tSM": [
71
+ {
72
+ "type": 0,
73
+ "value": "Reset Password"
74
+ }
75
+ ],
76
+ "KY2T6J": [
77
+ {
78
+ "type": 0,
79
+ "value": "Code"
80
+ }
81
+ ],
82
+ "MfWGyg": [
83
+ {
84
+ "type": 0,
85
+ "value": "Field is required"
86
+ }
87
+ ],
88
+ "NJ57Qj": [
89
+ {
90
+ "type": 0,
91
+ "value": "Confirm password field is required"
92
+ }
93
+ ],
94
+ "OhDL0i": [
95
+ {
96
+ "type": 0,
97
+ "value": "Invalid email"
98
+ }
99
+ ],
100
+ "PylVqx": [
101
+ {
102
+ "type": 0,
103
+ "value": "Password"
104
+ }
105
+ ],
106
+ "S3pjKw": [
107
+ {
108
+ "type": 0,
109
+ "value": "Minimum "
110
+ },
111
+ {
112
+ "type": 1,
113
+ "value": "value"
114
+ },
115
+ {
116
+ "type": 0,
117
+ "value": " characters"
118
+ }
119
+ ],
120
+ "S4bbEj": [
121
+ {
122
+ "type": 0,
123
+ "value": "Recovering Password"
124
+ }
125
+ ],
126
+ "SQJto2": [
127
+ {
128
+ "type": 0,
129
+ "value": "Sign in"
130
+ }
131
+ ],
132
+ "SfWKyS": [
133
+ {
134
+ "type": 0,
135
+ "value": "Maximum "
136
+ },
137
+ {
138
+ "type": 1,
139
+ "value": "value"
140
+ },
141
+ {
142
+ "type": 0,
143
+ "value": " characters"
144
+ }
145
+ ],
146
+ "TZ4WUk": [
147
+ {
148
+ "type": 0,
149
+ "value": "Password requires "
150
+ },
151
+ {
152
+ "type": 1,
153
+ "value": "value"
154
+ },
155
+ {
156
+ "type": 0,
157
+ "value": " characters"
158
+ }
159
+ ],
160
+ "UNttd+": [
161
+ {
162
+ "type": 0,
163
+ "value": "Confirm"
164
+ }
165
+ ],
166
+ "URJDrG": [
167
+ {
168
+ "type": 0,
169
+ "value": "Sign up"
170
+ }
171
+ ],
172
+ "WU/CqP": [
173
+ {
174
+ "type": 0,
175
+ "value": "Passwords are not the same"
176
+ }
177
+ ],
178
+ "XreZg+": [
179
+ {
180
+ "type": 0,
181
+ "value": "Registered Email"
182
+ }
183
+ ],
184
+ "ZhaPt0": [
185
+ {
186
+ "type": 0,
187
+ "value": "Invalid Value for Field of type "
188
+ },
189
+ {
190
+ "type": 1,
191
+ "value": "type"
192
+ }
193
+ ],
194
+ "cGR2eI": [
195
+ {
196
+ "type": 0,
197
+ "value": "Confirmation"
198
+ }
199
+ ],
200
+ "d1YCuH": [
201
+ {
202
+ "type": 0,
203
+ "value": "Enter your email address"
204
+ }
205
+ ],
206
+ "e3IQoc": [
207
+ {
208
+ "type": 0,
209
+ "value": "New Password"
210
+ }
211
+ ],
212
+ "kdFYba": [
213
+ {
214
+ "type": 0,
215
+ "value": "Password field is required"
216
+ }
217
+ ],
218
+ "khMx/2": [
219
+ {
220
+ "type": 0,
221
+ "value": "An error occurred with your authentication. Please try again."
222
+ }
223
+ ],
224
+ "lY+cuM": [
225
+ {
226
+ "type": 0,
227
+ "value": "Confirm password"
228
+ }
229
+ ],
230
+ "lZvoYL": [
231
+ {
232
+ "type": 0,
233
+ "value": "Sign up now"
234
+ }
235
+ ],
236
+ "mZzmNV": [
237
+ {
238
+ "type": 0,
239
+ "value": "Recover Password"
240
+ }
241
+ ],
242
+ "oayEC3": [
243
+ {
244
+ "type": 0,
245
+ "value": "Sign up"
246
+ }
247
+ ],
248
+ "pwv2cR": [
249
+ {
250
+ "type": 0,
251
+ "value": "We have sent a confirmation code to your email address. Please enter the code below."
252
+ }
253
+ ],
254
+ "qTQ4hP": [
255
+ {
256
+ "type": 0,
257
+ "value": "An email has been sent to your address. Please check your inbox and follow the instructions to confirm your sign up."
258
+ }
259
+ ],
260
+ "qnQYqN": [
261
+ {
262
+ "type": 0,
263
+ "value": "You must accept the terms and conditions"
264
+ }
265
+ ],
266
+ "s1OmP0": [
267
+ {
268
+ "type": 0,
269
+ "value": "Confirmation code"
270
+ }
271
+ ]
272
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "0XOzcH": {
3
+ "defaultMessage": "Required field",
4
+ "description": "Required field."
5
+ },
6
+ "38HSjr": {
7
+ "defaultMessage": "Sign In",
8
+ "description": "Sign In"
9
+ },
10
+ "5E12mO": {
11
+ "defaultMessage": "Email",
12
+ "description": "Email label."
13
+ },
14
+ "6PdOcy": {
15
+ "defaultMessage": "Cancel",
16
+ "description": "Cancel"
17
+ },
18
+ "8GMUPk": {
19
+ "defaultMessage": "I'm already registered",
20
+ "description": "Link to sign in on sign up."
21
+ },
22
+ "9cApwd": {
23
+ "defaultMessage": "Please, insert a valid e-mail",
24
+ "description": "Invalid email."
25
+ },
26
+ "BtK6KR": {
27
+ "defaultMessage": "Forgot password?",
28
+ "description": "Forgot password?"
29
+ },
30
+ "Co3exe": {
31
+ "defaultMessage": "By signing up, you agree to the following Terms and Conditions."
32
+ },
33
+ "EZ3YF2": {
34
+ "defaultMessage": "Sign up",
35
+ "description": "Sign up"
36
+ },
37
+ "HT4tSM": {
38
+ "defaultMessage": "Reset Password",
39
+ "description": "Reset Password"
40
+ },
41
+ "KY2T6J": {
42
+ "defaultMessage": "Code",
43
+ "description": "Sign up confirmation code"
44
+ },
45
+ "NJ57Qj": {
46
+ "defaultMessage": "Confirm password field is required",
47
+ "description": "Confirm Password is required."
48
+ },
49
+ "OhDL0i": {
50
+ "defaultMessage": "Invalid email",
51
+ "description": "Invalid email."
52
+ },
53
+ "PylVqx": {
54
+ "defaultMessage": "Password",
55
+ "description": "Password label."
56
+ },
57
+ "S3pjKw": {
58
+ "defaultMessage": "Minimum {value} characters",
59
+ "description": "Minimum {value} characters."
60
+ },
61
+ "S4bbEj": {
62
+ "defaultMessage": "Recovering Password",
63
+ "description": "Recovering Password"
64
+ },
65
+ "SQJto2": {
66
+ "defaultMessage": "Sign in"
67
+ },
68
+ "SfWKyS": {
69
+ "defaultMessage": "Maximum {value} characters",
70
+ "description": "Maximum {value} characters."
71
+ },
72
+ "TZ4WUk": {
73
+ "defaultMessage": "Password requires {value} characters",
74
+ "description": "Password must be at least {value} characters long."
75
+ },
76
+ "UNttd+": {
77
+ "defaultMessage": "Confirm",
78
+ "description": "Confirm"
79
+ },
80
+ "URJDrG": {
81
+ "defaultMessage": "Sign up",
82
+ "description": "Create account."
83
+ },
84
+ "WU/CqP": {
85
+ "defaultMessage": "Passwords are not the same",
86
+ "description": "Passwords are not the same"
87
+ },
88
+ "XreZg+": {
89
+ "defaultMessage": "Registered Email",
90
+ "description": "Registered Email"
91
+ },
92
+ "cGR2eI": {
93
+ "defaultMessage": "Confirmation",
94
+ "description": "Confirmation"
95
+ },
96
+ "d1YCuH": {
97
+ "defaultMessage": "Enter your email address",
98
+ "description": "Email is a required field."
99
+ },
100
+ "e3IQoc": {
101
+ "defaultMessage": "New Password",
102
+ "description": "New Password"
103
+ },
104
+ "kdFYba": {
105
+ "defaultMessage": "Password field is required",
106
+ "description": "Password is required."
107
+ },
108
+ "khMx/2": {
109
+ "defaultMessage": "An error occurred with your authentication. Please try again."
110
+ },
111
+ "lY+cuM": {
112
+ "defaultMessage": "Confirm password",
113
+ "description": "Confirm Password label."
114
+ },
115
+ "lZvoYL": {
116
+ "defaultMessage": "Sign up now",
117
+ "description": "Sign up now"
118
+ },
119
+ "mZzmNV": {
120
+ "defaultMessage": "Recover Password",
121
+ "description": "Recover Password"
122
+ },
123
+ "oayEC3": {
124
+ "defaultMessage": "Sign up",
125
+ "description": "Title on sign up."
126
+ },
127
+ "pwv2cR": {
128
+ "defaultMessage": "We have sent a confirmation code to your email address. Please enter the code below."
129
+ },
130
+ "qTQ4hP": {
131
+ "defaultMessage": "An email has been sent to your address. Please check your inbox and follow the instructions to confirm your sign up."
132
+ },
133
+ "qnQYqN": {
134
+ "defaultMessage": "You must accept the terms and conditions"
135
+ },
136
+ "s1OmP0": {
137
+ "defaultMessage": "Confirmation code",
138
+ "description": "Confirmation code"
139
+ },
140
+ "D1C6fR": {
141
+ "module": "@ttoss/forms",
142
+ "defaultMessage": "Field must be at least {min} characters",
143
+ "description": "Min length field"
144
+ },
145
+ "MfWGyg": {
146
+ "module": "@ttoss/forms",
147
+ "defaultMessage": "Field is required",
148
+ "description": "Field is required"
149
+ },
150
+ "ZhaPt0": {
151
+ "module": "@ttoss/forms",
152
+ "defaultMessage": "Invalid Value for Field of type {type}",
153
+ "description": "Invalid Value"
154
+ }
155
+ }
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@ttoss/react-auth-core",
3
+ "version": "0.2.0",
4
+ "description": "Core authentication components and abstractions for React apps.",
5
+ "license": "MIT",
6
+ "author": "ttoss",
7
+ "contributors": [
8
+ "Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/ttoss/ttoss.git",
13
+ "directory": "packages/react-auth-core"
14
+ },
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/esm/index.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "i18n"
25
+ ],
26
+ "sideEffects": false,
27
+ "dependencies": {
28
+ "react-error-boundary": "^5.0.0"
29
+ },
30
+ "peerDependencies": {
31
+ "react": ">=16.8.0",
32
+ "@ttoss/components": "^2.2.26",
33
+ "@ttoss/forms": "^0.31.3",
34
+ "@ttoss/logger": "^0.6.4",
35
+ "@ttoss/react-notifications": "^2.4.3",
36
+ "@ttoss/ui": "^5.9.2",
37
+ "@ttoss/react-i18n": "^2.0.14"
38
+ },
39
+ "devDependencies": {
40
+ "@jest/globals": "^29.7.0",
41
+ "@types/react": "^19.1.8",
42
+ "jest": "^30.0.4",
43
+ "react": "^19.1.0",
44
+ "tsup": "^8.5.0",
45
+ "@ttoss/components": "^2.2.26",
46
+ "@ttoss/i18n-cli": "^0.7.31",
47
+ "@ttoss/forms": "^0.31.3",
48
+ "@ttoss/react-i18n": "^2.0.14",
49
+ "@ttoss/react-notifications": "^2.4.3",
50
+ "@ttoss/logger": "^0.6.4",
51
+ "@ttoss/config": "^1.35.6",
52
+ "@ttoss/test-utils": "^2.1.26",
53
+ "@ttoss/ui": "^5.9.2"
54
+ },
55
+ "keywords": [
56
+ "React",
57
+ "UI components",
58
+ "authentication",
59
+ "core"
60
+ ],
61
+ "publishConfig": {
62
+ "access": "public",
63
+ "provenance": true
64
+ },
65
+ "scripts": {
66
+ "build": "tsup",
67
+ "i18n": "ttoss-i18n",
68
+ "test": "jest --projects tests/unit"
69
+ }
70
+ }