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 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@11.0.0/dist/embed.bundle.js';
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@11.0.0/dist/embed.bundle.js';
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@11.0.0/dist/embed.iife.js"></script>
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@11.0.0`, not `@latest`) — CDN responses are
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@11.0.0/dist/embed.bundle.js";
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@11.0.0/dist/embed.bundle.js";
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
  * ```
@@ -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.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": 3460889,
52
- "sha256": "b107930948204dec3fd1c873d89236ade28ac6d992e6690ff134237258ec4972"
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": "a0bd24037553b1e29179a4cb40119456fa0b084cd5b5809b9a5c0119a194fba1"
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": "05cadf241c507a29a3edd15242e8ba6673d2ba7dc083e8b6fe9dd80ad492ce1a"
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": 8284171,
268
- "sha256": "10563da8b88f21f5727fbd4af0829a3e9504bcc4614345afabc17bc2068cc86f"
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@11.0.0/dist/index.js"
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
@@ -1,7 +1,7 @@
1
1
  export const config = /*json-start*/{
2
2
  "mainAssemblyName": "DocxodusWasm.dll",
3
3
  "resources": {
4
- "hash": "sha256-02NwEvKBnXPs1LJjm1SU5sXu99IqNpp2c+/cz9HL7+k=",
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-EFY9qLiPIfVyf71K8IKaPpUEvMRhQ0Wvq8F7wgaMyG8="
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-sQeTCUggTew/0chz2JI2reKKxtmS5mkP8TQjcljsSXI="
35
+ "hash": "sha256-8h/leD+TM9RyQOIX5de8d+N3CViVh5uEhw29JHqvAlo="
36
36
  },
37
37
  {
38
38
  "virtualPath": "DocxodusWasm.wasm",
39
39
  "name": "DocxodusWasm.wasm",
40
- "hash": "sha256-oL0kA3VTseKReaTLQBGUVvoLCEzVtYCbmlwBGaGU+6E="
40
+ "hash": "sha256-s8UBn+oz7iRUBB9VvpgPiVfnhpo8jxSq7VqJVgnu8jM="
41
41
  },
42
42
  {
43
43
  "virtualPath": "System.Collections.Concurrent.wasm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docxodus",
3
- "version": "12.0.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",