@bagelink/blox 1.15.145 → 1.15.151
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/{PreviewApp-T3i0jOkB.js → PreviewApp-BFlmJyS_.js} +1 -1
- package/dist/{PreviewApp-0YmiHBi5.cjs → PreviewApp-F96n6nDi.cjs} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-C0i8ucHq.js → PreviewApp.vue_vue_type_style_index_0_lang-Bi812qOg.js} +1 -1
- package/dist/{PreviewApp.vue_vue_type_style_index_0_lang-CwX30h--.cjs → PreviewApp.vue_vue_type_style_index_0_lang-hnJ-Wljq.cjs} +1 -1
- package/dist/{core-VQR6lrvO.js → core-gh9n4Dh5.js} +5 -1
- package/dist/{core-DmxEiWAR.cjs → core-kcqrnwf4.cjs} +5 -1
- package/dist/core.d.ts +2 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/index.cjs +37 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +38 -3
- package/dist/manifest.d.ts +51 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/ssg/index.cjs +1 -1
- package/dist/ssg/index.mjs +1 -1
- package/dist/vite-plugin.cjs +87 -1070
- package/dist/vite-plugin.d.ts +25 -0
- package/dist/vite-plugin.d.ts.map +1 -1
- package/dist/vite-plugin.mjs +65 -1070
- package/package.json +1 -1
package/dist/vite-plugin.d.ts
CHANGED
|
@@ -15,6 +15,31 @@ export interface BloxPluginOptions {
|
|
|
15
15
|
* @default false
|
|
16
16
|
*/
|
|
17
17
|
autoCollections?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Emit a `.blox-manifest.json` describing every registered block
|
|
20
|
+
* (type, label, icon, description, props JSON Schema, defaults).
|
|
21
|
+
*
|
|
22
|
+
* The manifest is generated by executing the block modules through Vite's
|
|
23
|
+
* SSR runner after the client build finishes, so `defineBlock()` and
|
|
24
|
+
* `SchemaDefinition.toJSONSchema()` run for real. Point `manifestGlob` at
|
|
25
|
+
* the block SFCs (same glob used by `createBloxApp`).
|
|
26
|
+
*
|
|
27
|
+
* The artifact is written to the client output directory and can be
|
|
28
|
+
* uploaded to the backend (`PUT /blox/websites/{id}/manifest`) so the
|
|
29
|
+
* agent MCP can read what blocks exist and how to use them.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
emitManifest?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Glob (relative to Vite root) of block SFCs to include in the manifest.
|
|
35
|
+
* @default './src/components/blocks/*.vue'
|
|
36
|
+
*/
|
|
37
|
+
manifestGlob?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Output filename for the manifest, relative to the build outDir.
|
|
40
|
+
* @default '.blox-manifest.json'
|
|
41
|
+
*/
|
|
42
|
+
manifestFileName?: string;
|
|
18
43
|
}
|
|
19
44
|
/**
|
|
20
45
|
* Vite plugin that:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,CA2YpE"}
|