@rendley/sdk 1.12.7 → 1.12.8
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/undo/UndoManager.d.ts +144 -0
- package/package.json +1 -1
|
@@ -1,4 +1,128 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { UndoActionEnum, UndoActionMappings, UndoGroup, UndoRecord } from "./UndoManager.types";
|
|
3
|
+
export declare const UndoRecordSchema: z.ZodObject<{
|
|
4
|
+
action: z.ZodNativeEnum<typeof UndoActionEnum>;
|
|
5
|
+
data: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
data: Required<any>;
|
|
8
|
+
action: UndoActionEnum;
|
|
9
|
+
}, {
|
|
10
|
+
data: Required<any>;
|
|
11
|
+
action: UndoActionEnum;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const UndoGroupSchema: z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
records: z.ZodArray<z.ZodObject<{
|
|
16
|
+
action: z.ZodNativeEnum<typeof UndoActionEnum>;
|
|
17
|
+
data: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
data: Required<any>;
|
|
20
|
+
action: UndoActionEnum;
|
|
21
|
+
}, {
|
|
22
|
+
data: Required<any>;
|
|
23
|
+
action: UndoActionEnum;
|
|
24
|
+
}>, "many">;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
name: string;
|
|
27
|
+
records: {
|
|
28
|
+
data: Required<any>;
|
|
29
|
+
action: UndoActionEnum;
|
|
30
|
+
}[];
|
|
31
|
+
}, {
|
|
32
|
+
name: string;
|
|
33
|
+
records: {
|
|
34
|
+
data: Required<any>;
|
|
35
|
+
action: UndoActionEnum;
|
|
36
|
+
}[];
|
|
37
|
+
}>;
|
|
38
|
+
export declare const UndoManagerSchema: z.ZodObject<{
|
|
39
|
+
undoHistory: z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
records: z.ZodArray<z.ZodObject<{
|
|
42
|
+
action: z.ZodNativeEnum<typeof UndoActionEnum>;
|
|
43
|
+
data: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
data: Required<any>;
|
|
46
|
+
action: UndoActionEnum;
|
|
47
|
+
}, {
|
|
48
|
+
data: Required<any>;
|
|
49
|
+
action: UndoActionEnum;
|
|
50
|
+
}>, "many">;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
name: string;
|
|
53
|
+
records: {
|
|
54
|
+
data: Required<any>;
|
|
55
|
+
action: UndoActionEnum;
|
|
56
|
+
}[];
|
|
57
|
+
}, {
|
|
58
|
+
name: string;
|
|
59
|
+
records: {
|
|
60
|
+
data: Required<any>;
|
|
61
|
+
action: UndoActionEnum;
|
|
62
|
+
}[];
|
|
63
|
+
}>, "many">;
|
|
64
|
+
redoHistory: z.ZodArray<z.ZodObject<{
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
records: z.ZodArray<z.ZodObject<{
|
|
67
|
+
action: z.ZodNativeEnum<typeof UndoActionEnum>;
|
|
68
|
+
data: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
data: Required<any>;
|
|
71
|
+
action: UndoActionEnum;
|
|
72
|
+
}, {
|
|
73
|
+
data: Required<any>;
|
|
74
|
+
action: UndoActionEnum;
|
|
75
|
+
}>, "many">;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
name: string;
|
|
78
|
+
records: {
|
|
79
|
+
data: Required<any>;
|
|
80
|
+
action: UndoActionEnum;
|
|
81
|
+
}[];
|
|
82
|
+
}, {
|
|
83
|
+
name: string;
|
|
84
|
+
records: {
|
|
85
|
+
data: Required<any>;
|
|
86
|
+
action: UndoActionEnum;
|
|
87
|
+
}[];
|
|
88
|
+
}>, "many">;
|
|
89
|
+
isEnabled: z.ZodBoolean;
|
|
90
|
+
maxUndoHistory: z.ZodNumber;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
undoHistory: {
|
|
93
|
+
name: string;
|
|
94
|
+
records: {
|
|
95
|
+
data: Required<any>;
|
|
96
|
+
action: UndoActionEnum;
|
|
97
|
+
}[];
|
|
98
|
+
}[];
|
|
99
|
+
redoHistory: {
|
|
100
|
+
name: string;
|
|
101
|
+
records: {
|
|
102
|
+
data: Required<any>;
|
|
103
|
+
action: UndoActionEnum;
|
|
104
|
+
}[];
|
|
105
|
+
}[];
|
|
106
|
+
isEnabled: boolean;
|
|
107
|
+
maxUndoHistory: number;
|
|
108
|
+
}, {
|
|
109
|
+
undoHistory: {
|
|
110
|
+
name: string;
|
|
111
|
+
records: {
|
|
112
|
+
data: Required<any>;
|
|
113
|
+
action: UndoActionEnum;
|
|
114
|
+
}[];
|
|
115
|
+
}[];
|
|
116
|
+
redoHistory: {
|
|
117
|
+
name: string;
|
|
118
|
+
records: {
|
|
119
|
+
data: Required<any>;
|
|
120
|
+
action: UndoActionEnum;
|
|
121
|
+
}[];
|
|
122
|
+
}[];
|
|
123
|
+
isEnabled: boolean;
|
|
124
|
+
maxUndoHistory: number;
|
|
125
|
+
}>;
|
|
2
126
|
export declare class UndoManager {
|
|
3
127
|
private undoHistory;
|
|
4
128
|
private redoHistory;
|
|
@@ -32,4 +156,24 @@ export declare class UndoManager {
|
|
|
32
156
|
private clampUndoHistory;
|
|
33
157
|
destroy(): void;
|
|
34
158
|
processUndoRedo(undoRecord: UndoRecord, redoGroup: UndoGroup): Promise<void>;
|
|
159
|
+
serialize(): {
|
|
160
|
+
undoHistory: {
|
|
161
|
+
name: string;
|
|
162
|
+
records: {
|
|
163
|
+
data: Required<any>;
|
|
164
|
+
action: UndoActionEnum;
|
|
165
|
+
}[];
|
|
166
|
+
}[];
|
|
167
|
+
redoHistory: {
|
|
168
|
+
name: string;
|
|
169
|
+
records: {
|
|
170
|
+
data: Required<any>;
|
|
171
|
+
action: UndoActionEnum;
|
|
172
|
+
}[];
|
|
173
|
+
}[];
|
|
174
|
+
isEnabled: boolean;
|
|
175
|
+
maxUndoHistory: number;
|
|
176
|
+
};
|
|
177
|
+
deserialize(data: object): void;
|
|
178
|
+
static deserialize(data: object): UndoManager;
|
|
35
179
|
}
|