@builder.io/sdk-qwik 0.1.3 → 0.1.4-0

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.
@@ -281,9 +281,8 @@ const RenderInlinedStyles = (props) => {
281
281
  [qwik._IMMUTABLE]: {
282
282
  children: false
283
283
  }
284
- });
284
+ }, "zz_0");
285
285
  };
286
- const RenderInlinedStyles$1 = RenderInlinedStyles;
287
286
  const useBlock$1 = function useBlock2(props, state) {
288
287
  return getProcessedBlock({
289
288
  block: props.block,
@@ -322,15 +321,14 @@ const css = function css2(props, state) {
322
321
  };
323
322
  const BlockStyles = (props) => {
324
323
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
325
- children: css(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles$1, {
324
+ children: css(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
326
325
  styles: css(props)
327
- }) : null,
326
+ }, "LQ_0") : null,
328
327
  [qwik._IMMUTABLE]: {
329
328
  children: false
330
329
  }
331
- });
330
+ }, "LQ_1");
332
331
  };
333
- const BlockStyles$1 = BlockStyles;
334
332
  function capitalizeFirstLetter(string) {
335
333
  return string.charAt(0).toUpperCase() + string.slice(1);
336
334
  }
@@ -485,7 +483,7 @@ const RenderComponent = (props) => {
485
483
  }, "render-block-" + child.id);
486
484
  }),
487
485
  (props.blockChildren || []).map(function(child) {
488
- return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
486
+ return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles, {
489
487
  block: child,
490
488
  get context() {
491
489
  return props.context;
@@ -500,9 +498,8 @@ const RenderComponent = (props) => {
500
498
  [qwik._IMMUTABLE]: {
501
499
  children: false
502
500
  }
503
- });
501
+ }, "R9_0");
504
502
  };
505
- const RenderComponent$1 = RenderComponent;
506
503
  const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
507
504
  qwik.useContextProvider(BuilderContext, qwik.useStore({
508
505
  content: props.repeatContext.content,
@@ -523,9 +520,8 @@ const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((p
523
520
  block: qwik._wrapSignal(props, "block"),
524
521
  context: qwik._wrapSignal(props, "repeatContext")
525
522
  }
526
- });
523
+ }, "K5_0");
527
524
  }, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
528
- const RenderRepeatedBlock$1 = RenderRepeatedBlock;
529
525
  const component = function component2(props, state) {
530
526
  return getComponent({
531
527
  block: props.block,
@@ -608,7 +604,7 @@ const RenderBlock = (props) => {
608
604
  ...actions(props)
609
605
  }) : null,
610
606
  !isEmptyHtmlElement(tag(props)) && repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
611
- return /* @__PURE__ */ jsxRuntime.jsx(RenderRepeatedBlock$1, {
607
+ return /* @__PURE__ */ jsxRuntime.jsx(RenderRepeatedBlock, {
612
608
  get repeatContext() {
613
609
  return data.context;
614
610
  },
@@ -625,9 +621,9 @@ const RenderBlock = (props) => {
625
621
  ...attributes(props),
626
622
  ...actions(props),
627
623
  children: [
628
- /* @__PURE__ */ jsxRuntime.jsx(RenderComponent$1, {
624
+ /* @__PURE__ */ jsxRuntime.jsx(RenderComponent, {
629
625
  ...renderComponentProps(props)
630
- }),
626
+ }, "9d_0"),
631
627
  (childrenWithoutParentComponent(props) || []).map(function(child) {
632
628
  return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock, {
633
629
  block: child,
@@ -635,7 +631,7 @@ const RenderBlock = (props) => {
635
631
  }, "render-block-" + child.id);
636
632
  }),
637
633
  (childrenWithoutParentComponent(props) || []).map(function(child) {
638
- return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
634
+ return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles, {
639
635
  block: child,
640
636
  context: childrenContext(props)
641
637
  }, "block-style-" + child.id);
@@ -646,13 +642,13 @@ const RenderBlock = (props) => {
646
642
  [qwik._IMMUTABLE]: {
647
643
  children: false
648
644
  }
649
- }) : /* @__PURE__ */ jsxRuntime.jsx(RenderComponent$1, {
645
+ }, "9d_1") : /* @__PURE__ */ jsxRuntime.jsx(RenderComponent, {
650
646
  ...renderComponentProps(props)
651
- }),
647
+ }, "9d_2"),
652
648
  [qwik._IMMUTABLE]: {
653
649
  children: false
654
650
  }
655
- });
651
+ }, "9d_3");
656
652
  };
657
653
  const RenderBlock$1 = RenderBlock;
658
654
  const className$1 = function className2(props, state, builderContext) {
@@ -717,7 +713,7 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
717
713
  }, "render-block-" + block.id);
718
714
  }) : null,
719
715
  props.blocks ? (props.blocks || []).map(function(block) {
720
- return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles$1, {
716
+ return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles, {
721
717
  block,
722
718
  context: builderContext
723
719
  }, "block-style-" + block.id);
@@ -731,7 +727,6 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
731
727
  }
732
728
  });
733
729
  }, "RenderBlocks_component_MYUZ0j1uLsw"));
734
- const RenderBlocks$1 = RenderBlocks;
735
730
  const STYLES$3 = `
736
731
  .div-RenderBlocks {
737
732
  display: flex;
@@ -826,35 +821,29 @@ const columnsStyles = function columnsStyles2(props, state) {
826
821
  },
827
822
  `;
828
823
  };
829
- const reactNativeColumnsStyles = function reactNativeColumnsStyles2(props, state) {
830
- return columnStyleObjects().columns.small;
831
- };
832
- const reactNativeColumnStyles = function reactNativeColumnStyles2(props, state) {
833
- return columnStyleObjects().column.small;
834
- };
835
824
  const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
836
825
  qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
837
826
  const state = {};
838
827
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
839
828
  class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
840
829
  style: {
841
- ...TARGET === "reactNative" ? reactNativeColumnsStyles() : {},
830
+ ...{},
842
831
  ...columnsCssVars(props, state)
843
832
  },
844
833
  children: [
845
- TARGET !== "reactNative" ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles$1, {
834
+ /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
846
835
  styles: columnsStyles(props, state)
847
- }) : null,
836
+ }, "c0_0"),
848
837
  (props.columns || []).map(function(column, index) {
849
838
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
850
839
  class: "builder-column div-Columns-2",
851
840
  style: {
852
841
  width: getColumnCssWidth(props, state, index),
853
842
  marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
854
- ...TARGET === "reactNative" ? reactNativeColumnStyles() : {},
843
+ ...{},
855
844
  ...columnCssVars(props, state)
856
845
  },
857
- children: /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks$1, {
846
+ children: /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks, {
858
847
  get blocks() {
859
848
  return column.blocks;
860
849
  },
@@ -869,7 +858,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
869
858
  blocks: qwik._wrapSignal(column, "blocks"),
870
859
  parent: qwik._wrapSignal(props.builderBlock, "id")
871
860
  }
872
- })
861
+ }, "c0_1")
873
862
  }, index);
874
863
  })
875
864
  ],
@@ -878,7 +867,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
878
867
  }
879
868
  });
880
869
  }, "Columns_component_7yLj4bxdI6c"));
881
- const Columns$1 = Columns;
882
870
  const STYLES$2 = `
883
871
  .div-Columns {
884
872
  display: flex;
@@ -1019,18 +1007,17 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1019
1007
  paddingTop: props.aspectRatio * 100 + "%"
1020
1008
  }
1021
1009
  }) : null,
1022
- props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}) : null,
1010
+ props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "0A_0") : null,
1023
1011
  !props.fitContent && props.children ? /* @__PURE__ */ jsxRuntime.jsx("div", {
1024
1012
  class: "div-Image-2",
1025
- children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1013
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "0A_1")
1026
1014
  }) : null
1027
1015
  ],
1028
1016
  [qwik._IMMUTABLE]: {
1029
1017
  children: false
1030
1018
  }
1031
- });
1019
+ }, "0A_2");
1032
1020
  }, "Image_component_LRxDkFa1EfU"));
1033
- const Image$1 = Image;
1034
1021
  const STYLES$1 = `
1035
1022
  .img-Image {
1036
1023
  opacity: 1;
@@ -1060,7 +1047,6 @@ const Text = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1060
1047
  }
1061
1048
  });
1062
1049
  }, "Text_component_15p0cKUxgIE"));
1063
- const Text$1 = Text;
1064
1050
  const videoProps = function videoProps2(props, state) {
1065
1051
  return {
1066
1052
  ...props.autoPlay === true ? {
@@ -1106,7 +1092,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1106
1092
  }
1107
1093
  });
1108
1094
  }, "Video_component_qdcTZflYyoQ"));
1109
- const Video$1 = Video;
1110
1095
  const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1111
1096
  qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
1112
1097
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
@@ -1129,9 +1114,8 @@ const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1129
1114
  [qwik._IMMUTABLE]: {
1130
1115
  children: false
1131
1116
  }
1132
- });
1117
+ }, "jc_0");
1133
1118
  }, "Button_component_gJoMUICXoUQ"));
1134
- const Button$1 = Button;
1135
1119
  const STYLES = `
1136
1120
  .button-Button {
1137
1121
  all: unset;
@@ -1430,10 +1414,9 @@ const componentInfo$8 = {
1430
1414
  };
1431
1415
  const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1432
1416
  return /* @__PURE__ */ jsxRuntime.jsx("span", {
1433
- children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1417
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "oj_0")
1434
1418
  });
1435
1419
  }, "FragmentComponent_component_T0AypnadAK0"));
1436
- const Fragment = FragmentComponent;
1437
1420
  const componentInfo$7 = {
1438
1421
  name: "Image",
1439
1422
  static: true,
@@ -1644,10 +1627,9 @@ const SectionComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((prop
1644
1627
  marginLeft: "auto",
1645
1628
  marginRight: "auto"
1646
1629
  },
1647
- children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
1630
+ children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "2Y_0")
1648
1631
  });
1649
1632
  }, "SectionComponent_component_ZWF9iD5WeLg"));
1650
- const Section = SectionComponent;
1651
1633
  const componentInfo$5 = {
1652
1634
  name: "Symbol",
1653
1635
  noWrap: true,
@@ -1917,7 +1899,6 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1917
1899
  }
1918
1900
  });
1919
1901
  }, "Embed_component_Uji08ORjXbE"));
1920
- const embed = Embed;
1921
1902
  const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
1922
1903
  return /* @__PURE__ */ jsxRuntime.jsx("img", {
1923
1904
  style: {
@@ -1934,7 +1915,6 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
1934
1915
  }
1935
1916
  }, isEditing() && props.imgSrc || "default-key");
1936
1917
  }, "ImgComponent_component_FXvIDBSffO8"));
1937
- const Img = ImgComponent;
1938
1918
  const componentInfo$1 = {
1939
1919
  name: "Raw:Img",
1940
1920
  hideFromInsertMenu: true,
@@ -2012,7 +1992,6 @@ const CustomCode = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =>
2012
1992
  }
2013
1993
  });
2014
1994
  }, "CustomCode_component_uYOSy7w7Zqw"));
2015
- const customCode = CustomCode;
2016
1995
  const componentInfo = {
2017
1996
  name: "Custom Code",
2018
1997
  static: true,
@@ -2045,47 +2024,47 @@ const componentInfo = {
2045
2024
  };
2046
2025
  const getDefaultRegisteredComponents = () => [
2047
2026
  {
2048
- component: Columns$1,
2027
+ component: Columns,
2049
2028
  ...componentInfo$9
2050
2029
  },
2051
2030
  {
2052
- component: Image$1,
2031
+ component: Image,
2053
2032
  ...componentInfo$7
2054
2033
  },
2055
2034
  {
2056
- component: Img,
2035
+ component: ImgComponent,
2057
2036
  ...componentInfo$1
2058
2037
  },
2059
2038
  {
2060
- component: Text$1,
2039
+ component: Text,
2061
2040
  ...componentInfo$4
2062
2041
  },
2063
2042
  {
2064
- component: Video$1,
2043
+ component: Video,
2065
2044
  ...componentInfo$3
2066
2045
  },
2067
2046
  {
2068
- component: Symbol$2,
2047
+ component: Symbol$1,
2069
2048
  ...componentInfo$5
2070
2049
  },
2071
2050
  {
2072
- component: Button$1,
2051
+ component: Button,
2073
2052
  ...componentInfo$a
2074
2053
  },
2075
2054
  {
2076
- component: Section,
2055
+ component: SectionComponent,
2077
2056
  ...componentInfo$6
2078
2057
  },
2079
2058
  {
2080
- component: Fragment,
2059
+ component: FragmentComponent,
2081
2060
  ...componentInfo$8
2082
2061
  },
2083
2062
  {
2084
- component: embed,
2063
+ component: Embed,
2085
2064
  ...componentInfo$2
2086
2065
  },
2087
2066
  {
2088
- component: customCode,
2067
+ component: CustomCode,
2089
2068
  ...componentInfo
2090
2069
  }
2091
2070
  ];
@@ -2656,11 +2635,10 @@ ${getFontCss(props, state, {
2656
2635
  };
2657
2636
  const RenderContentStyles = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
2658
2637
  const state = {};
2659
- return /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles$1, {
2638
+ return /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
2660
2639
  styles: injectedStyles(props, state)
2661
- });
2640
+ }, "V0_0");
2662
2641
  }, "RenderContentStyles_component_Og0xL34Zbvc"));
2663
- const RenderContentStyles$1 = RenderContentStyles;
2664
2642
  const useContent = function useContent2(props, state, elementRef) {
2665
2643
  if (!props.content && !state.overrideContent)
2666
2644
  return void 0;
@@ -2923,11 +2901,11 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
2923
2901
  return props.model;
2924
2902
  },
2925
2903
  children: [
2926
- shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsxRuntime.jsx(RenderContentStyles$1, {
2904
+ shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsxRuntime.jsx(RenderContentStyles, {
2927
2905
  cssCode: useContent(props, state)?.data?.cssCode,
2928
2906
  customFonts: useContent(props, state)?.data?.customFonts
2929
- }) : null,
2930
- /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks$1, {
2907
+ }, "03_0") : null,
2908
+ /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks, {
2931
2909
  blocks: useContent(props, state)?.data?.blocks
2932
2910
  }, state.forceReRenderCount)
2933
2911
  ],
@@ -2939,9 +2917,8 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
2939
2917
  [qwik._IMMUTABLE]: {
2940
2918
  children: false
2941
2919
  }
2942
- });
2920
+ }, "03_1");
2943
2921
  }, "RenderContent_component_hEAI0ahViXM"));
2944
- const RenderContent$1 = RenderContent;
2945
2922
  const className = function className22(props, state, builderContext) {
2946
2923
  return [
2947
2924
  ...[
@@ -2983,7 +2960,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
2983
2960
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
2984
2961
  ...props.attributes,
2985
2962
  class: className(props),
2986
- children: /* @__PURE__ */ jsxRuntime.jsx(RenderContent$1, {
2963
+ children: /* @__PURE__ */ jsxRuntime.jsx(RenderContent, {
2987
2964
  get apiKey() {
2988
2965
  return builderContext.apiKey;
2989
2966
  },
@@ -3002,10 +2979,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
3002
2979
  apiKey: qwik._wrapSignal(builderContext, "apiKey"),
3003
2980
  context: qwik._wrapSignal(builderContext, "context")
3004
2981
  }
3005
- })
2982
+ }, "Wt_0")
3006
2983
  });
3007
2984
  }, "Symbol_component_WVvggdkUPdk"));
3008
- const Symbol$2 = Symbol$1;
3009
2985
  const settings = {};
3010
2986
  function setEditorSettings(newSettings) {
3011
2987
  if (isBrowser()) {
@@ -3017,16 +2993,16 @@ function setEditorSettings(newSettings) {
3017
2993
  parent.postMessage(message, "*");
3018
2994
  }
3019
2995
  }
3020
- exports.Button = Button$1;
3021
- exports.Columns = Columns$1;
3022
- exports.Fragment = Fragment;
3023
- exports.Image = Image$1;
3024
- exports.RenderBlocks = RenderBlocks$1;
3025
- exports.RenderContent = RenderContent$1;
3026
- exports.Section = Section;
3027
- exports.Symbol = Symbol$2;
3028
- exports.Text = Text$1;
3029
- exports.Video = Video$1;
2996
+ exports.Button = Button;
2997
+ exports.Columns = Columns;
2998
+ exports.Fragment = FragmentComponent;
2999
+ exports.Image = Image;
3000
+ exports.RenderBlocks = RenderBlocks;
3001
+ exports.RenderContent = RenderContent;
3002
+ exports.Section = SectionComponent;
3003
+ exports.Symbol = Symbol$1;
3004
+ exports.Text = Text;
3005
+ exports.Video = Video;
3030
3006
  exports.components = components;
3031
3007
  exports.convertSearchParamsToQueryObject = convertSearchParamsToQueryObject;
3032
3008
  exports.createRegisterComponentMessage = createRegisterComponentMessage;
@@ -1,5 +1,5 @@
1
- import { createContext, _wrapSignal, _IMMUTABLE, inlinedQrl, useLexicalScope, componentQrl, useContextProvider, useStore, useStylesScopedQrl, useContext, Fragment as Fragment$2, Slot, useRef, useWatchQrl, useClientEffectQrl, useCleanupQrl } from "@builder.io/qwik";
2
- import { jsx, Fragment as Fragment$1, jsxs } from "@builder.io/qwik/jsx-runtime";
1
+ import { createContext, _wrapSignal, _IMMUTABLE, inlinedQrl, useLexicalScope, componentQrl, useContextProvider, useStore, useStylesScopedQrl, useContext, Fragment as Fragment$1, Slot, useRef, useWatchQrl, useClientEffectQrl, useCleanupQrl } from "@builder.io/qwik";
2
+ import { jsx, Fragment, jsxs } from "@builder.io/qwik/jsx-runtime";
3
3
  const TARGET = "qwik";
4
4
  function isBrowser() {
5
5
  return typeof window !== "undefined" && typeof document !== "undefined";
@@ -272,16 +272,15 @@ const tag$1 = function tag2(props, state) {
272
272
  const RenderInlinedStyles = (props) => {
273
273
  const state = {};
274
274
  state.tag = tag$1();
275
- return /* @__PURE__ */ jsx(Fragment$1, {
275
+ return /* @__PURE__ */ jsx(Fragment, {
276
276
  children: /* @__PURE__ */ jsx(state.tag, {
277
277
  children: _wrapSignal(props, "styles")
278
278
  }),
279
279
  [_IMMUTABLE]: {
280
280
  children: false
281
281
  }
282
- });
282
+ }, "zz_0");
283
283
  };
284
- const RenderInlinedStyles$1 = RenderInlinedStyles;
285
284
  const useBlock$1 = function useBlock2(props, state) {
286
285
  return getProcessedBlock({
287
286
  block: props.block,
@@ -319,16 +318,15 @@ const css = function css2(props, state) {
319
318
  ].join(" ");
320
319
  };
321
320
  const BlockStyles = (props) => {
322
- return /* @__PURE__ */ jsx(Fragment$1, {
323
- children: css(props) ? /* @__PURE__ */ jsx(RenderInlinedStyles$1, {
321
+ return /* @__PURE__ */ jsx(Fragment, {
322
+ children: css(props) ? /* @__PURE__ */ jsx(RenderInlinedStyles, {
324
323
  styles: css(props)
325
- }) : null,
324
+ }, "LQ_0") : null,
326
325
  [_IMMUTABLE]: {
327
326
  children: false
328
327
  }
329
- });
328
+ }, "LQ_1");
330
329
  };
331
- const BlockStyles$1 = BlockStyles;
332
330
  function capitalizeFirstLetter(string) {
333
331
  return string.charAt(0).toUpperCase() + string.slice(1);
334
332
  }
@@ -467,7 +465,7 @@ const getRepeatItemData = ({ block, context }) => {
467
465
  return repeatArray;
468
466
  };
469
467
  const RenderComponent = (props) => {
470
- return /* @__PURE__ */ jsx(Fragment$1, {
468
+ return /* @__PURE__ */ jsx(Fragment, {
471
469
  children: props.componentRef ? /* @__PURE__ */ jsxs(props.componentRef, {
472
470
  ...props.componentOptions,
473
471
  children: [
@@ -483,7 +481,7 @@ const RenderComponent = (props) => {
483
481
  }, "render-block-" + child.id);
484
482
  }),
485
483
  (props.blockChildren || []).map(function(child) {
486
- return /* @__PURE__ */ jsx(BlockStyles$1, {
484
+ return /* @__PURE__ */ jsx(BlockStyles, {
487
485
  block: child,
488
486
  get context() {
489
487
  return props.context;
@@ -498,9 +496,8 @@ const RenderComponent = (props) => {
498
496
  [_IMMUTABLE]: {
499
497
  children: false
500
498
  }
501
- });
499
+ }, "R9_0");
502
500
  };
503
- const RenderComponent$1 = RenderComponent;
504
501
  const RenderRepeatedBlock = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
505
502
  useContextProvider(BuilderContext, useStore({
506
503
  content: props.repeatContext.content,
@@ -521,9 +518,8 @@ const RenderRepeatedBlock = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
521
518
  block: _wrapSignal(props, "block"),
522
519
  context: _wrapSignal(props, "repeatContext")
523
520
  }
524
- });
521
+ }, "K5_0");
525
522
  }, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
526
- const RenderRepeatedBlock$1 = RenderRepeatedBlock;
527
523
  const component = function component2(props, state) {
528
524
  return getComponent({
529
525
  block: props.block,
@@ -598,15 +594,15 @@ const childrenContext = function childrenContext2(props, state) {
598
594
  const RenderBlock = (props) => {
599
595
  const state = {};
600
596
  state.tag = tag(props);
601
- return /* @__PURE__ */ jsx(Fragment$1, {
602
- children: !component(props)?.noWrap ? /* @__PURE__ */ jsxs(Fragment$1, {
597
+ return /* @__PURE__ */ jsx(Fragment, {
598
+ children: !component(props)?.noWrap ? /* @__PURE__ */ jsxs(Fragment, {
603
599
  children: [
604
600
  isEmptyHtmlElement(tag(props)) ? /* @__PURE__ */ jsx(state.tag, {
605
601
  ...attributes(props),
606
602
  ...actions(props)
607
603
  }) : null,
608
604
  !isEmptyHtmlElement(tag(props)) && repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
609
- return /* @__PURE__ */ jsx(RenderRepeatedBlock$1, {
605
+ return /* @__PURE__ */ jsx(RenderRepeatedBlock, {
610
606
  get repeatContext() {
611
607
  return data.context;
612
608
  },
@@ -623,9 +619,9 @@ const RenderBlock = (props) => {
623
619
  ...attributes(props),
624
620
  ...actions(props),
625
621
  children: [
626
- /* @__PURE__ */ jsx(RenderComponent$1, {
622
+ /* @__PURE__ */ jsx(RenderComponent, {
627
623
  ...renderComponentProps(props)
628
- }),
624
+ }, "9d_0"),
629
625
  (childrenWithoutParentComponent(props) || []).map(function(child) {
630
626
  return /* @__PURE__ */ jsx(RenderBlock, {
631
627
  block: child,
@@ -633,7 +629,7 @@ const RenderBlock = (props) => {
633
629
  }, "render-block-" + child.id);
634
630
  }),
635
631
  (childrenWithoutParentComponent(props) || []).map(function(child) {
636
- return /* @__PURE__ */ jsx(BlockStyles$1, {
632
+ return /* @__PURE__ */ jsx(BlockStyles, {
637
633
  block: child,
638
634
  context: childrenContext(props)
639
635
  }, "block-style-" + child.id);
@@ -644,13 +640,13 @@ const RenderBlock = (props) => {
644
640
  [_IMMUTABLE]: {
645
641
  children: false
646
642
  }
647
- }) : /* @__PURE__ */ jsx(RenderComponent$1, {
643
+ }, "9d_1") : /* @__PURE__ */ jsx(RenderComponent, {
648
644
  ...renderComponentProps(props)
649
- }),
645
+ }, "9d_2"),
650
646
  [_IMMUTABLE]: {
651
647
  children: false
652
648
  }
653
- });
649
+ }, "9d_3");
654
650
  };
655
651
  const RenderBlock$1 = RenderBlock;
656
652
  const className$1 = function className2(props, state, builderContext) {
@@ -715,7 +711,7 @@ const RenderBlocks = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
715
711
  }, "render-block-" + block.id);
716
712
  }) : null,
717
713
  props.blocks ? (props.blocks || []).map(function(block) {
718
- return /* @__PURE__ */ jsx(BlockStyles$1, {
714
+ return /* @__PURE__ */ jsx(BlockStyles, {
719
715
  block,
720
716
  context: builderContext
721
717
  }, "block-style-" + block.id);
@@ -729,7 +725,6 @@ const RenderBlocks = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
729
725
  }
730
726
  });
731
727
  }, "RenderBlocks_component_MYUZ0j1uLsw"));
732
- const RenderBlocks$1 = RenderBlocks;
733
728
  const STYLES$3 = `
734
729
  .div-RenderBlocks {
735
730
  display: flex;
@@ -824,35 +819,29 @@ const columnsStyles = function columnsStyles2(props, state) {
824
819
  },
825
820
  `;
826
821
  };
827
- const reactNativeColumnsStyles = function reactNativeColumnsStyles2(props, state) {
828
- return columnStyleObjects().columns.small;
829
- };
830
- const reactNativeColumnStyles = function reactNativeColumnStyles2(props, state) {
831
- return columnStyleObjects().column.small;
832
- };
833
822
  const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
834
823
  useStylesScopedQrl(inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
835
824
  const state = {};
836
825
  return /* @__PURE__ */ jsxs("div", {
837
826
  class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
838
827
  style: {
839
- ...TARGET === "reactNative" ? reactNativeColumnsStyles() : {},
828
+ ...{},
840
829
  ...columnsCssVars(props, state)
841
830
  },
842
831
  children: [
843
- TARGET !== "reactNative" ? /* @__PURE__ */ jsx(RenderInlinedStyles$1, {
832
+ /* @__PURE__ */ jsx(RenderInlinedStyles, {
844
833
  styles: columnsStyles(props, state)
845
- }) : null,
834
+ }, "c0_0"),
846
835
  (props.columns || []).map(function(column, index) {
847
836
  return /* @__PURE__ */ jsx("div", {
848
837
  class: "builder-column div-Columns-2",
849
838
  style: {
850
839
  width: getColumnCssWidth(props, state, index),
851
840
  marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
852
- ...TARGET === "reactNative" ? reactNativeColumnStyles() : {},
841
+ ...{},
853
842
  ...columnCssVars(props, state)
854
843
  },
855
- children: /* @__PURE__ */ jsx(RenderBlocks$1, {
844
+ children: /* @__PURE__ */ jsx(RenderBlocks, {
856
845
  get blocks() {
857
846
  return column.blocks;
858
847
  },
@@ -867,7 +856,7 @@ const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
867
856
  blocks: _wrapSignal(column, "blocks"),
868
857
  parent: _wrapSignal(props.builderBlock, "id")
869
858
  }
870
- })
859
+ }, "c0_1")
871
860
  }, index);
872
861
  })
873
862
  ],
@@ -876,7 +865,6 @@ const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
876
865
  }
877
866
  });
878
867
  }, "Columns_component_7yLj4bxdI6c"));
879
- const Columns$1 = Columns;
880
868
  const STYLES$2 = `
881
869
  .div-Columns {
882
870
  display: flex;
@@ -973,7 +961,7 @@ const aspectRatioCss = function aspectRatioCss2(props, state) {
973
961
  };
974
962
  const Image = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
975
963
  useStylesScopedQrl(inlinedQrl(STYLES$1, "Image_component_useStylesScoped_fBMYiVf9fuU"));
976
- return /* @__PURE__ */ jsxs(Fragment$2, {
964
+ return /* @__PURE__ */ jsxs(Fragment$1, {
977
965
  children: [
978
966
  /* @__PURE__ */ jsxs("picture", {
979
967
  children: [
@@ -1017,18 +1005,17 @@ const Image = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1017
1005
  paddingTop: props.aspectRatio * 100 + "%"
1018
1006
  }
1019
1007
  }) : null,
1020
- props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsx(Slot, {}) : null,
1008
+ props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsx(Slot, {}, "0A_0") : null,
1021
1009
  !props.fitContent && props.children ? /* @__PURE__ */ jsx("div", {
1022
1010
  class: "div-Image-2",
1023
- children: /* @__PURE__ */ jsx(Slot, {})
1011
+ children: /* @__PURE__ */ jsx(Slot, {}, "0A_1")
1024
1012
  }) : null
1025
1013
  ],
1026
1014
  [_IMMUTABLE]: {
1027
1015
  children: false
1028
1016
  }
1029
- });
1017
+ }, "0A_2");
1030
1018
  }, "Image_component_LRxDkFa1EfU"));
1031
- const Image$1 = Image;
1032
1019
  const STYLES$1 = `
1033
1020
  .img-Image {
1034
1021
  opacity: 1;
@@ -1058,7 +1045,6 @@ const Text = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1058
1045
  }
1059
1046
  });
1060
1047
  }, "Text_component_15p0cKUxgIE"));
1061
- const Text$1 = Text;
1062
1048
  const videoProps = function videoProps2(props, state) {
1063
1049
  return {
1064
1050
  ...props.autoPlay === true ? {
@@ -1104,10 +1090,9 @@ const Video = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1104
1090
  }
1105
1091
  });
1106
1092
  }, "Video_component_qdcTZflYyoQ"));
1107
- const Video$1 = Video;
1108
1093
  const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1109
1094
  useStylesScopedQrl(inlinedQrl(STYLES, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
1110
- return /* @__PURE__ */ jsx(Fragment$1, {
1095
+ return /* @__PURE__ */ jsx(Fragment, {
1111
1096
  children: props.link ? /* @__PURE__ */ jsx("a", {
1112
1097
  role: "button",
1113
1098
  ...props.attributes,
@@ -1127,9 +1112,8 @@ const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1127
1112
  [_IMMUTABLE]: {
1128
1113
  children: false
1129
1114
  }
1130
- });
1115
+ }, "jc_0");
1131
1116
  }, "Button_component_gJoMUICXoUQ"));
1132
- const Button$1 = Button;
1133
1117
  const STYLES = `
1134
1118
  .button-Button {
1135
1119
  all: unset;
@@ -1428,10 +1412,9 @@ const componentInfo$8 = {
1428
1412
  };
1429
1413
  const FragmentComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1430
1414
  return /* @__PURE__ */ jsx("span", {
1431
- children: /* @__PURE__ */ jsx(Slot, {})
1415
+ children: /* @__PURE__ */ jsx(Slot, {}, "oj_0")
1432
1416
  });
1433
1417
  }, "FragmentComponent_component_T0AypnadAK0"));
1434
- const Fragment = FragmentComponent;
1435
1418
  const componentInfo$7 = {
1436
1419
  name: "Image",
1437
1420
  static: true,
@@ -1642,10 +1625,9 @@ const SectionComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1642
1625
  marginLeft: "auto",
1643
1626
  marginRight: "auto"
1644
1627
  },
1645
- children: /* @__PURE__ */ jsx(Slot, {})
1628
+ children: /* @__PURE__ */ jsx(Slot, {}, "2Y_0")
1646
1629
  });
1647
1630
  }, "SectionComponent_component_ZWF9iD5WeLg"));
1648
- const Section = SectionComponent;
1649
1631
  const componentInfo$5 = {
1650
1632
  name: "Symbol",
1651
1633
  noWrap: true,
@@ -1915,7 +1897,6 @@ const Embed = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1915
1897
  }
1916
1898
  });
1917
1899
  }, "Embed_component_Uji08ORjXbE"));
1918
- const embed = Embed;
1919
1900
  const ImgComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1920
1901
  return /* @__PURE__ */ jsx("img", {
1921
1902
  style: {
@@ -1932,7 +1913,6 @@ const ImgComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1932
1913
  }
1933
1914
  }, isEditing() && props.imgSrc || "default-key");
1934
1915
  }, "ImgComponent_component_FXvIDBSffO8"));
1935
- const Img = ImgComponent;
1936
1916
  const componentInfo$1 = {
1937
1917
  name: "Raw:Img",
1938
1918
  hideFromInsertMenu: true,
@@ -2010,7 +1990,6 @@ const CustomCode = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2010
1990
  }
2011
1991
  });
2012
1992
  }, "CustomCode_component_uYOSy7w7Zqw"));
2013
- const customCode = CustomCode;
2014
1993
  const componentInfo = {
2015
1994
  name: "Custom Code",
2016
1995
  static: true,
@@ -2043,47 +2022,47 @@ const componentInfo = {
2043
2022
  };
2044
2023
  const getDefaultRegisteredComponents = () => [
2045
2024
  {
2046
- component: Columns$1,
2025
+ component: Columns,
2047
2026
  ...componentInfo$9
2048
2027
  },
2049
2028
  {
2050
- component: Image$1,
2029
+ component: Image,
2051
2030
  ...componentInfo$7
2052
2031
  },
2053
2032
  {
2054
- component: Img,
2033
+ component: ImgComponent,
2055
2034
  ...componentInfo$1
2056
2035
  },
2057
2036
  {
2058
- component: Text$1,
2037
+ component: Text,
2059
2038
  ...componentInfo$4
2060
2039
  },
2061
2040
  {
2062
- component: Video$1,
2041
+ component: Video,
2063
2042
  ...componentInfo$3
2064
2043
  },
2065
2044
  {
2066
- component: Symbol$2,
2045
+ component: Symbol$1,
2067
2046
  ...componentInfo$5
2068
2047
  },
2069
2048
  {
2070
- component: Button$1,
2049
+ component: Button,
2071
2050
  ...componentInfo$a
2072
2051
  },
2073
2052
  {
2074
- component: Section,
2053
+ component: SectionComponent,
2075
2054
  ...componentInfo$6
2076
2055
  },
2077
2056
  {
2078
- component: Fragment,
2057
+ component: FragmentComponent,
2079
2058
  ...componentInfo$8
2080
2059
  },
2081
2060
  {
2082
- component: embed,
2061
+ component: Embed,
2083
2062
  ...componentInfo$2
2084
2063
  },
2085
2064
  {
2086
- component: customCode,
2065
+ component: CustomCode,
2087
2066
  ...componentInfo
2088
2067
  }
2089
2068
  ];
@@ -2654,11 +2633,10 @@ ${getFontCss(props, state, {
2654
2633
  };
2655
2634
  const RenderContentStyles = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2656
2635
  const state = {};
2657
- return /* @__PURE__ */ jsx(RenderInlinedStyles$1, {
2636
+ return /* @__PURE__ */ jsx(RenderInlinedStyles, {
2658
2637
  styles: injectedStyles(props, state)
2659
- });
2638
+ }, "V0_0");
2660
2639
  }, "RenderContentStyles_component_Og0xL34Zbvc"));
2661
- const RenderContentStyles$1 = RenderContentStyles;
2662
2640
  const useContent = function useContent2(props, state, elementRef) {
2663
2641
  if (!props.content && !state.overrideContent)
2664
2642
  return void 0;
@@ -2905,7 +2883,7 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2905
2883
  props,
2906
2884
  state
2907
2885
  ]));
2908
- return /* @__PURE__ */ jsx(Fragment$1, {
2886
+ return /* @__PURE__ */ jsx(Fragment, {
2909
2887
  children: useContent(props, state) ? /* @__PURE__ */ jsxs("div", {
2910
2888
  ref: elementRef,
2911
2889
  onClick$: inlinedQrl((event) => {
@@ -2921,11 +2899,11 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2921
2899
  return props.model;
2922
2900
  },
2923
2901
  children: [
2924
- shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsx(RenderContentStyles$1, {
2902
+ shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsx(RenderContentStyles, {
2925
2903
  cssCode: useContent(props, state)?.data?.cssCode,
2926
2904
  customFonts: useContent(props, state)?.data?.customFonts
2927
- }) : null,
2928
- /* @__PURE__ */ jsx(RenderBlocks$1, {
2905
+ }, "03_0") : null,
2906
+ /* @__PURE__ */ jsx(RenderBlocks, {
2929
2907
  blocks: useContent(props, state)?.data?.blocks
2930
2908
  }, state.forceReRenderCount)
2931
2909
  ],
@@ -2937,9 +2915,8 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2937
2915
  [_IMMUTABLE]: {
2938
2916
  children: false
2939
2917
  }
2940
- });
2918
+ }, "03_1");
2941
2919
  }, "RenderContent_component_hEAI0ahViXM"));
2942
- const RenderContent$1 = RenderContent;
2943
2920
  const className = function className22(props, state, builderContext) {
2944
2921
  return [
2945
2922
  ...[
@@ -2981,7 +2958,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2981
2958
  return /* @__PURE__ */ jsx("div", {
2982
2959
  ...props.attributes,
2983
2960
  class: className(props),
2984
- children: /* @__PURE__ */ jsx(RenderContent$1, {
2961
+ children: /* @__PURE__ */ jsx(RenderContent, {
2985
2962
  get apiKey() {
2986
2963
  return builderContext.apiKey;
2987
2964
  },
@@ -3000,10 +2977,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
3000
2977
  apiKey: _wrapSignal(builderContext, "apiKey"),
3001
2978
  context: _wrapSignal(builderContext, "context")
3002
2979
  }
3003
- })
2980
+ }, "Wt_0")
3004
2981
  });
3005
2982
  }, "Symbol_component_WVvggdkUPdk"));
3006
- const Symbol$2 = Symbol$1;
3007
2983
  const settings = {};
3008
2984
  function setEditorSettings(newSettings) {
3009
2985
  if (isBrowser()) {
@@ -3016,16 +2992,16 @@ function setEditorSettings(newSettings) {
3016
2992
  }
3017
2993
  }
3018
2994
  export {
3019
- Button$1 as Button,
3020
- Columns$1 as Columns,
3021
- Fragment,
3022
- Image$1 as Image,
3023
- RenderBlocks$1 as RenderBlocks,
3024
- RenderContent$1 as RenderContent,
3025
- Section,
3026
- Symbol$2 as Symbol,
3027
- Text$1 as Text,
3028
- Video$1 as Video,
2995
+ Button,
2996
+ Columns,
2997
+ FragmentComponent as Fragment,
2998
+ Image,
2999
+ RenderBlocks,
3000
+ RenderContent,
3001
+ SectionComponent as Section,
3002
+ Symbol$1 as Symbol,
3003
+ Text,
3004
+ Video,
3029
3005
  components,
3030
3006
  convertSearchParamsToQueryObject,
3031
3007
  createRegisterComponentMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-0",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -28,7 +28,7 @@
28
28
  "release:dev": "yarn run build && npm version prerelease && npm publish --tag dev"
29
29
  },
30
30
  "devDependencies": {
31
- "@builder.io/qwik": ">=0.13.3",
31
+ "@builder.io/qwik": "^0.16.2",
32
32
  "@types/node": "latest",
33
33
  "typescript": "^4",
34
34
  "vite": "^3.0.4"
@@ -1 +1 @@
1
- export { default } from './render-content.jsx';
1
+ export { default } from './render-content';
@@ -1,10 +1,10 @@
1
- export { default as Columns } from '../blocks/columns/columns.jsx';
2
- export { default as Image } from '../blocks/image/image.jsx';
3
- export { default as Text } from '../blocks/text/text.jsx';
4
- export { default as Video } from '../blocks/video/video.jsx';
5
- export { default as Symbol } from '../blocks/symbol/symbol.jsx';
6
- export { default as Button } from '../blocks/button/button.jsx';
7
- export { default as Section } from '../blocks/section/section.jsx';
8
- export { default as Fragment } from '../blocks/fragment/fragment.jsx';
9
- export { default as RenderContent } from '../components/render-content/render-content.jsx';
10
- export { default as RenderBlocks } from '../components/render-blocks.jsx';
1
+ export { default as Columns } from '../blocks/columns/columns';
2
+ export { default as Image } from '../blocks/image/image';
3
+ export { default as Text } from '../blocks/text/text';
4
+ export { default as Video } from '../blocks/video/video';
5
+ export { default as Symbol } from '../blocks/symbol/symbol';
6
+ export { default as Button } from '../blocks/button/button';
7
+ export { default as Section } from '../blocks/section/section';
8
+ export { default as Fragment } from '../blocks/fragment/fragment';
9
+ export { default as RenderContent } from '../components/render-content/render-content';
10
+ export { default as RenderBlocks } from '../components/render-blocks';