@builder.io/sdk-qwik 0.14.25 → 0.14.27
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 +61 -33
- package/lib/browser/index.qwik.mjs +61 -33
- package/lib/edge/index.qwik.cjs +65 -44
- package/lib/edge/index.qwik.mjs +65 -44
- package/lib/node/index.qwik.cjs +61 -33
- package/lib/node/index.qwik.mjs +61 -33
- package/package.json +2 -2
- package/types/src/blocks/image/image.types.d.ts +1 -0
- package/types/src/components/block/block.helpers.d.ts +20 -2
- package/types/src/components/block/components/block-wrapper.d.ts +0 -1
- package/types/src/components/block/components/component-ref/component-ref.helpers.d.ts +1 -1
- package/types/src/components/content/components/enable-editor.d.ts +1 -1
- package/types/src/components/content/components/styles.helpers.d.ts +3 -3
- package/types/src/components/content/content.helpers.d.ts +2 -2
- package/types/src/components/content-variants/helpers.d.ts +13 -13
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/constants/target.d.ts +3 -1
- package/types/src/context/types.d.ts +1 -0
- package/types/src/functions/apply-patch-with-mutation.d.ts +1 -1
- package/types/src/functions/evaluate/helpers.d.ts +2 -2
- package/types/src/functions/get-global-this.d.ts +0 -1
- package/types/src/helpers/cookie.d.ts +1 -1
- package/types/src/helpers/css.d.ts +1 -1
|
@@ -92,11 +92,7 @@ function getBlockComponentOptions(block) {
|
|
|
92
92
|
var _a;
|
|
93
93
|
return {
|
|
94
94
|
...(_a = block.component) == null ? void 0 : _a.options,
|
|
95
|
-
...block.options
|
|
96
|
-
/**
|
|
97
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
98
|
-
*/
|
|
99
|
-
builderBlock: block
|
|
95
|
+
...block.options
|
|
100
96
|
};
|
|
101
97
|
}
|
|
102
98
|
const MSG_PREFIX = "[Builder.io]: ";
|
|
@@ -630,24 +626,53 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
630
626
|
}));
|
|
631
627
|
return repeatArray;
|
|
632
628
|
};
|
|
633
|
-
const
|
|
634
|
-
return block && (block.isRSC || [
|
|
629
|
+
const provideLinkComponent = (block, linkComponent) => {
|
|
630
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
635
631
|
"Core:Button",
|
|
636
632
|
"Symbol",
|
|
637
633
|
"Columns",
|
|
638
634
|
"Form:Form",
|
|
639
635
|
"Builder: Tabs",
|
|
640
636
|
"Builder:Accordion"
|
|
641
|
-
].includes(block.name))
|
|
637
|
+
].includes(block.name)) ? {
|
|
638
|
+
builderLinkComponent: linkComponent
|
|
639
|
+
} : {};
|
|
642
640
|
};
|
|
643
|
-
const
|
|
644
|
-
return block && (block.isRSC || [
|
|
641
|
+
const provideRegisteredComponents = (block, registeredComponents) => {
|
|
642
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
645
643
|
"Symbol",
|
|
646
644
|
"Columns",
|
|
647
645
|
"Form:Form",
|
|
648
646
|
"Builder: Tabs",
|
|
649
647
|
"Builder:Accordion"
|
|
650
|
-
].includes(block.name))
|
|
648
|
+
].includes(block.name)) ? {
|
|
649
|
+
builderComponents: registeredComponents
|
|
650
|
+
} : {};
|
|
651
|
+
};
|
|
652
|
+
const provideBuilderBlock = (block, builderBlock) => {
|
|
653
|
+
return block && (block.isRSC && TARGET === "rsc" || TARGET === "reactNative" || [
|
|
654
|
+
"Builder:Accordion",
|
|
655
|
+
"Columns",
|
|
656
|
+
"Form:Form",
|
|
657
|
+
"Builder: Tabs",
|
|
658
|
+
"Symbol",
|
|
659
|
+
"Image",
|
|
660
|
+
"Video"
|
|
661
|
+
].includes(block.name)) ? {
|
|
662
|
+
builderBlock
|
|
663
|
+
} : {};
|
|
664
|
+
};
|
|
665
|
+
const provideBuilderContext = (block, context) => {
|
|
666
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
667
|
+
"Builder:Accordion",
|
|
668
|
+
"Columns",
|
|
669
|
+
"Form:Form",
|
|
670
|
+
"Builder: Tabs",
|
|
671
|
+
"Symbol",
|
|
672
|
+
"Slot"
|
|
673
|
+
].includes(block.name)) ? {
|
|
674
|
+
builderContext: context
|
|
675
|
+
} : {};
|
|
651
676
|
};
|
|
652
677
|
const SIZES = {
|
|
653
678
|
small: {
|
|
@@ -1105,13 +1130,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1105
1130
|
componentRef: (_a2 = blockComponent2.value) == null ? void 0 : _a2.component,
|
|
1106
1131
|
componentOptions: {
|
|
1107
1132
|
...getBlockComponentOptions(processedBlock2.value),
|
|
1108
|
-
|
|
1109
|
-
...
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
...shouldPassRegisteredComponents(blockComponent2.value) ? {
|
|
1113
|
-
builderComponents: props2.registeredComponents
|
|
1114
|
-
} : {}
|
|
1133
|
+
...provideBuilderBlock(blockComponent2.value, processedBlock2.value),
|
|
1134
|
+
...provideBuilderContext(blockComponent2.value, props2.context),
|
|
1135
|
+
...provideLinkComponent(blockComponent2.value, props2.linkComponent),
|
|
1136
|
+
...provideRegisteredComponents(blockComponent2.value, props2.registeredComponents)
|
|
1115
1137
|
},
|
|
1116
1138
|
context: props2.context,
|
|
1117
1139
|
linkComponent: props2.linkComponent,
|
|
@@ -1166,9 +1188,6 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1166
1188
|
get context() {
|
|
1167
1189
|
return props.context;
|
|
1168
1190
|
},
|
|
1169
|
-
get linkComponent() {
|
|
1170
|
-
return props.linkComponent;
|
|
1171
|
-
},
|
|
1172
1191
|
children: [
|
|
1173
1192
|
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
1174
1193
|
get componentRef() {
|
|
@@ -1263,10 +1282,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1263
1282
|
], "p0.value"),
|
|
1264
1283
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
1265
1284
|
props
|
|
1266
|
-
], "p0.context")
|
|
1267
|
-
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
1268
|
-
props
|
|
1269
|
-
], "p0.linkComponent")
|
|
1285
|
+
], "p0.context")
|
|
1270
1286
|
}
|
|
1271
1287
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
1272
1288
|
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
@@ -1834,7 +1850,12 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1834
1850
|
class: qwik._fnSignal((p0) => "builder-image" + (p0.className ? " " + p0.className : "") + " img-Image", [
|
|
1835
1851
|
props
|
|
1836
1852
|
], '"builder-image"+(p0.className?" "+p0.className:"")+" img-Image"'),
|
|
1837
|
-
|
|
1853
|
+
fetchPriority: qwik._fnSignal((p0) => p0.highPriority ? "high" : "auto", [
|
|
1854
|
+
props
|
|
1855
|
+
], 'p0.highPriority?"high":"auto"'),
|
|
1856
|
+
loading: qwik._fnSignal((p0) => p0.highPriority ? "eager" : "lazy", [
|
|
1857
|
+
props
|
|
1858
|
+
], 'p0.highPriority?"eager":"lazy"'),
|
|
1838
1859
|
role: qwik._fnSignal((p0) => p0.altText ? void 0 : "presentation", [
|
|
1839
1860
|
props
|
|
1840
1861
|
], 'p0.altText?undefined:"presentation"'),
|
|
@@ -2869,6 +2890,12 @@ const componentInfo$d = {
|
|
|
2869
2890
|
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
2870
2891
|
defaultValue: true
|
|
2871
2892
|
},
|
|
2893
|
+
{
|
|
2894
|
+
name: "highPriority",
|
|
2895
|
+
type: "boolean",
|
|
2896
|
+
advanced: true,
|
|
2897
|
+
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
2898
|
+
},
|
|
2872
2899
|
{
|
|
2873
2900
|
name: "aspectRatio",
|
|
2874
2901
|
type: "number",
|
|
@@ -5072,7 +5099,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5072
5099
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5073
5100
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5074
5101
|
}
|
|
5075
|
-
const SDK_VERSION = "0.14.
|
|
5102
|
+
const SDK_VERSION = "0.14.27";
|
|
5076
5103
|
const registry = {};
|
|
5077
5104
|
function register(type, info) {
|
|
5078
5105
|
let typeList = registry[type];
|
|
@@ -5768,6 +5795,7 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5768
5795
|
}),
|
|
5769
5796
|
rootSetState: void 0,
|
|
5770
5797
|
context: props.context || {},
|
|
5798
|
+
canTrack: props.canTrack,
|
|
5771
5799
|
apiKey: props.apiKey,
|
|
5772
5800
|
apiVersion: props.apiVersion,
|
|
5773
5801
|
componentInfos: [
|
|
@@ -5840,9 +5868,6 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5840
5868
|
get contentWrapperProps() {
|
|
5841
5869
|
return props.contentWrapperProps;
|
|
5842
5870
|
},
|
|
5843
|
-
get linkComponent() {
|
|
5844
|
-
return props.linkComponent;
|
|
5845
|
-
},
|
|
5846
5871
|
get trustedHosts() {
|
|
5847
5872
|
return props.trustedHosts;
|
|
5848
5873
|
},
|
|
@@ -5960,9 +5985,6 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5960
5985
|
enrich: qwik._fnSignal((p0) => p0.enrich, [
|
|
5961
5986
|
props
|
|
5962
5987
|
], "p0.enrich"),
|
|
5963
|
-
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
5964
|
-
props
|
|
5965
|
-
], "p0.linkComponent"),
|
|
5966
5988
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
5967
5989
|
props
|
|
5968
5990
|
], "p0.locale"),
|
|
@@ -6375,6 +6397,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
6375
6397
|
...(_c = (_b = state.contentToUse) == null ? void 0 : _b.data) == null ? void 0 : _c.state
|
|
6376
6398
|
};
|
|
6377
6399
|
},
|
|
6400
|
+
get canTrack() {
|
|
6401
|
+
return props.builderContext.canTrack;
|
|
6402
|
+
},
|
|
6378
6403
|
get model() {
|
|
6379
6404
|
var _a2;
|
|
6380
6405
|
return (_a2 = props.symbol) == null ? void 0 : _a2.model;
|
|
@@ -6401,6 +6426,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
6401
6426
|
blocksWrapper: qwik._fnSignal((p0) => p0.value, [
|
|
6402
6427
|
blocksWrapper
|
|
6403
6428
|
], "p0.value"),
|
|
6429
|
+
canTrack: qwik._fnSignal((p0) => p0.builderContext.canTrack, [
|
|
6430
|
+
props
|
|
6431
|
+
], "p0.builderContext.canTrack"),
|
|
6404
6432
|
content: qwik._fnSignal((p0) => p0.contentToUse, [
|
|
6405
6433
|
state
|
|
6406
6434
|
], "p0.contentToUse"),
|
|
@@ -90,11 +90,7 @@ function getBlockComponentOptions(block) {
|
|
|
90
90
|
var _a;
|
|
91
91
|
return {
|
|
92
92
|
...(_a = block.component) == null ? void 0 : _a.options,
|
|
93
|
-
...block.options
|
|
94
|
-
/**
|
|
95
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
96
|
-
*/
|
|
97
|
-
builderBlock: block
|
|
93
|
+
...block.options
|
|
98
94
|
};
|
|
99
95
|
}
|
|
100
96
|
const MSG_PREFIX = "[Builder.io]: ";
|
|
@@ -628,24 +624,53 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
628
624
|
}));
|
|
629
625
|
return repeatArray;
|
|
630
626
|
};
|
|
631
|
-
const
|
|
632
|
-
return block && (block.isRSC || [
|
|
627
|
+
const provideLinkComponent = (block, linkComponent) => {
|
|
628
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
633
629
|
"Core:Button",
|
|
634
630
|
"Symbol",
|
|
635
631
|
"Columns",
|
|
636
632
|
"Form:Form",
|
|
637
633
|
"Builder: Tabs",
|
|
638
634
|
"Builder:Accordion"
|
|
639
|
-
].includes(block.name))
|
|
635
|
+
].includes(block.name)) ? {
|
|
636
|
+
builderLinkComponent: linkComponent
|
|
637
|
+
} : {};
|
|
640
638
|
};
|
|
641
|
-
const
|
|
642
|
-
return block && (block.isRSC || [
|
|
639
|
+
const provideRegisteredComponents = (block, registeredComponents) => {
|
|
640
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
643
641
|
"Symbol",
|
|
644
642
|
"Columns",
|
|
645
643
|
"Form:Form",
|
|
646
644
|
"Builder: Tabs",
|
|
647
645
|
"Builder:Accordion"
|
|
648
|
-
].includes(block.name))
|
|
646
|
+
].includes(block.name)) ? {
|
|
647
|
+
builderComponents: registeredComponents
|
|
648
|
+
} : {};
|
|
649
|
+
};
|
|
650
|
+
const provideBuilderBlock = (block, builderBlock) => {
|
|
651
|
+
return block && (block.isRSC && TARGET === "rsc" || TARGET === "reactNative" || [
|
|
652
|
+
"Builder:Accordion",
|
|
653
|
+
"Columns",
|
|
654
|
+
"Form:Form",
|
|
655
|
+
"Builder: Tabs",
|
|
656
|
+
"Symbol",
|
|
657
|
+
"Image",
|
|
658
|
+
"Video"
|
|
659
|
+
].includes(block.name)) ? {
|
|
660
|
+
builderBlock
|
|
661
|
+
} : {};
|
|
662
|
+
};
|
|
663
|
+
const provideBuilderContext = (block, context) => {
|
|
664
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
665
|
+
"Builder:Accordion",
|
|
666
|
+
"Columns",
|
|
667
|
+
"Form:Form",
|
|
668
|
+
"Builder: Tabs",
|
|
669
|
+
"Symbol",
|
|
670
|
+
"Slot"
|
|
671
|
+
].includes(block.name)) ? {
|
|
672
|
+
builderContext: context
|
|
673
|
+
} : {};
|
|
649
674
|
};
|
|
650
675
|
const SIZES = {
|
|
651
676
|
small: {
|
|
@@ -1103,13 +1128,10 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1103
1128
|
componentRef: (_a2 = blockComponent2.value) == null ? void 0 : _a2.component,
|
|
1104
1129
|
componentOptions: {
|
|
1105
1130
|
...getBlockComponentOptions(processedBlock2.value),
|
|
1106
|
-
|
|
1107
|
-
...
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
...shouldPassRegisteredComponents(blockComponent2.value) ? {
|
|
1111
|
-
builderComponents: props2.registeredComponents
|
|
1112
|
-
} : {}
|
|
1131
|
+
...provideBuilderBlock(blockComponent2.value, processedBlock2.value),
|
|
1132
|
+
...provideBuilderContext(blockComponent2.value, props2.context),
|
|
1133
|
+
...provideLinkComponent(blockComponent2.value, props2.linkComponent),
|
|
1134
|
+
...provideRegisteredComponents(blockComponent2.value, props2.registeredComponents)
|
|
1113
1135
|
},
|
|
1114
1136
|
context: props2.context,
|
|
1115
1137
|
linkComponent: props2.linkComponent,
|
|
@@ -1164,9 +1186,6 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1164
1186
|
get context() {
|
|
1165
1187
|
return props.context;
|
|
1166
1188
|
},
|
|
1167
|
-
get linkComponent() {
|
|
1168
|
-
return props.linkComponent;
|
|
1169
|
-
},
|
|
1170
1189
|
children: [
|
|
1171
1190
|
/* @__PURE__ */ _jsxC(ComponentRef, {
|
|
1172
1191
|
get componentRef() {
|
|
@@ -1261,10 +1280,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1261
1280
|
], "p0.value"),
|
|
1262
1281
|
context: _fnSignal((p0) => p0.context, [
|
|
1263
1282
|
props
|
|
1264
|
-
], "p0.context")
|
|
1265
|
-
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
1266
|
-
props
|
|
1267
|
-
], "p0.linkComponent")
|
|
1283
|
+
], "p0.context")
|
|
1268
1284
|
}
|
|
1269
1285
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
1270
1286
|
return /* @__PURE__ */ _jsxC(RepeatedBlock, {
|
|
@@ -1832,7 +1848,12 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1832
1848
|
class: _fnSignal((p0) => "builder-image" + (p0.className ? " " + p0.className : "") + " img-Image", [
|
|
1833
1849
|
props
|
|
1834
1850
|
], '"builder-image"+(p0.className?" "+p0.className:"")+" img-Image"'),
|
|
1835
|
-
|
|
1851
|
+
fetchPriority: _fnSignal((p0) => p0.highPriority ? "high" : "auto", [
|
|
1852
|
+
props
|
|
1853
|
+
], 'p0.highPriority?"high":"auto"'),
|
|
1854
|
+
loading: _fnSignal((p0) => p0.highPriority ? "eager" : "lazy", [
|
|
1855
|
+
props
|
|
1856
|
+
], 'p0.highPriority?"eager":"lazy"'),
|
|
1836
1857
|
role: _fnSignal((p0) => p0.altText ? void 0 : "presentation", [
|
|
1837
1858
|
props
|
|
1838
1859
|
], 'p0.altText?undefined:"presentation"'),
|
|
@@ -2867,6 +2888,12 @@ const componentInfo$d = {
|
|
|
2867
2888
|
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
2868
2889
|
defaultValue: true
|
|
2869
2890
|
},
|
|
2891
|
+
{
|
|
2892
|
+
name: "highPriority",
|
|
2893
|
+
type: "boolean",
|
|
2894
|
+
advanced: true,
|
|
2895
|
+
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
2896
|
+
},
|
|
2870
2897
|
{
|
|
2871
2898
|
name: "aspectRatio",
|
|
2872
2899
|
type: "number",
|
|
@@ -5070,7 +5097,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5070
5097
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5071
5098
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5072
5099
|
}
|
|
5073
|
-
const SDK_VERSION = "0.14.
|
|
5100
|
+
const SDK_VERSION = "0.14.27";
|
|
5074
5101
|
const registry = {};
|
|
5075
5102
|
function register(type, info) {
|
|
5076
5103
|
let typeList = registry[type];
|
|
@@ -5766,6 +5793,7 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5766
5793
|
}),
|
|
5767
5794
|
rootSetState: void 0,
|
|
5768
5795
|
context: props.context || {},
|
|
5796
|
+
canTrack: props.canTrack,
|
|
5769
5797
|
apiKey: props.apiKey,
|
|
5770
5798
|
apiVersion: props.apiVersion,
|
|
5771
5799
|
componentInfos: [
|
|
@@ -5838,9 +5866,6 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5838
5866
|
get contentWrapperProps() {
|
|
5839
5867
|
return props.contentWrapperProps;
|
|
5840
5868
|
},
|
|
5841
|
-
get linkComponent() {
|
|
5842
|
-
return props.linkComponent;
|
|
5843
|
-
},
|
|
5844
5869
|
get trustedHosts() {
|
|
5845
5870
|
return props.trustedHosts;
|
|
5846
5871
|
},
|
|
@@ -5958,9 +5983,6 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5958
5983
|
enrich: _fnSignal((p0) => p0.enrich, [
|
|
5959
5984
|
props
|
|
5960
5985
|
], "p0.enrich"),
|
|
5961
|
-
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
5962
|
-
props
|
|
5963
|
-
], "p0.linkComponent"),
|
|
5964
5986
|
locale: _fnSignal((p0) => p0.locale, [
|
|
5965
5987
|
props
|
|
5966
5988
|
], "p0.locale"),
|
|
@@ -6373,6 +6395,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
6373
6395
|
...(_c = (_b = state.contentToUse) == null ? void 0 : _b.data) == null ? void 0 : _c.state
|
|
6374
6396
|
};
|
|
6375
6397
|
},
|
|
6398
|
+
get canTrack() {
|
|
6399
|
+
return props.builderContext.canTrack;
|
|
6400
|
+
},
|
|
6376
6401
|
get model() {
|
|
6377
6402
|
var _a2;
|
|
6378
6403
|
return (_a2 = props.symbol) == null ? void 0 : _a2.model;
|
|
@@ -6399,6 +6424,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
6399
6424
|
blocksWrapper: _fnSignal((p0) => p0.value, [
|
|
6400
6425
|
blocksWrapper
|
|
6401
6426
|
], "p0.value"),
|
|
6427
|
+
canTrack: _fnSignal((p0) => p0.builderContext.canTrack, [
|
|
6428
|
+
props
|
|
6429
|
+
], "p0.builderContext.canTrack"),
|
|
6402
6430
|
content: _fnSignal((p0) => p0.contentToUse, [
|
|
6403
6431
|
state
|
|
6404
6432
|
], "p0.contentToUse"),
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -92,11 +92,7 @@ function getBlockComponentOptions(block) {
|
|
|
92
92
|
var _a;
|
|
93
93
|
return {
|
|
94
94
|
...(_a = block.component) == null ? void 0 : _a.options,
|
|
95
|
-
...block.options
|
|
96
|
-
/**
|
|
97
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
98
|
-
*/
|
|
99
|
-
builderBlock: block
|
|
95
|
+
...block.options
|
|
100
96
|
};
|
|
101
97
|
}
|
|
102
98
|
const MSG_PREFIX = "[Builder.io]: ";
|
|
@@ -3462,17 +3458,10 @@ theFunction();
|
|
|
3462
3458
|
});
|
|
3463
3459
|
interpreter.setProperty(globalObject, "setRootState", interpreter.createNativeFunction(setRootState));
|
|
3464
3460
|
};
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
return output;
|
|
3470
|
-
} catch (e) {
|
|
3471
|
-
logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
3472
|
-
e
|
|
3473
|
-
});
|
|
3474
|
-
return;
|
|
3475
|
-
}
|
|
3461
|
+
const myInterpreter = new t(transformed, initFunc);
|
|
3462
|
+
myInterpreter.run();
|
|
3463
|
+
const output = myInterpreter.pseudoToNative(myInterpreter.value);
|
|
3464
|
+
return output;
|
|
3476
3465
|
};
|
|
3477
3466
|
const checkIsDefined = (maybeT) => maybeT !== null && maybeT !== void 0;
|
|
3478
3467
|
function isNodeRuntime() {
|
|
@@ -3861,24 +3850,53 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
3861
3850
|
}));
|
|
3862
3851
|
return repeatArray;
|
|
3863
3852
|
};
|
|
3864
|
-
const
|
|
3865
|
-
return block && (block.isRSC || [
|
|
3853
|
+
const provideLinkComponent = (block, linkComponent) => {
|
|
3854
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
3866
3855
|
"Core:Button",
|
|
3867
3856
|
"Symbol",
|
|
3868
3857
|
"Columns",
|
|
3869
3858
|
"Form:Form",
|
|
3870
3859
|
"Builder: Tabs",
|
|
3871
3860
|
"Builder:Accordion"
|
|
3872
|
-
].includes(block.name))
|
|
3861
|
+
].includes(block.name)) ? {
|
|
3862
|
+
builderLinkComponent: linkComponent
|
|
3863
|
+
} : {};
|
|
3873
3864
|
};
|
|
3874
|
-
const
|
|
3875
|
-
return block && (block.isRSC || [
|
|
3865
|
+
const provideRegisteredComponents = (block, registeredComponents) => {
|
|
3866
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
3876
3867
|
"Symbol",
|
|
3877
3868
|
"Columns",
|
|
3878
3869
|
"Form:Form",
|
|
3879
3870
|
"Builder: Tabs",
|
|
3880
3871
|
"Builder:Accordion"
|
|
3881
|
-
].includes(block.name))
|
|
3872
|
+
].includes(block.name)) ? {
|
|
3873
|
+
builderComponents: registeredComponents
|
|
3874
|
+
} : {};
|
|
3875
|
+
};
|
|
3876
|
+
const provideBuilderBlock = (block, builderBlock) => {
|
|
3877
|
+
return block && (block.isRSC && TARGET === "rsc" || TARGET === "reactNative" || [
|
|
3878
|
+
"Builder:Accordion",
|
|
3879
|
+
"Columns",
|
|
3880
|
+
"Form:Form",
|
|
3881
|
+
"Builder: Tabs",
|
|
3882
|
+
"Symbol",
|
|
3883
|
+
"Image",
|
|
3884
|
+
"Video"
|
|
3885
|
+
].includes(block.name)) ? {
|
|
3886
|
+
builderBlock
|
|
3887
|
+
} : {};
|
|
3888
|
+
};
|
|
3889
|
+
const provideBuilderContext = (block, context) => {
|
|
3890
|
+
return block && (block.isRSC && TARGET === "rsc" || [
|
|
3891
|
+
"Builder:Accordion",
|
|
3892
|
+
"Columns",
|
|
3893
|
+
"Form:Form",
|
|
3894
|
+
"Builder: Tabs",
|
|
3895
|
+
"Symbol",
|
|
3896
|
+
"Slot"
|
|
3897
|
+
].includes(block.name)) ? {
|
|
3898
|
+
builderContext: context
|
|
3899
|
+
} : {};
|
|
3882
3900
|
};
|
|
3883
3901
|
const SIZES = {
|
|
3884
3902
|
small: {
|
|
@@ -4336,13 +4354,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4336
4354
|
componentRef: (_a2 = blockComponent2.value) == null ? void 0 : _a2.component,
|
|
4337
4355
|
componentOptions: {
|
|
4338
4356
|
...getBlockComponentOptions(processedBlock2.value),
|
|
4339
|
-
|
|
4340
|
-
...
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
...shouldPassRegisteredComponents(blockComponent2.value) ? {
|
|
4344
|
-
builderComponents: props2.registeredComponents
|
|
4345
|
-
} : {}
|
|
4357
|
+
...provideBuilderBlock(blockComponent2.value, processedBlock2.value),
|
|
4358
|
+
...provideBuilderContext(blockComponent2.value, props2.context),
|
|
4359
|
+
...provideLinkComponent(blockComponent2.value, props2.linkComponent),
|
|
4360
|
+
...provideRegisteredComponents(blockComponent2.value, props2.registeredComponents)
|
|
4346
4361
|
},
|
|
4347
4362
|
context: props2.context,
|
|
4348
4363
|
linkComponent: props2.linkComponent,
|
|
@@ -4397,9 +4412,6 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4397
4412
|
get context() {
|
|
4398
4413
|
return props.context;
|
|
4399
4414
|
},
|
|
4400
|
-
get linkComponent() {
|
|
4401
|
-
return props.linkComponent;
|
|
4402
|
-
},
|
|
4403
4415
|
children: [
|
|
4404
4416
|
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
4405
4417
|
get componentRef() {
|
|
@@ -4494,10 +4506,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4494
4506
|
], "p0.value"),
|
|
4495
4507
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
4496
4508
|
props
|
|
4497
|
-
], "p0.context")
|
|
4498
|
-
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4499
|
-
props
|
|
4500
|
-
], "p0.linkComponent")
|
|
4509
|
+
], "p0.context")
|
|
4501
4510
|
}
|
|
4502
4511
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
4503
4512
|
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
@@ -5065,7 +5074,12 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
5065
5074
|
class: qwik._fnSignal((p0) => "builder-image" + (p0.className ? " " + p0.className : "") + " img-Image", [
|
|
5066
5075
|
props
|
|
5067
5076
|
], '"builder-image"+(p0.className?" "+p0.className:"")+" img-Image"'),
|
|
5068
|
-
|
|
5077
|
+
fetchPriority: qwik._fnSignal((p0) => p0.highPriority ? "high" : "auto", [
|
|
5078
|
+
props
|
|
5079
|
+
], 'p0.highPriority?"high":"auto"'),
|
|
5080
|
+
loading: qwik._fnSignal((p0) => p0.highPriority ? "eager" : "lazy", [
|
|
5081
|
+
props
|
|
5082
|
+
], 'p0.highPriority?"eager":"lazy"'),
|
|
5069
5083
|
role: qwik._fnSignal((p0) => p0.altText ? void 0 : "presentation", [
|
|
5070
5084
|
props
|
|
5071
5085
|
], 'p0.altText?undefined:"presentation"'),
|
|
@@ -6100,6 +6114,12 @@ const componentInfo$d = {
|
|
|
6100
6114
|
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
6101
6115
|
defaultValue: true
|
|
6102
6116
|
},
|
|
6117
|
+
{
|
|
6118
|
+
name: "highPriority",
|
|
6119
|
+
type: "boolean",
|
|
6120
|
+
advanced: true,
|
|
6121
|
+
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
6122
|
+
},
|
|
6103
6123
|
{
|
|
6104
6124
|
name: "aspectRatio",
|
|
6105
6125
|
type: "number",
|
|
@@ -8303,7 +8323,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8303
8323
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8304
8324
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8305
8325
|
}
|
|
8306
|
-
const SDK_VERSION = "0.14.
|
|
8326
|
+
const SDK_VERSION = "0.14.27";
|
|
8307
8327
|
const registry = {};
|
|
8308
8328
|
function register(type, info) {
|
|
8309
8329
|
let typeList = registry[type];
|
|
@@ -8999,6 +9019,7 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
8999
9019
|
}),
|
|
9000
9020
|
rootSetState: void 0,
|
|
9001
9021
|
context: props.context || {},
|
|
9022
|
+
canTrack: props.canTrack,
|
|
9002
9023
|
apiKey: props.apiKey,
|
|
9003
9024
|
apiVersion: props.apiVersion,
|
|
9004
9025
|
componentInfos: [
|
|
@@ -9071,9 +9092,6 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9071
9092
|
get contentWrapperProps() {
|
|
9072
9093
|
return props.contentWrapperProps;
|
|
9073
9094
|
},
|
|
9074
|
-
get linkComponent() {
|
|
9075
|
-
return props.linkComponent;
|
|
9076
|
-
},
|
|
9077
9095
|
get trustedHosts() {
|
|
9078
9096
|
return props.trustedHosts;
|
|
9079
9097
|
},
|
|
@@ -9191,9 +9209,6 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
9191
9209
|
enrich: qwik._fnSignal((p0) => p0.enrich, [
|
|
9192
9210
|
props
|
|
9193
9211
|
], "p0.enrich"),
|
|
9194
|
-
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
9195
|
-
props
|
|
9196
|
-
], "p0.linkComponent"),
|
|
9197
9212
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
9198
9213
|
props
|
|
9199
9214
|
], "p0.locale"),
|
|
@@ -9606,6 +9621,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
9606
9621
|
...(_c = (_b = state.contentToUse) == null ? void 0 : _b.data) == null ? void 0 : _c.state
|
|
9607
9622
|
};
|
|
9608
9623
|
},
|
|
9624
|
+
get canTrack() {
|
|
9625
|
+
return props.builderContext.canTrack;
|
|
9626
|
+
},
|
|
9609
9627
|
get model() {
|
|
9610
9628
|
var _a2;
|
|
9611
9629
|
return (_a2 = props.symbol) == null ? void 0 : _a2.model;
|
|
@@ -9632,6 +9650,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
9632
9650
|
blocksWrapper: qwik._fnSignal((p0) => p0.value, [
|
|
9633
9651
|
blocksWrapper
|
|
9634
9652
|
], "p0.value"),
|
|
9653
|
+
canTrack: qwik._fnSignal((p0) => p0.builderContext.canTrack, [
|
|
9654
|
+
props
|
|
9655
|
+
], "p0.builderContext.canTrack"),
|
|
9635
9656
|
content: qwik._fnSignal((p0) => p0.contentToUse, [
|
|
9636
9657
|
state
|
|
9637
9658
|
], "p0.contentToUse"),
|