@builder.io/sdk-qwik 0.12.3 → 0.12.4
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 +251 -123
- package/lib/browser/index.qwik.mjs +252 -124
- package/lib/edge/index.qwik.cjs +251 -123
- package/lib/edge/index.qwik.mjs +252 -124
- package/lib/node/index.qwik.cjs +251 -123
- package/lib/node/index.qwik.mjs +252 -124
- package/package.json +1 -1
- package/types/src/blocks/button/button.types.d.ts +2 -1
- package/types/src/blocks/columns/columns.d.ts +1 -1
- package/types/src/blocks/columns/columns.types.d.ts +3 -3
- package/types/src/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/src/components/block/block.d.ts +1 -0
- package/types/src/components/block/components/block-wrapper.d.ts +1 -0
- package/types/src/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
- package/types/src/components/block/components/repeated-block.d.ts +3 -5
- package/types/src/components/blocks/blocks.types.d.ts +1 -0
- package/types/src/components/content-variants/content-variants.types.d.ts +6 -2
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/functions/get-block-properties.d.ts +1 -2
- package/types/src/functions/get-class-prop-name.d.ts +1 -0
- package/types/src/functions/get-style.d.ts +12 -0
- package/types/src/functions/transform-block-properties.d.ts +2 -2
- package/types/src/functions/transform-style-property.d.ts +7 -0
- package/types/src/helpers/omit.d.ts +1 -0
- package/types/src/types/builder-block.d.ts +1 -0
- package/types/src/types/builder-props.d.ts +3 -0
package/lib/edge/index.qwik.mjs
CHANGED
|
@@ -1,36 +1,84 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxC,
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, _jsxC, Slot as Slot$1, _fnSignal, _IMMUTABLE, createContextId, _jsxQ, useComputedQrl, useLexicalScope, useStore, useContextProvider, _wrapProp, useStylesScopedQrl, useContext, Fragment as Fragment$1, _jsxS, useSignal, useOn, useTaskQrl, createElement } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { isServer } from "@builder.io/qwik/build";
|
|
4
|
-
const
|
|
4
|
+
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
5
|
+
"area",
|
|
6
|
+
"base",
|
|
7
|
+
"br",
|
|
8
|
+
"col",
|
|
9
|
+
"embed",
|
|
10
|
+
"hr",
|
|
11
|
+
"img",
|
|
12
|
+
"input",
|
|
13
|
+
"keygen",
|
|
14
|
+
"link",
|
|
15
|
+
"meta",
|
|
16
|
+
"param",
|
|
17
|
+
"source",
|
|
18
|
+
"track",
|
|
19
|
+
"wbr"
|
|
20
|
+
]);
|
|
21
|
+
const isEmptyElement = (tagName) => {
|
|
22
|
+
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
23
|
+
};
|
|
24
|
+
const DynamicRenderer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
25
|
+
_jsxBranch();
|
|
5
26
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
6
|
-
children: props.
|
|
27
|
+
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
|
|
7
28
|
...props.attributes,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, {
|
|
12
|
-
href: _fnSignal((p0) => p0.link, [
|
|
13
|
-
props
|
|
14
|
-
], "p0.link"),
|
|
15
|
-
role: "button",
|
|
16
|
-
target: _fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
|
|
17
|
-
props
|
|
18
|
-
], 'p0.openLinkInNewTab?"_blank":undefined')
|
|
19
|
-
}, 0, "jc_0") : /* @__PURE__ */ _jsxS("button", {
|
|
29
|
+
...props.actionAttributes,
|
|
30
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
|
|
31
|
+
}, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
|
|
20
32
|
...props.attributes,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
...props.actionAttributes,
|
|
34
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
|
|
35
|
+
}, 0, "yW_3") : /* @__PURE__ */ _jsxC(props.TagName, {
|
|
36
|
+
...props.attributes,
|
|
37
|
+
...props.actionAttributes
|
|
38
|
+
}, 0, "yW_4")
|
|
39
|
+
}, 1, "yW_5");
|
|
40
|
+
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
41
|
+
const TARGET = "qwik";
|
|
42
|
+
const getClassPropName = () => {
|
|
43
|
+
switch (TARGET) {
|
|
44
|
+
case "react":
|
|
45
|
+
case "reactNative":
|
|
46
|
+
case "rsc":
|
|
47
|
+
return "className";
|
|
48
|
+
case "svelte":
|
|
49
|
+
case "vue":
|
|
50
|
+
case "solid":
|
|
51
|
+
case "qwik":
|
|
52
|
+
return "class";
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
56
|
+
return /* @__PURE__ */ _jsxC(DynamicRenderer, {
|
|
57
|
+
get TagName() {
|
|
58
|
+
return props.link ? props.builderLinkComponent || "a" : "button";
|
|
59
|
+
},
|
|
60
|
+
actionAttributes: {},
|
|
61
|
+
attributes: {
|
|
62
|
+
...props.attributes,
|
|
63
|
+
[getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
|
|
64
|
+
...props.link ? {
|
|
65
|
+
href: props.link,
|
|
66
|
+
target: props.openLinkInNewTab ? "_blank" : void 0,
|
|
67
|
+
role: "link"
|
|
68
|
+
} : {
|
|
69
|
+
role: "button"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
children: _fnSignal((p0) => p0.text, [
|
|
73
|
+
props
|
|
74
|
+
], "p0.text"),
|
|
75
|
+
[_IMMUTABLE]: {
|
|
76
|
+
TagName: _fnSignal((p0) => p0.link ? p0.builderLinkComponent || "a" : "button", [
|
|
30
77
|
props
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
|
|
78
|
+
], 'p0.link?p0.builderLinkComponent||"a":"button"'),
|
|
79
|
+
actionAttributes: _IMMUTABLE
|
|
80
|
+
}
|
|
81
|
+
}, 3, "jc_0");
|
|
34
82
|
}, "Button_component_gJoMUICXoUQ"));
|
|
35
83
|
const builderContext = createContextId("Builder");
|
|
36
84
|
const ComponentsContext = createContextId("Components");
|
|
@@ -62,7 +110,6 @@ const set = (obj, _path, value) => {
|
|
|
62
110
|
function isBrowser() {
|
|
63
111
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
64
112
|
}
|
|
65
|
-
const TARGET = "qwik";
|
|
66
113
|
function isIframe() {
|
|
67
114
|
return isBrowser() && window.self !== window.top;
|
|
68
115
|
}
|
|
@@ -3705,6 +3752,29 @@ function getBlockActions(options) {
|
|
|
3705
3752
|
}
|
|
3706
3753
|
return obj;
|
|
3707
3754
|
}
|
|
3755
|
+
function transformStyleProperty({ style }) {
|
|
3756
|
+
return style;
|
|
3757
|
+
}
|
|
3758
|
+
const getStyle = ({ block, context }) => {
|
|
3759
|
+
return mapStyleObjToStrIfNeeded(transformStyleProperty({
|
|
3760
|
+
style: block.style || {},
|
|
3761
|
+
context,
|
|
3762
|
+
block
|
|
3763
|
+
}));
|
|
3764
|
+
};
|
|
3765
|
+
function mapStyleObjToStrIfNeeded(style) {
|
|
3766
|
+
switch (TARGET) {
|
|
3767
|
+
case "svelte":
|
|
3768
|
+
case "vue":
|
|
3769
|
+
case "solid":
|
|
3770
|
+
return convertStyleMapToCSSArray(style).join(" ");
|
|
3771
|
+
case "qwik":
|
|
3772
|
+
case "reactNative":
|
|
3773
|
+
case "react":
|
|
3774
|
+
case "rsc":
|
|
3775
|
+
return style;
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3708
3778
|
function transformBlockProperties({ properties }) {
|
|
3709
3779
|
return properties;
|
|
3710
3780
|
}
|
|
@@ -3719,8 +3789,11 @@ function getBlockProperties({ block, context }) {
|
|
|
3719
3789
|
...extractRelevantRootBlockProperties(block),
|
|
3720
3790
|
...block.properties,
|
|
3721
3791
|
"builder-id": block.id,
|
|
3722
|
-
style:
|
|
3723
|
-
|
|
3792
|
+
style: getStyle({
|
|
3793
|
+
block,
|
|
3794
|
+
context
|
|
3795
|
+
}),
|
|
3796
|
+
[getClassPropName()]: [
|
|
3724
3797
|
block.id,
|
|
3725
3798
|
"builder-block",
|
|
3726
3799
|
block.class,
|
|
@@ -3733,56 +3806,6 @@ function getBlockProperties({ block, context }) {
|
|
|
3733
3806
|
block
|
|
3734
3807
|
});
|
|
3735
3808
|
}
|
|
3736
|
-
function getStyleAttribute(style) {
|
|
3737
|
-
switch (TARGET) {
|
|
3738
|
-
case "svelte":
|
|
3739
|
-
case "vue":
|
|
3740
|
-
case "solid":
|
|
3741
|
-
return convertStyleMapToCSSArray(style).join(" ");
|
|
3742
|
-
case "qwik":
|
|
3743
|
-
case "reactNative":
|
|
3744
|
-
case "react":
|
|
3745
|
-
case "rsc":
|
|
3746
|
-
return style;
|
|
3747
|
-
}
|
|
3748
|
-
}
|
|
3749
|
-
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
3750
|
-
"area",
|
|
3751
|
-
"base",
|
|
3752
|
-
"br",
|
|
3753
|
-
"col",
|
|
3754
|
-
"embed",
|
|
3755
|
-
"hr",
|
|
3756
|
-
"img",
|
|
3757
|
-
"input",
|
|
3758
|
-
"keygen",
|
|
3759
|
-
"link",
|
|
3760
|
-
"meta",
|
|
3761
|
-
"param",
|
|
3762
|
-
"source",
|
|
3763
|
-
"track",
|
|
3764
|
-
"wbr"
|
|
3765
|
-
]);
|
|
3766
|
-
const isEmptyElement = (tagName) => {
|
|
3767
|
-
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
3768
|
-
};
|
|
3769
|
-
const DynamicRenderer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3770
|
-
_jsxBranch();
|
|
3771
|
-
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
3772
|
-
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
|
|
3773
|
-
...props.attributes,
|
|
3774
|
-
...props.actionAttributes,
|
|
3775
|
-
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
|
|
3776
|
-
}, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
|
|
3777
|
-
...props.attributes,
|
|
3778
|
-
...props.actionAttributes,
|
|
3779
|
-
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
|
|
3780
|
-
}, 0, "yW_3") : /* @__PURE__ */ _jsxC(props.TagName, {
|
|
3781
|
-
...props.attributes,
|
|
3782
|
-
...props.actionAttributes
|
|
3783
|
-
}, 0, "yW_4")
|
|
3784
|
-
}, 1, "yW_5");
|
|
3785
|
-
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
3786
3809
|
const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
3787
3810
|
return /* @__PURE__ */ _jsxC(DynamicRenderer, {
|
|
3788
3811
|
get TagName() {
|
|
@@ -3861,6 +3884,7 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3861
3884
|
builderBlock: props.builderBlock,
|
|
3862
3885
|
context: props.context,
|
|
3863
3886
|
componentRef: props.componentRef,
|
|
3887
|
+
linkComponent: props.linkComponent,
|
|
3864
3888
|
includeBlockProps: props.includeBlockProps,
|
|
3865
3889
|
isInteractive: props.isInteractive,
|
|
3866
3890
|
contextValue: props.context
|
|
@@ -3874,10 +3898,16 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3874
3898
|
get registeredComponents() {
|
|
3875
3899
|
return props.registeredComponents;
|
|
3876
3900
|
},
|
|
3901
|
+
get linkComponent() {
|
|
3902
|
+
return props.linkComponent;
|
|
3903
|
+
},
|
|
3877
3904
|
[_IMMUTABLE]: {
|
|
3878
3905
|
context: _fnSignal((p0) => p0.context, [
|
|
3879
3906
|
props
|
|
3880
3907
|
], "p0.context"),
|
|
3908
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
3909
|
+
props
|
|
3910
|
+
], "p0.linkComponent"),
|
|
3881
3911
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
3882
3912
|
props
|
|
3883
3913
|
], "p0.registeredComponents")
|
|
@@ -3902,6 +3932,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
3902
3932
|
get registeredComponents() {
|
|
3903
3933
|
return props.registeredComponents;
|
|
3904
3934
|
},
|
|
3935
|
+
get linkComponent() {
|
|
3936
|
+
return props.linkComponent;
|
|
3937
|
+
},
|
|
3905
3938
|
[_IMMUTABLE]: {
|
|
3906
3939
|
block: _fnSignal((p0) => p0.block, [
|
|
3907
3940
|
props
|
|
@@ -3909,6 +3942,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
3909
3942
|
context: _fnSignal((p0) => p0.store, [
|
|
3910
3943
|
state
|
|
3911
3944
|
], "p0.store"),
|
|
3945
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
3946
|
+
props
|
|
3947
|
+
], "p0.linkComponent"),
|
|
3912
3948
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
3913
3949
|
props
|
|
3914
3950
|
], "p0.registeredComponents")
|
|
@@ -3955,9 +3991,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3955
3991
|
props
|
|
3956
3992
|
]));
|
|
3957
3993
|
const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3958
|
-
|
|
3994
|
+
var _a2;
|
|
3995
|
+
const [processedBlock2, props2] = useLexicalScope();
|
|
3996
|
+
const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
|
|
3997
|
+
if (shouldUseLink)
|
|
3998
|
+
return props2.linkComponent || "a";
|
|
3959
3999
|
return props2.block.tagName || "div";
|
|
3960
4000
|
}, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
|
|
4001
|
+
processedBlock,
|
|
3961
4002
|
props
|
|
3962
4003
|
]));
|
|
3963
4004
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
@@ -3987,7 +4028,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3987
4028
|
repeatItem
|
|
3988
4029
|
]));
|
|
3989
4030
|
const componentRefProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
3990
|
-
var _a2, _b, _c, _d, _e;
|
|
4031
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
3991
4032
|
const [blockComponent2, processedBlock2, props2, state2] = useLexicalScope();
|
|
3992
4033
|
return {
|
|
3993
4034
|
blockChildren: processedBlock2.value.children ?? [],
|
|
@@ -3995,15 +4036,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3995
4036
|
componentOptions: {
|
|
3996
4037
|
...getBlockComponentOptions(processedBlock2.value),
|
|
3997
4038
|
builderContext: props2.context,
|
|
3998
|
-
...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "
|
|
4039
|
+
...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "Core:Button" || ((_c = blockComponent2.value) == null ? void 0 : _c.name) === "Symbol" || ((_d = blockComponent2.value) == null ? void 0 : _d.name) === "Columns" ? {
|
|
4040
|
+
builderLinkComponent: props2.linkComponent
|
|
4041
|
+
} : {},
|
|
4042
|
+
...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
|
|
3999
4043
|
builderComponents: props2.registeredComponents
|
|
4000
4044
|
} : {}
|
|
4001
4045
|
},
|
|
4002
4046
|
context: state2.childrenContext,
|
|
4047
|
+
linkComponent: props2.linkComponent,
|
|
4003
4048
|
registeredComponents: props2.registeredComponents,
|
|
4004
4049
|
builderBlock: processedBlock2.value,
|
|
4005
|
-
includeBlockProps: ((
|
|
4006
|
-
isInteractive: !((
|
|
4050
|
+
includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
|
|
4051
|
+
isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
|
|
4007
4052
|
};
|
|
4008
4053
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
4009
4054
|
blockComponent,
|
|
@@ -4040,6 +4085,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4040
4085
|
get context() {
|
|
4041
4086
|
return props.context;
|
|
4042
4087
|
},
|
|
4088
|
+
get linkComponent() {
|
|
4089
|
+
return props.linkComponent;
|
|
4090
|
+
},
|
|
4043
4091
|
children: [
|
|
4044
4092
|
/* @__PURE__ */ _jsxC(ComponentRef, {
|
|
4045
4093
|
get componentRef() {
|
|
@@ -4057,6 +4105,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4057
4105
|
get registeredComponents() {
|
|
4058
4106
|
return componentRefProps.value.registeredComponents;
|
|
4059
4107
|
},
|
|
4108
|
+
get linkComponent() {
|
|
4109
|
+
return componentRefProps.value.linkComponent;
|
|
4110
|
+
},
|
|
4060
4111
|
get builderBlock() {
|
|
4061
4112
|
return componentRefProps.value.builderBlock;
|
|
4062
4113
|
},
|
|
@@ -4088,6 +4139,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4088
4139
|
isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
|
|
4089
4140
|
componentRefProps
|
|
4090
4141
|
], "p0.value.isInteractive"),
|
|
4142
|
+
linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
|
|
4143
|
+
componentRefProps
|
|
4144
|
+
], "p0.value.linkComponent"),
|
|
4091
4145
|
registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
|
|
4092
4146
|
componentRefProps
|
|
4093
4147
|
], "p0.value.registeredComponents")
|
|
@@ -4102,10 +4156,16 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4102
4156
|
get registeredComponents() {
|
|
4103
4157
|
return props.registeredComponents;
|
|
4104
4158
|
},
|
|
4159
|
+
get linkComponent() {
|
|
4160
|
+
return props.linkComponent;
|
|
4161
|
+
},
|
|
4105
4162
|
[_IMMUTABLE]: {
|
|
4106
4163
|
context: _fnSignal((p0) => p0.childrenContext, [
|
|
4107
4164
|
state
|
|
4108
4165
|
], "p0.childrenContext"),
|
|
4166
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4167
|
+
props
|
|
4168
|
+
], "p0.linkComponent"),
|
|
4109
4169
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
4110
4170
|
props
|
|
4111
4171
|
], "p0.registeredComponents")
|
|
@@ -4122,7 +4182,10 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4122
4182
|
], "p0.value"),
|
|
4123
4183
|
context: _fnSignal((p0) => p0.context, [
|
|
4124
4184
|
props
|
|
4125
|
-
], "p0.context")
|
|
4185
|
+
], "p0.context"),
|
|
4186
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4187
|
+
props
|
|
4188
|
+
], "p0.linkComponent")
|
|
4126
4189
|
}
|
|
4127
4190
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
4128
4191
|
return /* @__PURE__ */ _jsxC(RepeatedBlock, {
|
|
@@ -4135,8 +4198,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4135
4198
|
get registeredComponents() {
|
|
4136
4199
|
return props.registeredComponents;
|
|
4137
4200
|
},
|
|
4201
|
+
get linkComponent() {
|
|
4202
|
+
return props.linkComponent;
|
|
4203
|
+
},
|
|
4138
4204
|
[_IMMUTABLE]: {
|
|
4139
4205
|
block: _wrapProp(data, "block"),
|
|
4206
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4207
|
+
props
|
|
4208
|
+
], "p0.linkComponent"),
|
|
4140
4209
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
4141
4210
|
props
|
|
4142
4211
|
], "p0.registeredComponents"),
|
|
@@ -4159,6 +4228,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4159
4228
|
get registeredComponents() {
|
|
4160
4229
|
return componentRefProps.value.registeredComponents;
|
|
4161
4230
|
},
|
|
4231
|
+
get linkComponent() {
|
|
4232
|
+
return componentRefProps.value.linkComponent;
|
|
4233
|
+
},
|
|
4162
4234
|
get builderBlock() {
|
|
4163
4235
|
return componentRefProps.value.builderBlock;
|
|
4164
4236
|
},
|
|
@@ -4190,6 +4262,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
4190
4262
|
isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
|
|
4191
4263
|
componentRefProps
|
|
4192
4264
|
], "p0.value.isInteractive"),
|
|
4265
|
+
linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
|
|
4266
|
+
componentRefProps
|
|
4267
|
+
], "p0.value.linkComponent"),
|
|
4193
4268
|
registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
|
|
4194
4269
|
componentRefProps
|
|
4195
4270
|
], "p0.value.registeredComponents")
|
|
@@ -4317,6 +4392,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
4317
4392
|
children: props.blocks ? (props.blocks || []).map((block) => {
|
|
4318
4393
|
return /* @__PURE__ */ _jsxC(Block, {
|
|
4319
4394
|
block,
|
|
4395
|
+
get linkComponent() {
|
|
4396
|
+
return props.linkComponent;
|
|
4397
|
+
},
|
|
4320
4398
|
get context() {
|
|
4321
4399
|
return props.context || builderContext$1;
|
|
4322
4400
|
},
|
|
@@ -4328,6 +4406,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
4328
4406
|
builderContext$1,
|
|
4329
4407
|
props
|
|
4330
4408
|
], "p1.context||p0"),
|
|
4409
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4410
|
+
props
|
|
4411
|
+
], "p0.linkComponent"),
|
|
4331
4412
|
registeredComponents: _fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
|
|
4332
4413
|
componentsContext,
|
|
4333
4414
|
props
|
|
@@ -4387,7 +4468,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
|
|
|
4387
4468
|
const mobileWidth = "100%";
|
|
4388
4469
|
const mobileMarginLeft = 0;
|
|
4389
4470
|
const marginLeftKey = "margin-left";
|
|
4471
|
+
const sharedStyles = {
|
|
4472
|
+
display: "flex",
|
|
4473
|
+
flexDirection: "column",
|
|
4474
|
+
alignItems: "stretch"
|
|
4475
|
+
};
|
|
4390
4476
|
return {
|
|
4477
|
+
...sharedStyles,
|
|
4391
4478
|
width,
|
|
4392
4479
|
[marginLeftKey]: gutterPixels,
|
|
4393
4480
|
"--column-width-mobile": getMobileStyle(props, state, {
|
|
@@ -4485,40 +4572,56 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4485
4572
|
}
|
|
4486
4573
|
}, 3, "c0_0"),
|
|
4487
4574
|
(props.columns || []).map((column, index) => {
|
|
4488
|
-
return /* @__PURE__ */
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
get styleProp() {
|
|
4498
|
-
return {
|
|
4499
|
-
flexGrow: "1"
|
|
4500
|
-
};
|
|
4501
|
-
},
|
|
4502
|
-
get context() {
|
|
4503
|
-
return props.builderContext;
|
|
4575
|
+
return /* @__PURE__ */ _jsxC(DynamicRenderer, {
|
|
4576
|
+
TagName: column.link ? props.builderLinkComponent || "a" : "div",
|
|
4577
|
+
actionAttributes: {},
|
|
4578
|
+
attributes: {
|
|
4579
|
+
...column.link ? {
|
|
4580
|
+
href: column.link
|
|
4581
|
+
} : {},
|
|
4582
|
+
[getClassPropName()]: "builder-column",
|
|
4583
|
+
style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
|
|
4504
4584
|
},
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4585
|
+
children: /* @__PURE__ */ _jsxC(Blocks, {
|
|
4586
|
+
path: `component.options.columns.${index}.blocks`,
|
|
4587
|
+
get parent() {
|
|
4588
|
+
return props.builderBlock.id;
|
|
4589
|
+
},
|
|
4590
|
+
get styleProp() {
|
|
4591
|
+
return {
|
|
4592
|
+
flexGrow: "1"
|
|
4593
|
+
};
|
|
4594
|
+
},
|
|
4595
|
+
get context() {
|
|
4596
|
+
return props.builderContext;
|
|
4597
|
+
},
|
|
4598
|
+
get registeredComponents() {
|
|
4599
|
+
return props.builderComponents;
|
|
4600
|
+
},
|
|
4601
|
+
get linkComponent() {
|
|
4602
|
+
return props.builderLinkComponent;
|
|
4603
|
+
},
|
|
4604
|
+
blocks: deoptSignal(column.blocks),
|
|
4605
|
+
[_IMMUTABLE]: {
|
|
4606
|
+
context: _fnSignal((p0) => p0.builderContext, [
|
|
4607
|
+
props
|
|
4608
|
+
], "p0.builderContext"),
|
|
4609
|
+
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
4610
|
+
props
|
|
4611
|
+
], "p0.builderLinkComponent"),
|
|
4612
|
+
parent: _fnSignal((p0) => p0.builderBlock.id, [
|
|
4613
|
+
props
|
|
4614
|
+
], "p0.builderBlock.id"),
|
|
4615
|
+
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
4616
|
+
props
|
|
4617
|
+
], "p0.builderComponents"),
|
|
4618
|
+
styleProp: _IMMUTABLE
|
|
4619
|
+
}
|
|
4620
|
+
}, 3, "c0_1"),
|
|
4509
4621
|
[_IMMUTABLE]: {
|
|
4510
|
-
|
|
4511
|
-
props
|
|
4512
|
-
], "p0.builderContext"),
|
|
4513
|
-
parent: _fnSignal((p0) => p0.builderBlock.id, [
|
|
4514
|
-
props
|
|
4515
|
-
], "p0.builderBlock.id"),
|
|
4516
|
-
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
4517
|
-
props
|
|
4518
|
-
], "p0.builderComponents"),
|
|
4519
|
-
styleProp: _IMMUTABLE
|
|
4622
|
+
actionAttributes: _IMMUTABLE
|
|
4520
4623
|
}
|
|
4521
|
-
},
|
|
4624
|
+
}, 1, index);
|
|
4522
4625
|
})
|
|
4523
4626
|
], 1, "c0_2");
|
|
4524
4627
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
@@ -4527,11 +4630,6 @@ const STYLES$1 = `
|
|
|
4527
4630
|
display: flex;
|
|
4528
4631
|
line-height: normal;
|
|
4529
4632
|
}
|
|
4530
|
-
.div-Columns-2 {
|
|
4531
|
-
display: flex;
|
|
4532
|
-
flex-direction: column;
|
|
4533
|
-
align-items: stretch;
|
|
4534
|
-
}
|
|
4535
4633
|
`;
|
|
4536
4634
|
const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4537
4635
|
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "oj_0"), 1, "oj_1");
|
|
@@ -6454,7 +6552,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6454
6552
|
}
|
|
6455
6553
|
};
|
|
6456
6554
|
};
|
|
6457
|
-
const SDK_VERSION = "0.12.
|
|
6555
|
+
const SDK_VERSION = "0.12.4";
|
|
6458
6556
|
const registry = {};
|
|
6459
6557
|
function register(type, info) {
|
|
6460
6558
|
let typeList = registry[type];
|
|
@@ -7141,6 +7239,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
7141
7239
|
get contentWrapperProps() {
|
|
7142
7240
|
return props.contentWrapperProps;
|
|
7143
7241
|
},
|
|
7242
|
+
get linkComponent() {
|
|
7243
|
+
return props.linkComponent;
|
|
7244
|
+
},
|
|
7144
7245
|
get trustedHosts() {
|
|
7145
7246
|
return props.trustedHosts;
|
|
7146
7247
|
},
|
|
@@ -7200,6 +7301,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
7200
7301
|
get registeredComponents() {
|
|
7201
7302
|
return state.registeredComponents;
|
|
7202
7303
|
},
|
|
7304
|
+
get linkComponent() {
|
|
7305
|
+
return props.linkComponent;
|
|
7306
|
+
},
|
|
7203
7307
|
[_IMMUTABLE]: {
|
|
7204
7308
|
blocks: _fnSignal((p0) => {
|
|
7205
7309
|
var _a2, _b2;
|
|
@@ -7210,6 +7314,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
7210
7314
|
context: _fnSignal((p0) => p0.builderContextSignal, [
|
|
7211
7315
|
state
|
|
7212
7316
|
], "p0.builderContextSignal"),
|
|
7317
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
7318
|
+
props
|
|
7319
|
+
], "p0.linkComponent"),
|
|
7213
7320
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
7214
7321
|
state
|
|
7215
7322
|
], "p0.registeredComponents")
|
|
@@ -7247,6 +7354,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
7247
7354
|
includeRefs: _fnSignal((p0) => p0.includeRefs, [
|
|
7248
7355
|
props
|
|
7249
7356
|
], "p0.includeRefs"),
|
|
7357
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
7358
|
+
props
|
|
7359
|
+
], "p0.linkComponent"),
|
|
7250
7360
|
locale: _fnSignal((p0) => p0.locale, [
|
|
7251
7361
|
props
|
|
7252
7362
|
], "p0.locale"),
|
|
@@ -7364,6 +7474,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
7364
7474
|
get customComponents() {
|
|
7365
7475
|
return props.customComponents;
|
|
7366
7476
|
},
|
|
7477
|
+
get linkComponent() {
|
|
7478
|
+
return props.linkComponent;
|
|
7479
|
+
},
|
|
7367
7480
|
get canTrack() {
|
|
7368
7481
|
return props.canTrack;
|
|
7369
7482
|
},
|
|
@@ -7434,6 +7547,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
7434
7547
|
isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
|
|
7435
7548
|
state
|
|
7436
7549
|
], "p0.shouldRenderVariants"),
|
|
7550
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
7551
|
+
props
|
|
7552
|
+
], "p0.linkComponent"),
|
|
7437
7553
|
locale: _fnSignal((p0) => p0.locale, [
|
|
7438
7554
|
props
|
|
7439
7555
|
], "p0.locale"),
|
|
@@ -7472,6 +7588,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
7472
7588
|
get customComponents() {
|
|
7473
7589
|
return props.customComponents;
|
|
7474
7590
|
},
|
|
7591
|
+
get linkComponent() {
|
|
7592
|
+
return props.linkComponent;
|
|
7593
|
+
},
|
|
7475
7594
|
get canTrack() {
|
|
7476
7595
|
return props.canTrack;
|
|
7477
7596
|
},
|
|
@@ -7545,6 +7664,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
7545
7664
|
isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
|
|
7546
7665
|
state
|
|
7547
7666
|
], "p0.shouldRenderVariants"),
|
|
7667
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
7668
|
+
props
|
|
7669
|
+
], "p0.linkComponent"),
|
|
7548
7670
|
locale: _fnSignal((p0) => p0.locale, [
|
|
7549
7671
|
props
|
|
7550
7672
|
], "p0.locale"),
|
|
@@ -7595,7 +7717,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
7595
7717
|
var _a2, _b;
|
|
7596
7718
|
const [props2] = useLexicalScope();
|
|
7597
7719
|
return [
|
|
7598
|
-
props2.attributes
|
|
7720
|
+
props2.attributes[getClassPropName()],
|
|
7599
7721
|
"builder-symbol",
|
|
7600
7722
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
7601
7723
|
((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -7648,6 +7770,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
7648
7770
|
get content() {
|
|
7649
7771
|
return state.contentToUse;
|
|
7650
7772
|
},
|
|
7773
|
+
get linkComponent() {
|
|
7774
|
+
return props.builderLinkComponent;
|
|
7775
|
+
},
|
|
7651
7776
|
[_IMMUTABLE]: {
|
|
7652
7777
|
apiKey: _fnSignal((p0) => p0.builderContext.apiKey, [
|
|
7653
7778
|
props
|
|
@@ -7681,6 +7806,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
7681
7806
|
props,
|
|
7682
7807
|
state
|
|
7683
7808
|
], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
|
|
7809
|
+
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
7810
|
+
props
|
|
7811
|
+
], "p0.builderLinkComponent"),
|
|
7684
7812
|
model: _fnSignal((p0) => {
|
|
7685
7813
|
var _a2;
|
|
7686
7814
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|