@superblocksteam/cli 2.0.3-next.105 → 2.0.3-next.106

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/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @superblocksteam/cli
14
14
  $ superblocks COMMAND
15
15
  running command...
16
16
  $ superblocks (--version)
17
- @superblocksteam/cli/2.0.3-next.105 linux-x64 node-v20.19.0
17
+ @superblocksteam/cli/2.0.3-next.106 linux-x64 node-v20.19.0
18
18
  $ superblocks --help [COMMAND]
19
19
  USAGE
20
20
  $ superblocks COMMAND
package/dist/index.js CHANGED
@@ -328881,7 +328881,7 @@ var import_dd_trace = __toESM(require_dd_trace2(), 1);
328881
328881
  // ../sdk/package.json
328882
328882
  var package_default = {
328883
328883
  name: "@superblocksteam/sdk",
328884
- version: "2.0.3-next.105",
328884
+ version: "2.0.3-next.106",
328885
328885
  type: "module",
328886
328886
  description: "Superblocks JS SDK",
328887
328887
  homepage: "https://www.superblocks.com",
@@ -328911,8 +328911,8 @@ var package_default = {
328911
328911
  "@rollup/wasm-node": "^4.35.0",
328912
328912
  "@superblocksteam/bucketeer-sdk": "0.4.1",
328913
328913
  "@superblocksteam/shared": "^0.9081.0",
328914
- "@superblocksteam/util": "2.0.3-next.105",
328915
- "@superblocksteam/vite-plugin-file-sync": "2.0.3-next.105",
328914
+ "@superblocksteam/util": "2.0.3-next.106",
328915
+ "@superblocksteam/vite-plugin-file-sync": "2.0.3-next.106",
328916
328916
  "@vitejs/plugin-react": "^4.3.4",
328917
328917
  axios: "^1.4.0",
328918
328918
  chokidar: "^4.0.3",
@@ -368420,7 +368420,7 @@ export default registerPage(Page, { name: "${name17}" });
368420
368420
  }
368421
368421
  const changes = await this.sourceTracker?.getAndFlushChanges() ?? [];
368422
368422
  await this.writeChanges(changes ?? []);
368423
- this.emit("batchUpdate", payload);
368423
+ this.emit("batchUpdate", Array.from(new Set(changes.map((c2) => c2.fileName))));
368424
368424
  this.flushTransactions();
368425
368425
  return returnValues;
368426
368426
  };
@@ -369772,6 +369772,14 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
369772
369772
  await syncService.uploadDirectory();
369773
369773
  }
369774
369774
  };
369775
+ const sendMultiRootUpdate = async (paths, sync2 = false) => {
369776
+ paths.forEach((path46) => {
369777
+ sendRootUpdate(path46);
369778
+ });
369779
+ if (sync2 && syncService) {
369780
+ await syncService.uploadDirectory();
369781
+ }
369782
+ };
369775
369783
  const sendRootReset = async (sync2 = false) => {
369776
369784
  const appScope = await getAppScope(fileSyncManager);
369777
369785
  socketManager.callEditorClients((socket) => {
@@ -369841,6 +369849,7 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
369841
369849
  fileSyncManager.removeAllListeners();
369842
369850
  fileSyncManager.on("error", sendError);
369843
369851
  fileSyncManager.on("reparent", sendRootUpdate);
369852
+ fileSyncManager.on("batchUpdate", sendMultiRootUpdate);
369844
369853
  fileSyncManager.on("createComponent", sendRootUpdate);
369845
369854
  fileSyncManager.on("deleteComponents", sendDeleteComponentsUpdate);
369846
369855
  fileSyncManager.on("addEntity", sendEntityUpdate);
@@ -509,5 +509,5 @@
509
509
  "strict": true
510
510
  }
511
511
  },
512
- "version": "2.0.3-next.105"
512
+ "version": "2.0.3-next.106"
513
513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "2.0.3-next.105",
3
+ "version": "2.0.3-next.106",
4
4
  "type": "module",
5
5
  "description": "Official Superblocks CLI",
6
6
  "homepage": "https://www.superblocks.com",
@@ -42,9 +42,9 @@
42
42
  "devDependencies": {
43
43
  "@eslint/js": "^9.16.0",
44
44
  "@oclif/test": "^4.1.11",
45
- "@superblocksteam/sdk": "2.0.3-next.105",
45
+ "@superblocksteam/sdk": "2.0.3-next.106",
46
46
  "@superblocksteam/shared": "^0.9081.0",
47
- "@superblocksteam/util": "2.0.3-next.105",
47
+ "@superblocksteam/util": "2.0.3-next.106",
48
48
  "@types/babel__core": "^7.20.0",
49
49
  "@types/chai": "^4",
50
50
  "@types/fs-extra": "^11.0.1",