@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/edge/index.js
CHANGED
|
@@ -119,7 +119,8 @@ var builder_context_default = createContext({
|
|
|
119
119
|
componentInfos: {},
|
|
120
120
|
inheritedStyles: {},
|
|
121
121
|
BlocksWrapper: "div",
|
|
122
|
-
BlocksWrapperProps: {}
|
|
122
|
+
BlocksWrapperProps: {},
|
|
123
|
+
nonce: ""
|
|
123
124
|
});
|
|
124
125
|
var components_context_default = createContext({ registeredComponents: {} });
|
|
125
126
|
|
|
@@ -4006,13 +4007,15 @@ function InlinedStyles(props) {
|
|
|
4006
4007
|
return (() => {
|
|
4007
4008
|
const _el$ = _tmpl$();
|
|
4008
4009
|
effect((_p$) => {
|
|
4009
|
-
const _v$ = props.styles, _v$2 = props.id;
|
|
4010
|
+
const _v$ = props.styles, _v$2 = props.id, _v$3 = props.nonce;
|
|
4010
4011
|
_v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
|
|
4011
4012
|
_v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
|
|
4013
|
+
_v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
|
|
4012
4014
|
return _p$;
|
|
4013
4015
|
}, {
|
|
4014
4016
|
_v$: void 0,
|
|
4015
|
-
_v$2: void 0
|
|
4017
|
+
_v$2: void 0,
|
|
4018
|
+
_v$3: void 0
|
|
4016
4019
|
});
|
|
4017
4020
|
return _el$;
|
|
4018
4021
|
})();
|
|
@@ -4095,6 +4098,9 @@ function BlockStyles(props) {
|
|
|
4095
4098
|
id: "builderio-block",
|
|
4096
4099
|
get styles() {
|
|
4097
4100
|
return css();
|
|
4101
|
+
},
|
|
4102
|
+
get nonce() {
|
|
4103
|
+
return props.context.nonce;
|
|
4098
4104
|
}
|
|
4099
4105
|
});
|
|
4100
4106
|
}
|
|
@@ -4697,7 +4703,7 @@ var getColumnsClass = (id2) => {
|
|
|
4697
4703
|
|
|
4698
4704
|
// src/blocks/columns/columns.tsx
|
|
4699
4705
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
4700
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
4706
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-5b8fb3ac {
|
|
4701
4707
|
display: flex;
|
|
4702
4708
|
line-height: normal;
|
|
4703
4709
|
}`);
|
|
@@ -4817,7 +4823,7 @@ function Columns(props) {
|
|
|
4817
4823
|
const _el$ = _tmpl$3();
|
|
4818
4824
|
spread(_el$, mergeProps({
|
|
4819
4825
|
get ["class"]() {
|
|
4820
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
4826
|
+
return getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac";
|
|
4821
4827
|
},
|
|
4822
4828
|
get style() {
|
|
4823
4829
|
return columnsCssVars();
|
|
@@ -4830,6 +4836,9 @@ function Columns(props) {
|
|
|
4830
4836
|
id: "builderio-columns",
|
|
4831
4837
|
get styles() {
|
|
4832
4838
|
return columnsStyles();
|
|
4839
|
+
},
|
|
4840
|
+
get nonce() {
|
|
4841
|
+
return props.builderContext.nonce;
|
|
4833
4842
|
}
|
|
4834
4843
|
});
|
|
4835
4844
|
}
|
|
@@ -7761,13 +7770,15 @@ function InlinedScript(props) {
|
|
|
7761
7770
|
return (() => {
|
|
7762
7771
|
const _el$ = _tmpl$20();
|
|
7763
7772
|
effect((_p$) => {
|
|
7764
|
-
const _v$ = props.scriptStr, _v$2 = props.id;
|
|
7773
|
+
const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
|
|
7765
7774
|
_v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
|
|
7766
7775
|
_v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
|
|
7776
|
+
_v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
|
|
7767
7777
|
return _p$;
|
|
7768
7778
|
}, {
|
|
7769
7779
|
_v$: void 0,
|
|
7770
|
-
_v$2: void 0
|
|
7780
|
+
_v$2: void 0,
|
|
7781
|
+
_v$3: void 0
|
|
7771
7782
|
});
|
|
7772
7783
|
return _el$;
|
|
7773
7784
|
})();
|
|
@@ -8268,7 +8279,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8268
8279
|
}
|
|
8269
8280
|
|
|
8270
8281
|
// src/constants/sdk-version.ts
|
|
8271
|
-
var SDK_VERSION = "2.0.
|
|
8282
|
+
var SDK_VERSION = "2.0.1";
|
|
8272
8283
|
|
|
8273
8284
|
// src/functions/register.ts
|
|
8274
8285
|
var registry = {};
|
|
@@ -8849,6 +8860,9 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
8849
8860
|
id: "builderio-content",
|
|
8850
8861
|
get styles() {
|
|
8851
8862
|
return injectedStyles();
|
|
8863
|
+
},
|
|
8864
|
+
get nonce() {
|
|
8865
|
+
return props.nonce;
|
|
8852
8866
|
}
|
|
8853
8867
|
});
|
|
8854
8868
|
}
|
|
@@ -8933,7 +8947,8 @@ function ContentComponent(props) {
|
|
|
8933
8947
|
}), {}),
|
|
8934
8948
|
inheritedStyles: {},
|
|
8935
8949
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
8936
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
8950
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
8951
|
+
nonce: props.nonce || ""
|
|
8937
8952
|
});
|
|
8938
8953
|
function contentSetState(newRootState) {
|
|
8939
8954
|
setBuilderContextSignal((PREVIOUS_VALUE) => ({
|
|
@@ -8949,6 +8964,9 @@ function ContentComponent(props) {
|
|
|
8949
8964
|
},
|
|
8950
8965
|
get children() {
|
|
8951
8966
|
return createComponent(enable_editor_default, mergeProps({
|
|
8967
|
+
get nonce() {
|
|
8968
|
+
return props.nonce;
|
|
8969
|
+
},
|
|
8952
8970
|
get content() {
|
|
8953
8971
|
return props.content;
|
|
8954
8972
|
},
|
|
@@ -9001,6 +9019,9 @@ function ContentComponent(props) {
|
|
|
9001
9019
|
id: "builderio-variant-visibility",
|
|
9002
9020
|
get scriptStr() {
|
|
9003
9021
|
return scriptStr();
|
|
9022
|
+
},
|
|
9023
|
+
get nonce() {
|
|
9024
|
+
return props.nonce || "";
|
|
9004
9025
|
}
|
|
9005
9026
|
});
|
|
9006
9027
|
}
|
|
@@ -9008,6 +9029,9 @@ function ContentComponent(props) {
|
|
|
9008
9029
|
when: TARGET !== "reactNative",
|
|
9009
9030
|
get children() {
|
|
9010
9031
|
return createComponent(styles_default, {
|
|
9032
|
+
get nonce() {
|
|
9033
|
+
return props.nonce || "";
|
|
9034
|
+
},
|
|
9011
9035
|
get isNestedRender() {
|
|
9012
9036
|
return props.isNestedRender;
|
|
9013
9037
|
},
|
|
@@ -9079,6 +9103,9 @@ function ContentVariants(props) {
|
|
|
9079
9103
|
id: "builderio-init-variants-fns",
|
|
9080
9104
|
get scriptStr() {
|
|
9081
9105
|
return getInitVariantsFnsScriptString();
|
|
9106
|
+
},
|
|
9107
|
+
get nonce() {
|
|
9108
|
+
return props.nonce || "";
|
|
9082
9109
|
}
|
|
9083
9110
|
});
|
|
9084
9111
|
}
|
|
@@ -9091,11 +9118,17 @@ function ContentVariants(props) {
|
|
|
9091
9118
|
id: "builderio-variants",
|
|
9092
9119
|
get styles() {
|
|
9093
9120
|
return hideVariantsStyleString();
|
|
9121
|
+
},
|
|
9122
|
+
get nonce() {
|
|
9123
|
+
return props.nonce || "";
|
|
9094
9124
|
}
|
|
9095
9125
|
}), createComponent(inlined_script_default, {
|
|
9096
9126
|
id: "builderio-variants-visibility",
|
|
9097
9127
|
get scriptStr() {
|
|
9098
9128
|
return updateCookieAndStylesScriptStr();
|
|
9129
|
+
},
|
|
9130
|
+
get nonce() {
|
|
9131
|
+
return props.nonce || "";
|
|
9099
9132
|
}
|
|
9100
9133
|
}), createComponent(For, {
|
|
9101
9134
|
get each() {
|
|
@@ -9110,6 +9143,9 @@ function ContentVariants(props) {
|
|
|
9110
9143
|
get key() {
|
|
9111
9144
|
return variant.testVariationId;
|
|
9112
9145
|
},
|
|
9146
|
+
get nonce() {
|
|
9147
|
+
return props.nonce;
|
|
9148
|
+
},
|
|
9113
9149
|
content: variant,
|
|
9114
9150
|
showContent: false,
|
|
9115
9151
|
get model() {
|
|
@@ -9165,6 +9201,9 @@ function ContentVariants(props) {
|
|
|
9165
9201
|
})];
|
|
9166
9202
|
}
|
|
9167
9203
|
}), createComponent(content_default, mergeProps({
|
|
9204
|
+
get nonce() {
|
|
9205
|
+
return props.nonce;
|
|
9206
|
+
},
|
|
9168
9207
|
get isNestedRender() {
|
|
9169
9208
|
return props.isNestedRender;
|
|
9170
9209
|
}
|
|
@@ -9289,6 +9328,9 @@ function Symbol2(props) {
|
|
|
9289
9328
|
}
|
|
9290
9329
|
}, {}, () => props.attributes, {}), false, true);
|
|
9291
9330
|
insert(_el$, createComponent(content_variants_default, {
|
|
9331
|
+
get nonce() {
|
|
9332
|
+
return props.builderContext.nonce;
|
|
9333
|
+
},
|
|
9292
9334
|
isNestedRender: true,
|
|
9293
9335
|
get apiVersion() {
|
|
9294
9336
|
return props.builderContext.apiVersion;
|
package/lib/edge/index.jsx
CHANGED
|
@@ -102,7 +102,8 @@ var builder_context_default = createContext({
|
|
|
102
102
|
componentInfos: {},
|
|
103
103
|
inheritedStyles: {},
|
|
104
104
|
BlocksWrapper: "div",
|
|
105
|
-
BlocksWrapperProps: {}
|
|
105
|
+
BlocksWrapperProps: {},
|
|
106
|
+
nonce: ""
|
|
106
107
|
});
|
|
107
108
|
|
|
108
109
|
// src/context/components.context.ts
|
|
@@ -3996,7 +3997,11 @@ var getSizesForBreakpoints = ({
|
|
|
3996
3997
|
|
|
3997
3998
|
// src/components/inlined-styles.tsx
|
|
3998
3999
|
function InlinedStyles(props) {
|
|
3999
|
-
return <><style
|
|
4000
|
+
return <><style
|
|
4001
|
+
innerHTML={props.styles}
|
|
4002
|
+
data-id={props.id}
|
|
4003
|
+
nonce={props.nonce}
|
|
4004
|
+
/></>;
|
|
4000
4005
|
}
|
|
4001
4006
|
var Inlined_styles_default = InlinedStyles;
|
|
4002
4007
|
|
|
@@ -4082,7 +4087,11 @@ function BlockStyles(props) {
|
|
|
4082
4087
|
hoverStylesClass
|
|
4083
4088
|
].join(" ");
|
|
4084
4089
|
});
|
|
4085
|
-
return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
|
|
4090
|
+
return <><Show2 when={TARGET !== "reactNative" && css() && canShowBlock()}><Inlined_styles_default
|
|
4091
|
+
id="builderio-block"
|
|
4092
|
+
styles={css()}
|
|
4093
|
+
nonce={props.context.nonce}
|
|
4094
|
+
/></Show2></>;
|
|
4086
4095
|
}
|
|
4087
4096
|
var Block_styles_default = BlockStyles;
|
|
4088
4097
|
|
|
@@ -4635,13 +4644,14 @@ function Columns(props) {
|
|
|
4635
4644
|
}
|
|
4636
4645
|
return <>
|
|
4637
4646
|
<div
|
|
4638
|
-
class={getColumnsClass(props.builderBlock?.id) + " div-
|
|
4647
|
+
class={getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac"}
|
|
4639
4648
|
style={columnsCssVars()}
|
|
4640
4649
|
{...{}}
|
|
4641
4650
|
>
|
|
4642
4651
|
<Show6 when={TARGET !== "reactNative"}><Inlined_styles_default
|
|
4643
4652
|
id="builderio-columns"
|
|
4644
4653
|
styles={columnsStyles()}
|
|
4654
|
+
nonce={props.builderContext.nonce}
|
|
4645
4655
|
/></Show6>
|
|
4646
4656
|
<For4 each={props.columns}>{(column, _index) => {
|
|
4647
4657
|
const index = _index();
|
|
@@ -4663,7 +4673,7 @@ function Columns(props) {
|
|
|
4663
4673
|
/></Dynamic_renderer_default>;
|
|
4664
4674
|
}}</For4>
|
|
4665
4675
|
</div>
|
|
4666
|
-
<style>{`.div-
|
|
4676
|
+
<style>{`.div-5b8fb3ac {
|
|
4667
4677
|
display: flex;
|
|
4668
4678
|
line-height: normal;
|
|
4669
4679
|
}`}</style>
|
|
@@ -7277,7 +7287,11 @@ var getUpdateVariantVisibilityScript = ({
|
|
|
7277
7287
|
|
|
7278
7288
|
// src/components/inlined-script.tsx
|
|
7279
7289
|
function InlinedScript(props) {
|
|
7280
|
-
return <><script
|
|
7290
|
+
return <><script
|
|
7291
|
+
innerHTML={props.scriptStr}
|
|
7292
|
+
data-id={props.id}
|
|
7293
|
+
nonce={props.nonce || ""}
|
|
7294
|
+
/></>;
|
|
7281
7295
|
}
|
|
7282
7296
|
var Inlined_script_default = InlinedScript;
|
|
7283
7297
|
|
|
@@ -7786,7 +7800,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7786
7800
|
}
|
|
7787
7801
|
|
|
7788
7802
|
// src/constants/sdk-version.ts
|
|
7789
|
-
var SDK_VERSION = "2.0.
|
|
7803
|
+
var SDK_VERSION = "2.0.1";
|
|
7790
7804
|
|
|
7791
7805
|
// src/functions/register.ts
|
|
7792
7806
|
var registry = {};
|
|
@@ -8384,6 +8398,7 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
8384
8398
|
return <><Inlined_styles_default
|
|
8385
8399
|
id="builderio-content"
|
|
8386
8400
|
styles={injectedStyles()}
|
|
8401
|
+
nonce={props.nonce}
|
|
8387
8402
|
/></>;
|
|
8388
8403
|
}
|
|
8389
8404
|
var Styles_default = ContentStyles;
|
|
@@ -8477,7 +8492,8 @@ function ContentComponent(props) {
|
|
|
8477
8492
|
),
|
|
8478
8493
|
inheritedStyles: {},
|
|
8479
8494
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
8480
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
8495
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
8496
|
+
nonce: props.nonce || ""
|
|
8481
8497
|
});
|
|
8482
8498
|
function contentSetState(newRootState) {
|
|
8483
8499
|
setBuilderContextSignal((PREVIOUS_VALUE) => ({
|
|
@@ -8490,6 +8506,7 @@ function ContentComponent(props) {
|
|
|
8490
8506
|
registeredComponents: registeredComponents()
|
|
8491
8507
|
}}
|
|
8492
8508
|
><Enable_editor_default
|
|
8509
|
+
nonce={props.nonce}
|
|
8493
8510
|
content={props.content}
|
|
8494
8511
|
data={props.data}
|
|
8495
8512
|
model={props.model}
|
|
@@ -8510,8 +8527,10 @@ function ContentComponent(props) {
|
|
|
8510
8527
|
<Show13 when={props.isSsrAbTest}><Inlined_script_default
|
|
8511
8528
|
id="builderio-variant-visibility"
|
|
8512
8529
|
scriptStr={scriptStr()}
|
|
8530
|
+
nonce={props.nonce || ""}
|
|
8513
8531
|
/></Show13>
|
|
8514
8532
|
<Show13 when={TARGET !== "reactNative"}><Styles_default
|
|
8533
|
+
nonce={props.nonce || ""}
|
|
8515
8534
|
isNestedRender={props.isNestedRender}
|
|
8516
8535
|
contentId={builderContextSignal().content?.id}
|
|
8517
8536
|
cssCode={builderContextSignal().content?.data?.cssCode}
|
|
@@ -8563,21 +8582,25 @@ function ContentVariants(props) {
|
|
|
8563
8582
|
<Show14 when={!props.isNestedRender && TARGET !== "reactNative"}><Inlined_script_default
|
|
8564
8583
|
id="builderio-init-variants-fns"
|
|
8565
8584
|
scriptStr={getInitVariantsFnsScriptString()}
|
|
8585
|
+
nonce={props.nonce || ""}
|
|
8566
8586
|
/></Show14>
|
|
8567
8587
|
<Show14 when={shouldRenderVariants()}>
|
|
8568
8588
|
<Inlined_styles_default
|
|
8569
8589
|
id="builderio-variants"
|
|
8570
8590
|
styles={hideVariantsStyleString()}
|
|
8591
|
+
nonce={props.nonce || ""}
|
|
8571
8592
|
/>
|
|
8572
8593
|
<Inlined_script_default
|
|
8573
8594
|
id="builderio-variants-visibility"
|
|
8574
8595
|
scriptStr={updateCookieAndStylesScriptStr()}
|
|
8596
|
+
nonce={props.nonce || ""}
|
|
8575
8597
|
/>
|
|
8576
8598
|
<For9 each={getVariants(props.content)}>{(variant, _index) => {
|
|
8577
8599
|
const index = _index();
|
|
8578
8600
|
return <Content_default
|
|
8579
8601
|
isNestedRender={props.isNestedRender}
|
|
8580
8602
|
key={variant.testVariationId}
|
|
8603
|
+
nonce={props.nonce}
|
|
8581
8604
|
content={variant}
|
|
8582
8605
|
showContent={false}
|
|
8583
8606
|
model={props.model}
|
|
@@ -8600,6 +8623,7 @@ function ContentVariants(props) {
|
|
|
8600
8623
|
}}</For9>
|
|
8601
8624
|
</Show14>
|
|
8602
8625
|
<Content_default
|
|
8626
|
+
nonce={props.nonce}
|
|
8603
8627
|
isNestedRender={props.isNestedRender}
|
|
8604
8628
|
{...{}}
|
|
8605
8629
|
content={defaultContent()}
|
|
@@ -8686,6 +8710,7 @@ function Symbol2(props) {
|
|
|
8686
8710
|
}
|
|
8687
8711
|
createEffect4(on4(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
|
|
8688
8712
|
return <><div class={className()} {...{}} {...props.attributes} {...{}}><Content_variants_default
|
|
8713
|
+
nonce={props.builderContext.nonce}
|
|
8689
8714
|
isNestedRender={true}
|
|
8690
8715
|
apiVersion={props.builderContext.apiVersion}
|
|
8691
8716
|
apiKey={props.builderContext.apiKey}
|
package/lib/node/dev.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
|
|
|
@@ -1036,13 +1037,15 @@ function InlinedStyles(props) {
|
|
|
1036
1037
|
return (() => {
|
|
1037
1038
|
const _el$ = _tmpl$();
|
|
1038
1039
|
effect((_p$) => {
|
|
1039
|
-
const _v$ = props.styles, _v$2 = props.id;
|
|
1040
|
+
const _v$ = props.styles, _v$2 = props.id, _v$3 = props.nonce;
|
|
1040
1041
|
_v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
|
|
1041
1042
|
_v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
|
|
1043
|
+
_v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
|
|
1042
1044
|
return _p$;
|
|
1043
1045
|
}, {
|
|
1044
1046
|
_v$: void 0,
|
|
1045
|
-
_v$2: void 0
|
|
1047
|
+
_v$2: void 0,
|
|
1048
|
+
_v$3: void 0
|
|
1046
1049
|
});
|
|
1047
1050
|
return _el$;
|
|
1048
1051
|
})();
|
|
@@ -1125,6 +1128,9 @@ function BlockStyles(props) {
|
|
|
1125
1128
|
id: "builderio-block",
|
|
1126
1129
|
get styles() {
|
|
1127
1130
|
return css();
|
|
1131
|
+
},
|
|
1132
|
+
get nonce() {
|
|
1133
|
+
return props.context.nonce;
|
|
1128
1134
|
}
|
|
1129
1135
|
});
|
|
1130
1136
|
}
|
|
@@ -1727,7 +1733,7 @@ var getColumnsClass = (id) => {
|
|
|
1727
1733
|
|
|
1728
1734
|
// src/blocks/columns/columns.tsx
|
|
1729
1735
|
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
1730
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-
|
|
1736
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<style>.div-5b8fb3ac {
|
|
1731
1737
|
display: flex;
|
|
1732
1738
|
line-height: normal;
|
|
1733
1739
|
}`);
|
|
@@ -1847,7 +1853,7 @@ function Columns(props) {
|
|
|
1847
1853
|
const _el$ = _tmpl$3();
|
|
1848
1854
|
spread(_el$, mergeProps({
|
|
1849
1855
|
get ["class"]() {
|
|
1850
|
-
return getColumnsClass(props.builderBlock?.id) + " div-
|
|
1856
|
+
return getColumnsClass(props.builderBlock?.id) + " div-5b8fb3ac";
|
|
1851
1857
|
},
|
|
1852
1858
|
get style() {
|
|
1853
1859
|
return columnsCssVars();
|
|
@@ -1860,6 +1866,9 @@ function Columns(props) {
|
|
|
1860
1866
|
id: "builderio-columns",
|
|
1861
1867
|
get styles() {
|
|
1862
1868
|
return columnsStyles();
|
|
1869
|
+
},
|
|
1870
|
+
get nonce() {
|
|
1871
|
+
return props.builderContext.nonce;
|
|
1863
1872
|
}
|
|
1864
1873
|
});
|
|
1865
1874
|
}
|
|
@@ -4795,13 +4804,15 @@ function InlinedScript(props) {
|
|
|
4795
4804
|
return (() => {
|
|
4796
4805
|
const _el$ = _tmpl$20();
|
|
4797
4806
|
effect((_p$) => {
|
|
4798
|
-
const _v$ = props.scriptStr, _v$2 = props.id;
|
|
4807
|
+
const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
|
|
4799
4808
|
_v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
|
|
4800
4809
|
_v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
|
|
4810
|
+
_v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
|
|
4801
4811
|
return _p$;
|
|
4802
4812
|
}, {
|
|
4803
4813
|
_v$: void 0,
|
|
4804
|
-
_v$2: void 0
|
|
4814
|
+
_v$2: void 0,
|
|
4815
|
+
_v$3: void 0
|
|
4805
4816
|
});
|
|
4806
4817
|
return _el$;
|
|
4807
4818
|
})();
|
|
@@ -5307,7 +5318,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5307
5318
|
}
|
|
5308
5319
|
|
|
5309
5320
|
// src/constants/sdk-version.ts
|
|
5310
|
-
var SDK_VERSION = "2.0.
|
|
5321
|
+
var SDK_VERSION = "2.0.1";
|
|
5311
5322
|
|
|
5312
5323
|
// src/functions/register.ts
|
|
5313
5324
|
var registry = {};
|
|
@@ -5890,6 +5901,9 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5890
5901
|
id: "builderio-content",
|
|
5891
5902
|
get styles() {
|
|
5892
5903
|
return injectedStyles();
|
|
5904
|
+
},
|
|
5905
|
+
get nonce() {
|
|
5906
|
+
return props.nonce;
|
|
5893
5907
|
}
|
|
5894
5908
|
});
|
|
5895
5909
|
}
|
|
@@ -5974,7 +5988,8 @@ function ContentComponent(props) {
|
|
|
5974
5988
|
}), {}),
|
|
5975
5989
|
inheritedStyles: {},
|
|
5976
5990
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
5977
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
5991
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
5992
|
+
nonce: props.nonce || ""
|
|
5978
5993
|
});
|
|
5979
5994
|
function contentSetState(newRootState) {
|
|
5980
5995
|
setBuilderContextSignal((PREVIOUS_VALUE) => ({
|
|
@@ -5990,6 +6005,9 @@ function ContentComponent(props) {
|
|
|
5990
6005
|
},
|
|
5991
6006
|
get children() {
|
|
5992
6007
|
return createComponent(enable_editor_default, mergeProps({
|
|
6008
|
+
get nonce() {
|
|
6009
|
+
return props.nonce;
|
|
6010
|
+
},
|
|
5993
6011
|
get content() {
|
|
5994
6012
|
return props.content;
|
|
5995
6013
|
},
|
|
@@ -6042,6 +6060,9 @@ function ContentComponent(props) {
|
|
|
6042
6060
|
id: "builderio-variant-visibility",
|
|
6043
6061
|
get scriptStr() {
|
|
6044
6062
|
return scriptStr();
|
|
6063
|
+
},
|
|
6064
|
+
get nonce() {
|
|
6065
|
+
return props.nonce || "";
|
|
6045
6066
|
}
|
|
6046
6067
|
});
|
|
6047
6068
|
}
|
|
@@ -6049,6 +6070,9 @@ function ContentComponent(props) {
|
|
|
6049
6070
|
when: TARGET !== "reactNative",
|
|
6050
6071
|
get children() {
|
|
6051
6072
|
return createComponent(styles_default, {
|
|
6073
|
+
get nonce() {
|
|
6074
|
+
return props.nonce || "";
|
|
6075
|
+
},
|
|
6052
6076
|
get isNestedRender() {
|
|
6053
6077
|
return props.isNestedRender;
|
|
6054
6078
|
},
|
|
@@ -6120,6 +6144,9 @@ function ContentVariants(props) {
|
|
|
6120
6144
|
id: "builderio-init-variants-fns",
|
|
6121
6145
|
get scriptStr() {
|
|
6122
6146
|
return getInitVariantsFnsScriptString();
|
|
6147
|
+
},
|
|
6148
|
+
get nonce() {
|
|
6149
|
+
return props.nonce || "";
|
|
6123
6150
|
}
|
|
6124
6151
|
});
|
|
6125
6152
|
}
|
|
@@ -6132,11 +6159,17 @@ function ContentVariants(props) {
|
|
|
6132
6159
|
id: "builderio-variants",
|
|
6133
6160
|
get styles() {
|
|
6134
6161
|
return hideVariantsStyleString();
|
|
6162
|
+
},
|
|
6163
|
+
get nonce() {
|
|
6164
|
+
return props.nonce || "";
|
|
6135
6165
|
}
|
|
6136
6166
|
}), createComponent(inlined_script_default, {
|
|
6137
6167
|
id: "builderio-variants-visibility",
|
|
6138
6168
|
get scriptStr() {
|
|
6139
6169
|
return updateCookieAndStylesScriptStr();
|
|
6170
|
+
},
|
|
6171
|
+
get nonce() {
|
|
6172
|
+
return props.nonce || "";
|
|
6140
6173
|
}
|
|
6141
6174
|
}), createComponent(For, {
|
|
6142
6175
|
get each() {
|
|
@@ -6151,6 +6184,9 @@ function ContentVariants(props) {
|
|
|
6151
6184
|
get key() {
|
|
6152
6185
|
return variant.testVariationId;
|
|
6153
6186
|
},
|
|
6187
|
+
get nonce() {
|
|
6188
|
+
return props.nonce;
|
|
6189
|
+
},
|
|
6154
6190
|
content: variant,
|
|
6155
6191
|
showContent: false,
|
|
6156
6192
|
get model() {
|
|
@@ -6206,6 +6242,9 @@ function ContentVariants(props) {
|
|
|
6206
6242
|
})];
|
|
6207
6243
|
}
|
|
6208
6244
|
}), createComponent(content_default, mergeProps({
|
|
6245
|
+
get nonce() {
|
|
6246
|
+
return props.nonce;
|
|
6247
|
+
},
|
|
6209
6248
|
get isNestedRender() {
|
|
6210
6249
|
return props.isNestedRender;
|
|
6211
6250
|
}
|
|
@@ -6330,6 +6369,9 @@ function Symbol(props) {
|
|
|
6330
6369
|
}
|
|
6331
6370
|
}, {}, () => props.attributes, {}), false, true);
|
|
6332
6371
|
insert(_el$, createComponent(content_variants_default, {
|
|
6372
|
+
get nonce() {
|
|
6373
|
+
return props.builderContext.nonce;
|
|
6374
|
+
},
|
|
6333
6375
|
isNestedRender: true,
|
|
6334
6376
|
get apiVersion() {
|
|
6335
6377
|
return props.builderContext.apiVersion;
|