@forgerock/login-widget 1.0.0-beta.8 → 1.0.0-beta.9
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 +9 -4
- package/index.cjs +115 -72
- package/index.cjs.map +1 -1
- package/index.d.ts +24 -24
- package/index.js +115 -72
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/widget.css +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
# [1.0.0-beta.
|
|
1
|
+
# [1.0.0-beta.9](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2023-03-21)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* **journeys:** fix stages, journey restarts & config, policy display, remove restart after logout ([ac0c9aa](https://github.com/forgerock/forgerock-web-login-framework/commit/ac0c9aaccf0359c36614a6199af7a64cfa9615e2))
|
|
7
7
|
|
|
8
|
-
# [1.0.0-beta.
|
|
8
|
+
# [1.0.0-beta.8](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2023-03-15)
|
|
9
9
|
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- addresses bugs fixes reported in beta testing and doc changes for new api ([10c4b05](https://github.com/forgerock/forgerock-web-login-framework/commit/10c4b05579bb5c5921567fdedc95a5bef4a9aa7b))
|
|
13
|
+
|
|
14
|
+
# [1.0.0-beta.7](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2023-03-08)
|
|
10
15
|
|
|
11
16
|
### Bug Fixes
|
|
12
17
|
|
|
13
|
-
|
|
18
|
+
- **add-back-css:** css was removed ona ccident ([ba024f3](https://github.com/forgerock/forgerock-web-login-framework/commit/ba024f338a978c60a965230d95defdc95c7a4b3b))
|
|
14
19
|
|
|
15
20
|
# [1.0.0-beta.6](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2023-03-07)
|
|
16
21
|
|
package/index.cjs
CHANGED
|
@@ -14930,7 +14930,8 @@ function configure (config) {
|
|
|
14930
14930
|
Config.set(config);
|
|
14931
14931
|
}
|
|
14932
14932
|
|
|
14933
|
-
const journeyConfigItemSchema = z
|
|
14933
|
+
const journeyConfigItemSchema = z
|
|
14934
|
+
.object({
|
|
14934
14935
|
journey: z.string().optional(),
|
|
14935
14936
|
match: z
|
|
14936
14937
|
.string()
|
|
@@ -14938,7 +14939,8 @@ const journeyConfigItemSchema = z.object({
|
|
|
14938
14939
|
message: 'HREF string must start with `?journey` or `#/service`',
|
|
14939
14940
|
})
|
|
14940
14941
|
.array(),
|
|
14941
|
-
})
|
|
14942
|
+
})
|
|
14943
|
+
.optional();
|
|
14942
14944
|
const journeyConfigSchema = z.object({
|
|
14943
14945
|
forgotPassword: journeyConfigItemSchema,
|
|
14944
14946
|
forgotUsername: journeyConfigItemSchema,
|
|
@@ -14955,8 +14957,8 @@ const defaultJourneys = {
|
|
|
14955
14957
|
match: ['#/service/ForgottenUsername', '?journey=ForgottenUsername'],
|
|
14956
14958
|
},
|
|
14957
14959
|
login: {
|
|
14958
|
-
journey:
|
|
14959
|
-
match: ['#/service/Login', '?journey'],
|
|
14960
|
+
journey: 'Login',
|
|
14961
|
+
match: ['#/service/Login', '?journey', '?journey=Login'],
|
|
14960
14962
|
},
|
|
14961
14963
|
register: {
|
|
14962
14964
|
journey: 'Registration',
|
|
@@ -14974,8 +14976,14 @@ function initialize$6(customJourneys) {
|
|
|
14974
14976
|
if (customJourneys) {
|
|
14975
14977
|
// Provide developer feedback if customized
|
|
14976
14978
|
journeyConfigSchema.parse(customJourneys);
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
+
// Merge the two journey configs, dev's overwriting the default
|
|
14980
|
+
const mergedJourneyObjects = {
|
|
14981
|
+
...defaultJourneys,
|
|
14982
|
+
...customJourneys,
|
|
14983
|
+
};
|
|
14984
|
+
const customJourneyKeys = Object.keys(mergedJourneyObjects);
|
|
14985
|
+
configuredJourneysStore.set(customJourneyKeys.map((key) => ({
|
|
14986
|
+
...mergedJourneyObjects[key],
|
|
14979
14987
|
key,
|
|
14980
14988
|
})));
|
|
14981
14989
|
}
|
|
@@ -17326,6 +17334,15 @@ function initializeStack(initOptions) {
|
|
|
17326
17334
|
const { update, set, subscribe } = writable(initialValue);
|
|
17327
17335
|
// Assign to exported variable (see bottom of file)
|
|
17328
17336
|
stack = {
|
|
17337
|
+
latest: async () => {
|
|
17338
|
+
return new Promise((resolve) => {
|
|
17339
|
+
// subscribe, grab the current value and unsubscribe
|
|
17340
|
+
subscribe((current) => {
|
|
17341
|
+
const lastItem = current[current.length - 1];
|
|
17342
|
+
resolve(lastItem);
|
|
17343
|
+
})();
|
|
17344
|
+
});
|
|
17345
|
+
},
|
|
17329
17346
|
pop: async () => {
|
|
17330
17347
|
return new Promise((resolve) => {
|
|
17331
17348
|
update((current) => {
|
|
@@ -17377,7 +17394,6 @@ const journeyStore = writable({
|
|
|
17377
17394
|
});
|
|
17378
17395
|
function initialize$4(initOptions) {
|
|
17379
17396
|
const stack = initializeStack();
|
|
17380
|
-
let restartOptions;
|
|
17381
17397
|
let stepNumber = 0;
|
|
17382
17398
|
async function next(prevStep = null, nextOptions, resumeUrl) {
|
|
17383
17399
|
if (!Config.get().serverConfig?.baseUrl) {
|
|
@@ -17391,14 +17407,6 @@ function initialize$4(initOptions) {
|
|
|
17391
17407
|
...initOptions,
|
|
17392
17408
|
...nextOptions,
|
|
17393
17409
|
};
|
|
17394
|
-
// These options are reserved only for restarting a journey after failure
|
|
17395
|
-
if (initOptions || nextOptions) {
|
|
17396
|
-
restartOptions = {
|
|
17397
|
-
// Prioritize next options over initialize options
|
|
17398
|
-
...initOptions,
|
|
17399
|
-
...nextOptions,
|
|
17400
|
-
};
|
|
17401
|
-
}
|
|
17402
17410
|
/**
|
|
17403
17411
|
* Save previous step information just in case we have a total
|
|
17404
17412
|
* form failure due to 400 response from ForgeRock.
|
|
@@ -17485,6 +17493,7 @@ function initialize$4(initOptions) {
|
|
|
17485
17493
|
/**
|
|
17486
17494
|
* SUCCESSFUL COMPLETION BLOCK
|
|
17487
17495
|
*/
|
|
17496
|
+
stack.reset();
|
|
17488
17497
|
// Set final state
|
|
17489
17498
|
journeyStore.set({
|
|
17490
17499
|
completed: true,
|
|
@@ -17508,6 +17517,7 @@ function initialize$4(initOptions) {
|
|
|
17508
17517
|
/**
|
|
17509
17518
|
* Restart tree to get fresh step
|
|
17510
17519
|
*/
|
|
17520
|
+
const restartOptions = await stack.latest();
|
|
17511
17521
|
restartedStep = await FRAuth$1.next(undefined, restartOptions);
|
|
17512
17522
|
}
|
|
17513
17523
|
catch (err) {
|
|
@@ -17643,6 +17653,18 @@ function initialize$4(initOptions) {
|
|
|
17643
17653
|
await next(undefined, resumeOptions, url);
|
|
17644
17654
|
}
|
|
17645
17655
|
async function start(startOptions) {
|
|
17656
|
+
const configTree = Config.get().tree;
|
|
17657
|
+
// If no tree is passed in, but there's a configured default tree, use that
|
|
17658
|
+
if (!startOptions?.tree && configTree) {
|
|
17659
|
+
if (startOptions) {
|
|
17660
|
+
startOptions.tree = configTree;
|
|
17661
|
+
}
|
|
17662
|
+
else {
|
|
17663
|
+
startOptions = {
|
|
17664
|
+
tree: configTree,
|
|
17665
|
+
};
|
|
17666
|
+
}
|
|
17667
|
+
}
|
|
17646
17668
|
await stack.push(startOptions);
|
|
17647
17669
|
await next(undefined, startOptions);
|
|
17648
17670
|
}
|
|
@@ -17885,8 +17907,6 @@ function widgetApiFactory(componentApi) {
|
|
|
17885
17907
|
journeyStore.reset();
|
|
17886
17908
|
oauthStore.reset();
|
|
17887
17909
|
userStore.reset();
|
|
17888
|
-
// Fetch fresh journey step
|
|
17889
|
-
journey().start();
|
|
17890
17910
|
}
|
|
17891
17911
|
const configuration = (options) => {
|
|
17892
17912
|
if (options?.forgerock) {
|
|
@@ -20657,18 +20677,36 @@ function getValidationMessageString(policy) {
|
|
|
20657
20677
|
}
|
|
20658
20678
|
case 'cannot-contain-characters': {
|
|
20659
20679
|
const params = policy?.params;
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
return
|
|
20663
|
-
}
|
|
20680
|
+
let chars = '';
|
|
20681
|
+
if (typeof params !== 'object') {
|
|
20682
|
+
return '';
|
|
20683
|
+
}
|
|
20684
|
+
if (Array.isArray(params.forbiddenChars)) {
|
|
20685
|
+
chars = params.forbiddenChars.reduce((prev, curr) => {
|
|
20686
|
+
prev = `${prev ? `${prev}, ` : `${prev}`} ${curr}`;
|
|
20687
|
+
return prev;
|
|
20688
|
+
}, '');
|
|
20689
|
+
}
|
|
20690
|
+
else if (typeof params.forbiddenChars === 'string') {
|
|
20691
|
+
chars = params.forbiddenChars;
|
|
20692
|
+
}
|
|
20664
20693
|
return interpolate('fieldCanNotContainFollowingCharacters', { chars });
|
|
20665
20694
|
}
|
|
20666
20695
|
case 'cannot-contain-others': {
|
|
20667
20696
|
const params = policy?.params;
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
return
|
|
20671
|
-
}
|
|
20697
|
+
let fields = '';
|
|
20698
|
+
if (typeof params !== 'object') {
|
|
20699
|
+
return '';
|
|
20700
|
+
}
|
|
20701
|
+
if (Array.isArray(params.disallowedFields)) {
|
|
20702
|
+
fields = params.disallowedFields?.reduce((prev, curr) => {
|
|
20703
|
+
prev = `${prev ? `${prev}, ` : `${prev}`} ${interpolate(curr)}`;
|
|
20704
|
+
return prev;
|
|
20705
|
+
}, '');
|
|
20706
|
+
}
|
|
20707
|
+
else if (typeof params.disallowedFields === 'string') {
|
|
20708
|
+
fields = params.disallowedFields;
|
|
20709
|
+
}
|
|
20672
20710
|
return interpolate('fieldCanNotContainFollowingValues', { fields });
|
|
20673
20711
|
}
|
|
20674
20712
|
case 'maximum-length': {
|
|
@@ -29218,17 +29256,17 @@ class Select_idp extends SvelteComponent {
|
|
|
29218
29256
|
|
|
29219
29257
|
function get_each_context_1(ctx, list, i) {
|
|
29220
29258
|
const child_ctx = ctx.slice();
|
|
29221
|
-
child_ctx[
|
|
29259
|
+
child_ctx[11] = list[i];
|
|
29222
29260
|
return child_ctx;
|
|
29223
29261
|
}
|
|
29224
29262
|
|
|
29225
29263
|
function get_each_context$4(ctx, list, i) {
|
|
29226
29264
|
const child_ctx = ctx.slice();
|
|
29227
|
-
child_ctx[
|
|
29265
|
+
child_ctx[8] = list[i];
|
|
29228
29266
|
return child_ctx;
|
|
29229
29267
|
}
|
|
29230
29268
|
|
|
29231
|
-
// (
|
|
29269
|
+
// (35:51)
|
|
29232
29270
|
function create_if_block_1$6(ctx) {
|
|
29233
29271
|
let div;
|
|
29234
29272
|
let p;
|
|
@@ -29238,7 +29276,7 @@ function create_if_block_1$6(ctx) {
|
|
|
29238
29276
|
let div_id_value;
|
|
29239
29277
|
let current;
|
|
29240
29278
|
t0 = new Locale_strings({ props: { key: /*messageKey*/ ctx[1] } });
|
|
29241
|
-
let each_value_1 = /*validationRules*/ ctx[
|
|
29279
|
+
let each_value_1 = /*validationRules*/ ctx[3];
|
|
29242
29280
|
let each_blocks = [];
|
|
29243
29281
|
|
|
29244
29282
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -29280,8 +29318,8 @@ function create_if_block_1$6(ctx) {
|
|
|
29280
29318
|
if (dirty & /*messageKey*/ 2) t0_changes.key = /*messageKey*/ ctx[1];
|
|
29281
29319
|
t0.$set(t0_changes);
|
|
29282
29320
|
|
|
29283
|
-
if (dirty & /*validationRules*/
|
|
29284
|
-
each_value_1 = /*validationRules*/ ctx[
|
|
29321
|
+
if (dirty & /*validationRules*/ 8) {
|
|
29322
|
+
each_value_1 = /*validationRules*/ ctx[3];
|
|
29285
29323
|
let i;
|
|
29286
29324
|
|
|
29287
29325
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
@@ -29324,7 +29362,7 @@ function create_if_block_1$6(ctx) {
|
|
|
29324
29362
|
};
|
|
29325
29363
|
}
|
|
29326
29364
|
|
|
29327
|
-
// (
|
|
29365
|
+
// (24:0) {#if simplifiedFailures.length}
|
|
29328
29366
|
function create_if_block$8(ctx) {
|
|
29329
29367
|
let div;
|
|
29330
29368
|
let p;
|
|
@@ -29334,7 +29372,7 @@ function create_if_block$8(ctx) {
|
|
|
29334
29372
|
let div_id_value;
|
|
29335
29373
|
let current;
|
|
29336
29374
|
t0 = new Locale_strings({ props: { key: /*messageKey*/ ctx[1] } });
|
|
29337
|
-
let each_value = /*simplifiedFailures*/ ctx[
|
|
29375
|
+
let each_value = /*simplifiedFailures*/ ctx[4];
|
|
29338
29376
|
let each_blocks = [];
|
|
29339
29377
|
|
|
29340
29378
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -29376,8 +29414,8 @@ function create_if_block$8(ctx) {
|
|
|
29376
29414
|
if (dirty & /*messageKey*/ 2) t0_changes.key = /*messageKey*/ ctx[1];
|
|
29377
29415
|
t0.$set(t0_changes);
|
|
29378
29416
|
|
|
29379
|
-
if (dirty & /*simplifiedFailures*/
|
|
29380
|
-
each_value = /*simplifiedFailures*/ ctx[
|
|
29417
|
+
if (dirty & /*simplifiedFailures*/ 16) {
|
|
29418
|
+
each_value = /*simplifiedFailures*/ ctx[4];
|
|
29381
29419
|
let i;
|
|
29382
29420
|
|
|
29383
29421
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -29420,10 +29458,10 @@ function create_if_block$8(ctx) {
|
|
|
29420
29458
|
};
|
|
29421
29459
|
}
|
|
29422
29460
|
|
|
29423
|
-
// (
|
|
29461
|
+
// (41:6) {#each validationRules as rule}
|
|
29424
29462
|
function create_each_block_1(ctx) {
|
|
29425
29463
|
let li;
|
|
29426
|
-
let t_value = /*rule*/ ctx[
|
|
29464
|
+
let t_value = /*rule*/ ctx[11].message + "";
|
|
29427
29465
|
let t;
|
|
29428
29466
|
|
|
29429
29467
|
return {
|
|
@@ -29437,7 +29475,7 @@ function create_each_block_1(ctx) {
|
|
|
29437
29475
|
append(li, t);
|
|
29438
29476
|
},
|
|
29439
29477
|
p(ctx, dirty) {
|
|
29440
|
-
if (dirty & /*validationRules*/
|
|
29478
|
+
if (dirty & /*validationRules*/ 8 && t_value !== (t_value = /*rule*/ ctx[11].message + "")) set_data(t, t_value);
|
|
29441
29479
|
},
|
|
29442
29480
|
d(detaching) {
|
|
29443
29481
|
if (detaching) detach(li);
|
|
@@ -29445,10 +29483,10 @@ function create_each_block_1(ctx) {
|
|
|
29445
29483
|
};
|
|
29446
29484
|
}
|
|
29447
29485
|
|
|
29448
|
-
// (
|
|
29486
|
+
// (30:6) {#each simplifiedFailures as failure}
|
|
29449
29487
|
function create_each_block$4(ctx) {
|
|
29450
29488
|
let li;
|
|
29451
|
-
let t_value = /*failure*/ ctx[
|
|
29489
|
+
let t_value = /*failure*/ ctx[8].message + "";
|
|
29452
29490
|
let t;
|
|
29453
29491
|
|
|
29454
29492
|
return {
|
|
@@ -29462,7 +29500,7 @@ function create_each_block$4(ctx) {
|
|
|
29462
29500
|
append(li, t);
|
|
29463
29501
|
},
|
|
29464
29502
|
p(ctx, dirty) {
|
|
29465
|
-
if (dirty & /*simplifiedFailures*/
|
|
29503
|
+
if (dirty & /*simplifiedFailures*/ 16 && t_value !== (t_value = /*failure*/ ctx[8].message + "")) set_data(t, t_value);
|
|
29466
29504
|
},
|
|
29467
29505
|
d(detaching) {
|
|
29468
29506
|
if (detaching) detach(li);
|
|
@@ -29479,8 +29517,8 @@ function create_fragment$g(ctx) {
|
|
|
29479
29517
|
const if_blocks = [];
|
|
29480
29518
|
|
|
29481
29519
|
function select_block_type(ctx, dirty) {
|
|
29482
|
-
if (/*simplifiedFailures*/ ctx[
|
|
29483
|
-
if (/*
|
|
29520
|
+
if (/*simplifiedFailures*/ ctx[4].length) return 0;
|
|
29521
|
+
if (/*showPolicies*/ ctx[2] && /*validationRules*/ ctx[3].length) return 1;
|
|
29484
29522
|
return -1;
|
|
29485
29523
|
}
|
|
29486
29524
|
|
|
@@ -29561,6 +29599,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
29561
29599
|
let { key = undefined } = $$props;
|
|
29562
29600
|
let { label } = $$props;
|
|
29563
29601
|
let { messageKey } = $$props;
|
|
29602
|
+
let { showPolicies = false } = $$props;
|
|
29564
29603
|
let validationFailures = getValidationFailures(callback, label);
|
|
29565
29604
|
let validationRules = getValidationPolicies(callback.getPolicies());
|
|
29566
29605
|
|
|
@@ -29573,19 +29612,20 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
29573
29612
|
);
|
|
29574
29613
|
|
|
29575
29614
|
$$self.$$set = $$props => {
|
|
29576
|
-
if ('callback' in $$props) $$invalidate(
|
|
29615
|
+
if ('callback' in $$props) $$invalidate(5, callback = $$props.callback);
|
|
29577
29616
|
if ('key' in $$props) $$invalidate(0, key = $$props.key);
|
|
29578
|
-
if ('label' in $$props) $$invalidate(
|
|
29617
|
+
if ('label' in $$props) $$invalidate(6, label = $$props.label);
|
|
29579
29618
|
if ('messageKey' in $$props) $$invalidate(1, messageKey = $$props.messageKey);
|
|
29619
|
+
if ('showPolicies' in $$props) $$invalidate(2, showPolicies = $$props.showPolicies);
|
|
29580
29620
|
};
|
|
29581
29621
|
|
|
29582
29622
|
$$self.$$.update = () => {
|
|
29583
|
-
if ($$self.$$.dirty & /*callback, label, validationFailures*/
|
|
29623
|
+
if ($$self.$$.dirty & /*callback, label, validationFailures*/ 224) {
|
|
29584
29624
|
{
|
|
29585
|
-
$$invalidate(
|
|
29586
|
-
$$invalidate(
|
|
29625
|
+
$$invalidate(7, validationFailures = getValidationFailures(callback, label));
|
|
29626
|
+
$$invalidate(3, validationRules = getValidationPolicies(callback.getPolicies()));
|
|
29587
29627
|
|
|
29588
|
-
$$invalidate(
|
|
29628
|
+
$$invalidate(4, simplifiedFailures = validationFailures.reduce(
|
|
29589
29629
|
(prev, curr) => {
|
|
29590
29630
|
prev = prev.concat(curr.restructured);
|
|
29591
29631
|
return prev;
|
|
@@ -29599,6 +29639,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
29599
29639
|
return [
|
|
29600
29640
|
key,
|
|
29601
29641
|
messageKey,
|
|
29642
|
+
showPolicies,
|
|
29602
29643
|
validationRules,
|
|
29603
29644
|
simplifiedFailures,
|
|
29604
29645
|
callback,
|
|
@@ -29612,10 +29653,11 @@ class Policies extends SvelteComponent {
|
|
|
29612
29653
|
super();
|
|
29613
29654
|
|
|
29614
29655
|
init(this, options, instance$g, create_fragment$g, safe_not_equal, {
|
|
29615
|
-
callback:
|
|
29656
|
+
callback: 5,
|
|
29616
29657
|
key: 0,
|
|
29617
|
-
label:
|
|
29618
|
-
messageKey: 1
|
|
29658
|
+
label: 6,
|
|
29659
|
+
messageKey: 1,
|
|
29660
|
+
showPolicies: 2
|
|
29619
29661
|
});
|
|
29620
29662
|
}
|
|
29621
29663
|
}
|
|
@@ -30443,7 +30485,8 @@ function create_default_slot$7(ctx) {
|
|
|
30443
30485
|
props: {
|
|
30444
30486
|
callback: /*callback*/ ctx[0],
|
|
30445
30487
|
label: /*prompt*/ ctx[3],
|
|
30446
|
-
messageKey: "passwordRequirements"
|
|
30488
|
+
messageKey: "passwordRequirements",
|
|
30489
|
+
showPolicies: true
|
|
30447
30490
|
}
|
|
30448
30491
|
});
|
|
30449
30492
|
|
|
@@ -33484,7 +33527,7 @@ function get_each_context$1(ctx, list, i) {
|
|
|
33484
33527
|
return child_ctx;
|
|
33485
33528
|
}
|
|
33486
33529
|
|
|
33487
|
-
// (
|
|
33530
|
+
// (41:2) {#if form?.icon}
|
|
33488
33531
|
function create_if_block_2$2(ctx) {
|
|
33489
33532
|
let div;
|
|
33490
33533
|
let newusericon;
|
|
@@ -33524,7 +33567,7 @@ function create_if_block_2$2(ctx) {
|
|
|
33524
33567
|
};
|
|
33525
33568
|
}
|
|
33526
33569
|
|
|
33527
|
-
// (
|
|
33570
|
+
// (56:2) {#if form.message}
|
|
33528
33571
|
function create_if_block_1$2(ctx) {
|
|
33529
33572
|
let alert;
|
|
33530
33573
|
let current;
|
|
@@ -33572,7 +33615,7 @@ function create_if_block_1$2(ctx) {
|
|
|
33572
33615
|
};
|
|
33573
33616
|
}
|
|
33574
33617
|
|
|
33575
|
-
// (
|
|
33618
|
+
// (57:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
33576
33619
|
function create_default_slot_2$1(ctx) {
|
|
33577
33620
|
let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
|
|
33578
33621
|
let t;
|
|
@@ -33593,7 +33636,7 @@ function create_default_slot_2$1(ctx) {
|
|
|
33593
33636
|
};
|
|
33594
33637
|
}
|
|
33595
33638
|
|
|
33596
|
-
// (
|
|
33639
|
+
// (62:2) {#each step?.callbacks as callback, idx}
|
|
33597
33640
|
function create_each_block$1(ctx) {
|
|
33598
33641
|
let callbackmapper;
|
|
33599
33642
|
let current;
|
|
@@ -33646,7 +33689,7 @@ function create_each_block$1(ctx) {
|
|
|
33646
33689
|
};
|
|
33647
33690
|
}
|
|
33648
33691
|
|
|
33649
|
-
// (
|
|
33692
|
+
// (74:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
33650
33693
|
function create_if_block$3(ctx) {
|
|
33651
33694
|
let button;
|
|
33652
33695
|
let current;
|
|
@@ -33695,7 +33738,7 @@ function create_if_block$3(ctx) {
|
|
|
33695
33738
|
};
|
|
33696
33739
|
}
|
|
33697
33740
|
|
|
33698
|
-
// (
|
|
33741
|
+
// (75:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
33699
33742
|
function create_default_slot_1$2(ctx) {
|
|
33700
33743
|
let t;
|
|
33701
33744
|
let current;
|
|
@@ -33725,7 +33768,7 @@ function create_default_slot_1$2(ctx) {
|
|
|
33725
33768
|
};
|
|
33726
33769
|
}
|
|
33727
33770
|
|
|
33728
|
-
// (
|
|
33771
|
+
// (40:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
33729
33772
|
function create_default_slot$3(ctx) {
|
|
33730
33773
|
let t0;
|
|
33731
33774
|
let h1;
|
|
@@ -34094,7 +34137,7 @@ class Registration extends SvelteComponent {
|
|
|
34094
34137
|
}
|
|
34095
34138
|
}
|
|
34096
34139
|
|
|
34097
|
-
/* src/lib/journey/stages/
|
|
34140
|
+
/* src/lib/journey/stages/login.svelte generated by Svelte v3.55.1 */
|
|
34098
34141
|
|
|
34099
34142
|
function get_each_context(ctx, list, i) {
|
|
34100
34143
|
const child_ctx = ctx.slice();
|
|
@@ -34103,7 +34146,7 @@ function get_each_context(ctx, list, i) {
|
|
|
34103
34146
|
return child_ctx;
|
|
34104
34147
|
}
|
|
34105
34148
|
|
|
34106
|
-
// (
|
|
34149
|
+
// (41:2) {#if form?.icon}
|
|
34107
34150
|
function create_if_block_2$1(ctx) {
|
|
34108
34151
|
let div;
|
|
34109
34152
|
let keyicon;
|
|
@@ -34143,7 +34186,7 @@ function create_if_block_2$1(ctx) {
|
|
|
34143
34186
|
};
|
|
34144
34187
|
}
|
|
34145
34188
|
|
|
34146
|
-
// (
|
|
34189
|
+
// (50:2) {#if form?.message}
|
|
34147
34190
|
function create_if_block_1$1(ctx) {
|
|
34148
34191
|
let alert;
|
|
34149
34192
|
let current;
|
|
@@ -34191,7 +34234,7 @@ function create_if_block_1$1(ctx) {
|
|
|
34191
34234
|
};
|
|
34192
34235
|
}
|
|
34193
34236
|
|
|
34194
|
-
// (
|
|
34237
|
+
// (51:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
34195
34238
|
function create_default_slot_2(ctx) {
|
|
34196
34239
|
let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
|
|
34197
34240
|
let t;
|
|
@@ -34212,7 +34255,7 @@ function create_default_slot_2(ctx) {
|
|
|
34212
34255
|
};
|
|
34213
34256
|
}
|
|
34214
34257
|
|
|
34215
|
-
// (
|
|
34258
|
+
// (56:2) {#each step?.callbacks as callback, idx}
|
|
34216
34259
|
function create_each_block(ctx) {
|
|
34217
34260
|
let callbackmapper;
|
|
34218
34261
|
let current;
|
|
@@ -34265,7 +34308,7 @@ function create_each_block(ctx) {
|
|
|
34265
34308
|
};
|
|
34266
34309
|
}
|
|
34267
34310
|
|
|
34268
|
-
// (
|
|
34311
|
+
// (68:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
34269
34312
|
function create_if_block$2(ctx) {
|
|
34270
34313
|
let button;
|
|
34271
34314
|
let current;
|
|
@@ -34314,7 +34357,7 @@ function create_if_block$2(ctx) {
|
|
|
34314
34357
|
};
|
|
34315
34358
|
}
|
|
34316
34359
|
|
|
34317
|
-
// (
|
|
34360
|
+
// (69:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
34318
34361
|
function create_default_slot_1$1(ctx) {
|
|
34319
34362
|
let t;
|
|
34320
34363
|
let current;
|
|
@@ -34344,7 +34387,7 @@ function create_default_slot_1$1(ctx) {
|
|
|
34344
34387
|
};
|
|
34345
34388
|
}
|
|
34346
34389
|
|
|
34347
|
-
// (
|
|
34390
|
+
// (40:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
34348
34391
|
function create_default_slot$2(ctx) {
|
|
34349
34392
|
let t0;
|
|
34350
34393
|
let h1;
|
|
@@ -34746,7 +34789,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34746
34789
|
];
|
|
34747
34790
|
}
|
|
34748
34791
|
|
|
34749
|
-
class
|
|
34792
|
+
class Login extends SvelteComponent {
|
|
34750
34793
|
constructor(options) {
|
|
34751
34794
|
super();
|
|
34752
34795
|
|
|
@@ -34774,10 +34817,10 @@ function mapStepToStage(currentStep) {
|
|
|
34774
34817
|
switch (currentStep?.getStage && currentStep.getStage()) {
|
|
34775
34818
|
case 'OneTimePassword':
|
|
34776
34819
|
return One_time_password;
|
|
34777
|
-
case '
|
|
34820
|
+
case 'DefaultRegistration':
|
|
34778
34821
|
return Registration;
|
|
34779
|
-
case '
|
|
34780
|
-
return
|
|
34822
|
+
case 'DefaultLogin':
|
|
34823
|
+
return Login;
|
|
34781
34824
|
default:
|
|
34782
34825
|
return Generic;
|
|
34783
34826
|
}
|