@blocklet/pages-kit-block-studio 0.0.11 → 0.0.13
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/lib/cjs/middlewares/init-block-studio-router.js +81 -0
- package/lib/cjs/middlewares/init-resource-router.js +1 -1
- package/lib/cjs/middlewares/init-uploader-router.js +2 -0
- package/lib/cjs/plugins/vite-plugin-block-studio.js +8 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/build-lib.js +3 -4
- package/lib/cjs/utils/helper.js +9 -1
- package/lib/esm/middlewares/init-block-studio-router.js +75 -0
- package/lib/esm/middlewares/init-resource-router.js +2 -2
- package/lib/esm/middlewares/init-uploader-router.js +2 -0
- package/lib/esm/plugins/vite-plugin-block-studio.js +8 -2
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/build-lib.js +1 -2
- package/lib/esm/utils/helper.js +7 -0
- package/lib/types/middlewares/init-block-studio-router.d.ts +2 -0
- package/lib/types/middlewares/init-uploader-router.d.ts +0 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/helper.d.ts +3 -0
- package/package.json +13 -9
|
@@ -13,3 +13,6 @@ export declare function findComponentFiles(options?: GlobOptions): {
|
|
|
13
13
|
export declare function getBlockName(entry: string): string;
|
|
14
14
|
export declare const logger: Console;
|
|
15
15
|
export declare function generateBlockYml(): void;
|
|
16
|
+
export declare const libDir = "lib";
|
|
17
|
+
export declare const isPathSafe: (filePath: string) => boolean;
|
|
18
|
+
export declare const isDev: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/pages-kit-block-studio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Pages Kit block studio",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -75,24 +75,24 @@
|
|
|
75
75
|
"url": "git+https://github.com/blocklet/pages-kit.git"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"
|
|
79
|
-
"@blocklet/
|
|
80
|
-
"@mui/material": "^5.16.7",
|
|
81
|
-
"@blocklet/ui-react": "^2.11.25",
|
|
78
|
+
"@blocklet/sdk": "^1.16.38",
|
|
79
|
+
"@blocklet/ui-react": "^2.11.35",
|
|
82
80
|
"@mdx-js/react": "^3.1.0",
|
|
81
|
+
"@mui/material": "^5.16.7",
|
|
83
82
|
"ahooks": "^3.8.4",
|
|
83
|
+
"axios": "^1.7.4",
|
|
84
84
|
"chalk": "^4.1.2",
|
|
85
85
|
"esbuild": "^0.19.12",
|
|
86
|
+
"express": "^4.19.2",
|
|
86
87
|
"glob": "^11.0.0",
|
|
87
88
|
"gogocode": "^1.0.55",
|
|
88
89
|
"lodash": "^4.17.21",
|
|
89
|
-
"ufo": "^1.5.4",
|
|
90
|
-
"vite-plugin-react-pages": "^5.0.0",
|
|
91
90
|
"react": "^18.3.1",
|
|
92
91
|
"react-dom": "^18.3.1",
|
|
93
92
|
"react-router-dom": "^6.26.1",
|
|
94
93
|
"typescript": "^5.7.2",
|
|
95
|
-
"
|
|
94
|
+
"ufo": "^1.5.4",
|
|
95
|
+
"vite-plugin-react-pages": "^5.0.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
@@ -106,7 +106,11 @@
|
|
|
106
106
|
"vite-tsconfig-paths": "^4.3.2",
|
|
107
107
|
"zx": "^8.3.0"
|
|
108
108
|
},
|
|
109
|
-
"peerDependencies": {
|
|
109
|
+
"peerDependencies": {
|
|
110
|
+
"react": "^18.3.1",
|
|
111
|
+
"react-dom": "^18.3.1",
|
|
112
|
+
"react-router-dom": "^6.26.1"
|
|
113
|
+
},
|
|
110
114
|
"scripts": {
|
|
111
115
|
"lint": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
112
116
|
"lint:fix": "npm run lint -- --fix",
|