docxodus 12.4.0 → 12.4.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.
Files changed (87) hide show
  1. package/README.md +23 -0
  2. package/dist/core.d.ts +924 -0
  3. package/dist/core.d.ts.map +1 -0
  4. package/dist/core.js +2094 -0
  5. package/dist/core.js.map +1 -0
  6. package/dist/embed.bundle.js +12229 -12229
  7. package/dist/embed.iife.js +12231 -12231
  8. package/dist/export-assets.json +39 -39
  9. package/dist/index.d.ts +2 -922
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +2 -2093
  12. package/dist/index.js.map +1 -1
  13. package/dist/wasm/_framework/Docxodus.wasm +0 -0
  14. package/dist/wasm/_framework/Docxodus.wasm.br +0 -0
  15. package/dist/wasm/_framework/DocxodusWasm.wasm +0 -0
  16. package/dist/wasm/_framework/DocxodusWasm.wasm.br +0 -0
  17. package/dist/wasm/_framework/System.Collections.Concurrent.wasm +0 -0
  18. package/dist/wasm/_framework/System.Collections.Concurrent.wasm.br +0 -0
  19. package/dist/wasm/_framework/System.Collections.Immutable.wasm +0 -0
  20. package/dist/wasm/_framework/System.Collections.Immutable.wasm.br +0 -0
  21. package/dist/wasm/_framework/System.Collections.NonGeneric.wasm +0 -0
  22. package/dist/wasm/_framework/System.Collections.NonGeneric.wasm.br +0 -0
  23. package/dist/wasm/_framework/System.Collections.Specialized.wasm +0 -0
  24. package/dist/wasm/_framework/System.Collections.Specialized.wasm.br +0 -0
  25. package/dist/wasm/_framework/System.Collections.wasm +0 -0
  26. package/dist/wasm/_framework/System.Collections.wasm.br +0 -0
  27. package/dist/wasm/_framework/System.ComponentModel.Primitives.wasm +0 -0
  28. package/dist/wasm/_framework/System.ComponentModel.Primitives.wasm.br +0 -0
  29. package/dist/wasm/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
  30. package/dist/wasm/_framework/System.ComponentModel.TypeConverter.wasm.br +0 -0
  31. package/dist/wasm/_framework/System.ComponentModel.wasm +0 -0
  32. package/dist/wasm/_framework/System.ComponentModel.wasm.br +0 -0
  33. package/dist/wasm/_framework/System.Console.wasm +0 -0
  34. package/dist/wasm/_framework/System.Console.wasm.br +0 -0
  35. package/dist/wasm/_framework/System.IO.Compression.wasm +0 -0
  36. package/dist/wasm/_framework/System.IO.Compression.wasm.br +0 -0
  37. package/dist/wasm/_framework/System.IO.Pipelines.wasm +0 -0
  38. package/dist/wasm/_framework/System.IO.Pipelines.wasm.br +0 -0
  39. package/dist/wasm/_framework/System.Linq.Expressions.wasm +0 -0
  40. package/dist/wasm/_framework/System.Linq.Expressions.wasm.br +0 -0
  41. package/dist/wasm/_framework/System.Linq.wasm +0 -0
  42. package/dist/wasm/_framework/System.Linq.wasm.br +0 -0
  43. package/dist/wasm/_framework/System.Memory.wasm +0 -0
  44. package/dist/wasm/_framework/System.Memory.wasm.br +0 -0
  45. package/dist/wasm/_framework/System.Net.Http.wasm +0 -0
  46. package/dist/wasm/_framework/System.Net.Http.wasm.br +0 -0
  47. package/dist/wasm/_framework/System.Net.Primitives.wasm +0 -0
  48. package/dist/wasm/_framework/System.Net.Primitives.wasm.br +0 -0
  49. package/dist/wasm/_framework/System.ObjectModel.wasm +0 -0
  50. package/dist/wasm/_framework/System.ObjectModel.wasm.br +0 -0
  51. package/dist/wasm/_framework/System.Private.CoreLib.wasm +0 -0
  52. package/dist/wasm/_framework/System.Private.CoreLib.wasm.br +0 -0
  53. package/dist/wasm/_framework/System.Private.Uri.wasm +0 -0
  54. package/dist/wasm/_framework/System.Private.Uri.wasm.br +0 -0
  55. package/dist/wasm/_framework/System.Private.Xml.Linq.wasm +0 -0
  56. package/dist/wasm/_framework/System.Private.Xml.Linq.wasm.br +0 -0
  57. package/dist/wasm/_framework/System.Private.Xml.wasm +0 -0
  58. package/dist/wasm/_framework/System.Private.Xml.wasm.br +0 -0
  59. package/dist/wasm/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
  60. package/dist/wasm/_framework/System.Runtime.InteropServices.JavaScript.wasm.br +0 -0
  61. package/dist/wasm/_framework/System.Runtime.wasm +0 -0
  62. package/dist/wasm/_framework/System.Runtime.wasm.br +0 -0
  63. package/dist/wasm/_framework/System.Security.Cryptography.wasm +0 -0
  64. package/dist/wasm/_framework/System.Security.Cryptography.wasm.br +0 -0
  65. package/dist/wasm/_framework/System.Text.Encodings.Web.wasm +0 -0
  66. package/dist/wasm/_framework/System.Text.Encodings.Web.wasm.br +0 -0
  67. package/dist/wasm/_framework/System.Text.Json.wasm +0 -0
  68. package/dist/wasm/_framework/System.Text.Json.wasm.br +0 -0
  69. package/dist/wasm/_framework/System.Text.RegularExpressions.wasm +0 -0
  70. package/dist/wasm/_framework/System.Text.RegularExpressions.wasm.br +0 -0
  71. package/dist/wasm/_framework/System.Xml.Linq.wasm +0 -0
  72. package/dist/wasm/_framework/System.Xml.Linq.wasm.br +0 -0
  73. package/dist/wasm/_framework/System.Xml.XDocument.wasm +0 -0
  74. package/dist/wasm/_framework/System.Xml.XDocument.wasm.br +0 -0
  75. package/dist/wasm/_framework/System.wasm +0 -0
  76. package/dist/wasm/_framework/System.wasm.br +0 -0
  77. package/dist/wasm/_framework/dotnet.boot.js +34 -34
  78. package/dist/wasm/_framework/dotnet.boot.js.br +0 -0
  79. package/dist/wasm/_framework/dotnet.js +1 -1
  80. package/dist/wasm/_framework/dotnet.js.br +0 -0
  81. package/dist/wasm/_framework/dotnet.native.js +3 -3
  82. package/dist/wasm/_framework/dotnet.native.js.br +0 -0
  83. package/dist/wasm/_framework/dotnet.native.wasm +0 -0
  84. package/dist/wasm/_framework/dotnet.native.wasm.br +0 -0
  85. package/dist/wasm/_framework/dotnet.runtime.js +1 -1
  86. package/dist/wasm/_framework/dotnet.runtime.js.br +0 -0
  87. package/package.json +8 -1
package/README.md CHANGED
@@ -275,6 +275,29 @@ function DocumentComparer() {
275
275
  }
276
276
  ```
277
277
 
278
+ ## Node.js (ES modules)
279
+
280
+ Import the engine from `docxodus/core` for server-side conversion, comparison, annotations,
281
+ and document sessions. It loads without a bundler or a custom Node loader:
282
+
283
+ ```js
284
+ import { readFile, writeFile } from 'node:fs/promises';
285
+ import { initialize, convertDocxToHtml, compareDocuments } from 'docxodus/core';
286
+
287
+ await initialize(); // Finds the WASM runtime included in the installed package.
288
+ const original = await readFile('original.docx');
289
+ const revised = await readFile('revised.docx');
290
+ await writeFile('original.html', await convertDocxToHtml(original));
291
+ await writeFile('redline.docx', await compareDocuments(original, revised));
292
+ ```
293
+
294
+ `docxodus/core` exposes the engine functions, types, enums, annotation helpers, and history
295
+ APIs from `docxodus`, excluding `DocxEditor`, `CommentGutter`, `mountRibbon`, and their editor
296
+ types. The existing `docxodus` entry includes those browser editor APIs and requires a browser
297
+ bundler; use `docxodus/core` in plain Node ESM. Both entries share the same engine state.
298
+ Browser helpers retained in `core`, such as pagination, the document viewport, IndexedDB
299
+ storage, and history controls, still require their browser APIs when called.
300
+
278
301
  ## API Reference
279
302
 
280
303
  ### Package verification