document-model 1.0.3 → 1.0.4
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/document-model.cjs +1 -1
- package/dist/browser/document-model.js +2 -2
- package/dist/browser/document.cjs +1 -1
- package/dist/browser/document.js +2 -2
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +3 -3
- package/dist/browser/{index-71854bcc.mjs → internal/index-19c8f57b.js} +1 -1
- package/dist/browser/{index-0874c584.mjs → internal/index-1ee8db0c.js} +1 -1
- package/dist/node/document-model.cjs +1 -1
- package/dist/node/document-model.js +2 -2
- package/dist/node/document.cjs +1 -1
- package/dist/node/document.js +2 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.js +3 -3
- package/dist/node/{index-ca902418.mjs → internal/index-551f2c89.js} +1 -1
- package/dist/node/{index-718fe9bd.mjs → internal/index-6317539b.js} +1 -1
- package/package.json +21 -20
- package/dist/browser/index.doc.d.ts +0 -20
- package/dist/node/index.doc.d.ts +0 -20
- /package/dist/browser/{index-ba0b84c2.js → internal/index-ba0b84c2.js} +0 -0
- /package/dist/browser/{index-ebc86e7b.js → internal/index-ebc86e7b.js} +0 -0
- /package/dist/browser/{object-05addf9f.mjs → internal/object-05addf9f.js} +0 -0
- /package/dist/browser/{object-5f0a8dc6.js → internal/object-5f0a8dc6.js} +0 -0
- /package/dist/node/{index-027f73ec.js → internal/index-027f73ec.js} +0 -0
- /package/dist/node/{index-bb0a856f.js → internal/index-bb0a856f.js} +0 -0
- /package/dist/node/{object-2bb87214.js → internal/object-2bb87214.js} +0 -0
- /package/dist/node/{object-8edc0f76.mjs → internal/object-8edc0f76.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./object-5f0a8dc6.js");require("json-stringify-deterministic");require("immer");require("sha.js/sha1");require("jszip");const e=require("./index-ba0b84c2.js");require("zod");exports.Document=e.Document;exports.DocumentModel=e.DocumentModel$1;exports.actions=e.actions;exports.documentModel=e.documentModel;exports.module=e.module;exports.reducer=e.reducer;exports.utils=e.utils;exports.z=e.zod;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./internal/object-5f0a8dc6.js");require("json-stringify-deterministic");require("immer");require("sha.js/sha1");require("jszip");const e=require("./internal/index-ba0b84c2.js");require("zod");exports.Document=e.Document;exports.DocumentModel=e.DocumentModel$1;exports.actions=e.actions;exports.documentModel=e.documentModel;exports.module=e.module;exports.reducer=e.reducer;exports.utils=e.utils;exports.z=e.zod;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./object-05addf9f.
|
|
1
|
+
import "./internal/object-05addf9f.js";
|
|
2
2
|
import "json-stringify-deterministic";
|
|
3
3
|
import "immer";
|
|
4
4
|
import "sha.js/sha1";
|
|
5
5
|
import "jszip";
|
|
6
|
-
import { b as p, a as u, c, d, m as l, r as n, u as D, z as M } from "./index-
|
|
6
|
+
import { b as p, a as u, c, d, m as l, r as n, u as D, z as M } from "./internal/index-1ee8db0c.js";
|
|
7
7
|
import "zod";
|
|
8
8
|
export {
|
|
9
9
|
p as Document,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./object-5f0a8dc6.js"),r=require("./index-ebc86e7b.js");require("json-stringify-deterministic");require("immer");require("zod");require("sha.js/sha1");require("jszip");exports.BaseDocument=e.BaseDocument;exports.actions=e.BaseActions;exports.applyMixins=e.applyMixins;exports.baseReducer=e.baseReducer;exports.z=e.zod;exports.utils=r.index;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./internal/object-5f0a8dc6.js"),r=require("./internal/index-ebc86e7b.js");require("json-stringify-deterministic");require("immer");require("zod");require("sha.js/sha1");require("jszip");exports.BaseDocument=e.BaseDocument;exports.actions=e.BaseActions;exports.applyMixins=e.applyMixins;exports.baseReducer=e.baseReducer;exports.z=e.zod;exports.utils=r.index;
|
package/dist/browser/document.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as m, h as e, g as c, p as n, z as u } from "./object-05addf9f.
|
|
2
|
-
import { i as f } from "./index-
|
|
1
|
+
import { B as m, h as e, g as c, p as n, z as u } from "./internal/object-05addf9f.js";
|
|
2
|
+
import { i as f } from "./internal/index-19c8f57b.js";
|
|
3
3
|
import "json-stringify-deterministic";
|
|
4
4
|
import "immer";
|
|
5
5
|
import "zod";
|
package/dist/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-ebc86e7b.js"),o=require("./index-ba0b84c2.js");require("./object-5f0a8dc6.js");require("json-stringify-deterministic");require("immer");require("zod");require("sha.js/sha1");require("jszip");const u={"powerhouse/document":e.Document,"powerhouse/document-model":o.DocumentModel},t={Document:e.Document,DocumentModel:o.DocumentModel};exports.Document=e.Document;exports.DocumentModel=o.DocumentModel;exports.DocumentModels=u;exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./internal/index-ebc86e7b.js"),o=require("./internal/index-ba0b84c2.js");require("./internal/object-5f0a8dc6.js");require("json-stringify-deterministic");require("immer");require("zod");require("sha.js/sha1");require("jszip");const u={"powerhouse/document":e.Document,"powerhouse/document-model":o.DocumentModel},t={Document:e.Document,DocumentModel:o.DocumentModel};exports.Document=e.Document;exports.DocumentModel=o.DocumentModel;exports.DocumentModels=u;exports.default=t;
|
package/dist/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as o } from "./index-
|
|
2
|
-
import { D as t } from "./index-
|
|
3
|
-
import "./object-05addf9f.
|
|
1
|
+
import { D as o } from "./internal/index-19c8f57b.js";
|
|
2
|
+
import { D as t } from "./internal/index-1ee8db0c.js";
|
|
3
|
+
import "./internal/object-05addf9f.js";
|
|
4
4
|
import "json-stringify-deterministic";
|
|
5
5
|
import "immer";
|
|
6
6
|
import "zod";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, b as a, a as s, c as t, j as o, k as c, m as i, n as l, o as n, i as r, l as d, e as u, s as m, d as p, B as b, h as _, g, p as F, z as f } from "./object-05addf9f.
|
|
1
|
+
import { f as e, b as a, a as s, c as t, j as o, k as c, m as i, n as l, o as n, i as r, l as d, e as u, s as m, d as p, B as b, h as _, g, p as F, z as f } from "./object-05addf9f.js";
|
|
2
2
|
const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
createAction: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var pt = Object.defineProperty;
|
|
2
2
|
var lt = (t, e, i) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var pe = (t, e, i) => (lt(t, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
-
import { c as dt, i as ct, a as ut, b as mt, s as Et, d as ht, l as Ot, e as St, f as s, B as l, g as gt, h as ft } from "./object-05addf9f.
|
|
4
|
+
import { c as dt, i as ct, a as ut, b as mt, s as Et, d as ht, l as Ot, e as St, f as s, B as l, g as gt, h as ft } from "./object-05addf9f.js";
|
|
5
5
|
import "json-stringify-deterministic";
|
|
6
6
|
import "immer";
|
|
7
7
|
import "sha.js/sha1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./object-2bb87214.js");require("json-stringify-deterministic");require("immer");require("crypto");require("fs");require("https");require("path");require("jszip");const e=require("./index-027f73ec.js");require("zod");exports.Document=e.Document;exports.DocumentModel=e.DocumentModel$1;exports.actions=e.actions;exports.documentModel=e.documentModel;exports.module=e.module;exports.reducer=e.reducer;exports.utils=e.utils;exports.z=e.zod;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./internal/object-2bb87214.js");require("json-stringify-deterministic");require("immer");require("crypto");require("fs");require("https");require("path");require("jszip");const e=require("./internal/index-027f73ec.js");require("zod");exports.Document=e.Document;exports.DocumentModel=e.DocumentModel$1;exports.actions=e.actions;exports.documentModel=e.documentModel;exports.module=e.module;exports.reducer=e.reducer;exports.utils=e.utils;exports.z=e.zod;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./object-8edc0f76.
|
|
1
|
+
import "./internal/object-8edc0f76.js";
|
|
2
2
|
import "json-stringify-deterministic";
|
|
3
3
|
import "immer";
|
|
4
4
|
import "crypto";
|
|
@@ -6,7 +6,7 @@ import "fs";
|
|
|
6
6
|
import "https";
|
|
7
7
|
import "path";
|
|
8
8
|
import "jszip";
|
|
9
|
-
import { b as d, a as l, c as n, d as D, m as M, r as b, u as f, z as x } from "./index-
|
|
9
|
+
import { b as d, a as l, c as n, d as D, m as M, r as b, u as f, z as x } from "./internal/index-551f2c89.js";
|
|
10
10
|
import "zod";
|
|
11
11
|
export {
|
|
12
12
|
d as Document,
|
package/dist/node/document.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./object-2bb87214.js"),r=require("./index-bb0a856f.js");require("json-stringify-deterministic");require("immer");require("zod");require("crypto");require("fs");require("https");require("path");require("jszip");exports.BaseDocument=e.BaseDocument;exports.actions=e.BaseActions;exports.applyMixins=e.applyMixins;exports.baseReducer=e.baseReducer;exports.z=e.zod;exports.utils=r.index;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./internal/object-2bb87214.js"),r=require("./internal/index-bb0a856f.js");require("json-stringify-deterministic");require("immer");require("zod");require("crypto");require("fs");require("https");require("path");require("jszip");exports.BaseDocument=e.BaseDocument;exports.actions=e.BaseActions;exports.applyMixins=e.applyMixins;exports.baseReducer=e.baseReducer;exports.z=e.zod;exports.utils=r.index;
|
package/dist/node/document.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as n, h as u, g as x, p as f, z as l } from "./object-8edc0f76.
|
|
2
|
-
import { i as b } from "./index-
|
|
1
|
+
import { B as n, h as u, g as x, p as f, z as l } from "./internal/object-8edc0f76.js";
|
|
2
|
+
import { i as b } from "./internal/index-6317539b.js";
|
|
3
3
|
import "json-stringify-deterministic";
|
|
4
4
|
import "immer";
|
|
5
5
|
import "zod";
|
package/dist/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-bb0a856f.js"),o=require("./index-027f73ec.js");require("./object-2bb87214.js");require("json-stringify-deterministic");require("immer");require("zod");require("crypto");require("fs");require("https");require("path");require("jszip");const u={"powerhouse/document":e.Document,"powerhouse/document-model":o.DocumentModel},r={Document:e.Document,DocumentModel:o.DocumentModel};exports.Document=e.Document;exports.DocumentModel=o.DocumentModel;exports.DocumentModels=u;exports.default=r;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./internal/index-bb0a856f.js"),o=require("./internal/index-027f73ec.js");require("./internal/object-2bb87214.js");require("json-stringify-deterministic");require("immer");require("zod");require("crypto");require("fs");require("https");require("path");require("jszip");const u={"powerhouse/document":e.Document,"powerhouse/document-model":o.DocumentModel},r={Document:e.Document,DocumentModel:o.DocumentModel};exports.Document=e.Document;exports.DocumentModel=o.DocumentModel;exports.DocumentModels=u;exports.default=r;
|
package/dist/node/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as o } from "./index-
|
|
2
|
-
import { D as t } from "./index-
|
|
3
|
-
import "./object-8edc0f76.
|
|
1
|
+
import { D as o } from "./internal/index-6317539b.js";
|
|
2
|
+
import { D as t } from "./internal/index-551f2c89.js";
|
|
3
|
+
import "./internal/object-8edc0f76.js";
|
|
4
4
|
import "json-stringify-deterministic";
|
|
5
5
|
import "immer";
|
|
6
6
|
import "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var pt = Object.defineProperty;
|
|
2
2
|
var lt = (t, e, i) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
3
|
var pe = (t, e, i) => (lt(t, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
-
import { c as dt, i as ct, a as ut, b as mt, s as Et, d as ht, l as Ot, e as St, f as s, B as l, g as gt, h as ft } from "./object-8edc0f76.
|
|
4
|
+
import { c as dt, i as ct, a as ut, b as mt, s as Et, d as ht, l as Ot, e as St, f as s, B as l, g as gt, h as ft } from "./object-8edc0f76.js";
|
|
5
5
|
import "json-stringify-deterministic";
|
|
6
6
|
import "immer";
|
|
7
7
|
import "crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, b as a, a as s, c as t, j as o, k as c, m as i, n as l, o as n, i as r, l as d, e as u, s as m, d as p, B as b, h as _, g, p as F, z as f } from "./object-8edc0f76.
|
|
1
|
+
import { f as e, b as a, a as s, c as t, j as o, k as c, m as i, n as l, o as n, i as r, l as d, e as u, s as m, d as p, B as b, h as _, g, p as F, z as f } from "./object-8edc0f76.js";
|
|
2
2
|
const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
createAction: e,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-model",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"private": false,
|
|
6
6
|
"files": [
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"types": "dist/node/index.d.ts",
|
|
10
10
|
"main": "dist/node/index.cjs",
|
|
11
11
|
"module": "dist/node/index.js",
|
|
12
|
+
"browser": "dist/browser/index.js",
|
|
12
13
|
"scripts": {
|
|
13
14
|
"lint": "eslint --ext .js,.ts . && tsc --noemit --project tsconfig.spec.json",
|
|
14
15
|
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
|
|
@@ -19,34 +20,34 @@
|
|
|
19
20
|
},
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
"node": {
|
|
24
|
+
"import": "./dist/node/index.js",
|
|
25
|
+
"require": "./dist/node/index.cjs",
|
|
26
|
+
"types": "./dist/node/index.d.ts"
|
|
27
|
+
},
|
|
27
28
|
"import": "./dist/browser/index.js",
|
|
28
29
|
"require": "./dist/browser/index.cjs",
|
|
29
30
|
"types": "./dist/browser/index.d.ts"
|
|
30
31
|
},
|
|
31
32
|
"./document": {
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
"node": {
|
|
34
|
+
"import": "./dist/node/document.js",
|
|
35
|
+
"require": "./dist/node/document.cjs",
|
|
36
|
+
"types": "./dist/node/document.d.ts"
|
|
37
|
+
},
|
|
37
38
|
"import": "./dist/browser/document.js",
|
|
38
39
|
"require": "./dist/browser/document.cjs",
|
|
39
40
|
"types": "./dist/browser/document.d.ts"
|
|
40
41
|
},
|
|
41
42
|
"./document-model": {
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"import": "./dist/
|
|
48
|
-
"require": "./dist/
|
|
49
|
-
"types": "./dist/
|
|
43
|
+
"node": {
|
|
44
|
+
"import": "./dist/node/document-model.js",
|
|
45
|
+
"require": "./dist/node/document-model.cjs",
|
|
46
|
+
"types": "./dist/node/document-model.d.ts"
|
|
47
|
+
},
|
|
48
|
+
"import": "./dist/browser/document-model.js",
|
|
49
|
+
"require": "./dist/browser/document-model.cjs",
|
|
50
|
+
"types": "./dist/browser/document-model.d.ts"
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"ts-node": "^10.9.1",
|
|
68
69
|
"typescript": "^5.2.2",
|
|
69
70
|
"vite": "^4.4.9",
|
|
70
|
-
"vite-plugin-dts": "^3.5.
|
|
71
|
+
"vite-plugin-dts": "^3.5.3",
|
|
71
72
|
"vite-plugin-node-polyfills": "^0.11.3"
|
|
72
73
|
},
|
|
73
74
|
"dependencies": {
|
|
@@ -1,20 +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, DocumentModel };
|
|
16
|
-
declare const _default: {
|
|
17
|
-
Document: typeof Document;
|
|
18
|
-
DocumentModel: typeof DocumentModel;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
package/dist/node/index.doc.d.ts
DELETED
|
@@ -1,20 +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, DocumentModel };
|
|
16
|
-
declare const _default: {
|
|
17
|
-
Document: typeof Document;
|
|
18
|
-
DocumentModel: typeof DocumentModel;
|
|
19
|
-
};
|
|
20
|
-
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
|