@craftile/types 1.0.3 → 1.0.5

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 +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftile/types",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Shared TypeScript type definitions for Craftile Editor",
5
5
  "keywords": [
6
6
  "craftile",
package/src/index.ts CHANGED
@@ -100,6 +100,13 @@ export interface MoveInstruction {
100
100
  toIndex: number;
101
101
  }
102
102
 
103
+ export interface BlockPosition {
104
+ parentId?: string;
105
+ regionId?: string;
106
+ afterId?: string;
107
+ beforeId?: string;
108
+ }
109
+
103
110
  export interface UpdatesEvent {
104
111
  blocks: Record<string, Block>;
105
112
  regions: Region[];
@@ -108,6 +115,7 @@ export interface UpdatesEvent {
108
115
  updated: string[];
109
116
  removed: string[];
110
117
  moved: Record<string, MoveInstruction>;
118
+ positions?: Record<string, BlockPosition>;
111
119
  };
112
120
  }
113
121