@wangs-ui/create-react-app 1.0.31 → 1.0.32

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
@@ -1267,16 +1267,17 @@ async function promptUser(initialOptions) {
1267
1267
  message: "What is your project name?",
1268
1268
  placeholder: "my-wangs-app",
1269
1269
  defaultValue: "my-wangs-app",
1270
+ initialValue: "my-wangs-app",
1270
1271
  validate: (value) => {
1271
- if (!value || value.trim().length === 0) return "Project name cannot be empty";
1272
- if (/[<>:"/\\|?*]/.test(value)) return "Project name contains invalid characters";
1272
+ const effective = (value || "").trim();
1273
+ if (effective && /[<>:"/\\|?*]/.test(effective)) return "Project name contains invalid characters";
1273
1274
  }
1274
1275
  });
1275
1276
  if (isCancel(nameResponse)) {
1276
1277
  cancel("Project scaffolding cancelled.");
1277
1278
  process$1.exit(0);
1278
1279
  }
1279
- projectName = nameResponse.trim();
1280
+ projectName = (nameResponse || "my-wangs-app").trim();
1280
1281
  }
1281
1282
  if (!preset) {
1282
1283
  const presetResponse = await select({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangs-ui/create-react-app",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Scaffold a modern React app with Wangs UI, Vite 8, Oxlint, Oxfmt, and AI Agent MCP integration",
5
5
  "keywords": [
6
6
  "antigravity",
@@ -13,10 +13,10 @@
13
13
  "format:check": "oxfmt --check"
14
14
  },
15
15
  "dependencies": {
16
- "@wangs-ui/react-core": "^1.0.31",
17
- "@wangs-ui/react-i18n": "^1.0.31",
18
- "@wangs-ui/react-icons": "^1.0.31",
19
- "@wangs-ui/react-presets": "^1.0.31",
16
+ "@wangs-ui/react-core": "^1.0.32",
17
+ "@wangs-ui/react-i18n": "^1.0.32",
18
+ "@wangs-ui/react-icons": "^1.0.32",
19
+ "@wangs-ui/react-presets": "^1.0.32",
20
20
  "clsx": "^2.1.1",
21
21
  "react": "^19.2.7",
22
22
  "react-dom": "^19.2.7",