@plaidev/karte-action-sdk 1.1.232-28663591.feead91d → 1.1.232-28684891.17fd688b

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.
@@ -12005,7 +12005,12 @@ function create_fragment$w(ctx) {
12005
12005
  this.h();
12006
12006
  },
12007
12007
  l(nodes) {
12008
- div = claim_element(nodes, "DIV", { class: true, style: true });
12008
+ div = claim_element(nodes, "DIV", {
12009
+ class: true,
12010
+ "data-layer-id": true,
12011
+ style: true
12012
+ });
12013
+
12009
12014
  var div_nodes = children(div);
12010
12015
  img = claim_element(div_nodes, "IMG", { src: true, alt: true, style: true });
12011
12016
  div_nodes.forEach(detach);
@@ -12014,9 +12019,10 @@ function create_fragment$w(ctx) {
12014
12019
  h() {
12015
12020
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
12016
12021
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
12017
- attr(img, "style", /*imgStyle*/ ctx[1]);
12022
+ attr(img, "style", /*imgStyle*/ ctx[2]);
12018
12023
  attr(div, "class", "avatar svelte-17xar9h");
12019
- attr(div, "style", /*style*/ ctx[2]);
12024
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
12025
+ attr(div, "style", /*style*/ ctx[3]);
12020
12026
  },
12021
12027
  m(target, anchor) {
12022
12028
  insert_hydration(target, div, anchor);
@@ -12031,12 +12037,16 @@ function create_fragment$w(ctx) {
12031
12037
  attr(img, "alt", img_alt_value);
12032
12038
  }
12033
12039
 
12034
- if (dirty & /*imgStyle*/ 2) {
12035
- attr(img, "style", /*imgStyle*/ ctx[1]);
12040
+ if (dirty & /*imgStyle*/ 4) {
12041
+ attr(img, "style", /*imgStyle*/ ctx[2]);
12036
12042
  }
12037
12043
 
12038
- if (dirty & /*style*/ 4) {
12039
- attr(div, "style", /*style*/ ctx[2]);
12044
+ if (dirty & /*layerId*/ 2) {
12045
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
12046
+ }
12047
+
12048
+ if (dirty & /*style*/ 8) {
12049
+ attr(div, "style", /*style*/ ctx[3]);
12040
12050
  }
12041
12051
  },
12042
12052
  i: noop,
@@ -12051,6 +12061,7 @@ function instance$w($$self, $$props, $$invalidate) {
12051
12061
  let style;
12052
12062
  let imgStyle;
12053
12063
  let { props = {} } = $$props;
12064
+ let { layerId = '' } = $$props;
12054
12065
 
12055
12066
  const VARIANTS = {
12056
12067
  shape: {
@@ -12063,11 +12074,12 @@ function instance$w($$self, $$props, $$invalidate) {
12063
12074
 
12064
12075
  $$self.$$set = $$props => {
12065
12076
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
12077
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
12066
12078
  };
12067
12079
 
12068
12080
  $$self.$$.update = () => {
12069
12081
  if ($$self.$$.dirty & /*props*/ 1) {
12070
- $$invalidate(2, style = objToStyle({
12082
+ $$invalidate(3, style = objToStyle({
12071
12083
  width: `${size}px`,
12072
12084
  height: `${size}px`,
12073
12085
  ...VARIANTS.shape[props.shape ?? 'square'],
@@ -12077,19 +12089,19 @@ function instance$w($$self, $$props, $$invalidate) {
12077
12089
  }
12078
12090
  };
12079
12091
 
12080
- $$invalidate(1, imgStyle = objToStyle({
12092
+ $$invalidate(2, imgStyle = objToStyle({
12081
12093
  width: '100%',
12082
12094
  height: '100%',
12083
12095
  objectFit: 'cover'
12084
12096
  }));
12085
12097
 
12086
- return [props, imgStyle, style];
12098
+ return [props, layerId, imgStyle, style];
12087
12099
  }
12088
12100
 
12089
12101
  class Avatar extends SvelteComponent {
12090
12102
  constructor(options) {
12091
12103
  super();
12092
- init(this, options, instance$w, create_fragment$w, safe_not_equal, { props: 0 }, add_css$6);
12104
+ init(this, options, instance$w, create_fragment$w, safe_not_equal, { props: 0, layerId: 1 }, add_css$6);
12093
12105
  }
12094
12106
  }
12095
12107
 
@@ -13823,12 +13835,12 @@ function add_css$5(target) {
13823
13835
  append_styles(target, "svelte-1mx2edd", ".icon.svelte-1mx2edd{display:inline-flex;align-items:center;overflow:hidden;width:auto}");
13824
13836
  }
13825
13837
 
13826
- // (14:0) {#if (IconComponent)}
13838
+ // (15:0) {#if (IconComponent)}
13827
13839
  function create_if_block$1(ctx) {
13828
13840
  let div;
13829
13841
  let switch_instance;
13830
13842
  let current;
13831
- var switch_value = /*IconComponent*/ ctx[1];
13843
+ var switch_value = /*IconComponent*/ ctx[2];
13832
13844
 
13833
13845
  function switch_props(ctx) {
13834
13846
  return {
@@ -13847,15 +13859,21 @@ function create_if_block$1(ctx) {
13847
13859
  this.h();
13848
13860
  },
13849
13861
  l(nodes) {
13850
- div = claim_element(nodes, "DIV", { class: true, style: true });
13862
+ div = claim_element(nodes, "DIV", {
13863
+ "data-layer-id": true,
13864
+ class: true,
13865
+ style: true
13866
+ });
13867
+
13851
13868
  var div_nodes = children(div);
13852
13869
  if (switch_instance) claim_component(switch_instance.$$.fragment, div_nodes);
13853
13870
  div_nodes.forEach(detach);
13854
13871
  this.h();
13855
13872
  },
13856
13873
  h() {
13874
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
13857
13875
  attr(div, "class", "icon svelte-1mx2edd");
13858
- attr(div, "style", /*style*/ ctx[2]);
13876
+ attr(div, "style", /*style*/ ctx[3]);
13859
13877
  },
13860
13878
  m(target, anchor) {
13861
13879
  insert_hydration(target, div, anchor);
@@ -13866,7 +13884,7 @@ function create_if_block$1(ctx) {
13866
13884
  const switch_instance_changes = {};
13867
13885
  if (dirty & /*props*/ 1) switch_instance_changes.color = /*props*/ ctx[0].color ?? '#333';
13868
13886
 
13869
- if (switch_value !== (switch_value = /*IconComponent*/ ctx[1])) {
13887
+ if (switch_value !== (switch_value = /*IconComponent*/ ctx[2])) {
13870
13888
  if (switch_instance) {
13871
13889
  group_outros();
13872
13890
  const old_component = switch_instance;
@@ -13890,8 +13908,12 @@ function create_if_block$1(ctx) {
13890
13908
  switch_instance.$set(switch_instance_changes);
13891
13909
  }
13892
13910
 
13893
- if (!current || dirty & /*style*/ 4) {
13894
- attr(div, "style", /*style*/ ctx[2]);
13911
+ if (!current || dirty & /*layerId*/ 2) {
13912
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
13913
+ }
13914
+
13915
+ if (!current || dirty & /*style*/ 8) {
13916
+ attr(div, "style", /*style*/ ctx[3]);
13895
13917
  }
13896
13918
  },
13897
13919
  i(local) {
@@ -13913,7 +13935,7 @@ function create_if_block$1(ctx) {
13913
13935
  function create_fragment$5(ctx) {
13914
13936
  let if_block_anchor;
13915
13937
  let current;
13916
- let if_block = /*IconComponent*/ ctx[1] && create_if_block$1(ctx);
13938
+ let if_block = /*IconComponent*/ ctx[2] && create_if_block$1(ctx);
13917
13939
 
13918
13940
  return {
13919
13941
  c() {
@@ -13930,11 +13952,11 @@ function create_fragment$5(ctx) {
13930
13952
  current = true;
13931
13953
  },
13932
13954
  p(ctx, [dirty]) {
13933
- if (/*IconComponent*/ ctx[1]) {
13955
+ if (/*IconComponent*/ ctx[2]) {
13934
13956
  if (if_block) {
13935
13957
  if_block.p(ctx, dirty);
13936
13958
 
13937
- if (dirty & /*IconComponent*/ 2) {
13959
+ if (dirty & /*IconComponent*/ 4) {
13938
13960
  transition_in(if_block, 1);
13939
13961
  }
13940
13962
  } else {
@@ -13973,14 +13995,16 @@ function instance$5($$self, $$props, $$invalidate) {
13973
13995
  let style;
13974
13996
  let IconComponent;
13975
13997
  let { props = {} } = $$props;
13998
+ let { layerId = '' } = $$props;
13976
13999
 
13977
14000
  $$self.$$set = $$props => {
13978
14001
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
14002
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
13979
14003
  };
13980
14004
 
13981
14005
  $$self.$$.update = () => {
13982
14006
  if ($$self.$$.dirty & /*props*/ 1) {
13983
- $$invalidate(2, style = objToStyle({
14007
+ $$invalidate(3, style = objToStyle({
13984
14008
  minWidth: props.size,
13985
14009
  width: props.size,
13986
14010
  height: props.size,
@@ -13989,17 +14013,17 @@ function instance$5($$self, $$props, $$invalidate) {
13989
14013
  }
13990
14014
 
13991
14015
  if ($$self.$$.dirty & /*props*/ 1) {
13992
- $$invalidate(1, IconComponent = ICON_VARIANTS[props.variant] ?? undefined);
14016
+ $$invalidate(2, IconComponent = ICON_VARIANTS[props.variant] ?? undefined);
13993
14017
  }
13994
14018
  };
13995
14019
 
13996
- return [props, IconComponent, style];
14020
+ return [props, layerId, IconComponent, style];
13997
14021
  }
13998
14022
 
13999
14023
  class Icon extends SvelteComponent {
14000
14024
  constructor(options) {
14001
14025
  super();
14002
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { props: 0 }, add_css$5);
14026
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { props: 0, layerId: 1 }, add_css$5);
14003
14027
  }
14004
14028
  }
14005
14029
 
@@ -14009,7 +14033,7 @@ function add_css$4(target) {
14009
14033
  append_styles(target, "svelte-kz1c6t", ".v2-button.svelte-kz1c6t{display:inline-flex;align-content:center;justify-content:center;gap:0.65em;cursor:pointer;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.v2-button-icon.svelte-kz1c6t{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
14010
14034
  }
14011
14035
 
14012
- // (126:2) {#if (props.isIcon && props.iconVariant)}
14036
+ // (127:2) {#if (props.isIcon && props.iconVariant)}
14013
14037
  function create_if_block(ctx) {
14014
14038
  let div;
14015
14039
  let icon;
@@ -14020,7 +14044,7 @@ function create_if_block(ctx) {
14020
14044
  props: {
14021
14045
  variant: /*props*/ ctx[0].iconVariant,
14022
14046
  size: '1em',
14023
- color: /*VARIANTS*/ ctx[2].color[/*props*/ ctx[0].color ?? 'default'].color
14047
+ color: /*VARIANTS*/ ctx[3].color[/*props*/ ctx[0].color ?? 'default'].color
14024
14048
  }
14025
14049
  }
14026
14050
  });
@@ -14052,7 +14076,7 @@ function create_if_block(ctx) {
14052
14076
  if (dirty & /*props*/ 1) icon_changes.props = {
14053
14077
  variant: /*props*/ ctx[0].iconVariant,
14054
14078
  size: '1em',
14055
- color: /*VARIANTS*/ ctx[2].color[/*props*/ ctx[0].color ?? 'default'].color
14079
+ color: /*VARIANTS*/ ctx[3].color[/*props*/ ctx[0].color ?? 'default'].color
14056
14080
  };
14057
14081
 
14058
14082
  icon.$set(icon_changes);
@@ -14094,7 +14118,12 @@ function create_fragment$4(ctx) {
14094
14118
  this.h();
14095
14119
  },
14096
14120
  l(nodes) {
14097
- button = claim_element(nodes, "BUTTON", { style: true, class: true });
14121
+ button = claim_element(nodes, "BUTTON", {
14122
+ "data-layer-id": true,
14123
+ style: true,
14124
+ class: true
14125
+ });
14126
+
14098
14127
  var button_nodes = children(button);
14099
14128
  if (if_block) if_block.l(button_nodes);
14100
14129
  t0 = claim_space(button_nodes);
@@ -14106,7 +14135,8 @@ function create_fragment$4(ctx) {
14106
14135
  this.h();
14107
14136
  },
14108
14137
  h() {
14109
- attr(button, "style", /*style*/ ctx[1]);
14138
+ attr(button, "data-layer-id", /*layerId*/ ctx[1]);
14139
+ attr(button, "style", /*style*/ ctx[2]);
14110
14140
  attr(button, "class", "v2-button svelte-kz1c6t");
14111
14141
  },
14112
14142
  m(target, anchor) {
@@ -14118,7 +14148,7 @@ function create_fragment$4(ctx) {
14118
14148
  current = true;
14119
14149
 
14120
14150
  if (!mounted) {
14121
- dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[3]));
14151
+ dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[4]));
14122
14152
  mounted = true;
14123
14153
  }
14124
14154
  },
@@ -14148,8 +14178,12 @@ function create_fragment$4(ctx) {
14148
14178
 
14149
14179
  if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = /*props*/ ctx[0].label + "")) set_data(t1, t1_value);
14150
14180
 
14151
- if (!current || dirty & /*style*/ 2) {
14152
- attr(button, "style", /*style*/ ctx[1]);
14181
+ if (!current || dirty & /*layerId*/ 2) {
14182
+ attr(button, "data-layer-id", /*layerId*/ ctx[1]);
14183
+ }
14184
+
14185
+ if (!current || dirty & /*style*/ 4) {
14186
+ attr(button, "style", /*style*/ ctx[2]);
14153
14187
  }
14154
14188
  },
14155
14189
  i(local) {
@@ -14176,6 +14210,7 @@ function instance$4($$self, $$props, $$invalidate) {
14176
14210
  let { eventName = '' } = $$props;
14177
14211
  let { eventValue = undefined } = $$props;
14178
14212
  let { props = {} } = $$props;
14213
+ let { layerId = '' } = $$props;
14179
14214
 
14180
14215
  const VARIANTS = {
14181
14216
  size: {
@@ -14265,15 +14300,16 @@ function instance$4($$self, $$props, $$invalidate) {
14265
14300
  }
14266
14301
 
14267
14302
  $$self.$$set = $$props => {
14268
- if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
14269
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
14270
- if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
14303
+ if ('onClick' in $$props) $$invalidate(5, onClick = $$props.onClick);
14304
+ if ('eventName' in $$props) $$invalidate(6, eventName = $$props.eventName);
14305
+ if ('eventValue' in $$props) $$invalidate(7, eventValue = $$props.eventValue);
14271
14306
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
14307
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
14272
14308
  };
14273
14309
 
14274
14310
  $$self.$$.update = () => {
14275
14311
  if ($$self.$$.dirty & /*props*/ 1) {
14276
- $$invalidate(1, style = objToStyle({
14312
+ $$invalidate(2, style = objToStyle({
14277
14313
  display: 'inline-flex',
14278
14314
  gap: '0.65em',
14279
14315
  alignItems: 'center',
@@ -14294,7 +14330,7 @@ function instance$4($$self, $$props, $$invalidate) {
14294
14330
  }
14295
14331
  };
14296
14332
 
14297
- return [props, style, VARIANTS, handleClick, onClick, eventName, eventValue];
14333
+ return [props, layerId, style, VARIANTS, handleClick, onClick, eventName, eventValue];
14298
14334
  }
14299
14335
 
14300
14336
  class Button extends SvelteComponent {
@@ -14308,10 +14344,11 @@ class Button extends SvelteComponent {
14308
14344
  create_fragment$4,
14309
14345
  safe_not_equal,
14310
14346
  {
14311
- onClick: 4,
14312
- eventName: 5,
14313
- eventValue: 6,
14314
- props: 0
14347
+ onClick: 5,
14348
+ eventName: 6,
14349
+ eventValue: 7,
14350
+ props: 0,
14351
+ layerId: 1
14315
14352
  },
14316
14353
  add_css$4
14317
14354
  );
@@ -14364,7 +14401,12 @@ function create_fragment$3(ctx) {
14364
14401
  this.h();
14365
14402
  },
14366
14403
  l(nodes) {
14367
- button = claim_element(nodes, "BUTTON", { class: true, style: true });
14404
+ button = claim_element(nodes, "BUTTON", {
14405
+ "data-layer-id": true,
14406
+ class: true,
14407
+ style: true
14408
+ });
14409
+
14368
14410
  var button_nodes = children(button);
14369
14411
 
14370
14412
  svg = claim_svg_element(button_nodes, "svg", {
@@ -14388,8 +14430,9 @@ function create_fragment$3(ctx) {
14388
14430
  set_style(svg, "height", "75%");
14389
14431
  attr(svg, "viewBox", "0 0 50 50");
14390
14432
  attr(svg, "fill", "#666666");
14433
+ attr(button, "data-layer-id", /*layerId*/ ctx[0]);
14391
14434
  attr(button, "class", "close-button svelte-1dgpo5m");
14392
- attr(button, "style", /*style*/ ctx[0]);
14435
+ attr(button, "style", /*style*/ ctx[1]);
14393
14436
  },
14394
14437
  m(target, anchor) {
14395
14438
  insert_hydration(target, button, anchor);
@@ -14397,8 +14440,12 @@ function create_fragment$3(ctx) {
14397
14440
  append_hydration(svg, path);
14398
14441
  },
14399
14442
  p(ctx, [dirty]) {
14400
- if (dirty & /*style*/ 1) {
14401
- attr(button, "style", /*style*/ ctx[0]);
14443
+ if (dirty & /*layerId*/ 1) {
14444
+ attr(button, "data-layer-id", /*layerId*/ ctx[0]);
14445
+ }
14446
+
14447
+ if (dirty & /*style*/ 2) {
14448
+ attr(button, "style", /*style*/ ctx[1]);
14402
14449
  }
14403
14450
  },
14404
14451
  i: noop,
@@ -14412,15 +14459,17 @@ function create_fragment$3(ctx) {
14412
14459
  function instance$3($$self, $$props, $$invalidate) {
14413
14460
  let style;
14414
14461
  let { props = {} } = $$props;
14462
+ let { layerId = '' } = $$props;
14415
14463
  const size = props.size ?? 24;
14416
14464
 
14417
14465
  $$self.$$set = $$props => {
14418
- if ('props' in $$props) $$invalidate(1, props = $$props.props);
14466
+ if ('props' in $$props) $$invalidate(2, props = $$props.props);
14467
+ if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
14419
14468
  };
14420
14469
 
14421
14470
  $$self.$$.update = () => {
14422
- if ($$self.$$.dirty & /*props*/ 2) {
14423
- $$invalidate(0, style = objToStyle({
14471
+ if ($$self.$$.dirty & /*props*/ 4) {
14472
+ $$invalidate(1, style = objToStyle({
14424
14473
  width: `${size}px`,
14425
14474
  height: `${size}px`,
14426
14475
  ...props.bordered && { border: '1px solid #666' },
@@ -14429,13 +14478,13 @@ function instance$3($$self, $$props, $$invalidate) {
14429
14478
  }
14430
14479
  };
14431
14480
 
14432
- return [style, props];
14481
+ return [layerId, style, props];
14433
14482
  }
14434
14483
 
14435
14484
  class CloseButton extends SvelteComponent {
14436
14485
  constructor(options) {
14437
14486
  super();
14438
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { props: 1 }, add_css$3);
14487
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { props: 2, layerId: 0 }, add_css$3);
14439
14488
  }
14440
14489
  }
14441
14490
 
@@ -14460,7 +14509,12 @@ function create_fragment$2(ctx) {
14460
14509
  this.h();
14461
14510
  },
14462
14511
  l(nodes) {
14463
- div = claim_element(nodes, "DIV", { class: true, style: true });
14512
+ div = claim_element(nodes, "DIV", {
14513
+ "data-layer-id": true,
14514
+ class: true,
14515
+ style: true
14516
+ });
14517
+
14464
14518
  var div_nodes = children(div);
14465
14519
  object = claim_element(div_nodes, "OBJECT", { style: true, class: true });
14466
14520
  var object_nodes = children(object);
@@ -14473,10 +14527,11 @@ function create_fragment$2(ctx) {
14473
14527
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
14474
14528
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
14475
14529
  attr(img, "class", "image-img svelte-vojroc");
14476
- attr(object, "style", /*objectStyle*/ ctx[1]);
14530
+ attr(object, "style", /*objectStyle*/ ctx[2]);
14477
14531
  attr(object, "class", "image-object svelte-vojroc");
14532
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
14478
14533
  attr(div, "class", "image svelte-vojroc");
14479
- attr(div, "style", /*style*/ ctx[2]);
14534
+ attr(div, "style", /*style*/ ctx[3]);
14480
14535
  },
14481
14536
  m(target, anchor) {
14482
14537
  insert_hydration(target, div, anchor);
@@ -14492,12 +14547,16 @@ function create_fragment$2(ctx) {
14492
14547
  attr(img, "alt", img_alt_value);
14493
14548
  }
14494
14549
 
14495
- if (dirty & /*objectStyle*/ 2) {
14496
- attr(object, "style", /*objectStyle*/ ctx[1]);
14550
+ if (dirty & /*objectStyle*/ 4) {
14551
+ attr(object, "style", /*objectStyle*/ ctx[2]);
14497
14552
  }
14498
14553
 
14499
- if (dirty & /*style*/ 4) {
14500
- attr(div, "style", /*style*/ ctx[2]);
14554
+ if (dirty & /*layerId*/ 2) {
14555
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
14556
+ }
14557
+
14558
+ if (dirty & /*style*/ 8) {
14559
+ attr(div, "style", /*style*/ ctx[3]);
14501
14560
  }
14502
14561
  },
14503
14562
  i: noop,
@@ -14512,31 +14571,33 @@ function instance$2($$self, $$props, $$invalidate) {
14512
14571
  let style;
14513
14572
  let objectStyle;
14514
14573
  let { props = {} } = $$props;
14574
+ let { layerId = '' } = $$props;
14515
14575
 
14516
14576
  $$self.$$set = $$props => {
14517
14577
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
14578
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
14518
14579
  };
14519
14580
 
14520
14581
  $$self.$$.update = () => {
14521
14582
  if ($$self.$$.dirty & /*props*/ 1) {
14522
- $$invalidate(2, style = objToStyle({
14583
+ $$invalidate(3, style = objToStyle({
14523
14584
  width: props.width ?? '100%',
14524
14585
  ...toCssCommon(props)
14525
14586
  }));
14526
14587
  }
14527
14588
 
14528
14589
  if ($$self.$$.dirty & /*props*/ 1) {
14529
- $$invalidate(1, objectStyle = objToStyle({ aspectRatio: props.aspect }));
14590
+ $$invalidate(2, objectStyle = objToStyle({ aspectRatio: props.aspect }));
14530
14591
  }
14531
14592
  };
14532
14593
 
14533
- return [props, objectStyle, style];
14594
+ return [props, layerId, objectStyle, style];
14534
14595
  }
14535
14596
 
14536
14597
  class Image extends SvelteComponent {
14537
14598
  constructor(options) {
14538
14599
  super();
14539
- init(this, options, instance$2, create_fragment$2, safe_not_equal, { props: 0 }, add_css$2);
14600
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { props: 0, layerId: 1 }, add_css$2);
14540
14601
  }
14541
14602
  }
14542
14603
 
@@ -14549,8 +14610,8 @@ function add_css$1(target) {
14549
14610
  function create_fragment$1(ctx) {
14550
14611
  let div;
14551
14612
  let current;
14552
- const default_slot_template = /*#slots*/ ctx[3].default;
14553
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
14613
+ const default_slot_template = /*#slots*/ ctx[4].default;
14614
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
14554
14615
 
14555
14616
  return {
14556
14617
  c() {
@@ -14559,15 +14620,21 @@ function create_fragment$1(ctx) {
14559
14620
  this.h();
14560
14621
  },
14561
14622
  l(nodes) {
14562
- div = claim_element(nodes, "DIV", { class: true, style: true });
14623
+ div = claim_element(nodes, "DIV", {
14624
+ "data-layer-id": true,
14625
+ class: true,
14626
+ style: true
14627
+ });
14628
+
14563
14629
  var div_nodes = children(div);
14564
14630
  if (default_slot) default_slot.l(div_nodes);
14565
14631
  div_nodes.forEach(detach);
14566
14632
  this.h();
14567
14633
  },
14568
14634
  h() {
14635
+ attr(div, "data-layer-id", /*layerId*/ ctx[0]);
14569
14636
  attr(div, "class", "layout svelte-1g6q4hu");
14570
- attr(div, "style", /*style*/ ctx[0]);
14637
+ attr(div, "style", /*style*/ ctx[1]);
14571
14638
  },
14572
14639
  m(target, anchor) {
14573
14640
  insert_hydration(target, div, anchor);
@@ -14580,22 +14647,26 @@ function create_fragment$1(ctx) {
14580
14647
  },
14581
14648
  p(ctx, [dirty]) {
14582
14649
  if (default_slot) {
14583
- if (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {
14650
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 8)) {
14584
14651
  update_slot_base(
14585
14652
  default_slot,
14586
14653
  default_slot_template,
14587
14654
  ctx,
14588
- /*$$scope*/ ctx[2],
14655
+ /*$$scope*/ ctx[3],
14589
14656
  !current
14590
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[2])
14591
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[2], dirty, null),
14657
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[3])
14658
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, null),
14592
14659
  null
14593
14660
  );
14594
14661
  }
14595
14662
  }
14596
14663
 
14597
- if (!current || dirty & /*style*/ 1) {
14598
- attr(div, "style", /*style*/ ctx[0]);
14664
+ if (!current || dirty & /*layerId*/ 1) {
14665
+ attr(div, "data-layer-id", /*layerId*/ ctx[0]);
14666
+ }
14667
+
14668
+ if (!current || dirty & /*style*/ 2) {
14669
+ attr(div, "style", /*style*/ ctx[1]);
14599
14670
  }
14600
14671
  },
14601
14672
  i(local) {
@@ -14618,15 +14689,17 @@ function instance$1($$self, $$props, $$invalidate) {
14618
14689
  let style;
14619
14690
  let { $$slots: slots = {}, $$scope } = $$props;
14620
14691
  let { props = {} } = $$props;
14692
+ let { layerId = '' } = $$props;
14621
14693
 
14622
14694
  $$self.$$set = $$props => {
14623
- if ('props' in $$props) $$invalidate(1, props = $$props.props);
14624
- if ('$$scope' in $$props) $$invalidate(2, $$scope = $$props.$$scope);
14695
+ if ('props' in $$props) $$invalidate(2, props = $$props.props);
14696
+ if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
14697
+ if ('$$scope' in $$props) $$invalidate(3, $$scope = $$props.$$scope);
14625
14698
  };
14626
14699
 
14627
14700
  $$self.$$.update = () => {
14628
- if ($$self.$$.dirty & /*props*/ 2) {
14629
- $$invalidate(0, style = objToStyle({
14701
+ if ($$self.$$.dirty & /*props*/ 4) {
14702
+ $$invalidate(1, style = objToStyle({
14630
14703
  display: props.display ?? 'flex',
14631
14704
  flexDirection: props.direction,
14632
14705
  alignItems: props.align,
@@ -14645,13 +14718,13 @@ function instance$1($$self, $$props, $$invalidate) {
14645
14718
  }
14646
14719
  };
14647
14720
 
14648
- return [style, props, $$scope, slots];
14721
+ return [layerId, style, props, $$scope, slots];
14649
14722
  }
14650
14723
 
14651
14724
  class Layout extends SvelteComponent {
14652
14725
  constructor(options) {
14653
14726
  super();
14654
- init(this, options, instance$1, create_fragment$1, safe_not_equal, { props: 1 }, add_css$1);
14727
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, { props: 2, layerId: 0 }, add_css$1);
14655
14728
  }
14656
14729
  }
14657
14730
 
@@ -14675,23 +14748,33 @@ function create_fragment(ctx) {
14675
14748
  this.h();
14676
14749
  },
14677
14750
  l(nodes) {
14678
- p = claim_element(nodes, "P", { class: true, style: true });
14751
+ p = claim_element(nodes, "P", {
14752
+ "data-layer-id": true,
14753
+ class: true,
14754
+ style: true
14755
+ });
14756
+
14679
14757
  var p_nodes = children(p);
14680
14758
  p_nodes.forEach(detach);
14681
14759
  this.h();
14682
14760
  },
14683
14761
  h() {
14762
+ attr(p, "data-layer-id", /*layerId*/ ctx[0]);
14684
14763
  attr(p, "class", "text svelte-1vl0c87");
14685
- attr(p, "style", /*style*/ ctx[0]);
14764
+ attr(p, "style", /*style*/ ctx[1]);
14686
14765
  },
14687
14766
  m(target, anchor) {
14688
14767
  insert_hydration(target, p, anchor);
14689
- p.innerHTML = /*escapedHTML*/ ctx[1];
14768
+ p.innerHTML = /*escapedHTML*/ ctx[2];
14690
14769
  },
14691
14770
  p(ctx, [dirty]) {
14692
- if (dirty & /*escapedHTML*/ 2) p.innerHTML = /*escapedHTML*/ ctx[1];
14693
- if (dirty & /*style*/ 1) {
14694
- attr(p, "style", /*style*/ ctx[0]);
14771
+ if (dirty & /*escapedHTML*/ 4) p.innerHTML = /*escapedHTML*/ ctx[2];
14772
+ if (dirty & /*layerId*/ 1) {
14773
+ attr(p, "data-layer-id", /*layerId*/ ctx[0]);
14774
+ }
14775
+
14776
+ if (dirty & /*style*/ 2) {
14777
+ attr(p, "style", /*style*/ ctx[1]);
14695
14778
  }
14696
14779
  },
14697
14780
  i: noop,
@@ -14706,18 +14789,20 @@ function instance($$self, $$props, $$invalidate) {
14706
14789
  let escapedHTML;
14707
14790
  let style;
14708
14791
  let { props = { content: '' } } = $$props;
14792
+ let { layerId = '' } = $$props;
14709
14793
 
14710
14794
  $$self.$$set = $$props => {
14711
- if ('props' in $$props) $$invalidate(2, props = $$props.props);
14795
+ if ('props' in $$props) $$invalidate(3, props = $$props.props);
14796
+ if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
14712
14797
  };
14713
14798
 
14714
14799
  $$self.$$.update = () => {
14715
- if ($$self.$$.dirty & /*props*/ 4) {
14716
- $$invalidate(1, escapedHTML = props.content.replace(/&/g, '&lt;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\n/g, '<br />'));
14800
+ if ($$self.$$.dirty & /*props*/ 8) {
14801
+ $$invalidate(2, escapedHTML = props.content.replace(/&/g, '&lt;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\n/g, '<br />'));
14717
14802
  }
14718
14803
 
14719
- if ($$self.$$.dirty & /*props*/ 4) {
14720
- $$invalidate(0, style = objToStyle({
14804
+ if ($$self.$$.dirty & /*props*/ 8) {
14805
+ $$invalidate(1, style = objToStyle({
14721
14806
  position: props?.position ?? 'static',
14722
14807
  fontWeight: props.fontWeight,
14723
14808
  fontSize: props.fontSize,
@@ -14733,13 +14818,13 @@ function instance($$self, $$props, $$invalidate) {
14733
14818
  }
14734
14819
  };
14735
14820
 
14736
- return [style, escapedHTML, props];
14821
+ return [layerId, style, escapedHTML, props];
14737
14822
  }
14738
14823
 
14739
14824
  class Text extends SvelteComponent {
14740
14825
  constructor(options) {
14741
14826
  super();
14742
- init(this, options, instance, create_fragment, safe_not_equal, { props: 2 }, add_css);
14827
+ init(this, options, instance, create_fragment, safe_not_equal, { props: 3, layerId: 0 }, add_css);
14743
14828
  }
14744
14829
  }
14745
14830
 
package/dist/index.es.js CHANGED
@@ -11350,9 +11350,10 @@ function create_fragment$w(ctx) {
11350
11350
  img = element("img");
11351
11351
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
11352
11352
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
11353
- attr(img, "style", /*imgStyle*/ ctx[1]);
11353
+ attr(img, "style", /*imgStyle*/ ctx[2]);
11354
11354
  attr(div, "class", "avatar svelte-17xar9h");
11355
- attr(div, "style", /*style*/ ctx[2]);
11355
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
11356
+ attr(div, "style", /*style*/ ctx[3]);
11356
11357
  },
11357
11358
  m(target, anchor) {
11358
11359
  insert(target, div, anchor);
@@ -11367,12 +11368,16 @@ function create_fragment$w(ctx) {
11367
11368
  attr(img, "alt", img_alt_value);
11368
11369
  }
11369
11370
 
11370
- if (dirty & /*imgStyle*/ 2) {
11371
- attr(img, "style", /*imgStyle*/ ctx[1]);
11371
+ if (dirty & /*imgStyle*/ 4) {
11372
+ attr(img, "style", /*imgStyle*/ ctx[2]);
11373
+ }
11374
+
11375
+ if (dirty & /*layerId*/ 2) {
11376
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
11372
11377
  }
11373
11378
 
11374
- if (dirty & /*style*/ 4) {
11375
- attr(div, "style", /*style*/ ctx[2]);
11379
+ if (dirty & /*style*/ 8) {
11380
+ attr(div, "style", /*style*/ ctx[3]);
11376
11381
  }
11377
11382
  },
11378
11383
  i: noop,
@@ -11387,6 +11392,7 @@ function instance$w($$self, $$props, $$invalidate) {
11387
11392
  let style;
11388
11393
  let imgStyle;
11389
11394
  let { props = {} } = $$props;
11395
+ let { layerId = '' } = $$props;
11390
11396
 
11391
11397
  const VARIANTS = {
11392
11398
  shape: {
@@ -11399,11 +11405,12 @@ function instance$w($$self, $$props, $$invalidate) {
11399
11405
 
11400
11406
  $$self.$$set = $$props => {
11401
11407
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
11408
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
11402
11409
  };
11403
11410
 
11404
11411
  $$self.$$.update = () => {
11405
11412
  if ($$self.$$.dirty & /*props*/ 1) {
11406
- $$invalidate(2, style = objToStyle({
11413
+ $$invalidate(3, style = objToStyle({
11407
11414
  width: `${size}px`,
11408
11415
  height: `${size}px`,
11409
11416
  ...VARIANTS.shape[props.shape ?? 'square'],
@@ -11413,19 +11420,19 @@ function instance$w($$self, $$props, $$invalidate) {
11413
11420
  }
11414
11421
  };
11415
11422
 
11416
- $$invalidate(1, imgStyle = objToStyle({
11423
+ $$invalidate(2, imgStyle = objToStyle({
11417
11424
  width: '100%',
11418
11425
  height: '100%',
11419
11426
  objectFit: 'cover'
11420
11427
  }));
11421
11428
 
11422
- return [props, imgStyle, style];
11429
+ return [props, layerId, imgStyle, style];
11423
11430
  }
11424
11431
 
11425
11432
  class Avatar extends SvelteComponent {
11426
11433
  constructor(options) {
11427
11434
  super();
11428
- init(this, options, instance$w, create_fragment$w, safe_not_equal, { props: 0 }, add_css$6);
11435
+ init(this, options, instance$w, create_fragment$w, safe_not_equal, { props: 0, layerId: 1 }, add_css$6);
11429
11436
  }
11430
11437
  }
11431
11438
 
@@ -12855,12 +12862,12 @@ function add_css$5(target) {
12855
12862
  append_styles(target, "svelte-1mx2edd", ".icon.svelte-1mx2edd{display:inline-flex;align-items:center;overflow:hidden;width:auto}");
12856
12863
  }
12857
12864
 
12858
- // (14:0) {#if (IconComponent)}
12865
+ // (15:0) {#if (IconComponent)}
12859
12866
  function create_if_block$1(ctx) {
12860
12867
  let div;
12861
12868
  let switch_instance;
12862
12869
  let current;
12863
- var switch_value = /*IconComponent*/ ctx[1];
12870
+ var switch_value = /*IconComponent*/ ctx[2];
12864
12871
 
12865
12872
  function switch_props(ctx) {
12866
12873
  return {
@@ -12876,8 +12883,9 @@ function create_if_block$1(ctx) {
12876
12883
  c() {
12877
12884
  div = element("div");
12878
12885
  if (switch_instance) create_component(switch_instance.$$.fragment);
12886
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
12879
12887
  attr(div, "class", "icon svelte-1mx2edd");
12880
- attr(div, "style", /*style*/ ctx[2]);
12888
+ attr(div, "style", /*style*/ ctx[3]);
12881
12889
  },
12882
12890
  m(target, anchor) {
12883
12891
  insert(target, div, anchor);
@@ -12888,7 +12896,7 @@ function create_if_block$1(ctx) {
12888
12896
  const switch_instance_changes = {};
12889
12897
  if (dirty & /*props*/ 1) switch_instance_changes.color = /*props*/ ctx[0].color ?? '#333';
12890
12898
 
12891
- if (switch_value !== (switch_value = /*IconComponent*/ ctx[1])) {
12899
+ if (switch_value !== (switch_value = /*IconComponent*/ ctx[2])) {
12892
12900
  if (switch_instance) {
12893
12901
  group_outros();
12894
12902
  const old_component = switch_instance;
@@ -12912,8 +12920,12 @@ function create_if_block$1(ctx) {
12912
12920
  switch_instance.$set(switch_instance_changes);
12913
12921
  }
12914
12922
 
12915
- if (!current || dirty & /*style*/ 4) {
12916
- attr(div, "style", /*style*/ ctx[2]);
12923
+ if (!current || dirty & /*layerId*/ 2) {
12924
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
12925
+ }
12926
+
12927
+ if (!current || dirty & /*style*/ 8) {
12928
+ attr(div, "style", /*style*/ ctx[3]);
12917
12929
  }
12918
12930
  },
12919
12931
  i(local) {
@@ -12935,7 +12947,7 @@ function create_if_block$1(ctx) {
12935
12947
  function create_fragment$5(ctx) {
12936
12948
  let if_block_anchor;
12937
12949
  let current;
12938
- let if_block = /*IconComponent*/ ctx[1] && create_if_block$1(ctx);
12950
+ let if_block = /*IconComponent*/ ctx[2] && create_if_block$1(ctx);
12939
12951
 
12940
12952
  return {
12941
12953
  c() {
@@ -12948,11 +12960,11 @@ function create_fragment$5(ctx) {
12948
12960
  current = true;
12949
12961
  },
12950
12962
  p(ctx, [dirty]) {
12951
- if (/*IconComponent*/ ctx[1]) {
12963
+ if (/*IconComponent*/ ctx[2]) {
12952
12964
  if (if_block) {
12953
12965
  if_block.p(ctx, dirty);
12954
12966
 
12955
- if (dirty & /*IconComponent*/ 2) {
12967
+ if (dirty & /*IconComponent*/ 4) {
12956
12968
  transition_in(if_block, 1);
12957
12969
  }
12958
12970
  } else {
@@ -12991,14 +13003,16 @@ function instance$5($$self, $$props, $$invalidate) {
12991
13003
  let style;
12992
13004
  let IconComponent;
12993
13005
  let { props = {} } = $$props;
13006
+ let { layerId = '' } = $$props;
12994
13007
 
12995
13008
  $$self.$$set = $$props => {
12996
13009
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
13010
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
12997
13011
  };
12998
13012
 
12999
13013
  $$self.$$.update = () => {
13000
13014
  if ($$self.$$.dirty & /*props*/ 1) {
13001
- $$invalidate(2, style = objToStyle({
13015
+ $$invalidate(3, style = objToStyle({
13002
13016
  minWidth: props.size,
13003
13017
  width: props.size,
13004
13018
  height: props.size,
@@ -13007,17 +13021,17 @@ function instance$5($$self, $$props, $$invalidate) {
13007
13021
  }
13008
13022
 
13009
13023
  if ($$self.$$.dirty & /*props*/ 1) {
13010
- $$invalidate(1, IconComponent = ICON_VARIANTS[props.variant] ?? undefined);
13024
+ $$invalidate(2, IconComponent = ICON_VARIANTS[props.variant] ?? undefined);
13011
13025
  }
13012
13026
  };
13013
13027
 
13014
- return [props, IconComponent, style];
13028
+ return [props, layerId, IconComponent, style];
13015
13029
  }
13016
13030
 
13017
13031
  class Icon extends SvelteComponent {
13018
13032
  constructor(options) {
13019
13033
  super();
13020
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { props: 0 }, add_css$5);
13034
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { props: 0, layerId: 1 }, add_css$5);
13021
13035
  }
13022
13036
  }
13023
13037
 
@@ -13027,7 +13041,7 @@ function add_css$4(target) {
13027
13041
  append_styles(target, "svelte-kz1c6t", ".v2-button.svelte-kz1c6t{display:inline-flex;align-content:center;justify-content:center;gap:0.65em;cursor:pointer;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.v2-button-icon.svelte-kz1c6t{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
13028
13042
  }
13029
13043
 
13030
- // (126:2) {#if (props.isIcon && props.iconVariant)}
13044
+ // (127:2) {#if (props.isIcon && props.iconVariant)}
13031
13045
  function create_if_block(ctx) {
13032
13046
  let div;
13033
13047
  let icon;
@@ -13038,7 +13052,7 @@ function create_if_block(ctx) {
13038
13052
  props: {
13039
13053
  variant: /*props*/ ctx[0].iconVariant,
13040
13054
  size: '1em',
13041
- color: /*VARIANTS*/ ctx[2].color[/*props*/ ctx[0].color ?? 'default'].color
13055
+ color: /*VARIANTS*/ ctx[3].color[/*props*/ ctx[0].color ?? 'default'].color
13042
13056
  }
13043
13057
  }
13044
13058
  });
@@ -13060,7 +13074,7 @@ function create_if_block(ctx) {
13060
13074
  if (dirty & /*props*/ 1) icon_changes.props = {
13061
13075
  variant: /*props*/ ctx[0].iconVariant,
13062
13076
  size: '1em',
13063
- color: /*VARIANTS*/ ctx[2].color[/*props*/ ctx[0].color ?? 'default'].color
13077
+ color: /*VARIANTS*/ ctx[3].color[/*props*/ ctx[0].color ?? 'default'].color
13064
13078
  };
13065
13079
 
13066
13080
  icon.$set(icon_changes);
@@ -13099,7 +13113,8 @@ function create_fragment$4(ctx) {
13099
13113
  t0 = space();
13100
13114
  span = element("span");
13101
13115
  t1 = text(t1_value);
13102
- attr(button, "style", /*style*/ ctx[1]);
13116
+ attr(button, "data-layer-id", /*layerId*/ ctx[1]);
13117
+ attr(button, "style", /*style*/ ctx[2]);
13103
13118
  attr(button, "class", "v2-button svelte-kz1c6t");
13104
13119
  },
13105
13120
  m(target, anchor) {
@@ -13111,7 +13126,7 @@ function create_fragment$4(ctx) {
13111
13126
  current = true;
13112
13127
 
13113
13128
  if (!mounted) {
13114
- dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[3]));
13129
+ dispose = listen(button, "click", checkStopPropagation('click', /*handleClick*/ ctx[4]));
13115
13130
  mounted = true;
13116
13131
  }
13117
13132
  },
@@ -13141,8 +13156,12 @@ function create_fragment$4(ctx) {
13141
13156
 
13142
13157
  if ((!current || dirty & /*props*/ 1) && t1_value !== (t1_value = /*props*/ ctx[0].label + "")) set_data(t1, t1_value);
13143
13158
 
13144
- if (!current || dirty & /*style*/ 2) {
13145
- attr(button, "style", /*style*/ ctx[1]);
13159
+ if (!current || dirty & /*layerId*/ 2) {
13160
+ attr(button, "data-layer-id", /*layerId*/ ctx[1]);
13161
+ }
13162
+
13163
+ if (!current || dirty & /*style*/ 4) {
13164
+ attr(button, "style", /*style*/ ctx[2]);
13146
13165
  }
13147
13166
  },
13148
13167
  i(local) {
@@ -13169,6 +13188,7 @@ function instance$4($$self, $$props, $$invalidate) {
13169
13188
  let { eventName = '' } = $$props;
13170
13189
  let { eventValue = undefined } = $$props;
13171
13190
  let { props = {} } = $$props;
13191
+ let { layerId = '' } = $$props;
13172
13192
 
13173
13193
  const VARIANTS = {
13174
13194
  size: {
@@ -13258,15 +13278,16 @@ function instance$4($$self, $$props, $$invalidate) {
13258
13278
  }
13259
13279
 
13260
13280
  $$self.$$set = $$props => {
13261
- if ('onClick' in $$props) $$invalidate(4, onClick = $$props.onClick);
13262
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
13263
- if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
13281
+ if ('onClick' in $$props) $$invalidate(5, onClick = $$props.onClick);
13282
+ if ('eventName' in $$props) $$invalidate(6, eventName = $$props.eventName);
13283
+ if ('eventValue' in $$props) $$invalidate(7, eventValue = $$props.eventValue);
13264
13284
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
13285
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
13265
13286
  };
13266
13287
 
13267
13288
  $$self.$$.update = () => {
13268
13289
  if ($$self.$$.dirty & /*props*/ 1) {
13269
- $$invalidate(1, style = objToStyle({
13290
+ $$invalidate(2, style = objToStyle({
13270
13291
  display: 'inline-flex',
13271
13292
  gap: '0.65em',
13272
13293
  alignItems: 'center',
@@ -13287,7 +13308,7 @@ function instance$4($$self, $$props, $$invalidate) {
13287
13308
  }
13288
13309
  };
13289
13310
 
13290
- return [props, style, VARIANTS, handleClick, onClick, eventName, eventValue];
13311
+ return [props, layerId, style, VARIANTS, handleClick, onClick, eventName, eventValue];
13291
13312
  }
13292
13313
 
13293
13314
  class Button extends SvelteComponent {
@@ -13301,10 +13322,11 @@ class Button extends SvelteComponent {
13301
13322
  create_fragment$4,
13302
13323
  safe_not_equal,
13303
13324
  {
13304
- onClick: 4,
13305
- eventName: 5,
13306
- eventValue: 6,
13307
- props: 0
13325
+ onClick: 5,
13326
+ eventName: 6,
13327
+ eventValue: 7,
13328
+ props: 0,
13329
+ layerId: 1
13308
13330
  },
13309
13331
  add_css$4
13310
13332
  );
@@ -13360,8 +13382,9 @@ function create_fragment$3(ctx) {
13360
13382
  set_style(svg, "height", "75%");
13361
13383
  attr(svg, "viewBox", "0 0 50 50");
13362
13384
  attr(svg, "fill", "#666666");
13385
+ attr(button, "data-layer-id", /*layerId*/ ctx[0]);
13363
13386
  attr(button, "class", "close-button svelte-1dgpo5m");
13364
- attr(button, "style", /*style*/ ctx[0]);
13387
+ attr(button, "style", /*style*/ ctx[1]);
13365
13388
  },
13366
13389
  m(target, anchor) {
13367
13390
  insert(target, button, anchor);
@@ -13369,8 +13392,12 @@ function create_fragment$3(ctx) {
13369
13392
  append(svg, path);
13370
13393
  },
13371
13394
  p(ctx, [dirty]) {
13372
- if (dirty & /*style*/ 1) {
13373
- attr(button, "style", /*style*/ ctx[0]);
13395
+ if (dirty & /*layerId*/ 1) {
13396
+ attr(button, "data-layer-id", /*layerId*/ ctx[0]);
13397
+ }
13398
+
13399
+ if (dirty & /*style*/ 2) {
13400
+ attr(button, "style", /*style*/ ctx[1]);
13374
13401
  }
13375
13402
  },
13376
13403
  i: noop,
@@ -13384,15 +13411,17 @@ function create_fragment$3(ctx) {
13384
13411
  function instance$3($$self, $$props, $$invalidate) {
13385
13412
  let style;
13386
13413
  let { props = {} } = $$props;
13414
+ let { layerId = '' } = $$props;
13387
13415
  const size = props.size ?? 24;
13388
13416
 
13389
13417
  $$self.$$set = $$props => {
13390
- if ('props' in $$props) $$invalidate(1, props = $$props.props);
13418
+ if ('props' in $$props) $$invalidate(2, props = $$props.props);
13419
+ if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
13391
13420
  };
13392
13421
 
13393
13422
  $$self.$$.update = () => {
13394
- if ($$self.$$.dirty & /*props*/ 2) {
13395
- $$invalidate(0, style = objToStyle({
13423
+ if ($$self.$$.dirty & /*props*/ 4) {
13424
+ $$invalidate(1, style = objToStyle({
13396
13425
  width: `${size}px`,
13397
13426
  height: `${size}px`,
13398
13427
  ...props.bordered && { border: '1px solid #666' },
@@ -13401,13 +13430,13 @@ function instance$3($$self, $$props, $$invalidate) {
13401
13430
  }
13402
13431
  };
13403
13432
 
13404
- return [style, props];
13433
+ return [layerId, style, props];
13405
13434
  }
13406
13435
 
13407
13436
  class CloseButton extends SvelteComponent {
13408
13437
  constructor(options) {
13409
13438
  super();
13410
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { props: 1 }, add_css$3);
13439
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { props: 2, layerId: 0 }, add_css$3);
13411
13440
  }
13412
13441
  }
13413
13442
 
@@ -13432,10 +13461,11 @@ function create_fragment$2(ctx) {
13432
13461
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
13433
13462
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
13434
13463
  attr(img, "class", "image-img svelte-vojroc");
13435
- attr(object, "style", /*objectStyle*/ ctx[1]);
13464
+ attr(object, "style", /*objectStyle*/ ctx[2]);
13436
13465
  attr(object, "class", "image-object svelte-vojroc");
13466
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
13437
13467
  attr(div, "class", "image svelte-vojroc");
13438
- attr(div, "style", /*style*/ ctx[2]);
13468
+ attr(div, "style", /*style*/ ctx[3]);
13439
13469
  },
13440
13470
  m(target, anchor) {
13441
13471
  insert(target, div, anchor);
@@ -13451,12 +13481,16 @@ function create_fragment$2(ctx) {
13451
13481
  attr(img, "alt", img_alt_value);
13452
13482
  }
13453
13483
 
13454
- if (dirty & /*objectStyle*/ 2) {
13455
- attr(object, "style", /*objectStyle*/ ctx[1]);
13484
+ if (dirty & /*objectStyle*/ 4) {
13485
+ attr(object, "style", /*objectStyle*/ ctx[2]);
13456
13486
  }
13457
13487
 
13458
- if (dirty & /*style*/ 4) {
13459
- attr(div, "style", /*style*/ ctx[2]);
13488
+ if (dirty & /*layerId*/ 2) {
13489
+ attr(div, "data-layer-id", /*layerId*/ ctx[1]);
13490
+ }
13491
+
13492
+ if (dirty & /*style*/ 8) {
13493
+ attr(div, "style", /*style*/ ctx[3]);
13460
13494
  }
13461
13495
  },
13462
13496
  i: noop,
@@ -13471,31 +13505,33 @@ function instance$2($$self, $$props, $$invalidate) {
13471
13505
  let style;
13472
13506
  let objectStyle;
13473
13507
  let { props = {} } = $$props;
13508
+ let { layerId = '' } = $$props;
13474
13509
 
13475
13510
  $$self.$$set = $$props => {
13476
13511
  if ('props' in $$props) $$invalidate(0, props = $$props.props);
13512
+ if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
13477
13513
  };
13478
13514
 
13479
13515
  $$self.$$.update = () => {
13480
13516
  if ($$self.$$.dirty & /*props*/ 1) {
13481
- $$invalidate(2, style = objToStyle({
13517
+ $$invalidate(3, style = objToStyle({
13482
13518
  width: props.width ?? '100%',
13483
13519
  ...toCssCommon(props)
13484
13520
  }));
13485
13521
  }
13486
13522
 
13487
13523
  if ($$self.$$.dirty & /*props*/ 1) {
13488
- $$invalidate(1, objectStyle = objToStyle({ aspectRatio: props.aspect }));
13524
+ $$invalidate(2, objectStyle = objToStyle({ aspectRatio: props.aspect }));
13489
13525
  }
13490
13526
  };
13491
13527
 
13492
- return [props, objectStyle, style];
13528
+ return [props, layerId, objectStyle, style];
13493
13529
  }
13494
13530
 
13495
13531
  class Image extends SvelteComponent {
13496
13532
  constructor(options) {
13497
13533
  super();
13498
- init(this, options, instance$2, create_fragment$2, safe_not_equal, { props: 0 }, add_css$2);
13534
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { props: 0, layerId: 1 }, add_css$2);
13499
13535
  }
13500
13536
  }
13501
13537
 
@@ -13508,15 +13544,16 @@ function add_css$1(target) {
13508
13544
  function create_fragment$1(ctx) {
13509
13545
  let div;
13510
13546
  let current;
13511
- const default_slot_template = /*#slots*/ ctx[3].default;
13512
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
13547
+ const default_slot_template = /*#slots*/ ctx[4].default;
13548
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
13513
13549
 
13514
13550
  return {
13515
13551
  c() {
13516
13552
  div = element("div");
13517
13553
  if (default_slot) default_slot.c();
13554
+ attr(div, "data-layer-id", /*layerId*/ ctx[0]);
13518
13555
  attr(div, "class", "layout svelte-1g6q4hu");
13519
- attr(div, "style", /*style*/ ctx[0]);
13556
+ attr(div, "style", /*style*/ ctx[1]);
13520
13557
  },
13521
13558
  m(target, anchor) {
13522
13559
  insert(target, div, anchor);
@@ -13529,22 +13566,26 @@ function create_fragment$1(ctx) {
13529
13566
  },
13530
13567
  p(ctx, [dirty]) {
13531
13568
  if (default_slot) {
13532
- if (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {
13569
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 8)) {
13533
13570
  update_slot_base(
13534
13571
  default_slot,
13535
13572
  default_slot_template,
13536
13573
  ctx,
13537
- /*$$scope*/ ctx[2],
13574
+ /*$$scope*/ ctx[3],
13538
13575
  !current
13539
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[2])
13540
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[2], dirty, null),
13576
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[3])
13577
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, null),
13541
13578
  null
13542
13579
  );
13543
13580
  }
13544
13581
  }
13545
13582
 
13546
- if (!current || dirty & /*style*/ 1) {
13547
- attr(div, "style", /*style*/ ctx[0]);
13583
+ if (!current || dirty & /*layerId*/ 1) {
13584
+ attr(div, "data-layer-id", /*layerId*/ ctx[0]);
13585
+ }
13586
+
13587
+ if (!current || dirty & /*style*/ 2) {
13588
+ attr(div, "style", /*style*/ ctx[1]);
13548
13589
  }
13549
13590
  },
13550
13591
  i(local) {
@@ -13567,15 +13608,17 @@ function instance$1($$self, $$props, $$invalidate) {
13567
13608
  let style;
13568
13609
  let { $$slots: slots = {}, $$scope } = $$props;
13569
13610
  let { props = {} } = $$props;
13611
+ let { layerId = '' } = $$props;
13570
13612
 
13571
13613
  $$self.$$set = $$props => {
13572
- if ('props' in $$props) $$invalidate(1, props = $$props.props);
13573
- if ('$$scope' in $$props) $$invalidate(2, $$scope = $$props.$$scope);
13614
+ if ('props' in $$props) $$invalidate(2, props = $$props.props);
13615
+ if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
13616
+ if ('$$scope' in $$props) $$invalidate(3, $$scope = $$props.$$scope);
13574
13617
  };
13575
13618
 
13576
13619
  $$self.$$.update = () => {
13577
- if ($$self.$$.dirty & /*props*/ 2) {
13578
- $$invalidate(0, style = objToStyle({
13620
+ if ($$self.$$.dirty & /*props*/ 4) {
13621
+ $$invalidate(1, style = objToStyle({
13579
13622
  display: props.display ?? 'flex',
13580
13623
  flexDirection: props.direction,
13581
13624
  alignItems: props.align,
@@ -13594,13 +13637,13 @@ function instance$1($$self, $$props, $$invalidate) {
13594
13637
  }
13595
13638
  };
13596
13639
 
13597
- return [style, props, $$scope, slots];
13640
+ return [layerId, style, props, $$scope, slots];
13598
13641
  }
13599
13642
 
13600
13643
  class Layout extends SvelteComponent {
13601
13644
  constructor(options) {
13602
13645
  super();
13603
- init(this, options, instance$1, create_fragment$1, safe_not_equal, { props: 1 }, add_css$1);
13646
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, { props: 2, layerId: 0 }, add_css$1);
13604
13647
  }
13605
13648
  }
13606
13649
 
@@ -13621,17 +13664,22 @@ function create_fragment(ctx) {
13621
13664
  return {
13622
13665
  c() {
13623
13666
  p = element("p");
13667
+ attr(p, "data-layer-id", /*layerId*/ ctx[0]);
13624
13668
  attr(p, "class", "text svelte-1vl0c87");
13625
- attr(p, "style", /*style*/ ctx[0]);
13669
+ attr(p, "style", /*style*/ ctx[1]);
13626
13670
  },
13627
13671
  m(target, anchor) {
13628
13672
  insert(target, p, anchor);
13629
- p.innerHTML = /*escapedHTML*/ ctx[1];
13673
+ p.innerHTML = /*escapedHTML*/ ctx[2];
13630
13674
  },
13631
13675
  p(ctx, [dirty]) {
13632
- if (dirty & /*escapedHTML*/ 2) p.innerHTML = /*escapedHTML*/ ctx[1];
13633
- if (dirty & /*style*/ 1) {
13634
- attr(p, "style", /*style*/ ctx[0]);
13676
+ if (dirty & /*escapedHTML*/ 4) p.innerHTML = /*escapedHTML*/ ctx[2];
13677
+ if (dirty & /*layerId*/ 1) {
13678
+ attr(p, "data-layer-id", /*layerId*/ ctx[0]);
13679
+ }
13680
+
13681
+ if (dirty & /*style*/ 2) {
13682
+ attr(p, "style", /*style*/ ctx[1]);
13635
13683
  }
13636
13684
  },
13637
13685
  i: noop,
@@ -13646,18 +13694,20 @@ function instance($$self, $$props, $$invalidate) {
13646
13694
  let escapedHTML;
13647
13695
  let style;
13648
13696
  let { props = { content: '' } } = $$props;
13697
+ let { layerId = '' } = $$props;
13649
13698
 
13650
13699
  $$self.$$set = $$props => {
13651
- if ('props' in $$props) $$invalidate(2, props = $$props.props);
13700
+ if ('props' in $$props) $$invalidate(3, props = $$props.props);
13701
+ if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
13652
13702
  };
13653
13703
 
13654
13704
  $$self.$$.update = () => {
13655
- if ($$self.$$.dirty & /*props*/ 4) {
13656
- $$invalidate(1, escapedHTML = props.content.replace(/&/g, '&lt;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\n/g, '<br />'));
13705
+ if ($$self.$$.dirty & /*props*/ 8) {
13706
+ $$invalidate(2, escapedHTML = props.content.replace(/&/g, '&lt;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#x27;').replace(/\n/g, '<br />'));
13657
13707
  }
13658
13708
 
13659
- if ($$self.$$.dirty & /*props*/ 4) {
13660
- $$invalidate(0, style = objToStyle({
13709
+ if ($$self.$$.dirty & /*props*/ 8) {
13710
+ $$invalidate(1, style = objToStyle({
13661
13711
  position: props?.position ?? 'static',
13662
13712
  fontWeight: props.fontWeight,
13663
13713
  fontSize: props.fontSize,
@@ -13673,13 +13723,13 @@ function instance($$self, $$props, $$invalidate) {
13673
13723
  }
13674
13724
  };
13675
13725
 
13676
- return [style, escapedHTML, props];
13726
+ return [layerId, style, escapedHTML, props];
13677
13727
  }
13678
13728
 
13679
13729
  class Text extends SvelteComponent {
13680
13730
  constructor(options) {
13681
13731
  super();
13682
- init(this, options, instance, create_fragment, safe_not_equal, { props: 2 }, add_css);
13732
+ init(this, options, instance, create_fragment, safe_not_equal, { props: 3, layerId: 0 }, add_css);
13683
13733
  }
13684
13734
  }
13685
13735
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.232-28663591.feead91d",
3
+ "version": "1.1.232-28684891.17fd688b",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",