@builder.io/sdk-react 4.0.4-0 → 4.0.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/browser/blocks-exports.cjs +2 -2
- package/lib/browser/blocks-exports.mjs +2 -3
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-e6ae7704.js → server-entry-66a925df.js} +1 -1
- package/lib/browser/{server-entry-c40e781d.cjs → server-entry-e6bf2d7b.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-8934ef4b.cjs → accordion-7464a303.cjs} +1 -1
- package/lib/edge/{accordion-e657c96d.js → accordion-b4b4d9f1.js} +1 -1
- package/lib/edge/{blocks-efa04c3b.cjs → blocks-e91ba3d4.cjs} +1 -1
- package/lib/edge/{blocks-890ac50f.js → blocks-e93076da.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-3522aac2.js → button-33f21c52.js} +2 -2
- package/lib/edge/{button-49563e3b.cjs → button-fda4fec5.cjs} +1 -1
- package/lib/edge/{columns-70b88fce.js → columns-55e99fb4.js} +3 -3
- package/lib/edge/{columns-eb192117.cjs → columns-f7fd551f.cjs} +1 -1
- package/lib/edge/{content-variants-6a73b6e9.js → content-variants-2ebd741d.js} +12 -12
- package/lib/edge/{content-variants-893bba4d.cjs → content-variants-e6b3bd34.cjs} +1 -1
- package/lib/edge/{custom-code-ae3262be.cjs → custom-code-c66cd781.cjs} +1 -1
- package/lib/edge/{custom-code-1a43bbd7.js → custom-code-d7aa74ff.js} +1 -1
- package/lib/edge/{embed-8d302933.cjs → embed-2c418cac.cjs} +1 -1
- package/lib/edge/{embed-106f0066.js → embed-7384956f.js} +1 -1
- package/lib/edge/{form-e6ea2320.js → form-5148ead0.js} +3 -3
- package/lib/edge/{form-89839d91.cjs → form-61cd3cc1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-dad1ee7e.cjs → get-class-prop-name-5ff8e9ef.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-e44df0c8.js → get-class-prop-name-f91e4605.js} +1 -1
- package/lib/edge/{img-3efcbcca.js → img-595b9ae3.js} +3 -4
- package/lib/edge/img-8770a93f.cjs +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-92aaa4f2.cjs → input-10b2e145.cjs} +1 -1
- package/lib/edge/{input-d6338de6.js → input-cab27192.js} +1 -1
- package/lib/edge/{personalization-container-576b7363.cjs → personalization-container-1ba57b3b.cjs} +1 -1
- package/lib/edge/{personalization-container-c8d741e6.js → personalization-container-9984806a.js} +4 -4
- package/lib/edge/{select-5ce728b4.cjs → select-36b1bb81.cjs} +1 -1
- package/lib/edge/{select-1538b41a.js → select-e1dc1504.js} +1 -1
- package/lib/edge/{server-entry-2e94ad2c.js → server-entry-74debd65.js} +1 -1
- package/lib/edge/{server-entry-46e686b9.cjs → server-entry-f10ae31d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-26162c51.js → slot-c6535e6d.js} +3 -3
- package/lib/edge/{slot-ed4d2827.cjs → slot-e8473a94.cjs} +1 -1
- package/lib/edge/{symbol-cd10b6f0.cjs → symbol-9177d14c.cjs} +1 -1
- package/lib/edge/{symbol-3b2e7ebf.js → symbol-fc7d42ee.js} +2 -2
- package/lib/edge/{tabs-c576cd8f.js → tabs-955ab7dd.js} +3 -3
- package/lib/edge/{tabs-7273a1e3.cjs → tabs-980a2753.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +2 -2
- package/lib/node/blocks-exports.mjs +4 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-6b05381c.cjs → server-entry-a7413c09.cjs} +1 -1
- package/lib/node/{server-entry-c1000f54.js → server-entry-d38415f3.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-4ae0308c.cjs → setIvm-0a044ac8.cjs} +1 -1
- package/lib/node/{setIvm-011d6eb2.js → setIvm-9fe8e65a.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-5d513614.cjs → should-force-browser-runtime-in-node-e4a9bd6b.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-abf8d0a7.js → should-force-browser-runtime-in-node-eb6e6ea4.js} +1 -1
- package/package.json +4 -4
- package/types/blocks/img/img.d.ts +0 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/CHANGELOG.md +0 -944
- package/lib/edge/img-337990c2.cjs +0 -1
package/CHANGELOG.md
DELETED
|
@@ -1,944 +0,0 @@
|
|
|
1
|
-
# Builder.io React SDK Changelog (@builder.io/sdk-react)
|
|
2
|
-
|
|
3
|
-
## 4.0.3
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 887c6e0: Fix: visual editing Custom Code block reflects code updates in real time
|
|
8
|
-
|
|
9
|
-
## 4.0.2
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 1396fb4: Fix: duplicate `/track` call validation handles default and variant scenarios correctly.
|
|
14
|
-
|
|
15
|
-
## 4.0.1
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 80247eb: Fix: Updating input values while in the Content Editor not triggering changes in the iframe.
|
|
20
|
-
|
|
21
|
-
## 4.0.0
|
|
22
|
-
|
|
23
|
-
### Major Changes
|
|
24
|
-
|
|
25
|
-
- 5ed08fc: - BREAKING CHANGE 🧨 : updated `subscribeToEditor` arguments: - arguments are now passed as a named argument object - `apiKey` is now a required field
|
|
26
|
-
|
|
27
|
-
Example:
|
|
28
|
-
|
|
29
|
-
- from:
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
subscribeToEditor('page', () => { ... }, options: {trustedHosts:['...']})
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
- to:
|
|
36
|
-
|
|
37
|
-
```ts
|
|
38
|
-
subscribeToEditor({
|
|
39
|
-
apiKey: '...',
|
|
40
|
-
model: '...',
|
|
41
|
-
trustedHosts: ['...'],
|
|
42
|
-
callback: () => { ... }
|
|
43
|
-
})
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
- 10a5754: BREAKING CHANGE 🧨: `model` and `content` are now required props for `<Content>`.
|
|
47
|
-
|
|
48
|
-
## 3.0.8
|
|
49
|
-
|
|
50
|
-
### Patch Changes
|
|
51
|
-
|
|
52
|
-
- 58ee59e: Fix: added lazy loading to video element
|
|
53
|
-
|
|
54
|
-
## 3.0.7
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
- 7d01119: feat: Add support for `xsmall` additional breakpoint.
|
|
59
|
-
|
|
60
|
-
## 3.0.6
|
|
61
|
-
|
|
62
|
-
### Patch Changes
|
|
63
|
-
|
|
64
|
-
- abe5cba: Feat: exports `setClientUserAttributes` helper that can be used to set and update Builder's user attributes cookie. This cookie is used by Builder's Personalization Containers to decide which variant to render.
|
|
65
|
-
|
|
66
|
-
Usage example:
|
|
67
|
-
|
|
68
|
-
```ts
|
|
69
|
-
import { setClientUserAttributes } from "@builder.io/sdk-react";
|
|
70
|
-
|
|
71
|
-
setClientUserAttributes({
|
|
72
|
-
device: "tablet",
|
|
73
|
-
});
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
- abe5cba: Feat: support of Variant Containers or Block level personalization
|
|
77
|
-
|
|
78
|
-
## 3.0.5
|
|
79
|
-
|
|
80
|
-
### Patch Changes
|
|
81
|
-
|
|
82
|
-
- 2f73837: Fix: Removed z-index from Video block, which caused it to hide its children elements.
|
|
83
|
-
|
|
84
|
-
## 3.0.3
|
|
85
|
-
|
|
86
|
-
### Patch Changes
|
|
87
|
-
|
|
88
|
-
- 306f8d5: Fix: add missing `folded` and `keysHelperText` types to custom component `Input`
|
|
89
|
-
- 306f8d5: Types: add `firstPublished` to BuilderContent
|
|
90
|
-
- bee361e: Fix: add `key` prop for loop inside Accordion Block.
|
|
91
|
-
|
|
92
|
-
## 3.0.2
|
|
93
|
-
|
|
94
|
-
### Patch Changes
|
|
95
|
-
|
|
96
|
-
- e0dc757: Fix: previewing content within the Studio tab of the Builder Visual Editor.
|
|
97
|
-
- b1bd65a: Fix: export types `RegisteredComponents` and `BuilderContextInterface`.
|
|
98
|
-
- b1bd65a: Move Text Block's inline bindings (e.g. `Hello {{state.name}}`) evaluation outside of component. This allows customers to use inline bindings in their custom Text Block implementations.
|
|
99
|
-
- b1bd65a: Remove noisy console log in edge runtime (for empty code block evaluation)
|
|
100
|
-
|
|
101
|
-
## 3.0.1
|
|
102
|
-
|
|
103
|
-
### Patch Changes
|
|
104
|
-
|
|
105
|
-
- 409aec9: Feat: add `meta` type to custom components
|
|
106
|
-
- 23b7594: Feat: extend allowed file types of Image and Video Block
|
|
107
|
-
- ee436bf: Fix: `locale` prop to automatically resolve localized fields
|
|
108
|
-
- 2fc9fc5: Fix: `onChange` functions passed to builder inputs can now receive async functions
|
|
109
|
-
|
|
110
|
-
## 3.0.0
|
|
111
|
-
|
|
112
|
-
### Major Changes
|
|
113
|
-
|
|
114
|
-
- 78b8e5d: Breaking Change 🧨: `fetchEntries` and `fetchOneEntry` calls will now throw any errors thrown by `fetch`, or any non-success response returned from the Builder API.
|
|
115
|
-
|
|
116
|
-
Previously, both functions would swallow all errors and return `null`.
|
|
117
|
-
|
|
118
|
-
## 2.0.31
|
|
119
|
-
|
|
120
|
-
### Patch Changes
|
|
121
|
-
|
|
122
|
-
- 9b11521: fix serializing single arg arrow functions that some compilers emit
|
|
123
|
-
- 027a07a: fix: standardize locale handling
|
|
124
|
-
|
|
125
|
-
## 2.0.30
|
|
126
|
-
|
|
127
|
-
### Patch Changes
|
|
128
|
-
|
|
129
|
-
- 5e88efa: Logs every API URL hit from the SDK whenever `process.env.DEBUG` is set to `true` in the project
|
|
130
|
-
|
|
131
|
-
## 2.0.29
|
|
132
|
-
|
|
133
|
-
### Patch Changes
|
|
134
|
-
|
|
135
|
-
- efa4798: Fix: accordion block order of items and visual editing empty blocks
|
|
136
|
-
|
|
137
|
-
## 2.0.28
|
|
138
|
-
|
|
139
|
-
### Patch Changes
|
|
140
|
-
|
|
141
|
-
- c2e7846: Fix: make Column block's state reactive to its `props`
|
|
142
|
-
|
|
143
|
-
## 2.0.27
|
|
144
|
-
|
|
145
|
-
### Patch Changes
|
|
146
|
-
|
|
147
|
-
- 800457c: Feature: add `/node/setIvm` export path. It provides a `setIvm` function that can be used to provide the SDK with an instance of the `isolated-vm` module. This is needed in Node.js environments for data bindings to work when `/node/init` can't be used.
|
|
148
|
-
|
|
149
|
-
## 2.0.26
|
|
150
|
-
|
|
151
|
-
### Patch Changes
|
|
152
|
-
|
|
153
|
-
- 9da4f89: Feature: Adds `apiHost` prop to `Content`. It dictates which API endpoint is used for the content fetching. Defaults to 'https://cdn.builder.io'
|
|
154
|
-
- 185ee23: Fix: duplication of content in the Visual Editor when editing a symbol model that renders another symbol
|
|
155
|
-
|
|
156
|
-
## 2.0.25
|
|
157
|
-
|
|
158
|
-
### Patch Changes
|
|
159
|
-
|
|
160
|
-
- bfe9d7e: Misc: send SDK headers in API requests ( https://github.com/BuilderIO/builder/pull/3659 )
|
|
161
|
-
|
|
162
|
-
## 2.0.24
|
|
163
|
-
|
|
164
|
-
### Patch Changes
|
|
165
|
-
|
|
166
|
-
- e4253d6: Fix: accessing Builder Context within `Blocks` (regression from https://github.com/BuilderIO/builder/pull/3658)
|
|
167
|
-
- ae3d27e: Misc: allow react 19 RC releases as a peer dependency (to work with nextjs 15)
|
|
168
|
-
- 3146ba3: Fix: optionally chain access to context value in Blocks
|
|
169
|
-
- c5dd946: Feature: adds a `className: string` prop to the `Blocks` component used to apply a class to the `div` that wraps each list of blocks.
|
|
170
|
-
|
|
171
|
-
## 2.0.23
|
|
172
|
-
|
|
173
|
-
### Patch Changes
|
|
174
|
-
|
|
175
|
-
- 4660aa6: Feature: optimize simple `state.*` read access bindings by avoiding runtime-specific eval, and instead fetching the value directly from the state
|
|
176
|
-
|
|
177
|
-
## 2.0.22
|
|
178
|
-
|
|
179
|
-
### Patch Changes
|
|
180
|
-
|
|
181
|
-
- 49d0aa3: [Types]: adds a second argument to the `onChange` argument for custom component Inputs called `previousOptions`. It contains the `options` argument in its old state before the current `onChange` event was triggered.
|
|
182
|
-
|
|
183
|
-
Before:
|
|
184
|
-
|
|
185
|
-
```ts
|
|
186
|
-
onChange?:
|
|
187
|
-
| ((options: Map<string, any>) => void | Promise<void>)
|
|
188
|
-
| string;
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
After:
|
|
192
|
-
|
|
193
|
-
```ts
|
|
194
|
-
onChange?:
|
|
195
|
-
| ((options: Map<string, any>, previousOptions?: Map<string, any>) => void | Promise<void>)
|
|
196
|
-
| string;
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
## 2.0.21
|
|
200
|
-
|
|
201
|
-
### Patch Changes
|
|
202
|
-
|
|
203
|
-
- 269db7b: Fix: execute JS code and make http requests on Content initialization (instead of "on mount")
|
|
204
|
-
- 269db7b: Various improvements to edge runtime interpreter:
|
|
205
|
-
|
|
206
|
-
- Correctly handle code blocks with async/await polyfills (typically `jsCode` blocks)
|
|
207
|
-
- Improve handling of getters and setters on `state` values
|
|
208
|
-
|
|
209
|
-
## 2.0.19
|
|
210
|
-
|
|
211
|
-
### Patch Changes
|
|
212
|
-
|
|
213
|
-
- 9836542: Fix: remove node-runtime logic from browser and edge bundles
|
|
214
|
-
|
|
215
|
-
## 2.0.16
|
|
216
|
-
|
|
217
|
-
### Patch Changes
|
|
218
|
-
|
|
219
|
-
- 348de96: Fix: disable `initializeNodeRuntime()` on arm64 machines running node 20
|
|
220
|
-
|
|
221
|
-
## 2.0.15
|
|
222
|
-
|
|
223
|
-
### Patch Changes
|
|
224
|
-
|
|
225
|
-
- 50778a4: types: export GetContentOptions
|
|
226
|
-
|
|
227
|
-
## 2.0.14
|
|
228
|
-
|
|
229
|
-
### Patch Changes
|
|
230
|
-
|
|
231
|
-
- a44d73b: Fix: add `types` `exports` key to fix TS types support for projects in `bundler` mode.
|
|
232
|
-
|
|
233
|
-
## 2.0.13
|
|
234
|
-
|
|
235
|
-
### Patch Changes
|
|
236
|
-
|
|
237
|
-
- 51285ea: Fix: repeat items when they are Symbols
|
|
238
|
-
|
|
239
|
-
## 2.0.12
|
|
240
|
-
|
|
241
|
-
### Patch Changes
|
|
242
|
-
|
|
243
|
-
- 1a69210: Chore: improve performance by caching block processing during renders.
|
|
244
|
-
|
|
245
|
-
## 2.0.9
|
|
246
|
-
|
|
247
|
-
### Patch Changes
|
|
248
|
-
|
|
249
|
-
- 69859d4: serialize functions for registering plugins so you can have showIf on fields as functions
|
|
250
|
-
|
|
251
|
-
## 2.0.8
|
|
252
|
-
|
|
253
|
-
### Patch Changes
|
|
254
|
-
|
|
255
|
-
- e8b80b3: Fix: scoped `isInteractive` prop for RSC SDK only so that it fixes Inner Layout > "Columns" option during visual editing
|
|
256
|
-
|
|
257
|
-
## 2.0.5
|
|
258
|
-
|
|
259
|
-
### Patch Changes
|
|
260
|
-
|
|
261
|
-
- 345086b: Fixes data bindings in Text blocks
|
|
262
|
-
|
|
263
|
-
## 2.0.3
|
|
264
|
-
|
|
265
|
-
### Patch Changes
|
|
266
|
-
|
|
267
|
-
- 11e118c: Fix: serialize all functions within registered component info.
|
|
268
|
-
|
|
269
|
-
## 2.0.2
|
|
270
|
-
|
|
271
|
-
### Patch Changes
|
|
272
|
-
|
|
273
|
-
- 4ee499e: Fix: Image block: remove redundant `srcset` for SVG images
|
|
274
|
-
- 14da62f: Fix: restrict custom components to the models that get passed in `models`
|
|
275
|
-
|
|
276
|
-
## 2.0.1
|
|
277
|
-
|
|
278
|
-
### Patch Changes
|
|
279
|
-
|
|
280
|
-
- f6add9e: Fix: improve `edge` subpath exports to handle dynamically importing edge-specific and browser-specific SDK bundles.
|
|
281
|
-
- f6add9e: Feature: Add `nonce` prop to `<Content>`: allows SDK to set `nonce` attribute for its inlined `style` and `script` tags.
|
|
282
|
-
|
|
283
|
-
## 2.0.0
|
|
284
|
-
|
|
285
|
-
### Major Changes
|
|
286
|
-
|
|
287
|
-
- 2c6330f: Breaking Change 🧨: updated `shouldReceiveBuilderProps` config of Registered Components, with the following NEW defaults:
|
|
288
|
-
|
|
289
|
-
```ts
|
|
290
|
-
shouldReceiveBuilderProps: {
|
|
291
|
-
builderBlock: false, // used to be `true`
|
|
292
|
-
builderContext: false, // used to be `true`
|
|
293
|
-
builderComponents: false, // unchanged
|
|
294
|
-
builderLinkComponent: false, // unchanged
|
|
295
|
-
},
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
This means that by default, the SDK will no longer provide any Builder props unless its respective config is explicitly set to `true`.
|
|
299
|
-
|
|
300
|
-
- d031580: Breaking Change 🧨: Columns block now computes percentage widths correctly, by subtracting gutter space proportionally to each percentage.
|
|
301
|
-
Previously, it computed the column's widths by subtracting gutter space equally from each column's width. This previous behavior was incorrect, and most strongly felt when the `space` was a substantially high percentage of the total width of the Columns block.
|
|
302
|
-
|
|
303
|
-
## 1.1.2
|
|
304
|
-
|
|
305
|
-
### Patch Changes
|
|
306
|
-
|
|
307
|
-
- 1defae7: Refactor: move Embed iframe generation to Visual Editor
|
|
308
|
-
|
|
309
|
-
## 1.1.1
|
|
310
|
-
|
|
311
|
-
### Patch Changes
|
|
312
|
-
|
|
313
|
-
- 22de13c: Fix: add missing `override` component config
|
|
314
|
-
|
|
315
|
-
## 1.1.0
|
|
316
|
-
|
|
317
|
-
### Minor Changes
|
|
318
|
-
|
|
319
|
-
- 3594120: Feature: add `shouldReceiveBuilderProps` config to Registered Components, with the following defaults:
|
|
320
|
-
|
|
321
|
-
```ts
|
|
322
|
-
shouldReceiveBuilderProps: {
|
|
323
|
-
builderBlock: true,
|
|
324
|
-
builderContext: true,
|
|
325
|
-
builderComponents: false,
|
|
326
|
-
builderLinkComponent: false,
|
|
327
|
-
},
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
To configure a component to receive only certain Builder props, override the `shouldReceiveBuilderProps` config:
|
|
331
|
-
|
|
332
|
-
Example:
|
|
333
|
-
|
|
334
|
-
```ts
|
|
335
|
-
export const componentInfo = {
|
|
336
|
-
name: "Text",
|
|
337
|
-
|
|
338
|
-
shouldReceiveBuilderProps: {
|
|
339
|
-
builderBlock: true,
|
|
340
|
-
builderContext: false,
|
|
341
|
-
builderComponents: true,
|
|
342
|
-
builderLinkComponent: false,
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
inputs: [
|
|
346
|
-
{
|
|
347
|
-
name: "text",
|
|
348
|
-
type: "html",
|
|
349
|
-
required: true,
|
|
350
|
-
autoFocus: true,
|
|
351
|
-
bubble: true,
|
|
352
|
-
defaultValue: "Enter some text...",
|
|
353
|
-
},
|
|
354
|
-
],
|
|
355
|
-
};
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
## 1.0.36
|
|
359
|
-
|
|
360
|
-
### Patch Changes
|
|
361
|
-
|
|
362
|
-
- 6187c39: Fix: `required` option for TextArea and Select blocks
|
|
363
|
-
- 6187c39: Feat: Add support for TextArea block
|
|
364
|
-
|
|
365
|
-
## 1.0.35
|
|
366
|
-
|
|
367
|
-
### Patch Changes
|
|
368
|
-
|
|
369
|
-
- bb4a5fd: Feature: add `webp` support for Image block file uploads.
|
|
370
|
-
- 1f62b28: Fix: Remove `iframely` API key from Embed block logic.
|
|
371
|
-
|
|
372
|
-
## 1.0.33
|
|
373
|
-
|
|
374
|
-
### Patch Changes
|
|
375
|
-
|
|
376
|
-
- 6c8db7e: Fix: check `e.origin` of the message to be a URL first
|
|
377
|
-
|
|
378
|
-
## 1.0.32
|
|
379
|
-
|
|
380
|
-
### Patch Changes
|
|
381
|
-
|
|
382
|
-
- a38eae0: Fix: pass Builder props to blocks and custom components only when needed.
|
|
383
|
-
- e31ef49: Misc: cleanup error message for edge runtime evaluation.
|
|
384
|
-
- 945f26e: Adds the `highPriority` option to the Image block component to ensure eager loading.
|
|
385
|
-
|
|
386
|
-
## 1.0.31
|
|
387
|
-
|
|
388
|
-
### Patch Changes
|
|
389
|
-
|
|
390
|
-
- b4381f5: Fix: `canTrack=false` not respected in Symbols
|
|
391
|
-
|
|
392
|
-
## 1.0.30
|
|
393
|
-
|
|
394
|
-
### Patch Changes
|
|
395
|
-
|
|
396
|
-
- 4aaba38: Fix: bump `isolated-vm` dependency to `5.0.0`, adding support for Node v22.
|
|
397
|
-
|
|
398
|
-
## 1.0.29
|
|
399
|
-
|
|
400
|
-
### Patch Changes
|
|
401
|
-
|
|
402
|
-
- 74d78e1: Fix: error in identifying model being previewed: https://github.com/BuilderIO/builder/pull/3310/files#diff-6293c2a27254fa850a123075284412ef86d270a4518e0ad3aad81132b590ea1cL311
|
|
403
|
-
|
|
404
|
-
## 1.0.28
|
|
405
|
-
|
|
406
|
-
### Patch Changes
|
|
407
|
-
|
|
408
|
-
- f3aab34: Feat: Accordion widget for gen2 sdks
|
|
409
|
-
|
|
410
|
-
## 1.0.27
|
|
411
|
-
|
|
412
|
-
### Patch Changes
|
|
413
|
-
|
|
414
|
-
- 70fccea: Fix: `query` option correctly flattens mongodb queries
|
|
415
|
-
|
|
416
|
-
## 1.0.26
|
|
417
|
-
|
|
418
|
-
### Patch Changes
|
|
419
|
-
|
|
420
|
-
- af84d1e: Fix: make `initializeNodeRuntime` argument optional
|
|
421
|
-
|
|
422
|
-
## 1.0.25
|
|
423
|
-
|
|
424
|
-
### Patch Changes
|
|
425
|
-
|
|
426
|
-
- bd21dcf: Fix: improve NodeJS runtime performance by reusing the same IsolatedVM Isolate instance for all data bindings. Add the ability to provide arguments to configure the isolate in `initializeNodeRuntime` via an `ivmIsolateOptions` parameter.
|
|
427
|
-
|
|
428
|
-
## 1.0.24
|
|
429
|
-
|
|
430
|
-
### Patch Changes
|
|
431
|
-
|
|
432
|
-
- 84cd444: feature: add the Builder Tabs block (ported from gen1 widgets).
|
|
433
|
-
|
|
434
|
-
## 1.0.23
|
|
435
|
-
|
|
436
|
-
### Patch Changes
|
|
437
|
-
|
|
438
|
-
- 78dee25: Fix: remove redundant warning for evaluation of empty code blocks.
|
|
439
|
-
|
|
440
|
-
## 1.0.22
|
|
441
|
-
|
|
442
|
-
### Patch Changes
|
|
443
|
-
|
|
444
|
-
- f3c5ff3: Fix: `isPreviewing` logic on the server, and make usage of `isEditing` unnecessary.
|
|
445
|
-
- 46bd611: Feature: add support for hover animations.
|
|
446
|
-
|
|
447
|
-
## 1.0.21
|
|
448
|
-
|
|
449
|
-
### Patch Changes
|
|
450
|
-
|
|
451
|
-
- d8e08ae: Feature: add `@builder.io/sdk-react/node/init` entry point with `initializeNodeRuntime` export that sets the IVM instance.
|
|
452
|
-
|
|
453
|
-
This import should be called in a server-only location, such as:
|
|
454
|
-
|
|
455
|
-
- The NextJS Pages router's `_document.tsx`:
|
|
456
|
-
|
|
457
|
-
```tsx
|
|
458
|
-
// _document.tsx
|
|
459
|
-
import { Html, Head, Main, NextScript } from "next/document";
|
|
460
|
-
import { initializeNodeRuntime } from "@builder.io/sdk-react/node/init";
|
|
461
|
-
initializeNodeRuntime();
|
|
462
|
-
|
|
463
|
-
export default function Document() {
|
|
464
|
-
return (
|
|
465
|
-
<Html lang="en">
|
|
466
|
-
<Head />
|
|
467
|
-
<body>
|
|
468
|
-
<Main />
|
|
469
|
-
<NextScript />
|
|
470
|
-
</body>
|
|
471
|
-
</Html>
|
|
472
|
-
);
|
|
473
|
-
}
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
- Your Remix route's `loader` responsible for fetching the page content from Builder.io:
|
|
477
|
-
|
|
478
|
-
```tsx
|
|
479
|
-
// ($slug)._index.tsx
|
|
480
|
-
import { fetchOneEntry } from "@builder.io/sdk-react";
|
|
481
|
-
|
|
482
|
-
export const loader = async ({ params, request }: LoaderFunctionArgs) => {
|
|
483
|
-
// the import must be inside the loader itself.
|
|
484
|
-
const { initializeNodeRuntime } = await import(
|
|
485
|
-
"@builder.io/sdk-react/node/init"
|
|
486
|
-
);
|
|
487
|
-
await initializeNodeRuntime();
|
|
488
|
-
|
|
489
|
-
const page = await fetchOneEntry({
|
|
490
|
-
/** */
|
|
491
|
-
});
|
|
492
|
-
};
|
|
493
|
-
```
|
|
494
|
-
|
|
495
|
-
- 7bad8d9: Fix: better error-logging for `isolated-vm` import.
|
|
496
|
-
- d8e08ae: Fix: `fetchOneEntry` prop types of `fetch` and `fetchOptions`
|
|
497
|
-
|
|
498
|
-
## 1.0.20
|
|
499
|
-
|
|
500
|
-
### Patch Changes
|
|
501
|
-
|
|
502
|
-
- a309a4f: Fix: add missing `key` prop to `Select` block's `option`
|
|
503
|
-
|
|
504
|
-
## 1.0.19
|
|
505
|
-
|
|
506
|
-
### Patch Changes
|
|
507
|
-
|
|
508
|
-
- cde7c61: feat: export `BuilderContext` from sdks
|
|
509
|
-
|
|
510
|
-
## 1.0.17
|
|
511
|
-
|
|
512
|
-
### Patch Changes
|
|
513
|
-
|
|
514
|
-
- 2ed2cb8: Fix: data connections making multiple unnecessary API calls
|
|
515
|
-
|
|
516
|
-
## 1.0.16
|
|
517
|
-
|
|
518
|
-
### Patch Changes
|
|
519
|
-
|
|
520
|
-
- 35fc152: Fix: add `data-id` attributes to all inline `script` and `style` tags
|
|
521
|
-
|
|
522
|
-
## 1.0.15
|
|
523
|
-
|
|
524
|
-
### Patch Changes
|
|
525
|
-
|
|
526
|
-
- 0ffbc58: Feature: add `fetch` and `fetchOptions` arguments to `fetchEntries` and `fetchOneEntry`.
|
|
527
|
-
|
|
528
|
-
## 1.0.14
|
|
529
|
-
|
|
530
|
-
### Patch Changes
|
|
531
|
-
|
|
532
|
-
- 2d5a016: Fix: remove forced re-render of `Content` internals.
|
|
533
|
-
|
|
534
|
-
## 1.0.13
|
|
535
|
-
|
|
536
|
-
### Patch Changes
|
|
537
|
-
|
|
538
|
-
- 2c93c95: Fix: Symbol styles overriding subsequent content styles.
|
|
539
|
-
|
|
540
|
-
## 1.0.12
|
|
541
|
-
|
|
542
|
-
### Patch Changes
|
|
543
|
-
|
|
544
|
-
- c880ef5: Fix: data state reactivity for nested components
|
|
545
|
-
- c880ef5: Feature: add Cache layer for dynamic binding evaluator
|
|
546
|
-
|
|
547
|
-
## 1.0.11
|
|
548
|
-
|
|
549
|
-
### Patch Changes
|
|
550
|
-
|
|
551
|
-
- b81e35a: fix: Image block `role='presentation'` set when altText prop is not provided.
|
|
552
|
-
|
|
553
|
-
## 1.0.9
|
|
554
|
-
|
|
555
|
-
### Patch Changes
|
|
556
|
-
|
|
557
|
-
- d9668eb: Fix: use `eval("require")` in favor of `node:module` when importing `isolated-vm` to avoid issues when bundling in Nextjs
|
|
558
|
-
|
|
559
|
-
## 1.0.8
|
|
560
|
-
|
|
561
|
-
### Patch Changes
|
|
562
|
-
|
|
563
|
-
- b659b6f: Fix: usage of `Blocks` in custom components not setting `BlocksWrapper` correctly.
|
|
564
|
-
|
|
565
|
-
## 1.0.7
|
|
566
|
-
|
|
567
|
-
### Patch Changes
|
|
568
|
-
|
|
569
|
-
- 3e67634: Fix: editing unpublished content
|
|
570
|
-
|
|
571
|
-
## 1.0.6
|
|
572
|
-
|
|
573
|
-
### Patch Changes
|
|
574
|
-
|
|
575
|
-
- 9b873cd: Fix: add missing helper exports from `/edge` subpath
|
|
576
|
-
- 9b873cd: Fix: broken `/edge` CJS entry point
|
|
577
|
-
- 9b873cd: Feature: allow passing `search` param (of type `URLSearchParams | string | object`) to `isPreviewing` and `isEditing` helpers. This allows users to rely on this function in SSR environments to determine whether the current request is a preview or edit request.
|
|
578
|
-
- 9b873cd: Remove `/server` subpath export (no longer needed)
|
|
579
|
-
|
|
580
|
-
## 1.0.4
|
|
581
|
-
|
|
582
|
-
### Patch Changes
|
|
583
|
-
|
|
584
|
-
- 4528969: create conditional `/edge` export that alternates between edge and browser bundle depending on environment
|
|
585
|
-
- 4528969: move `/edge`, `/node` and `/browser` sub-path exports to `/bundle/edge`, `/bundle/node` and `/bundle/browser`
|
|
586
|
-
|
|
587
|
-
## 1.0.3
|
|
588
|
-
|
|
589
|
-
### Patch Changes
|
|
590
|
-
|
|
591
|
-
- a730741: fix `userAttributes` types in `GetContentOptions`
|
|
592
|
-
|
|
593
|
-
## 1.0.2
|
|
594
|
-
|
|
595
|
-
### Patch Changes
|
|
596
|
-
|
|
597
|
-
- a4bfcbc: Fix: move dynamicRequire of `isolated-vm` outside of global scope to reduce crashes/issues.
|
|
598
|
-
|
|
599
|
-
## 1.0.0
|
|
600
|
-
|
|
601
|
-
### Major Changes
|
|
602
|
-
|
|
603
|
-
- 388c152: - 🧨 Breaking changes: this release removes the following deprecations:
|
|
604
|
-
|
|
605
|
-
Exports:
|
|
606
|
-
|
|
607
|
-
- `RenderBlocks` -> `Blocks`
|
|
608
|
-
- `RenderContent` -> `Content`
|
|
609
|
-
- `getContent` -> `fetchOneEntry`
|
|
610
|
-
- `getAllContent` -> `fetchEntries`
|
|
611
|
-
|
|
612
|
-
Arguments/Props:
|
|
613
|
-
|
|
614
|
-
- `Content`'s `includeRefs` prop is removed in favor of `enrich`.
|
|
615
|
-
- `fetchOneEntry`'s `includeRefs` and `noTraverse` arguments are removed in favor of `enrich`.
|
|
616
|
-
|
|
617
|
-
Functionality:
|
|
618
|
-
|
|
619
|
-
- removed deprecated side-effect `registerComponent()`. Instead, use the `customComponents` prop of `Content`.
|
|
620
|
-
|
|
621
|
-
## 0.13.4
|
|
622
|
-
|
|
623
|
-
### Patch Changes
|
|
624
|
-
|
|
625
|
-
- 3764321: Fix: replace broken default value of Video Block with a working link.
|
|
626
|
-
|
|
627
|
-
## 0.13.3
|
|
628
|
-
|
|
629
|
-
### Patch Changes
|
|
630
|
-
|
|
631
|
-
- f67242f: types: add `meta` property to Input
|
|
632
|
-
|
|
633
|
-
## 0.13.2
|
|
634
|
-
|
|
635
|
-
### Patch Changes
|
|
636
|
-
|
|
637
|
-
- cdc5ce8: Feature: Add Form, FormSelect, FormSubmit and FormInput blocks.
|
|
638
|
-
|
|
639
|
-
## 0.13.1
|
|
640
|
-
|
|
641
|
-
## 0.13.0
|
|
642
|
-
|
|
643
|
-
### Minor Changes
|
|
644
|
-
|
|
645
|
-
- da5d871: 🧨 Breaking Change: remove 'v2' as a viable `apiVersion`. Only 'v3' is now allowed.
|
|
646
|
-
|
|
647
|
-
## 0.12.8
|
|
648
|
-
|
|
649
|
-
### Patch Changes
|
|
650
|
-
|
|
651
|
-
- 6b32014: Add `subscribeToEditor()` export that allows listening to content changes. Helpful for previewing data models.
|
|
652
|
-
|
|
653
|
-
## 0.12.7
|
|
654
|
-
|
|
655
|
-
### Patch Changes
|
|
656
|
-
|
|
657
|
-
- cbc49e4: Feature: add Animations support
|
|
658
|
-
|
|
659
|
-
## 0.12.6
|
|
660
|
-
|
|
661
|
-
### Patch Changes
|
|
662
|
-
|
|
663
|
-
- 8cc0cb8: Fix: updates to deeply nested Builder `state` value now propagate across content.
|
|
664
|
-
|
|
665
|
-
## 0.12.5
|
|
666
|
-
|
|
667
|
-
### Patch Changes
|
|
668
|
-
|
|
669
|
-
- e7f6db6: Fix: sigfault crash when using SDK in Node v20 + M1 Macs. Skip usage of `isolated-vm` in those environments.
|
|
670
|
-
|
|
671
|
-
## 0.12.4
|
|
672
|
-
|
|
673
|
-
### Patch Changes
|
|
674
|
-
|
|
675
|
-
- fdb6416: Feature: added `linkComponent` prop to provide a custom component for links.
|
|
676
|
-
|
|
677
|
-
This applies to:
|
|
678
|
-
|
|
679
|
-
- the Button component when provided a link
|
|
680
|
-
- the "Link URL" field for any block
|
|
681
|
-
- the "Link" field for a column within the Columns block.
|
|
682
|
-
|
|
683
|
-
## 0.12.3
|
|
684
|
-
|
|
685
|
-
### Patch Changes
|
|
686
|
-
|
|
687
|
-
- 8b970b4: Fix: issue with Button `all: 'unset'` overriding all other styles.
|
|
688
|
-
|
|
689
|
-
## 0.12.2
|
|
690
|
-
|
|
691
|
-
### Patch Changes
|
|
692
|
-
|
|
693
|
-
- fa616c9: Added a `trustedHosts` prop to `Content`. It is used to determine whether the SDK can enable editing/previewing mode within a host. Also added stricter default checking of trusted hosts.
|
|
694
|
-
|
|
695
|
-
## 0.12.1
|
|
696
|
-
|
|
697
|
-
### Patch Changes
|
|
698
|
-
|
|
699
|
-
- 9b71eab: Feature: added support for the Builder `Slot` block
|
|
700
|
-
|
|
701
|
-
## 0.11.5
|
|
702
|
-
|
|
703
|
-
### Patch Changes
|
|
704
|
-
|
|
705
|
-
- 9a631fa: Fix: update "/edge" and "/node" subpath exports to only point to their corresponding bundles. This guarantees that the browser bundle is never imported by mistake.
|
|
706
|
-
|
|
707
|
-
## 0.11.4
|
|
708
|
-
|
|
709
|
-
### Patch Changes
|
|
710
|
-
|
|
711
|
-
- 80cf984: Fix: react to changes in `props.data`
|
|
712
|
-
|
|
713
|
-
## 0.11.3
|
|
714
|
-
|
|
715
|
-
### Patch Changes
|
|
716
|
-
|
|
717
|
-
- 538d559: Fix: use correct export for ContentProps
|
|
718
|
-
- 538d559: Improve "./edge" subpath export to automatically use the browser bundle for browser environments. This allows the usage of that subpath export without also manually toggling with the "./browser" bundle.
|
|
719
|
-
- 538d559: Export prop types of all exported components in main index file.
|
|
720
|
-
- 538d559: Improve documentation of `ContentProps` types.
|
|
721
|
-
|
|
722
|
-
## 0.11.2
|
|
723
|
-
|
|
724
|
-
## 0.11.1
|
|
725
|
-
|
|
726
|
-
### Patch Changes
|
|
727
|
-
|
|
728
|
-
- 9544220: Fix: duplicate attributes getting applied to both the block and its wrapper element.
|
|
729
|
-
|
|
730
|
-
## 0.11.0
|
|
731
|
-
|
|
732
|
-
## 0.10.0
|
|
733
|
-
|
|
734
|
-
### Minor Changes
|
|
735
|
-
|
|
736
|
-
- 39149d5: 🧨 Breaking: `fetchAllEntries`/`getAllContent` now returns the array of contents directly, instead of an object with a `results` property.
|
|
737
|
-
|
|
738
|
-
### Patch Changes
|
|
739
|
-
|
|
740
|
-
- 39149d5: compile SDK to ES2019 to support webpack 4 more easily.
|
|
741
|
-
|
|
742
|
-
## 0.9.0
|
|
743
|
-
|
|
744
|
-
### Patch Changes
|
|
745
|
-
|
|
746
|
-
- 435c5ee: Feature: add `contentWrapper`, `contentWrapperProps`, `blocksWrapper`, `blocksWrapperProps` props to Content:
|
|
747
|
-
|
|
748
|
-
```ts
|
|
749
|
-
{
|
|
750
|
-
/**
|
|
751
|
-
* The element that wraps your content. Defaults to `div` ('ScrollView' in React Native).
|
|
752
|
-
*/
|
|
753
|
-
contentWrapper?: any;
|
|
754
|
-
/**
|
|
755
|
-
* Additonal props to pass to `contentWrapper`. Defaults to `{}`.
|
|
756
|
-
*/
|
|
757
|
-
contentWrapperProps?: any;
|
|
758
|
-
/**
|
|
759
|
-
* The element that wraps your blocks. Defaults to `div` ('ScrollView' in React Native).
|
|
760
|
-
*/
|
|
761
|
-
blocksWrapper?: any;
|
|
762
|
-
/**
|
|
763
|
-
* Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
|
|
764
|
-
*/
|
|
765
|
-
blocksWrapperProps?: any;
|
|
766
|
-
}
|
|
767
|
-
```
|
|
768
|
-
|
|
769
|
-
## 0.8.1
|
|
770
|
-
|
|
771
|
-
### Patch Changes
|
|
772
|
-
|
|
773
|
-
- f5ea331: Fix: dynamic import of `isolated-vm` to rely on `createRequire` instead of `eval("require")`
|
|
774
|
-
|
|
775
|
-
## 0.8.0
|
|
776
|
-
|
|
777
|
-
## 0.7.6
|
|
778
|
-
|
|
779
|
-
### Patch Changes
|
|
780
|
-
|
|
781
|
-
- 992a97e: Fix: Show & Hide If properties when combined with repeated elements
|
|
782
|
-
|
|
783
|
-
## 0.7.5
|
|
784
|
-
|
|
785
|
-
### Patch Changes
|
|
786
|
-
|
|
787
|
-
- ddb31e4: Fix: setting default input values
|
|
788
|
-
- ddb31e4: Fix: collection repetition bug for empty/undefined lists
|
|
789
|
-
|
|
790
|
-
## 0.7.4
|
|
791
|
-
|
|
792
|
-
### Patch Changes
|
|
793
|
-
|
|
794
|
-
- 5500600: Multiples fixes to SSR A/B testing logic
|
|
795
|
-
- d3c613d: Fix: Video block styles (aspect ratio, fitContent, etc.).
|
|
796
|
-
Fix: Allow Video block to render children components.
|
|
797
|
-
- 5500600: Fix: Stringify inlined SSR A/B test scripts at build-time. Avoids mismatches caused by run-time stringification.
|
|
798
|
-
|
|
799
|
-
## 0.7.3
|
|
800
|
-
|
|
801
|
-
### Patch Changes
|
|
802
|
-
|
|
803
|
-
- 90e6abb: reduce React peer dependency to >= v16
|
|
804
|
-
|
|
805
|
-
## 0.7.2
|
|
806
|
-
|
|
807
|
-
## 0.7.1
|
|
808
|
-
|
|
809
|
-
### Patch Changes
|
|
810
|
-
|
|
811
|
-
- f7e1a5e: Chore: added changesets workflow to automate changelogs and release process
|
|
812
|
-
- 89e5965: add `isolated-vm` package to sandbox VM code when running in Node environments
|
|
813
|
-
|
|
814
|
-
## 0.7.0
|
|
815
|
-
|
|
816
|
-
- Setting `noTraverse` option's default to `true` when fetching multiple content entries.
|
|
817
|
-
|
|
818
|
-
## 0.6.4
|
|
819
|
-
|
|
820
|
-
- No Change.
|
|
821
|
-
|
|
822
|
-
## 0.6.3
|
|
823
|
-
|
|
824
|
-
- Fix issue with block styles not updating when editing them.
|
|
825
|
-
|
|
826
|
-
## 0.6.2
|
|
827
|
-
|
|
828
|
-
- No Changes.
|
|
829
|
-
|
|
830
|
-
## 0.6.1
|
|
831
|
-
|
|
832
|
-
- No Changes.
|
|
833
|
-
|
|
834
|
-
## 0.6.0
|
|
835
|
-
|
|
836
|
-
- Update build pipeline to generate 3 separate bundles for each environment: browser, node and edge runtimes.
|
|
837
|
-
- Use Vite to build SDK instead of `tsc`
|
|
838
|
-
|
|
839
|
-
## 0.5.9
|
|
840
|
-
|
|
841
|
-
No Changes.
|
|
842
|
-
|
|
843
|
-
## 0.5.8
|
|
844
|
-
|
|
845
|
-
- Fix: properly serialize messages sent to visual editor.
|
|
846
|
-
|
|
847
|
-
## 0.5.7
|
|
848
|
-
|
|
849
|
-
- No Changes.
|
|
850
|
-
|
|
851
|
-
## 0.5.6
|
|
852
|
-
|
|
853
|
-
- No Changes.
|
|
854
|
-
|
|
855
|
-
## 0.5.5
|
|
856
|
-
|
|
857
|
-
- Fix: remove `lru-cache` import and usage.
|
|
858
|
-
|
|
859
|
-
## 0.5.4
|
|
860
|
-
|
|
861
|
-
- Fix build issues caused by extraneous `acorn` import.
|
|
862
|
-
|
|
863
|
-
## 0.5.2
|
|
864
|
-
|
|
865
|
-
- Fix: remove old `evaluate` logic that accidentally stayed in the bundle.
|
|
866
|
-
|
|
867
|
-
## 0.5.1
|
|
868
|
-
|
|
869
|
-
- Fix: make `RenderBlocks` properties `context` and `registeredComponents` optional for external use.
|
|
870
|
-
|
|
871
|
-
## 0.5.0
|
|
872
|
-
|
|
873
|
-
- Feature: Added support for rudimentary data-bindings in Non-Node.js (edge, serverless, etc.) server runtimes.
|
|
874
|
-
- Feature: Added TypeScript type support.
|
|
875
|
-
- Misc: removed `"type": "module"` from `package.json`
|
|
876
|
-
|
|
877
|
-
## 0.4.5
|
|
878
|
-
|
|
879
|
-
- Fix: show dynamic symbols correctly in Preview mode.
|
|
880
|
-
- Feature: SSR A/B test Symbols nested inside page content.
|
|
881
|
-
|
|
882
|
-
## 0.4.4
|
|
883
|
-
|
|
884
|
-
- Fix: tracking URL from `builder.io/api/v1/track` to `cdn.builder.io/api/v1/track` for improved reliability.
|
|
885
|
-
|
|
886
|
-
## 0.4.3
|
|
887
|
-
|
|
888
|
-
- Fix: SSR A/B test environment check (`isHydrationTarget`) now accurately checks current environment.
|
|
889
|
-
|
|
890
|
-
## 0.4.2
|
|
891
|
-
|
|
892
|
-
- No external changes.
|
|
893
|
-
|
|
894
|
-
## 0.4.1
|
|
895
|
-
|
|
896
|
-
- Fix: bring back `getBuilderSearchParams` export that was accidentally removed.
|
|
897
|
-
|
|
898
|
-
## 0.4.0
|
|
899
|
-
|
|
900
|
-
- Feature: A/B tests are now rendered correctly during server-side rendering (SSR) when applicable. This behaviour is backwards compatible with previous versions.
|
|
901
|
-
- Feature: Add support for `enrich` API flag.
|
|
902
|
-
- Mark `noTraverse` and `includeRefs` as deprecated.
|
|
903
|
-
|
|
904
|
-
## 0.3.1
|
|
905
|
-
|
|
906
|
-
- Feature: Added SDK version to data sent to visual editor for improved debugging.
|
|
907
|
-
- Fix: Columns block: removed redundant margin-left in first column.
|
|
908
|
-
- Fix: dynamic action bindings in repeated data.
|
|
909
|
-
|
|
910
|
-
## 0.3.0
|
|
911
|
-
|
|
912
|
-
- No Changes.
|
|
913
|
-
|
|
914
|
-
## 0.2.3
|
|
915
|
-
|
|
916
|
-
- Feature: Added TS types to package.
|
|
917
|
-
- Feature: Added support for the NextJS app directory.
|
|
918
|
-
- Feature: added `'use client'` directives above all components.
|
|
919
|
-
|
|
920
|
-
## 0.2.2
|
|
921
|
-
|
|
922
|
-
- Fix: dynamic bindings for Link URLs.
|
|
923
|
-
- Fix: previewing content that includes a symbol whose `model` property is a `page`.
|
|
924
|
-
- Fix: "Show If"/"Hide If" bindings when the initial value is `undefined`.
|
|
925
|
-
|
|
926
|
-
## 0.2.1
|
|
927
|
-
|
|
928
|
-
- No Changes.
|
|
929
|
-
|
|
930
|
-
## 0.2.0
|
|
931
|
-
|
|
932
|
-
- Sets the default `apiVersion` to `v3`.
|
|
933
|
-
|
|
934
|
-
In case you feel the need to use our older API Version `v2`, reach out to us at support@builder.io first. But you can override the default by setting `apiVersion` explicitly to `v2` as follows:
|
|
935
|
-
|
|
936
|
-
```jsx
|
|
937
|
-
<RenderContent apiVersion="v2" />
|
|
938
|
-
```
|
|
939
|
-
|
|
940
|
-
```js
|
|
941
|
-
getContent({ apiVersion: "v2" });
|
|
942
|
-
```
|
|
943
|
-
|
|
944
|
-
More details on the Builder API Versions visit [this link](https://www.builder.io/c/docs/content-api-versions).
|