@craftile/types 0.6.3 → 0.7.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/package.json +1 -1
- package/src/index.ts +3 -8
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -57,19 +57,14 @@ export interface PropertyField {
|
|
|
57
57
|
[key: string]: any;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export interface
|
|
61
|
-
|
|
62
|
-
id?: string; // Becomes semanticId
|
|
63
|
-
name?: string; // Custom display name
|
|
64
|
-
properties?: Record<string, any>;
|
|
65
|
-
children?: PresetChild[];
|
|
66
|
-
static?: boolean;
|
|
60
|
+
export interface BlockStructure extends Omit<Block, 'children' | 'parentId'> {
|
|
61
|
+
children?: BlockStructure[];
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
export interface BlockPreset {
|
|
70
65
|
name: string;
|
|
71
66
|
properties?: Record<string, any>;
|
|
72
|
-
children?:
|
|
67
|
+
children?: BlockStructure[];
|
|
73
68
|
icon?: string;
|
|
74
69
|
category?: string;
|
|
75
70
|
description?: string;
|