@docx-editor.dev/editor-api 2.21.1 → 2.23.0
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/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
# @docx-editor.dev/editor-api
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Edit DOCX files through a supported subset of Word's JavaScript object model. The API includes paragraphs, ranges, comments, and revisions. Use `load()` to queue reads and `sync()` to apply each batch atomically.
|
|
18
18
|
|
|
19
19
|
Run the API on a server over DOCX bytes or in the browser against an open editor. See [Office.js compatibility](https://www.docx-editor.dev/docs/2.x/editor-api/office-js-api) for supported members and differences from Word.
|
|
20
20
|
|
|
@@ -71,7 +71,7 @@ try {
|
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
`createServer`
|
|
74
|
+
`createServer` parses the document before resolving and does not retain the input buffer. You can then reuse or transfer that buffer. Each `save()` returns an independent `Uint8Array`. Load the saved bytes into a live editor to display server edits.
|
|
75
75
|
|
|
76
76
|
## Create tracked changes on a server
|
|
77
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docx-editor.dev/editor-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"description": "Document automation for DOCX: a batching object model that drives a document from a server or from an editor already open in a page",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"THIRD_PARTY_NOTICES.md"
|
|
45
45
|
],
|
|
46
46
|
"scripts": {
|
|
47
|
-
"build": "tsup && node ../../scripts/inject-package-doc.mjs --package @docx-editor.dev/editor-api",
|
|
47
|
+
"build": "node ../../scripts/check-built-siblings.mjs && tsup && node ../../scripts/inject-package-doc.mjs --package @docx-editor.dev/editor-api",
|
|
48
48
|
"typecheck": "tsc --noEmit",
|
|
49
49
|
"license:check": "license-check-and-add check -f license-check.json",
|
|
50
50
|
"license:add": "license-check-and-add add -f license-check.json",
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@docx-editor.dev/core": "~2.
|
|
85
|
+
"@docx-editor.dev/core": "~2.23.0"
|
|
86
86
|
}
|
|
87
87
|
}
|