@bagelink/blox 1.14.13 → 1.14.15
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/core.d.ts.map +1 -1
- package/dist/createBloxApp.d.ts +3 -3
- package/dist/defineBlock.d.ts +2 -14
- package/dist/defineBlock.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAa,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAoB/D,4GAA4G;AAC5G,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,cAAc,CAAA;AAE5D,MAAM,WAAW,WAAY,SAAQ,eAAe;IACnD,qIAAqI;IACrI,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IAC1C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACrD,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,qBAAa,YAAY;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsC;IAChE,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,SAAS,CAAgB;gBAErB,OAAO,CAAC,EAAE,WAAW;IAQjC,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,IAAI;IA8B3E,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI;IA2BnE,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAyBpC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI;CAgC9C;AAMD,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,CAS9D"}
|
package/dist/createBloxApp.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface CreateBloxAppOptions {
|
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* Vue plugins to install on the app.
|
|
44
|
-
* Typically `[BagelVue
|
|
44
|
+
* Typically `[BagelVue]` from `@bagelink/vue`.
|
|
45
45
|
*/
|
|
46
46
|
plugins?: Array<Plugin | [Plugin, ...unknown[]]>;
|
|
47
47
|
/**
|
|
@@ -80,7 +80,7 @@ export interface BloxAppResult {
|
|
|
80
80
|
* @example
|
|
81
81
|
* ```ts
|
|
82
82
|
* import { createBloxApp } from '@bagelink/blox'
|
|
83
|
-
* import { BagelVue,
|
|
83
|
+
* import { BagelVue, RouterWrapper } from '@bagelink/vue'
|
|
84
84
|
* import App from './App.vue'
|
|
85
85
|
* import router from './router'
|
|
86
86
|
* import { createApi, axios } from '@shared/api'
|
|
@@ -97,7 +97,7 @@ export interface BloxAppResult {
|
|
|
97
97
|
* websiteName: 'cylogic',
|
|
98
98
|
* store: 'cylogic',
|
|
99
99
|
* createApi: ({ baseURL }) => { createApi({ baseURL }); return { axios } },
|
|
100
|
-
* plugins: [
|
|
100
|
+
* plugins: [BagelVue],
|
|
101
101
|
* globalComponents: { RouterWrapper },
|
|
102
102
|
* })
|
|
103
103
|
* ```
|
package/dist/defineBlock.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Loose structural type for a FormFlow schema.
|
|
3
|
-
* Avoids importing `SchemaDefinition` from `@bagelink/vue` directly, which
|
|
4
|
-
* would drag in Vue's `Component` type and cause duplicate-Vue-copy errors
|
|
5
|
-
* in monorepo setups where the consumer resolves a different `vue` package.
|
|
6
|
-
*/
|
|
7
|
-
export type BloxSchema = {
|
|
8
|
-
_fields?: Record<string, {
|
|
9
|
-
_config?: {
|
|
10
|
-
default?: unknown;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
13
|
-
} & Record<string, any>;
|
|
1
|
+
import { SchemaDefinition } from '@bagelink/vue';
|
|
14
2
|
export interface BlockMeta {
|
|
15
3
|
/** Block type key — must be unique across the app. Used as the export name by the Vite plugin. */
|
|
16
4
|
name: string;
|
|
@@ -19,7 +7,7 @@ export interface BlockMeta {
|
|
|
19
7
|
/** Material icon name. */
|
|
20
8
|
icon?: string;
|
|
21
9
|
/** FormFlow schema for editable props. Omit for blocks with no configurable props. */
|
|
22
|
-
schema?:
|
|
10
|
+
schema?: SchemaDefinition;
|
|
23
11
|
/** Default prop values. Merged with block props at render time so blocks show content before editing. */
|
|
24
12
|
defaults?: Record<string, unknown>;
|
|
25
13
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineBlock.d.ts","sourceRoot":"","sources":["../src/defineBlock.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"defineBlock.d.ts","sourceRoot":"","sources":["../src/defineBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,WAAW,SAAS;IACzB,kGAAkG;IAClG,IAAI,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAA;IACb,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sFAAsF;IACtF,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2KAA2K;IAC3K,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,kGAAkG;AAClG,MAAM,WAAW,WAAW;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,CAatD"}
|
package/package.json
CHANGED