@builder.io/sdk-solid 0.2.2 → 0.2.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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/blocks/columns/columns.jsx +22 -22
- package/src/components/render-block/render-repeated-block.jsx +1 -0
- package/src/components/render-content/components/render-styles.jsx +8 -8
- package/src/components/render-content/render-content.jsx +1 -0
- package/src/functions/get-content/index.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -99,30 +99,30 @@ function Columns(props) {
|
|
|
99
99
|
|
|
100
100
|
function columnsStyles() {
|
|
101
101
|
return `
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
@media (max-width: ${getWidthForBreakpointSize("medium")}px) {
|
|
103
|
+
.${props.builderBlock.id}-breakpoints {
|
|
104
|
+
flex-direction: var(--flex-dir-tablet);
|
|
105
|
+
align-items: stretch;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
109
|
+
width: var(--column-width-tablet) !important;
|
|
110
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
111
|
+
}
|
|
106
112
|
}
|
|
107
113
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
121
|
-
width: var(--column-width-mobile) !important;
|
|
122
|
-
margin-left: var(--column-margin-left-mobile) !important;
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
`;
|
|
114
|
+
@media (max-width: ${getWidthForBreakpointSize("small")}px) {
|
|
115
|
+
.${props.builderBlock.id}-breakpoints {
|
|
116
|
+
flex-direction: var(--flex-dir);
|
|
117
|
+
align-items: stretch;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
121
|
+
width: var(--column-width-mobile) !important;
|
|
122
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
`;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
const builderContext = useContext(BuilderContext);
|
|
@@ -12,6 +12,7 @@ function RenderRepeatedBlock(props) {
|
|
|
12
12
|
apiKey: props.repeatContext.apiKey,
|
|
13
13
|
registeredComponents: props.repeatContext.registeredComponents,
|
|
14
14
|
inheritedStyles: props.repeatContext.inheritedStyles,
|
|
15
|
+
apiVersion: props.repeatContext.apiVersion,
|
|
15
16
|
}}
|
|
16
17
|
>
|
|
17
18
|
<RenderBlock
|
|
@@ -15,16 +15,16 @@ ${getFontCss({
|
|
|
15
15
|
})}
|
|
16
16
|
|
|
17
17
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
18
|
-
margin: 0;
|
|
18
|
+
margin: 0;
|
|
19
19
|
}
|
|
20
20
|
.builder-text > p, .builder-text > .builder-paragraph {
|
|
21
|
-
color: inherit;
|
|
22
|
-
line-height: inherit;
|
|
23
|
-
letter-spacing: inherit;
|
|
24
|
-
font-weight: inherit;
|
|
25
|
-
font-size: inherit;
|
|
26
|
-
text-align: inherit;
|
|
27
|
-
font-family: inherit;
|
|
21
|
+
color: inherit;
|
|
22
|
+
line-height: inherit;
|
|
23
|
+
letter-spacing: inherit;
|
|
24
|
+
font-weight: inherit;
|
|
25
|
+
font-size: inherit;
|
|
26
|
+
text-align: inherit;
|
|
27
|
+
font-family: inherit;
|
|
28
28
|
}
|
|
29
29
|
`);
|
|
30
30
|
|
|
@@ -57,7 +57,7 @@ function getAllContent(options) {
|
|
|
57
57
|
const res = yield fetch(url.href);
|
|
58
58
|
const content = yield res.json();
|
|
59
59
|
if ("status" in content && !("results" in content)) {
|
|
60
|
-
logger.error("Error fetching data. ", content, options);
|
|
60
|
+
logger.error("Error fetching data. ", { url, content, options });
|
|
61
61
|
return content;
|
|
62
62
|
}
|
|
63
63
|
const canTrack = options.canTrack !== false;
|