@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
@@ -1,44 +1,87 @@
1
- import { componentQrl, inlinedQrl, useStylesScopedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot as Slot$1, useStore, useContextProvider, _wrapProp, useContext, createElement, Fragment as Fragment$1, useSignal, useOn, useTaskQrl } from "@builder.io/qwik";
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 { s as safeDynamicRequire } from "./node-evaluate-db446d2b.js";
4
4
  import { isServer } from "@builder.io/qwik/build";
5
5
  import "node:module";
6
- const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
7
- useStylesScopedQrl(/* @__PURE__ */ 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__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
27
+ _jsxBranch();
8
28
  return /* @__PURE__ */ _jsxC(Fragment, {
9
- children: props.link ? /* @__PURE__ */ _jsxS("a", {
29
+ children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
10
30
  ...props.attributes,
11
- children: _fnSignal((p0) => p0.text, [
12
- props
13
- ], "p0.text")
14
- }, {
15
- href: _fnSignal((p0) => p0.link, [
16
- props
17
- ], "p0.link"),
18
- role: "button",
19
- target: _fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
20
- props
21
- ], 'p0.openLinkInNewTab?"_blank":undefined')
22
- }, 0, "jc_0") : /* @__PURE__ */ _jsxS("button", {
31
+ ...props.actionAttributes,
32
+ children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
33
+ }, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
23
34
  ...props.attributes,
24
- children: _fnSignal((p0) => p0.text, [
25
- props
26
- ], "p0.text")
27
- }, {
28
- class: _fnSignal((p0) => p0.attributes.class + " button-Button", [
29
- props
30
- ], 'p0.attributes.class+" button-Button"'),
31
- style: _fnSignal((p0) => p0.attributes.style, [
35
+ ...props.actionAttributes,
36
+ children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
37
+ }, 0, "yW_3") : /* @__PURE__ */ _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__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
58
+ return /* @__PURE__ */ _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: _fnSignal((p0) => p0.text, [
75
+ props
76
+ ], "p0.text"),
77
+ [_IMMUTABLE]: {
78
+ TagName: _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: _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 = createContextId("Builder");
43
86
  const ComponentsContext = createContextId("Components");
44
87
  function getBlockComponentOptions(block) {
@@ -70,7 +113,6 @@ const set = (obj, _path, value) => {
70
113
  function isBrowser() {
71
114
  return typeof window !== "undefined" && typeof document !== "undefined";
72
115
  }
73
- const TARGET = "qwik";
74
116
  function isIframe() {
75
117
  return isBrowser() && window.self !== window.top;
76
118
  }
@@ -580,6 +622,29 @@ function getBlockActions(options) {
580
622
  }
581
623
  return obj;
582
624
  }
625
+ function transformStyleProperty({ style }) {
626
+ return style;
627
+ }
628
+ const getStyle = ({ block, context }) => {
629
+ return mapStyleObjToStrIfNeeded(transformStyleProperty({
630
+ style: block.style || {},
631
+ context,
632
+ block
633
+ }));
634
+ };
635
+ function mapStyleObjToStrIfNeeded(style) {
636
+ switch (TARGET) {
637
+ case "svelte":
638
+ case "vue":
639
+ case "solid":
640
+ return convertStyleMapToCSSArray(style).join(" ");
641
+ case "qwik":
642
+ case "reactNative":
643
+ case "react":
644
+ case "rsc":
645
+ return style;
646
+ }
647
+ }
583
648
  function transformBlockProperties({ properties }) {
584
649
  return properties;
585
650
  }
@@ -594,8 +659,11 @@ function getBlockProperties({ block, context }) {
594
659
  ...extractRelevantRootBlockProperties(block),
595
660
  ...block.properties,
596
661
  "builder-id": block.id,
597
- style: block.style ? getStyleAttribute(block.style) : void 0,
598
- class: [
662
+ style: getStyle({
663
+ block,
664
+ context
665
+ }),
666
+ [getClassPropName()]: [
599
667
  block.id,
600
668
  "builder-block",
601
669
  block.class,
@@ -608,56 +676,6 @@ function getBlockProperties({ block, context }) {
608
676
  block
609
677
  });
610
678
  }
611
- function getStyleAttribute(style) {
612
- switch (TARGET) {
613
- case "svelte":
614
- case "vue":
615
- case "solid":
616
- return convertStyleMapToCSSArray(style).join(" ");
617
- case "qwik":
618
- case "reactNative":
619
- case "react":
620
- case "rsc":
621
- return style;
622
- }
623
- }
624
- const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
625
- "area",
626
- "base",
627
- "br",
628
- "col",
629
- "embed",
630
- "hr",
631
- "img",
632
- "input",
633
- "keygen",
634
- "link",
635
- "meta",
636
- "param",
637
- "source",
638
- "track",
639
- "wbr"
640
- ]);
641
- const isEmptyElement = (tagName) => {
642
- return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
643
- };
644
- const DynamicRenderer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
645
- _jsxBranch();
646
- return /* @__PURE__ */ _jsxC(Fragment, {
647
- children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
648
- ...props.attributes,
649
- ...props.actionAttributes,
650
- children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
651
- }, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
652
- ...props.attributes,
653
- ...props.actionAttributes,
654
- children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
655
- }, 0, "yW_3") : /* @__PURE__ */ _jsxC(props.TagName, {
656
- ...props.attributes,
657
- ...props.actionAttributes
658
- }, 0, "yW_4")
659
- }, 1, "yW_5");
660
- }, "DynamicRenderer_component_1Co0xkmyAfQ"));
661
679
  const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
662
680
  return /* @__PURE__ */ _jsxC(DynamicRenderer, {
663
681
  get TagName() {
@@ -736,6 +754,7 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
736
754
  builderBlock: props.builderBlock,
737
755
  context: props.context,
738
756
  componentRef: props.componentRef,
757
+ linkComponent: props.linkComponent,
739
758
  includeBlockProps: props.includeBlockProps,
740
759
  isInteractive: props.isInteractive,
741
760
  contextValue: props.context
@@ -749,10 +768,16 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
749
768
  get registeredComponents() {
750
769
  return props.registeredComponents;
751
770
  },
771
+ get linkComponent() {
772
+ return props.linkComponent;
773
+ },
752
774
  [_IMMUTABLE]: {
753
775
  context: _fnSignal((p0) => p0.context, [
754
776
  props
755
777
  ], "p0.context"),
778
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
779
+ props
780
+ ], "p0.linkComponent"),
756
781
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
757
782
  props
758
783
  ], "p0.registeredComponents")
@@ -777,6 +802,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
777
802
  get registeredComponents() {
778
803
  return props.registeredComponents;
779
804
  },
805
+ get linkComponent() {
806
+ return props.linkComponent;
807
+ },
780
808
  [_IMMUTABLE]: {
781
809
  block: _fnSignal((p0) => p0.block, [
782
810
  props
@@ -784,6 +812,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
784
812
  context: _fnSignal((p0) => p0.store, [
785
813
  state
786
814
  ], "p0.store"),
815
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
816
+ props
817
+ ], "p0.linkComponent"),
787
818
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
788
819
  props
789
820
  ], "p0.registeredComponents")
@@ -830,9 +861,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
830
861
  props
831
862
  ]));
832
863
  const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
833
- const [props2] = useLexicalScope();
864
+ var _a2;
865
+ const [processedBlock2, props2] = useLexicalScope();
866
+ const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
867
+ if (shouldUseLink)
868
+ return props2.linkComponent || "a";
834
869
  return props2.block.tagName || "div";
835
870
  }, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
871
+ processedBlock,
836
872
  props
837
873
  ]));
838
874
  const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
@@ -862,7 +898,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
862
898
  repeatItem
863
899
  ]));
864
900
  const componentRefProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
865
- var _a2, _b, _c, _d, _e;
901
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
866
902
  const [blockComponent2, processedBlock2, props2, state2] = useLexicalScope();
867
903
  return {
868
904
  blockChildren: processedBlock2.value.children ?? [],
@@ -870,15 +906,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
870
906
  componentOptions: {
871
907
  ...getBlockComponentOptions(processedBlock2.value),
872
908
  builderContext: props2.context,
873
- ...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "Symbol" || ((_c = blockComponent2.value) == null ? void 0 : _c.name) === "Columns" ? {
909
+ ...((_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" ? {
910
+ builderLinkComponent: props2.linkComponent
911
+ } : {},
912
+ ...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
874
913
  builderComponents: props2.registeredComponents
875
914
  } : {}
876
915
  },
877
916
  context: state2.childrenContext,
917
+ linkComponent: props2.linkComponent,
878
918
  registeredComponents: props2.registeredComponents,
879
919
  builderBlock: processedBlock2.value,
880
- includeBlockProps: ((_d = blockComponent2.value) == null ? void 0 : _d.noWrap) === true,
881
- isInteractive: !((_e = blockComponent2.value) == null ? void 0 : _e.isRSC)
920
+ includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
921
+ isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
882
922
  };
883
923
  }, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
884
924
  blockComponent,
@@ -915,6 +955,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
915
955
  get context() {
916
956
  return props.context;
917
957
  },
958
+ get linkComponent() {
959
+ return props.linkComponent;
960
+ },
918
961
  children: [
919
962
  /* @__PURE__ */ _jsxC(ComponentRef, {
920
963
  get componentRef() {
@@ -932,6 +975,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
932
975
  get registeredComponents() {
933
976
  return componentRefProps.value.registeredComponents;
934
977
  },
978
+ get linkComponent() {
979
+ return componentRefProps.value.linkComponent;
980
+ },
935
981
  get builderBlock() {
936
982
  return componentRefProps.value.builderBlock;
937
983
  },
@@ -963,6 +1009,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
963
1009
  isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
964
1010
  componentRefProps
965
1011
  ], "p0.value.isInteractive"),
1012
+ linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
1013
+ componentRefProps
1014
+ ], "p0.value.linkComponent"),
966
1015
  registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
967
1016
  componentRefProps
968
1017
  ], "p0.value.registeredComponents")
@@ -977,10 +1026,16 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
977
1026
  get registeredComponents() {
978
1027
  return props.registeredComponents;
979
1028
  },
1029
+ get linkComponent() {
1030
+ return props.linkComponent;
1031
+ },
980
1032
  [_IMMUTABLE]: {
981
1033
  context: _fnSignal((p0) => p0.childrenContext, [
982
1034
  state
983
1035
  ], "p0.childrenContext"),
1036
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1037
+ props
1038
+ ], "p0.linkComponent"),
984
1039
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
985
1040
  props
986
1041
  ], "p0.registeredComponents")
@@ -997,7 +1052,10 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
997
1052
  ], "p0.value"),
998
1053
  context: _fnSignal((p0) => p0.context, [
999
1054
  props
1000
- ], "p0.context")
1055
+ ], "p0.context"),
1056
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1057
+ props
1058
+ ], "p0.linkComponent")
1001
1059
  }
1002
1060
  }, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
1003
1061
  return /* @__PURE__ */ _jsxC(RepeatedBlock, {
@@ -1010,8 +1068,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1010
1068
  get registeredComponents() {
1011
1069
  return props.registeredComponents;
1012
1070
  },
1071
+ get linkComponent() {
1072
+ return props.linkComponent;
1073
+ },
1013
1074
  [_IMMUTABLE]: {
1014
1075
  block: _wrapProp(data, "block"),
1076
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1077
+ props
1078
+ ], "p0.linkComponent"),
1015
1079
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
1016
1080
  props
1017
1081
  ], "p0.registeredComponents"),
@@ -1034,6 +1098,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1034
1098
  get registeredComponents() {
1035
1099
  return componentRefProps.value.registeredComponents;
1036
1100
  },
1101
+ get linkComponent() {
1102
+ return componentRefProps.value.linkComponent;
1103
+ },
1037
1104
  get builderBlock() {
1038
1105
  return componentRefProps.value.builderBlock;
1039
1106
  },
@@ -1065,6 +1132,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1065
1132
  isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
1066
1133
  componentRefProps
1067
1134
  ], "p0.value.isInteractive"),
1135
+ linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
1136
+ componentRefProps
1137
+ ], "p0.value.linkComponent"),
1068
1138
  registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
1069
1139
  componentRefProps
1070
1140
  ], "p0.value.registeredComponents")
@@ -1192,6 +1262,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
1192
1262
  children: props.blocks ? (props.blocks || []).map((block) => {
1193
1263
  return /* @__PURE__ */ _jsxC(Block, {
1194
1264
  block,
1265
+ get linkComponent() {
1266
+ return props.linkComponent;
1267
+ },
1195
1268
  get context() {
1196
1269
  return props.context || builderContext$1;
1197
1270
  },
@@ -1203,6 +1276,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
1203
1276
  builderContext$1,
1204
1277
  props
1205
1278
  ], "p1.context||p0"),
1279
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1280
+ props
1281
+ ], "p0.linkComponent"),
1206
1282
  registeredComponents: _fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
1207
1283
  componentsContext,
1208
1284
  props
@@ -1262,7 +1338,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
1262
1338
  const mobileWidth = "100%";
1263
1339
  const mobileMarginLeft = 0;
1264
1340
  const marginLeftKey = "margin-left";
1341
+ const sharedStyles = {
1342
+ display: "flex",
1343
+ flexDirection: "column",
1344
+ alignItems: "stretch"
1345
+ };
1265
1346
  return {
1347
+ ...sharedStyles,
1266
1348
  width,
1267
1349
  [marginLeftKey]: gutterPixels,
1268
1350
  "--column-width-mobile": getMobileStyle(props, state, {
@@ -1360,40 +1442,56 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
1360
1442
  }
1361
1443
  }, 3, "c0_0"),
1362
1444
  (props.columns || []).map((column, index) => {
1363
- return /* @__PURE__ */ createElement("div", {
1364
- class: "builder-column div-Columns-2",
1365
- style: columnCssVars(props, state, index),
1366
- key: index
1367
- }, /* @__PURE__ */ _jsxC(Blocks, {
1368
- path: `component.options.columns.${index}.blocks`,
1369
- get parent() {
1370
- return props.builderBlock.id;
1371
- },
1372
- get styleProp() {
1373
- return {
1374
- flexGrow: "1"
1375
- };
1376
- },
1377
- get context() {
1378
- return props.builderContext;
1445
+ return /* @__PURE__ */ _jsxC(DynamicRenderer, {
1446
+ TagName: column.link ? props.builderLinkComponent || "a" : "div",
1447
+ actionAttributes: {},
1448
+ attributes: {
1449
+ ...column.link ? {
1450
+ href: column.link
1451
+ } : {},
1452
+ [getClassPropName()]: "builder-column",
1453
+ style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
1379
1454
  },
1380
- get registeredComponents() {
1381
- return props.builderComponents;
1382
- },
1383
- blocks: deoptSignal(column.blocks),
1455
+ children: /* @__PURE__ */ _jsxC(Blocks, {
1456
+ path: `component.options.columns.${index}.blocks`,
1457
+ get parent() {
1458
+ return props.builderBlock.id;
1459
+ },
1460
+ get styleProp() {
1461
+ return {
1462
+ flexGrow: "1"
1463
+ };
1464
+ },
1465
+ get context() {
1466
+ return props.builderContext;
1467
+ },
1468
+ get registeredComponents() {
1469
+ return props.builderComponents;
1470
+ },
1471
+ get linkComponent() {
1472
+ return props.builderLinkComponent;
1473
+ },
1474
+ blocks: deoptSignal(column.blocks),
1475
+ [_IMMUTABLE]: {
1476
+ context: _fnSignal((p0) => p0.builderContext, [
1477
+ props
1478
+ ], "p0.builderContext"),
1479
+ linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
1480
+ props
1481
+ ], "p0.builderLinkComponent"),
1482
+ parent: _fnSignal((p0) => p0.builderBlock.id, [
1483
+ props
1484
+ ], "p0.builderBlock.id"),
1485
+ registeredComponents: _fnSignal((p0) => p0.builderComponents, [
1486
+ props
1487
+ ], "p0.builderComponents"),
1488
+ styleProp: _IMMUTABLE
1489
+ }
1490
+ }, 3, "c0_1"),
1384
1491
  [_IMMUTABLE]: {
1385
- context: _fnSignal((p0) => p0.builderContext, [
1386
- props
1387
- ], "p0.builderContext"),
1388
- parent: _fnSignal((p0) => p0.builderBlock.id, [
1389
- props
1390
- ], "p0.builderBlock.id"),
1391
- registeredComponents: _fnSignal((p0) => p0.builderComponents, [
1392
- props
1393
- ], "p0.builderComponents"),
1394
- styleProp: _IMMUTABLE
1492
+ actionAttributes: _IMMUTABLE
1395
1493
  }
1396
- }, 3, "c0_1"));
1494
+ }, 1, index);
1397
1495
  })
1398
1496
  ], 1, "c0_2");
1399
1497
  }, "Columns_component_7yLj4bxdI6c"));
@@ -1402,11 +1500,6 @@ const STYLES$1 = `
1402
1500
  display: flex;
1403
1501
  line-height: normal;
1404
1502
  }
1405
- .div-Columns-2 {
1406
- display: flex;
1407
- flex-direction: column;
1408
- align-items: stretch;
1409
- }
1410
1503
  `;
1411
1504
  const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1412
1505
  return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "oj_0"), 1, "oj_1");
@@ -3329,7 +3422,7 @@ const getInteractionPropertiesForEvent = (event) => {
3329
3422
  }
3330
3423
  };
3331
3424
  };
3332
- const SDK_VERSION = "0.12.2";
3425
+ const SDK_VERSION = "0.12.4";
3333
3426
  const registry = {};
3334
3427
  function register(type, info) {
3335
3428
  let typeList = registry[type];
@@ -3856,6 +3949,10 @@ ${getFontCss({
3856
3949
  customFonts: props.customFonts
3857
3950
  })}
3858
3951
 
3952
+ .builder-button {
3953
+ all: unset;
3954
+ }
3955
+
3859
3956
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
3860
3957
  margin: 0;
3861
3958
  }
@@ -4012,6 +4109,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4012
4109
  get contentWrapperProps() {
4013
4110
  return props.contentWrapperProps;
4014
4111
  },
4112
+ get linkComponent() {
4113
+ return props.linkComponent;
4114
+ },
4015
4115
  get trustedHosts() {
4016
4116
  return props.trustedHosts;
4017
4117
  },
@@ -4071,6 +4171,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4071
4171
  get registeredComponents() {
4072
4172
  return state.registeredComponents;
4073
4173
  },
4174
+ get linkComponent() {
4175
+ return props.linkComponent;
4176
+ },
4074
4177
  [_IMMUTABLE]: {
4075
4178
  blocks: _fnSignal((p0) => {
4076
4179
  var _a2, _b2;
@@ -4081,6 +4184,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4081
4184
  context: _fnSignal((p0) => p0.builderContextSignal, [
4082
4185
  state
4083
4186
  ], "p0.builderContextSignal"),
4187
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4188
+ props
4189
+ ], "p0.linkComponent"),
4084
4190
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
4085
4191
  state
4086
4192
  ], "p0.registeredComponents")
@@ -4118,6 +4224,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4118
4224
  includeRefs: _fnSignal((p0) => p0.includeRefs, [
4119
4225
  props
4120
4226
  ], "p0.includeRefs"),
4227
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4228
+ props
4229
+ ], "p0.linkComponent"),
4121
4230
  locale: _fnSignal((p0) => p0.locale, [
4122
4231
  props
4123
4232
  ], "p0.locale"),
@@ -4235,6 +4344,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4235
4344
  get customComponents() {
4236
4345
  return props.customComponents;
4237
4346
  },
4347
+ get linkComponent() {
4348
+ return props.linkComponent;
4349
+ },
4238
4350
  get canTrack() {
4239
4351
  return props.canTrack;
4240
4352
  },
@@ -4305,6 +4417,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4305
4417
  isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
4306
4418
  state
4307
4419
  ], "p0.shouldRenderVariants"),
4420
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4421
+ props
4422
+ ], "p0.linkComponent"),
4308
4423
  locale: _fnSignal((p0) => p0.locale, [
4309
4424
  props
4310
4425
  ], "p0.locale"),
@@ -4343,6 +4458,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4343
4458
  get customComponents() {
4344
4459
  return props.customComponents;
4345
4460
  },
4461
+ get linkComponent() {
4462
+ return props.linkComponent;
4463
+ },
4346
4464
  get canTrack() {
4347
4465
  return props.canTrack;
4348
4466
  },
@@ -4416,6 +4534,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4416
4534
  isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
4417
4535
  state
4418
4536
  ], "p0.shouldRenderVariants"),
4537
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4538
+ props
4539
+ ], "p0.linkComponent"),
4419
4540
  locale: _fnSignal((p0) => p0.locale, [
4420
4541
  props
4421
4542
  ], "p0.locale"),
@@ -4466,7 +4587,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4466
4587
  var _a2, _b;
4467
4588
  const [props2] = useLexicalScope();
4468
4589
  return [
4469
- props2.attributes.class,
4590
+ props2.attributes[getClassPropName()],
4470
4591
  "builder-symbol",
4471
4592
  ((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
4472
4593
  ((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4519,6 +4640,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4519
4640
  get content() {
4520
4641
  return state.contentToUse;
4521
4642
  },
4643
+ get linkComponent() {
4644
+ return props.builderLinkComponent;
4645
+ },
4522
4646
  [_IMMUTABLE]: {
4523
4647
  apiKey: _fnSignal((p0) => p0.builderContext.apiKey, [
4524
4648
  props
@@ -4552,6 +4676,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4552
4676
  props,
4553
4677
  state
4554
4678
  ], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
4679
+ linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
4680
+ props
4681
+ ], "p0.builderLinkComponent"),
4555
4682
  model: _fnSignal((p0) => {
4556
4683
  var _a2;
4557
4684
  return (_a2 = p0.symbol) == null ? void 0 : _a2.model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +1,3 @@
1
1
  import { ButtonProps } from "./button.types.js";
2
2
  export declare const Button: import("@builder.io/qwik").Component<ButtonProps>;
3
3
  export default Button;
4
- export declare const STYLES = "\n.button-Button {\n all: unset;\n}\n";