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

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,17 +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",
1271
1270
  validate: (value) => {
1272
- const effective = (value || "").trim();
1273
- if (effective && /[<>:"/\\|?*]/.test(effective)) return "Project name contains invalid characters";
1271
+ if (value && value.trim().length > 0) {
1272
+ if (/[<>:"/\\|?*]/.test(value.trim())) return "Project name contains invalid characters";
1273
+ }
1274
1274
  }
1275
1275
  });
1276
1276
  if (isCancel(nameResponse)) {
1277
1277
  cancel("Project scaffolding cancelled.");
1278
1278
  process$1.exit(0);
1279
1279
  }
1280
- projectName = (nameResponse || "my-wangs-app").trim();
1280
+ projectName = (nameResponse ? nameResponse.trim() : "") || "my-wangs-app";
1281
1281
  }
1282
1282
  if (!preset) {
1283
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.32",
3
+ "version": "1.0.33",
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.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",
16
+ "@wangs-ui/react-core": "^1.0.33",
17
+ "@wangs-ui/react-i18n": "^1.0.33",
18
+ "@wangs-ui/react-icons": "^1.0.33",
19
+ "@wangs-ui/react-presets": "^1.0.33",
20
20
  "clsx": "^2.1.1",
21
21
  "react": "^19.2.7",
22
22
  "react-dom": "^19.2.7",