@devframes/plugin-assets 0.9.0-beta.4 → 0.9.0-beta.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 +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +2 -2
- package/dist/spa/assets/index-CshTBd70.js +8 -0
- package/dist/spa/index.html +1 -1
- package/dist/{src-BS_BDvKC.mjs → src-xaERtwes.mjs} +2 -4
- package/package.json +5 -6
- package/dist/spa/assets/index--baBqY2P.js +0 -8
- package/dist/vite.d.mts +0 -11
- package/dist/vite.mjs +0 -13
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ 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
|
|
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.
|
|
10
10
|
|
|
11
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.
|
|
12
12
|
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -75,6 +75,5 @@ interface AssetsDevframeOptions {
|
|
|
75
75
|
* version bump until it stabilizes.
|
|
76
76
|
*/
|
|
77
77
|
declare function createAssetsDevframe(options?: AssetsDevframeOptions): DevframeDefinition;
|
|
78
|
-
declare const assetsDevframe: DevframeDefinition;
|
|
79
78
|
//#endregion
|
|
80
|
-
export { type AssetImageMeta, type AssetInfo, type AssetType, AssetsDevframeOptions, type CodeSnippet, DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe,
|
|
79
|
+
export { type AssetImageMeta, type AssetInfo, type AssetType, AssetsDevframeOptions, type CodeSnippet, DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe, createAssetsDevframe as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export { DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe,
|
|
1
|
+
import { n as DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, t as createAssetsDevframe } from "./src-xaERtwes.mjs";
|
|
2
|
+
export { DEFAULT_ALLOWED_UPLOAD_EXTENSIONS, createAssetsDevframe, createAssetsDevframe as default };
|