@builder.io/sdk-solid 2.0.0 → 2.0.1
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 +6 -0
- package/lib/browser/dev.js +51 -9
- package/lib/browser/dev.jsx +33 -8
- package/lib/browser/index.js +51 -9
- package/lib/browser/index.jsx +33 -8
- package/lib/edge/dev.js +51 -9
- package/lib/edge/dev.jsx +33 -8
- package/lib/edge/index.js +51 -9
- package/lib/edge/index.jsx +33 -8
- package/lib/node/dev.js +51 -9
- package/lib/node/dev.jsx +33 -8
- package/lib/node/index.js +51 -9
- package/lib/node/index.jsx +33 -8
- package/package.json +1 -1
package/lib/node/dev.jsx
CHANGED
|
@@ -94,7 +94,8 @@ var builder_context_default = createContext({
|
|
|
94
94
|
componentInfos: {},
|
|
95
95
|
inheritedStyles: {},
|
|
96
96
|
BlocksWrapper: "div",
|
|
97
|
-
BlocksWrapperProps: {}
|
|
97
|
+
BlocksWrapperProps: {},
|
|
98
|
+
nonce: ""
|
|
98
99
|
});
|
|
99
100
|
|
|
100
101
|
// src/context/components.context.ts
|
|
@@ -1026,7 +1027,11 @@ var getSizesForBreakpoints = ({
|
|
|
1026
1027
|
|
|
1027
1028
|
// src/components/inlined-styles.tsx
|
|
1028
1029
|
function InlinedStyles(props) {
|
|
1029
|
-
return <><style
|
|
1030
|
+
return <><style
|
|
1031
|
+
innerHTML={props.styles}
|
|
1032
|
+
data-id={props.id}
|
|
1033
|
+
nonce={props.nonce}
|
|
1034
|
+
/></>;
|
|
1030
1035
|
}
|
|
1031
1036
|
var Inlined_styles_default = InlinedStyles;
|
|
1032
1037
|
|
|
@@ -1112,7 +1117,11 @@ function BlockStyles(props) {
|
|
|
1112
1117
|
hoverStylesClass
|
|
1113
1118
|
].join(" ");
|
|
1114
1119
|
});
|
|
1115
|
-
return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
|
|
1120
|
+
return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
|
|
1121
|
+
id="builderio-block"
|
|
1122
|
+
styles={css()}
|
|
1123
|
+
nonce={props.context.nonce}
|
|
1124
|
+
/></Show2></>;
|
|
1116
1125
|
}
|
|
1117
1126
|
var Block_styles_default = BlockStyles;
|
|
1118
1127
|
|
|
@@ -1665,13 +1674,14 @@ function Columns(props) {
|
|
|
1665
1674
|
}
|
|
1666
1675
|
return <>
|
|
1667
1676
|
<div
|
|
1668
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1677
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac"}
|
|
1669
1678
|
style={columnsCssVars()}
|
|
1670
1679
|
{...{}}
|
|
1671
1680
|
>
|
|
1672
1681
|
<Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
|
|
1673
1682
|
id="builderio-columns"
|
|
1674
1683
|
styles={columnsStyles()}
|
|
1684
|
+
nonce={props.builderContext.nonce}
|
|
1675
1685
|
/></Show6>
|
|
1676
1686
|
<For4 each={props.columns}>{(column, _index) => {
|
|
1677
1687
|
const index = _index();
|
|
@@ -1693,7 +1703,7 @@ function Columns(props) {
|
|
|
1693
1703
|
/></Dynamic_renderer_default>;
|
|
1694
1704
|
}}</For4>
|
|
1695
1705
|
</div>
|
|
1696
|
-
<style>{`.div-
|
|
1706
|
+
<style>{`.div-5b8fb3ac {
|
|
1697
1707
|
display: flex;
|
|
1698
1708
|
line-height: normal;
|
|
1699
1709
|
}`}</style>
|
|
@@ -4311,7 +4321,11 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
4311
4321
|
|
|
4312
4322
|
// src/components/inlined-script.tsx
|
|
4313
4323
|
function InlinedScript(props) {
|
|
4314
|
-
return <><script
|
|
4324
|
+
return <><script
|
|
4325
|
+
innerHTML={props.scriptStr}
|
|
4326
|
+
data-id={props.id}
|
|
4327
|
+
nonce={props.nonce || ""}
|
|
4328
|
+
/></>;
|
|
4315
4329
|
}
|
|
4316
4330
|
var Inlined_script_default = InlinedScript;
|
|
4317
4331
|
|
|
@@ -4825,7 +4839,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4825
4839
|
}
|
|
4826
4840
|
|
|
4827
4841
|
// src/constants/sdk-version.ts
|
|
4828
|
-
var SDK_VERSION = "2.0.
|
|
4842
|
+
var SDK_VERSION = "2.0.1";
|
|
4829
4843
|
|
|
4830
4844
|
// src/functions/register.ts
|
|
4831
4845
|
var registry = {};
|
|
@@ -5425,6 +5439,7 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5425
5439
|
return <><Inlined_styles_default
|
|
5426
5440
|
id="builderio-content"
|
|
5427
5441
|
styles={injectedStyles()}
|
|
5442
|
+
nonce={props.nonce}
|
|
5428
5443
|
/></>;
|
|
5429
5444
|
}
|
|
5430
5445
|
var Styles_default = ContentStyles;
|
|
@@ -5518,7 +5533,8 @@ function ContentComponent(props) {
|
|
|
5518
5533
|
),
|
|
5519
5534
|
inheritedStyles: {},
|
|
5520
5535
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
5521
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
5536
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
5537
|
+
nonce: props.nonce || ""
|
|
5522
5538
|
});
|
|
5523
5539
|
function contentSetState(newRootState) {
|
|
5524
5540
|
setBuilderContextSignal((PREVIOUS_VALUE) => ({
|
|
@@ -5531,6 +5547,7 @@ function ContentComponent(props) {
|
|
|
5531
5547
|
registeredComponents: registeredComponents()
|
|
5532
5548
|
}}
|
|
5533
5549
|
><Enable_editor_default
|
|
5550
|
+
nonce={props.nonce}
|
|
5534
5551
|
content={props.content}
|
|
5535
5552
|
data={props.data}
|
|
5536
5553
|
model={props.model}
|
|
@@ -5551,8 +5568,10 @@ function ContentComponent(props) {
|
|
|
5551
5568
|
<Show13 when={props.isSsrAbTest}><Inlined_script_default
|
|
5552
5569
|
id="builderio-variant-visibility"
|
|
5553
5570
|
scriptStr={scriptStr()}
|
|
5571
|
+
nonce={props.nonce || ""}
|
|
5554
5572
|
/></Show13>
|
|
5555
5573
|
<Show13 when={TARGET !== "reactNative"}><Styles_default
|
|
5574
|
+
nonce={props.nonce || ""}
|
|
5556
5575
|
isNestedRender={props.isNestedRender}
|
|
5557
5576
|
contentId={builderContextSignal().content?.id}
|
|
5558
5577
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
@@ -5604,21 +5623,25 @@ function ContentVariants(props) {
|
|
|
5604
5623
|
<Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
|
|
5605
5624
|
id="builderio-init-variants-fns"
|
|
5606
5625
|
scriptStr={getInitVariantsFnsScriptString()}
|
|
5626
|
+
nonce={props.nonce || ""}
|
|
5607
5627
|
/></Show14>
|
|
5608
5628
|
<Show14 when={shouldRenderVariants()}>
|
|
5609
5629
|
<Inlined_styles_default
|
|
5610
5630
|
id="builderio-variants"
|
|
5611
5631
|
styles={hideVariantsStyleString()}
|
|
5632
|
+
nonce={props.nonce || ""}
|
|
5612
5633
|
/>
|
|
5613
5634
|
<Inlined_script_default
|
|
5614
5635
|
id="builderio-variants-visibility"
|
|
5615
5636
|
scriptStr={updateCookieAndStylesScriptStr()}
|
|
5637
|
+
nonce={props.nonce || ""}
|
|
5616
5638
|
/>
|
|
5617
5639
|
<For9 each={getVariants(props.content)}>{(variant, _index) => {
|
|
5618
5640
|
const index = _index();
|
|
5619
5641
|
return <Content_default
|
|
5620
5642
|
isNestedRender={props.isNestedRender}
|
|
5621
5643
|
key={variant.testVariationId}
|
|
5644
|
+
nonce={props.nonce}
|
|
5622
5645
|
content={variant}
|
|
5623
5646
|
showContent={false}
|
|
5624
5647
|
model={props.model}
|
|
@@ -5641,6 +5664,7 @@ function ContentVariants(props) {
|
|
|
5641
5664
|
}}</For9>
|
|
5642
5665
|
</Show14>
|
|
5643
5666
|
<Content_default
|
|
5667
|
+
nonce={props.nonce}
|
|
5644
5668
|
isNestedRender={props.isNestedRender}
|
|
5645
5669
|
{...{}}
|
|
5646
5670
|
content={defaultContent()}
|
|
@@ -5727,6 +5751,7 @@ function Symbol(props) {
|
|
|
5727
5751
|
}
|
|
5728
5752
|
createEffect4(on4(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
5729
5753
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
5754
|
+
nonce={props.builderContext.nonce}
|
|
5730
5755
|
isNestedRender={true}
|
|
5731
5756
|
apiVersion={props.builderContext.apiVersion}
|
|
5732
5757
|
apiKey={props.builderContext.apiKey}
|
package/lib/node/index.js
CHANGED
|
@@ -114,7 +114,8 @@ var builder_context_default = createContext({
|
|
|
114
114
|
componentInfos: {},
|
|
115
115
|
inheritedStyles: {},
|
|
116
116
|
BlocksWrapper: "div",
|
|
117
|
-
BlocksWrapperProps: {}
|
|
117
|
+
BlocksWrapperProps: {},
|
|
118
|
+
nonce: ""
|
|
118
119
|
});
|
|
119
120
|
var components_context_default = createContext({ registeredComponents: {} });
|
|
120
121
|
|
|
@@ -1030,13 +1031,15 @@ function InlinedStyles(props) {
|
|
|
1030
1031
|
return (() => {
|
|
1031
1032
|
const _el$ = _tmpl$();
|
|
1032
1033
|
effect((_p$) => {
|
|
1033
|
-
const _v$ = props.styles, _v$2 = props.id;
|
|
1034
|
+
const _v$ = props.styles, _v$2 = props.id, _v$3 = props.nonce;
|
|
1034
1035
|
_v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
|
|
1035
1036
|
_v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
|
|
1037
|
+
_v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
|
|
1036
1038
|
return _p$;
|
|
1037
1039
|
}, {
|
|
1038
1040
|
_v$: void 0,
|
|
1039
|
-
_v$2: void 0
|
|
1041
|
+
_v$2: void 0,
|
|
1042
|
+
_v$3: void 0
|
|
1040
1043
|
});
|
|
1041
1044
|
return _el$;
|
|
1042
1045
|
})();
|
|
@@ -1119,6 +1122,9 @@ function BlockStyles(props) {
|
|
|
1119
1122
|
id: "builderio-block",
|
|
1120
1123
|
get styles() {
|
|
1121
1124
|
return css();
|
|
1125
|
+
},
|
|
1126
|
+
get nonce() {
|
|
1127
|
+
return props.context.nonce;
|
|
1122
1128
|
}
|
|
1123
1129
|
});
|
|
1124
1130
|
}
|
|
@@ -1721,7 +1727,7 @@ var getColumnsClass = (id) => {
|
|
|
1721
1727
|
|
|
1722
1728
|
// src/blocks/columns/columns.tsx
|
|
1723
1729
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1724
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1730
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-5b8fb3ac {
|
|
1725
1731
|
display: flex;
|
|
1726
1732
|
line-height: normal;
|
|
1727
1733
|
}`);
|
|
@@ -1841,7 +1847,7 @@ function Columns(props) {
|
|
|
1841
1847
|
const _el$ = _tmpl$3();
|
|
1842
1848
|
spread(_el$, mergeProps({
|
|
1843
1849
|
get ["class"]() {
|
|
1844
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1850
|
+
return getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac";
|
|
1845
1851
|
},
|
|
1846
1852
|
get style() {
|
|
1847
1853
|
return columnsCssVars();
|
|
@@ -1854,6 +1860,9 @@ function Columns(props) {
|
|
|
1854
1860
|
id: "builderio-columns",
|
|
1855
1861
|
get styles() {
|
|
1856
1862
|
return columnsStyles();
|
|
1863
|
+
},
|
|
1864
|
+
get nonce() {
|
|
1865
|
+
return props.builderContext.nonce;
|
|
1857
1866
|
}
|
|
1858
1867
|
});
|
|
1859
1868
|
}
|
|
@@ -4785,13 +4794,15 @@ function InlinedScript(props) {
|
|
|
4785
4794
|
return (() => {
|
|
4786
4795
|
const _el$ = _tmpl$20();
|
|
4787
4796
|
effect((_p$) => {
|
|
4788
|
-
const _v$ = props.scriptStr, _v$2 = props.id;
|
|
4797
|
+
const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
|
|
4789
4798
|
_v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
|
|
4790
4799
|
_v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
|
|
4800
|
+
_v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
|
|
4791
4801
|
return _p$;
|
|
4792
4802
|
}, {
|
|
4793
4803
|
_v$: void 0,
|
|
4794
|
-
_v$2: void 0
|
|
4804
|
+
_v$2: void 0,
|
|
4805
|
+
_v$3: void 0
|
|
4795
4806
|
});
|
|
4796
4807
|
return _el$;
|
|
4797
4808
|
})();
|
|
@@ -5292,7 +5303,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5292
5303
|
}
|
|
5293
5304
|
|
|
5294
5305
|
// src/constants/sdk-version.ts
|
|
5295
|
-
var SDK_VERSION = "2.0.
|
|
5306
|
+
var SDK_VERSION = "2.0.1";
|
|
5296
5307
|
|
|
5297
5308
|
// src/functions/register.ts
|
|
5298
5309
|
var registry = {};
|
|
@@ -5873,6 +5884,9 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5873
5884
|
id: "builderio-content",
|
|
5874
5885
|
get styles() {
|
|
5875
5886
|
return injectedStyles();
|
|
5887
|
+
},
|
|
5888
|
+
get nonce() {
|
|
5889
|
+
return props.nonce;
|
|
5876
5890
|
}
|
|
5877
5891
|
});
|
|
5878
5892
|
}
|
|
@@ -5957,7 +5971,8 @@ function ContentComponent(props) {
|
|
|
5957
5971
|
}), {}),
|
|
5958
5972
|
inheritedStyles: {},
|
|
5959
5973
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
5960
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
5974
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
5975
|
+
nonce: props.nonce || ""
|
|
5961
5976
|
});
|
|
5962
5977
|
function contentSetState(newRootState) {
|
|
5963
5978
|
setBuilderContextSignal((PREVIOUS_VALUE) => ({
|
|
@@ -5973,6 +5988,9 @@ function ContentComponent(props) {
|
|
|
5973
5988
|
},
|
|
5974
5989
|
get children() {
|
|
5975
5990
|
return createComponent(enable_editor_default, mergeProps({
|
|
5991
|
+
get nonce() {
|
|
5992
|
+
return props.nonce;
|
|
5993
|
+
},
|
|
5976
5994
|
get content() {
|
|
5977
5995
|
return props.content;
|
|
5978
5996
|
},
|
|
@@ -6025,6 +6043,9 @@ function ContentComponent(props) {
|
|
|
6025
6043
|
id: "builderio-variant-visibility",
|
|
6026
6044
|
get scriptStr() {
|
|
6027
6045
|
return scriptStr();
|
|
6046
|
+
},
|
|
6047
|
+
get nonce() {
|
|
6048
|
+
return props.nonce || "";
|
|
6028
6049
|
}
|
|
6029
6050
|
});
|
|
6030
6051
|
}
|
|
@@ -6032,6 +6053,9 @@ function ContentComponent(props) {
|
|
|
6032
6053
|
when: TARGET !== "reactNative",
|
|
6033
6054
|
get children() {
|
|
6034
6055
|
return createComponent(styles_default, {
|
|
6056
|
+
get nonce() {
|
|
6057
|
+
return props.nonce || "";
|
|
6058
|
+
},
|
|
6035
6059
|
get isNestedRender() {
|
|
6036
6060
|
return props.isNestedRender;
|
|
6037
6061
|
},
|
|
@@ -6103,6 +6127,9 @@ function ContentVariants(props) {
|
|
|
6103
6127
|
id: "builderio-init-variants-fns",
|
|
6104
6128
|
get scriptStr() {
|
|
6105
6129
|
return getInitVariantsFnsScriptString();
|
|
6130
|
+
},
|
|
6131
|
+
get nonce() {
|
|
6132
|
+
return props.nonce || "";
|
|
6106
6133
|
}
|
|
6107
6134
|
});
|
|
6108
6135
|
}
|
|
@@ -6115,11 +6142,17 @@ function ContentVariants(props) {
|
|
|
6115
6142
|
id: "builderio-variants",
|
|
6116
6143
|
get styles() {
|
|
6117
6144
|
return hideVariantsStyleString();
|
|
6145
|
+
},
|
|
6146
|
+
get nonce() {
|
|
6147
|
+
return props.nonce || "";
|
|
6118
6148
|
}
|
|
6119
6149
|
}), createComponent(inlined_script_default, {
|
|
6120
6150
|
id: "builderio-variants-visibility",
|
|
6121
6151
|
get scriptStr() {
|
|
6122
6152
|
return updateCookieAndStylesScriptStr();
|
|
6153
|
+
},
|
|
6154
|
+
get nonce() {
|
|
6155
|
+
return props.nonce || "";
|
|
6123
6156
|
}
|
|
6124
6157
|
}), createComponent(For, {
|
|
6125
6158
|
get each() {
|
|
@@ -6134,6 +6167,9 @@ function ContentVariants(props) {
|
|
|
6134
6167
|
get key() {
|
|
6135
6168
|
return variant.testVariationId;
|
|
6136
6169
|
},
|
|
6170
|
+
get nonce() {
|
|
6171
|
+
return props.nonce;
|
|
6172
|
+
},
|
|
6137
6173
|
content: variant,
|
|
6138
6174
|
showContent: false,
|
|
6139
6175
|
get model() {
|
|
@@ -6189,6 +6225,9 @@ function ContentVariants(props) {
|
|
|
6189
6225
|
})];
|
|
6190
6226
|
}
|
|
6191
6227
|
}), createComponent(content_default, mergeProps({
|
|
6228
|
+
get nonce() {
|
|
6229
|
+
return props.nonce;
|
|
6230
|
+
},
|
|
6192
6231
|
get isNestedRender() {
|
|
6193
6232
|
return props.isNestedRender;
|
|
6194
6233
|
}
|
|
@@ -6313,6 +6352,9 @@ function Symbol(props) {
|
|
|
6313
6352
|
}
|
|
6314
6353
|
}, {}, () => props.attributes, {}), false, true);
|
|
6315
6354
|
insert(_el$, createComponent(content_variants_default, {
|
|
6355
|
+
get nonce() {
|
|
6356
|
+
return props.builderContext.nonce;
|
|
6357
|
+
},
|
|
6316
6358
|
isNestedRender: true,
|
|
6317
6359
|
get apiVersion() {
|
|
6318
6360
|
return props.builderContext.apiVersion;
|
package/lib/node/index.jsx
CHANGED
|
@@ -94,7 +94,8 @@ var builder_context_default = createContext({
|
|
|
94
94
|
componentInfos: {},
|
|
95
95
|
inheritedStyles: {},
|
|
96
96
|
BlocksWrapper: "div",
|
|
97
|
-
BlocksWrapperProps: {}
|
|
97
|
+
BlocksWrapperProps: {},
|
|
98
|
+
nonce: ""
|
|
98
99
|
});
|
|
99
100
|
|
|
100
101
|
// src/context/components.context.ts
|
|
@@ -1020,7 +1021,11 @@ var getSizesForBreakpoints = ({
|
|
|
1020
1021
|
|
|
1021
1022
|
// src/components/inlined-styles.tsx
|
|
1022
1023
|
function InlinedStyles(props) {
|
|
1023
|
-
return <><style
|
|
1024
|
+
return <><style
|
|
1025
|
+
innerHTML={props.styles}
|
|
1026
|
+
data-id={props.id}
|
|
1027
|
+
nonce={props.nonce}
|
|
1028
|
+
/></>;
|
|
1024
1029
|
}
|
|
1025
1030
|
var Inlined_styles_default = InlinedStyles;
|
|
1026
1031
|
|
|
@@ -1106,7 +1111,11 @@ function BlockStyles(props) {
|
|
|
1106
1111
|
hoverStylesClass
|
|
1107
1112
|
].join(" ");
|
|
1108
1113
|
});
|
|
1109
|
-
return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
|
|
1114
|
+
return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
|
|
1115
|
+
id="builderio-block"
|
|
1116
|
+
styles={css()}
|
|
1117
|
+
nonce={props.context.nonce}
|
|
1118
|
+
/></Show2></>;
|
|
1110
1119
|
}
|
|
1111
1120
|
var Block_styles_default = BlockStyles;
|
|
1112
1121
|
|
|
@@ -1659,13 +1668,14 @@ function Columns(props) {
|
|
|
1659
1668
|
}
|
|
1660
1669
|
return <>
|
|
1661
1670
|
<div
|
|
1662
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
1671
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac"}
|
|
1663
1672
|
style={columnsCssVars()}
|
|
1664
1673
|
{...{}}
|
|
1665
1674
|
>
|
|
1666
1675
|
<Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
|
|
1667
1676
|
id="builderio-columns"
|
|
1668
1677
|
styles={columnsStyles()}
|
|
1678
|
+
nonce={props.builderContext.nonce}
|
|
1669
1679
|
/></Show6>
|
|
1670
1680
|
<For4 each={props.columns}>{(column, _index) => {
|
|
1671
1681
|
const index = _index();
|
|
@@ -1687,7 +1697,7 @@ function Columns(props) {
|
|
|
1687
1697
|
/></Dynamic_renderer_default>;
|
|
1688
1698
|
}}</For4>
|
|
1689
1699
|
</div>
|
|
1690
|
-
<style>{`.div-
|
|
1700
|
+
<style>{`.div-5b8fb3ac {
|
|
1691
1701
|
display: flex;
|
|
1692
1702
|
line-height: normal;
|
|
1693
1703
|
}`}</style>
|
|
@@ -4301,7 +4311,11 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
4301
4311
|
|
|
4302
4312
|
// src/components/inlined-script.tsx
|
|
4303
4313
|
function InlinedScript(props) {
|
|
4304
|
-
return <><script
|
|
4314
|
+
return <><script
|
|
4315
|
+
innerHTML={props.scriptStr}
|
|
4316
|
+
data-id={props.id}
|
|
4317
|
+
nonce={props.nonce || ""}
|
|
4318
|
+
/></>;
|
|
4305
4319
|
}
|
|
4306
4320
|
var Inlined_script_default = InlinedScript;
|
|
4307
4321
|
|
|
@@ -4810,7 +4824,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4810
4824
|
}
|
|
4811
4825
|
|
|
4812
4826
|
// src/constants/sdk-version.ts
|
|
4813
|
-
var SDK_VERSION = "2.0.
|
|
4827
|
+
var SDK_VERSION = "2.0.1";
|
|
4814
4828
|
|
|
4815
4829
|
// src/functions/register.ts
|
|
4816
4830
|
var registry = {};
|
|
@@ -5408,6 +5422,7 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5408
5422
|
return <><Inlined_styles_default
|
|
5409
5423
|
id="builderio-content"
|
|
5410
5424
|
styles={injectedStyles()}
|
|
5425
|
+
nonce={props.nonce}
|
|
5411
5426
|
/></>;
|
|
5412
5427
|
}
|
|
5413
5428
|
var Styles_default = ContentStyles;
|
|
@@ -5501,7 +5516,8 @@ function ContentComponent(props) {
|
|
|
5501
5516
|
),
|
|
5502
5517
|
inheritedStyles: {},
|
|
5503
5518
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
5504
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
5519
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
5520
|
+
nonce: props.nonce || ""
|
|
5505
5521
|
});
|
|
5506
5522
|
function contentSetState(newRootState) {
|
|
5507
5523
|
setBuilderContextSignal((PREVIOUS_VALUE) => ({
|
|
@@ -5514,6 +5530,7 @@ function ContentComponent(props) {
|
|
|
5514
5530
|
registeredComponents: registeredComponents()
|
|
5515
5531
|
}}
|
|
5516
5532
|
><Enable_editor_default
|
|
5533
|
+
nonce={props.nonce}
|
|
5517
5534
|
content={props.content}
|
|
5518
5535
|
data={props.data}
|
|
5519
5536
|
model={props.model}
|
|
@@ -5534,8 +5551,10 @@ function ContentComponent(props) {
|
|
|
5534
5551
|
<Show13 when={props.isSsrAbTest}><Inlined_script_default
|
|
5535
5552
|
id="builderio-variant-visibility"
|
|
5536
5553
|
scriptStr={scriptStr()}
|
|
5554
|
+
nonce={props.nonce || ""}
|
|
5537
5555
|
/></Show13>
|
|
5538
5556
|
<Show13 when={TARGET !== "reactNative"}><Styles_default
|
|
5557
|
+
nonce={props.nonce || ""}
|
|
5539
5558
|
isNestedRender={props.isNestedRender}
|
|
5540
5559
|
contentId={builderContextSignal().content?.id}
|
|
5541
5560
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
@@ -5587,21 +5606,25 @@ function ContentVariants(props) {
|
|
|
5587
5606
|
<Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
|
|
5588
5607
|
id="builderio-init-variants-fns"
|
|
5589
5608
|
scriptStr={getInitVariantsFnsScriptString()}
|
|
5609
|
+
nonce={props.nonce || ""}
|
|
5590
5610
|
/></Show14>
|
|
5591
5611
|
<Show14 when={shouldRenderVariants()}>
|
|
5592
5612
|
<Inlined_styles_default
|
|
5593
5613
|
id="builderio-variants"
|
|
5594
5614
|
styles={hideVariantsStyleString()}
|
|
5615
|
+
nonce={props.nonce || ""}
|
|
5595
5616
|
/>
|
|
5596
5617
|
<Inlined_script_default
|
|
5597
5618
|
id="builderio-variants-visibility"
|
|
5598
5619
|
scriptStr={updateCookieAndStylesScriptStr()}
|
|
5620
|
+
nonce={props.nonce || ""}
|
|
5599
5621
|
/>
|
|
5600
5622
|
<For9 each={getVariants(props.content)}>{(variant, _index) => {
|
|
5601
5623
|
const index = _index();
|
|
5602
5624
|
return <Content_default
|
|
5603
5625
|
isNestedRender={props.isNestedRender}
|
|
5604
5626
|
key={variant.testVariationId}
|
|
5627
|
+
nonce={props.nonce}
|
|
5605
5628
|
content={variant}
|
|
5606
5629
|
showContent={false}
|
|
5607
5630
|
model={props.model}
|
|
@@ -5624,6 +5647,7 @@ function ContentVariants(props) {
|
|
|
5624
5647
|
}}</For9>
|
|
5625
5648
|
</Show14>
|
|
5626
5649
|
<Content_default
|
|
5650
|
+
nonce={props.nonce}
|
|
5627
5651
|
isNestedRender={props.isNestedRender}
|
|
5628
5652
|
{...{}}
|
|
5629
5653
|
content={defaultContent()}
|
|
@@ -5710,6 +5734,7 @@ function Symbol(props) {
|
|
|
5710
5734
|
}
|
|
5711
5735
|
createEffect4(on4(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
5712
5736
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
5737
|
+
nonce={props.builderContext.nonce}
|
|
5713
5738
|
isNestedRender={true}
|
|
5714
5739
|
apiVersion={props.builderContext.apiVersion}
|
|
5715
5740
|
apiKey={props.builderContext.apiKey}
|