@builder.io/sdk-solid 2.0.9 → 2.0.15
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/dist/index.d.ts +1 -1
- package/lib/browser/dev.js +148 -75
- package/lib/browser/dev.jsx +137 -80
- package/lib/browser/index.js +148 -75
- package/lib/browser/index.jsx +137 -80
- package/lib/edge/dev.js +148 -75
- package/lib/edge/dev.jsx +137 -80
- package/lib/edge/index.js +148 -75
- package/lib/edge/index.jsx +137 -80
- package/lib/node/dev.js +150 -77
- package/lib/node/dev.jsx +139 -82
- package/lib/node/index.js +150 -77
- package/lib/node/index.jsx +139 -82
- package/package.json +2 -4
package/lib/edge/dev.jsx
CHANGED
|
@@ -111,7 +111,13 @@ import { createContext as createContext2 } from "solid-js";
|
|
|
111
111
|
var components_context_default = createContext2({ registeredComponents: {} });
|
|
112
112
|
|
|
113
113
|
// src/components/block/block.tsx
|
|
114
|
-
import {
|
|
114
|
+
import {
|
|
115
|
+
Show as Show4,
|
|
116
|
+
For as For2,
|
|
117
|
+
onMount,
|
|
118
|
+
createMemo as createMemo5,
|
|
119
|
+
createSignal as createSignal5
|
|
120
|
+
} from "solid-js";
|
|
115
121
|
|
|
116
122
|
// src/functions/get-block-component-options.ts
|
|
117
123
|
function getBlockComponentOptions(block) {
|
|
@@ -121,6 +127,15 @@ function getBlockComponentOptions(block) {
|
|
|
121
127
|
};
|
|
122
128
|
}
|
|
123
129
|
|
|
130
|
+
// src/helpers/omit.ts
|
|
131
|
+
function omit(obj, ...values) {
|
|
132
|
+
const newObject = Object.assign({}, obj);
|
|
133
|
+
for (const key of values) {
|
|
134
|
+
delete newObject[key];
|
|
135
|
+
}
|
|
136
|
+
return newObject;
|
|
137
|
+
}
|
|
138
|
+
|
|
124
139
|
// src/helpers/logger.ts
|
|
125
140
|
var MSG_PREFIX = "[Builder.io]: ";
|
|
126
141
|
var logger = {
|
|
@@ -3479,6 +3494,7 @@ var shouldForceBrowserRuntimeInNode = () => {
|
|
|
3479
3494
|
var chooseBrowserOrServerEval = (args) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInEdge(args);
|
|
3480
3495
|
|
|
3481
3496
|
// src/functions/evaluate/evaluate.ts
|
|
3497
|
+
var DISABLE_CACHE = true;
|
|
3482
3498
|
var EvalCache = class _EvalCache {
|
|
3483
3499
|
static cacheLimit = 20;
|
|
3484
3500
|
static cache = /* @__PURE__ */ new Map();
|
|
@@ -3527,7 +3543,7 @@ function evaluate({
|
|
|
3527
3543
|
rootState,
|
|
3528
3544
|
localState
|
|
3529
3545
|
};
|
|
3530
|
-
if (enableCache) {
|
|
3546
|
+
if (enableCache && !DISABLE_CACHE) {
|
|
3531
3547
|
const cacheKey = EvalCache.getCacheKey(args);
|
|
3532
3548
|
const cachedValue = EvalCache.getCachedValue(cacheKey);
|
|
3533
3549
|
if (cachedValue) {
|
|
@@ -3558,6 +3574,53 @@ function transformBlock(block) {
|
|
|
3558
3574
|
}
|
|
3559
3575
|
|
|
3560
3576
|
// src/functions/get-processed-block.ts
|
|
3577
|
+
function deepCloneWithConditions(obj) {
|
|
3578
|
+
if (obj === null || typeof obj !== "object") {
|
|
3579
|
+
return obj;
|
|
3580
|
+
}
|
|
3581
|
+
if (Array.isArray(obj)) {
|
|
3582
|
+
return obj.map((item) => deepCloneWithConditions(item));
|
|
3583
|
+
}
|
|
3584
|
+
if (obj["@type"] === "@builder.io/sdk:Element") {
|
|
3585
|
+
return obj;
|
|
3586
|
+
}
|
|
3587
|
+
const clonedObj = {};
|
|
3588
|
+
for (const key in obj) {
|
|
3589
|
+
if (key !== "meta" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3590
|
+
clonedObj[key] = deepCloneWithConditions(obj[key]);
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
return clonedObj;
|
|
3594
|
+
}
|
|
3595
|
+
var IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK = ["svelte", "vue", "angular", "qwik", "solid"].includes(TARGET);
|
|
3596
|
+
var getCopy = (block) => {
|
|
3597
|
+
if (IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK) {
|
|
3598
|
+
const copy = fastClone(block);
|
|
3599
|
+
const copied = {
|
|
3600
|
+
...copy,
|
|
3601
|
+
properties: {
|
|
3602
|
+
...copy.properties
|
|
3603
|
+
},
|
|
3604
|
+
actions: {
|
|
3605
|
+
...copy.actions
|
|
3606
|
+
}
|
|
3607
|
+
};
|
|
3608
|
+
return copied;
|
|
3609
|
+
} else {
|
|
3610
|
+
const copy = deepCloneWithConditions(omit(block, "children", "meta"));
|
|
3611
|
+
return {
|
|
3612
|
+
...copy,
|
|
3613
|
+
properties: {
|
|
3614
|
+
...copy.properties
|
|
3615
|
+
},
|
|
3616
|
+
actions: {
|
|
3617
|
+
...copy.actions
|
|
3618
|
+
},
|
|
3619
|
+
children: block.children,
|
|
3620
|
+
meta: block.meta
|
|
3621
|
+
};
|
|
3622
|
+
}
|
|
3623
|
+
};
|
|
3561
3624
|
var evaluateBindings = ({
|
|
3562
3625
|
block,
|
|
3563
3626
|
context,
|
|
@@ -3568,16 +3631,7 @@ var evaluateBindings = ({
|
|
|
3568
3631
|
if (!block.bindings) {
|
|
3569
3632
|
return block;
|
|
3570
3633
|
}
|
|
3571
|
-
const
|
|
3572
|
-
const copied = {
|
|
3573
|
-
...copy,
|
|
3574
|
-
properties: {
|
|
3575
|
-
...copy.properties
|
|
3576
|
-
},
|
|
3577
|
-
actions: {
|
|
3578
|
-
...copy.actions
|
|
3579
|
-
}
|
|
3580
|
-
};
|
|
3634
|
+
const copied = getCopy(block);
|
|
3581
3635
|
for (const binding in block.bindings) {
|
|
3582
3636
|
const expression = block.bindings[binding];
|
|
3583
3637
|
const value = evaluate({
|
|
@@ -3860,17 +3914,9 @@ function mapStyleObjToStrIfNeeded(style) {
|
|
|
3860
3914
|
// src/components/block/block.helpers.ts
|
|
3861
3915
|
var getComponent = ({
|
|
3862
3916
|
block,
|
|
3863
|
-
context,
|
|
3864
3917
|
registeredComponents
|
|
3865
3918
|
}) => {
|
|
3866
|
-
const componentName =
|
|
3867
|
-
block,
|
|
3868
|
-
localState: context.localState,
|
|
3869
|
-
rootState: context.rootState,
|
|
3870
|
-
rootSetState: context.rootSetState,
|
|
3871
|
-
context: context.context,
|
|
3872
|
-
shouldEvaluateBindings: false
|
|
3873
|
-
}).component?.name;
|
|
3919
|
+
const componentName = block.component?.name;
|
|
3874
3920
|
if (!componentName) {
|
|
3875
3921
|
return null;
|
|
3876
3922
|
}
|
|
@@ -4017,14 +4063,7 @@ var Inlined_styles_default = InlinedStyles;
|
|
|
4017
4063
|
// src/components/block/components/block-styles.tsx
|
|
4018
4064
|
function BlockStyles(props) {
|
|
4019
4065
|
const canShowBlock = createMemo(() => {
|
|
4020
|
-
const processedBlock =
|
|
4021
|
-
block: props.block,
|
|
4022
|
-
localState: props.context.localState,
|
|
4023
|
-
rootState: props.context.rootState,
|
|
4024
|
-
rootSetState: props.context.rootSetState,
|
|
4025
|
-
context: props.context.context,
|
|
4026
|
-
shouldEvaluateBindings: true
|
|
4027
|
-
});
|
|
4066
|
+
const processedBlock = props.block;
|
|
4028
4067
|
if (checkIsDefined(processedBlock.hide)) {
|
|
4029
4068
|
return !processedBlock.hide;
|
|
4030
4069
|
}
|
|
@@ -4034,14 +4073,7 @@ function BlockStyles(props) {
|
|
|
4034
4073
|
return true;
|
|
4035
4074
|
});
|
|
4036
4075
|
const css = createMemo(() => {
|
|
4037
|
-
const processedBlock =
|
|
4038
|
-
block: props.block,
|
|
4039
|
-
localState: props.context.localState,
|
|
4040
|
-
rootState: props.context.rootState,
|
|
4041
|
-
rootSetState: props.context.rootSetState,
|
|
4042
|
-
context: props.context.context,
|
|
4043
|
-
shouldEvaluateBindings: true
|
|
4044
|
-
});
|
|
4076
|
+
const processedBlock = props.block;
|
|
4045
4077
|
const styles = processedBlock.responsiveStyles;
|
|
4046
4078
|
const content = props.context.content;
|
|
4047
4079
|
const sizesWithUpdatedBreakpoints = getSizesForBreakpoints(
|
|
@@ -4310,12 +4342,9 @@ var Repeated_block_default = RepeatedBlock;
|
|
|
4310
4342
|
|
|
4311
4343
|
// src/components/block/block.tsx
|
|
4312
4344
|
function Block(props) {
|
|
4313
|
-
const
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
context: props.context,
|
|
4317
|
-
registeredComponents: props.registeredComponents
|
|
4318
|
-
});
|
|
4345
|
+
const [_processedBlock, set_processedBlock] = createSignal5({
|
|
4346
|
+
value: null,
|
|
4347
|
+
update: false
|
|
4319
4348
|
});
|
|
4320
4349
|
const repeatItem = createMemo5(() => {
|
|
4321
4350
|
return getRepeatItemData({
|
|
@@ -4324,7 +4353,7 @@ function Block(props) {
|
|
|
4324
4353
|
});
|
|
4325
4354
|
});
|
|
4326
4355
|
const processedBlock = createMemo5(() => {
|
|
4327
|
-
|
|
4356
|
+
const blockToUse = props.block.repeat?.collection ? props.block : getProcessedBlock({
|
|
4328
4357
|
block: props.block,
|
|
4329
4358
|
localState: props.context.localState,
|
|
4330
4359
|
rootState: props.context.rootState,
|
|
@@ -4332,6 +4361,13 @@ function Block(props) {
|
|
|
4332
4361
|
context: props.context.context,
|
|
4333
4362
|
shouldEvaluateBindings: true
|
|
4334
4363
|
});
|
|
4364
|
+
return blockToUse;
|
|
4365
|
+
});
|
|
4366
|
+
const blockComponent = createMemo5(() => {
|
|
4367
|
+
return getComponent({
|
|
4368
|
+
block: processedBlock(),
|
|
4369
|
+
registeredComponents: props.registeredComponents
|
|
4370
|
+
});
|
|
4335
4371
|
});
|
|
4336
4372
|
const Tag = createMemo5(() => {
|
|
4337
4373
|
const shouldUseLink = props.block.tagName === "a" || processedBlock().properties?.href || processedBlock().href;
|
|
@@ -4389,9 +4425,24 @@ function Block(props) {
|
|
|
4389
4425
|
}
|
|
4390
4426
|
});
|
|
4391
4427
|
return <><Show4 when={canShowBlock()}>
|
|
4392
|
-
<Block_styles_default
|
|
4428
|
+
<Block_styles_default
|
|
4429
|
+
block={processedBlock()}
|
|
4430
|
+
context={props.context}
|
|
4431
|
+
/>
|
|
4393
4432
|
<Show4
|
|
4394
|
-
fallback={<
|
|
4433
|
+
fallback={<Show4
|
|
4434
|
+
fallback={<For2 each={repeatItem()}>{(data, _index) => {
|
|
4435
|
+
const index = _index();
|
|
4436
|
+
return <Repeated_block_default
|
|
4437
|
+
key={index}
|
|
4438
|
+
repeatContext={data.context}
|
|
4439
|
+
block={data.block}
|
|
4440
|
+
registeredComponents={props.registeredComponents}
|
|
4441
|
+
linkComponent={props.linkComponent}
|
|
4442
|
+
/>;
|
|
4443
|
+
}}</For2>}
|
|
4444
|
+
when={!repeatItem()}
|
|
4445
|
+
><Component_ref_default
|
|
4395
4446
|
componentRef={componentRefProps().componentRef}
|
|
4396
4447
|
componentOptions={componentRefProps().componentOptions}
|
|
4397
4448
|
blockChildren={componentRefProps().blockChildren}
|
|
@@ -4401,7 +4452,7 @@ function Block(props) {
|
|
|
4401
4452
|
builderBlock={componentRefProps().builderBlock}
|
|
4402
4453
|
includeBlockProps={componentRefProps().includeBlockProps}
|
|
4403
4454
|
isInteractive={componentRefProps().isInteractive}
|
|
4404
|
-
|
|
4455
|
+
/></Show4>}
|
|
4405
4456
|
when={!blockComponent()?.noWrap}
|
|
4406
4457
|
><Show4
|
|
4407
4458
|
fallback={<For2 each={repeatItem()}>{(data, _index) => {
|
|
@@ -4447,7 +4498,7 @@ function Block(props) {
|
|
|
4447
4498
|
var Block_default = Block;
|
|
4448
4499
|
|
|
4449
4500
|
// src/components/blocks/blocks-wrapper.tsx
|
|
4450
|
-
import { createMemo as createMemo6 } from "solid-js";
|
|
4501
|
+
import { onMount as onMount2, createMemo as createMemo6 } from "solid-js";
|
|
4451
4502
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
4452
4503
|
function BlocksWrapper(props) {
|
|
4453
4504
|
const className = createMemo6(() => {
|
|
@@ -4481,9 +4532,13 @@ function BlocksWrapper(props) {
|
|
|
4481
4532
|
);
|
|
4482
4533
|
}
|
|
4483
4534
|
}
|
|
4535
|
+
let blocksWrapperRef;
|
|
4536
|
+
onMount2(() => {
|
|
4537
|
+
});
|
|
4484
4538
|
return <>
|
|
4485
4539
|
<Dynamic4
|
|
4486
|
-
class={className() + " dynamic-
|
|
4540
|
+
class={className() + " dynamic-4da8c6f4"}
|
|
4541
|
+
ref={blocksWrapperRef}
|
|
4487
4542
|
builder-path={props.path}
|
|
4488
4543
|
builder-parent-id={props.parent}
|
|
4489
4544
|
{...{}}
|
|
@@ -4494,7 +4549,7 @@ function BlocksWrapper(props) {
|
|
|
4494
4549
|
{...props.BlocksWrapperProps}
|
|
4495
4550
|
component={props.BlocksWrapper}
|
|
4496
4551
|
>{props.children}</Dynamic4>
|
|
4497
|
-
<style>{`.dynamic-
|
|
4552
|
+
<style>{`.dynamic-4da8c6f4 {
|
|
4498
4553
|
display: flex;
|
|
4499
4554
|
flex-direction: column;
|
|
4500
4555
|
align-items: stretch;
|
|
@@ -4698,7 +4753,7 @@ function FragmentComponent(props) {
|
|
|
4698
4753
|
var fragment_default = FragmentComponent;
|
|
4699
4754
|
|
|
4700
4755
|
// src/blocks/image/image.tsx
|
|
4701
|
-
import { Show as Show7, onMount as
|
|
4756
|
+
import { Show as Show7, onMount as onMount3, createMemo as createMemo8 } from "solid-js";
|
|
4702
4757
|
|
|
4703
4758
|
// src/blocks/image/image.helpers.ts
|
|
4704
4759
|
function removeProtocol(path) {
|
|
@@ -4788,7 +4843,7 @@ function Image(props) {
|
|
|
4788
4843
|
const out = props.aspectRatio ? aspectRatioStyles : void 0;
|
|
4789
4844
|
return out;
|
|
4790
4845
|
});
|
|
4791
|
-
|
|
4846
|
+
onMount3(() => {
|
|
4792
4847
|
});
|
|
4793
4848
|
return <>
|
|
4794
4849
|
<>
|
|
@@ -4864,10 +4919,10 @@ function SectionComponent(props) {
|
|
|
4864
4919
|
var section_default = SectionComponent;
|
|
4865
4920
|
|
|
4866
4921
|
// src/blocks/symbol/symbol.tsx
|
|
4867
|
-
import { onMount as
|
|
4922
|
+
import { onMount as onMount7, on as on4, createEffect as createEffect4, createMemo as createMemo20, createSignal as createSignal20 } from "solid-js";
|
|
4868
4923
|
|
|
4869
4924
|
// src/components/content-variants/content-variants.tsx
|
|
4870
|
-
import { Show as Show14, For as For9, onMount as
|
|
4925
|
+
import { Show as Show14, For as For9, onMount as onMount6, createSignal as createSignal19, createMemo as createMemo19 } from "solid-js";
|
|
4871
4926
|
|
|
4872
4927
|
// src/helpers/url.ts
|
|
4873
4928
|
var getTopLevelDomain = (host) => {
|
|
@@ -5807,7 +5862,8 @@ var componentInfo7 = {
|
|
|
5807
5862
|
defaultValue: "children"
|
|
5808
5863
|
}],
|
|
5809
5864
|
shouldReceiveBuilderProps: {
|
|
5810
|
-
builderContext: true
|
|
5865
|
+
builderContext: true,
|
|
5866
|
+
builderComponents: true
|
|
5811
5867
|
}
|
|
5812
5868
|
};
|
|
5813
5869
|
|
|
@@ -5824,6 +5880,7 @@ function Slot(props) {
|
|
|
5824
5880
|
parent={props.builderContext.context?.symbolId}
|
|
5825
5881
|
path={`symbol.data.${props.name}`}
|
|
5826
5882
|
context={props.builderContext}
|
|
5883
|
+
registeredComponents={props.builderComponents}
|
|
5827
5884
|
blocks={props.builderContext.rootState?.[props.name]}
|
|
5828
5885
|
/></div></>;
|
|
5829
5886
|
}
|
|
@@ -6156,12 +6213,12 @@ var componentInfo11 = {
|
|
|
6156
6213
|
};
|
|
6157
6214
|
|
|
6158
6215
|
// src/blocks/custom-code/custom-code.tsx
|
|
6159
|
-
import { onMount as
|
|
6216
|
+
import { onMount as onMount4, createSignal as createSignal12 } from "solid-js";
|
|
6160
6217
|
function CustomCode(props) {
|
|
6161
6218
|
const [scriptsInserted, setScriptsInserted] = createSignal12([]);
|
|
6162
6219
|
const [scriptsRun, setScriptsRun] = createSignal12([]);
|
|
6163
6220
|
let elementRef;
|
|
6164
|
-
|
|
6221
|
+
onMount4(() => {
|
|
6165
6222
|
if (!elementRef?.getElementsByTagName || typeof window === "undefined") {
|
|
6166
6223
|
return;
|
|
6167
6224
|
}
|
|
@@ -6221,7 +6278,7 @@ var componentInfo12 = {
|
|
|
6221
6278
|
};
|
|
6222
6279
|
|
|
6223
6280
|
// src/blocks/embed/embed.tsx
|
|
6224
|
-
import { on, createEffect, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
6281
|
+
import { on as on2, createEffect as createEffect2, createMemo as createMemo13, createSignal as createSignal13 } from "solid-js";
|
|
6225
6282
|
|
|
6226
6283
|
// src/blocks/embed/helpers.ts
|
|
6227
6284
|
var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
|
|
@@ -6263,8 +6320,8 @@ function Embed(props) {
|
|
|
6263
6320
|
findAndRunScripts();
|
|
6264
6321
|
}
|
|
6265
6322
|
}
|
|
6266
|
-
|
|
6267
|
-
|
|
6323
|
+
createEffect2(
|
|
6324
|
+
on2(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0)
|
|
6268
6325
|
);
|
|
6269
6326
|
return <><div class="builder-embed" ref={elem} innerHTML={props.content} /></>;
|
|
6270
6327
|
}
|
|
@@ -7330,9 +7387,9 @@ var Inlined_script_default = InlinedScript;
|
|
|
7330
7387
|
// src/components/content/components/enable-editor.tsx
|
|
7331
7388
|
import {
|
|
7332
7389
|
Show as Show12,
|
|
7333
|
-
onMount as
|
|
7334
|
-
on as
|
|
7335
|
-
createEffect as
|
|
7390
|
+
onMount as onMount5,
|
|
7391
|
+
on as on3,
|
|
7392
|
+
createEffect as createEffect3,
|
|
7336
7393
|
createMemo as createMemo16,
|
|
7337
7394
|
createSignal as createSignal16
|
|
7338
7395
|
} from "solid-js";
|
|
@@ -7441,7 +7498,7 @@ var generateContentUrl = (options) => {
|
|
|
7441
7498
|
locale,
|
|
7442
7499
|
apiVersion = DEFAULT_API_VERSION,
|
|
7443
7500
|
fields,
|
|
7444
|
-
omit,
|
|
7501
|
+
omit: omit2,
|
|
7445
7502
|
offset,
|
|
7446
7503
|
cacheSeconds,
|
|
7447
7504
|
staleCacheSeconds,
|
|
@@ -7464,7 +7521,7 @@ var generateContentUrl = (options) => {
|
|
|
7464
7521
|
url.searchParams.set("locale", locale);
|
|
7465
7522
|
if (enrich)
|
|
7466
7523
|
url.searchParams.set("enrich", String(enrich));
|
|
7467
|
-
url.searchParams.set("omit",
|
|
7524
|
+
url.searchParams.set("omit", omit2 || "meta.componentsUsed");
|
|
7468
7525
|
if (fields) {
|
|
7469
7526
|
url.searchParams.set("fields", fields);
|
|
7470
7527
|
}
|
|
@@ -7837,7 +7894,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7837
7894
|
}
|
|
7838
7895
|
|
|
7839
7896
|
// src/constants/sdk-version.ts
|
|
7840
|
-
var SDK_VERSION = "2.0.
|
|
7897
|
+
var SDK_VERSION = "2.0.15";
|
|
7841
7898
|
|
|
7842
7899
|
// src/functions/register.ts
|
|
7843
7900
|
var registry = {};
|
|
@@ -8277,7 +8334,7 @@ function EnableEditor(props) {
|
|
|
8277
8334
|
}
|
|
8278
8335
|
}
|
|
8279
8336
|
let elementRef;
|
|
8280
|
-
|
|
8337
|
+
onMount5(() => {
|
|
8281
8338
|
if (isBrowser()) {
|
|
8282
8339
|
if (isEditing()) {
|
|
8283
8340
|
window.addEventListener("message", processMessage);
|
|
@@ -8338,7 +8395,7 @@ function EnableEditor(props) {
|
|
|
8338
8395
|
}
|
|
8339
8396
|
}
|
|
8340
8397
|
});
|
|
8341
|
-
|
|
8398
|
+
onMount5(() => {
|
|
8342
8399
|
if (!props.apiKey) {
|
|
8343
8400
|
logger.error(
|
|
8344
8401
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
@@ -8354,13 +8411,13 @@ function EnableEditor(props) {
|
|
|
8354
8411
|
mergeNewContent(props.content);
|
|
8355
8412
|
}
|
|
8356
8413
|
}
|
|
8357
|
-
|
|
8414
|
+
createEffect3(on3(() => [onUpdateFn_0_props_content()], onUpdateFn_0));
|
|
8358
8415
|
const onUpdateFn_1_props_builderContextSignal_content__data__jsCode = createMemo16(() => props.builderContextSignal.content?.data?.jsCode);
|
|
8359
8416
|
function onUpdateFn_1() {
|
|
8360
8417
|
evaluateJsCode();
|
|
8361
8418
|
}
|
|
8362
|
-
|
|
8363
|
-
|
|
8419
|
+
createEffect3(
|
|
8420
|
+
on3(
|
|
8364
8421
|
() => [onUpdateFn_1_props_builderContextSignal_content__data__jsCode()],
|
|
8365
8422
|
onUpdateFn_1
|
|
8366
8423
|
)
|
|
@@ -8369,8 +8426,8 @@ function EnableEditor(props) {
|
|
|
8369
8426
|
function onUpdateFn_2() {
|
|
8370
8427
|
runHttpRequests();
|
|
8371
8428
|
}
|
|
8372
|
-
|
|
8373
|
-
|
|
8429
|
+
createEffect3(
|
|
8430
|
+
on3(
|
|
8374
8431
|
() => [
|
|
8375
8432
|
onUpdateFn_2_props_builderContextSignal_content__data__httpRequests()
|
|
8376
8433
|
],
|
|
@@ -8383,8 +8440,8 @@ function EnableEditor(props) {
|
|
|
8383
8440
|
function onUpdateFn_3() {
|
|
8384
8441
|
emitStateUpdate();
|
|
8385
8442
|
}
|
|
8386
|
-
|
|
8387
|
-
|
|
8443
|
+
createEffect3(
|
|
8444
|
+
on3(
|
|
8388
8445
|
() => [onUpdateFn_3_props_builderContextSignal_rootState()],
|
|
8389
8446
|
onUpdateFn_3
|
|
8390
8447
|
)
|
|
@@ -8395,7 +8452,7 @@ function EnableEditor(props) {
|
|
|
8395
8452
|
mergeNewRootState(props.data);
|
|
8396
8453
|
}
|
|
8397
8454
|
}
|
|
8398
|
-
|
|
8455
|
+
createEffect3(on3(() => [onUpdateFn_4_props_data()], onUpdateFn_4));
|
|
8399
8456
|
const onUpdateFn_5_props_locale = createMemo16(() => props.locale);
|
|
8400
8457
|
function onUpdateFn_5() {
|
|
8401
8458
|
if (props.locale) {
|
|
@@ -8404,7 +8461,7 @@ function EnableEditor(props) {
|
|
|
8404
8461
|
});
|
|
8405
8462
|
}
|
|
8406
8463
|
}
|
|
8407
|
-
|
|
8464
|
+
createEffect3(on3(() => [onUpdateFn_5_props_locale()], onUpdateFn_5));
|
|
8408
8465
|
return <><builder_context_default.Provider value={props.builderContextSignal}><Show12 when={props.builderContextSignal.content}><Dynamic5
|
|
8409
8466
|
class={getWrapperClassName(
|
|
8410
8467
|
props.content?.testVariationId || props.content?.id
|
|
@@ -8629,7 +8686,7 @@ function ContentVariants(props) {
|
|
|
8629
8686
|
canTrack: getDefaultCanTrack(props.canTrack)
|
|
8630
8687
|
});
|
|
8631
8688
|
});
|
|
8632
|
-
|
|
8689
|
+
onMount6(() => {
|
|
8633
8690
|
setShouldRenderVariants(false);
|
|
8634
8691
|
});
|
|
8635
8692
|
return <><>
|
|
@@ -8757,13 +8814,13 @@ function Symbol2(props) {
|
|
|
8757
8814
|
}
|
|
8758
8815
|
});
|
|
8759
8816
|
}
|
|
8760
|
-
|
|
8817
|
+
onMount7(() => {
|
|
8761
8818
|
});
|
|
8762
8819
|
const onUpdateFn_0_props_symbol = createMemo20(() => props.symbol);
|
|
8763
8820
|
function onUpdateFn_0() {
|
|
8764
8821
|
setContent();
|
|
8765
8822
|
}
|
|
8766
|
-
|
|
8823
|
+
createEffect4(on4(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
8767
8824
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
8768
8825
|
nonce={props.builderContext.nonce}
|
|
8769
8826
|
isNestedRender={true}
|