@craftile/types 0.6.0 → 0.6.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftile/types",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Shared TypeScript type definitions for Craftile Editor",
5
5
  "keywords": [
6
6
  "craftile",
package/src/index.ts CHANGED
@@ -41,6 +41,7 @@ export interface Block {
41
41
  properties: BlockProperties;
42
42
  disabled?: boolean;
43
43
  static?: boolean; // Block cannot be moved or removed
44
+ repeated?: boolean; // Block is part of a repeating pattern/list
44
45
  parentId?: string; // ID of parent block (undefined for top-level blocks)
45
46
  children: string[]; // Ordered array of child block IDs
46
47
  }
@@ -58,9 +59,11 @@ export interface PropertyField {
58
59
 
59
60
  export interface PresetChild {
60
61
  type: string;
61
- id?: string;
62
+ id?: string; // Becomes semanticId
63
+ name?: string; // Custom display name
62
64
  properties?: Record<string, any>;
63
65
  children?: PresetChild[];
66
+ static?: boolean;
64
67
  }
65
68
 
66
69
  export interface BlockPreset {