@builder.io/sdk-qwik 0.12.3 → 0.12.5

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 +273 -125
  2. package/lib/browser/index.qwik.mjs +275 -127
  3. package/lib/edge/index.qwik.cjs +306 -158
  4. package/lib/edge/index.qwik.mjs +308 -160
  5. package/lib/node/index.qwik.cjs +308 -160
  6. package/lib/node/index.qwik.mjs +309 -161
  7. package/package.json +1 -1
  8. package/types/src/blocks/button/button.types.d.ts +2 -1
  9. package/types/src/blocks/columns/columns.d.ts +1 -1
  10. package/types/src/blocks/columns/columns.types.d.ts +3 -3
  11. package/types/src/blocks/symbol/symbol.types.d.ts +2 -2
  12. package/types/src/components/block/block.d.ts +1 -0
  13. package/types/src/components/block/components/block-wrapper.d.ts +1 -0
  14. package/types/src/components/block/components/component-ref/component-ref.helpers.d.ts +2 -2
  15. package/types/src/components/block/components/repeated-block.d.ts +3 -5
  16. package/types/src/components/blocks/blocks.types.d.ts +1 -0
  17. package/types/src/components/content-variants/content-variants.types.d.ts +6 -2
  18. package/types/src/constants/sdk-version.d.ts +1 -1
  19. package/types/src/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
  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,36 +3,84 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const qwik = require("@builder.io/qwik");
4
4
  const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
5
5
  const build = require("@builder.io/qwik/build");
6
- const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.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__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
27
+ qwik._jsxBranch();
7
28
  return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
8
- children: props.link ? /* @__PURE__ */ qwik._jsxS("a", {
29
+ children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
9
30
  ...props.attributes,
10
- children: qwik._fnSignal((p0) => p0.text, [
11
- props
12
- ], "p0.text")
13
- }, {
14
- href: qwik._fnSignal((p0) => p0.link, [
15
- props
16
- ], "p0.link"),
17
- role: "button",
18
- target: qwik._fnSignal((p0) => p0.openLinkInNewTab ? "_blank" : void 0, [
19
- props
20
- ], 'p0.openLinkInNewTab?"_blank":undefined')
21
- }, 0, "jc_0") : /* @__PURE__ */ qwik._jsxS("button", {
31
+ ...props.actionAttributes,
32
+ children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
33
+ }, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
22
34
  ...props.attributes,
23
- children: qwik._fnSignal((p0) => p0.text, [
24
- props
25
- ], "p0.text")
26
- }, {
27
- class: qwik._fnSignal((p0) => `builder-button ${p0.attributes.class}`, [
28
- props
29
- ], "`builder-button ${p0.attributes.class}`"),
30
- role: "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
85
  const builderContext = qwik.createContextId("Builder");
38
86
  const ComponentsContext = qwik.createContextId("Components");
@@ -57,7 +105,6 @@ const logger = {
57
105
  function isBrowser() {
58
106
  return typeof window !== "undefined" && typeof document !== "undefined";
59
107
  }
60
- const TARGET = "qwik";
61
108
  function isIframe() {
62
109
  return isBrowser() && window.self !== window.top;
63
110
  }
@@ -157,7 +204,28 @@ function flattenState(rootState, localState, rootSetState) {
157
204
  }
158
205
  });
159
206
  }
160
- const chooseBrowserOrServerEval = (args) => !build.isServer ? runInBrowser(args) : runInBrowser(args);
207
+ const checkIsDefined = (maybeT) => maybeT !== null && maybeT !== void 0;
208
+ function isNodeRuntime() {
209
+ var _a;
210
+ return typeof process !== "undefined" && checkIsDefined((_a = process == null ? void 0 : process.versions) == null ? void 0 : _a.node);
211
+ }
212
+ const shouldForceBrowserRuntimeInNode = () => {
213
+ var _a;
214
+ if (!isNodeRuntime())
215
+ return false;
216
+ const isArm64 = process.arch === "arm64";
217
+ const isNode20 = process.version.startsWith("v20");
218
+ const hasNoNodeSnapshotNodeOption = (_a = process.env.NODE_OPTIONS) == null ? void 0 : _a.includes("--no-node-snapshot");
219
+ if (isArm64 && isNode20 && !hasNoNodeSnapshotNodeOption) {
220
+ logger.log(`Skipping usage of \`isolated-vm\` to avoid crashes in Node v20 on an arm64 machine.
221
+ If you would like to use the \`isolated-vm\` package on this machine, please provide the \`NODE_OPTIONS=--no-node-snapshot\` config to your Node process.
222
+ See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.
223
+ `);
224
+ return true;
225
+ }
226
+ return false;
227
+ };
228
+ const chooseBrowserOrServerEval = (args) => build.isBrowser || shouldForceBrowserRuntimeInNode() ? runInBrowser(args) : runInBrowser(args);
161
229
  function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression = true }) {
162
230
  if (code === "") {
163
231
  logger.warn("Skipping evaluation of empty code block.");
@@ -328,7 +396,6 @@ const getSizesForBreakpoints = ({ small, medium }) => {
328
396
  return newSizes;
329
397
  };
330
398
  const camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
331
- const checkIsDefined = (maybeT) => maybeT !== null && maybeT !== void 0;
332
399
  const convertStyleMapToCSSArray = (style) => {
333
400
  const cssProps = Object.entries(style).map(([key, value]) => {
334
401
  if (typeof value === "string")
@@ -476,6 +543,29 @@ function getBlockActions(options) {
476
543
  }
477
544
  return obj;
478
545
  }
546
+ function transformStyleProperty({ style }) {
547
+ return style;
548
+ }
549
+ const getStyle = ({ block, context }) => {
550
+ return mapStyleObjToStrIfNeeded(transformStyleProperty({
551
+ style: block.style || {},
552
+ context,
553
+ block
554
+ }));
555
+ };
556
+ function mapStyleObjToStrIfNeeded(style) {
557
+ switch (TARGET) {
558
+ case "svelte":
559
+ case "vue":
560
+ case "solid":
561
+ return convertStyleMapToCSSArray(style).join(" ");
562
+ case "qwik":
563
+ case "reactNative":
564
+ case "react":
565
+ case "rsc":
566
+ return style;
567
+ }
568
+ }
479
569
  function transformBlockProperties({ properties }) {
480
570
  return properties;
481
571
  }
@@ -490,8 +580,11 @@ function getBlockProperties({ block, context }) {
490
580
  ...extractRelevantRootBlockProperties(block),
491
581
  ...block.properties,
492
582
  "builder-id": block.id,
493
- style: block.style ? getStyleAttribute(block.style) : void 0,
494
- class: [
583
+ style: getStyle({
584
+ block,
585
+ context
586
+ }),
587
+ [getClassPropName()]: [
495
588
  block.id,
496
589
  "builder-block",
497
590
  block.class,
@@ -504,56 +597,6 @@ function getBlockProperties({ block, context }) {
504
597
  block
505
598
  });
506
599
  }
507
- function getStyleAttribute(style) {
508
- switch (TARGET) {
509
- case "svelte":
510
- case "vue":
511
- case "solid":
512
- return convertStyleMapToCSSArray(style).join(" ");
513
- case "qwik":
514
- case "reactNative":
515
- case "react":
516
- case "rsc":
517
- return style;
518
- }
519
- }
520
- const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
521
- "area",
522
- "base",
523
- "br",
524
- "col",
525
- "embed",
526
- "hr",
527
- "img",
528
- "input",
529
- "keygen",
530
- "link",
531
- "meta",
532
- "param",
533
- "source",
534
- "track",
535
- "wbr"
536
- ]);
537
- const isEmptyElement = (tagName) => {
538
- return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
539
- };
540
- const DynamicRenderer = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
541
- qwik._jsxBranch();
542
- return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
543
- children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ qwik._jsxC(props.TagName, {
544
- ...props.attributes,
545
- ...props.actionAttributes,
546
- children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_0")
547
- }, 0, "yW_1") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
548
- ...props.attributes,
549
- ...props.actionAttributes,
550
- children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "yW_2")
551
- }, 0, "yW_3") : /* @__PURE__ */ qwik._jsxC(props.TagName, {
552
- ...props.attributes,
553
- ...props.actionAttributes
554
- }, 0, "yW_4")
555
- }, 1, "yW_5");
556
- }, "DynamicRenderer_component_1Co0xkmyAfQ"));
557
600
  const BlockWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
558
601
  return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
559
602
  get TagName() {
@@ -632,6 +675,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
632
675
  builderBlock: props.builderBlock,
633
676
  context: props.context,
634
677
  componentRef: props.componentRef,
678
+ linkComponent: props.linkComponent,
635
679
  includeBlockProps: props.includeBlockProps,
636
680
  isInteractive: props.isInteractive,
637
681
  contextValue: props.context
@@ -645,10 +689,16 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
645
689
  get registeredComponents() {
646
690
  return props.registeredComponents;
647
691
  },
692
+ get linkComponent() {
693
+ return props.linkComponent;
694
+ },
648
695
  [qwik._IMMUTABLE]: {
649
696
  context: qwik._fnSignal((p0) => p0.context, [
650
697
  props
651
698
  ], "p0.context"),
699
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
700
+ props
701
+ ], "p0.linkComponent"),
652
702
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
653
703
  props
654
704
  ], "p0.registeredComponents")
@@ -673,6 +723,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
673
723
  get registeredComponents() {
674
724
  return props.registeredComponents;
675
725
  },
726
+ get linkComponent() {
727
+ return props.linkComponent;
728
+ },
676
729
  [qwik._IMMUTABLE]: {
677
730
  block: qwik._fnSignal((p0) => p0.block, [
678
731
  props
@@ -680,6 +733,9 @@ const RepeatedBlock = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
680
733
  context: qwik._fnSignal((p0) => p0.store, [
681
734
  state
682
735
  ], "p0.store"),
736
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
737
+ props
738
+ ], "p0.linkComponent"),
683
739
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
684
740
  props
685
741
  ], "p0.registeredComponents")
@@ -726,9 +782,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
726
782
  props
727
783
  ]));
728
784
  const Tag = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
729
- const [props2] = qwik.useLexicalScope();
785
+ var _a2;
786
+ const [processedBlock2, props2] = qwik.useLexicalScope();
787
+ const shouldUseLink = props2.block.tagName === "a" || ((_a2 = processedBlock2.value.properties) == null ? void 0 : _a2.href) || processedBlock2.value.href;
788
+ if (shouldUseLink)
789
+ return props2.linkComponent || "a";
730
790
  return props2.block.tagName || "div";
731
791
  }, "Block_component_Tag_useComputed_eQnDgbcBW2A", [
792
+ processedBlock,
732
793
  props
733
794
  ]));
734
795
  const canShowBlock = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
@@ -758,7 +819,7 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
758
819
  repeatItem
759
820
  ]));
760
821
  const componentRefProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
761
- var _a2, _b, _c, _d, _e;
822
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
762
823
  const [blockComponent2, processedBlock2, props2, state2] = qwik.useLexicalScope();
763
824
  return {
764
825
  blockChildren: processedBlock2.value.children ?? [],
@@ -766,15 +827,19 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
766
827
  componentOptions: {
767
828
  ...getBlockComponentOptions(processedBlock2.value),
768
829
  builderContext: props2.context,
769
- ...((_b = blockComponent2.value) == null ? void 0 : _b.name) === "Symbol" || ((_c = blockComponent2.value) == null ? void 0 : _c.name) === "Columns" ? {
830
+ ...((_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" ? {
831
+ builderLinkComponent: props2.linkComponent
832
+ } : {},
833
+ ...((_e = blockComponent2.value) == null ? void 0 : _e.name) === "Symbol" || ((_f = blockComponent2.value) == null ? void 0 : _f.name) === "Columns" ? {
770
834
  builderComponents: props2.registeredComponents
771
835
  } : {}
772
836
  },
773
837
  context: state2.childrenContext,
838
+ linkComponent: props2.linkComponent,
774
839
  registeredComponents: props2.registeredComponents,
775
840
  builderBlock: processedBlock2.value,
776
- includeBlockProps: ((_d = blockComponent2.value) == null ? void 0 : _d.noWrap) === true,
777
- isInteractive: !((_e = blockComponent2.value) == null ? void 0 : _e.isRSC)
841
+ includeBlockProps: ((_g = blockComponent2.value) == null ? void 0 : _g.noWrap) === true,
842
+ isInteractive: !((_h = blockComponent2.value) == null ? void 0 : _h.isRSC)
778
843
  };
779
844
  }, "Block_component_componentRefProps_useComputed_Ikbl8VO04ho", [
780
845
  blockComponent,
@@ -811,6 +876,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
811
876
  get context() {
812
877
  return props.context;
813
878
  },
879
+ get linkComponent() {
880
+ return props.linkComponent;
881
+ },
814
882
  children: [
815
883
  /* @__PURE__ */ qwik._jsxC(ComponentRef, {
816
884
  get componentRef() {
@@ -828,6 +896,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
828
896
  get registeredComponents() {
829
897
  return componentRefProps.value.registeredComponents;
830
898
  },
899
+ get linkComponent() {
900
+ return componentRefProps.value.linkComponent;
901
+ },
831
902
  get builderBlock() {
832
903
  return componentRefProps.value.builderBlock;
833
904
  },
@@ -859,6 +930,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
859
930
  isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
860
931
  componentRefProps
861
932
  ], "p0.value.isInteractive"),
933
+ linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
934
+ componentRefProps
935
+ ], "p0.value.linkComponent"),
862
936
  registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
863
937
  componentRefProps
864
938
  ], "p0.value.registeredComponents")
@@ -873,10 +947,16 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
873
947
  get registeredComponents() {
874
948
  return props.registeredComponents;
875
949
  },
950
+ get linkComponent() {
951
+ return props.linkComponent;
952
+ },
876
953
  [qwik._IMMUTABLE]: {
877
954
  context: qwik._fnSignal((p0) => p0.childrenContext, [
878
955
  state
879
956
  ], "p0.childrenContext"),
957
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
958
+ props
959
+ ], "p0.linkComponent"),
880
960
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
881
961
  props
882
962
  ], "p0.registeredComponents")
@@ -893,7 +973,10 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
893
973
  ], "p0.value"),
894
974
  context: qwik._fnSignal((p0) => p0.context, [
895
975
  props
896
- ], "p0.context")
976
+ ], "p0.context"),
977
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
978
+ props
979
+ ], "p0.linkComponent")
897
980
  }
898
981
  }, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
899
982
  return /* @__PURE__ */ qwik._jsxC(RepeatedBlock, {
@@ -906,8 +989,14 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
906
989
  get registeredComponents() {
907
990
  return props.registeredComponents;
908
991
  },
992
+ get linkComponent() {
993
+ return props.linkComponent;
994
+ },
909
995
  [qwik._IMMUTABLE]: {
910
996
  block: qwik._wrapProp(data, "block"),
997
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
998
+ props
999
+ ], "p0.linkComponent"),
911
1000
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
912
1001
  props
913
1002
  ], "p0.registeredComponents"),
@@ -930,6 +1019,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
930
1019
  get registeredComponents() {
931
1020
  return componentRefProps.value.registeredComponents;
932
1021
  },
1022
+ get linkComponent() {
1023
+ return componentRefProps.value.linkComponent;
1024
+ },
933
1025
  get builderBlock() {
934
1026
  return componentRefProps.value.builderBlock;
935
1027
  },
@@ -961,6 +1053,9 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
961
1053
  isInteractive: qwik._fnSignal((p0) => p0.value.isInteractive, [
962
1054
  componentRefProps
963
1055
  ], "p0.value.isInteractive"),
1056
+ linkComponent: qwik._fnSignal((p0) => p0.value.linkComponent, [
1057
+ componentRefProps
1058
+ ], "p0.value.linkComponent"),
964
1059
  registeredComponents: qwik._fnSignal((p0) => p0.value.registeredComponents, [
965
1060
  componentRefProps
966
1061
  ], "p0.value.registeredComponents")
@@ -1088,6 +1183,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
1088
1183
  children: props.blocks ? (props.blocks || []).map((block) => {
1089
1184
  return /* @__PURE__ */ qwik._jsxC(Block, {
1090
1185
  block,
1186
+ get linkComponent() {
1187
+ return props.linkComponent;
1188
+ },
1091
1189
  get context() {
1092
1190
  return props.context || builderContext$1;
1093
1191
  },
@@ -1099,6 +1197,9 @@ const Blocks = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
1099
1197
  builderContext$1,
1100
1198
  props
1101
1199
  ], "p1.context||p0"),
1200
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
1201
+ props
1202
+ ], "p0.linkComponent"),
1102
1203
  registeredComponents: qwik._fnSignal((p0, p1) => p1.registeredComponents || p0.registeredComponents, [
1103
1204
  componentsContext,
1104
1205
  props
@@ -1158,7 +1259,13 @@ const columnCssVars = function columnCssVars2(props, state, index) {
1158
1259
  const mobileWidth = "100%";
1159
1260
  const mobileMarginLeft = 0;
1160
1261
  const marginLeftKey = "margin-left";
1262
+ const sharedStyles = {
1263
+ display: "flex",
1264
+ flexDirection: "column",
1265
+ alignItems: "stretch"
1266
+ };
1161
1267
  return {
1268
+ ...sharedStyles,
1162
1269
  width,
1163
1270
  [marginLeftKey]: gutterPixels,
1164
1271
  "--column-width-mobile": getMobileStyle(props, state, {
@@ -1256,40 +1363,56 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
1256
1363
  }
1257
1364
  }, 3, "c0_0"),
1258
1365
  (props.columns || []).map((column, index) => {
1259
- return /* @__PURE__ */ qwik.createElement("div", {
1260
- class: "builder-column div-Columns-2",
1261
- style: columnCssVars(props, state, index),
1262
- key: index
1263
- }, /* @__PURE__ */ qwik._jsxC(Blocks, {
1264
- path: `component.options.columns.${index}.blocks`,
1265
- get parent() {
1266
- return props.builderBlock.id;
1366
+ return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
1367
+ TagName: column.link ? props.builderLinkComponent || "a" : "div",
1368
+ actionAttributes: {},
1369
+ attributes: {
1370
+ ...column.link ? {
1371
+ href: column.link
1372
+ } : {},
1373
+ [getClassPropName()]: "builder-column",
1374
+ style: mapStyleObjToStrIfNeeded(columnCssVars(props, state, index))
1267
1375
  },
1268
- get styleProp() {
1269
- return {
1270
- flexGrow: "1"
1271
- };
1272
- },
1273
- get context() {
1274
- return props.builderContext;
1275
- },
1276
- get registeredComponents() {
1277
- return props.builderComponents;
1278
- },
1279
- blocks: deoptSignal(column.blocks),
1376
+ children: /* @__PURE__ */ qwik._jsxC(Blocks, {
1377
+ path: `component.options.columns.${index}.blocks`,
1378
+ get parent() {
1379
+ return props.builderBlock.id;
1380
+ },
1381
+ get styleProp() {
1382
+ return {
1383
+ flexGrow: "1"
1384
+ };
1385
+ },
1386
+ get context() {
1387
+ return props.builderContext;
1388
+ },
1389
+ get registeredComponents() {
1390
+ return props.builderComponents;
1391
+ },
1392
+ get linkComponent() {
1393
+ return props.builderLinkComponent;
1394
+ },
1395
+ blocks: deoptSignal(column.blocks),
1396
+ [qwik._IMMUTABLE]: {
1397
+ context: qwik._fnSignal((p0) => p0.builderContext, [
1398
+ props
1399
+ ], "p0.builderContext"),
1400
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
1401
+ props
1402
+ ], "p0.builderLinkComponent"),
1403
+ parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
1404
+ props
1405
+ ], "p0.builderBlock.id"),
1406
+ registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
1407
+ props
1408
+ ], "p0.builderComponents"),
1409
+ styleProp: qwik._IMMUTABLE
1410
+ }
1411
+ }, 3, "c0_1"),
1280
1412
  [qwik._IMMUTABLE]: {
1281
- context: qwik._fnSignal((p0) => p0.builderContext, [
1282
- props
1283
- ], "p0.builderContext"),
1284
- parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
1285
- props
1286
- ], "p0.builderBlock.id"),
1287
- registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
1288
- props
1289
- ], "p0.builderComponents"),
1290
- styleProp: qwik._IMMUTABLE
1413
+ actionAttributes: qwik._IMMUTABLE
1291
1414
  }
1292
- }, 3, "c0_1"));
1415
+ }, 1, index);
1293
1416
  })
1294
1417
  ], 1, "c0_2");
1295
1418
  }, "Columns_component_7yLj4bxdI6c"));
@@ -1298,11 +1421,6 @@ const STYLES$1 = `
1298
1421
  display: flex;
1299
1422
  line-height: normal;
1300
1423
  }
1301
- .div-Columns-2 {
1302
- display: flex;
1303
- flex-direction: column;
1304
- align-items: stretch;
1305
- }
1306
1424
  `;
1307
1425
  const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
1308
1426
  return /* @__PURE__ */ qwik._jsxQ("span", null, null, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "oj_0"), 1, "oj_1");
@@ -3225,7 +3343,7 @@ const getInteractionPropertiesForEvent = (event) => {
3225
3343
  }
3226
3344
  };
3227
3345
  };
3228
- const SDK_VERSION = "0.12.3";
3346
+ const SDK_VERSION = "0.12.5";
3229
3347
  const registry = {};
3230
3348
  function register(type, info) {
3231
3349
  let typeList = registry[type];
@@ -3912,6 +4030,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
3912
4030
  get contentWrapperProps() {
3913
4031
  return props.contentWrapperProps;
3914
4032
  },
4033
+ get linkComponent() {
4034
+ return props.linkComponent;
4035
+ },
3915
4036
  get trustedHosts() {
3916
4037
  return props.trustedHosts;
3917
4038
  },
@@ -3971,6 +4092,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
3971
4092
  get registeredComponents() {
3972
4093
  return state.registeredComponents;
3973
4094
  },
4095
+ get linkComponent() {
4096
+ return props.linkComponent;
4097
+ },
3974
4098
  [qwik._IMMUTABLE]: {
3975
4099
  blocks: qwik._fnSignal((p0) => {
3976
4100
  var _a2, _b2;
@@ -3981,6 +4105,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
3981
4105
  context: qwik._fnSignal((p0) => p0.builderContextSignal, [
3982
4106
  state
3983
4107
  ], "p0.builderContextSignal"),
4108
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4109
+ props
4110
+ ], "p0.linkComponent"),
3984
4111
  registeredComponents: qwik._fnSignal((p0) => p0.registeredComponents, [
3985
4112
  state
3986
4113
  ], "p0.registeredComponents")
@@ -4018,6 +4145,9 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
4018
4145
  includeRefs: qwik._fnSignal((p0) => p0.includeRefs, [
4019
4146
  props
4020
4147
  ], "p0.includeRefs"),
4148
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4149
+ props
4150
+ ], "p0.linkComponent"),
4021
4151
  locale: qwik._fnSignal((p0) => p0.locale, [
4022
4152
  props
4023
4153
  ], "p0.locale"),
@@ -4135,6 +4265,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4135
4265
  get customComponents() {
4136
4266
  return props.customComponents;
4137
4267
  },
4268
+ get linkComponent() {
4269
+ return props.linkComponent;
4270
+ },
4138
4271
  get canTrack() {
4139
4272
  return props.canTrack;
4140
4273
  },
@@ -4205,6 +4338,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4205
4338
  isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
4206
4339
  state
4207
4340
  ], "p0.shouldRenderVariants"),
4341
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4342
+ props
4343
+ ], "p0.linkComponent"),
4208
4344
  locale: qwik._fnSignal((p0) => p0.locale, [
4209
4345
  props
4210
4346
  ], "p0.locale"),
@@ -4243,6 +4379,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4243
4379
  get customComponents() {
4244
4380
  return props.customComponents;
4245
4381
  },
4382
+ get linkComponent() {
4383
+ return props.linkComponent;
4384
+ },
4246
4385
  get canTrack() {
4247
4386
  return props.canTrack;
4248
4387
  },
@@ -4316,6 +4455,9 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
4316
4455
  isSsrAbTest: qwik._fnSignal((p0) => p0.shouldRenderVariants, [
4317
4456
  state
4318
4457
  ], "p0.shouldRenderVariants"),
4458
+ linkComponent: qwik._fnSignal((p0) => p0.linkComponent, [
4459
+ props
4460
+ ], "p0.linkComponent"),
4319
4461
  locale: qwik._fnSignal((p0) => p0.locale, [
4320
4462
  props
4321
4463
  ], "p0.locale"),
@@ -4366,7 +4508,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4366
4508
  var _a2, _b;
4367
4509
  const [props2] = qwik.useLexicalScope();
4368
4510
  return [
4369
- props2.attributes.class,
4511
+ props2.attributes[getClassPropName()],
4370
4512
  "builder-symbol",
4371
4513
  ((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
4372
4514
  ((_b = props2.symbol) == null ? void 0 : _b.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4419,6 +4561,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4419
4561
  get content() {
4420
4562
  return state.contentToUse;
4421
4563
  },
4564
+ get linkComponent() {
4565
+ return props.builderLinkComponent;
4566
+ },
4422
4567
  [qwik._IMMUTABLE]: {
4423
4568
  apiKey: qwik._fnSignal((p0) => p0.builderContext.apiKey, [
4424
4569
  props
@@ -4452,6 +4597,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
4452
4597
  props,
4453
4598
  state
4454
4599
  ], "{...p0.symbol?.data,...p0.builderContext.localState,...p1.contentToUse?.data?.state}"),
4600
+ linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
4601
+ props
4602
+ ], "p0.builderLinkComponent"),
4455
4603
  model: qwik._fnSignal((p0) => {
4456
4604
  var _a2;
4457
4605
  return (_a2 = p0.symbol) == null ? void 0 : _a2.model;