@devframes/plugin-assets 0.9.5 → 0.9.7

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/README.md CHANGED
@@ -6,8 +6,8 @@ Browse, preview, upload, rename, and delete the files in a directory — a frame
6
6
  pnpx @devframes/plugin-assets
7
7
  ```
8
8
 
9
- Manages `<cwd>/public` by default. The package exports `createAssetsDevframe()` for custom definitions — mount it into a Vite host with `devframeVite()` from `@devframes/vite/single`. Pass `{ dir }` to manage a different directory, `{ baseURL }` to match where the host serves it, or `{ write: false }` (`--read-only` on the standalone CLI) for a browse-only deployment.
9
+ Manages `<cwd>/public` by default. The package exports `createAssetsDevframe()` for custom definitions — mount it into a Vite host with `devframeVite()` from `@devframes/vite/single`. Pass `{ dir }` to manage a different directory, `{ baseURL }` to match where the host framework serves it, or `{ write: false }` (`--read-only` on the standalone CLI) for a browse-only deployment.
10
10
 
11
- Asset previews load files by their public URL, served by the host the plugin is mounted into (Vite/Nuxt/etc. already serve `public/` at `/`) — the plugin doesn't serve the bytes itself. The standalone CLI is its own host, so it serves the directory for you.
11
+ Asset previews load files by their public URL, served by the host framework the devframe is mounted into (Vite/Nuxt/etc. already serve `public/` at `/`) — the devframe doesn't serve the bytes itself. The standalone CLI serves the directory for you.
12
12
 
13
13
  The standalone server requires devframe's trust handshake by default because it can read, write, and delete real files. The `build` CLI subcommand is disabled by default — see the docs page for why.
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createAssetsDevframe } from "./src-Dj8ZMMr1.mjs";
1
+ import { t as createAssetsDevframe } from "./src-C1dL5lwW.mjs";
2
2
  import { createCac } from "devframe/adapters/cac";
3
3
  //#region src/cli.ts
4
4
  function createAssetsCli() {
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as createAssetsDevframe } from "./src-Dj8ZMMr1.mjs";
1
+ import { n as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as createAssetsDevframe } from "./src-C1dL5lwW.mjs";
2
2
  export { DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe, createAssetsDevframe as default };
@@ -4,7 +4,7 @@ import { defineDevframe } from "devframe";
4
4
  import { resolve } from "pathe";
5
5
  //#region package.json
6
6
  var name = "@devframes/plugin-assets";
7
- var version = "0.9.5";
7
+ var version = "0.9.7";
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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/plugin-assets",
3
3
  "type": "module",
4
- "version": "0.9.5",
4
+ "version": "0.9.7",
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",
@@ -38,9 +38,9 @@
38
38
  ],
39
39
  "peerDependencies": {
40
40
  "vite": "^7.0.0 || ^8.0.0",
41
- "@devframes/plugin-assets--assets": "0.9.5",
42
- "devframe": "0.9.5",
43
- "@devframes/service-shiki": "0.9.5"
41
+ "@devframes/plugin-assets--assets": "0.9.7",
42
+ "devframe": "0.9.7",
43
+ "@devframes/service-shiki": "0.9.7"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@devframes/plugin-assets--assets": {
@@ -61,7 +61,7 @@
61
61
  "perfect-debounce": "^2.1.0",
62
62
  "tinyglobby": "^0.2.17",
63
63
  "ufo": "^1.6.4",
64
- "@devframes/service-open": "0.9.5"
64
+ "@devframes/service-open": "0.9.7"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@antfu/design": "^0.3.4",
@@ -81,10 +81,10 @@
81
81
  "vite": "^8.2.1",
82
82
  "vitest": "^4.1.10",
83
83
  "vue": "^3.5.41",
84
- "@devframes/plugin-assets--assets": "0.9.5",
85
- "@devframes/service-shiki": "0.9.5",
86
- "@devframes/vite": "0.9.5",
87
- "devframe": "0.9.5"
84
+ "@devframes/plugin-assets--assets": "0.9.7",
85
+ "@devframes/service-shiki": "0.9.7",
86
+ "@devframes/vite": "0.9.7",
87
+ "devframe": "0.9.7"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "tsdown && vite build --config src/spa/vite.config.ts",