@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
|
@@ -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");
|
|
@@ -57,7 +105,6 @@ const logger = {
|
|
|
57
105
|
function isBrowser() {
|
|
58
106
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
59
107
|
}
|
|
60
|
-
const TARGET = "qwik";
|
|
61
108
|
function isIframe() {
|
|
62
109
|
return isBrowser() && window.self !== window.top;
|
|
63
110
|
}
|
|
@@ -476,6 +523,29 @@ function getBlockActions(options) {
|
|
|
476
523
|
}
|
|
477
524
|
return obj;
|
|
478
525
|
}
|
|
526
|
+
function transformStyleProperty({ style }) {
|
|
527
|
+
return style;
|
|
528
|
+
}
|
|
529
|
+
const getStyle = ({ block, context }) => {
|
|
530
|
+
return mapStyleObjToStrIfNeeded(transformStyleProperty({
|
|
531
|
+
style: block.style || {},
|
|
532
|
+
context,
|
|
533
|
+
block
|
|
534
|
+
}));
|
|
535
|
+
};
|
|
536
|
+
function mapStyleObjToStrIfNeeded(style) {
|
|
537
|
+
switch (TARGET) {
|
|
538
|
+
case "svelte":
|
|
539
|
+
case "vue":
|
|
540
|
+
case "solid":
|
|
541
|
+
return convertStyleMapToCSSArray(style).join(" ");
|
|
542
|
+
case "qwik":
|
|
543
|
+
case "reactNative":
|
|
544
|
+
case "react":
|
|
545
|
+
case "rsc":
|
|
546
|
+
return style;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
479
549
|
function transformBlockProperties({ properties }) {
|
|
480
550
|
return properties;
|
|
481
551
|
}
|
|
@@ -490,8 +560,11 @@ function getBlockProperties({ block, context }) {
|
|
|
490
560
|
...extractRelevantRootBlockProperties(block),
|
|
491
561
|
...block.properties,
|
|
492
562
|
"builder-id": block.id,
|
|
493
|
-
style:
|
|
494
|
-
|
|
563
|
+
style: getStyle({
|
|
564
|
+
block,
|
|
565
|
+
context
|
|
566
|
+
}),
|
|
567
|
+
[getClassPropName()]: [
|
|
495
568
|
block.id,
|
|
496
569
|
"builder-block",
|
|
497
570
|
block.class,
|
|
@@ -504,56 +577,6 @@ function getBlockProperties({ block, context }) {
|
|
|
504
577
|
block
|
|
505
578
|
});
|
|
506
579
|
}
|
|
507
|
-
function getStyleAttribute(style) {
|
|
508
|
-
switch (TARGET) {
|
|
509
|
-
case "svelte":
|
|
510
|
-
case "vue":
|
|
511
|
-
case "solid":
|
|
512
|
-
return convertStyleMapToCSSArray(style).join(" ");
|
|
513
|
-
case "qwik":
|
|
514
|
-
case "reactNative":
|
|
515
|
-
case "react":
|
|
516
|
-
case "rsc":
|
|
517
|
-
return style;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
521
|
-
"area",
|
|
522
|
-
"base",
|
|
523
|
-
"br",
|
|
524
|
-
"col",
|
|
525
|
-
"embed",
|
|
526
|
-
"hr",
|
|
527
|
-
"img",
|
|
528
|
-
"input",
|
|
529
|
-
"keygen",
|
|
530
|
-
"link",
|
|
531
|
-
"meta",
|
|
532
|
-
"param",
|
|
533
|
-
"source",
|
|
534
|
-
"track",
|
|
535
|
-
"wbr"
|
|
536
|
-
]);
|
|
537
|
-
const isEmptyElement = (tagName) => {
|
|
538
|
-
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
539
|
-
};
|
|
540
|
-
const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
541
|
-
qwik._jsxBranch();
|
|
542
|
-
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
543
|
-
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
544
|
-
...props.attributes,
|
|
545
|
-
...props.actionAttributes,
|
|
546
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
|
|
547
|
-
}, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
548
|
-
...props.attributes,
|
|
549
|
-
...props.actionAttributes,
|
|
550
|
-
children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
|
|
551
|
-
}, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
|
|
552
|
-
...props.attributes,
|
|
553
|
-
...props.actionAttributes
|
|
554
|
-
}, 0, "yW_4")
|
|
555
|
-
}, 1, "yW_5");
|
|
556
|
-
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
557
580
|
const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
558
581
|
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
559
582
|
get TagName() {
|
|
@@ -632,6 +655,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
632
655
|
builderBlock: props.builderBlock,
|
|
633
656
|
context: props.context,
|
|
634
657
|
componentRef: props.componentRef,
|
|
658
|
+
linkComponent: props.linkComponent,
|
|
635
659
|
includeBlockProps: props.includeBlockProps,
|
|
636
660
|
isInteractive: props.isInteractive,
|
|
637
661
|
contextValue: props.context
|
|
@@ -645,10 +669,16 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
645
669
|
get registeredComponents() {
|
|
646
670
|
return props.registeredComponents;
|
|
647
671
|
},
|
|
672
|
+
get linkComponent() {
|
|
673
|
+
return props.linkComponent;
|
|
674
|
+
},
|
|
648
675
|
[qwik._IMMUTABLE]: {
|
|
649
676
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
650
677
|
props
|
|
651
678
|
], "p0.context"),
|
|
679
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
680
|
+
props
|
|
681
|
+
], "p0.linkComponent"),
|
|
652
682
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
653
683
|
props
|
|
654
684
|
], "p0.registeredComponents")
|
|
@@ -673,6 +703,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
673
703
|
get registeredComponents() {
|
|
674
704
|
return props.registeredComponents;
|
|
675
705
|
},
|
|
706
|
+
get linkComponent() {
|
|
707
|
+
return props.linkComponent;
|
|
708
|
+
},
|
|
676
709
|
[qwik._IMMUTABLE]: {
|
|
677
710
|
block: qwik._fnSignal((p0) => p0.block, [
|
|
678
711
|
props
|
|
@@ -680,6 +713,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
680
713
|
context: qwik._fnSignal((p0) => p0.store, [
|
|
681
714
|
state
|
|
682
715
|
], "p0.store"),
|
|
716
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
717
|
+
props
|
|
718
|
+
], "p0.linkComponent"),
|
|
683
719
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
684
720
|
props
|
|
685
721
|
], "p0.registeredComponents")
|
|
@@ -726,9 +762,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
726
762
|
props
|
|
727
763
|
]));
|
|
728
764
|
const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
729
|
-
|
|
765
|
+
var _a2;
|
|
766
|
+
const [processedBlock2, props2] = qwik.useLexicalScope();
|
|
767
|
+
const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
|
|
768
|
+
if (shouldUseLink)
|
|
769
|
+
return props2.linkComponent || "a";
|
|
730
770
|
return props2.block.tagName || "div";
|
|
731
771
|
}, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
|
|
772
|
+
processedBlock,
|
|
732
773
|
props
|
|
733
774
|
]));
|
|
734
775
|
const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
@@ -758,7 +799,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
758
799
|
repeatItem
|
|
759
800
|
]));
|
|
760
801
|
const componentRefProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
761
|
-
var _a2, _b, _c, _d, _e;
|
|
802
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
762
803
|
const [blockComponent2, processedBlock2, props2, state2] = qwik.useLexicalScope();
|
|
763
804
|
return {
|
|
764
805
|
blockChildren: processedBlock2.value.children ?? [],
|
|
@@ -766,15 +807,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
766
807
|
componentOptions: {
|
|
767
808
|
...getBlockComponentOptions(processedBlock2.value),
|
|
768
809
|
builderContext: props2.context,
|
|
769
|
-
...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "
|
|
810
|
+
...((_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" ? {
|
|
811
|
+
builderLinkComponent: props2.linkComponent
|
|
812
|
+
} : {},
|
|
813
|
+
...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
|
|
770
814
|
builderComponents: props2.registeredComponents
|
|
771
815
|
} : {}
|
|
772
816
|
},
|
|
773
817
|
context: state2.childrenContext,
|
|
818
|
+
linkComponent: props2.linkComponent,
|
|
774
819
|
registeredComponents: props2.registeredComponents,
|
|
775
820
|
builderBlock: processedBlock2.value,
|
|
776
|
-
includeBlockProps: ((
|
|
777
|
-
isInteractive: !((
|
|
821
|
+
includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
|
|
822
|
+
isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
|
|
778
823
|
};
|
|
779
824
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
780
825
|
blockComponent,
|
|
@@ -811,6 +856,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
811
856
|
get context() {
|
|
812
857
|
return props.context;
|
|
813
858
|
},
|
|
859
|
+
get linkComponent() {
|
|
860
|
+
return props.linkComponent;
|
|
861
|
+
},
|
|
814
862
|
children: [
|
|
815
863
|
/* @__PURE__ */ qwik._jsxC(ComponentRef, {
|
|
816
864
|
get componentRef() {
|
|
@@ -828,6 +876,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
828
876
|
get registeredComponents() {
|
|
829
877
|
return componentRefProps.value.registeredComponents;
|
|
830
878
|
},
|
|
879
|
+
get linkComponent() {
|
|
880
|
+
return componentRefProps.value.linkComponent;
|
|
881
|
+
},
|
|
831
882
|
get builderBlock() {
|
|
832
883
|
return componentRefProps.value.builderBlock;
|
|
833
884
|
},
|
|
@@ -859,6 +910,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
859
910
|
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
860
911
|
componentRefProps
|
|
861
912
|
], "p0.value.isInteractive"),
|
|
913
|
+
linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
|
|
914
|
+
componentRefProps
|
|
915
|
+
], "p0.value.linkComponent"),
|
|
862
916
|
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
863
917
|
componentRefProps
|
|
864
918
|
], "p0.value.registeredComponents")
|
|
@@ -873,10 +927,16 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
873
927
|
get registeredComponents() {
|
|
874
928
|
return props.registeredComponents;
|
|
875
929
|
},
|
|
930
|
+
get linkComponent() {
|
|
931
|
+
return props.linkComponent;
|
|
932
|
+
},
|
|
876
933
|
[qwik._IMMUTABLE]: {
|
|
877
934
|
context: qwik._fnSignal((p0) => p0.childrenContext, [
|
|
878
935
|
state
|
|
879
936
|
], "p0.childrenContext"),
|
|
937
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
938
|
+
props
|
|
939
|
+
], "p0.linkComponent"),
|
|
880
940
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
881
941
|
props
|
|
882
942
|
], "p0.registeredComponents")
|
|
@@ -893,7 +953,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
893
953
|
], "p0.value"),
|
|
894
954
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
895
955
|
props
|
|
896
|
-
], "p0.context")
|
|
956
|
+
], "p0.context"),
|
|
957
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
958
|
+
props
|
|
959
|
+
], "p0.linkComponent")
|
|
897
960
|
}
|
|
898
961
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
899
962
|
return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
|
|
@@ -906,8 +969,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
906
969
|
get registeredComponents() {
|
|
907
970
|
return props.registeredComponents;
|
|
908
971
|
},
|
|
972
|
+
get linkComponent() {
|
|
973
|
+
return props.linkComponent;
|
|
974
|
+
},
|
|
909
975
|
[qwik._IMMUTABLE]: {
|
|
910
976
|
block: qwik._wrapProp(data, "block"),
|
|
977
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
978
|
+
props
|
|
979
|
+
], "p0.linkComponent"),
|
|
911
980
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
912
981
|
props
|
|
913
982
|
], "p0.registeredComponents"),
|
|
@@ -930,6 +999,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
930
999
|
get registeredComponents() {
|
|
931
1000
|
return componentRefProps.value.registeredComponents;
|
|
932
1001
|
},
|
|
1002
|
+
get linkComponent() {
|
|
1003
|
+
return componentRefProps.value.linkComponent;
|
|
1004
|
+
},
|
|
933
1005
|
get builderBlock() {
|
|
934
1006
|
return componentRefProps.value.builderBlock;
|
|
935
1007
|
},
|
|
@@ -961,6 +1033,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
961
1033
|
isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
|
|
962
1034
|
componentRefProps
|
|
963
1035
|
], "p0.value.isInteractive"),
|
|
1036
|
+
linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
|
|
1037
|
+
componentRefProps
|
|
1038
|
+
], "p0.value.linkComponent"),
|
|
964
1039
|
registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
|
|
965
1040
|
componentRefProps
|
|
966
1041
|
], "p0.value.registeredComponents")
|
|
@@ -1088,6 +1163,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1088
1163
|
children: props.blocks ? (props.blocks || []).map((block) => {
|
|
1089
1164
|
return /* @__PURE__ */ qwik._jsxC(Block, {
|
|
1090
1165
|
block,
|
|
1166
|
+
get linkComponent() {
|
|
1167
|
+
return props.linkComponent;
|
|
1168
|
+
},
|
|
1091
1169
|
get context() {
|
|
1092
1170
|
return props.context || builderContext$1;
|
|
1093
1171
|
},
|
|
@@ -1099,6 +1177,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
|
|
|
1099
1177
|
builderContext$1,
|
|
1100
1178
|
props
|
|
1101
1179
|
], "p1.context||p0"),
|
|
1180
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
1181
|
+
props
|
|
1182
|
+
], "p0.linkComponent"),
|
|
1102
1183
|
registeredComponents: qwik._fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
|
|
1103
1184
|
componentsContext,
|
|
1104
1185
|
props
|
|
@@ -1158,7 +1239,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
|
|
|
1158
1239
|
const mobileWidth = "100%";
|
|
1159
1240
|
const mobileMarginLeft = 0;
|
|
1160
1241
|
const marginLeftKey = "margin-left";
|
|
1242
|
+
const sharedStyles = {
|
|
1243
|
+
display: "flex",
|
|
1244
|
+
flexDirection: "column",
|
|
1245
|
+
alignItems: "stretch"
|
|
1246
|
+
};
|
|
1161
1247
|
return {
|
|
1248
|
+
...sharedStyles,
|
|
1162
1249
|
width,
|
|
1163
1250
|
[marginLeftKey]: gutterPixels,
|
|
1164
1251
|
"--column-width-mobile": getMobileStyle(props, state, {
|
|
@@ -1256,40 +1343,56 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
1256
1343
|
}
|
|
1257
1344
|
}, 3, "c0_0"),
|
|
1258
1345
|
(props.columns || []).map((column, index) => {
|
|
1259
|
-
return /* @__PURE__ */ qwik.
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
get styleProp() {
|
|
1269
|
-
return {
|
|
1270
|
-
flexGrow: "1"
|
|
1271
|
-
};
|
|
1272
|
-
},
|
|
1273
|
-
get context() {
|
|
1274
|
-
return props.builderContext;
|
|
1346
|
+
return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
|
|
1347
|
+
TagName: column.link ? props.builderLinkComponent || "a" : "div",
|
|
1348
|
+
actionAttributes: {},
|
|
1349
|
+
attributes: {
|
|
1350
|
+
...column.link ? {
|
|
1351
|
+
href: column.link
|
|
1352
|
+
} : {},
|
|
1353
|
+
[getClassPropName()]: "builder-column",
|
|
1354
|
+
style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
|
|
1275
1355
|
},
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1356
|
+
children: /* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
1357
|
+
path: `component.options.columns.${index}.blocks`,
|
|
1358
|
+
get parent() {
|
|
1359
|
+
return props.builderBlock.id;
|
|
1360
|
+
},
|
|
1361
|
+
get styleProp() {
|
|
1362
|
+
return {
|
|
1363
|
+
flexGrow: "1"
|
|
1364
|
+
};
|
|
1365
|
+
},
|
|
1366
|
+
get context() {
|
|
1367
|
+
return props.builderContext;
|
|
1368
|
+
},
|
|
1369
|
+
get registeredComponents() {
|
|
1370
|
+
return props.builderComponents;
|
|
1371
|
+
},
|
|
1372
|
+
get linkComponent() {
|
|
1373
|
+
return props.builderLinkComponent;
|
|
1374
|
+
},
|
|
1375
|
+
blocks: deoptSignal(column.blocks),
|
|
1376
|
+
[qwik._IMMUTABLE]: {
|
|
1377
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
1378
|
+
props
|
|
1379
|
+
], "p0.builderContext"),
|
|
1380
|
+
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
1381
|
+
props
|
|
1382
|
+
], "p0.builderLinkComponent"),
|
|
1383
|
+
parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
|
|
1384
|
+
props
|
|
1385
|
+
], "p0.builderBlock.id"),
|
|
1386
|
+
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
1387
|
+
props
|
|
1388
|
+
], "p0.builderComponents"),
|
|
1389
|
+
styleProp: qwik._IMMUTABLE
|
|
1390
|
+
}
|
|
1391
|
+
}, 3, "c0_1"),
|
|
1280
1392
|
[qwik._IMMUTABLE]: {
|
|
1281
|
-
|
|
1282
|
-
props
|
|
1283
|
-
], "p0.builderContext"),
|
|
1284
|
-
parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
|
|
1285
|
-
props
|
|
1286
|
-
], "p0.builderBlock.id"),
|
|
1287
|
-
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
1288
|
-
props
|
|
1289
|
-
], "p0.builderComponents"),
|
|
1290
|
-
styleProp: qwik._IMMUTABLE
|
|
1393
|
+
actionAttributes: qwik._IMMUTABLE
|
|
1291
1394
|
}
|
|
1292
|
-
},
|
|
1395
|
+
}, 1, index);
|
|
1293
1396
|
})
|
|
1294
1397
|
], 1, "c0_2");
|
|
1295
1398
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
@@ -1298,11 +1401,6 @@ const STYLES$1 = `
|
|
|
1298
1401
|
display: flex;
|
|
1299
1402
|
line-height: normal;
|
|
1300
1403
|
}
|
|
1301
|
-
.div-Columns-2 {
|
|
1302
|
-
display: flex;
|
|
1303
|
-
flex-direction: column;
|
|
1304
|
-
align-items: stretch;
|
|
1305
|
-
}
|
|
1306
1404
|
`;
|
|
1307
1405
|
const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
1308
1406
|
return /* @__PURE__ */ qwik._jsxQ("span", null, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
@@ -3225,7 +3323,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3225
3323
|
}
|
|
3226
3324
|
};
|
|
3227
3325
|
};
|
|
3228
|
-
const SDK_VERSION = "0.12.
|
|
3326
|
+
const SDK_VERSION = "0.12.4";
|
|
3229
3327
|
const registry = {};
|
|
3230
3328
|
function register(type, info) {
|
|
3231
3329
|
let typeList = registry[type];
|
|
@@ -3912,6 +4010,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
3912
4010
|
get contentWrapperProps() {
|
|
3913
4011
|
return props.contentWrapperProps;
|
|
3914
4012
|
},
|
|
4013
|
+
get linkComponent() {
|
|
4014
|
+
return props.linkComponent;
|
|
4015
|
+
},
|
|
3915
4016
|
get trustedHosts() {
|
|
3916
4017
|
return props.trustedHosts;
|
|
3917
4018
|
},
|
|
@@ -3971,6 +4072,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
3971
4072
|
get registeredComponents() {
|
|
3972
4073
|
return state.registeredComponents;
|
|
3973
4074
|
},
|
|
4075
|
+
get linkComponent() {
|
|
4076
|
+
return props.linkComponent;
|
|
4077
|
+
},
|
|
3974
4078
|
[qwik._IMMUTABLE]: {
|
|
3975
4079
|
blocks: qwik._fnSignal((p0) => {
|
|
3976
4080
|
var _a2, _b2;
|
|
@@ -3981,6 +4085,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
3981
4085
|
context: qwik._fnSignal((p0) => p0.builderContextSignal, [
|
|
3982
4086
|
state
|
|
3983
4087
|
], "p0.builderContextSignal"),
|
|
4088
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4089
|
+
props
|
|
4090
|
+
], "p0.linkComponent"),
|
|
3984
4091
|
registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
|
|
3985
4092
|
state
|
|
3986
4093
|
], "p0.registeredComponents")
|
|
@@ -4018,6 +4125,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
|
|
|
4018
4125
|
includeRefs: qwik._fnSignal((p0) => p0.includeRefs, [
|
|
4019
4126
|
props
|
|
4020
4127
|
], "p0.includeRefs"),
|
|
4128
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4129
|
+
props
|
|
4130
|
+
], "p0.linkComponent"),
|
|
4021
4131
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
4022
4132
|
props
|
|
4023
4133
|
], "p0.locale"),
|
|
@@ -4135,6 +4245,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4135
4245
|
get customComponents() {
|
|
4136
4246
|
return props.customComponents;
|
|
4137
4247
|
},
|
|
4248
|
+
get linkComponent() {
|
|
4249
|
+
return props.linkComponent;
|
|
4250
|
+
},
|
|
4138
4251
|
get canTrack() {
|
|
4139
4252
|
return props.canTrack;
|
|
4140
4253
|
},
|
|
@@ -4205,6 +4318,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4205
4318
|
isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
|
|
4206
4319
|
state
|
|
4207
4320
|
], "p0.shouldRenderVariants"),
|
|
4321
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4322
|
+
props
|
|
4323
|
+
], "p0.linkComponent"),
|
|
4208
4324
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
4209
4325
|
props
|
|
4210
4326
|
], "p0.locale"),
|
|
@@ -4243,6 +4359,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4243
4359
|
get customComponents() {
|
|
4244
4360
|
return props.customComponents;
|
|
4245
4361
|
},
|
|
4362
|
+
get linkComponent() {
|
|
4363
|
+
return props.linkComponent;
|
|
4364
|
+
},
|
|
4246
4365
|
get canTrack() {
|
|
4247
4366
|
return props.canTrack;
|
|
4248
4367
|
},
|
|
@@ -4316,6 +4435,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4316
4435
|
isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
|
|
4317
4436
|
state
|
|
4318
4437
|
], "p0.shouldRenderVariants"),
|
|
4438
|
+
linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
|
|
4439
|
+
props
|
|
4440
|
+
], "p0.linkComponent"),
|
|
4319
4441
|
locale: qwik._fnSignal((p0) => p0.locale, [
|
|
4320
4442
|
props
|
|
4321
4443
|
], "p0.locale"),
|
|
@@ -4366,7 +4488,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4366
4488
|
var _a2, _b;
|
|
4367
4489
|
const [props2] = qwik.useLexicalScope();
|
|
4368
4490
|
return [
|
|
4369
|
-
props2.attributes
|
|
4491
|
+
props2.attributes[getClassPropName()],
|
|
4370
4492
|
"builder-symbol",
|
|
4371
4493
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
4372
4494
|
((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4419,6 +4541,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4419
4541
|
get content() {
|
|
4420
4542
|
return state.contentToUse;
|
|
4421
4543
|
},
|
|
4544
|
+
get linkComponent() {
|
|
4545
|
+
return props.builderLinkComponent;
|
|
4546
|
+
},
|
|
4422
4547
|
[qwik._IMMUTABLE]: {
|
|
4423
4548
|
apiKey: qwik._fnSignal((p0) => p0.builderContext.apiKey, [
|
|
4424
4549
|
props
|
|
@@ -4452,6 +4577,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4452
4577
|
props,
|
|
4453
4578
|
state
|
|
4454
4579
|
], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
|
|
4580
|
+
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
4581
|
+
props
|
|
4582
|
+
], "p0.builderLinkComponent"),
|
|
4455
4583
|
model: qwik._fnSignal((p0) => {
|
|
4456
4584
|
var _a2;
|
|
4457
4585
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|