@builder.io/sdk-qwik 0.1.3 → 0.1.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.
package/lib/index.qwik.cjs
CHANGED
|
@@ -275,15 +275,19 @@ const RenderInlinedStyles = (props) => {
|
|
|
275
275
|
const state = {};
|
|
276
276
|
state.tag = tag$1();
|
|
277
277
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
278
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
279
|
-
|
|
278
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("style", {
|
|
279
|
+
get dangerouslySetInnerHTML() {
|
|
280
|
+
return props.styles;
|
|
281
|
+
},
|
|
282
|
+
[qwik._IMMUTABLE]: {
|
|
283
|
+
dangerouslySetInnerHTML: qwik._wrapSignal(props, "styles")
|
|
284
|
+
}
|
|
280
285
|
}),
|
|
281
286
|
[qwik._IMMUTABLE]: {
|
|
282
287
|
children: false
|
|
283
288
|
}
|
|
284
|
-
});
|
|
289
|
+
}, "zz_0");
|
|
285
290
|
};
|
|
286
|
-
const RenderInlinedStyles$1 = RenderInlinedStyles;
|
|
287
291
|
const useBlock$1 = function useBlock2(props, state) {
|
|
288
292
|
return getProcessedBlock({
|
|
289
293
|
block: props.block,
|
|
@@ -322,15 +326,14 @@ const css = function css2(props, state) {
|
|
|
322
326
|
};
|
|
323
327
|
const BlockStyles = (props) => {
|
|
324
328
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
325
|
-
children: css(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles
|
|
329
|
+
children: css(props) ? /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
|
|
326
330
|
styles: css(props)
|
|
327
|
-
}) : null,
|
|
331
|
+
}, "LQ_0") : null,
|
|
328
332
|
[qwik._IMMUTABLE]: {
|
|
329
333
|
children: false
|
|
330
334
|
}
|
|
331
|
-
});
|
|
335
|
+
}, "LQ_1");
|
|
332
336
|
};
|
|
333
|
-
const BlockStyles$1 = BlockStyles;
|
|
334
337
|
function capitalizeFirstLetter(string) {
|
|
335
338
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
336
339
|
}
|
|
@@ -485,7 +488,7 @@ const RenderComponent = (props) => {
|
|
|
485
488
|
}, "render-block-" + child.id);
|
|
486
489
|
}),
|
|
487
490
|
(props.blockChildren || []).map(function(child) {
|
|
488
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles
|
|
491
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles, {
|
|
489
492
|
block: child,
|
|
490
493
|
get context() {
|
|
491
494
|
return props.context;
|
|
@@ -500,9 +503,8 @@ const RenderComponent = (props) => {
|
|
|
500
503
|
[qwik._IMMUTABLE]: {
|
|
501
504
|
children: false
|
|
502
505
|
}
|
|
503
|
-
});
|
|
506
|
+
}, "R9_0");
|
|
504
507
|
};
|
|
505
|
-
const RenderComponent$1 = RenderComponent;
|
|
506
508
|
const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
507
509
|
qwik.useContextProvider(BuilderContext, qwik.useStore({
|
|
508
510
|
content: props.repeatContext.content,
|
|
@@ -523,9 +525,8 @@ const RenderRepeatedBlock = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((p
|
|
|
523
525
|
block: qwik._wrapSignal(props, "block"),
|
|
524
526
|
context: qwik._wrapSignal(props, "repeatContext")
|
|
525
527
|
}
|
|
526
|
-
});
|
|
528
|
+
}, "K5_0");
|
|
527
529
|
}, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
|
|
528
|
-
const RenderRepeatedBlock$1 = RenderRepeatedBlock;
|
|
529
530
|
const component = function component2(props, state) {
|
|
530
531
|
return getComponent({
|
|
531
532
|
block: props.block,
|
|
@@ -608,7 +609,7 @@ const RenderBlock = (props) => {
|
|
|
608
609
|
...actions(props)
|
|
609
610
|
}) : null,
|
|
610
611
|
!isEmptyHtmlElement(tag(props)) && repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
|
|
611
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RenderRepeatedBlock
|
|
612
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RenderRepeatedBlock, {
|
|
612
613
|
get repeatContext() {
|
|
613
614
|
return data.context;
|
|
614
615
|
},
|
|
@@ -625,9 +626,9 @@ const RenderBlock = (props) => {
|
|
|
625
626
|
...attributes(props),
|
|
626
627
|
...actions(props),
|
|
627
628
|
children: [
|
|
628
|
-
/* @__PURE__ */ jsxRuntime.jsx(RenderComponent
|
|
629
|
+
/* @__PURE__ */ jsxRuntime.jsx(RenderComponent, {
|
|
629
630
|
...renderComponentProps(props)
|
|
630
|
-
}),
|
|
631
|
+
}, "9d_0"),
|
|
631
632
|
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
632
633
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderBlock, {
|
|
633
634
|
block: child,
|
|
@@ -635,7 +636,7 @@ const RenderBlock = (props) => {
|
|
|
635
636
|
}, "render-block-" + child.id);
|
|
636
637
|
}),
|
|
637
638
|
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
638
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles
|
|
639
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles, {
|
|
639
640
|
block: child,
|
|
640
641
|
context: childrenContext(props)
|
|
641
642
|
}, "block-style-" + child.id);
|
|
@@ -646,13 +647,13 @@ const RenderBlock = (props) => {
|
|
|
646
647
|
[qwik._IMMUTABLE]: {
|
|
647
648
|
children: false
|
|
648
649
|
}
|
|
649
|
-
}) : /* @__PURE__ */ jsxRuntime.jsx(RenderComponent
|
|
650
|
+
}, "9d_1") : /* @__PURE__ */ jsxRuntime.jsx(RenderComponent, {
|
|
650
651
|
...renderComponentProps(props)
|
|
651
|
-
}),
|
|
652
|
+
}, "9d_2"),
|
|
652
653
|
[qwik._IMMUTABLE]: {
|
|
653
654
|
children: false
|
|
654
655
|
}
|
|
655
|
-
});
|
|
656
|
+
}, "9d_3");
|
|
656
657
|
};
|
|
657
658
|
const RenderBlock$1 = RenderBlock;
|
|
658
659
|
const className$1 = function className2(props, state, builderContext) {
|
|
@@ -717,7 +718,7 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
717
718
|
}, "render-block-" + block.id);
|
|
718
719
|
}) : null,
|
|
719
720
|
props.blocks ? (props.blocks || []).map(function(block) {
|
|
720
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles
|
|
721
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BlockStyles, {
|
|
721
722
|
block,
|
|
722
723
|
context: builderContext
|
|
723
724
|
}, "block-style-" + block.id);
|
|
@@ -731,7 +732,6 @@ const RenderBlocks = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
731
732
|
}
|
|
732
733
|
});
|
|
733
734
|
}, "RenderBlocks_component_MYUZ0j1uLsw"));
|
|
734
|
-
const RenderBlocks$1 = RenderBlocks;
|
|
735
735
|
const STYLES$3 = `
|
|
736
736
|
.div-RenderBlocks {
|
|
737
737
|
display: flex;
|
|
@@ -826,35 +826,29 @@ const columnsStyles = function columnsStyles2(props, state) {
|
|
|
826
826
|
},
|
|
827
827
|
`;
|
|
828
828
|
};
|
|
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
829
|
const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
836
830
|
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
837
831
|
const state = {};
|
|
838
832
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
839
833
|
class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
|
|
840
834
|
style: {
|
|
841
|
-
...
|
|
835
|
+
...{},
|
|
842
836
|
...columnsCssVars(props, state)
|
|
843
837
|
},
|
|
844
838
|
children: [
|
|
845
|
-
|
|
839
|
+
/* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
|
|
846
840
|
styles: columnsStyles(props, state)
|
|
847
|
-
})
|
|
841
|
+
}, "c0_0"),
|
|
848
842
|
(props.columns || []).map(function(column, index) {
|
|
849
843
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
850
844
|
class: "builder-column div-Columns-2",
|
|
851
845
|
style: {
|
|
852
846
|
width: getColumnCssWidth(props, state, index),
|
|
853
847
|
marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
|
|
854
|
-
...
|
|
848
|
+
...{},
|
|
855
849
|
...columnCssVars(props, state)
|
|
856
850
|
},
|
|
857
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks
|
|
851
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks, {
|
|
858
852
|
get blocks() {
|
|
859
853
|
return column.blocks;
|
|
860
854
|
},
|
|
@@ -869,7 +863,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
869
863
|
blocks: qwik._wrapSignal(column, "blocks"),
|
|
870
864
|
parent: qwik._wrapSignal(props.builderBlock, "id")
|
|
871
865
|
}
|
|
872
|
-
})
|
|
866
|
+
}, "c0_1")
|
|
873
867
|
}, index);
|
|
874
868
|
})
|
|
875
869
|
],
|
|
@@ -878,7 +872,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
878
872
|
}
|
|
879
873
|
});
|
|
880
874
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
881
|
-
const Columns$1 = Columns;
|
|
882
875
|
const STYLES$2 = `
|
|
883
876
|
.div-Columns {
|
|
884
877
|
display: flex;
|
|
@@ -1019,18 +1012,17 @@ const Image = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1019
1012
|
paddingTop: props.aspectRatio * 100 + "%"
|
|
1020
1013
|
}
|
|
1021
1014
|
}) : null,
|
|
1022
|
-
props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}) : null,
|
|
1015
|
+
props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "0A_0") : null,
|
|
1023
1016
|
!props.fitContent && props.children ? /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
1024
1017
|
class: "div-Image-2",
|
|
1025
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1018
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "0A_1")
|
|
1026
1019
|
}) : null
|
|
1027
1020
|
],
|
|
1028
1021
|
[qwik._IMMUTABLE]: {
|
|
1029
1022
|
children: false
|
|
1030
1023
|
}
|
|
1031
|
-
});
|
|
1024
|
+
}, "0A_2");
|
|
1032
1025
|
}, "Image_component_LRxDkFa1EfU"));
|
|
1033
|
-
const Image$1 = Image;
|
|
1034
1026
|
const STYLES$1 = `
|
|
1035
1027
|
.img-Image {
|
|
1036
1028
|
opacity: 1;
|
|
@@ -1060,7 +1052,6 @@ const Text = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1060
1052
|
}
|
|
1061
1053
|
});
|
|
1062
1054
|
}, "Text_component_15p0cKUxgIE"));
|
|
1063
|
-
const Text$1 = Text;
|
|
1064
1055
|
const videoProps = function videoProps2(props, state) {
|
|
1065
1056
|
return {
|
|
1066
1057
|
...props.autoPlay === true ? {
|
|
@@ -1106,7 +1097,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1106
1097
|
}
|
|
1107
1098
|
});
|
|
1108
1099
|
}, "Video_component_qdcTZflYyoQ"));
|
|
1109
|
-
const Video$1 = Video;
|
|
1110
1100
|
const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1111
1101
|
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
|
|
1112
1102
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -1129,9 +1119,8 @@ const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1129
1119
|
[qwik._IMMUTABLE]: {
|
|
1130
1120
|
children: false
|
|
1131
1121
|
}
|
|
1132
|
-
});
|
|
1122
|
+
}, "jc_0");
|
|
1133
1123
|
}, "Button_component_gJoMUICXoUQ"));
|
|
1134
|
-
const Button$1 = Button;
|
|
1135
1124
|
const STYLES = `
|
|
1136
1125
|
.button-Button {
|
|
1137
1126
|
all: unset;
|
|
@@ -1430,10 +1419,9 @@ const componentInfo$8 = {
|
|
|
1430
1419
|
};
|
|
1431
1420
|
const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1432
1421
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1433
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1422
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "oj_0")
|
|
1434
1423
|
});
|
|
1435
1424
|
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
1436
|
-
const Fragment = FragmentComponent;
|
|
1437
1425
|
const componentInfo$7 = {
|
|
1438
1426
|
name: "Image",
|
|
1439
1427
|
static: true,
|
|
@@ -1644,10 +1632,9 @@ const SectionComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((prop
|
|
|
1644
1632
|
marginLeft: "auto",
|
|
1645
1633
|
marginRight: "auto"
|
|
1646
1634
|
},
|
|
1647
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
|
|
1635
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "2Y_0")
|
|
1648
1636
|
});
|
|
1649
1637
|
}, "SectionComponent_component_ZWF9iD5WeLg"));
|
|
1650
|
-
const Section = SectionComponent;
|
|
1651
1638
|
const componentInfo$5 = {
|
|
1652
1639
|
name: "Symbol",
|
|
1653
1640
|
noWrap: true,
|
|
@@ -1917,7 +1904,6 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
1917
1904
|
}
|
|
1918
1905
|
});
|
|
1919
1906
|
}, "Embed_component_Uji08ORjXbE"));
|
|
1920
|
-
const embed = Embed;
|
|
1921
1907
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
1922
1908
|
return /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
1923
1909
|
style: {
|
|
@@ -1934,7 +1920,6 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =
|
|
|
1934
1920
|
}
|
|
1935
1921
|
}, isEditing() && props.imgSrc || "default-key");
|
|
1936
1922
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
1937
|
-
const Img = ImgComponent;
|
|
1938
1923
|
const componentInfo$1 = {
|
|
1939
1924
|
name: "Raw:Img",
|
|
1940
1925
|
hideFromInsertMenu: true,
|
|
@@ -2012,7 +1997,6 @@ const CustomCode = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) =>
|
|
|
2012
1997
|
}
|
|
2013
1998
|
});
|
|
2014
1999
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2015
|
-
const customCode = CustomCode;
|
|
2016
2000
|
const componentInfo = {
|
|
2017
2001
|
name: "Custom Code",
|
|
2018
2002
|
static: true,
|
|
@@ -2045,47 +2029,47 @@ const componentInfo = {
|
|
|
2045
2029
|
};
|
|
2046
2030
|
const getDefaultRegisteredComponents = () => [
|
|
2047
2031
|
{
|
|
2048
|
-
component: Columns
|
|
2032
|
+
component: Columns,
|
|
2049
2033
|
...componentInfo$9
|
|
2050
2034
|
},
|
|
2051
2035
|
{
|
|
2052
|
-
component: Image
|
|
2036
|
+
component: Image,
|
|
2053
2037
|
...componentInfo$7
|
|
2054
2038
|
},
|
|
2055
2039
|
{
|
|
2056
|
-
component:
|
|
2040
|
+
component: ImgComponent,
|
|
2057
2041
|
...componentInfo$1
|
|
2058
2042
|
},
|
|
2059
2043
|
{
|
|
2060
|
-
component: Text
|
|
2044
|
+
component: Text,
|
|
2061
2045
|
...componentInfo$4
|
|
2062
2046
|
},
|
|
2063
2047
|
{
|
|
2064
|
-
component: Video
|
|
2048
|
+
component: Video,
|
|
2065
2049
|
...componentInfo$3
|
|
2066
2050
|
},
|
|
2067
2051
|
{
|
|
2068
|
-
component: Symbol$
|
|
2052
|
+
component: Symbol$1,
|
|
2069
2053
|
...componentInfo$5
|
|
2070
2054
|
},
|
|
2071
2055
|
{
|
|
2072
|
-
component: Button
|
|
2056
|
+
component: Button,
|
|
2073
2057
|
...componentInfo$a
|
|
2074
2058
|
},
|
|
2075
2059
|
{
|
|
2076
|
-
component:
|
|
2060
|
+
component: SectionComponent,
|
|
2077
2061
|
...componentInfo$6
|
|
2078
2062
|
},
|
|
2079
2063
|
{
|
|
2080
|
-
component:
|
|
2064
|
+
component: FragmentComponent,
|
|
2081
2065
|
...componentInfo$8
|
|
2082
2066
|
},
|
|
2083
2067
|
{
|
|
2084
|
-
component:
|
|
2068
|
+
component: Embed,
|
|
2085
2069
|
...componentInfo$2
|
|
2086
2070
|
},
|
|
2087
2071
|
{
|
|
2088
|
-
component:
|
|
2072
|
+
component: CustomCode,
|
|
2089
2073
|
...componentInfo
|
|
2090
2074
|
}
|
|
2091
2075
|
];
|
|
@@ -2656,11 +2640,10 @@ ${getFontCss(props, state, {
|
|
|
2656
2640
|
};
|
|
2657
2641
|
const RenderContentStyles = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
2658
2642
|
const state = {};
|
|
2659
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles
|
|
2643
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
|
|
2660
2644
|
styles: injectedStyles(props, state)
|
|
2661
|
-
});
|
|
2645
|
+
}, "V0_0");
|
|
2662
2646
|
}, "RenderContentStyles_component_Og0xL34Zbvc"));
|
|
2663
|
-
const RenderContentStyles$1 = RenderContentStyles;
|
|
2664
2647
|
const useContent = function useContent2(props, state, elementRef) {
|
|
2665
2648
|
if (!props.content && !state.overrideContent)
|
|
2666
2649
|
return void 0;
|
|
@@ -2923,11 +2906,11 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2923
2906
|
return props.model;
|
|
2924
2907
|
},
|
|
2925
2908
|
children: [
|
|
2926
|
-
shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsxRuntime.jsx(RenderContentStyles
|
|
2909
|
+
shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsxRuntime.jsx(RenderContentStyles, {
|
|
2927
2910
|
cssCode: useContent(props, state)?.data?.cssCode,
|
|
2928
2911
|
customFonts: useContent(props, state)?.data?.customFonts
|
|
2929
|
-
}) : null,
|
|
2930
|
-
/* @__PURE__ */ jsxRuntime.jsx(RenderBlocks
|
|
2912
|
+
}, "03_0") : null,
|
|
2913
|
+
/* @__PURE__ */ jsxRuntime.jsx(RenderBlocks, {
|
|
2931
2914
|
blocks: useContent(props, state)?.data?.blocks
|
|
2932
2915
|
}, state.forceReRenderCount)
|
|
2933
2916
|
],
|
|
@@ -2939,9 +2922,8 @@ const RenderContent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props)
|
|
|
2939
2922
|
[qwik._IMMUTABLE]: {
|
|
2940
2923
|
children: false
|
|
2941
2924
|
}
|
|
2942
|
-
});
|
|
2925
|
+
}, "03_1");
|
|
2943
2926
|
}, "RenderContent_component_hEAI0ahViXM"));
|
|
2944
|
-
const RenderContent$1 = RenderContent;
|
|
2945
2927
|
const className = function className22(props, state, builderContext) {
|
|
2946
2928
|
return [
|
|
2947
2929
|
...[
|
|
@@ -2983,7 +2965,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
2983
2965
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2984
2966
|
...props.attributes,
|
|
2985
2967
|
class: className(props),
|
|
2986
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(RenderContent
|
|
2968
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RenderContent, {
|
|
2987
2969
|
get apiKey() {
|
|
2988
2970
|
return builderContext.apiKey;
|
|
2989
2971
|
},
|
|
@@ -3002,10 +2984,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
3002
2984
|
apiKey: qwik._wrapSignal(builderContext, "apiKey"),
|
|
3003
2985
|
context: qwik._wrapSignal(builderContext, "context")
|
|
3004
2986
|
}
|
|
3005
|
-
})
|
|
2987
|
+
}, "Wt_0")
|
|
3006
2988
|
});
|
|
3007
2989
|
}, "Symbol_component_WVvggdkUPdk"));
|
|
3008
|
-
const Symbol$2 = Symbol$1;
|
|
3009
2990
|
const settings = {};
|
|
3010
2991
|
function setEditorSettings(newSettings) {
|
|
3011
2992
|
if (isBrowser()) {
|
|
@@ -3017,16 +2998,16 @@ function setEditorSettings(newSettings) {
|
|
|
3017
2998
|
parent.postMessage(message, "*");
|
|
3018
2999
|
}
|
|
3019
3000
|
}
|
|
3020
|
-
exports.Button = Button
|
|
3021
|
-
exports.Columns = Columns
|
|
3022
|
-
exports.Fragment =
|
|
3023
|
-
exports.Image = Image
|
|
3024
|
-
exports.RenderBlocks = RenderBlocks
|
|
3025
|
-
exports.RenderContent = RenderContent
|
|
3026
|
-
exports.Section =
|
|
3027
|
-
exports.Symbol = Symbol$
|
|
3028
|
-
exports.Text = Text
|
|
3029
|
-
exports.Video = Video
|
|
3001
|
+
exports.Button = Button;
|
|
3002
|
+
exports.Columns = Columns;
|
|
3003
|
+
exports.Fragment = FragmentComponent;
|
|
3004
|
+
exports.Image = Image;
|
|
3005
|
+
exports.RenderBlocks = RenderBlocks;
|
|
3006
|
+
exports.RenderContent = RenderContent;
|
|
3007
|
+
exports.Section = SectionComponent;
|
|
3008
|
+
exports.Symbol = Symbol$1;
|
|
3009
|
+
exports.Text = Text;
|
|
3010
|
+
exports.Video = Video;
|
|
3030
3011
|
exports.components = components;
|
|
3031
3012
|
exports.convertSearchParamsToQueryObject = convertSearchParamsToQueryObject;
|
|
3032
3013
|
exports.createRegisterComponentMessage = createRegisterComponentMessage;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createContext,
|
|
2
|
-
import { jsx, Fragment
|
|
1
|
+
import { createContext, _IMMUTABLE, _wrapSignal, 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,20 @@ 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
|
|
276
|
-
children: /* @__PURE__ */ jsx(
|
|
277
|
-
|
|
275
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
276
|
+
children: /* @__PURE__ */ jsx("style", {
|
|
277
|
+
get dangerouslySetInnerHTML() {
|
|
278
|
+
return props.styles;
|
|
279
|
+
},
|
|
280
|
+
[_IMMUTABLE]: {
|
|
281
|
+
dangerouslySetInnerHTML: _wrapSignal(props, "styles")
|
|
282
|
+
}
|
|
278
283
|
}),
|
|
279
284
|
[_IMMUTABLE]: {
|
|
280
285
|
children: false
|
|
281
286
|
}
|
|
282
|
-
});
|
|
287
|
+
}, "zz_0");
|
|
283
288
|
};
|
|
284
|
-
const RenderInlinedStyles$1 = RenderInlinedStyles;
|
|
285
289
|
const useBlock$1 = function useBlock2(props, state) {
|
|
286
290
|
return getProcessedBlock({
|
|
287
291
|
block: props.block,
|
|
@@ -319,16 +323,15 @@ const css = function css2(props, state) {
|
|
|
319
323
|
].join(" ");
|
|
320
324
|
};
|
|
321
325
|
const BlockStyles = (props) => {
|
|
322
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
323
|
-
children: css(props) ? /* @__PURE__ */ jsx(RenderInlinedStyles
|
|
326
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
327
|
+
children: css(props) ? /* @__PURE__ */ jsx(RenderInlinedStyles, {
|
|
324
328
|
styles: css(props)
|
|
325
|
-
}) : null,
|
|
329
|
+
}, "LQ_0") : null,
|
|
326
330
|
[_IMMUTABLE]: {
|
|
327
331
|
children: false
|
|
328
332
|
}
|
|
329
|
-
});
|
|
333
|
+
}, "LQ_1");
|
|
330
334
|
};
|
|
331
|
-
const BlockStyles$1 = BlockStyles;
|
|
332
335
|
function capitalizeFirstLetter(string) {
|
|
333
336
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
334
337
|
}
|
|
@@ -467,7 +470,7 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
467
470
|
return repeatArray;
|
|
468
471
|
};
|
|
469
472
|
const RenderComponent = (props) => {
|
|
470
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
473
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
471
474
|
children: props.componentRef ? /* @__PURE__ */ jsxs(props.componentRef, {
|
|
472
475
|
...props.componentOptions,
|
|
473
476
|
children: [
|
|
@@ -483,7 +486,7 @@ const RenderComponent = (props) => {
|
|
|
483
486
|
}, "render-block-" + child.id);
|
|
484
487
|
}),
|
|
485
488
|
(props.blockChildren || []).map(function(child) {
|
|
486
|
-
return /* @__PURE__ */ jsx(BlockStyles
|
|
489
|
+
return /* @__PURE__ */ jsx(BlockStyles, {
|
|
487
490
|
block: child,
|
|
488
491
|
get context() {
|
|
489
492
|
return props.context;
|
|
@@ -498,9 +501,8 @@ const RenderComponent = (props) => {
|
|
|
498
501
|
[_IMMUTABLE]: {
|
|
499
502
|
children: false
|
|
500
503
|
}
|
|
501
|
-
});
|
|
504
|
+
}, "R9_0");
|
|
502
505
|
};
|
|
503
|
-
const RenderComponent$1 = RenderComponent;
|
|
504
506
|
const RenderRepeatedBlock = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
505
507
|
useContextProvider(BuilderContext, useStore({
|
|
506
508
|
content: props.repeatContext.content,
|
|
@@ -521,9 +523,8 @@ const RenderRepeatedBlock = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
521
523
|
block: _wrapSignal(props, "block"),
|
|
522
524
|
context: _wrapSignal(props, "repeatContext")
|
|
523
525
|
}
|
|
524
|
-
});
|
|
526
|
+
}, "K5_0");
|
|
525
527
|
}, "RenderRepeatedBlock_component_nRyVBtbGKc8"));
|
|
526
|
-
const RenderRepeatedBlock$1 = RenderRepeatedBlock;
|
|
527
528
|
const component = function component2(props, state) {
|
|
528
529
|
return getComponent({
|
|
529
530
|
block: props.block,
|
|
@@ -598,15 +599,15 @@ const childrenContext = function childrenContext2(props, state) {
|
|
|
598
599
|
const RenderBlock = (props) => {
|
|
599
600
|
const state = {};
|
|
600
601
|
state.tag = tag(props);
|
|
601
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
602
|
-
children: !component(props)?.noWrap ? /* @__PURE__ */ jsxs(Fragment
|
|
602
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
603
|
+
children: !component(props)?.noWrap ? /* @__PURE__ */ jsxs(Fragment, {
|
|
603
604
|
children: [
|
|
604
605
|
isEmptyHtmlElement(tag(props)) ? /* @__PURE__ */ jsx(state.tag, {
|
|
605
606
|
...attributes(props),
|
|
606
607
|
...actions(props)
|
|
607
608
|
}) : null,
|
|
608
609
|
!isEmptyHtmlElement(tag(props)) && repeatItemData(props) ? (repeatItemData(props) || []).map(function(data, index) {
|
|
609
|
-
return /* @__PURE__ */ jsx(RenderRepeatedBlock
|
|
610
|
+
return /* @__PURE__ */ jsx(RenderRepeatedBlock, {
|
|
610
611
|
get repeatContext() {
|
|
611
612
|
return data.context;
|
|
612
613
|
},
|
|
@@ -623,9 +624,9 @@ const RenderBlock = (props) => {
|
|
|
623
624
|
...attributes(props),
|
|
624
625
|
...actions(props),
|
|
625
626
|
children: [
|
|
626
|
-
/* @__PURE__ */ jsx(RenderComponent
|
|
627
|
+
/* @__PURE__ */ jsx(RenderComponent, {
|
|
627
628
|
...renderComponentProps(props)
|
|
628
|
-
}),
|
|
629
|
+
}, "9d_0"),
|
|
629
630
|
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
630
631
|
return /* @__PURE__ */ jsx(RenderBlock, {
|
|
631
632
|
block: child,
|
|
@@ -633,7 +634,7 @@ const RenderBlock = (props) => {
|
|
|
633
634
|
}, "render-block-" + child.id);
|
|
634
635
|
}),
|
|
635
636
|
(childrenWithoutParentComponent(props) || []).map(function(child) {
|
|
636
|
-
return /* @__PURE__ */ jsx(BlockStyles
|
|
637
|
+
return /* @__PURE__ */ jsx(BlockStyles, {
|
|
637
638
|
block: child,
|
|
638
639
|
context: childrenContext(props)
|
|
639
640
|
}, "block-style-" + child.id);
|
|
@@ -644,13 +645,13 @@ const RenderBlock = (props) => {
|
|
|
644
645
|
[_IMMUTABLE]: {
|
|
645
646
|
children: false
|
|
646
647
|
}
|
|
647
|
-
}) : /* @__PURE__ */ jsx(RenderComponent
|
|
648
|
+
}, "9d_1") : /* @__PURE__ */ jsx(RenderComponent, {
|
|
648
649
|
...renderComponentProps(props)
|
|
649
|
-
}),
|
|
650
|
+
}, "9d_2"),
|
|
650
651
|
[_IMMUTABLE]: {
|
|
651
652
|
children: false
|
|
652
653
|
}
|
|
653
|
-
});
|
|
654
|
+
}, "9d_3");
|
|
654
655
|
};
|
|
655
656
|
const RenderBlock$1 = RenderBlock;
|
|
656
657
|
const className$1 = function className2(props, state, builderContext) {
|
|
@@ -715,7 +716,7 @@ const RenderBlocks = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
715
716
|
}, "render-block-" + block.id);
|
|
716
717
|
}) : null,
|
|
717
718
|
props.blocks ? (props.blocks || []).map(function(block) {
|
|
718
|
-
return /* @__PURE__ */ jsx(BlockStyles
|
|
719
|
+
return /* @__PURE__ */ jsx(BlockStyles, {
|
|
719
720
|
block,
|
|
720
721
|
context: builderContext
|
|
721
722
|
}, "block-style-" + block.id);
|
|
@@ -729,7 +730,6 @@ const RenderBlocks = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
729
730
|
}
|
|
730
731
|
});
|
|
731
732
|
}, "RenderBlocks_component_MYUZ0j1uLsw"));
|
|
732
|
-
const RenderBlocks$1 = RenderBlocks;
|
|
733
733
|
const STYLES$3 = `
|
|
734
734
|
.div-RenderBlocks {
|
|
735
735
|
display: flex;
|
|
@@ -824,35 +824,29 @@ const columnsStyles = function columnsStyles2(props, state) {
|
|
|
824
824
|
},
|
|
825
825
|
`;
|
|
826
826
|
};
|
|
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
827
|
const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
834
828
|
useStylesScopedQrl(inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
835
829
|
const state = {};
|
|
836
830
|
return /* @__PURE__ */ jsxs("div", {
|
|
837
831
|
class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
|
|
838
832
|
style: {
|
|
839
|
-
...
|
|
833
|
+
...{},
|
|
840
834
|
...columnsCssVars(props, state)
|
|
841
835
|
},
|
|
842
836
|
children: [
|
|
843
|
-
|
|
837
|
+
/* @__PURE__ */ jsx(RenderInlinedStyles, {
|
|
844
838
|
styles: columnsStyles(props, state)
|
|
845
|
-
})
|
|
839
|
+
}, "c0_0"),
|
|
846
840
|
(props.columns || []).map(function(column, index) {
|
|
847
841
|
return /* @__PURE__ */ jsx("div", {
|
|
848
842
|
class: "builder-column div-Columns-2",
|
|
849
843
|
style: {
|
|
850
844
|
width: getColumnCssWidth(props, state, index),
|
|
851
845
|
marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
|
|
852
|
-
...
|
|
846
|
+
...{},
|
|
853
847
|
...columnCssVars(props, state)
|
|
854
848
|
},
|
|
855
|
-
children: /* @__PURE__ */ jsx(RenderBlocks
|
|
849
|
+
children: /* @__PURE__ */ jsx(RenderBlocks, {
|
|
856
850
|
get blocks() {
|
|
857
851
|
return column.blocks;
|
|
858
852
|
},
|
|
@@ -867,7 +861,7 @@ const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
867
861
|
blocks: _wrapSignal(column, "blocks"),
|
|
868
862
|
parent: _wrapSignal(props.builderBlock, "id")
|
|
869
863
|
}
|
|
870
|
-
})
|
|
864
|
+
}, "c0_1")
|
|
871
865
|
}, index);
|
|
872
866
|
})
|
|
873
867
|
],
|
|
@@ -876,7 +870,6 @@ const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
876
870
|
}
|
|
877
871
|
});
|
|
878
872
|
}, "Columns_component_7yLj4bxdI6c"));
|
|
879
|
-
const Columns$1 = Columns;
|
|
880
873
|
const STYLES$2 = `
|
|
881
874
|
.div-Columns {
|
|
882
875
|
display: flex;
|
|
@@ -973,7 +966,7 @@ const aspectRatioCss = function aspectRatioCss2(props, state) {
|
|
|
973
966
|
};
|
|
974
967
|
const Image = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
975
968
|
useStylesScopedQrl(inlinedQrl(STYLES$1, "Image_component_useStylesScoped_fBMYiVf9fuU"));
|
|
976
|
-
return /* @__PURE__ */ jsxs(Fragment$
|
|
969
|
+
return /* @__PURE__ */ jsxs(Fragment$1, {
|
|
977
970
|
children: [
|
|
978
971
|
/* @__PURE__ */ jsxs("picture", {
|
|
979
972
|
children: [
|
|
@@ -1017,18 +1010,17 @@ const Image = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1017
1010
|
paddingTop: props.aspectRatio * 100 + "%"
|
|
1018
1011
|
}
|
|
1019
1012
|
}) : null,
|
|
1020
|
-
props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsx(Slot, {}) : null,
|
|
1013
|
+
props.builderBlock?.children?.length && props.fitContent ? /* @__PURE__ */ jsx(Slot, {}, "0A_0") : null,
|
|
1021
1014
|
!props.fitContent && props.children ? /* @__PURE__ */ jsx("div", {
|
|
1022
1015
|
class: "div-Image-2",
|
|
1023
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
1016
|
+
children: /* @__PURE__ */ jsx(Slot, {}, "0A_1")
|
|
1024
1017
|
}) : null
|
|
1025
1018
|
],
|
|
1026
1019
|
[_IMMUTABLE]: {
|
|
1027
1020
|
children: false
|
|
1028
1021
|
}
|
|
1029
|
-
});
|
|
1022
|
+
}, "0A_2");
|
|
1030
1023
|
}, "Image_component_LRxDkFa1EfU"));
|
|
1031
|
-
const Image$1 = Image;
|
|
1032
1024
|
const STYLES$1 = `
|
|
1033
1025
|
.img-Image {
|
|
1034
1026
|
opacity: 1;
|
|
@@ -1058,7 +1050,6 @@ const Text = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1058
1050
|
}
|
|
1059
1051
|
});
|
|
1060
1052
|
}, "Text_component_15p0cKUxgIE"));
|
|
1061
|
-
const Text$1 = Text;
|
|
1062
1053
|
const videoProps = function videoProps2(props, state) {
|
|
1063
1054
|
return {
|
|
1064
1055
|
...props.autoPlay === true ? {
|
|
@@ -1104,10 +1095,9 @@ const Video = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1104
1095
|
}
|
|
1105
1096
|
});
|
|
1106
1097
|
}, "Video_component_qdcTZflYyoQ"));
|
|
1107
|
-
const Video$1 = Video;
|
|
1108
1098
|
const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
1109
1099
|
useStylesScopedQrl(inlinedQrl(STYLES, "Button_component_useStylesScoped_a1JZ0Q0Q2Oc"));
|
|
1110
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
1100
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
1111
1101
|
children: props.link ? /* @__PURE__ */ jsx("a", {
|
|
1112
1102
|
role: "button",
|
|
1113
1103
|
...props.attributes,
|
|
@@ -1127,9 +1117,8 @@ const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1127
1117
|
[_IMMUTABLE]: {
|
|
1128
1118
|
children: false
|
|
1129
1119
|
}
|
|
1130
|
-
});
|
|
1120
|
+
}, "jc_0");
|
|
1131
1121
|
}, "Button_component_gJoMUICXoUQ"));
|
|
1132
|
-
const Button$1 = Button;
|
|
1133
1122
|
const STYLES = `
|
|
1134
1123
|
.button-Button {
|
|
1135
1124
|
all: unset;
|
|
@@ -1428,10 +1417,9 @@ const componentInfo$8 = {
|
|
|
1428
1417
|
};
|
|
1429
1418
|
const FragmentComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
1430
1419
|
return /* @__PURE__ */ jsx("span", {
|
|
1431
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
1420
|
+
children: /* @__PURE__ */ jsx(Slot, {}, "oj_0")
|
|
1432
1421
|
});
|
|
1433
1422
|
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
1434
|
-
const Fragment = FragmentComponent;
|
|
1435
1423
|
const componentInfo$7 = {
|
|
1436
1424
|
name: "Image",
|
|
1437
1425
|
static: true,
|
|
@@ -1642,10 +1630,9 @@ const SectionComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1642
1630
|
marginLeft: "auto",
|
|
1643
1631
|
marginRight: "auto"
|
|
1644
1632
|
},
|
|
1645
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
1633
|
+
children: /* @__PURE__ */ jsx(Slot, {}, "2Y_0")
|
|
1646
1634
|
});
|
|
1647
1635
|
}, "SectionComponent_component_ZWF9iD5WeLg"));
|
|
1648
|
-
const Section = SectionComponent;
|
|
1649
1636
|
const componentInfo$5 = {
|
|
1650
1637
|
name: "Symbol",
|
|
1651
1638
|
noWrap: true,
|
|
@@ -1915,7 +1902,6 @@ const Embed = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1915
1902
|
}
|
|
1916
1903
|
});
|
|
1917
1904
|
}, "Embed_component_Uji08ORjXbE"));
|
|
1918
|
-
const embed = Embed;
|
|
1919
1905
|
const ImgComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
1920
1906
|
return /* @__PURE__ */ jsx("img", {
|
|
1921
1907
|
style: {
|
|
@@ -1932,7 +1918,6 @@ const ImgComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
1932
1918
|
}
|
|
1933
1919
|
}, isEditing() && props.imgSrc || "default-key");
|
|
1934
1920
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
1935
|
-
const Img = ImgComponent;
|
|
1936
1921
|
const componentInfo$1 = {
|
|
1937
1922
|
name: "Raw:Img",
|
|
1938
1923
|
hideFromInsertMenu: true,
|
|
@@ -2010,7 +1995,6 @@ const CustomCode = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
2010
1995
|
}
|
|
2011
1996
|
});
|
|
2012
1997
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2013
|
-
const customCode = CustomCode;
|
|
2014
1998
|
const componentInfo = {
|
|
2015
1999
|
name: "Custom Code",
|
|
2016
2000
|
static: true,
|
|
@@ -2043,47 +2027,47 @@ const componentInfo = {
|
|
|
2043
2027
|
};
|
|
2044
2028
|
const getDefaultRegisteredComponents = () => [
|
|
2045
2029
|
{
|
|
2046
|
-
component: Columns
|
|
2030
|
+
component: Columns,
|
|
2047
2031
|
...componentInfo$9
|
|
2048
2032
|
},
|
|
2049
2033
|
{
|
|
2050
|
-
component: Image
|
|
2034
|
+
component: Image,
|
|
2051
2035
|
...componentInfo$7
|
|
2052
2036
|
},
|
|
2053
2037
|
{
|
|
2054
|
-
component:
|
|
2038
|
+
component: ImgComponent,
|
|
2055
2039
|
...componentInfo$1
|
|
2056
2040
|
},
|
|
2057
2041
|
{
|
|
2058
|
-
component: Text
|
|
2042
|
+
component: Text,
|
|
2059
2043
|
...componentInfo$4
|
|
2060
2044
|
},
|
|
2061
2045
|
{
|
|
2062
|
-
component: Video
|
|
2046
|
+
component: Video,
|
|
2063
2047
|
...componentInfo$3
|
|
2064
2048
|
},
|
|
2065
2049
|
{
|
|
2066
|
-
component: Symbol$
|
|
2050
|
+
component: Symbol$1,
|
|
2067
2051
|
...componentInfo$5
|
|
2068
2052
|
},
|
|
2069
2053
|
{
|
|
2070
|
-
component: Button
|
|
2054
|
+
component: Button,
|
|
2071
2055
|
...componentInfo$a
|
|
2072
2056
|
},
|
|
2073
2057
|
{
|
|
2074
|
-
component:
|
|
2058
|
+
component: SectionComponent,
|
|
2075
2059
|
...componentInfo$6
|
|
2076
2060
|
},
|
|
2077
2061
|
{
|
|
2078
|
-
component:
|
|
2062
|
+
component: FragmentComponent,
|
|
2079
2063
|
...componentInfo$8
|
|
2080
2064
|
},
|
|
2081
2065
|
{
|
|
2082
|
-
component:
|
|
2066
|
+
component: Embed,
|
|
2083
2067
|
...componentInfo$2
|
|
2084
2068
|
},
|
|
2085
2069
|
{
|
|
2086
|
-
component:
|
|
2070
|
+
component: CustomCode,
|
|
2087
2071
|
...componentInfo
|
|
2088
2072
|
}
|
|
2089
2073
|
];
|
|
@@ -2654,11 +2638,10 @@ ${getFontCss(props, state, {
|
|
|
2654
2638
|
};
|
|
2655
2639
|
const RenderContentStyles = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
2656
2640
|
const state = {};
|
|
2657
|
-
return /* @__PURE__ */ jsx(RenderInlinedStyles
|
|
2641
|
+
return /* @__PURE__ */ jsx(RenderInlinedStyles, {
|
|
2658
2642
|
styles: injectedStyles(props, state)
|
|
2659
|
-
});
|
|
2643
|
+
}, "V0_0");
|
|
2660
2644
|
}, "RenderContentStyles_component_Og0xL34Zbvc"));
|
|
2661
|
-
const RenderContentStyles$1 = RenderContentStyles;
|
|
2662
2645
|
const useContent = function useContent2(props, state, elementRef) {
|
|
2663
2646
|
if (!props.content && !state.overrideContent)
|
|
2664
2647
|
return void 0;
|
|
@@ -2905,7 +2888,7 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
2905
2888
|
props,
|
|
2906
2889
|
state
|
|
2907
2890
|
]));
|
|
2908
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
2891
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
2909
2892
|
children: useContent(props, state) ? /* @__PURE__ */ jsxs("div", {
|
|
2910
2893
|
ref: elementRef,
|
|
2911
2894
|
onClick$: inlinedQrl((event) => {
|
|
@@ -2921,11 +2904,11 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
2921
2904
|
return props.model;
|
|
2922
2905
|
},
|
|
2923
2906
|
children: [
|
|
2924
|
-
shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsx(RenderContentStyles
|
|
2907
|
+
shouldRenderContentStyles(props, state) ? /* @__PURE__ */ jsx(RenderContentStyles, {
|
|
2925
2908
|
cssCode: useContent(props, state)?.data?.cssCode,
|
|
2926
2909
|
customFonts: useContent(props, state)?.data?.customFonts
|
|
2927
|
-
}) : null,
|
|
2928
|
-
/* @__PURE__ */ jsx(RenderBlocks
|
|
2910
|
+
}, "03_0") : null,
|
|
2911
|
+
/* @__PURE__ */ jsx(RenderBlocks, {
|
|
2929
2912
|
blocks: useContent(props, state)?.data?.blocks
|
|
2930
2913
|
}, state.forceReRenderCount)
|
|
2931
2914
|
],
|
|
@@ -2937,9 +2920,8 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
2937
2920
|
[_IMMUTABLE]: {
|
|
2938
2921
|
children: false
|
|
2939
2922
|
}
|
|
2940
|
-
});
|
|
2923
|
+
}, "03_1");
|
|
2941
2924
|
}, "RenderContent_component_hEAI0ahViXM"));
|
|
2942
|
-
const RenderContent$1 = RenderContent;
|
|
2943
2925
|
const className = function className22(props, state, builderContext) {
|
|
2944
2926
|
return [
|
|
2945
2927
|
...[
|
|
@@ -2981,7 +2963,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
2981
2963
|
return /* @__PURE__ */ jsx("div", {
|
|
2982
2964
|
...props.attributes,
|
|
2983
2965
|
class: className(props),
|
|
2984
|
-
children: /* @__PURE__ */ jsx(RenderContent
|
|
2966
|
+
children: /* @__PURE__ */ jsx(RenderContent, {
|
|
2985
2967
|
get apiKey() {
|
|
2986
2968
|
return builderContext.apiKey;
|
|
2987
2969
|
},
|
|
@@ -3000,10 +2982,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
3000
2982
|
apiKey: _wrapSignal(builderContext, "apiKey"),
|
|
3001
2983
|
context: _wrapSignal(builderContext, "context")
|
|
3002
2984
|
}
|
|
3003
|
-
})
|
|
2985
|
+
}, "Wt_0")
|
|
3004
2986
|
});
|
|
3005
2987
|
}, "Symbol_component_WVvggdkUPdk"));
|
|
3006
|
-
const Symbol$2 = Symbol$1;
|
|
3007
2988
|
const settings = {};
|
|
3008
2989
|
function setEditorSettings(newSettings) {
|
|
3009
2990
|
if (isBrowser()) {
|
|
@@ -3016,16 +2997,16 @@ function setEditorSettings(newSettings) {
|
|
|
3016
2997
|
}
|
|
3017
2998
|
}
|
|
3018
2999
|
export {
|
|
3019
|
-
Button
|
|
3020
|
-
Columns
|
|
3021
|
-
Fragment,
|
|
3022
|
-
Image
|
|
3023
|
-
RenderBlocks
|
|
3024
|
-
RenderContent
|
|
3025
|
-
Section,
|
|
3026
|
-
Symbol$
|
|
3027
|
-
Text
|
|
3028
|
-
Video
|
|
3000
|
+
Button,
|
|
3001
|
+
Columns,
|
|
3002
|
+
FragmentComponent as Fragment,
|
|
3003
|
+
Image,
|
|
3004
|
+
RenderBlocks,
|
|
3005
|
+
RenderContent,
|
|
3006
|
+
SectionComponent as Section,
|
|
3007
|
+
Symbol$1 as Symbol,
|
|
3008
|
+
Text,
|
|
3009
|
+
Video,
|
|
3029
3010
|
components,
|
|
3030
3011
|
convertSearchParamsToQueryObject,
|
|
3031
3012
|
createRegisterComponentMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-qwik",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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": "
|
|
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
|
|
1
|
+
export { default } from './render-content';
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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';
|