document-model 1.0.37 → 1.0.39

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.
@@ -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,11 @@ 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
- chainId: string;
16
+ chainId: number;
16
17
  };
17
18
  app: {
18
19
  name: string;
@@ -208,7 +209,6 @@ export type ENSInfo = {
208
209
  };
209
210
  export type User = {
210
211
  address: `0x${string}`;
211
- networkId: string;
212
212
  chainId: number;
213
213
  ens?: ENSInfo;
214
214
  };
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-model",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": false,
6
6
  "files": [