labull-framework 0.1.0 → 0.1.1
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/magic-block.js +528 -519
- package/dist/style.css +1 -1
- package/dist/types/magic-block-render.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
export interface BlockIssue {
|
|
2
|
+
stage: string;
|
|
3
|
+
kind: 'syntax' | 'usage';
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
1
6
|
export interface BlockRender {
|
|
2
7
|
id: string;
|
|
3
8
|
state: 'draft' | 'invalid' | 'ok';
|
|
4
9
|
name: string;
|
|
5
10
|
brief: string;
|
|
6
11
|
reason: string | null;
|
|
12
|
+
/** 体检的逐条问题(含文件与行号)。🔴 `reason` 只有一句话,明细才是"哪一行缺什么" —— 占位框两条都摆。 */
|
|
13
|
+
issues?: BlockIssue[];
|
|
7
14
|
files?: Record<string, string>;
|
|
8
15
|
}
|
|
9
16
|
export declare function onBlockRenderRefresh(fn: () => void): () => void;
|