@forgerock/login-widget 1.0.0-beta.13 → 1.0.0-beta.14

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.0.0-beta.14](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **configuration:** improve handling and reporting of missing configuration ([a611623](https://github.com/forgerock/forgerock-web-login-framework/commit/a611623d7c33b0af18483ccad81a8725e461be65))
7
+
1
8
  # [1.0.0-beta.13](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-27)
2
9
 
3
10
 
@@ -8,25 +15,22 @@
8
15
 
9
16
  # [1.0.0-beta.12](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-27)
10
17
 
11
-
12
18
  ### Bug Fixes
13
19
 
14
- * **password:** fix password confirmation reset and validation failures ([181c67e](https://github.com/forgerock/forgerock-web-login-framework/commit/181c67e475f712a131383317707f3760af2d099d))
20
+ - **password:** fix password confirmation reset and validation failures ([181c67e](https://github.com/forgerock/forgerock-web-login-framework/commit/181c67e475f712a131383317707f3760af2d099d))
15
21
 
16
22
  # [1.0.0-beta.11](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-03-27)
17
23
 
18
-
19
24
  ### Bug Fixes
20
25
 
21
- * **style-e2e:** fix style for kba and fix e2e tests ([4d55431](https://github.com/forgerock/forgerock-web-login-framework/commit/4d55431a60ecdffea196dc8eb2c14d5f9c290e6c))
22
- * **style:** reworking application of headers and footers of widget ([bca81ca](https://github.com/forgerock/forgerock-web-login-framework/commit/bca81ca7286612c1ebe73151f8788ebdbda1d92a))
26
+ - **style-e2e:** fix style for kba and fix e2e tests ([4d55431](https://github.com/forgerock/forgerock-web-login-framework/commit/4d55431a60ecdffea196dc8eb2c14d5f9c290e6c))
27
+ - **style:** reworking application of headers and footers of widget ([bca81ca](https://github.com/forgerock/forgerock-web-login-framework/commit/bca81ca7286612c1ebe73151f8788ebdbda1d92a))
23
28
 
24
29
  # [1.0.0-beta.10](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2023-03-25)
25
30
 
26
-
27
31
  ### Bug Fixes
28
32
 
29
- * **index.svelte:** bind http client to request ([460a826](https://github.com/forgerock/forgerock-web-login-framework/commit/460a8269834be31e044fe1239db628b0c28d856b))
33
+ - **index.svelte:** bind http client to request ([460a826](https://github.com/forgerock/forgerock-web-login-framework/commit/460a8269834be31e044fe1239db628b0c28d856b))
30
34
 
31
35
  # [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)
32
36
 
package/index.cjs CHANGED
@@ -35411,7 +35411,7 @@ function create_else_block$1(ctx) {
35411
35411
  };
35412
35412
  }
35413
35413
 
35414
- // (53:36)
35414
+ // (56:52)
35415
35415
  function create_if_block_3(ctx) {
35416
35416
  let div;
35417
35417
  let spinner;
@@ -35452,7 +35452,7 @@ function create_if_block_3(ctx) {
35452
35452
  };
35453
35453
  }
35454
35454
 
35455
- // (27:0) {#if !$journeyStore?.completed}
35455
+ // (30:0) {#if $journeyStore && !$journeyStore.completed}
35456
35456
  function create_if_block$1(ctx) {
35457
35457
  let current_block_type_index;
35458
35458
  let if_block;
@@ -35462,8 +35462,8 @@ function create_if_block$1(ctx) {
35462
35462
  const if_blocks = [];
35463
35463
 
35464
35464
  function select_block_type_1(ctx, dirty) {
35465
- if (!/*$journeyStore*/ ctx[5].step) return 0;
35466
- if (/*$journeyStore*/ ctx[5].step.type === StepType$1.Step) return 1;
35465
+ if (/*$journeyStore*/ ctx[5] && !/*$journeyStore*/ ctx[5].step) return 0;
35466
+ if (/*$journeyStore*/ ctx[5].step?.type === StepType$1.Step) return 1;
35467
35467
  return -1;
35468
35468
  }
35469
35469
 
@@ -35539,7 +35539,7 @@ function create_if_block$1(ctx) {
35539
35539
  };
35540
35540
  }
35541
35541
 
35542
- // (58:2) <Alert id="unrecoverableStepError" needsFocus={alertNeedsFocus} type="error">
35542
+ // (61:2) <Alert id="unrecoverableStepError" needsFocus={alertNeedsFocus} type="error">
35543
35543
  function create_default_slot_1(ctx) {
35544
35544
  let t;
35545
35545
  let current;
@@ -35572,7 +35572,7 @@ function create_default_slot_1(ctx) {
35572
35572
  };
35573
35573
  }
35574
35574
 
35575
- // (61:2) <Button style="secondary" onClick={tryAgain}>
35575
+ // (64:2) <Button style="secondary" onClick={tryAgain}>
35576
35576
  function create_default_slot$1(ctx) {
35577
35577
  let t;
35578
35578
  let current;
@@ -35602,7 +35602,7 @@ function create_default_slot$1(ctx) {
35602
35602
  };
35603
35603
  }
35604
35604
 
35605
- // (32:54)
35605
+ // (35:55)
35606
35606
  function create_if_block_2(ctx) {
35607
35607
  let switch_instance;
35608
35608
  let updating_formEl;
@@ -35724,7 +35724,7 @@ function create_if_block_2(ctx) {
35724
35724
  };
35725
35725
  }
35726
35726
 
35727
- // (28:2) {#if !$journeyStore.step}
35727
+ // (31:2) {#if $journeyStore && !$journeyStore.step}
35728
35728
  function create_if_block_1(ctx) {
35729
35729
  let div;
35730
35730
  let spinner;
@@ -35774,8 +35774,8 @@ function create_fragment$1(ctx) {
35774
35774
  const if_blocks = [];
35775
35775
 
35776
35776
  function select_block_type(ctx, dirty) {
35777
- if (!/*$journeyStore*/ ctx[5]?.completed) return 0;
35778
- if (/*$journeyStore*/ ctx[5]?.successful) return 1;
35777
+ if (/*$journeyStore*/ ctx[5] && !/*$journeyStore*/ ctx[5].completed) return 0;
35778
+ if (/*$journeyStore*/ ctx[5] && /*$journeyStore*/ ctx[5].successful) return 1;
35779
35779
  return 2;
35780
35780
  }
35781
35781
 
@@ -35846,6 +35846,11 @@ function instance$1($$self, $$props, $$invalidate) {
35846
35846
  let { formEl = null } = $$props;
35847
35847
  let { journeyStore } = $$props;
35848
35848
  $$subscribe_journeyStore();
35849
+
35850
+ if (!$journeyStore) {
35851
+ console.error('Widget missing configuration. Import and call `configuration()`, then use `set()` to configure.');
35852
+ }
35853
+
35849
35854
  let alertNeedsFocus = false;
35850
35855
 
35851
35856
  function submitForm() {
@@ -35859,7 +35864,7 @@ function instance$1($$self, $$props, $$invalidate) {
35859
35864
  }
35860
35865
 
35861
35866
  afterUpdate(() => {
35862
- $$invalidate(4, alertNeedsFocus = !$journeyStore.successful);
35867
+ $$invalidate(4, alertNeedsFocus = $journeyStore && !$journeyStore.successful);
35863
35868
  });
35864
35869
 
35865
35870
  function switch_instance_formEl_binding(value) {