@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/node/dev.jsx
CHANGED
|
@@ -1367,7 +1367,14 @@ function BlockWrapper(props) {
|
|
|
1367
1367
|
var Block_wrapper_default = BlockWrapper;
|
|
1368
1368
|
|
|
1369
1369
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1370
|
-
import {
|
|
1370
|
+
import {
|
|
1371
|
+
Show as Show4,
|
|
1372
|
+
For,
|
|
1373
|
+
on,
|
|
1374
|
+
createEffect,
|
|
1375
|
+
createMemo as createMemo3,
|
|
1376
|
+
createSignal as createSignal3
|
|
1377
|
+
} from "solid-js";
|
|
1371
1378
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
1372
1379
|
|
|
1373
1380
|
// src/components/block/components/interactive-element.tsx
|
|
@@ -1451,9 +1458,27 @@ var getWrapperProps = ({
|
|
|
1451
1458
|
|
|
1452
1459
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1453
1460
|
function ComponentRef(props) {
|
|
1461
|
+
const [shouldUpdate, setShouldUpdate] = createSignal3(false);
|
|
1454
1462
|
const [Wrapper, setWrapper] = createSignal3(
|
|
1455
1463
|
props.isInteractive ? interactive_element_default : props.componentRef
|
|
1456
1464
|
);
|
|
1465
|
+
const onUpdateFn_0_props_componentOptions = createMemo3(
|
|
1466
|
+
() => props.componentOptions
|
|
1467
|
+
);
|
|
1468
|
+
const onUpdateFn_0_props_blockChildren = createMemo3(
|
|
1469
|
+
() => props.blockChildren
|
|
1470
|
+
);
|
|
1471
|
+
function onUpdateFn_0() {
|
|
1472
|
+
}
|
|
1473
|
+
createEffect(
|
|
1474
|
+
on(
|
|
1475
|
+
() => [
|
|
1476
|
+
onUpdateFn_0_props_componentOptions(),
|
|
1477
|
+
onUpdateFn_0_props_blockChildren()
|
|
1478
|
+
],
|
|
1479
|
+
onUpdateFn_0
|
|
1480
|
+
)
|
|
1481
|
+
);
|
|
1457
1482
|
return <><Show4 when={props.componentRef}><Dynamic3
|
|
1458
1483
|
{...getWrapperProps({
|
|
1459
1484
|
componentOptions: props.componentOptions,
|
|
@@ -1651,7 +1676,7 @@ function Block(props) {
|
|
|
1651
1676
|
var Block_default = Block;
|
|
1652
1677
|
|
|
1653
1678
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1654
|
-
import { onMount as onMount3, on as
|
|
1679
|
+
import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1655
1680
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1656
1681
|
function BlocksWrapper(props) {
|
|
1657
1682
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1704,7 +1729,7 @@ function BlocksWrapper(props) {
|
|
|
1704
1729
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1705
1730
|
function onUpdateFn_0() {
|
|
1706
1731
|
}
|
|
1707
|
-
|
|
1732
|
+
createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1708
1733
|
return <>
|
|
1709
1734
|
<Dynamic4
|
|
1710
1735
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -1884,7 +1909,7 @@ function Columns(props) {
|
|
|
1884
1909
|
}
|
|
1885
1910
|
return <>
|
|
1886
1911
|
<div
|
|
1887
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1912
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
|
|
1888
1913
|
style={columnsCssVars()}
|
|
1889
1914
|
{...{}}
|
|
1890
1915
|
>
|
|
@@ -1913,9 +1938,10 @@ function Columns(props) {
|
|
|
1913
1938
|
/></Dynamic_renderer_default>;
|
|
1914
1939
|
}}</For4>
|
|
1915
1940
|
</div>
|
|
1916
|
-
<style>{`.div-
|
|
1941
|
+
<style>{`.div-7612d942 {
|
|
1917
1942
|
display: flex;
|
|
1918
1943
|
line-height: normal;
|
|
1944
|
+
height: 100%;
|
|
1919
1945
|
}`}</style>
|
|
1920
1946
|
</>;
|
|
1921
1947
|
}
|
|
@@ -2093,7 +2119,7 @@ function SectionComponent(props) {
|
|
|
2093
2119
|
var section_default = SectionComponent;
|
|
2094
2120
|
|
|
2095
2121
|
// src/blocks/symbol/symbol.tsx
|
|
2096
|
-
import { onMount as onMount9, on as
|
|
2122
|
+
import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
2097
2123
|
|
|
2098
2124
|
// src/components/content-variants/content-variants.tsx
|
|
2099
2125
|
import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -3806,7 +3832,7 @@ var componentInfo12 = {
|
|
|
3806
3832
|
};
|
|
3807
3833
|
|
|
3808
3834
|
// src/blocks/custom-code/custom-code.tsx
|
|
3809
|
-
import { onMount as onMount5, on as
|
|
3835
|
+
import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3810
3836
|
function CustomCode(props) {
|
|
3811
3837
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3812
3838
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3856,7 +3882,7 @@ function CustomCode(props) {
|
|
|
3856
3882
|
runScripts();
|
|
3857
3883
|
}
|
|
3858
3884
|
}
|
|
3859
|
-
|
|
3885
|
+
createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3860
3886
|
return <><div
|
|
3861
3887
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3862
3888
|
ref={elementRef}
|
|
@@ -3884,7 +3910,7 @@ var componentInfo13 = {
|
|
|
3884
3910
|
};
|
|
3885
3911
|
|
|
3886
3912
|
// src/blocks/embed/embed.tsx
|
|
3887
|
-
import { on as
|
|
3913
|
+
import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3888
3914
|
|
|
3889
3915
|
// src/blocks/embed/helpers.ts
|
|
3890
3916
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3926,8 +3952,8 @@ function Embed(props) {
|
|
|
3926
3952
|
findAndRunScripts();
|
|
3927
3953
|
}
|
|
3928
3954
|
}
|
|
3929
|
-
|
|
3930
|
-
|
|
3955
|
+
createEffect5(
|
|
3956
|
+
on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3931
3957
|
);
|
|
3932
3958
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3933
3959
|
}
|
|
@@ -5019,8 +5045,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
5019
5045
|
import {
|
|
5020
5046
|
Show as Show14,
|
|
5021
5047
|
onMount as onMount7,
|
|
5022
|
-
on as
|
|
5023
|
-
createEffect as
|
|
5048
|
+
on as on6,
|
|
5049
|
+
createEffect as createEffect6,
|
|
5024
5050
|
createMemo as createMemo16,
|
|
5025
5051
|
createSignal as createSignal16
|
|
5026
5052
|
} from "solid-js";
|
|
@@ -5032,7 +5058,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5032
5058
|
}
|
|
5033
5059
|
|
|
5034
5060
|
// src/constants/sdk-version.ts
|
|
5035
|
-
var SDK_VERSION = "4.0.
|
|
5061
|
+
var SDK_VERSION = "4.0.6";
|
|
5036
5062
|
|
|
5037
5063
|
// src/helpers/sdk-headers.ts
|
|
5038
5064
|
var getSdkHeaders = () => ({
|
|
@@ -5188,7 +5214,7 @@ var generateContentUrl = (options) => {
|
|
|
5188
5214
|
}
|
|
5189
5215
|
if (enrich)
|
|
5190
5216
|
url.searchParams.set("enrich", String(enrich));
|
|
5191
|
-
url.searchParams.set("omit", omit2
|
|
5217
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5192
5218
|
if (fields) {
|
|
5193
5219
|
url.searchParams.set("fields", fields);
|
|
5194
5220
|
}
|
|
@@ -6124,15 +6150,15 @@ function EnableEditor(props) {
|
|
|
6124
6150
|
mergeNewContent(props.content);
|
|
6125
6151
|
}
|
|
6126
6152
|
}
|
|
6127
|
-
|
|
6153
|
+
createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
6128
6154
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
6129
6155
|
() => props.builderContextSignal.rootState
|
|
6130
6156
|
);
|
|
6131
6157
|
function onUpdateFn_1() {
|
|
6132
6158
|
emitStateUpdate();
|
|
6133
6159
|
}
|
|
6134
|
-
|
|
6135
|
-
|
|
6160
|
+
createEffect6(
|
|
6161
|
+
on6(
|
|
6136
6162
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
6137
6163
|
onUpdateFn_1
|
|
6138
6164
|
)
|
|
@@ -6143,7 +6169,7 @@ function EnableEditor(props) {
|
|
|
6143
6169
|
mergeNewRootState(props.data);
|
|
6144
6170
|
}
|
|
6145
6171
|
}
|
|
6146
|
-
|
|
6172
|
+
createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
6147
6173
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
6148
6174
|
function onUpdateFn_3() {
|
|
6149
6175
|
if (props.locale) {
|
|
@@ -6152,7 +6178,7 @@ function EnableEditor(props) {
|
|
|
6152
6178
|
});
|
|
6153
6179
|
}
|
|
6154
6180
|
}
|
|
6155
|
-
|
|
6181
|
+
createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
6156
6182
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
6157
6183
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
6158
6184
|
><Dynamic5
|
|
@@ -6530,7 +6556,7 @@ function Symbol(props) {
|
|
|
6530
6556
|
function onUpdateFn_0() {
|
|
6531
6557
|
setContent();
|
|
6532
6558
|
}
|
|
6533
|
-
|
|
6559
|
+
createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6534
6560
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6535
6561
|
nonce={props.builderContext.nonce}
|
|
6536
6562
|
isNestedRender={true}
|
package/lib/node/index.js
CHANGED
|
@@ -1465,7 +1465,13 @@ var getWrapperProps = ({
|
|
|
1465
1465
|
|
|
1466
1466
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1467
1467
|
function ComponentRef(props) {
|
|
1468
|
+
createSignal(false);
|
|
1468
1469
|
const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
|
|
1470
|
+
const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
|
|
1471
|
+
const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
|
|
1472
|
+
function onUpdateFn_0() {
|
|
1473
|
+
}
|
|
1474
|
+
createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
|
|
1469
1475
|
return createComponent(Show, {
|
|
1470
1476
|
get when() {
|
|
1471
1477
|
return props.componentRef;
|
|
@@ -1949,9 +1955,10 @@ var getColumnsClass = (id) => {
|
|
|
1949
1955
|
|
|
1950
1956
|
// src/blocks/columns/columns.tsx
|
|
1951
1957
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1952
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1958
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
|
|
1953
1959
|
display: flex;
|
|
1954
1960
|
line-height: normal;
|
|
1961
|
+
height: 100%;
|
|
1955
1962
|
}`);
|
|
1956
1963
|
function Columns(props) {
|
|
1957
1964
|
const gutterSize = createMemo(() => {
|
|
@@ -2078,7 +2085,7 @@ function Columns(props) {
|
|
|
2078
2085
|
const _el$ = _tmpl$3();
|
|
2079
2086
|
spread(_el$, mergeProps({
|
|
2080
2087
|
get ["class"]() {
|
|
2081
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
2088
|
+
return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
|
|
2082
2089
|
},
|
|
2083
2090
|
get style() {
|
|
2084
2091
|
return columnsCssVars();
|
|
@@ -5509,7 +5516,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5509
5516
|
}
|
|
5510
5517
|
|
|
5511
5518
|
// src/constants/sdk-version.ts
|
|
5512
|
-
var SDK_VERSION = "4.0.
|
|
5519
|
+
var SDK_VERSION = "4.0.6";
|
|
5513
5520
|
|
|
5514
5521
|
// src/helpers/sdk-headers.ts
|
|
5515
5522
|
var getSdkHeaders = () => ({
|
|
@@ -5663,7 +5670,7 @@ var generateContentUrl = (options) => {
|
|
|
5663
5670
|
}
|
|
5664
5671
|
if (enrich)
|
|
5665
5672
|
url.searchParams.set("enrich", String(enrich));
|
|
5666
|
-
url.searchParams.set("omit", omit2
|
|
5673
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5667
5674
|
if (fields) {
|
|
5668
5675
|
url.searchParams.set("fields", fields);
|
|
5669
5676
|
}
|
package/lib/node/index.jsx
CHANGED
|
@@ -1360,7 +1360,14 @@ function BlockWrapper(props) {
|
|
|
1360
1360
|
var Block_wrapper_default = BlockWrapper;
|
|
1361
1361
|
|
|
1362
1362
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1363
|
-
import {
|
|
1363
|
+
import {
|
|
1364
|
+
Show as Show4,
|
|
1365
|
+
For,
|
|
1366
|
+
on,
|
|
1367
|
+
createEffect,
|
|
1368
|
+
createMemo as createMemo3,
|
|
1369
|
+
createSignal as createSignal3
|
|
1370
|
+
} from "solid-js";
|
|
1364
1371
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
1365
1372
|
|
|
1366
1373
|
// src/components/block/components/interactive-element.tsx
|
|
@@ -1444,9 +1451,27 @@ var getWrapperProps = ({
|
|
|
1444
1451
|
|
|
1445
1452
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1446
1453
|
function ComponentRef(props) {
|
|
1454
|
+
const [shouldUpdate, setShouldUpdate] = createSignal3(false);
|
|
1447
1455
|
const [Wrapper, setWrapper] = createSignal3(
|
|
1448
1456
|
props.isInteractive ? interactive_element_default : props.componentRef
|
|
1449
1457
|
);
|
|
1458
|
+
const onUpdateFn_0_props_componentOptions = createMemo3(
|
|
1459
|
+
() => props.componentOptions
|
|
1460
|
+
);
|
|
1461
|
+
const onUpdateFn_0_props_blockChildren = createMemo3(
|
|
1462
|
+
() => props.blockChildren
|
|
1463
|
+
);
|
|
1464
|
+
function onUpdateFn_0() {
|
|
1465
|
+
}
|
|
1466
|
+
createEffect(
|
|
1467
|
+
on(
|
|
1468
|
+
() => [
|
|
1469
|
+
onUpdateFn_0_props_componentOptions(),
|
|
1470
|
+
onUpdateFn_0_props_blockChildren()
|
|
1471
|
+
],
|
|
1472
|
+
onUpdateFn_0
|
|
1473
|
+
)
|
|
1474
|
+
);
|
|
1450
1475
|
return <><Show4 when={props.componentRef}><Dynamic3
|
|
1451
1476
|
{...getWrapperProps({
|
|
1452
1477
|
componentOptions: props.componentOptions,
|
|
@@ -1644,7 +1669,7 @@ function Block(props) {
|
|
|
1644
1669
|
var Block_default = Block;
|
|
1645
1670
|
|
|
1646
1671
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1647
|
-
import { onMount as onMount3, on as
|
|
1672
|
+
import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
1648
1673
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1649
1674
|
function BlocksWrapper(props) {
|
|
1650
1675
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -1697,7 +1722,7 @@ function BlocksWrapper(props) {
|
|
|
1697
1722
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
1698
1723
|
function onUpdateFn_0() {
|
|
1699
1724
|
}
|
|
1700
|
-
|
|
1725
|
+
createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
1701
1726
|
return <>
|
|
1702
1727
|
<Dynamic4
|
|
1703
1728
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -1877,7 +1902,7 @@ function Columns(props) {
|
|
|
1877
1902
|
}
|
|
1878
1903
|
return <>
|
|
1879
1904
|
<div
|
|
1880
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1905
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
|
|
1881
1906
|
style={columnsCssVars()}
|
|
1882
1907
|
{...{}}
|
|
1883
1908
|
>
|
|
@@ -1906,9 +1931,10 @@ function Columns(props) {
|
|
|
1906
1931
|
/></Dynamic_renderer_default>;
|
|
1907
1932
|
}}</For4>
|
|
1908
1933
|
</div>
|
|
1909
|
-
<style>{`.div-
|
|
1934
|
+
<style>{`.div-7612d942 {
|
|
1910
1935
|
display: flex;
|
|
1911
1936
|
line-height: normal;
|
|
1937
|
+
height: 100%;
|
|
1912
1938
|
}`}</style>
|
|
1913
1939
|
</>;
|
|
1914
1940
|
}
|
|
@@ -2085,7 +2111,7 @@ function SectionComponent(props) {
|
|
|
2085
2111
|
var section_default = SectionComponent;
|
|
2086
2112
|
|
|
2087
2113
|
// src/blocks/symbol/symbol.tsx
|
|
2088
|
-
import { onMount as onMount9, on as
|
|
2114
|
+
import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
2089
2115
|
|
|
2090
2116
|
// src/components/content-variants/content-variants.tsx
|
|
2091
2117
|
import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -3797,7 +3823,7 @@ var componentInfo12 = {
|
|
|
3797
3823
|
};
|
|
3798
3824
|
|
|
3799
3825
|
// src/blocks/custom-code/custom-code.tsx
|
|
3800
|
-
import { onMount as onMount5, on as
|
|
3826
|
+
import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
3801
3827
|
function CustomCode(props) {
|
|
3802
3828
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
3803
3829
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -3847,7 +3873,7 @@ function CustomCode(props) {
|
|
|
3847
3873
|
runScripts();
|
|
3848
3874
|
}
|
|
3849
3875
|
}
|
|
3850
|
-
|
|
3876
|
+
createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
3851
3877
|
return <><div
|
|
3852
3878
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
3853
3879
|
ref={elementRef}
|
|
@@ -3875,7 +3901,7 @@ var componentInfo13 = {
|
|
|
3875
3901
|
};
|
|
3876
3902
|
|
|
3877
3903
|
// src/blocks/embed/embed.tsx
|
|
3878
|
-
import { on as
|
|
3904
|
+
import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
3879
3905
|
|
|
3880
3906
|
// src/blocks/embed/helpers.ts
|
|
3881
3907
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -3917,8 +3943,8 @@ function Embed(props) {
|
|
|
3917
3943
|
findAndRunScripts();
|
|
3918
3944
|
}
|
|
3919
3945
|
}
|
|
3920
|
-
|
|
3921
|
-
|
|
3946
|
+
createEffect5(
|
|
3947
|
+
on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
3922
3948
|
);
|
|
3923
3949
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
3924
3950
|
}
|
|
@@ -5009,8 +5035,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
5009
5035
|
import {
|
|
5010
5036
|
Show as Show14,
|
|
5011
5037
|
onMount as onMount7,
|
|
5012
|
-
on as
|
|
5013
|
-
createEffect as
|
|
5038
|
+
on as on6,
|
|
5039
|
+
createEffect as createEffect6,
|
|
5014
5040
|
createMemo as createMemo16,
|
|
5015
5041
|
createSignal as createSignal16
|
|
5016
5042
|
} from "solid-js";
|
|
@@ -5022,7 +5048,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5022
5048
|
}
|
|
5023
5049
|
|
|
5024
5050
|
// src/constants/sdk-version.ts
|
|
5025
|
-
var SDK_VERSION = "4.0.
|
|
5051
|
+
var SDK_VERSION = "4.0.6";
|
|
5026
5052
|
|
|
5027
5053
|
// src/helpers/sdk-headers.ts
|
|
5028
5054
|
var getSdkHeaders = () => ({
|
|
@@ -5176,7 +5202,7 @@ var generateContentUrl = (options) => {
|
|
|
5176
5202
|
}
|
|
5177
5203
|
if (enrich)
|
|
5178
5204
|
url.searchParams.set("enrich", String(enrich));
|
|
5179
|
-
url.searchParams.set("omit", omit2
|
|
5205
|
+
url.searchParams.set("omit", omit2 ?? "meta.componentsUsed");
|
|
5180
5206
|
if (fields) {
|
|
5181
5207
|
url.searchParams.set("fields", fields);
|
|
5182
5208
|
}
|
|
@@ -6107,15 +6133,15 @@ function EnableEditor(props) {
|
|
|
6107
6133
|
mergeNewContent(props.content);
|
|
6108
6134
|
}
|
|
6109
6135
|
}
|
|
6110
|
-
|
|
6136
|
+
createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
6111
6137
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
6112
6138
|
() => props.builderContextSignal.rootState
|
|
6113
6139
|
);
|
|
6114
6140
|
function onUpdateFn_1() {
|
|
6115
6141
|
emitStateUpdate();
|
|
6116
6142
|
}
|
|
6117
|
-
|
|
6118
|
-
|
|
6143
|
+
createEffect6(
|
|
6144
|
+
on6(
|
|
6119
6145
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
6120
6146
|
onUpdateFn_1
|
|
6121
6147
|
)
|
|
@@ -6126,7 +6152,7 @@ function EnableEditor(props) {
|
|
|
6126
6152
|
mergeNewRootState(props.data);
|
|
6127
6153
|
}
|
|
6128
6154
|
}
|
|
6129
|
-
|
|
6155
|
+
createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
6130
6156
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
6131
6157
|
function onUpdateFn_3() {
|
|
6132
6158
|
if (props.locale) {
|
|
@@ -6135,7 +6161,7 @@ function EnableEditor(props) {
|
|
|
6135
6161
|
});
|
|
6136
6162
|
}
|
|
6137
6163
|
}
|
|
6138
|
-
|
|
6164
|
+
createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
6139
6165
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
6140
6166
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
6141
6167
|
><Dynamic5
|
|
@@ -6513,7 +6539,7 @@ function Symbol(props) {
|
|
|
6513
6539
|
function onUpdateFn_0() {
|
|
6514
6540
|
setContent();
|
|
6515
6541
|
}
|
|
6516
|
-
|
|
6542
|
+
createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
6517
6543
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
6518
6544
|
nonce={props.builderContext.nonce}
|
|
6519
6545
|
isNestedRender={true}
|