document-model 1.0.1 → 1.0.3
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/{node/src → browser}/document/types.d.ts +20 -1
- package/dist/{node/src → browser}/document-model/index.d.ts +1 -1
- package/dist/browser/document-model.d.ts +1 -1
- package/dist/browser/document.d.ts +1 -1
- package/dist/browser/index.d.ts +25 -3
- package/dist/{browser/src → node}/document/types.d.ts +20 -1
- package/dist/{browser/src → node}/document-model/index.d.ts +1 -1
- package/dist/node/document-model.d.ts +1 -1
- package/dist/node/document.d.ts +1 -1
- package/dist/node/index.d.ts +25 -3
- package/package.json +15 -23
- package/dist/browser/src/index.d.ts +0 -25
- package/dist/browser/vite.config.d.ts +0 -2
- package/dist/node/src/index.d.ts +0 -25
- package/dist/node/vite.config.d.ts +0 -2
- /package/dist/browser/{src/document → document}/actions/creators.d.ts +0 -0
- /package/dist/browser/{src/document → document}/actions/index.d.ts +0 -0
- /package/dist/browser/{src/document → document}/actions/types.d.ts +0 -0
- /package/dist/browser/{src/document → document}/index.d.ts +0 -0
- /package/dist/browser/{src/document → document}/object.d.ts +0 -0
- /package/dist/browser/{src/document → document}/reducer.d.ts +0 -0
- /package/dist/browser/{src/document → document}/schema/index.d.ts +0 -0
- /package/dist/browser/{src/document → document}/schema/types.d.ts +0 -0
- /package/dist/browser/{src/document → document}/schema/zod.d.ts +0 -0
- /package/dist/browser/{src/document → document}/utils/base.d.ts +0 -0
- /package/dist/browser/{src/document → document}/utils/file.d.ts +0 -0
- /package/dist/browser/{src/document → document}/utils/index.d.ts +0 -0
- /package/dist/browser/{src/document → document}/utils/node.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/header.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/module.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/operation-error.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/operation-example.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/operation.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/state.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/reducers/versioning.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/custom/utils.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/document-model.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/header/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/header/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/header/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/header/operations.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/index.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/module/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/module/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/module/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/module/operations.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation/operations.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-error/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-error/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-error/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-error/operations.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-example/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-example/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-example/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/operation-example/operations.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/reducer.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/schema/index.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/schema/types.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/schema/zod.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/state/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/state/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/state/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/state/operations.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/types.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/utils.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/versioning/actions.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/versioning/creators.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/versioning/object.d.ts +0 -0
- /package/dist/browser/{src/document-model → document-model}/gen/versioning/operations.d.ts +0 -0
- /package/dist/browser/{src/index.doc.d.ts → index.doc.d.ts} +0 -0
- /package/dist/node/{src/document → document}/actions/creators.d.ts +0 -0
- /package/dist/node/{src/document → document}/actions/index.d.ts +0 -0
- /package/dist/node/{src/document → document}/actions/types.d.ts +0 -0
- /package/dist/node/{src/document → document}/index.d.ts +0 -0
- /package/dist/node/{src/document → document}/object.d.ts +0 -0
- /package/dist/node/{src/document → document}/reducer.d.ts +0 -0
- /package/dist/node/{src/document → document}/schema/index.d.ts +0 -0
- /package/dist/node/{src/document → document}/schema/types.d.ts +0 -0
- /package/dist/node/{src/document → document}/schema/zod.d.ts +0 -0
- /package/dist/node/{src/document → document}/utils/base.d.ts +0 -0
- /package/dist/node/{src/document → document}/utils/file.d.ts +0 -0
- /package/dist/node/{src/document → document}/utils/index.d.ts +0 -0
- /package/dist/node/{src/document → document}/utils/node.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/header.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/module.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/operation-error.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/operation-example.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/operation.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/state.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/reducers/versioning.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/custom/utils.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/document-model.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/header/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/header/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/header/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/header/operations.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/index.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/module/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/module/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/module/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/module/operations.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation/operations.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-error/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-error/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-error/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-error/operations.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-example/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-example/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-example/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/operation-example/operations.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/reducer.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/schema/index.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/schema/types.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/schema/zod.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/state/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/state/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/state/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/state/operations.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/types.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/utils.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/versioning/actions.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/versioning/creators.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/versioning/object.d.ts +0 -0
- /package/dist/node/{src/document-model → document-model}/gen/versioning/operations.d.ts +0 -0
- /package/dist/node/{src/index.doc.d.ts → index.doc.d.ts} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Draft } from 'immer';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { DocumentModelState } from '../document-model/';
|
|
3
4
|
import type { BaseAction } from './actions/types';
|
|
4
5
|
import { BaseDocument } from './object';
|
|
5
6
|
import { FileInput } from './utils';
|
|
6
7
|
export { z } from './schema';
|
|
7
8
|
export type * from './schema/types';
|
|
9
|
+
export type { FileInput } from './utils';
|
|
8
10
|
/**
|
|
9
11
|
* Defines the basic structure of an action.
|
|
10
12
|
*
|
|
@@ -152,3 +154,20 @@ export type DocumentModel<S = unknown, A extends Action = Action, C extends Base
|
|
|
152
154
|
utils: DocumentModelUtils<S, A>;
|
|
153
155
|
documentModel: DocumentModelState;
|
|
154
156
|
};
|
|
157
|
+
export type EditorContext = {
|
|
158
|
+
theme: 'light' | 'dark';
|
|
159
|
+
debug?: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type EditorProps<S, A extends Action> = {
|
|
162
|
+
document: Document<S, A>;
|
|
163
|
+
dispatch: (action: A | BaseAction) => void;
|
|
164
|
+
editorContext: EditorContext;
|
|
165
|
+
};
|
|
166
|
+
export type Editor<S = unknown, A extends Action = Action> = {
|
|
167
|
+
Component: FC<EditorProps<S, A>>;
|
|
168
|
+
documentTypes: string[];
|
|
169
|
+
};
|
|
170
|
+
export type DocumentModelLib = {
|
|
171
|
+
documentModels: DocumentModel[];
|
|
172
|
+
editors: Editor[];
|
|
173
|
+
};
|
|
@@ -14,7 +14,7 @@ declare const utils: {
|
|
|
14
14
|
createExtendedState: (extendedState?: Partial<import("../document").ExtendedState<Partial<DocumentModelState>>> | undefined, createState?: ((state?: Partial<DocumentModelState> | undefined) => DocumentModelState) | undefined) => import("../document").ExtendedState<DocumentModelState>;
|
|
15
15
|
createDocument: (document?: Partial<import("../document").ExtendedState<Partial<DocumentModelState>>> | undefined, createState?: ((state?: Partial<DocumentModelState> | undefined) => DocumentModelState) | undefined) => import("../document").Document<DocumentModelState, DocumentModelAction>;
|
|
16
16
|
loadFromFile: (path: string) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction>>;
|
|
17
|
-
loadFromInput: (input: import("../document
|
|
17
|
+
loadFromInput: (input: import("../document").FileInput) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction>>;
|
|
18
18
|
saveToFile: (document: import("../document").Document<DocumentModelState, DocumentModelAction>, path: string, name?: string | undefined) => Promise<string>;
|
|
19
19
|
saveToFileHandle: (document: import("../document").Document<DocumentModelState, DocumentModelAction>, input: FileSystemFileHandle) => Promise<void>;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './document-model/index'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './document/index'
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import * as Document from './document';
|
|
2
|
+
import * as DocumentModel from './document-model';
|
|
3
|
+
/**
|
|
4
|
+
* This module exports all the public types, functions, and objects
|
|
5
|
+
* from the document module. It provides an easy-to-use interface
|
|
6
|
+
* for managing documents, and can be used in any Redux-based
|
|
7
|
+
* application. This module exports:
|
|
8
|
+
* - All action creators for the base document actions.
|
|
9
|
+
* - The Document object, which is used to for creating and
|
|
10
|
+
* manipulating documents in an object-oriented way.
|
|
11
|
+
* - The baseReducer function, which is a reducer for managing
|
|
12
|
+
* documents
|
|
13
|
+
* - Various utility functions to be used by Document Models.
|
|
14
|
+
*/
|
|
15
|
+
export { Document };
|
|
16
|
+
export { DocumentModel };
|
|
17
|
+
export declare const DocumentModels: {
|
|
18
|
+
'powerhouse/document': typeof Document;
|
|
19
|
+
'powerhouse/document-model': typeof DocumentModel;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: {
|
|
22
|
+
Document: typeof Document;
|
|
23
|
+
DocumentModel: typeof DocumentModel;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Draft } from 'immer';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
import type { DocumentModelState } from '../document-model/';
|
|
3
4
|
import type { BaseAction } from './actions/types';
|
|
4
5
|
import { BaseDocument } from './object';
|
|
5
6
|
import { FileInput } from './utils';
|
|
6
7
|
export { z } from './schema';
|
|
7
8
|
export type * from './schema/types';
|
|
9
|
+
export type { FileInput } from './utils';
|
|
8
10
|
/**
|
|
9
11
|
* Defines the basic structure of an action.
|
|
10
12
|
*
|
|
@@ -152,3 +154,20 @@ export type DocumentModel<S = unknown, A extends Action = Action, C extends Base
|
|
|
152
154
|
utils: DocumentModelUtils<S, A>;
|
|
153
155
|
documentModel: DocumentModelState;
|
|
154
156
|
};
|
|
157
|
+
export type EditorContext = {
|
|
158
|
+
theme: 'light' | 'dark';
|
|
159
|
+
debug?: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type EditorProps<S, A extends Action> = {
|
|
162
|
+
document: Document<S, A>;
|
|
163
|
+
dispatch: (action: A | BaseAction) => void;
|
|
164
|
+
editorContext: EditorContext;
|
|
165
|
+
};
|
|
166
|
+
export type Editor<S = unknown, A extends Action = Action> = {
|
|
167
|
+
Component: FC<EditorProps<S, A>>;
|
|
168
|
+
documentTypes: string[];
|
|
169
|
+
};
|
|
170
|
+
export type DocumentModelLib = {
|
|
171
|
+
documentModels: DocumentModel[];
|
|
172
|
+
editors: Editor[];
|
|
173
|
+
};
|
|
@@ -14,7 +14,7 @@ declare const utils: {
|
|
|
14
14
|
createExtendedState: (extendedState?: Partial<import("../document").ExtendedState<Partial<DocumentModelState>>> | undefined, createState?: ((state?: Partial<DocumentModelState> | undefined) => DocumentModelState) | undefined) => import("../document").ExtendedState<DocumentModelState>;
|
|
15
15
|
createDocument: (document?: Partial<import("../document").ExtendedState<Partial<DocumentModelState>>> | undefined, createState?: ((state?: Partial<DocumentModelState> | undefined) => DocumentModelState) | undefined) => import("../document").Document<DocumentModelState, DocumentModelAction>;
|
|
16
16
|
loadFromFile: (path: string) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction>>;
|
|
17
|
-
loadFromInput: (input: import("../document
|
|
17
|
+
loadFromInput: (input: import("../document").FileInput) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction>>;
|
|
18
18
|
saveToFile: (document: import("../document").Document<DocumentModelState, DocumentModelAction>, path: string, name?: string | undefined) => Promise<string>;
|
|
19
19
|
saveToFileHandle: (document: import("../document").Document<DocumentModelState, DocumentModelAction>, input: FileSystemFileHandle) => Promise<void>;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './document-model/index'
|
package/dist/node/document.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './document/index'
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import * as Document from './document';
|
|
2
|
+
import * as DocumentModel from './document-model';
|
|
3
|
+
/**
|
|
4
|
+
* This module exports all the public types, functions, and objects
|
|
5
|
+
* from the document module. It provides an easy-to-use interface
|
|
6
|
+
* for managing documents, and can be used in any Redux-based
|
|
7
|
+
* application. This module exports:
|
|
8
|
+
* - All action creators for the base document actions.
|
|
9
|
+
* - The Document object, which is used to for creating and
|
|
10
|
+
* manipulating documents in an object-oriented way.
|
|
11
|
+
* - The baseReducer function, which is a reducer for managing
|
|
12
|
+
* documents
|
|
13
|
+
* - Various utility functions to be used by Document Models.
|
|
14
|
+
*/
|
|
15
|
+
export { Document };
|
|
16
|
+
export { DocumentModel };
|
|
17
|
+
export declare const DocumentModels: {
|
|
18
|
+
'powerhouse/document': typeof Document;
|
|
19
|
+
'powerhouse/document-model': typeof DocumentModel;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: {
|
|
22
|
+
Document: typeof Document;
|
|
23
|
+
DocumentModel: typeof DocumentModel;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-model",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"private": false,
|
|
6
6
|
"files": [
|
|
@@ -20,49 +20,40 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"import": "./dist/node/index.js",
|
|
23
|
-
"require": "./dist/node/index.cjs"
|
|
23
|
+
"require": "./dist/node/index.cjs",
|
|
24
|
+
"types": "./dist/node/index.d.ts"
|
|
24
25
|
},
|
|
25
26
|
"./browser": {
|
|
26
27
|
"import": "./dist/browser/index.js",
|
|
27
|
-
"require": "./dist/browser/index.cjs"
|
|
28
|
+
"require": "./dist/browser/index.cjs",
|
|
29
|
+
"types": "./dist/browser/index.d.ts"
|
|
28
30
|
},
|
|
29
31
|
"./document": {
|
|
30
32
|
"import": "./dist/node/document.js",
|
|
31
|
-
"require": "./dist/node/document.cjs"
|
|
33
|
+
"require": "./dist/node/document.cjs",
|
|
34
|
+
"types": "./dist/node/document.d.ts"
|
|
32
35
|
},
|
|
33
36
|
"./browser/document": {
|
|
34
37
|
"import": "./dist/browser/document.js",
|
|
35
|
-
"require": "./dist/browser/document.cjs"
|
|
38
|
+
"require": "./dist/browser/document.cjs",
|
|
39
|
+
"types": "./dist/browser/document.d.ts"
|
|
36
40
|
},
|
|
37
41
|
"./document-model": {
|
|
38
42
|
"import": "./dist/node/document-model.js",
|
|
39
|
-
"require": "./dist/node/document-model.cjs"
|
|
43
|
+
"require": "./dist/node/document-model.cjs",
|
|
44
|
+
"types": "./dist/node/document-model.d.ts"
|
|
40
45
|
},
|
|
41
46
|
"./browser/document-model": {
|
|
42
47
|
"import": "./dist/node/document-model.js",
|
|
43
|
-
"require": "./dist/node/document-model.cjs"
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
"typesVersions": {
|
|
47
|
-
"*": {
|
|
48
|
-
"document": [
|
|
49
|
-
"dist/node/document"
|
|
50
|
-
],
|
|
51
|
-
"browser/document": [
|
|
52
|
-
"dist/browser/document"
|
|
53
|
-
],
|
|
54
|
-
"document-model": [
|
|
55
|
-
"dist/node/document-model"
|
|
56
|
-
],
|
|
57
|
-
"browser/document-model": [
|
|
58
|
-
"dist/browser/document-model"
|
|
59
|
-
]
|
|
48
|
+
"require": "./dist/node/document-model.cjs",
|
|
49
|
+
"types": "./dist/node/document-model.d.ts"
|
|
60
50
|
}
|
|
61
51
|
},
|
|
62
52
|
"devDependencies": {
|
|
63
53
|
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
64
54
|
"@types/jest": "^29.5.4",
|
|
65
55
|
"@types/mime": "^3.0.1",
|
|
56
|
+
"@types/react": "^18.2.21",
|
|
66
57
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
67
58
|
"@typescript-eslint/parser": "^6.4.1",
|
|
68
59
|
"eslint": "^8.48.0",
|
|
@@ -70,6 +61,7 @@
|
|
|
70
61
|
"jest": "^29.6.4",
|
|
71
62
|
"prettier": "^3.0.2",
|
|
72
63
|
"prettier-plugin-organize-imports": "^3.2.3",
|
|
64
|
+
"react": "^18.2.0",
|
|
73
65
|
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
74
66
|
"ts-jest": "^29.1.1",
|
|
75
67
|
"ts-node": "^10.9.1",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Document from './document';
|
|
2
|
-
import * as DocumentModel from './document-model';
|
|
3
|
-
/**
|
|
4
|
-
* This module exports all the public types, functions, and objects
|
|
5
|
-
* from the document module. It provides an easy-to-use interface
|
|
6
|
-
* for managing documents, and can be used in any Redux-based
|
|
7
|
-
* application. This module exports:
|
|
8
|
-
* - All action creators for the base document actions.
|
|
9
|
-
* - The Document object, which is used to for creating and
|
|
10
|
-
* manipulating documents in an object-oriented way.
|
|
11
|
-
* - The baseReducer function, which is a reducer for managing
|
|
12
|
-
* documents
|
|
13
|
-
* - Various utility functions to be used by Document Models.
|
|
14
|
-
*/
|
|
15
|
-
export { Document };
|
|
16
|
-
export { DocumentModel };
|
|
17
|
-
export declare const DocumentModels: {
|
|
18
|
-
'powerhouse/document': typeof Document;
|
|
19
|
-
'powerhouse/document-model': typeof DocumentModel;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: {
|
|
22
|
-
Document: typeof Document;
|
|
23
|
-
DocumentModel: typeof DocumentModel;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
package/dist/node/src/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Document from './document';
|
|
2
|
-
import * as DocumentModel from './document-model';
|
|
3
|
-
/**
|
|
4
|
-
* This module exports all the public types, functions, and objects
|
|
5
|
-
* from the document module. It provides an easy-to-use interface
|
|
6
|
-
* for managing documents, and can be used in any Redux-based
|
|
7
|
-
* application. This module exports:
|
|
8
|
-
* - All action creators for the base document actions.
|
|
9
|
-
* - The Document object, which is used to for creating and
|
|
10
|
-
* manipulating documents in an object-oriented way.
|
|
11
|
-
* - The baseReducer function, which is a reducer for managing
|
|
12
|
-
* documents
|
|
13
|
-
* - Various utility functions to be used by Document Models.
|
|
14
|
-
*/
|
|
15
|
-
export { Document };
|
|
16
|
-
export { DocumentModel };
|
|
17
|
-
export declare const DocumentModels: {
|
|
18
|
-
'powerhouse/document': typeof Document;
|
|
19
|
-
'powerhouse/document-model': typeof DocumentModel;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: {
|
|
22
|
-
Document: typeof Document;
|
|
23
|
-
DocumentModel: typeof DocumentModel;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/custom/reducers/operation-error.d.ts
RENAMED
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/custom/reducers/operation-example.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-error/actions.d.ts
RENAMED
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-error/creators.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-error/operations.d.ts
RENAMED
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-example/actions.d.ts
RENAMED
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-example/creators.d.ts
RENAMED
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-example/object.d.ts
RENAMED
|
File without changes
|
/package/dist/browser/{src/document-model → document-model}/gen/operation-example/operations.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/node/{src/document-model → document-model}/custom/reducers/operation-error.d.ts
RENAMED
|
File without changes
|
/package/dist/node/{src/document-model → document-model}/custom/reducers/operation-example.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/node/{src/document-model → document-model}/gen/operation-error/operations.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/node/{src/document-model → document-model}/gen/operation-example/creators.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/node/{src/document-model → document-model}/gen/operation-example/operations.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|