@fecommunity/reactpress-web 3.7.0 → 4.0.0-beta.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.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -12
  3. package/bin/reactpress-web.js +20 -1
  4. package/dist/assets/admin-7krW5yNj.js +1 -0
  5. package/dist/assets/{admin-DIg4Tjod.js → admin-BCUepldG.js} +1 -1
  6. package/dist/assets/admin-ZWBL0q2y.css +1 -0
  7. package/dist/assets/{cssMode-BMX88dfJ.js → cssMode-DeKbYOqv.js} +1 -1
  8. package/dist/assets/{freemarker2-BH0Rvg6w.js → freemarker2-CM_ixOFT.js} +1 -1
  9. package/dist/assets/{handlebars-DaYQICeL.js → handlebars-DUCTyw5B.js} +1 -1
  10. package/dist/assets/{html-C0j3DQGI.js → html-BDPnWF4t.js} +1 -1
  11. package/dist/assets/{htmlMode-B4mqJRPC.js → htmlMode-zrdDZZOG.js} +1 -1
  12. package/dist/assets/{index-SFQ78tOl.js → index-BQgl5DUJ.js} +148 -148
  13. package/dist/assets/{javascript-Dbxxz3VA.js → javascript-BByYs2Kk.js} +1 -1
  14. package/dist/assets/{jsonMode-B89XQz6R.js → jsonMode-BUBKndbe.js} +1 -1
  15. package/dist/assets/{liquid-DSdURYcp.js → liquid-Cj1TuSRJ.js} +1 -1
  16. package/dist/assets/{mdx-BfRYGH9D.js → mdx-Bjk9gS__.js} +1 -1
  17. package/dist/assets/{python-Cq2f4xcT.js → python-C_gkHTJE.js} +1 -1
  18. package/dist/assets/{razor-CRe-vWSJ.js → razor-uknuRmlw.js} +1 -1
  19. package/dist/assets/{tsMode-T_mHFFMS.js → tsMode-DNW689t0.js} +1 -1
  20. package/dist/assets/{typescript-QU9KNPtr.js → typescript-Dst8Hx5N.js} +1 -1
  21. package/dist/assets/vendor-antd-854Wnkhp.js +334 -0
  22. package/dist/assets/vendor-tanstack-CUgEbs6-.js +1 -0
  23. package/dist/assets/vendor-ui-DCDAgEjH.js +1 -0
  24. package/dist/assets/{xml-D8-U_pjI.js → xml-LY5pOpCt.js} +1 -1
  25. package/dist/assets/{yaml-BpkkJ5fH.js → yaml-CGFKP2dC.js} +1 -1
  26. package/dist/index.html +4 -4
  27. package/node/admin-route-helpers.cjs +68 -0
  28. package/node/index.d.ts +7 -0
  29. package/node/index.mjs +2 -0
  30. package/node/next.cjs +7 -0
  31. package/node/next.d.ts +12 -1
  32. package/node/next.mjs +11 -20
  33. package/node/static.mjs +37 -3
  34. package/package.json +50 -51
  35. package/dist/assets/vendor-antd-pwABDox5.js +0 -334
  36. package/dist/assets/vendor-tanstack-DZXDQIYu.js +0 -1
  37. package/dist/assets/vendor-ui-B-HNHgOb.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,30 @@
1
1
  {
2
2
  "name": "@fecommunity/reactpress-web",
3
- "version": "3.7.0",
3
+ "version": "4.0.0-beta.0",
4
4
  "description": "ReactPress Admin SPA — prebuilt static assets with Node static server helpers",
5
+ "keywords": [
6
+ "admin",
7
+ "cms",
8
+ "reactpress",
9
+ "spa",
10
+ "static"
11
+ ],
12
+ "license": "MIT",
13
+ "author": "fecommunity",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/fecommunity/reactpress.git",
17
+ "directory": "web"
18
+ },
19
+ "bin": {
20
+ "reactpress-web": "./bin/reactpress-web.js"
21
+ },
22
+ "files": [
23
+ "bin",
24
+ "dist",
25
+ "node",
26
+ "README.md"
27
+ ],
5
28
  "type": "module",
6
29
  "main": "./node/index.mjs",
7
30
  "types": "./node/index.d.ts",
@@ -14,58 +37,14 @@
14
37
  "./dist/*": "./dist/*",
15
38
  "./next": {
16
39
  "types": "./node/next.d.ts",
17
- "import": "./node/next.mjs"
40
+ "import": "./node/next.mjs",
41
+ "require": "./node/next.cjs"
18
42
  }
19
43
  },
20
- "bin": {
21
- "reactpress-web": "./bin/reactpress-web.js"
22
- },
23
- "files": [
24
- "bin",
25
- "dist",
26
- "node",
27
- "README.md"
28
- ],
29
- "engines": {
30
- "node": ">=18"
31
- },
32
- "keywords": [
33
- "reactpress",
34
- "cms",
35
- "admin",
36
- "spa",
37
- "static"
38
- ],
39
- "author": "fecommunity",
40
- "license": "MIT",
41
- "repository": {
42
- "type": "git",
43
- "url": "git+https://github.com/fecommunity/reactpress.git",
44
- "directory": "web"
45
- },
46
44
  "publishConfig": {
47
45
  "access": "public",
48
46
  "registry": "https://registry.npmjs.org/"
49
47
  },
50
- "scripts": {
51
- "prepack": "node scripts/prepack.mjs",
52
- "dev": "vp dev",
53
- "dev:themes": "VITE_ENABLE_MOCK=true VITE_AUTH_MODE=mock vp dev",
54
- "test:e2e:themes": "playwright test e2e/themes.spec.ts",
55
- "test:e2e:preview-starter": "playwright test e2e/theme-preview-starter.spec.ts",
56
- "build": "vp build",
57
- "build:electron": "vp build --mode electron",
58
- "pretypecheck": "pnpm --dir ../toolkit run build",
59
- "typecheck": "tsc --noEmit",
60
- "preview": "vp preview",
61
- "prepare": "vp config",
62
- "fmt": "vp fmt",
63
- "lint": "vp lint",
64
- "check": "vp check --no-fmt",
65
- "test:e2e": "playwright test",
66
- "test:e2e:core": "playwright test e2e/login.spec.ts e2e/users.spec.ts",
67
- "test:e2e:ui": "playwright test --ui"
68
- },
69
48
  "dependencies": {
70
49
  "@formily/antd-v5": "^1.2.4",
71
50
  "@formily/core": "^2.3.7",
@@ -90,20 +69,40 @@
90
69
  "zustand": "^5.0.12"
91
70
  },
92
71
  "devDependencies": {
93
- "@fecommunity/reactpress-toolkit": "workspace:*",
72
+ "@fecommunity/reactpress-toolkit": "4.0.0-beta.0",
94
73
  "@playwright/test": "^1.58.2",
95
74
  "@tanstack/router-plugin": "^1.166.13",
96
- "@types/react": "^18.3.20",
97
- "@types/react-dom": "^18.3.6",
75
+ "@types/react": "19.2.7",
76
+ "@types/react-dom": "19.2.3",
98
77
  "@vitejs/plugin-react-swc": "^4.3.0",
99
78
  "msw": "^2.12.12",
100
79
  "typescript": "~5.9.3",
101
80
  "vite": "npm:@voidzero-dev/vite-plus-core@latest",
102
81
  "vite-plus": "latest"
103
82
  },
83
+ "engines": {
84
+ "node": ">=18"
85
+ },
104
86
  "msw": {
105
87
  "workerDirectory": [
106
88
  "public"
107
89
  ]
90
+ },
91
+ "scripts": {
92
+ "dev": "vp dev",
93
+ "dev:themes": "VITE_ENABLE_MOCK=true VITE_AUTH_MODE=mock vp dev",
94
+ "test:e2e:themes": "playwright test e2e/themes.spec.ts",
95
+ "test:e2e:preview-starter": "playwright test e2e/theme-preview-starter.spec.ts",
96
+ "build": "vp build",
97
+ "build:electron": "vp build --mode electron",
98
+ "pretypecheck": "pnpm --dir ../toolkit run build",
99
+ "typecheck": "tsc --noEmit",
100
+ "preview": "vp preview",
101
+ "fmt": "vp fmt",
102
+ "lint": "vp lint",
103
+ "check": "vp check --no-fmt",
104
+ "test:e2e": "playwright test",
105
+ "test:e2e:core": "playwright test e2e/login.spec.ts e2e/users.spec.ts",
106
+ "test:e2e:ui": "playwright test --ui"
108
107
  }
109
- }
108
+ }