@builder.io/sdk-solid 4.0.4 → 4.0.6
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 +11 -4
- package/lib/browser/dev.jsx +47 -21
- package/lib/browser/index.js +11 -4
- package/lib/browser/index.jsx +47 -21
- package/lib/edge/dev.js +11 -4
- package/lib/edge/dev.jsx +47 -21
- package/lib/edge/index.js +11 -4
- package/lib/edge/index.jsx +47 -21
- package/lib/node/dev.js +11 -4
- package/lib/node/dev.jsx +47 -21
- package/lib/node/index.js +11 -4
- package/lib/node/index.jsx +47 -21
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -1305,7 +1305,13 @@ var getWrapperProps = ({
|
|
|
1305
1305
|
|
|
1306
1306
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1307
1307
|
function ComponentRef(props) {
|
|
1308
|
+
createSignal(false);
|
|
1308
1309
|
const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
|
|
1310
|
+
const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
|
|
1311
|
+
const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
|
|
1312
|
+
function onUpdateFn_0() {
|
|
1313
|
+
}
|
|
1314
|
+
createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
|
|
1309
1315
|
return createComponent(Show, {
|
|
1310
1316
|
get when() {
|
|
1311
1317
|
return props.componentRef;
|
|
@@ -1789,9 +1795,10 @@ var getColumnsClass = (id) => {
|
|
|
1789
1795
|
|
|
1790
1796
|
// src/blocks/columns/columns.tsx
|
|
1791
1797
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1792
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1798
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
|
|
1793
1799
|
display: flex;
|
|
1794
1800
|
line-height: normal;
|
|
1801
|
+
height: 100%;
|
|
1795
1802
|
}`);
|
|
1796
1803
|
function Columns(props) {
|
|
1797
1804
|
const gutterSize = createMemo(() => {
|
|
@@ -1918,7 +1925,7 @@ function Columns(props) {
|
|
|
1918
1925
|
const _el$ = _tmpl$3();
|
|
1919
1926
|
spread(_el$, mergeProps({
|
|
1920
1927
|
get ["class"]() {
|
|
1921
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1928
|
+
return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
|
|
1922
1929
|
},
|
|
1923
1930
|
get style() {
|
|
1924
1931
|
return columnsCssVars();
|
|
@@ -5352,7 +5359,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5352
5359
|
}
|
|
5353
5360
|
|
|
5354
5361
|
// src/constants/sdk-version.ts
|
|
5355
|
-
var SDK_VERSION = "4.0.
|
|
5362
|
+
var SDK_VERSION = "4.0.6";
|
|
5356
5363
|
|
|
5357
5364
|
// src/helpers/sdk-headers.ts
|
|
5358
5365
|
var getSdkHeaders = () => ({
|
|
@@ -5508,7 +5515,7 @@ var generateContentUrl = (options) => {
|
|
|
5508
5515
|
}
|
|
5509
5516
|
if (enrich)
|
|
5510
5517
|
url.searchParams.set("enrich", String(enrich));
|
|
5511
|
-
url.searchParams.set("omit", omit2
|
|
5518
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5512
5519
|
if (fields) {
|
|
5513
5520
|
url.searchParams.set("fields", fields);
|
|
5514
5521
|
}
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -1196,7 +1196,14 @@ function BlockWrapper(props) {
|
|
|
1196
1196
|
var Block_wrapper_default = BlockWrapper;
|
|
1197
1197
|
|
|
1198
1198
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1199
|
-
import {
|
|
1199
|
+
import {
|
|
1200
|
+
Show as Show4,
|
|
1201
|
+
For,
|
|
1202
|
+
on,
|
|
1203
|
+
createEffect,
|
|
1204
|
+
createMemo as createMemo3,
|
|
1205
|
+
createSignal as createSignal3
|
|
1206
|
+
} from "solid-js";
|
|
1200
1207
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
1201
1208
|
|
|
1202
1209
|
// src/components/block/components/interactive-element.tsx
|
|
@@ -1280,9 +1287,27 @@ var getWrapperProps = ({
|
|
|
1280
1287
|
|
|
1281
1288
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1282
1289
|
function ComponentRef(props) {
|
|
1290
|
+
const [shouldUpdate, setShouldUpdate] = createSignal3(false);
|
|
1283
1291
|
const [Wrapper, setWrapper] = createSignal3(
|
|
1284
1292
|
props.isInteractive ? interactive_element_default : props.componentRef
|
|
1285
1293
|
);
|
|
1294
|
+
const onUpdateFn_0_props_componentOptions = createMemo3(
|
|
1295
|
+
() => props.componentOptions
|
|
1296
|
+
);
|
|
1297
|
+
const onUpdateFn_0_props_blockChildren = createMemo3(
|
|
1298
|
+
() => props.blockChildren
|
|
1299
|
+
);
|
|
1300
|
+
function onUpdateFn_0() {
|
|
1301
|
+
}
|
|
1302
|
+
createEffect(
|
|
1303
|
+
on(
|
|
1304
|
+
() => [
|
|
1305
|
+
onUpdateFn_0_props_componentOptions(),
|
|
1306
|
+
onUpdateFn_0_props_blockChildren()
|
|
1307
|
+
],
|
|
1308
|
+
onUpdateFn_0
|
|
1309
|
+
)
|
|
1310
|
+
);
|
|
1286
1311
|
return <><Show4 when={props.componentRef}><Dynamic3
|
|
1287
1312
|
{...getWrapperProps({
|
|
1288
1313
|
componentOptions: props.componentOptions,
|
|
@@ -1480,7 +1505,7 @@ function Block(props) {
|
|
|
1480
1505
|
var Block_default = Block;
|
|
1481
1506
|
|
|
1482
1507
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1483
|
-
import { onMount as onMount3, on as
|
|
1508
|
+
import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1484
1509
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1485
1510
|
function BlocksWrapper(props) {
|
|
1486
1511
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1533,7 +1558,7 @@ function BlocksWrapper(props) {
|
|
|
1533
1558
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1534
1559
|
function onUpdateFn_0() {
|
|
1535
1560
|
}
|
|
1536
|
-
|
|
1561
|
+
createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1537
1562
|
return <>
|
|
1538
1563
|
<Dynamic4
|
|
1539
1564
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -1713,7 +1738,7 @@ function Columns(props) {
|
|
|
1713
1738
|
}
|
|
1714
1739
|
return <>
|
|
1715
1740
|
<div
|
|
1716
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1741
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
|
|
1717
1742
|
style={columnsCssVars()}
|
|
1718
1743
|
{...{}}
|
|
1719
1744
|
>
|
|
@@ -1742,9 +1767,10 @@ function Columns(props) {
|
|
|
1742
1767
|
/></Dynamic_renderer_default>;
|
|
1743
1768
|
}}</For4>
|
|
1744
1769
|
</div>
|
|
1745
|
-
<style>{`.div-
|
|
1770
|
+
<style>{`.div-7612d942 {
|
|
1746
1771
|
display: flex;
|
|
1747
1772
|
line-height: normal;
|
|
1773
|
+
height: 100%;
|
|
1748
1774
|
}`}</style>
|
|
1749
1775
|
</>;
|
|
1750
1776
|
}
|
|
@@ -1922,7 +1948,7 @@ function SectionComponent(props) {
|
|
|
1922
1948
|
var section_default = SectionComponent;
|
|
1923
1949
|
|
|
1924
1950
|
// src/blocks/symbol/symbol.tsx
|
|
1925
|
-
import { onMount as onMount9, on as
|
|
1951
|
+
import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
1926
1952
|
|
|
1927
1953
|
// src/components/content-variants/content-variants.tsx
|
|
1928
1954
|
import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -3635,7 +3661,7 @@ var componentInfo12 = {
|
|
|
3635
3661
|
};
|
|
3636
3662
|
|
|
3637
3663
|
// src/blocks/custom-code/custom-code.tsx
|
|
3638
|
-
import { onMount as onMount5, on as
|
|
3664
|
+
import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3639
3665
|
function CustomCode(props) {
|
|
3640
3666
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3641
3667
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3685,7 +3711,7 @@ function CustomCode(props) {
|
|
|
3685
3711
|
runScripts();
|
|
3686
3712
|
}
|
|
3687
3713
|
}
|
|
3688
|
-
|
|
3714
|
+
createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3689
3715
|
return <><div
|
|
3690
3716
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3691
3717
|
ref={elementRef}
|
|
@@ -3713,7 +3739,7 @@ var componentInfo13 = {
|
|
|
3713
3739
|
};
|
|
3714
3740
|
|
|
3715
3741
|
// src/blocks/embed/embed.tsx
|
|
3716
|
-
import { on as
|
|
3742
|
+
import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3717
3743
|
|
|
3718
3744
|
// src/blocks/embed/helpers.ts
|
|
3719
3745
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3755,8 +3781,8 @@ function Embed(props) {
|
|
|
3755
3781
|
findAndRunScripts();
|
|
3756
3782
|
}
|
|
3757
3783
|
}
|
|
3758
|
-
|
|
3759
|
-
|
|
3784
|
+
createEffect5(
|
|
3785
|
+
on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3760
3786
|
);
|
|
3761
3787
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3762
3788
|
}
|
|
@@ -4848,8 +4874,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
4848
4874
|
import {
|
|
4849
4875
|
Show as Show14,
|
|
4850
4876
|
onMount as onMount7,
|
|
4851
|
-
on as
|
|
4852
|
-
createEffect as
|
|
4877
|
+
on as on6,
|
|
4878
|
+
createEffect as createEffect6,
|
|
4853
4879
|
createMemo as createMemo16,
|
|
4854
4880
|
createSignal as createSignal16
|
|
4855
4881
|
} from "solid-js";
|
|
@@ -4861,7 +4887,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4861
4887
|
}
|
|
4862
4888
|
|
|
4863
4889
|
// src/constants/sdk-version.ts
|
|
4864
|
-
var SDK_VERSION = "4.0.
|
|
4890
|
+
var SDK_VERSION = "4.0.6";
|
|
4865
4891
|
|
|
4866
4892
|
// src/helpers/sdk-headers.ts
|
|
4867
4893
|
var getSdkHeaders = () => ({
|
|
@@ -5017,7 +5043,7 @@ var generateContentUrl = (options) => {
|
|
|
5017
5043
|
}
|
|
5018
5044
|
if (enrich)
|
|
5019
5045
|
url.searchParams.set("enrich", String(enrich));
|
|
5020
|
-
url.searchParams.set("omit", omit2
|
|
5046
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5021
5047
|
if (fields) {
|
|
5022
5048
|
url.searchParams.set("fields", fields);
|
|
5023
5049
|
}
|
|
@@ -5953,15 +5979,15 @@ function EnableEditor(props) {
|
|
|
5953
5979
|
mergeNewContent(props.content);
|
|
5954
5980
|
}
|
|
5955
5981
|
}
|
|
5956
|
-
|
|
5982
|
+
createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
5957
5983
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
5958
5984
|
() => props.builderContextSignal.rootState
|
|
5959
5985
|
);
|
|
5960
5986
|
function onUpdateFn_1() {
|
|
5961
5987
|
emitStateUpdate();
|
|
5962
5988
|
}
|
|
5963
|
-
|
|
5964
|
-
|
|
5989
|
+
createEffect6(
|
|
5990
|
+
on6(
|
|
5965
5991
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
5966
5992
|
onUpdateFn_1
|
|
5967
5993
|
)
|
|
@@ -5972,7 +5998,7 @@ function EnableEditor(props) {
|
|
|
5972
5998
|
mergeNewRootState(props.data);
|
|
5973
5999
|
}
|
|
5974
6000
|
}
|
|
5975
|
-
|
|
6001
|
+
createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
5976
6002
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
5977
6003
|
function onUpdateFn_3() {
|
|
5978
6004
|
if (props.locale) {
|
|
@@ -5981,7 +6007,7 @@ function EnableEditor(props) {
|
|
|
5981
6007
|
});
|
|
5982
6008
|
}
|
|
5983
6009
|
}
|
|
5984
|
-
|
|
6010
|
+
createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
5985
6011
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
5986
6012
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
5987
6013
|
><Dynamic5
|
|
@@ -6359,7 +6385,7 @@ function Symbol(props) {
|
|
|
6359
6385
|
function onUpdateFn_0() {
|
|
6360
6386
|
setContent();
|
|
6361
6387
|
}
|
|
6362
|
-
|
|
6388
|
+
createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6363
6389
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6364
6390
|
nonce={props.builderContext.nonce}
|
|
6365
6391
|
isNestedRender={true}
|
package/lib/browser/index.js
CHANGED
|
@@ -1296,7 +1296,13 @@ var getWrapperProps = ({
|
|
|
1296
1296
|
|
|
1297
1297
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1298
1298
|
function ComponentRef(props) {
|
|
1299
|
+
createSignal(false);
|
|
1299
1300
|
const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
|
|
1301
|
+
const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
|
|
1302
|
+
const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
|
|
1303
|
+
function onUpdateFn_0() {
|
|
1304
|
+
}
|
|
1305
|
+
createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
|
|
1300
1306
|
return createComponent(Show, {
|
|
1301
1307
|
get when() {
|
|
1302
1308
|
return props.componentRef;
|
|
@@ -1780,9 +1786,10 @@ var getColumnsClass = (id) => {
|
|
|
1780
1786
|
|
|
1781
1787
|
// src/blocks/columns/columns.tsx
|
|
1782
1788
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1783
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1789
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
|
|
1784
1790
|
display: flex;
|
|
1785
1791
|
line-height: normal;
|
|
1792
|
+
height: 100%;
|
|
1786
1793
|
}`);
|
|
1787
1794
|
function Columns(props) {
|
|
1788
1795
|
const gutterSize = createMemo(() => {
|
|
@@ -1909,7 +1916,7 @@ function Columns(props) {
|
|
|
1909
1916
|
const _el$ = _tmpl$3();
|
|
1910
1917
|
spread(_el$, mergeProps({
|
|
1911
1918
|
get ["class"]() {
|
|
1912
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1919
|
+
return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
|
|
1913
1920
|
},
|
|
1914
1921
|
get style() {
|
|
1915
1922
|
return columnsCssVars();
|
|
@@ -5340,7 +5347,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5340
5347
|
}
|
|
5341
5348
|
|
|
5342
5349
|
// src/constants/sdk-version.ts
|
|
5343
|
-
var SDK_VERSION = "4.0.
|
|
5350
|
+
var SDK_VERSION = "4.0.6";
|
|
5344
5351
|
|
|
5345
5352
|
// src/helpers/sdk-headers.ts
|
|
5346
5353
|
var getSdkHeaders = () => ({
|
|
@@ -5494,7 +5501,7 @@ var generateContentUrl = (options) => {
|
|
|
5494
5501
|
}
|
|
5495
5502
|
if (enrich)
|
|
5496
5503
|
url.searchParams.set("enrich", String(enrich));
|
|
5497
|
-
url.searchParams.set("omit", omit2
|
|
5504
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5498
5505
|
if (fields) {
|
|
5499
5506
|
url.searchParams.set("fields", fields);
|
|
5500
5507
|
}
|
package/lib/browser/index.jsx
CHANGED
|
@@ -1189,7 +1189,14 @@ function BlockWrapper(props) {
|
|
|
1189
1189
|
var Block_wrapper_default = BlockWrapper;
|
|
1190
1190
|
|
|
1191
1191
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1192
|
-
import {
|
|
1192
|
+
import {
|
|
1193
|
+
Show as Show4,
|
|
1194
|
+
For,
|
|
1195
|
+
on,
|
|
1196
|
+
createEffect,
|
|
1197
|
+
createMemo as createMemo3,
|
|
1198
|
+
createSignal as createSignal3
|
|
1199
|
+
} from "solid-js";
|
|
1193
1200
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
1194
1201
|
|
|
1195
1202
|
// src/components/block/components/interactive-element.tsx
|
|
@@ -1273,9 +1280,27 @@ var getWrapperProps = ({
|
|
|
1273
1280
|
|
|
1274
1281
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1275
1282
|
function ComponentRef(props) {
|
|
1283
|
+
const [shouldUpdate, setShouldUpdate] = createSignal3(false);
|
|
1276
1284
|
const [Wrapper, setWrapper] = createSignal3(
|
|
1277
1285
|
props.isInteractive ? interactive_element_default : props.componentRef
|
|
1278
1286
|
);
|
|
1287
|
+
const onUpdateFn_0_props_componentOptions = createMemo3(
|
|
1288
|
+
() => props.componentOptions
|
|
1289
|
+
);
|
|
1290
|
+
const onUpdateFn_0_props_blockChildren = createMemo3(
|
|
1291
|
+
() => props.blockChildren
|
|
1292
|
+
);
|
|
1293
|
+
function onUpdateFn_0() {
|
|
1294
|
+
}
|
|
1295
|
+
createEffect(
|
|
1296
|
+
on(
|
|
1297
|
+
() => [
|
|
1298
|
+
onUpdateFn_0_props_componentOptions(),
|
|
1299
|
+
onUpdateFn_0_props_blockChildren()
|
|
1300
|
+
],
|
|
1301
|
+
onUpdateFn_0
|
|
1302
|
+
)
|
|
1303
|
+
);
|
|
1279
1304
|
return <><Show4 when={props.componentRef}><Dynamic3
|
|
1280
1305
|
{...getWrapperProps({
|
|
1281
1306
|
componentOptions: props.componentOptions,
|
|
@@ -1473,7 +1498,7 @@ function Block(props) {
|
|
|
1473
1498
|
var Block_default = Block;
|
|
1474
1499
|
|
|
1475
1500
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1476
|
-
import { onMount as onMount3, on as
|
|
1501
|
+
import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1477
1502
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1478
1503
|
function BlocksWrapper(props) {
|
|
1479
1504
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1526,7 +1551,7 @@ function BlocksWrapper(props) {
|
|
|
1526
1551
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1527
1552
|
function onUpdateFn_0() {
|
|
1528
1553
|
}
|
|
1529
|
-
|
|
1554
|
+
createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1530
1555
|
return <>
|
|
1531
1556
|
<Dynamic4
|
|
1532
1557
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -1706,7 +1731,7 @@ function Columns(props) {
|
|
|
1706
1731
|
}
|
|
1707
1732
|
return <>
|
|
1708
1733
|
<div
|
|
1709
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1734
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
|
|
1710
1735
|
style={columnsCssVars()}
|
|
1711
1736
|
{...{}}
|
|
1712
1737
|
>
|
|
@@ -1735,9 +1760,10 @@ function Columns(props) {
|
|
|
1735
1760
|
/></Dynamic_renderer_default>;
|
|
1736
1761
|
}}</For4>
|
|
1737
1762
|
</div>
|
|
1738
|
-
<style>{`.div-
|
|
1763
|
+
<style>{`.div-7612d942 {
|
|
1739
1764
|
display: flex;
|
|
1740
1765
|
line-height: normal;
|
|
1766
|
+
height: 100%;
|
|
1741
1767
|
}`}</style>
|
|
1742
1768
|
</>;
|
|
1743
1769
|
}
|
|
@@ -1914,7 +1940,7 @@ function SectionComponent(props) {
|
|
|
1914
1940
|
var section_default = SectionComponent;
|
|
1915
1941
|
|
|
1916
1942
|
// src/blocks/symbol/symbol.tsx
|
|
1917
|
-
import { onMount as onMount9, on as
|
|
1943
|
+
import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
1918
1944
|
|
|
1919
1945
|
// src/components/content-variants/content-variants.tsx
|
|
1920
1946
|
import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -3626,7 +3652,7 @@ var componentInfo12 = {
|
|
|
3626
3652
|
};
|
|
3627
3653
|
|
|
3628
3654
|
// src/blocks/custom-code/custom-code.tsx
|
|
3629
|
-
import { onMount as onMount5, on as
|
|
3655
|
+
import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3630
3656
|
function CustomCode(props) {
|
|
3631
3657
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3632
3658
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3676,7 +3702,7 @@ function CustomCode(props) {
|
|
|
3676
3702
|
runScripts();
|
|
3677
3703
|
}
|
|
3678
3704
|
}
|
|
3679
|
-
|
|
3705
|
+
createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3680
3706
|
return <><div
|
|
3681
3707
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3682
3708
|
ref={elementRef}
|
|
@@ -3704,7 +3730,7 @@ var componentInfo13 = {
|
|
|
3704
3730
|
};
|
|
3705
3731
|
|
|
3706
3732
|
// src/blocks/embed/embed.tsx
|
|
3707
|
-
import { on as
|
|
3733
|
+
import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3708
3734
|
|
|
3709
3735
|
// src/blocks/embed/helpers.ts
|
|
3710
3736
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3746,8 +3772,8 @@ function Embed(props) {
|
|
|
3746
3772
|
findAndRunScripts();
|
|
3747
3773
|
}
|
|
3748
3774
|
}
|
|
3749
|
-
|
|
3750
|
-
|
|
3775
|
+
createEffect5(
|
|
3776
|
+
on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3751
3777
|
);
|
|
3752
3778
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3753
3779
|
}
|
|
@@ -4838,8 +4864,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
4838
4864
|
import {
|
|
4839
4865
|
Show as Show14,
|
|
4840
4866
|
onMount as onMount7,
|
|
4841
|
-
on as
|
|
4842
|
-
createEffect as
|
|
4867
|
+
on as on6,
|
|
4868
|
+
createEffect as createEffect6,
|
|
4843
4869
|
createMemo as createMemo16,
|
|
4844
4870
|
createSignal as createSignal16
|
|
4845
4871
|
} from "solid-js";
|
|
@@ -4851,7 +4877,7 @@ function getPreviewContent(_searchParams) {
|
|
|
4851
4877
|
}
|
|
4852
4878
|
|
|
4853
4879
|
// src/constants/sdk-version.ts
|
|
4854
|
-
var SDK_VERSION = "4.0.
|
|
4880
|
+
var SDK_VERSION = "4.0.6";
|
|
4855
4881
|
|
|
4856
4882
|
// src/helpers/sdk-headers.ts
|
|
4857
4883
|
var getSdkHeaders = () => ({
|
|
@@ -5005,7 +5031,7 @@ var generateContentUrl = (options) => {
|
|
|
5005
5031
|
}
|
|
5006
5032
|
if (enrich)
|
|
5007
5033
|
url.searchParams.set("enrich", String(enrich));
|
|
5008
|
-
url.searchParams.set("omit", omit2
|
|
5034
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5009
5035
|
if (fields) {
|
|
5010
5036
|
url.searchParams.set("fields", fields);
|
|
5011
5037
|
}
|
|
@@ -5936,15 +5962,15 @@ function EnableEditor(props) {
|
|
|
5936
5962
|
mergeNewContent(props.content);
|
|
5937
5963
|
}
|
|
5938
5964
|
}
|
|
5939
|
-
|
|
5965
|
+
createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
5940
5966
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
5941
5967
|
() => props.builderContextSignal.rootState
|
|
5942
5968
|
);
|
|
5943
5969
|
function onUpdateFn_1() {
|
|
5944
5970
|
emitStateUpdate();
|
|
5945
5971
|
}
|
|
5946
|
-
|
|
5947
|
-
|
|
5972
|
+
createEffect6(
|
|
5973
|
+
on6(
|
|
5948
5974
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
5949
5975
|
onUpdateFn_1
|
|
5950
5976
|
)
|
|
@@ -5955,7 +5981,7 @@ function EnableEditor(props) {
|
|
|
5955
5981
|
mergeNewRootState(props.data);
|
|
5956
5982
|
}
|
|
5957
5983
|
}
|
|
5958
|
-
|
|
5984
|
+
createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
5959
5985
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
5960
5986
|
function onUpdateFn_3() {
|
|
5961
5987
|
if (props.locale) {
|
|
@@ -5964,7 +5990,7 @@ function EnableEditor(props) {
|
|
|
5964
5990
|
});
|
|
5965
5991
|
}
|
|
5966
5992
|
}
|
|
5967
|
-
|
|
5993
|
+
createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
5968
5994
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
5969
5995
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
5970
5996
|
><Dynamic5
|
|
@@ -6342,7 +6368,7 @@ function Symbol(props) {
|
|
|
6342
6368
|
function onUpdateFn_0() {
|
|
6343
6369
|
setContent();
|
|
6344
6370
|
}
|
|
6345
|
-
|
|
6371
|
+
createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6346
6372
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6347
6373
|
nonce={props.builderContext.nonce}
|
|
6348
6374
|
isNestedRender={true}
|
package/lib/edge/dev.js
CHANGED
|
@@ -4486,7 +4486,13 @@ var getWrapperProps = ({
|
|
|
4486
4486
|
|
|
4487
4487
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
4488
4488
|
function ComponentRef(props) {
|
|
4489
|
+
createSignal(false);
|
|
4489
4490
|
const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
|
|
4491
|
+
const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
|
|
4492
|
+
const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
|
|
4493
|
+
function onUpdateFn_0() {
|
|
4494
|
+
}
|
|
4495
|
+
createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
|
|
4490
4496
|
return createComponent(Show, {
|
|
4491
4497
|
get when() {
|
|
4492
4498
|
return props.componentRef;
|
|
@@ -4970,9 +4976,10 @@ var getColumnsClass = (id2) => {
|
|
|
4970
4976
|
|
|
4971
4977
|
// src/blocks/columns/columns.tsx
|
|
4972
4978
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4973
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4979
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
|
|
4974
4980
|
display: flex;
|
|
4975
4981
|
line-height: normal;
|
|
4982
|
+
height: 100%;
|
|
4976
4983
|
}`);
|
|
4977
4984
|
function Columns(props) {
|
|
4978
4985
|
const gutterSize = createMemo(() => {
|
|
@@ -5099,7 +5106,7 @@ function Columns(props) {
|
|
|
5099
5106
|
const _el$ = _tmpl$3();
|
|
5100
5107
|
spread(_el$, mergeProps({
|
|
5101
5108
|
get ["class"]() {
|
|
5102
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
5109
|
+
return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
|
|
5103
5110
|
},
|
|
5104
5111
|
get style() {
|
|
5105
5112
|
return columnsCssVars();
|
|
@@ -8533,7 +8540,7 @@ function getPreviewContent(_searchParams) {
|
|
|
8533
8540
|
}
|
|
8534
8541
|
|
|
8535
8542
|
// src/constants/sdk-version.ts
|
|
8536
|
-
var SDK_VERSION = "4.0.
|
|
8543
|
+
var SDK_VERSION = "4.0.6";
|
|
8537
8544
|
|
|
8538
8545
|
// src/helpers/sdk-headers.ts
|
|
8539
8546
|
var getSdkHeaders = () => ({
|
|
@@ -8689,7 +8696,7 @@ var generateContentUrl = (options) => {
|
|
|
8689
8696
|
}
|
|
8690
8697
|
if (enrich)
|
|
8691
8698
|
url.searchParams.set("enrich", String(enrich));
|
|
8692
|
-
url.searchParams.set("omit", omit2
|
|
8699
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
8693
8700
|
if (fields) {
|
|
8694
8701
|
url.searchParams.set("fields", fields);
|
|
8695
8702
|
}
|