@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
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -3932,7 +3932,10 @@ const InlinedStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
3932
3932
|
], "p0.styles"),
|
|
3933
3933
|
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
3934
3934
|
props
|
|
3935
|
-
], "p0.id")
|
|
3935
|
+
], "p0.id"),
|
|
3936
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
3937
|
+
props
|
|
3938
|
+
], "p0.nonce")
|
|
3936
3939
|
}, null, 3, "NG_0");
|
|
3937
3940
|
}, "InlinedStyles_component_IOsg46hMexk"));
|
|
3938
3941
|
const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -4017,8 +4020,14 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
4017
4020
|
get styles() {
|
|
4018
4021
|
return css.value;
|
|
4019
4022
|
},
|
|
4023
|
+
get nonce() {
|
|
4024
|
+
return props.context.nonce;
|
|
4025
|
+
},
|
|
4020
4026
|
[qwik._IMMUTABLE]: {
|
|
4021
4027
|
id: qwik._IMMUTABLE,
|
|
4028
|
+
nonce: qwik._fnSignal((p0) => p0.context.nonce, [
|
|
4029
|
+
props
|
|
4030
|
+
], "p0.context.nonce"),
|
|
4022
4031
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
4023
4032
|
css
|
|
4024
4033
|
], "p0.value")
|
|
@@ -4879,8 +4888,14 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
4879
4888
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
4880
4889
|
id: "builderio-columns",
|
|
4881
4890
|
styles: columnsStyles(props, state),
|
|
4891
|
+
get nonce() {
|
|
4892
|
+
return props.builderContext.nonce;
|
|
4893
|
+
},
|
|
4882
4894
|
[qwik._IMMUTABLE]: {
|
|
4883
|
-
id: qwik._IMMUTABLE
|
|
4895
|
+
id: qwik._IMMUTABLE,
|
|
4896
|
+
nonce: qwik._fnSignal((p0) => p0.builderContext.nonce, [
|
|
4897
|
+
props
|
|
4898
|
+
], "p0.builderContext.nonce")
|
|
4884
4899
|
}
|
|
4885
4900
|
}, 3, "c0_0"),
|
|
4886
4901
|
(props.columns || []).map((column, index) => {
|
|
@@ -5007,6 +5022,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
5007
5022
|
// images, otherwise you can supply this prop manually
|
|
5008
5023
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
5009
5024
|
return props2.srcset;
|
|
5025
|
+
if (props2.noWebp)
|
|
5026
|
+
return void 0;
|
|
5010
5027
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
5011
5028
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
5012
5029
|
console.debug("Removed given srcset");
|
|
@@ -8007,7 +8024,10 @@ const InlinedScript = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
8007
8024
|
], "p0.scriptStr"),
|
|
8008
8025
|
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
8009
8026
|
props
|
|
8010
|
-
], "p0.id")
|
|
8027
|
+
], "p0.id"),
|
|
8028
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
8029
|
+
props
|
|
8030
|
+
], 'p0.nonce||""')
|
|
8011
8031
|
}, null, 3, "WO_0");
|
|
8012
8032
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
8013
8033
|
function getGlobalThis() {
|
|
@@ -8407,7 +8427,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8407
8427
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8408
8428
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8409
8429
|
}
|
|
8410
|
-
const SDK_VERSION = "0.16.
|
|
8430
|
+
const SDK_VERSION = "0.16.2";
|
|
8411
8431
|
const registry = {};
|
|
8412
8432
|
function register(type, info) {
|
|
8413
8433
|
let typeList = registry[type];
|
|
@@ -9051,8 +9071,14 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
9051
9071
|
get styles() {
|
|
9052
9072
|
return state.injectedStyles;
|
|
9053
9073
|
},
|
|
9074
|
+
get nonce() {
|
|
9075
|
+
return props.nonce;
|
|
9076
|
+
},
|
|
9054
9077
|
[qwik._IMMUTABLE]: {
|
|
9055
9078
|
id: qwik._IMMUTABLE,
|
|
9079
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
9080
|
+
props
|
|
9081
|
+
], "p0.nonce"),
|
|
9056
9082
|
styles: qwik._fnSignal((p0) => p0.injectedStyles, [
|
|
9057
9083
|
state
|
|
9058
9084
|
], "p0.injectedStyles")
|
|
@@ -9087,7 +9113,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
9087
9113
|
};
|
|
9088
9114
|
};
|
|
9089
9115
|
const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
9090
|
-
var _a, _b;
|
|
9116
|
+
var _a, _b, _c, _d;
|
|
9091
9117
|
qwik._jsxBranch();
|
|
9092
9118
|
const state = qwik.useStore({
|
|
9093
9119
|
builderContextSignal: {
|
|
@@ -9108,18 +9134,31 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9108
9134
|
apiVersion: props.apiVersion,
|
|
9109
9135
|
componentInfos: [
|
|
9110
9136
|
...getDefaultRegisteredComponents(),
|
|
9111
|
-
...props.customComponents
|
|
9137
|
+
...((_a = props.customComponents) == null ? void 0 : _a.filter(({ models }) => {
|
|
9138
|
+
if (!(models == null ? void 0 : models.length))
|
|
9139
|
+
return true;
|
|
9140
|
+
if (!props.model)
|
|
9141
|
+
return true;
|
|
9142
|
+
return models.includes(props.model);
|
|
9143
|
+
})) || []
|
|
9112
9144
|
].reduce((acc, { component: _, ...info }) => ({
|
|
9113
9145
|
...acc,
|
|
9114
9146
|
[info.name]: serializeComponentInfo(info)
|
|
9115
9147
|
}), {}),
|
|
9116
9148
|
inheritedStyles: {},
|
|
9117
9149
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
9118
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
9150
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
9151
|
+
nonce: props.nonce || ""
|
|
9119
9152
|
},
|
|
9120
9153
|
registeredComponents: [
|
|
9121
9154
|
...getDefaultRegisteredComponents(),
|
|
9122
|
-
...props.customComponents
|
|
9155
|
+
...((_b = props.customComponents) == null ? void 0 : _b.filter(({ models }) => {
|
|
9156
|
+
if (!(models == null ? void 0 : models.length))
|
|
9157
|
+
return true;
|
|
9158
|
+
if (!props.model)
|
|
9159
|
+
return true;
|
|
9160
|
+
return models.includes(props.model);
|
|
9161
|
+
})) || []
|
|
9123
9162
|
].reduce((acc, { component, ...info }) => ({
|
|
9124
9163
|
...acc,
|
|
9125
9164
|
[info.name]: {
|
|
@@ -9129,9 +9168,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9129
9168
|
}), {}),
|
|
9130
9169
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
9131
9170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9132
|
-
variationId: (
|
|
9171
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
9133
9172
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9134
|
-
contentId: (
|
|
9173
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
9135
9174
|
})
|
|
9136
9175
|
}, {
|
|
9137
9176
|
deep: true
|
|
@@ -9140,6 +9179,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9140
9179
|
registeredComponents: state.registeredComponents
|
|
9141
9180
|
}));
|
|
9142
9181
|
return /* @__PURE__ */ qwik._jsxC(EnableEditor, {
|
|
9182
|
+
get nonce() {
|
|
9183
|
+
return props.nonce;
|
|
9184
|
+
},
|
|
9143
9185
|
get content() {
|
|
9144
9186
|
return props.content;
|
|
9145
9187
|
},
|
|
@@ -9185,14 +9227,23 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9185
9227
|
get scriptStr() {
|
|
9186
9228
|
return state.scriptStr;
|
|
9187
9229
|
},
|
|
9230
|
+
get nonce() {
|
|
9231
|
+
return props.nonce || "";
|
|
9232
|
+
},
|
|
9188
9233
|
[qwik._IMMUTABLE]: {
|
|
9189
9234
|
id: qwik._IMMUTABLE,
|
|
9235
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
9236
|
+
props
|
|
9237
|
+
], 'p0.nonce||""'),
|
|
9190
9238
|
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
9191
9239
|
state
|
|
9192
9240
|
], "p0.scriptStr")
|
|
9193
9241
|
}
|
|
9194
9242
|
}, 3, "LQ_0") : null,
|
|
9195
9243
|
/* @__PURE__ */ qwik._jsxC(ContentStyles, {
|
|
9244
|
+
get nonce() {
|
|
9245
|
+
return props.nonce || "";
|
|
9246
|
+
},
|
|
9196
9247
|
get isNestedRender() {
|
|
9197
9248
|
return props.isNestedRender;
|
|
9198
9249
|
},
|
|
@@ -9229,7 +9280,10 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9229
9280
|
], "p0.builderContextSignal.content?.data?.customFonts"),
|
|
9230
9281
|
isNestedRender: qwik._fnSignal((p0) => p0.isNestedRender, [
|
|
9231
9282
|
props
|
|
9232
|
-
], "p0.isNestedRender")
|
|
9283
|
+
], "p0.isNestedRender"),
|
|
9284
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
9285
|
+
props
|
|
9286
|
+
], 'p0.nonce||""')
|
|
9233
9287
|
}
|
|
9234
9288
|
}, 3, "LQ_1"),
|
|
9235
9289
|
/* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
@@ -9299,6 +9353,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9299
9353
|
model: qwik._fnSignal((p0) => p0.model, [
|
|
9300
9354
|
props
|
|
9301
9355
|
], "p0.model"),
|
|
9356
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
9357
|
+
props
|
|
9358
|
+
], "p0.nonce"),
|
|
9302
9359
|
showContent: qwik._fnSignal((p0) => p0.showContent, [
|
|
9303
9360
|
props
|
|
9304
9361
|
], "p0.showContent"),
|
|
@@ -9346,7 +9403,7 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9346
9403
|
props,
|
|
9347
9404
|
state
|
|
9348
9405
|
]));
|
|
9349
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
9406
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
9350
9407
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
9351
9408
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
9352
9409
|
children: [
|
|
@@ -9355,8 +9412,14 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9355
9412
|
get scriptStr() {
|
|
9356
9413
|
return getInitVariantsFnsScriptString();
|
|
9357
9414
|
},
|
|
9415
|
+
get nonce() {
|
|
9416
|
+
return props.nonce || "";
|
|
9417
|
+
},
|
|
9358
9418
|
[qwik._IMMUTABLE]: {
|
|
9359
9419
|
id: qwik._IMMUTABLE,
|
|
9420
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
9421
|
+
props
|
|
9422
|
+
], 'p0.nonce||""'),
|
|
9360
9423
|
scriptStr: qwik._IMMUTABLE
|
|
9361
9424
|
}
|
|
9362
9425
|
}, 3, "XM_0") : null,
|
|
@@ -9367,8 +9430,14 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9367
9430
|
get styles() {
|
|
9368
9431
|
return hideVariantsStyleString.value;
|
|
9369
9432
|
},
|
|
9433
|
+
get nonce() {
|
|
9434
|
+
return props.nonce || "";
|
|
9435
|
+
},
|
|
9370
9436
|
[qwik._IMMUTABLE]: {
|
|
9371
9437
|
id: qwik._IMMUTABLE,
|
|
9438
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
9439
|
+
props
|
|
9440
|
+
], 'p0.nonce||""'),
|
|
9372
9441
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
9373
9442
|
hideVariantsStyleString
|
|
9374
9443
|
], "p0.value")
|
|
@@ -9379,8 +9448,14 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9379
9448
|
get scriptStr() {
|
|
9380
9449
|
return updateCookieAndStylesScriptStr.value;
|
|
9381
9450
|
},
|
|
9451
|
+
get nonce() {
|
|
9452
|
+
return props.nonce || "";
|
|
9453
|
+
},
|
|
9382
9454
|
[qwik._IMMUTABLE]: {
|
|
9383
9455
|
id: qwik._IMMUTABLE,
|
|
9456
|
+
nonce: qwik._fnSignal((p0) => p0.nonce || "", [
|
|
9457
|
+
props
|
|
9458
|
+
], 'p0.nonce||""'),
|
|
9384
9459
|
scriptStr: qwik._fnSignal((p0) => p0.value, [
|
|
9385
9460
|
updateCookieAndStylesScriptStr
|
|
9386
9461
|
], "p0.value")
|
|
@@ -9391,6 +9466,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9391
9466
|
get isNestedRender() {
|
|
9392
9467
|
return props.isNestedRender;
|
|
9393
9468
|
},
|
|
9469
|
+
get nonce() {
|
|
9470
|
+
return props.nonce;
|
|
9471
|
+
},
|
|
9394
9472
|
content: variant,
|
|
9395
9473
|
showContent: false,
|
|
9396
9474
|
get model() {
|
|
@@ -9490,6 +9568,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9490
9568
|
model: qwik._fnSignal((p0) => p0.model, [
|
|
9491
9569
|
props
|
|
9492
9570
|
], "p0.model"),
|
|
9571
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
9572
|
+
props
|
|
9573
|
+
], "p0.nonce"),
|
|
9493
9574
|
showContent: qwik._IMMUTABLE,
|
|
9494
9575
|
trustedHosts: qwik._fnSignal((p0) => p0.trustedHosts, [
|
|
9495
9576
|
props
|
|
@@ -9500,6 +9581,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9500
9581
|
]
|
|
9501
9582
|
}, 1, "XM_3") : null,
|
|
9502
9583
|
/* @__PURE__ */ qwik._jsxC(ContentComponent, {
|
|
9584
|
+
get nonce() {
|
|
9585
|
+
return props.nonce;
|
|
9586
|
+
},
|
|
9503
9587
|
get isNestedRender() {
|
|
9504
9588
|
return props.isNestedRender;
|
|
9505
9589
|
},
|
|
@@ -9607,6 +9691,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9607
9691
|
model: qwik._fnSignal((p0) => p0.model, [
|
|
9608
9692
|
props
|
|
9609
9693
|
], "p0.model"),
|
|
9694
|
+
nonce: qwik._fnSignal((p0) => p0.nonce, [
|
|
9695
|
+
props
|
|
9696
|
+
], "p0.nonce"),
|
|
9610
9697
|
showContent: qwik._IMMUTABLE,
|
|
9611
9698
|
trustedHosts: qwik._fnSignal((p0) => p0.trustedHosts, [
|
|
9612
9699
|
props
|
|
@@ -9682,6 +9769,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
9682
9769
|
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
9683
9770
|
...props.attributes,
|
|
9684
9771
|
children: /* @__PURE__ */ qwik._jsxC(ContentVariants, {
|
|
9772
|
+
get nonce() {
|
|
9773
|
+
return props.builderContext.nonce;
|
|
9774
|
+
},
|
|
9685
9775
|
isNestedRender: true,
|
|
9686
9776
|
get apiVersion() {
|
|
9687
9777
|
return props.builderContext.apiVersion;
|
|
@@ -9777,7 +9867,10 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
9777
9867
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|
|
9778
9868
|
}, [
|
|
9779
9869
|
props
|
|
9780
|
-
], "p0.symbol?.model")
|
|
9870
|
+
], "p0.symbol?.model"),
|
|
9871
|
+
nonce: qwik._fnSignal((p0) => p0.builderContext.nonce, [
|
|
9872
|
+
props
|
|
9873
|
+
], "p0.builderContext.nonce")
|
|
9781
9874
|
}
|
|
9782
9875
|
}, 3, "Wt_0")
|
|
9783
9876
|
}, {
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -3930,7 +3930,10 @@ const InlinedStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
3930
3930
|
], "p0.styles"),
|
|
3931
3931
|
"data-id": _fnSignal((p0) => p0.id, [
|
|
3932
3932
|
props
|
|
3933
|
-
], "p0.id")
|
|
3933
|
+
], "p0.id"),
|
|
3934
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
3935
|
+
props
|
|
3936
|
+
], "p0.nonce")
|
|
3934
3937
|
}, null, 3, "NG_0");
|
|
3935
3938
|
}, "InlinedStyles_component_IOsg46hMexk"));
|
|
3936
3939
|
const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -4015,8 +4018,14 @@ const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
4015
4018
|
get styles() {
|
|
4016
4019
|
return css.value;
|
|
4017
4020
|
},
|
|
4021
|
+
get nonce() {
|
|
4022
|
+
return props.context.nonce;
|
|
4023
|
+
},
|
|
4018
4024
|
[_IMMUTABLE]: {
|
|
4019
4025
|
id: _IMMUTABLE,
|
|
4026
|
+
nonce: _fnSignal((p0) => p0.context.nonce, [
|
|
4027
|
+
props
|
|
4028
|
+
], "p0.context.nonce"),
|
|
4020
4029
|
styles: _fnSignal((p0) => p0.value, [
|
|
4021
4030
|
css
|
|
4022
4031
|
], "p0.value")
|
|
@@ -4877,8 +4886,14 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4877
4886
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
4878
4887
|
id: "builderio-columns",
|
|
4879
4888
|
styles: columnsStyles(props, state),
|
|
4889
|
+
get nonce() {
|
|
4890
|
+
return props.builderContext.nonce;
|
|
4891
|
+
},
|
|
4880
4892
|
[_IMMUTABLE]: {
|
|
4881
|
-
id: _IMMUTABLE
|
|
4893
|
+
id: _IMMUTABLE,
|
|
4894
|
+
nonce: _fnSignal((p0) => p0.builderContext.nonce, [
|
|
4895
|
+
props
|
|
4896
|
+
], "p0.builderContext.nonce")
|
|
4882
4897
|
}
|
|
4883
4898
|
}, 3, "c0_0"),
|
|
4884
4899
|
(props.columns || []).map((column, index) => {
|
|
@@ -5005,6 +5020,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
5005
5020
|
// images, otherwise you can supply this prop manually
|
|
5006
5021
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
5007
5022
|
return props2.srcset;
|
|
5023
|
+
if (props2.noWebp)
|
|
5024
|
+
return void 0;
|
|
5008
5025
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
5009
5026
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
5010
5027
|
console.debug("Removed given srcset");
|
|
@@ -8005,7 +8022,10 @@ const InlinedScript = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
8005
8022
|
], "p0.scriptStr"),
|
|
8006
8023
|
"data-id": _fnSignal((p0) => p0.id, [
|
|
8007
8024
|
props
|
|
8008
|
-
], "p0.id")
|
|
8025
|
+
], "p0.id"),
|
|
8026
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
8027
|
+
props
|
|
8028
|
+
], 'p0.nonce||""')
|
|
8009
8029
|
}, null, 3, "WO_0");
|
|
8010
8030
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
8011
8031
|
function getGlobalThis() {
|
|
@@ -8405,7 +8425,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8405
8425
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8406
8426
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8407
8427
|
}
|
|
8408
|
-
const SDK_VERSION = "0.16.
|
|
8428
|
+
const SDK_VERSION = "0.16.2";
|
|
8409
8429
|
const registry = {};
|
|
8410
8430
|
function register(type, info) {
|
|
8411
8431
|
let typeList = registry[type];
|
|
@@ -9049,8 +9069,14 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
9049
9069
|
get styles() {
|
|
9050
9070
|
return state.injectedStyles;
|
|
9051
9071
|
},
|
|
9072
|
+
get nonce() {
|
|
9073
|
+
return props.nonce;
|
|
9074
|
+
},
|
|
9052
9075
|
[_IMMUTABLE]: {
|
|
9053
9076
|
id: _IMMUTABLE,
|
|
9077
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
9078
|
+
props
|
|
9079
|
+
], "p0.nonce"),
|
|
9054
9080
|
styles: _fnSignal((p0) => p0.injectedStyles, [
|
|
9055
9081
|
state
|
|
9056
9082
|
], "p0.injectedStyles")
|
|
@@ -9085,7 +9111,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
9085
9111
|
};
|
|
9086
9112
|
};
|
|
9087
9113
|
const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
9088
|
-
var _a, _b;
|
|
9114
|
+
var _a, _b, _c, _d;
|
|
9089
9115
|
_jsxBranch();
|
|
9090
9116
|
const state = useStore({
|
|
9091
9117
|
builderContextSignal: {
|
|
@@ -9106,18 +9132,31 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9106
9132
|
apiVersion: props.apiVersion,
|
|
9107
9133
|
componentInfos: [
|
|
9108
9134
|
...getDefaultRegisteredComponents(),
|
|
9109
|
-
...props.customComponents
|
|
9135
|
+
...((_a = props.customComponents) == null ? void 0 : _a.filter(({ models }) => {
|
|
9136
|
+
if (!(models == null ? void 0 : models.length))
|
|
9137
|
+
return true;
|
|
9138
|
+
if (!props.model)
|
|
9139
|
+
return true;
|
|
9140
|
+
return models.includes(props.model);
|
|
9141
|
+
})) || []
|
|
9110
9142
|
].reduce((acc, { component: _, ...info }) => ({
|
|
9111
9143
|
...acc,
|
|
9112
9144
|
[info.name]: serializeComponentInfo(info)
|
|
9113
9145
|
}), {}),
|
|
9114
9146
|
inheritedStyles: {},
|
|
9115
9147
|
BlocksWrapper: props.blocksWrapper || "div",
|
|
9116
|
-
BlocksWrapperProps: props.blocksWrapperProps || {}
|
|
9148
|
+
BlocksWrapperProps: props.blocksWrapperProps || {},
|
|
9149
|
+
nonce: props.nonce || ""
|
|
9117
9150
|
},
|
|
9118
9151
|
registeredComponents: [
|
|
9119
9152
|
...getDefaultRegisteredComponents(),
|
|
9120
|
-
...props.customComponents
|
|
9153
|
+
...((_b = props.customComponents) == null ? void 0 : _b.filter(({ models }) => {
|
|
9154
|
+
if (!(models == null ? void 0 : models.length))
|
|
9155
|
+
return true;
|
|
9156
|
+
if (!props.model)
|
|
9157
|
+
return true;
|
|
9158
|
+
return models.includes(props.model);
|
|
9159
|
+
})) || []
|
|
9121
9160
|
].reduce((acc, { component, ...info }) => ({
|
|
9122
9161
|
...acc,
|
|
9123
9162
|
[info.name]: {
|
|
@@ -9127,9 +9166,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9127
9166
|
}), {}),
|
|
9128
9167
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
9129
9168
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9130
|
-
variationId: (
|
|
9169
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
9131
9170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9132
|
-
contentId: (
|
|
9171
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
9133
9172
|
})
|
|
9134
9173
|
}, {
|
|
9135
9174
|
deep: true
|
|
@@ -9138,6 +9177,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9138
9177
|
registeredComponents: state.registeredComponents
|
|
9139
9178
|
}));
|
|
9140
9179
|
return /* @__PURE__ */ _jsxC(EnableEditor, {
|
|
9180
|
+
get nonce() {
|
|
9181
|
+
return props.nonce;
|
|
9182
|
+
},
|
|
9141
9183
|
get content() {
|
|
9142
9184
|
return props.content;
|
|
9143
9185
|
},
|
|
@@ -9183,14 +9225,23 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9183
9225
|
get scriptStr() {
|
|
9184
9226
|
return state.scriptStr;
|
|
9185
9227
|
},
|
|
9228
|
+
get nonce() {
|
|
9229
|
+
return props.nonce || "";
|
|
9230
|
+
},
|
|
9186
9231
|
[_IMMUTABLE]: {
|
|
9187
9232
|
id: _IMMUTABLE,
|
|
9233
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
9234
|
+
props
|
|
9235
|
+
], 'p0.nonce||""'),
|
|
9188
9236
|
scriptStr: _fnSignal((p0) => p0.scriptStr, [
|
|
9189
9237
|
state
|
|
9190
9238
|
], "p0.scriptStr")
|
|
9191
9239
|
}
|
|
9192
9240
|
}, 3, "LQ_0") : null,
|
|
9193
9241
|
/* @__PURE__ */ _jsxC(ContentStyles, {
|
|
9242
|
+
get nonce() {
|
|
9243
|
+
return props.nonce || "";
|
|
9244
|
+
},
|
|
9194
9245
|
get isNestedRender() {
|
|
9195
9246
|
return props.isNestedRender;
|
|
9196
9247
|
},
|
|
@@ -9227,7 +9278,10 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9227
9278
|
], "p0.builderContextSignal.content?.data?.customFonts"),
|
|
9228
9279
|
isNestedRender: _fnSignal((p0) => p0.isNestedRender, [
|
|
9229
9280
|
props
|
|
9230
|
-
], "p0.isNestedRender")
|
|
9281
|
+
], "p0.isNestedRender"),
|
|
9282
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
9283
|
+
props
|
|
9284
|
+
], 'p0.nonce||""')
|
|
9231
9285
|
}
|
|
9232
9286
|
}, 3, "LQ_1"),
|
|
9233
9287
|
/* @__PURE__ */ _jsxC(Blocks, {
|
|
@@ -9297,6 +9351,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9297
9351
|
model: _fnSignal((p0) => p0.model, [
|
|
9298
9352
|
props
|
|
9299
9353
|
], "p0.model"),
|
|
9354
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
9355
|
+
props
|
|
9356
|
+
], "p0.nonce"),
|
|
9300
9357
|
showContent: _fnSignal((p0) => p0.showContent, [
|
|
9301
9358
|
props
|
|
9302
9359
|
], "p0.showContent"),
|
|
@@ -9344,7 +9401,7 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9344
9401
|
props,
|
|
9345
9402
|
state
|
|
9346
9403
|
]));
|
|
9347
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl((
|
|
9404
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
9348
9405
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
9349
9406
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
9350
9407
|
children: [
|
|
@@ -9353,8 +9410,14 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9353
9410
|
get scriptStr() {
|
|
9354
9411
|
return getInitVariantsFnsScriptString();
|
|
9355
9412
|
},
|
|
9413
|
+
get nonce() {
|
|
9414
|
+
return props.nonce || "";
|
|
9415
|
+
},
|
|
9356
9416
|
[_IMMUTABLE]: {
|
|
9357
9417
|
id: _IMMUTABLE,
|
|
9418
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
9419
|
+
props
|
|
9420
|
+
], 'p0.nonce||""'),
|
|
9358
9421
|
scriptStr: _IMMUTABLE
|
|
9359
9422
|
}
|
|
9360
9423
|
}, 3, "XM_0") : null,
|
|
@@ -9365,8 +9428,14 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9365
9428
|
get styles() {
|
|
9366
9429
|
return hideVariantsStyleString.value;
|
|
9367
9430
|
},
|
|
9431
|
+
get nonce() {
|
|
9432
|
+
return props.nonce || "";
|
|
9433
|
+
},
|
|
9368
9434
|
[_IMMUTABLE]: {
|
|
9369
9435
|
id: _IMMUTABLE,
|
|
9436
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
9437
|
+
props
|
|
9438
|
+
], 'p0.nonce||""'),
|
|
9370
9439
|
styles: _fnSignal((p0) => p0.value, [
|
|
9371
9440
|
hideVariantsStyleString
|
|
9372
9441
|
], "p0.value")
|
|
@@ -9377,8 +9446,14 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9377
9446
|
get scriptStr() {
|
|
9378
9447
|
return updateCookieAndStylesScriptStr.value;
|
|
9379
9448
|
},
|
|
9449
|
+
get nonce() {
|
|
9450
|
+
return props.nonce || "";
|
|
9451
|
+
},
|
|
9380
9452
|
[_IMMUTABLE]: {
|
|
9381
9453
|
id: _IMMUTABLE,
|
|
9454
|
+
nonce: _fnSignal((p0) => p0.nonce || "", [
|
|
9455
|
+
props
|
|
9456
|
+
], 'p0.nonce||""'),
|
|
9382
9457
|
scriptStr: _fnSignal((p0) => p0.value, [
|
|
9383
9458
|
updateCookieAndStylesScriptStr
|
|
9384
9459
|
], "p0.value")
|
|
@@ -9389,6 +9464,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9389
9464
|
get isNestedRender() {
|
|
9390
9465
|
return props.isNestedRender;
|
|
9391
9466
|
},
|
|
9467
|
+
get nonce() {
|
|
9468
|
+
return props.nonce;
|
|
9469
|
+
},
|
|
9392
9470
|
content: variant,
|
|
9393
9471
|
showContent: false,
|
|
9394
9472
|
get model() {
|
|
@@ -9488,6 +9566,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9488
9566
|
model: _fnSignal((p0) => p0.model, [
|
|
9489
9567
|
props
|
|
9490
9568
|
], "p0.model"),
|
|
9569
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
9570
|
+
props
|
|
9571
|
+
], "p0.nonce"),
|
|
9491
9572
|
showContent: _IMMUTABLE,
|
|
9492
9573
|
trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
|
|
9493
9574
|
props
|
|
@@ -9498,6 +9579,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9498
9579
|
]
|
|
9499
9580
|
}, 1, "XM_3") : null,
|
|
9500
9581
|
/* @__PURE__ */ _jsxC(ContentComponent, {
|
|
9582
|
+
get nonce() {
|
|
9583
|
+
return props.nonce;
|
|
9584
|
+
},
|
|
9501
9585
|
get isNestedRender() {
|
|
9502
9586
|
return props.isNestedRender;
|
|
9503
9587
|
},
|
|
@@ -9605,6 +9689,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9605
9689
|
model: _fnSignal((p0) => p0.model, [
|
|
9606
9690
|
props
|
|
9607
9691
|
], "p0.model"),
|
|
9692
|
+
nonce: _fnSignal((p0) => p0.nonce, [
|
|
9693
|
+
props
|
|
9694
|
+
], "p0.nonce"),
|
|
9608
9695
|
showContent: _IMMUTABLE,
|
|
9609
9696
|
trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
|
|
9610
9697
|
props
|
|
@@ -9680,6 +9767,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
9680
9767
|
return /* @__PURE__ */ _jsxS("div", {
|
|
9681
9768
|
...props.attributes,
|
|
9682
9769
|
children: /* @__PURE__ */ _jsxC(ContentVariants, {
|
|
9770
|
+
get nonce() {
|
|
9771
|
+
return props.builderContext.nonce;
|
|
9772
|
+
},
|
|
9683
9773
|
isNestedRender: true,
|
|
9684
9774
|
get apiVersion() {
|
|
9685
9775
|
return props.builderContext.apiVersion;
|
|
@@ -9775,7 +9865,10 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
9775
9865
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|
|
9776
9866
|
}, [
|
|
9777
9867
|
props
|
|
9778
|
-
], "p0.symbol?.model")
|
|
9868
|
+
], "p0.symbol?.model"),
|
|
9869
|
+
nonce: _fnSignal((p0) => p0.builderContext.nonce, [
|
|
9870
|
+
props
|
|
9871
|
+
], "p0.builderContext.nonce")
|
|
9779
9872
|
}
|
|
9780
9873
|
}, 3, "Wt_0")
|
|
9781
9874
|
}, {
|