@builder.io/sdk-qwik 0.16.1 → 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 +21 -7
- package/lib/browser/index.qwik.mjs +21 -7
- package/lib/edge/index.qwik.cjs +21 -7
- package/lib/edge/index.qwik.mjs +21 -7
- package/lib/node/index.qwik.cjs +21 -7
- package/lib/node/index.qwik.mjs +21 -7
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -1798,6 +1798,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1798
1798
|
// images, otherwise you can supply this prop manually
|
|
1799
1799
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
1800
1800
|
return props2.srcset;
|
|
1801
|
+
if (props2.noWebp)
|
|
1802
|
+
return void 0;
|
|
1801
1803
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
1802
1804
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
1803
1805
|
console.debug("Removed given srcset");
|
|
@@ -5201,7 +5203,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5201
5203
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5202
5204
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5203
5205
|
}
|
|
5204
|
-
const SDK_VERSION = "0.16.
|
|
5206
|
+
const SDK_VERSION = "0.16.2";
|
|
5205
5207
|
const registry = {};
|
|
5206
5208
|
function register(type, info) {
|
|
5207
5209
|
let typeList = registry[type];
|
|
@@ -5887,7 +5889,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
5887
5889
|
};
|
|
5888
5890
|
};
|
|
5889
5891
|
const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
5890
|
-
var _a, _b;
|
|
5892
|
+
var _a, _b, _c, _d;
|
|
5891
5893
|
qwik._jsxBranch();
|
|
5892
5894
|
const state = qwik.useStore({
|
|
5893
5895
|
builderContextSignal: {
|
|
@@ -5908,7 +5910,13 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5908
5910
|
apiVersion: props.apiVersion,
|
|
5909
5911
|
componentInfos: [
|
|
5910
5912
|
...getDefaultRegisteredComponents(),
|
|
5911
|
-
...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
|
+
})) || []
|
|
5912
5920
|
].reduce((acc, { component: _, ...info }) => ({
|
|
5913
5921
|
...acc,
|
|
5914
5922
|
[info.name]: serializeComponentInfo(info)
|
|
@@ -5920,7 +5928,13 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5920
5928
|
},
|
|
5921
5929
|
registeredComponents: [
|
|
5922
5930
|
...getDefaultRegisteredComponents(),
|
|
5923
|
-
...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
|
+
})) || []
|
|
5924
5938
|
].reduce((acc, { component, ...info }) => ({
|
|
5925
5939
|
...acc,
|
|
5926
5940
|
[info.name]: {
|
|
@@ -5930,9 +5944,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5930
5944
|
}), {}),
|
|
5931
5945
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
5932
5946
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5933
|
-
variationId: (
|
|
5947
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
5934
5948
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5935
|
-
contentId: (
|
|
5949
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
5936
5950
|
})
|
|
5937
5951
|
}, {
|
|
5938
5952
|
deep: true
|
|
@@ -6165,7 +6179,7 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6165
6179
|
props,
|
|
6166
6180
|
state
|
|
6167
6181
|
]));
|
|
6168
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
6182
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6169
6183
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
6170
6184
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
6171
6185
|
children: [
|
|
@@ -1796,6 +1796,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1796
1796
|
// images, otherwise you can supply this prop manually
|
|
1797
1797
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
1798
1798
|
return props2.srcset;
|
|
1799
|
+
if (props2.noWebp)
|
|
1800
|
+
return void 0;
|
|
1799
1801
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
1800
1802
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
1801
1803
|
console.debug("Removed given srcset");
|
|
@@ -5199,7 +5201,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5199
5201
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5200
5202
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5201
5203
|
}
|
|
5202
|
-
const SDK_VERSION = "0.16.
|
|
5204
|
+
const SDK_VERSION = "0.16.2";
|
|
5203
5205
|
const registry = {};
|
|
5204
5206
|
function register(type, info) {
|
|
5205
5207
|
let typeList = registry[type];
|
|
@@ -5885,7 +5887,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
5885
5887
|
};
|
|
5886
5888
|
};
|
|
5887
5889
|
const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5888
|
-
var _a, _b;
|
|
5890
|
+
var _a, _b, _c, _d;
|
|
5889
5891
|
_jsxBranch();
|
|
5890
5892
|
const state = useStore({
|
|
5891
5893
|
builderContextSignal: {
|
|
@@ -5906,7 +5908,13 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5906
5908
|
apiVersion: props.apiVersion,
|
|
5907
5909
|
componentInfos: [
|
|
5908
5910
|
...getDefaultRegisteredComponents(),
|
|
5909
|
-
...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
|
+
})) || []
|
|
5910
5918
|
].reduce((acc, { component: _, ...info }) => ({
|
|
5911
5919
|
...acc,
|
|
5912
5920
|
[info.name]: serializeComponentInfo(info)
|
|
@@ -5918,7 +5926,13 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5918
5926
|
},
|
|
5919
5927
|
registeredComponents: [
|
|
5920
5928
|
...getDefaultRegisteredComponents(),
|
|
5921
|
-
...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
|
+
})) || []
|
|
5922
5936
|
].reduce((acc, { component, ...info }) => ({
|
|
5923
5937
|
...acc,
|
|
5924
5938
|
[info.name]: {
|
|
@@ -5928,9 +5942,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5928
5942
|
}), {}),
|
|
5929
5943
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
5930
5944
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5931
|
-
variationId: (
|
|
5945
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
5932
5946
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5933
|
-
contentId: (
|
|
5947
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
5934
5948
|
})
|
|
5935
5949
|
}, {
|
|
5936
5950
|
deep: true
|
|
@@ -6163,7 +6177,7 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6163
6177
|
props,
|
|
6164
6178
|
state
|
|
6165
6179
|
]));
|
|
6166
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl((
|
|
6180
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6167
6181
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
6168
6182
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
6169
6183
|
children: [
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -5022,6 +5022,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
5022
5022
|
// images, otherwise you can supply this prop manually
|
|
5023
5023
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
5024
5024
|
return props2.srcset;
|
|
5025
|
+
if (props2.noWebp)
|
|
5026
|
+
return void 0;
|
|
5025
5027
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
5026
5028
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
5027
5029
|
console.debug("Removed given srcset");
|
|
@@ -8425,7 +8427,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8425
8427
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8426
8428
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8427
8429
|
}
|
|
8428
|
-
const SDK_VERSION = "0.16.
|
|
8430
|
+
const SDK_VERSION = "0.16.2";
|
|
8429
8431
|
const registry = {};
|
|
8430
8432
|
function register(type, info) {
|
|
8431
8433
|
let typeList = registry[type];
|
|
@@ -9111,7 +9113,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
9111
9113
|
};
|
|
9112
9114
|
};
|
|
9113
9115
|
const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
9114
|
-
var _a, _b;
|
|
9116
|
+
var _a, _b, _c, _d;
|
|
9115
9117
|
qwik._jsxBranch();
|
|
9116
9118
|
const state = qwik.useStore({
|
|
9117
9119
|
builderContextSignal: {
|
|
@@ -9132,7 +9134,13 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9132
9134
|
apiVersion: props.apiVersion,
|
|
9133
9135
|
componentInfos: [
|
|
9134
9136
|
...getDefaultRegisteredComponents(),
|
|
9135
|
-
...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
|
+
})) || []
|
|
9136
9144
|
].reduce((acc, { component: _, ...info }) => ({
|
|
9137
9145
|
...acc,
|
|
9138
9146
|
[info.name]: serializeComponentInfo(info)
|
|
@@ -9144,7 +9152,13 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9144
9152
|
},
|
|
9145
9153
|
registeredComponents: [
|
|
9146
9154
|
...getDefaultRegisteredComponents(),
|
|
9147
|
-
...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
|
+
})) || []
|
|
9148
9162
|
].reduce((acc, { component, ...info }) => ({
|
|
9149
9163
|
...acc,
|
|
9150
9164
|
[info.name]: {
|
|
@@ -9154,9 +9168,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9154
9168
|
}), {}),
|
|
9155
9169
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
9156
9170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9157
|
-
variationId: (
|
|
9171
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
9158
9172
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9159
|
-
contentId: (
|
|
9173
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
9160
9174
|
})
|
|
9161
9175
|
}, {
|
|
9162
9176
|
deep: true
|
|
@@ -9389,7 +9403,7 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
9389
9403
|
props,
|
|
9390
9404
|
state
|
|
9391
9405
|
]));
|
|
9392
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
9406
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
9393
9407
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
9394
9408
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
9395
9409
|
children: [
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -5020,6 +5020,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
5020
5020
|
// images, otherwise you can supply this prop manually
|
|
5021
5021
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
5022
5022
|
return props2.srcset;
|
|
5023
|
+
if (props2.noWebp)
|
|
5024
|
+
return void 0;
|
|
5023
5025
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
5024
5026
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
5025
5027
|
console.debug("Removed given srcset");
|
|
@@ -8423,7 +8425,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8423
8425
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8424
8426
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8425
8427
|
}
|
|
8426
|
-
const SDK_VERSION = "0.16.
|
|
8428
|
+
const SDK_VERSION = "0.16.2";
|
|
8427
8429
|
const registry = {};
|
|
8428
8430
|
function register(type, info) {
|
|
8429
8431
|
let typeList = registry[type];
|
|
@@ -9109,7 +9111,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
9109
9111
|
};
|
|
9110
9112
|
};
|
|
9111
9113
|
const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
9112
|
-
var _a, _b;
|
|
9114
|
+
var _a, _b, _c, _d;
|
|
9113
9115
|
_jsxBranch();
|
|
9114
9116
|
const state = useStore({
|
|
9115
9117
|
builderContextSignal: {
|
|
@@ -9130,7 +9132,13 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9130
9132
|
apiVersion: props.apiVersion,
|
|
9131
9133
|
componentInfos: [
|
|
9132
9134
|
...getDefaultRegisteredComponents(),
|
|
9133
|
-
...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
|
+
})) || []
|
|
9134
9142
|
].reduce((acc, { component: _, ...info }) => ({
|
|
9135
9143
|
...acc,
|
|
9136
9144
|
[info.name]: serializeComponentInfo(info)
|
|
@@ -9142,7 +9150,13 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9142
9150
|
},
|
|
9143
9151
|
registeredComponents: [
|
|
9144
9152
|
...getDefaultRegisteredComponents(),
|
|
9145
|
-
...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
|
+
})) || []
|
|
9146
9160
|
].reduce((acc, { component, ...info }) => ({
|
|
9147
9161
|
...acc,
|
|
9148
9162
|
[info.name]: {
|
|
@@ -9152,9 +9166,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
9152
9166
|
}), {}),
|
|
9153
9167
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
9154
9168
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9155
|
-
variationId: (
|
|
9169
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
9156
9170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
9157
|
-
contentId: (
|
|
9171
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
9158
9172
|
})
|
|
9159
9173
|
}, {
|
|
9160
9174
|
deep: true
|
|
@@ -9387,7 +9401,7 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
9387
9401
|
props,
|
|
9388
9402
|
state
|
|
9389
9403
|
]));
|
|
9390
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl((
|
|
9404
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
9391
9405
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
9392
9406
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
9393
9407
|
children: [
|
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -1943,6 +1943,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1943
1943
|
// images, otherwise you can supply this prop manually
|
|
1944
1944
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
1945
1945
|
return props2.srcset;
|
|
1946
|
+
if (props2.noWebp)
|
|
1947
|
+
return void 0;
|
|
1946
1948
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
1947
1949
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
1948
1950
|
console.debug("Removed given srcset");
|
|
@@ -5346,7 +5348,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5346
5348
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5347
5349
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5348
5350
|
}
|
|
5349
|
-
const SDK_VERSION = "0.16.
|
|
5351
|
+
const SDK_VERSION = "0.16.2";
|
|
5350
5352
|
const registry = {};
|
|
5351
5353
|
function register(type, info) {
|
|
5352
5354
|
let typeList = registry[type];
|
|
@@ -6032,7 +6034,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
6032
6034
|
};
|
|
6033
6035
|
};
|
|
6034
6036
|
const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
6035
|
-
var _a, _b;
|
|
6037
|
+
var _a, _b, _c, _d;
|
|
6036
6038
|
qwik._jsxBranch();
|
|
6037
6039
|
const state = qwik.useStore({
|
|
6038
6040
|
builderContextSignal: {
|
|
@@ -6053,7 +6055,13 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
6053
6055
|
apiVersion: props.apiVersion,
|
|
6054
6056
|
componentInfos: [
|
|
6055
6057
|
...getDefaultRegisteredComponents(),
|
|
6056
|
-
...props.customComponents
|
|
6058
|
+
...((_a = props.customComponents) == null ? void 0 : _a.filter(({ models }) => {
|
|
6059
|
+
if (!(models == null ? void 0 : models.length))
|
|
6060
|
+
return true;
|
|
6061
|
+
if (!props.model)
|
|
6062
|
+
return true;
|
|
6063
|
+
return models.includes(props.model);
|
|
6064
|
+
})) || []
|
|
6057
6065
|
].reduce((acc, { component: _, ...info }) => ({
|
|
6058
6066
|
...acc,
|
|
6059
6067
|
[info.name]: serializeComponentInfo(info)
|
|
@@ -6065,7 +6073,13 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
6065
6073
|
},
|
|
6066
6074
|
registeredComponents: [
|
|
6067
6075
|
...getDefaultRegisteredComponents(),
|
|
6068
|
-
...props.customComponents
|
|
6076
|
+
...((_b = props.customComponents) == null ? void 0 : _b.filter(({ models }) => {
|
|
6077
|
+
if (!(models == null ? void 0 : models.length))
|
|
6078
|
+
return true;
|
|
6079
|
+
if (!props.model)
|
|
6080
|
+
return true;
|
|
6081
|
+
return models.includes(props.model);
|
|
6082
|
+
})) || []
|
|
6069
6083
|
].reduce((acc, { component, ...info }) => ({
|
|
6070
6084
|
...acc,
|
|
6071
6085
|
[info.name]: {
|
|
@@ -6075,9 +6089,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
6075
6089
|
}), {}),
|
|
6076
6090
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
6077
6091
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6078
|
-
variationId: (
|
|
6092
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
6079
6093
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6080
|
-
contentId: (
|
|
6094
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
6081
6095
|
})
|
|
6082
6096
|
}, {
|
|
6083
6097
|
deep: true
|
|
@@ -6310,7 +6324,7 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
6310
6324
|
props,
|
|
6311
6325
|
state
|
|
6312
6326
|
]));
|
|
6313
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
6327
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6314
6328
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
6315
6329
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
6316
6330
|
children: [
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -1941,6 +1941,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1941
1941
|
// images, otherwise you can supply this prop manually
|
|
1942
1942
|
!(url.match(/builder\.io/) || url.match(/cdn\.shopify\.com/)))
|
|
1943
1943
|
return props2.srcset;
|
|
1944
|
+
if (props2.noWebp)
|
|
1945
|
+
return void 0;
|
|
1944
1946
|
if (props2.srcset && ((_a2 = props2.image) == null ? void 0 : _a2.includes("builder.io/api/v1/image"))) {
|
|
1945
1947
|
if (!props2.srcset.includes(props2.image.split("?")[0])) {
|
|
1946
1948
|
console.debug("Removed given srcset");
|
|
@@ -5344,7 +5346,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5344
5346
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5345
5347
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5346
5348
|
}
|
|
5347
|
-
const SDK_VERSION = "0.16.
|
|
5349
|
+
const SDK_VERSION = "0.16.2";
|
|
5348
5350
|
const registry = {};
|
|
5349
5351
|
function register(type, info) {
|
|
5350
5352
|
let typeList = registry[type];
|
|
@@ -6030,7 +6032,7 @@ const getContentInitialValue = ({ content, data }) => {
|
|
|
6030
6032
|
};
|
|
6031
6033
|
};
|
|
6032
6034
|
const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
6033
|
-
var _a, _b;
|
|
6035
|
+
var _a, _b, _c, _d;
|
|
6034
6036
|
_jsxBranch();
|
|
6035
6037
|
const state = useStore({
|
|
6036
6038
|
builderContextSignal: {
|
|
@@ -6051,7 +6053,13 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
6051
6053
|
apiVersion: props.apiVersion,
|
|
6052
6054
|
componentInfos: [
|
|
6053
6055
|
...getDefaultRegisteredComponents(),
|
|
6054
|
-
...props.customComponents
|
|
6056
|
+
...((_a = props.customComponents) == null ? void 0 : _a.filter(({ models }) => {
|
|
6057
|
+
if (!(models == null ? void 0 : models.length))
|
|
6058
|
+
return true;
|
|
6059
|
+
if (!props.model)
|
|
6060
|
+
return true;
|
|
6061
|
+
return models.includes(props.model);
|
|
6062
|
+
})) || []
|
|
6055
6063
|
].reduce((acc, { component: _, ...info }) => ({
|
|
6056
6064
|
...acc,
|
|
6057
6065
|
[info.name]: serializeComponentInfo(info)
|
|
@@ -6063,7 +6071,13 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
6063
6071
|
},
|
|
6064
6072
|
registeredComponents: [
|
|
6065
6073
|
...getDefaultRegisteredComponents(),
|
|
6066
|
-
...props.customComponents
|
|
6074
|
+
...((_b = props.customComponents) == null ? void 0 : _b.filter(({ models }) => {
|
|
6075
|
+
if (!(models == null ? void 0 : models.length))
|
|
6076
|
+
return true;
|
|
6077
|
+
if (!props.model)
|
|
6078
|
+
return true;
|
|
6079
|
+
return models.includes(props.model);
|
|
6080
|
+
})) || []
|
|
6067
6081
|
].reduce((acc, { component, ...info }) => ({
|
|
6068
6082
|
...acc,
|
|
6069
6083
|
[info.name]: {
|
|
@@ -6073,9 +6087,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
6073
6087
|
}), {}),
|
|
6074
6088
|
scriptStr: getUpdateVariantVisibilityScript({
|
|
6075
6089
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6076
|
-
variationId: (
|
|
6090
|
+
variationId: (_c = props.content) == null ? void 0 : _c.testVariationId,
|
|
6077
6091
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6078
|
-
contentId: (
|
|
6092
|
+
contentId: (_d = props.content) == null ? void 0 : _d.id
|
|
6079
6093
|
})
|
|
6080
6094
|
}, {
|
|
6081
6095
|
deep: true
|
|
@@ -6308,7 +6322,7 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
6308
6322
|
props,
|
|
6309
6323
|
state
|
|
6310
6324
|
]));
|
|
6311
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl((
|
|
6325
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6312
6326
|
}, "ContentVariants_component_useTask_lSvynevU008"));
|
|
6313
6327
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
6314
6328
|
children: [
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.16.
|
|
1
|
+
export declare const SDK_VERSION = "0.16.2";
|