@builder.io/sdk-solid 4.0.7 → 4.0.8
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/lib/browser/dev.js +10 -2
- package/lib/browser/dev.jsx +43 -25
- package/lib/browser/index.js +10 -2
- package/lib/browser/index.jsx +43 -25
- package/lib/edge/dev.js +10 -2
- package/lib/edge/dev.jsx +43 -25
- package/lib/edge/index.js +10 -2
- package/lib/edge/index.jsx +43 -25
- package/lib/node/dev.js +10 -2
- package/lib/node/dev.jsx +43 -25
- package/lib/node/index.js +10 -2
- package/lib/node/index.jsx +43 -25
- package/package.json +1 -1
package/lib/node/dev.jsx
CHANGED
|
@@ -1373,15 +1373,15 @@ var Block_wrapper_default = BlockWrapper;
|
|
|
1373
1373
|
import {
|
|
1374
1374
|
Show as Show4,
|
|
1375
1375
|
For,
|
|
1376
|
-
on,
|
|
1377
|
-
createEffect,
|
|
1376
|
+
on as on2,
|
|
1377
|
+
createEffect as createEffect2,
|
|
1378
1378
|
createMemo as createMemo3,
|
|
1379
1379
|
createSignal as createSignal3
|
|
1380
1380
|
} from "solid-js";
|
|
1381
1381
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
1382
1382
|
|
|
1383
1383
|
// src/components/block/components/interactive-element.tsx
|
|
1384
|
-
import { Show as Show3, createMemo as createMemo2 } from "solid-js";
|
|
1384
|
+
import { Show as Show3, on, createEffect, createMemo as createMemo2, createSignal as createSignal2 } from "solid-js";
|
|
1385
1385
|
import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
1386
1386
|
|
|
1387
1387
|
// src/components/awaiter.tsx
|
|
@@ -1395,6 +1395,7 @@ var Awaiter_default = Awaiter;
|
|
|
1395
1395
|
|
|
1396
1396
|
// src/components/block/components/interactive-element.tsx
|
|
1397
1397
|
function InteractiveElement(props) {
|
|
1398
|
+
const [forceRenderCount, setForceRenderCount] = createSignal2(0);
|
|
1398
1399
|
const attributes = createMemo2(() => {
|
|
1399
1400
|
return props.includeBlockProps ? {
|
|
1400
1401
|
...getBlockProperties({
|
|
@@ -1413,6 +1414,21 @@ function InteractiveElement(props) {
|
|
|
1413
1414
|
const targetWrapperProps = createMemo2(() => {
|
|
1414
1415
|
return props.wrapperProps;
|
|
1415
1416
|
});
|
|
1417
|
+
const onUpdateFn_0_props_wrapperProps = createMemo2(() => props.wrapperProps);
|
|
1418
|
+
const onUpdateFn_0_props_block__component__options = createMemo2(
|
|
1419
|
+
() => props.block?.component?.options
|
|
1420
|
+
);
|
|
1421
|
+
function onUpdateFn_0() {
|
|
1422
|
+
}
|
|
1423
|
+
createEffect(
|
|
1424
|
+
on(
|
|
1425
|
+
() => [
|
|
1426
|
+
onUpdateFn_0_props_wrapperProps(),
|
|
1427
|
+
onUpdateFn_0_props_block__component__options()
|
|
1428
|
+
],
|
|
1429
|
+
onUpdateFn_0
|
|
1430
|
+
)
|
|
1431
|
+
);
|
|
1416
1432
|
return <><Show3
|
|
1417
1433
|
fallback={<Dynamic2
|
|
1418
1434
|
{...targetWrapperProps()}
|
|
@@ -1476,8 +1492,8 @@ function ComponentRef(props) {
|
|
|
1476
1492
|
);
|
|
1477
1493
|
function onUpdateFn_0() {
|
|
1478
1494
|
}
|
|
1479
|
-
|
|
1480
|
-
|
|
1495
|
+
createEffect2(
|
|
1496
|
+
on2(
|
|
1481
1497
|
() => [
|
|
1482
1498
|
onUpdateFn_0_props_componentOptions(),
|
|
1483
1499
|
onUpdateFn_0_props_blockChildren()
|
|
@@ -1511,7 +1527,7 @@ function ComponentRef(props) {
|
|
|
1511
1527
|
var Component_ref_default = ComponentRef;
|
|
1512
1528
|
|
|
1513
1529
|
// src/components/block/components/repeated-block.tsx
|
|
1514
|
-
import { on as
|
|
1530
|
+
import { on as on3, createEffect as createEffect3, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
|
|
1515
1531
|
function RepeatedBlock(props) {
|
|
1516
1532
|
const [store, setStore] = createSignal4(props.repeatContext);
|
|
1517
1533
|
const onUpdateFn_0_props_repeatContext = createMemo4(
|
|
@@ -1520,7 +1536,7 @@ function RepeatedBlock(props) {
|
|
|
1520
1536
|
function onUpdateFn_0() {
|
|
1521
1537
|
setStore(props.repeatContext);
|
|
1522
1538
|
}
|
|
1523
|
-
|
|
1539
|
+
createEffect3(on3(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
|
|
1524
1540
|
return <><builder_context_default.Provider value={store()}><Block_default
|
|
1525
1541
|
block={props.block}
|
|
1526
1542
|
context={store()}
|
|
@@ -1689,7 +1705,7 @@ function Block(props) {
|
|
|
1689
1705
|
var Block_default = Block;
|
|
1690
1706
|
|
|
1691
1707
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1692
|
-
import { onMount as onMount3, on as
|
|
1708
|
+
import { onMount as onMount3, on as on5, createEffect as createEffect5, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1693
1709
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1694
1710
|
function BlocksWrapper(props) {
|
|
1695
1711
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1742,7 +1758,7 @@ function BlocksWrapper(props) {
|
|
|
1742
1758
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1743
1759
|
function onUpdateFn_0() {
|
|
1744
1760
|
}
|
|
1745
|
-
|
|
1761
|
+
createEffect5(on5(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1746
1762
|
return <>
|
|
1747
1763
|
<Dynamic4
|
|
1748
1764
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -2134,7 +2150,7 @@ function SectionComponent(props) {
|
|
|
2134
2150
|
var section_default = SectionComponent;
|
|
2135
2151
|
|
|
2136
2152
|
// src/blocks/symbol/symbol.tsx
|
|
2137
|
-
import { onMount as onMount10, on as
|
|
2153
|
+
import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
2138
2154
|
|
|
2139
2155
|
// src/components/content-variants/content-variants.tsx
|
|
2140
2156
|
import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -3847,7 +3863,7 @@ var componentInfo12 = {
|
|
|
3847
3863
|
};
|
|
3848
3864
|
|
|
3849
3865
|
// src/blocks/custom-code/custom-code.tsx
|
|
3850
|
-
import { onMount as onMount6, on as
|
|
3866
|
+
import { onMount as onMount6, on as on6, createEffect as createEffect6, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3851
3867
|
function CustomCode(props) {
|
|
3852
3868
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3853
3869
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3897,7 +3913,7 @@ function CustomCode(props) {
|
|
|
3897
3913
|
runScripts();
|
|
3898
3914
|
}
|
|
3899
3915
|
}
|
|
3900
|
-
|
|
3916
|
+
createEffect6(on6(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3901
3917
|
return <><div
|
|
3902
3918
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3903
3919
|
ref={elementRef}
|
|
@@ -3925,7 +3941,7 @@ var componentInfo13 = {
|
|
|
3925
3941
|
};
|
|
3926
3942
|
|
|
3927
3943
|
// src/blocks/embed/embed.tsx
|
|
3928
|
-
import { on as
|
|
3944
|
+
import { on as on7, createEffect as createEffect7, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3929
3945
|
|
|
3930
3946
|
// src/blocks/embed/helpers.ts
|
|
3931
3947
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3967,8 +3983,8 @@ function Embed(props) {
|
|
|
3967
3983
|
findAndRunScripts();
|
|
3968
3984
|
}
|
|
3969
3985
|
}
|
|
3970
|
-
|
|
3971
|
-
|
|
3986
|
+
createEffect7(
|
|
3987
|
+
on7(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3972
3988
|
);
|
|
3973
3989
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3974
3990
|
}
|
|
@@ -5060,8 +5076,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
5060
5076
|
import {
|
|
5061
5077
|
Show as Show14,
|
|
5062
5078
|
onMount as onMount8,
|
|
5063
|
-
on as
|
|
5064
|
-
createEffect as
|
|
5079
|
+
on as on8,
|
|
5080
|
+
createEffect as createEffect8,
|
|
5065
5081
|
createMemo as createMemo16,
|
|
5066
5082
|
createSignal as createSignal16
|
|
5067
5083
|
} from "solid-js";
|
|
@@ -5073,7 +5089,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5073
5089
|
}
|
|
5074
5090
|
|
|
5075
5091
|
// src/constants/sdk-version.ts
|
|
5076
|
-
var SDK_VERSION = "4.0.
|
|
5092
|
+
var SDK_VERSION = "4.0.8";
|
|
5077
5093
|
|
|
5078
5094
|
// src/helpers/sdk-headers.ts
|
|
5079
5095
|
var getSdkHeaders = () => ({
|
|
@@ -6165,15 +6181,15 @@ function EnableEditor(props) {
|
|
|
6165
6181
|
mergeNewContent(props.content);
|
|
6166
6182
|
}
|
|
6167
6183
|
}
|
|
6168
|
-
|
|
6184
|
+
createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
6169
6185
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
6170
6186
|
() => props.builderContextSignal.rootState
|
|
6171
6187
|
);
|
|
6172
6188
|
function onUpdateFn_1() {
|
|
6173
6189
|
emitStateUpdate();
|
|
6174
6190
|
}
|
|
6175
|
-
|
|
6176
|
-
|
|
6191
|
+
createEffect8(
|
|
6192
|
+
on8(
|
|
6177
6193
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
6178
6194
|
onUpdateFn_1
|
|
6179
6195
|
)
|
|
@@ -6184,7 +6200,7 @@ function EnableEditor(props) {
|
|
|
6184
6200
|
mergeNewRootState(props.data);
|
|
6185
6201
|
}
|
|
6186
6202
|
}
|
|
6187
|
-
|
|
6203
|
+
createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
6188
6204
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
6189
6205
|
function onUpdateFn_3() {
|
|
6190
6206
|
if (props.locale) {
|
|
@@ -6193,7 +6209,7 @@ function EnableEditor(props) {
|
|
|
6193
6209
|
});
|
|
6194
6210
|
}
|
|
6195
6211
|
}
|
|
6196
|
-
|
|
6212
|
+
createEffect8(on8(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
6197
6213
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
6198
6214
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
6199
6215
|
><Dynamic5
|
|
@@ -6539,6 +6555,7 @@ var fetchSymbolContent = async ({
|
|
|
6539
6555
|
// src/blocks/symbol/symbol.tsx
|
|
6540
6556
|
function Symbol(props) {
|
|
6541
6557
|
const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
|
|
6558
|
+
const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
|
|
6542
6559
|
const blocksWrapper = createMemo20(() => {
|
|
6543
6560
|
return "div";
|
|
6544
6561
|
});
|
|
@@ -6554,7 +6571,7 @@ function Symbol(props) {
|
|
|
6554
6571
|
].filter(Boolean).join(" ");
|
|
6555
6572
|
});
|
|
6556
6573
|
function setContent() {
|
|
6557
|
-
if (contentToUse())
|
|
6574
|
+
if (contentToUse() && symbolEntry() === props.symbol?.entry)
|
|
6558
6575
|
return;
|
|
6559
6576
|
fetchSymbolContent({
|
|
6560
6577
|
symbol: props.symbol,
|
|
@@ -6562,6 +6579,7 @@ function Symbol(props) {
|
|
|
6562
6579
|
}).then((newContent) => {
|
|
6563
6580
|
if (newContent) {
|
|
6564
6581
|
setContentToUse(newContent);
|
|
6582
|
+
setSymbolEntry(props.symbol?.entry);
|
|
6565
6583
|
}
|
|
6566
6584
|
});
|
|
6567
6585
|
}
|
|
@@ -6571,7 +6589,7 @@ function Symbol(props) {
|
|
|
6571
6589
|
function onUpdateFn_0() {
|
|
6572
6590
|
setContent();
|
|
6573
6591
|
}
|
|
6574
|
-
|
|
6592
|
+
createEffect9(on9(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6575
6593
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6576
6594
|
nonce={props.builderContext.nonce}
|
|
6577
6595
|
isNestedRender={true}
|
package/lib/node/index.js
CHANGED
|
@@ -1378,6 +1378,7 @@ var awaiter_default = Awaiter;
|
|
|
1378
1378
|
|
|
1379
1379
|
// src/components/block/components/interactive-element.tsx
|
|
1380
1380
|
function InteractiveElement(props) {
|
|
1381
|
+
createSignal(0);
|
|
1381
1382
|
const attributes = createMemo(() => {
|
|
1382
1383
|
return props.includeBlockProps ? {
|
|
1383
1384
|
...getBlockProperties({
|
|
@@ -1396,6 +1397,11 @@ function InteractiveElement(props) {
|
|
|
1396
1397
|
const targetWrapperProps = createMemo(() => {
|
|
1397
1398
|
return props.wrapperProps;
|
|
1398
1399
|
});
|
|
1400
|
+
const onUpdateFn_0_props_wrapperProps = createMemo(() => props.wrapperProps);
|
|
1401
|
+
const onUpdateFn_0_props_block__component__options = createMemo(() => props.block?.component?.options);
|
|
1402
|
+
function onUpdateFn_0() {
|
|
1403
|
+
}
|
|
1404
|
+
createEffect(on(() => [onUpdateFn_0_props_wrapperProps(), onUpdateFn_0_props_block__component__options()], onUpdateFn_0));
|
|
1399
1405
|
return createComponent(Show, {
|
|
1400
1406
|
get fallback() {
|
|
1401
1407
|
return createComponent(Dynamic, mergeProps(targetWrapperProps, {
|
|
@@ -5533,7 +5539,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5533
5539
|
}
|
|
5534
5540
|
|
|
5535
5541
|
// src/constants/sdk-version.ts
|
|
5536
|
-
var SDK_VERSION = "4.0.
|
|
5542
|
+
var SDK_VERSION = "4.0.8";
|
|
5537
5543
|
|
|
5538
5544
|
// src/helpers/sdk-headers.ts
|
|
5539
5545
|
var getSdkHeaders = () => ({
|
|
@@ -7148,6 +7154,7 @@ var fetchSymbolContent = async ({
|
|
|
7148
7154
|
var _tmpl$30 = /* @__PURE__ */ template(`<div>`);
|
|
7149
7155
|
function Symbol(props) {
|
|
7150
7156
|
const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
|
|
7157
|
+
const [symbolEntry, setSymbolEntry] = createSignal(props.symbol?.entry);
|
|
7151
7158
|
const blocksWrapper = createMemo(() => {
|
|
7152
7159
|
return "div";
|
|
7153
7160
|
});
|
|
@@ -7158,7 +7165,7 @@ function Symbol(props) {
|
|
|
7158
7165
|
return [...[props.attributes[getClassPropName()]], "builder-symbol", props.symbol?.inline ? "builder-inline-symbol" : void 0, props.symbol?.dynamic || props.dynamic ? "builder-dynamic-symbol" : void 0].filter(Boolean).join(" ");
|
|
7159
7166
|
});
|
|
7160
7167
|
function setContent() {
|
|
7161
|
-
if (contentToUse())
|
|
7168
|
+
if (contentToUse() && symbolEntry() === props.symbol?.entry)
|
|
7162
7169
|
return;
|
|
7163
7170
|
fetchSymbolContent({
|
|
7164
7171
|
symbol: props.symbol,
|
|
@@ -7166,6 +7173,7 @@ function Symbol(props) {
|
|
|
7166
7173
|
}).then((newContent) => {
|
|
7167
7174
|
if (newContent) {
|
|
7168
7175
|
setContentToUse(newContent);
|
|
7176
|
+
setSymbolEntry(props.symbol?.entry);
|
|
7169
7177
|
}
|
|
7170
7178
|
});
|
|
7171
7179
|
}
|
package/lib/node/index.jsx
CHANGED
|
@@ -1366,15 +1366,15 @@ var Block_wrapper_default = BlockWrapper;
|
|
|
1366
1366
|
import {
|
|
1367
1367
|
Show as Show4,
|
|
1368
1368
|
For,
|
|
1369
|
-
on,
|
|
1370
|
-
createEffect,
|
|
1369
|
+
on as on2,
|
|
1370
|
+
createEffect as createEffect2,
|
|
1371
1371
|
createMemo as createMemo3,
|
|
1372
1372
|
createSignal as createSignal3
|
|
1373
1373
|
} from "solid-js";
|
|
1374
1374
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
1375
1375
|
|
|
1376
1376
|
// src/components/block/components/interactive-element.tsx
|
|
1377
|
-
import { Show as Show3, createMemo as createMemo2 } from "solid-js";
|
|
1377
|
+
import { Show as Show3, on, createEffect, createMemo as createMemo2, createSignal as createSignal2 } from "solid-js";
|
|
1378
1378
|
import { Dynamic as Dynamic2 } from "solid-js/web";
|
|
1379
1379
|
|
|
1380
1380
|
// src/components/awaiter.tsx
|
|
@@ -1388,6 +1388,7 @@ var Awaiter_default = Awaiter;
|
|
|
1388
1388
|
|
|
1389
1389
|
// src/components/block/components/interactive-element.tsx
|
|
1390
1390
|
function InteractiveElement(props) {
|
|
1391
|
+
const [forceRenderCount, setForceRenderCount] = createSignal2(0);
|
|
1391
1392
|
const attributes = createMemo2(() => {
|
|
1392
1393
|
return props.includeBlockProps ? {
|
|
1393
1394
|
...getBlockProperties({
|
|
@@ -1406,6 +1407,21 @@ function InteractiveElement(props) {
|
|
|
1406
1407
|
const targetWrapperProps = createMemo2(() => {
|
|
1407
1408
|
return props.wrapperProps;
|
|
1408
1409
|
});
|
|
1410
|
+
const onUpdateFn_0_props_wrapperProps = createMemo2(() => props.wrapperProps);
|
|
1411
|
+
const onUpdateFn_0_props_block__component__options = createMemo2(
|
|
1412
|
+
() => props.block?.component?.options
|
|
1413
|
+
);
|
|
1414
|
+
function onUpdateFn_0() {
|
|
1415
|
+
}
|
|
1416
|
+
createEffect(
|
|
1417
|
+
on(
|
|
1418
|
+
() => [
|
|
1419
|
+
onUpdateFn_0_props_wrapperProps(),
|
|
1420
|
+
onUpdateFn_0_props_block__component__options()
|
|
1421
|
+
],
|
|
1422
|
+
onUpdateFn_0
|
|
1423
|
+
)
|
|
1424
|
+
);
|
|
1409
1425
|
return <><Show3
|
|
1410
1426
|
fallback={<Dynamic2
|
|
1411
1427
|
{...targetWrapperProps()}
|
|
@@ -1469,8 +1485,8 @@ function ComponentRef(props) {
|
|
|
1469
1485
|
);
|
|
1470
1486
|
function onUpdateFn_0() {
|
|
1471
1487
|
}
|
|
1472
|
-
|
|
1473
|
-
|
|
1488
|
+
createEffect2(
|
|
1489
|
+
on2(
|
|
1474
1490
|
() => [
|
|
1475
1491
|
onUpdateFn_0_props_componentOptions(),
|
|
1476
1492
|
onUpdateFn_0_props_blockChildren()
|
|
@@ -1504,7 +1520,7 @@ function ComponentRef(props) {
|
|
|
1504
1520
|
var Component_ref_default = ComponentRef;
|
|
1505
1521
|
|
|
1506
1522
|
// src/components/block/components/repeated-block.tsx
|
|
1507
|
-
import { on as
|
|
1523
|
+
import { on as on3, createEffect as createEffect3, createMemo as createMemo4, createSignal as createSignal4 } from "solid-js";
|
|
1508
1524
|
function RepeatedBlock(props) {
|
|
1509
1525
|
const [store, setStore] = createSignal4(props.repeatContext);
|
|
1510
1526
|
const onUpdateFn_0_props_repeatContext = createMemo4(
|
|
@@ -1513,7 +1529,7 @@ function RepeatedBlock(props) {
|
|
|
1513
1529
|
function onUpdateFn_0() {
|
|
1514
1530
|
setStore(props.repeatContext);
|
|
1515
1531
|
}
|
|
1516
|
-
|
|
1532
|
+
createEffect3(on3(() => [onUpdateFn_0_props_repeatContext()], onUpdateFn_0));
|
|
1517
1533
|
return <><builder_context_default.Provider value={store()}><Block_default
|
|
1518
1534
|
block={props.block}
|
|
1519
1535
|
context={store()}
|
|
@@ -1682,7 +1698,7 @@ function Block(props) {
|
|
|
1682
1698
|
var Block_default = Block;
|
|
1683
1699
|
|
|
1684
1700
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1685
|
-
import { onMount as onMount3, on as
|
|
1701
|
+
import { onMount as onMount3, on as on5, createEffect as createEffect5, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1686
1702
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1687
1703
|
function BlocksWrapper(props) {
|
|
1688
1704
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1735,7 +1751,7 @@ function BlocksWrapper(props) {
|
|
|
1735
1751
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1736
1752
|
function onUpdateFn_0() {
|
|
1737
1753
|
}
|
|
1738
|
-
|
|
1754
|
+
createEffect5(on5(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1739
1755
|
return <>
|
|
1740
1756
|
<Dynamic4
|
|
1741
1757
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -2126,7 +2142,7 @@ function SectionComponent(props) {
|
|
|
2126
2142
|
var section_default = SectionComponent;
|
|
2127
2143
|
|
|
2128
2144
|
// src/blocks/symbol/symbol.tsx
|
|
2129
|
-
import { onMount as onMount10, on as
|
|
2145
|
+
import { onMount as onMount10, on as on9, createEffect as createEffect9, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
2130
2146
|
|
|
2131
2147
|
// src/components/content-variants/content-variants.tsx
|
|
2132
2148
|
import { Show as Show16, For as For9, onMount as onMount9, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -3838,7 +3854,7 @@ var componentInfo12 = {
|
|
|
3838
3854
|
};
|
|
3839
3855
|
|
|
3840
3856
|
// src/blocks/custom-code/custom-code.tsx
|
|
3841
|
-
import { onMount as onMount6, on as
|
|
3857
|
+
import { onMount as onMount6, on as on6, createEffect as createEffect6, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3842
3858
|
function CustomCode(props) {
|
|
3843
3859
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3844
3860
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3888,7 +3904,7 @@ function CustomCode(props) {
|
|
|
3888
3904
|
runScripts();
|
|
3889
3905
|
}
|
|
3890
3906
|
}
|
|
3891
|
-
|
|
3907
|
+
createEffect6(on6(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3892
3908
|
return <><div
|
|
3893
3909
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3894
3910
|
ref={elementRef}
|
|
@@ -3916,7 +3932,7 @@ var componentInfo13 = {
|
|
|
3916
3932
|
};
|
|
3917
3933
|
|
|
3918
3934
|
// src/blocks/embed/embed.tsx
|
|
3919
|
-
import { on as
|
|
3935
|
+
import { on as on7, createEffect as createEffect7, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3920
3936
|
|
|
3921
3937
|
// src/blocks/embed/helpers.ts
|
|
3922
3938
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3958,8 +3974,8 @@ function Embed(props) {
|
|
|
3958
3974
|
findAndRunScripts();
|
|
3959
3975
|
}
|
|
3960
3976
|
}
|
|
3961
|
-
|
|
3962
|
-
|
|
3977
|
+
createEffect7(
|
|
3978
|
+
on7(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3963
3979
|
);
|
|
3964
3980
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3965
3981
|
}
|
|
@@ -5050,8 +5066,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
5050
5066
|
import {
|
|
5051
5067
|
Show as Show14,
|
|
5052
5068
|
onMount as onMount8,
|
|
5053
|
-
on as
|
|
5054
|
-
createEffect as
|
|
5069
|
+
on as on8,
|
|
5070
|
+
createEffect as createEffect8,
|
|
5055
5071
|
createMemo as createMemo16,
|
|
5056
5072
|
createSignal as createSignal16
|
|
5057
5073
|
} from "solid-js";
|
|
@@ -5063,7 +5079,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5063
5079
|
}
|
|
5064
5080
|
|
|
5065
5081
|
// src/constants/sdk-version.ts
|
|
5066
|
-
var SDK_VERSION = "4.0.
|
|
5082
|
+
var SDK_VERSION = "4.0.8";
|
|
5067
5083
|
|
|
5068
5084
|
// src/helpers/sdk-headers.ts
|
|
5069
5085
|
var getSdkHeaders = () => ({
|
|
@@ -6148,15 +6164,15 @@ function EnableEditor(props) {
|
|
|
6148
6164
|
mergeNewContent(props.content);
|
|
6149
6165
|
}
|
|
6150
6166
|
}
|
|
6151
|
-
|
|
6167
|
+
createEffect8(on8(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
6152
6168
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
6153
6169
|
() => props.builderContextSignal.rootState
|
|
6154
6170
|
);
|
|
6155
6171
|
function onUpdateFn_1() {
|
|
6156
6172
|
emitStateUpdate();
|
|
6157
6173
|
}
|
|
6158
|
-
|
|
6159
|
-
|
|
6174
|
+
createEffect8(
|
|
6175
|
+
on8(
|
|
6160
6176
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
6161
6177
|
onUpdateFn_1
|
|
6162
6178
|
)
|
|
@@ -6167,7 +6183,7 @@ function EnableEditor(props) {
|
|
|
6167
6183
|
mergeNewRootState(props.data);
|
|
6168
6184
|
}
|
|
6169
6185
|
}
|
|
6170
|
-
|
|
6186
|
+
createEffect8(on8(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
6171
6187
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
6172
6188
|
function onUpdateFn_3() {
|
|
6173
6189
|
if (props.locale) {
|
|
@@ -6176,7 +6192,7 @@ function EnableEditor(props) {
|
|
|
6176
6192
|
});
|
|
6177
6193
|
}
|
|
6178
6194
|
}
|
|
6179
|
-
|
|
6195
|
+
createEffect8(on8(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
6180
6196
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
6181
6197
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
6182
6198
|
><Dynamic5
|
|
@@ -6522,6 +6538,7 @@ var fetchSymbolContent = async ({
|
|
|
6522
6538
|
// src/blocks/symbol/symbol.tsx
|
|
6523
6539
|
function Symbol(props) {
|
|
6524
6540
|
const [contentToUse, setContentToUse] = createSignal20(props.symbol?.content);
|
|
6541
|
+
const [symbolEntry, setSymbolEntry] = createSignal20(props.symbol?.entry);
|
|
6525
6542
|
const blocksWrapper = createMemo20(() => {
|
|
6526
6543
|
return "div";
|
|
6527
6544
|
});
|
|
@@ -6537,7 +6554,7 @@ function Symbol(props) {
|
|
|
6537
6554
|
].filter(Boolean).join(" ");
|
|
6538
6555
|
});
|
|
6539
6556
|
function setContent() {
|
|
6540
|
-
if (contentToUse())
|
|
6557
|
+
if (contentToUse() && symbolEntry() === props.symbol?.entry)
|
|
6541
6558
|
return;
|
|
6542
6559
|
fetchSymbolContent({
|
|
6543
6560
|
symbol: props.symbol,
|
|
@@ -6545,6 +6562,7 @@ function Symbol(props) {
|
|
|
6545
6562
|
}).then((newContent) => {
|
|
6546
6563
|
if (newContent) {
|
|
6547
6564
|
setContentToUse(newContent);
|
|
6565
|
+
setSymbolEntry(props.symbol?.entry);
|
|
6548
6566
|
}
|
|
6549
6567
|
});
|
|
6550
6568
|
}
|
|
@@ -6554,7 +6572,7 @@ function Symbol(props) {
|
|
|
6554
6572
|
function onUpdateFn_0() {
|
|
6555
6573
|
setContent();
|
|
6556
6574
|
}
|
|
6557
|
-
|
|
6575
|
+
createEffect9(on9(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6558
6576
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6559
6577
|
nonce={props.builderContext.nonce}
|
|
6560
6578
|
isNestedRender={true}
|