@dashai/cli 0.32.2 → 0.33.0

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/dist/bin.js CHANGED
@@ -1095,7 +1095,7 @@ var USES_SDK_FLOOR, SCAFFOLD_SDK_RANGE, LAST_SDK_WITHOUT_SNAKE_USES_SLUGS;
1095
1095
  var init_sdk_version = __esm({
1096
1096
  "src/lib/sdk-version.ts"() {
1097
1097
  USES_SDK_FLOOR = "2.5.0";
1098
- SCAFFOLD_SDK_RANGE = "^2.5.0";
1098
+ SCAFFOLD_SDK_RANGE = "^2.16.0";
1099
1099
  LAST_SDK_WITHOUT_SNAKE_USES_SLUGS = "2.14.0";
1100
1100
  }
1101
1101
  });
@@ -1845,7 +1845,7 @@ var init_simple = __esm({
1845
1845
  name: "dashwise-module-template",
1846
1846
  version: "0.0.1",
1847
1847
  dependencies: {
1848
- "@dashai/sdk": "^2.5.0",
1848
+ "@dashai/sdk": "^2.16.0",
1849
1849
  next: "^15.0.0",
1850
1850
  react: "^19.0.0",
1851
1851
  "react-dom": "^19.0.0"
@@ -1861,9 +1861,9 @@ var init_simple = __esm({
1861
1861
  }
1862
1862
  },
1863
1863
  "node_modules/@dashai/sdk": {
1864
- version: "2.8.0",
1865
- resolved: "https://registry.npmjs.org/@dashai/sdk/-/sdk-2.8.0.tgz",
1866
- integrity: "sha512-wGmQrU9cmhDfMrIB5bYbCu9KHws9KHKTMJJswqWh6E0Vy7XMGKz34I+5gwaukNSMCsYl+JsW2fXMKazszGISMg==",
1864
+ version: "2.16.0",
1865
+ resolved: "https://registry.npmjs.org/@dashai/sdk/-/sdk-2.16.0.tgz",
1866
+ integrity: "sha512-3D3qbhgnk5RQxUFYMnUIBj5SIEzXWe31DazlOboW1ZWBZk05jcLex2CcvUbrSzZyZVUBZas2Uyzr+F2baa4a6A==",
1867
1867
  license: "MIT",
1868
1868
  engines: {
1869
1869
  node: ">=20"
@@ -2880,7 +2880,7 @@ var init_custom = __esm({
2880
2880
  name: "dashwise-module-template",
2881
2881
  version: "0.0.1",
2882
2882
  dependencies: {
2883
- "@dashai/sdk": "^2.5.0",
2883
+ "@dashai/sdk": "^2.16.0",
2884
2884
  "@tailwindcss/postcss": "^4",
2885
2885
  "class-variance-authority": "^0.7.1",
2886
2886
  clsx: "^2.1.1",
@@ -3324,9 +3324,9 @@ var init_custom = __esm({
3324
3324
  }
3325
3325
  },
3326
3326
  "node_modules/@dashai/sdk": {
3327
- version: "2.8.0",
3328
- resolved: "https://registry.npmjs.org/@dashai/sdk/-/sdk-2.8.0.tgz",
3329
- integrity: "sha512-wGmQrU9cmhDfMrIB5bYbCu9KHws9KHKTMJJswqWh6E0Vy7XMGKz34I+5gwaukNSMCsYl+JsW2fXMKazszGISMg==",
3327
+ version: "2.16.0",
3328
+ resolved: "https://registry.npmjs.org/@dashai/sdk/-/sdk-2.16.0.tgz",
3329
+ integrity: "sha512-3D3qbhgnk5RQxUFYMnUIBj5SIEzXWe31DazlOboW1ZWBZk05jcLex2CcvUbrSzZyZVUBZas2Uyzr+F2baa4a6A==",
3330
3330
  license: "MIT",
3331
3331
  engines: {
3332
3332
  node: ">=20"
@@ -10312,7 +10312,9 @@ function tsconfigJson() {
10312
10312
  ) + "\n";
10313
10313
  }
10314
10314
  function nextConfig() {
10315
- return `/** @type {import("next").NextConfig} */
10315
+ return `import { withDashwise } from '@dashai/sdk/next';
10316
+
10317
+ /** @type {import("next").NextConfig} */
10316
10318
  //
10317
10319
  // Phase 2 two-var contract: the deploy env supplies exactly
10318
10320
  // DASHWISE_API_URL + DASHWISE_API_KEY. The browser needs the API URL
@@ -10367,7 +10369,12 @@ const nextConfig = {
10367
10369
  ];
10368
10370
  },
10369
10371
  };
10370
- export default nextConfig;
10372
+
10373
+ // Visual edit in a DashAI Builder Workbench: in a Workbench's \`next dev\`
10374
+ // only, the module's elements carry their source location so the author can
10375
+ // click one in the preview. Everywhere else (\`next build\`, \`next start\`, a
10376
+ // deployed module) this returns the config unchanged.
10377
+ export default withDashwise(nextConfig);
10371
10378
  `;
10372
10379
  }
10373
10380
  function nextEnvDts() {
@@ -28430,7 +28437,7 @@ fieldCmd.command("set-type <table-slug> <field-slug> <new-type>").description(
28430
28437
  }
28431
28438
  );
28432
28439
  function getVersion() {
28433
- return "0.32.2";
28440
+ return "0.33.0";
28434
28441
  }
28435
28442
  function parsePositiveIdOption(value) {
28436
28443
  if (!/^[1-9][0-9]*$/.test(value.trim())) {