docxodus 12.0.0 → 12.0.1
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 +4 -4
- package/dist/embed.d.ts +1 -1
- package/dist/embed.js +1 -1
- package/dist/export-assets.json +7 -7
- package/dist/index.js +1 -1
- 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/dotnet.boot.js +4 -4
- 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 +1 -1
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ runtime location auto-detected — no build step, no configuration:
|
|
|
92
92
|
```html
|
|
93
93
|
<div id="doc" style="height: 100dvh"></div>
|
|
94
94
|
<script type="module">
|
|
95
|
-
import { createRibbonEditor } from 'https://cdn.jsdelivr.net/npm/docxodus@
|
|
95
|
+
import { createRibbonEditor } from 'https://cdn.jsdelivr.net/npm/docxodus@12.0.0/dist/embed.bundle.js';
|
|
96
96
|
const ribbon = await createRibbonEditor('#doc', './contract.docx'); // or bytes / Blob / File
|
|
97
97
|
// ...later: const editedBytes = ribbon.save();
|
|
98
98
|
</script>
|
|
@@ -580,7 +580,7 @@ so a page can embed a full viewer or editor without hosting anything itself.
|
|
|
580
580
|
<div id="app" style="height: 100dvh"></div>
|
|
581
581
|
<script type="module">
|
|
582
582
|
import { createViewer, createEditor, createRibbonEditor }
|
|
583
|
-
from 'https://cdn.jsdelivr.net/npm/docxodus@
|
|
583
|
+
from 'https://cdn.jsdelivr.net/npm/docxodus@12.0.0/dist/embed.bundle.js';
|
|
584
584
|
|
|
585
585
|
// Choose a factory, or render several into separate containers as shown.
|
|
586
586
|
// Source may be a URL, Uint8Array, ArrayBuffer, Blob, or File.
|
|
@@ -610,7 +610,7 @@ For pages that can't use modules, `dist/embed.iife.js` exposes the same surface
|
|
|
610
610
|
|
|
611
611
|
```html
|
|
612
612
|
<div id="doc"></div>
|
|
613
|
-
<script src="https://cdn.jsdelivr.net/npm/docxodus@
|
|
613
|
+
<script src="https://cdn.jsdelivr.net/npm/docxodus@12.0.0/dist/embed.iife.js"></script>
|
|
614
614
|
<script>
|
|
615
615
|
Docxodus.createRibbonEditor('#doc').then((ribbon) => { /* ... */ });
|
|
616
616
|
</script>
|
|
@@ -626,7 +626,7 @@ first `<bundle dir>/wasm/`, then `<bundle dir>/` as a fallback. On a CDN that re
|
|
|
626
626
|
|
|
627
627
|
### CDN caveats
|
|
628
628
|
|
|
629
|
-
- **Pin an exact version in production** (`docxodus@
|
|
629
|
+
- **Pin an exact version in production** (`docxodus@12.0.0`, not `@latest`) — CDN responses are
|
|
630
630
|
cached as immutable, and the wire shapes between the JS wrappers and the WASM assemblies must
|
|
631
631
|
come from the same release.
|
|
632
632
|
- The build patches the .NET loader to fetch with `credentials: "omit"` — required because the
|
package/dist/embed.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ```html
|
|
8
8
|
* <div id="doc"></div>
|
|
9
9
|
* <script type="module">
|
|
10
|
-
* import { createViewer } from "https://cdn.jsdelivr.net/npm/docxodus@
|
|
10
|
+
* import { createViewer } from "https://cdn.jsdelivr.net/npm/docxodus@12.0.0/dist/embed.bundle.js";
|
|
11
11
|
* await createViewer("#doc", "./contract.docx");
|
|
12
12
|
* </script>
|
|
13
13
|
* ```
|
package/dist/embed.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ```html
|
|
8
8
|
* <div id="doc"></div>
|
|
9
9
|
* <script type="module">
|
|
10
|
-
* import { createViewer } from "https://cdn.jsdelivr.net/npm/docxodus@
|
|
10
|
+
* import { createViewer } from "https://cdn.jsdelivr.net/npm/docxodus@12.0.0/dist/embed.bundle.js";
|
|
11
11
|
* await createViewer("#doc", "./contract.docx");
|
|
12
12
|
* </script>
|
|
13
13
|
* ```
|
package/dist/export-assets.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "https://docxodus.dev/schemas/export/export-assets/v1",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"packageVersion": "12.0.
|
|
4
|
+
"packageVersion": "12.0.1",
|
|
5
5
|
"assets": [
|
|
6
6
|
{
|
|
7
7
|
"path": "./docxodus.worker.js",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
{
|
|
49
49
|
"path": "./wasm/_framework/Docxodus.wasm",
|
|
50
50
|
"mediaType": "application/wasm",
|
|
51
|
-
"byteLength":
|
|
52
|
-
"sha256": "
|
|
51
|
+
"byteLength": 3472665,
|
|
52
|
+
"sha256": "f21fe5783f9333d47240e217e5d7bc77e377095895879b84870dbd247aaf025a"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"path": "./wasm/_framework/DocxodusWasm.wasm",
|
|
56
56
|
"mediaType": "application/wasm",
|
|
57
57
|
"byteLength": 491285,
|
|
58
|
-
"sha256": "
|
|
58
|
+
"sha256": "b3c5019fea33ee2454041f55be980f8957e7869a3c8f14aaed5a895609eef233"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"path": "./wasm/_framework/System.Collections.Concurrent.wasm",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"path": "./wasm/_framework/dotnet.boot.js",
|
|
248
248
|
"mediaType": "text/javascript",
|
|
249
249
|
"byteLength": 9374,
|
|
250
|
-
"sha256": "
|
|
250
|
+
"sha256": "d3c8159dd193bd5baca6f2874515fe940e1299366be6e2290885a332d96712c3"
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"path": "./wasm/_framework/dotnet.js",
|
|
@@ -264,8 +264,8 @@
|
|
|
264
264
|
{
|
|
265
265
|
"path": "./wasm/_framework/dotnet.native.wasm",
|
|
266
266
|
"mediaType": "application/wasm",
|
|
267
|
-
"byteLength":
|
|
268
|
-
"sha256": "
|
|
267
|
+
"byteLength": 8276254,
|
|
268
|
+
"sha256": "6ce8e3d8295bfe9d3a5c0257aefe1db9db11264e605397337b6d21f43da08d85"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"path": "./wasm/_framework/dotnet.runtime.js",
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ async function yieldToMain() {
|
|
|
74
74
|
function getDefaultWasmBasePath() {
|
|
75
75
|
try {
|
|
76
76
|
// import.meta.url gives us the URL of this module
|
|
77
|
-
// e.g., "https://cdn.jsdelivr.net/npm/docxodus@
|
|
77
|
+
// e.g., "https://cdn.jsdelivr.net/npm/docxodus@12.0.0/dist/index.js"
|
|
78
78
|
// or "file:///path/to/node_modules/docxodus/dist/index.js"
|
|
79
79
|
const moduleUrl = import.meta.url;
|
|
80
80
|
// Remove the filename to get the directory
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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-E6vf07wAT55HCWvVtt9pVBwCH9gGv0gVuWk3877+ZH0=",
|
|
5
5
|
"jsModuleNative": [
|
|
6
6
|
{
|
|
7
7
|
"name": "dotnet.native.js"
|
|
@@ -15,7 +15,7 @@ export const config = /*json-start*/{
|
|
|
15
15
|
"wasmNative": [
|
|
16
16
|
{
|
|
17
17
|
"name": "dotnet.native.wasm",
|
|
18
|
-
"hash": "sha256-
|
|
18
|
+
"hash": "sha256-bOjj2Clb/p06XAJXrv4dudsRJk5gU5cze20h9D2gjYU="
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"coreAssembly": [
|
|
@@ -32,12 +32,12 @@ export const config = /*json-start*/{
|
|
|
32
32
|
{
|
|
33
33
|
"virtualPath": "Docxodus.wasm",
|
|
34
34
|
"name": "Docxodus.wasm",
|
|
35
|
-
"hash": "sha256-
|
|
35
|
+
"hash": "sha256-8h/leD+TM9RyQOIX5de8d+N3CViVh5uEhw29JHqvAlo="
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"virtualPath": "DocxodusWasm.wasm",
|
|
39
39
|
"name": "DocxodusWasm.wasm",
|
|
40
|
-
"hash": "sha256-
|
|
40
|
+
"hash": "sha256-s8UBn+oz7iRUBB9VvpgPiVfnhpo8jxSq7VqJVgnu8jM="
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"virtualPath": "System.Collections.Concurrent.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.0.1",
|
|
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",
|