@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/node/index.qwik.cjs
CHANGED
|
@@ -5,36 +5,84 @@ const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
|
5
5
|
const nodeEvaluate = require("./node-evaluate-4014c795.cjs");
|
|
6
6
|
const build = require("@builder.io/qwik/build");
|
|
7
7
|
require("node:module");
|
|
8
|
-
const
|
|
8
|
+
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
9
|
+
"area",
|
|
10
|
+
"base",
|
|
11
|
+
"br",
|
|
12
|
+
"col",
|
|
13
|
+
"embed",
|
|
14
|
+
"hr",
|
|
15
|
+
"img",
|
|
16
|
+
"input",
|
|
17
|
+
"keygen",
|
|
18
|
+
"link",
|
|
19
|
+
"meta",
|
|
20
|
+
"param",
|
|
21
|
+
"source",
|
|
22
|
+
"track",
|
|
23
|
+
"wbr"
|
|
24
|
+
]);
|
|
25
|
+
const isEmptyElement = (tagName) => {
|
|
26
|
+
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
27
|
+
};
|
|
28
|
+
const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
29
|
+
qwik._jsxBranch();
|
|
9
30
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
10
|
-
children: props.
|
|
31
|
+
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
11
32
|
...props.attributes,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, {
|
|
16
|
-
href: qwik._fnSignal((p0) => p0.link, [
|
|
17
|
-
props
|
|
18
|
-
], "p0.link"),
|
|
19
|
-
role: "button",
|
|
20
|
-
target: qwik._fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
|
|
21
|
-
props
|
|
22
|
-
], 'p0.openLinkInNewTab?"_blank":undefined')
|
|
23
|
-
}, 0, "jc_0") : /* @__PURE__ */ qwik._jsxS("button", {
|
|
33
|
+
...props.actionAttributes,
|
|
34
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
|
|
35
|
+
}, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
24
36
|
...props.attributes,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
...props.actionAttributes,
|
|
38
|
+
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
|
|
39
|
+
}, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
40
|
+
...props.attributes,
|
|
41
|
+
...props.actionAttributes
|
|
42
|
+
}, 0, "yW_4")
|
|
43
|
+
}, 1, "yW_5");
|
|
44
|
+
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
45
|
+
const TARGET = "qwik";
|
|
46
|
+
const getClassPropName = () => {
|
|
47
|
+
switch (TARGET) {
|
|
48
|
+
case "react":
|
|
49
|
+
case "reactNative":
|
|
50
|
+
case "rsc":
|
|
51
|
+
return "className";
|
|
52
|
+
case "svelte":
|
|
53
|
+
case "vue":
|
|
54
|
+
case "solid":
|
|
55
|
+
case "qwik":
|
|
56
|
+
return "class";
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
60
|
+
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
61
|
+
get TagName() {
|
|
62
|
+
return props.link ? props.builderLinkComponent || "a" : "button";
|
|
63
|
+
},
|
|
64
|
+
actionAttributes: {},
|
|
65
|
+
attributes: {
|
|
66
|
+
...props.attributes,
|
|
67
|
+
[getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
|
|
68
|
+
...props.link ? {
|
|
69
|
+
href: props.link,
|
|
70
|
+
target: props.openLinkInNewTab ? "_blank" : void 0,
|
|
71
|
+
role: "link"
|
|
72
|
+
} : {
|
|
73
|
+
role: "button"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
children: qwik._fnSignal((p0) => p0.text, [
|
|
77
|
+
props
|
|
78
|
+
], "p0.text"),
|
|
79
|
+
[qwik._IMMUTABLE]: {
|
|
80
|
+
TagName: qwik._fnSignal((p0) => p0.link ? p0.builderLinkComponent || "a" : "button", [
|
|
34
81
|
props
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
|
|
82
|
+
], 'p0.link?p0.builderLinkComponent||"a":"button"'),
|
|
83
|
+
actionAttributes: qwik._IMMUTABLE
|
|
84
|
+
}
|
|
85
|
+
}, 3, "jc_0");
|
|
38
86
|
}, "Button_component_gJoMUICXoUQ"));
|
|
39
87
|
const builderContext = qwik.createContextId("Builder");
|
|
40
88
|
const ComponentsContext = qwik.createContextId("Components");
|
|
@@ -67,7 +115,6 @@ const set = (obj, _path, value) => {
|
|
|
67
115
|
function isBrowser() {
|
|
68
116
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
69
117
|
}
|
|
70
|
-
const TARGET = "qwik";
|
|
71
118
|
function isIframe() {
|
|
72
119
|
return isBrowser() && window.self !== window.top;
|
|
73
120
|
}
|
|
@@ -577,6 +624,29 @@ function getBlockActions(options) {
|
|
|
577
624
|
}
|
|
578
625
|
return obj;
|
|
579
626
|
}
|
|
627
|
+
function transformStyleProperty({ style }) {
|
|
628
|
+
return style;
|
|
629
|
+
}
|
|
630
|
+
const getStyle = ({ block, context }) => {
|
|
631
|
+
return mapStyleObjToStrIfNeeded(transformStyleProperty({
|
|
632
|
+
style: block.style || {},
|
|
633
|
+
context,
|
|
634
|
+
block
|
|
635
|
+
}));
|
|
636
|
+
};
|
|
637
|
+
function mapStyleObjToStrIfNeeded(style) {
|
|
638
|
+
switch (TARGET) {
|
|
639
|
+
case "svelte":
|
|
640
|
+
case "vue":
|
|
641
|
+
case "solid":
|
|
642
|
+
return convertStyleMapToCSSArray(style).join(" ");
|
|
643
|
+
case "qwik":
|
|
644
|
+
case "reactNative":
|
|
645
|
+
case "react":
|
|
646
|
+
case "rsc":
|
|
647
|
+
return style;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
580
650
|
function transformBlockProperties({ properties }) {
|
|
581
651
|
return properties;
|
|
582
652
|
}
|
|
@@ -591,8 +661,11 @@ function getBlockProperties({ block, context }) {
|
|
|
591
661
|
...extractRelevantRootBlockProperties(block),
|
|
592
662
|
...block.properties,
|
|
593
663
|
"builder-id": block.id,
|
|
594
|
-
style:
|
|
595
|
-
|
|
664
|
+
style: getStyle({
|
|
665
|
+
block,
|
|
666
|
+
context
|
|
667
|
+
}),
|
|
668
|
+
[getClassPropName()]: [
|
|
596
669
|
block.id,
|
|
597
670
|
"builder-block",
|
|
598
671
|
block.class,
|
|
@@ -605,56 +678,6 @@ function getBlockProperties({ block, context }) {
|
|
|
605
678
|
block
|
|
606
679
|
});
|
|
607
680
|
}
|
|
608
|
-
function getStyleAttribute(style) {
|
|
609
|
-
switch (TARGET) {
|
|
610
|
-
case "svelte":
|
|
611
|
-
case "vue":
|
|
612
|
-
case "solid":
|
|
613
|
-
return convertStyleMapToCSSArray(style).join(" ");
|
|
614
|
-
case "qwik":
|
|
615
|
-
case "reactNative":
|
|
616
|
-
case "react":
|
|
617
|
-
case "rsc":
|
|
618
|
-
return style;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
622
|
-
"area",
|
|
623
|
-
"base",
|
|
624
|
-
"br",
|
|
625
|
-
"col",
|
|
626
|
-
"embed",
|
|
627
|
-
"hr",
|
|
628
|
-
"img",
|
|
629
|
-
"input",
|
|
630
|
-
"keygen",
|
|
631
|
-
"link",
|
|
632
|
-
"meta",
|
|
633
|
-
"param",
|
|
634
|
-
"source",
|
|
635
|
-
"track",
|
|
636
|
-
"wbr"
|
|
637
|
-
]);
|
|
638
|
-
const isEmptyElement = (tagName) => {
|
|
639
|
-
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
640
|
-
};
|
|
641
|
-
const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
642
|
-
qwik._jsxBranch();
|
|
643
|
-
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
644
|
-
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
645
|
-
...props.attributes,
|
|
646
|
-
...props.actionAttributes,
|
|
647
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
|
|
648
|
-
}, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
649
|
-
...props.attributes,
|
|
650
|
-
...props.actionAttributes,
|
|
651
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
|
|
652
|
-
}, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
653
|
-
...props.attributes,
|
|
654
|
-
...props.actionAttributes
|
|
655
|
-
}, 0, "yW_4")
|
|
656
|
-
}, 1, "yW_5");
|
|
657
|
-
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
658
681
|
const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
659
682
|
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
660
683
|
get TagName() {
|
|
@@ -733,6 +756,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
733
756
|
builderBlock: props.builderBlock,
|
|
734
757
|
context: props.context,
|
|
735
758
|
componentRef: props.componentRef,
|
|
759
|
+
linkComponent: props.linkComponent,
|
|
736
760
|
includeBlockProps: props.includeBlockProps,
|
|
737
761
|
isInteractive: props.isInteractive,
|
|
738
762
|
contextValue: props.context
|
|
@@ -746,10 +770,16 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
746
770
|
get registeredComponents() {
|
|
747
771
|
return props.registeredComponents;
|
|
748
772
|
},
|
|
773
|
+
get linkComponent() {
|
|
774
|
+
return props.linkComponent;
|
|
775
|
+
},
|
|
749
776
|
[qwik._IMMUTABLE]: {
|
|
750
777
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
751
778
|
props
|
|
752
779
|
], "p0.context"),
|
|
780
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
781
|
+
props
|
|
782
|
+
], "p0.linkComponent"),
|
|
753
783
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
754
784
|
props
|
|
755
785
|
], "p0.registeredComponents")
|
|
@@ -774,6 +804,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
774
804
|
get registeredComponents() {
|
|
775
805
|
return props.registeredComponents;
|
|
776
806
|
},
|
|
807
|
+
get linkComponent() {
|
|
808
|
+
return props.linkComponent;
|
|
809
|
+
},
|
|
777
810
|
[qwik._IMMUTABLE]: {
|
|
778
811
|
block: qwik._fnSignal((p0) => p0.block, [
|
|
779
812
|
props
|
|
@@ -781,6 +814,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
781
814
|
context: qwik._fnSignal((p0) => p0.store, [
|
|
782
815
|
state
|
|
783
816
|
], "p0.store"),
|
|
817
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
818
|
+
props
|
|
819
|
+
], "p0.linkComponent"),
|
|
784
820
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
785
821
|
props
|
|
786
822
|
], "p0.registeredComponents")
|
|
@@ -827,9 +863,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
827
863
|
props
|
|
828
864
|
]));
|
|
829
865
|
const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
830
|
-
|
|
866
|
+
var _a2;
|
|
867
|
+
const [processedBlock2, props2] = qwik.useLexicalScope();
|
|
868
|
+
const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
|
|
869
|
+
if (shouldUseLink)
|
|
870
|
+
return props2.linkComponent || "a";
|
|
831
871
|
return props2.block.tagName || "div";
|
|
832
872
|
}, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
|
|
873
|
+
processedBlock,
|
|
833
874
|
props
|
|
834
875
|
]));
|
|
835
876
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
@@ -859,7 +900,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
859
900
|
repeatItem
|
|
860
901
|
]));
|
|
861
902
|
const componentRefProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
862
|
-
var _a2, _b, _c, _d, _e;
|
|
903
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
863
904
|
const [blockComponent2, processedBlock2, props2, state2] = qwik.useLexicalScope();
|
|
864
905
|
return {
|
|
865
906
|
blockChildren: processedBlock2.value.children ?? [],
|
|
@@ -867,15 +908,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
867
908
|
componentOptions: {
|
|
868
909
|
...getBlockComponentOptions(processedBlock2.value),
|
|
869
910
|
builderContext: props2.context,
|
|
870
|
-
...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "
|
|
911
|
+
...((_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" ? {
|
|
912
|
+
builderLinkComponent: props2.linkComponent
|
|
913
|
+
} : {},
|
|
914
|
+
...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
|
|
871
915
|
builderComponents: props2.registeredComponents
|
|
872
916
|
} : {}
|
|
873
917
|
},
|
|
874
918
|
context: state2.childrenContext,
|
|
919
|
+
linkComponent: props2.linkComponent,
|
|
875
920
|
registeredComponents: props2.registeredComponents,
|
|
876
921
|
builderBlock: processedBlock2.value,
|
|
877
|
-
includeBlockProps: ((
|
|
878
|
-
isInteractive: !((
|
|
922
|
+
includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
|
|
923
|
+
isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
|
|
879
924
|
};
|
|
880
925
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
881
926
|
blockComponent,
|
|
@@ -912,6 +957,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
912
957
|
get context() {
|
|
913
958
|
return props.context;
|
|
914
959
|
},
|
|
960
|
+
get linkComponent() {
|
|
961
|
+
return props.linkComponent;
|
|
962
|
+
},
|
|
915
963
|
children: [
|
|
916
964
|
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
917
965
|
get componentRef() {
|
|
@@ -929,6 +977,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
929
977
|
get registeredComponents() {
|
|
930
978
|
return componentRefProps.value.registeredComponents;
|
|
931
979
|
},
|
|
980
|
+
get linkComponent() {
|
|
981
|
+
return componentRefProps.value.linkComponent;
|
|
982
|
+
},
|
|
932
983
|
get builderBlock() {
|
|
933
984
|
return componentRefProps.value.builderBlock;
|
|
934
985
|
},
|
|
@@ -960,6 +1011,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
960
1011
|
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
961
1012
|
componentRefProps
|
|
962
1013
|
], "p0.value.isInteractive"),
|
|
1014
|
+
linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
|
|
1015
|
+
componentRefProps
|
|
1016
|
+
], "p0.value.linkComponent"),
|
|
963
1017
|
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
964
1018
|
componentRefProps
|
|
965
1019
|
], "p0.value.registeredComponents")
|
|
@@ -974,10 +1028,16 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
974
1028
|
get registeredComponents() {
|
|
975
1029
|
return props.registeredComponents;
|
|
976
1030
|
},
|
|
1031
|
+
get linkComponent() {
|
|
1032
|
+
return props.linkComponent;
|
|
1033
|
+
},
|
|
977
1034
|
[qwik._IMMUTABLE]: {
|
|
978
1035
|
context: qwik._fnSignal((p0) => p0.childrenContext, [
|
|
979
1036
|
state
|
|
980
1037
|
], "p0.childrenContext"),
|
|
1038
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
1039
|
+
props
|
|
1040
|
+
], "p0.linkComponent"),
|
|
981
1041
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
982
1042
|
props
|
|
983
1043
|
], "p0.registeredComponents")
|
|
@@ -994,7 +1054,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
994
1054
|
], "p0.value"),
|
|
995
1055
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
996
1056
|
props
|
|
997
|
-
], "p0.context")
|
|
1057
|
+
], "p0.context"),
|
|
1058
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
1059
|
+
props
|
|
1060
|
+
], "p0.linkComponent")
|
|
998
1061
|
}
|
|
999
1062
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
1000
1063
|
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
@@ -1007,8 +1070,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1007
1070
|
get registeredComponents() {
|
|
1008
1071
|
return props.registeredComponents;
|
|
1009
1072
|
},
|
|
1073
|
+
get linkComponent() {
|
|
1074
|
+
return props.linkComponent;
|
|
1075
|
+
},
|
|
1010
1076
|
[qwik._IMMUTABLE]: {
|
|
1011
1077
|
block: qwik._wrapProp(data, "block"),
|
|
1078
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
1079
|
+
props
|
|
1080
|
+
], "p0.linkComponent"),
|
|
1012
1081
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
1013
1082
|
props
|
|
1014
1083
|
], "p0.registeredComponents"),
|
|
@@ -1031,6 +1100,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1031
1100
|
get registeredComponents() {
|
|
1032
1101
|
return componentRefProps.value.registeredComponents;
|
|
1033
1102
|
},
|
|
1103
|
+
get linkComponent() {
|
|
1104
|
+
return componentRefProps.value.linkComponent;
|
|
1105
|
+
},
|
|
1034
1106
|
get builderBlock() {
|
|
1035
1107
|
return componentRefProps.value.builderBlock;
|
|
1036
1108
|
},
|
|
@@ -1062,6 +1134,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
1062
1134
|
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
1063
1135
|
componentRefProps
|
|
1064
1136
|
], "p0.value.isInteractive"),
|
|
1137
|
+
linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
|
|
1138
|
+
componentRefProps
|
|
1139
|
+
], "p0.value.linkComponent"),
|
|
1065
1140
|
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
1066
1141
|
componentRefProps
|
|
1067
1142
|
], "p0.value.registeredComponents")
|
|
@@ -1189,6 +1264,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1189
1264
|
children: props.blocks ? (props.blocks || []).map((block) => {
|
|
1190
1265
|
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
1191
1266
|
block,
|
|
1267
|
+
get linkComponent() {
|
|
1268
|
+
return props.linkComponent;
|
|
1269
|
+
},
|
|
1192
1270
|
get context() {
|
|
1193
1271
|
return props.context || builderContext$1;
|
|
1194
1272
|
},
|
|
@@ -1200,6 +1278,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1200
1278
|
builderContext$1,
|
|
1201
1279
|
props
|
|
1202
1280
|
], "p1.context||p0"),
|
|
1281
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
1282
|
+
props
|
|
1283
|
+
], "p0.linkComponent"),
|
|
1203
1284
|
registeredComponents: qwik._fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
|
|
1204
1285
|
componentsContext,
|
|
1205
1286
|
props
|
|
@@ -1259,7 +1340,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
|
|
|
1259
1340
|
const mobileWidth = "100%";
|
|
1260
1341
|
const mobileMarginLeft = 0;
|
|
1261
1342
|
const marginLeftKey = "margin-left";
|
|
1343
|
+
const sharedStyles = {
|
|
1344
|
+
display: "flex",
|
|
1345
|
+
flexDirection: "column",
|
|
1346
|
+
alignItems: "stretch"
|
|
1347
|
+
};
|
|
1262
1348
|
return {
|
|
1349
|
+
...sharedStyles,
|
|
1263
1350
|
width,
|
|
1264
1351
|
[marginLeftKey]: gutterPixels,
|
|
1265
1352
|
"--column-width-mobile": getMobileStyle(props, state, {
|
|
@@ -1357,40 +1444,56 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
1357
1444
|
}
|
|
1358
1445
|
}, 3, "c0_0"),
|
|
1359
1446
|
(props.columns || []).map((column, index) => {
|
|
1360
|
-
return /* @__PURE__ */ qwik.
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
get styleProp() {
|
|
1370
|
-
return {
|
|
1371
|
-
flexGrow: "1"
|
|
1372
|
-
};
|
|
1373
|
-
},
|
|
1374
|
-
get context() {
|
|
1375
|
-
return props.builderContext;
|
|
1447
|
+
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
1448
|
+
TagName: column.link ? props.builderLinkComponent || "a" : "div",
|
|
1449
|
+
actionAttributes: {},
|
|
1450
|
+
attributes: {
|
|
1451
|
+
...column.link ? {
|
|
1452
|
+
href: column.link
|
|
1453
|
+
} : {},
|
|
1454
|
+
[getClassPropName()]: "builder-column",
|
|
1455
|
+
style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
|
|
1376
1456
|
},
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1457
|
+
children: /* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
1458
|
+
path: `component.options.columns.${index}.blocks`,
|
|
1459
|
+
get parent() {
|
|
1460
|
+
return props.builderBlock.id;
|
|
1461
|
+
},
|
|
1462
|
+
get styleProp() {
|
|
1463
|
+
return {
|
|
1464
|
+
flexGrow: "1"
|
|
1465
|
+
};
|
|
1466
|
+
},
|
|
1467
|
+
get context() {
|
|
1468
|
+
return props.builderContext;
|
|
1469
|
+
},
|
|
1470
|
+
get registeredComponents() {
|
|
1471
|
+
return props.builderComponents;
|
|
1472
|
+
},
|
|
1473
|
+
get linkComponent() {
|
|
1474
|
+
return props.builderLinkComponent;
|
|
1475
|
+
},
|
|
1476
|
+
blocks: deoptSignal(column.blocks),
|
|
1477
|
+
[qwik._IMMUTABLE]: {
|
|
1478
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
1479
|
+
props
|
|
1480
|
+
], "p0.builderContext"),
|
|
1481
|
+
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
1482
|
+
props
|
|
1483
|
+
], "p0.builderLinkComponent"),
|
|
1484
|
+
parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
|
|
1485
|
+
props
|
|
1486
|
+
], "p0.builderBlock.id"),
|
|
1487
|
+
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
1488
|
+
props
|
|
1489
|
+
], "p0.builderComponents"),
|
|
1490
|
+
styleProp: qwik._IMMUTABLE
|
|
1491
|
+
}
|
|
1492
|
+
}, 3, "c0_1"),
|
|
1381
1493
|
[qwik._IMMUTABLE]: {
|
|
1382
|
-
|
|
1383
|
-
props
|
|
1384
|
-
], "p0.builderContext"),
|
|
1385
|
-
parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
|
|
1386
|
-
props
|
|
1387
|
-
], "p0.builderBlock.id"),
|
|
1388
|
-
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
1389
|
-
props
|
|
1390
|
-
], "p0.builderComponents"),
|
|
1391
|
-
styleProp: qwik._IMMUTABLE
|
|
1494
|
+
actionAttributes: qwik._IMMUTABLE
|
|
1392
1495
|
}
|
|
1393
|
-
},
|
|
1496
|
+
}, 1, index);
|
|
1394
1497
|
})
|
|
1395
1498
|
], 1, "c0_2");
|
|
1396
1499
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
@@ -1399,11 +1502,6 @@ const STYLES$1 = `
|
|
|
1399
1502
|
display: flex;
|
|
1400
1503
|
line-height: normal;
|
|
1401
1504
|
}
|
|
1402
|
-
.div-Columns-2 {
|
|
1403
|
-
display: flex;
|
|
1404
|
-
flex-direction: column;
|
|
1405
|
-
align-items: stretch;
|
|
1406
|
-
}
|
|
1407
1505
|
`;
|
|
1408
1506
|
const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1409
1507
|
return /* @__PURE__ */ qwik._jsxQ("span", null, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
@@ -3326,7 +3424,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3326
3424
|
}
|
|
3327
3425
|
};
|
|
3328
3426
|
};
|
|
3329
|
-
const SDK_VERSION = "0.12.
|
|
3427
|
+
const SDK_VERSION = "0.12.4";
|
|
3330
3428
|
const registry = {};
|
|
3331
3429
|
function register(type, info) {
|
|
3332
3430
|
let typeList = registry[type];
|
|
@@ -4013,6 +4111,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
4013
4111
|
get contentWrapperProps() {
|
|
4014
4112
|
return props.contentWrapperProps;
|
|
4015
4113
|
},
|
|
4114
|
+
get linkComponent() {
|
|
4115
|
+
return props.linkComponent;
|
|
4116
|
+
},
|
|
4016
4117
|
get trustedHosts() {
|
|
4017
4118
|
return props.trustedHosts;
|
|
4018
4119
|
},
|
|
@@ -4072,6 +4173,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
4072
4173
|
get registeredComponents() {
|
|
4073
4174
|
return state.registeredComponents;
|
|
4074
4175
|
},
|
|
4176
|
+
get linkComponent() {
|
|
4177
|
+
return props.linkComponent;
|
|
4178
|
+
},
|
|
4075
4179
|
[qwik._IMMUTABLE]: {
|
|
4076
4180
|
blocks: qwik._fnSignal((p0) => {
|
|
4077
4181
|
var _a2, _b2;
|
|
@@ -4082,6 +4186,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
4082
4186
|
context: qwik._fnSignal((p0) => p0.builderContextSignal, [
|
|
4083
4187
|
state
|
|
4084
4188
|
], "p0.builderContextSignal"),
|
|
4189
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4190
|
+
props
|
|
4191
|
+
], "p0.linkComponent"),
|
|
4085
4192
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
4086
4193
|
state
|
|
4087
4194
|
], "p0.registeredComponents")
|
|
@@ -4119,6 +4226,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
4119
4226
|
includeRefs: qwik._fnSignal((p0) => p0.includeRefs, [
|
|
4120
4227
|
props
|
|
4121
4228
|
], "p0.includeRefs"),
|
|
4229
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4230
|
+
props
|
|
4231
|
+
], "p0.linkComponent"),
|
|
4122
4232
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
4123
4233
|
props
|
|
4124
4234
|
], "p0.locale"),
|
|
@@ -4236,6 +4346,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4236
4346
|
get customComponents() {
|
|
4237
4347
|
return props.customComponents;
|
|
4238
4348
|
},
|
|
4349
|
+
get linkComponent() {
|
|
4350
|
+
return props.linkComponent;
|
|
4351
|
+
},
|
|
4239
4352
|
get canTrack() {
|
|
4240
4353
|
return props.canTrack;
|
|
4241
4354
|
},
|
|
@@ -4306,6 +4419,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4306
4419
|
isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
|
|
4307
4420
|
state
|
|
4308
4421
|
], "p0.shouldRenderVariants"),
|
|
4422
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4423
|
+
props
|
|
4424
|
+
], "p0.linkComponent"),
|
|
4309
4425
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
4310
4426
|
props
|
|
4311
4427
|
], "p0.locale"),
|
|
@@ -4344,6 +4460,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4344
4460
|
get customComponents() {
|
|
4345
4461
|
return props.customComponents;
|
|
4346
4462
|
},
|
|
4463
|
+
get linkComponent() {
|
|
4464
|
+
return props.linkComponent;
|
|
4465
|
+
},
|
|
4347
4466
|
get canTrack() {
|
|
4348
4467
|
return props.canTrack;
|
|
4349
4468
|
},
|
|
@@ -4417,6 +4536,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4417
4536
|
isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
|
|
4418
4537
|
state
|
|
4419
4538
|
], "p0.shouldRenderVariants"),
|
|
4539
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4540
|
+
props
|
|
4541
|
+
], "p0.linkComponent"),
|
|
4420
4542
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
4421
4543
|
props
|
|
4422
4544
|
], "p0.locale"),
|
|
@@ -4467,7 +4589,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4467
4589
|
var _a2, _b;
|
|
4468
4590
|
const [props2] = qwik.useLexicalScope();
|
|
4469
4591
|
return [
|
|
4470
|
-
props2.attributes
|
|
4592
|
+
props2.attributes[getClassPropName()],
|
|
4471
4593
|
"builder-symbol",
|
|
4472
4594
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
4473
4595
|
((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4520,6 +4642,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4520
4642
|
get content() {
|
|
4521
4643
|
return state.contentToUse;
|
|
4522
4644
|
},
|
|
4645
|
+
get linkComponent() {
|
|
4646
|
+
return props.builderLinkComponent;
|
|
4647
|
+
},
|
|
4523
4648
|
[qwik._IMMUTABLE]: {
|
|
4524
4649
|
apiKey: qwik._fnSignal((p0) => p0.builderContext.apiKey, [
|
|
4525
4650
|
props
|
|
@@ -4553,6 +4678,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4553
4678
|
props,
|
|
4554
4679
|
state
|
|
4555
4680
|
], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
|
|
4681
|
+
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
4682
|
+
props
|
|
4683
|
+
], "p0.builderLinkComponent"),
|
|
4556
4684
|
model: qwik._fnSignal((p0) => {
|
|
4557
4685
|
var _a2;
|
|
4558
4686
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|