@builder.io/sdk 6.0.8 → 6.1.0
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 +15 -0
- package/dist/index.browser.js +12 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +12 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +15 -1
- package/dist/src/builder.class.js +11 -0
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/sdk-version.d.ts +1 -1
- package/dist/src/sdk-version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @builder.io/sdk
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c7417f1: **Refactor Next.js SDK to support RSC-based hybrid editing for \[Text, Image, Video, Button, Section, Columns, Symbols]**
|
|
8
|
+
- Client-side updates enabled for faster editing on Text, Image, Video, and Button
|
|
9
|
+
- Section, Columns, and Symbols treated as server components for optimized SSR
|
|
10
|
+
- Improved performance and flexibility for visual editing in RSC environments
|
|
11
|
+
|
|
12
|
+
## 6.0.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 1c659e9: feat: add support for register action
|
|
17
|
+
|
|
3
18
|
## 6.0.8
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.browser.js
CHANGED
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
|
|
1053
1053
|
var DEFAULT_API_VERSION = 'v3';
|
|
1054
1054
|
|
|
1055
|
-
var SDK_VERSION = '6.0
|
|
1055
|
+
var SDK_VERSION = '6.1.0';
|
|
1056
1056
|
|
|
1057
1057
|
function datePlusMinutes(minutes) {
|
|
1058
1058
|
if (minutes === void 0) { minutes = 30; }
|
|
@@ -1368,7 +1368,18 @@
|
|
|
1368
1368
|
this.plugins.push(info);
|
|
1369
1369
|
};
|
|
1370
1370
|
Builder.registerAction = function (action) {
|
|
1371
|
+
var _a;
|
|
1371
1372
|
this.actions.push(action);
|
|
1373
|
+
if (Builder.isBrowser) {
|
|
1374
|
+
var actionClone = JSON.parse(JSON.stringify(action));
|
|
1375
|
+
if (action.action) {
|
|
1376
|
+
actionClone.action = action.action.toString();
|
|
1377
|
+
}
|
|
1378
|
+
(_a = window.parent) === null || _a === void 0 ? void 0 : _a.postMessage({
|
|
1379
|
+
type: 'builder.registerAction',
|
|
1380
|
+
data: actionClone,
|
|
1381
|
+
}, '*');
|
|
1382
|
+
}
|
|
1372
1383
|
};
|
|
1373
1384
|
Builder.registerTrustedHost = function (host) {
|
|
1374
1385
|
this.trustedHosts.push(host);
|