@samva/vite 0.8.0 → 0.9.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.
- package/AGENTS.md +62 -58
- package/README.md +140 -94
- package/dist/build.d.ts +47 -42
- package/dist/build.js +88 -213
- package/dist/dev.d.ts +22 -0
- package/dist/dev.js +43 -0
- package/dist/editor/assets/index-BtfwuWcY.js +32 -0
- package/dist/editor/assets/index-DIuS_EZu.css +2 -0
- package/dist/editor/index.html +2 -2
- package/dist/editor-Cow7zZ_9.js +780 -0
- package/dist/index.d.ts +11 -4
- package/dist/index.js +1 -1054
- package/dist/project-CiUuzKsC.d.ts +271 -0
- package/dist/project-Cp8qb3s0.js +774 -0
- package/dist/project.d.ts +2 -175
- package/dist/project.js +2 -2
- package/dist/render.d.ts +54 -0
- package/dist/render.js +98 -0
- package/package.json +11 -12
- package/dist/discovery-D2eR-rzi.js +0 -35
- package/dist/editor/assets/index-6Qlbkdhz.js +0 -36
- package/dist/editor/assets/index-Ed_V5wEW.css +0 -2
- package/dist/email.d.ts +0 -60
- package/dist/email.js +0 -126
- package/dist/emit.d.ts +0 -99
- package/dist/emit.js +0 -142
- package/dist/project-RON2Ei7d.js +0 -603
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,22 @@ import { Plugin } from "vite";
|
|
|
2
2
|
//#region src/editor.d.ts
|
|
3
3
|
interface SamvaEditorPluginOptions {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* The directory containing `.tsx` templates: an absolute path, or a path relative to the
|
|
6
|
+
* project root. When set, only it is scanned. Otherwise `templates/` and `emails/` are, whichever
|
|
7
|
+
* exist.
|
|
7
8
|
*/
|
|
8
9
|
readonly templatesDir?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The project root: the folder holding `theme.css`, shared imports and the generated `.samva/`
|
|
12
|
+
* folder. A path relative to the Vite root; default the Vite root. Set it for templates that
|
|
13
|
+
* live in another folder of a monorepo; the templates directory must be inside it.
|
|
14
|
+
*/
|
|
15
|
+
readonly projectRoot?: string | undefined;
|
|
9
16
|
/** Editor UI route. Default `/`; its API and assets are mounted as siblings below it. */
|
|
10
17
|
readonly route?: string | undefined;
|
|
11
18
|
/**
|
|
12
|
-
* Project theme file:
|
|
13
|
-
*
|
|
19
|
+
* Project theme file: a path relative to the project root. Default `theme.css`; false compiles
|
|
20
|
+
* without a project theme.
|
|
14
21
|
*/
|
|
15
22
|
readonly theme?: string | false | undefined;
|
|
16
23
|
}
|