docxodus 12.6.1 → 12.6.2
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/core.js +1 -1
- package/dist/embed.d.ts +1 -1
- package/dist/embed.js +1 -1
- package/dist/export-assets.json +7 -7
- 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
|
@@ -99,7 +99,7 @@ runtime location auto-detected — no build step, no configuration:
|
|
|
99
99
|
```html
|
|
100
100
|
<div id="doc" style="height: 100dvh"></div>
|
|
101
101
|
<script type="module">
|
|
102
|
-
import { createRibbonEditor } from 'https://cdn.jsdelivr.net/npm/docxodus@12.6.
|
|
102
|
+
import { createRibbonEditor } from 'https://cdn.jsdelivr.net/npm/docxodus@12.6.1/dist/embed.bundle.js';
|
|
103
103
|
const ribbon = await createRibbonEditor('#doc', './contract.docx'); // or bytes / Blob / File
|
|
104
104
|
// ...later: const editedBytes = ribbon.save();
|
|
105
105
|
</script>
|
|
@@ -682,7 +682,7 @@ so a page can embed a full viewer or editor without hosting anything itself.
|
|
|
682
682
|
<div id="app" style="height: 100dvh"></div>
|
|
683
683
|
<script type="module">
|
|
684
684
|
import { createViewer, createEditor, createRibbonEditor }
|
|
685
|
-
from 'https://cdn.jsdelivr.net/npm/docxodus@12.6.
|
|
685
|
+
from 'https://cdn.jsdelivr.net/npm/docxodus@12.6.1/dist/embed.bundle.js';
|
|
686
686
|
|
|
687
687
|
// Choose a factory, or render several into separate containers as shown.
|
|
688
688
|
// Source may be a URL, Uint8Array, ArrayBuffer, Blob, or File.
|
|
@@ -712,7 +712,7 @@ For pages that can't use modules, `dist/embed.iife.js` exposes the same surface
|
|
|
712
712
|
|
|
713
713
|
```html
|
|
714
714
|
<div id="doc"></div>
|
|
715
|
-
<script src="https://cdn.jsdelivr.net/npm/docxodus@12.6.
|
|
715
|
+
<script src="https://cdn.jsdelivr.net/npm/docxodus@12.6.1/dist/embed.iife.js"></script>
|
|
716
716
|
<script>
|
|
717
717
|
Docxodus.createRibbonEditor('#doc').then((ribbon) => { /* ... */ });
|
|
718
718
|
</script>
|
|
@@ -728,7 +728,7 @@ first `<bundle dir>/wasm/`, then `<bundle dir>/` as a fallback. On a CDN that re
|
|
|
728
728
|
|
|
729
729
|
### CDN caveats
|
|
730
730
|
|
|
731
|
-
- **Pin an exact version in production** (`docxodus@12.6.
|
|
731
|
+
- **Pin an exact version in production** (`docxodus@12.6.1`, not `@latest`) — CDN responses are
|
|
732
732
|
cached as immutable, and the wire shapes between the JS wrappers and the WASM assemblies must
|
|
733
733
|
come from the same release.
|
|
734
734
|
- The build patches the .NET loader to fetch with `credentials: "omit"` — required because the
|
package/dist/core.js
CHANGED
|
@@ -87,7 +87,7 @@ async function yieldToMain() {
|
|
|
87
87
|
function getDefaultWasmBasePath() {
|
|
88
88
|
try {
|
|
89
89
|
// import.meta.url gives us the URL of this module
|
|
90
|
-
// e.g., "https://cdn.jsdelivr.net/npm/docxodus@12.6.
|
|
90
|
+
// e.g., "https://cdn.jsdelivr.net/npm/docxodus@12.6.1/dist/core.js"
|
|
91
91
|
// or "file:///path/to/node_modules/docxodus/dist/core.js"
|
|
92
92
|
const moduleUrl = import.meta.url;
|
|
93
93
|
// Remove the filename to get the directory
|
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@12.6.
|
|
10
|
+
* import { createViewer } from "https://cdn.jsdelivr.net/npm/docxodus@12.6.1/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@12.6.
|
|
10
|
+
* import { createViewer } from "https://cdn.jsdelivr.net/npm/docxodus@12.6.1/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.6.
|
|
4
|
+
"packageVersion": "12.6.2",
|
|
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": 4632345,
|
|
52
|
+
"sha256": "aca15421ba9b1a5d0f8a88702d3cc44ad51374f2b8f8c6d3d60a2ddee68fa185"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"path": "./wasm/_framework/DocxodusWasm.wasm",
|
|
56
56
|
"mediaType": "application/wasm",
|
|
57
57
|
"byteLength": 522517,
|
|
58
|
-
"sha256": "
|
|
58
|
+
"sha256": "787d41885c8866d6f268e2c538a2369668362ee9da3f56b176955fbef7052274"
|
|
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": "99ed4c4572d9472922829affe15cfd4ed711eae5000a31d96d186b9424b30c7c"
|
|
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": 10303378,
|
|
268
|
+
"sha256": "6c2c1c39a2f253a7a3b38aa881fa92f3f4de6db9c8af3ae3124bbcdf94bba2a6"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"path": "./wasm/_framework/dotnet.runtime.js",
|
|
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-Bqbp3Qq9G+yuz4UCPcqrP41ae2uxbsyRfyAQN8Kn2xk=",
|
|
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-bCwcOaLyU6ejs4qogfqS8/TebbnIrzrjEku835S7oqY="
|
|
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-rKFUIbqbGl0PiohwLTzEStUTdPK4+MbT1got3uaPoYU="
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"virtualPath": "DocxodusWasm.wasm",
|
|
39
39
|
"name": "DocxodusWasm.wasm",
|
|
40
|
-
"hash": "sha256
|
|
40
|
+
"hash": "sha256-eH1BiFyIZtbyaOLFOKI2lmg2LunaP1axdpVfvvcFInQ="
|
|
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.6.
|
|
3
|
+
"version": "12.6.2",
|
|
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",
|