@sqrzro/auth 4.0.0-alpha.10 → 4.0.0-alpha.12
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-dev.log +7 -598
- package/dist/forms/LoginForm/index.js +1 -1
- package/dist/forms/PasswordForm/index.js +1 -1
- package/dist/forms/PasswordResetForm/index.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/interfaces.d.ts +2 -0
- package/package.json +7 -7
- package/src/forms/LoginForm/index.tsx +6 -2
- package/src/forms/PasswordForm/index.tsx +18 -14
- package/src/forms/PasswordResetForm/index.tsx +8 -5
- package/src/index.ts +3 -0
- package/src/interfaces.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-dev.log
CHANGED
|
@@ -1,54 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @sqrzro/auth@4.0.0-alpha.
|
|
2
|
+
> @sqrzro/auth@4.0.0-alpha.11 dev /Users/richard/Sites/@sqrzro/sqrzro/packages/auth
|
|
3
3
|
> tsc --watch
|
|
4
4
|
|
|
5
|
-
[2J[3J[H[[
|
|
5
|
+
[2J[3J[H[[90m9:00:49 AM[0m] Starting compilation in watch mode...
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
7
|
+
[[90m9:00:52 AM[0m] Found 0 errors. Watching for file changes.
|
|
9
8
|
|
|
10
|
-
[
|
|
11
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
12
|
-
|
|
13
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
14
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
15
|
-
|
|
16
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
17
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
18
|
-
|
|
19
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
20
|
-
|
|
21
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
22
|
-
[7m [0m [91m ~~~[0m
|
|
23
|
-
|
|
24
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
25
|
-
|
|
26
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
27
|
-
[7m [0m [91m ~~~~~[0m
|
|
28
|
-
|
|
29
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
30
|
-
|
|
31
|
-
[7m15[0m value: complexities[key](value),
|
|
32
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
33
|
-
|
|
34
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
35
|
-
|
|
36
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
37
|
-
[7m [0m [91m ~~~[0m
|
|
38
|
-
|
|
39
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
40
|
-
|
|
41
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
42
|
-
[7m [0m [91m ~~~~~[0m
|
|
43
|
-
|
|
44
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
45
|
-
|
|
46
|
-
[7m31[0m value: complexities[key](value),
|
|
47
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
48
|
-
|
|
49
|
-
[[90m12:13:03 PM[0m] Found 8 errors. Watching for file changes.
|
|
50
|
-
|
|
51
|
-
[2J[3J[H[[90m12:13:06 PM[0m] File change detected. Starting incremental compilation...
|
|
9
|
+
[2J[3J[H[[90m9:00:55 AM[0m] File change detected. Starting incremental compilation...
|
|
52
10
|
|
|
53
11
|
[96msrc/components/LogoutButton/server.ts[0m:[93m3[0m:[93m31[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/server/auth'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/server/dist/auth/index.js' implicitly has an 'any' type.
|
|
54
12
|
Try `npm i --save-dev @types/sqrzro__server` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/server/auth';`
|
|
@@ -128,558 +86,9 @@
|
|
|
128
86
|
[7m1[0m import { createMail } from '@sqrzro/server/mail';
|
|
129
87
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~[0m
|
|
130
88
|
|
|
131
|
-
|
|
132
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
133
|
-
|
|
134
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
135
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
136
|
-
|
|
137
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
138
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
139
|
-
|
|
140
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
141
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
142
|
-
|
|
143
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
144
|
-
|
|
145
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
146
|
-
[7m [0m [91m ~~~[0m
|
|
147
|
-
|
|
148
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
149
|
-
|
|
150
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
151
|
-
[7m [0m [91m ~~~~~[0m
|
|
152
|
-
|
|
153
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
154
|
-
|
|
155
|
-
[7m15[0m value: complexities[key](value),
|
|
156
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
157
|
-
|
|
158
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
159
|
-
|
|
160
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
161
|
-
[7m [0m [91m ~~~[0m
|
|
162
|
-
|
|
163
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
164
|
-
|
|
165
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
166
|
-
[7m [0m [91m ~~~~~[0m
|
|
167
|
-
|
|
168
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
169
|
-
|
|
170
|
-
[7m31[0m value: complexities[key](value),
|
|
171
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
172
|
-
|
|
173
|
-
[[90m12:13:06 PM[0m] Found 21 errors. Watching for file changes.
|
|
174
|
-
|
|
175
|
-
[2J[3J[H[[90m12:13:10 PM[0m] File change detected. Starting incremental compilation...
|
|
176
|
-
|
|
177
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
178
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
179
|
-
|
|
180
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
181
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
182
|
-
|
|
183
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
184
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
185
|
-
|
|
186
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
187
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
188
|
-
|
|
189
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
190
|
-
|
|
191
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
192
|
-
[7m [0m [91m ~~~[0m
|
|
193
|
-
|
|
194
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
195
|
-
|
|
196
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
197
|
-
[7m [0m [91m ~~~~~[0m
|
|
198
|
-
|
|
199
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
200
|
-
|
|
201
|
-
[7m15[0m value: complexities[key](value),
|
|
202
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
203
|
-
|
|
204
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
205
|
-
|
|
206
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
207
|
-
[7m [0m [91m ~~~[0m
|
|
208
|
-
|
|
209
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
210
|
-
|
|
211
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
212
|
-
[7m [0m [91m ~~~~~[0m
|
|
213
|
-
|
|
214
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
215
|
-
|
|
216
|
-
[7m31[0m value: complexities[key](value),
|
|
217
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
218
|
-
|
|
219
|
-
[[90m12:13:10 PM[0m] Found 8 errors. Watching for file changes.
|
|
220
|
-
|
|
221
|
-
[2J[3J[H[[90m12:14:48 PM[0m] File change detected. Starting incremental compilation...
|
|
222
|
-
|
|
223
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
224
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
225
|
-
|
|
226
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
227
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
228
|
-
|
|
229
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
230
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
231
|
-
|
|
232
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
233
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
234
|
-
|
|
235
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
236
|
-
|
|
237
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
238
|
-
[7m [0m [91m ~~~[0m
|
|
239
|
-
|
|
240
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
241
|
-
|
|
242
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
243
|
-
[7m [0m [91m ~~~~~[0m
|
|
244
|
-
|
|
245
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
246
|
-
|
|
247
|
-
[7m15[0m value: complexities[key](value),
|
|
248
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
249
|
-
|
|
250
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
251
|
-
|
|
252
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
253
|
-
[7m [0m [91m ~~~[0m
|
|
254
|
-
|
|
255
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
256
|
-
|
|
257
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
258
|
-
[7m [0m [91m ~~~~~[0m
|
|
259
|
-
|
|
260
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
261
|
-
|
|
262
|
-
[7m31[0m value: complexities[key](value),
|
|
263
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
264
|
-
|
|
265
|
-
[[90m12:14:48 PM[0m] Found 8 errors. Watching for file changes.
|
|
266
|
-
|
|
267
|
-
[2J[3J[H[[90m12:14:53 PM[0m] File change detected. Starting incremental compilation...
|
|
268
|
-
|
|
269
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
270
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
271
|
-
|
|
272
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
273
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
274
|
-
|
|
275
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
276
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
277
|
-
|
|
278
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
279
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
280
|
-
|
|
281
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
282
|
-
|
|
283
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
284
|
-
[7m [0m [91m ~~~[0m
|
|
285
|
-
|
|
286
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
287
|
-
|
|
288
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
289
|
-
[7m [0m [91m ~~~~~[0m
|
|
290
|
-
|
|
291
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
292
|
-
|
|
293
|
-
[7m15[0m value: complexities[key](value),
|
|
294
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
295
|
-
|
|
296
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
297
|
-
|
|
298
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
299
|
-
[7m [0m [91m ~~~[0m
|
|
300
|
-
|
|
301
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
302
|
-
|
|
303
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
304
|
-
[7m [0m [91m ~~~~~[0m
|
|
305
|
-
|
|
306
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
307
|
-
|
|
308
|
-
[7m31[0m value: complexities[key](value),
|
|
309
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
310
|
-
|
|
311
|
-
[[90m12:14:53 PM[0m] Found 8 errors. Watching for file changes.
|
|
312
|
-
|
|
313
|
-
[2J[3J[H[[90m12:15:49 PM[0m] File change detected. Starting incremental compilation...
|
|
314
|
-
|
|
315
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
316
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
317
|
-
|
|
318
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
319
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
320
|
-
|
|
321
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
322
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
323
|
-
|
|
324
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
325
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
326
|
-
|
|
327
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
328
|
-
|
|
329
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
330
|
-
[7m [0m [91m ~~~[0m
|
|
331
|
-
|
|
332
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
333
|
-
|
|
334
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
335
|
-
[7m [0m [91m ~~~~~[0m
|
|
336
|
-
|
|
337
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
338
|
-
|
|
339
|
-
[7m15[0m value: complexities[key](value),
|
|
340
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
341
|
-
|
|
342
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
343
|
-
|
|
344
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
345
|
-
[7m [0m [91m ~~~[0m
|
|
346
|
-
|
|
347
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
348
|
-
|
|
349
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
350
|
-
[7m [0m [91m ~~~~~[0m
|
|
351
|
-
|
|
352
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
353
|
-
|
|
354
|
-
[7m31[0m value: complexities[key](value),
|
|
355
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
356
|
-
|
|
357
|
-
[[90m12:15:49 PM[0m] Found 8 errors. Watching for file changes.
|
|
358
|
-
|
|
359
|
-
[2J[3J[H[[90m12:19:33 PM[0m] File change detected. Starting incremental compilation...
|
|
360
|
-
|
|
361
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
362
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
363
|
-
|
|
364
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
365
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
366
|
-
|
|
367
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
368
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
369
|
-
|
|
370
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
371
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
372
|
-
|
|
373
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
374
|
-
|
|
375
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
376
|
-
[7m [0m [91m ~~~[0m
|
|
377
|
-
|
|
378
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
379
|
-
|
|
380
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
381
|
-
[7m [0m [91m ~~~~~[0m
|
|
382
|
-
|
|
383
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
384
|
-
|
|
385
|
-
[7m15[0m value: complexities[key](value),
|
|
386
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
387
|
-
|
|
388
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
389
|
-
|
|
390
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
391
|
-
[7m [0m [91m ~~~[0m
|
|
392
|
-
|
|
393
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
394
|
-
|
|
395
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
396
|
-
[7m [0m [91m ~~~~~[0m
|
|
397
|
-
|
|
398
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
399
|
-
|
|
400
|
-
[7m31[0m value: complexities[key](value),
|
|
401
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
402
|
-
|
|
403
|
-
[[90m12:19:33 PM[0m] Found 8 errors. Watching for file changes.
|
|
404
|
-
|
|
405
|
-
[2J[3J[H[[90m12:19:52 PM[0m] File change detected. Starting incremental compilation...
|
|
406
|
-
|
|
407
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
408
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
409
|
-
|
|
410
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
411
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
412
|
-
|
|
413
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
414
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
415
|
-
|
|
416
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
417
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
418
|
-
|
|
419
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
420
|
-
|
|
421
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
422
|
-
[7m [0m [91m ~~~[0m
|
|
423
|
-
|
|
424
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
425
|
-
|
|
426
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
427
|
-
[7m [0m [91m ~~~~~[0m
|
|
428
|
-
|
|
429
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
430
|
-
|
|
431
|
-
[7m15[0m value: complexities[key](value),
|
|
432
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
433
|
-
|
|
434
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
435
|
-
|
|
436
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
437
|
-
[7m [0m [91m ~~~[0m
|
|
438
|
-
|
|
439
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
440
|
-
|
|
441
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
442
|
-
[7m [0m [91m ~~~~~[0m
|
|
443
|
-
|
|
444
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
445
|
-
|
|
446
|
-
[7m31[0m value: complexities[key](value),
|
|
447
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
448
|
-
|
|
449
|
-
[[90m12:19:52 PM[0m] Found 8 errors. Watching for file changes.
|
|
450
|
-
|
|
451
|
-
[2J[3J[H[[90m12:22:13 PM[0m] File change detected. Starting incremental compilation...
|
|
452
|
-
|
|
453
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
454
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
455
|
-
|
|
456
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
457
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
458
|
-
|
|
459
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
460
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
461
|
-
|
|
462
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
463
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
464
|
-
|
|
465
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
466
|
-
|
|
467
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
468
|
-
[7m [0m [91m ~~~[0m
|
|
469
|
-
|
|
470
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
471
|
-
|
|
472
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
473
|
-
[7m [0m [91m ~~~~~[0m
|
|
474
|
-
|
|
475
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
476
|
-
|
|
477
|
-
[7m15[0m value: complexities[key](value),
|
|
478
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
479
|
-
|
|
480
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
481
|
-
|
|
482
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
483
|
-
[7m [0m [91m ~~~[0m
|
|
484
|
-
|
|
485
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
486
|
-
|
|
487
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
488
|
-
[7m [0m [91m ~~~~~[0m
|
|
489
|
-
|
|
490
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
491
|
-
|
|
492
|
-
[7m31[0m value: complexities[key](value),
|
|
493
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
494
|
-
|
|
495
|
-
[[90m12:22:13 PM[0m] Found 8 errors. Watching for file changes.
|
|
496
|
-
|
|
497
|
-
[2J[3J[H[[90m12:22:47 PM[0m] File change detected. Starting incremental compilation...
|
|
498
|
-
|
|
499
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
500
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
501
|
-
|
|
502
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
503
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
504
|
-
|
|
505
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
506
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
507
|
-
|
|
508
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
509
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
510
|
-
|
|
511
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
512
|
-
|
|
513
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
514
|
-
[7m [0m [91m ~~~[0m
|
|
515
|
-
|
|
516
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
517
|
-
|
|
518
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
519
|
-
[7m [0m [91m ~~~~~[0m
|
|
520
|
-
|
|
521
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
522
|
-
|
|
523
|
-
[7m15[0m value: complexities[key](value),
|
|
524
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
525
|
-
|
|
526
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
527
|
-
|
|
528
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
529
|
-
[7m [0m [91m ~~~[0m
|
|
530
|
-
|
|
531
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
532
|
-
|
|
533
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
534
|
-
[7m [0m [91m ~~~~~[0m
|
|
535
|
-
|
|
536
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
537
|
-
|
|
538
|
-
[7m31[0m value: complexities[key](value),
|
|
539
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
540
|
-
|
|
541
|
-
[[90m12:22:47 PM[0m] Found 8 errors. Watching for file changes.
|
|
542
|
-
|
|
543
|
-
[2J[3J[H[[90m12:22:54 PM[0m] File change detected. Starting incremental compilation...
|
|
544
|
-
|
|
545
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
546
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
547
|
-
|
|
548
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
549
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
550
|
-
|
|
551
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
552
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
553
|
-
|
|
554
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
555
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
556
|
-
|
|
557
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
558
|
-
|
|
559
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
560
|
-
[7m [0m [91m ~~~[0m
|
|
561
|
-
|
|
562
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
563
|
-
|
|
564
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
565
|
-
[7m [0m [91m ~~~~~[0m
|
|
566
|
-
|
|
567
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
568
|
-
|
|
569
|
-
[7m15[0m value: complexities[key](value),
|
|
570
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
571
|
-
|
|
572
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
573
|
-
|
|
574
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
575
|
-
[7m [0m [91m ~~~[0m
|
|
576
|
-
|
|
577
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
578
|
-
|
|
579
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
580
|
-
[7m [0m [91m ~~~~~[0m
|
|
581
|
-
|
|
582
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
583
|
-
|
|
584
|
-
[7m31[0m value: complexities[key](value),
|
|
585
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
586
|
-
|
|
587
|
-
[[90m12:22:54 PM[0m] Found 8 errors. Watching for file changes.
|
|
588
|
-
|
|
589
|
-
[2J[3J[H[[90m12:42:08 PM[0m] File change detected. Starting incremental compilation...
|
|
590
|
-
|
|
591
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
592
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
593
|
-
|
|
594
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
595
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
596
|
-
|
|
597
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
598
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
599
|
-
|
|
600
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
601
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
602
|
-
|
|
603
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
604
|
-
|
|
605
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
606
|
-
[7m [0m [91m ~~~[0m
|
|
607
|
-
|
|
608
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
609
|
-
|
|
610
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
611
|
-
[7m [0m [91m ~~~~~[0m
|
|
612
|
-
|
|
613
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
614
|
-
|
|
615
|
-
[7m15[0m value: complexities[key](value),
|
|
616
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
617
|
-
|
|
618
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
619
|
-
|
|
620
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
621
|
-
[7m [0m [91m ~~~[0m
|
|
622
|
-
|
|
623
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
624
|
-
|
|
625
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
626
|
-
[7m [0m [91m ~~~~~[0m
|
|
627
|
-
|
|
628
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
629
|
-
|
|
630
|
-
[7m31[0m value: complexities[key](value),
|
|
631
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
632
|
-
|
|
633
|
-
[[90m12:42:08 PM[0m] Found 8 errors. Watching for file changes.
|
|
634
|
-
|
|
635
|
-
[2J[3J[H[[90m12:42:53 PM[0m] File change detected. Starting incremental compilation...
|
|
636
|
-
|
|
637
|
-
[96msrc/utility/lang.ts[0m:[93m1[0m:[93m30[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
638
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
639
|
-
|
|
640
|
-
[7m1[0m import { formatPlural } from '@sqrzro/utility';
|
|
641
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
642
|
-
|
|
643
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m1[0m:[93m37[0m - [91merror[0m[90m TS7016: [0mCould not find a declaration file for module '@sqrzro/utility'. '/Users/richard/Sites/@sqrzro/sqrzro/packages/utility/dist/index.js' implicitly has an 'any' type.
|
|
644
|
-
Try `npm i --save-dev @types/sqrzro__utility` if it exists or add a new declaration (.d.ts) file containing `declare module '@sqrzro/utility';`
|
|
645
|
-
|
|
646
|
-
[7m1[0m import { getEntries, getKeys } from '@sqrzro/utility';
|
|
647
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
648
|
-
|
|
649
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
650
|
-
|
|
651
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
652
|
-
[7m [0m [91m ~~~[0m
|
|
653
|
-
|
|
654
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m13[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
655
|
-
|
|
656
|
-
[7m13[0m return getEntries(complexity).map(([key, value]) => ({
|
|
657
|
-
[7m [0m [91m ~~~~~[0m
|
|
658
|
-
|
|
659
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m15[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
660
|
-
|
|
661
|
-
[7m15[0m value: complexities[key](value),
|
|
662
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
663
|
-
|
|
664
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m41[0m - [91merror[0m[90m TS7031: [0mBinding element 'key' implicitly has an 'any' type.
|
|
665
|
-
|
|
666
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
667
|
-
[7m [0m [91m ~~~[0m
|
|
668
|
-
|
|
669
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m29[0m:[93m46[0m - [91merror[0m[90m TS7031: [0mBinding element 'value' implicitly has an 'any' type.
|
|
670
|
-
|
|
671
|
-
[7m29[0m return getEntries(complexity).map(([key, value]) => ({
|
|
672
|
-
[7m [0m [91m ~~~~~[0m
|
|
673
|
-
|
|
674
|
-
[96msrc/utility/validate-complexity.ts[0m:[93m31[0m:[93m16[0m - [91merror[0m[90m TS7053: [0mElement implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Record<PasswordComplexityKey, (value?: number | undefined) => string>'.
|
|
675
|
-
|
|
676
|
-
[7m31[0m value: complexities[key](value),
|
|
677
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
678
|
-
|
|
679
|
-
[[90m12:42:53 PM[0m] Found 8 errors. Watching for file changes.
|
|
89
|
+
[[90m9:00:56 AM[0m] Found 13 errors. Watching for file changes.
|
|
680
90
|
|
|
681
|
-
[2J[3J[H[[
|
|
91
|
+
[2J[3J[H[[90m9:00:59 AM[0m] File change detected. Starting incremental compilation...
|
|
682
92
|
|
|
683
|
-
[[
|
|
93
|
+
[[90m9:00:59 AM[0m] Found 0 errors. Watching for file changes.
|
|
684
94
|
|
|
685
|
-
[41m[30m ELIFECYCLE [39m[49m [31mCommand failed.[39m
|
|
@@ -8,6 +8,6 @@ function LoginForm({ classNames }) {
|
|
|
8
8
|
const { fieldProps, formData, formProps } = useForm({
|
|
9
9
|
onSubmit: submit,
|
|
10
10
|
});
|
|
11
|
-
return (_jsxs(Fragment, { children: [_jsx("h1", { className: classNames?.title, children: "Sign in to continue" }), _jsxs(Form, { classNames: { root: classNames?.form }, ...formProps, children: [_jsx(TextFormField, { ...fieldProps('email'), hasAssistiveError: true }), _jsx(PasswordFormField, { ...fieldProps('password'), hasAssistiveError: true }), _jsx("div", { className: classNames?.actions, children: _jsx(FormSubmit, { isFullWidth: true, children: "Sign In" }) }), _jsx("footer", { className: classNames?.footer, children: _jsx(Link, { className: classNames?.link, href: `/auth/password${formData.email ? `?email=${formData.email}` : ''}`, children: "Forgot Password?" }) })] })] }));
|
|
11
|
+
return (_jsxs(Fragment, { children: [_jsx("h1", { className: classNames?.title, children: "Sign in to continue" }), _jsxs(Form, { classNames: { root: classNames?.form }, ...formProps, children: [_jsx("div", { className: classNames?.field, children: _jsx(TextFormField, { ...fieldProps('email'), hasAssistiveError: true }) }), _jsx("div", { className: classNames?.field, children: _jsx(PasswordFormField, { ...fieldProps('password'), hasAssistiveError: true }) }), _jsx("div", { className: classNames?.actions, children: _jsx(FormSubmit, { isFullWidth: true, children: "Sign In" }) }), _jsx("footer", { className: classNames?.footer, children: _jsx(Link, { className: classNames?.link, href: `/auth/password${formData.email ? `?email=${formData.email}` : ''}`, children: "Forgot Password?" }) })] })] }));
|
|
12
12
|
}
|
|
13
13
|
export default LoginForm;
|
|
@@ -22,6 +22,6 @@ function PasswordForm({ classNames, defaults }) {
|
|
|
22
22
|
setFormData('email', '');
|
|
23
23
|
setSentCount(0);
|
|
24
24
|
}
|
|
25
|
-
return (_jsxs(Fragment, { children: [_jsx("div", { style: { display: sentCount === 0 ? 'block' : 'none' }, children: _jsxs(Form, { ...formProps, children: [_jsx("h1", { className: classNames?.title, children: "Reset Your Password" }), _jsx("
|
|
25
|
+
return (_jsxs(Fragment, { children: [_jsx("div", { style: { display: sentCount === 0 ? 'block' : 'none' }, children: _jsxs(Form, { classNames: { root: classNames?.form }, ...formProps, children: [_jsx("h1", { className: classNames?.title, children: "Reset Your Password" }), _jsx("div", { className: classNames?.content, children: _jsx("p", { children: "Enter the email address associated with your account and we'll send you a link to reset your password." }) }), _jsx("div", { className: classNames?.field, children: _jsx(TextFormField, { ...fieldProps('email'), hasAssistiveError: true }) }), _jsx("div", { className: classNames?.actions, children: _jsx(FormSubmit, { isFullWidth: true, children: "Send Email" }) }), _jsx("footer", { className: classNames?.footer, children: _jsx(Link, { className: classNames?.link, href: "/auth/login", children: "Back" }) })] }) }), _jsx("div", { style: { display: sentCount === 0 ? 'none' : 'block' }, children: _jsxs("div", { className: classNames?.form, children: [_jsx("h1", { className: classNames?.title, children: "Check Your Email" }), sentCount === 1 ? (_jsxs("div", { className: classNames?.content, children: [_jsxs("p", { children: ["If ", _jsx("strong", { children: formData.email }), " matches an email we have on file, then we've sent you an email containing further instructions for resetting your password."] }), _jsxs("p", { children: ["If you haven't received an email in 5 minutes, check your spam,", ' ', _jsx(Link, { className: classNames?.link, onClick: handleResend, children: "resend" }), ", or", ' ', _jsx(Link, { className: classNames?.link, onClick: handleReset, children: "try a different email address" }), "."] })] })) : (_jsxs("div", { className: classNames?.content, children: [_jsxs("p", { children: ["We've resent password reset instructions to", ' ', _jsx("strong", { children: formData.email }), ", if it is an email we have on file."] }), _jsxs("p", { children: ["Please check again. If you still haven't received an email,", ' ', _jsx(Link, { className: classNames?.link, onClick: handleReset, children: "try a different email address" }), "."] })] }))] }) })] }));
|
|
26
26
|
}
|
|
27
27
|
export default PasswordForm;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { useState } from 'react';
|
|
4
4
|
import { Form, FormSubmit, useForm } from '@sqrzro/ui/forms';
|
|
5
5
|
import PasswordComplexityFormField from '../../components/PasswordComplexityFormField';
|
|
6
6
|
import submit from './server';
|
|
@@ -10,6 +10,6 @@ function PasswordResetForm({ classNames, token, }) {
|
|
|
10
10
|
defaults: { token },
|
|
11
11
|
onSubmit: submit,
|
|
12
12
|
});
|
|
13
|
-
return (_jsx(
|
|
13
|
+
return (_jsxs(Form, { classNames: { root: classNames?.form }, ...formProps, children: [_jsx("h1", { className: classNames?.title, children: "Reset Your Password" }), _jsx("div", { className: classNames?.field, children: _jsx(PasswordComplexityFormField, { ...fieldProps('password'), onComplexity: (isValid) => setIsDisabled(!isValid) }) }), _jsx("div", { className: classNames?.actions, children: _jsx(FormSubmit, { isDisabled: isDisabled, children: "Reset Password" }) })] }));
|
|
14
14
|
}
|
|
15
15
|
export default PasswordResetForm;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export type { AuthClassNames, AuthConfigObject } from './interfaces';
|
|
|
2
2
|
export type { AuthProps } from './components/Auth';
|
|
3
3
|
export { default as Auth } from './components/Auth';
|
|
4
4
|
export { default as LogoutButton } from './components/LogoutButton';
|
|
5
|
+
export { default as PasswordComplexityFormField } from './components/PasswordComplexityFormField';
|
|
6
|
+
export { default as getComplexityRule } from './rules/complexity';
|
|
5
7
|
export { default as getAuthProxy } from './get-auth-proxy';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as Auth } from './components/Auth';
|
|
2
2
|
export { default as LogoutButton } from './components/LogoutButton';
|
|
3
|
+
export { default as PasswordComplexityFormField } from './components/PasswordComplexityFormField';
|
|
4
|
+
export { default as getComplexityRule } from './rules/complexity';
|
|
3
5
|
export { default as getAuthProxy } from './get-auth-proxy';
|
package/dist/interfaces.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/auth",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.12",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"zod": "^4.3.6",
|
|
9
|
-
"@sqrzro/server": "^4.0.0-alpha.
|
|
10
|
-
"@sqrzro/
|
|
11
|
-
"@sqrzro/
|
|
9
|
+
"@sqrzro/server": "^4.0.0-alpha.28",
|
|
10
|
+
"@sqrzro/utility": "^4.0.0-alpha.10",
|
|
11
|
+
"@sqrzro/ui": "^4.0.0-alpha.27"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@types/react": "^19.2.
|
|
15
|
-
"prettier": "^3.
|
|
14
|
+
"@types/react": "^19.2.14",
|
|
15
|
+
"prettier": "^3.8.1",
|
|
16
16
|
"typescript": "^5.9.3",
|
|
17
|
-
"@sqrzro/prettier-config": "^4.0.0-alpha.
|
|
17
|
+
"@sqrzro/prettier-config": "^4.0.0-alpha.2"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"next": "^16.1.6",
|
|
@@ -18,8 +18,12 @@ function LoginForm({ classNames }: AuthClassNameProps): React.ReactElement | nul
|
|
|
18
18
|
<Fragment>
|
|
19
19
|
<h1 className={classNames?.title}>Sign in to continue</h1>
|
|
20
20
|
<Form classNames={{ root: classNames?.form }} {...formProps}>
|
|
21
|
-
<
|
|
22
|
-
|
|
21
|
+
<div className={classNames?.field}>
|
|
22
|
+
<TextFormField {...fieldProps('email')} hasAssistiveError />
|
|
23
|
+
</div>
|
|
24
|
+
<div className={classNames?.field}>
|
|
25
|
+
<PasswordFormField {...fieldProps('password')} hasAssistiveError />
|
|
26
|
+
</div>
|
|
23
27
|
<div className={classNames?.actions}>
|
|
24
28
|
<FormSubmit isFullWidth>Sign In</FormSubmit>
|
|
25
29
|
</div>
|
|
@@ -40,13 +40,17 @@ function PasswordForm({ classNames, defaults }: PasswordFormProps): React.ReactE
|
|
|
40
40
|
return (
|
|
41
41
|
<Fragment>
|
|
42
42
|
<div style={{ display: sentCount === 0 ? 'block' : 'none' }}>
|
|
43
|
-
<Form {...formProps}>
|
|
43
|
+
<Form classNames={{ root: classNames?.form }} {...formProps}>
|
|
44
44
|
<h1 className={classNames?.title}>Reset Your Password</h1>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
<div className={classNames?.content}>
|
|
46
|
+
<p>
|
|
47
|
+
Enter the email address associated with your account and we'll send
|
|
48
|
+
you a link to reset your password.
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
<div className={classNames?.field}>
|
|
52
|
+
<TextFormField {...fieldProps('email')} hasAssistiveError />
|
|
53
|
+
</div>
|
|
50
54
|
<div className={classNames?.actions}>
|
|
51
55
|
<FormSubmit isFullWidth>Send Email</FormSubmit>
|
|
52
56
|
</div>
|
|
@@ -61,13 +65,13 @@ function PasswordForm({ classNames, defaults }: PasswordFormProps): React.ReactE
|
|
|
61
65
|
<div className={classNames?.form}>
|
|
62
66
|
<h1 className={classNames?.title}>Check Your Email</h1>
|
|
63
67
|
{sentCount === 1 ? (
|
|
64
|
-
<
|
|
65
|
-
<p
|
|
68
|
+
<div className={classNames?.content}>
|
|
69
|
+
<p>
|
|
66
70
|
If <strong>{formData.email}</strong> matches an email we have on
|
|
67
71
|
file, then we've sent you an email containing further
|
|
68
72
|
instructions for resetting your password.
|
|
69
73
|
</p>
|
|
70
|
-
<p
|
|
74
|
+
<p>
|
|
71
75
|
If you haven't received an email in 5 minutes, check your spam,{' '}
|
|
72
76
|
<Link className={classNames?.link} onClick={handleResend}>
|
|
73
77
|
resend
|
|
@@ -78,22 +82,22 @@ function PasswordForm({ classNames, defaults }: PasswordFormProps): React.ReactE
|
|
|
78
82
|
</Link>
|
|
79
83
|
.
|
|
80
84
|
</p>
|
|
81
|
-
</
|
|
85
|
+
</div>
|
|
82
86
|
) : (
|
|
83
|
-
<
|
|
84
|
-
<p
|
|
87
|
+
<div className={classNames?.content}>
|
|
88
|
+
<p>
|
|
85
89
|
We've resent password reset instructions to{' '}
|
|
86
90
|
<strong>{formData.email}</strong>, if it is an email we have on
|
|
87
91
|
file.
|
|
88
92
|
</p>
|
|
89
|
-
<p
|
|
93
|
+
<p>
|
|
90
94
|
Please check again. If you still haven't received an email,{' '}
|
|
91
95
|
<Link className={classNames?.link} onClick={handleReset}>
|
|
92
96
|
try a different email address
|
|
93
97
|
</Link>
|
|
94
98
|
.
|
|
95
99
|
</p>
|
|
96
|
-
</
|
|
100
|
+
</div>
|
|
97
101
|
)}
|
|
98
102
|
</div>
|
|
99
103
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useState } from 'react';
|
|
4
4
|
|
|
5
5
|
import { Form, FormSubmit, useForm } from '@sqrzro/ui/forms';
|
|
6
6
|
|
|
@@ -25,15 +25,18 @@ function PasswordResetForm({
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
|
-
<
|
|
29
|
-
<
|
|
28
|
+
<Form classNames={{ root: classNames?.form }} {...formProps}>
|
|
29
|
+
<h1 className={classNames?.title}>Reset Your Password</h1>
|
|
30
|
+
<div className={classNames?.field}>
|
|
30
31
|
<PasswordComplexityFormField
|
|
31
32
|
{...fieldProps('password')}
|
|
32
33
|
onComplexity={(isValid) => setIsDisabled(!isValid)}
|
|
33
34
|
/>
|
|
35
|
+
</div>
|
|
36
|
+
<div className={classNames?.actions}>
|
|
34
37
|
<FormSubmit isDisabled={isDisabled}>Reset Password</FormSubmit>
|
|
35
|
-
</
|
|
36
|
-
</
|
|
38
|
+
</div>
|
|
39
|
+
</Form>
|
|
37
40
|
);
|
|
38
41
|
}
|
|
39
42
|
|
package/src/index.ts
CHANGED
|
@@ -4,5 +4,8 @@ export type { AuthProps } from './components/Auth';
|
|
|
4
4
|
export { default as Auth } from './components/Auth';
|
|
5
5
|
|
|
6
6
|
export { default as LogoutButton } from './components/LogoutButton';
|
|
7
|
+
export { default as PasswordComplexityFormField } from './components/PasswordComplexityFormField';
|
|
8
|
+
|
|
9
|
+
export { default as getComplexityRule } from './rules/complexity';
|
|
7
10
|
|
|
8
11
|
export { default as getAuthProxy } from './get-auth-proxy';
|