@superblocksteam/cli 2.0.0-next.87 → 2.0.0-next.88
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 +1 -1
- package/dist/index.js +16 -13
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
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.0-next.
|
|
17
|
+
@superblocksteam/cli/2.0.0-next.88 linux-x64 node-v20.19.0
|
|
18
18
|
$ superblocks --help [COMMAND]
|
|
19
19
|
USAGE
|
|
20
20
|
$ superblocks COMMAND
|
package/dist/index.js
CHANGED
|
@@ -313183,8 +313183,8 @@ export default registerPage(Page, { name: "${name18}" });
|
|
|
313183
313183
|
const changes = await this.sourceTracker?.getAndFlushChanges() ?? [];
|
|
313184
313184
|
await this.writeChanges(changes ?? []);
|
|
313185
313185
|
this.flushTransactions();
|
|
313186
|
+
this.emit("setProperty", payload);
|
|
313186
313187
|
}
|
|
313187
|
-
this.emit("setProperty", payload);
|
|
313188
313188
|
};
|
|
313189
313189
|
handleSetProperties = async (payload, writeFile8 = true) => {
|
|
313190
313190
|
const { element: { source: source2 }, properties, transaction } = payload;
|
|
@@ -313197,8 +313197,8 @@ export default registerPage(Page, { name: "${name18}" });
|
|
|
313197
313197
|
const changes = await this.sourceTracker?.getAndFlushChanges() ?? [];
|
|
313198
313198
|
await this.writeChanges(changes ?? []);
|
|
313199
313199
|
this.flushTransactions();
|
|
313200
|
+
this.emit("setProperties", payload);
|
|
313200
313201
|
}
|
|
313201
|
-
this.emit("setProperties", payload);
|
|
313202
313202
|
};
|
|
313203
313203
|
handleDeleteProperties = async (payload, writeFile8 = true) => {
|
|
313204
313204
|
this.trackTransaction(payload.transaction?.id);
|
|
@@ -313209,9 +313209,9 @@ export default registerPage(Page, { name: "${name18}" });
|
|
|
313209
313209
|
if (writeFile8) {
|
|
313210
313210
|
const changes = await this.sourceTracker?.getAndFlushChanges() ?? [];
|
|
313211
313211
|
await this.writeChanges(changes ?? []);
|
|
313212
|
+
this.emit("deleteProperties", payload);
|
|
313212
313213
|
this.flushTransactions();
|
|
313213
313214
|
}
|
|
313214
|
-
this.emit("deleteProperties", payload);
|
|
313215
313215
|
};
|
|
313216
313216
|
handleBatchUpdate = async (payload) => {
|
|
313217
313217
|
const { updates, transaction } = payload;
|
|
@@ -313241,7 +313241,7 @@ export default registerPage(Page, { name: "${name18}" });
|
|
|
313241
313241
|
}
|
|
313242
313242
|
const changes = await this.sourceTracker?.getAndFlushChanges() ?? [];
|
|
313243
313243
|
await this.writeChanges(changes ?? []);
|
|
313244
|
-
this.emit("batchUpdate", Array.from(new Set(changes.map((c2) => c2.fileName))));
|
|
313244
|
+
this.emit("batchUpdate", Array.from(new Set(changes.map((c2) => c2.fileName))), payload);
|
|
313245
313245
|
this.flushTransactions();
|
|
313246
313246
|
return returnValues;
|
|
313247
313247
|
};
|
|
@@ -314281,11 +314281,14 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
|
|
|
314281
314281
|
await syncService.uploadDirectory();
|
|
314282
314282
|
}
|
|
314283
314283
|
};
|
|
314284
|
-
const sendMultiRootUpdate = async (paths,
|
|
314285
|
-
|
|
314286
|
-
|
|
314287
|
-
|
|
314288
|
-
|
|
314284
|
+
const sendMultiRootUpdate = async (paths, payload) => {
|
|
314285
|
+
const shouldSendRootUpdate = payload.updates.some((update) => update.type !== "editor:setProperty" && update.type !== "editor:setProperties");
|
|
314286
|
+
if (shouldSendRootUpdate) {
|
|
314287
|
+
paths.forEach((path51) => {
|
|
314288
|
+
sendRootUpdate(path51);
|
|
314289
|
+
});
|
|
314290
|
+
}
|
|
314291
|
+
if (syncService) {
|
|
314289
314292
|
await syncService.uploadDirectory();
|
|
314290
314293
|
}
|
|
314291
314294
|
};
|
|
@@ -318358,7 +318361,7 @@ var import_util29 = __toESM(require_dist3(), 1);
|
|
|
318358
318361
|
// ../sdk/package.json
|
|
318359
318362
|
var package_default = {
|
|
318360
318363
|
name: "@superblocksteam/sdk",
|
|
318361
|
-
version: "2.0.0-next.
|
|
318364
|
+
version: "2.0.0-next.88",
|
|
318362
318365
|
type: "module",
|
|
318363
318366
|
description: "Superblocks JS SDK",
|
|
318364
318367
|
homepage: "https://www.superblocks.com",
|
|
@@ -318400,8 +318403,8 @@ var package_default = {
|
|
|
318400
318403
|
"@rollup/wasm-node": "^4.35.0",
|
|
318401
318404
|
"@superblocksteam/bucketeer-sdk": "0.5.0",
|
|
318402
318405
|
"@superblocksteam/shared": "0.9149.0",
|
|
318403
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
318404
|
-
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.
|
|
318406
|
+
"@superblocksteam/util": "2.0.0-next.88",
|
|
318407
|
+
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.88",
|
|
318405
318408
|
"@vitejs/plugin-react": "^4.3.4",
|
|
318406
318409
|
axios: "^1.4.0",
|
|
318407
318410
|
chokidar: "^4.0.3",
|
|
@@ -325350,7 +325353,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
|
|
|
325350
325353
|
};
|
|
325351
325354
|
const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
|
|
325352
325355
|
const customFolder = path34.join(root2, "custom");
|
|
325353
|
-
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.
|
|
325356
|
+
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.88";
|
|
325354
325357
|
const env3 = loadEnv(mode, root2, "");
|
|
325355
325358
|
const hmrPort = await getFreePort();
|
|
325356
325359
|
const hmrOptions = {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/cli",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.88",
|
|
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.0-next.
|
|
45
|
+
"@superblocksteam/sdk": "2.0.0-next.88",
|
|
46
46
|
"@superblocksteam/shared": "0.9149.0",
|
|
47
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
47
|
+
"@superblocksteam/util": "2.0.0-next.88",
|
|
48
48
|
"@types/babel__core": "^7.20.0",
|
|
49
49
|
"@types/chai": "^4",
|
|
50
50
|
"@types/fs-extra": "^11.0.1",
|