@powerhousedao/vetra 6.0.0-dev.252 → 6.0.0-dev.254
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/document-models/app-module/index.d.ts +3 -339
- package/dist/document-models/app-module/index.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.d.ts +3 -315
- package/dist/document-models/document-editor/index.d.ts.map +1 -1
- package/dist/document-models/index.d.ts +5 -5
- package/dist/document-models/processor-module/index.d.ts +3 -347
- package/dist/document-models/processor-module/index.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +3 -286
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.d.ts +3 -376
- package/dist/document-models/vetra-package/index.d.ts.map +1 -1
- package/dist/index-BdmD5tsW.d.ts +393 -0
- package/dist/index-BdmD5tsW.d.ts.map +1 -0
- package/dist/index-BfK0fsx4.d.ts +424 -0
- package/dist/index-BfK0fsx4.d.ts.map +1 -0
- package/dist/index.d.ts +136 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/module-BYEvqA47.d.ts +357 -0
- package/dist/module-BYEvqA47.d.ts.map +1 -0
- package/dist/module-CCqD26Hf.d.ts +478 -0
- package/dist/module-CCqD26Hf.d.ts.map +1 -0
- package/dist/module-CpP8D2Hl.d.ts +437 -0
- package/dist/module-CpP8D2Hl.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/module-BoX1rWiq.d.ts +0 -6
- package/dist/module-BoX1rWiq.d.ts.map +0 -1
- package/dist/module-CG6K37P8.d.ts +0 -6
- package/dist/module-CG6K37P8.d.ts.map +0 -1
- package/dist/module-Cr-9knz_.d.ts +0 -6
- package/dist/module-Cr-9knz_.d.ts.map +0 -1
- package/dist/module-DhhQLYnQ.d.ts +0 -6
- package/dist/module-DhhQLYnQ.d.ts.map +0 -1
- package/dist/module-J-kGIl1E.d.ts +0 -6
- package/dist/module-J-kGIl1E.d.ts.map +0 -1
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import * as document_model0 from "document-model";
|
|
2
|
+
import { Action, DocumentModelGlobalState, DocumentModelUtils, PHAuthState, PHBaseState, PHDocument, PHDocumentController, PHDocumentState, Reducer, SignalDispatch } from "document-model";
|
|
3
|
+
import * as z$1 from "zod";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { DocumentDispatch } from "@powerhousedao/reactor-browser";
|
|
6
|
+
|
|
7
|
+
//#region document-models/app-module/v1/actions.d.ts
|
|
8
|
+
/** Actions for the AppModule document model */
|
|
9
|
+
declare const actions: {
|
|
10
|
+
setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => SetDragAndDropEnabledAction;
|
|
11
|
+
setAppName: (input: SetAppNameInput) => SetAppNameAction;
|
|
12
|
+
setAppStatus: (input: SetAppStatusInput) => SetAppStatusAction;
|
|
13
|
+
addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
14
|
+
removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
15
|
+
setDocumentTypes: (input: SetDocumentTypesInput) => SetDocumentTypesAction;
|
|
16
|
+
setName: (name: string | {
|
|
17
|
+
name: string;
|
|
18
|
+
}) => document_model0.SetNameAction;
|
|
19
|
+
setPreferredEditor: (input: string | null | {
|
|
20
|
+
preferredEditor: string | null;
|
|
21
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
22
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
23
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
24
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
25
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
26
|
+
name: string;
|
|
27
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
28
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region document-models/app-module/v1/gen/schema/types.d.ts
|
|
32
|
+
type Maybe<T> = T | null | undefined;
|
|
33
|
+
type InputMaybe<T> = T | null | undefined;
|
|
34
|
+
type Exact<T extends {
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}> = { [K in keyof T]: T[K] };
|
|
37
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
38
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
39
|
+
type MakeEmpty<T extends {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}, K extends keyof T> = { [_ in K]?: never };
|
|
42
|
+
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
|
|
43
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
44
|
+
type Scalars = {
|
|
45
|
+
ID: {
|
|
46
|
+
input: string;
|
|
47
|
+
output: string;
|
|
48
|
+
};
|
|
49
|
+
String: {
|
|
50
|
+
input: string;
|
|
51
|
+
output: string;
|
|
52
|
+
};
|
|
53
|
+
Boolean: {
|
|
54
|
+
input: boolean;
|
|
55
|
+
output: boolean;
|
|
56
|
+
};
|
|
57
|
+
Int: {
|
|
58
|
+
input: number;
|
|
59
|
+
output: number;
|
|
60
|
+
};
|
|
61
|
+
Float: {
|
|
62
|
+
input: number;
|
|
63
|
+
output: number;
|
|
64
|
+
};
|
|
65
|
+
Address: {
|
|
66
|
+
input: `${string}:0x${string}`;
|
|
67
|
+
output: `${string}:0x${string}`;
|
|
68
|
+
};
|
|
69
|
+
Amount: {
|
|
70
|
+
input: {
|
|
71
|
+
unit?: string;
|
|
72
|
+
value?: number;
|
|
73
|
+
};
|
|
74
|
+
output: {
|
|
75
|
+
unit?: string;
|
|
76
|
+
value?: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
Amount_Crypto: {
|
|
80
|
+
input: {
|
|
81
|
+
unit: string;
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
output: {
|
|
85
|
+
unit: string;
|
|
86
|
+
value: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
Amount_Currency: {
|
|
90
|
+
input: {
|
|
91
|
+
unit: string;
|
|
92
|
+
value: string;
|
|
93
|
+
};
|
|
94
|
+
output: {
|
|
95
|
+
unit: string;
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
Amount_Fiat: {
|
|
100
|
+
input: {
|
|
101
|
+
unit: string;
|
|
102
|
+
value: number;
|
|
103
|
+
};
|
|
104
|
+
output: {
|
|
105
|
+
unit: string;
|
|
106
|
+
value: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
Amount_Money: {
|
|
110
|
+
input: number;
|
|
111
|
+
output: number;
|
|
112
|
+
};
|
|
113
|
+
Amount_Percentage: {
|
|
114
|
+
input: number;
|
|
115
|
+
output: number;
|
|
116
|
+
};
|
|
117
|
+
Amount_Tokens: {
|
|
118
|
+
input: number;
|
|
119
|
+
output: number;
|
|
120
|
+
};
|
|
121
|
+
Attachment: {
|
|
122
|
+
input: string;
|
|
123
|
+
output: string;
|
|
124
|
+
};
|
|
125
|
+
Currency: {
|
|
126
|
+
input: string;
|
|
127
|
+
output: string;
|
|
128
|
+
};
|
|
129
|
+
Date: {
|
|
130
|
+
input: string;
|
|
131
|
+
output: string;
|
|
132
|
+
};
|
|
133
|
+
DateTime: {
|
|
134
|
+
input: string;
|
|
135
|
+
output: string;
|
|
136
|
+
};
|
|
137
|
+
EmailAddress: {
|
|
138
|
+
input: string;
|
|
139
|
+
output: string;
|
|
140
|
+
};
|
|
141
|
+
EthereumAddress: {
|
|
142
|
+
input: string;
|
|
143
|
+
output: string;
|
|
144
|
+
};
|
|
145
|
+
OID: {
|
|
146
|
+
input: string;
|
|
147
|
+
output: string;
|
|
148
|
+
};
|
|
149
|
+
OLabel: {
|
|
150
|
+
input: string;
|
|
151
|
+
output: string;
|
|
152
|
+
};
|
|
153
|
+
PHID: {
|
|
154
|
+
input: string;
|
|
155
|
+
output: string;
|
|
156
|
+
};
|
|
157
|
+
URL: {
|
|
158
|
+
input: string;
|
|
159
|
+
output: string;
|
|
160
|
+
};
|
|
161
|
+
Unknown: {
|
|
162
|
+
input: unknown;
|
|
163
|
+
output: unknown;
|
|
164
|
+
};
|
|
165
|
+
Upload: {
|
|
166
|
+
input: File;
|
|
167
|
+
output: File;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
type AddDocumentTypeInput = {
|
|
171
|
+
documentType: Scalars["String"]["input"];
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Configuration for a Drive App contributed by the package. Drive apps render a
|
|
175
|
+
* custom view at the drive level (instead of, or alongside, the document file
|
|
176
|
+
* tree) and can opt into which document types they accept.
|
|
177
|
+
*/
|
|
178
|
+
type AppModuleState = {
|
|
179
|
+
/** Document type ids this app handles. `null` means the app accepts any document type; an empty list means it accepts none. */allowedDocumentTypes: Maybe<Array<Scalars["String"]["output"]>>; /** Whether the app surface accepts dropped files from the user. Defaults to true. */
|
|
180
|
+
isDragAndDropEnabled: Scalars["Boolean"]["output"]; /** Display name of the drive app. Also used as the source for the generated folder name under `apps/`. */
|
|
181
|
+
name: Scalars["String"]["output"]; /** Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation. */
|
|
182
|
+
status: StatusType;
|
|
183
|
+
};
|
|
184
|
+
type RemoveDocumentTypeInput = {
|
|
185
|
+
documentType: Scalars["String"]["input"];
|
|
186
|
+
};
|
|
187
|
+
type SetAppNameInput = {
|
|
188
|
+
name: Scalars["String"]["input"];
|
|
189
|
+
};
|
|
190
|
+
type SetAppStatusInput = {
|
|
191
|
+
status: StatusType;
|
|
192
|
+
};
|
|
193
|
+
type SetDocumentTypesInput = {
|
|
194
|
+
documentTypes: Array<Scalars["String"]["input"]>;
|
|
195
|
+
};
|
|
196
|
+
type SetDragAndDropEnabledInput = {
|
|
197
|
+
enabled: Scalars["Boolean"]["input"];
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Lifecycle status of a module definition.
|
|
201
|
+
* - DRAFT: still being edited; codegen does not run.
|
|
202
|
+
* - CONFIRMED: locked in; codegen produces the corresponding scaffold.
|
|
203
|
+
*/
|
|
204
|
+
type StatusType = "CONFIRMED" | "DRAFT";
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region document-models/app-module/v1/gen/types.d.ts
|
|
207
|
+
type AppModuleLocalState = Record<PropertyKey, never>;
|
|
208
|
+
type AppModulePHState = PHBaseState & {
|
|
209
|
+
global: AppModuleState;
|
|
210
|
+
local: AppModuleLocalState;
|
|
211
|
+
};
|
|
212
|
+
type AppModuleDocument = PHDocument<AppModulePHState>;
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region document-models/app-module/v1/gen/base-operations/actions.d.ts
|
|
215
|
+
type SetAppNameAction = Action & {
|
|
216
|
+
type: "SET_APP_NAME";
|
|
217
|
+
input: SetAppNameInput;
|
|
218
|
+
};
|
|
219
|
+
type SetAppStatusAction = Action & {
|
|
220
|
+
type: "SET_APP_STATUS";
|
|
221
|
+
input: SetAppStatusInput;
|
|
222
|
+
};
|
|
223
|
+
type AddDocumentTypeAction = Action & {
|
|
224
|
+
type: "ADD_DOCUMENT_TYPE";
|
|
225
|
+
input: AddDocumentTypeInput;
|
|
226
|
+
};
|
|
227
|
+
type RemoveDocumentTypeAction = Action & {
|
|
228
|
+
type: "REMOVE_DOCUMENT_TYPE";
|
|
229
|
+
input: RemoveDocumentTypeInput;
|
|
230
|
+
};
|
|
231
|
+
type SetDocumentTypesAction = Action & {
|
|
232
|
+
type: "SET_DOCUMENT_TYPES";
|
|
233
|
+
input: SetDocumentTypesInput;
|
|
234
|
+
};
|
|
235
|
+
type AppModuleBaseOperationsAction = SetAppNameAction | SetAppStatusAction | AddDocumentTypeAction | RemoveDocumentTypeAction | SetDocumentTypesAction;
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region document-models/app-module/v1/gen/dnd-operations/actions.d.ts
|
|
238
|
+
type SetDragAndDropEnabledAction = Action & {
|
|
239
|
+
type: "SET_DRAG_AND_DROP_ENABLED";
|
|
240
|
+
input: SetDragAndDropEnabledInput;
|
|
241
|
+
};
|
|
242
|
+
type AppModuleDndOperationsAction = SetDragAndDropEnabledAction;
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region document-models/app-module/v1/gen/actions.d.ts
|
|
245
|
+
type AppModuleAction = AppModuleBaseOperationsAction | AppModuleDndOperationsAction;
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region document-models/app-module/v1/gen/base-operations/operations.d.ts
|
|
248
|
+
interface AppModuleBaseOperationsOperations {
|
|
249
|
+
setAppNameOperation: (state: AppModuleState, action: SetAppNameAction, dispatch?: SignalDispatch) => void;
|
|
250
|
+
setAppStatusOperation: (state: AppModuleState, action: SetAppStatusAction, dispatch?: SignalDispatch) => void;
|
|
251
|
+
addDocumentTypeOperation: (state: AppModuleState, action: AddDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
252
|
+
removeDocumentTypeOperation: (state: AppModuleState, action: RemoveDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
253
|
+
setDocumentTypesOperation: (state: AppModuleState, action: SetDocumentTypesAction, dispatch?: SignalDispatch) => void;
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region document-models/app-module/v1/gen/controller.d.ts
|
|
257
|
+
declare const AppModuleController: new (initialDocument?: document_model0.PHDocument<AppModulePHState> | undefined) => PHDocumentController<AppModulePHState> & document_model0.ActionMap<AppModuleAction, PHDocumentController<AppModulePHState>>;
|
|
258
|
+
declare namespace creators_d_exports$1 {
|
|
259
|
+
export { addDocumentType, removeDocumentType, setAppName, setAppStatus, setDocumentTypes };
|
|
260
|
+
}
|
|
261
|
+
declare const setAppName: (input: SetAppNameInput) => SetAppNameAction;
|
|
262
|
+
declare const setAppStatus: (input: SetAppStatusInput) => SetAppStatusAction;
|
|
263
|
+
declare const addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
264
|
+
declare const removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
265
|
+
declare const setDocumentTypes: (input: SetDocumentTypesInput) => SetDocumentTypesAction;
|
|
266
|
+
declare namespace creators_d_exports {
|
|
267
|
+
export { setDragAndDropEnabled };
|
|
268
|
+
}
|
|
269
|
+
declare const setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => SetDragAndDropEnabledAction;
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region document-models/app-module/v1/gen/dnd-operations/operations.d.ts
|
|
272
|
+
interface AppModuleDndOperationsOperations {
|
|
273
|
+
setDragAndDropEnabledOperation: (state: AppModuleState, action: SetDragAndDropEnabledAction, dispatch?: SignalDispatch) => void;
|
|
274
|
+
}
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region document-models/app-module/v1/gen/document-model.d.ts
|
|
277
|
+
declare const documentModel: DocumentModelGlobalState;
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region document-models/app-module/v1/gen/document-schema.d.ts
|
|
280
|
+
/** Schema for validating the header object of a AppModule document */
|
|
281
|
+
declare const AppModuleDocumentHeaderSchema: z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
createdAtUtcIso: z.ZodString;
|
|
285
|
+
lastModifiedAtUtcIso: z.ZodString;
|
|
286
|
+
documentType: z.ZodLiteral<"powerhouse/app">;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
/** Schema for validating the state object of a AppModule document */
|
|
289
|
+
declare const AppModulePHStateSchema: z.ZodObject<{
|
|
290
|
+
global: z.ZodObject<Required<{
|
|
291
|
+
allowedDocumentTypes: z.ZodType<Maybe<string[]>, unknown, z.core.$ZodTypeInternals<Maybe<string[]>, unknown>>;
|
|
292
|
+
isDragAndDropEnabled: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
293
|
+
name: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
294
|
+
status: z.ZodType<StatusType, unknown, z.core.$ZodTypeInternals<StatusType, unknown>>;
|
|
295
|
+
}>, z.core.$strip>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
declare const AppModuleDocumentSchema: z.ZodObject<{
|
|
298
|
+
header: z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
createdAtUtcIso: z.ZodString;
|
|
302
|
+
lastModifiedAtUtcIso: z.ZodString;
|
|
303
|
+
documentType: z.ZodLiteral<"powerhouse/app">;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
state: z.ZodObject<{
|
|
306
|
+
global: z.ZodObject<Required<{
|
|
307
|
+
allowedDocumentTypes: z.ZodType<Maybe<string[]>, unknown, z.core.$ZodTypeInternals<Maybe<string[]>, unknown>>;
|
|
308
|
+
isDragAndDropEnabled: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
309
|
+
name: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
310
|
+
status: z.ZodType<StatusType, unknown, z.core.$ZodTypeInternals<StatusType, unknown>>;
|
|
311
|
+
}>, z.core.$strip>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
initialState: z.ZodObject<{
|
|
314
|
+
global: z.ZodObject<Required<{
|
|
315
|
+
allowedDocumentTypes: z.ZodType<Maybe<string[]>, unknown, z.core.$ZodTypeInternals<Maybe<string[]>, unknown>>;
|
|
316
|
+
isDragAndDropEnabled: z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>;
|
|
317
|
+
name: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
318
|
+
status: z.ZodType<StatusType, unknown, z.core.$ZodTypeInternals<StatusType, unknown>>;
|
|
319
|
+
}>, z.core.$strip>;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
/** Simple helper function to check if a state object is a AppModule document state object */
|
|
323
|
+
declare function isAppModuleState(state: unknown): state is AppModulePHState;
|
|
324
|
+
/** Simple helper function to assert that a document state object is a AppModule document state object */
|
|
325
|
+
declare function assertIsAppModuleState(state: unknown): asserts state is AppModulePHState;
|
|
326
|
+
/** Simple helper function to check if a document is a AppModule document */
|
|
327
|
+
declare function isAppModuleDocument(document: unknown): document is AppModuleDocument;
|
|
328
|
+
/** Simple helper function to assert that a document is a AppModule document */
|
|
329
|
+
declare function assertIsAppModuleDocument(document: unknown): asserts document is AppModuleDocument;
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region document-models/app-module/v1/gen/document-type.d.ts
|
|
332
|
+
/**
|
|
333
|
+
* WARNING: DO NOT EDIT
|
|
334
|
+
* This file is auto-generated and updated by codegen
|
|
335
|
+
*/
|
|
336
|
+
declare const appModuleDocumentType = "powerhouse/app";
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region document-models/app-module/v1/gen/ph-factories.d.ts
|
|
339
|
+
declare function defaultGlobalState(): AppModuleState;
|
|
340
|
+
declare function defaultLocalState(): AppModuleLocalState;
|
|
341
|
+
declare function defaultPHState(): AppModulePHState;
|
|
342
|
+
declare function createState$1(baseState?: Partial<PHBaseState>, globalState?: Partial<AppModuleState>, localState?: Partial<AppModuleLocalState>): AppModulePHState;
|
|
343
|
+
/**
|
|
344
|
+
* Creates a AppModuleDocument with custom global and local state
|
|
345
|
+
* This properly handles the PHBaseState requirements while allowing
|
|
346
|
+
* document-specific state to be set.
|
|
347
|
+
*/
|
|
348
|
+
declare function createAppModuleDocument(state?: Partial<{
|
|
349
|
+
auth?: Partial<PHAuthState>;
|
|
350
|
+
document?: Partial<PHDocumentState>;
|
|
351
|
+
global?: Partial<AppModuleState>;
|
|
352
|
+
local?: Partial<AppModuleLocalState>;
|
|
353
|
+
}>): AppModuleDocument;
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region document-models/app-module/v1/gen/reducer.d.ts
|
|
356
|
+
declare const reducer: Reducer<AppModulePHState>;
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region document-models/app-module/v1/gen/schema/zod.d.ts
|
|
359
|
+
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]> }>;
|
|
360
|
+
type definedNonNullAny = {};
|
|
361
|
+
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
362
|
+
declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
363
|
+
declare const StatusTypeSchema: z$1.ZodEnum<{
|
|
364
|
+
CONFIRMED: "CONFIRMED";
|
|
365
|
+
DRAFT: "DRAFT";
|
|
366
|
+
}>;
|
|
367
|
+
declare function AddDocumentTypeInputSchema(): z$1.ZodObject<Properties<AddDocumentTypeInput>>;
|
|
368
|
+
declare function AppModuleStateSchema(): z$1.ZodObject<Properties<AppModuleState>>;
|
|
369
|
+
declare function RemoveDocumentTypeInputSchema(): z$1.ZodObject<Properties<RemoveDocumentTypeInput>>;
|
|
370
|
+
declare function SetAppNameInputSchema(): z$1.ZodObject<Properties<SetAppNameInput>>;
|
|
371
|
+
declare function SetAppStatusInputSchema(): z$1.ZodObject<Properties<SetAppStatusInput>>;
|
|
372
|
+
declare function SetDocumentTypesInputSchema(): z$1.ZodObject<Properties<SetDocumentTypesInput>>;
|
|
373
|
+
declare function SetDragAndDropEnabledInputSchema(): z$1.ZodObject<Properties<SetDragAndDropEnabledInput>>;
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region document-models/app-module/v1/gen/utils.d.ts
|
|
376
|
+
declare const initialGlobalState: AppModuleState;
|
|
377
|
+
declare const initialLocalState: AppModuleLocalState;
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region document-models/app-module/v1/hooks.d.ts
|
|
380
|
+
/** Hook to get a AppModule document by its id */
|
|
381
|
+
declare function useAppModuleDocumentById(documentId: string | null | undefined): [AppModuleDocument, DocumentDispatch<AppModuleAction>] | [undefined, undefined];
|
|
382
|
+
/** Hook to get the selected AppModule document */
|
|
383
|
+
declare function useSelectedAppModuleDocument(): [AppModuleDocument, DocumentDispatch<AppModuleAction>];
|
|
384
|
+
/** Hook to get all AppModule documents in the selected drive */
|
|
385
|
+
declare function useAppModuleDocumentsInSelectedDrive(): AppModuleDocument[] | undefined;
|
|
386
|
+
/** Hook to get all AppModule documents in the selected folder */
|
|
387
|
+
declare function useAppModuleDocumentsInSelectedFolder(): AppModuleDocument[] | undefined;
|
|
388
|
+
//#endregion
|
|
389
|
+
//#region document-models/app-module/v1/module.d.ts
|
|
390
|
+
/** Document model module for the AppModule document type */
|
|
391
|
+
declare const AppModule: {
|
|
392
|
+
readonly version: 1;
|
|
393
|
+
readonly reducer: document_model0.Reducer<AppModulePHState>;
|
|
394
|
+
readonly actions: {
|
|
395
|
+
setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => SetDragAndDropEnabledAction;
|
|
396
|
+
setAppName: (input: SetAppNameInput) => SetAppNameAction;
|
|
397
|
+
setAppStatus: (input: SetAppStatusInput) => SetAppStatusAction;
|
|
398
|
+
addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
399
|
+
removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
400
|
+
setDocumentTypes: (input: SetDocumentTypesInput) => SetDocumentTypesAction;
|
|
401
|
+
setName: (name: string | {
|
|
402
|
+
name: string;
|
|
403
|
+
}) => document_model0.SetNameAction;
|
|
404
|
+
setPreferredEditor: (input: string | null | {
|
|
405
|
+
preferredEditor: string | null;
|
|
406
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
407
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
408
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
409
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
410
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
411
|
+
name: string;
|
|
412
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
413
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
414
|
+
};
|
|
415
|
+
readonly utils: document_model0.DocumentModelUtils<AppModulePHState>;
|
|
416
|
+
readonly documentModel: document_model0.DocumentModelPHState;
|
|
417
|
+
};
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region document-models/app-module/v1/utils.d.ts
|
|
420
|
+
/** Utils for the AppModule document model */
|
|
421
|
+
declare const utils: DocumentModelUtils<AppModulePHState>;
|
|
422
|
+
//#endregion
|
|
423
|
+
export { SetDocumentTypesAction as $, assertIsAppModuleState as A, setAppName as B, defaultLocalState as C, AppModuleDocumentSchema as D, AppModuleDocumentHeaderSchema as E, creators_d_exports as F, AppModuleAction as G, setDocumentTypes as H, setDragAndDropEnabled as I, AddDocumentTypeAction as J, AppModuleDndOperationsAction as K, addDocumentType as L, isAppModuleState as M, documentModel as N, AppModulePHStateSchema as O, AppModuleDndOperationsOperations as P, SetAppStatusAction as Q, creators_d_exports$1 as R, defaultGlobalState as S, appModuleDocumentType as T, AppModuleController as U, setAppStatus as V, AppModuleBaseOperationsOperations as W, RemoveDocumentTypeAction as X, AppModuleBaseOperationsAction as Y, SetAppNameAction as Z, definedNonNullAnySchema as _, SetDragAndDropEnabledInput as _t, useAppModuleDocumentsInSelectedFolder as a, Exact as at, createAppModuleDocument as b, initialLocalState as c, MakeEmpty as ct, RemoveDocumentTypeInputSchema as d, Maybe as dt, AppModuleDocument as et, SetAppNameInputSchema as f, RemoveDocumentTypeInput as ft, StatusTypeSchema as g, SetDocumentTypesInput as gt, SetDragAndDropEnabledInputSchema as h, SetAppStatusInput as ht, useAppModuleDocumentsInSelectedDrive as i, AppModuleState as it, isAppModuleDocument as j, assertIsAppModuleDocument as k, AddDocumentTypeInputSchema as l, MakeMaybe as lt, SetDocumentTypesInputSchema as m, SetAppNameInput as mt, AppModule as n, AppModulePHState as nt, useSelectedAppModuleDocument as o, Incremental as ot, SetAppStatusInputSchema as p, Scalars as pt, SetDragAndDropEnabledAction as q, useAppModuleDocumentById as r, AddDocumentTypeInput as rt, initialGlobalState as s, InputMaybe as st, utils as t, AppModuleLocalState as tt, AppModuleStateSchema as u, MakeOptional as ut, isDefinedNonNullAny as v, StatusType as vt, defaultPHState as w, createState$1 as x, reducer as y, actions as yt, removeDocumentType as z };
|
|
424
|
+
//# sourceMappingURL=index-BfK0fsx4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BfK0fsx4.d.ts","names":[],"sources":["../document-models/app-module/v1/actions.ts","../document-models/app-module/v1/gen/schema/types.ts","../document-models/app-module/v1/gen/types.ts","../document-models/app-module/v1/gen/base-operations/actions.ts","../document-models/app-module/v1/gen/dnd-operations/actions.ts","../document-models/app-module/v1/gen/actions.ts","../document-models/app-module/v1/gen/base-operations/operations.ts","../document-models/app-module/v1/gen/controller.ts","../document-models/app-module/v1/gen/base-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/operations.ts","../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/gen/document-schema.ts","../document-models/app-module/v1/gen/document-type.ts","../document-models/app-module/v1/gen/ph-factories.ts","../document-models/app-module/v1/gen/reducer.ts","../document-models/app-module/v1/gen/schema/zod.ts","../document-models/app-module/v1/gen/utils.ts","../document-models/app-module/v1/hooks.ts","../document-models/app-module/v1/module.ts","../document-models/app-module/v1/utils.ts"],"mappings":";;;;;;;;cAYa,OAAA;0BAGV,KAAA,EACF,0BAAA,KAAD,2BAAA;eACwP,KAAA,EADxP,eAAA,KAC8Q,gBAAA;iBAAwK,KAAA,EAAxK,iBAAA,KAAgM,kBAAA;oBAAiL,KAAA,EAAjL,oBAAA,KAA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,iBAOG,uBAAA,CAAA,GAA2B,GAAA,CAAE,SAAA,CAC3C,UAAA,CAAW,iBAAA;AAAA,iBAOG,2BAAA,CAAA,GAA+B,GAAA,CAAE,SAAA,CAC/C,UAAA,CAAW,qBAAA;AAAA,iBAOG,gCAAA,CAAA,GAAoC,GAAA,CAAE,SAAA,CACpD,UAAA,CAAW,0BAAA;;;cCxDA,kBAAA,EAAoB,cAAA;AAAA,cAMpB,iBAAA,EAAmB,mBAAA;;;;iBCXhB,wBAAA,CACd,UAAA,+BAEG,iBAAA,EAAmB,gBAAA,CAAiB,eAAA;AlBZzC;AAAA,iBkBoBgB,4BAAA,CAAA,IACd,iBAAA,EACA,gBAAA,CAAiB,eAAA;;iBASH,oCAAA,CAAA,GAAoC,iBAAA;;iBAMpC,qCAAA,CAAA,GAAqC,iBAAA;;;;cCpCxC,SAAA;EAAA;;;4BAJM,KAAA,iCAAiC,2BAAA;iBAUxC,KAAA,EAVwC,eAAA,KAUlB,gBAAA;mBAC4G,KAAA,EAD5G,iBAAA,KACoI,kBAAA;sBAAiL,KAAA,EAAjL,oBAAA,KAA4M,qBAAA;yBAA6L,KAAA,EAA7L,uBAAA,KAA2N,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAA6uU,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA;;;;;;cCVl2W,KAAA,EAAO,kBAAA,CAAmB,gBAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { $ as SetDocumentTypesAction, J as AddDocumentTypeAction, Q as SetAppStatusAction, X as RemoveDocumentTypeAction, Z as SetAppNameAction, _t as SetDragAndDropEnabledInput, ft as RemoveDocumentTypeInput, gt as SetDocumentTypesInput, ht as SetAppStatusInput, mt as SetAppNameInput, nt as AppModulePHState, q as SetDragAndDropEnabledAction, rt as AddDocumentTypeInput } from "./index-BfK0fsx4.js";
|
|
2
|
+
import { G as SetEditorStatusAction, J as DocumentEditorPHState, U as RemoveDocumentTypeAction$1, V as AddDocumentTypeAction$1, W as SetEditorNameAction, Y as AddDocumentTypeInput$1, at as RemoveDocumentTypeInput$1, ct as SetEditorStatusInput, st as SetEditorNameInput } from "./index-BdmD5tsW.js";
|
|
3
|
+
import { St as SetProcessorTypeAction, X as AddDocumentTypeInput$2, Y as ProcessorModulePHState, Z as AddProcessorAppInput, bt as SetProcessorNameAction, ct as RemoveProcessorAppInput, dt as SetProcessorStatusInput, ft as SetProcessorTypeInput, gt as AddProcessorAppAction, ht as AddDocumentTypeAction$2, st as RemoveDocumentTypeInput$2, ut as SetProcessorNameInput, vt as RemoveDocumentTypeAction$2, xt as SetProcessorStatusAction, yt as RemoveProcessorAppAction } from "./module-CpP8D2Hl.js";
|
|
4
|
+
import { $ as SetSubgraphStatusAction, J as SetSubgraphStatusInput, Q as SetSubgraphNameAction, R as SubgraphModulePHState, q as SetSubgraphNameInput } from "./module-BYEvqA47.js";
|
|
5
|
+
import { At as SetPackageDescriptionAction, Dt as SetPackageAuthorNameAction, Et as SetPackageAuthorAction, Mt as SetPackageNameAction, Nt as SetPackageNpmUrlAction, Ot as SetPackageAuthorWebsiteAction, Tt as RemovePackageKeywordAction, _t as SetPackageCategoryInput, bt as SetPackageNameInput, ft as RemovePackageKeywordInput, gt as SetPackageAuthorWebsiteInput, ht as SetPackageAuthorNameInput, jt as SetPackageGithubUrlAction, kt as SetPackageCategoryAction, mt as SetPackageAuthorInput, nt as AddPackageKeywordInput, tt as VetraPackagePHState, vt as SetPackageDescriptionInput, wt as AddPackageKeywordAction, xt as SetPackageNpmUrlInput, yt as SetPackageGithubUrlInput } from "./module-CCqD26Hf.js";
|
|
6
|
+
import * as document_model0 from "document-model";
|
|
1
7
|
import { EditorModule } from "document-model";
|
|
2
8
|
import { Manifest } from "@powerhousedao/shared/document-model";
|
|
3
9
|
|
|
@@ -6,7 +12,136 @@ import { Manifest } from "@powerhousedao/shared/document-model";
|
|
|
6
12
|
* WARNING: DO NOT EDIT
|
|
7
13
|
* This file is auto-generated and updated by codegen
|
|
8
14
|
*/
|
|
9
|
-
declare const documentModels: readonly [
|
|
15
|
+
declare const documentModels: readonly [{
|
|
16
|
+
readonly version: 1;
|
|
17
|
+
readonly reducer: document_model0.Reducer<AppModulePHState>;
|
|
18
|
+
readonly actions: {
|
|
19
|
+
setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => SetDragAndDropEnabledAction;
|
|
20
|
+
setAppName: (input: SetAppNameInput) => SetAppNameAction;
|
|
21
|
+
setAppStatus: (input: SetAppStatusInput) => SetAppStatusAction;
|
|
22
|
+
addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
23
|
+
removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
24
|
+
setDocumentTypes: (input: SetDocumentTypesInput) => SetDocumentTypesAction;
|
|
25
|
+
setName: (name: string | {
|
|
26
|
+
name: string;
|
|
27
|
+
}) => document_model0.SetNameAction;
|
|
28
|
+
setPreferredEditor: (input: string | null | {
|
|
29
|
+
preferredEditor: string | null;
|
|
30
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
31
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
32
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
33
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
34
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
35
|
+
name: string;
|
|
36
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
37
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
38
|
+
};
|
|
39
|
+
readonly utils: document_model0.DocumentModelUtils<AppModulePHState>;
|
|
40
|
+
readonly documentModel: document_model0.DocumentModelPHState;
|
|
41
|
+
}, {
|
|
42
|
+
readonly version: 1;
|
|
43
|
+
readonly reducer: document_model0.Reducer<DocumentEditorPHState>;
|
|
44
|
+
readonly actions: {
|
|
45
|
+
setEditorName: (input: SetEditorNameInput) => SetEditorNameAction;
|
|
46
|
+
addDocumentType: (input: AddDocumentTypeInput$1) => AddDocumentTypeAction$1;
|
|
47
|
+
removeDocumentType: (input: RemoveDocumentTypeInput$1) => RemoveDocumentTypeAction$1;
|
|
48
|
+
setEditorStatus: (input: SetEditorStatusInput) => SetEditorStatusAction;
|
|
49
|
+
setName: (name: string | {
|
|
50
|
+
name: string;
|
|
51
|
+
}) => document_model0.SetNameAction;
|
|
52
|
+
setPreferredEditor: (input: string | null | {
|
|
53
|
+
preferredEditor: string | null;
|
|
54
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
55
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
56
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
57
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
58
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
59
|
+
name: string;
|
|
60
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
61
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
62
|
+
};
|
|
63
|
+
readonly utils: document_model0.DocumentModelUtils<DocumentEditorPHState>;
|
|
64
|
+
readonly documentModel: document_model0.DocumentModelPHState;
|
|
65
|
+
}, {
|
|
66
|
+
readonly version: 1;
|
|
67
|
+
readonly reducer: document_model0.Reducer<ProcessorModulePHState>;
|
|
68
|
+
readonly actions: {
|
|
69
|
+
setProcessorName: (input: SetProcessorNameInput) => SetProcessorNameAction;
|
|
70
|
+
setProcessorType: (input: SetProcessorTypeInput) => SetProcessorTypeAction;
|
|
71
|
+
addDocumentType: (input: AddDocumentTypeInput$2) => AddDocumentTypeAction$2;
|
|
72
|
+
removeDocumentType: (input: RemoveDocumentTypeInput$2) => RemoveDocumentTypeAction$2;
|
|
73
|
+
addProcessorApp: (input: AddProcessorAppInput) => AddProcessorAppAction;
|
|
74
|
+
removeProcessorApp: (input: RemoveProcessorAppInput) => RemoveProcessorAppAction;
|
|
75
|
+
setProcessorStatus: (input: SetProcessorStatusInput) => SetProcessorStatusAction;
|
|
76
|
+
setName: (name: string | {
|
|
77
|
+
name: string;
|
|
78
|
+
}) => document_model0.SetNameAction;
|
|
79
|
+
setPreferredEditor: (input: string | null | {
|
|
80
|
+
preferredEditor: string | null;
|
|
81
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
82
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
83
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
84
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
85
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
86
|
+
name: string;
|
|
87
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
88
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
89
|
+
};
|
|
90
|
+
readonly utils: document_model0.DocumentModelUtils<ProcessorModulePHState>;
|
|
91
|
+
readonly documentModel: document_model0.DocumentModelPHState;
|
|
92
|
+
}, {
|
|
93
|
+
readonly version: 1;
|
|
94
|
+
readonly reducer: document_model0.Reducer<SubgraphModulePHState>;
|
|
95
|
+
readonly actions: {
|
|
96
|
+
setSubgraphName: (input: SetSubgraphNameInput) => SetSubgraphNameAction;
|
|
97
|
+
setSubgraphStatus: (input: SetSubgraphStatusInput) => SetSubgraphStatusAction;
|
|
98
|
+
setName: (name: string | {
|
|
99
|
+
name: string;
|
|
100
|
+
}) => document_model0.SetNameAction;
|
|
101
|
+
setPreferredEditor: (input: string | null | {
|
|
102
|
+
preferredEditor: string | null;
|
|
103
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
104
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
105
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
106
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
107
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
108
|
+
name: string;
|
|
109
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
110
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
111
|
+
};
|
|
112
|
+
readonly utils: document_model0.DocumentModelUtils<SubgraphModulePHState>;
|
|
113
|
+
readonly documentModel: document_model0.DocumentModelPHState;
|
|
114
|
+
}, {
|
|
115
|
+
readonly version: 1;
|
|
116
|
+
readonly reducer: document_model0.Reducer<VetraPackagePHState>;
|
|
117
|
+
readonly actions: {
|
|
118
|
+
setPackageName: (input: SetPackageNameInput) => SetPackageNameAction;
|
|
119
|
+
setPackageDescription: (input: SetPackageDescriptionInput) => SetPackageDescriptionAction;
|
|
120
|
+
setPackageCategory: (input: SetPackageCategoryInput) => SetPackageCategoryAction;
|
|
121
|
+
setPackageAuthor: (input: SetPackageAuthorInput) => SetPackageAuthorAction;
|
|
122
|
+
setPackageAuthorName: (input: SetPackageAuthorNameInput) => SetPackageAuthorNameAction;
|
|
123
|
+
setPackageAuthorWebsite: (input: SetPackageAuthorWebsiteInput) => SetPackageAuthorWebsiteAction;
|
|
124
|
+
addPackageKeyword: (input: AddPackageKeywordInput) => AddPackageKeywordAction;
|
|
125
|
+
removePackageKeyword: (input: RemovePackageKeywordInput) => RemovePackageKeywordAction;
|
|
126
|
+
setPackageGithubUrl: (input: SetPackageGithubUrlInput) => SetPackageGithubUrlAction;
|
|
127
|
+
setPackageNpmUrl: (input: SetPackageNpmUrlInput) => SetPackageNpmUrlAction;
|
|
128
|
+
setName: (name: string | {
|
|
129
|
+
name: string;
|
|
130
|
+
}) => document_model0.SetNameAction;
|
|
131
|
+
setPreferredEditor: (input: string | null | {
|
|
132
|
+
preferredEditor: string | null;
|
|
133
|
+
}) => document_model0.SetPreferredEditorAction;
|
|
134
|
+
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
135
|
+
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
136
|
+
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
137
|
+
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
138
|
+
name: string;
|
|
139
|
+
}, operations: number) => document_model0.LoadStateAction;
|
|
140
|
+
noop: (scope?: string) => document_model0.NOOPAction;
|
|
141
|
+
};
|
|
142
|
+
readonly utils: document_model0.DocumentModelUtils<VetraPackagePHState>;
|
|
143
|
+
readonly documentModel: document_model0.DocumentModelPHState;
|
|
144
|
+
}];
|
|
10
145
|
//#endregion
|
|
11
146
|
//#region editors/editors.d.ts
|
|
12
147
|
declare const editors: EditorModule[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../document-models/document-models.ts","../editors/editors.ts","../index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../document-models/document-models.ts","../editors/editors.ts","../index.ts"],"mappings":";;;;;;;;;;;;;;cAWa,cAAA;EAAA;4CAMH,gBAAA;EAAA;4BAbe,KAAA,iCAAiC,2BAAA;iBAc1D,KAAA,EAd0D,eAAA,KAcpC,gBAAA;mBAAwK,KAAA,EAAxK,iBAAA,KAAgM,kBAAA;sBAAiL,KAAA,EAAjL,oBAAA,KAA4M,qBAAA;yBAA6L,KAAA,EAA7L,uBAAA,KAA2N,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAA6uU,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAz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