@devframes/plugin-assets 0.9.0-beta.1 → 0.9.0-beta.4
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/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-Ce1_ivKG.mjs → src-BS_BDvKC.mjs} +1 -1
- package/dist/vite.d.mts +3 -3
- package/dist/vite.mjs +3 -3
- package/package.json +5 -4
package/dist/cli.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createAssetsDevframe, r as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as assetsDevframe } from "./src-
|
|
1
|
+
import { n as createAssetsDevframe, r as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as assetsDevframe } from "./src-BS_BDvKC.mjs";
|
|
2
2
|
export { DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe, assetsDevframe as default };
|
|
@@ -4,7 +4,7 @@ import { defineDevframe } from "devframe";
|
|
|
4
4
|
import { dirname, resolve } from "pathe";
|
|
5
5
|
//#region package.json
|
|
6
6
|
var name = "@devframes/plugin-assets";
|
|
7
|
-
var version = "0.9.0-beta.
|
|
7
|
+
var version = "0.9.0-beta.4";
|
|
8
8
|
var description = "Devframe plugin for browsing, previewing, uploading, and managing static assets in a directory.";
|
|
9
9
|
var homepage = "https://github.com/devframes/devframe#readme";
|
|
10
10
|
//#endregion
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DevframeViteOptions, DevframeVitePlugin } from "@devframes/vite/dev-spa";
|
|
2
2
|
//#region src/vite.d.ts
|
|
3
|
-
type AssetsVitePluginOptions =
|
|
3
|
+
type AssetsVitePluginOptions = DevframeViteOptions;
|
|
4
4
|
/**
|
|
5
5
|
* Mount the assets manager into an existing Vite dev server. As a hosted
|
|
6
6
|
* adapter it defers authentication to the host, so the bridged devframe's
|
|
@@ -8,4 +8,4 @@ type AssetsVitePluginOptions = ViteDevBridgeOptions;
|
|
|
8
8
|
*/
|
|
9
9
|
declare function assetsVitePlugin(options?: AssetsVitePluginOptions): DevframeVitePlugin;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { AssetsVitePluginOptions, type
|
|
11
|
+
export { AssetsVitePluginOptions, type DevframeViteOptions, assetsVitePlugin };
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as assetsDevframe } from "./src-
|
|
2
|
-
import {
|
|
1
|
+
import { t as assetsDevframe } from "./src-BS_BDvKC.mjs";
|
|
2
|
+
import { devframeVite } from "@devframes/vite/dev-spa";
|
|
3
3
|
//#region src/vite.ts
|
|
4
4
|
/**
|
|
5
5
|
* Mount the assets manager into an existing Vite dev server. As a hosted
|
|
@@ -7,7 +7,7 @@ import { viteDevBridge } from "devframe/helpers/vite";
|
|
|
7
7
|
* own gate stays off by default — opt back in with `{ auth: true }`.
|
|
8
8
|
*/
|
|
9
9
|
function assetsVitePlugin(options = {}) {
|
|
10
|
-
return
|
|
10
|
+
return devframeVite(assetsDevframe, options);
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
export { assetsVitePlugin };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-assets",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.0-beta.
|
|
4
|
+
"version": "0.9.0-beta.4",
|
|
5
5
|
"description": "Devframe plugin for browsing, previewing, uploading, and managing static assets in a directory.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"vite": "^7.0.0 || ^8.0.0",
|
|
42
|
-
"devframe": "0.9.0-beta.
|
|
42
|
+
"devframe": "0.9.0-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"vite": {
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"pathe": "^2.0.3",
|
|
55
55
|
"perfect-debounce": "^2.1.0",
|
|
56
56
|
"tinyglobby": "^0.2.17",
|
|
57
|
-
"ufo": "^1.6.4"
|
|
57
|
+
"ufo": "^1.6.4",
|
|
58
|
+
"@devframes/vite": "0.9.0-beta.4"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@antfu/design": "^0.3.4",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"vite": "^8.2.1",
|
|
76
77
|
"vitest": "^4.1.10",
|
|
77
78
|
"vue": "^3.5.41",
|
|
78
|
-
"devframe": "0.9.0-beta.
|
|
79
|
+
"devframe": "0.9.0-beta.4"
|
|
79
80
|
},
|
|
80
81
|
"scripts": {
|
|
81
82
|
"build": "tsdown && vite build --config src/spa/vite.config.ts",
|