@builder.io/sdk-qwik 0.12.2 → 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.
Files changed (27) hide show
  1. package/lib/browser/index.qwik.cjs +255 -128
  2. package/lib/browser/index.qwik.mjs +256 -129
  3. package/lib/edge/index.qwik.cjs +255 -128
  4. package/lib/edge/index.qwik.mjs +256 -129
  5. package/lib/node/index.qwik.cjs +255 -128
  6. package/lib/node/index.qwik.mjs +256 -129
  7. package/package.json +1 -1
  8. package/types/src/blocks/button/button.d.ts +0 -1
  9. package/types/src/blocks/button/button.types.d.ts +2 -1
  10. package/types/src/blocks/columns/columns.d.ts +1 -1
  11. package/types/src/blocks/columns/columns.types.d.ts +3 -3
  12. package/types/src/blocks/symbol/symbol.types.d.ts +2 -2
  13. package/types/src/components/block/block.d.ts +1 -0
  14. package/types/src/components/block/components/block-wrapper.d.ts +1 -0
  15. package/types/src/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
  16. package/types/src/components/block/components/repeated-block.d.ts +3 -5
  17. package/types/src/components/blocks/blocks.types.d.ts +1 -0
  18. package/types/src/components/content-variants/content-variants.types.d.ts +6 -2
  19. package/types/src/constants/sdk-version.d.ts +1 -1
  20. package/types/src/functions/get-block-properties.d.ts +1 -2
  21. package/types/src/functions/get-class-prop-name.d.ts +1 -0
  22. package/types/src/functions/get-style.d.ts +12 -0
  23. package/types/src/functions/transform-block-properties.d.ts +2 -2
  24. package/types/src/functions/transform-style-property.d.ts +7 -0
  25. package/types/src/helpers/omit.d.ts +1 -0
  26. package/types/src/types/builder-block.d.ts +1 -0
  27. package/types/src/types/builder-props.d.ts +3 -0
@@ -3,42 +3,85 @@ 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 Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
7
- qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES$3, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
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();
8
28
  return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
9
- children: props.link ? /* @__PURE__ */ qwik._jsxS("a", {
29
+ children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
10
30
  ...props.attributes,
11
- children: qwik._fnSignal((p0) => p0.text, [
12
- props
13
- ], "p0.text")
14
- }, {
15
- href: qwik._fnSignal((p0) => p0.link, [
16
- props
17
- ], "p0.link"),
18
- role: "button",
19
- target: qwik._fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
20
- props
21
- ], 'p0.openLinkInNewTab?"_blank":undefined')
22
- }, 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, {
23
34
  ...props.attributes,
24
- children: qwik._fnSignal((p0) => p0.text, [
25
- props
26
- ], "p0.text")
27
- }, {
28
- class: qwik._fnSignal((p0) => p0.attributes.class + " button-Button", [
29
- props
30
- ], 'p0.attributes.class+" button-Button"'),
31
- style: qwik._fnSignal((p0) => p0.attributes.style, [
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
- ], "p0.attributes.style")
34
- }, 0, null)
35
- }, 1, "jc_1");
80
+ ], 'p0.link?p0.builderLinkComponent||"a":"button"'),
81
+ actionAttributes: qwik._IMMUTABLE
82
+ }
83
+ }, 3, "jc_0");
36
84
  }, "Button_component_gJoMUICXoUQ"));
37
- const STYLES$3 = `
38
- .button-Button {
39
- all: unset;
40
- }
41
- `;
42
85
  const builderContext = qwik.createContextId("Builder");
43
86
  const ComponentsContext = qwik.createContextId("Components");
44
87
  function getBlockComponentOptions(block) {
@@ -62,7 +105,6 @@ const logger = {
62
105
  function isBrowser() {
63
106
  return typeof window !== "undefined" && typeof document !== "undefined";
64
107
  }
65
- const TARGET = "qwik";
66
108
  function isIframe() {
67
109
  return isBrowser() && window.self !== window.top;
68
110
  }
@@ -481,6 +523,29 @@ function getBlockActions(options) {
481
523
  }
482
524
  return obj;
483
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
+ }
484
549
  function transformBlockProperties({ properties }) {
485
550
  return properties;
486
551
  }
@@ -495,8 +560,11 @@ function getBlockProperties({ block, context }) {
495
560
  ...extractRelevantRootBlockProperties(block),
496
561
  ...block.properties,
497
562
  "builder-id": block.id,
498
- style: block.style ? getStyleAttribute(block.style) : void 0,
499
- class: [
563
+ style: getStyle({
564
+ block,
565
+ context
566
+ }),
567
+ [getClassPropName()]: [
500
568
  block.id,
501
569
  "builder-block",
502
570
  block.class,
@@ -509,56 +577,6 @@ function getBlockProperties({ block, context }) {
509
577
  block
510
578
  });
511
579
  }
512
- function getStyleAttribute(style) {
513
- switch (TARGET) {
514
- case "svelte":
515
- case "vue":
516
- case "solid":
517
- return convertStyleMapToCSSArray(style).join(" ");
518
- case "qwik":
519
- case "reactNative":
520
- case "react":
521
- case "rsc":
522
- return style;
523
- }
524
- }
525
- const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
526
- "area",
527
- "base",
528
- "br",
529
- "col",
530
- "embed",
531
- "hr",
532
- "img",
533
- "input",
534
- "keygen",
535
- "link",
536
- "meta",
537
- "param",
538
- "source",
539
- "track",
540
- "wbr"
541
- ]);
542
- const isEmptyElement = (tagName) => {
543
- return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
544
- };
545
- const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
546
- qwik._jsxBranch();
547
- return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
548
- children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
549
- ...props.attributes,
550
- ...props.actionAttributes,
551
- children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
552
- }, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
553
- ...props.attributes,
554
- ...props.actionAttributes,
555
- children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
556
- }, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
557
- ...props.attributes,
558
- ...props.actionAttributes
559
- }, 0, "yW_4")
560
- }, 1, "yW_5");
561
- }, "DynamicRenderer_component_1Co0xkmyAfQ"));
562
580
  const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
563
581
  return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
564
582
  get TagName() {
@@ -637,6 +655,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
637
655
  builderBlock: props.builderBlock,
638
656
  context: props.context,
639
657
  componentRef: props.componentRef,
658
+ linkComponent: props.linkComponent,
640
659
  includeBlockProps: props.includeBlockProps,
641
660
  isInteractive: props.isInteractive,
642
661
  contextValue: props.context
@@ -650,10 +669,16 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
650
669
  get registeredComponents() {
651
670
  return props.registeredComponents;
652
671
  },
672
+ get linkComponent() {
673
+ return props.linkComponent;
674
+ },
653
675
  [qwik._IMMUTABLE]: {
654
676
  context: qwik._fnSignal((p0) => p0.context, [
655
677
  props
656
678
  ], "p0.context"),
679
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
680
+ props
681
+ ], "p0.linkComponent"),
657
682
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
658
683
  props
659
684
  ], "p0.registeredComponents")
@@ -678,6 +703,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
678
703
  get registeredComponents() {
679
704
  return props.registeredComponents;
680
705
  },
706
+ get linkComponent() {
707
+ return props.linkComponent;
708
+ },
681
709
  [qwik._IMMUTABLE]: {
682
710
  block: qwik._fnSignal((p0) => p0.block, [
683
711
  props
@@ -685,6 +713,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
685
713
  context: qwik._fnSignal((p0) => p0.store, [
686
714
  state
687
715
  ], "p0.store"),
716
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
717
+ props
718
+ ], "p0.linkComponent"),
688
719
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
689
720
  props
690
721
  ], "p0.registeredComponents")
@@ -731,9 +762,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
731
762
  props
732
763
  ]));
733
764
  const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
734
- const [props2] = qwik.useLexicalScope();
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";
735
770
  return props2.block.tagName || "div";
736
771
  }, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
772
+ processedBlock,
737
773
  props
738
774
  ]));
739
775
  const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
@@ -763,7 +799,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
763
799
  repeatItem
764
800
  ]));
765
801
  const componentRefProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
766
- var _a2, _b, _c, _d, _e;
802
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
767
803
  const [blockComponent2, processedBlock2, props2, state2] = qwik.useLexicalScope();
768
804
  return {
769
805
  blockChildren: processedBlock2.value.children ?? [],
@@ -771,15 +807,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
771
807
  componentOptions: {
772
808
  ...getBlockComponentOptions(processedBlock2.value),
773
809
  builderContext: props2.context,
774
- ...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "Symbol" || ((_c = blockComponent2.value) == null ? void 0 : _c.name) === "Columns" ? {
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" ? {
775
814
  builderComponents: props2.registeredComponents
776
815
  } : {}
777
816
  },
778
817
  context: state2.childrenContext,
818
+ linkComponent: props2.linkComponent,
779
819
  registeredComponents: props2.registeredComponents,
780
820
  builderBlock: processedBlock2.value,
781
- includeBlockProps: ((_d = blockComponent2.value) == null ? void 0 : _d.noWrap) === true,
782
- isInteractive: !((_e = blockComponent2.value) == null ? void 0 : _e.isRSC)
821
+ includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
822
+ isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
783
823
  };
784
824
  }, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
785
825
  blockComponent,
@@ -816,6 +856,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
816
856
  get context() {
817
857
  return props.context;
818
858
  },
859
+ get linkComponent() {
860
+ return props.linkComponent;
861
+ },
819
862
  children: [
820
863
  /* @__PURE__ */ qwik._jsxC(ComponentRef, {
821
864
  get componentRef() {
@@ -833,6 +876,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
833
876
  get registeredComponents() {
834
877
  return componentRefProps.value.registeredComponents;
835
878
  },
879
+ get linkComponent() {
880
+ return componentRefProps.value.linkComponent;
881
+ },
836
882
  get builderBlock() {
837
883
  return componentRefProps.value.builderBlock;
838
884
  },
@@ -864,6 +910,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
864
910
  isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
865
911
  componentRefProps
866
912
  ], "p0.value.isInteractive"),
913
+ linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
914
+ componentRefProps
915
+ ], "p0.value.linkComponent"),
867
916
  registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
868
917
  componentRefProps
869
918
  ], "p0.value.registeredComponents")
@@ -878,10 +927,16 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
878
927
  get registeredComponents() {
879
928
  return props.registeredComponents;
880
929
  },
930
+ get linkComponent() {
931
+ return props.linkComponent;
932
+ },
881
933
  [qwik._IMMUTABLE]: {
882
934
  context: qwik._fnSignal((p0) => p0.childrenContext, [
883
935
  state
884
936
  ], "p0.childrenContext"),
937
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
938
+ props
939
+ ], "p0.linkComponent"),
885
940
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
886
941
  props
887
942
  ], "p0.registeredComponents")
@@ -898,7 +953,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
898
953
  ], "p0.value"),
899
954
  context: qwik._fnSignal((p0) => p0.context, [
900
955
  props
901
- ], "p0.context")
956
+ ], "p0.context"),
957
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
958
+ props
959
+ ], "p0.linkComponent")
902
960
  }
903
961
  }, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
904
962
  return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
@@ -911,8 +969,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
911
969
  get registeredComponents() {
912
970
  return props.registeredComponents;
913
971
  },
972
+ get linkComponent() {
973
+ return props.linkComponent;
974
+ },
914
975
  [qwik._IMMUTABLE]: {
915
976
  block: qwik._wrapProp(data, "block"),
977
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
978
+ props
979
+ ], "p0.linkComponent"),
916
980
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
917
981
  props
918
982
  ], "p0.registeredComponents"),
@@ -935,6 +999,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
935
999
  get registeredComponents() {
936
1000
  return componentRefProps.value.registeredComponents;
937
1001
  },
1002
+ get linkComponent() {
1003
+ return componentRefProps.value.linkComponent;
1004
+ },
938
1005
  get builderBlock() {
939
1006
  return componentRefProps.value.builderBlock;
940
1007
  },
@@ -966,6 +1033,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
966
1033
  isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
967
1034
  componentRefProps
968
1035
  ], "p0.value.isInteractive"),
1036
+ linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
1037
+ componentRefProps
1038
+ ], "p0.value.linkComponent"),
969
1039
  registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
970
1040
  componentRefProps
971
1041
  ], "p0.value.registeredComponents")
@@ -1093,6 +1163,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
1093
1163
  children: props.blocks ? (props.blocks || []).map((block) => {
1094
1164
  return /* @__PURE__ */ qwik._jsxC(Block, {
1095
1165
  block,
1166
+ get linkComponent() {
1167
+ return props.linkComponent;
1168
+ },
1096
1169
  get context() {
1097
1170
  return props.context || builderContext$1;
1098
1171
  },
@@ -1104,6 +1177,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
1104
1177
  builderContext$1,
1105
1178
  props
1106
1179
  ], "p1.context||p0"),
1180
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
1181
+ props
1182
+ ], "p0.linkComponent"),
1107
1183
  registeredComponents: qwik._fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
1108
1184
  componentsContext,
1109
1185
  props
@@ -1163,7 +1239,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
1163
1239
  const mobileWidth = "100%";
1164
1240
  const mobileMarginLeft = 0;
1165
1241
  const marginLeftKey = "margin-left";
1242
+ const sharedStyles = {
1243
+ display: "flex",
1244
+ flexDirection: "column",
1245
+ alignItems: "stretch"
1246
+ };
1166
1247
  return {
1248
+ ...sharedStyles,
1167
1249
  width,
1168
1250
  [marginLeftKey]: gutterPixels,
1169
1251
  "--column-width-mobile": getMobileStyle(props, state, {
@@ -1261,40 +1343,56 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
1261
1343
  }
1262
1344
  }, 3, "c0_0"),
1263
1345
  (props.columns || []).map((column, index) => {
1264
- return /* @__PURE__ */ qwik.createElement("div", {
1265
- class: "builder-column div-Columns-2",
1266
- style: columnCssVars(props, state, index),
1267
- key: index
1268
- }, /* @__PURE__ */ qwik._jsxC(Blocks, {
1269
- path: `component.options.columns.${index}.blocks`,
1270
- get parent() {
1271
- return props.builderBlock.id;
1272
- },
1273
- get styleProp() {
1274
- return {
1275
- flexGrow: "1"
1276
- };
1277
- },
1278
- get context() {
1279
- 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))
1280
1355
  },
1281
- get registeredComponents() {
1282
- return props.builderComponents;
1283
- },
1284
- blocks: deoptSignal(column.blocks),
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"),
1285
1392
  [qwik._IMMUTABLE]: {
1286
- context: qwik._fnSignal((p0) => p0.builderContext, [
1287
- props
1288
- ], "p0.builderContext"),
1289
- parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
1290
- props
1291
- ], "p0.builderBlock.id"),
1292
- registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
1293
- props
1294
- ], "p0.builderComponents"),
1295
- styleProp: qwik._IMMUTABLE
1393
+ actionAttributes: qwik._IMMUTABLE
1296
1394
  }
1297
- }, 3, "c0_1"));
1395
+ }, 1, index);
1298
1396
  })
1299
1397
  ], 1, "c0_2");
1300
1398
  }, "Columns_component_7yLj4bxdI6c"));
@@ -1303,11 +1401,6 @@ const STYLES$1 = `
1303
1401
  display: flex;
1304
1402
  line-height: normal;
1305
1403
  }
1306
- .div-Columns-2 {
1307
- display: flex;
1308
- flex-direction: column;
1309
- align-items: stretch;
1310
- }
1311
1404
  `;
1312
1405
  const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1313
1406
  return /* @__PURE__ */ qwik._jsxQ("span", null, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "oj_0"), 1, "oj_1");
@@ -3230,7 +3323,7 @@ const getInteractionPropertiesForEvent = (event) => {
3230
3323
  }
3231
3324
  };
3232
3325
  };
3233
- const SDK_VERSION = "0.12.2";
3326
+ const SDK_VERSION = "0.12.4";
3234
3327
  const registry = {};
3235
3328
  function register(type, info) {
3236
3329
  let typeList = registry[type];
@@ -3757,6 +3850,10 @@ ${getFontCss({
3757
3850
  customFonts: props.customFonts
3758
3851
  })}
3759
3852
 
3853
+ .builder-button {
3854
+ all: unset;
3855
+ }
3856
+
3760
3857
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
3761
3858
  margin: 0;
3762
3859
  }
@@ -3913,6 +4010,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
3913
4010
  get contentWrapperProps() {
3914
4011
  return props.contentWrapperProps;
3915
4012
  },
4013
+ get linkComponent() {
4014
+ return props.linkComponent;
4015
+ },
3916
4016
  get trustedHosts() {
3917
4017
  return props.trustedHosts;
3918
4018
  },
@@ -3972,6 +4072,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
3972
4072
  get registeredComponents() {
3973
4073
  return state.registeredComponents;
3974
4074
  },
4075
+ get linkComponent() {
4076
+ return props.linkComponent;
4077
+ },
3975
4078
  [qwik._IMMUTABLE]: {
3976
4079
  blocks: qwik._fnSignal((p0) => {
3977
4080
  var _a2, _b2;
@@ -3982,6 +4085,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
3982
4085
  context: qwik._fnSignal((p0) => p0.builderContextSignal, [
3983
4086
  state
3984
4087
  ], "p0.builderContextSignal"),
4088
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4089
+ props
4090
+ ], "p0.linkComponent"),
3985
4091
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
3986
4092
  state
3987
4093
  ], "p0.registeredComponents")
@@ -4019,6 +4125,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
4019
4125
  includeRefs: qwik._fnSignal((p0) => p0.includeRefs, [
4020
4126
  props
4021
4127
  ], "p0.includeRefs"),
4128
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4129
+ props
4130
+ ], "p0.linkComponent"),
4022
4131
  locale: qwik._fnSignal((p0) => p0.locale, [
4023
4132
  props
4024
4133
  ], "p0.locale"),
@@ -4136,6 +4245,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4136
4245
  get customComponents() {
4137
4246
  return props.customComponents;
4138
4247
  },
4248
+ get linkComponent() {
4249
+ return props.linkComponent;
4250
+ },
4139
4251
  get canTrack() {
4140
4252
  return props.canTrack;
4141
4253
  },
@@ -4206,6 +4318,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4206
4318
  isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
4207
4319
  state
4208
4320
  ], "p0.shouldRenderVariants"),
4321
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4322
+ props
4323
+ ], "p0.linkComponent"),
4209
4324
  locale: qwik._fnSignal((p0) => p0.locale, [
4210
4325
  props
4211
4326
  ], "p0.locale"),
@@ -4244,6 +4359,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4244
4359
  get customComponents() {
4245
4360
  return props.customComponents;
4246
4361
  },
4362
+ get linkComponent() {
4363
+ return props.linkComponent;
4364
+ },
4247
4365
  get canTrack() {
4248
4366
  return props.canTrack;
4249
4367
  },
@@ -4317,6 +4435,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4317
4435
  isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
4318
4436
  state
4319
4437
  ], "p0.shouldRenderVariants"),
4438
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4439
+ props
4440
+ ], "p0.linkComponent"),
4320
4441
  locale: qwik._fnSignal((p0) => p0.locale, [
4321
4442
  props
4322
4443
  ], "p0.locale"),
@@ -4367,7 +4488,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4367
4488
  var _a2, _b;
4368
4489
  const [props2] = qwik.useLexicalScope();
4369
4490
  return [
4370
- props2.attributes.class,
4491
+ props2.attributes[getClassPropName()],
4371
4492
  "builder-symbol",
4372
4493
  ((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
4373
4494
  ((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4420,6 +4541,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4420
4541
  get content() {
4421
4542
  return state.contentToUse;
4422
4543
  },
4544
+ get linkComponent() {
4545
+ return props.builderLinkComponent;
4546
+ },
4423
4547
  [qwik._IMMUTABLE]: {
4424
4548
  apiKey: qwik._fnSignal((p0) => p0.builderContext.apiKey, [
4425
4549
  props
@@ -4453,6 +4577,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4453
4577
  props,
4454
4578
  state
4455
4579
  ], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
4580
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
4581
+ props
4582
+ ], "p0.builderLinkComponent"),
4456
4583
  model: qwik._fnSignal((p0) => {
4457
4584
  var _a2;
4458
4585
  return (_a2 = p0.symbol) == null ? void 0 : _a2.model;