docxodus 12.0.1 → 12.2.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 +9 -4
- package/dist/editor.bundle.js +197 -25
- package/dist/editor.d.ts +42 -3
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +204 -16
- package/dist/editor.js.map +1 -1
- package/dist/embed.bundle.js +635 -50
- package/dist/embed.d.ts +30 -1
- package/dist/embed.d.ts.map +1 -1
- package/dist/embed.iife.js +635 -50
- package/dist/embed.js +124 -13
- package/dist/embed.js.map +1 -1
- package/dist/export-assets.json +33 -33
- package/dist/history.d.ts +265 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +307 -0
- package/dist/history.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/ribbon-chrome.d.ts +2 -2
- package/dist/ribbon-chrome.d.ts.map +1 -1
- package/dist/ribbon-chrome.js +6 -4
- package/dist/ribbon-chrome.js.map +1 -1
- package/dist/ribbon.js +39 -8
- package/dist/ribbon.js.map +1 -1
- package/dist/session.js +1 -1
- package/dist/session.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/wasm/_framework/DocumentFormat.OpenXml.Framework.wasm +0 -0
- package/dist/wasm/_framework/DocumentFormat.OpenXml.Framework.wasm.br +0 -0
- package/dist/wasm/_framework/DocumentFormat.OpenXml.wasm +0 -0
- package/dist/wasm/_framework/DocumentFormat.OpenXml.wasm.br +0 -0
- package/dist/wasm/_framework/Docxodus.wasm +0 -0
- package/dist/wasm/_framework/Docxodus.wasm.br +0 -0
- package/dist/wasm/_framework/DocxodusWasm.wasm +0 -0
- package/dist/wasm/_framework/DocxodusWasm.wasm.br +0 -0
- package/dist/wasm/_framework/System.Collections.Concurrent.wasm +0 -0
- package/dist/wasm/_framework/System.Collections.Concurrent.wasm.br +0 -0
- package/dist/wasm/_framework/System.Collections.wasm +0 -0
- package/dist/wasm/_framework/System.Collections.wasm.br +0 -0
- package/dist/wasm/_framework/System.IO.Compression.wasm +0 -0
- package/dist/wasm/_framework/System.IO.Compression.wasm.br +0 -0
- package/dist/wasm/_framework/System.IO.Packaging.wasm +0 -0
- package/dist/wasm/_framework/System.IO.Packaging.wasm.br +0 -0
- package/dist/wasm/_framework/System.Linq.Expressions.wasm +0 -0
- package/dist/wasm/_framework/System.Linq.Expressions.wasm.br +0 -0
- package/dist/wasm/_framework/System.Memory.wasm +0 -0
- package/dist/wasm/_framework/System.Memory.wasm.br +0 -0
- package/dist/wasm/_framework/System.Net.Http.wasm +0 -0
- package/dist/wasm/_framework/System.Net.Http.wasm.br +0 -0
- package/dist/wasm/_framework/System.Private.CoreLib.wasm +0 -0
- package/dist/wasm/_framework/System.Private.CoreLib.wasm.br +0 -0
- package/dist/wasm/_framework/System.Private.Xml.Linq.wasm +0 -0
- package/dist/wasm/_framework/System.Private.Xml.Linq.wasm.br +0 -0
- package/dist/wasm/_framework/System.Private.Xml.wasm +0 -0
- package/dist/wasm/_framework/System.Private.Xml.wasm.br +0 -0
- package/dist/wasm/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/dist/wasm/_framework/System.Runtime.InteropServices.JavaScript.wasm.br +0 -0
- package/dist/wasm/_framework/System.Runtime.wasm +0 -0
- package/dist/wasm/_framework/System.Runtime.wasm.br +0 -0
- package/dist/wasm/_framework/System.Security.Cryptography.wasm +0 -0
- package/dist/wasm/_framework/System.Security.Cryptography.wasm.br +0 -0
- package/dist/wasm/_framework/System.Text.Json.wasm +0 -0
- package/dist/wasm/_framework/System.Text.Json.wasm.br +0 -0
- package/dist/wasm/_framework/System.Text.RegularExpressions.wasm +0 -0
- package/dist/wasm/_framework/System.Text.RegularExpressions.wasm.br +0 -0
- package/dist/wasm/_framework/dotnet.boot.js +21 -21
- package/dist/wasm/_framework/dotnet.boot.js.br +0 -0
- package/dist/wasm/_framework/dotnet.native.wasm +0 -0
- package/dist/wasm/_framework/dotnet.native.wasm.br +0 -0
- package/package.json +4 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const config = /*json-start*/{
|
|
2
2
|
"mainAssemblyName": "DocxodusWasm.dll",
|
|
3
3
|
"resources": {
|
|
4
|
-
"hash": "sha256-
|
|
4
|
+
"hash": "sha256-kPTqoQsMJ7IBp95x8iRsoKOuMw/56HIyXP4Efk99Vmw=",
|
|
5
5
|
"jsModuleNative": [
|
|
6
6
|
{
|
|
7
7
|
"name": "dotnet.native.js"
|
|
@@ -15,39 +15,39 @@ export const config = /*json-start*/{
|
|
|
15
15
|
"wasmNative": [
|
|
16
16
|
{
|
|
17
17
|
"name": "dotnet.native.wasm",
|
|
18
|
-
"hash": "sha256-
|
|
18
|
+
"hash": "sha256-LtolAfd2mb13qFuHs6V/vsxFqQMQlF3rqaQi/reRR3c="
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"coreAssembly": [
|
|
22
22
|
{
|
|
23
23
|
"virtualPath": "DocumentFormat.OpenXml.wasm",
|
|
24
24
|
"name": "DocumentFormat.OpenXml.wasm",
|
|
25
|
-
"hash": "sha256-
|
|
25
|
+
"hash": "sha256-SGaIQ+kdbASDLeoX/n2wMBYwJWClOqXRGlhvUv6kZB4="
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"virtualPath": "DocumentFormat.OpenXml.Framework.wasm",
|
|
29
29
|
"name": "DocumentFormat.OpenXml.Framework.wasm",
|
|
30
|
-
"hash": "sha256-
|
|
30
|
+
"hash": "sha256-pb7U8eR2Rjhw+G8cSRVXveeeQaotBUdhjhrheUXMXhc="
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"virtualPath": "Docxodus.wasm",
|
|
34
34
|
"name": "Docxodus.wasm",
|
|
35
|
-
"hash": "sha256-
|
|
35
|
+
"hash": "sha256-DvaYD2iIzAGCiGH5wXuCpyh1WquiNrx4t6bMWdCUXT4="
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"virtualPath": "DocxodusWasm.wasm",
|
|
39
39
|
"name": "DocxodusWasm.wasm",
|
|
40
|
-
"hash": "sha256
|
|
40
|
+
"hash": "sha256-/pDGEfKLAj27+AjqTSwrpfAT/ap+qM95pTSzVgMPLxU="
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"virtualPath": "System.Collections.Concurrent.wasm",
|
|
44
44
|
"name": "System.Collections.Concurrent.wasm",
|
|
45
|
-
"hash": "sha256-
|
|
45
|
+
"hash": "sha256-xmmB7zSX/DafsUQVf7BI/LKNVLT2IZ3AE4fV9vHuTps="
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"virtualPath": "System.Collections.wasm",
|
|
49
49
|
"name": "System.Collections.wasm",
|
|
50
|
-
"hash": "sha256-
|
|
50
|
+
"hash": "sha256-2Kumm+m4xrxOLaZzoQKH7UefTNM6BCOqCCkikXKfi50="
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"virtualPath": "System.Collections.Immutable.wasm",
|
|
@@ -92,12 +92,12 @@ export const config = /*json-start*/{
|
|
|
92
92
|
{
|
|
93
93
|
"virtualPath": "System.IO.Compression.wasm",
|
|
94
94
|
"name": "System.IO.Compression.wasm",
|
|
95
|
-
"hash": "sha256-
|
|
95
|
+
"hash": "sha256-QMjze3H38EKSRb3cCQZg3059qeX0vp67eQVzFh2Ocls="
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"virtualPath": "System.IO.Packaging.wasm",
|
|
99
99
|
"name": "System.IO.Packaging.wasm",
|
|
100
|
-
"hash": "sha256-
|
|
100
|
+
"hash": "sha256-M2/2ihQbKVki/U5k0kh0s6x7p1GZZWN952Tt9OFLIsU="
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"virtualPath": "System.IO.Pipelines.wasm",
|
|
@@ -112,17 +112,17 @@ export const config = /*json-start*/{
|
|
|
112
112
|
{
|
|
113
113
|
"virtualPath": "System.Linq.Expressions.wasm",
|
|
114
114
|
"name": "System.Linq.Expressions.wasm",
|
|
115
|
-
"hash": "sha256-
|
|
115
|
+
"hash": "sha256-PplbAdt1GI3fvhzX1qnHml5RV6zK4sAUw/jnOKbA1dI="
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"virtualPath": "System.Memory.wasm",
|
|
119
119
|
"name": "System.Memory.wasm",
|
|
120
|
-
"hash": "sha256-
|
|
120
|
+
"hash": "sha256-kyWA6AOtwdeCuYZkq0/JMitEcA0M06zRX1azZamsDTo="
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"virtualPath": "System.Net.Http.wasm",
|
|
124
124
|
"name": "System.Net.Http.wasm",
|
|
125
|
-
"hash": "sha256-
|
|
125
|
+
"hash": "sha256-EaghSiMsywSLFnfrfK5XPbhVkLVmKmDObUqH8VGqiGc="
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"virtualPath": "System.Net.Primitives.wasm",
|
|
@@ -137,7 +137,7 @@ export const config = /*json-start*/{
|
|
|
137
137
|
{
|
|
138
138
|
"virtualPath": "System.Private.CoreLib.wasm",
|
|
139
139
|
"name": "System.Private.CoreLib.wasm",
|
|
140
|
-
"hash": "sha256-
|
|
140
|
+
"hash": "sha256-NNyq8IXn1fEjs6nmzalWX1Q6UMv8xz1UwQnxP9/IJSM="
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"virtualPath": "System.Private.Uri.wasm",
|
|
@@ -147,27 +147,27 @@ export const config = /*json-start*/{
|
|
|
147
147
|
{
|
|
148
148
|
"virtualPath": "System.Private.Xml.wasm",
|
|
149
149
|
"name": "System.Private.Xml.wasm",
|
|
150
|
-
"hash": "sha256-
|
|
150
|
+
"hash": "sha256-Nzsh1jRnzRFiQe3uVjHks3agPLBKQK8wyEP86DZyO4M="
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"virtualPath": "System.Private.Xml.Linq.wasm",
|
|
154
154
|
"name": "System.Private.Xml.Linq.wasm",
|
|
155
|
-
"hash": "sha256-
|
|
155
|
+
"hash": "sha256-5VLgTUM+hPPqs+vcA963I+kV8IckAb7tkgy/d2SEUIQ="
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"virtualPath": "System.Runtime.wasm",
|
|
159
159
|
"name": "System.Runtime.wasm",
|
|
160
|
-
"hash": "sha256-
|
|
160
|
+
"hash": "sha256-mNy5PIHrxQBs9Twdqu5bZFQx+4KqojLr6KvqgBt6sJA="
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"virtualPath": "System.Runtime.InteropServices.JavaScript.wasm",
|
|
164
164
|
"name": "System.Runtime.InteropServices.JavaScript.wasm",
|
|
165
|
-
"hash": "sha256-
|
|
165
|
+
"hash": "sha256-C5Dq5x65ilBjr8GqQ+N1xgJwYGp5hn+xQq4Gnti1FEw="
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"virtualPath": "System.Security.Cryptography.wasm",
|
|
169
169
|
"name": "System.Security.Cryptography.wasm",
|
|
170
|
-
"hash": "sha256-
|
|
170
|
+
"hash": "sha256-sT/aBzlPZYv7xiuvlgxm7QAnPEvGuI9JjySJdIdcMi0="
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"virtualPath": "System.Text.Encodings.Web.wasm",
|
|
@@ -177,12 +177,12 @@ export const config = /*json-start*/{
|
|
|
177
177
|
{
|
|
178
178
|
"virtualPath": "System.Text.Json.wasm",
|
|
179
179
|
"name": "System.Text.Json.wasm",
|
|
180
|
-
"hash": "sha256-
|
|
180
|
+
"hash": "sha256-KsIyhi4zFUuA1Nxzj1taaW7pb11DXefLqATswWczUOs="
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"virtualPath": "System.Text.RegularExpressions.wasm",
|
|
184
184
|
"name": "System.Text.RegularExpressions.wasm",
|
|
185
|
-
"hash": "sha256-
|
|
185
|
+
"hash": "sha256-KCqdaZQdzjO6IYeiR4m3URc/DW+wGBNyorpBP/jYJkw="
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"virtualPath": "System.Xml.Linq.wasm",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docxodus",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "Render, edit, diff and project Word .docx files in the browser — DOCX to HTML, a block editor, Word-grade redlines with tracked changes, and anchor-addressed markdown for LLM agents. WebAssembly, no server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -66,14 +66,15 @@
|
|
|
66
66
|
"build:export-browser": "esbuild src/export-browser.ts --bundle --format=esm --metafile=dist/export-browser.meta.json --outfile=dist/export-browser.bundle.js",
|
|
67
67
|
"build:export-assets": "node scripts/generate-export-assets.mjs",
|
|
68
68
|
"build": "npm run build:wasm && npm run build:ts && npm run build:pagination-bundle && npm run build:session-bundle && npm run build:editor-bundle && npm run build:embed-bundle && npm run build:worker-bundle && npm run build:export-browser && npm run build:export-assets",
|
|
69
|
-
"pretest": "npm run test:demo-logic && npm run typecheck && cp tests/test-harness.html dist/wasm/ && cp tests/worker-test-harness.html dist/wasm/ && cp tests/profiling-harness.html dist/wasm/ && cp tests/standalone-export-harness.html dist/wasm/ && cp examples/editor.html dist/wasm/ && cp examples/embed.html dist/wasm/ && cp examples/ascii-animation.html dist/wasm/ && cp examples/ascii-animation-editor.html dist/wasm/ && cp ../docs/demo/ascii-scenes.js dist/wasm/ && mkdir -p dist/wasm/fonts && cp ../docs/demo/fonts/docxodus-canvas-mono.woff2 dist/wasm/fonts/ && cp ../docs/demo/player.html dist/wasm/player.html && cp ../docs/demo/index.html dist/wasm/demo-index.html && cp ../docs/demo/app.html dist/wasm/demo-app.html && cp ../docs/demo/observatory.html dist/wasm/demo-observatory.html && cp ../docs/demo/arcade.html dist/wasm/demo-arcade.html && cp ../docs/demo/golf.html dist/wasm/demo-golf.html && cp ../docs/demo/docx-golf.js dist/wasm/ && cp ../docs/demo/ascii-arcade.js dist/wasm/ && cp ../docs/demo/arcade-dock.js dist/wasm/ && cp ../docs/demo/doom-cart.js dist/wasm/ && cp ../docs/demo/freedoom-e1m1.js dist/wasm/ && node scripts/fetch-doom-iwad.mjs && cp ../docs/demo/docxodus-demo-guide.docx dist/wasm/docxodus-demo-guide.docx && cp dist/pagination.bundle.js dist/wasm/ && cp dist/session.bundle.js dist/wasm/ && cp dist/editor.bundle.js dist/wasm/ && cp dist/embed.bundle.js dist/wasm/ && cp dist/docxodus.worker.js dist/wasm/ && cp dist/worker-proxy.bundle.js dist/wasm/worker-proxy.js && cp dist/export-browser.bundle.js dist/wasm/export-browser.js && cp dist/export-assets.json dist/wasm/export-assets.json && npm run test:package-boundary",
|
|
70
|
-
"test:demo-logic": "node ../docs/demo/tools/ascii-arcade.test.mjs && node ../docs/demo/tools/docx-golf.test.mjs && node ../docs/demo/tools/wad2cart.test.mjs && node ../docs/demo/tools/canvas-font.test.mjs && node ../docs/demo/tools/engine-pin.test.mjs",
|
|
69
|
+
"pretest": "npm run test:demo-logic && npm run typecheck && cp tests/test-harness.html dist/wasm/ && cp tests/worker-test-harness.html dist/wasm/ && cp tests/profiling-harness.html dist/wasm/ && cp tests/standalone-export-harness.html dist/wasm/ && cp examples/editor.html dist/wasm/ && cp examples/embed.html dist/wasm/ && cp examples/ascii-animation.html dist/wasm/ && cp examples/ascii-animation-editor.html dist/wasm/ && cp ../docs/demo/ascii-scenes.js dist/wasm/ && mkdir -p dist/wasm/fonts && cp ../docs/demo/fonts/docxodus-canvas-mono.woff2 dist/wasm/fonts/ && cp ../docs/demo/player.html dist/wasm/player.html && cp ../docs/demo/index.html dist/wasm/demo-index.html && cp ../docs/demo/app.html dist/wasm/demo-app.html && cp ../docs/demo/observatory.html dist/wasm/demo-observatory.html && cp ../docs/demo/arcade.html dist/wasm/demo-arcade.html && cp ../docs/demo/golf.html dist/wasm/demo-golf.html && cp ../docs/demo/docx-golf.js dist/wasm/ && cp ../docs/demo/ascii-arcade.js dist/wasm/ && cp ../docs/demo/arcade-dock.js dist/wasm/ && cp ../docs/demo/doom-cart.js dist/wasm/ && cp ../docs/demo/doom-ascii.js dist/wasm/ && cp ../docs/demo/freedoom-e1m1.js dist/wasm/ && node scripts/fetch-doom-iwad.mjs && cp ../docs/demo/docxodus-demo-guide.docx dist/wasm/docxodus-demo-guide.docx && cp dist/pagination.bundle.js dist/wasm/ && cp dist/session.bundle.js dist/wasm/ && cp dist/editor.bundle.js dist/wasm/ && cp dist/embed.bundle.js dist/wasm/ && cp dist/docxodus.worker.js dist/wasm/ && cp dist/worker-proxy.bundle.js dist/wasm/worker-proxy.js && cp dist/export-browser.bundle.js dist/wasm/export-browser.js && cp dist/export-assets.json dist/wasm/export-assets.json && npm run test:package-boundary",
|
|
70
|
+
"test:demo-logic": "node ../docs/demo/tools/ascii-arcade.test.mjs && node ../docs/demo/tools/doom-ascii.test.mjs && node ../docs/demo/tools/docx-golf.test.mjs && node ../docs/demo/tools/wad2cart.test.mjs && node ../docs/demo/tools/canvas-font.test.mjs && node ../docs/demo/tools/engine-pin.test.mjs",
|
|
71
71
|
"test:package-boundary": "node scripts/check-package-boundary.mjs",
|
|
72
72
|
"test": "playwright test",
|
|
73
73
|
"test:arcade:libreoffice": "npm run pretest && DOCXODUS_LO_PARITY=1 playwright test demo-arcade-libreoffice.spec.ts --project=chromium",
|
|
74
74
|
"test:visual-parity": "npm run pretest && DOCXODUS_VISUAL_PARITY=1 playwright test visual-parity.spec.ts visual-parity-reductions.spec.ts --project=chromium --reporter=line",
|
|
75
75
|
"test:generated-pdf-parity": "npm run build && npm --prefix ../npm-export run build && npm run test:generated-pdf-parity:prebuilt",
|
|
76
76
|
"test:generated-pdf-parity:prebuilt": "npm run pretest && DOCXODUS_VISUAL_PARITY=1 DOCXODUS_GENERATED_PDF_PARITY=1 playwright test generated-pdf-parity.spec.ts --project=chromium --reporter=line",
|
|
77
|
+
"capture:doom-ascii": "node scripts/capture-doom-ascii.mjs",
|
|
77
78
|
"capture:word-reference": "mkdir -p dist/wasm && playwright test word-reference-capture.spec.ts --project=chromium --reporter=line",
|
|
78
79
|
"test:ui": "playwright test --ui",
|
|
79
80
|
"demo": "npm run build && npm run demo:serve",
|