@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
|
@@ -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");
|
|
@@ -55,7 +103,6 @@ const logger = {
|
|
|
55
103
|
function isBrowser() {
|
|
56
104
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
57
105
|
}
|
|
58
|
-
const TARGET = "qwik";
|
|
59
106
|
function isIframe() {
|
|
60
107
|
return isBrowser() && window.self !== window.top;
|
|
61
108
|
}
|
|
@@ -474,6 +521,29 @@ function getBlockActions(options) {
|
|
|
474
521
|
}
|
|
475
522
|
return obj;
|
|
476
523
|
}
|
|
524
|
+
function transformStyleProperty({ style }) {
|
|
525
|
+
return style;
|
|
526
|
+
}
|
|
527
|
+
const getStyle = ({ block, context }) => {
|
|
528
|
+
return mapStyleObjToStrIfNeeded(transformStyleProperty({
|
|
529
|
+
style: block.style || {},
|
|
530
|
+
context,
|
|
531
|
+
block
|
|
532
|
+
}));
|
|
533
|
+
};
|
|
534
|
+
function mapStyleObjToStrIfNeeded(style) {
|
|
535
|
+
switch (TARGET) {
|
|
536
|
+
case "svelte":
|
|
537
|
+
case "vue":
|
|
538
|
+
case "solid":
|
|
539
|
+
return convertStyleMapToCSSArray(style).join(" ");
|
|
540
|
+
case "qwik":
|
|
541
|
+
case "reactNative":
|
|
542
|
+
case "react":
|
|
543
|
+
case "rsc":
|
|
544
|
+
return style;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
477
547
|
function transformBlockProperties({ properties }) {
|
|
478
548
|
return properties;
|
|
479
549
|
}
|
|
@@ -488,8 +558,11 @@ function getBlockProperties({ block, context }) {
|
|
|
488
558
|
...extractRelevantRootBlockProperties(block),
|
|
489
559
|
...block.properties,
|
|
490
560
|
"builder-id": block.id,
|
|
491
|
-
style:
|
|
492
|
-
|
|
561
|
+
style: getStyle({
|
|
562
|
+
block,
|
|
563
|
+
context
|
|
564
|
+
}),
|
|
565
|
+
[getClassPropName()]: [
|
|
493
566
|
block.id,
|
|
494
567
|
"builder-block",
|
|
495
568
|
block.class,
|
|
@@ -502,56 +575,6 @@ function getBlockProperties({ block, context }) {
|
|
|
502
575
|
block
|
|
503
576
|
});
|
|
504
577
|
}
|
|
505
|
-
function getStyleAttribute(style) {
|
|
506
|
-
switch (TARGET) {
|
|
507
|
-
case "svelte":
|
|
508
|
-
case "vue":
|
|
509
|
-
case "solid":
|
|
510
|
-
return convertStyleMapToCSSArray(style).join(" ");
|
|
511
|
-
case "qwik":
|
|
512
|
-
case "reactNative":
|
|
513
|
-
case "react":
|
|
514
|
-
case "rsc":
|
|
515
|
-
return style;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
519
|
-
"area",
|
|
520
|
-
"base",
|
|
521
|
-
"br",
|
|
522
|
-
"col",
|
|
523
|
-
"embed",
|
|
524
|
-
"hr",
|
|
525
|
-
"img",
|
|
526
|
-
"input",
|
|
527
|
-
"keygen",
|
|
528
|
-
"link",
|
|
529
|
-
"meta",
|
|
530
|
-
"param",
|
|
531
|
-
"source",
|
|
532
|
-
"track",
|
|
533
|
-
"wbr"
|
|
534
|
-
]);
|
|
535
|
-
const isEmptyElement = (tagName) => {
|
|
536
|
-
return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
|
|
537
|
-
};
|
|
538
|
-
const DynamicRenderer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
539
|
-
_jsxBranch();
|
|
540
|
-
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
541
|
-
children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
|
|
542
|
-
...props.attributes,
|
|
543
|
-
...props.actionAttributes,
|
|
544
|
-
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
|
|
545
|
-
}, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
|
|
546
|
-
...props.attributes,
|
|
547
|
-
...props.actionAttributes,
|
|
548
|
-
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
|
|
549
|
-
}, 0, "yW_3") : /* @__PURE__ */ _jsxC(props.TagName, {
|
|
550
|
-
...props.attributes,
|
|
551
|
-
...props.actionAttributes
|
|
552
|
-
}, 0, "yW_4")
|
|
553
|
-
}, 1, "yW_5");
|
|
554
|
-
}, "DynamicRenderer_component_1Co0xkmyAfQ"));
|
|
555
578
|
const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
556
579
|
return /* @__PURE__ */ _jsxC(DynamicRenderer, {
|
|
557
580
|
get TagName() {
|
|
@@ -630,6 +653,7 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
630
653
|
builderBlock: props.builderBlock,
|
|
631
654
|
context: props.context,
|
|
632
655
|
componentRef: props.componentRef,
|
|
656
|
+
linkComponent: props.linkComponent,
|
|
633
657
|
includeBlockProps: props.includeBlockProps,
|
|
634
658
|
isInteractive: props.isInteractive,
|
|
635
659
|
contextValue: props.context
|
|
@@ -643,10 +667,16 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
643
667
|
get registeredComponents() {
|
|
644
668
|
return props.registeredComponents;
|
|
645
669
|
},
|
|
670
|
+
get linkComponent() {
|
|
671
|
+
return props.linkComponent;
|
|
672
|
+
},
|
|
646
673
|
[_IMMUTABLE]: {
|
|
647
674
|
context: _fnSignal((p0) => p0.context, [
|
|
648
675
|
props
|
|
649
676
|
], "p0.context"),
|
|
677
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
678
|
+
props
|
|
679
|
+
], "p0.linkComponent"),
|
|
650
680
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
651
681
|
props
|
|
652
682
|
], "p0.registeredComponents")
|
|
@@ -671,6 +701,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
671
701
|
get registeredComponents() {
|
|
672
702
|
return props.registeredComponents;
|
|
673
703
|
},
|
|
704
|
+
get linkComponent() {
|
|
705
|
+
return props.linkComponent;
|
|
706
|
+
},
|
|
674
707
|
[_IMMUTABLE]: {
|
|
675
708
|
block: _fnSignal((p0) => p0.block, [
|
|
676
709
|
props
|
|
@@ -678,6 +711,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
678
711
|
context: _fnSignal((p0) => p0.store, [
|
|
679
712
|
state
|
|
680
713
|
], "p0.store"),
|
|
714
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
715
|
+
props
|
|
716
|
+
], "p0.linkComponent"),
|
|
681
717
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
682
718
|
props
|
|
683
719
|
], "p0.registeredComponents")
|
|
@@ -724,9 +760,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
724
760
|
props
|
|
725
761
|
]));
|
|
726
762
|
const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
727
|
-
|
|
763
|
+
var _a2;
|
|
764
|
+
const [processedBlock2, props2] = useLexicalScope();
|
|
765
|
+
const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
|
|
766
|
+
if (shouldUseLink)
|
|
767
|
+
return props2.linkComponent || "a";
|
|
728
768
|
return props2.block.tagName || "div";
|
|
729
769
|
}, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
|
|
770
|
+
processedBlock,
|
|
730
771
|
props
|
|
731
772
|
]));
|
|
732
773
|
const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
@@ -756,7 +797,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
756
797
|
repeatItem
|
|
757
798
|
]));
|
|
758
799
|
const componentRefProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
759
|
-
var _a2, _b, _c, _d, _e;
|
|
800
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
760
801
|
const [blockComponent2, processedBlock2, props2, state2] = useLexicalScope();
|
|
761
802
|
return {
|
|
762
803
|
blockChildren: processedBlock2.value.children ?? [],
|
|
@@ -764,15 +805,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
764
805
|
componentOptions: {
|
|
765
806
|
...getBlockComponentOptions(processedBlock2.value),
|
|
766
807
|
builderContext: props2.context,
|
|
767
|
-
...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "
|
|
808
|
+
...((_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" ? {
|
|
809
|
+
builderLinkComponent: props2.linkComponent
|
|
810
|
+
} : {},
|
|
811
|
+
...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
|
|
768
812
|
builderComponents: props2.registeredComponents
|
|
769
813
|
} : {}
|
|
770
814
|
},
|
|
771
815
|
context: state2.childrenContext,
|
|
816
|
+
linkComponent: props2.linkComponent,
|
|
772
817
|
registeredComponents: props2.registeredComponents,
|
|
773
818
|
builderBlock: processedBlock2.value,
|
|
774
|
-
includeBlockProps: ((
|
|
775
|
-
isInteractive: !((
|
|
819
|
+
includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
|
|
820
|
+
isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
|
|
776
821
|
};
|
|
777
822
|
}, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
|
|
778
823
|
blockComponent,
|
|
@@ -809,6 +854,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
809
854
|
get context() {
|
|
810
855
|
return props.context;
|
|
811
856
|
},
|
|
857
|
+
get linkComponent() {
|
|
858
|
+
return props.linkComponent;
|
|
859
|
+
},
|
|
812
860
|
children: [
|
|
813
861
|
/* @__PURE__ */ _jsxC(ComponentRef, {
|
|
814
862
|
get componentRef() {
|
|
@@ -826,6 +874,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
826
874
|
get registeredComponents() {
|
|
827
875
|
return componentRefProps.value.registeredComponents;
|
|
828
876
|
},
|
|
877
|
+
get linkComponent() {
|
|
878
|
+
return componentRefProps.value.linkComponent;
|
|
879
|
+
},
|
|
829
880
|
get builderBlock() {
|
|
830
881
|
return componentRefProps.value.builderBlock;
|
|
831
882
|
},
|
|
@@ -857,6 +908,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
857
908
|
isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
|
|
858
909
|
componentRefProps
|
|
859
910
|
], "p0.value.isInteractive"),
|
|
911
|
+
linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
|
|
912
|
+
componentRefProps
|
|
913
|
+
], "p0.value.linkComponent"),
|
|
860
914
|
registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
|
|
861
915
|
componentRefProps
|
|
862
916
|
], "p0.value.registeredComponents")
|
|
@@ -871,10 +925,16 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
871
925
|
get registeredComponents() {
|
|
872
926
|
return props.registeredComponents;
|
|
873
927
|
},
|
|
928
|
+
get linkComponent() {
|
|
929
|
+
return props.linkComponent;
|
|
930
|
+
},
|
|
874
931
|
[_IMMUTABLE]: {
|
|
875
932
|
context: _fnSignal((p0) => p0.childrenContext, [
|
|
876
933
|
state
|
|
877
934
|
], "p0.childrenContext"),
|
|
935
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
936
|
+
props
|
|
937
|
+
], "p0.linkComponent"),
|
|
878
938
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
879
939
|
props
|
|
880
940
|
], "p0.registeredComponents")
|
|
@@ -891,7 +951,10 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
891
951
|
], "p0.value"),
|
|
892
952
|
context: _fnSignal((p0) => p0.context, [
|
|
893
953
|
props
|
|
894
|
-
], "p0.context")
|
|
954
|
+
], "p0.context"),
|
|
955
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
956
|
+
props
|
|
957
|
+
], "p0.linkComponent")
|
|
895
958
|
}
|
|
896
959
|
}, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
|
|
897
960
|
return /* @__PURE__ */ _jsxC(RepeatedBlock, {
|
|
@@ -904,8 +967,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
904
967
|
get registeredComponents() {
|
|
905
968
|
return props.registeredComponents;
|
|
906
969
|
},
|
|
970
|
+
get linkComponent() {
|
|
971
|
+
return props.linkComponent;
|
|
972
|
+
},
|
|
907
973
|
[_IMMUTABLE]: {
|
|
908
974
|
block: _wrapProp(data, "block"),
|
|
975
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
976
|
+
props
|
|
977
|
+
], "p0.linkComponent"),
|
|
909
978
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
910
979
|
props
|
|
911
980
|
], "p0.registeredComponents"),
|
|
@@ -928,6 +997,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
928
997
|
get registeredComponents() {
|
|
929
998
|
return componentRefProps.value.registeredComponents;
|
|
930
999
|
},
|
|
1000
|
+
get linkComponent() {
|
|
1001
|
+
return componentRefProps.value.linkComponent;
|
|
1002
|
+
},
|
|
931
1003
|
get builderBlock() {
|
|
932
1004
|
return componentRefProps.value.builderBlock;
|
|
933
1005
|
},
|
|
@@ -959,6 +1031,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
959
1031
|
isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
|
|
960
1032
|
componentRefProps
|
|
961
1033
|
], "p0.value.isInteractive"),
|
|
1034
|
+
linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
|
|
1035
|
+
componentRefProps
|
|
1036
|
+
], "p0.value.linkComponent"),
|
|
962
1037
|
registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
|
|
963
1038
|
componentRefProps
|
|
964
1039
|
], "p0.value.registeredComponents")
|
|
@@ -1086,6 +1161,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1086
1161
|
children: props.blocks ? (props.blocks || []).map((block) => {
|
|
1087
1162
|
return /* @__PURE__ */ _jsxC(Block, {
|
|
1088
1163
|
block,
|
|
1164
|
+
get linkComponent() {
|
|
1165
|
+
return props.linkComponent;
|
|
1166
|
+
},
|
|
1089
1167
|
get context() {
|
|
1090
1168
|
return props.context || builderContext$1;
|
|
1091
1169
|
},
|
|
@@ -1097,6 +1175,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
|
|
|
1097
1175
|
builderContext$1,
|
|
1098
1176
|
props
|
|
1099
1177
|
], "p1.context||p0"),
|
|
1178
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
1179
|
+
props
|
|
1180
|
+
], "p0.linkComponent"),
|
|
1100
1181
|
registeredComponents: _fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
|
|
1101
1182
|
componentsContext,
|
|
1102
1183
|
props
|
|
@@ -1156,7 +1237,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
|
|
|
1156
1237
|
const mobileWidth = "100%";
|
|
1157
1238
|
const mobileMarginLeft = 0;
|
|
1158
1239
|
const marginLeftKey = "margin-left";
|
|
1240
|
+
const sharedStyles = {
|
|
1241
|
+
display: "flex",
|
|
1242
|
+
flexDirection: "column",
|
|
1243
|
+
alignItems: "stretch"
|
|
1244
|
+
};
|
|
1159
1245
|
return {
|
|
1246
|
+
...sharedStyles,
|
|
1160
1247
|
width,
|
|
1161
1248
|
[marginLeftKey]: gutterPixels,
|
|
1162
1249
|
"--column-width-mobile": getMobileStyle(props, state, {
|
|
@@ -1254,40 +1341,56 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
1254
1341
|
}
|
|
1255
1342
|
}, 3, "c0_0"),
|
|
1256
1343
|
(props.columns || []).map((column, index) => {
|
|
1257
|
-
return /* @__PURE__ */
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
get styleProp() {
|
|
1267
|
-
return {
|
|
1268
|
-
flexGrow: "1"
|
|
1269
|
-
};
|
|
1270
|
-
},
|
|
1271
|
-
get context() {
|
|
1272
|
-
return props.builderContext;
|
|
1344
|
+
return /* @__PURE__ */ _jsxC(DynamicRenderer, {
|
|
1345
|
+
TagName: column.link ? props.builderLinkComponent || "a" : "div",
|
|
1346
|
+
actionAttributes: {},
|
|
1347
|
+
attributes: {
|
|
1348
|
+
...column.link ? {
|
|
1349
|
+
href: column.link
|
|
1350
|
+
} : {},
|
|
1351
|
+
[getClassPropName()]: "builder-column",
|
|
1352
|
+
style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
|
|
1273
1353
|
},
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1354
|
+
children: /* @__PURE__ */ _jsxC(Blocks, {
|
|
1355
|
+
path: `component.options.columns.${index}.blocks`,
|
|
1356
|
+
get parent() {
|
|
1357
|
+
return props.builderBlock.id;
|
|
1358
|
+
},
|
|
1359
|
+
get styleProp() {
|
|
1360
|
+
return {
|
|
1361
|
+
flexGrow: "1"
|
|
1362
|
+
};
|
|
1363
|
+
},
|
|
1364
|
+
get context() {
|
|
1365
|
+
return props.builderContext;
|
|
1366
|
+
},
|
|
1367
|
+
get registeredComponents() {
|
|
1368
|
+
return props.builderComponents;
|
|
1369
|
+
},
|
|
1370
|
+
get linkComponent() {
|
|
1371
|
+
return props.builderLinkComponent;
|
|
1372
|
+
},
|
|
1373
|
+
blocks: deoptSignal(column.blocks),
|
|
1374
|
+
[_IMMUTABLE]: {
|
|
1375
|
+
context: _fnSignal((p0) => p0.builderContext, [
|
|
1376
|
+
props
|
|
1377
|
+
], "p0.builderContext"),
|
|
1378
|
+
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
1379
|
+
props
|
|
1380
|
+
], "p0.builderLinkComponent"),
|
|
1381
|
+
parent: _fnSignal((p0) => p0.builderBlock.id, [
|
|
1382
|
+
props
|
|
1383
|
+
], "p0.builderBlock.id"),
|
|
1384
|
+
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
1385
|
+
props
|
|
1386
|
+
], "p0.builderComponents"),
|
|
1387
|
+
styleProp: _IMMUTABLE
|
|
1388
|
+
}
|
|
1389
|
+
}, 3, "c0_1"),
|
|
1278
1390
|
[_IMMUTABLE]: {
|
|
1279
|
-
|
|
1280
|
-
props
|
|
1281
|
-
], "p0.builderContext"),
|
|
1282
|
-
parent: _fnSignal((p0) => p0.builderBlock.id, [
|
|
1283
|
-
props
|
|
1284
|
-
], "p0.builderBlock.id"),
|
|
1285
|
-
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
1286
|
-
props
|
|
1287
|
-
], "p0.builderComponents"),
|
|
1288
|
-
styleProp: _IMMUTABLE
|
|
1391
|
+
actionAttributes: _IMMUTABLE
|
|
1289
1392
|
}
|
|
1290
|
-
},
|
|
1393
|
+
}, 1, index);
|
|
1291
1394
|
})
|
|
1292
1395
|
], 1, "c0_2");
|
|
1293
1396
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
@@ -1296,11 +1399,6 @@ const STYLES$1 = `
|
|
|
1296
1399
|
display: flex;
|
|
1297
1400
|
line-height: normal;
|
|
1298
1401
|
}
|
|
1299
|
-
.div-Columns-2 {
|
|
1300
|
-
display: flex;
|
|
1301
|
-
flex-direction: column;
|
|
1302
|
-
align-items: stretch;
|
|
1303
|
-
}
|
|
1304
1402
|
`;
|
|
1305
1403
|
const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1306
1404
|
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "oj_0"), 1, "oj_1");
|
|
@@ -3223,7 +3321,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3223
3321
|
}
|
|
3224
3322
|
};
|
|
3225
3323
|
};
|
|
3226
|
-
const SDK_VERSION = "0.12.
|
|
3324
|
+
const SDK_VERSION = "0.12.4";
|
|
3227
3325
|
const registry = {};
|
|
3228
3326
|
function register(type, info) {
|
|
3229
3327
|
let typeList = registry[type];
|
|
@@ -3910,6 +4008,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
3910
4008
|
get contentWrapperProps() {
|
|
3911
4009
|
return props.contentWrapperProps;
|
|
3912
4010
|
},
|
|
4011
|
+
get linkComponent() {
|
|
4012
|
+
return props.linkComponent;
|
|
4013
|
+
},
|
|
3913
4014
|
get trustedHosts() {
|
|
3914
4015
|
return props.trustedHosts;
|
|
3915
4016
|
},
|
|
@@ -3969,6 +4070,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
3969
4070
|
get registeredComponents() {
|
|
3970
4071
|
return state.registeredComponents;
|
|
3971
4072
|
},
|
|
4073
|
+
get linkComponent() {
|
|
4074
|
+
return props.linkComponent;
|
|
4075
|
+
},
|
|
3972
4076
|
[_IMMUTABLE]: {
|
|
3973
4077
|
blocks: _fnSignal((p0) => {
|
|
3974
4078
|
var _a2, _b2;
|
|
@@ -3979,6 +4083,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
3979
4083
|
context: _fnSignal((p0) => p0.builderContextSignal, [
|
|
3980
4084
|
state
|
|
3981
4085
|
], "p0.builderContextSignal"),
|
|
4086
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4087
|
+
props
|
|
4088
|
+
], "p0.linkComponent"),
|
|
3982
4089
|
registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
|
|
3983
4090
|
state
|
|
3984
4091
|
], "p0.registeredComponents")
|
|
@@ -4016,6 +4123,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
|
|
|
4016
4123
|
includeRefs: _fnSignal((p0) => p0.includeRefs, [
|
|
4017
4124
|
props
|
|
4018
4125
|
], "p0.includeRefs"),
|
|
4126
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4127
|
+
props
|
|
4128
|
+
], "p0.linkComponent"),
|
|
4019
4129
|
locale: _fnSignal((p0) => p0.locale, [
|
|
4020
4130
|
props
|
|
4021
4131
|
], "p0.locale"),
|
|
@@ -4133,6 +4243,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
4133
4243
|
get customComponents() {
|
|
4134
4244
|
return props.customComponents;
|
|
4135
4245
|
},
|
|
4246
|
+
get linkComponent() {
|
|
4247
|
+
return props.linkComponent;
|
|
4248
|
+
},
|
|
4136
4249
|
get canTrack() {
|
|
4137
4250
|
return props.canTrack;
|
|
4138
4251
|
},
|
|
@@ -4203,6 +4316,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
4203
4316
|
isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
|
|
4204
4317
|
state
|
|
4205
4318
|
], "p0.shouldRenderVariants"),
|
|
4319
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4320
|
+
props
|
|
4321
|
+
], "p0.linkComponent"),
|
|
4206
4322
|
locale: _fnSignal((p0) => p0.locale, [
|
|
4207
4323
|
props
|
|
4208
4324
|
], "p0.locale"),
|
|
@@ -4241,6 +4357,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
4241
4357
|
get customComponents() {
|
|
4242
4358
|
return props.customComponents;
|
|
4243
4359
|
},
|
|
4360
|
+
get linkComponent() {
|
|
4361
|
+
return props.linkComponent;
|
|
4362
|
+
},
|
|
4244
4363
|
get canTrack() {
|
|
4245
4364
|
return props.canTrack;
|
|
4246
4365
|
},
|
|
@@ -4314,6 +4433,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
4314
4433
|
isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
|
|
4315
4434
|
state
|
|
4316
4435
|
], "p0.shouldRenderVariants"),
|
|
4436
|
+
linkComponent: _fnSignal((p0) => p0.linkComponent, [
|
|
4437
|
+
props
|
|
4438
|
+
], "p0.linkComponent"),
|
|
4317
4439
|
locale: _fnSignal((p0) => p0.locale, [
|
|
4318
4440
|
props
|
|
4319
4441
|
], "p0.locale"),
|
|
@@ -4364,7 +4486,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4364
4486
|
var _a2, _b;
|
|
4365
4487
|
const [props2] = useLexicalScope();
|
|
4366
4488
|
return [
|
|
4367
|
-
props2.attributes
|
|
4489
|
+
props2.attributes[getClassPropName()],
|
|
4368
4490
|
"builder-symbol",
|
|
4369
4491
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
4370
4492
|
((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4417,6 +4539,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4417
4539
|
get content() {
|
|
4418
4540
|
return state.contentToUse;
|
|
4419
4541
|
},
|
|
4542
|
+
get linkComponent() {
|
|
4543
|
+
return props.builderLinkComponent;
|
|
4544
|
+
},
|
|
4420
4545
|
[_IMMUTABLE]: {
|
|
4421
4546
|
apiKey: _fnSignal((p0) => p0.builderContext.apiKey, [
|
|
4422
4547
|
props
|
|
@@ -4450,6 +4575,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4450
4575
|
props,
|
|
4451
4576
|
state
|
|
4452
4577
|
], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
|
|
4578
|
+
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
4579
|
+
props
|
|
4580
|
+
], "p0.builderLinkComponent"),
|
|
4453
4581
|
model: _fnSignal((p0) => {
|
|
4454
4582
|
var _a2;
|
|
4455
4583
|
return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
|