@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.cjs
CHANGED
|
@@ -3,36 +3,84 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
4
|
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
5
5
|
const build = require("@builder.io/qwik/build");
|
|
6
|
-
const
|
|
6
|
+
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
7
|
+
"area",
|
|
8
|
+
"base",
|
|
9
|
+
"br",
|
|
10
|
+
"col",
|
|
11
|
+
"embed",
|
|
12
|
+
"hr",
|
|
13
|
+
"img",
|
|
14
|
+
"input",
|
|
15
|
+
"keygen",
|
|
16
|
+
"link",
|
|
17
|
+
"meta",
|
|
18
|
+
"param",
|
|
19
|
+
"source",
|
|
20
|
+
"track",
|
|
21
|
+
"wbr"
|
|
22
|
+
]);
|
|
23
|
+
const isEmptyElement = (tagName) => {
|
|
24
|
+
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
25
|
+
};
|
|
26
|
+
const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
27
|
+
qwik._jsxBranch();
|
|
7
28
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
8
|
-
children: props.
|
|
29
|
+
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
9
30
|
...props.attributes,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, {
|
|
14
|
-
href: qwik._fnSignal((p0) => p0.link, [
|
|
15
|
-
props
|
|
16
|
-
], "p0.link"),
|
|
17
|
-
role: "button",
|
|
18
|
-
target: qwik._fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
|
|
19
|
-
props
|
|
20
|
-
], 'p0.openLinkInNewTab?"_blank":undefined')
|
|
21
|
-
}, 0, "jc_0") : /* @__PURE__ */ qwik._jsxS("button", {
|
|
31
|
+
...props.actionAttributes,
|
|
32
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
|
|
33
|
+
}, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
22
34
|
...props.attributes,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
...props.actionAttributes,
|
|
36
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
|
|
37
|
+
}, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
38
|
+
...props.attributes,
|
|
39
|
+
...props.actionAttributes
|
|
40
|
+
}, 0, "yW_4")
|
|
41
|
+
}, 1, "yW_5");
|
|
42
|
+
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
43
|
+
const TARGET = "qwik";
|
|
44
|
+
const getClassPropName = () => {
|
|
45
|
+
switch (TARGET) {
|
|
46
|
+
case "react":
|
|
47
|
+
case "reactNative":
|
|
48
|
+
case "rsc":
|
|
49
|
+
return "className";
|
|
50
|
+
case "svelte":
|
|
51
|
+
case "vue":
|
|
52
|
+
case "solid":
|
|
53
|
+
case "qwik":
|
|
54
|
+
return "class";
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
58
|
+
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
59
|
+
get TagName() {
|
|
60
|
+
return props.link ? props.builderLinkComponent || "a" : "button";
|
|
61
|
+
},
|
|
62
|
+
actionAttributes: {},
|
|
63
|
+
attributes: {
|
|
64
|
+
...props.attributes,
|
|
65
|
+
[getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
|
|
66
|
+
...props.link ? {
|
|
67
|
+
href: props.link,
|
|
68
|
+
target: props.openLinkInNewTab ? "_blank" : void 0,
|
|
69
|
+
role: "link"
|
|
70
|
+
} : {
|
|
71
|
+
role: "button"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
children: qwik._fnSignal((p0) => p0.text, [
|
|
75
|
+
props
|
|
76
|
+
], "p0.text"),
|
|
77
|
+
[qwik._IMMUTABLE]: {
|
|
78
|
+
TagName: qwik._fnSignal((p0) => p0.link ? p0.builderLinkComponent || "a" : "button", [
|
|
32
79
|
props
|
|
33
|
-
],
|
|
34
|
-
|
|
35
|
-
|
|
80
|
+
], 'p0.link?p0.builderLinkComponent||"a":"button"'),
|
|
81
|
+
actionAttributes: qwik._IMMUTABLE
|
|
82
|
+
}
|
|
83
|
+
}, 3, "jc_0");
|
|
36
84
|
}, "Button_component_gJoMUICXoUQ"));
|
|
37
85
|
const builderContext = qwik.createContextId("Builder");
|
|
38
86
|
const ComponentsContext = qwik.createContextId("Components");
|
|
@@ -64,7 +112,6 @@ const set = (obj, _path, value) => {
|
|
|
64
112
|
function isBrowser() {
|
|
65
113
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
66
114
|
}
|
|
67
|
-
const TARGET = "qwik";
|
|
68
115
|
function isIframe() {
|
|
69
116
|
return isBrowser() && window.self !== window.top;
|
|
70
117
|
}
|
|
@@ -3707,6 +3754,29 @@ function getBlockActions(options) {
|
|
|
3707
3754
|
}
|
|
3708
3755
|
return obj;
|
|
3709
3756
|
}
|
|
3757
|
+
function transformStyleProperty({ style }) {
|
|
3758
|
+
return style;
|
|
3759
|
+
}
|
|
3760
|
+
const getStyle = ({ block, context }) => {
|
|
3761
|
+
return mapStyleObjToStrIfNeeded(transformStyleProperty({
|
|
3762
|
+
style: block.style || {},
|
|
3763
|
+
context,
|
|
3764
|
+
block
|
|
3765
|
+
}));
|
|
3766
|
+
};
|
|
3767
|
+
function mapStyleObjToStrIfNeeded(style) {
|
|
3768
|
+
switch (TARGET) {
|
|
3769
|
+
case "svelte":
|
|
3770
|
+
case "vue":
|
|
3771
|
+
case "solid":
|
|
3772
|
+
return convertStyleMapToCSSArray(style).join(" ");
|
|
3773
|
+
case "qwik":
|
|
3774
|
+
case "reactNative":
|
|
3775
|
+
case "react":
|
|
3776
|
+
case "rsc":
|
|
3777
|
+
return style;
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3710
3780
|
function transformBlockProperties({ properties }) {
|
|
3711
3781
|
return properties;
|
|
3712
3782
|
}
|
|
@@ -3721,8 +3791,11 @@ function getBlockProperties({ block, context }) {
|
|
|
3721
3791
|
...extractRelevantRootBlockProperties(block),
|
|
3722
3792
|
...block.properties,
|
|
3723
3793
|
"builder-id": block.id,
|
|
3724
|
-
style:
|
|
3725
|
-
|
|
3794
|
+
style: getStyle({
|
|
3795
|
+
block,
|
|
3796
|
+
context
|
|
3797
|
+
}),
|
|
3798
|
+
[getClassPropName()]: [
|
|
3726
3799
|
block.id,
|
|
3727
3800
|
"builder-block",
|
|
3728
3801
|
block.class,
|
|
@@ -3735,56 +3808,6 @@ function getBlockProperties({ block, context }) {
|
|
|
3735
3808
|
block
|
|
3736
3809
|
});
|
|
3737
3810
|
}
|
|
3738
|
-
function getStyleAttribute(style) {
|
|
3739
|
-
switch (TARGET) {
|
|
3740
|
-
case "svelte":
|
|
3741
|
-
case "vue":
|
|
3742
|
-
case "solid":
|
|
3743
|
-
return convertStyleMapToCSSArray(style).join(" ");
|
|
3744
|
-
case "qwik":
|
|
3745
|
-
case "reactNative":
|
|
3746
|
-
case "react":
|
|
3747
|
-
case "rsc":
|
|
3748
|
-
return style;
|
|
3749
|
-
}
|
|
3750
|
-
}
|
|
3751
|
-
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
3752
|
-
"area",
|
|
3753
|
-
"base",
|
|
3754
|
-
"br",
|
|
3755
|
-
"col",
|
|
3756
|
-
"embed",
|
|
3757
|
-
"hr",
|
|
3758
|
-
"img",
|
|
3759
|
-
"input",
|
|
3760
|
-
"keygen",
|
|
3761
|
-
"link",
|
|
3762
|
-
"meta",
|
|
3763
|
-
"param",
|
|
3764
|
-
"source",
|
|
3765
|
-
"track",
|
|
3766
|
-
"wbr"
|
|
3767
|
-
]);
|
|
3768
|
-
const isEmptyElement = (tagName) => {
|
|
3769
|
-
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
3770
|
-
};
|
|
3771
|
-
const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
3772
|
-
qwik._jsxBranch();
|
|
3773
|
-
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
3774
|
-
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
3775
|
-
...props.attributes,
|
|
3776
|
-
...props.actionAttributes,
|
|
3777
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
|
|
3778
|
-
}, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
3779
|
-
...props.attributes,
|
|
3780
|
-
...props.actionAttributes,
|
|
3781
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
|
|
3782
|
-
}, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
3783
|
-
...props.attributes,
|
|
3784
|
-
...props.actionAttributes
|
|
3785
|
-
}, 0, "yW_4")
|
|
3786
|
-
}, 1, "yW_5");
|
|
3787
|
-
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
3788
3811
|
const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
3789
3812
|
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
3790
3813
|
get TagName() {
|
|
@@ -3863,6 +3886,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3863
3886
|
builderBlock: props.builderBlock,
|
|
3864
3887
|
context: props.context,
|
|
3865
3888
|
componentRef: props.componentRef,
|
|
3889
|
+
linkComponent: props.linkComponent,
|
|
3866
3890
|
includeBlockProps: props.includeBlockProps,
|
|
3867
3891
|
isInteractive: props.isInteractive,
|
|
3868
3892
|
contextValue: props.context
|
|
@@ -3876,10 +3900,16 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
3876
3900
|
get registeredComponents() {
|
|
3877
3901
|
return props.registeredComponents;
|
|
3878
3902
|
},
|
|
3903
|
+
get linkComponent() {
|
|
3904
|
+
return props.linkComponent;
|
|
3905
|
+
},
|
|
3879
3906
|
[qwik._IMMUTABLE]: {
|
|
3880
3907
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
3881
3908
|
props
|
|
3882
3909
|
], "p0.context"),
|
|
3910
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
3911
|
+
props
|
|
3912
|
+
], "p0.linkComponent"),
|
|
3883
3913
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
3884
3914
|
props
|
|
3885
3915
|
], "p0.registeredComponents")
|
|
@@ -3904,6 +3934,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
3904
3934
|
get registeredComponents() {
|
|
3905
3935
|
return props.registeredComponents;
|
|
3906
3936
|
},
|
|
3937
|
+
get linkComponent() {
|
|
3938
|
+
return props.linkComponent;
|
|
3939
|
+
},
|
|
3907
3940
|
[qwik._IMMUTABLE]: {
|
|
3908
3941
|
block: qwik._fnSignal((p0) => p0.block, [
|
|
3909
3942
|
props
|
|
@@ -3911,6 +3944,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
3911
3944
|
context: qwik._fnSignal((p0) => p0.store, [
|
|
3912
3945
|
state
|
|
3913
3946
|
], "p0.store"),
|
|
3947
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
3948
|
+
props
|
|
3949
|
+
], "p0.linkComponent"),
|
|
3914
3950
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
3915
3951
|
props
|
|
3916
3952
|
], "p0.registeredComponents")
|
|
@@ -3957,9 +3993,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3957
3993
|
props
|
|
3958
3994
|
]));
|
|
3959
3995
|
const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3960
|
-
|
|
3996
|
+
var _a2;
|
|
3997
|
+
const [processedBlock2, props2] = qwik.useLexicalScope();
|
|
3998
|
+
const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
|
|
3999
|
+
if (shouldUseLink)
|
|
4000
|
+
return props2.linkComponent || "a";
|
|
3961
4001
|
return props2.block.tagName || "div";
|
|
3962
4002
|
}, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
|
|
4003
|
+
processedBlock,
|
|
3963
4004
|
props
|
|
3964
4005
|
]));
|
|
3965
4006
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
@@ -3989,7 +4030,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3989
4030
|
repeatItem
|
|
3990
4031
|
]));
|
|
3991
4032
|
const componentRefProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
3992
|
-
var _a2, _b, _c, _d, _e;
|
|
4033
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
3993
4034
|
const [blockComponent2, processedBlock2, props2, state2] = qwik.useLexicalScope();
|
|
3994
4035
|
return {
|
|
3995
4036
|
blockChildren: processedBlock2.value.children ?? [],
|
|
@@ -3997,15 +4038,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
3997
4038
|
componentOptions: {
|
|
3998
4039
|
...getBlockComponentOptions(processedBlock2.value),
|
|
3999
4040
|
builderContext: props2.context,
|
|
4000
|
-
...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "
|
|
4041
|
+
...((_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" ? {
|
|
4042
|
+
builderLinkComponent: props2.linkComponent
|
|
4043
|
+
} : {},
|
|
4044
|
+
...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
|
|
4001
4045
|
builderComponents: props2.registeredComponents
|
|
4002
4046
|
} : {}
|
|
4003
4047
|
},
|
|
4004
4048
|
context: state2.childrenContext,
|
|
4049
|
+
linkComponent: props2.linkComponent,
|
|
4005
4050
|
registeredComponents: props2.registeredComponents,
|
|
4006
4051
|
builderBlock: processedBlock2.value,
|
|
4007
|
-
includeBlockProps: ((
|
|
4008
|
-
isInteractive: !((
|
|
4052
|
+
includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
|
|
4053
|
+
isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
|
|
4009
4054
|
};
|
|
4010
4055
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
4011
4056
|
blockComponent,
|
|
@@ -4042,6 +4087,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4042
4087
|
get context() {
|
|
4043
4088
|
return props.context;
|
|
4044
4089
|
},
|
|
4090
|
+
get linkComponent() {
|
|
4091
|
+
return props.linkComponent;
|
|
4092
|
+
},
|
|
4045
4093
|
children: [
|
|
4046
4094
|
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
4047
4095
|
get componentRef() {
|
|
@@ -4059,6 +4107,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4059
4107
|
get registeredComponents() {
|
|
4060
4108
|
return componentRefProps.value.registeredComponents;
|
|
4061
4109
|
},
|
|
4110
|
+
get linkComponent() {
|
|
4111
|
+
return componentRefProps.value.linkComponent;
|
|
4112
|
+
},
|
|
4062
4113
|
get builderBlock() {
|
|
4063
4114
|
return componentRefProps.value.builderBlock;
|
|
4064
4115
|
},
|
|
@@ -4090,6 +4141,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4090
4141
|
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
4091
4142
|
componentRefProps
|
|
4092
4143
|
], "p0.value.isInteractive"),
|
|
4144
|
+
linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
|
|
4145
|
+
componentRefProps
|
|
4146
|
+
], "p0.value.linkComponent"),
|
|
4093
4147
|
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
4094
4148
|
componentRefProps
|
|
4095
4149
|
], "p0.value.registeredComponents")
|
|
@@ -4104,10 +4158,16 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4104
4158
|
get registeredComponents() {
|
|
4105
4159
|
return props.registeredComponents;
|
|
4106
4160
|
},
|
|
4161
|
+
get linkComponent() {
|
|
4162
|
+
return props.linkComponent;
|
|
4163
|
+
},
|
|
4107
4164
|
[qwik._IMMUTABLE]: {
|
|
4108
4165
|
context: qwik._fnSignal((p0) => p0.childrenContext, [
|
|
4109
4166
|
state
|
|
4110
4167
|
], "p0.childrenContext"),
|
|
4168
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4169
|
+
props
|
|
4170
|
+
], "p0.linkComponent"),
|
|
4111
4171
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
4112
4172
|
props
|
|
4113
4173
|
], "p0.registeredComponents")
|
|
@@ -4124,7 +4184,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4124
4184
|
], "p0.value"),
|
|
4125
4185
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
4126
4186
|
props
|
|
4127
|
-
], "p0.context")
|
|
4187
|
+
], "p0.context"),
|
|
4188
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4189
|
+
props
|
|
4190
|
+
], "p0.linkComponent")
|
|
4128
4191
|
}
|
|
4129
4192
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
4130
4193
|
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
@@ -4137,8 +4200,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4137
4200
|
get registeredComponents() {
|
|
4138
4201
|
return props.registeredComponents;
|
|
4139
4202
|
},
|
|
4203
|
+
get linkComponent() {
|
|
4204
|
+
return props.linkComponent;
|
|
4205
|
+
},
|
|
4140
4206
|
[qwik._IMMUTABLE]: {
|
|
4141
4207
|
block: qwik._wrapProp(data, "block"),
|
|
4208
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4209
|
+
props
|
|
4210
|
+
], "p0.linkComponent"),
|
|
4142
4211
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
4143
4212
|
props
|
|
4144
4213
|
], "p0.registeredComponents"),
|
|
@@ -4161,6 +4230,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4161
4230
|
get registeredComponents() {
|
|
4162
4231
|
return componentRefProps.value.registeredComponents;
|
|
4163
4232
|
},
|
|
4233
|
+
get linkComponent() {
|
|
4234
|
+
return componentRefProps.value.linkComponent;
|
|
4235
|
+
},
|
|
4164
4236
|
get builderBlock() {
|
|
4165
4237
|
return componentRefProps.value.builderBlock;
|
|
4166
4238
|
},
|
|
@@ -4192,6 +4264,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
4192
4264
|
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
4193
4265
|
componentRefProps
|
|
4194
4266
|
], "p0.value.isInteractive"),
|
|
4267
|
+
linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
|
|
4268
|
+
componentRefProps
|
|
4269
|
+
], "p0.value.linkComponent"),
|
|
4195
4270
|
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
4196
4271
|
componentRefProps
|
|
4197
4272
|
], "p0.value.registeredComponents")
|
|
@@ -4319,6 +4394,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
4319
4394
|
children: props.blocks ? (props.blocks || []).map((block) => {
|
|
4320
4395
|
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
4321
4396
|
block,
|
|
4397
|
+
get linkComponent() {
|
|
4398
|
+
return props.linkComponent;
|
|
4399
|
+
},
|
|
4322
4400
|
get context() {
|
|
4323
4401
|
return props.context || builderContext$1;
|
|
4324
4402
|
},
|
|
@@ -4330,6 +4408,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
4330
4408
|
builderContext$1,
|
|
4331
4409
|
props
|
|
4332
4410
|
], "p1.context||p0"),
|
|
4411
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4412
|
+
props
|
|
4413
|
+
], "p0.linkComponent"),
|
|
4333
4414
|
registeredComponents: qwik._fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
|
|
4334
4415
|
componentsContext,
|
|
4335
4416
|
props
|
|
@@ -4389,7 +4470,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
|
|
|
4389
4470
|
const mobileWidth = "100%";
|
|
4390
4471
|
const mobileMarginLeft = 0;
|
|
4391
4472
|
const marginLeftKey = "margin-left";
|
|
4473
|
+
const sharedStyles = {
|
|
4474
|
+
display: "flex",
|
|
4475
|
+
flexDirection: "column",
|
|
4476
|
+
alignItems: "stretch"
|
|
4477
|
+
};
|
|
4392
4478
|
return {
|
|
4479
|
+
...sharedStyles,
|
|
4393
4480
|
width,
|
|
4394
4481
|
[marginLeftKey]: gutterPixels,
|
|
4395
4482
|
"--column-width-mobile": getMobileStyle(props, state, {
|
|
@@ -4487,40 +4574,56 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
4487
4574
|
}
|
|
4488
4575
|
}, 3, "c0_0"),
|
|
4489
4576
|
(props.columns || []).map((column, index) => {
|
|
4490
|
-
return /* @__PURE__ */ qwik.
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
get styleProp() {
|
|
4500
|
-
return {
|
|
4501
|
-
flexGrow: "1"
|
|
4502
|
-
};
|
|
4503
|
-
},
|
|
4504
|
-
get context() {
|
|
4505
|
-
return props.builderContext;
|
|
4577
|
+
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
4578
|
+
TagName: column.link ? props.builderLinkComponent || "a" : "div",
|
|
4579
|
+
actionAttributes: {},
|
|
4580
|
+
attributes: {
|
|
4581
|
+
...column.link ? {
|
|
4582
|
+
href: column.link
|
|
4583
|
+
} : {},
|
|
4584
|
+
[getClassPropName()]: "builder-column",
|
|
4585
|
+
style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
|
|
4506
4586
|
},
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4587
|
+
children: /* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
4588
|
+
path: `component.options.columns.${index}.blocks`,
|
|
4589
|
+
get parent() {
|
|
4590
|
+
return props.builderBlock.id;
|
|
4591
|
+
},
|
|
4592
|
+
get styleProp() {
|
|
4593
|
+
return {
|
|
4594
|
+
flexGrow: "1"
|
|
4595
|
+
};
|
|
4596
|
+
},
|
|
4597
|
+
get context() {
|
|
4598
|
+
return props.builderContext;
|
|
4599
|
+
},
|
|
4600
|
+
get registeredComponents() {
|
|
4601
|
+
return props.builderComponents;
|
|
4602
|
+
},
|
|
4603
|
+
get linkComponent() {
|
|
4604
|
+
return props.builderLinkComponent;
|
|
4605
|
+
},
|
|
4606
|
+
blocks: deoptSignal(column.blocks),
|
|
4607
|
+
[qwik._IMMUTABLE]: {
|
|
4608
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
4609
|
+
props
|
|
4610
|
+
], "p0.builderContext"),
|
|
4611
|
+
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
4612
|
+
props
|
|
4613
|
+
], "p0.builderLinkComponent"),
|
|
4614
|
+
parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
|
|
4615
|
+
props
|
|
4616
|
+
], "p0.builderBlock.id"),
|
|
4617
|
+
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
4618
|
+
props
|
|
4619
|
+
], "p0.builderComponents"),
|
|
4620
|
+
styleProp: qwik._IMMUTABLE
|
|
4621
|
+
}
|
|
4622
|
+
}, 3, "c0_1"),
|
|
4511
4623
|
[qwik._IMMUTABLE]: {
|
|
4512
|
-
|
|
4513
|
-
props
|
|
4514
|
-
], "p0.builderContext"),
|
|
4515
|
-
parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
|
|
4516
|
-
props
|
|
4517
|
-
], "p0.builderBlock.id"),
|
|
4518
|
-
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
4519
|
-
props
|
|
4520
|
-
], "p0.builderComponents"),
|
|
4521
|
-
styleProp: qwik._IMMUTABLE
|
|
4624
|
+
actionAttributes: qwik._IMMUTABLE
|
|
4522
4625
|
}
|
|
4523
|
-
},
|
|
4626
|
+
}, 1, index);
|
|
4524
4627
|
})
|
|
4525
4628
|
], 1, "c0_2");
|
|
4526
4629
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
@@ -4529,11 +4632,6 @@ const STYLES$1 = `
|
|
|
4529
4632
|
display: flex;
|
|
4530
4633
|
line-height: normal;
|
|
4531
4634
|
}
|
|
4532
|
-
.div-Columns-2 {
|
|
4533
|
-
display: flex;
|
|
4534
|
-
flex-direction: column;
|
|
4535
|
-
align-items: stretch;
|
|
4536
|
-
}
|
|
4537
4635
|
`;
|
|
4538
4636
|
const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
4539
4637
|
return /* @__PURE__ */ qwik._jsxQ("span", null, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
@@ -6456,7 +6554,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
6456
6554
|
}
|
|
6457
6555
|
};
|
|
6458
6556
|
};
|
|
6459
|
-
const SDK_VERSION = "0.12.
|
|
6557
|
+
const SDK_VERSION = "0.12.4";
|
|
6460
6558
|
const registry = {};
|
|
6461
6559
|
function register(type, info) {
|
|
6462
6560
|
let typeList = registry[type];
|
|
@@ -7143,6 +7241,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
7143
7241
|
get contentWrapperProps() {
|
|
7144
7242
|
return props.contentWrapperProps;
|
|
7145
7243
|
},
|
|
7244
|
+
get linkComponent() {
|
|
7245
|
+
return props.linkComponent;
|
|
7246
|
+
},
|
|
7146
7247
|
get trustedHosts() {
|
|
7147
7248
|
return props.trustedHosts;
|
|
7148
7249
|
},
|
|
@@ -7202,6 +7303,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
7202
7303
|
get registeredComponents() {
|
|
7203
7304
|
return state.registeredComponents;
|
|
7204
7305
|
},
|
|
7306
|
+
get linkComponent() {
|
|
7307
|
+
return props.linkComponent;
|
|
7308
|
+
},
|
|
7205
7309
|
[qwik._IMMUTABLE]: {
|
|
7206
7310
|
blocks: qwik._fnSignal((p0) => {
|
|
7207
7311
|
var _a2, _b2;
|
|
@@ -7212,6 +7316,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
7212
7316
|
context: qwik._fnSignal((p0) => p0.builderContextSignal, [
|
|
7213
7317
|
state
|
|
7214
7318
|
], "p0.builderContextSignal"),
|
|
7319
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
7320
|
+
props
|
|
7321
|
+
], "p0.linkComponent"),
|
|
7215
7322
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
7216
7323
|
state
|
|
7217
7324
|
], "p0.registeredComponents")
|
|
@@ -7249,6 +7356,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
7249
7356
|
includeRefs: qwik._fnSignal((p0) => p0.includeRefs, [
|
|
7250
7357
|
props
|
|
7251
7358
|
], "p0.includeRefs"),
|
|
7359
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
7360
|
+
props
|
|
7361
|
+
], "p0.linkComponent"),
|
|
7252
7362
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
7253
7363
|
props
|
|
7254
7364
|
], "p0.locale"),
|
|
@@ -7366,6 +7476,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
7366
7476
|
get customComponents() {
|
|
7367
7477
|
return props.customComponents;
|
|
7368
7478
|
},
|
|
7479
|
+
get linkComponent() {
|
|
7480
|
+
return props.linkComponent;
|
|
7481
|
+
},
|
|
7369
7482
|
get canTrack() {
|
|
7370
7483
|
return props.canTrack;
|
|
7371
7484
|
},
|
|
@@ -7436,6 +7549,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
7436
7549
|
isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
|
|
7437
7550
|
state
|
|
7438
7551
|
], "p0.shouldRenderVariants"),
|
|
7552
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
7553
|
+
props
|
|
7554
|
+
], "p0.linkComponent"),
|
|
7439
7555
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
7440
7556
|
props
|
|
7441
7557
|
], "p0.locale"),
|
|
@@ -7474,6 +7590,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
7474
7590
|
get customComponents() {
|
|
7475
7591
|
return props.customComponents;
|
|
7476
7592
|
},
|
|
7593
|
+
get linkComponent() {
|
|
7594
|
+
return props.linkComponent;
|
|
7595
|
+
},
|
|
7477
7596
|
get canTrack() {
|
|
7478
7597
|
return props.canTrack;
|
|
7479
7598
|
},
|
|
@@ -7547,6 +7666,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
7547
7666
|
isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
|
|
7548
7667
|
state
|
|
7549
7668
|
], "p0.shouldRenderVariants"),
|
|
7669
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
7670
|
+
props
|
|
7671
|
+
], "p0.linkComponent"),
|
|
7550
7672
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
7551
7673
|
props
|
|
7552
7674
|
], "p0.locale"),
|
|
@@ -7597,7 +7719,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
7597
7719
|
var _a2, _b;
|
|
7598
7720
|
const [props2] = qwik.useLexicalScope();
|
|
7599
7721
|
return [
|
|
7600
|
-
props2.attributes
|
|
7722
|
+
props2.attributes[getClassPropName()],
|
|
7601
7723
|
"builder-symbol",
|
|
7602
7724
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
7603
7725
|
((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -7650,6 +7772,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
7650
7772
|
get content() {
|
|
7651
7773
|
return state.contentToUse;
|
|
7652
7774
|
},
|
|
7775
|
+
get linkComponent() {
|
|
7776
|
+
return props.builderLinkComponent;
|
|
7777
|
+
},
|
|
7653
7778
|
[qwik._IMMUTABLE]: {
|
|
7654
7779
|
apiKey: qwik._fnSignal((p0) => p0.builderContext.apiKey, [
|
|
7655
7780
|
props
|
|
@@ -7683,6 +7808,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
7683
7808
|
props,
|
|
7684
7809
|
state
|
|
7685
7810
|
], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
|
|
7811
|
+
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
7812
|
+
props
|
|
7813
|
+
], "p0.builderLinkComponent"),
|
|
7686
7814
|
model: qwik._fnSignal((p0) => {
|
|
7687
7815
|
var _a2;
|
|
7688
7816
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|