@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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.2.3
2
+
3
+ - No Changes.
4
+
1
5
  ### 0.2.2
2
6
 
3
7
  - Fix: dynamic bindings for Link URLs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./solid-index.jsx",
@@ -99,30 +99,30 @@ function Columns(props) {
99
99
 
100
100
  function columnsStyles() {
101
101
  return `
102
- @media (max-width: ${getWidthForBreakpointSize("medium")}px) {
103
- .${props.builderBlock.id}-breakpoints {
104
- flex-direction: var(--flex-dir-tablet);
105
- align-items: stretch;
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
- .${props.builderBlock.id}-breakpoints > .builder-column {
109
- width: var(--column-width-tablet) !important;
110
- margin-left: var(--column-margin-left-tablet) !important;
111
- }
112
- }
113
-
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
- `;
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
 
@@ -355,6 +355,7 @@ function RenderContent(props) {
355
355
  apiKey: props.apiKey,
356
356
  apiVersion: props.apiVersion,
357
357
  registeredComponents: allRegisteredComponents(),
358
+ inheritedStyles: {},
358
359
  }}
359
360
  >
360
361
  <Show when={useContent}>
@@ -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;