@plaidev/karte-action-sdk 1.1.258-28968789.e27e27c5 → 1.1.258-28971657.3ce5a887

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.
@@ -3475,14 +3475,14 @@ function add_css$H(target) {
3475
3475
  append_styles(target, "svelte-15k4deh", ".button.svelte-15k4deh{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-15k4deh:link,.button.svelte-15k4deh:visited,.button.svelte-15k4deh:active,.button.svelte-15k4deh:hover{color:inherit}");
3476
3476
  }
3477
3477
 
3478
- // (50:0) {:else}
3478
+ // (53:0) {:else}
3479
3479
  function create_else_block$5(ctx) {
3480
3480
  let button;
3481
3481
  let current;
3482
3482
  let mounted;
3483
3483
  let dispose;
3484
- const default_slot_template = /*#slots*/ ctx[9].default;
3485
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3484
+ const default_slot_template = /*#slots*/ ctx[10].default;
3485
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3486
3486
 
3487
3487
  let button_levels = [
3488
3488
  { class: BUTTON_CLASS },
@@ -3530,15 +3530,15 @@ function create_else_block$5(ctx) {
3530
3530
  },
3531
3531
  p(ctx, dirty) {
3532
3532
  if (default_slot) {
3533
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3533
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3534
3534
  update_slot_base(
3535
3535
  default_slot,
3536
3536
  default_slot_template,
3537
3537
  ctx,
3538
- /*$$scope*/ ctx[8],
3538
+ /*$$scope*/ ctx[9],
3539
3539
  !current
3540
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3541
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3540
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3541
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3542
3542
  null
3543
3543
  );
3544
3544
  }
@@ -3570,12 +3570,12 @@ function create_else_block$5(ctx) {
3570
3570
  };
3571
3571
  }
3572
3572
 
3573
- // (46:39)
3573
+ // (49:39)
3574
3574
  function create_if_block_2$2(ctx) {
3575
3575
  let div;
3576
3576
  let current;
3577
- const default_slot_template = /*#slots*/ ctx[9].default;
3578
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3577
+ const default_slot_template = /*#slots*/ ctx[10].default;
3578
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3579
3579
 
3580
3580
  return {
3581
3581
  c() {
@@ -3605,15 +3605,15 @@ function create_if_block_2$2(ctx) {
3605
3605
  },
3606
3606
  p(ctx, dirty) {
3607
3607
  if (default_slot) {
3608
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3608
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3609
3609
  update_slot_base(
3610
3610
  default_slot,
3611
3611
  default_slot_template,
3612
3612
  ctx,
3613
- /*$$scope*/ ctx[8],
3613
+ /*$$scope*/ ctx[9],
3614
3614
  !current
3615
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3616
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3615
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3616
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3617
3617
  null
3618
3618
  );
3619
3619
  }
@@ -3639,7 +3639,7 @@ function create_if_block_2$2(ctx) {
3639
3639
  };
3640
3640
  }
3641
3641
 
3642
- // (35:41)
3642
+ // (38:41)
3643
3643
  function create_if_block_1$3(ctx) {
3644
3644
  let a;
3645
3645
  let a_href_value;
@@ -3647,8 +3647,8 @@ function create_if_block_1$3(ctx) {
3647
3647
  let current;
3648
3648
  let mounted;
3649
3649
  let dispose;
3650
- const default_slot_template = /*#slots*/ ctx[9].default;
3651
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3650
+ const default_slot_template = /*#slots*/ ctx[10].default;
3651
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3652
3652
 
3653
3653
  let a_levels = [
3654
3654
  { class: BUTTON_CLASS },
@@ -3709,15 +3709,15 @@ function create_if_block_1$3(ctx) {
3709
3709
  },
3710
3710
  p(ctx, dirty) {
3711
3711
  if (default_slot) {
3712
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3712
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3713
3713
  update_slot_base(
3714
3714
  default_slot,
3715
3715
  default_slot_template,
3716
3716
  ctx,
3717
- /*$$scope*/ ctx[8],
3717
+ /*$$scope*/ ctx[9],
3718
3718
  !current
3719
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3720
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3719
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3720
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3721
3721
  null
3722
3722
  );
3723
3723
  }
@@ -3753,12 +3753,12 @@ function create_if_block_1$3(ctx) {
3753
3753
  };
3754
3754
  }
3755
3755
 
3756
- // (31:0) {#if disabled}
3756
+ // (34:0) {#if disabled}
3757
3757
  function create_if_block$d(ctx) {
3758
3758
  let div;
3759
3759
  let current;
3760
- const default_slot_template = /*#slots*/ ctx[9].default;
3761
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3760
+ const default_slot_template = /*#slots*/ ctx[10].default;
3761
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3762
3762
 
3763
3763
  return {
3764
3764
  c() {
@@ -3788,15 +3788,15 @@ function create_if_block$d(ctx) {
3788
3788
  },
3789
3789
  p(ctx, dirty) {
3790
3790
  if (default_slot) {
3791
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3791
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3792
3792
  update_slot_base(
3793
3793
  default_slot,
3794
3794
  default_slot_template,
3795
3795
  ctx,
3796
- /*$$scope*/ ctx[8],
3796
+ /*$$scope*/ ctx[9],
3797
3797
  !current
3798
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3799
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3798
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3799
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3800
3800
  null
3801
3801
  );
3802
3802
  }
@@ -3907,6 +3907,7 @@ function instance$1d($$self, $$props, $$invalidate) {
3907
3907
  let { eventName = '' } = $$props;
3908
3908
  let { eventValue = undefined } = $$props;
3909
3909
  let { style = '' } = $$props;
3910
+ let { isModalCloseButton = false } = $$props;
3910
3911
 
3911
3912
  function handleClick() {
3912
3913
  if (eventName) {
@@ -3918,20 +3919,22 @@ function instance$1d($$self, $$props, $$invalidate) {
3918
3919
 
3919
3920
  const { path: statePath } = getStateItemContext() ?? { path: '/' };
3920
3921
  const valuesAreValid = getValuesAreValidReadable(statePath);
3921
- component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3922
+ component_subscribe($$self, valuesAreValid, value => $$invalidate(8, $valuesAreValid = value));
3922
3923
 
3923
3924
  $$self.$$set = $$props => {
3924
3925
  if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
3925
3926
  if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
3926
3927
  if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
3927
3928
  if ('style' in $$props) $$invalidate(1, style = $$props.style);
3928
- if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
3929
+ if ('isModalCloseButton' in $$props) $$invalidate(7, isModalCloseButton = $$props.isModalCloseButton);
3930
+ if ('$$scope' in $$props) $$invalidate(9, $$scope = $$props.$$scope);
3929
3931
  };
3930
3932
 
3931
3933
  $$self.$$.update = () => {
3932
- if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 129) {
3934
+ if ($$self.$$.dirty & /*isModalCloseButton, onClick, $valuesAreValid*/ 385) {
3933
3935
  $$invalidate(2, disabled = (() => {
3934
3936
  let isEnabled = true;
3937
+ if (isModalCloseButton) return false;
3935
3938
 
3936
3939
  if (onClick.operation === 'submitForm') {
3937
3940
  isEnabled = $valuesAreValid;
@@ -3952,6 +3955,7 @@ function instance$1d($$self, $$props, $$invalidate) {
3952
3955
  valuesAreValid,
3953
3956
  eventName,
3954
3957
  eventValue,
3958
+ isModalCloseButton,
3955
3959
  $valuesAreValid,
3956
3960
  $$scope,
3957
3961
  slots
@@ -3972,7 +3976,8 @@ let Button$1 = class Button extends SvelteComponent {
3972
3976
  onClick: 0,
3973
3977
  eventName: 5,
3974
3978
  eventValue: 6,
3975
- style: 1
3979
+ style: 1,
3980
+ isModalCloseButton: 7
3976
3981
  },
3977
3982
  add_css$H
3978
3983
  );
@@ -4226,6 +4231,7 @@ function create_if_block_1$2(ctx) {
4226
4231
  style: /*_closeStyle*/ ctx[10],
4227
4232
  eventName: /*closeEventName*/ ctx[7],
4228
4233
  eventValue: /*closeEventValue*/ ctx[8],
4234
+ isModalCloseButton: true,
4229
4235
  $$slots: { default: [create_default_slot_1$1] },
4230
4236
  $$scope: { ctx }
4231
4237
  }
@@ -4286,7 +4292,7 @@ function create_if_block_1$2(ctx) {
4286
4292
  };
4287
4293
  }
4288
4294
 
4289
- // (296:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
4295
+ // (296:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} isModalCloseButton={true} >
4290
4296
  function create_default_slot_1$1(ctx) {
4291
4297
  let svg;
4292
4298
  let path;
package/dist/index.es.js CHANGED
@@ -3551,14 +3551,14 @@ function add_css$H(target) {
3551
3551
  append_styles(target, "svelte-15k4deh", ".button.svelte-15k4deh{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-15k4deh:link,.button.svelte-15k4deh:visited,.button.svelte-15k4deh:active,.button.svelte-15k4deh:hover{color:inherit}");
3552
3552
  }
3553
3553
 
3554
- // (50:0) {:else}
3554
+ // (53:0) {:else}
3555
3555
  function create_else_block$5(ctx) {
3556
3556
  let button;
3557
3557
  let current;
3558
3558
  let mounted;
3559
3559
  let dispose;
3560
- const default_slot_template = /*#slots*/ ctx[9].default;
3561
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3560
+ const default_slot_template = /*#slots*/ ctx[10].default;
3561
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3562
3562
 
3563
3563
  let button_levels = [
3564
3564
  { class: BUTTON_CLASS },
@@ -3596,15 +3596,15 @@ function create_else_block$5(ctx) {
3596
3596
  },
3597
3597
  p(ctx, dirty) {
3598
3598
  if (default_slot) {
3599
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3599
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3600
3600
  update_slot_base(
3601
3601
  default_slot,
3602
3602
  default_slot_template,
3603
3603
  ctx,
3604
- /*$$scope*/ ctx[8],
3604
+ /*$$scope*/ ctx[9],
3605
3605
  !current
3606
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3607
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3606
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3607
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3608
3608
  null
3609
3609
  );
3610
3610
  }
@@ -3636,12 +3636,12 @@ function create_else_block$5(ctx) {
3636
3636
  };
3637
3637
  }
3638
3638
 
3639
- // (46:39)
3639
+ // (49:39)
3640
3640
  function create_if_block_2$2(ctx) {
3641
3641
  let div;
3642
3642
  let current;
3643
- const default_slot_template = /*#slots*/ ctx[9].default;
3644
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3643
+ const default_slot_template = /*#slots*/ ctx[10].default;
3644
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3645
3645
 
3646
3646
  return {
3647
3647
  c() {
@@ -3661,15 +3661,15 @@ function create_if_block_2$2(ctx) {
3661
3661
  },
3662
3662
  p(ctx, dirty) {
3663
3663
  if (default_slot) {
3664
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3664
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3665
3665
  update_slot_base(
3666
3666
  default_slot,
3667
3667
  default_slot_template,
3668
3668
  ctx,
3669
- /*$$scope*/ ctx[8],
3669
+ /*$$scope*/ ctx[9],
3670
3670
  !current
3671
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3672
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3671
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3672
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3673
3673
  null
3674
3674
  );
3675
3675
  }
@@ -3695,7 +3695,7 @@ function create_if_block_2$2(ctx) {
3695
3695
  };
3696
3696
  }
3697
3697
 
3698
- // (35:41)
3698
+ // (38:41)
3699
3699
  function create_if_block_1$3(ctx) {
3700
3700
  let a;
3701
3701
  let a_href_value;
@@ -3703,8 +3703,8 @@ function create_if_block_1$3(ctx) {
3703
3703
  let current;
3704
3704
  let mounted;
3705
3705
  let dispose;
3706
- const default_slot_template = /*#slots*/ ctx[9].default;
3707
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3706
+ const default_slot_template = /*#slots*/ ctx[10].default;
3707
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3708
3708
 
3709
3709
  let a_levels = [
3710
3710
  { class: BUTTON_CLASS },
@@ -3749,15 +3749,15 @@ function create_if_block_1$3(ctx) {
3749
3749
  },
3750
3750
  p(ctx, dirty) {
3751
3751
  if (default_slot) {
3752
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3752
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3753
3753
  update_slot_base(
3754
3754
  default_slot,
3755
3755
  default_slot_template,
3756
3756
  ctx,
3757
- /*$$scope*/ ctx[8],
3757
+ /*$$scope*/ ctx[9],
3758
3758
  !current
3759
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3760
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3759
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3760
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3761
3761
  null
3762
3762
  );
3763
3763
  }
@@ -3793,12 +3793,12 @@ function create_if_block_1$3(ctx) {
3793
3793
  };
3794
3794
  }
3795
3795
 
3796
- // (31:0) {#if disabled}
3796
+ // (34:0) {#if disabled}
3797
3797
  function create_if_block$d(ctx) {
3798
3798
  let div;
3799
3799
  let current;
3800
- const default_slot_template = /*#slots*/ ctx[9].default;
3801
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
3800
+ const default_slot_template = /*#slots*/ ctx[10].default;
3801
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
3802
3802
 
3803
3803
  return {
3804
3804
  c() {
@@ -3818,15 +3818,15 @@ function create_if_block$d(ctx) {
3818
3818
  },
3819
3819
  p(ctx, dirty) {
3820
3820
  if (default_slot) {
3821
- if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
3821
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 512)) {
3822
3822
  update_slot_base(
3823
3823
  default_slot,
3824
3824
  default_slot_template,
3825
3825
  ctx,
3826
- /*$$scope*/ ctx[8],
3826
+ /*$$scope*/ ctx[9],
3827
3827
  !current
3828
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
3829
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
3828
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[9])
3829
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[9], dirty, null),
3830
3830
  null
3831
3831
  );
3832
3832
  }
@@ -3933,6 +3933,7 @@ function instance$1d($$self, $$props, $$invalidate) {
3933
3933
  let { eventName = '' } = $$props;
3934
3934
  let { eventValue = undefined } = $$props;
3935
3935
  let { style = '' } = $$props;
3936
+ let { isModalCloseButton = false } = $$props;
3936
3937
 
3937
3938
  function handleClick() {
3938
3939
  if (eventName) {
@@ -3944,20 +3945,22 @@ function instance$1d($$self, $$props, $$invalidate) {
3944
3945
 
3945
3946
  const { path: statePath } = getStateItemContext() ?? { path: '/' };
3946
3947
  const valuesAreValid = getValuesAreValidReadable(statePath);
3947
- component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3948
+ component_subscribe($$self, valuesAreValid, value => $$invalidate(8, $valuesAreValid = value));
3948
3949
 
3949
3950
  $$self.$$set = $$props => {
3950
3951
  if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
3951
3952
  if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
3952
3953
  if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
3953
3954
  if ('style' in $$props) $$invalidate(1, style = $$props.style);
3954
- if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
3955
+ if ('isModalCloseButton' in $$props) $$invalidate(7, isModalCloseButton = $$props.isModalCloseButton);
3956
+ if ('$$scope' in $$props) $$invalidate(9, $$scope = $$props.$$scope);
3955
3957
  };
3956
3958
 
3957
3959
  $$self.$$.update = () => {
3958
- if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 129) {
3960
+ if ($$self.$$.dirty & /*isModalCloseButton, onClick, $valuesAreValid*/ 385) {
3959
3961
  $$invalidate(2, disabled = (() => {
3960
3962
  let isEnabled = true;
3963
+ if (isModalCloseButton) return false;
3961
3964
 
3962
3965
  if (onClick.operation === 'submitForm') {
3963
3966
  isEnabled = $valuesAreValid;
@@ -3978,6 +3981,7 @@ function instance$1d($$self, $$props, $$invalidate) {
3978
3981
  valuesAreValid,
3979
3982
  eventName,
3980
3983
  eventValue,
3984
+ isModalCloseButton,
3981
3985
  $valuesAreValid,
3982
3986
  $$scope,
3983
3987
  slots
@@ -3998,7 +4002,8 @@ let Button$1 = class Button extends SvelteComponent {
3998
4002
  onClick: 0,
3999
4003
  eventName: 5,
4000
4004
  eventValue: 6,
4001
- style: 1
4005
+ style: 1,
4006
+ isModalCloseButton: 7
4002
4007
  },
4003
4008
  add_css$H
4004
4009
  );
@@ -4227,6 +4232,7 @@ function create_if_block_1$2(ctx) {
4227
4232
  style: /*_closeStyle*/ ctx[10],
4228
4233
  eventName: /*closeEventName*/ ctx[7],
4229
4234
  eventValue: /*closeEventValue*/ ctx[8],
4235
+ isModalCloseButton: true,
4230
4236
  $$slots: { default: [create_default_slot_1$1] },
4231
4237
  $$scope: { ctx }
4232
4238
  }
@@ -4277,7 +4283,7 @@ function create_if_block_1$2(ctx) {
4277
4283
  };
4278
4284
  }
4279
4285
 
4280
- // (296:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
4286
+ // (296:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} isModalCloseButton={true} >
4281
4287
  function create_default_slot_1$1(ctx) {
4282
4288
  let svg;
4283
4289
  let path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.258-28968789.e27e27c5",
3
+ "version": "1.1.258-28971657.3ce5a887",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",