@superblocksteam/cli 2.0.6-next.32 → 2.0.6-next.34
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 +31 -17
- 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.6-next.
|
|
17
|
+
@superblocksteam/cli/2.0.6-next.34 linux-x64 node-v20.19.0
|
|
18
18
|
$ superblocks --help [COMMAND]
|
|
19
19
|
USAGE
|
|
20
20
|
$ superblocks COMMAND
|
package/dist/index.js
CHANGED
|
@@ -400198,11 +400198,11 @@ function PropertyInfo(value2, type2 = "STATIC", extra) {
|
|
|
400198
400198
|
var Property = {
|
|
400199
400199
|
Static: (value2) => PropertyInfo(value2, "STATIC"),
|
|
400200
400200
|
Binding: (value2) => PropertyInfo(value2, "BINDING"),
|
|
400201
|
-
Template: (value2) => PropertyInfo(value2, "TEMPLATE"),
|
|
400201
|
+
Template: (value2, args) => PropertyInfo(value2, "TEMPLATE", { args }),
|
|
400202
400202
|
Expression: (value2) => PropertyInfo(value2, "EXPRESSION"),
|
|
400203
400203
|
Event: (value2) => PropertyInfo(value2, "EVENT"),
|
|
400204
400204
|
Dimension: (value2) => PropertyInfo(value2, "DIMENSION"),
|
|
400205
|
-
Computed: (value2, args) => PropertyInfo(value2, "COMPUTED",
|
|
400205
|
+
Computed: (value2, args) => PropertyInfo(value2, "COMPUTED", { args }),
|
|
400206
400206
|
Any: (value2, type2 = "STATIC") => PropertyInfo(value2, type2)
|
|
400207
400207
|
};
|
|
400208
400208
|
function isPropertyInfo(value2) {
|
|
@@ -400211,6 +400211,9 @@ function isPropertyInfo(value2) {
|
|
|
400211
400211
|
function isComputedPropertyInfo(value2) {
|
|
400212
400212
|
return isPropertyInfo(value2) && value2.type === "COMPUTED";
|
|
400213
400213
|
}
|
|
400214
|
+
function isTemplatePropertyInfo(value2) {
|
|
400215
|
+
return isPropertyInfo(value2) && value2.type === "TEMPLATE";
|
|
400216
|
+
}
|
|
400214
400217
|
|
|
400215
400218
|
// ../../../library-shared/dist/utils/source-id.js
|
|
400216
400219
|
init_cjs_shims();
|
|
@@ -400231,6 +400234,21 @@ init_cjs_shims();
|
|
|
400231
400234
|
init_cjs_shims();
|
|
400232
400235
|
var BindingMetaSymbol = Symbol("binding-meta");
|
|
400233
400236
|
|
|
400237
|
+
// ../../../library-shared/dist/utils/computed-args.js
|
|
400238
|
+
init_cjs_shims();
|
|
400239
|
+
function getSingleArgString(arg) {
|
|
400240
|
+
if (Array.isArray(arg)) {
|
|
400241
|
+
return `{ ${arg.map(getSingleArgString).join(", ")} }`;
|
|
400242
|
+
}
|
|
400243
|
+
return arg.name;
|
|
400244
|
+
}
|
|
400245
|
+
function getComputedArgsString(args) {
|
|
400246
|
+
if (!args || args.length === 0) {
|
|
400247
|
+
return "";
|
|
400248
|
+
}
|
|
400249
|
+
return args.map(getSingleArgString).join(", ");
|
|
400250
|
+
}
|
|
400251
|
+
|
|
400234
400252
|
// ../../../library-shared/dist/layout.js
|
|
400235
400253
|
init_cjs_shims();
|
|
400236
400254
|
var Dim;
|
|
@@ -432599,12 +432617,8 @@ function findFirstValidExpression(testCases) {
|
|
|
432599
432617
|
}
|
|
432600
432618
|
function toCodeComputed(value2, info) {
|
|
432601
432619
|
let argsString = "";
|
|
432602
|
-
if (isComputedPropertyInfo(info)) {
|
|
432603
|
-
|
|
432604
|
-
argsString = `{ ${info.args.join(", ")} }`;
|
|
432605
|
-
} else if (typeof info.args === "string") {
|
|
432606
|
-
argsString = info.args;
|
|
432607
|
-
}
|
|
432620
|
+
if (isComputedPropertyInfo(info) || isTemplatePropertyInfo(info)) {
|
|
432621
|
+
argsString = getComputedArgsString(info.args);
|
|
432608
432622
|
}
|
|
432609
432623
|
const { hasThisReference, hasReturnStatement } = getFunctionBodyThisExpressionData(value2);
|
|
432610
432624
|
if (hasThisReference) {
|
|
@@ -433067,8 +433081,8 @@ init_cjs_shims();
|
|
|
433067
433081
|
|
|
433068
433082
|
// ../../../vite-plugin-file-sync/dist/parsing/template/to-code-template.js
|
|
433069
433083
|
init_cjs_shims();
|
|
433070
|
-
function toCodeTemplate(str2) {
|
|
433071
|
-
return toCodeComputed(`\`${str2}
|
|
433084
|
+
function toCodeTemplate(str2, info) {
|
|
433085
|
+
return toCodeComputed(`\`${str2}\``, info);
|
|
433072
433086
|
}
|
|
433073
433087
|
|
|
433074
433088
|
// ../../../vite-plugin-file-sync/dist/parsing/template/to-value-template.js
|
|
@@ -433101,7 +433115,7 @@ function toValueTemplate(nodePath) {
|
|
|
433101
433115
|
|
|
433102
433116
|
// ../../../vite-plugin-file-sync/dist/parsing/template/index.js
|
|
433103
433117
|
var parser5 = {
|
|
433104
|
-
toCode: (value2) => toCodeTemplate(value2),
|
|
433118
|
+
toCode: (value2, info) => toCodeTemplate(value2, info),
|
|
433105
433119
|
toValue: (source2) => toValueTemplate(source2)
|
|
433106
433120
|
};
|
|
433107
433121
|
|
|
@@ -442799,7 +442813,7 @@ var import_util30 = __toESM(require_dist3(), 1);
|
|
|
442799
442813
|
// ../sdk/package.json
|
|
442800
442814
|
var package_default = {
|
|
442801
442815
|
name: "@superblocksteam/sdk",
|
|
442802
|
-
version: "2.0.6-next.
|
|
442816
|
+
version: "2.0.6-next.34",
|
|
442803
442817
|
type: "module",
|
|
442804
442818
|
description: "Superblocks JS SDK",
|
|
442805
442819
|
homepage: "https://www.superblocks.com",
|
|
@@ -442840,11 +442854,11 @@ var package_default = {
|
|
|
442840
442854
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
442841
442855
|
"@rollup/wasm-node": "^4.35.0",
|
|
442842
442856
|
"@superblocksteam/bucketeer-sdk": "0.5.0",
|
|
442843
|
-
"@superblocksteam/library": "2.0.6-next.
|
|
442844
|
-
"@superblocksteam/library-shared": "2.0.6-next.
|
|
442857
|
+
"@superblocksteam/library": "2.0.6-next.34",
|
|
442858
|
+
"@superblocksteam/library-shared": "2.0.6-next.34",
|
|
442845
442859
|
"@superblocksteam/shared": "0.9198.0",
|
|
442846
|
-
"@superblocksteam/util": "2.0.6-next.
|
|
442847
|
-
"@superblocksteam/vite-plugin-file-sync": "2.0.6-next.
|
|
442860
|
+
"@superblocksteam/util": "2.0.6-next.34",
|
|
442861
|
+
"@superblocksteam/vite-plugin-file-sync": "2.0.6-next.34",
|
|
442848
442862
|
"@vitejs/plugin-react": "^4.3.4",
|
|
442849
442863
|
axios: "^1.4.0",
|
|
442850
442864
|
chokidar: "^4.0.3",
|
|
@@ -450416,7 +450430,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
|
|
|
450416
450430
|
const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
|
|
450417
450431
|
const customFolder = path37.join(root2, "custom");
|
|
450418
450432
|
const draftsFolder = path37.join(root2, ".superblocks");
|
|
450419
|
-
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.6-next.
|
|
450433
|
+
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.6-next.34";
|
|
450420
450434
|
const env3 = loadEnv(mode, root2, "");
|
|
450421
450435
|
const hmrPort = await getFreePort();
|
|
450422
450436
|
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.6-next.
|
|
3
|
+
"version": "2.0.6-next.34",
|
|
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.6-next.
|
|
45
|
+
"@superblocksteam/sdk": "2.0.6-next.34",
|
|
46
46
|
"@superblocksteam/shared": "0.9198.0",
|
|
47
|
-
"@superblocksteam/util": "2.0.6-next.
|
|
47
|
+
"@superblocksteam/util": "2.0.6-next.34",
|
|
48
48
|
"@types/babel__core": "^7.20.0",
|
|
49
49
|
"@types/chai": "^4",
|
|
50
50
|
"@types/fs-extra": "^11.0.1",
|