@monbolc/lowcode-types 2.0.0 → 2.0.2
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/lib/index.d.ts +215 -6
- package/lib/index.d.ts.map +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -33,12 +33,16 @@ export interface IPublicTypeNodeSchema {
|
|
|
33
33
|
loopItemName?: string;
|
|
34
34
|
/** Loop index variable name. Default: "index". */
|
|
35
35
|
loopIndexName?: string;
|
|
36
|
-
/**
|
|
36
|
+
/** Stable key for diffing. If absent, the engine generates one. */
|
|
37
37
|
key?: string;
|
|
38
38
|
/** Free-form metadata; engine preserves it but does not interpret it. */
|
|
39
39
|
meta?: Record<string, Unknown>;
|
|
40
|
+
/** Conditional rendering scope. */
|
|
41
|
+
conditionGroup?: string;
|
|
42
|
+
/** Loop context. */
|
|
43
|
+
loopArgs?: [string, string];
|
|
40
44
|
}
|
|
41
|
-
/** Inline data: either a literal value or a
|
|
45
|
+
/** Inline data: either a literal value, an expression, or a binding. */
|
|
42
46
|
export type IPublicTypeNodeData = {
|
|
43
47
|
type: 'literal';
|
|
44
48
|
value: JSONValue; /** compile-time mock value */
|
|
@@ -51,13 +55,21 @@ export type IPublicTypeNodeData = {
|
|
|
51
55
|
type: 'binding';
|
|
52
56
|
value: string;
|
|
53
57
|
mock?: JSONValue;
|
|
58
|
+
} | {
|
|
59
|
+
type: 'variable';
|
|
60
|
+
value: string;
|
|
61
|
+
mock?: JSONValue;
|
|
54
62
|
};
|
|
55
63
|
/** Root schema for an entire page. */
|
|
56
64
|
export interface IPublicTypeRootSchema extends IPublicTypeNodeSchema {
|
|
57
65
|
/** File name (e.g. "page.json"). */
|
|
58
66
|
fileName: string;
|
|
67
|
+
/** Optional i18n bundle attached to this page. */
|
|
68
|
+
i18n?: Record<string, IPublicTypeI18nMessage>;
|
|
59
69
|
/** Optional data-source entries scoped to this page. */
|
|
60
70
|
dataSources?: Record<string, IPublicTypeDataSource>;
|
|
71
|
+
/** Optional meta (e.g. route, layout, version). */
|
|
72
|
+
meta?: Record<string, Unknown>;
|
|
61
73
|
}
|
|
62
74
|
/** Description of a single component registered in the engine. */
|
|
63
75
|
export interface IPublicTypeComponentSchema {
|
|
@@ -69,12 +81,30 @@ export interface IPublicTypeComponentSchema {
|
|
|
69
81
|
icon?: string;
|
|
70
82
|
/** Tag for grouping (e.g. "Layout", "Form"). */
|
|
71
83
|
category?: string;
|
|
84
|
+
/** Search keywords for the components panel. */
|
|
85
|
+
keywords?: string[];
|
|
72
86
|
/** Where this component may be placed. */
|
|
73
87
|
nestingRule?: IPublicTypeNestingRule;
|
|
74
88
|
/** Default props applied at insertion time. */
|
|
75
89
|
initialProps?: Record<string, JSONValue>;
|
|
76
90
|
/** Property descriptors (rendered in the settings panel). */
|
|
77
91
|
configure?: IPublicTypeComponentConfigure;
|
|
92
|
+
/** Whether this component can be used as a Page root. */
|
|
93
|
+
isPage?: boolean;
|
|
94
|
+
/** Whether this component is a "block" (draggable into the page). */
|
|
95
|
+
isBlock?: boolean;
|
|
96
|
+
/** Whether this component is a layout container. */
|
|
97
|
+
isContainer?: boolean;
|
|
98
|
+
/** Whether this component is a low-code primitive (vs raw JSX). */
|
|
99
|
+
isLowCode?: boolean;
|
|
100
|
+
/** Doc URL shown in the settings panel header. */
|
|
101
|
+
docUrl?: string;
|
|
102
|
+
/** Snapshot URL for visual previews. */
|
|
103
|
+
screenshot?: string;
|
|
104
|
+
/** Tags for filtering. */
|
|
105
|
+
tags?: string[];
|
|
106
|
+
/** Behaviors this component supports (e.g. 'loop', 'condition'). */
|
|
107
|
+
behaviors?: string[];
|
|
78
108
|
}
|
|
79
109
|
/** Restrictions on where a component may live. */
|
|
80
110
|
export interface IPublicTypeNestingRule {
|
|
@@ -86,6 +116,8 @@ export interface IPublicTypeNestingRule {
|
|
|
86
116
|
childWhitelist?: string[];
|
|
87
117
|
/** Blacklist of child component names. */
|
|
88
118
|
childBlacklist?: string[];
|
|
119
|
+
/** Whether this component can be a direct child of a Page. */
|
|
120
|
+
canBePageChild?: boolean;
|
|
89
121
|
}
|
|
90
122
|
/** Field configurations for the settings panel. */
|
|
91
123
|
export interface IPublicTypeComponentConfigure {
|
|
@@ -97,12 +129,16 @@ export interface IPublicTypeComponentConfigure {
|
|
|
97
129
|
events?: IPublicTypeEventConfig[];
|
|
98
130
|
/** Conditional rendering / looping. */
|
|
99
131
|
advanced?: IPublicTypeAdvancedConfig;
|
|
132
|
+
/** Custom slots (e.g. "title", "footer"). */
|
|
133
|
+
slots?: IPublicTypeSlotConfig[];
|
|
100
134
|
}
|
|
101
135
|
export interface IPublicTypeFieldConfig {
|
|
102
136
|
/** Prop name in `IPublicTypeNodeSchema.props`. */
|
|
103
137
|
name: string;
|
|
104
138
|
/** Display title in the panel. */
|
|
105
139
|
title: string;
|
|
140
|
+
/** Description / tooltip. */
|
|
141
|
+
description?: string;
|
|
106
142
|
/** Editor kind. */
|
|
107
143
|
setter: string | IPublicTypeSetterConfig;
|
|
108
144
|
/** Whether the prop is required. */
|
|
@@ -111,6 +147,14 @@ export interface IPublicTypeFieldConfig {
|
|
|
111
147
|
defaultValue?: JSONValue;
|
|
112
148
|
/** Free-form extra config (e.g. min/max, options, regex). */
|
|
113
149
|
extraProps?: Record<string, Unknown>;
|
|
150
|
+
/** Conditional visibility: show this field only when condition is met. */
|
|
151
|
+
condition?: IPublicTypeNodeData;
|
|
152
|
+
/** Whether this field is read-only. */
|
|
153
|
+
readOnly?: boolean;
|
|
154
|
+
/** Group label for layout. */
|
|
155
|
+
group?: string;
|
|
156
|
+
/** Display order. Lower = higher. */
|
|
157
|
+
order?: number;
|
|
114
158
|
}
|
|
115
159
|
export interface IPublicTypeSetterConfig {
|
|
116
160
|
/** Settler component name. */
|
|
@@ -123,14 +167,32 @@ export interface IPublicTypeEventConfig {
|
|
|
123
167
|
name: string;
|
|
124
168
|
/** Display title. */
|
|
125
169
|
title: string;
|
|
170
|
+
/** Description. */
|
|
171
|
+
description?: string;
|
|
126
172
|
/** Default action payload. */
|
|
127
173
|
defaultAction?: IPublicTypeActionContent;
|
|
174
|
+
/** Whether the event is parameterized. */
|
|
175
|
+
paramTypes?: string[];
|
|
128
176
|
}
|
|
129
177
|
export interface IPublicTypeAdvancedConfig {
|
|
130
178
|
/** Show "v-if"-style condition editor. */
|
|
131
179
|
condition?: boolean;
|
|
132
180
|
/** Show loop editor. */
|
|
133
181
|
loop?: boolean;
|
|
182
|
+
/** Show "static" toggle. */
|
|
183
|
+
staticEnabled?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export interface IPublicTypeSlotConfig {
|
|
186
|
+
/** Slot name. */
|
|
187
|
+
name: string;
|
|
188
|
+
/** Display title. */
|
|
189
|
+
title?: string;
|
|
190
|
+
/** Default schema to insert into empty slot. */
|
|
191
|
+
defaultSchema?: IPublicTypeNodeSchema;
|
|
192
|
+
/** Whether the slot accepts a single node or a list. */
|
|
193
|
+
isContainer?: boolean;
|
|
194
|
+
/** Allowed component names for the slot. */
|
|
195
|
+
componentWhitelist?: string[];
|
|
134
196
|
}
|
|
135
197
|
export type IPublicTypeActionContent = {
|
|
136
198
|
type: 'method';
|
|
@@ -143,6 +205,18 @@ export type IPublicTypeActionContent = {
|
|
|
143
205
|
type: 'script';
|
|
144
206
|
value: string;
|
|
145
207
|
mock?: JSONValue;
|
|
208
|
+
} | {
|
|
209
|
+
type: 'reload';
|
|
210
|
+
} | {
|
|
211
|
+
type: 'dialog';
|
|
212
|
+
value: {
|
|
213
|
+
title: string;
|
|
214
|
+
body: string;
|
|
215
|
+
};
|
|
216
|
+
} | {
|
|
217
|
+
type: 'custom';
|
|
218
|
+
value: string;
|
|
219
|
+
mock?: JSONValue;
|
|
146
220
|
};
|
|
147
221
|
export interface IPublicTypeDataSource {
|
|
148
222
|
/** Unique id within the schema. */
|
|
@@ -155,6 +229,17 @@ export interface IPublicTypeDataSource {
|
|
|
155
229
|
options?: Record<string, JSONValue>;
|
|
156
230
|
/** Path into the response to extract the data array. */
|
|
157
231
|
dataHandler?: string;
|
|
232
|
+
/** Whether the request is automatically fired on page load. */
|
|
233
|
+
isInit?: boolean;
|
|
234
|
+
/** Request lifecycle. */
|
|
235
|
+
requestLifecycle?: 'onload' | 'onmount' | 'manual';
|
|
236
|
+
}
|
|
237
|
+
/** A single i18n message. */
|
|
238
|
+
export interface IPublicTypeI18nMessage {
|
|
239
|
+
/** Default locale string. */
|
|
240
|
+
default: string;
|
|
241
|
+
/** Optional per-locale overrides. Locale code → string. */
|
|
242
|
+
byLocale?: Record<string, string>;
|
|
158
243
|
}
|
|
159
244
|
export interface IPublicEngineOptions {
|
|
160
245
|
/** Root DOM container. */
|
|
@@ -165,15 +250,139 @@ export interface IPublicEngineOptions {
|
|
|
165
250
|
components?: Record<string, IPublicTypeComponentSchema>;
|
|
166
251
|
/** Theme: "light" | "dark" | custom CSS object. */
|
|
167
252
|
theme?: 'light' | 'dark' | Record<string, string>;
|
|
253
|
+
/** Locale for i18n. */
|
|
254
|
+
locale?: string;
|
|
255
|
+
/** Whether to run in design mode (with hover/border overlays). */
|
|
256
|
+
designMode?: 'design' | 'live' | 'preview';
|
|
168
257
|
}
|
|
169
258
|
export interface IPublicApiEngine {
|
|
170
259
|
/** Mount the engine into the container. */
|
|
171
260
|
init(options: IPublicEngineOptions): Promise<void>;
|
|
172
261
|
/** Tear down and unmount. */
|
|
173
262
|
destroy(): Promise<void>;
|
|
174
|
-
/**
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
|
|
263
|
+
/** Whether init has finished successfully. */
|
|
264
|
+
readonly ready: boolean;
|
|
265
|
+
/** Get a service from the DI container. */
|
|
266
|
+
get<T>(ctor: {
|
|
267
|
+
new (...args: any[]): T;
|
|
268
|
+
}): Promise<T>;
|
|
269
|
+
/** Try to get a service synchronously. Returns undefined if not yet registered. */
|
|
270
|
+
peek<T>(ctor: {
|
|
271
|
+
new (...args: any[]): T;
|
|
272
|
+
}): T | undefined;
|
|
273
|
+
}
|
|
274
|
+
export interface IPublicApiDesigner {
|
|
275
|
+
/** Current selection (set of node ids). */
|
|
276
|
+
readonly selection: string[];
|
|
277
|
+
/** Current drag state. */
|
|
278
|
+
readonly isDragging: boolean;
|
|
279
|
+
/** Pick a node by id. */
|
|
280
|
+
getNode(id: string): IPublicTypeNodeSchema | undefined;
|
|
281
|
+
/** Select one or more nodes. */
|
|
282
|
+
select(ids: string[]): void;
|
|
283
|
+
/** Insert a new node. */
|
|
284
|
+
insert(schema: IPublicTypeNodeSchema, parentId: string | null, index: number): void;
|
|
285
|
+
/** Remove a node. */
|
|
286
|
+
remove(nodeId: string): void;
|
|
287
|
+
/** Move a node. */
|
|
288
|
+
move(nodeId: string, newParentId: string | null, newIndex: number): void;
|
|
289
|
+
/** Set a prop. */
|
|
290
|
+
setProp(nodeId: string, key: string, value: JSONValue): void;
|
|
291
|
+
/** Undo the last change. */
|
|
292
|
+
undo(): void;
|
|
293
|
+
/** Redo the last undone change. */
|
|
294
|
+
redo(): void;
|
|
295
|
+
}
|
|
296
|
+
/** A simple CSS-like style object. */
|
|
297
|
+
export interface IPublicTypeStyle {
|
|
298
|
+
[key: string]: string | number | undefined;
|
|
299
|
+
}
|
|
300
|
+
/** Responsive breakpoints. */
|
|
301
|
+
export interface IPublicTypeBreakpoint {
|
|
302
|
+
/** Match query, e.g. "max-width: 768px". */
|
|
303
|
+
query: string;
|
|
304
|
+
/** Override style applied at this breakpoint. */
|
|
305
|
+
style: IPublicTypeStyle;
|
|
306
|
+
}
|
|
307
|
+
/** A list of responsive overrides. */
|
|
308
|
+
export type IPublicTypeResponsiveStyle = IPublicTypeBreakpoint[];
|
|
309
|
+
/** Reference to a project asset (image, font, etc.). */
|
|
310
|
+
export interface IPublicTypeAsset {
|
|
311
|
+
/** Unique id within the project. */
|
|
312
|
+
id: ID;
|
|
313
|
+
/** Display label. */
|
|
314
|
+
title?: string;
|
|
315
|
+
/** Asset type. */
|
|
316
|
+
type: 'image' | 'font' | 'video' | 'audio' | 'icon' | 'file';
|
|
317
|
+
/** Asset URL. */
|
|
318
|
+
url: string;
|
|
319
|
+
/** Intrinsic size, when applicable. */
|
|
320
|
+
width?: number;
|
|
321
|
+
height?: number;
|
|
322
|
+
/** Mime type. */
|
|
323
|
+
mimeType?: string;
|
|
324
|
+
/** SHA for cache-busting. */
|
|
325
|
+
hash?: string;
|
|
326
|
+
}
|
|
327
|
+
export interface IPublicTypeProjectSchema {
|
|
328
|
+
/** Unique id. */
|
|
329
|
+
id: ID;
|
|
330
|
+
/** Project name. */
|
|
331
|
+
name: string;
|
|
332
|
+
/** Slug. */
|
|
333
|
+
slug: string;
|
|
334
|
+
/** Cover image. */
|
|
335
|
+
cover?: string;
|
|
336
|
+
/** All pages, keyed by fileName. */
|
|
337
|
+
pages: Record<string, IPublicTypeRootSchema>;
|
|
338
|
+
/** All components registered in this project. */
|
|
339
|
+
components: Record<string, IPublicTypeComponentSchema>;
|
|
340
|
+
/** All assets. */
|
|
341
|
+
assets?: Record<string, IPublicTypeAsset>;
|
|
342
|
+
/** i18n bundles, keyed by bundle name. */
|
|
343
|
+
i18n?: Record<string, Record<string, IPublicTypeI18nMessage>>;
|
|
344
|
+
/** Data sources. */
|
|
345
|
+
dataSources?: Record<string, IPublicTypeDataSource>;
|
|
346
|
+
/** Project-level config. */
|
|
347
|
+
config?: IPublicTypeProjectConfig;
|
|
348
|
+
/** Schema version. */
|
|
349
|
+
version: string;
|
|
350
|
+
}
|
|
351
|
+
export interface IPublicTypeProjectConfig {
|
|
352
|
+
/** Default theme. */
|
|
353
|
+
theme?: 'light' | 'dark';
|
|
354
|
+
/** Default locale. */
|
|
355
|
+
locale?: string;
|
|
356
|
+
/** Whether to enable lowcode features. */
|
|
357
|
+
lowcode?: boolean;
|
|
358
|
+
}
|
|
359
|
+
/** Group of components. */
|
|
360
|
+
export interface IPublicTypeComponentCategory {
|
|
361
|
+
/** Category id. */
|
|
362
|
+
id: ID;
|
|
363
|
+
/** Display title. */
|
|
364
|
+
title: string;
|
|
365
|
+
/** Icon. */
|
|
366
|
+
icon?: string;
|
|
367
|
+
/** Components in this category. */
|
|
368
|
+
components: IPublicTypeComponentSchema[];
|
|
369
|
+
}
|
|
370
|
+
/** Generic callback signature for hook-style events. */
|
|
371
|
+
export type IPublicTypeCallback<T = void> = (payload: T) => void;
|
|
372
|
+
/** Disposable cleanup. Returned by `useEffect`-style helpers. */
|
|
373
|
+
export interface IPublicTypeDisposable {
|
|
374
|
+
(): void;
|
|
375
|
+
}
|
|
376
|
+
/** Generic Result type. */
|
|
377
|
+
export type IPublicTypeResult<T, E = Error> = {
|
|
378
|
+
ok: true;
|
|
379
|
+
value: T;
|
|
380
|
+
} | {
|
|
381
|
+
ok: false;
|
|
382
|
+
error: E;
|
|
383
|
+
};
|
|
384
|
+
/** Opaque class reference (used in DI keys). */
|
|
385
|
+
export interface IPublicTypeClass<T> {
|
|
386
|
+
new (...args: any[]): T;
|
|
178
387
|
}
|
|
179
388
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,wDAAwD;AACxD,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC;AAExB,oDAAoD;AACpD,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B,0DAA0D;AAC1D,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAE/B,mDAAmD;AACnD,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC;AAI9B,iDAAiD;AACjD,MAAM,WAAW,qBAAqB;IACpC,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","s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MAAM,CAAC;IAChB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAID,2BAA2B;AAC3B,MAAM,WAAW,4BAA4B;IAC3C,mBAAmB;IACnB,EAAE,EAAE,EAAE,CAAC;IACP,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,UAAU,EAAE,0BAA0B,EAAE,CAAC;CAC1C;AAID,wDAAwD;AACxD,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAC;AAEjE,iEAAiE;AACjE,MAAM,WAAW,qBAAqB;IACpC,IAAI,IAAI,CAAC;CACV;AAED,2BAA2B;AAC3B,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,IACtC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACtB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE5B,gDAAgD;AAChD,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monbolc/lowcode-types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Core type definitions for SapuLowcodeEngine",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsc -p tsconfig.json",
|
|
22
|
-
"build:es": "tsc -p tsconfig.esm.json",
|
|
22
|
+
"build:es": "tsc -p tsconfig.esm.json && node ../../scripts/add-js-extensions.mjs es",
|
|
23
23
|
"clean": "rimraf lib es"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|