@builder.io/sdk-solid 0.12.2 → 0.12.3
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/browser/dev.js +10 -8
- package/lib/browser/dev.jsx +18 -16
- package/lib/browser/index.js +10 -8
- package/lib/browser/index.jsx +18 -16
- package/lib/edge/dev.js +10 -8
- package/lib/edge/dev.jsx +18 -16
- package/lib/edge/index.js +10 -8
- package/lib/edge/index.jsx +18 -16
- package/lib/node/dev.js +10 -8
- package/lib/node/dev.jsx +18 -16
- package/lib/node/index.js +10 -8
- package/lib/node/index.jsx +18 -16
- package/package.json +1 -1
package/lib/browser/dev.js
CHANGED
|
@@ -4,7 +4,7 @@ import { css } from 'solid-styled-components';
|
|
|
4
4
|
|
|
5
5
|
// src/blocks/button/button.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<a>`);
|
|
7
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
7
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button role=button>`);
|
|
8
8
|
function Button(props) {
|
|
9
9
|
return createComponent(Show, {
|
|
10
10
|
get fallback() {
|
|
@@ -12,9 +12,7 @@ function Button(props) {
|
|
|
12
12
|
const _el$2 = _tmpl$2();
|
|
13
13
|
spread(_el$2, mergeProps({
|
|
14
14
|
get ["class"]() {
|
|
15
|
-
return props.attributes.class
|
|
16
|
-
all: "unset"
|
|
17
|
-
});
|
|
15
|
+
return `builder-button ${props.attributes.class}`;
|
|
18
16
|
}
|
|
19
17
|
}, {}, () => props.attributes, {
|
|
20
18
|
get style() {
|
|
@@ -518,7 +516,7 @@ function BlockStyles(props) {
|
|
|
518
516
|
}
|
|
519
517
|
return true;
|
|
520
518
|
}
|
|
521
|
-
function
|
|
519
|
+
function css4() {
|
|
522
520
|
const processedBlock = getProcessedBlock({
|
|
523
521
|
block: props.block,
|
|
524
522
|
localState: props.context.localState,
|
|
@@ -555,12 +553,12 @@ function BlockStyles(props) {
|
|
|
555
553
|
}
|
|
556
554
|
return createComponent(Show, {
|
|
557
555
|
get when() {
|
|
558
|
-
return memo(() => !!(TARGET !== "reactNative" &&
|
|
556
|
+
return memo(() => !!(TARGET !== "reactNative" && css4()))() && canShowBlock();
|
|
559
557
|
},
|
|
560
558
|
get children() {
|
|
561
559
|
return createComponent(inlined_styles_default, {
|
|
562
560
|
get styles() {
|
|
563
|
-
return
|
|
561
|
+
return css4();
|
|
564
562
|
}
|
|
565
563
|
});
|
|
566
564
|
}
|
|
@@ -3307,7 +3305,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3307
3305
|
};
|
|
3308
3306
|
|
|
3309
3307
|
// src/constants/sdk-version.ts
|
|
3310
|
-
var SDK_VERSION = "0.12.
|
|
3308
|
+
var SDK_VERSION = "0.12.3";
|
|
3311
3309
|
|
|
3312
3310
|
// src/functions/register.ts
|
|
3313
3311
|
var registry = {};
|
|
@@ -3820,6 +3818,10 @@ ${getFontCss({
|
|
|
3820
3818
|
customFonts: props.customFonts
|
|
3821
3819
|
})}
|
|
3822
3820
|
|
|
3821
|
+
.builder-button {
|
|
3822
|
+
all: unset;
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3823
3825
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3824
3826
|
margin: 0;
|
|
3825
3827
|
}
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// src/blocks/button/button.tsx
|
|
2
2
|
import { Show } from "solid-js";
|
|
3
|
-
import { css } from "solid-styled-components";
|
|
4
3
|
function Button(props) {
|
|
5
4
|
return <Show
|
|
6
5
|
fallback={<button
|
|
7
|
-
class={props.attributes.class
|
|
8
|
-
|
|
9
|
-
})}
|
|
6
|
+
class={`builder-button ${props.attributes.class}`}
|
|
7
|
+
role="button"
|
|
10
8
|
{...{}}
|
|
11
9
|
{...props.attributes}
|
|
12
10
|
style={props.attributes.style}
|
|
@@ -24,7 +22,7 @@ var button_default = Button;
|
|
|
24
22
|
|
|
25
23
|
// src/blocks/columns/columns.tsx
|
|
26
24
|
import { Show as Show7, For as For4, createSignal as createSignal5 } from "solid-js";
|
|
27
|
-
import { css as
|
|
25
|
+
import { css as css2 } from "solid-styled-components";
|
|
28
26
|
|
|
29
27
|
// src/components/blocks/blocks.tsx
|
|
30
28
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -502,7 +500,7 @@ function BlockStyles(props) {
|
|
|
502
500
|
}
|
|
503
501
|
return true;
|
|
504
502
|
}
|
|
505
|
-
function
|
|
503
|
+
function css4() {
|
|
506
504
|
const processedBlock = getProcessedBlock({
|
|
507
505
|
block: props.block,
|
|
508
506
|
localState: props.context.localState,
|
|
@@ -545,7 +543,7 @@ function BlockStyles(props) {
|
|
|
545
543
|
}) : "";
|
|
546
544
|
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
547
545
|
}
|
|
548
|
-
return <Show2 when={TARGET !== "reactNative" &&
|
|
546
|
+
return <Show2 when={TARGET !== "reactNative" && css4() && canShowBlock()}><Inlined_styles_default styles={css4()} /></Show2>;
|
|
549
547
|
}
|
|
550
548
|
var Block_styles_default = BlockStyles;
|
|
551
549
|
|
|
@@ -906,7 +904,7 @@ var Block_default = Block;
|
|
|
906
904
|
|
|
907
905
|
// src/components/blocks/blocks-wrapper.tsx
|
|
908
906
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
909
|
-
import { css
|
|
907
|
+
import { css } from "solid-styled-components";
|
|
910
908
|
function BlocksWrapper(props) {
|
|
911
909
|
function className() {
|
|
912
910
|
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
@@ -940,7 +938,7 @@ function BlocksWrapper(props) {
|
|
|
940
938
|
}
|
|
941
939
|
}
|
|
942
940
|
return <Dynamic4
|
|
943
|
-
class={className() + " " +
|
|
941
|
+
class={className() + " " + css({
|
|
944
942
|
display: "flex",
|
|
945
943
|
flexDirection: "column",
|
|
946
944
|
alignItems: "stretch"
|
|
@@ -1081,7 +1079,7 @@ function Columns(props) {
|
|
|
1081
1079
|
`;
|
|
1082
1080
|
}
|
|
1083
1081
|
return <div
|
|
1084
|
-
class={`builder-columns ${props.builderBlock.id}-breakpoints ` +
|
|
1082
|
+
class={`builder-columns ${props.builderBlock.id}-breakpoints ` + css2({
|
|
1085
1083
|
display: "flex",
|
|
1086
1084
|
lineHeight: "normal"
|
|
1087
1085
|
})}
|
|
@@ -1092,7 +1090,7 @@ function Columns(props) {
|
|
|
1092
1090
|
<For4 each={props.columns}>{(column, _index) => {
|
|
1093
1091
|
const index = _index();
|
|
1094
1092
|
return <div
|
|
1095
|
-
class={"builder-column " +
|
|
1093
|
+
class={"builder-column " + css2({
|
|
1096
1094
|
display: "flex",
|
|
1097
1095
|
flexDirection: "column",
|
|
1098
1096
|
alignItems: "stretch"
|
|
@@ -1123,7 +1121,7 @@ var fragment_default = FragmentComponent;
|
|
|
1123
1121
|
|
|
1124
1122
|
// src/blocks/image/image.tsx
|
|
1125
1123
|
import { Show as Show8 } from "solid-js";
|
|
1126
|
-
import { css as
|
|
1124
|
+
import { css as css3 } from "solid-styled-components";
|
|
1127
1125
|
|
|
1128
1126
|
// src/blocks/image/image.helpers.ts
|
|
1129
1127
|
function removeProtocol(path) {
|
|
@@ -1214,7 +1212,7 @@ function Image(props) {
|
|
|
1214
1212
|
<picture>
|
|
1215
1213
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
1216
1214
|
<img
|
|
1217
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " " +
|
|
1215
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
|
|
1218
1216
|
opacity: "1",
|
|
1219
1217
|
transition: "opacity 0.2s ease-in-out"
|
|
1220
1218
|
})}
|
|
@@ -1234,7 +1232,7 @@ function Image(props) {
|
|
|
1234
1232
|
<Show8
|
|
1235
1233
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
1236
1234
|
><div
|
|
1237
|
-
class={"builder-image-sizer " +
|
|
1235
|
+
class={"builder-image-sizer " + css3({
|
|
1238
1236
|
width: "100%",
|
|
1239
1237
|
pointerEvents: "none",
|
|
1240
1238
|
fontSize: "0"
|
|
@@ -1245,7 +1243,7 @@ function Image(props) {
|
|
|
1245
1243
|
/></Show8>
|
|
1246
1244
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
1247
1245
|
<Show8 when={!props.fitContent && props.children}><div
|
|
1248
|
-
class={
|
|
1246
|
+
class={css3({
|
|
1249
1247
|
display: "flex",
|
|
1250
1248
|
flexDirection: "column",
|
|
1251
1249
|
alignItems: "stretch",
|
|
@@ -2984,7 +2982,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2984
2982
|
};
|
|
2985
2983
|
|
|
2986
2984
|
// src/constants/sdk-version.ts
|
|
2987
|
-
var SDK_VERSION = "0.12.
|
|
2985
|
+
var SDK_VERSION = "0.12.3";
|
|
2988
2986
|
|
|
2989
2987
|
// src/functions/register.ts
|
|
2990
2988
|
var registry = {};
|
|
@@ -3497,6 +3495,10 @@ ${getFontCss({
|
|
|
3497
3495
|
customFonts: props.customFonts
|
|
3498
3496
|
})}
|
|
3499
3497
|
|
|
3498
|
+
.builder-button {
|
|
3499
|
+
all: unset;
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3500
3502
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3501
3503
|
margin: 0;
|
|
3502
3504
|
}
|
package/lib/browser/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { css } from 'solid-styled-components';
|
|
|
4
4
|
|
|
5
5
|
// src/blocks/button/button.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<a>`);
|
|
7
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
7
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button role=button>`);
|
|
8
8
|
function Button(props) {
|
|
9
9
|
return createComponent(Show, {
|
|
10
10
|
get fallback() {
|
|
@@ -12,9 +12,7 @@ function Button(props) {
|
|
|
12
12
|
const _el$2 = _tmpl$2();
|
|
13
13
|
spread(_el$2, mergeProps({
|
|
14
14
|
get ["class"]() {
|
|
15
|
-
return props.attributes.class
|
|
16
|
-
all: "unset"
|
|
17
|
-
});
|
|
15
|
+
return `builder-button ${props.attributes.class}`;
|
|
18
16
|
}
|
|
19
17
|
}, {}, () => props.attributes, {
|
|
20
18
|
get style() {
|
|
@@ -513,7 +511,7 @@ function BlockStyles(props) {
|
|
|
513
511
|
}
|
|
514
512
|
return true;
|
|
515
513
|
}
|
|
516
|
-
function
|
|
514
|
+
function css4() {
|
|
517
515
|
const processedBlock = getProcessedBlock({
|
|
518
516
|
block: props.block,
|
|
519
517
|
localState: props.context.localState,
|
|
@@ -550,12 +548,12 @@ function BlockStyles(props) {
|
|
|
550
548
|
}
|
|
551
549
|
return createComponent(Show, {
|
|
552
550
|
get when() {
|
|
553
|
-
return memo(() => !!(TARGET !== "reactNative" &&
|
|
551
|
+
return memo(() => !!(TARGET !== "reactNative" && css4()))() && canShowBlock();
|
|
554
552
|
},
|
|
555
553
|
get children() {
|
|
556
554
|
return createComponent(inlined_styles_default, {
|
|
557
555
|
get styles() {
|
|
558
|
-
return
|
|
556
|
+
return css4();
|
|
559
557
|
}
|
|
560
558
|
});
|
|
561
559
|
}
|
|
@@ -3293,7 +3291,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3293
3291
|
};
|
|
3294
3292
|
|
|
3295
3293
|
// src/constants/sdk-version.ts
|
|
3296
|
-
var SDK_VERSION = "0.12.
|
|
3294
|
+
var SDK_VERSION = "0.12.3";
|
|
3297
3295
|
|
|
3298
3296
|
// src/functions/register.ts
|
|
3299
3297
|
var registry = {};
|
|
@@ -3804,6 +3802,10 @@ ${getFontCss({
|
|
|
3804
3802
|
customFonts: props.customFonts
|
|
3805
3803
|
})}
|
|
3806
3804
|
|
|
3805
|
+
.builder-button {
|
|
3806
|
+
all: unset;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3807
3809
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3808
3810
|
margin: 0;
|
|
3809
3811
|
}
|
package/lib/browser/index.jsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// src/blocks/button/button.tsx
|
|
2
2
|
import { Show } from "solid-js";
|
|
3
|
-
import { css } from "solid-styled-components";
|
|
4
3
|
function Button(props) {
|
|
5
4
|
return <Show
|
|
6
5
|
fallback={<button
|
|
7
|
-
class={props.attributes.class
|
|
8
|
-
|
|
9
|
-
})}
|
|
6
|
+
class={`builder-button ${props.attributes.class}`}
|
|
7
|
+
role="button"
|
|
10
8
|
{...{}}
|
|
11
9
|
{...props.attributes}
|
|
12
10
|
style={props.attributes.style}
|
|
@@ -24,7 +22,7 @@ var button_default = Button;
|
|
|
24
22
|
|
|
25
23
|
// src/blocks/columns/columns.tsx
|
|
26
24
|
import { Show as Show7, For as For4, createSignal as createSignal5 } from "solid-js";
|
|
27
|
-
import { css as
|
|
25
|
+
import { css as css2 } from "solid-styled-components";
|
|
28
26
|
|
|
29
27
|
// src/components/blocks/blocks.tsx
|
|
30
28
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -497,7 +495,7 @@ function BlockStyles(props) {
|
|
|
497
495
|
}
|
|
498
496
|
return true;
|
|
499
497
|
}
|
|
500
|
-
function
|
|
498
|
+
function css4() {
|
|
501
499
|
const processedBlock = getProcessedBlock({
|
|
502
500
|
block: props.block,
|
|
503
501
|
localState: props.context.localState,
|
|
@@ -540,7 +538,7 @@ function BlockStyles(props) {
|
|
|
540
538
|
}) : "";
|
|
541
539
|
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
542
540
|
}
|
|
543
|
-
return <Show2 when={TARGET !== "reactNative" &&
|
|
541
|
+
return <Show2 when={TARGET !== "reactNative" && css4() && canShowBlock()}><Inlined_styles_default styles={css4()} /></Show2>;
|
|
544
542
|
}
|
|
545
543
|
var Block_styles_default = BlockStyles;
|
|
546
544
|
|
|
@@ -901,7 +899,7 @@ var Block_default = Block;
|
|
|
901
899
|
|
|
902
900
|
// src/components/blocks/blocks-wrapper.tsx
|
|
903
901
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
904
|
-
import { css
|
|
902
|
+
import { css } from "solid-styled-components";
|
|
905
903
|
function BlocksWrapper(props) {
|
|
906
904
|
function className() {
|
|
907
905
|
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
@@ -935,7 +933,7 @@ function BlocksWrapper(props) {
|
|
|
935
933
|
}
|
|
936
934
|
}
|
|
937
935
|
return <Dynamic4
|
|
938
|
-
class={className() + " " +
|
|
936
|
+
class={className() + " " + css({
|
|
939
937
|
display: "flex",
|
|
940
938
|
flexDirection: "column",
|
|
941
939
|
alignItems: "stretch"
|
|
@@ -1076,7 +1074,7 @@ function Columns(props) {
|
|
|
1076
1074
|
`;
|
|
1077
1075
|
}
|
|
1078
1076
|
return <div
|
|
1079
|
-
class={`builder-columns ${props.builderBlock.id}-breakpoints ` +
|
|
1077
|
+
class={`builder-columns ${props.builderBlock.id}-breakpoints ` + css2({
|
|
1080
1078
|
display: "flex",
|
|
1081
1079
|
lineHeight: "normal"
|
|
1082
1080
|
})}
|
|
@@ -1087,7 +1085,7 @@ function Columns(props) {
|
|
|
1087
1085
|
<For4 each={props.columns}>{(column, _index) => {
|
|
1088
1086
|
const index = _index();
|
|
1089
1087
|
return <div
|
|
1090
|
-
class={"builder-column " +
|
|
1088
|
+
class={"builder-column " + css2({
|
|
1091
1089
|
display: "flex",
|
|
1092
1090
|
flexDirection: "column",
|
|
1093
1091
|
alignItems: "stretch"
|
|
@@ -1118,7 +1116,7 @@ var fragment_default = FragmentComponent;
|
|
|
1118
1116
|
|
|
1119
1117
|
// src/blocks/image/image.tsx
|
|
1120
1118
|
import { Show as Show8 } from "solid-js";
|
|
1121
|
-
import { css as
|
|
1119
|
+
import { css as css3 } from "solid-styled-components";
|
|
1122
1120
|
|
|
1123
1121
|
// src/blocks/image/image.helpers.ts
|
|
1124
1122
|
function removeProtocol(path) {
|
|
@@ -1208,7 +1206,7 @@ function Image(props) {
|
|
|
1208
1206
|
<picture>
|
|
1209
1207
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
1210
1208
|
<img
|
|
1211
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " " +
|
|
1209
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
|
|
1212
1210
|
opacity: "1",
|
|
1213
1211
|
transition: "opacity 0.2s ease-in-out"
|
|
1214
1212
|
})}
|
|
@@ -1228,7 +1226,7 @@ function Image(props) {
|
|
|
1228
1226
|
<Show8
|
|
1229
1227
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
1230
1228
|
><div
|
|
1231
|
-
class={"builder-image-sizer " +
|
|
1229
|
+
class={"builder-image-sizer " + css3({
|
|
1232
1230
|
width: "100%",
|
|
1233
1231
|
pointerEvents: "none",
|
|
1234
1232
|
fontSize: "0"
|
|
@@ -1239,7 +1237,7 @@ function Image(props) {
|
|
|
1239
1237
|
/></Show8>
|
|
1240
1238
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
1241
1239
|
<Show8 when={!props.fitContent && props.children}><div
|
|
1242
|
-
class={
|
|
1240
|
+
class={css3({
|
|
1243
1241
|
display: "flex",
|
|
1244
1242
|
flexDirection: "column",
|
|
1245
1243
|
alignItems: "stretch",
|
|
@@ -2970,7 +2968,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
2970
2968
|
};
|
|
2971
2969
|
|
|
2972
2970
|
// src/constants/sdk-version.ts
|
|
2973
|
-
var SDK_VERSION = "0.12.
|
|
2971
|
+
var SDK_VERSION = "0.12.3";
|
|
2974
2972
|
|
|
2975
2973
|
// src/functions/register.ts
|
|
2976
2974
|
var registry = {};
|
|
@@ -3481,6 +3479,10 @@ ${getFontCss({
|
|
|
3481
3479
|
customFonts: props.customFonts
|
|
3482
3480
|
})}
|
|
3483
3481
|
|
|
3482
|
+
.builder-button {
|
|
3483
|
+
all: unset;
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3484
3486
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3485
3487
|
margin: 0;
|
|
3486
3488
|
}
|
package/lib/edge/dev.js
CHANGED
|
@@ -10,7 +10,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
10
10
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
11
|
});
|
|
12
12
|
var _tmpl$ = /* @__PURE__ */ template(`<a>`);
|
|
13
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
13
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button role=button>`);
|
|
14
14
|
function Button(props) {
|
|
15
15
|
return createComponent(Show, {
|
|
16
16
|
get fallback() {
|
|
@@ -18,9 +18,7 @@ function Button(props) {
|
|
|
18
18
|
const _el$2 = _tmpl$2();
|
|
19
19
|
spread(_el$2, mergeProps({
|
|
20
20
|
get ["class"]() {
|
|
21
|
-
return props.attributes.class
|
|
22
|
-
all: "unset"
|
|
23
|
-
});
|
|
21
|
+
return `builder-button ${props.attributes.class}`;
|
|
24
22
|
}
|
|
25
23
|
}, {}, () => props.attributes, {
|
|
26
24
|
get style() {
|
|
@@ -3671,7 +3669,7 @@ function BlockStyles(props) {
|
|
|
3671
3669
|
}
|
|
3672
3670
|
return true;
|
|
3673
3671
|
}
|
|
3674
|
-
function
|
|
3672
|
+
function css4() {
|
|
3675
3673
|
const processedBlock = getProcessedBlock({
|
|
3676
3674
|
block: props.block,
|
|
3677
3675
|
localState: props.context.localState,
|
|
@@ -3708,12 +3706,12 @@ function BlockStyles(props) {
|
|
|
3708
3706
|
}
|
|
3709
3707
|
return createComponent(Show, {
|
|
3710
3708
|
get when() {
|
|
3711
|
-
return memo(() => !!(TARGET !== "reactNative" &&
|
|
3709
|
+
return memo(() => !!(TARGET !== "reactNative" && css4()))() && canShowBlock();
|
|
3712
3710
|
},
|
|
3713
3711
|
get children() {
|
|
3714
3712
|
return createComponent(inlined_styles_default, {
|
|
3715
3713
|
get styles() {
|
|
3716
|
-
return
|
|
3714
|
+
return css4();
|
|
3717
3715
|
}
|
|
3718
3716
|
});
|
|
3719
3717
|
}
|
|
@@ -6460,7 +6458,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6460
6458
|
};
|
|
6461
6459
|
|
|
6462
6460
|
// src/constants/sdk-version.ts
|
|
6463
|
-
var SDK_VERSION = "0.12.
|
|
6461
|
+
var SDK_VERSION = "0.12.3";
|
|
6464
6462
|
|
|
6465
6463
|
// src/functions/register.ts
|
|
6466
6464
|
var registry = {};
|
|
@@ -6973,6 +6971,10 @@ ${getFontCss({
|
|
|
6973
6971
|
customFonts: props.customFonts
|
|
6974
6972
|
})}
|
|
6975
6973
|
|
|
6974
|
+
.builder-button {
|
|
6975
|
+
all: unset;
|
|
6976
|
+
}
|
|
6977
|
+
|
|
6976
6978
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
6977
6979
|
margin: 0;
|
|
6978
6980
|
}
|
package/lib/edge/dev.jsx
CHANGED
|
@@ -8,13 +8,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
8
8
|
|
|
9
9
|
// src/blocks/button/button.tsx
|
|
10
10
|
import { Show } from "solid-js";
|
|
11
|
-
import { css } from "solid-styled-components";
|
|
12
11
|
function Button(props) {
|
|
13
12
|
return <Show
|
|
14
13
|
fallback={<button
|
|
15
|
-
class={props.attributes.class
|
|
16
|
-
|
|
17
|
-
})}
|
|
14
|
+
class={`builder-button ${props.attributes.class}`}
|
|
15
|
+
role="button"
|
|
18
16
|
{...{}}
|
|
19
17
|
{...props.attributes}
|
|
20
18
|
style={props.attributes.style}
|
|
@@ -32,7 +30,7 @@ var button_default = Button;
|
|
|
32
30
|
|
|
33
31
|
// src/blocks/columns/columns.tsx
|
|
34
32
|
import { Show as Show7, For as For4, createSignal as createSignal5 } from "solid-js";
|
|
35
|
-
import { css as
|
|
33
|
+
import { css as css2 } from "solid-styled-components";
|
|
36
34
|
|
|
37
35
|
// src/components/blocks/blocks.tsx
|
|
38
36
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -3657,7 +3655,7 @@ function BlockStyles(props) {
|
|
|
3657
3655
|
}
|
|
3658
3656
|
return true;
|
|
3659
3657
|
}
|
|
3660
|
-
function
|
|
3658
|
+
function css4() {
|
|
3661
3659
|
const processedBlock = getProcessedBlock({
|
|
3662
3660
|
block: props.block,
|
|
3663
3661
|
localState: props.context.localState,
|
|
@@ -3700,7 +3698,7 @@ function BlockStyles(props) {
|
|
|
3700
3698
|
}) : "";
|
|
3701
3699
|
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
3702
3700
|
}
|
|
3703
|
-
return <Show2 when={TARGET !== "reactNative" &&
|
|
3701
|
+
return <Show2 when={TARGET !== "reactNative" && css4() && canShowBlock()}><Inlined_styles_default styles={css4()} /></Show2>;
|
|
3704
3702
|
}
|
|
3705
3703
|
var Block_styles_default = BlockStyles;
|
|
3706
3704
|
|
|
@@ -4061,7 +4059,7 @@ var Block_default = Block;
|
|
|
4061
4059
|
|
|
4062
4060
|
// src/components/blocks/blocks-wrapper.tsx
|
|
4063
4061
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
4064
|
-
import { css
|
|
4062
|
+
import { css } from "solid-styled-components";
|
|
4065
4063
|
function BlocksWrapper(props) {
|
|
4066
4064
|
function className() {
|
|
4067
4065
|
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
@@ -4095,7 +4093,7 @@ function BlocksWrapper(props) {
|
|
|
4095
4093
|
}
|
|
4096
4094
|
}
|
|
4097
4095
|
return <Dynamic4
|
|
4098
|
-
class={className() + " " +
|
|
4096
|
+
class={className() + " " + css({
|
|
4099
4097
|
display: "flex",
|
|
4100
4098
|
flexDirection: "column",
|
|
4101
4099
|
alignItems: "stretch"
|
|
@@ -4236,7 +4234,7 @@ function Columns(props) {
|
|
|
4236
4234
|
`;
|
|
4237
4235
|
}
|
|
4238
4236
|
return <div
|
|
4239
|
-
class={`builder-columns ${props.builderBlock.id}-breakpoints ` +
|
|
4237
|
+
class={`builder-columns ${props.builderBlock.id}-breakpoints ` + css2({
|
|
4240
4238
|
display: "flex",
|
|
4241
4239
|
lineHeight: "normal"
|
|
4242
4240
|
})}
|
|
@@ -4247,7 +4245,7 @@ function Columns(props) {
|
|
|
4247
4245
|
<For4 each={props.columns}>{(column, _index) => {
|
|
4248
4246
|
const index = _index();
|
|
4249
4247
|
return <div
|
|
4250
|
-
class={"builder-column " +
|
|
4248
|
+
class={"builder-column " + css2({
|
|
4251
4249
|
display: "flex",
|
|
4252
4250
|
flexDirection: "column",
|
|
4253
4251
|
alignItems: "stretch"
|
|
@@ -4278,7 +4276,7 @@ var fragment_default = FragmentComponent;
|
|
|
4278
4276
|
|
|
4279
4277
|
// src/blocks/image/image.tsx
|
|
4280
4278
|
import { Show as Show8 } from "solid-js";
|
|
4281
|
-
import { css as
|
|
4279
|
+
import { css as css3 } from "solid-styled-components";
|
|
4282
4280
|
|
|
4283
4281
|
// src/blocks/image/image.helpers.ts
|
|
4284
4282
|
function removeProtocol(path) {
|
|
@@ -4369,7 +4367,7 @@ function Image(props) {
|
|
|
4369
4367
|
<picture>
|
|
4370
4368
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
4371
4369
|
<img
|
|
4372
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " " +
|
|
4370
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
|
|
4373
4371
|
opacity: "1",
|
|
4374
4372
|
transition: "opacity 0.2s ease-in-out"
|
|
4375
4373
|
})}
|
|
@@ -4389,7 +4387,7 @@ function Image(props) {
|
|
|
4389
4387
|
<Show8
|
|
4390
4388
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
4391
4389
|
><div
|
|
4392
|
-
class={"builder-image-sizer " +
|
|
4390
|
+
class={"builder-image-sizer " + css3({
|
|
4393
4391
|
width: "100%",
|
|
4394
4392
|
pointerEvents: "none",
|
|
4395
4393
|
fontSize: "0"
|
|
@@ -4400,7 +4398,7 @@ function Image(props) {
|
|
|
4400
4398
|
/></Show8>
|
|
4401
4399
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
4402
4400
|
<Show8 when={!props.fitContent && props.children}><div
|
|
4403
|
-
class={
|
|
4401
|
+
class={css3({
|
|
4404
4402
|
display: "flex",
|
|
4405
4403
|
flexDirection: "column",
|
|
4406
4404
|
alignItems: "stretch",
|
|
@@ -6139,7 +6137,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6139
6137
|
};
|
|
6140
6138
|
|
|
6141
6139
|
// src/constants/sdk-version.ts
|
|
6142
|
-
var SDK_VERSION = "0.12.
|
|
6140
|
+
var SDK_VERSION = "0.12.3";
|
|
6143
6141
|
|
|
6144
6142
|
// src/functions/register.ts
|
|
6145
6143
|
var registry = {};
|
|
@@ -6652,6 +6650,10 @@ ${getFontCss({
|
|
|
6652
6650
|
customFonts: props.customFonts
|
|
6653
6651
|
})}
|
|
6654
6652
|
|
|
6653
|
+
.builder-button {
|
|
6654
|
+
all: unset;
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6655
6657
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
6656
6658
|
margin: 0;
|
|
6657
6659
|
}
|
package/lib/edge/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
10
10
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
11
|
});
|
|
12
12
|
var _tmpl$ = /* @__PURE__ */ template(`<a>`);
|
|
13
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
13
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button role=button>`);
|
|
14
14
|
function Button(props) {
|
|
15
15
|
return createComponent(Show, {
|
|
16
16
|
get fallback() {
|
|
@@ -18,9 +18,7 @@ function Button(props) {
|
|
|
18
18
|
const _el$2 = _tmpl$2();
|
|
19
19
|
spread(_el$2, mergeProps({
|
|
20
20
|
get ["class"]() {
|
|
21
|
-
return props.attributes.class
|
|
22
|
-
all: "unset"
|
|
23
|
-
});
|
|
21
|
+
return `builder-button ${props.attributes.class}`;
|
|
24
22
|
}
|
|
25
23
|
}, {}, () => props.attributes, {
|
|
26
24
|
get style() {
|
|
@@ -3666,7 +3664,7 @@ function BlockStyles(props) {
|
|
|
3666
3664
|
}
|
|
3667
3665
|
return true;
|
|
3668
3666
|
}
|
|
3669
|
-
function
|
|
3667
|
+
function css4() {
|
|
3670
3668
|
const processedBlock = getProcessedBlock({
|
|
3671
3669
|
block: props.block,
|
|
3672
3670
|
localState: props.context.localState,
|
|
@@ -3703,12 +3701,12 @@ function BlockStyles(props) {
|
|
|
3703
3701
|
}
|
|
3704
3702
|
return createComponent(Show, {
|
|
3705
3703
|
get when() {
|
|
3706
|
-
return memo(() => !!(TARGET !== "reactNative" &&
|
|
3704
|
+
return memo(() => !!(TARGET !== "reactNative" && css4()))() && canShowBlock();
|
|
3707
3705
|
},
|
|
3708
3706
|
get children() {
|
|
3709
3707
|
return createComponent(inlined_styles_default, {
|
|
3710
3708
|
get styles() {
|
|
3711
|
-
return
|
|
3709
|
+
return css4();
|
|
3712
3710
|
}
|
|
3713
3711
|
});
|
|
3714
3712
|
}
|
|
@@ -6446,7 +6444,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6446
6444
|
};
|
|
6447
6445
|
|
|
6448
6446
|
// src/constants/sdk-version.ts
|
|
6449
|
-
var SDK_VERSION = "0.12.
|
|
6447
|
+
var SDK_VERSION = "0.12.3";
|
|
6450
6448
|
|
|
6451
6449
|
// src/functions/register.ts
|
|
6452
6450
|
var registry = {};
|
|
@@ -6957,6 +6955,10 @@ ${getFontCss({
|
|
|
6957
6955
|
customFonts: props.customFonts
|
|
6958
6956
|
})}
|
|
6959
6957
|
|
|
6958
|
+
.builder-button {
|
|
6959
|
+
all: unset;
|
|
6960
|
+
}
|
|
6961
|
+
|
|
6960
6962
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
6961
6963
|
margin: 0;
|
|
6962
6964
|
}
|
package/lib/edge/index.jsx
CHANGED
|
@@ -8,13 +8,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
8
8
|
|
|
9
9
|
// src/blocks/button/button.tsx
|
|
10
10
|
import { Show } from "solid-js";
|
|
11
|
-
import { css } from "solid-styled-components";
|
|
12
11
|
function Button(props) {
|
|
13
12
|
return <Show
|
|
14
13
|
fallback={<button
|
|
15
|
-
class={props.attributes.class
|
|
16
|
-
|
|
17
|
-
})}
|
|
14
|
+
class={`builder-button ${props.attributes.class}`}
|
|
15
|
+
role="button"
|
|
18
16
|
{...{}}
|
|
19
17
|
{...props.attributes}
|
|
20
18
|
style={props.attributes.style}
|
|
@@ -32,7 +30,7 @@ var button_default = Button;
|
|
|
32
30
|
|
|
33
31
|
// src/blocks/columns/columns.tsx
|
|
34
32
|
import { Show as Show7, For as For4, createSignal as createSignal5 } from "solid-js";
|
|
35
|
-
import { css as
|
|
33
|
+
import { css as css2 } from "solid-styled-components";
|
|
36
34
|
|
|
37
35
|
// src/components/blocks/blocks.tsx
|
|
38
36
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -3652,7 +3650,7 @@ function BlockStyles(props) {
|
|
|
3652
3650
|
}
|
|
3653
3651
|
return true;
|
|
3654
3652
|
}
|
|
3655
|
-
function
|
|
3653
|
+
function css4() {
|
|
3656
3654
|
const processedBlock = getProcessedBlock({
|
|
3657
3655
|
block: props.block,
|
|
3658
3656
|
localState: props.context.localState,
|
|
@@ -3695,7 +3693,7 @@ function BlockStyles(props) {
|
|
|
3695
3693
|
}) : "";
|
|
3696
3694
|
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
3697
3695
|
}
|
|
3698
|
-
return <Show2 when={TARGET !== "reactNative" &&
|
|
3696
|
+
return <Show2 when={TARGET !== "reactNative" && css4() && canShowBlock()}><Inlined_styles_default styles={css4()} /></Show2>;
|
|
3699
3697
|
}
|
|
3700
3698
|
var Block_styles_default = BlockStyles;
|
|
3701
3699
|
|
|
@@ -4056,7 +4054,7 @@ var Block_default = Block;
|
|
|
4056
4054
|
|
|
4057
4055
|
// src/components/blocks/blocks-wrapper.tsx
|
|
4058
4056
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
4059
|
-
import { css
|
|
4057
|
+
import { css } from "solid-styled-components";
|
|
4060
4058
|
function BlocksWrapper(props) {
|
|
4061
4059
|
function className() {
|
|
4062
4060
|
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
@@ -4090,7 +4088,7 @@ function BlocksWrapper(props) {
|
|
|
4090
4088
|
}
|
|
4091
4089
|
}
|
|
4092
4090
|
return <Dynamic4
|
|
4093
|
-
class={className() + " " +
|
|
4091
|
+
class={className() + " " + css({
|
|
4094
4092
|
display: "flex",
|
|
4095
4093
|
flexDirection: "column",
|
|
4096
4094
|
alignItems: "stretch"
|
|
@@ -4231,7 +4229,7 @@ function Columns(props) {
|
|
|
4231
4229
|
`;
|
|
4232
4230
|
}
|
|
4233
4231
|
return <div
|
|
4234
|
-
class={`builder-columns ${props.builderBlock.id}-breakpoints ` +
|
|
4232
|
+
class={`builder-columns ${props.builderBlock.id}-breakpoints ` + css2({
|
|
4235
4233
|
display: "flex",
|
|
4236
4234
|
lineHeight: "normal"
|
|
4237
4235
|
})}
|
|
@@ -4242,7 +4240,7 @@ function Columns(props) {
|
|
|
4242
4240
|
<For4 each={props.columns}>{(column, _index) => {
|
|
4243
4241
|
const index = _index();
|
|
4244
4242
|
return <div
|
|
4245
|
-
class={"builder-column " +
|
|
4243
|
+
class={"builder-column " + css2({
|
|
4246
4244
|
display: "flex",
|
|
4247
4245
|
flexDirection: "column",
|
|
4248
4246
|
alignItems: "stretch"
|
|
@@ -4273,7 +4271,7 @@ var fragment_default = FragmentComponent;
|
|
|
4273
4271
|
|
|
4274
4272
|
// src/blocks/image/image.tsx
|
|
4275
4273
|
import { Show as Show8 } from "solid-js";
|
|
4276
|
-
import { css as
|
|
4274
|
+
import { css as css3 } from "solid-styled-components";
|
|
4277
4275
|
|
|
4278
4276
|
// src/blocks/image/image.helpers.ts
|
|
4279
4277
|
function removeProtocol(path) {
|
|
@@ -4363,7 +4361,7 @@ function Image(props) {
|
|
|
4363
4361
|
<picture>
|
|
4364
4362
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
4365
4363
|
<img
|
|
4366
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " " +
|
|
4364
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
|
|
4367
4365
|
opacity: "1",
|
|
4368
4366
|
transition: "opacity 0.2s ease-in-out"
|
|
4369
4367
|
})}
|
|
@@ -4383,7 +4381,7 @@ function Image(props) {
|
|
|
4383
4381
|
<Show8
|
|
4384
4382
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
4385
4383
|
><div
|
|
4386
|
-
class={"builder-image-sizer " +
|
|
4384
|
+
class={"builder-image-sizer " + css3({
|
|
4387
4385
|
width: "100%",
|
|
4388
4386
|
pointerEvents: "none",
|
|
4389
4387
|
fontSize: "0"
|
|
@@ -4394,7 +4392,7 @@ function Image(props) {
|
|
|
4394
4392
|
/></Show8>
|
|
4395
4393
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
4396
4394
|
<Show8 when={!props.fitContent && props.children}><div
|
|
4397
|
-
class={
|
|
4395
|
+
class={css3({
|
|
4398
4396
|
display: "flex",
|
|
4399
4397
|
flexDirection: "column",
|
|
4400
4398
|
alignItems: "stretch",
|
|
@@ -6125,7 +6123,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
6125
6123
|
};
|
|
6126
6124
|
|
|
6127
6125
|
// src/constants/sdk-version.ts
|
|
6128
|
-
var SDK_VERSION = "0.12.
|
|
6126
|
+
var SDK_VERSION = "0.12.3";
|
|
6129
6127
|
|
|
6130
6128
|
// src/functions/register.ts
|
|
6131
6129
|
var registry = {};
|
|
@@ -6636,6 +6634,10 @@ ${getFontCss({
|
|
|
6636
6634
|
customFonts: props.customFonts
|
|
6637
6635
|
})}
|
|
6638
6636
|
|
|
6637
|
+
.builder-button {
|
|
6638
|
+
all: unset;
|
|
6639
|
+
}
|
|
6640
|
+
|
|
6639
6641
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
6640
6642
|
margin: 0;
|
|
6641
6643
|
}
|
package/lib/node/dev.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createRequire } from 'node:module';
|
|
|
5
5
|
|
|
6
6
|
// src/blocks/button/button.tsx
|
|
7
7
|
var _tmpl$ = /* @__PURE__ */ template(`<a>`);
|
|
8
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
8
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button role=button>`);
|
|
9
9
|
function Button(props) {
|
|
10
10
|
return createComponent(Show, {
|
|
11
11
|
get fallback() {
|
|
@@ -13,9 +13,7 @@ function Button(props) {
|
|
|
13
13
|
const _el$2 = _tmpl$2();
|
|
14
14
|
spread(_el$2, mergeProps({
|
|
15
15
|
get ["class"]() {
|
|
16
|
-
return props.attributes.class
|
|
17
|
-
all: "unset"
|
|
18
|
-
});
|
|
16
|
+
return `builder-button ${props.attributes.class}`;
|
|
19
17
|
}
|
|
20
18
|
}, {}, () => props.attributes, {
|
|
21
19
|
get style() {
|
|
@@ -642,7 +640,7 @@ function BlockStyles(props) {
|
|
|
642
640
|
}
|
|
643
641
|
return true;
|
|
644
642
|
}
|
|
645
|
-
function
|
|
643
|
+
function css4() {
|
|
646
644
|
const processedBlock = getProcessedBlock({
|
|
647
645
|
block: props.block,
|
|
648
646
|
localState: props.context.localState,
|
|
@@ -679,12 +677,12 @@ function BlockStyles(props) {
|
|
|
679
677
|
}
|
|
680
678
|
return createComponent(Show, {
|
|
681
679
|
get when() {
|
|
682
|
-
return memo(() => !!(TARGET !== "reactNative" &&
|
|
680
|
+
return memo(() => !!(TARGET !== "reactNative" && css4()))() && canShowBlock();
|
|
683
681
|
},
|
|
684
682
|
get children() {
|
|
685
683
|
return createComponent(inlined_styles_default, {
|
|
686
684
|
get styles() {
|
|
687
|
-
return
|
|
685
|
+
return css4();
|
|
688
686
|
}
|
|
689
687
|
});
|
|
690
688
|
}
|
|
@@ -3431,7 +3429,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3431
3429
|
};
|
|
3432
3430
|
|
|
3433
3431
|
// src/constants/sdk-version.ts
|
|
3434
|
-
var SDK_VERSION = "0.12.
|
|
3432
|
+
var SDK_VERSION = "0.12.3";
|
|
3435
3433
|
|
|
3436
3434
|
// src/functions/register.ts
|
|
3437
3435
|
var registry = {};
|
|
@@ -3944,6 +3942,10 @@ ${getFontCss({
|
|
|
3944
3942
|
customFonts: props.customFonts
|
|
3945
3943
|
})}
|
|
3946
3944
|
|
|
3945
|
+
.builder-button {
|
|
3946
|
+
all: unset;
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3947
3949
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3948
3950
|
margin: 0;
|
|
3949
3951
|
}
|
package/lib/node/dev.jsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// src/blocks/button/button.tsx
|
|
2
2
|
import { Show } from "solid-js";
|
|
3
|
-
import { css } from "solid-styled-components";
|
|
4
3
|
function Button(props) {
|
|
5
4
|
return <Show
|
|
6
5
|
fallback={<button
|
|
7
|
-
class={props.attributes.class
|
|
8
|
-
|
|
9
|
-
})}
|
|
6
|
+
class={`builder-button ${props.attributes.class}`}
|
|
7
|
+
role="button"
|
|
10
8
|
{...{}}
|
|
11
9
|
{...props.attributes}
|
|
12
10
|
style={props.attributes.style}
|
|
@@ -24,7 +22,7 @@ var button_default = Button;
|
|
|
24
22
|
|
|
25
23
|
// src/blocks/columns/columns.tsx
|
|
26
24
|
import { Show as Show7, For as For4, createSignal as createSignal5 } from "solid-js";
|
|
27
|
-
import { css as
|
|
25
|
+
import { css as css2 } from "solid-styled-components";
|
|
28
26
|
|
|
29
27
|
// src/components/blocks/blocks.tsx
|
|
30
28
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -628,7 +626,7 @@ function BlockStyles(props) {
|
|
|
628
626
|
}
|
|
629
627
|
return true;
|
|
630
628
|
}
|
|
631
|
-
function
|
|
629
|
+
function css4() {
|
|
632
630
|
const processedBlock = getProcessedBlock({
|
|
633
631
|
block: props.block,
|
|
634
632
|
localState: props.context.localState,
|
|
@@ -671,7 +669,7 @@ function BlockStyles(props) {
|
|
|
671
669
|
}) : "";
|
|
672
670
|
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
673
671
|
}
|
|
674
|
-
return <Show2 when={TARGET !== "reactNative" &&
|
|
672
|
+
return <Show2 when={TARGET !== "reactNative" && css4() && canShowBlock()}><Inlined_styles_default styles={css4()} /></Show2>;
|
|
675
673
|
}
|
|
676
674
|
var Block_styles_default = BlockStyles;
|
|
677
675
|
|
|
@@ -1032,7 +1030,7 @@ var Block_default = Block;
|
|
|
1032
1030
|
|
|
1033
1031
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1034
1032
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1035
|
-
import { css
|
|
1033
|
+
import { css } from "solid-styled-components";
|
|
1036
1034
|
function BlocksWrapper(props) {
|
|
1037
1035
|
function className() {
|
|
1038
1036
|
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
@@ -1066,7 +1064,7 @@ function BlocksWrapper(props) {
|
|
|
1066
1064
|
}
|
|
1067
1065
|
}
|
|
1068
1066
|
return <Dynamic4
|
|
1069
|
-
class={className() + " " +
|
|
1067
|
+
class={className() + " " + css({
|
|
1070
1068
|
display: "flex",
|
|
1071
1069
|
flexDirection: "column",
|
|
1072
1070
|
alignItems: "stretch"
|
|
@@ -1207,7 +1205,7 @@ function Columns(props) {
|
|
|
1207
1205
|
`;
|
|
1208
1206
|
}
|
|
1209
1207
|
return <div
|
|
1210
|
-
class={`builder-columns ${props.builderBlock.id}-breakpoints ` +
|
|
1208
|
+
class={`builder-columns ${props.builderBlock.id}-breakpoints ` + css2({
|
|
1211
1209
|
display: "flex",
|
|
1212
1210
|
lineHeight: "normal"
|
|
1213
1211
|
})}
|
|
@@ -1218,7 +1216,7 @@ function Columns(props) {
|
|
|
1218
1216
|
<For4 each={props.columns}>{(column, _index) => {
|
|
1219
1217
|
const index = _index();
|
|
1220
1218
|
return <div
|
|
1221
|
-
class={"builder-column " +
|
|
1219
|
+
class={"builder-column " + css2({
|
|
1222
1220
|
display: "flex",
|
|
1223
1221
|
flexDirection: "column",
|
|
1224
1222
|
alignItems: "stretch"
|
|
@@ -1249,7 +1247,7 @@ var fragment_default = FragmentComponent;
|
|
|
1249
1247
|
|
|
1250
1248
|
// src/blocks/image/image.tsx
|
|
1251
1249
|
import { Show as Show8 } from "solid-js";
|
|
1252
|
-
import { css as
|
|
1250
|
+
import { css as css3 } from "solid-styled-components";
|
|
1253
1251
|
|
|
1254
1252
|
// src/blocks/image/image.helpers.ts
|
|
1255
1253
|
function removeProtocol(path) {
|
|
@@ -1340,7 +1338,7 @@ function Image(props) {
|
|
|
1340
1338
|
<picture>
|
|
1341
1339
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
1342
1340
|
<img
|
|
1343
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " " +
|
|
1341
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
|
|
1344
1342
|
opacity: "1",
|
|
1345
1343
|
transition: "opacity 0.2s ease-in-out"
|
|
1346
1344
|
})}
|
|
@@ -1360,7 +1358,7 @@ function Image(props) {
|
|
|
1360
1358
|
<Show8
|
|
1361
1359
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
1362
1360
|
><div
|
|
1363
|
-
class={"builder-image-sizer " +
|
|
1361
|
+
class={"builder-image-sizer " + css3({
|
|
1364
1362
|
width: "100%",
|
|
1365
1363
|
pointerEvents: "none",
|
|
1366
1364
|
fontSize: "0"
|
|
@@ -1371,7 +1369,7 @@ function Image(props) {
|
|
|
1371
1369
|
/></Show8>
|
|
1372
1370
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
1373
1371
|
<Show8 when={!props.fitContent && props.children}><div
|
|
1374
|
-
class={
|
|
1372
|
+
class={css3({
|
|
1375
1373
|
display: "flex",
|
|
1376
1374
|
flexDirection: "column",
|
|
1377
1375
|
alignItems: "stretch",
|
|
@@ -3110,7 +3108,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3110
3108
|
};
|
|
3111
3109
|
|
|
3112
3110
|
// src/constants/sdk-version.ts
|
|
3113
|
-
var SDK_VERSION = "0.12.
|
|
3111
|
+
var SDK_VERSION = "0.12.3";
|
|
3114
3112
|
|
|
3115
3113
|
// src/functions/register.ts
|
|
3116
3114
|
var registry = {};
|
|
@@ -3623,6 +3621,10 @@ ${getFontCss({
|
|
|
3623
3621
|
customFonts: props.customFonts
|
|
3624
3622
|
})}
|
|
3625
3623
|
|
|
3624
|
+
.builder-button {
|
|
3625
|
+
all: unset;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3626
3628
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3627
3629
|
margin: 0;
|
|
3628
3630
|
}
|
package/lib/node/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createRequire } from 'node:module';
|
|
|
5
5
|
|
|
6
6
|
// src/blocks/button/button.tsx
|
|
7
7
|
var _tmpl$ = /* @__PURE__ */ template(`<a>`);
|
|
8
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
8
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button role=button>`);
|
|
9
9
|
function Button(props) {
|
|
10
10
|
return createComponent(Show, {
|
|
11
11
|
get fallback() {
|
|
@@ -13,9 +13,7 @@ function Button(props) {
|
|
|
13
13
|
const _el$2 = _tmpl$2();
|
|
14
14
|
spread(_el$2, mergeProps({
|
|
15
15
|
get ["class"]() {
|
|
16
|
-
return props.attributes.class
|
|
17
|
-
all: "unset"
|
|
18
|
-
});
|
|
16
|
+
return `builder-button ${props.attributes.class}`;
|
|
19
17
|
}
|
|
20
18
|
}, {}, () => props.attributes, {
|
|
21
19
|
get style() {
|
|
@@ -636,7 +634,7 @@ function BlockStyles(props) {
|
|
|
636
634
|
}
|
|
637
635
|
return true;
|
|
638
636
|
}
|
|
639
|
-
function
|
|
637
|
+
function css4() {
|
|
640
638
|
const processedBlock = getProcessedBlock({
|
|
641
639
|
block: props.block,
|
|
642
640
|
localState: props.context.localState,
|
|
@@ -673,12 +671,12 @@ function BlockStyles(props) {
|
|
|
673
671
|
}
|
|
674
672
|
return createComponent(Show, {
|
|
675
673
|
get when() {
|
|
676
|
-
return memo(() => !!(TARGET !== "reactNative" &&
|
|
674
|
+
return memo(() => !!(TARGET !== "reactNative" && css4()))() && canShowBlock();
|
|
677
675
|
},
|
|
678
676
|
get children() {
|
|
679
677
|
return createComponent(inlined_styles_default, {
|
|
680
678
|
get styles() {
|
|
681
|
-
return
|
|
679
|
+
return css4();
|
|
682
680
|
}
|
|
683
681
|
});
|
|
684
682
|
}
|
|
@@ -3416,7 +3414,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3416
3414
|
};
|
|
3417
3415
|
|
|
3418
3416
|
// src/constants/sdk-version.ts
|
|
3419
|
-
var SDK_VERSION = "0.12.
|
|
3417
|
+
var SDK_VERSION = "0.12.3";
|
|
3420
3418
|
|
|
3421
3419
|
// src/functions/register.ts
|
|
3422
3420
|
var registry = {};
|
|
@@ -3927,6 +3925,10 @@ ${getFontCss({
|
|
|
3927
3925
|
customFonts: props.customFonts
|
|
3928
3926
|
})}
|
|
3929
3927
|
|
|
3928
|
+
.builder-button {
|
|
3929
|
+
all: unset;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3930
3932
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3931
3933
|
margin: 0;
|
|
3932
3934
|
}
|
package/lib/node/index.jsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// src/blocks/button/button.tsx
|
|
2
2
|
import { Show } from "solid-js";
|
|
3
|
-
import { css } from "solid-styled-components";
|
|
4
3
|
function Button(props) {
|
|
5
4
|
return <Show
|
|
6
5
|
fallback={<button
|
|
7
|
-
class={props.attributes.class
|
|
8
|
-
|
|
9
|
-
})}
|
|
6
|
+
class={`builder-button ${props.attributes.class}`}
|
|
7
|
+
role="button"
|
|
10
8
|
{...{}}
|
|
11
9
|
{...props.attributes}
|
|
12
10
|
style={props.attributes.style}
|
|
@@ -24,7 +22,7 @@ var button_default = Button;
|
|
|
24
22
|
|
|
25
23
|
// src/blocks/columns/columns.tsx
|
|
26
24
|
import { Show as Show7, For as For4, createSignal as createSignal5 } from "solid-js";
|
|
27
|
-
import { css as
|
|
25
|
+
import { css as css2 } from "solid-styled-components";
|
|
28
26
|
|
|
29
27
|
// src/components/blocks/blocks.tsx
|
|
30
28
|
import { useContext, Show as Show6, For as For3 } from "solid-js";
|
|
@@ -622,7 +620,7 @@ function BlockStyles(props) {
|
|
|
622
620
|
}
|
|
623
621
|
return true;
|
|
624
622
|
}
|
|
625
|
-
function
|
|
623
|
+
function css4() {
|
|
626
624
|
const processedBlock = getProcessedBlock({
|
|
627
625
|
block: props.block,
|
|
628
626
|
localState: props.context.localState,
|
|
@@ -665,7 +663,7 @@ function BlockStyles(props) {
|
|
|
665
663
|
}) : "";
|
|
666
664
|
return [largeStylesClass, mediumStylesClass, smallStylesClass].join(" ");
|
|
667
665
|
}
|
|
668
|
-
return <Show2 when={TARGET !== "reactNative" &&
|
|
666
|
+
return <Show2 when={TARGET !== "reactNative" && css4() && canShowBlock()}><Inlined_styles_default styles={css4()} /></Show2>;
|
|
669
667
|
}
|
|
670
668
|
var Block_styles_default = BlockStyles;
|
|
671
669
|
|
|
@@ -1026,7 +1024,7 @@ var Block_default = Block;
|
|
|
1026
1024
|
|
|
1027
1025
|
// src/components/blocks/blocks-wrapper.tsx
|
|
1028
1026
|
import { Dynamic as Dynamic4 } from "solid-js/web";
|
|
1029
|
-
import { css
|
|
1027
|
+
import { css } from "solid-styled-components";
|
|
1030
1028
|
function BlocksWrapper(props) {
|
|
1031
1029
|
function className() {
|
|
1032
1030
|
return "builder-blocks" + (!props.blocks?.length ? " no-blocks" : "");
|
|
@@ -1060,7 +1058,7 @@ function BlocksWrapper(props) {
|
|
|
1060
1058
|
}
|
|
1061
1059
|
}
|
|
1062
1060
|
return <Dynamic4
|
|
1063
|
-
class={className() + " " +
|
|
1061
|
+
class={className() + " " + css({
|
|
1064
1062
|
display: "flex",
|
|
1065
1063
|
flexDirection: "column",
|
|
1066
1064
|
alignItems: "stretch"
|
|
@@ -1201,7 +1199,7 @@ function Columns(props) {
|
|
|
1201
1199
|
`;
|
|
1202
1200
|
}
|
|
1203
1201
|
return <div
|
|
1204
|
-
class={`builder-columns ${props.builderBlock.id}-breakpoints ` +
|
|
1202
|
+
class={`builder-columns ${props.builderBlock.id}-breakpoints ` + css2({
|
|
1205
1203
|
display: "flex",
|
|
1206
1204
|
lineHeight: "normal"
|
|
1207
1205
|
})}
|
|
@@ -1212,7 +1210,7 @@ function Columns(props) {
|
|
|
1212
1210
|
<For4 each={props.columns}>{(column, _index) => {
|
|
1213
1211
|
const index = _index();
|
|
1214
1212
|
return <div
|
|
1215
|
-
class={"builder-column " +
|
|
1213
|
+
class={"builder-column " + css2({
|
|
1216
1214
|
display: "flex",
|
|
1217
1215
|
flexDirection: "column",
|
|
1218
1216
|
alignItems: "stretch"
|
|
@@ -1243,7 +1241,7 @@ var fragment_default = FragmentComponent;
|
|
|
1243
1241
|
|
|
1244
1242
|
// src/blocks/image/image.tsx
|
|
1245
1243
|
import { Show as Show8 } from "solid-js";
|
|
1246
|
-
import { css as
|
|
1244
|
+
import { css as css3 } from "solid-styled-components";
|
|
1247
1245
|
|
|
1248
1246
|
// src/blocks/image/image.helpers.ts
|
|
1249
1247
|
function removeProtocol(path) {
|
|
@@ -1333,7 +1331,7 @@ function Image(props) {
|
|
|
1333
1331
|
<picture>
|
|
1334
1332
|
<Show8 when={webpSrcSet()}><source type="image/webp" srcset={webpSrcSet()} /></Show8>
|
|
1335
1333
|
<img
|
|
1336
|
-
class={"builder-image" + (props.className ? " " + props.className : "") + " " +
|
|
1334
|
+
class={"builder-image" + (props.className ? " " + props.className : "") + " " + css3({
|
|
1337
1335
|
opacity: "1",
|
|
1338
1336
|
transition: "opacity 0.2s ease-in-out"
|
|
1339
1337
|
})}
|
|
@@ -1353,7 +1351,7 @@ function Image(props) {
|
|
|
1353
1351
|
<Show8
|
|
1354
1352
|
when={props.aspectRatio && !(props.builderBlock?.children?.length && props.fitContent)}
|
|
1355
1353
|
><div
|
|
1356
|
-
class={"builder-image-sizer " +
|
|
1354
|
+
class={"builder-image-sizer " + css3({
|
|
1357
1355
|
width: "100%",
|
|
1358
1356
|
pointerEvents: "none",
|
|
1359
1357
|
fontSize: "0"
|
|
@@ -1364,7 +1362,7 @@ function Image(props) {
|
|
|
1364
1362
|
/></Show8>
|
|
1365
1363
|
<Show8 when={props.builderBlock?.children?.length && props.fitContent}>{props.children}</Show8>
|
|
1366
1364
|
<Show8 when={!props.fitContent && props.children}><div
|
|
1367
|
-
class={
|
|
1365
|
+
class={css3({
|
|
1368
1366
|
display: "flex",
|
|
1369
1367
|
flexDirection: "column",
|
|
1370
1368
|
alignItems: "stretch",
|
|
@@ -3095,7 +3093,7 @@ var getInteractionPropertiesForEvent = (event) => {
|
|
|
3095
3093
|
};
|
|
3096
3094
|
|
|
3097
3095
|
// src/constants/sdk-version.ts
|
|
3098
|
-
var SDK_VERSION = "0.12.
|
|
3096
|
+
var SDK_VERSION = "0.12.3";
|
|
3099
3097
|
|
|
3100
3098
|
// src/functions/register.ts
|
|
3101
3099
|
var registry = {};
|
|
@@ -3606,6 +3604,10 @@ ${getFontCss({
|
|
|
3606
3604
|
customFonts: props.customFonts
|
|
3607
3605
|
})}
|
|
3608
3606
|
|
|
3607
|
+
.builder-button {
|
|
3608
|
+
all: unset;
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3609
3611
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3610
3612
|
margin: 0;
|
|
3611
3613
|
}
|