@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 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
@@ -1052,7 +1052,7 @@
1052
1052
 
1053
1053
  var DEFAULT_API_VERSION = 'v3';
1054
1054
 
1055
- var SDK_VERSION = '6.0.8';
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);