@builder.io/sdk-solid 4.0.4 → 4.0.5
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 -3
- package/lib/browser/dev.jsx +46 -20
- package/lib/browser/index.js +10 -3
- package/lib/browser/index.jsx +46 -20
- package/lib/edge/dev.js +10 -3
- package/lib/edge/dev.jsx +46 -20
- package/lib/edge/index.js +10 -3
- package/lib/edge/index.jsx +46 -20
- package/lib/node/dev.js +10 -3
- package/lib/node/dev.jsx +46 -20
- package/lib/node/index.js +10 -3
- package/lib/node/index.jsx +46 -20
- package/package.json +1 -1
package/lib/edge/dev.jsx
CHANGED
|
@@ -4379,7 +4379,14 @@ function BlockWrapper(props) {
|
|
|
4379
4379
|
var Block_wrapper_default = BlockWrapper;
|
|
4380
4380
|
|
|
4381
4381
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
4382
|
-
import {
|
|
4382
|
+
import {
|
|
4383
|
+
Show as Show4,
|
|
4384
|
+
For,
|
|
4385
|
+
on,
|
|
4386
|
+
createEffect,
|
|
4387
|
+
createMemo as createMemo3,
|
|
4388
|
+
createSignal as createSignal3
|
|
4389
|
+
} from "solid-js";
|
|
4383
4390
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
4384
4391
|
|
|
4385
4392
|
// src/components/block/components/interactive-element.tsx
|
|
@@ -4463,9 +4470,27 @@ var getWrapperProps = ({
|
|
|
4463
4470
|
|
|
4464
4471
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
4465
4472
|
function ComponentRef(props) {
|
|
4473
|
+
const [shouldUpdate, setShouldUpdate] = createSignal3(false);
|
|
4466
4474
|
const [Wrapper, setWrapper] = createSignal3(
|
|
4467
4475
|
props.isInteractive ? interactive_element_default : props.componentRef
|
|
4468
4476
|
);
|
|
4477
|
+
const onUpdateFn_0_props_componentOptions = createMemo3(
|
|
4478
|
+
() => props.componentOptions
|
|
4479
|
+
);
|
|
4480
|
+
const onUpdateFn_0_props_blockChildren = createMemo3(
|
|
4481
|
+
() => props.blockChildren
|
|
4482
|
+
);
|
|
4483
|
+
function onUpdateFn_0() {
|
|
4484
|
+
}
|
|
4485
|
+
createEffect(
|
|
4486
|
+
on(
|
|
4487
|
+
() => [
|
|
4488
|
+
onUpdateFn_0_props_componentOptions(),
|
|
4489
|
+
onUpdateFn_0_props_blockChildren()
|
|
4490
|
+
],
|
|
4491
|
+
onUpdateFn_0
|
|
4492
|
+
)
|
|
4493
|
+
);
|
|
4469
4494
|
return <><Show4 when={props.componentRef}><Dynamic3
|
|
4470
4495
|
{...getWrapperProps({
|
|
4471
4496
|
componentOptions: props.componentOptions,
|
|
@@ -4663,7 +4688,7 @@ function Block(props) {
|
|
|
4663
4688
|
var Block_default = Block;
|
|
4664
4689
|
|
|
4665
4690
|
// src/components/blocks/blocks-wrapper.tsx
|
|
4666
|
-
import { onMount as onMount3, on as
|
|
4691
|
+
import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
4667
4692
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
4668
4693
|
function BlocksWrapper(props) {
|
|
4669
4694
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -4716,7 +4741,7 @@ function BlocksWrapper(props) {
|
|
|
4716
4741
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
4717
4742
|
function onUpdateFn_0() {
|
|
4718
4743
|
}
|
|
4719
|
-
|
|
4744
|
+
createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
4720
4745
|
return <>
|
|
4721
4746
|
<Dynamic4
|
|
4722
4747
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -4896,7 +4921,7 @@ function Columns(props) {
|
|
|
4896
4921
|
}
|
|
4897
4922
|
return <>
|
|
4898
4923
|
<div
|
|
4899
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
4924
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
|
|
4900
4925
|
style={columnsCssVars()}
|
|
4901
4926
|
{...{}}
|
|
4902
4927
|
>
|
|
@@ -4925,9 +4950,10 @@ function Columns(props) {
|
|
|
4925
4950
|
/></Dynamic_renderer_default>;
|
|
4926
4951
|
}}</For4>
|
|
4927
4952
|
</div>
|
|
4928
|
-
<style>{`.div-
|
|
4953
|
+
<style>{`.div-7612d942 {
|
|
4929
4954
|
display: flex;
|
|
4930
4955
|
line-height: normal;
|
|
4956
|
+
height: 100%;
|
|
4931
4957
|
}`}</style>
|
|
4932
4958
|
</>;
|
|
4933
4959
|
}
|
|
@@ -5105,7 +5131,7 @@ function SectionComponent(props) {
|
|
|
5105
5131
|
var section_default = SectionComponent;
|
|
5106
5132
|
|
|
5107
5133
|
// src/blocks/symbol/symbol.tsx
|
|
5108
|
-
import { onMount as onMount9, on as
|
|
5134
|
+
import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
5109
5135
|
|
|
5110
5136
|
// src/components/content-variants/content-variants.tsx
|
|
5111
5137
|
import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -6818,7 +6844,7 @@ var componentInfo12 = {
|
|
|
6818
6844
|
};
|
|
6819
6845
|
|
|
6820
6846
|
// src/blocks/custom-code/custom-code.tsx
|
|
6821
|
-
import { onMount as onMount5, on as
|
|
6847
|
+
import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
6822
6848
|
function CustomCode(props) {
|
|
6823
6849
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
6824
6850
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -6868,7 +6894,7 @@ function CustomCode(props) {
|
|
|
6868
6894
|
runScripts();
|
|
6869
6895
|
}
|
|
6870
6896
|
}
|
|
6871
|
-
|
|
6897
|
+
createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
6872
6898
|
return <><div
|
|
6873
6899
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
6874
6900
|
ref={elementRef}
|
|
@@ -6896,7 +6922,7 @@ var componentInfo13 = {
|
|
|
6896
6922
|
};
|
|
6897
6923
|
|
|
6898
6924
|
// src/blocks/embed/embed.tsx
|
|
6899
|
-
import { on as
|
|
6925
|
+
import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
6900
6926
|
|
|
6901
6927
|
// src/blocks/embed/helpers.ts
|
|
6902
6928
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -6938,8 +6964,8 @@ function Embed(props) {
|
|
|
6938
6964
|
findAndRunScripts();
|
|
6939
6965
|
}
|
|
6940
6966
|
}
|
|
6941
|
-
|
|
6942
|
-
|
|
6967
|
+
createEffect5(
|
|
6968
|
+
on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
6943
6969
|
);
|
|
6944
6970
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
6945
6971
|
}
|
|
@@ -8031,8 +8057,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
8031
8057
|
import {
|
|
8032
8058
|
Show as Show14,
|
|
8033
8059
|
onMount as onMount7,
|
|
8034
|
-
on as
|
|
8035
|
-
createEffect as
|
|
8060
|
+
on as on6,
|
|
8061
|
+
createEffect as createEffect6,
|
|
8036
8062
|
createMemo as createMemo16,
|
|
8037
8063
|
createSignal as createSignal16
|
|
8038
8064
|
} from "solid-js";
|
|
@@ -8044,7 +8070,7 @@ function getPreviewContent(_searchParams) {
|
|
|
8044
8070
|
}
|
|
8045
8071
|
|
|
8046
8072
|
// src/constants/sdk-version.ts
|
|
8047
|
-
var SDK_VERSION = "4.0.
|
|
8073
|
+
var SDK_VERSION = "4.0.5";
|
|
8048
8074
|
|
|
8049
8075
|
// src/helpers/sdk-headers.ts
|
|
8050
8076
|
var getSdkHeaders = () => ({
|
|
@@ -9136,15 +9162,15 @@ function EnableEditor(props) {
|
|
|
9136
9162
|
mergeNewContent(props.content);
|
|
9137
9163
|
}
|
|
9138
9164
|
}
|
|
9139
|
-
|
|
9165
|
+
createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
9140
9166
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
9141
9167
|
() => props.builderContextSignal.rootState
|
|
9142
9168
|
);
|
|
9143
9169
|
function onUpdateFn_1() {
|
|
9144
9170
|
emitStateUpdate();
|
|
9145
9171
|
}
|
|
9146
|
-
|
|
9147
|
-
|
|
9172
|
+
createEffect6(
|
|
9173
|
+
on6(
|
|
9148
9174
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
9149
9175
|
onUpdateFn_1
|
|
9150
9176
|
)
|
|
@@ -9155,7 +9181,7 @@ function EnableEditor(props) {
|
|
|
9155
9181
|
mergeNewRootState(props.data);
|
|
9156
9182
|
}
|
|
9157
9183
|
}
|
|
9158
|
-
|
|
9184
|
+
createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
9159
9185
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
9160
9186
|
function onUpdateFn_3() {
|
|
9161
9187
|
if (props.locale) {
|
|
@@ -9164,7 +9190,7 @@ function EnableEditor(props) {
|
|
|
9164
9190
|
});
|
|
9165
9191
|
}
|
|
9166
9192
|
}
|
|
9167
|
-
|
|
9193
|
+
createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
9168
9194
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
9169
9195
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
9170
9196
|
><Dynamic5
|
|
@@ -9542,7 +9568,7 @@ function Symbol2(props) {
|
|
|
9542
9568
|
function onUpdateFn_0() {
|
|
9543
9569
|
setContent();
|
|
9544
9570
|
}
|
|
9545
|
-
|
|
9571
|
+
createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
9546
9572
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
9547
9573
|
nonce={props.builderContext.nonce}
|
|
9548
9574
|
isNestedRender={true}
|
package/lib/edge/index.js
CHANGED
|
@@ -4477,7 +4477,13 @@ var getWrapperProps = ({
|
|
|
4477
4477
|
|
|
4478
4478
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
4479
4479
|
function ComponentRef(props) {
|
|
4480
|
+
createSignal(false);
|
|
4480
4481
|
const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
|
|
4482
|
+
const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
|
|
4483
|
+
const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
|
|
4484
|
+
function onUpdateFn_0() {
|
|
4485
|
+
}
|
|
4486
|
+
createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
|
|
4481
4487
|
return createComponent(Show, {
|
|
4482
4488
|
get when() {
|
|
4483
4489
|
return props.componentRef;
|
|
@@ -4961,9 +4967,10 @@ var getColumnsClass = (id2) => {
|
|
|
4961
4967
|
|
|
4962
4968
|
// src/blocks/columns/columns.tsx
|
|
4963
4969
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4964
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4970
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
|
|
4965
4971
|
display: flex;
|
|
4966
4972
|
line-height: normal;
|
|
4973
|
+
height: 100%;
|
|
4967
4974
|
}`);
|
|
4968
4975
|
function Columns(props) {
|
|
4969
4976
|
const gutterSize = createMemo(() => {
|
|
@@ -5090,7 +5097,7 @@ function Columns(props) {
|
|
|
5090
5097
|
const _el$ = _tmpl$3();
|
|
5091
5098
|
spread(_el$, mergeProps({
|
|
5092
5099
|
get ["class"]() {
|
|
5093
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
5100
|
+
return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
|
|
5094
5101
|
},
|
|
5095
5102
|
get style() {
|
|
5096
5103
|
return columnsCssVars();
|
|
@@ -8521,7 +8528,7 @@ function getPreviewContent(_searchParams) {
|
|
|
8521
8528
|
}
|
|
8522
8529
|
|
|
8523
8530
|
// src/constants/sdk-version.ts
|
|
8524
|
-
var SDK_VERSION = "4.0.
|
|
8531
|
+
var SDK_VERSION = "4.0.5";
|
|
8525
8532
|
|
|
8526
8533
|
// src/helpers/sdk-headers.ts
|
|
8527
8534
|
var getSdkHeaders = () => ({
|
package/lib/edge/index.jsx
CHANGED
|
@@ -4372,7 +4372,14 @@ function BlockWrapper(props) {
|
|
|
4372
4372
|
var Block_wrapper_default = BlockWrapper;
|
|
4373
4373
|
|
|
4374
4374
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
4375
|
-
import {
|
|
4375
|
+
import {
|
|
4376
|
+
Show as Show4,
|
|
4377
|
+
For,
|
|
4378
|
+
on,
|
|
4379
|
+
createEffect,
|
|
4380
|
+
createMemo as createMemo3,
|
|
4381
|
+
createSignal as createSignal3
|
|
4382
|
+
} from "solid-js";
|
|
4376
4383
|
import { Dynamic as Dynamic3 } from "solid-js/web";
|
|
4377
4384
|
|
|
4378
4385
|
// src/components/block/components/interactive-element.tsx
|
|
@@ -4456,9 +4463,27 @@ var getWrapperProps = ({
|
|
|
4456
4463
|
|
|
4457
4464
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
4458
4465
|
function ComponentRef(props) {
|
|
4466
|
+
const [shouldUpdate, setShouldUpdate] = createSignal3(false);
|
|
4459
4467
|
const [Wrapper, setWrapper] = createSignal3(
|
|
4460
4468
|
props.isInteractive ? interactive_element_default : props.componentRef
|
|
4461
4469
|
);
|
|
4470
|
+
const onUpdateFn_0_props_componentOptions = createMemo3(
|
|
4471
|
+
() => props.componentOptions
|
|
4472
|
+
);
|
|
4473
|
+
const onUpdateFn_0_props_blockChildren = createMemo3(
|
|
4474
|
+
() => props.blockChildren
|
|
4475
|
+
);
|
|
4476
|
+
function onUpdateFn_0() {
|
|
4477
|
+
}
|
|
4478
|
+
createEffect(
|
|
4479
|
+
on(
|
|
4480
|
+
() => [
|
|
4481
|
+
onUpdateFn_0_props_componentOptions(),
|
|
4482
|
+
onUpdateFn_0_props_blockChildren()
|
|
4483
|
+
],
|
|
4484
|
+
onUpdateFn_0
|
|
4485
|
+
)
|
|
4486
|
+
);
|
|
4462
4487
|
return <><Show4 when={props.componentRef}><Dynamic3
|
|
4463
4488
|
{...getWrapperProps({
|
|
4464
4489
|
componentOptions: props.componentOptions,
|
|
@@ -4656,7 +4681,7 @@ function Block(props) {
|
|
|
4656
4681
|
var Block_default = Block;
|
|
4657
4682
|
|
|
4658
4683
|
// src/components/blocks/blocks-wrapper.tsx
|
|
4659
|
-
import { onMount as onMount3, on as
|
|
4684
|
+
import { onMount as onMount3, on as on3, createEffect as createEffect3, createMemo as createMemo6, createSignal as createSignal6 } from "solid-js";
|
|
4660
4685
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
4661
4686
|
function BlocksWrapper(props) {
|
|
4662
4687
|
const [shouldUpdate, setShouldUpdate] = createSignal6(false);
|
|
@@ -4709,7 +4734,7 @@ function BlocksWrapper(props) {
|
|
|
4709
4734
|
const onUpdateFn_0_props_blocks = createMemo6(() => props.blocks);
|
|
4710
4735
|
function onUpdateFn_0() {
|
|
4711
4736
|
}
|
|
4712
|
-
|
|
4737
|
+
createEffect3(on3(() => [onUpdateFn_0_props_blocks()], onUpdateFn_0));
|
|
4713
4738
|
return <>
|
|
4714
4739
|
<Dynamic4
|
|
4715
4740
|
class={className() + " dynamic-023c60f2"}
|
|
@@ -4889,7 +4914,7 @@ function Columns(props) {
|
|
|
4889
4914
|
}
|
|
4890
4915
|
return <>
|
|
4891
4916
|
<div
|
|
4892
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
4917
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-7612d942"}
|
|
4893
4918
|
style={columnsCssVars()}
|
|
4894
4919
|
{...{}}
|
|
4895
4920
|
>
|
|
@@ -4918,9 +4943,10 @@ function Columns(props) {
|
|
|
4918
4943
|
/></Dynamic_renderer_default>;
|
|
4919
4944
|
}}</For4>
|
|
4920
4945
|
</div>
|
|
4921
|
-
<style>{`.div-
|
|
4946
|
+
<style>{`.div-7612d942 {
|
|
4922
4947
|
display: flex;
|
|
4923
4948
|
line-height: normal;
|
|
4949
|
+
height: 100%;
|
|
4924
4950
|
}`}</style>
|
|
4925
4951
|
</>;
|
|
4926
4952
|
}
|
|
@@ -5097,7 +5123,7 @@ function SectionComponent(props) {
|
|
|
5097
5123
|
var section_default = SectionComponent;
|
|
5098
5124
|
|
|
5099
5125
|
// src/blocks/symbol/symbol.tsx
|
|
5100
|
-
import { onMount as onMount9, on as
|
|
5126
|
+
import { onMount as onMount9, on as on7, createEffect as createEffect7, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
5101
5127
|
|
|
5102
5128
|
// src/components/content-variants/content-variants.tsx
|
|
5103
5129
|
import { Show as Show16, For as For9, onMount as onMount8, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
@@ -6809,7 +6835,7 @@ var componentInfo12 = {
|
|
|
6809
6835
|
};
|
|
6810
6836
|
|
|
6811
6837
|
// src/blocks/custom-code/custom-code.tsx
|
|
6812
|
-
import { onMount as onMount5, on as
|
|
6838
|
+
import { onMount as onMount5, on as on4, createEffect as createEffect4, createMemo as createMemo12, createSignal as createSignal12 } from "solid-js";
|
|
6813
6839
|
function CustomCode(props) {
|
|
6814
6840
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
6815
6841
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
@@ -6859,7 +6885,7 @@ function CustomCode(props) {
|
|
|
6859
6885
|
runScripts();
|
|
6860
6886
|
}
|
|
6861
6887
|
}
|
|
6862
|
-
|
|
6888
|
+
createEffect4(on4(() => [onUpdateFn_0_props_code()], onUpdateFn_0));
|
|
6863
6889
|
return <><div
|
|
6864
6890
|
class={"builder-custom-code" + (props.replaceNodes ? " replace-nodes" : "")}
|
|
6865
6891
|
ref={elementRef}
|
|
@@ -6887,7 +6913,7 @@ var componentInfo13 = {
|
|
|
6887
6913
|
};
|
|
6888
6914
|
|
|
6889
6915
|
// src/blocks/embed/embed.tsx
|
|
6890
|
-
import { on as
|
|
6916
|
+
import { on as on5, createEffect as createEffect5, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
6891
6917
|
|
|
6892
6918
|
// src/blocks/embed/helpers.ts
|
|
6893
6919
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -6929,8 +6955,8 @@ function Embed(props) {
|
|
|
6929
6955
|
findAndRunScripts();
|
|
6930
6956
|
}
|
|
6931
6957
|
}
|
|
6932
|
-
|
|
6933
|
-
|
|
6958
|
+
createEffect5(
|
|
6959
|
+
on5(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
6934
6960
|
);
|
|
6935
6961
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
6936
6962
|
}
|
|
@@ -8021,8 +8047,8 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
8021
8047
|
import {
|
|
8022
8048
|
Show as Show14,
|
|
8023
8049
|
onMount as onMount7,
|
|
8024
|
-
on as
|
|
8025
|
-
createEffect as
|
|
8050
|
+
on as on6,
|
|
8051
|
+
createEffect as createEffect6,
|
|
8026
8052
|
createMemo as createMemo16,
|
|
8027
8053
|
createSignal as createSignal16
|
|
8028
8054
|
} from "solid-js";
|
|
@@ -8034,7 +8060,7 @@ function getPreviewContent(_searchParams) {
|
|
|
8034
8060
|
}
|
|
8035
8061
|
|
|
8036
8062
|
// src/constants/sdk-version.ts
|
|
8037
|
-
var SDK_VERSION = "4.0.
|
|
8063
|
+
var SDK_VERSION = "4.0.5";
|
|
8038
8064
|
|
|
8039
8065
|
// src/helpers/sdk-headers.ts
|
|
8040
8066
|
var getSdkHeaders = () => ({
|
|
@@ -9119,15 +9145,15 @@ function EnableEditor(props) {
|
|
|
9119
9145
|
mergeNewContent(props.content);
|
|
9120
9146
|
}
|
|
9121
9147
|
}
|
|
9122
|
-
|
|
9148
|
+
createEffect6(on6(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
9123
9149
|
const onUpdateFn_1_props_builderContextSignal_rootState = createMemo16(
|
|
9124
9150
|
() => props.builderContextSignal.rootState
|
|
9125
9151
|
);
|
|
9126
9152
|
function onUpdateFn_1() {
|
|
9127
9153
|
emitStateUpdate();
|
|
9128
9154
|
}
|
|
9129
|
-
|
|
9130
|
-
|
|
9155
|
+
createEffect6(
|
|
9156
|
+
on6(
|
|
9131
9157
|
() => [onUpdateFn_1_props_builderContextSignal_rootState()],
|
|
9132
9158
|
onUpdateFn_1
|
|
9133
9159
|
)
|
|
@@ -9138,7 +9164,7 @@ function EnableEditor(props) {
|
|
|
9138
9164
|
mergeNewRootState(props.data);
|
|
9139
9165
|
}
|
|
9140
9166
|
}
|
|
9141
|
-
|
|
9167
|
+
createEffect6(on6(() => [onUpdateFn_2_props_data()], onUpdateFn_2));
|
|
9142
9168
|
const onUpdateFn_3_props_locale = createMemo16(() => props.locale);
|
|
9143
9169
|
function onUpdateFn_3() {
|
|
9144
9170
|
if (props.locale) {
|
|
@@ -9147,7 +9173,7 @@ function EnableEditor(props) {
|
|
|
9147
9173
|
});
|
|
9148
9174
|
}
|
|
9149
9175
|
}
|
|
9150
|
-
|
|
9176
|
+
createEffect6(on6(() => [onUpdateFn_3_props_locale()], onUpdateFn_3));
|
|
9151
9177
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show14
|
|
9152
9178
|
when={props.builderContextSignal.content || needsElementRefDivForEditing()}
|
|
9153
9179
|
><Dynamic5
|
|
@@ -9525,7 +9551,7 @@ function Symbol2(props) {
|
|
|
9525
9551
|
function onUpdateFn_0() {
|
|
9526
9552
|
setContent();
|
|
9527
9553
|
}
|
|
9528
|
-
|
|
9554
|
+
createEffect7(on7(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
9529
9555
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
9530
9556
|
nonce={props.builderContext.nonce}
|
|
9531
9557
|
isNestedRender={true}
|
package/lib/node/dev.js
CHANGED
|
@@ -1474,7 +1474,13 @@ var getWrapperProps = ({
|
|
|
1474
1474
|
|
|
1475
1475
|
// src/components/block/components/component-ref/component-ref.tsx
|
|
1476
1476
|
function ComponentRef(props) {
|
|
1477
|
+
createSignal(false);
|
|
1477
1478
|
const [Wrapper, setWrapper] = createSignal(props.isInteractive ? interactive_element_default : props.componentRef);
|
|
1479
|
+
const onUpdateFn_0_props_componentOptions = createMemo(() => props.componentOptions);
|
|
1480
|
+
const onUpdateFn_0_props_blockChildren = createMemo(() => props.blockChildren);
|
|
1481
|
+
function onUpdateFn_0() {
|
|
1482
|
+
}
|
|
1483
|
+
createEffect(on(() => [onUpdateFn_0_props_componentOptions(), onUpdateFn_0_props_blockChildren()], onUpdateFn_0));
|
|
1478
1484
|
return createComponent(Show, {
|
|
1479
1485
|
get when() {
|
|
1480
1486
|
return props.componentRef;
|
|
@@ -1958,9 +1964,10 @@ var getColumnsClass = (id) => {
|
|
|
1958
1964
|
|
|
1959
1965
|
// src/blocks/columns/columns.tsx
|
|
1960
1966
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1961
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1967
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-7612d942 {
|
|
1962
1968
|
display: flex;
|
|
1963
1969
|
line-height: normal;
|
|
1970
|
+
height: 100%;
|
|
1964
1971
|
}`);
|
|
1965
1972
|
function Columns(props) {
|
|
1966
1973
|
const gutterSize = createMemo(() => {
|
|
@@ -2087,7 +2094,7 @@ function Columns(props) {
|
|
|
2087
2094
|
const _el$ = _tmpl$3();
|
|
2088
2095
|
spread(_el$, mergeProps({
|
|
2089
2096
|
get ["class"]() {
|
|
2090
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
2097
|
+
return getColumnsClass(props.builderBlock?.id) + " div-7612d942";
|
|
2091
2098
|
},
|
|
2092
2099
|
get style() {
|
|
2093
2100
|
return columnsCssVars();
|
|
@@ -5521,7 +5528,7 @@ function getPreviewContent(_searchParams) {
|
|
|
5521
5528
|
}
|
|
5522
5529
|
|
|
5523
5530
|
// src/constants/sdk-version.ts
|
|
5524
|
-
var SDK_VERSION = "4.0.
|
|
5531
|
+
var SDK_VERSION = "4.0.5";
|
|
5525
5532
|
|
|
5526
5533
|
// src/helpers/sdk-headers.ts
|
|
5527
5534
|
var getSdkHeaders = () => ({
|
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.5";
|
|
5036
5062
|
|
|
5037
5063
|
// src/helpers/sdk-headers.ts
|
|
5038
5064
|
var getSdkHeaders = () => ({
|
|
@@ -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}
|