@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.
@@ -1,38 +1,86 @@
1
- import { componentQrl, inlinedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot as Slot$1, useStore, useContextProvider, _wrapProp, useStylesScopedQrl, 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) => {
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();
7
28
  return /* @__PURE__ */ _jsxC(Fragment, {
8
- children: props.link ? /* @__PURE__ */ _jsxS("a", {
29
+ children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
9
30
  ...props.attributes,
10
- children: _fnSignal((p0) => p0.text, [
11
- props
12
- ], "p0.text")
13
- }, {
14
- href: _fnSignal((p0) => p0.link, [
15
- props
16
- ], "p0.link"),
17
- role: "button",
18
- target: _fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
19
- props
20
- ], 'p0.openLinkInNewTab?"_blank":undefined')
21
- }, 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, {
22
34
  ...props.attributes,
23
- children: _fnSignal((p0) => p0.text, [
24
- props
25
- ], "p0.text")
26
- }, {
27
- class: _fnSignal((p0) => `builder-button ${p0.attributes.class}`, [
28
- props
29
- ], "`builder-button ${p0.attributes.class}`"),
30
- role: "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
85
  const builderContext = createContextId("Builder");
38
86
  const ComponentsContext = createContextId("Components");
@@ -65,7 +113,6 @@ const set = (obj, _path, value) => {
65
113
  function isBrowser() {
66
114
  return typeof window !== "undefined" && typeof document !== "undefined";
67
115
  }
68
- const TARGET = "qwik";
69
116
  function isIframe() {
70
117
  return isBrowser() && window.self !== window.top;
71
118
  }
@@ -575,6 +622,29 @@ function getBlockActions(options) {
575
622
  }
576
623
  return obj;
577
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
+ }
578
648
  function transformBlockProperties({ properties }) {
579
649
  return properties;
580
650
  }
@@ -589,8 +659,11 @@ function getBlockProperties({ block, context }) {
589
659
  ...extractRelevantRootBlockProperties(block),
590
660
  ...block.properties,
591
661
  "builder-id": block.id,
592
- style: block.style ? getStyleAttribute(block.style) : void 0,
593
- class: [
662
+ style: getStyle({
663
+ block,
664
+ context
665
+ }),
666
+ [getClassPropName()]: [
594
667
  block.id,
595
668
  "builder-block",
596
669
  block.class,
@@ -603,56 +676,6 @@ function getBlockProperties({ block, context }) {
603
676
  block
604
677
  });
605
678
  }
606
- function getStyleAttribute(style) {
607
- switch (TARGET) {
608
- case "svelte":
609
- case "vue":
610
- case "solid":
611
- return convertStyleMapToCSSArray(style).join(" ");
612
- case "qwik":
613
- case "reactNative":
614
- case "react":
615
- case "rsc":
616
- return style;
617
- }
618
- }
619
- const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
620
- "area",
621
- "base",
622
- "br",
623
- "col",
624
- "embed",
625
- "hr",
626
- "img",
627
- "input",
628
- "keygen",
629
- "link",
630
- "meta",
631
- "param",
632
- "source",
633
- "track",
634
- "wbr"
635
- ]);
636
- const isEmptyElement = (tagName) => {
637
- return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
638
- };
639
- const DynamicRenderer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
640
- _jsxBranch();
641
- return /* @__PURE__ */ _jsxC(Fragment, {
642
- children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
643
- ...props.attributes,
644
- ...props.actionAttributes,
645
- children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
646
- }, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
647
- ...props.attributes,
648
- ...props.actionAttributes,
649
- children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
650
- }, 0, "yW_3") : /* @__PURE__ */ _jsxC(props.TagName, {
651
- ...props.attributes,
652
- ...props.actionAttributes
653
- }, 0, "yW_4")
654
- }, 1, "yW_5");
655
- }, "DynamicRenderer_component_1Co0xkmyAfQ"));
656
679
  const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
657
680
  return /* @__PURE__ */ _jsxC(DynamicRenderer, {
658
681
  get TagName() {
@@ -731,6 +754,7 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
731
754
  builderBlock: props.builderBlock,
732
755
  context: props.context,
733
756
  componentRef: props.componentRef,
757
+ linkComponent: props.linkComponent,
734
758
  includeBlockProps: props.includeBlockProps,
735
759
  isInteractive: props.isInteractive,
736
760
  contextValue: props.context
@@ -744,10 +768,16 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
744
768
  get registeredComponents() {
745
769
  return props.registeredComponents;
746
770
  },
771
+ get linkComponent() {
772
+ return props.linkComponent;
773
+ },
747
774
  [_IMMUTABLE]: {
748
775
  context: _fnSignal((p0) => p0.context, [
749
776
  props
750
777
  ], "p0.context"),
778
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
779
+ props
780
+ ], "p0.linkComponent"),
751
781
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
752
782
  props
753
783
  ], "p0.registeredComponents")
@@ -772,6 +802,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
772
802
  get registeredComponents() {
773
803
  return props.registeredComponents;
774
804
  },
805
+ get linkComponent() {
806
+ return props.linkComponent;
807
+ },
775
808
  [_IMMUTABLE]: {
776
809
  block: _fnSignal((p0) => p0.block, [
777
810
  props
@@ -779,6 +812,9 @@ const RepeatedBlock = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
779
812
  context: _fnSignal((p0) => p0.store, [
780
813
  state
781
814
  ], "p0.store"),
815
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
816
+ props
817
+ ], "p0.linkComponent"),
782
818
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
783
819
  props
784
820
  ], "p0.registeredComponents")
@@ -825,9 +861,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
825
861
  props
826
862
  ]));
827
863
  const Tag = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
828
- 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";
829
869
  return props2.block.tagName || "div";
830
870
  }, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
871
+ processedBlock,
831
872
  props
832
873
  ]));
833
874
  const canShowBlock = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
@@ -857,7 +898,7 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
857
898
  repeatItem
858
899
  ]));
859
900
  const componentRefProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
860
- var _a2, _b, _c, _d, _e;
901
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
861
902
  const [blockComponent2, processedBlock2, props2, state2] = useLexicalScope();
862
903
  return {
863
904
  blockChildren: processedBlock2.value.children ?? [],
@@ -865,15 +906,19 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
865
906
  componentOptions: {
866
907
  ...getBlockComponentOptions(processedBlock2.value),
867
908
  builderContext: props2.context,
868
- ...((_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" ? {
869
913
  builderComponents: props2.registeredComponents
870
914
  } : {}
871
915
  },
872
916
  context: state2.childrenContext,
917
+ linkComponent: props2.linkComponent,
873
918
  registeredComponents: props2.registeredComponents,
874
919
  builderBlock: processedBlock2.value,
875
- includeBlockProps: ((_d = blockComponent2.value) == null ? void 0 : _d.noWrap) === true,
876
- 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)
877
922
  };
878
923
  }, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
879
924
  blockComponent,
@@ -910,6 +955,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
910
955
  get context() {
911
956
  return props.context;
912
957
  },
958
+ get linkComponent() {
959
+ return props.linkComponent;
960
+ },
913
961
  children: [
914
962
  /* @__PURE__ */ _jsxC(ComponentRef, {
915
963
  get componentRef() {
@@ -927,6 +975,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
927
975
  get registeredComponents() {
928
976
  return componentRefProps.value.registeredComponents;
929
977
  },
978
+ get linkComponent() {
979
+ return componentRefProps.value.linkComponent;
980
+ },
930
981
  get builderBlock() {
931
982
  return componentRefProps.value.builderBlock;
932
983
  },
@@ -958,6 +1009,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
958
1009
  isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
959
1010
  componentRefProps
960
1011
  ], "p0.value.isInteractive"),
1012
+ linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
1013
+ componentRefProps
1014
+ ], "p0.value.linkComponent"),
961
1015
  registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
962
1016
  componentRefProps
963
1017
  ], "p0.value.registeredComponents")
@@ -972,10 +1026,16 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
972
1026
  get registeredComponents() {
973
1027
  return props.registeredComponents;
974
1028
  },
1029
+ get linkComponent() {
1030
+ return props.linkComponent;
1031
+ },
975
1032
  [_IMMUTABLE]: {
976
1033
  context: _fnSignal((p0) => p0.childrenContext, [
977
1034
  state
978
1035
  ], "p0.childrenContext"),
1036
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1037
+ props
1038
+ ], "p0.linkComponent"),
979
1039
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
980
1040
  props
981
1041
  ], "p0.registeredComponents")
@@ -992,7 +1052,10 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
992
1052
  ], "p0.value"),
993
1053
  context: _fnSignal((p0) => p0.context, [
994
1054
  props
995
- ], "p0.context")
1055
+ ], "p0.context"),
1056
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1057
+ props
1058
+ ], "p0.linkComponent")
996
1059
  }
997
1060
  }, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
998
1061
  return /* @__PURE__ */ _jsxC(RepeatedBlock, {
@@ -1005,8 +1068,14 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1005
1068
  get registeredComponents() {
1006
1069
  return props.registeredComponents;
1007
1070
  },
1071
+ get linkComponent() {
1072
+ return props.linkComponent;
1073
+ },
1008
1074
  [_IMMUTABLE]: {
1009
1075
  block: _wrapProp(data, "block"),
1076
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1077
+ props
1078
+ ], "p0.linkComponent"),
1010
1079
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
1011
1080
  props
1012
1081
  ], "p0.registeredComponents"),
@@ -1029,6 +1098,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1029
1098
  get registeredComponents() {
1030
1099
  return componentRefProps.value.registeredComponents;
1031
1100
  },
1101
+ get linkComponent() {
1102
+ return componentRefProps.value.linkComponent;
1103
+ },
1032
1104
  get builderBlock() {
1033
1105
  return componentRefProps.value.builderBlock;
1034
1106
  },
@@ -1060,6 +1132,9 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1060
1132
  isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
1061
1133
  componentRefProps
1062
1134
  ], "p0.value.isInteractive"),
1135
+ linkComponent: _fnSignal((p0) => p0.value.linkComponent, [
1136
+ componentRefProps
1137
+ ], "p0.value.linkComponent"),
1063
1138
  registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
1064
1139
  componentRefProps
1065
1140
  ], "p0.value.registeredComponents")
@@ -1187,6 +1262,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
1187
1262
  children: props.blocks ? (props.blocks || []).map((block) => {
1188
1263
  return /* @__PURE__ */ _jsxC(Block, {
1189
1264
  block,
1265
+ get linkComponent() {
1266
+ return props.linkComponent;
1267
+ },
1190
1268
  get context() {
1191
1269
  return props.context || builderContext$1;
1192
1270
  },
@@ -1198,6 +1276,9 @@ const Blocks = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
1198
1276
  builderContext$1,
1199
1277
  props
1200
1278
  ], "p1.context||p0"),
1279
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
1280
+ props
1281
+ ], "p0.linkComponent"),
1201
1282
  registeredComponents: _fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
1202
1283
  componentsContext,
1203
1284
  props
@@ -1257,7 +1338,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
1257
1338
  const mobileWidth = "100%";
1258
1339
  const mobileMarginLeft = 0;
1259
1340
  const marginLeftKey = "margin-left";
1341
+ const sharedStyles = {
1342
+ display: "flex",
1343
+ flexDirection: "column",
1344
+ alignItems: "stretch"
1345
+ };
1260
1346
  return {
1347
+ ...sharedStyles,
1261
1348
  width,
1262
1349
  [marginLeftKey]: gutterPixels,
1263
1350
  "--column-width-mobile": getMobileStyle(props, state, {
@@ -1355,40 +1442,56 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
1355
1442
  }
1356
1443
  }, 3, "c0_0"),
1357
1444
  (props.columns || []).map((column, index) => {
1358
- return /* @__PURE__ */ createElement("div", {
1359
- class: "builder-column div-Columns-2",
1360
- style: columnCssVars(props, state, index),
1361
- key: index
1362
- }, /* @__PURE__ */ _jsxC(Blocks, {
1363
- path: `component.options.columns.${index}.blocks`,
1364
- get parent() {
1365
- return props.builderBlock.id;
1366
- },
1367
- get styleProp() {
1368
- return {
1369
- flexGrow: "1"
1370
- };
1371
- },
1372
- get context() {
1373
- 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))
1374
1454
  },
1375
- get registeredComponents() {
1376
- return props.builderComponents;
1377
- },
1378
- 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"),
1379
1491
  [_IMMUTABLE]: {
1380
- context: _fnSignal((p0) => p0.builderContext, [
1381
- props
1382
- ], "p0.builderContext"),
1383
- parent: _fnSignal((p0) => p0.builderBlock.id, [
1384
- props
1385
- ], "p0.builderBlock.id"),
1386
- registeredComponents: _fnSignal((p0) => p0.builderComponents, [
1387
- props
1388
- ], "p0.builderComponents"),
1389
- styleProp: _IMMUTABLE
1492
+ actionAttributes: _IMMUTABLE
1390
1493
  }
1391
- }, 3, "c0_1"));
1494
+ }, 1, index);
1392
1495
  })
1393
1496
  ], 1, "c0_2");
1394
1497
  }, "Columns_component_7yLj4bxdI6c"));
@@ -1397,11 +1500,6 @@ const STYLES$1 = `
1397
1500
  display: flex;
1398
1501
  line-height: normal;
1399
1502
  }
1400
- .div-Columns-2 {
1401
- display: flex;
1402
- flex-direction: column;
1403
- align-items: stretch;
1404
- }
1405
1503
  `;
1406
1504
  const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
1407
1505
  return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "oj_0"), 1, "oj_1");
@@ -3324,7 +3422,7 @@ const getInteractionPropertiesForEvent = (event) => {
3324
3422
  }
3325
3423
  };
3326
3424
  };
3327
- const SDK_VERSION = "0.12.3";
3425
+ const SDK_VERSION = "0.12.4";
3328
3426
  const registry = {};
3329
3427
  function register(type, info) {
3330
3428
  let typeList = registry[type];
@@ -4011,6 +4109,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4011
4109
  get contentWrapperProps() {
4012
4110
  return props.contentWrapperProps;
4013
4111
  },
4112
+ get linkComponent() {
4113
+ return props.linkComponent;
4114
+ },
4014
4115
  get trustedHosts() {
4015
4116
  return props.trustedHosts;
4016
4117
  },
@@ -4070,6 +4171,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4070
4171
  get registeredComponents() {
4071
4172
  return state.registeredComponents;
4072
4173
  },
4174
+ get linkComponent() {
4175
+ return props.linkComponent;
4176
+ },
4073
4177
  [_IMMUTABLE]: {
4074
4178
  blocks: _fnSignal((p0) => {
4075
4179
  var _a2, _b2;
@@ -4080,6 +4184,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4080
4184
  context: _fnSignal((p0) => p0.builderContextSignal, [
4081
4185
  state
4082
4186
  ], "p0.builderContextSignal"),
4187
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4188
+ props
4189
+ ], "p0.linkComponent"),
4083
4190
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
4084
4191
  state
4085
4192
  ], "p0.registeredComponents")
@@ -4117,6 +4224,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4117
4224
  includeRefs: _fnSignal((p0) => p0.includeRefs, [
4118
4225
  props
4119
4226
  ], "p0.includeRefs"),
4227
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4228
+ props
4229
+ ], "p0.linkComponent"),
4120
4230
  locale: _fnSignal((p0) => p0.locale, [
4121
4231
  props
4122
4232
  ], "p0.locale"),
@@ -4234,6 +4344,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4234
4344
  get customComponents() {
4235
4345
  return props.customComponents;
4236
4346
  },
4347
+ get linkComponent() {
4348
+ return props.linkComponent;
4349
+ },
4237
4350
  get canTrack() {
4238
4351
  return props.canTrack;
4239
4352
  },
@@ -4304,6 +4417,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4304
4417
  isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
4305
4418
  state
4306
4419
  ], "p0.shouldRenderVariants"),
4420
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4421
+ props
4422
+ ], "p0.linkComponent"),
4307
4423
  locale: _fnSignal((p0) => p0.locale, [
4308
4424
  props
4309
4425
  ], "p0.locale"),
@@ -4342,6 +4458,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4342
4458
  get customComponents() {
4343
4459
  return props.customComponents;
4344
4460
  },
4461
+ get linkComponent() {
4462
+ return props.linkComponent;
4463
+ },
4345
4464
  get canTrack() {
4346
4465
  return props.canTrack;
4347
4466
  },
@@ -4415,6 +4534,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4415
4534
  isSsrAbTest: _fnSignal((p0) => p0.shouldRenderVariants, [
4416
4535
  state
4417
4536
  ], "p0.shouldRenderVariants"),
4537
+ linkComponent: _fnSignal((p0) => p0.linkComponent, [
4538
+ props
4539
+ ], "p0.linkComponent"),
4418
4540
  locale: _fnSignal((p0) => p0.locale, [
4419
4541
  props
4420
4542
  ], "p0.locale"),
@@ -4465,7 +4587,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4465
4587
  var _a2, _b;
4466
4588
  const [props2] = useLexicalScope();
4467
4589
  return [
4468
- props2.attributes.class,
4590
+ props2.attributes[getClassPropName()],
4469
4591
  "builder-symbol",
4470
4592
  ((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
4471
4593
  ((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4518,6 +4640,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4518
4640
  get content() {
4519
4641
  return state.contentToUse;
4520
4642
  },
4643
+ get linkComponent() {
4644
+ return props.builderLinkComponent;
4645
+ },
4521
4646
  [_IMMUTABLE]: {
4522
4647
  apiKey: _fnSignal((p0) => p0.builderContext.apiKey, [
4523
4648
  props
@@ -4551,6 +4676,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
4551
4676
  props,
4552
4677
  state
4553
4678
  ], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
4679
+ linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
4680
+ props
4681
+ ], "p0.builderLinkComponent"),
4554
4682
  model: _fnSignal((p0) => {
4555
4683
  var _a2;
4556
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.3",
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,5 @@
1
- export interface ButtonProps {
1
+ import type { BuilderLinkComponentProp } from '../../types/builder-props.js';
2
+ export interface ButtonProps extends BuilderLinkComponentProp {
2
3
  attributes?: any;
3
4
  text?: string;
4
5
  link?: string;
@@ -17,4 +17,4 @@ export declare const columnCssVars: (props: any, state: any, index: number) => D
17
17
  export declare const getWidthForBreakpointSize: (props: any, state: any, size: SizeName) => number;
18
18
  export declare const Columns: import("@builder.io/qwik").Component<PropsWithBuilderData<ColumnProps>>;
19
19
  export default Columns;
20
- export declare const STYLES = "\n.div-Columns {\n display: flex;\n line-height: normal;\n}\n.div-Columns-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
20
+ export declare const STYLES = "\n.div-Columns {\n display: flex;\n line-height: normal;\n}\n";