@nymphjs/tilmeld-components 1.0.0-beta.117 → 1.0.0-beta.119
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/CHANGELOG.md +10 -0
- package/dist/Account.svelte +48 -44
- package/dist/ChangePassword.svelte +25 -25
- package/dist/Login.svelte +56 -44
- package/dist/Recover.svelte +40 -34
- package/dist/RevokeTokens.svelte +16 -16
- package/dist/TwoFactor.svelte +24 -24
- package/jest.config.js +25 -8
- package/package.json +23 -22
- package/src/Account.svelte +48 -44
- package/src/ChangePassword.svelte +25 -25
- package/src/Login.svelte +56 -44
- package/src/Recover.svelte +40 -34
- package/src/RevokeTokens.svelte +16 -16
- package/src/TwoFactor.svelte +24 -24
- package/tsconfig.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.119](https://forge.sciactive.com/sciactive/nymphjs/compare/v1.0.0-beta.118...v1.0.0-beta.119) (2026-08-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nymphjs/tilmeld-components
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.118](https://forge.sciactive.com/sciactive/nymphjs/compare/v1.0.0-beta.117...v1.0.0-beta.118) (2026-08-24)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- update packages and migrate to ts7 ([c1b8eb5](https://forge.sciactive.com/sciactive/nymphjs/commits/c1b8eb5f7dd68436759f8d7b94bc9622511e71fd))
|
|
15
|
+
|
|
6
16
|
# [1.0.0-beta.117](https://forge.sciactive.com/sciactive/nymphjs/compare/v1.0.0-beta.116...v1.0.0-beta.117) (2026-04-21)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @nymphjs/tilmeld-components
|
package/dist/Account.svelte
CHANGED
|
@@ -291,71 +291,75 @@
|
|
|
291
291
|
additional,
|
|
292
292
|
...restProps
|
|
293
293
|
}: OwnProps & {
|
|
294
|
-
[
|
|
295
|
-
typeof Textfield
|
|
296
|
-
|
|
294
|
+
[
|
|
295
|
+
k in keyof ComponentProps<typeof Textfield> as `username\$${k}`
|
|
296
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
297
297
|
} & {
|
|
298
|
-
[
|
|
299
|
-
typeof Textfield
|
|
300
|
-
|
|
298
|
+
[
|
|
299
|
+
k in keyof ComponentProps<typeof Textfield> as `email\$${k}`
|
|
300
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
301
301
|
} & {
|
|
302
|
-
[
|
|
303
|
-
typeof Textfield
|
|
304
|
-
|
|
302
|
+
[
|
|
303
|
+
k in keyof ComponentProps<typeof Textfield> as `nameFirst\$${k}`
|
|
304
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
305
305
|
} & {
|
|
306
|
-
[
|
|
307
|
-
typeof Textfield
|
|
308
|
-
|
|
306
|
+
[
|
|
307
|
+
k in keyof ComponentProps<typeof Textfield> as `nameMiddle\$${k}`
|
|
308
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
309
309
|
} & {
|
|
310
|
-
[
|
|
311
|
-
typeof Textfield
|
|
312
|
-
|
|
310
|
+
[
|
|
311
|
+
k in keyof ComponentProps<typeof Textfield> as `nameLast\$${k}`
|
|
312
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
313
313
|
} & {
|
|
314
|
-
[
|
|
315
|
-
typeof Textfield
|
|
316
|
-
|
|
314
|
+
[
|
|
315
|
+
k in keyof ComponentProps<typeof Textfield> as `phone\$${k}`
|
|
316
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
317
317
|
} & {
|
|
318
|
-
[
|
|
318
|
+
[
|
|
319
|
+
k in keyof SmuiElementPropMap['a'] as `changePasswordLink\$${k}`
|
|
320
|
+
]?: SmuiElementPropMap['a'][k];
|
|
319
321
|
} & {
|
|
320
|
-
[
|
|
322
|
+
[
|
|
323
|
+
k in keyof SmuiElementPropMap['a'] as `revokeTokensLink\$${k}`
|
|
324
|
+
]?: SmuiElementPropMap['a'][k];
|
|
321
325
|
} & {
|
|
322
|
-
[
|
|
323
|
-
typeof CircularProgress
|
|
324
|
-
|
|
326
|
+
[
|
|
327
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
328
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
325
329
|
} & {
|
|
326
|
-
[
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
330
|
+
[
|
|
331
|
+
k in keyof ComponentProps<
|
|
332
|
+
typeof Button<undefined, 'button'>
|
|
333
|
+
> as `closeButton\$${k}`
|
|
334
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
331
335
|
} & {
|
|
332
|
-
[
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
336
|
+
[
|
|
337
|
+
k in keyof ComponentProps<
|
|
338
|
+
typeof Button<undefined, 'button'>
|
|
339
|
+
> as `saveButton\$${k}`
|
|
340
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
337
341
|
} & {
|
|
338
|
-
[
|
|
339
|
-
typeof ChangePassword
|
|
340
|
-
|
|
342
|
+
[
|
|
343
|
+
k in keyof ComponentProps<typeof ChangePassword> as `changePassword\$${k}`
|
|
344
|
+
]?: ComponentProps<typeof ChangePassword>[k];
|
|
341
345
|
} & {
|
|
342
|
-
[
|
|
343
|
-
typeof RevokeTokens
|
|
344
|
-
|
|
346
|
+
[
|
|
347
|
+
k in keyof ComponentProps<typeof RevokeTokens> as `revokeTokens\$${k}`
|
|
348
|
+
]?: ComponentProps<typeof RevokeTokens>[k];
|
|
345
349
|
} & {
|
|
346
|
-
[
|
|
347
|
-
typeof TwoFactor
|
|
348
|
-
|
|
350
|
+
[
|
|
351
|
+
k in keyof ComponentProps<typeof TwoFactor> as `twoFactor\$${k}`
|
|
352
|
+
]?: ComponentProps<typeof TwoFactor>[k];
|
|
349
353
|
} = $props();
|
|
350
354
|
|
|
351
355
|
let loading = $state(false);
|
|
352
356
|
let originalUsername: string | undefined = $user?.username;
|
|
353
357
|
let originalEmail: string | undefined = $user?.email;
|
|
354
358
|
let failureMessage: string | undefined = $state();
|
|
355
|
-
let usernameTimer:
|
|
359
|
+
let usernameTimer: number | undefined = undefined;
|
|
356
360
|
let usernameVerified: boolean | undefined = $state();
|
|
357
361
|
let usernameVerifiedMessage: string | undefined = $state();
|
|
358
|
-
let emailTimer:
|
|
362
|
+
let emailTimer: number | undefined = undefined;
|
|
359
363
|
let emailVerified: boolean | undefined = $state();
|
|
360
364
|
let emailVerifiedMessage: string | undefined = $state();
|
|
361
365
|
let hasTOTPSecret: boolean | null = $state(null);
|
|
@@ -178,37 +178,37 @@
|
|
|
178
178
|
additional,
|
|
179
179
|
...restProps
|
|
180
180
|
}: OwnProps & {
|
|
181
|
-
[
|
|
182
|
-
typeof Textfield
|
|
183
|
-
|
|
181
|
+
[
|
|
182
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
183
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
184
184
|
} & {
|
|
185
|
-
[
|
|
186
|
-
typeof Textfield
|
|
187
|
-
|
|
185
|
+
[
|
|
186
|
+
k in keyof ComponentProps<typeof Textfield> as `newPassword\$${k}`
|
|
187
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
188
188
|
} & {
|
|
189
|
-
[
|
|
190
|
-
typeof Textfield
|
|
191
|
-
|
|
189
|
+
[
|
|
190
|
+
k in keyof ComponentProps<typeof Textfield> as `newPassword2\$${k}`
|
|
191
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
192
192
|
} & {
|
|
193
|
-
[
|
|
194
|
-
typeof Checkbox
|
|
195
|
-
|
|
193
|
+
[
|
|
194
|
+
k in keyof ComponentProps<typeof Checkbox> as `revokeTokens\$${k}`
|
|
195
|
+
]?: ComponentProps<typeof Checkbox>[k];
|
|
196
196
|
} & {
|
|
197
|
-
[
|
|
198
|
-
typeof CircularProgress
|
|
199
|
-
|
|
197
|
+
[
|
|
198
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
199
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
200
200
|
} & {
|
|
201
|
-
[
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
[
|
|
202
|
+
k in keyof ComponentProps<
|
|
203
|
+
typeof Button<undefined, 'button'>
|
|
204
|
+
> as `closeButton\$${k}`
|
|
205
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
206
206
|
} & {
|
|
207
|
-
[
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
[
|
|
208
|
+
k in keyof ComponentProps<
|
|
209
|
+
typeof Button<undefined, 'button'>
|
|
210
|
+
> as `saveButton\$${k}`
|
|
211
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
212
212
|
} = $props();
|
|
213
213
|
|
|
214
214
|
let loading = $state(false);
|
package/dist/Login.svelte
CHANGED
|
@@ -390,72 +390,84 @@
|
|
|
390
390
|
onlogin,
|
|
391
391
|
...restProps
|
|
392
392
|
}: OwnProps & {
|
|
393
|
-
[
|
|
393
|
+
[
|
|
394
|
+
k in keyof SmuiElementPropMap['div'] as `successRegisteredMessage\$${k}`
|
|
395
|
+
]?: SmuiElementPropMap['div'][k];
|
|
394
396
|
} & {
|
|
395
|
-
[
|
|
397
|
+
[
|
|
398
|
+
k in keyof SmuiElementPropMap['div'] as `successLoginMessage\$${k}`
|
|
399
|
+
]?: SmuiElementPropMap['div'][k];
|
|
396
400
|
} & {
|
|
397
|
-
[
|
|
398
|
-
typeof Textfield
|
|
399
|
-
|
|
401
|
+
[
|
|
402
|
+
k in keyof ComponentProps<typeof Textfield> as `username\$${k}`
|
|
403
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
400
404
|
} & {
|
|
401
|
-
[
|
|
402
|
-
typeof Textfield
|
|
403
|
-
|
|
405
|
+
[
|
|
406
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
407
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
404
408
|
} & {
|
|
405
|
-
[
|
|
406
|
-
typeof Textfield
|
|
407
|
-
|
|
409
|
+
[
|
|
410
|
+
k in keyof ComponentProps<typeof Textfield> as `password2\$${k}`
|
|
411
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
408
412
|
} & {
|
|
409
|
-
[
|
|
410
|
-
typeof Textfield
|
|
411
|
-
|
|
413
|
+
[
|
|
414
|
+
k in keyof ComponentProps<typeof Textfield> as `name\$${k}`
|
|
415
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
412
416
|
} & {
|
|
413
|
-
[
|
|
414
|
-
typeof Textfield
|
|
415
|
-
|
|
417
|
+
[
|
|
418
|
+
k in keyof ComponentProps<typeof Textfield> as `email\$${k}`
|
|
419
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
416
420
|
} & {
|
|
417
|
-
[
|
|
418
|
-
typeof Textfield
|
|
419
|
-
|
|
421
|
+
[
|
|
422
|
+
k in keyof ComponentProps<typeof Textfield> as `phone\$${k}`
|
|
423
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
420
424
|
} & {
|
|
421
|
-
[
|
|
422
|
-
typeof Textfield
|
|
423
|
-
|
|
425
|
+
[
|
|
426
|
+
k in keyof ComponentProps<typeof Textfield> as `code\$${k}`
|
|
427
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
424
428
|
} & {
|
|
425
|
-
[
|
|
429
|
+
[
|
|
430
|
+
k in keyof SmuiElementPropMap['div'] as `codeMessage\$${k}`
|
|
431
|
+
]?: SmuiElementPropMap['div'][k];
|
|
426
432
|
} & {
|
|
427
|
-
[
|
|
428
|
-
typeof CircularProgress
|
|
429
|
-
|
|
433
|
+
[
|
|
434
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
435
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
430
436
|
} & {
|
|
431
|
-
[
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
437
|
+
[
|
|
438
|
+
k in keyof ComponentProps<
|
|
439
|
+
typeof Button<undefined, 'button'>
|
|
440
|
+
> as `loginButton\$${k}`
|
|
441
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
436
442
|
} & {
|
|
437
|
-
[
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
443
|
+
[
|
|
444
|
+
k in keyof ComponentProps<
|
|
445
|
+
typeof Button<undefined, 'button'>
|
|
446
|
+
> as `registerButton\$${k}`
|
|
447
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
442
448
|
} & {
|
|
443
|
-
[
|
|
449
|
+
[
|
|
450
|
+
k in keyof SmuiElementPropMap['a'] as `registerLink\$${k}`
|
|
451
|
+
]?: SmuiElementPropMap['a'][k];
|
|
444
452
|
} & {
|
|
445
|
-
[
|
|
453
|
+
[
|
|
454
|
+
k in keyof SmuiElementPropMap['a'] as `loginLink\$${k}`
|
|
455
|
+
]?: SmuiElementPropMap['a'][k];
|
|
446
456
|
} & {
|
|
447
|
-
[
|
|
457
|
+
[
|
|
458
|
+
k in keyof SmuiElementPropMap['a'] as `recoverLink\$${k}`
|
|
459
|
+
]?: SmuiElementPropMap['a'][k];
|
|
448
460
|
} & {
|
|
449
|
-
[
|
|
450
|
-
typeof Recover
|
|
451
|
-
|
|
461
|
+
[
|
|
462
|
+
k in keyof ComponentProps<typeof Recover> as `recover\$${k}`
|
|
463
|
+
]?: ComponentProps<typeof Recover>[k];
|
|
452
464
|
} = $props();
|
|
453
465
|
|
|
454
466
|
let usernameElem: Textfield | undefined = $state();
|
|
455
467
|
let successLoginMessage: string | undefined = $state();
|
|
456
468
|
let successRegisteredMessage: string | undefined = $state();
|
|
457
469
|
let failureMessage: string | undefined = $state();
|
|
458
|
-
let usernameTimer:
|
|
470
|
+
let usernameTimer: number | undefined = undefined;
|
|
459
471
|
let usernameVerified: boolean | undefined = $state();
|
|
460
472
|
let usernameVerifiedMessage: string | undefined = $state();
|
|
461
473
|
let totp = $state(false);
|
package/dist/Recover.svelte
CHANGED
|
@@ -298,51 +298,57 @@
|
|
|
298
298
|
password2 = $bindable(''),
|
|
299
299
|
...restProps
|
|
300
300
|
}: OwnProps & {
|
|
301
|
-
[
|
|
302
|
-
typeof Radio
|
|
303
|
-
|
|
301
|
+
[
|
|
302
|
+
k in keyof ComponentProps<typeof Radio> as `recoveryTypePassword\$${k}`
|
|
303
|
+
]?: ComponentProps<typeof Radio>[k];
|
|
304
304
|
} & {
|
|
305
|
-
[
|
|
306
|
-
typeof Radio
|
|
307
|
-
|
|
305
|
+
[
|
|
306
|
+
k in keyof ComponentProps<typeof Radio> as `recoveryTypeUsername\$${k}`
|
|
307
|
+
]?: ComponentProps<typeof Radio>[k];
|
|
308
308
|
} & {
|
|
309
|
-
[
|
|
310
|
-
typeof Textfield
|
|
311
|
-
|
|
309
|
+
[
|
|
310
|
+
k in keyof ComponentProps<typeof Textfield> as `account\$${k}`
|
|
311
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
312
312
|
} & {
|
|
313
|
-
[
|
|
313
|
+
[
|
|
314
|
+
k in keyof SmuiElementPropMap['a'] as `alreadyGotCodeLink\$${k}`
|
|
315
|
+
]?: SmuiElementPropMap['a'][k];
|
|
314
316
|
} & {
|
|
315
|
-
[
|
|
317
|
+
[
|
|
318
|
+
k in keyof SmuiElementPropMap['p'] as `codeSentMessage\$${k}`
|
|
319
|
+
]?: SmuiElementPropMap['p'][k];
|
|
316
320
|
} & {
|
|
317
|
-
[
|
|
318
|
-
typeof Textfield
|
|
319
|
-
|
|
321
|
+
[
|
|
322
|
+
k in keyof ComponentProps<typeof Textfield> as `recoveryCode\$${k}`
|
|
323
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
320
324
|
} & {
|
|
321
|
-
[
|
|
322
|
-
typeof Textfield
|
|
323
|
-
|
|
325
|
+
[
|
|
326
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
327
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
324
328
|
} & {
|
|
325
|
-
[
|
|
326
|
-
typeof Textfield
|
|
327
|
-
|
|
329
|
+
[
|
|
330
|
+
k in keyof ComponentProps<typeof Textfield> as `password2\$${k}`
|
|
331
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
328
332
|
} & {
|
|
329
|
-
[
|
|
333
|
+
[
|
|
334
|
+
k in keyof SmuiElementPropMap['a'] as `needCodeLink\$${k}`
|
|
335
|
+
]?: SmuiElementPropMap['a'][k];
|
|
330
336
|
} & {
|
|
331
|
-
[
|
|
332
|
-
typeof CircularProgress
|
|
333
|
-
|
|
337
|
+
[
|
|
338
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
339
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
334
340
|
} & {
|
|
335
|
-
[
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
341
|
+
[
|
|
342
|
+
k in keyof ComponentProps<
|
|
343
|
+
typeof Button<undefined, 'button'>
|
|
344
|
+
> as `sendCodeButton\$${k}`
|
|
345
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
340
346
|
} & {
|
|
341
|
-
[
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
347
|
+
[
|
|
348
|
+
k in keyof ComponentProps<
|
|
349
|
+
typeof Button<undefined, 'button'>
|
|
350
|
+
> as `resetPasswordButton\$${k}`
|
|
351
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
346
352
|
} = $props();
|
|
347
353
|
|
|
348
354
|
let loading = $state(false);
|
package/dist/RevokeTokens.svelte
CHANGED
|
@@ -128,25 +128,25 @@
|
|
|
128
128
|
additional,
|
|
129
129
|
...restProps
|
|
130
130
|
}: OwnProps & {
|
|
131
|
-
[
|
|
132
|
-
typeof Textfield
|
|
133
|
-
|
|
131
|
+
[
|
|
132
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
133
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
134
134
|
} & {
|
|
135
|
-
[
|
|
136
|
-
typeof CircularProgress
|
|
137
|
-
|
|
135
|
+
[
|
|
136
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
137
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
138
138
|
} & {
|
|
139
|
-
[
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
[
|
|
140
|
+
k in keyof ComponentProps<
|
|
141
|
+
typeof Button<undefined, 'button'>
|
|
142
|
+
> as `closeButton\$${k}`
|
|
143
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
144
144
|
} & {
|
|
145
|
-
[
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
[
|
|
146
|
+
k in keyof ComponentProps<
|
|
147
|
+
typeof Button<undefined, 'button'>
|
|
148
|
+
> as `saveButton\$${k}`
|
|
149
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
150
150
|
} = $props();
|
|
151
151
|
|
|
152
152
|
let loading = $state(false);
|
package/dist/TwoFactor.svelte
CHANGED
|
@@ -331,35 +331,35 @@
|
|
|
331
331
|
additional,
|
|
332
332
|
...restProps
|
|
333
333
|
}: OwnProps & {
|
|
334
|
-
[
|
|
335
|
-
typeof Textfield
|
|
336
|
-
|
|
334
|
+
[
|
|
335
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
336
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
337
337
|
} & {
|
|
338
|
-
[
|
|
339
|
-
typeof Textfield
|
|
340
|
-
|
|
338
|
+
[
|
|
339
|
+
k in keyof ComponentProps<typeof Textfield> as `code\$${k}`
|
|
340
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
341
341
|
} & {
|
|
342
|
-
[
|
|
343
|
-
typeof CircularProgress
|
|
344
|
-
|
|
342
|
+
[
|
|
343
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
344
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
345
345
|
} & {
|
|
346
|
-
[
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
[
|
|
347
|
+
k in keyof ComponentProps<
|
|
348
|
+
typeof Button<undefined, 'button'>
|
|
349
|
+
> as `closeButton\$${k}`
|
|
350
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
351
351
|
} & {
|
|
352
|
-
[
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
352
|
+
[
|
|
353
|
+
k in keyof ComponentProps<
|
|
354
|
+
typeof Button<undefined, 'button'>
|
|
355
|
+
> as `setupButton\$${k}`
|
|
356
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
357
357
|
} & {
|
|
358
|
-
[
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
358
|
+
[
|
|
359
|
+
k in keyof ComponentProps<
|
|
360
|
+
typeof Button<undefined, 'button'>
|
|
361
|
+
> as `removeButton\$${k}`
|
|
362
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
363
363
|
} = $props();
|
|
364
364
|
|
|
365
365
|
let loading = $state(false);
|
package/jest.config.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import { createDefaultEsmPreset } from 'ts-jest';
|
|
2
|
-
|
|
3
|
-
const presetConfig = createDefaultEsmPreset();
|
|
4
|
-
|
|
5
|
-
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
6
1
|
const jestConfig = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
3
|
+
testMatch: [
|
|
4
|
+
'<rootDir>/src/**/__tests__/**/*.{js,ts,jsx,tsx,mjs,mts}',
|
|
5
|
+
'<rootDir>/src/**/?(*.)(spec|test).{js,ts,jsx,tsx,mjs,mts}',
|
|
6
|
+
],
|
|
7
|
+
transform: {
|
|
8
|
+
'^.+\\.(ts|tsx|mts)$': [
|
|
9
|
+
'@swc/jest',
|
|
10
|
+
{
|
|
11
|
+
jsc: {
|
|
12
|
+
parser: {
|
|
13
|
+
syntax: 'typescript',
|
|
14
|
+
tsx: true,
|
|
15
|
+
decorators: true,
|
|
16
|
+
},
|
|
17
|
+
target: 'es2023',
|
|
18
|
+
},
|
|
19
|
+
module: {
|
|
20
|
+
type: 'commonjs',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$'],
|
|
26
|
+
moduleDirectories: ['node_modules', 'src'],
|
|
10
27
|
moduleNameMapper: {
|
|
11
28
|
'^(\\.|\\.\\.)\\/(.+)\\.js': '$1/$2',
|
|
12
29
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nymphjs/tilmeld-components",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.119",
|
|
4
4
|
"description": "Nymph.js - Tilmeld Front End Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -28,8 +28,9 @@
|
|
|
28
28
|
"build:js": "tsc -p . --outDir dist/ --rootDir src/",
|
|
29
29
|
"build:svelte": "cp src/*.svelte dist/",
|
|
30
30
|
"prepublish": "npm run clean && npm run build",
|
|
31
|
-
"
|
|
32
|
-
"test
|
|
31
|
+
"typecheck": "npx tsc --noEmit",
|
|
32
|
+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
|
|
33
|
+
"test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests --watch"
|
|
33
34
|
},
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|
|
@@ -46,27 +47,27 @@
|
|
|
46
47
|
},
|
|
47
48
|
"license": "Apache-2.0",
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@nymphjs/tilmeld-client": "^1.0.0-beta.
|
|
50
|
-
"@smui/button": "^
|
|
51
|
-
"@smui/checkbox": "^
|
|
52
|
-
"@smui/circular-progress": "^
|
|
53
|
-
"@smui/dialog": "^
|
|
54
|
-
"@smui/form-field": "^
|
|
55
|
-
"@smui/radio": "^
|
|
56
|
-
"@smui/textfield": "^
|
|
50
|
+
"@nymphjs/tilmeld-client": "^1.0.0-beta.119",
|
|
51
|
+
"@smui/button": "^9.0.2",
|
|
52
|
+
"@smui/checkbox": "^9.0.2",
|
|
53
|
+
"@smui/circular-progress": "^9.0.2",
|
|
54
|
+
"@smui/dialog": "^9.0.2",
|
|
55
|
+
"@smui/form-field": "^9.0.2",
|
|
56
|
+
"@smui/radio": "^9.0.2",
|
|
57
|
+
"@smui/textfield": "^9.0.2",
|
|
58
|
+
"@swc/core": "^1.16.1",
|
|
59
|
+
"@swc/jest": "^0.2.39",
|
|
57
60
|
"@tsconfig/recommended": "^1.0.13",
|
|
58
|
-
"@tsconfig/svelte": "^5.0.
|
|
61
|
+
"@tsconfig/svelte": "^5.0.8",
|
|
59
62
|
"@types/jest": "^30.0.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"svelte
|
|
63
|
+
"cross-env": "^10.1.0",
|
|
64
|
+
"jest": "^30.4.2",
|
|
65
|
+
"svelte": "^5.56.10",
|
|
63
66
|
"svelte-loader": "^3.2.4",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"webpack": "^5.105.2",
|
|
69
|
-
"webpack-cli": "^6.0.1"
|
|
67
|
+
"ts-loader": "^9.6.2",
|
|
68
|
+
"typescript": "^7.0.2",
|
|
69
|
+
"webpack": "^5.109.2",
|
|
70
|
+
"webpack-cli": "^7.2.2"
|
|
70
71
|
},
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "154ac28914c83b9bfe57be0797726a689c5d8ee4"
|
|
72
73
|
}
|
package/src/Account.svelte
CHANGED
|
@@ -291,71 +291,75 @@
|
|
|
291
291
|
additional,
|
|
292
292
|
...restProps
|
|
293
293
|
}: OwnProps & {
|
|
294
|
-
[
|
|
295
|
-
typeof Textfield
|
|
296
|
-
|
|
294
|
+
[
|
|
295
|
+
k in keyof ComponentProps<typeof Textfield> as `username\$${k}`
|
|
296
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
297
297
|
} & {
|
|
298
|
-
[
|
|
299
|
-
typeof Textfield
|
|
300
|
-
|
|
298
|
+
[
|
|
299
|
+
k in keyof ComponentProps<typeof Textfield> as `email\$${k}`
|
|
300
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
301
301
|
} & {
|
|
302
|
-
[
|
|
303
|
-
typeof Textfield
|
|
304
|
-
|
|
302
|
+
[
|
|
303
|
+
k in keyof ComponentProps<typeof Textfield> as `nameFirst\$${k}`
|
|
304
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
305
305
|
} & {
|
|
306
|
-
[
|
|
307
|
-
typeof Textfield
|
|
308
|
-
|
|
306
|
+
[
|
|
307
|
+
k in keyof ComponentProps<typeof Textfield> as `nameMiddle\$${k}`
|
|
308
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
309
309
|
} & {
|
|
310
|
-
[
|
|
311
|
-
typeof Textfield
|
|
312
|
-
|
|
310
|
+
[
|
|
311
|
+
k in keyof ComponentProps<typeof Textfield> as `nameLast\$${k}`
|
|
312
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
313
313
|
} & {
|
|
314
|
-
[
|
|
315
|
-
typeof Textfield
|
|
316
|
-
|
|
314
|
+
[
|
|
315
|
+
k in keyof ComponentProps<typeof Textfield> as `phone\$${k}`
|
|
316
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
317
317
|
} & {
|
|
318
|
-
[
|
|
318
|
+
[
|
|
319
|
+
k in keyof SmuiElementPropMap['a'] as `changePasswordLink\$${k}`
|
|
320
|
+
]?: SmuiElementPropMap['a'][k];
|
|
319
321
|
} & {
|
|
320
|
-
[
|
|
322
|
+
[
|
|
323
|
+
k in keyof SmuiElementPropMap['a'] as `revokeTokensLink\$${k}`
|
|
324
|
+
]?: SmuiElementPropMap['a'][k];
|
|
321
325
|
} & {
|
|
322
|
-
[
|
|
323
|
-
typeof CircularProgress
|
|
324
|
-
|
|
326
|
+
[
|
|
327
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
328
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
325
329
|
} & {
|
|
326
|
-
[
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
330
|
+
[
|
|
331
|
+
k in keyof ComponentProps<
|
|
332
|
+
typeof Button<undefined, 'button'>
|
|
333
|
+
> as `closeButton\$${k}`
|
|
334
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
331
335
|
} & {
|
|
332
|
-
[
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
336
|
+
[
|
|
337
|
+
k in keyof ComponentProps<
|
|
338
|
+
typeof Button<undefined, 'button'>
|
|
339
|
+
> as `saveButton\$${k}`
|
|
340
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
337
341
|
} & {
|
|
338
|
-
[
|
|
339
|
-
typeof ChangePassword
|
|
340
|
-
|
|
342
|
+
[
|
|
343
|
+
k in keyof ComponentProps<typeof ChangePassword> as `changePassword\$${k}`
|
|
344
|
+
]?: ComponentProps<typeof ChangePassword>[k];
|
|
341
345
|
} & {
|
|
342
|
-
[
|
|
343
|
-
typeof RevokeTokens
|
|
344
|
-
|
|
346
|
+
[
|
|
347
|
+
k in keyof ComponentProps<typeof RevokeTokens> as `revokeTokens\$${k}`
|
|
348
|
+
]?: ComponentProps<typeof RevokeTokens>[k];
|
|
345
349
|
} & {
|
|
346
|
-
[
|
|
347
|
-
typeof TwoFactor
|
|
348
|
-
|
|
350
|
+
[
|
|
351
|
+
k in keyof ComponentProps<typeof TwoFactor> as `twoFactor\$${k}`
|
|
352
|
+
]?: ComponentProps<typeof TwoFactor>[k];
|
|
349
353
|
} = $props();
|
|
350
354
|
|
|
351
355
|
let loading = $state(false);
|
|
352
356
|
let originalUsername: string | undefined = $user?.username;
|
|
353
357
|
let originalEmail: string | undefined = $user?.email;
|
|
354
358
|
let failureMessage: string | undefined = $state();
|
|
355
|
-
let usernameTimer:
|
|
359
|
+
let usernameTimer: number | undefined = undefined;
|
|
356
360
|
let usernameVerified: boolean | undefined = $state();
|
|
357
361
|
let usernameVerifiedMessage: string | undefined = $state();
|
|
358
|
-
let emailTimer:
|
|
362
|
+
let emailTimer: number | undefined = undefined;
|
|
359
363
|
let emailVerified: boolean | undefined = $state();
|
|
360
364
|
let emailVerifiedMessage: string | undefined = $state();
|
|
361
365
|
let hasTOTPSecret: boolean | null = $state(null);
|
|
@@ -178,37 +178,37 @@
|
|
|
178
178
|
additional,
|
|
179
179
|
...restProps
|
|
180
180
|
}: OwnProps & {
|
|
181
|
-
[
|
|
182
|
-
typeof Textfield
|
|
183
|
-
|
|
181
|
+
[
|
|
182
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
183
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
184
184
|
} & {
|
|
185
|
-
[
|
|
186
|
-
typeof Textfield
|
|
187
|
-
|
|
185
|
+
[
|
|
186
|
+
k in keyof ComponentProps<typeof Textfield> as `newPassword\$${k}`
|
|
187
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
188
188
|
} & {
|
|
189
|
-
[
|
|
190
|
-
typeof Textfield
|
|
191
|
-
|
|
189
|
+
[
|
|
190
|
+
k in keyof ComponentProps<typeof Textfield> as `newPassword2\$${k}`
|
|
191
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
192
192
|
} & {
|
|
193
|
-
[
|
|
194
|
-
typeof Checkbox
|
|
195
|
-
|
|
193
|
+
[
|
|
194
|
+
k in keyof ComponentProps<typeof Checkbox> as `revokeTokens\$${k}`
|
|
195
|
+
]?: ComponentProps<typeof Checkbox>[k];
|
|
196
196
|
} & {
|
|
197
|
-
[
|
|
198
|
-
typeof CircularProgress
|
|
199
|
-
|
|
197
|
+
[
|
|
198
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
199
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
200
200
|
} & {
|
|
201
|
-
[
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
[
|
|
202
|
+
k in keyof ComponentProps<
|
|
203
|
+
typeof Button<undefined, 'button'>
|
|
204
|
+
> as `closeButton\$${k}`
|
|
205
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
206
206
|
} & {
|
|
207
|
-
[
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
[
|
|
208
|
+
k in keyof ComponentProps<
|
|
209
|
+
typeof Button<undefined, 'button'>
|
|
210
|
+
> as `saveButton\$${k}`
|
|
211
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
212
212
|
} = $props();
|
|
213
213
|
|
|
214
214
|
let loading = $state(false);
|
package/src/Login.svelte
CHANGED
|
@@ -390,72 +390,84 @@
|
|
|
390
390
|
onlogin,
|
|
391
391
|
...restProps
|
|
392
392
|
}: OwnProps & {
|
|
393
|
-
[
|
|
393
|
+
[
|
|
394
|
+
k in keyof SmuiElementPropMap['div'] as `successRegisteredMessage\$${k}`
|
|
395
|
+
]?: SmuiElementPropMap['div'][k];
|
|
394
396
|
} & {
|
|
395
|
-
[
|
|
397
|
+
[
|
|
398
|
+
k in keyof SmuiElementPropMap['div'] as `successLoginMessage\$${k}`
|
|
399
|
+
]?: SmuiElementPropMap['div'][k];
|
|
396
400
|
} & {
|
|
397
|
-
[
|
|
398
|
-
typeof Textfield
|
|
399
|
-
|
|
401
|
+
[
|
|
402
|
+
k in keyof ComponentProps<typeof Textfield> as `username\$${k}`
|
|
403
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
400
404
|
} & {
|
|
401
|
-
[
|
|
402
|
-
typeof Textfield
|
|
403
|
-
|
|
405
|
+
[
|
|
406
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
407
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
404
408
|
} & {
|
|
405
|
-
[
|
|
406
|
-
typeof Textfield
|
|
407
|
-
|
|
409
|
+
[
|
|
410
|
+
k in keyof ComponentProps<typeof Textfield> as `password2\$${k}`
|
|
411
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
408
412
|
} & {
|
|
409
|
-
[
|
|
410
|
-
typeof Textfield
|
|
411
|
-
|
|
413
|
+
[
|
|
414
|
+
k in keyof ComponentProps<typeof Textfield> as `name\$${k}`
|
|
415
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
412
416
|
} & {
|
|
413
|
-
[
|
|
414
|
-
typeof Textfield
|
|
415
|
-
|
|
417
|
+
[
|
|
418
|
+
k in keyof ComponentProps<typeof Textfield> as `email\$${k}`
|
|
419
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
416
420
|
} & {
|
|
417
|
-
[
|
|
418
|
-
typeof Textfield
|
|
419
|
-
|
|
421
|
+
[
|
|
422
|
+
k in keyof ComponentProps<typeof Textfield> as `phone\$${k}`
|
|
423
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
420
424
|
} & {
|
|
421
|
-
[
|
|
422
|
-
typeof Textfield
|
|
423
|
-
|
|
425
|
+
[
|
|
426
|
+
k in keyof ComponentProps<typeof Textfield> as `code\$${k}`
|
|
427
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
424
428
|
} & {
|
|
425
|
-
[
|
|
429
|
+
[
|
|
430
|
+
k in keyof SmuiElementPropMap['div'] as `codeMessage\$${k}`
|
|
431
|
+
]?: SmuiElementPropMap['div'][k];
|
|
426
432
|
} & {
|
|
427
|
-
[
|
|
428
|
-
typeof CircularProgress
|
|
429
|
-
|
|
433
|
+
[
|
|
434
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
435
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
430
436
|
} & {
|
|
431
|
-
[
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
437
|
+
[
|
|
438
|
+
k in keyof ComponentProps<
|
|
439
|
+
typeof Button<undefined, 'button'>
|
|
440
|
+
> as `loginButton\$${k}`
|
|
441
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
436
442
|
} & {
|
|
437
|
-
[
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
443
|
+
[
|
|
444
|
+
k in keyof ComponentProps<
|
|
445
|
+
typeof Button<undefined, 'button'>
|
|
446
|
+
> as `registerButton\$${k}`
|
|
447
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
442
448
|
} & {
|
|
443
|
-
[
|
|
449
|
+
[
|
|
450
|
+
k in keyof SmuiElementPropMap['a'] as `registerLink\$${k}`
|
|
451
|
+
]?: SmuiElementPropMap['a'][k];
|
|
444
452
|
} & {
|
|
445
|
-
[
|
|
453
|
+
[
|
|
454
|
+
k in keyof SmuiElementPropMap['a'] as `loginLink\$${k}`
|
|
455
|
+
]?: SmuiElementPropMap['a'][k];
|
|
446
456
|
} & {
|
|
447
|
-
[
|
|
457
|
+
[
|
|
458
|
+
k in keyof SmuiElementPropMap['a'] as `recoverLink\$${k}`
|
|
459
|
+
]?: SmuiElementPropMap['a'][k];
|
|
448
460
|
} & {
|
|
449
|
-
[
|
|
450
|
-
typeof Recover
|
|
451
|
-
|
|
461
|
+
[
|
|
462
|
+
k in keyof ComponentProps<typeof Recover> as `recover\$${k}`
|
|
463
|
+
]?: ComponentProps<typeof Recover>[k];
|
|
452
464
|
} = $props();
|
|
453
465
|
|
|
454
466
|
let usernameElem: Textfield | undefined = $state();
|
|
455
467
|
let successLoginMessage: string | undefined = $state();
|
|
456
468
|
let successRegisteredMessage: string | undefined = $state();
|
|
457
469
|
let failureMessage: string | undefined = $state();
|
|
458
|
-
let usernameTimer:
|
|
470
|
+
let usernameTimer: number | undefined = undefined;
|
|
459
471
|
let usernameVerified: boolean | undefined = $state();
|
|
460
472
|
let usernameVerifiedMessage: string | undefined = $state();
|
|
461
473
|
let totp = $state(false);
|
package/src/Recover.svelte
CHANGED
|
@@ -298,51 +298,57 @@
|
|
|
298
298
|
password2 = $bindable(''),
|
|
299
299
|
...restProps
|
|
300
300
|
}: OwnProps & {
|
|
301
|
-
[
|
|
302
|
-
typeof Radio
|
|
303
|
-
|
|
301
|
+
[
|
|
302
|
+
k in keyof ComponentProps<typeof Radio> as `recoveryTypePassword\$${k}`
|
|
303
|
+
]?: ComponentProps<typeof Radio>[k];
|
|
304
304
|
} & {
|
|
305
|
-
[
|
|
306
|
-
typeof Radio
|
|
307
|
-
|
|
305
|
+
[
|
|
306
|
+
k in keyof ComponentProps<typeof Radio> as `recoveryTypeUsername\$${k}`
|
|
307
|
+
]?: ComponentProps<typeof Radio>[k];
|
|
308
308
|
} & {
|
|
309
|
-
[
|
|
310
|
-
typeof Textfield
|
|
311
|
-
|
|
309
|
+
[
|
|
310
|
+
k in keyof ComponentProps<typeof Textfield> as `account\$${k}`
|
|
311
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
312
312
|
} & {
|
|
313
|
-
[
|
|
313
|
+
[
|
|
314
|
+
k in keyof SmuiElementPropMap['a'] as `alreadyGotCodeLink\$${k}`
|
|
315
|
+
]?: SmuiElementPropMap['a'][k];
|
|
314
316
|
} & {
|
|
315
|
-
[
|
|
317
|
+
[
|
|
318
|
+
k in keyof SmuiElementPropMap['p'] as `codeSentMessage\$${k}`
|
|
319
|
+
]?: SmuiElementPropMap['p'][k];
|
|
316
320
|
} & {
|
|
317
|
-
[
|
|
318
|
-
typeof Textfield
|
|
319
|
-
|
|
321
|
+
[
|
|
322
|
+
k in keyof ComponentProps<typeof Textfield> as `recoveryCode\$${k}`
|
|
323
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
320
324
|
} & {
|
|
321
|
-
[
|
|
322
|
-
typeof Textfield
|
|
323
|
-
|
|
325
|
+
[
|
|
326
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
327
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
324
328
|
} & {
|
|
325
|
-
[
|
|
326
|
-
typeof Textfield
|
|
327
|
-
|
|
329
|
+
[
|
|
330
|
+
k in keyof ComponentProps<typeof Textfield> as `password2\$${k}`
|
|
331
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
328
332
|
} & {
|
|
329
|
-
[
|
|
333
|
+
[
|
|
334
|
+
k in keyof SmuiElementPropMap['a'] as `needCodeLink\$${k}`
|
|
335
|
+
]?: SmuiElementPropMap['a'][k];
|
|
330
336
|
} & {
|
|
331
|
-
[
|
|
332
|
-
typeof CircularProgress
|
|
333
|
-
|
|
337
|
+
[
|
|
338
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
339
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
334
340
|
} & {
|
|
335
|
-
[
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
341
|
+
[
|
|
342
|
+
k in keyof ComponentProps<
|
|
343
|
+
typeof Button<undefined, 'button'>
|
|
344
|
+
> as `sendCodeButton\$${k}`
|
|
345
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
340
346
|
} & {
|
|
341
|
-
[
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
347
|
+
[
|
|
348
|
+
k in keyof ComponentProps<
|
|
349
|
+
typeof Button<undefined, 'button'>
|
|
350
|
+
> as `resetPasswordButton\$${k}`
|
|
351
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
346
352
|
} = $props();
|
|
347
353
|
|
|
348
354
|
let loading = $state(false);
|
package/src/RevokeTokens.svelte
CHANGED
|
@@ -128,25 +128,25 @@
|
|
|
128
128
|
additional,
|
|
129
129
|
...restProps
|
|
130
130
|
}: OwnProps & {
|
|
131
|
-
[
|
|
132
|
-
typeof Textfield
|
|
133
|
-
|
|
131
|
+
[
|
|
132
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
133
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
134
134
|
} & {
|
|
135
|
-
[
|
|
136
|
-
typeof CircularProgress
|
|
137
|
-
|
|
135
|
+
[
|
|
136
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
137
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
138
138
|
} & {
|
|
139
|
-
[
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
[
|
|
140
|
+
k in keyof ComponentProps<
|
|
141
|
+
typeof Button<undefined, 'button'>
|
|
142
|
+
> as `closeButton\$${k}`
|
|
143
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
144
144
|
} & {
|
|
145
|
-
[
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
[
|
|
146
|
+
k in keyof ComponentProps<
|
|
147
|
+
typeof Button<undefined, 'button'>
|
|
148
|
+
> as `saveButton\$${k}`
|
|
149
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
150
150
|
} = $props();
|
|
151
151
|
|
|
152
152
|
let loading = $state(false);
|
package/src/TwoFactor.svelte
CHANGED
|
@@ -331,35 +331,35 @@
|
|
|
331
331
|
additional,
|
|
332
332
|
...restProps
|
|
333
333
|
}: OwnProps & {
|
|
334
|
-
[
|
|
335
|
-
typeof Textfield
|
|
336
|
-
|
|
334
|
+
[
|
|
335
|
+
k in keyof ComponentProps<typeof Textfield> as `password\$${k}`
|
|
336
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
337
337
|
} & {
|
|
338
|
-
[
|
|
339
|
-
typeof Textfield
|
|
340
|
-
|
|
338
|
+
[
|
|
339
|
+
k in keyof ComponentProps<typeof Textfield> as `code\$${k}`
|
|
340
|
+
]?: ComponentProps<typeof Textfield>[k];
|
|
341
341
|
} & {
|
|
342
|
-
[
|
|
343
|
-
typeof CircularProgress
|
|
344
|
-
|
|
342
|
+
[
|
|
343
|
+
k in keyof ComponentProps<typeof CircularProgress> as `progress\$${k}`
|
|
344
|
+
]?: ComponentProps<typeof CircularProgress>[k];
|
|
345
345
|
} & {
|
|
346
|
-
[
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
[
|
|
347
|
+
k in keyof ComponentProps<
|
|
348
|
+
typeof Button<undefined, 'button'>
|
|
349
|
+
> as `closeButton\$${k}`
|
|
350
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
351
351
|
} & {
|
|
352
|
-
[
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
352
|
+
[
|
|
353
|
+
k in keyof ComponentProps<
|
|
354
|
+
typeof Button<undefined, 'button'>
|
|
355
|
+
> as `setupButton\$${k}`
|
|
356
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
357
357
|
} & {
|
|
358
|
-
[
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
358
|
+
[
|
|
359
|
+
k in keyof ComponentProps<
|
|
360
|
+
typeof Button<undefined, 'button'>
|
|
361
|
+
> as `removeButton\$${k}`
|
|
362
|
+
]?: ComponentProps<typeof Button<undefined, 'button'>>[k];
|
|
363
363
|
} = $props();
|
|
364
364
|
|
|
365
365
|
let loading = $state(false);
|
package/tsconfig.json
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
3
|
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
5
|
+
"types": ["jest"],
|
|
6
|
+
"module": "nodenext",
|
|
7
|
+
"moduleResolution": "nodenext",
|
|
8
|
+
"lib": ["DOM", "es2023"],
|
|
9
|
+
"target": "es2023",
|
|
9
10
|
"noImplicitAny": true,
|
|
10
11
|
"strict": true,
|
|
11
12
|
|