@builder.io/sdk-qwik 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.qwik.cjs +106 -13
- package/lib/browser/index.qwik.mjs +106 -13
- package/lib/edge/index.qwik.cjs +106 -13
- package/lib/edge/index.qwik.mjs +106 -13
- package/lib/node/index.qwik.cjs +106 -13
- package/lib/node/index.qwik.mjs +106 -13
- package/package.json +1 -1
- package/types/src/components/content/components/styles.d.ts +2 -1
- package/types/src/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/src/components/inlined-script.d.ts +2 -1
- package/types/src/components/inlined-styles.d.ts +2 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/context/types.d.ts +1 -0
- package/types/src/types/builder-props.d.ts +3 -0
|
@@ -708,7 +708,10 @@ const InlinedStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
708
708
|
], "p0.styles"),
|
|
709
709
|
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
710
710
|
props
|
|
711
|
-
], "p0.id")
|
|
711
|
+
], "p0.id"),
|
|
712
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
713
|
+
props
|
|
714
|
+
], "p0.nonce")
|
|
712
715
|
}, null, 3, "NG_0");
|
|
713
716
|
}, "InlinedStyles_component_IOsg46hMexk"));
|
|
714
717
|
const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -793,8 +796,14 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
793
796
|
get styles() {
|
|
794
797
|
return css.value;
|
|
795
798
|
},
|
|
799
|
+
get nonce() {
|
|
800
|
+
return props.context.nonce;
|
|
801
|
+
},
|
|
796
802
|
[qwik._IMMUTABLE]: {
|
|
797
803
|
id: qwik._IMMUTABLE,
|
|
804
|
+
nonce: qwik._fnSignal((p0) => p0.context.nonce, [
|
|
805
|
+
props
|
|
806
|
+
], "p0.context.nonce"),
|
|
798
807
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
799
808
|
css
|
|
800
809
|
], "p0.value")
|
|
@@ -1655,8 +1664,14 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
1655
1664
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
1656
1665
|
id: "builderio-columns",
|
|
1657
1666
|
styles: columnsStyles(props, state),
|
|
1667
|
+
get nonce() {
|
|
1668
|
+
return props.builderContext.nonce;
|
|
1669
|
+
},
|
|
1658
1670
|
[qwik._IMMUTABLE]: {
|
|
1659
|
-
id: qwik._IMMUTABLE
|
|
1671
|
+
id: qwik._IMMUTABLE,
|
|
1672
|
+
nonce: qwik._fnSignal((p0) => p0.builderContext.nonce, [
|
|
1673
|
+
props
|
|
1674
|
+
], "p0.builderContext.nonce")
|
|
1660
1675
|
}
|
|
1661
1676
|
}, 3, "c0_0"),
|
|
1662
1677
|
(props.columns || []).map((column, index) => {
|
|
@@ -1783,6 +1798,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1783
1798
|
// images, otherwise you can supply this prop manually
|
|
1784
1799
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
1785
1800
|
return props2.srcset;
|
|
1801
|
+
if (props2.noWebp)
|
|
1802
|
+
return void 0;
|
|
1786
1803
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
1787
1804
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
1788
1805
|
console.debug("Removed given srcset");
|
|
@@ -4783,7 +4800,10 @@ const InlinedScript = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
4783
4800
|
], "p0.scriptStr"),
|
|
4784
4801
|
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
4785
4802
|
props
|
|
4786
|
-
], "p0.id")
|
|
4803
|
+
], "p0.id"),
|
|
4804
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
4805
|
+
props
|
|
4806
|
+
], 'p0.nonce||""')
|
|
4787
4807
|
}, null, 3, "WO_0");
|
|
4788
4808
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
4789
4809
|
function getGlobalThis() {
|
|
@@ -5183,7 +5203,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5183
5203
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5184
5204
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5185
5205
|
}
|
|
5186
|
-
const SDK_VERSION = "0.16.
|
|
5206
|
+
const SDK_VERSION = "0.16.2";
|
|
5187
5207
|
const registry = {};
|
|
5188
5208
|
function register(type, info) {
|
|
5189
5209
|
let typeList = registry[type];
|
|
@@ -5827,8 +5847,14 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5827
5847
|
get styles() {
|
|
5828
5848
|
return state.injectedStyles;
|
|
5829
5849
|
},
|
|
5850
|
+
get nonce() {
|
|
5851
|
+
return props.nonce;
|
|
5852
|
+
},
|
|
5830
5853
|
[qwik._IMMUTABLE]: {
|
|
5831
5854
|
id: qwik._IMMUTABLE,
|
|
5855
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
5856
|
+
props
|
|
5857
|
+
], "p0.nonce"),
|
|
5832
5858
|
styles: qwik._fnSignal((p0) => p0.injectedStyles, [
|
|
5833
5859
|
state
|
|
5834
5860
|
], "p0.injectedStyles")
|
|
@@ -5863,7 +5889,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
5863
5889
|
};
|
|
5864
5890
|
};
|
|
5865
5891
|
const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5866
|
-
var _a, _b;
|
|
5892
|
+
var _a, _b, _c, _d;
|
|
5867
5893
|
qwik._jsxBranch();
|
|
5868
5894
|
const state = qwik.useStore({
|
|
5869
5895
|
builderContextSignal: {
|
|
@@ -5884,18 +5910,31 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5884
5910
|
apiVersion: props.apiVersion,
|
|
5885
5911
|
componentInfos: [
|
|
5886
5912
|
...getDefaultRegisteredComponents(),
|
|
5887
|
-
...props.customComponents
|
|
5913
|
+
...((_a = props.customComponents) == null ? void 0 : _a.filter(({ models }) => {
|
|
5914
|
+
if (!(models == null ? void 0 : models.length))
|
|
5915
|
+
return true;
|
|
5916
|
+
if (!props.model)
|
|
5917
|
+
return true;
|
|
5918
|
+
return models.includes(props.model);
|
|
5919
|
+
})) || []
|
|
5888
5920
|
].reduce((acc, { component: _, ...info }) => ({
|
|
5889
5921
|
...acc,
|
|
5890
5922
|
[info.name]: serializeComponentInfo(info)
|
|
5891
5923
|
}), {}),
|
|
5892
5924
|
inheritedStyles: {},
|
|
5893
5925
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
5894
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
5926
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
5927
|
+
nonce: props.nonce || ""
|
|
5895
5928
|
},
|
|
5896
5929
|
registeredComponents: [
|
|
5897
5930
|
...getDefaultRegisteredComponents(),
|
|
5898
|
-
...props.customComponents
|
|
5931
|
+
...((_b = props.customComponents) == null ? void 0 : _b.filter(({ models }) => {
|
|
5932
|
+
if (!(models == null ? void 0 : models.length))
|
|
5933
|
+
return true;
|
|
5934
|
+
if (!props.model)
|
|
5935
|
+
return true;
|
|
5936
|
+
return models.includes(props.model);
|
|
5937
|
+
})) || []
|
|
5899
5938
|
].reduce((acc, { component, ...info }) => ({
|
|
5900
5939
|
...acc,
|
|
5901
5940
|
[info.name]: {
|
|
@@ -5905,9 +5944,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5905
5944
|
}), {}),
|
|
5906
5945
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
5907
5946
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5908
|
-
variationId: (
|
|
5947
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
5909
5948
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5910
|
-
contentId: (
|
|
5949
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
5911
5950
|
})
|
|
5912
5951
|
}, {
|
|
5913
5952
|
deep: true
|
|
@@ -5916,6 +5955,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5916
5955
|
registeredComponents: state.registeredComponents
|
|
5917
5956
|
}));
|
|
5918
5957
|
return /* @__PURE__ */ qwik._jsxC(EnableEditor, {
|
|
5958
|
+
get nonce() {
|
|
5959
|
+
return props.nonce;
|
|
5960
|
+
},
|
|
5919
5961
|
get content() {
|
|
5920
5962
|
return props.content;
|
|
5921
5963
|
},
|
|
@@ -5961,14 +6003,23 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5961
6003
|
get scriptStr() {
|
|
5962
6004
|
return state.scriptStr;
|
|
5963
6005
|
},
|
|
6006
|
+
get nonce() {
|
|
6007
|
+
return props.nonce || "";
|
|
6008
|
+
},
|
|
5964
6009
|
[qwik._IMMUTABLE]: {
|
|
5965
6010
|
id: qwik._IMMUTABLE,
|
|
6011
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
6012
|
+
props
|
|
6013
|
+
], 'p0.nonce||""'),
|
|
5966
6014
|
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
5967
6015
|
state
|
|
5968
6016
|
], "p0.scriptStr")
|
|
5969
6017
|
}
|
|
5970
6018
|
}, 3, "LQ_0") : null,
|
|
5971
6019
|
/* @__PURE__ */ qwik._jsxC(ContentStyles, {
|
|
6020
|
+
get nonce() {
|
|
6021
|
+
return props.nonce || "";
|
|
6022
|
+
},
|
|
5972
6023
|
get isNestedRender() {
|
|
5973
6024
|
return props.isNestedRender;
|
|
5974
6025
|
},
|
|
@@ -6005,7 +6056,10 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
6005
6056
|
], "p0.builderContextSignal.content?.data?.customFonts"),
|
|
6006
6057
|
isNestedRender: qwik._fnSignal((p0) => p0.isNestedRender, [
|
|
6007
6058
|
props
|
|
6008
|
-
], "p0.isNestedRender")
|
|
6059
|
+
], "p0.isNestedRender"),
|
|
6060
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
6061
|
+
props
|
|
6062
|
+
], 'p0.nonce||""')
|
|
6009
6063
|
}
|
|
6010
6064
|
}, 3, "LQ_1"),
|
|
6011
6065
|
/* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
@@ -6075,6 +6129,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
6075
6129
|
model: qwik._fnSignal((p0) => p0.model, [
|
|
6076
6130
|
props
|
|
6077
6131
|
], "p0.model"),
|
|
6132
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
6133
|
+
props
|
|
6134
|
+
], "p0.nonce"),
|
|
6078
6135
|
showContent: qwik._fnSignal((p0) => p0.showContent, [
|
|
6079
6136
|
props
|
|
6080
6137
|
], "p0.showContent"),
|
|
@@ -6122,7 +6179,7 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6122
6179
|
props,
|
|
6123
6180
|
state
|
|
6124
6181
|
]));
|
|
6125
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
6182
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6126
6183
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
6127
6184
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
6128
6185
|
children: [
|
|
@@ -6131,8 +6188,14 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6131
6188
|
get scriptStr() {
|
|
6132
6189
|
return getInitVariantsFnsScriptString();
|
|
6133
6190
|
},
|
|
6191
|
+
get nonce() {
|
|
6192
|
+
return props.nonce || "";
|
|
6193
|
+
},
|
|
6134
6194
|
[qwik._IMMUTABLE]: {
|
|
6135
6195
|
id: qwik._IMMUTABLE,
|
|
6196
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
6197
|
+
props
|
|
6198
|
+
], 'p0.nonce||""'),
|
|
6136
6199
|
scriptStr: qwik._IMMUTABLE
|
|
6137
6200
|
}
|
|
6138
6201
|
}, 3, "XM_0") : null,
|
|
@@ -6143,8 +6206,14 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6143
6206
|
get styles() {
|
|
6144
6207
|
return hideVariantsStyleString.value;
|
|
6145
6208
|
},
|
|
6209
|
+
get nonce() {
|
|
6210
|
+
return props.nonce || "";
|
|
6211
|
+
},
|
|
6146
6212
|
[qwik._IMMUTABLE]: {
|
|
6147
6213
|
id: qwik._IMMUTABLE,
|
|
6214
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
6215
|
+
props
|
|
6216
|
+
], 'p0.nonce||""'),
|
|
6148
6217
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
6149
6218
|
hideVariantsStyleString
|
|
6150
6219
|
], "p0.value")
|
|
@@ -6155,8 +6224,14 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6155
6224
|
get scriptStr() {
|
|
6156
6225
|
return updateCookieAndStylesScriptStr.value;
|
|
6157
6226
|
},
|
|
6227
|
+
get nonce() {
|
|
6228
|
+
return props.nonce || "";
|
|
6229
|
+
},
|
|
6158
6230
|
[qwik._IMMUTABLE]: {
|
|
6159
6231
|
id: qwik._IMMUTABLE,
|
|
6232
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
6233
|
+
props
|
|
6234
|
+
], 'p0.nonce||""'),
|
|
6160
6235
|
scriptStr: qwik._fnSignal((p0) => p0.value, [
|
|
6161
6236
|
updateCookieAndStylesScriptStr
|
|
6162
6237
|
], "p0.value")
|
|
@@ -6167,6 +6242,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6167
6242
|
get isNestedRender() {
|
|
6168
6243
|
return props.isNestedRender;
|
|
6169
6244
|
},
|
|
6245
|
+
get nonce() {
|
|
6246
|
+
return props.nonce;
|
|
6247
|
+
},
|
|
6170
6248
|
content: variant,
|
|
6171
6249
|
showContent: false,
|
|
6172
6250
|
get model() {
|
|
@@ -6266,6 +6344,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6266
6344
|
model: qwik._fnSignal((p0) => p0.model, [
|
|
6267
6345
|
props
|
|
6268
6346
|
], "p0.model"),
|
|
6347
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
6348
|
+
props
|
|
6349
|
+
], "p0.nonce"),
|
|
6269
6350
|
showContent: qwik._IMMUTABLE,
|
|
6270
6351
|
trustedHosts: qwik._fnSignal((p0) => p0.trustedHosts, [
|
|
6271
6352
|
props
|
|
@@ -6276,6 +6357,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6276
6357
|
]
|
|
6277
6358
|
}, 1, "XM_3") : null,
|
|
6278
6359
|
/* @__PURE__ */ qwik._jsxC(ContentComponent, {
|
|
6360
|
+
get nonce() {
|
|
6361
|
+
return props.nonce;
|
|
6362
|
+
},
|
|
6279
6363
|
get isNestedRender() {
|
|
6280
6364
|
return props.isNestedRender;
|
|
6281
6365
|
},
|
|
@@ -6383,6 +6467,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6383
6467
|
model: qwik._fnSignal((p0) => p0.model, [
|
|
6384
6468
|
props
|
|
6385
6469
|
], "p0.model"),
|
|
6470
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
6471
|
+
props
|
|
6472
|
+
], "p0.nonce"),
|
|
6386
6473
|
showContent: qwik._IMMUTABLE,
|
|
6387
6474
|
trustedHosts: qwik._fnSignal((p0) => p0.trustedHosts, [
|
|
6388
6475
|
props
|
|
@@ -6458,6 +6545,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
6458
6545
|
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
6459
6546
|
...props.attributes,
|
|
6460
6547
|
children: /* @__PURE__ */ qwik._jsxC(ContentVariants, {
|
|
6548
|
+
get nonce() {
|
|
6549
|
+
return props.builderContext.nonce;
|
|
6550
|
+
},
|
|
6461
6551
|
isNestedRender: true,
|
|
6462
6552
|
get apiVersion() {
|
|
6463
6553
|
return props.builderContext.apiVersion;
|
|
@@ -6553,7 +6643,10 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
6553
6643
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|
|
6554
6644
|
}, [
|
|
6555
6645
|
props
|
|
6556
|
-
], "p0.symbol?.model")
|
|
6646
|
+
], "p0.symbol?.model"),
|
|
6647
|
+
nonce: qwik._fnSignal((p0) => p0.builderContext.nonce, [
|
|
6648
|
+
props
|
|
6649
|
+
], "p0.builderContext.nonce")
|
|
6557
6650
|
}
|
|
6558
6651
|
}, 3, "Wt_0")
|
|
6559
6652
|
}, {
|
|
@@ -706,7 +706,10 @@ const InlinedStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
706
706
|
], "p0.styles"),
|
|
707
707
|
"data-id": _fnSignal((p0) => p0.id, [
|
|
708
708
|
props
|
|
709
|
-
], "p0.id")
|
|
709
|
+
], "p0.id"),
|
|
710
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
711
|
+
props
|
|
712
|
+
], "p0.nonce")
|
|
710
713
|
}, null, 3, "NG_0");
|
|
711
714
|
}, "InlinedStyles_component_IOsg46hMexk"));
|
|
712
715
|
const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -791,8 +794,14 @@ const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
791
794
|
get styles() {
|
|
792
795
|
return css.value;
|
|
793
796
|
},
|
|
797
|
+
get nonce() {
|
|
798
|
+
return props.context.nonce;
|
|
799
|
+
},
|
|
794
800
|
[_IMMUTABLE]: {
|
|
795
801
|
id: _IMMUTABLE,
|
|
802
|
+
nonce: _fnSignal((p0) => p0.context.nonce, [
|
|
803
|
+
props
|
|
804
|
+
], "p0.context.nonce"),
|
|
796
805
|
styles: _fnSignal((p0) => p0.value, [
|
|
797
806
|
css
|
|
798
807
|
], "p0.value")
|
|
@@ -1653,8 +1662,14 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
1653
1662
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
1654
1663
|
id: "builderio-columns",
|
|
1655
1664
|
styles: columnsStyles(props, state),
|
|
1665
|
+
get nonce() {
|
|
1666
|
+
return props.builderContext.nonce;
|
|
1667
|
+
},
|
|
1656
1668
|
[_IMMUTABLE]: {
|
|
1657
|
-
id: _IMMUTABLE
|
|
1669
|
+
id: _IMMUTABLE,
|
|
1670
|
+
nonce: _fnSignal((p0) => p0.builderContext.nonce, [
|
|
1671
|
+
props
|
|
1672
|
+
], "p0.builderContext.nonce")
|
|
1658
1673
|
}
|
|
1659
1674
|
}, 3, "c0_0"),
|
|
1660
1675
|
(props.columns || []).map((column, index) => {
|
|
@@ -1781,6 +1796,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1781
1796
|
// images, otherwise you can supply this prop manually
|
|
1782
1797
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
1783
1798
|
return props2.srcset;
|
|
1799
|
+
if (props2.noWebp)
|
|
1800
|
+
return void 0;
|
|
1784
1801
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
1785
1802
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
1786
1803
|
console.debug("Removed given srcset");
|
|
@@ -4781,7 +4798,10 @@ const InlinedScript = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
4781
4798
|
], "p0.scriptStr"),
|
|
4782
4799
|
"data-id": _fnSignal((p0) => p0.id, [
|
|
4783
4800
|
props
|
|
4784
|
-
], "p0.id")
|
|
4801
|
+
], "p0.id"),
|
|
4802
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
4803
|
+
props
|
|
4804
|
+
], 'p0.nonce||""')
|
|
4785
4805
|
}, null, 3, "WO_0");
|
|
4786
4806
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
4787
4807
|
function getGlobalThis() {
|
|
@@ -5181,7 +5201,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5181
5201
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5182
5202
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5183
5203
|
}
|
|
5184
|
-
const SDK_VERSION = "0.16.
|
|
5204
|
+
const SDK_VERSION = "0.16.2";
|
|
5185
5205
|
const registry = {};
|
|
5186
5206
|
function register(type, info) {
|
|
5187
5207
|
let typeList = registry[type];
|
|
@@ -5825,8 +5845,14 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5825
5845
|
get styles() {
|
|
5826
5846
|
return state.injectedStyles;
|
|
5827
5847
|
},
|
|
5848
|
+
get nonce() {
|
|
5849
|
+
return props.nonce;
|
|
5850
|
+
},
|
|
5828
5851
|
[_IMMUTABLE]: {
|
|
5829
5852
|
id: _IMMUTABLE,
|
|
5853
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
5854
|
+
props
|
|
5855
|
+
], "p0.nonce"),
|
|
5830
5856
|
styles: _fnSignal((p0) => p0.injectedStyles, [
|
|
5831
5857
|
state
|
|
5832
5858
|
], "p0.injectedStyles")
|
|
@@ -5861,7 +5887,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
5861
5887
|
};
|
|
5862
5888
|
};
|
|
5863
5889
|
const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5864
|
-
var _a, _b;
|
|
5890
|
+
var _a, _b, _c, _d;
|
|
5865
5891
|
_jsxBranch();
|
|
5866
5892
|
const state = useStore({
|
|
5867
5893
|
builderContextSignal: {
|
|
@@ -5882,18 +5908,31 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5882
5908
|
apiVersion: props.apiVersion,
|
|
5883
5909
|
componentInfos: [
|
|
5884
5910
|
...getDefaultRegisteredComponents(),
|
|
5885
|
-
...props.customComponents
|
|
5911
|
+
...((_a = props.customComponents) == null ? void 0 : _a.filter(({ models }) => {
|
|
5912
|
+
if (!(models == null ? void 0 : models.length))
|
|
5913
|
+
return true;
|
|
5914
|
+
if (!props.model)
|
|
5915
|
+
return true;
|
|
5916
|
+
return models.includes(props.model);
|
|
5917
|
+
})) || []
|
|
5886
5918
|
].reduce((acc, { component: _, ...info }) => ({
|
|
5887
5919
|
...acc,
|
|
5888
5920
|
[info.name]: serializeComponentInfo(info)
|
|
5889
5921
|
}), {}),
|
|
5890
5922
|
inheritedStyles: {},
|
|
5891
5923
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
5892
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
5924
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
5925
|
+
nonce: props.nonce || ""
|
|
5893
5926
|
},
|
|
5894
5927
|
registeredComponents: [
|
|
5895
5928
|
...getDefaultRegisteredComponents(),
|
|
5896
|
-
...props.customComponents
|
|
5929
|
+
...((_b = props.customComponents) == null ? void 0 : _b.filter(({ models }) => {
|
|
5930
|
+
if (!(models == null ? void 0 : models.length))
|
|
5931
|
+
return true;
|
|
5932
|
+
if (!props.model)
|
|
5933
|
+
return true;
|
|
5934
|
+
return models.includes(props.model);
|
|
5935
|
+
})) || []
|
|
5897
5936
|
].reduce((acc, { component, ...info }) => ({
|
|
5898
5937
|
...acc,
|
|
5899
5938
|
[info.name]: {
|
|
@@ -5903,9 +5942,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5903
5942
|
}), {}),
|
|
5904
5943
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
5905
5944
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5906
|
-
variationId: (
|
|
5945
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
5907
5946
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5908
|
-
contentId: (
|
|
5947
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
5909
5948
|
})
|
|
5910
5949
|
}, {
|
|
5911
5950
|
deep: true
|
|
@@ -5914,6 +5953,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5914
5953
|
registeredComponents: state.registeredComponents
|
|
5915
5954
|
}));
|
|
5916
5955
|
return /* @__PURE__ */ _jsxC(EnableEditor, {
|
|
5956
|
+
get nonce() {
|
|
5957
|
+
return props.nonce;
|
|
5958
|
+
},
|
|
5917
5959
|
get content() {
|
|
5918
5960
|
return props.content;
|
|
5919
5961
|
},
|
|
@@ -5959,14 +6001,23 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5959
6001
|
get scriptStr() {
|
|
5960
6002
|
return state.scriptStr;
|
|
5961
6003
|
},
|
|
6004
|
+
get nonce() {
|
|
6005
|
+
return props.nonce || "";
|
|
6006
|
+
},
|
|
5962
6007
|
[_IMMUTABLE]: {
|
|
5963
6008
|
id: _IMMUTABLE,
|
|
6009
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
6010
|
+
props
|
|
6011
|
+
], 'p0.nonce||""'),
|
|
5964
6012
|
scriptStr: _fnSignal((p0) => p0.scriptStr, [
|
|
5965
6013
|
state
|
|
5966
6014
|
], "p0.scriptStr")
|
|
5967
6015
|
}
|
|
5968
6016
|
}, 3, "LQ_0") : null,
|
|
5969
6017
|
/* @__PURE__ */ _jsxC(ContentStyles, {
|
|
6018
|
+
get nonce() {
|
|
6019
|
+
return props.nonce || "";
|
|
6020
|
+
},
|
|
5970
6021
|
get isNestedRender() {
|
|
5971
6022
|
return props.isNestedRender;
|
|
5972
6023
|
},
|
|
@@ -6003,7 +6054,10 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
6003
6054
|
], "p0.builderContextSignal.content?.data?.customFonts"),
|
|
6004
6055
|
isNestedRender: _fnSignal((p0) => p0.isNestedRender, [
|
|
6005
6056
|
props
|
|
6006
|
-
], "p0.isNestedRender")
|
|
6057
|
+
], "p0.isNestedRender"),
|
|
6058
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
6059
|
+
props
|
|
6060
|
+
], 'p0.nonce||""')
|
|
6007
6061
|
}
|
|
6008
6062
|
}, 3, "LQ_1"),
|
|
6009
6063
|
/* @__PURE__ */ _jsxC(Blocks, {
|
|
@@ -6073,6 +6127,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
6073
6127
|
model: _fnSignal((p0) => p0.model, [
|
|
6074
6128
|
props
|
|
6075
6129
|
], "p0.model"),
|
|
6130
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
6131
|
+
props
|
|
6132
|
+
], "p0.nonce"),
|
|
6076
6133
|
showContent: _fnSignal((p0) => p0.showContent, [
|
|
6077
6134
|
props
|
|
6078
6135
|
], "p0.showContent"),
|
|
@@ -6120,7 +6177,7 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6120
6177
|
props,
|
|
6121
6178
|
state
|
|
6122
6179
|
]));
|
|
6123
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl((
|
|
6180
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6124
6181
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
6125
6182
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
6126
6183
|
children: [
|
|
@@ -6129,8 +6186,14 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6129
6186
|
get scriptStr() {
|
|
6130
6187
|
return getInitVariantsFnsScriptString();
|
|
6131
6188
|
},
|
|
6189
|
+
get nonce() {
|
|
6190
|
+
return props.nonce || "";
|
|
6191
|
+
},
|
|
6132
6192
|
[_IMMUTABLE]: {
|
|
6133
6193
|
id: _IMMUTABLE,
|
|
6194
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
6195
|
+
props
|
|
6196
|
+
], 'p0.nonce||""'),
|
|
6134
6197
|
scriptStr: _IMMUTABLE
|
|
6135
6198
|
}
|
|
6136
6199
|
}, 3, "XM_0") : null,
|
|
@@ -6141,8 +6204,14 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6141
6204
|
get styles() {
|
|
6142
6205
|
return hideVariantsStyleString.value;
|
|
6143
6206
|
},
|
|
6207
|
+
get nonce() {
|
|
6208
|
+
return props.nonce || "";
|
|
6209
|
+
},
|
|
6144
6210
|
[_IMMUTABLE]: {
|
|
6145
6211
|
id: _IMMUTABLE,
|
|
6212
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
6213
|
+
props
|
|
6214
|
+
], 'p0.nonce||""'),
|
|
6146
6215
|
styles: _fnSignal((p0) => p0.value, [
|
|
6147
6216
|
hideVariantsStyleString
|
|
6148
6217
|
], "p0.value")
|
|
@@ -6153,8 +6222,14 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6153
6222
|
get scriptStr() {
|
|
6154
6223
|
return updateCookieAndStylesScriptStr.value;
|
|
6155
6224
|
},
|
|
6225
|
+
get nonce() {
|
|
6226
|
+
return props.nonce || "";
|
|
6227
|
+
},
|
|
6156
6228
|
[_IMMUTABLE]: {
|
|
6157
6229
|
id: _IMMUTABLE,
|
|
6230
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
6231
|
+
props
|
|
6232
|
+
], 'p0.nonce||""'),
|
|
6158
6233
|
scriptStr: _fnSignal((p0) => p0.value, [
|
|
6159
6234
|
updateCookieAndStylesScriptStr
|
|
6160
6235
|
], "p0.value")
|
|
@@ -6165,6 +6240,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6165
6240
|
get isNestedRender() {
|
|
6166
6241
|
return props.isNestedRender;
|
|
6167
6242
|
},
|
|
6243
|
+
get nonce() {
|
|
6244
|
+
return props.nonce;
|
|
6245
|
+
},
|
|
6168
6246
|
content: variant,
|
|
6169
6247
|
showContent: false,
|
|
6170
6248
|
get model() {
|
|
@@ -6264,6 +6342,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6264
6342
|
model: _fnSignal((p0) => p0.model, [
|
|
6265
6343
|
props
|
|
6266
6344
|
], "p0.model"),
|
|
6345
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
6346
|
+
props
|
|
6347
|
+
], "p0.nonce"),
|
|
6267
6348
|
showContent: _IMMUTABLE,
|
|
6268
6349
|
trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
|
|
6269
6350
|
props
|
|
@@ -6274,6 +6355,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6274
6355
|
]
|
|
6275
6356
|
}, 1, "XM_3") : null,
|
|
6276
6357
|
/* @__PURE__ */ _jsxC(ContentComponent, {
|
|
6358
|
+
get nonce() {
|
|
6359
|
+
return props.nonce;
|
|
6360
|
+
},
|
|
6277
6361
|
get isNestedRender() {
|
|
6278
6362
|
return props.isNestedRender;
|
|
6279
6363
|
},
|
|
@@ -6381,6 +6465,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6381
6465
|
model: _fnSignal((p0) => p0.model, [
|
|
6382
6466
|
props
|
|
6383
6467
|
], "p0.model"),
|
|
6468
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
6469
|
+
props
|
|
6470
|
+
], "p0.nonce"),
|
|
6384
6471
|
showContent: _IMMUTABLE,
|
|
6385
6472
|
trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
|
|
6386
6473
|
props
|
|
@@ -6456,6 +6543,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
6456
6543
|
return /* @__PURE__ */ _jsxS("div", {
|
|
6457
6544
|
...props.attributes,
|
|
6458
6545
|
children: /* @__PURE__ */ _jsxC(ContentVariants, {
|
|
6546
|
+
get nonce() {
|
|
6547
|
+
return props.builderContext.nonce;
|
|
6548
|
+
},
|
|
6459
6549
|
isNestedRender: true,
|
|
6460
6550
|
get apiVersion() {
|
|
6461
6551
|
return props.builderContext.apiVersion;
|
|
@@ -6551,7 +6641,10 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
6551
6641
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|
|
6552
6642
|
}, [
|
|
6553
6643
|
props
|
|
6554
|
-
], "p0.symbol?.model")
|
|
6644
|
+
], "p0.symbol?.model"),
|
|
6645
|
+
nonce: _fnSignal((p0) => p0.builderContext.nonce, [
|
|
6646
|
+
props
|
|
6647
|
+
], "p0.builderContext.nonce")
|
|
6555
6648
|
}
|
|
6556
6649
|
}, 3, "Wt_0")
|
|
6557
6650
|
}, {
|