@builder.io/sdk-solid 1.0.12 → 1.0.13
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 +31 -16
- package/lib/browser/dev.jsx +24 -16
- package/lib/browser/index.js +31 -16
- package/lib/browser/index.jsx +24 -16
- package/lib/edge/dev.js +31 -16
- package/lib/edge/dev.jsx +24 -16
- package/lib/edge/index.js +31 -16
- package/lib/edge/index.jsx +24 -16
- package/lib/node/dev.js +31 -16
- package/lib/node/dev.jsx +24 -16
- package/lib/node/index.js +31 -16
- package/lib/node/index.jsx +24 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -671,7 +671,7 @@ type VariantsProviderProps = ContentVariantsPrps & {
|
|
|
671
671
|
/**
|
|
672
672
|
* For internal use only. Do not provide this prop.
|
|
673
673
|
*/
|
|
674
|
-
|
|
674
|
+
isNestedRender?: boolean;
|
|
675
675
|
};
|
|
676
676
|
|
|
677
677
|
declare function ContentVariants(props: VariantsProviderProps): solid_js.JSX.Element;
|
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.13";
|
|
4450
4450
|
|
|
4451
4451
|
// src/functions/register.ts
|
|
4452
4452
|
var registry = {};
|
|
@@ -5007,18 +5007,7 @@ var getCss = ({
|
|
|
5007
5007
|
}
|
|
5008
5008
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
5009
5009
|
};
|
|
5010
|
-
|
|
5011
|
-
// src/components/content/components/styles.tsx
|
|
5012
|
-
function ContentStyles(props) {
|
|
5013
|
-
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5014
|
-
${getCss({
|
|
5015
|
-
cssCode: props.cssCode,
|
|
5016
|
-
contentId: props.contentId
|
|
5017
|
-
})}
|
|
5018
|
-
${getFontCss({
|
|
5019
|
-
customFonts: props.customFonts
|
|
5020
|
-
})}
|
|
5021
|
-
|
|
5010
|
+
var DEFAULT_STYLES = `
|
|
5022
5011
|
.builder-button {
|
|
5023
5012
|
all: unset;
|
|
5024
5013
|
}
|
|
@@ -5035,6 +5024,22 @@ ${getFontCss({
|
|
|
5035
5024
|
text-align: inherit;
|
|
5036
5025
|
font-family: inherit;
|
|
5037
5026
|
}
|
|
5027
|
+
`;
|
|
5028
|
+
var getDefaultStyles = (isNested) => {
|
|
5029
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
5030
|
+
};
|
|
5031
|
+
|
|
5032
|
+
// src/components/content/components/styles.tsx
|
|
5033
|
+
function ContentStyles(props) {
|
|
5034
|
+
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5035
|
+
${getCss({
|
|
5036
|
+
cssCode: props.cssCode,
|
|
5037
|
+
contentId: props.contentId
|
|
5038
|
+
})}
|
|
5039
|
+
${getFontCss({
|
|
5040
|
+
customFonts: props.customFonts
|
|
5041
|
+
})}
|
|
5042
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
5038
5043
|
`.trim());
|
|
5039
5044
|
return createComponent(inlined_styles_default, {
|
|
5040
5045
|
get styles() {
|
|
@@ -5199,6 +5204,9 @@ function ContentComponent(props) {
|
|
|
5199
5204
|
when: TARGET !== "reactNative",
|
|
5200
5205
|
get children() {
|
|
5201
5206
|
return createComponent(styles_default, {
|
|
5207
|
+
get isNestedRender() {
|
|
5208
|
+
return props.isNestedRender;
|
|
5209
|
+
},
|
|
5202
5210
|
get contentId() {
|
|
5203
5211
|
return builderContextSignal().content?.id;
|
|
5204
5212
|
},
|
|
@@ -5260,7 +5268,7 @@ function ContentVariants(props) {
|
|
|
5260
5268
|
});
|
|
5261
5269
|
return [createComponent(Show, {
|
|
5262
5270
|
get when() {
|
|
5263
|
-
return !props.
|
|
5271
|
+
return !props.isNestedRender && TARGET !== "reactNative";
|
|
5264
5272
|
},
|
|
5265
5273
|
get children() {
|
|
5266
5274
|
return createComponent(inlined_script_default, {
|
|
@@ -5292,6 +5300,9 @@ function ContentVariants(props) {
|
|
|
5292
5300
|
children: (variant, _index) => {
|
|
5293
5301
|
_index();
|
|
5294
5302
|
return createComponent(content_default, {
|
|
5303
|
+
get isNestedRender() {
|
|
5304
|
+
return props.isNestedRender;
|
|
5305
|
+
},
|
|
5295
5306
|
get key() {
|
|
5296
5307
|
return variant.testVariationId;
|
|
5297
5308
|
},
|
|
@@ -5349,7 +5360,11 @@ function ContentVariants(props) {
|
|
|
5349
5360
|
}
|
|
5350
5361
|
})];
|
|
5351
5362
|
}
|
|
5352
|
-
}), createComponent(content_default, mergeProps({
|
|
5363
|
+
}), createComponent(content_default, mergeProps({
|
|
5364
|
+
get isNestedRender() {
|
|
5365
|
+
return props.isNestedRender;
|
|
5366
|
+
}
|
|
5367
|
+
}, {}, {
|
|
5353
5368
|
get content() {
|
|
5354
5369
|
return defaultContent();
|
|
5355
5370
|
},
|
|
@@ -5464,7 +5479,7 @@ function Symbol(props) {
|
|
|
5464
5479
|
}
|
|
5465
5480
|
}, {}, () => props.attributes, {}), false, true);
|
|
5466
5481
|
insert(_el$, createComponent(content_variants_default, {
|
|
5467
|
-
|
|
5482
|
+
isNestedRender: true,
|
|
5468
5483
|
get apiVersion() {
|
|
5469
5484
|
return props.builderContext.apiVersion;
|
|
5470
5485
|
},
|
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.13";
|
|
4033
4033
|
|
|
4034
4034
|
// src/functions/register.ts
|
|
4035
4035
|
var registry = {};
|
|
@@ -4603,19 +4603,7 @@ var getCss = ({
|
|
|
4603
4603
|
}
|
|
4604
4604
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
4605
4605
|
};
|
|
4606
|
-
|
|
4607
|
-
// src/components/content/components/styles.tsx
|
|
4608
|
-
function ContentStyles(props) {
|
|
4609
|
-
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4610
|
-
`
|
|
4611
|
-
${getCss({
|
|
4612
|
-
cssCode: props.cssCode,
|
|
4613
|
-
contentId: props.contentId
|
|
4614
|
-
})}
|
|
4615
|
-
${getFontCss({
|
|
4616
|
-
customFonts: props.customFonts
|
|
4617
|
-
})}
|
|
4618
|
-
|
|
4606
|
+
var DEFAULT_STYLES = `
|
|
4619
4607
|
.builder-button {
|
|
4620
4608
|
all: unset;
|
|
4621
4609
|
}
|
|
@@ -4632,6 +4620,23 @@ ${getFontCss({
|
|
|
4632
4620
|
text-align: inherit;
|
|
4633
4621
|
font-family: inherit;
|
|
4634
4622
|
}
|
|
4623
|
+
`;
|
|
4624
|
+
var getDefaultStyles = (isNested) => {
|
|
4625
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
4626
|
+
};
|
|
4627
|
+
|
|
4628
|
+
// src/components/content/components/styles.tsx
|
|
4629
|
+
function ContentStyles(props) {
|
|
4630
|
+
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4631
|
+
`
|
|
4632
|
+
${getCss({
|
|
4633
|
+
cssCode: props.cssCode,
|
|
4634
|
+
contentId: props.contentId
|
|
4635
|
+
})}
|
|
4636
|
+
${getFontCss({
|
|
4637
|
+
customFonts: props.customFonts
|
|
4638
|
+
})}
|
|
4639
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
4635
4640
|
`.trim()
|
|
4636
4641
|
);
|
|
4637
4642
|
return <Inlined_styles_default styles={injectedStyles()} />;
|
|
@@ -4759,6 +4764,7 @@ function ContentComponent(props) {
|
|
|
4759
4764
|
>
|
|
4760
4765
|
<Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
|
|
4761
4766
|
<Show11 when={TARGET !== "reactNative"}><Styles_default
|
|
4767
|
+
isNestedRender={props.isNestedRender}
|
|
4762
4768
|
contentId={builderContextSignal().content?.id}
|
|
4763
4769
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
4764
4770
|
customFonts={builderContextSignal().content?.data?.customFonts}
|
|
@@ -4806,7 +4812,7 @@ function ContentVariants(props) {
|
|
|
4806
4812
|
setShouldRenderVariants(false);
|
|
4807
4813
|
});
|
|
4808
4814
|
return <>
|
|
4809
|
-
<Show12 when={!props.
|
|
4815
|
+
<Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
|
|
4810
4816
|
<Show12 when={shouldRenderVariants()}>
|
|
4811
4817
|
<Inlined_styles_default
|
|
4812
4818
|
id={`variants-styles-${props.content?.id}`}
|
|
@@ -4818,6 +4824,7 @@ function ContentVariants(props) {
|
|
|
4818
4824
|
<For7 each={getVariants(props.content)}>{(variant, _index) => {
|
|
4819
4825
|
const index = _index();
|
|
4820
4826
|
return <Content_default
|
|
4827
|
+
isNestedRender={props.isNestedRender}
|
|
4821
4828
|
key={variant.testVariationId}
|
|
4822
4829
|
content={variant}
|
|
4823
4830
|
showContent={false}
|
|
@@ -4841,6 +4848,7 @@ function ContentVariants(props) {
|
|
|
4841
4848
|
}}</For7>
|
|
4842
4849
|
</Show12>
|
|
4843
4850
|
<Content_default
|
|
4851
|
+
isNestedRender={props.isNestedRender}
|
|
4844
4852
|
{...{}}
|
|
4845
4853
|
content={defaultContent()}
|
|
4846
4854
|
showContent={true}
|
|
@@ -4920,7 +4928,7 @@ function Symbol(props) {
|
|
|
4920
4928
|
}
|
|
4921
4929
|
createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
4922
4930
|
return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
4923
|
-
|
|
4931
|
+
isNestedRender={true}
|
|
4924
4932
|
apiVersion={props.builderContext.apiVersion}
|
|
4925
4933
|
apiKey={props.builderContext.apiKey}
|
|
4926
4934
|
context={{
|
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.13";
|
|
4435
4435
|
|
|
4436
4436
|
// src/functions/register.ts
|
|
4437
4437
|
var registry = {};
|
|
@@ -4990,18 +4990,7 @@ var getCss = ({
|
|
|
4990
4990
|
}
|
|
4991
4991
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
4992
4992
|
};
|
|
4993
|
-
|
|
4994
|
-
// src/components/content/components/styles.tsx
|
|
4995
|
-
function ContentStyles(props) {
|
|
4996
|
-
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
4997
|
-
${getCss({
|
|
4998
|
-
cssCode: props.cssCode,
|
|
4999
|
-
contentId: props.contentId
|
|
5000
|
-
})}
|
|
5001
|
-
${getFontCss({
|
|
5002
|
-
customFonts: props.customFonts
|
|
5003
|
-
})}
|
|
5004
|
-
|
|
4993
|
+
var DEFAULT_STYLES = `
|
|
5005
4994
|
.builder-button {
|
|
5006
4995
|
all: unset;
|
|
5007
4996
|
}
|
|
@@ -5018,6 +5007,22 @@ ${getFontCss({
|
|
|
5018
5007
|
text-align: inherit;
|
|
5019
5008
|
font-family: inherit;
|
|
5020
5009
|
}
|
|
5010
|
+
`;
|
|
5011
|
+
var getDefaultStyles = (isNested) => {
|
|
5012
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
5013
|
+
};
|
|
5014
|
+
|
|
5015
|
+
// src/components/content/components/styles.tsx
|
|
5016
|
+
function ContentStyles(props) {
|
|
5017
|
+
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5018
|
+
${getCss({
|
|
5019
|
+
cssCode: props.cssCode,
|
|
5020
|
+
contentId: props.contentId
|
|
5021
|
+
})}
|
|
5022
|
+
${getFontCss({
|
|
5023
|
+
customFonts: props.customFonts
|
|
5024
|
+
})}
|
|
5025
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
5021
5026
|
`.trim());
|
|
5022
5027
|
return createComponent(inlined_styles_default, {
|
|
5023
5028
|
get styles() {
|
|
@@ -5182,6 +5187,9 @@ function ContentComponent(props) {
|
|
|
5182
5187
|
when: TARGET !== "reactNative",
|
|
5183
5188
|
get children() {
|
|
5184
5189
|
return createComponent(styles_default, {
|
|
5190
|
+
get isNestedRender() {
|
|
5191
|
+
return props.isNestedRender;
|
|
5192
|
+
},
|
|
5185
5193
|
get contentId() {
|
|
5186
5194
|
return builderContextSignal().content?.id;
|
|
5187
5195
|
},
|
|
@@ -5243,7 +5251,7 @@ function ContentVariants(props) {
|
|
|
5243
5251
|
});
|
|
5244
5252
|
return [createComponent(Show, {
|
|
5245
5253
|
get when() {
|
|
5246
|
-
return !props.
|
|
5254
|
+
return !props.isNestedRender && TARGET !== "reactNative";
|
|
5247
5255
|
},
|
|
5248
5256
|
get children() {
|
|
5249
5257
|
return createComponent(inlined_script_default, {
|
|
@@ -5275,6 +5283,9 @@ function ContentVariants(props) {
|
|
|
5275
5283
|
children: (variant, _index) => {
|
|
5276
5284
|
_index();
|
|
5277
5285
|
return createComponent(content_default, {
|
|
5286
|
+
get isNestedRender() {
|
|
5287
|
+
return props.isNestedRender;
|
|
5288
|
+
},
|
|
5278
5289
|
get key() {
|
|
5279
5290
|
return variant.testVariationId;
|
|
5280
5291
|
},
|
|
@@ -5332,7 +5343,11 @@ function ContentVariants(props) {
|
|
|
5332
5343
|
}
|
|
5333
5344
|
})];
|
|
5334
5345
|
}
|
|
5335
|
-
}), createComponent(content_default, mergeProps({
|
|
5346
|
+
}), createComponent(content_default, mergeProps({
|
|
5347
|
+
get isNestedRender() {
|
|
5348
|
+
return props.isNestedRender;
|
|
5349
|
+
}
|
|
5350
|
+
}, {}, {
|
|
5336
5351
|
get content() {
|
|
5337
5352
|
return defaultContent();
|
|
5338
5353
|
},
|
|
@@ -5447,7 +5462,7 @@ function Symbol(props) {
|
|
|
5447
5462
|
}
|
|
5448
5463
|
}, {}, () => props.attributes, {}), false, true);
|
|
5449
5464
|
insert(_el$, createComponent(content_variants_default, {
|
|
5450
|
-
|
|
5465
|
+
isNestedRender: true,
|
|
5451
5466
|
get apiVersion() {
|
|
5452
5467
|
return props.builderContext.apiVersion;
|
|
5453
5468
|
},
|
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.13";
|
|
4018
4018
|
|
|
4019
4019
|
// src/functions/register.ts
|
|
4020
4020
|
var registry = {};
|
|
@@ -4586,19 +4586,7 @@ var getCss = ({
|
|
|
4586
4586
|
}
|
|
4587
4587
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
4588
4588
|
};
|
|
4589
|
-
|
|
4590
|
-
// src/components/content/components/styles.tsx
|
|
4591
|
-
function ContentStyles(props) {
|
|
4592
|
-
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4593
|
-
`
|
|
4594
|
-
${getCss({
|
|
4595
|
-
cssCode: props.cssCode,
|
|
4596
|
-
contentId: props.contentId
|
|
4597
|
-
})}
|
|
4598
|
-
${getFontCss({
|
|
4599
|
-
customFonts: props.customFonts
|
|
4600
|
-
})}
|
|
4601
|
-
|
|
4589
|
+
var DEFAULT_STYLES = `
|
|
4602
4590
|
.builder-button {
|
|
4603
4591
|
all: unset;
|
|
4604
4592
|
}
|
|
@@ -4615,6 +4603,23 @@ ${getFontCss({
|
|
|
4615
4603
|
text-align: inherit;
|
|
4616
4604
|
font-family: inherit;
|
|
4617
4605
|
}
|
|
4606
|
+
`;
|
|
4607
|
+
var getDefaultStyles = (isNested) => {
|
|
4608
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
4609
|
+
};
|
|
4610
|
+
|
|
4611
|
+
// src/components/content/components/styles.tsx
|
|
4612
|
+
function ContentStyles(props) {
|
|
4613
|
+
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4614
|
+
`
|
|
4615
|
+
${getCss({
|
|
4616
|
+
cssCode: props.cssCode,
|
|
4617
|
+
contentId: props.contentId
|
|
4618
|
+
})}
|
|
4619
|
+
${getFontCss({
|
|
4620
|
+
customFonts: props.customFonts
|
|
4621
|
+
})}
|
|
4622
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
4618
4623
|
`.trim()
|
|
4619
4624
|
);
|
|
4620
4625
|
return <Inlined_styles_default styles={injectedStyles()} />;
|
|
@@ -4742,6 +4747,7 @@ function ContentComponent(props) {
|
|
|
4742
4747
|
>
|
|
4743
4748
|
<Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
|
|
4744
4749
|
<Show11 when={TARGET !== "reactNative"}><Styles_default
|
|
4750
|
+
isNestedRender={props.isNestedRender}
|
|
4745
4751
|
contentId={builderContextSignal().content?.id}
|
|
4746
4752
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
4747
4753
|
customFonts={builderContextSignal().content?.data?.customFonts}
|
|
@@ -4789,7 +4795,7 @@ function ContentVariants(props) {
|
|
|
4789
4795
|
setShouldRenderVariants(false);
|
|
4790
4796
|
});
|
|
4791
4797
|
return <>
|
|
4792
|
-
<Show12 when={!props.
|
|
4798
|
+
<Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
|
|
4793
4799
|
<Show12 when={shouldRenderVariants()}>
|
|
4794
4800
|
<Inlined_styles_default
|
|
4795
4801
|
id={`variants-styles-${props.content?.id}`}
|
|
@@ -4801,6 +4807,7 @@ function ContentVariants(props) {
|
|
|
4801
4807
|
<For7 each={getVariants(props.content)}>{(variant, _index) => {
|
|
4802
4808
|
const index = _index();
|
|
4803
4809
|
return <Content_default
|
|
4810
|
+
isNestedRender={props.isNestedRender}
|
|
4804
4811
|
key={variant.testVariationId}
|
|
4805
4812
|
content={variant}
|
|
4806
4813
|
showContent={false}
|
|
@@ -4824,6 +4831,7 @@ function ContentVariants(props) {
|
|
|
4824
4831
|
}}</For7>
|
|
4825
4832
|
</Show12>
|
|
4826
4833
|
<Content_default
|
|
4834
|
+
isNestedRender={props.isNestedRender}
|
|
4827
4835
|
{...{}}
|
|
4828
4836
|
content={defaultContent()}
|
|
4829
4837
|
showContent={true}
|
|
@@ -4903,7 +4911,7 @@ function Symbol(props) {
|
|
|
4903
4911
|
}
|
|
4904
4912
|
createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
4905
4913
|
return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
4906
|
-
|
|
4914
|
+
isNestedRender={true}
|
|
4907
4915
|
apiVersion={props.builderContext.apiVersion}
|
|
4908
4916
|
apiKey={props.builderContext.apiKey}
|
|
4909
4917
|
context={{
|
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.13";
|
|
7603
7603
|
|
|
7604
7604
|
// src/functions/register.ts
|
|
7605
7605
|
var registry = {};
|
|
@@ -8160,18 +8160,7 @@ var getCss = ({
|
|
|
8160
8160
|
}
|
|
8161
8161
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
8162
8162
|
};
|
|
8163
|
-
|
|
8164
|
-
// src/components/content/components/styles.tsx
|
|
8165
|
-
function ContentStyles(props) {
|
|
8166
|
-
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
8167
|
-
${getCss({
|
|
8168
|
-
cssCode: props.cssCode,
|
|
8169
|
-
contentId: props.contentId
|
|
8170
|
-
})}
|
|
8171
|
-
${getFontCss({
|
|
8172
|
-
customFonts: props.customFonts
|
|
8173
|
-
})}
|
|
8174
|
-
|
|
8163
|
+
var DEFAULT_STYLES = `
|
|
8175
8164
|
.builder-button {
|
|
8176
8165
|
all: unset;
|
|
8177
8166
|
}
|
|
@@ -8188,6 +8177,22 @@ ${getFontCss({
|
|
|
8188
8177
|
text-align: inherit;
|
|
8189
8178
|
font-family: inherit;
|
|
8190
8179
|
}
|
|
8180
|
+
`;
|
|
8181
|
+
var getDefaultStyles = (isNested) => {
|
|
8182
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
8183
|
+
};
|
|
8184
|
+
|
|
8185
|
+
// src/components/content/components/styles.tsx
|
|
8186
|
+
function ContentStyles(props) {
|
|
8187
|
+
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
8188
|
+
${getCss({
|
|
8189
|
+
cssCode: props.cssCode,
|
|
8190
|
+
contentId: props.contentId
|
|
8191
|
+
})}
|
|
8192
|
+
${getFontCss({
|
|
8193
|
+
customFonts: props.customFonts
|
|
8194
|
+
})}
|
|
8195
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
8191
8196
|
`.trim());
|
|
8192
8197
|
return createComponent(inlined_styles_default, {
|
|
8193
8198
|
get styles() {
|
|
@@ -8352,6 +8357,9 @@ function ContentComponent(props) {
|
|
|
8352
8357
|
when: TARGET !== "reactNative",
|
|
8353
8358
|
get children() {
|
|
8354
8359
|
return createComponent(styles_default, {
|
|
8360
|
+
get isNestedRender() {
|
|
8361
|
+
return props.isNestedRender;
|
|
8362
|
+
},
|
|
8355
8363
|
get contentId() {
|
|
8356
8364
|
return builderContextSignal().content?.id;
|
|
8357
8365
|
},
|
|
@@ -8413,7 +8421,7 @@ function ContentVariants(props) {
|
|
|
8413
8421
|
});
|
|
8414
8422
|
return [createComponent(Show, {
|
|
8415
8423
|
get when() {
|
|
8416
|
-
return !props.
|
|
8424
|
+
return !props.isNestedRender && TARGET !== "reactNative";
|
|
8417
8425
|
},
|
|
8418
8426
|
get children() {
|
|
8419
8427
|
return createComponent(inlined_script_default, {
|
|
@@ -8445,6 +8453,9 @@ function ContentVariants(props) {
|
|
|
8445
8453
|
children: (variant, _index) => {
|
|
8446
8454
|
_index();
|
|
8447
8455
|
return createComponent(content_default, {
|
|
8456
|
+
get isNestedRender() {
|
|
8457
|
+
return props.isNestedRender;
|
|
8458
|
+
},
|
|
8448
8459
|
get key() {
|
|
8449
8460
|
return variant.testVariationId;
|
|
8450
8461
|
},
|
|
@@ -8502,7 +8513,11 @@ function ContentVariants(props) {
|
|
|
8502
8513
|
}
|
|
8503
8514
|
})];
|
|
8504
8515
|
}
|
|
8505
|
-
}), createComponent(content_default, mergeProps({
|
|
8516
|
+
}), createComponent(content_default, mergeProps({
|
|
8517
|
+
get isNestedRender() {
|
|
8518
|
+
return props.isNestedRender;
|
|
8519
|
+
}
|
|
8520
|
+
}, {}, {
|
|
8506
8521
|
get content() {
|
|
8507
8522
|
return defaultContent();
|
|
8508
8523
|
},
|
|
@@ -8617,7 +8632,7 @@ function Symbol2(props) {
|
|
|
8617
8632
|
}
|
|
8618
8633
|
}, {}, () => props.attributes, {}), false, true);
|
|
8619
8634
|
insert(_el$, createComponent(content_variants_default, {
|
|
8620
|
-
|
|
8635
|
+
isNestedRender: true,
|
|
8621
8636
|
get apiVersion() {
|
|
8622
8637
|
return props.builderContext.apiVersion;
|
|
8623
8638
|
},
|
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.13";
|
|
7188
7188
|
|
|
7189
7189
|
// src/functions/register.ts
|
|
7190
7190
|
var registry = {};
|
|
@@ -7758,19 +7758,7 @@ var getCss = ({
|
|
|
7758
7758
|
}
|
|
7759
7759
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
7760
7760
|
};
|
|
7761
|
-
|
|
7762
|
-
// src/components/content/components/styles.tsx
|
|
7763
|
-
function ContentStyles(props) {
|
|
7764
|
-
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
7765
|
-
`
|
|
7766
|
-
${getCss({
|
|
7767
|
-
cssCode: props.cssCode,
|
|
7768
|
-
contentId: props.contentId
|
|
7769
|
-
})}
|
|
7770
|
-
${getFontCss({
|
|
7771
|
-
customFonts: props.customFonts
|
|
7772
|
-
})}
|
|
7773
|
-
|
|
7761
|
+
var DEFAULT_STYLES = `
|
|
7774
7762
|
.builder-button {
|
|
7775
7763
|
all: unset;
|
|
7776
7764
|
}
|
|
@@ -7787,6 +7775,23 @@ ${getFontCss({
|
|
|
7787
7775
|
text-align: inherit;
|
|
7788
7776
|
font-family: inherit;
|
|
7789
7777
|
}
|
|
7778
|
+
`;
|
|
7779
|
+
var getDefaultStyles = (isNested) => {
|
|
7780
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
7781
|
+
};
|
|
7782
|
+
|
|
7783
|
+
// src/components/content/components/styles.tsx
|
|
7784
|
+
function ContentStyles(props) {
|
|
7785
|
+
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
7786
|
+
`
|
|
7787
|
+
${getCss({
|
|
7788
|
+
cssCode: props.cssCode,
|
|
7789
|
+
contentId: props.contentId
|
|
7790
|
+
})}
|
|
7791
|
+
${getFontCss({
|
|
7792
|
+
customFonts: props.customFonts
|
|
7793
|
+
})}
|
|
7794
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
7790
7795
|
`.trim()
|
|
7791
7796
|
);
|
|
7792
7797
|
return <Inlined_styles_default styles={injectedStyles()} />;
|
|
@@ -7914,6 +7919,7 @@ function ContentComponent(props) {
|
|
|
7914
7919
|
>
|
|
7915
7920
|
<Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
|
|
7916
7921
|
<Show11 when={TARGET !== "reactNative"}><Styles_default
|
|
7922
|
+
isNestedRender={props.isNestedRender}
|
|
7917
7923
|
contentId={builderContextSignal().content?.id}
|
|
7918
7924
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
7919
7925
|
customFonts={builderContextSignal().content?.data?.customFonts}
|
|
@@ -7961,7 +7967,7 @@ function ContentVariants(props) {
|
|
|
7961
7967
|
setShouldRenderVariants(false);
|
|
7962
7968
|
});
|
|
7963
7969
|
return <>
|
|
7964
|
-
<Show12 when={!props.
|
|
7970
|
+
<Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
|
|
7965
7971
|
<Show12 when={shouldRenderVariants()}>
|
|
7966
7972
|
<Inlined_styles_default
|
|
7967
7973
|
id={`variants-styles-${props.content?.id}`}
|
|
@@ -7973,6 +7979,7 @@ function ContentVariants(props) {
|
|
|
7973
7979
|
<For7 each={getVariants(props.content)}>{(variant, _index) => {
|
|
7974
7980
|
const index = _index();
|
|
7975
7981
|
return <Content_default
|
|
7982
|
+
isNestedRender={props.isNestedRender}
|
|
7976
7983
|
key={variant.testVariationId}
|
|
7977
7984
|
content={variant}
|
|
7978
7985
|
showContent={false}
|
|
@@ -7996,6 +8003,7 @@ function ContentVariants(props) {
|
|
|
7996
8003
|
}}</For7>
|
|
7997
8004
|
</Show12>
|
|
7998
8005
|
<Content_default
|
|
8006
|
+
isNestedRender={props.isNestedRender}
|
|
7999
8007
|
{...{}}
|
|
8000
8008
|
content={defaultContent()}
|
|
8001
8009
|
showContent={true}
|
|
@@ -8075,7 +8083,7 @@ function Symbol2(props) {
|
|
|
8075
8083
|
}
|
|
8076
8084
|
createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
8077
8085
|
return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
8078
|
-
|
|
8086
|
+
isNestedRender={true}
|
|
8079
8087
|
apiVersion={props.builderContext.apiVersion}
|
|
8080
8088
|
apiKey={props.builderContext.apiKey}
|
|
8081
8089
|
context={{
|
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.13";
|
|
7588
7588
|
|
|
7589
7589
|
// src/functions/register.ts
|
|
7590
7590
|
var registry = {};
|
|
@@ -8143,18 +8143,7 @@ var getCss = ({
|
|
|
8143
8143
|
}
|
|
8144
8144
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
8145
8145
|
};
|
|
8146
|
-
|
|
8147
|
-
// src/components/content/components/styles.tsx
|
|
8148
|
-
function ContentStyles(props) {
|
|
8149
|
-
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
8150
|
-
${getCss({
|
|
8151
|
-
cssCode: props.cssCode,
|
|
8152
|
-
contentId: props.contentId
|
|
8153
|
-
})}
|
|
8154
|
-
${getFontCss({
|
|
8155
|
-
customFonts: props.customFonts
|
|
8156
|
-
})}
|
|
8157
|
-
|
|
8146
|
+
var DEFAULT_STYLES = `
|
|
8158
8147
|
.builder-button {
|
|
8159
8148
|
all: unset;
|
|
8160
8149
|
}
|
|
@@ -8171,6 +8160,22 @@ ${getFontCss({
|
|
|
8171
8160
|
text-align: inherit;
|
|
8172
8161
|
font-family: inherit;
|
|
8173
8162
|
}
|
|
8163
|
+
`;
|
|
8164
|
+
var getDefaultStyles = (isNested) => {
|
|
8165
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
8166
|
+
};
|
|
8167
|
+
|
|
8168
|
+
// src/components/content/components/styles.tsx
|
|
8169
|
+
function ContentStyles(props) {
|
|
8170
|
+
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
8171
|
+
${getCss({
|
|
8172
|
+
cssCode: props.cssCode,
|
|
8173
|
+
contentId: props.contentId
|
|
8174
|
+
})}
|
|
8175
|
+
${getFontCss({
|
|
8176
|
+
customFonts: props.customFonts
|
|
8177
|
+
})}
|
|
8178
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
8174
8179
|
`.trim());
|
|
8175
8180
|
return createComponent(inlined_styles_default, {
|
|
8176
8181
|
get styles() {
|
|
@@ -8335,6 +8340,9 @@ function ContentComponent(props) {
|
|
|
8335
8340
|
when: TARGET !== "reactNative",
|
|
8336
8341
|
get children() {
|
|
8337
8342
|
return createComponent(styles_default, {
|
|
8343
|
+
get isNestedRender() {
|
|
8344
|
+
return props.isNestedRender;
|
|
8345
|
+
},
|
|
8338
8346
|
get contentId() {
|
|
8339
8347
|
return builderContextSignal().content?.id;
|
|
8340
8348
|
},
|
|
@@ -8396,7 +8404,7 @@ function ContentVariants(props) {
|
|
|
8396
8404
|
});
|
|
8397
8405
|
return [createComponent(Show, {
|
|
8398
8406
|
get when() {
|
|
8399
|
-
return !props.
|
|
8407
|
+
return !props.isNestedRender && TARGET !== "reactNative";
|
|
8400
8408
|
},
|
|
8401
8409
|
get children() {
|
|
8402
8410
|
return createComponent(inlined_script_default, {
|
|
@@ -8428,6 +8436,9 @@ function ContentVariants(props) {
|
|
|
8428
8436
|
children: (variant, _index) => {
|
|
8429
8437
|
_index();
|
|
8430
8438
|
return createComponent(content_default, {
|
|
8439
|
+
get isNestedRender() {
|
|
8440
|
+
return props.isNestedRender;
|
|
8441
|
+
},
|
|
8431
8442
|
get key() {
|
|
8432
8443
|
return variant.testVariationId;
|
|
8433
8444
|
},
|
|
@@ -8485,7 +8496,11 @@ function ContentVariants(props) {
|
|
|
8485
8496
|
}
|
|
8486
8497
|
})];
|
|
8487
8498
|
}
|
|
8488
|
-
}), createComponent(content_default, mergeProps({
|
|
8499
|
+
}), createComponent(content_default, mergeProps({
|
|
8500
|
+
get isNestedRender() {
|
|
8501
|
+
return props.isNestedRender;
|
|
8502
|
+
}
|
|
8503
|
+
}, {}, {
|
|
8489
8504
|
get content() {
|
|
8490
8505
|
return defaultContent();
|
|
8491
8506
|
},
|
|
@@ -8600,7 +8615,7 @@ function Symbol2(props) {
|
|
|
8600
8615
|
}
|
|
8601
8616
|
}, {}, () => props.attributes, {}), false, true);
|
|
8602
8617
|
insert(_el$, createComponent(content_variants_default, {
|
|
8603
|
-
|
|
8618
|
+
isNestedRender: true,
|
|
8604
8619
|
get apiVersion() {
|
|
8605
8620
|
return props.builderContext.apiVersion;
|
|
8606
8621
|
},
|
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.13";
|
|
7173
7173
|
|
|
7174
7174
|
// src/functions/register.ts
|
|
7175
7175
|
var registry = {};
|
|
@@ -7741,19 +7741,7 @@ var getCss = ({
|
|
|
7741
7741
|
}
|
|
7742
7742
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
7743
7743
|
};
|
|
7744
|
-
|
|
7745
|
-
// src/components/content/components/styles.tsx
|
|
7746
|
-
function ContentStyles(props) {
|
|
7747
|
-
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
7748
|
-
`
|
|
7749
|
-
${getCss({
|
|
7750
|
-
cssCode: props.cssCode,
|
|
7751
|
-
contentId: props.contentId
|
|
7752
|
-
})}
|
|
7753
|
-
${getFontCss({
|
|
7754
|
-
customFonts: props.customFonts
|
|
7755
|
-
})}
|
|
7756
|
-
|
|
7744
|
+
var DEFAULT_STYLES = `
|
|
7757
7745
|
.builder-button {
|
|
7758
7746
|
all: unset;
|
|
7759
7747
|
}
|
|
@@ -7770,6 +7758,23 @@ ${getFontCss({
|
|
|
7770
7758
|
text-align: inherit;
|
|
7771
7759
|
font-family: inherit;
|
|
7772
7760
|
}
|
|
7761
|
+
`;
|
|
7762
|
+
var getDefaultStyles = (isNested) => {
|
|
7763
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
7764
|
+
};
|
|
7765
|
+
|
|
7766
|
+
// src/components/content/components/styles.tsx
|
|
7767
|
+
function ContentStyles(props) {
|
|
7768
|
+
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
7769
|
+
`
|
|
7770
|
+
${getCss({
|
|
7771
|
+
cssCode: props.cssCode,
|
|
7772
|
+
contentId: props.contentId
|
|
7773
|
+
})}
|
|
7774
|
+
${getFontCss({
|
|
7775
|
+
customFonts: props.customFonts
|
|
7776
|
+
})}
|
|
7777
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
7773
7778
|
`.trim()
|
|
7774
7779
|
);
|
|
7775
7780
|
return <Inlined_styles_default styles={injectedStyles()} />;
|
|
@@ -7897,6 +7902,7 @@ function ContentComponent(props) {
|
|
|
7897
7902
|
>
|
|
7898
7903
|
<Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
|
|
7899
7904
|
<Show11 when={TARGET !== "reactNative"}><Styles_default
|
|
7905
|
+
isNestedRender={props.isNestedRender}
|
|
7900
7906
|
contentId={builderContextSignal().content?.id}
|
|
7901
7907
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
7902
7908
|
customFonts={builderContextSignal().content?.data?.customFonts}
|
|
@@ -7944,7 +7950,7 @@ function ContentVariants(props) {
|
|
|
7944
7950
|
setShouldRenderVariants(false);
|
|
7945
7951
|
});
|
|
7946
7952
|
return <>
|
|
7947
|
-
<Show12 when={!props.
|
|
7953
|
+
<Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
|
|
7948
7954
|
<Show12 when={shouldRenderVariants()}>
|
|
7949
7955
|
<Inlined_styles_default
|
|
7950
7956
|
id={`variants-styles-${props.content?.id}`}
|
|
@@ -7956,6 +7962,7 @@ function ContentVariants(props) {
|
|
|
7956
7962
|
<For7 each={getVariants(props.content)}>{(variant, _index) => {
|
|
7957
7963
|
const index = _index();
|
|
7958
7964
|
return <Content_default
|
|
7965
|
+
isNestedRender={props.isNestedRender}
|
|
7959
7966
|
key={variant.testVariationId}
|
|
7960
7967
|
content={variant}
|
|
7961
7968
|
showContent={false}
|
|
@@ -7979,6 +7986,7 @@ function ContentVariants(props) {
|
|
|
7979
7986
|
}}</For7>
|
|
7980
7987
|
</Show12>
|
|
7981
7988
|
<Content_default
|
|
7989
|
+
isNestedRender={props.isNestedRender}
|
|
7982
7990
|
{...{}}
|
|
7983
7991
|
content={defaultContent()}
|
|
7984
7992
|
showContent={true}
|
|
@@ -8058,7 +8066,7 @@ function Symbol2(props) {
|
|
|
8058
8066
|
}
|
|
8059
8067
|
createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
8060
8068
|
return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
8061
|
-
|
|
8069
|
+
isNestedRender={true}
|
|
8062
8070
|
apiVersion={props.builderContext.apiVersion}
|
|
8063
8071
|
apiKey={props.builderContext.apiKey}
|
|
8064
8072
|
context={{
|
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.13";
|
|
4575
4575
|
|
|
4576
4576
|
// src/functions/register.ts
|
|
4577
4577
|
var registry = {};
|
|
@@ -5132,18 +5132,7 @@ var getCss = ({
|
|
|
5132
5132
|
}
|
|
5133
5133
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
5134
5134
|
};
|
|
5135
|
-
|
|
5136
|
-
// src/components/content/components/styles.tsx
|
|
5137
|
-
function ContentStyles(props) {
|
|
5138
|
-
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5139
|
-
${getCss({
|
|
5140
|
-
cssCode: props.cssCode,
|
|
5141
|
-
contentId: props.contentId
|
|
5142
|
-
})}
|
|
5143
|
-
${getFontCss({
|
|
5144
|
-
customFonts: props.customFonts
|
|
5145
|
-
})}
|
|
5146
|
-
|
|
5135
|
+
var DEFAULT_STYLES = `
|
|
5147
5136
|
.builder-button {
|
|
5148
5137
|
all: unset;
|
|
5149
5138
|
}
|
|
@@ -5160,6 +5149,22 @@ ${getFontCss({
|
|
|
5160
5149
|
text-align: inherit;
|
|
5161
5150
|
font-family: inherit;
|
|
5162
5151
|
}
|
|
5152
|
+
`;
|
|
5153
|
+
var getDefaultStyles = (isNested) => {
|
|
5154
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
5155
|
+
};
|
|
5156
|
+
|
|
5157
|
+
// src/components/content/components/styles.tsx
|
|
5158
|
+
function ContentStyles(props) {
|
|
5159
|
+
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5160
|
+
${getCss({
|
|
5161
|
+
cssCode: props.cssCode,
|
|
5162
|
+
contentId: props.contentId
|
|
5163
|
+
})}
|
|
5164
|
+
${getFontCss({
|
|
5165
|
+
customFonts: props.customFonts
|
|
5166
|
+
})}
|
|
5167
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
5163
5168
|
`.trim());
|
|
5164
5169
|
return createComponent(inlined_styles_default, {
|
|
5165
5170
|
get styles() {
|
|
@@ -5324,6 +5329,9 @@ function ContentComponent(props) {
|
|
|
5324
5329
|
when: TARGET !== "reactNative",
|
|
5325
5330
|
get children() {
|
|
5326
5331
|
return createComponent(styles_default, {
|
|
5332
|
+
get isNestedRender() {
|
|
5333
|
+
return props.isNestedRender;
|
|
5334
|
+
},
|
|
5327
5335
|
get contentId() {
|
|
5328
5336
|
return builderContextSignal().content?.id;
|
|
5329
5337
|
},
|
|
@@ -5385,7 +5393,7 @@ function ContentVariants(props) {
|
|
|
5385
5393
|
});
|
|
5386
5394
|
return [createComponent(Show, {
|
|
5387
5395
|
get when() {
|
|
5388
|
-
return !props.
|
|
5396
|
+
return !props.isNestedRender && TARGET !== "reactNative";
|
|
5389
5397
|
},
|
|
5390
5398
|
get children() {
|
|
5391
5399
|
return createComponent(inlined_script_default, {
|
|
@@ -5417,6 +5425,9 @@ function ContentVariants(props) {
|
|
|
5417
5425
|
children: (variant, _index) => {
|
|
5418
5426
|
_index();
|
|
5419
5427
|
return createComponent(content_default, {
|
|
5428
|
+
get isNestedRender() {
|
|
5429
|
+
return props.isNestedRender;
|
|
5430
|
+
},
|
|
5420
5431
|
get key() {
|
|
5421
5432
|
return variant.testVariationId;
|
|
5422
5433
|
},
|
|
@@ -5474,7 +5485,11 @@ function ContentVariants(props) {
|
|
|
5474
5485
|
}
|
|
5475
5486
|
})];
|
|
5476
5487
|
}
|
|
5477
|
-
}), createComponent(content_default, mergeProps({
|
|
5488
|
+
}), createComponent(content_default, mergeProps({
|
|
5489
|
+
get isNestedRender() {
|
|
5490
|
+
return props.isNestedRender;
|
|
5491
|
+
}
|
|
5492
|
+
}, {}, {
|
|
5478
5493
|
get content() {
|
|
5479
5494
|
return defaultContent();
|
|
5480
5495
|
},
|
|
@@ -5589,7 +5604,7 @@ function Symbol(props) {
|
|
|
5589
5604
|
}
|
|
5590
5605
|
}, {}, () => props.attributes, {}), false, true);
|
|
5591
5606
|
insert(_el$, createComponent(content_variants_default, {
|
|
5592
|
-
|
|
5607
|
+
isNestedRender: true,
|
|
5593
5608
|
get apiVersion() {
|
|
5594
5609
|
return props.builderContext.apiVersion;
|
|
5595
5610
|
},
|
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.13";
|
|
4160
4160
|
|
|
4161
4161
|
// src/functions/register.ts
|
|
4162
4162
|
var registry = {};
|
|
@@ -4730,19 +4730,7 @@ var getCss = ({
|
|
|
4730
4730
|
}
|
|
4731
4731
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
4732
4732
|
};
|
|
4733
|
-
|
|
4734
|
-
// src/components/content/components/styles.tsx
|
|
4735
|
-
function ContentStyles(props) {
|
|
4736
|
-
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4737
|
-
`
|
|
4738
|
-
${getCss({
|
|
4739
|
-
cssCode: props.cssCode,
|
|
4740
|
-
contentId: props.contentId
|
|
4741
|
-
})}
|
|
4742
|
-
${getFontCss({
|
|
4743
|
-
customFonts: props.customFonts
|
|
4744
|
-
})}
|
|
4745
|
-
|
|
4733
|
+
var DEFAULT_STYLES = `
|
|
4746
4734
|
.builder-button {
|
|
4747
4735
|
all: unset;
|
|
4748
4736
|
}
|
|
@@ -4759,6 +4747,23 @@ ${getFontCss({
|
|
|
4759
4747
|
text-align: inherit;
|
|
4760
4748
|
font-family: inherit;
|
|
4761
4749
|
}
|
|
4750
|
+
`;
|
|
4751
|
+
var getDefaultStyles = (isNested) => {
|
|
4752
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
4753
|
+
};
|
|
4754
|
+
|
|
4755
|
+
// src/components/content/components/styles.tsx
|
|
4756
|
+
function ContentStyles(props) {
|
|
4757
|
+
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4758
|
+
`
|
|
4759
|
+
${getCss({
|
|
4760
|
+
cssCode: props.cssCode,
|
|
4761
|
+
contentId: props.contentId
|
|
4762
|
+
})}
|
|
4763
|
+
${getFontCss({
|
|
4764
|
+
customFonts: props.customFonts
|
|
4765
|
+
})}
|
|
4766
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
4762
4767
|
`.trim()
|
|
4763
4768
|
);
|
|
4764
4769
|
return <Inlined_styles_default styles={injectedStyles()} />;
|
|
@@ -4886,6 +4891,7 @@ function ContentComponent(props) {
|
|
|
4886
4891
|
>
|
|
4887
4892
|
<Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
|
|
4888
4893
|
<Show11 when={TARGET !== "reactNative"}><Styles_default
|
|
4894
|
+
isNestedRender={props.isNestedRender}
|
|
4889
4895
|
contentId={builderContextSignal().content?.id}
|
|
4890
4896
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
4891
4897
|
customFonts={builderContextSignal().content?.data?.customFonts}
|
|
@@ -4933,7 +4939,7 @@ function ContentVariants(props) {
|
|
|
4933
4939
|
setShouldRenderVariants(false);
|
|
4934
4940
|
});
|
|
4935
4941
|
return <>
|
|
4936
|
-
<Show12 when={!props.
|
|
4942
|
+
<Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
|
|
4937
4943
|
<Show12 when={shouldRenderVariants()}>
|
|
4938
4944
|
<Inlined_styles_default
|
|
4939
4945
|
id={`variants-styles-${props.content?.id}`}
|
|
@@ -4945,6 +4951,7 @@ function ContentVariants(props) {
|
|
|
4945
4951
|
<For7 each={getVariants(props.content)}>{(variant, _index) => {
|
|
4946
4952
|
const index = _index();
|
|
4947
4953
|
return <Content_default
|
|
4954
|
+
isNestedRender={props.isNestedRender}
|
|
4948
4955
|
key={variant.testVariationId}
|
|
4949
4956
|
content={variant}
|
|
4950
4957
|
showContent={false}
|
|
@@ -4968,6 +4975,7 @@ function ContentVariants(props) {
|
|
|
4968
4975
|
}}</For7>
|
|
4969
4976
|
</Show12>
|
|
4970
4977
|
<Content_default
|
|
4978
|
+
isNestedRender={props.isNestedRender}
|
|
4971
4979
|
{...{}}
|
|
4972
4980
|
content={defaultContent()}
|
|
4973
4981
|
showContent={true}
|
|
@@ -5047,7 +5055,7 @@ function Symbol(props) {
|
|
|
5047
5055
|
}
|
|
5048
5056
|
createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
5049
5057
|
return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
5050
|
-
|
|
5058
|
+
isNestedRender={true}
|
|
5051
5059
|
apiVersion={props.builderContext.apiVersion}
|
|
5052
5060
|
apiKey={props.builderContext.apiKey}
|
|
5053
5061
|
context={{
|
package/lib/node/index.js
CHANGED
|
@@ -4555,7 +4555,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4555
4555
|
}
|
|
4556
4556
|
|
|
4557
4557
|
// src/constants/sdk-version.ts
|
|
4558
|
-
var SDK_VERSION = "1.0.
|
|
4558
|
+
var SDK_VERSION = "1.0.13";
|
|
4559
4559
|
|
|
4560
4560
|
// src/functions/register.ts
|
|
4561
4561
|
var registry = {};
|
|
@@ -5114,18 +5114,7 @@ var getCss = ({
|
|
|
5114
5114
|
}
|
|
5115
5115
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
5116
5116
|
};
|
|
5117
|
-
|
|
5118
|
-
// src/components/content/components/styles.tsx
|
|
5119
|
-
function ContentStyles(props) {
|
|
5120
|
-
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5121
|
-
${getCss({
|
|
5122
|
-
cssCode: props.cssCode,
|
|
5123
|
-
contentId: props.contentId
|
|
5124
|
-
})}
|
|
5125
|
-
${getFontCss({
|
|
5126
|
-
customFonts: props.customFonts
|
|
5127
|
-
})}
|
|
5128
|
-
|
|
5117
|
+
var DEFAULT_STYLES = `
|
|
5129
5118
|
.builder-button {
|
|
5130
5119
|
all: unset;
|
|
5131
5120
|
}
|
|
@@ -5142,6 +5131,22 @@ ${getFontCss({
|
|
|
5142
5131
|
text-align: inherit;
|
|
5143
5132
|
font-family: inherit;
|
|
5144
5133
|
}
|
|
5134
|
+
`;
|
|
5135
|
+
var getDefaultStyles = (isNested) => {
|
|
5136
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
5137
|
+
};
|
|
5138
|
+
|
|
5139
|
+
// src/components/content/components/styles.tsx
|
|
5140
|
+
function ContentStyles(props) {
|
|
5141
|
+
const [injectedStyles, setInjectedStyles] = createSignal(`
|
|
5142
|
+
${getCss({
|
|
5143
|
+
cssCode: props.cssCode,
|
|
5144
|
+
contentId: props.contentId
|
|
5145
|
+
})}
|
|
5146
|
+
${getFontCss({
|
|
5147
|
+
customFonts: props.customFonts
|
|
5148
|
+
})}
|
|
5149
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
5145
5150
|
`.trim());
|
|
5146
5151
|
return createComponent(inlined_styles_default, {
|
|
5147
5152
|
get styles() {
|
|
@@ -5306,6 +5311,9 @@ function ContentComponent(props) {
|
|
|
5306
5311
|
when: TARGET !== "reactNative",
|
|
5307
5312
|
get children() {
|
|
5308
5313
|
return createComponent(styles_default, {
|
|
5314
|
+
get isNestedRender() {
|
|
5315
|
+
return props.isNestedRender;
|
|
5316
|
+
},
|
|
5309
5317
|
get contentId() {
|
|
5310
5318
|
return builderContextSignal().content?.id;
|
|
5311
5319
|
},
|
|
@@ -5367,7 +5375,7 @@ function ContentVariants(props) {
|
|
|
5367
5375
|
});
|
|
5368
5376
|
return [createComponent(Show, {
|
|
5369
5377
|
get when() {
|
|
5370
|
-
return !props.
|
|
5378
|
+
return !props.isNestedRender && TARGET !== "reactNative";
|
|
5371
5379
|
},
|
|
5372
5380
|
get children() {
|
|
5373
5381
|
return createComponent(inlined_script_default, {
|
|
@@ -5399,6 +5407,9 @@ function ContentVariants(props) {
|
|
|
5399
5407
|
children: (variant, _index) => {
|
|
5400
5408
|
_index();
|
|
5401
5409
|
return createComponent(content_default, {
|
|
5410
|
+
get isNestedRender() {
|
|
5411
|
+
return props.isNestedRender;
|
|
5412
|
+
},
|
|
5402
5413
|
get key() {
|
|
5403
5414
|
return variant.testVariationId;
|
|
5404
5415
|
},
|
|
@@ -5456,7 +5467,11 @@ function ContentVariants(props) {
|
|
|
5456
5467
|
}
|
|
5457
5468
|
})];
|
|
5458
5469
|
}
|
|
5459
|
-
}), createComponent(content_default, mergeProps({
|
|
5470
|
+
}), createComponent(content_default, mergeProps({
|
|
5471
|
+
get isNestedRender() {
|
|
5472
|
+
return props.isNestedRender;
|
|
5473
|
+
}
|
|
5474
|
+
}, {}, {
|
|
5460
5475
|
get content() {
|
|
5461
5476
|
return defaultContent();
|
|
5462
5477
|
},
|
|
@@ -5571,7 +5586,7 @@ function Symbol(props) {
|
|
|
5571
5586
|
}
|
|
5572
5587
|
}, {}, () => props.attributes, {}), false, true);
|
|
5573
5588
|
insert(_el$, createComponent(content_variants_default, {
|
|
5574
|
-
|
|
5589
|
+
isNestedRender: true,
|
|
5575
5590
|
get apiVersion() {
|
|
5576
5591
|
return props.builderContext.apiVersion;
|
|
5577
5592
|
},
|
package/lib/node/index.jsx
CHANGED
|
@@ -4140,7 +4140,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4140
4140
|
}
|
|
4141
4141
|
|
|
4142
4142
|
// src/constants/sdk-version.ts
|
|
4143
|
-
var SDK_VERSION = "1.0.
|
|
4143
|
+
var SDK_VERSION = "1.0.13";
|
|
4144
4144
|
|
|
4145
4145
|
// src/functions/register.ts
|
|
4146
4146
|
var registry = {};
|
|
@@ -4712,19 +4712,7 @@ var getCss = ({
|
|
|
4712
4712
|
}
|
|
4713
4713
|
return cssCode?.replace(/&/g, `div[builder-content-id="${contentId}"]`) || "";
|
|
4714
4714
|
};
|
|
4715
|
-
|
|
4716
|
-
// src/components/content/components/styles.tsx
|
|
4717
|
-
function ContentStyles(props) {
|
|
4718
|
-
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4719
|
-
`
|
|
4720
|
-
${getCss({
|
|
4721
|
-
cssCode: props.cssCode,
|
|
4722
|
-
contentId: props.contentId
|
|
4723
|
-
})}
|
|
4724
|
-
${getFontCss({
|
|
4725
|
-
customFonts: props.customFonts
|
|
4726
|
-
})}
|
|
4727
|
-
|
|
4715
|
+
var DEFAULT_STYLES = `
|
|
4728
4716
|
.builder-button {
|
|
4729
4717
|
all: unset;
|
|
4730
4718
|
}
|
|
@@ -4741,6 +4729,23 @@ ${getFontCss({
|
|
|
4741
4729
|
text-align: inherit;
|
|
4742
4730
|
font-family: inherit;
|
|
4743
4731
|
}
|
|
4732
|
+
`;
|
|
4733
|
+
var getDefaultStyles = (isNested) => {
|
|
4734
|
+
return !isNested ? DEFAULT_STYLES : "";
|
|
4735
|
+
};
|
|
4736
|
+
|
|
4737
|
+
// src/components/content/components/styles.tsx
|
|
4738
|
+
function ContentStyles(props) {
|
|
4739
|
+
const [injectedStyles, setInjectedStyles] = createSignal13(
|
|
4740
|
+
`
|
|
4741
|
+
${getCss({
|
|
4742
|
+
cssCode: props.cssCode,
|
|
4743
|
+
contentId: props.contentId
|
|
4744
|
+
})}
|
|
4745
|
+
${getFontCss({
|
|
4746
|
+
customFonts: props.customFonts
|
|
4747
|
+
})}
|
|
4748
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
4744
4749
|
`.trim()
|
|
4745
4750
|
);
|
|
4746
4751
|
return <Inlined_styles_default styles={injectedStyles()} />;
|
|
@@ -4868,6 +4873,7 @@ function ContentComponent(props) {
|
|
|
4868
4873
|
>
|
|
4869
4874
|
<Show11 when={props.isSsrAbTest}><Inlined_script_default scriptStr={scriptStr()} /></Show11>
|
|
4870
4875
|
<Show11 when={TARGET !== "reactNative"}><Styles_default
|
|
4876
|
+
isNestedRender={props.isNestedRender}
|
|
4871
4877
|
contentId={builderContextSignal().content?.id}
|
|
4872
4878
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
4873
4879
|
customFonts={builderContextSignal().content?.data?.customFonts}
|
|
@@ -4915,7 +4921,7 @@ function ContentVariants(props) {
|
|
|
4915
4921
|
setShouldRenderVariants(false);
|
|
4916
4922
|
});
|
|
4917
4923
|
return <>
|
|
4918
|
-
<Show12 when={!props.
|
|
4924
|
+
<Show12 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default scriptStr={getScriptString()} /></Show12>
|
|
4919
4925
|
<Show12 when={shouldRenderVariants()}>
|
|
4920
4926
|
<Inlined_styles_default
|
|
4921
4927
|
id={`variants-styles-${props.content?.id}`}
|
|
@@ -4927,6 +4933,7 @@ function ContentVariants(props) {
|
|
|
4927
4933
|
<For7 each={getVariants(props.content)}>{(variant, _index) => {
|
|
4928
4934
|
const index = _index();
|
|
4929
4935
|
return <Content_default
|
|
4936
|
+
isNestedRender={props.isNestedRender}
|
|
4930
4937
|
key={variant.testVariationId}
|
|
4931
4938
|
content={variant}
|
|
4932
4939
|
showContent={false}
|
|
@@ -4950,6 +4957,7 @@ function ContentVariants(props) {
|
|
|
4950
4957
|
}}</For7>
|
|
4951
4958
|
</Show12>
|
|
4952
4959
|
<Content_default
|
|
4960
|
+
isNestedRender={props.isNestedRender}
|
|
4953
4961
|
{...{}}
|
|
4954
4962
|
content={defaultContent()}
|
|
4955
4963
|
showContent={true}
|
|
@@ -5029,7 +5037,7 @@ function Symbol(props) {
|
|
|
5029
5037
|
}
|
|
5030
5038
|
createEffect3(on3(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
5031
5039
|
return <div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
5032
|
-
|
|
5040
|
+
isNestedRender={true}
|
|
5033
5041
|
apiVersion={props.builderContext.apiVersion}
|
|
5034
5042
|
apiKey={props.builderContext.apiKey}
|
|
5035
5043
|
context={{
|