document-model 1.0.38 → 1.0.40
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/browser/src/document/actions/types.d.ts +9 -3
- package/dist/browser/src/document/object.d.ts +665 -35
- package/dist/browser/src/document/schema/types.d.ts +0 -1
- package/dist/browser/src/document/types.d.ts +4 -1
- package/dist/browser/src/document-model/index.d.ts +6 -6
- package/dist/node/src/document/actions/types.d.ts +9 -3
- package/dist/node/src/document/object.d.ts +665 -35
- package/dist/node/src/document/schema/types.d.ts +0 -1
- package/dist/node/src/document/types.d.ts +4 -1
- package/dist/node/src/document-model/index.d.ts +6 -6
- package/package.json +1 -1
|
@@ -59,7 +59,6 @@ export type Action = IAction & {
|
|
|
59
59
|
__typename?: 'Action';
|
|
60
60
|
type: Scalars['String']['output'];
|
|
61
61
|
};
|
|
62
|
-
export type BaseAction = LoadStateAction | PruneAction | RedoAction | SetNameAction | UndoAction | NOOPAction;
|
|
63
62
|
export type UndoRedoAction = RedoAction | UndoAction;
|
|
64
63
|
export type DocumentFile = {
|
|
65
64
|
__typename?: 'DocumentFile';
|
|
@@ -9,10 +9,12 @@ export { z } from './schema';
|
|
|
9
9
|
export type * from './schema/types';
|
|
10
10
|
export type { FileInput } from './utils';
|
|
11
11
|
export type { Immutable } from 'immer';
|
|
12
|
+
export type { BaseAction } from './actions/types';
|
|
12
13
|
export type ActionSigner = {
|
|
13
14
|
user: {
|
|
14
15
|
address: string;
|
|
15
|
-
|
|
16
|
+
networkId: string;
|
|
17
|
+
chainId: number;
|
|
16
18
|
};
|
|
17
19
|
app: {
|
|
18
20
|
name: string;
|
|
@@ -208,6 +210,7 @@ export type ENSInfo = {
|
|
|
208
210
|
};
|
|
209
211
|
export type User = {
|
|
210
212
|
address: `0x${string}`;
|
|
213
|
+
networkId: string;
|
|
211
214
|
chainId: number;
|
|
212
215
|
ens?: ENSInfo;
|
|
213
216
|
};
|
|
@@ -67,12 +67,12 @@ declare const actions: {
|
|
|
67
67
|
updateStateExample: (input: import("./gen").UpdateStateExampleInput) => import("./gen").UpdateStateExampleAction;
|
|
68
68
|
deleteStateExample: (input: import("./gen").DeleteStateExampleInput) => import("./gen").DeleteStateExampleAction;
|
|
69
69
|
reorderStateExamples: (input: import("./gen").ReorderStateExamplesInput) => import("./gen").ReorderStateExamplesAction;
|
|
70
|
-
setName: (name: string) => import("../document").SetNameAction;
|
|
71
|
-
undo: (skip?: number, scope?: import("../document").OperationScope) => import("../document").UndoAction;
|
|
72
|
-
redo: (count?: number, scope?: import("../document").OperationScope) => import("../document").RedoAction;
|
|
73
|
-
prune: (start?: number | undefined, end?: number | undefined, scope?: import("../document").OperationScope) => import("../document").PruneAction;
|
|
74
|
-
loadState: <S, T>(state: Pick<import("../document").ExtendedState<S, T>, "name" | "state">, operations: number) => import("../document").LoadStateAction;
|
|
75
|
-
noop: (scope?: import("../document").OperationScope) => import("../document").NOOPAction;
|
|
70
|
+
setName: (name: string) => import("../document/actions/types").SetNameAction;
|
|
71
|
+
undo: (skip?: number, scope?: import("../document").OperationScope) => import("../document/actions/types").UndoAction;
|
|
72
|
+
redo: (count?: number, scope?: import("../document").OperationScope) => import("../document/actions/types").RedoAction;
|
|
73
|
+
prune: (start?: number | undefined, end?: number | undefined, scope?: import("../document").OperationScope) => import("../document/actions/types").PruneAction;
|
|
74
|
+
loadState: <S, T>(state: Pick<import("../document").ExtendedState<S, T>, "name" | "state">, operations: number) => import("../document/actions/types").LoadStateAction;
|
|
75
|
+
noop: (scope?: import("../document").OperationScope) => import("../document/actions/types").NOOPAction;
|
|
76
76
|
};
|
|
77
77
|
export declare const module: _DocumentModel<DocumentModelState, DocumentModelAction, DocumentModelLocalState, DocumentModel>;
|
|
78
78
|
export * from './custom/utils';
|