@builder.io/sdk-qwik 0.16.3 → 0.16.5
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 +25 -9
- package/lib/browser/index.qwik.mjs +25 -9
- package/lib/edge/index.qwik.cjs +25 -9
- package/lib/edge/index.qwik.mjs +25 -9
- package/lib/node/index.qwik.cjs +25 -9
- package/lib/node/index.qwik.mjs +25 -9
- package/package.json +1 -1
- package/types/src/blocks/image/image.types.d.ts +2 -0
- package/types/src/blocks/symbol/symbol.types.d.ts +1 -0
- package/types/src/components/content-variants/content-variants.types.d.ts +2 -1
- package/types/src/components/content-variants/extra-framework-props-types.d.ts +2 -0
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/context/extra-context-types.d.ts +6 -0
- package/types/src/context/types.d.ts +2 -1
|
@@ -1133,7 +1133,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1133
1133
|
registeredComponents: props2.registeredComponents,
|
|
1134
1134
|
builderBlock: processedBlock2.value,
|
|
1135
1135
|
includeBlockProps: ((_b = blockComponent2.value) == null ? void 0 : _b.noWrap) === true,
|
|
1136
|
-
isInteractive: !((_c = blockComponent2.value) == null ? void 0 : _c.isRSC)
|
|
1136
|
+
isInteractive: !(((_c = blockComponent2.value) == null ? void 0 : _c.isRSC) && TARGET === "rsc")
|
|
1137
1137
|
};
|
|
1138
1138
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
1139
1139
|
blockComponent,
|
|
@@ -1837,6 +1837,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1837
1837
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
1838
1838
|
props
|
|
1839
1839
|
]));
|
|
1840
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1841
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
1840
1842
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
1841
1843
|
children: [
|
|
1842
1844
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
@@ -3362,7 +3364,8 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
3362
3364
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
3363
3365
|
const componentInfo$9 = {
|
|
3364
3366
|
shouldReceiveBuilderProps: {
|
|
3365
|
-
builderBlock: false
|
|
3367
|
+
builderBlock: false,
|
|
3368
|
+
builderContext: true
|
|
3366
3369
|
},
|
|
3367
3370
|
name: "Text",
|
|
3368
3371
|
static: true,
|
|
@@ -3385,14 +3388,27 @@ const componentInfo$9 = {
|
|
|
3385
3388
|
}
|
|
3386
3389
|
};
|
|
3387
3390
|
const Text = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
3391
|
+
const processedText = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3392
|
+
var _a;
|
|
3393
|
+
const [props2] = qwik.useLexicalScope();
|
|
3394
|
+
const context = props2.builderContext;
|
|
3395
|
+
const { context: contextContext, localState, rootState, rootSetState } = context;
|
|
3396
|
+
return String(((_a = props2.text) == null ? void 0 : _a.toString()) || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
|
|
3397
|
+
code: group,
|
|
3398
|
+
context: contextContext,
|
|
3399
|
+
localState,
|
|
3400
|
+
rootState,
|
|
3401
|
+
rootSetState,
|
|
3402
|
+
enableCache: false
|
|
3403
|
+
}));
|
|
3404
|
+
}, "Text_component_processedText_useComputed_FbQ0o8kZPCU", [
|
|
3405
|
+
props
|
|
3406
|
+
]));
|
|
3388
3407
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
3389
3408
|
class: "builder-text",
|
|
3390
|
-
dangerouslySetInnerHTML: qwik._fnSignal((p0) =>
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
}, [
|
|
3394
|
-
props
|
|
3395
|
-
], 'p0.text?.toString()||""'),
|
|
3409
|
+
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.value, [
|
|
3410
|
+
processedText
|
|
3411
|
+
], "p0.value"),
|
|
3396
3412
|
style: {
|
|
3397
3413
|
outline: "none"
|
|
3398
3414
|
}
|
|
@@ -5203,7 +5219,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5203
5219
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5204
5220
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5205
5221
|
}
|
|
5206
|
-
const SDK_VERSION = "0.16.
|
|
5222
|
+
const SDK_VERSION = "0.16.5";
|
|
5207
5223
|
const registry = {};
|
|
5208
5224
|
function register(type, info) {
|
|
5209
5225
|
let typeList = registry[type];
|
|
@@ -1131,7 +1131,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1131
1131
|
registeredComponents: props2.registeredComponents,
|
|
1132
1132
|
builderBlock: processedBlock2.value,
|
|
1133
1133
|
includeBlockProps: ((_b = blockComponent2.value) == null ? void 0 : _b.noWrap) === true,
|
|
1134
|
-
isInteractive: !((_c = blockComponent2.value) == null ? void 0 : _c.isRSC)
|
|
1134
|
+
isInteractive: !(((_c = blockComponent2.value) == null ? void 0 : _c.isRSC) && TARGET === "rsc")
|
|
1135
1135
|
};
|
|
1136
1136
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
1137
1137
|
blockComponent,
|
|
@@ -1835,6 +1835,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1835
1835
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
1836
1836
|
props
|
|
1837
1837
|
]));
|
|
1838
|
+
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
1839
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
1838
1840
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
1839
1841
|
children: [
|
|
1840
1842
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
@@ -3360,7 +3362,8 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3360
3362
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
3361
3363
|
const componentInfo$9 = {
|
|
3362
3364
|
shouldReceiveBuilderProps: {
|
|
3363
|
-
builderBlock: false
|
|
3365
|
+
builderBlock: false,
|
|
3366
|
+
builderContext: true
|
|
3364
3367
|
},
|
|
3365
3368
|
name: "Text",
|
|
3366
3369
|
static: true,
|
|
@@ -3383,14 +3386,27 @@ const componentInfo$9 = {
|
|
|
3383
3386
|
}
|
|
3384
3387
|
};
|
|
3385
3388
|
const Text = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3389
|
+
const processedText = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3390
|
+
var _a;
|
|
3391
|
+
const [props2] = useLexicalScope();
|
|
3392
|
+
const context = props2.builderContext;
|
|
3393
|
+
const { context: contextContext, localState, rootState, rootSetState } = context;
|
|
3394
|
+
return String(((_a = props2.text) == null ? void 0 : _a.toString()) || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
|
|
3395
|
+
code: group,
|
|
3396
|
+
context: contextContext,
|
|
3397
|
+
localState,
|
|
3398
|
+
rootState,
|
|
3399
|
+
rootSetState,
|
|
3400
|
+
enableCache: false
|
|
3401
|
+
}));
|
|
3402
|
+
}, "Text_component_processedText_useComputed_FbQ0o8kZPCU", [
|
|
3403
|
+
props
|
|
3404
|
+
]));
|
|
3386
3405
|
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
3387
3406
|
class: "builder-text",
|
|
3388
|
-
dangerouslySetInnerHTML: _fnSignal((p0) =>
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
}, [
|
|
3392
|
-
props
|
|
3393
|
-
], 'p0.text?.toString()||""'),
|
|
3407
|
+
dangerouslySetInnerHTML: _fnSignal((p0) => p0.value, [
|
|
3408
|
+
processedText
|
|
3409
|
+
], "p0.value"),
|
|
3394
3410
|
style: {
|
|
3395
3411
|
outline: "none"
|
|
3396
3412
|
}
|
|
@@ -5201,7 +5217,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5201
5217
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5202
5218
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5203
5219
|
}
|
|
5204
|
-
const SDK_VERSION = "0.16.
|
|
5220
|
+
const SDK_VERSION = "0.16.5";
|
|
5205
5221
|
const registry = {};
|
|
5206
5222
|
function register(type, info) {
|
|
5207
5223
|
let typeList = registry[type];
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -4357,7 +4357,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4357
4357
|
registeredComponents: props2.registeredComponents,
|
|
4358
4358
|
builderBlock: processedBlock2.value,
|
|
4359
4359
|
includeBlockProps: ((_b = blockComponent2.value) == null ? void 0 : _b.noWrap) === true,
|
|
4360
|
-
isInteractive: !((_c = blockComponent2.value) == null ? void 0 : _c.isRSC)
|
|
4360
|
+
isInteractive: !(((_c = blockComponent2.value) == null ? void 0 : _c.isRSC) && TARGET === "rsc")
|
|
4361
4361
|
};
|
|
4362
4362
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
4363
4363
|
blockComponent,
|
|
@@ -5061,6 +5061,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
5061
5061
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
5062
5062
|
props
|
|
5063
5063
|
]));
|
|
5064
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
5065
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
5064
5066
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
5065
5067
|
children: [
|
|
5066
5068
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
@@ -6586,7 +6588,8 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
6586
6588
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
6587
6589
|
const componentInfo$9 = {
|
|
6588
6590
|
shouldReceiveBuilderProps: {
|
|
6589
|
-
builderBlock: false
|
|
6591
|
+
builderBlock: false,
|
|
6592
|
+
builderContext: true
|
|
6590
6593
|
},
|
|
6591
6594
|
name: "Text",
|
|
6592
6595
|
static: true,
|
|
@@ -6609,14 +6612,27 @@ const componentInfo$9 = {
|
|
|
6609
6612
|
}
|
|
6610
6613
|
};
|
|
6611
6614
|
const Text = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
6615
|
+
const processedText = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
6616
|
+
var _a;
|
|
6617
|
+
const [props2] = qwik.useLexicalScope();
|
|
6618
|
+
const context = props2.builderContext;
|
|
6619
|
+
const { context: contextContext, localState, rootState, rootSetState } = context;
|
|
6620
|
+
return String(((_a = props2.text) == null ? void 0 : _a.toString()) || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
|
|
6621
|
+
code: group,
|
|
6622
|
+
context: contextContext,
|
|
6623
|
+
localState,
|
|
6624
|
+
rootState,
|
|
6625
|
+
rootSetState,
|
|
6626
|
+
enableCache: false
|
|
6627
|
+
}));
|
|
6628
|
+
}, "Text_component_processedText_useComputed_FbQ0o8kZPCU", [
|
|
6629
|
+
props
|
|
6630
|
+
]));
|
|
6612
6631
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
6613
6632
|
class: "builder-text",
|
|
6614
|
-
dangerouslySetInnerHTML: qwik._fnSignal((p0) =>
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
}, [
|
|
6618
|
-
props
|
|
6619
|
-
], 'p0.text?.toString()||""'),
|
|
6633
|
+
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.value, [
|
|
6634
|
+
processedText
|
|
6635
|
+
], "p0.value"),
|
|
6620
6636
|
style: {
|
|
6621
6637
|
outline: "none"
|
|
6622
6638
|
}
|
|
@@ -8427,7 +8443,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8427
8443
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8428
8444
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8429
8445
|
}
|
|
8430
|
-
const SDK_VERSION = "0.16.
|
|
8446
|
+
const SDK_VERSION = "0.16.5";
|
|
8431
8447
|
const registry = {};
|
|
8432
8448
|
function register(type, info) {
|
|
8433
8449
|
let typeList = registry[type];
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -4355,7 +4355,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4355
4355
|
registeredComponents: props2.registeredComponents,
|
|
4356
4356
|
builderBlock: processedBlock2.value,
|
|
4357
4357
|
includeBlockProps: ((_b = blockComponent2.value) == null ? void 0 : _b.noWrap) === true,
|
|
4358
|
-
isInteractive: !((_c = blockComponent2.value) == null ? void 0 : _c.isRSC)
|
|
4358
|
+
isInteractive: !(((_c = blockComponent2.value) == null ? void 0 : _c.isRSC) && TARGET === "rsc")
|
|
4359
4359
|
};
|
|
4360
4360
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
4361
4361
|
blockComponent,
|
|
@@ -5059,6 +5059,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
5059
5059
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
5060
5060
|
props
|
|
5061
5061
|
]));
|
|
5062
|
+
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
5063
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
5062
5064
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
5063
5065
|
children: [
|
|
5064
5066
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
@@ -6584,7 +6586,8 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
6584
6586
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
6585
6587
|
const componentInfo$9 = {
|
|
6586
6588
|
shouldReceiveBuilderProps: {
|
|
6587
|
-
builderBlock: false
|
|
6589
|
+
builderBlock: false,
|
|
6590
|
+
builderContext: true
|
|
6588
6591
|
},
|
|
6589
6592
|
name: "Text",
|
|
6590
6593
|
static: true,
|
|
@@ -6607,14 +6610,27 @@ const componentInfo$9 = {
|
|
|
6607
6610
|
}
|
|
6608
6611
|
};
|
|
6609
6612
|
const Text = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
6613
|
+
const processedText = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6614
|
+
var _a;
|
|
6615
|
+
const [props2] = useLexicalScope();
|
|
6616
|
+
const context = props2.builderContext;
|
|
6617
|
+
const { context: contextContext, localState, rootState, rootSetState } = context;
|
|
6618
|
+
return String(((_a = props2.text) == null ? void 0 : _a.toString()) || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
|
|
6619
|
+
code: group,
|
|
6620
|
+
context: contextContext,
|
|
6621
|
+
localState,
|
|
6622
|
+
rootState,
|
|
6623
|
+
rootSetState,
|
|
6624
|
+
enableCache: false
|
|
6625
|
+
}));
|
|
6626
|
+
}, "Text_component_processedText_useComputed_FbQ0o8kZPCU", [
|
|
6627
|
+
props
|
|
6628
|
+
]));
|
|
6610
6629
|
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
6611
6630
|
class: "builder-text",
|
|
6612
|
-
dangerouslySetInnerHTML: _fnSignal((p0) =>
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
}, [
|
|
6616
|
-
props
|
|
6617
|
-
], 'p0.text?.toString()||""'),
|
|
6631
|
+
dangerouslySetInnerHTML: _fnSignal((p0) => p0.value, [
|
|
6632
|
+
processedText
|
|
6633
|
+
], "p0.value"),
|
|
6618
6634
|
style: {
|
|
6619
6635
|
outline: "none"
|
|
6620
6636
|
}
|
|
@@ -8425,7 +8441,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8425
8441
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
8426
8442
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
8427
8443
|
}
|
|
8428
|
-
const SDK_VERSION = "0.16.
|
|
8444
|
+
const SDK_VERSION = "0.16.5";
|
|
8429
8445
|
const registry = {};
|
|
8430
8446
|
function register(type, info) {
|
|
8431
8447
|
let typeList = registry[type];
|
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -1278,7 +1278,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1278
1278
|
registeredComponents: props2.registeredComponents,
|
|
1279
1279
|
builderBlock: processedBlock2.value,
|
|
1280
1280
|
includeBlockProps: ((_b = blockComponent2.value) == null ? void 0 : _b.noWrap) === true,
|
|
1281
|
-
isInteractive: !((_c = blockComponent2.value) == null ? void 0 : _c.isRSC)
|
|
1281
|
+
isInteractive: !(((_c = blockComponent2.value) == null ? void 0 : _c.isRSC) && TARGET === "rsc")
|
|
1282
1282
|
};
|
|
1283
1283
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
1284
1284
|
blockComponent,
|
|
@@ -1982,6 +1982,8 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1982
1982
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
1983
1983
|
props
|
|
1984
1984
|
]));
|
|
1985
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
1986
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
1985
1987
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
1986
1988
|
children: [
|
|
1987
1989
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
@@ -3507,7 +3509,8 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
3507
3509
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
3508
3510
|
const componentInfo$9 = {
|
|
3509
3511
|
shouldReceiveBuilderProps: {
|
|
3510
|
-
builderBlock: false
|
|
3512
|
+
builderBlock: false,
|
|
3513
|
+
builderContext: true
|
|
3511
3514
|
},
|
|
3512
3515
|
name: "Text",
|
|
3513
3516
|
static: true,
|
|
@@ -3530,14 +3533,27 @@ const componentInfo$9 = {
|
|
|
3530
3533
|
}
|
|
3531
3534
|
};
|
|
3532
3535
|
const Text = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
3536
|
+
const processedText = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3537
|
+
var _a;
|
|
3538
|
+
const [props2] = qwik.useLexicalScope();
|
|
3539
|
+
const context = props2.builderContext;
|
|
3540
|
+
const { context: contextContext, localState, rootState, rootSetState } = context;
|
|
3541
|
+
return String(((_a = props2.text) == null ? void 0 : _a.toString()) || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
|
|
3542
|
+
code: group,
|
|
3543
|
+
context: contextContext,
|
|
3544
|
+
localState,
|
|
3545
|
+
rootState,
|
|
3546
|
+
rootSetState,
|
|
3547
|
+
enableCache: false
|
|
3548
|
+
}));
|
|
3549
|
+
}, "Text_component_processedText_useComputed_FbQ0o8kZPCU", [
|
|
3550
|
+
props
|
|
3551
|
+
]));
|
|
3533
3552
|
return /* @__PURE__ */ qwik._jsxQ("div", null, {
|
|
3534
3553
|
class: "builder-text",
|
|
3535
|
-
dangerouslySetInnerHTML: qwik._fnSignal((p0) =>
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
}, [
|
|
3539
|
-
props
|
|
3540
|
-
], 'p0.text?.toString()||""'),
|
|
3554
|
+
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.value, [
|
|
3555
|
+
processedText
|
|
3556
|
+
], "p0.value"),
|
|
3541
3557
|
style: {
|
|
3542
3558
|
outline: "none"
|
|
3543
3559
|
}
|
|
@@ -5348,7 +5364,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5348
5364
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5349
5365
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5350
5366
|
}
|
|
5351
|
-
const SDK_VERSION = "0.16.
|
|
5367
|
+
const SDK_VERSION = "0.16.5";
|
|
5352
5368
|
const registry = {};
|
|
5353
5369
|
function register(type, info) {
|
|
5354
5370
|
let typeList = registry[type];
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -1276,7 +1276,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1276
1276
|
registeredComponents: props2.registeredComponents,
|
|
1277
1277
|
builderBlock: processedBlock2.value,
|
|
1278
1278
|
includeBlockProps: ((_b = blockComponent2.value) == null ? void 0 : _b.noWrap) === true,
|
|
1279
|
-
isInteractive: !((_c = blockComponent2.value) == null ? void 0 : _c.isRSC)
|
|
1279
|
+
isInteractive: !(((_c = blockComponent2.value) == null ? void 0 : _c.isRSC) && TARGET === "rsc")
|
|
1280
1280
|
};
|
|
1281
1281
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
1282
1282
|
blockComponent,
|
|
@@ -1980,6 +1980,8 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1980
1980
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
1981
1981
|
props
|
|
1982
1982
|
]));
|
|
1983
|
+
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
1984
|
+
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
1983
1985
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
1984
1986
|
children: [
|
|
1985
1987
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
@@ -3505,7 +3507,8 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3505
3507
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
3506
3508
|
const componentInfo$9 = {
|
|
3507
3509
|
shouldReceiveBuilderProps: {
|
|
3508
|
-
builderBlock: false
|
|
3510
|
+
builderBlock: false,
|
|
3511
|
+
builderContext: true
|
|
3509
3512
|
},
|
|
3510
3513
|
name: "Text",
|
|
3511
3514
|
static: true,
|
|
@@ -3528,14 +3531,27 @@ const componentInfo$9 = {
|
|
|
3528
3531
|
}
|
|
3529
3532
|
};
|
|
3530
3533
|
const Text = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3534
|
+
const processedText = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3535
|
+
var _a;
|
|
3536
|
+
const [props2] = useLexicalScope();
|
|
3537
|
+
const context = props2.builderContext;
|
|
3538
|
+
const { context: contextContext, localState, rootState, rootSetState } = context;
|
|
3539
|
+
return String(((_a = props2.text) == null ? void 0 : _a.toString()) || "").replace(/{{([^}]+)}}/g, (match, group) => evaluate({
|
|
3540
|
+
code: group,
|
|
3541
|
+
context: contextContext,
|
|
3542
|
+
localState,
|
|
3543
|
+
rootState,
|
|
3544
|
+
rootSetState,
|
|
3545
|
+
enableCache: false
|
|
3546
|
+
}));
|
|
3547
|
+
}, "Text_component_processedText_useComputed_FbQ0o8kZPCU", [
|
|
3548
|
+
props
|
|
3549
|
+
]));
|
|
3531
3550
|
return /* @__PURE__ */ _jsxQ("div", null, {
|
|
3532
3551
|
class: "builder-text",
|
|
3533
|
-
dangerouslySetInnerHTML: _fnSignal((p0) =>
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
}, [
|
|
3537
|
-
props
|
|
3538
|
-
], 'p0.text?.toString()||""'),
|
|
3552
|
+
dangerouslySetInnerHTML: _fnSignal((p0) => p0.value, [
|
|
3553
|
+
processedText
|
|
3554
|
+
], "p0.value"),
|
|
3539
3555
|
style: {
|
|
3540
3556
|
outline: "none"
|
|
3541
3557
|
}
|
|
@@ -5346,7 +5362,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5346
5362
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5347
5363
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5348
5364
|
}
|
|
5349
|
-
const SDK_VERSION = "0.16.
|
|
5365
|
+
const SDK_VERSION = "0.16.5";
|
|
5350
5366
|
const registry = {};
|
|
5351
5367
|
function register(type, info) {
|
|
5352
5368
|
let typeList = registry[type];
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BuilderBlock } from '../../types/builder-block';
|
|
2
2
|
export interface ImageProps {
|
|
3
|
+
attributes?: string;
|
|
3
4
|
highPriority?: boolean;
|
|
4
5
|
className?: string;
|
|
5
6
|
image: string;
|
|
@@ -12,6 +13,7 @@ export interface ImageProps {
|
|
|
12
13
|
backgroundPosition?: string;
|
|
13
14
|
srcset?: string;
|
|
14
15
|
aspectRatio?: number;
|
|
16
|
+
lockAspectRatio?: boolean;
|
|
15
17
|
children?: any;
|
|
16
18
|
fitContent?: boolean;
|
|
17
19
|
builderBlock?: BuilderBlock;
|
|
@@ -2,7 +2,8 @@ import type { BuilderRenderContext, RegisteredComponent } from '../../context/ty
|
|
|
2
2
|
import type { ApiVersion } from '../../types/api-version';
|
|
3
3
|
import type { BuilderContent } from '../../types/builder-content';
|
|
4
4
|
import type { Nullable } from '../../types/typescript';
|
|
5
|
-
|
|
5
|
+
import type { ExtraFrameworkProps } from './extra-framework-props-types';
|
|
6
|
+
export interface ContentVariantsPrps extends ExtraFrameworkProps {
|
|
6
7
|
/**
|
|
7
8
|
* The Builder content JSON to render (required).
|
|
8
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.16.
|
|
1
|
+
export declare const SDK_VERSION = "0.16.5";
|
|
@@ -3,13 +3,14 @@ import type { ApiVersion } from '../types/api-version';
|
|
|
3
3
|
import type { BuilderContent } from '../types/builder-content';
|
|
4
4
|
import type { ComponentInfo } from '../types/components';
|
|
5
5
|
import type { Dictionary, Nullable } from '../types/typescript';
|
|
6
|
+
import type { ExtraContextTypes } from './extra-context-types';
|
|
6
7
|
export type RegisteredComponent = ComponentInfo & {
|
|
7
8
|
component: any;
|
|
8
9
|
};
|
|
9
10
|
export type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
10
11
|
export type BuilderRenderState = Record<string, unknown>;
|
|
11
12
|
export type BuilderRenderContext = Record<string, unknown>;
|
|
12
|
-
export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'
|
|
13
|
+
export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'BlocksWrapper' | 'BlocksWrapperProps'>, ExtraContextTypes {
|
|
13
14
|
content: Nullable<BuilderContent>;
|
|
14
15
|
context: BuilderRenderContext;
|
|
15
16
|
/**
|