@plaidev/karte-action-sdk 1.1.270-29365389.cc95ce9c2 → 1.1.270-29379017.f453cc451
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/dist/hydrate/index.es.js +13 -32
- package/dist/index.es.js +13 -32
- package/dist/svelte5/hydrate/index.es.js +8 -26
- package/dist/svelte5/index.es.js +8 -26
- package/dist/svelte5/index.front2.es.js +8 -26
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
|
@@ -16713,8 +16713,8 @@ function add_css$20(target) {
|
|
|
16713
16713
|
}
|
|
16714
16714
|
function get_each_context$4(ctx, list, i) {
|
|
16715
16715
|
const child_ctx = ctx.slice();
|
|
16716
|
-
child_ctx[
|
|
16717
|
-
child_ctx[
|
|
16716
|
+
child_ctx[37] = list[i];
|
|
16717
|
+
child_ctx[39] = i;
|
|
16718
16718
|
return child_ctx;
|
|
16719
16719
|
}
|
|
16720
16720
|
function create_if_block$12(ctx) {
|
|
@@ -16774,7 +16774,7 @@ function create_each_block$4(ctx) {
|
|
|
16774
16774
|
let mounted;
|
|
16775
16775
|
let dispose;
|
|
16776
16776
|
function click_handler() {
|
|
16777
|
-
return ctx[23](ctx[
|
|
16777
|
+
return ctx[23](ctx[39]);
|
|
16778
16778
|
}
|
|
16779
16779
|
return {
|
|
16780
16780
|
c() {
|
|
@@ -16795,7 +16795,7 @@ function create_each_block$4(ctx) {
|
|
|
16795
16795
|
h() {
|
|
16796
16796
|
attr(i_1, "style", i_1_style_value = objToStyle({
|
|
16797
16797
|
...ctx[5],
|
|
16798
|
-
background: ctx[
|
|
16798
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
16799
16799
|
}));
|
|
16800
16800
|
attr(button, "style", objToStyle({
|
|
16801
16801
|
padding: "4px",
|
|
@@ -16816,7 +16816,7 @@ function create_each_block$4(ctx) {
|
|
|
16816
16816
|
ctx = new_ctx;
|
|
16817
16817
|
if (dirty[0] & 288 && i_1_style_value !== (i_1_style_value = objToStyle({
|
|
16818
16818
|
...ctx[5],
|
|
16819
|
-
background: ctx[
|
|
16819
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
16820
16820
|
}))) attr(i_1, "style", i_1_style_value);
|
|
16821
16821
|
},
|
|
16822
16822
|
d(detaching) {
|
|
@@ -16988,20 +16988,9 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
16988
16988
|
e.stopPropagation();
|
|
16989
16989
|
}
|
|
16990
16990
|
};
|
|
16991
|
-
const disableChildrenClick = () => {
|
|
16992
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
16993
|
-
child.style.pointerEvents = "none";
|
|
16994
|
-
});
|
|
16995
|
-
};
|
|
16996
|
-
const enableChildrenClick = () => {
|
|
16997
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
16998
|
-
child.style.pointerEvents = void 0;
|
|
16999
|
-
});
|
|
17000
|
-
};
|
|
17001
16991
|
const move = (moved) => {
|
|
17002
16992
|
$$invalidate(12, movedX = moved);
|
|
17003
16993
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
17004
|
-
disableChildrenClick();
|
|
17005
16994
|
};
|
|
17006
16995
|
const handleTouchmove = (e) => {
|
|
17007
16996
|
const now = performance.now();
|
|
@@ -17019,9 +17008,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
17019
17008
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
17020
17009
|
document.removeEventListener("touchend", handleTouchend);
|
|
17021
17010
|
document.removeEventListener("click", handleClick);
|
|
17022
|
-
setTimeout(() => {
|
|
17023
|
-
enableChildrenClick();
|
|
17024
|
-
}, 100);
|
|
17025
17011
|
};
|
|
17026
17012
|
const handleTouchstart = (e) => {
|
|
17027
17013
|
startX = e.touches[0].clientX;
|
|
@@ -17044,9 +17030,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
17044
17030
|
document.removeEventListener("mousemove", handleMousemove);
|
|
17045
17031
|
document.removeEventListener("mouseup", handleMouseup);
|
|
17046
17032
|
document.removeEventListener("click", handleClick);
|
|
17047
|
-
setTimeout(() => {
|
|
17048
|
-
enableChildrenClick();
|
|
17049
|
-
}, 100);
|
|
17050
17033
|
};
|
|
17051
17034
|
const handleMousedown = (e) => {
|
|
17052
17035
|
startX = e.clientX;
|
|
@@ -17517,7 +17500,7 @@ function create_fragment$27(ctx) {
|
|
|
17517
17500
|
let t;
|
|
17518
17501
|
let if_block_anchor;
|
|
17519
17502
|
let current;
|
|
17520
|
-
styleportal = new StylePortal_default({ props: { cssText: ctx[
|
|
17503
|
+
styleportal = new StylePortal_default({ props: { cssText: ctx[4] } });
|
|
17521
17504
|
let if_block = !ctx[1].hidden && create_if_block$11(ctx);
|
|
17522
17505
|
return {
|
|
17523
17506
|
c() {
|
|
@@ -17571,30 +17554,28 @@ function create_fragment$27(ctx) {
|
|
|
17571
17554
|
function instance$27($$self, $$props, $$invalidate) {
|
|
17572
17555
|
let rProps;
|
|
17573
17556
|
let escapedHTML;
|
|
17574
|
-
let $
|
|
17557
|
+
let $rProps, $$unsubscribe_rProps = noop, $$subscribe_rProps = () => ($$unsubscribe_rProps(), $$unsubscribe_rProps = subscribe(rProps, ($$value) => $$invalidate(1, $rProps = $$value)), rProps);
|
|
17558
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_rProps());
|
|
17575
17559
|
let { props = { content: "" } } = $$props;
|
|
17576
17560
|
let { layerId = crypto.randomUUID() } = $$props;
|
|
17577
17561
|
useInjectCustomizeCss(props, layerId);
|
|
17578
17562
|
const { brandKit } = useBrandKit();
|
|
17579
17563
|
const cssCode = Text_css_default(layerId, props, brandKit);
|
|
17580
|
-
const responsiveProps = useResponsiveProps(props);
|
|
17581
|
-
component_subscribe($$self, responsiveProps, (value) => $$invalidate(6, $responsiveProps = value));
|
|
17582
17564
|
$$self.$$set = ($$props$1) => {
|
|
17583
17565
|
if ("props" in $$props$1) $$invalidate(5, props = $$props$1.props);
|
|
17584
17566
|
if ("layerId" in $$props$1) $$invalidate(0, layerId = $$props$1.layerId);
|
|
17585
17567
|
};
|
|
17586
17568
|
$$self.$$.update = () => {
|
|
17587
|
-
if ($$self.$$.dirty &
|
|
17588
|
-
if ($$self.$$.dirty & 34) $: $$invalidate(2, escapedHTML = (rProps.content || props.content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
17569
|
+
if ($$self.$$.dirty & 32) $: $$subscribe_rProps($$invalidate(3, rProps = useResponsiveProps(props)));
|
|
17570
|
+
if ($$self.$$.dirty & 34) $: $$invalidate(2, escapedHTML = ($rProps.content || props.content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
17589
17571
|
};
|
|
17590
17572
|
return [
|
|
17591
17573
|
layerId,
|
|
17592
|
-
rProps,
|
|
17574
|
+
$rProps,
|
|
17593
17575
|
escapedHTML,
|
|
17576
|
+
rProps,
|
|
17594
17577
|
cssCode,
|
|
17595
|
-
|
|
17596
|
-
props,
|
|
17597
|
-
$responsiveProps
|
|
17578
|
+
props
|
|
17598
17579
|
];
|
|
17599
17580
|
}
|
|
17600
17581
|
var Text = class extends SvelteComponent {
|
package/dist/index.es.js
CHANGED
|
@@ -14966,8 +14966,8 @@ function add_css$20(target) {
|
|
|
14966
14966
|
}
|
|
14967
14967
|
function get_each_context$4(ctx, list, i) {
|
|
14968
14968
|
const child_ctx = ctx.slice();
|
|
14969
|
-
child_ctx[
|
|
14970
|
-
child_ctx[
|
|
14969
|
+
child_ctx[37] = list[i];
|
|
14970
|
+
child_ctx[39] = i;
|
|
14971
14971
|
return child_ctx;
|
|
14972
14972
|
}
|
|
14973
14973
|
function create_if_block$12(ctx) {
|
|
@@ -15017,7 +15017,7 @@ function create_each_block$4(ctx) {
|
|
|
15017
15017
|
let mounted;
|
|
15018
15018
|
let dispose;
|
|
15019
15019
|
function click_handler() {
|
|
15020
|
-
return ctx[23](ctx[
|
|
15020
|
+
return ctx[23](ctx[39]);
|
|
15021
15021
|
}
|
|
15022
15022
|
return {
|
|
15023
15023
|
c() {
|
|
@@ -15026,7 +15026,7 @@ function create_each_block$4(ctx) {
|
|
|
15026
15026
|
t = space();
|
|
15027
15027
|
attr(i_1, "style", i_1_style_value = objToStyle({
|
|
15028
15028
|
...ctx[5],
|
|
15029
|
-
background: ctx[
|
|
15029
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
15030
15030
|
}));
|
|
15031
15031
|
attr(button, "style", objToStyle({
|
|
15032
15032
|
padding: "4px",
|
|
@@ -15047,7 +15047,7 @@ function create_each_block$4(ctx) {
|
|
|
15047
15047
|
ctx = new_ctx;
|
|
15048
15048
|
if (dirty[0] & 288 && i_1_style_value !== (i_1_style_value = objToStyle({
|
|
15049
15049
|
...ctx[5],
|
|
15050
|
-
background: ctx[
|
|
15050
|
+
background: ctx[37].isActive ? "#555555" : "#AAAAAA"
|
|
15051
15051
|
}))) attr(i_1, "style", i_1_style_value);
|
|
15052
15052
|
},
|
|
15053
15053
|
d(detaching) {
|
|
@@ -15194,20 +15194,9 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
15194
15194
|
e.stopPropagation();
|
|
15195
15195
|
}
|
|
15196
15196
|
};
|
|
15197
|
-
const disableChildrenClick = () => {
|
|
15198
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
15199
|
-
child.style.pointerEvents = "none";
|
|
15200
|
-
});
|
|
15201
|
-
};
|
|
15202
|
-
const enableChildrenClick = () => {
|
|
15203
|
-
if (slotElement) Array.from(slotElement.children ?? []).forEach((child) => {
|
|
15204
|
-
child.style.pointerEvents = void 0;
|
|
15205
|
-
});
|
|
15206
|
-
};
|
|
15207
15197
|
const move = (moved) => {
|
|
15208
15198
|
$$invalidate(12, movedX = moved);
|
|
15209
15199
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
15210
|
-
disableChildrenClick();
|
|
15211
15200
|
};
|
|
15212
15201
|
const handleTouchmove = (e) => {
|
|
15213
15202
|
const now = performance.now();
|
|
@@ -15225,9 +15214,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
15225
15214
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
15226
15215
|
document.removeEventListener("touchend", handleTouchend);
|
|
15227
15216
|
document.removeEventListener("click", handleClick);
|
|
15228
|
-
setTimeout(() => {
|
|
15229
|
-
enableChildrenClick();
|
|
15230
|
-
}, 100);
|
|
15231
15217
|
};
|
|
15232
15218
|
const handleTouchstart = (e) => {
|
|
15233
15219
|
startX = e.touches[0].clientX;
|
|
@@ -15250,9 +15236,6 @@ function instance$29($$self, $$props, $$invalidate) {
|
|
|
15250
15236
|
document.removeEventListener("mousemove", handleMousemove);
|
|
15251
15237
|
document.removeEventListener("mouseup", handleMouseup);
|
|
15252
15238
|
document.removeEventListener("click", handleClick);
|
|
15253
|
-
setTimeout(() => {
|
|
15254
|
-
enableChildrenClick();
|
|
15255
|
-
}, 100);
|
|
15256
15239
|
};
|
|
15257
15240
|
const handleMousedown = (e) => {
|
|
15258
15241
|
startX = e.clientX;
|
|
@@ -15687,7 +15670,7 @@ function create_fragment$27(ctx) {
|
|
|
15687
15670
|
let t;
|
|
15688
15671
|
let if_block_anchor;
|
|
15689
15672
|
let current;
|
|
15690
|
-
styleportal = new StylePortal_default({ props: { cssText: ctx[
|
|
15673
|
+
styleportal = new StylePortal_default({ props: { cssText: ctx[4] } });
|
|
15691
15674
|
let if_block = !ctx[1].hidden && create_if_block$11(ctx);
|
|
15692
15675
|
return {
|
|
15693
15676
|
c() {
|
|
@@ -15735,30 +15718,28 @@ function create_fragment$27(ctx) {
|
|
|
15735
15718
|
function instance$27($$self, $$props, $$invalidate) {
|
|
15736
15719
|
let rProps;
|
|
15737
15720
|
let escapedHTML;
|
|
15738
|
-
let $
|
|
15721
|
+
let $rProps, $$unsubscribe_rProps = noop, $$subscribe_rProps = () => ($$unsubscribe_rProps(), $$unsubscribe_rProps = subscribe(rProps, ($$value) => $$invalidate(1, $rProps = $$value)), rProps);
|
|
15722
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_rProps());
|
|
15739
15723
|
let { props = { content: "" } } = $$props;
|
|
15740
15724
|
let { layerId = crypto.randomUUID() } = $$props;
|
|
15741
15725
|
useInjectCustomizeCss(props, layerId);
|
|
15742
15726
|
const { brandKit } = useBrandKit();
|
|
15743
15727
|
const cssCode = Text_css_default(layerId, props, brandKit);
|
|
15744
|
-
const responsiveProps = useResponsiveProps(props);
|
|
15745
|
-
component_subscribe($$self, responsiveProps, (value) => $$invalidate(6, $responsiveProps = value));
|
|
15746
15728
|
$$self.$$set = ($$props$1) => {
|
|
15747
15729
|
if ("props" in $$props$1) $$invalidate(5, props = $$props$1.props);
|
|
15748
15730
|
if ("layerId" in $$props$1) $$invalidate(0, layerId = $$props$1.layerId);
|
|
15749
15731
|
};
|
|
15750
15732
|
$$self.$$.update = () => {
|
|
15751
|
-
if ($$self.$$.dirty &
|
|
15752
|
-
if ($$self.$$.dirty & 34) $: $$invalidate(2, escapedHTML = (rProps.content || props.content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
15733
|
+
if ($$self.$$.dirty & 32) $: $$subscribe_rProps($$invalidate(3, rProps = useResponsiveProps(props)));
|
|
15734
|
+
if ($$self.$$.dirty & 34) $: $$invalidate(2, escapedHTML = ($rProps.content || props.content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
15753
15735
|
};
|
|
15754
15736
|
return [
|
|
15755
15737
|
layerId,
|
|
15756
|
-
rProps,
|
|
15738
|
+
$rProps,
|
|
15757
15739
|
escapedHTML,
|
|
15740
|
+
rProps,
|
|
15758
15741
|
cssCode,
|
|
15759
|
-
|
|
15760
|
-
props,
|
|
15761
|
-
$responsiveProps
|
|
15742
|
+
props
|
|
15762
15743
|
];
|
|
15763
15744
|
}
|
|
15764
15745
|
var Text = class extends SvelteComponent {
|
|
@@ -6194,20 +6194,9 @@ function Slider($$anchor, $$props) {
|
|
|
6194
6194
|
e.stopPropagation();
|
|
6195
6195
|
}
|
|
6196
6196
|
};
|
|
6197
|
-
const disableChildrenClick = () => {
|
|
6198
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6199
|
-
child.style.pointerEvents = "none";
|
|
6200
|
-
});
|
|
6201
|
-
};
|
|
6202
|
-
const enableChildrenClick = () => {
|
|
6203
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6204
|
-
child.style.pointerEvents = void 0;
|
|
6205
|
-
});
|
|
6206
|
-
};
|
|
6207
6197
|
const move = (moved) => {
|
|
6208
6198
|
$.set(movedX, moved);
|
|
6209
6199
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6210
|
-
disableChildrenClick();
|
|
6211
6200
|
};
|
|
6212
6201
|
const handleTouchmove = (e) => {
|
|
6213
6202
|
const now = performance.now();
|
|
@@ -6225,9 +6214,6 @@ function Slider($$anchor, $$props) {
|
|
|
6225
6214
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
6226
6215
|
document.removeEventListener("touchend", handleTouchend);
|
|
6227
6216
|
document.removeEventListener("click", handleClick);
|
|
6228
|
-
setTimeout(() => {
|
|
6229
|
-
enableChildrenClick();
|
|
6230
|
-
}, 100);
|
|
6231
6217
|
};
|
|
6232
6218
|
const handleTouchstart = (e) => {
|
|
6233
6219
|
startX = e.touches[0].clientX;
|
|
@@ -6250,9 +6236,6 @@ function Slider($$anchor, $$props) {
|
|
|
6250
6236
|
document.removeEventListener("mousemove", handleMousemove);
|
|
6251
6237
|
document.removeEventListener("mouseup", handleMouseup);
|
|
6252
6238
|
document.removeEventListener("click", handleClick);
|
|
6253
|
-
setTimeout(() => {
|
|
6254
|
-
enableChildrenClick();
|
|
6255
|
-
}, 100);
|
|
6256
6239
|
};
|
|
6257
6240
|
const handleMousedown = (e) => {
|
|
6258
6241
|
startX = e.clientX;
|
|
@@ -6563,7 +6546,7 @@ var root$15 = $.template(`<!> <!>`, 1);
|
|
|
6563
6546
|
function Text($$anchor, $$props) {
|
|
6564
6547
|
$.push($$props, false);
|
|
6565
6548
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6566
|
-
const $
|
|
6549
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6567
6550
|
const rProps = $.mutable_state();
|
|
6568
6551
|
const escapedHTML = $.mutable_state();
|
|
6569
6552
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
@@ -6571,12 +6554,11 @@ function Text($$anchor, $$props) {
|
|
|
6571
6554
|
useInjectCustomizeCss(props(), layerId());
|
|
6572
6555
|
const { brandKit } = useBrandKit();
|
|
6573
6556
|
const cssCode = Text_css_default(layerId(), props(), brandKit);
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
$.set(rProps, $responsiveProps());
|
|
6557
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6558
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6577
6559
|
});
|
|
6578
|
-
$.legacy_pre_effect(() => (
|
|
6579
|
-
$.set(escapedHTML, (
|
|
6560
|
+
$.legacy_pre_effect(() => ($rProps(), $.deep_read_state(props())), () => {
|
|
6561
|
+
$.set(escapedHTML, ($rProps().content || props().content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
6580
6562
|
});
|
|
6581
6563
|
$.legacy_pre_effect_reset();
|
|
6582
6564
|
$.init();
|
|
@@ -6591,13 +6573,13 @@ function Text($$anchor, $$props) {
|
|
|
6591
6573
|
$.reset(p);
|
|
6592
6574
|
$.template_effect(($0) => {
|
|
6593
6575
|
$.set_class(p, 1, $0);
|
|
6594
|
-
$.set_attribute(p, "id",
|
|
6576
|
+
$.set_attribute(p, "id", $rProps().id);
|
|
6595
6577
|
$.set_attribute(p, "data-layer-id", layerId());
|
|
6596
|
-
}, [() => $.clsx(["text",
|
|
6578
|
+
}, [() => $.clsx(["text", ...$rProps().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6597
6579
|
$.append($$anchor$1, p);
|
|
6598
6580
|
};
|
|
6599
6581
|
$.if(node_1, ($$render) => {
|
|
6600
|
-
if (
|
|
6582
|
+
if (!$rProps().hidden) $$render(consequent);
|
|
6601
6583
|
});
|
|
6602
6584
|
$.append($$anchor, fragment);
|
|
6603
6585
|
$.pop();
|
package/dist/svelte5/index.es.js
CHANGED
|
@@ -6163,20 +6163,9 @@ function Slider($$anchor, $$props) {
|
|
|
6163
6163
|
e.stopPropagation();
|
|
6164
6164
|
}
|
|
6165
6165
|
};
|
|
6166
|
-
const disableChildrenClick = () => {
|
|
6167
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6168
|
-
child.style.pointerEvents = "none";
|
|
6169
|
-
});
|
|
6170
|
-
};
|
|
6171
|
-
const enableChildrenClick = () => {
|
|
6172
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6173
|
-
child.style.pointerEvents = void 0;
|
|
6174
|
-
});
|
|
6175
|
-
};
|
|
6176
6166
|
const move = (moved) => {
|
|
6177
6167
|
$.set(movedX, moved);
|
|
6178
6168
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6179
|
-
disableChildrenClick();
|
|
6180
6169
|
};
|
|
6181
6170
|
const handleTouchmove = (e) => {
|
|
6182
6171
|
const now = performance.now();
|
|
@@ -6194,9 +6183,6 @@ function Slider($$anchor, $$props) {
|
|
|
6194
6183
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
6195
6184
|
document.removeEventListener("touchend", handleTouchend);
|
|
6196
6185
|
document.removeEventListener("click", handleClick);
|
|
6197
|
-
setTimeout(() => {
|
|
6198
|
-
enableChildrenClick();
|
|
6199
|
-
}, 100);
|
|
6200
6186
|
};
|
|
6201
6187
|
const handleTouchstart = (e) => {
|
|
6202
6188
|
startX = e.touches[0].clientX;
|
|
@@ -6219,9 +6205,6 @@ function Slider($$anchor, $$props) {
|
|
|
6219
6205
|
document.removeEventListener("mousemove", handleMousemove);
|
|
6220
6206
|
document.removeEventListener("mouseup", handleMouseup);
|
|
6221
6207
|
document.removeEventListener("click", handleClick);
|
|
6222
|
-
setTimeout(() => {
|
|
6223
|
-
enableChildrenClick();
|
|
6224
|
-
}, 100);
|
|
6225
6208
|
};
|
|
6226
6209
|
const handleMousedown = (e) => {
|
|
6227
6210
|
startX = e.clientX;
|
|
@@ -6532,7 +6515,7 @@ var root$15 = $.template(`<!> <!>`, 1);
|
|
|
6532
6515
|
function Text($$anchor, $$props) {
|
|
6533
6516
|
$.push($$props, false);
|
|
6534
6517
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6535
|
-
const $
|
|
6518
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6536
6519
|
const rProps = $.mutable_state();
|
|
6537
6520
|
const escapedHTML = $.mutable_state();
|
|
6538
6521
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
@@ -6540,12 +6523,11 @@ function Text($$anchor, $$props) {
|
|
|
6540
6523
|
useInjectCustomizeCss(props(), layerId());
|
|
6541
6524
|
const { brandKit } = useBrandKit();
|
|
6542
6525
|
const cssCode = Text_css_default(layerId(), props(), brandKit);
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
$.set(rProps, $responsiveProps());
|
|
6526
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6527
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6546
6528
|
});
|
|
6547
|
-
$.legacy_pre_effect(() => (
|
|
6548
|
-
$.set(escapedHTML, (
|
|
6529
|
+
$.legacy_pre_effect(() => ($rProps(), $.deep_read_state(props())), () => {
|
|
6530
|
+
$.set(escapedHTML, ($rProps().content || props().content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
6549
6531
|
});
|
|
6550
6532
|
$.legacy_pre_effect_reset();
|
|
6551
6533
|
$.init();
|
|
@@ -6560,13 +6542,13 @@ function Text($$anchor, $$props) {
|
|
|
6560
6542
|
$.reset(p);
|
|
6561
6543
|
$.template_effect(($0) => {
|
|
6562
6544
|
$.set_class(p, 1, $0);
|
|
6563
|
-
$.set_attribute(p, "id",
|
|
6545
|
+
$.set_attribute(p, "id", $rProps().id);
|
|
6564
6546
|
$.set_attribute(p, "data-layer-id", layerId());
|
|
6565
|
-
}, [() => $.clsx(["text",
|
|
6547
|
+
}, [() => $.clsx(["text", ...$rProps().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6566
6548
|
$.append($$anchor$1, p);
|
|
6567
6549
|
};
|
|
6568
6550
|
$.if(node_1, ($$render) => {
|
|
6569
|
-
if (
|
|
6551
|
+
if (!$rProps().hidden) $$render(consequent);
|
|
6570
6552
|
});
|
|
6571
6553
|
$.append($$anchor, fragment);
|
|
6572
6554
|
$.pop();
|
|
@@ -6163,20 +6163,9 @@ function Slider($$anchor, $$props) {
|
|
|
6163
6163
|
e.stopPropagation();
|
|
6164
6164
|
}
|
|
6165
6165
|
};
|
|
6166
|
-
const disableChildrenClick = () => {
|
|
6167
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6168
|
-
child.style.pointerEvents = "none";
|
|
6169
|
-
});
|
|
6170
|
-
};
|
|
6171
|
-
const enableChildrenClick = () => {
|
|
6172
|
-
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6173
|
-
child.style.pointerEvents = void 0;
|
|
6174
|
-
});
|
|
6175
|
-
};
|
|
6176
6166
|
const move = (moved) => {
|
|
6177
6167
|
$.set(movedX, moved);
|
|
6178
6168
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6179
|
-
disableChildrenClick();
|
|
6180
6169
|
};
|
|
6181
6170
|
const handleTouchmove = (e) => {
|
|
6182
6171
|
const now = performance.now();
|
|
@@ -6194,9 +6183,6 @@ function Slider($$anchor, $$props) {
|
|
|
6194
6183
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
6195
6184
|
document.removeEventListener("touchend", handleTouchend);
|
|
6196
6185
|
document.removeEventListener("click", handleClick);
|
|
6197
|
-
setTimeout(() => {
|
|
6198
|
-
enableChildrenClick();
|
|
6199
|
-
}, 100);
|
|
6200
6186
|
};
|
|
6201
6187
|
const handleTouchstart = (e) => {
|
|
6202
6188
|
startX = e.touches[0].clientX;
|
|
@@ -6219,9 +6205,6 @@ function Slider($$anchor, $$props) {
|
|
|
6219
6205
|
document.removeEventListener("mousemove", handleMousemove);
|
|
6220
6206
|
document.removeEventListener("mouseup", handleMouseup);
|
|
6221
6207
|
document.removeEventListener("click", handleClick);
|
|
6222
|
-
setTimeout(() => {
|
|
6223
|
-
enableChildrenClick();
|
|
6224
|
-
}, 100);
|
|
6225
6208
|
};
|
|
6226
6209
|
const handleMousedown = (e) => {
|
|
6227
6210
|
startX = e.clientX;
|
|
@@ -6532,7 +6515,7 @@ var root$15 = $.template(`<!> <!>`, 1);
|
|
|
6532
6515
|
function Text($$anchor, $$props) {
|
|
6533
6516
|
$.push($$props, false);
|
|
6534
6517
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6535
|
-
const $
|
|
6518
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6536
6519
|
const rProps = $.mutable_state();
|
|
6537
6520
|
const escapedHTML = $.mutable_state();
|
|
6538
6521
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
@@ -6540,12 +6523,11 @@ function Text($$anchor, $$props) {
|
|
|
6540
6523
|
useInjectCustomizeCss(props(), layerId());
|
|
6541
6524
|
const { brandKit } = useBrandKit();
|
|
6542
6525
|
const cssCode = Text_css_default(layerId(), props(), brandKit);
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
$.set(rProps, $responsiveProps());
|
|
6526
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6527
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6546
6528
|
});
|
|
6547
|
-
$.legacy_pre_effect(() => (
|
|
6548
|
-
$.set(escapedHTML, (
|
|
6529
|
+
$.legacy_pre_effect(() => ($rProps(), $.deep_read_state(props())), () => {
|
|
6530
|
+
$.set(escapedHTML, ($rProps().content || props().content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
6549
6531
|
});
|
|
6550
6532
|
$.legacy_pre_effect_reset();
|
|
6551
6533
|
$.init();
|
|
@@ -6560,13 +6542,13 @@ function Text($$anchor, $$props) {
|
|
|
6560
6542
|
$.reset(p);
|
|
6561
6543
|
$.template_effect(($0) => {
|
|
6562
6544
|
$.set_class(p, 1, $0);
|
|
6563
|
-
$.set_attribute(p, "id",
|
|
6545
|
+
$.set_attribute(p, "id", $rProps().id);
|
|
6564
6546
|
$.set_attribute(p, "data-layer-id", layerId());
|
|
6565
|
-
}, [() => $.clsx(["text",
|
|
6547
|
+
}, [() => $.clsx(["text", ...$rProps().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6566
6548
|
$.append($$anchor$1, p);
|
|
6567
6549
|
};
|
|
6568
6550
|
$.if(node_1, ($$render) => {
|
|
6569
|
-
if (
|
|
6551
|
+
if (!$rProps().hidden) $$render(consequent);
|
|
6570
6552
|
});
|
|
6571
6553
|
$.append($$anchor, fragment);
|
|
6572
6554
|
$.pop();
|