@builder.io/sdk-solid 1.0.13 → 1.0.14
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 +15 -29
- package/lib/browser/dev.jsx +18 -34
- package/lib/browser/index.js +15 -29
- package/lib/browser/index.jsx +18 -34
- package/lib/edge/dev.js +15 -29
- package/lib/edge/dev.jsx +18 -34
- package/lib/edge/index.js +15 -29
- package/lib/edge/index.jsx +18 -34
- package/lib/node/dev.js +15 -29
- package/lib/node/dev.jsx +18 -34
- package/lib/node/index.js +15 -29
- package/lib/node/index.jsx +18 -34
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -4446,7 +4446,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4446
4446
|
}
|
|
4447
4447
|
|
|
4448
4448
|
// src/constants/sdk-version.ts
|
|
4449
|
-
var SDK_VERSION = "1.0.
|
|
4449
|
+
var SDK_VERSION = "1.0.14";
|
|
4450
4450
|
|
|
4451
4451
|
// src/functions/register.ts
|
|
4452
4452
|
var registry = {};
|
|
@@ -4645,10 +4645,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
4645
4645
|
|
|
4646
4646
|
// src/components/content/components/enable-editor.tsx
|
|
4647
4647
|
function EnableEditor(props) {
|
|
4648
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal(0);
|
|
4649
|
-
createSignal(true);
|
|
4650
|
-
createSignal(0);
|
|
4651
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal(false);
|
|
4652
4648
|
const [ContentWrapper, setContentWrapper] = createSignal(props.contentWrapper || "div");
|
|
4653
4649
|
const [httpReqsData, setHttpReqsData] = createSignal({});
|
|
4654
4650
|
const [clicked, setClicked] = createSignal(false);
|
|
@@ -4704,7 +4700,6 @@ function EnableEditor(props) {
|
|
|
4704
4700
|
breakpoints
|
|
4705
4701
|
}
|
|
4706
4702
|
});
|
|
4707
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4708
4703
|
}
|
|
4709
4704
|
},
|
|
4710
4705
|
animation: (animation) => {
|
|
@@ -4712,7 +4707,6 @@ function EnableEditor(props) {
|
|
|
4712
4707
|
},
|
|
4713
4708
|
contentUpdate: (newContent) => {
|
|
4714
4709
|
mergeNewContent(newContent);
|
|
4715
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4716
4710
|
}
|
|
4717
4711
|
}
|
|
4718
4712
|
})(event);
|
|
@@ -4804,7 +4798,6 @@ function EnableEditor(props) {
|
|
|
4804
4798
|
onMount(() => {
|
|
4805
4799
|
if (isBrowser()) {
|
|
4806
4800
|
if (isEditing()) {
|
|
4807
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4808
4801
|
window.addEventListener("message", processMessage);
|
|
4809
4802
|
registerInsertMenu();
|
|
4810
4803
|
setupBrowserForEditing({
|
|
@@ -4871,41 +4864,37 @@ function EnableEditor(props) {
|
|
|
4871
4864
|
}
|
|
4872
4865
|
}
|
|
4873
4866
|
createEffect(on(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
4874
|
-
const
|
|
4867
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4875
4868
|
function onUpdateFn_1() {
|
|
4876
|
-
}
|
|
4877
|
-
createEffect(on(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1));
|
|
4878
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4879
|
-
function onUpdateFn_2() {
|
|
4880
4869
|
evaluateJsCode();
|
|
4881
4870
|
}
|
|
4882
|
-
createEffect(on(() => [
|
|
4883
|
-
const
|
|
4884
|
-
function
|
|
4871
|
+
createEffect(on(() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()], onUpdateFn_1));
|
|
4872
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
4873
|
+
function onUpdateFn_2() {
|
|
4885
4874
|
runHttpRequests();
|
|
4886
4875
|
}
|
|
4887
|
-
createEffect(on(() => [
|
|
4888
|
-
const
|
|
4889
|
-
function
|
|
4876
|
+
createEffect(on(() => [onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()], onUpdateFn_2));
|
|
4877
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo(() => props.builderContextSignal.rootState);
|
|
4878
|
+
function onUpdateFn_3() {
|
|
4890
4879
|
emitStateUpdate();
|
|
4891
4880
|
}
|
|
4892
|
-
createEffect(on(() => [
|
|
4893
|
-
const
|
|
4894
|
-
function
|
|
4881
|
+
createEffect(on(() => [onUpdateFn_3_props_builderContextSignal_rootState()], onUpdateFn_3));
|
|
4882
|
+
const onUpdateFn_4_props_data = createMemo(() => props.data);
|
|
4883
|
+
function onUpdateFn_4() {
|
|
4895
4884
|
if (props.data) {
|
|
4896
4885
|
mergeNewRootState(props.data);
|
|
4897
4886
|
}
|
|
4898
4887
|
}
|
|
4899
|
-
createEffect(on(() => [
|
|
4900
|
-
const
|
|
4901
|
-
function
|
|
4888
|
+
createEffect(on(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
4889
|
+
const onUpdateFn_5_props_locale = createMemo(() => props.locale);
|
|
4890
|
+
function onUpdateFn_5() {
|
|
4902
4891
|
if (props.locale) {
|
|
4903
4892
|
mergeNewRootState({
|
|
4904
4893
|
locale: props.locale
|
|
4905
4894
|
});
|
|
4906
4895
|
}
|
|
4907
4896
|
}
|
|
4908
|
-
createEffect(on(() => [
|
|
4897
|
+
createEffect(on(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
4909
4898
|
return createComponent(builder_context_default.Provider, {
|
|
4910
4899
|
get value() {
|
|
4911
4900
|
return props.builderContextSignal;
|
|
@@ -4921,9 +4910,6 @@ function EnableEditor(props) {
|
|
|
4921
4910
|
return `variant-${props.content?.testVariationId || props.content?.id}`;
|
|
4922
4911
|
}
|
|
4923
4912
|
}, {}, {
|
|
4924
|
-
get key() {
|
|
4925
|
-
return forceReRenderCount();
|
|
4926
|
-
},
|
|
4927
4913
|
ref(r$) {
|
|
4928
4914
|
const _ref$ = elementRef;
|
|
4929
4915
|
typeof _ref$ === "function" ? _ref$(r$) : elementRef = r$;
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -4029,7 +4029,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4029
4029
|
}
|
|
4030
4030
|
|
|
4031
4031
|
// src/constants/sdk-version.ts
|
|
4032
|
-
var SDK_VERSION = "1.0.
|
|
4032
|
+
var SDK_VERSION = "1.0.14";
|
|
4033
4033
|
|
|
4034
4034
|
// src/functions/register.ts
|
|
4035
4035
|
var registry = {};
|
|
@@ -4228,10 +4228,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
4228
4228
|
|
|
4229
4229
|
// src/components/content/components/enable-editor.tsx
|
|
4230
4230
|
function EnableEditor(props) {
|
|
4231
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal12(0);
|
|
4232
|
-
const [firstRender, setFirstRender] = createSignal12(true);
|
|
4233
|
-
const [lastUpdated, setLastUpdated] = createSignal12(0);
|
|
4234
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal12(false);
|
|
4235
4231
|
const [ContentWrapper, setContentWrapper] = createSignal12(
|
|
4236
4232
|
props.contentWrapper || "div"
|
|
4237
4233
|
);
|
|
@@ -4286,7 +4282,6 @@ function EnableEditor(props) {
|
|
|
4286
4282
|
breakpoints
|
|
4287
4283
|
}
|
|
4288
4284
|
});
|
|
4289
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4290
4285
|
}
|
|
4291
4286
|
},
|
|
4292
4287
|
animation: (animation) => {
|
|
@@ -4294,7 +4289,6 @@ function EnableEditor(props) {
|
|
|
4294
4289
|
},
|
|
4295
4290
|
contentUpdate: (newContent) => {
|
|
4296
4291
|
mergeNewContent(newContent);
|
|
4297
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4298
4292
|
}
|
|
4299
4293
|
}
|
|
4300
4294
|
})(event);
|
|
@@ -4393,7 +4387,6 @@ function EnableEditor(props) {
|
|
|
4393
4387
|
onMount3(() => {
|
|
4394
4388
|
if (isBrowser()) {
|
|
4395
4389
|
if (isEditing()) {
|
|
4396
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4397
4390
|
window.addEventListener("message", processMessage);
|
|
4398
4391
|
registerInsertMenu();
|
|
4399
4392
|
setupBrowserForEditing({
|
|
@@ -4469,68 +4462,59 @@ function EnableEditor(props) {
|
|
|
4469
4462
|
}
|
|
4470
4463
|
}
|
|
4471
4464
|
createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
4472
|
-
const
|
|
4473
|
-
() => shouldSendResetCookie()
|
|
4474
|
-
);
|
|
4465
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4475
4466
|
function onUpdateFn_1() {
|
|
4476
|
-
}
|
|
4477
|
-
createEffect2(
|
|
4478
|
-
on2(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1)
|
|
4479
|
-
);
|
|
4480
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4481
|
-
function onUpdateFn_2() {
|
|
4482
4467
|
evaluateJsCode();
|
|
4483
4468
|
}
|
|
4484
4469
|
createEffect2(
|
|
4485
4470
|
on2(
|
|
4486
|
-
() => [
|
|
4487
|
-
|
|
4471
|
+
() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()],
|
|
4472
|
+
onUpdateFn_1
|
|
4488
4473
|
)
|
|
4489
4474
|
);
|
|
4490
|
-
const
|
|
4491
|
-
function
|
|
4475
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo12(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
4476
|
+
function onUpdateFn_2() {
|
|
4492
4477
|
runHttpRequests();
|
|
4493
4478
|
}
|
|
4494
4479
|
createEffect2(
|
|
4495
4480
|
on2(
|
|
4496
4481
|
() => [
|
|
4497
|
-
|
|
4482
|
+
onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()
|
|
4498
4483
|
],
|
|
4499
|
-
|
|
4484
|
+
onUpdateFn_2
|
|
4500
4485
|
)
|
|
4501
4486
|
);
|
|
4502
|
-
const
|
|
4487
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo12(
|
|
4503
4488
|
() => props.builderContextSignal.rootState
|
|
4504
4489
|
);
|
|
4505
|
-
function
|
|
4490
|
+
function onUpdateFn_3() {
|
|
4506
4491
|
emitStateUpdate();
|
|
4507
4492
|
}
|
|
4508
4493
|
createEffect2(
|
|
4509
4494
|
on2(
|
|
4510
|
-
() => [
|
|
4511
|
-
|
|
4495
|
+
() => [onUpdateFn_3_props_builderContextSignal_rootState()],
|
|
4496
|
+
onUpdateFn_3
|
|
4512
4497
|
)
|
|
4513
4498
|
);
|
|
4514
|
-
const
|
|
4515
|
-
function
|
|
4499
|
+
const onUpdateFn_4_props_data = createMemo12(() => props.data);
|
|
4500
|
+
function onUpdateFn_4() {
|
|
4516
4501
|
if (props.data) {
|
|
4517
4502
|
mergeNewRootState(props.data);
|
|
4518
4503
|
}
|
|
4519
4504
|
}
|
|
4520
|
-
createEffect2(on2(() => [
|
|
4521
|
-
const
|
|
4522
|
-
function
|
|
4505
|
+
createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
4506
|
+
const onUpdateFn_5_props_locale = createMemo12(() => props.locale);
|
|
4507
|
+
function onUpdateFn_5() {
|
|
4523
4508
|
if (props.locale) {
|
|
4524
4509
|
mergeNewRootState({
|
|
4525
4510
|
locale: props.locale
|
|
4526
4511
|
});
|
|
4527
4512
|
}
|
|
4528
4513
|
}
|
|
4529
|
-
createEffect2(on2(() => [
|
|
4514
|
+
createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
4530
4515
|
return <builder_context_default.Provider value={props.builderContextSignal}><Show10 when={props.builderContextSignal.content}><Dynamic5
|
|
4531
4516
|
class={`variant-${props.content?.testVariationId || props.content?.id}`}
|
|
4532
4517
|
{...{}}
|
|
4533
|
-
key={forceReRenderCount()}
|
|
4534
4518
|
ref={elementRef}
|
|
4535
4519
|
onClick={(event) => onClick(event)}
|
|
4536
4520
|
builder-content-id={props.builderContextSignal.content?.id}
|
package/lib/browser/index.js
CHANGED
|
@@ -4431,7 +4431,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4431
4431
|
}
|
|
4432
4432
|
|
|
4433
4433
|
// src/constants/sdk-version.ts
|
|
4434
|
-
var SDK_VERSION = "1.0.
|
|
4434
|
+
var SDK_VERSION = "1.0.14";
|
|
4435
4435
|
|
|
4436
4436
|
// src/functions/register.ts
|
|
4437
4437
|
var registry = {};
|
|
@@ -4629,10 +4629,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
4629
4629
|
|
|
4630
4630
|
// src/components/content/components/enable-editor.tsx
|
|
4631
4631
|
function EnableEditor(props) {
|
|
4632
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal(0);
|
|
4633
|
-
createSignal(true);
|
|
4634
|
-
createSignal(0);
|
|
4635
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal(false);
|
|
4636
4632
|
const [ContentWrapper, setContentWrapper] = createSignal(props.contentWrapper || "div");
|
|
4637
4633
|
const [httpReqsData, setHttpReqsData] = createSignal({});
|
|
4638
4634
|
const [clicked, setClicked] = createSignal(false);
|
|
@@ -4688,7 +4684,6 @@ function EnableEditor(props) {
|
|
|
4688
4684
|
breakpoints
|
|
4689
4685
|
}
|
|
4690
4686
|
});
|
|
4691
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4692
4687
|
}
|
|
4693
4688
|
},
|
|
4694
4689
|
animation: (animation) => {
|
|
@@ -4696,7 +4691,6 @@ function EnableEditor(props) {
|
|
|
4696
4691
|
},
|
|
4697
4692
|
contentUpdate: (newContent) => {
|
|
4698
4693
|
mergeNewContent(newContent);
|
|
4699
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4700
4694
|
}
|
|
4701
4695
|
}
|
|
4702
4696
|
})(event);
|
|
@@ -4787,7 +4781,6 @@ function EnableEditor(props) {
|
|
|
4787
4781
|
onMount(() => {
|
|
4788
4782
|
if (isBrowser()) {
|
|
4789
4783
|
if (isEditing()) {
|
|
4790
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4791
4784
|
window.addEventListener("message", processMessage);
|
|
4792
4785
|
registerInsertMenu();
|
|
4793
4786
|
setupBrowserForEditing({
|
|
@@ -4854,41 +4847,37 @@ function EnableEditor(props) {
|
|
|
4854
4847
|
}
|
|
4855
4848
|
}
|
|
4856
4849
|
createEffect(on(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
4857
|
-
const
|
|
4850
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4858
4851
|
function onUpdateFn_1() {
|
|
4859
|
-
}
|
|
4860
|
-
createEffect(on(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1));
|
|
4861
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4862
|
-
function onUpdateFn_2() {
|
|
4863
4852
|
evaluateJsCode();
|
|
4864
4853
|
}
|
|
4865
|
-
createEffect(on(() => [
|
|
4866
|
-
const
|
|
4867
|
-
function
|
|
4854
|
+
createEffect(on(() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()], onUpdateFn_1));
|
|
4855
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
4856
|
+
function onUpdateFn_2() {
|
|
4868
4857
|
runHttpRequests();
|
|
4869
4858
|
}
|
|
4870
|
-
createEffect(on(() => [
|
|
4871
|
-
const
|
|
4872
|
-
function
|
|
4859
|
+
createEffect(on(() => [onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()], onUpdateFn_2));
|
|
4860
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo(() => props.builderContextSignal.rootState);
|
|
4861
|
+
function onUpdateFn_3() {
|
|
4873
4862
|
emitStateUpdate();
|
|
4874
4863
|
}
|
|
4875
|
-
createEffect(on(() => [
|
|
4876
|
-
const
|
|
4877
|
-
function
|
|
4864
|
+
createEffect(on(() => [onUpdateFn_3_props_builderContextSignal_rootState()], onUpdateFn_3));
|
|
4865
|
+
const onUpdateFn_4_props_data = createMemo(() => props.data);
|
|
4866
|
+
function onUpdateFn_4() {
|
|
4878
4867
|
if (props.data) {
|
|
4879
4868
|
mergeNewRootState(props.data);
|
|
4880
4869
|
}
|
|
4881
4870
|
}
|
|
4882
|
-
createEffect(on(() => [
|
|
4883
|
-
const
|
|
4884
|
-
function
|
|
4871
|
+
createEffect(on(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
4872
|
+
const onUpdateFn_5_props_locale = createMemo(() => props.locale);
|
|
4873
|
+
function onUpdateFn_5() {
|
|
4885
4874
|
if (props.locale) {
|
|
4886
4875
|
mergeNewRootState({
|
|
4887
4876
|
locale: props.locale
|
|
4888
4877
|
});
|
|
4889
4878
|
}
|
|
4890
4879
|
}
|
|
4891
|
-
createEffect(on(() => [
|
|
4880
|
+
createEffect(on(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
4892
4881
|
return createComponent(builder_context_default.Provider, {
|
|
4893
4882
|
get value() {
|
|
4894
4883
|
return props.builderContextSignal;
|
|
@@ -4904,9 +4893,6 @@ function EnableEditor(props) {
|
|
|
4904
4893
|
return `variant-${props.content?.testVariationId || props.content?.id}`;
|
|
4905
4894
|
}
|
|
4906
4895
|
}, {}, {
|
|
4907
|
-
get key() {
|
|
4908
|
-
return forceReRenderCount();
|
|
4909
|
-
},
|
|
4910
4896
|
ref(r$) {
|
|
4911
4897
|
const _ref$ = elementRef;
|
|
4912
4898
|
typeof _ref$ === "function" ? _ref$(r$) : elementRef = r$;
|
package/lib/browser/index.jsx
CHANGED
|
@@ -4014,7 +4014,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
|
|
4016
4016
|
// src/constants/sdk-version.ts
|
|
4017
|
-
var SDK_VERSION = "1.0.
|
|
4017
|
+
var SDK_VERSION = "1.0.14";
|
|
4018
4018
|
|
|
4019
4019
|
// src/functions/register.ts
|
|
4020
4020
|
var registry = {};
|
|
@@ -4212,10 +4212,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
4212
4212
|
|
|
4213
4213
|
// src/components/content/components/enable-editor.tsx
|
|
4214
4214
|
function EnableEditor(props) {
|
|
4215
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal12(0);
|
|
4216
|
-
const [firstRender, setFirstRender] = createSignal12(true);
|
|
4217
|
-
const [lastUpdated, setLastUpdated] = createSignal12(0);
|
|
4218
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal12(false);
|
|
4219
4215
|
const [ContentWrapper, setContentWrapper] = createSignal12(
|
|
4220
4216
|
props.contentWrapper || "div"
|
|
4221
4217
|
);
|
|
@@ -4270,7 +4266,6 @@ function EnableEditor(props) {
|
|
|
4270
4266
|
breakpoints
|
|
4271
4267
|
}
|
|
4272
4268
|
});
|
|
4273
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4274
4269
|
}
|
|
4275
4270
|
},
|
|
4276
4271
|
animation: (animation) => {
|
|
@@ -4278,7 +4273,6 @@ function EnableEditor(props) {
|
|
|
4278
4273
|
},
|
|
4279
4274
|
contentUpdate: (newContent) => {
|
|
4280
4275
|
mergeNewContent(newContent);
|
|
4281
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4282
4276
|
}
|
|
4283
4277
|
}
|
|
4284
4278
|
})(event);
|
|
@@ -4376,7 +4370,6 @@ function EnableEditor(props) {
|
|
|
4376
4370
|
onMount3(() => {
|
|
4377
4371
|
if (isBrowser()) {
|
|
4378
4372
|
if (isEditing()) {
|
|
4379
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4380
4373
|
window.addEventListener("message", processMessage);
|
|
4381
4374
|
registerInsertMenu();
|
|
4382
4375
|
setupBrowserForEditing({
|
|
@@ -4452,68 +4445,59 @@ function EnableEditor(props) {
|
|
|
4452
4445
|
}
|
|
4453
4446
|
}
|
|
4454
4447
|
createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
4455
|
-
const
|
|
4456
|
-
() => shouldSendResetCookie()
|
|
4457
|
-
);
|
|
4448
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4458
4449
|
function onUpdateFn_1() {
|
|
4459
|
-
}
|
|
4460
|
-
createEffect2(
|
|
4461
|
-
on2(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1)
|
|
4462
|
-
);
|
|
4463
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4464
|
-
function onUpdateFn_2() {
|
|
4465
4450
|
evaluateJsCode();
|
|
4466
4451
|
}
|
|
4467
4452
|
createEffect2(
|
|
4468
4453
|
on2(
|
|
4469
|
-
() => [
|
|
4470
|
-
|
|
4454
|
+
() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()],
|
|
4455
|
+
onUpdateFn_1
|
|
4471
4456
|
)
|
|
4472
4457
|
);
|
|
4473
|
-
const
|
|
4474
|
-
function
|
|
4458
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo12(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
4459
|
+
function onUpdateFn_2() {
|
|
4475
4460
|
runHttpRequests();
|
|
4476
4461
|
}
|
|
4477
4462
|
createEffect2(
|
|
4478
4463
|
on2(
|
|
4479
4464
|
() => [
|
|
4480
|
-
|
|
4465
|
+
onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()
|
|
4481
4466
|
],
|
|
4482
|
-
|
|
4467
|
+
onUpdateFn_2
|
|
4483
4468
|
)
|
|
4484
4469
|
);
|
|
4485
|
-
const
|
|
4470
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo12(
|
|
4486
4471
|
() => props.builderContextSignal.rootState
|
|
4487
4472
|
);
|
|
4488
|
-
function
|
|
4473
|
+
function onUpdateFn_3() {
|
|
4489
4474
|
emitStateUpdate();
|
|
4490
4475
|
}
|
|
4491
4476
|
createEffect2(
|
|
4492
4477
|
on2(
|
|
4493
|
-
() => [
|
|
4494
|
-
|
|
4478
|
+
() => [onUpdateFn_3_props_builderContextSignal_rootState()],
|
|
4479
|
+
onUpdateFn_3
|
|
4495
4480
|
)
|
|
4496
4481
|
);
|
|
4497
|
-
const
|
|
4498
|
-
function
|
|
4482
|
+
const onUpdateFn_4_props_data = createMemo12(() => props.data);
|
|
4483
|
+
function onUpdateFn_4() {
|
|
4499
4484
|
if (props.data) {
|
|
4500
4485
|
mergeNewRootState(props.data);
|
|
4501
4486
|
}
|
|
4502
4487
|
}
|
|
4503
|
-
createEffect2(on2(() => [
|
|
4504
|
-
const
|
|
4505
|
-
function
|
|
4488
|
+
createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
4489
|
+
const onUpdateFn_5_props_locale = createMemo12(() => props.locale);
|
|
4490
|
+
function onUpdateFn_5() {
|
|
4506
4491
|
if (props.locale) {
|
|
4507
4492
|
mergeNewRootState({
|
|
4508
4493
|
locale: props.locale
|
|
4509
4494
|
});
|
|
4510
4495
|
}
|
|
4511
4496
|
}
|
|
4512
|
-
createEffect2(on2(() => [
|
|
4497
|
+
createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
4513
4498
|
return <builder_context_default.Provider value={props.builderContextSignal}><Show10 when={props.builderContextSignal.content}><Dynamic5
|
|
4514
4499
|
class={`variant-${props.content?.testVariationId || props.content?.id}`}
|
|
4515
4500
|
{...{}}
|
|
4516
|
-
key={forceReRenderCount()}
|
|
4517
4501
|
ref={elementRef}
|
|
4518
4502
|
onClick={(event) => onClick(event)}
|
|
4519
4503
|
builder-content-id={props.builderContextSignal.content?.id}
|
package/lib/edge/dev.js
CHANGED
|
@@ -7599,7 +7599,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7599
7599
|
}
|
|
7600
7600
|
|
|
7601
7601
|
// src/constants/sdk-version.ts
|
|
7602
|
-
var SDK_VERSION = "1.0.
|
|
7602
|
+
var SDK_VERSION = "1.0.14";
|
|
7603
7603
|
|
|
7604
7604
|
// src/functions/register.ts
|
|
7605
7605
|
var registry = {};
|
|
@@ -7798,10 +7798,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
7798
7798
|
|
|
7799
7799
|
// src/components/content/components/enable-editor.tsx
|
|
7800
7800
|
function EnableEditor(props) {
|
|
7801
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal(0);
|
|
7802
|
-
createSignal(true);
|
|
7803
|
-
createSignal(0);
|
|
7804
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal(false);
|
|
7805
7801
|
const [ContentWrapper, setContentWrapper] = createSignal(props.contentWrapper || "div");
|
|
7806
7802
|
const [httpReqsData, setHttpReqsData] = createSignal({});
|
|
7807
7803
|
const [clicked, setClicked] = createSignal(false);
|
|
@@ -7857,7 +7853,6 @@ function EnableEditor(props) {
|
|
|
7857
7853
|
breakpoints
|
|
7858
7854
|
}
|
|
7859
7855
|
});
|
|
7860
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7861
7856
|
}
|
|
7862
7857
|
},
|
|
7863
7858
|
animation: (animation) => {
|
|
@@ -7865,7 +7860,6 @@ function EnableEditor(props) {
|
|
|
7865
7860
|
},
|
|
7866
7861
|
contentUpdate: (newContent) => {
|
|
7867
7862
|
mergeNewContent(newContent);
|
|
7868
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7869
7863
|
}
|
|
7870
7864
|
}
|
|
7871
7865
|
})(event);
|
|
@@ -7957,7 +7951,6 @@ function EnableEditor(props) {
|
|
|
7957
7951
|
onMount(() => {
|
|
7958
7952
|
if (isBrowser()) {
|
|
7959
7953
|
if (isEditing()) {
|
|
7960
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7961
7954
|
window.addEventListener("message", processMessage);
|
|
7962
7955
|
registerInsertMenu();
|
|
7963
7956
|
setupBrowserForEditing({
|
|
@@ -8024,41 +8017,37 @@ function EnableEditor(props) {
|
|
|
8024
8017
|
}
|
|
8025
8018
|
}
|
|
8026
8019
|
createEffect(on(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
8027
|
-
const
|
|
8020
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
8028
8021
|
function onUpdateFn_1() {
|
|
8029
|
-
}
|
|
8030
|
-
createEffect(on(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1));
|
|
8031
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
8032
|
-
function onUpdateFn_2() {
|
|
8033
8022
|
evaluateJsCode();
|
|
8034
8023
|
}
|
|
8035
|
-
createEffect(on(() => [
|
|
8036
|
-
const
|
|
8037
|
-
function
|
|
8024
|
+
createEffect(on(() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()], onUpdateFn_1));
|
|
8025
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
8026
|
+
function onUpdateFn_2() {
|
|
8038
8027
|
runHttpRequests();
|
|
8039
8028
|
}
|
|
8040
|
-
createEffect(on(() => [
|
|
8041
|
-
const
|
|
8042
|
-
function
|
|
8029
|
+
createEffect(on(() => [onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()], onUpdateFn_2));
|
|
8030
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo(() => props.builderContextSignal.rootState);
|
|
8031
|
+
function onUpdateFn_3() {
|
|
8043
8032
|
emitStateUpdate();
|
|
8044
8033
|
}
|
|
8045
|
-
createEffect(on(() => [
|
|
8046
|
-
const
|
|
8047
|
-
function
|
|
8034
|
+
createEffect(on(() => [onUpdateFn_3_props_builderContextSignal_rootState()], onUpdateFn_3));
|
|
8035
|
+
const onUpdateFn_4_props_data = createMemo(() => props.data);
|
|
8036
|
+
function onUpdateFn_4() {
|
|
8048
8037
|
if (props.data) {
|
|
8049
8038
|
mergeNewRootState(props.data);
|
|
8050
8039
|
}
|
|
8051
8040
|
}
|
|
8052
|
-
createEffect(on(() => [
|
|
8053
|
-
const
|
|
8054
|
-
function
|
|
8041
|
+
createEffect(on(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
8042
|
+
const onUpdateFn_5_props_locale = createMemo(() => props.locale);
|
|
8043
|
+
function onUpdateFn_5() {
|
|
8055
8044
|
if (props.locale) {
|
|
8056
8045
|
mergeNewRootState({
|
|
8057
8046
|
locale: props.locale
|
|
8058
8047
|
});
|
|
8059
8048
|
}
|
|
8060
8049
|
}
|
|
8061
|
-
createEffect(on(() => [
|
|
8050
|
+
createEffect(on(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
8062
8051
|
return createComponent(builder_context_default.Provider, {
|
|
8063
8052
|
get value() {
|
|
8064
8053
|
return props.builderContextSignal;
|
|
@@ -8074,9 +8063,6 @@ function EnableEditor(props) {
|
|
|
8074
8063
|
return `variant-${props.content?.testVariationId || props.content?.id}`;
|
|
8075
8064
|
}
|
|
8076
8065
|
}, {}, {
|
|
8077
|
-
get key() {
|
|
8078
|
-
return forceReRenderCount();
|
|
8079
|
-
},
|
|
8080
8066
|
ref(r$) {
|
|
8081
8067
|
const _ref$ = elementRef;
|
|
8082
8068
|
typeof _ref$ === "function" ? _ref$(r$) : elementRef = r$;
|