@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/edge/dev.jsx
CHANGED
|
@@ -7184,7 +7184,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7184
7184
|
}
|
|
7185
7185
|
|
|
7186
7186
|
// src/constants/sdk-version.ts
|
|
7187
|
-
var SDK_VERSION = "1.0.
|
|
7187
|
+
var SDK_VERSION = "1.0.14";
|
|
7188
7188
|
|
|
7189
7189
|
// src/functions/register.ts
|
|
7190
7190
|
var registry = {};
|
|
@@ -7383,10 +7383,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
7383
7383
|
|
|
7384
7384
|
// src/components/content/components/enable-editor.tsx
|
|
7385
7385
|
function EnableEditor(props) {
|
|
7386
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal12(0);
|
|
7387
|
-
const [firstRender, setFirstRender] = createSignal12(true);
|
|
7388
|
-
const [lastUpdated, setLastUpdated] = createSignal12(0);
|
|
7389
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal12(false);
|
|
7390
7386
|
const [ContentWrapper, setContentWrapper] = createSignal12(
|
|
7391
7387
|
props.contentWrapper || "div"
|
|
7392
7388
|
);
|
|
@@ -7441,7 +7437,6 @@ function EnableEditor(props) {
|
|
|
7441
7437
|
breakpoints
|
|
7442
7438
|
}
|
|
7443
7439
|
});
|
|
7444
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7445
7440
|
}
|
|
7446
7441
|
},
|
|
7447
7442
|
animation: (animation) => {
|
|
@@ -7449,7 +7444,6 @@ function EnableEditor(props) {
|
|
|
7449
7444
|
},
|
|
7450
7445
|
contentUpdate: (newContent) => {
|
|
7451
7446
|
mergeNewContent(newContent);
|
|
7452
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7453
7447
|
}
|
|
7454
7448
|
}
|
|
7455
7449
|
})(event);
|
|
@@ -7548,7 +7542,6 @@ function EnableEditor(props) {
|
|
|
7548
7542
|
onMount3(() => {
|
|
7549
7543
|
if (isBrowser()) {
|
|
7550
7544
|
if (isEditing()) {
|
|
7551
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7552
7545
|
window.addEventListener("message", processMessage);
|
|
7553
7546
|
registerInsertMenu();
|
|
7554
7547
|
setupBrowserForEditing({
|
|
@@ -7624,68 +7617,59 @@ function EnableEditor(props) {
|
|
|
7624
7617
|
}
|
|
7625
7618
|
}
|
|
7626
7619
|
createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
7627
|
-
const
|
|
7628
|
-
() => shouldSendResetCookie()
|
|
7629
|
-
);
|
|
7620
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
7630
7621
|
function onUpdateFn_1() {
|
|
7631
|
-
}
|
|
7632
|
-
createEffect2(
|
|
7633
|
-
on2(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1)
|
|
7634
|
-
);
|
|
7635
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
7636
|
-
function onUpdateFn_2() {
|
|
7637
7622
|
evaluateJsCode();
|
|
7638
7623
|
}
|
|
7639
7624
|
createEffect2(
|
|
7640
7625
|
on2(
|
|
7641
|
-
() => [
|
|
7642
|
-
|
|
7626
|
+
() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()],
|
|
7627
|
+
onUpdateFn_1
|
|
7643
7628
|
)
|
|
7644
7629
|
);
|
|
7645
|
-
const
|
|
7646
|
-
function
|
|
7630
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo12(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
7631
|
+
function onUpdateFn_2() {
|
|
7647
7632
|
runHttpRequests();
|
|
7648
7633
|
}
|
|
7649
7634
|
createEffect2(
|
|
7650
7635
|
on2(
|
|
7651
7636
|
() => [
|
|
7652
|
-
|
|
7637
|
+
onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()
|
|
7653
7638
|
],
|
|
7654
|
-
|
|
7639
|
+
onUpdateFn_2
|
|
7655
7640
|
)
|
|
7656
7641
|
);
|
|
7657
|
-
const
|
|
7642
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo12(
|
|
7658
7643
|
() => props.builderContextSignal.rootState
|
|
7659
7644
|
);
|
|
7660
|
-
function
|
|
7645
|
+
function onUpdateFn_3() {
|
|
7661
7646
|
emitStateUpdate();
|
|
7662
7647
|
}
|
|
7663
7648
|
createEffect2(
|
|
7664
7649
|
on2(
|
|
7665
|
-
() => [
|
|
7666
|
-
|
|
7650
|
+
() => [onUpdateFn_3_props_builderContextSignal_rootState()],
|
|
7651
|
+
onUpdateFn_3
|
|
7667
7652
|
)
|
|
7668
7653
|
);
|
|
7669
|
-
const
|
|
7670
|
-
function
|
|
7654
|
+
const onUpdateFn_4_props_data = createMemo12(() => props.data);
|
|
7655
|
+
function onUpdateFn_4() {
|
|
7671
7656
|
if (props.data) {
|
|
7672
7657
|
mergeNewRootState(props.data);
|
|
7673
7658
|
}
|
|
7674
7659
|
}
|
|
7675
|
-
createEffect2(on2(() => [
|
|
7676
|
-
const
|
|
7677
|
-
function
|
|
7660
|
+
createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
7661
|
+
const onUpdateFn_5_props_locale = createMemo12(() => props.locale);
|
|
7662
|
+
function onUpdateFn_5() {
|
|
7678
7663
|
if (props.locale) {
|
|
7679
7664
|
mergeNewRootState({
|
|
7680
7665
|
locale: props.locale
|
|
7681
7666
|
});
|
|
7682
7667
|
}
|
|
7683
7668
|
}
|
|
7684
|
-
createEffect2(on2(() => [
|
|
7669
|
+
createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
7685
7670
|
return <builder_context_default.Provider value={props.builderContextSignal}><Show10 when={props.builderContextSignal.content}><Dynamic5
|
|
7686
7671
|
class={`variant-${props.content?.testVariationId || props.content?.id}`}
|
|
7687
7672
|
{...{}}
|
|
7688
|
-
key={forceReRenderCount()}
|
|
7689
7673
|
ref={elementRef}
|
|
7690
7674
|
onClick={(event) => onClick(event)}
|
|
7691
7675
|
builder-content-id={props.builderContextSignal.content?.id}
|
package/lib/edge/index.js
CHANGED
|
@@ -7584,7 +7584,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7584
7584
|
}
|
|
7585
7585
|
|
|
7586
7586
|
// src/constants/sdk-version.ts
|
|
7587
|
-
var SDK_VERSION = "1.0.
|
|
7587
|
+
var SDK_VERSION = "1.0.14";
|
|
7588
7588
|
|
|
7589
7589
|
// src/functions/register.ts
|
|
7590
7590
|
var registry = {};
|
|
@@ -7782,10 +7782,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
7782
7782
|
|
|
7783
7783
|
// src/components/content/components/enable-editor.tsx
|
|
7784
7784
|
function EnableEditor(props) {
|
|
7785
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal(0);
|
|
7786
|
-
createSignal(true);
|
|
7787
|
-
createSignal(0);
|
|
7788
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal(false);
|
|
7789
7785
|
const [ContentWrapper, setContentWrapper] = createSignal(props.contentWrapper || "div");
|
|
7790
7786
|
const [httpReqsData, setHttpReqsData] = createSignal({});
|
|
7791
7787
|
const [clicked, setClicked] = createSignal(false);
|
|
@@ -7841,7 +7837,6 @@ function EnableEditor(props) {
|
|
|
7841
7837
|
breakpoints
|
|
7842
7838
|
}
|
|
7843
7839
|
});
|
|
7844
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7845
7840
|
}
|
|
7846
7841
|
},
|
|
7847
7842
|
animation: (animation) => {
|
|
@@ -7849,7 +7844,6 @@ function EnableEditor(props) {
|
|
|
7849
7844
|
},
|
|
7850
7845
|
contentUpdate: (newContent) => {
|
|
7851
7846
|
mergeNewContent(newContent);
|
|
7852
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7853
7847
|
}
|
|
7854
7848
|
}
|
|
7855
7849
|
})(event);
|
|
@@ -7940,7 +7934,6 @@ function EnableEditor(props) {
|
|
|
7940
7934
|
onMount(() => {
|
|
7941
7935
|
if (isBrowser()) {
|
|
7942
7936
|
if (isEditing()) {
|
|
7943
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7944
7937
|
window.addEventListener("message", processMessage);
|
|
7945
7938
|
registerInsertMenu();
|
|
7946
7939
|
setupBrowserForEditing({
|
|
@@ -8007,41 +8000,37 @@ function EnableEditor(props) {
|
|
|
8007
8000
|
}
|
|
8008
8001
|
}
|
|
8009
8002
|
createEffect(on(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
8010
|
-
const
|
|
8003
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
8011
8004
|
function onUpdateFn_1() {
|
|
8012
|
-
}
|
|
8013
|
-
createEffect(on(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1));
|
|
8014
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
8015
|
-
function onUpdateFn_2() {
|
|
8016
8005
|
evaluateJsCode();
|
|
8017
8006
|
}
|
|
8018
|
-
createEffect(on(() => [
|
|
8019
|
-
const
|
|
8020
|
-
function
|
|
8007
|
+
createEffect(on(() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()], onUpdateFn_1));
|
|
8008
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
8009
|
+
function onUpdateFn_2() {
|
|
8021
8010
|
runHttpRequests();
|
|
8022
8011
|
}
|
|
8023
|
-
createEffect(on(() => [
|
|
8024
|
-
const
|
|
8025
|
-
function
|
|
8012
|
+
createEffect(on(() => [onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()], onUpdateFn_2));
|
|
8013
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo(() => props.builderContextSignal.rootState);
|
|
8014
|
+
function onUpdateFn_3() {
|
|
8026
8015
|
emitStateUpdate();
|
|
8027
8016
|
}
|
|
8028
|
-
createEffect(on(() => [
|
|
8029
|
-
const
|
|
8030
|
-
function
|
|
8017
|
+
createEffect(on(() => [onUpdateFn_3_props_builderContextSignal_rootState()], onUpdateFn_3));
|
|
8018
|
+
const onUpdateFn_4_props_data = createMemo(() => props.data);
|
|
8019
|
+
function onUpdateFn_4() {
|
|
8031
8020
|
if (props.data) {
|
|
8032
8021
|
mergeNewRootState(props.data);
|
|
8033
8022
|
}
|
|
8034
8023
|
}
|
|
8035
|
-
createEffect(on(() => [
|
|
8036
|
-
const
|
|
8037
|
-
function
|
|
8024
|
+
createEffect(on(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
8025
|
+
const onUpdateFn_5_props_locale = createMemo(() => props.locale);
|
|
8026
|
+
function onUpdateFn_5() {
|
|
8038
8027
|
if (props.locale) {
|
|
8039
8028
|
mergeNewRootState({
|
|
8040
8029
|
locale: props.locale
|
|
8041
8030
|
});
|
|
8042
8031
|
}
|
|
8043
8032
|
}
|
|
8044
|
-
createEffect(on(() => [
|
|
8033
|
+
createEffect(on(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
8045
8034
|
return createComponent(builder_context_default.Provider, {
|
|
8046
8035
|
get value() {
|
|
8047
8036
|
return props.builderContextSignal;
|
|
@@ -8057,9 +8046,6 @@ function EnableEditor(props) {
|
|
|
8057
8046
|
return `variant-${props.content?.testVariationId || props.content?.id}`;
|
|
8058
8047
|
}
|
|
8059
8048
|
}, {}, {
|
|
8060
|
-
get key() {
|
|
8061
|
-
return forceReRenderCount();
|
|
8062
|
-
},
|
|
8063
8049
|
ref(r$) {
|
|
8064
8050
|
const _ref$ = elementRef;
|
|
8065
8051
|
typeof _ref$ === "function" ? _ref$(r$) : elementRef = r$;
|
package/lib/edge/index.jsx
CHANGED
|
@@ -7169,7 +7169,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7169
7169
|
}
|
|
7170
7170
|
|
|
7171
7171
|
// src/constants/sdk-version.ts
|
|
7172
|
-
var SDK_VERSION = "1.0.
|
|
7172
|
+
var SDK_VERSION = "1.0.14";
|
|
7173
7173
|
|
|
7174
7174
|
// src/functions/register.ts
|
|
7175
7175
|
var registry = {};
|
|
@@ -7367,10 +7367,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
7367
7367
|
|
|
7368
7368
|
// src/components/content/components/enable-editor.tsx
|
|
7369
7369
|
function EnableEditor(props) {
|
|
7370
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal12(0);
|
|
7371
|
-
const [firstRender, setFirstRender] = createSignal12(true);
|
|
7372
|
-
const [lastUpdated, setLastUpdated] = createSignal12(0);
|
|
7373
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal12(false);
|
|
7374
7370
|
const [ContentWrapper, setContentWrapper] = createSignal12(
|
|
7375
7371
|
props.contentWrapper || "div"
|
|
7376
7372
|
);
|
|
@@ -7425,7 +7421,6 @@ function EnableEditor(props) {
|
|
|
7425
7421
|
breakpoints
|
|
7426
7422
|
}
|
|
7427
7423
|
});
|
|
7428
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7429
7424
|
}
|
|
7430
7425
|
},
|
|
7431
7426
|
animation: (animation) => {
|
|
@@ -7433,7 +7428,6 @@ function EnableEditor(props) {
|
|
|
7433
7428
|
},
|
|
7434
7429
|
contentUpdate: (newContent) => {
|
|
7435
7430
|
mergeNewContent(newContent);
|
|
7436
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7437
7431
|
}
|
|
7438
7432
|
}
|
|
7439
7433
|
})(event);
|
|
@@ -7531,7 +7525,6 @@ function EnableEditor(props) {
|
|
|
7531
7525
|
onMount3(() => {
|
|
7532
7526
|
if (isBrowser()) {
|
|
7533
7527
|
if (isEditing()) {
|
|
7534
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
7535
7528
|
window.addEventListener("message", processMessage);
|
|
7536
7529
|
registerInsertMenu();
|
|
7537
7530
|
setupBrowserForEditing({
|
|
@@ -7607,68 +7600,59 @@ function EnableEditor(props) {
|
|
|
7607
7600
|
}
|
|
7608
7601
|
}
|
|
7609
7602
|
createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
7610
|
-
const
|
|
7611
|
-
() => shouldSendResetCookie()
|
|
7612
|
-
);
|
|
7603
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
7613
7604
|
function onUpdateFn_1() {
|
|
7614
|
-
}
|
|
7615
|
-
createEffect2(
|
|
7616
|
-
on2(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1)
|
|
7617
|
-
);
|
|
7618
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
7619
|
-
function onUpdateFn_2() {
|
|
7620
7605
|
evaluateJsCode();
|
|
7621
7606
|
}
|
|
7622
7607
|
createEffect2(
|
|
7623
7608
|
on2(
|
|
7624
|
-
() => [
|
|
7625
|
-
|
|
7609
|
+
() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()],
|
|
7610
|
+
onUpdateFn_1
|
|
7626
7611
|
)
|
|
7627
7612
|
);
|
|
7628
|
-
const
|
|
7629
|
-
function
|
|
7613
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo12(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
7614
|
+
function onUpdateFn_2() {
|
|
7630
7615
|
runHttpRequests();
|
|
7631
7616
|
}
|
|
7632
7617
|
createEffect2(
|
|
7633
7618
|
on2(
|
|
7634
7619
|
() => [
|
|
7635
|
-
|
|
7620
|
+
onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()
|
|
7636
7621
|
],
|
|
7637
|
-
|
|
7622
|
+
onUpdateFn_2
|
|
7638
7623
|
)
|
|
7639
7624
|
);
|
|
7640
|
-
const
|
|
7625
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo12(
|
|
7641
7626
|
() => props.builderContextSignal.rootState
|
|
7642
7627
|
);
|
|
7643
|
-
function
|
|
7628
|
+
function onUpdateFn_3() {
|
|
7644
7629
|
emitStateUpdate();
|
|
7645
7630
|
}
|
|
7646
7631
|
createEffect2(
|
|
7647
7632
|
on2(
|
|
7648
|
-
() => [
|
|
7649
|
-
|
|
7633
|
+
() => [onUpdateFn_3_props_builderContextSignal_rootState()],
|
|
7634
|
+
onUpdateFn_3
|
|
7650
7635
|
)
|
|
7651
7636
|
);
|
|
7652
|
-
const
|
|
7653
|
-
function
|
|
7637
|
+
const onUpdateFn_4_props_data = createMemo12(() => props.data);
|
|
7638
|
+
function onUpdateFn_4() {
|
|
7654
7639
|
if (props.data) {
|
|
7655
7640
|
mergeNewRootState(props.data);
|
|
7656
7641
|
}
|
|
7657
7642
|
}
|
|
7658
|
-
createEffect2(on2(() => [
|
|
7659
|
-
const
|
|
7660
|
-
function
|
|
7643
|
+
createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
7644
|
+
const onUpdateFn_5_props_locale = createMemo12(() => props.locale);
|
|
7645
|
+
function onUpdateFn_5() {
|
|
7661
7646
|
if (props.locale) {
|
|
7662
7647
|
mergeNewRootState({
|
|
7663
7648
|
locale: props.locale
|
|
7664
7649
|
});
|
|
7665
7650
|
}
|
|
7666
7651
|
}
|
|
7667
|
-
createEffect2(on2(() => [
|
|
7652
|
+
createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
7668
7653
|
return <builder_context_default.Provider value={props.builderContextSignal}><Show10 when={props.builderContextSignal.content}><Dynamic5
|
|
7669
7654
|
class={`variant-${props.content?.testVariationId || props.content?.id}`}
|
|
7670
7655
|
{...{}}
|
|
7671
|
-
key={forceReRenderCount()}
|
|
7672
7656
|
ref={elementRef}
|
|
7673
7657
|
onClick={(event) => onClick(event)}
|
|
7674
7658
|
builder-content-id={props.builderContextSignal.content?.id}
|
package/lib/node/dev.js
CHANGED
|
@@ -4571,7 +4571,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
|
|
4573
4573
|
// src/constants/sdk-version.ts
|
|
4574
|
-
var SDK_VERSION = "1.0.
|
|
4574
|
+
var SDK_VERSION = "1.0.14";
|
|
4575
4575
|
|
|
4576
4576
|
// src/functions/register.ts
|
|
4577
4577
|
var registry = {};
|
|
@@ -4770,10 +4770,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
4770
4770
|
|
|
4771
4771
|
// src/components/content/components/enable-editor.tsx
|
|
4772
4772
|
function EnableEditor(props) {
|
|
4773
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal(0);
|
|
4774
|
-
createSignal(true);
|
|
4775
|
-
createSignal(0);
|
|
4776
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal(false);
|
|
4777
4773
|
const [ContentWrapper, setContentWrapper] = createSignal(props.contentWrapper || "div");
|
|
4778
4774
|
const [httpReqsData, setHttpReqsData] = createSignal({});
|
|
4779
4775
|
const [clicked, setClicked] = createSignal(false);
|
|
@@ -4829,7 +4825,6 @@ function EnableEditor(props) {
|
|
|
4829
4825
|
breakpoints
|
|
4830
4826
|
}
|
|
4831
4827
|
});
|
|
4832
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4833
4828
|
}
|
|
4834
4829
|
},
|
|
4835
4830
|
animation: (animation) => {
|
|
@@ -4837,7 +4832,6 @@ function EnableEditor(props) {
|
|
|
4837
4832
|
},
|
|
4838
4833
|
contentUpdate: (newContent) => {
|
|
4839
4834
|
mergeNewContent(newContent);
|
|
4840
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4841
4835
|
}
|
|
4842
4836
|
}
|
|
4843
4837
|
})(event);
|
|
@@ -4929,7 +4923,6 @@ function EnableEditor(props) {
|
|
|
4929
4923
|
onMount(() => {
|
|
4930
4924
|
if (isBrowser()) {
|
|
4931
4925
|
if (isEditing()) {
|
|
4932
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4933
4926
|
window.addEventListener("message", processMessage);
|
|
4934
4927
|
registerInsertMenu();
|
|
4935
4928
|
setupBrowserForEditing({
|
|
@@ -4996,41 +4989,37 @@ function EnableEditor(props) {
|
|
|
4996
4989
|
}
|
|
4997
4990
|
}
|
|
4998
4991
|
createEffect(on(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
4999
|
-
const
|
|
4992
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
5000
4993
|
function onUpdateFn_1() {
|
|
5001
|
-
}
|
|
5002
|
-
createEffect(on(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1));
|
|
5003
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo(() => props.builderContextSignal.content?.data?.jsCode);
|
|
5004
|
-
function onUpdateFn_2() {
|
|
5005
4994
|
evaluateJsCode();
|
|
5006
4995
|
}
|
|
5007
|
-
createEffect(on(() => [
|
|
5008
|
-
const
|
|
5009
|
-
function
|
|
4996
|
+
createEffect(on(() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()], onUpdateFn_1));
|
|
4997
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
4998
|
+
function onUpdateFn_2() {
|
|
5010
4999
|
runHttpRequests();
|
|
5011
5000
|
}
|
|
5012
|
-
createEffect(on(() => [
|
|
5013
|
-
const
|
|
5014
|
-
function
|
|
5001
|
+
createEffect(on(() => [onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()], onUpdateFn_2));
|
|
5002
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo(() => props.builderContextSignal.rootState);
|
|
5003
|
+
function onUpdateFn_3() {
|
|
5015
5004
|
emitStateUpdate();
|
|
5016
5005
|
}
|
|
5017
|
-
createEffect(on(() => [
|
|
5018
|
-
const
|
|
5019
|
-
function
|
|
5006
|
+
createEffect(on(() => [onUpdateFn_3_props_builderContextSignal_rootState()], onUpdateFn_3));
|
|
5007
|
+
const onUpdateFn_4_props_data = createMemo(() => props.data);
|
|
5008
|
+
function onUpdateFn_4() {
|
|
5020
5009
|
if (props.data) {
|
|
5021
5010
|
mergeNewRootState(props.data);
|
|
5022
5011
|
}
|
|
5023
5012
|
}
|
|
5024
|
-
createEffect(on(() => [
|
|
5025
|
-
const
|
|
5026
|
-
function
|
|
5013
|
+
createEffect(on(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
5014
|
+
const onUpdateFn_5_props_locale = createMemo(() => props.locale);
|
|
5015
|
+
function onUpdateFn_5() {
|
|
5027
5016
|
if (props.locale) {
|
|
5028
5017
|
mergeNewRootState({
|
|
5029
5018
|
locale: props.locale
|
|
5030
5019
|
});
|
|
5031
5020
|
}
|
|
5032
5021
|
}
|
|
5033
|
-
createEffect(on(() => [
|
|
5022
|
+
createEffect(on(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
5034
5023
|
return createComponent(builder_context_default.Provider, {
|
|
5035
5024
|
get value() {
|
|
5036
5025
|
return props.builderContextSignal;
|
|
@@ -5046,9 +5035,6 @@ function EnableEditor(props) {
|
|
|
5046
5035
|
return `variant-${props.content?.testVariationId || props.content?.id}`;
|
|
5047
5036
|
}
|
|
5048
5037
|
}, {}, {
|
|
5049
|
-
get key() {
|
|
5050
|
-
return forceReRenderCount();
|
|
5051
|
-
},
|
|
5052
5038
|
ref(r$) {
|
|
5053
5039
|
const _ref$ = elementRef;
|
|
5054
5040
|
typeof _ref$ === "function" ? _ref$(r$) : elementRef = r$;
|
package/lib/node/dev.jsx
CHANGED
|
@@ -4156,7 +4156,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
|
|
4158
4158
|
// src/constants/sdk-version.ts
|
|
4159
|
-
var SDK_VERSION = "1.0.
|
|
4159
|
+
var SDK_VERSION = "1.0.14";
|
|
4160
4160
|
|
|
4161
4161
|
// src/functions/register.ts
|
|
4162
4162
|
var registry = {};
|
|
@@ -4355,10 +4355,6 @@ var subscribeToEditor = (model, callback, options) => {
|
|
|
4355
4355
|
|
|
4356
4356
|
// src/components/content/components/enable-editor.tsx
|
|
4357
4357
|
function EnableEditor(props) {
|
|
4358
|
-
const [forceReRenderCount, setForceReRenderCount] = createSignal12(0);
|
|
4359
|
-
const [firstRender, setFirstRender] = createSignal12(true);
|
|
4360
|
-
const [lastUpdated, setLastUpdated] = createSignal12(0);
|
|
4361
|
-
const [shouldSendResetCookie, setShouldSendResetCookie] = createSignal12(false);
|
|
4362
4358
|
const [ContentWrapper, setContentWrapper] = createSignal12(
|
|
4363
4359
|
props.contentWrapper || "div"
|
|
4364
4360
|
);
|
|
@@ -4413,7 +4409,6 @@ function EnableEditor(props) {
|
|
|
4413
4409
|
breakpoints
|
|
4414
4410
|
}
|
|
4415
4411
|
});
|
|
4416
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4417
4412
|
}
|
|
4418
4413
|
},
|
|
4419
4414
|
animation: (animation) => {
|
|
@@ -4421,7 +4416,6 @@ function EnableEditor(props) {
|
|
|
4421
4416
|
},
|
|
4422
4417
|
contentUpdate: (newContent) => {
|
|
4423
4418
|
mergeNewContent(newContent);
|
|
4424
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4425
4419
|
}
|
|
4426
4420
|
}
|
|
4427
4421
|
})(event);
|
|
@@ -4520,7 +4514,6 @@ function EnableEditor(props) {
|
|
|
4520
4514
|
onMount3(() => {
|
|
4521
4515
|
if (isBrowser()) {
|
|
4522
4516
|
if (isEditing()) {
|
|
4523
|
-
setForceReRenderCount(forceReRenderCount() + 1);
|
|
4524
4517
|
window.addEventListener("message", processMessage);
|
|
4525
4518
|
registerInsertMenu();
|
|
4526
4519
|
setupBrowserForEditing({
|
|
@@ -4596,68 +4589,59 @@ function EnableEditor(props) {
|
|
|
4596
4589
|
}
|
|
4597
4590
|
}
|
|
4598
4591
|
createEffect2(on2(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
4599
|
-
const
|
|
4600
|
-
() => shouldSendResetCookie()
|
|
4601
|
-
);
|
|
4592
|
+
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4602
4593
|
function onUpdateFn_1() {
|
|
4603
|
-
}
|
|
4604
|
-
createEffect2(
|
|
4605
|
-
on2(() => [onUpdateFn_1_shouldSendResetCookie__()], onUpdateFn_1)
|
|
4606
|
-
);
|
|
4607
|
-
const onUpdateFn_2_props_builderContextSignal_content__data__jsCode = createMemo12(() => props.builderContextSignal.content?.data?.jsCode);
|
|
4608
|
-
function onUpdateFn_2() {
|
|
4609
4594
|
evaluateJsCode();
|
|
4610
4595
|
}
|
|
4611
4596
|
createEffect2(
|
|
4612
4597
|
on2(
|
|
4613
|
-
() => [
|
|
4614
|
-
|
|
4598
|
+
() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()],
|
|
4599
|
+
onUpdateFn_1
|
|
4615
4600
|
)
|
|
4616
4601
|
);
|
|
4617
|
-
const
|
|
4618
|
-
function
|
|
4602
|
+
const onUpdateFn_2_props_builderContextSignal_content__data__httpRequests = createMemo12(() => props.builderContextSignal.content?.data?.httpRequests);
|
|
4603
|
+
function onUpdateFn_2() {
|
|
4619
4604
|
runHttpRequests();
|
|
4620
4605
|
}
|
|
4621
4606
|
createEffect2(
|
|
4622
4607
|
on2(
|
|
4623
4608
|
() => [
|
|
4624
|
-
|
|
4609
|
+
onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()
|
|
4625
4610
|
],
|
|
4626
|
-
|
|
4611
|
+
onUpdateFn_2
|
|
4627
4612
|
)
|
|
4628
4613
|
);
|
|
4629
|
-
const
|
|
4614
|
+
const onUpdateFn_3_props_builderContextSignal_rootState = createMemo12(
|
|
4630
4615
|
() => props.builderContextSignal.rootState
|
|
4631
4616
|
);
|
|
4632
|
-
function
|
|
4617
|
+
function onUpdateFn_3() {
|
|
4633
4618
|
emitStateUpdate();
|
|
4634
4619
|
}
|
|
4635
4620
|
createEffect2(
|
|
4636
4621
|
on2(
|
|
4637
|
-
() => [
|
|
4638
|
-
|
|
4622
|
+
() => [onUpdateFn_3_props_builderContextSignal_rootState()],
|
|
4623
|
+
onUpdateFn_3
|
|
4639
4624
|
)
|
|
4640
4625
|
);
|
|
4641
|
-
const
|
|
4642
|
-
function
|
|
4626
|
+
const onUpdateFn_4_props_data = createMemo12(() => props.data);
|
|
4627
|
+
function onUpdateFn_4() {
|
|
4643
4628
|
if (props.data) {
|
|
4644
4629
|
mergeNewRootState(props.data);
|
|
4645
4630
|
}
|
|
4646
4631
|
}
|
|
4647
|
-
createEffect2(on2(() => [
|
|
4648
|
-
const
|
|
4649
|
-
function
|
|
4632
|
+
createEffect2(on2(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
4633
|
+
const onUpdateFn_5_props_locale = createMemo12(() => props.locale);
|
|
4634
|
+
function onUpdateFn_5() {
|
|
4650
4635
|
if (props.locale) {
|
|
4651
4636
|
mergeNewRootState({
|
|
4652
4637
|
locale: props.locale
|
|
4653
4638
|
});
|
|
4654
4639
|
}
|
|
4655
4640
|
}
|
|
4656
|
-
createEffect2(on2(() => [
|
|
4641
|
+
createEffect2(on2(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
4657
4642
|
return <builder_context_default.Provider value={props.builderContextSignal}><Show10 when={props.builderContextSignal.content}><Dynamic5
|
|
4658
4643
|
class={`variant-${props.content?.testVariationId || props.content?.id}`}
|
|
4659
4644
|
{...{}}
|
|
4660
|
-
key={forceReRenderCount()}
|
|
4661
4645
|
ref={elementRef}
|
|
4662
4646
|
onClick={(event) => onClick(event)}
|
|
4663
4647
|
builder-content-id={props.builderContextSignal.content?.id}
|