@superblocksteam/cli 2.0.0-next.17 → 2.0.0-next.19

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.0-next.17 linux-x64 node-v20.19.0
17
+ @superblocksteam/cli/2.0.0-next.19 linux-x64 node-v20.19.0
18
18
  $ superblocks --help [COMMAND]
19
19
  USAGE
20
20
  $ superblocks COMMAND
package/dist/index.js CHANGED
@@ -50599,12 +50599,12 @@ var require_application = __commonJS({
50599
50599
  };
50600
50600
  }
50601
50601
  exports2.getDefaultRoute = getDefaultRoute;
50602
- var ThemeMode2;
50603
- (function(ThemeMode3) {
50604
- ThemeMode3["LIGHT"] = "LIGHT";
50605
- ThemeMode3["DARK"] = "DARK";
50606
- ThemeMode3["AUTO"] = "AUTO";
50607
- })(ThemeMode2 = exports2.ThemeMode || (exports2.ThemeMode = {}));
50602
+ var ThemeMode;
50603
+ (function(ThemeMode2) {
50604
+ ThemeMode2["LIGHT"] = "LIGHT";
50605
+ ThemeMode2["DARK"] = "DARK";
50606
+ ThemeMode2["AUTO"] = "AUTO";
50607
+ })(ThemeMode = exports2.ThemeMode || (exports2.ThemeMode = {}));
50608
50608
  exports2.CUSTOM_THEME_TYPOGRAPHY_KEY = "custom";
50609
50609
  function toExportedApplicationSettings(applicationSettings) {
50610
50610
  return {
@@ -263726,7 +263726,7 @@ init_esm();
263726
263726
  // ../sdk/package.json
263727
263727
  var package_default = {
263728
263728
  name: "@superblocksteam/sdk",
263729
- version: "2.0.0-next.17",
263729
+ version: "2.0.0-next.19",
263730
263730
  type: "module",
263731
263731
  description: "Superblocks JS SDK",
263732
263732
  homepage: "https://www.superblocks.com",
@@ -263763,8 +263763,8 @@ var package_default = {
263763
263763
  "@rollup/wasm-node": "^4.35.0",
263764
263764
  "@superblocksteam/bucketeer-sdk": "0.4.1",
263765
263765
  "@superblocksteam/shared": "0.9132.0",
263766
- "@superblocksteam/util": "2.0.0-next.17",
263767
- "@superblocksteam/vite-plugin-file-sync": "2.0.0-next.17",
263766
+ "@superblocksteam/util": "2.0.0-next.19",
263767
+ "@superblocksteam/vite-plugin-file-sync": "2.0.0-next.19",
263768
263768
  "@vitejs/plugin-react": "^4.3.4",
263769
263769
  axios: "^1.4.0",
263770
263770
  chokidar: "^4.0.3",
@@ -275324,18 +275324,19 @@ init_cjs_shims();
275324
275324
  // ../../../vite-plugin-file-sync/dist/util/logger.js
275325
275325
  init_cjs_shims();
275326
275326
  var loggerPrefix = "[vite-plugin-file-sync]";
275327
+ var getTimestamp = () => (/* @__PURE__ */ new Date()).toISOString();
275327
275328
  var logger = Object.freeze({
275328
275329
  debug: (message, ...meta2) => {
275329
- console.log(`${loggerPrefix} ${message}`, ...meta2);
275330
+ console.log(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275330
275331
  },
275331
275332
  info: (message, ...meta2) => {
275332
- console.log(`${loggerPrefix} ${message}`, ...meta2);
275333
+ console.log(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275333
275334
  },
275334
275335
  warn: (message, ...meta2) => {
275335
- console.warn(`${loggerPrefix} ${message}`, ...meta2);
275336
+ console.warn(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275336
275337
  },
275337
275338
  error: (message, ...meta2) => {
275338
- console.error(`${loggerPrefix} ${message}`, ...meta2);
275339
+ console.error(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275339
275340
  }
275340
275341
  });
275341
275342
  function setLogger(newLogger) {
@@ -275350,16 +275351,16 @@ function setLogger(newLogger) {
275350
275351
  }
275351
275352
  logger = Object.freeze({
275352
275353
  debug: (message, ...meta2) => {
275353
- newLogger.debug(`${loggerPrefix} ${message}`, ...meta2);
275354
+ newLogger.debug(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275354
275355
  },
275355
275356
  info: (message, ...meta2) => {
275356
- newLogger.info(`${loggerPrefix} ${message}`, ...meta2);
275357
+ newLogger.info(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275357
275358
  },
275358
275359
  warn: (message, ...meta2) => {
275359
- newLogger.warn(`${loggerPrefix} ${message}`, ...meta2);
275360
+ newLogger.warn(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275360
275361
  },
275361
275362
  error: (message, ...meta2) => {
275362
- newLogger.error(`${loggerPrefix} ${message}`, ...meta2);
275363
+ newLogger.error(`[${getTimestamp()}] ${loggerPrefix} ${message}`, ...meta2);
275363
275364
  }
275364
275365
  });
275365
275366
  return logger;
@@ -276235,12 +276236,6 @@ init_cjs_shims();
276235
276236
 
276236
276237
  // ../../../library-shared/dist/types/theme.js
276237
276238
  init_cjs_shims();
276238
- var ThemeMode;
276239
- (function(ThemeMode2) {
276240
- ThemeMode2["LIGHT"] = "LIGHT";
276241
- ThemeMode2["DARK"] = "DARK";
276242
- ThemeMode2["AUTO"] = "AUTO";
276243
- })(ThemeMode || (ThemeMode = {}));
276244
276239
 
276245
276240
  // ../../../library-shared/dist/types/common.js
276246
276241
  init_cjs_shims();
@@ -301620,13 +301615,13 @@ var updateThemeAst = (ast, updates) => {
301620
301615
  traverse(ast, {
301621
301616
  ExportDefaultDeclaration(path45) {
301622
301617
  const themeObject = path45.get("declaration").get("expression");
301623
- if (!(import_types19.default.isTSSatisfiesExpression(path45.node.declaration) && import_types19.default.isTSTypeReference(path45.node.declaration.typeAnnotation) && import_types19.default.isIdentifier(path45.node.declaration.typeAnnotation.typeName) && path45.node.declaration.typeAnnotation.typeName.name === "Theme" && !Array.isArray(themeObject) && import_types19.default.isObjectExpression(themeObject.node))) {
301618
+ if (!(import_types19.default.isTSSatisfiesExpression(path45.node.declaration) && import_types19.default.isTSTypeReference(path45.node.declaration.typeAnnotation) && import_types19.default.isIdentifier(path45.node.declaration.typeAnnotation.typeName) && path45.node.declaration.typeAnnotation.typeName.name === "AppTheme" && !Array.isArray(themeObject) && import_types19.default.isObjectExpression(themeObject.node))) {
301624
301619
  throw new Error(`Could not update theme because the default export is not an object expression. We currently only support exporting the theme as a default export which should satisfy the Theme type from @superblocks/library. Example:
301625
301620
 
301626
301621
  import type { Theme } from "@superblocksteam/library";
301627
301622
  export default {
301628
301623
  borderRadius: { mode: 'px', value: 4 },
301629
- } satisfies Theme;
301624
+ } satisfies AppTheme;
301630
301625
  `);
301631
301626
  }
301632
301627
  mergeThemeUpdates(themeObject, updates);
@@ -308666,7 +308661,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
308666
308661
  };
308667
308662
  const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
308668
308663
  const customFolder = path21.join(root2, "custom");
308669
- const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.17";
308664
+ const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.19";
308670
308665
  const env3 = loadEnv(mode, root2, "");
308671
308666
  const hmrPort = await getFreePort();
308672
308667
  const hmrOptions = {
@@ -509,5 +509,5 @@
509
509
  "strict": true
510
510
  }
511
511
  },
512
- "version": "2.0.0-next.17"
512
+ "version": "2.0.0-next.19"
513
513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "2.0.0-next.17",
3
+ "version": "2.0.0-next.19",
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.17",
45
+ "@superblocksteam/sdk": "2.0.0-next.19",
46
46
  "@superblocksteam/shared": "0.9132.0",
47
- "@superblocksteam/util": "2.0.0-next.17",
47
+ "@superblocksteam/util": "2.0.0-next.19",
48
48
  "@types/babel__core": "^7.20.0",
49
49
  "@types/chai": "^4",
50
50
  "@types/fs-extra": "^11.0.1",