@craftile/types 1.0.3 → 1.0.4
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 +8 -0
package/package.json
CHANGED
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
|
|