@builder.io/sdk-qwik 0.14.10 → 0.14.11
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 +20 -16
- package/lib/browser/index.qwik.mjs +20 -16
- package/lib/edge/index.qwik.cjs +20 -16
- package/lib/edge/index.qwik.mjs +20 -16
- package/lib/node/index.qwik.cjs +20 -16
- package/lib/node/index.qwik.mjs +20 -16
- package/package.json +1 -1
- package/types/src/components/content-variants/helpers.d.ts +1 -1
- package/types/src/components/inlined-script.d.ts +1 -1
- package/types/src/components/inlined-styles.d.ts +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -704,7 +704,7 @@ const InlinedStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
704
704
|
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.styles, [
|
|
705
705
|
props
|
|
706
706
|
], "p0.styles"),
|
|
707
|
-
id: qwik._fnSignal((p0) => p0.id, [
|
|
707
|
+
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
708
708
|
props
|
|
709
709
|
], "p0.id")
|
|
710
710
|
}, null, 3, "NG_0");
|
|
@@ -773,10 +773,12 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
773
773
|
]));
|
|
774
774
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
775
775
|
children: css.value && canShowBlock.value ? /* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
776
|
+
id: "builderio-block",
|
|
776
777
|
get styles() {
|
|
777
778
|
return css.value;
|
|
778
779
|
},
|
|
779
780
|
[qwik._IMMUTABLE]: {
|
|
781
|
+
id: qwik._IMMUTABLE,
|
|
780
782
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
781
783
|
css
|
|
782
784
|
], "p0.value")
|
|
@@ -1623,10 +1625,12 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
1623
1625
|
], "p0.value")
|
|
1624
1626
|
}, [
|
|
1625
1627
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
1628
|
+
id: "builderio-columns",
|
|
1626
1629
|
get styles() {
|
|
1627
1630
|
return columnsStyles.value;
|
|
1628
1631
|
},
|
|
1629
1632
|
[qwik._IMMUTABLE]: {
|
|
1633
|
+
id: qwik._IMMUTABLE,
|
|
1630
1634
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
1631
1635
|
columnsStyles
|
|
1632
1636
|
], "p0.value")
|
|
@@ -3989,7 +3993,7 @@ const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
3989
3993
|
};
|
|
3990
3994
|
const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
|
|
3991
3995
|
const isHydrationTarget = getIsHydrationTarget(TARGET);
|
|
3992
|
-
const
|
|
3996
|
+
const getInitVariantsFnsScriptString = () => `
|
|
3993
3997
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
3994
3998
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
3995
3999
|
`;
|
|
@@ -4005,9 +4009,9 @@ const InlinedScript = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
4005
4009
|
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
4006
4010
|
props
|
|
4007
4011
|
], "p0.scriptStr"),
|
|
4008
|
-
id: qwik._fnSignal((p0) => p0.id
|
|
4012
|
+
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
4009
4013
|
props
|
|
4010
|
-
],
|
|
4014
|
+
], "p0.id")
|
|
4011
4015
|
}, null, 3, "WO_0");
|
|
4012
4016
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
4013
4017
|
function getGlobalThis() {
|
|
@@ -4395,7 +4399,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4395
4399
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4396
4400
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4397
4401
|
}
|
|
4398
|
-
const SDK_VERSION = "0.14.
|
|
4402
|
+
const SDK_VERSION = "0.14.11";
|
|
4399
4403
|
const registry = {};
|
|
4400
4404
|
function register(type, info) {
|
|
4401
4405
|
let typeList = registry[type];
|
|
@@ -5028,10 +5032,12 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5028
5032
|
`.trim()
|
|
5029
5033
|
});
|
|
5030
5034
|
return /* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
5035
|
+
id: "builderio-content",
|
|
5031
5036
|
get styles() {
|
|
5032
5037
|
return state.injectedStyles;
|
|
5033
5038
|
},
|
|
5034
5039
|
[qwik._IMMUTABLE]: {
|
|
5040
|
+
id: qwik._IMMUTABLE,
|
|
5035
5041
|
styles: qwik._fnSignal((p0) => p0.injectedStyles, [
|
|
5036
5042
|
state
|
|
5037
5043
|
], "p0.injectedStyles")
|
|
@@ -5162,10 +5168,12 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5162
5168
|
},
|
|
5163
5169
|
children: [
|
|
5164
5170
|
props.isSsrAbTest ? /* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
5171
|
+
id: "builderio-variant-visibility",
|
|
5165
5172
|
get scriptStr() {
|
|
5166
5173
|
return state.scriptStr;
|
|
5167
5174
|
},
|
|
5168
5175
|
[qwik._IMMUTABLE]: {
|
|
5176
|
+
id: qwik._IMMUTABLE,
|
|
5169
5177
|
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
5170
5178
|
state
|
|
5171
5179
|
], "p0.scriptStr")
|
|
@@ -5331,40 +5339,36 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
5331
5339
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
5332
5340
|
children: [
|
|
5333
5341
|
!props.isNestedRender && TARGET !== "reactNative" ? /* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
5342
|
+
id: "builderio-init-variants-fns",
|
|
5334
5343
|
get scriptStr() {
|
|
5335
|
-
return
|
|
5344
|
+
return getInitVariantsFnsScriptString();
|
|
5336
5345
|
},
|
|
5337
5346
|
[qwik._IMMUTABLE]: {
|
|
5347
|
+
id: qwik._IMMUTABLE,
|
|
5338
5348
|
scriptStr: qwik._IMMUTABLE
|
|
5339
5349
|
}
|
|
5340
5350
|
}, 3, "XM_0") : null,
|
|
5341
5351
|
state.shouldRenderVariants ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
5342
5352
|
children: [
|
|
5343
5353
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
5344
|
-
|
|
5345
|
-
var _a;
|
|
5346
|
-
return `variants-styles-${(_a = props.content) == null ? void 0 : _a.id}`;
|
|
5347
|
-
},
|
|
5354
|
+
id: "builderio-variants",
|
|
5348
5355
|
get styles() {
|
|
5349
5356
|
return hideVariantsStyleString.value;
|
|
5350
5357
|
},
|
|
5351
5358
|
[qwik._IMMUTABLE]: {
|
|
5352
|
-
id: qwik.
|
|
5353
|
-
var _a;
|
|
5354
|
-
return `variants-styles-${(_a = p0.content) == null ? void 0 : _a.id}`;
|
|
5355
|
-
}, [
|
|
5356
|
-
props
|
|
5357
|
-
], "`variants-styles-${p0.content?.id}`"),
|
|
5359
|
+
id: qwik._IMMUTABLE,
|
|
5358
5360
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
5359
5361
|
hideVariantsStyleString
|
|
5360
5362
|
], "p0.value")
|
|
5361
5363
|
}
|
|
5362
5364
|
}, 3, "XM_1"),
|
|
5363
5365
|
/* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
5366
|
+
id: "builderio-variants-visibility",
|
|
5364
5367
|
get scriptStr() {
|
|
5365
5368
|
return updateCookieAndStylesScriptStr.value;
|
|
5366
5369
|
},
|
|
5367
5370
|
[qwik._IMMUTABLE]: {
|
|
5371
|
+
id: qwik._IMMUTABLE,
|
|
5368
5372
|
scriptStr: qwik._fnSignal((p0) => p0.value, [
|
|
5369
5373
|
updateCookieAndStylesScriptStr
|
|
5370
5374
|
], "p0.value")
|
|
@@ -702,7 +702,7 @@ const InlinedStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
702
702
|
dangerouslySetInnerHTML: _fnSignal((p0) => p0.styles, [
|
|
703
703
|
props
|
|
704
704
|
], "p0.styles"),
|
|
705
|
-
id: _fnSignal((p0) => p0.id, [
|
|
705
|
+
"data-id": _fnSignal((p0) => p0.id, [
|
|
706
706
|
props
|
|
707
707
|
], "p0.id")
|
|
708
708
|
}, null, 3, "NG_0");
|
|
@@ -771,10 +771,12 @@ const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
771
771
|
]));
|
|
772
772
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
773
773
|
children: css.value && canShowBlock.value ? /* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
774
|
+
id: "builderio-block",
|
|
774
775
|
get styles() {
|
|
775
776
|
return css.value;
|
|
776
777
|
},
|
|
777
778
|
[_IMMUTABLE]: {
|
|
779
|
+
id: _IMMUTABLE,
|
|
778
780
|
styles: _fnSignal((p0) => p0.value, [
|
|
779
781
|
css
|
|
780
782
|
], "p0.value")
|
|
@@ -1621,10 +1623,12 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
1621
1623
|
], "p0.value")
|
|
1622
1624
|
}, [
|
|
1623
1625
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
1626
|
+
id: "builderio-columns",
|
|
1624
1627
|
get styles() {
|
|
1625
1628
|
return columnsStyles.value;
|
|
1626
1629
|
},
|
|
1627
1630
|
[_IMMUTABLE]: {
|
|
1631
|
+
id: _IMMUTABLE,
|
|
1628
1632
|
styles: _fnSignal((p0) => p0.value, [
|
|
1629
1633
|
columnsStyles
|
|
1630
1634
|
], "p0.value")
|
|
@@ -3987,7 +3991,7 @@ const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
3987
3991
|
};
|
|
3988
3992
|
const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
|
|
3989
3993
|
const isHydrationTarget = getIsHydrationTarget(TARGET);
|
|
3990
|
-
const
|
|
3994
|
+
const getInitVariantsFnsScriptString = () => `
|
|
3991
3995
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
3992
3996
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
3993
3997
|
`;
|
|
@@ -4003,9 +4007,9 @@ const InlinedScript = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
4003
4007
|
dangerouslySetInnerHTML: _fnSignal((p0) => p0.scriptStr, [
|
|
4004
4008
|
props
|
|
4005
4009
|
], "p0.scriptStr"),
|
|
4006
|
-
id: _fnSignal((p0) => p0.id
|
|
4010
|
+
"data-id": _fnSignal((p0) => p0.id, [
|
|
4007
4011
|
props
|
|
4008
|
-
],
|
|
4012
|
+
], "p0.id")
|
|
4009
4013
|
}, null, 3, "WO_0");
|
|
4010
4014
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
4011
4015
|
function getGlobalThis() {
|
|
@@ -4393,7 +4397,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4393
4397
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4394
4398
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4395
4399
|
}
|
|
4396
|
-
const SDK_VERSION = "0.14.
|
|
4400
|
+
const SDK_VERSION = "0.14.11";
|
|
4397
4401
|
const registry = {};
|
|
4398
4402
|
function register(type, info) {
|
|
4399
4403
|
let typeList = registry[type];
|
|
@@ -5026,10 +5030,12 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5026
5030
|
`.trim()
|
|
5027
5031
|
});
|
|
5028
5032
|
return /* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
5033
|
+
id: "builderio-content",
|
|
5029
5034
|
get styles() {
|
|
5030
5035
|
return state.injectedStyles;
|
|
5031
5036
|
},
|
|
5032
5037
|
[_IMMUTABLE]: {
|
|
5038
|
+
id: _IMMUTABLE,
|
|
5033
5039
|
styles: _fnSignal((p0) => p0.injectedStyles, [
|
|
5034
5040
|
state
|
|
5035
5041
|
], "p0.injectedStyles")
|
|
@@ -5160,10 +5166,12 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5160
5166
|
},
|
|
5161
5167
|
children: [
|
|
5162
5168
|
props.isSsrAbTest ? /* @__PURE__ */ _jsxC(InlinedScript, {
|
|
5169
|
+
id: "builderio-variant-visibility",
|
|
5163
5170
|
get scriptStr() {
|
|
5164
5171
|
return state.scriptStr;
|
|
5165
5172
|
},
|
|
5166
5173
|
[_IMMUTABLE]: {
|
|
5174
|
+
id: _IMMUTABLE,
|
|
5167
5175
|
scriptStr: _fnSignal((p0) => p0.scriptStr, [
|
|
5168
5176
|
state
|
|
5169
5177
|
], "p0.scriptStr")
|
|
@@ -5329,40 +5337,36 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
5329
5337
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
5330
5338
|
children: [
|
|
5331
5339
|
!props.isNestedRender && TARGET !== "reactNative" ? /* @__PURE__ */ _jsxC(InlinedScript, {
|
|
5340
|
+
id: "builderio-init-variants-fns",
|
|
5332
5341
|
get scriptStr() {
|
|
5333
|
-
return
|
|
5342
|
+
return getInitVariantsFnsScriptString();
|
|
5334
5343
|
},
|
|
5335
5344
|
[_IMMUTABLE]: {
|
|
5345
|
+
id: _IMMUTABLE,
|
|
5336
5346
|
scriptStr: _IMMUTABLE
|
|
5337
5347
|
}
|
|
5338
5348
|
}, 3, "XM_0") : null,
|
|
5339
5349
|
state.shouldRenderVariants ? /* @__PURE__ */ _jsxC(Fragment, {
|
|
5340
5350
|
children: [
|
|
5341
5351
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
5342
|
-
|
|
5343
|
-
var _a;
|
|
5344
|
-
return `variants-styles-${(_a = props.content) == null ? void 0 : _a.id}`;
|
|
5345
|
-
},
|
|
5352
|
+
id: "builderio-variants",
|
|
5346
5353
|
get styles() {
|
|
5347
5354
|
return hideVariantsStyleString.value;
|
|
5348
5355
|
},
|
|
5349
5356
|
[_IMMUTABLE]: {
|
|
5350
|
-
id:
|
|
5351
|
-
var _a;
|
|
5352
|
-
return `variants-styles-${(_a = p0.content) == null ? void 0 : _a.id}`;
|
|
5353
|
-
}, [
|
|
5354
|
-
props
|
|
5355
|
-
], "`variants-styles-${p0.content?.id}`"),
|
|
5357
|
+
id: _IMMUTABLE,
|
|
5356
5358
|
styles: _fnSignal((p0) => p0.value, [
|
|
5357
5359
|
hideVariantsStyleString
|
|
5358
5360
|
], "p0.value")
|
|
5359
5361
|
}
|
|
5360
5362
|
}, 3, "XM_1"),
|
|
5361
5363
|
/* @__PURE__ */ _jsxC(InlinedScript, {
|
|
5364
|
+
id: "builderio-variants-visibility",
|
|
5362
5365
|
get scriptStr() {
|
|
5363
5366
|
return updateCookieAndStylesScriptStr.value;
|
|
5364
5367
|
},
|
|
5365
5368
|
[_IMMUTABLE]: {
|
|
5369
|
+
id: _IMMUTABLE,
|
|
5366
5370
|
scriptStr: _fnSignal((p0) => p0.value, [
|
|
5367
5371
|
updateCookieAndStylesScriptStr
|
|
5368
5372
|
], "p0.value")
|
package/lib/edge/index.qwik.cjs
CHANGED
|
@@ -3935,7 +3935,7 @@ const InlinedStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
3935
3935
|
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.styles, [
|
|
3936
3936
|
props
|
|
3937
3937
|
], "p0.styles"),
|
|
3938
|
-
id: qwik._fnSignal((p0) => p0.id, [
|
|
3938
|
+
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
3939
3939
|
props
|
|
3940
3940
|
], "p0.id")
|
|
3941
3941
|
}, null, 3, "NG_0");
|
|
@@ -4004,10 +4004,12 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
4004
4004
|
]));
|
|
4005
4005
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
4006
4006
|
children: css.value && canShowBlock.value ? /* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
4007
|
+
id: "builderio-block",
|
|
4007
4008
|
get styles() {
|
|
4008
4009
|
return css.value;
|
|
4009
4010
|
},
|
|
4010
4011
|
[qwik._IMMUTABLE]: {
|
|
4012
|
+
id: qwik._IMMUTABLE,
|
|
4011
4013
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
4012
4014
|
css
|
|
4013
4015
|
], "p0.value")
|
|
@@ -4854,10 +4856,12 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
4854
4856
|
], "p0.value")
|
|
4855
4857
|
}, [
|
|
4856
4858
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
4859
|
+
id: "builderio-columns",
|
|
4857
4860
|
get styles() {
|
|
4858
4861
|
return columnsStyles.value;
|
|
4859
4862
|
},
|
|
4860
4863
|
[qwik._IMMUTABLE]: {
|
|
4864
|
+
id: qwik._IMMUTABLE,
|
|
4861
4865
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
4862
4866
|
columnsStyles
|
|
4863
4867
|
], "p0.value")
|
|
@@ -7220,7 +7224,7 @@ const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
7220
7224
|
};
|
|
7221
7225
|
const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
|
|
7222
7226
|
const isHydrationTarget = getIsHydrationTarget(TARGET);
|
|
7223
|
-
const
|
|
7227
|
+
const getInitVariantsFnsScriptString = () => `
|
|
7224
7228
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
7225
7229
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
7226
7230
|
`;
|
|
@@ -7236,9 +7240,9 @@ const InlinedScript = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
7236
7240
|
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
7237
7241
|
props
|
|
7238
7242
|
], "p0.scriptStr"),
|
|
7239
|
-
id: qwik._fnSignal((p0) => p0.id
|
|
7243
|
+
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
7240
7244
|
props
|
|
7241
|
-
],
|
|
7245
|
+
], "p0.id")
|
|
7242
7246
|
}, null, 3, "WO_0");
|
|
7243
7247
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
7244
7248
|
function getGlobalThis() {
|
|
@@ -7626,7 +7630,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7626
7630
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
7627
7631
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
7628
7632
|
}
|
|
7629
|
-
const SDK_VERSION = "0.14.
|
|
7633
|
+
const SDK_VERSION = "0.14.11";
|
|
7630
7634
|
const registry = {};
|
|
7631
7635
|
function register(type, info) {
|
|
7632
7636
|
let typeList = registry[type];
|
|
@@ -8259,10 +8263,12 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
8259
8263
|
`.trim()
|
|
8260
8264
|
});
|
|
8261
8265
|
return /* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
8266
|
+
id: "builderio-content",
|
|
8262
8267
|
get styles() {
|
|
8263
8268
|
return state.injectedStyles;
|
|
8264
8269
|
},
|
|
8265
8270
|
[qwik._IMMUTABLE]: {
|
|
8271
|
+
id: qwik._IMMUTABLE,
|
|
8266
8272
|
styles: qwik._fnSignal((p0) => p0.injectedStyles, [
|
|
8267
8273
|
state
|
|
8268
8274
|
], "p0.injectedStyles")
|
|
@@ -8393,10 +8399,12 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
8393
8399
|
},
|
|
8394
8400
|
children: [
|
|
8395
8401
|
props.isSsrAbTest ? /* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
8402
|
+
id: "builderio-variant-visibility",
|
|
8396
8403
|
get scriptStr() {
|
|
8397
8404
|
return state.scriptStr;
|
|
8398
8405
|
},
|
|
8399
8406
|
[qwik._IMMUTABLE]: {
|
|
8407
|
+
id: qwik._IMMUTABLE,
|
|
8400
8408
|
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
8401
8409
|
state
|
|
8402
8410
|
], "p0.scriptStr")
|
|
@@ -8562,40 +8570,36 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
8562
8570
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
8563
8571
|
children: [
|
|
8564
8572
|
!props.isNestedRender && TARGET !== "reactNative" ? /* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
8573
|
+
id: "builderio-init-variants-fns",
|
|
8565
8574
|
get scriptStr() {
|
|
8566
|
-
return
|
|
8575
|
+
return getInitVariantsFnsScriptString();
|
|
8567
8576
|
},
|
|
8568
8577
|
[qwik._IMMUTABLE]: {
|
|
8578
|
+
id: qwik._IMMUTABLE,
|
|
8569
8579
|
scriptStr: qwik._IMMUTABLE
|
|
8570
8580
|
}
|
|
8571
8581
|
}, 3, "XM_0") : null,
|
|
8572
8582
|
state.shouldRenderVariants ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
8573
8583
|
children: [
|
|
8574
8584
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
8575
|
-
|
|
8576
|
-
var _a;
|
|
8577
|
-
return `variants-styles-${(_a = props.content) == null ? void 0 : _a.id}`;
|
|
8578
|
-
},
|
|
8585
|
+
id: "builderio-variants",
|
|
8579
8586
|
get styles() {
|
|
8580
8587
|
return hideVariantsStyleString.value;
|
|
8581
8588
|
},
|
|
8582
8589
|
[qwik._IMMUTABLE]: {
|
|
8583
|
-
id: qwik.
|
|
8584
|
-
var _a;
|
|
8585
|
-
return `variants-styles-${(_a = p0.content) == null ? void 0 : _a.id}`;
|
|
8586
|
-
}, [
|
|
8587
|
-
props
|
|
8588
|
-
], "`variants-styles-${p0.content?.id}`"),
|
|
8590
|
+
id: qwik._IMMUTABLE,
|
|
8589
8591
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
8590
8592
|
hideVariantsStyleString
|
|
8591
8593
|
], "p0.value")
|
|
8592
8594
|
}
|
|
8593
8595
|
}, 3, "XM_1"),
|
|
8594
8596
|
/* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
8597
|
+
id: "builderio-variants-visibility",
|
|
8595
8598
|
get scriptStr() {
|
|
8596
8599
|
return updateCookieAndStylesScriptStr.value;
|
|
8597
8600
|
},
|
|
8598
8601
|
[qwik._IMMUTABLE]: {
|
|
8602
|
+
id: qwik._IMMUTABLE,
|
|
8599
8603
|
scriptStr: qwik._fnSignal((p0) => p0.value, [
|
|
8600
8604
|
updateCookieAndStylesScriptStr
|
|
8601
8605
|
], "p0.value")
|
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -3933,7 +3933,7 @@ const InlinedStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
3933
3933
|
dangerouslySetInnerHTML: _fnSignal((p0) => p0.styles, [
|
|
3934
3934
|
props
|
|
3935
3935
|
], "p0.styles"),
|
|
3936
|
-
id: _fnSignal((p0) => p0.id, [
|
|
3936
|
+
"data-id": _fnSignal((p0) => p0.id, [
|
|
3937
3937
|
props
|
|
3938
3938
|
], "p0.id")
|
|
3939
3939
|
}, null, 3, "NG_0");
|
|
@@ -4002,10 +4002,12 @@ const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
4002
4002
|
]));
|
|
4003
4003
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
4004
4004
|
children: css.value && canShowBlock.value ? /* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
4005
|
+
id: "builderio-block",
|
|
4005
4006
|
get styles() {
|
|
4006
4007
|
return css.value;
|
|
4007
4008
|
},
|
|
4008
4009
|
[_IMMUTABLE]: {
|
|
4010
|
+
id: _IMMUTABLE,
|
|
4009
4011
|
styles: _fnSignal((p0) => p0.value, [
|
|
4010
4012
|
css
|
|
4011
4013
|
], "p0.value")
|
|
@@ -4852,10 +4854,12 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4852
4854
|
], "p0.value")
|
|
4853
4855
|
}, [
|
|
4854
4856
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
4857
|
+
id: "builderio-columns",
|
|
4855
4858
|
get styles() {
|
|
4856
4859
|
return columnsStyles.value;
|
|
4857
4860
|
},
|
|
4858
4861
|
[_IMMUTABLE]: {
|
|
4862
|
+
id: _IMMUTABLE,
|
|
4859
4863
|
styles: _fnSignal((p0) => p0.value, [
|
|
4860
4864
|
columnsStyles
|
|
4861
4865
|
], "p0.value")
|
|
@@ -7218,7 +7222,7 @@ const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
7218
7222
|
};
|
|
7219
7223
|
const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
|
|
7220
7224
|
const isHydrationTarget = getIsHydrationTarget(TARGET);
|
|
7221
|
-
const
|
|
7225
|
+
const getInitVariantsFnsScriptString = () => `
|
|
7222
7226
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
7223
7227
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
7224
7228
|
`;
|
|
@@ -7234,9 +7238,9 @@ const InlinedScript = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
7234
7238
|
dangerouslySetInnerHTML: _fnSignal((p0) => p0.scriptStr, [
|
|
7235
7239
|
props
|
|
7236
7240
|
], "p0.scriptStr"),
|
|
7237
|
-
id: _fnSignal((p0) => p0.id
|
|
7241
|
+
"data-id": _fnSignal((p0) => p0.id, [
|
|
7238
7242
|
props
|
|
7239
|
-
],
|
|
7243
|
+
], "p0.id")
|
|
7240
7244
|
}, null, 3, "WO_0");
|
|
7241
7245
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
7242
7246
|
function getGlobalThis() {
|
|
@@ -7624,7 +7628,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7624
7628
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
7625
7629
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
7626
7630
|
}
|
|
7627
|
-
const SDK_VERSION = "0.14.
|
|
7631
|
+
const SDK_VERSION = "0.14.11";
|
|
7628
7632
|
const registry = {};
|
|
7629
7633
|
function register(type, info) {
|
|
7630
7634
|
let typeList = registry[type];
|
|
@@ -8257,10 +8261,12 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
8257
8261
|
`.trim()
|
|
8258
8262
|
});
|
|
8259
8263
|
return /* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
8264
|
+
id: "builderio-content",
|
|
8260
8265
|
get styles() {
|
|
8261
8266
|
return state.injectedStyles;
|
|
8262
8267
|
},
|
|
8263
8268
|
[_IMMUTABLE]: {
|
|
8269
|
+
id: _IMMUTABLE,
|
|
8264
8270
|
styles: _fnSignal((p0) => p0.injectedStyles, [
|
|
8265
8271
|
state
|
|
8266
8272
|
], "p0.injectedStyles")
|
|
@@ -8391,10 +8397,12 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
8391
8397
|
},
|
|
8392
8398
|
children: [
|
|
8393
8399
|
props.isSsrAbTest ? /* @__PURE__ */ _jsxC(InlinedScript, {
|
|
8400
|
+
id: "builderio-variant-visibility",
|
|
8394
8401
|
get scriptStr() {
|
|
8395
8402
|
return state.scriptStr;
|
|
8396
8403
|
},
|
|
8397
8404
|
[_IMMUTABLE]: {
|
|
8405
|
+
id: _IMMUTABLE,
|
|
8398
8406
|
scriptStr: _fnSignal((p0) => p0.scriptStr, [
|
|
8399
8407
|
state
|
|
8400
8408
|
], "p0.scriptStr")
|
|
@@ -8560,40 +8568,36 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
8560
8568
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
8561
8569
|
children: [
|
|
8562
8570
|
!props.isNestedRender && TARGET !== "reactNative" ? /* @__PURE__ */ _jsxC(InlinedScript, {
|
|
8571
|
+
id: "builderio-init-variants-fns",
|
|
8563
8572
|
get scriptStr() {
|
|
8564
|
-
return
|
|
8573
|
+
return getInitVariantsFnsScriptString();
|
|
8565
8574
|
},
|
|
8566
8575
|
[_IMMUTABLE]: {
|
|
8576
|
+
id: _IMMUTABLE,
|
|
8567
8577
|
scriptStr: _IMMUTABLE
|
|
8568
8578
|
}
|
|
8569
8579
|
}, 3, "XM_0") : null,
|
|
8570
8580
|
state.shouldRenderVariants ? /* @__PURE__ */ _jsxC(Fragment, {
|
|
8571
8581
|
children: [
|
|
8572
8582
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
8573
|
-
|
|
8574
|
-
var _a;
|
|
8575
|
-
return `variants-styles-${(_a = props.content) == null ? void 0 : _a.id}`;
|
|
8576
|
-
},
|
|
8583
|
+
id: "builderio-variants",
|
|
8577
8584
|
get styles() {
|
|
8578
8585
|
return hideVariantsStyleString.value;
|
|
8579
8586
|
},
|
|
8580
8587
|
[_IMMUTABLE]: {
|
|
8581
|
-
id:
|
|
8582
|
-
var _a;
|
|
8583
|
-
return `variants-styles-${(_a = p0.content) == null ? void 0 : _a.id}`;
|
|
8584
|
-
}, [
|
|
8585
|
-
props
|
|
8586
|
-
], "`variants-styles-${p0.content?.id}`"),
|
|
8588
|
+
id: _IMMUTABLE,
|
|
8587
8589
|
styles: _fnSignal((p0) => p0.value, [
|
|
8588
8590
|
hideVariantsStyleString
|
|
8589
8591
|
], "p0.value")
|
|
8590
8592
|
}
|
|
8591
8593
|
}, 3, "XM_1"),
|
|
8592
8594
|
/* @__PURE__ */ _jsxC(InlinedScript, {
|
|
8595
|
+
id: "builderio-variants-visibility",
|
|
8593
8596
|
get scriptStr() {
|
|
8594
8597
|
return updateCookieAndStylesScriptStr.value;
|
|
8595
8598
|
},
|
|
8596
8599
|
[_IMMUTABLE]: {
|
|
8600
|
+
id: _IMMUTABLE,
|
|
8597
8601
|
scriptStr: _fnSignal((p0) => p0.value, [
|
|
8598
8602
|
updateCookieAndStylesScriptStr
|
|
8599
8603
|
], "p0.value")
|
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -806,7 +806,7 @@ const InlinedStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
806
806
|
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.styles, [
|
|
807
807
|
props
|
|
808
808
|
], "p0.styles"),
|
|
809
|
-
id: qwik._fnSignal((p0) => p0.id, [
|
|
809
|
+
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
810
810
|
props
|
|
811
811
|
], "p0.id")
|
|
812
812
|
}, null, 3, "NG_0");
|
|
@@ -875,10 +875,12 @@ const BlockStyles = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlin
|
|
|
875
875
|
]));
|
|
876
876
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
877
877
|
children: css.value && canShowBlock.value ? /* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
878
|
+
id: "builderio-block",
|
|
878
879
|
get styles() {
|
|
879
880
|
return css.value;
|
|
880
881
|
},
|
|
881
882
|
[qwik._IMMUTABLE]: {
|
|
883
|
+
id: qwik._IMMUTABLE,
|
|
882
884
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
883
885
|
css
|
|
884
886
|
], "p0.value")
|
|
@@ -1725,10 +1727,12 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
1725
1727
|
], "p0.value")
|
|
1726
1728
|
}, [
|
|
1727
1729
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
1730
|
+
id: "builderio-columns",
|
|
1728
1731
|
get styles() {
|
|
1729
1732
|
return columnsStyles.value;
|
|
1730
1733
|
},
|
|
1731
1734
|
[qwik._IMMUTABLE]: {
|
|
1735
|
+
id: qwik._IMMUTABLE,
|
|
1732
1736
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
1733
1737
|
columnsStyles
|
|
1734
1738
|
], "p0.value")
|
|
@@ -4091,7 +4095,7 @@ const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
4091
4095
|
};
|
|
4092
4096
|
const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
|
|
4093
4097
|
const isHydrationTarget = getIsHydrationTarget(TARGET);
|
|
4094
|
-
const
|
|
4098
|
+
const getInitVariantsFnsScriptString = () => `
|
|
4095
4099
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
4096
4100
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
4097
4101
|
`;
|
|
@@ -4107,9 +4111,9 @@ const InlinedScript = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
4107
4111
|
dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
4108
4112
|
props
|
|
4109
4113
|
], "p0.scriptStr"),
|
|
4110
|
-
id: qwik._fnSignal((p0) => p0.id
|
|
4114
|
+
"data-id": qwik._fnSignal((p0) => p0.id, [
|
|
4111
4115
|
props
|
|
4112
|
-
],
|
|
4116
|
+
], "p0.id")
|
|
4113
4117
|
}, null, 3, "WO_0");
|
|
4114
4118
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
4115
4119
|
function getGlobalThis() {
|
|
@@ -4497,7 +4501,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4497
4501
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4498
4502
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4499
4503
|
}
|
|
4500
|
-
const SDK_VERSION = "0.14.
|
|
4504
|
+
const SDK_VERSION = "0.14.11";
|
|
4501
4505
|
const registry = {};
|
|
4502
4506
|
function register(type, info) {
|
|
4503
4507
|
let typeList = registry[type];
|
|
@@ -5130,10 +5134,12 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5130
5134
|
`.trim()
|
|
5131
5135
|
});
|
|
5132
5136
|
return /* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
5137
|
+
id: "builderio-content",
|
|
5133
5138
|
get styles() {
|
|
5134
5139
|
return state.injectedStyles;
|
|
5135
5140
|
},
|
|
5136
5141
|
[qwik._IMMUTABLE]: {
|
|
5142
|
+
id: qwik._IMMUTABLE,
|
|
5137
5143
|
styles: qwik._fnSignal((p0) => p0.injectedStyles, [
|
|
5138
5144
|
state
|
|
5139
5145
|
], "p0.injectedStyles")
|
|
@@ -5264,10 +5270,12 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
5264
5270
|
},
|
|
5265
5271
|
children: [
|
|
5266
5272
|
props.isSsrAbTest ? /* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
5273
|
+
id: "builderio-variant-visibility",
|
|
5267
5274
|
get scriptStr() {
|
|
5268
5275
|
return state.scriptStr;
|
|
5269
5276
|
},
|
|
5270
5277
|
[qwik._IMMUTABLE]: {
|
|
5278
|
+
id: qwik._IMMUTABLE,
|
|
5271
5279
|
scriptStr: qwik._fnSignal((p0) => p0.scriptStr, [
|
|
5272
5280
|
state
|
|
5273
5281
|
], "p0.scriptStr")
|
|
@@ -5433,40 +5441,36 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
5433
5441
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
5434
5442
|
children: [
|
|
5435
5443
|
!props.isNestedRender && TARGET !== "reactNative" ? /* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
5444
|
+
id: "builderio-init-variants-fns",
|
|
5436
5445
|
get scriptStr() {
|
|
5437
|
-
return
|
|
5446
|
+
return getInitVariantsFnsScriptString();
|
|
5438
5447
|
},
|
|
5439
5448
|
[qwik._IMMUTABLE]: {
|
|
5449
|
+
id: qwik._IMMUTABLE,
|
|
5440
5450
|
scriptStr: qwik._IMMUTABLE
|
|
5441
5451
|
}
|
|
5442
5452
|
}, 3, "XM_0") : null,
|
|
5443
5453
|
state.shouldRenderVariants ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
5444
5454
|
children: [
|
|
5445
5455
|
/* @__PURE__ */ qwik._jsxC(InlinedStyles, {
|
|
5446
|
-
|
|
5447
|
-
var _a;
|
|
5448
|
-
return `variants-styles-${(_a = props.content) == null ? void 0 : _a.id}`;
|
|
5449
|
-
},
|
|
5456
|
+
id: "builderio-variants",
|
|
5450
5457
|
get styles() {
|
|
5451
5458
|
return hideVariantsStyleString.value;
|
|
5452
5459
|
},
|
|
5453
5460
|
[qwik._IMMUTABLE]: {
|
|
5454
|
-
id: qwik.
|
|
5455
|
-
var _a;
|
|
5456
|
-
return `variants-styles-${(_a = p0.content) == null ? void 0 : _a.id}`;
|
|
5457
|
-
}, [
|
|
5458
|
-
props
|
|
5459
|
-
], "`variants-styles-${p0.content?.id}`"),
|
|
5461
|
+
id: qwik._IMMUTABLE,
|
|
5460
5462
|
styles: qwik._fnSignal((p0) => p0.value, [
|
|
5461
5463
|
hideVariantsStyleString
|
|
5462
5464
|
], "p0.value")
|
|
5463
5465
|
}
|
|
5464
5466
|
}, 3, "XM_1"),
|
|
5465
5467
|
/* @__PURE__ */ qwik._jsxC(InlinedScript, {
|
|
5468
|
+
id: "builderio-variants-visibility",
|
|
5466
5469
|
get scriptStr() {
|
|
5467
5470
|
return updateCookieAndStylesScriptStr.value;
|
|
5468
5471
|
},
|
|
5469
5472
|
[qwik._IMMUTABLE]: {
|
|
5473
|
+
id: qwik._IMMUTABLE,
|
|
5470
5474
|
scriptStr: qwik._fnSignal((p0) => p0.value, [
|
|
5471
5475
|
updateCookieAndStylesScriptStr
|
|
5472
5476
|
], "p0.value")
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -804,7 +804,7 @@ const InlinedStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
804
804
|
dangerouslySetInnerHTML: _fnSignal((p0) => p0.styles, [
|
|
805
805
|
props
|
|
806
806
|
], "p0.styles"),
|
|
807
|
-
id: _fnSignal((p0) => p0.id, [
|
|
807
|
+
"data-id": _fnSignal((p0) => p0.id, [
|
|
808
808
|
props
|
|
809
809
|
], "p0.id")
|
|
810
810
|
}, null, 3, "NG_0");
|
|
@@ -873,10 +873,12 @@ const BlockStyles = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pro
|
|
|
873
873
|
]));
|
|
874
874
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
875
875
|
children: css.value && canShowBlock.value ? /* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
876
|
+
id: "builderio-block",
|
|
876
877
|
get styles() {
|
|
877
878
|
return css.value;
|
|
878
879
|
},
|
|
879
880
|
[_IMMUTABLE]: {
|
|
881
|
+
id: _IMMUTABLE,
|
|
880
882
|
styles: _fnSignal((p0) => p0.value, [
|
|
881
883
|
css
|
|
882
884
|
], "p0.value")
|
|
@@ -1723,10 +1725,12 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
1723
1725
|
], "p0.value")
|
|
1724
1726
|
}, [
|
|
1725
1727
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
1728
|
+
id: "builderio-columns",
|
|
1726
1729
|
get styles() {
|
|
1727
1730
|
return columnsStyles.value;
|
|
1728
1731
|
},
|
|
1729
1732
|
[_IMMUTABLE]: {
|
|
1733
|
+
id: _IMMUTABLE,
|
|
1730
1734
|
styles: _fnSignal((p0) => p0.value, [
|
|
1731
1735
|
columnsStyles
|
|
1732
1736
|
], "p0.value")
|
|
@@ -4089,7 +4093,7 @@ const checkShouldRenderVariants = ({ canTrack, content }) => {
|
|
|
4089
4093
|
};
|
|
4090
4094
|
const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
|
|
4091
4095
|
const isHydrationTarget = getIsHydrationTarget(TARGET);
|
|
4092
|
-
const
|
|
4096
|
+
const getInitVariantsFnsScriptString = () => `
|
|
4093
4097
|
window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
|
|
4094
4098
|
window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
|
|
4095
4099
|
`;
|
|
@@ -4105,9 +4109,9 @@ const InlinedScript = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
4105
4109
|
dangerouslySetInnerHTML: _fnSignal((p0) => p0.scriptStr, [
|
|
4106
4110
|
props
|
|
4107
4111
|
], "p0.scriptStr"),
|
|
4108
|
-
id: _fnSignal((p0) => p0.id
|
|
4112
|
+
"data-id": _fnSignal((p0) => p0.id, [
|
|
4109
4113
|
props
|
|
4110
|
-
],
|
|
4114
|
+
], "p0.id")
|
|
4111
4115
|
}, null, 3, "WO_0");
|
|
4112
4116
|
}, "InlinedScript_component_hwThBdhA8rw"));
|
|
4113
4117
|
function getGlobalThis() {
|
|
@@ -4495,7 +4499,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4495
4499
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
4496
4500
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
4497
4501
|
}
|
|
4498
|
-
const SDK_VERSION = "0.14.
|
|
4502
|
+
const SDK_VERSION = "0.14.11";
|
|
4499
4503
|
const registry = {};
|
|
4500
4504
|
function register(type, info) {
|
|
4501
4505
|
let typeList = registry[type];
|
|
@@ -5128,10 +5132,12 @@ ${getDefaultStyles(props.isNestedRender)}
|
|
|
5128
5132
|
`.trim()
|
|
5129
5133
|
});
|
|
5130
5134
|
return /* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
5135
|
+
id: "builderio-content",
|
|
5131
5136
|
get styles() {
|
|
5132
5137
|
return state.injectedStyles;
|
|
5133
5138
|
},
|
|
5134
5139
|
[_IMMUTABLE]: {
|
|
5140
|
+
id: _IMMUTABLE,
|
|
5135
5141
|
styles: _fnSignal((p0) => p0.injectedStyles, [
|
|
5136
5142
|
state
|
|
5137
5143
|
], "p0.injectedStyles")
|
|
@@ -5262,10 +5268,12 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
5262
5268
|
},
|
|
5263
5269
|
children: [
|
|
5264
5270
|
props.isSsrAbTest ? /* @__PURE__ */ _jsxC(InlinedScript, {
|
|
5271
|
+
id: "builderio-variant-visibility",
|
|
5265
5272
|
get scriptStr() {
|
|
5266
5273
|
return state.scriptStr;
|
|
5267
5274
|
},
|
|
5268
5275
|
[_IMMUTABLE]: {
|
|
5276
|
+
id: _IMMUTABLE,
|
|
5269
5277
|
scriptStr: _fnSignal((p0) => p0.scriptStr, [
|
|
5270
5278
|
state
|
|
5271
5279
|
], "p0.scriptStr")
|
|
@@ -5431,40 +5439,36 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
5431
5439
|
return /* @__PURE__ */ _jsxC(Fragment$1, {
|
|
5432
5440
|
children: [
|
|
5433
5441
|
!props.isNestedRender && TARGET !== "reactNative" ? /* @__PURE__ */ _jsxC(InlinedScript, {
|
|
5442
|
+
id: "builderio-init-variants-fns",
|
|
5434
5443
|
get scriptStr() {
|
|
5435
|
-
return
|
|
5444
|
+
return getInitVariantsFnsScriptString();
|
|
5436
5445
|
},
|
|
5437
5446
|
[_IMMUTABLE]: {
|
|
5447
|
+
id: _IMMUTABLE,
|
|
5438
5448
|
scriptStr: _IMMUTABLE
|
|
5439
5449
|
}
|
|
5440
5450
|
}, 3, "XM_0") : null,
|
|
5441
5451
|
state.shouldRenderVariants ? /* @__PURE__ */ _jsxC(Fragment, {
|
|
5442
5452
|
children: [
|
|
5443
5453
|
/* @__PURE__ */ _jsxC(InlinedStyles, {
|
|
5444
|
-
|
|
5445
|
-
var _a;
|
|
5446
|
-
return `variants-styles-${(_a = props.content) == null ? void 0 : _a.id}`;
|
|
5447
|
-
},
|
|
5454
|
+
id: "builderio-variants",
|
|
5448
5455
|
get styles() {
|
|
5449
5456
|
return hideVariantsStyleString.value;
|
|
5450
5457
|
},
|
|
5451
5458
|
[_IMMUTABLE]: {
|
|
5452
|
-
id:
|
|
5453
|
-
var _a;
|
|
5454
|
-
return `variants-styles-${(_a = p0.content) == null ? void 0 : _a.id}`;
|
|
5455
|
-
}, [
|
|
5456
|
-
props
|
|
5457
|
-
], "`variants-styles-${p0.content?.id}`"),
|
|
5459
|
+
id: _IMMUTABLE,
|
|
5458
5460
|
styles: _fnSignal((p0) => p0.value, [
|
|
5459
5461
|
hideVariantsStyleString
|
|
5460
5462
|
], "p0.value")
|
|
5461
5463
|
}
|
|
5462
5464
|
}, 3, "XM_1"),
|
|
5463
5465
|
/* @__PURE__ */ _jsxC(InlinedScript, {
|
|
5466
|
+
id: "builderio-variants-visibility",
|
|
5464
5467
|
get scriptStr() {
|
|
5465
5468
|
return updateCookieAndStylesScriptStr.value;
|
|
5466
5469
|
},
|
|
5467
5470
|
[_IMMUTABLE]: {
|
|
5471
|
+
id: _IMMUTABLE,
|
|
5468
5472
|
scriptStr: _fnSignal((p0) => p0.value, [
|
|
5469
5473
|
updateCookieAndStylesScriptStr
|
|
5470
5474
|
], "p0.value")
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ type VariantData = {
|
|
|
32
32
|
id: string;
|
|
33
33
|
testRatio?: number;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const getInitVariantsFnsScriptString: () => string;
|
|
36
36
|
export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
|
|
37
37
|
export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
|
|
38
38
|
variationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.14.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.11";
|