@superblocksteam/cli 2.0.0-next.65 → 2.0.0-next.69
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 +17 -18
- 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.69 linux-x64 node-v20.19.0
|
|
18
18
|
$ superblocks --help [COMMAND]
|
|
19
19
|
USAGE
|
|
20
20
|
$ superblocks COMMAND
|
package/dist/index.js
CHANGED
|
@@ -102786,10 +102786,10 @@ var require_appDSL = __commonJS({
|
|
|
102786
102786
|
h2 ^= Math.imul(h1 ^ h1 >>> 13, 3266489909);
|
|
102787
102787
|
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
|
102788
102788
|
};
|
|
102789
|
-
var
|
|
102789
|
+
var generatePredictableId3 = (name18) => {
|
|
102790
102790
|
return cyrb532(name18).toString(36);
|
|
102791
102791
|
};
|
|
102792
|
-
exports2.generatePredictableId =
|
|
102792
|
+
exports2.generatePredictableId = generatePredictableId3;
|
|
102793
102793
|
}
|
|
102794
102794
|
});
|
|
102795
102795
|
|
|
@@ -302711,6 +302711,9 @@ var import_shared19 = __toESM(require_dist2(), 1);
|
|
|
302711
302711
|
function getStableScopeId(scopeName) {
|
|
302712
302712
|
return (0, import_shared19.generatePredictableId)(`sc-${scopeName}`);
|
|
302713
302713
|
}
|
|
302714
|
+
function getStableEntityId(scopeId, entityName) {
|
|
302715
|
+
return `SB-${(0, import_shared19.generatePredictableId)(scopeId + entityName)}-type`;
|
|
302716
|
+
}
|
|
302714
302717
|
|
|
302715
302718
|
// ../../../vite-plugin-file-sync/dist/binding-extraction/extract-identifiers.js
|
|
302716
302719
|
var import_shared21 = __toESM(require_dist2(), 1);
|
|
@@ -309031,7 +309034,7 @@ function supplementElementIds({ fileName, ast, shouldModifyAst, scopeId }) {
|
|
|
309031
309034
|
entitiesObject.node.properties.forEach((property, index) => {
|
|
309032
309035
|
if (property.type === "ObjectProperty") {
|
|
309033
309036
|
const name18 = nodeToValue(property.key);
|
|
309034
|
-
const id2 =
|
|
309037
|
+
const id2 = getStableEntityId(scopeId, name18);
|
|
309035
309038
|
idMap.set(id2, entitiesObject.get(`properties.${index}`));
|
|
309036
309039
|
setSbElementId(property, id2);
|
|
309037
309040
|
if (shouldModifyAst) {
|
|
@@ -309513,7 +309516,6 @@ var import_core2 = __toESM(require_lib33(), 1);
|
|
|
309513
309516
|
var import_parser4 = __toESM(require_lib9(), 1);
|
|
309514
309517
|
var import_types16 = __toESM(require_lib7(), 1);
|
|
309515
309518
|
var t6 = __toESM(require_lib7(), 1);
|
|
309516
|
-
var import_appDSL = __toESM(require_appDSL(), 1);
|
|
309517
309519
|
|
|
309518
309520
|
// ../../../vite-plugin-file-sync/dist/parsing/entity/index.js
|
|
309519
309521
|
init_cjs_shims();
|
|
@@ -309697,9 +309699,6 @@ var REQUIRED_IMPORTS_BY_PROPERTY_TYPE = {
|
|
|
309697
309699
|
};
|
|
309698
309700
|
|
|
309699
309701
|
// ../../../vite-plugin-file-sync/dist/parsing/scope.js
|
|
309700
|
-
function getScopeElementId(scopeId, name18) {
|
|
309701
|
-
return `SB-${(0, import_appDSL.generatePredictableId)(scopeId + name18)}-type`;
|
|
309702
|
-
}
|
|
309703
309702
|
var importsByEntityType = {
|
|
309704
309703
|
[SbEntityType.VARIABLE]: [
|
|
309705
309704
|
{ importName: "SB", importPath: "@superblocksteam/library" },
|
|
@@ -309998,7 +309997,7 @@ function parseSbScopeDefinition(ast) {
|
|
|
309998
309997
|
}
|
|
309999
309998
|
let entityId = getSbElementId(prop.node);
|
|
310000
309999
|
if (!entityId) {
|
|
310001
|
-
entityId =
|
|
310000
|
+
entityId = getStableEntityId(scopeId, name18);
|
|
310002
310001
|
setSbElementId(prop.node, entityId);
|
|
310003
310002
|
}
|
|
310004
310003
|
if (entityId) {
|
|
@@ -310975,7 +310974,7 @@ var SbScopeManager = class extends EventEmitter7 {
|
|
|
310975
310974
|
}
|
|
310976
310975
|
});
|
|
310977
310976
|
});
|
|
310978
|
-
const id2 =
|
|
310977
|
+
const id2 = getStableEntityId(scopeId, payload.name);
|
|
310979
310978
|
this.sourceTracker.setElementToLocation(id2, newEntityNode);
|
|
310980
310979
|
this.sourceTracker.setElementToFilePath(id2, filePath);
|
|
310981
310980
|
scopeDef.entityNames.push(payload.name);
|
|
@@ -311073,7 +311072,7 @@ var SbScopeManager = class extends EventEmitter7 {
|
|
|
311073
311072
|
key2.replaceWith(import_types21.default.identifier(newName));
|
|
311074
311073
|
}
|
|
311075
311074
|
scopeDef.entityNames = scopeDef.entityNames.map((name18) => name18 === oldName ? newName : name18);
|
|
311076
|
-
const newEntityId =
|
|
311075
|
+
const newEntityId = getStableEntityId(scopeDef.id, newName);
|
|
311077
311076
|
this.sourceTracker.deleteElementToLocation(entityId);
|
|
311078
311077
|
this.sourceTracker.deleteElementToFilePath(entityId);
|
|
311079
311078
|
scopeDef.scopeNameToEntityId[newName] = newEntityId;
|
|
@@ -311107,7 +311106,7 @@ var SbScopeManager = class extends EventEmitter7 {
|
|
|
311107
311106
|
const newComponents = scopeDef.scopeComponents.pushContainer("members", newProperty);
|
|
311108
311107
|
scopeDef.entityNames.push(componentName);
|
|
311109
311108
|
const updatedFiles = this.updateScopeUsages(scopeDef.name, scopeDef.entityNames);
|
|
311110
|
-
const entityId =
|
|
311109
|
+
const entityId = getStableEntityId(scopeDef.id, componentName);
|
|
311111
311110
|
this.sourceTracker.setElementToLocation(entityId, newComponents[0]);
|
|
311112
311111
|
this.sourceTracker.setElementToFilePath(entityId, filePath);
|
|
311113
311112
|
updateDestructuredEntitiesParam(scopeDef);
|
|
@@ -311121,7 +311120,7 @@ var SbScopeManager = class extends EventEmitter7 {
|
|
|
311121
311120
|
if (!scopeDef) {
|
|
311122
311121
|
return [];
|
|
311123
311122
|
}
|
|
311124
|
-
const componentTypeId =
|
|
311123
|
+
const componentTypeId = getStableEntityId(scopeDef.id, componentName);
|
|
311125
311124
|
const componentNode = this.sourceTracker.getElementToLocation(componentTypeId);
|
|
311126
311125
|
const filePath = this.sourceTracker.getElementToFilePath(componentTypeId);
|
|
311127
311126
|
if (!componentNode || !import_types21.default.isTSPropertySignature(componentNode.node) || !filePath) {
|
|
@@ -311147,7 +311146,7 @@ var SbScopeManager = class extends EventEmitter7 {
|
|
|
311147
311146
|
if (!scopeDef) {
|
|
311148
311147
|
return [];
|
|
311149
311148
|
}
|
|
311150
|
-
const componentTypeId =
|
|
311149
|
+
const componentTypeId = getStableEntityId(scopeDef.id, oldName);
|
|
311151
311150
|
const filePath = this.sourceTracker.getElementToFilePath(componentTypeId);
|
|
311152
311151
|
if (!filePath) {
|
|
311153
311152
|
return this.resetScope(scopeFile);
|
|
@@ -311165,7 +311164,7 @@ var SbScopeManager = class extends EventEmitter7 {
|
|
|
311165
311164
|
const updatedFiles = this.updateScopeUsages(scopeDef.name, scopeDef.entityNames);
|
|
311166
311165
|
this.sourceTracker.deleteElementToLocation(componentTypeId);
|
|
311167
311166
|
this.sourceTracker.deleteElementToFilePath(componentTypeId);
|
|
311168
|
-
const newComponentTypeId =
|
|
311167
|
+
const newComponentTypeId = getStableEntityId(scopeDef.id, newName);
|
|
311169
311168
|
scopeDef.scopeNameToEntityId[newName] = newComponentTypeId;
|
|
311170
311169
|
this.sourceTracker.setElementToLocation(newComponentTypeId, componentNode);
|
|
311171
311170
|
this.sourceTracker.setElementToFilePath(newComponentTypeId, filePath);
|
|
@@ -317943,7 +317942,7 @@ var import_util29 = __toESM(require_dist3(), 1);
|
|
|
317943
317942
|
// ../sdk/package.json
|
|
317944
317943
|
var package_default = {
|
|
317945
317944
|
name: "@superblocksteam/sdk",
|
|
317946
|
-
version: "2.0.0-next.
|
|
317945
|
+
version: "2.0.0-next.69",
|
|
317947
317946
|
type: "module",
|
|
317948
317947
|
description: "Superblocks JS SDK",
|
|
317949
317948
|
homepage: "https://www.superblocks.com",
|
|
@@ -317985,8 +317984,8 @@ var package_default = {
|
|
|
317985
317984
|
"@rollup/wasm-node": "^4.35.0",
|
|
317986
317985
|
"@superblocksteam/bucketeer-sdk": "0.5.0",
|
|
317987
317986
|
"@superblocksteam/shared": "0.9146.0",
|
|
317988
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
317989
|
-
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.
|
|
317987
|
+
"@superblocksteam/util": "2.0.0-next.69",
|
|
317988
|
+
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.69",
|
|
317990
317989
|
"@vitejs/plugin-react": "^4.3.4",
|
|
317991
317990
|
axios: "^1.4.0",
|
|
317992
317991
|
chokidar: "^4.0.3",
|
|
@@ -324929,7 +324928,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
|
|
|
324929
324928
|
};
|
|
324930
324929
|
const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
|
|
324931
324930
|
const customFolder = path34.join(root2, "custom");
|
|
324932
|
-
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.
|
|
324931
|
+
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.69";
|
|
324933
324932
|
const env3 = loadEnv(mode, root2, "");
|
|
324934
324933
|
const hmrPort = await getFreePort();
|
|
324935
324934
|
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.69",
|
|
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.69",
|
|
46
46
|
"@superblocksteam/shared": "0.9146.0",
|
|
47
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
47
|
+
"@superblocksteam/util": "2.0.0-next.69",
|
|
48
48
|
"@types/babel__core": "^7.20.0",
|
|
49
49
|
"@types/chai": "^4",
|
|
50
50
|
"@types/fs-extra": "^11.0.1",
|