ooxml-core 1.23.0 → 1.24.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 (123) hide show
  1. package/README.md +2 -2
  2. package/dist/{PptxHandler-FSKKPZZC.mjs → PptxHandler-5TWAQWPK.mjs} +2 -2
  3. package/dist/{PptxHandler-H7MEWJJJ.mjs → PptxHandler-KBJ4TN3T.mjs} +1 -1
  4. package/dist/{PptxHandler-DNSXWTQV.cjs → PptxHandler-KFEE7O7W.cjs} +2 -2
  5. package/dist/{PresentationBuilder-7TSENZTX.mjs → PresentationBuilder-SCT5AQBP.mjs} +1 -1
  6. package/dist/{PresentationBuilder-RIJWQSEU.mjs → PresentationBuilder-SVHIKT4C.mjs} +2 -2
  7. package/dist/{PresentationBuilder-A5NI35VN.cjs → PresentationBuilder-SXLRXYDI.cjs} +4 -4
  8. package/dist/automation/index.cjs +553 -335
  9. package/dist/automation/index.d.ts +1 -0
  10. package/dist/automation/index.d.ts.map +1 -1
  11. package/dist/automation/index.mjs +552 -336
  12. package/dist/automation/live.d.ts +89 -0
  13. package/dist/automation/live.d.ts.map +1 -0
  14. package/dist/{chunk-4QPOJCJG.mjs → chunk-7N7C5BNM.mjs} +1 -1
  15. package/dist/{chunk-DLFMCZZT.mjs → chunk-CWCDFPKN.mjs} +1 -1
  16. package/dist/{chunk-LF5E5ZOH.mjs → chunk-GVP262WE.mjs} +25 -62
  17. package/dist/{chunk-VQF6HQEE.mjs → chunk-KVKTHGIY.mjs} +1 -1
  18. package/dist/{chunk-BA7Z6ATM.mjs → chunk-NE7626A4.mjs} +4 -4
  19. package/dist/{chunk-Q5PKBQXH.mjs → chunk-ON7XVRHQ.mjs} +26 -63
  20. package/dist/{chunk-HL3FBJ6X.cjs → chunk-XK55DEUD.cjs} +25 -62
  21. package/dist/docx/ui/customization.d.ts +30 -0
  22. package/dist/docx/ui/customization.d.ts.map +1 -0
  23. package/dist/docx/ui/index.cjs +51 -0
  24. package/dist/docx/ui/index.d.ts +1 -0
  25. package/dist/docx/ui/index.d.ts.map +1 -1
  26. package/dist/docx/ui/index.mjs +46 -1
  27. package/dist/embedding/backstage.d.ts +48 -0
  28. package/dist/embedding/backstage.d.ts.map +1 -0
  29. package/dist/embedding/capabilities.d.ts +60 -0
  30. package/dist/embedding/capabilities.d.ts.map +1 -0
  31. package/dist/embedding/customization.d.ts +32 -0
  32. package/dist/embedding/customization.d.ts.map +1 -0
  33. package/dist/embedding/index.cjs +229 -0
  34. package/dist/embedding/index.d.ts +7 -0
  35. package/dist/embedding/index.d.ts.map +1 -0
  36. package/dist/embedding/index.mjs +204 -0
  37. package/dist/embedding/menu-commands.d.ts +66 -0
  38. package/dist/embedding/menu-commands.d.ts.map +1 -0
  39. package/dist/embedding/regions.d.ts +58 -0
  40. package/dist/embedding/regions.d.ts.map +1 -0
  41. package/dist/embedding/storage.d.ts +111 -0
  42. package/dist/embedding/storage.d.ts.map +1 -0
  43. package/dist/index.cjs +233 -0
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.mjs +233 -1
  47. package/dist/pptx/automation/index.cjs +25 -67
  48. package/dist/pptx/automation/index.d.ts +3 -2
  49. package/dist/pptx/automation/index.d.ts.map +1 -1
  50. package/dist/pptx/automation/index.mjs +5 -5
  51. package/dist/pptx/chunks/{index-Q5mM8kIR.d.ts → index-4FmgJajb.d.ts} +3 -2
  52. package/dist/pptx/chunks/index-4FmgJajb.d.ts.map +1 -0
  53. package/dist/pptx/chunks/index-C3xhAMSa.d.ts +837 -0
  54. package/dist/pptx/chunks/index-C3xhAMSa.d.ts.map +1 -0
  55. package/dist/pptx/chunks/{index-CPhsd7Df.d.ts → index-nKQ4s7FA.d.ts} +24 -834
  56. package/dist/pptx/chunks/index-nKQ4s7FA.d.ts.map +1 -0
  57. package/dist/pptx/cli/index.cjs +25 -67
  58. package/dist/pptx/cli/index.mjs +4 -4
  59. package/dist/pptx/converter/index.d.ts +1 -1
  60. package/dist/pptx/converter/index.mjs +2 -2
  61. package/dist/pptx/editor/render/find-replace.d.ts +1 -1
  62. package/dist/pptx/editor/render/slide-operations.cjs +1 -1
  63. package/dist/pptx/editor/render/slide-operations.mjs +1 -1
  64. package/dist/pptx/index.cjs +25 -67
  65. package/dist/pptx/index.d.ts +4 -3
  66. package/dist/pptx/index.mjs +5 -5
  67. package/dist/pptx/node/index.cjs +40 -0
  68. package/dist/pptx/node/index.d.ts +13 -0
  69. package/dist/pptx/node/index.d.ts.map +1 -0
  70. package/dist/pptx/node/index.mjs +40 -0
  71. package/dist/visio/collab/compose.d.ts.map +1 -1
  72. package/dist/visio/collab/fixups.d.ts.map +1 -1
  73. package/dist/visio/collab/index.cjs +167 -62
  74. package/dist/visio/collab/index.mjs +167 -62
  75. package/dist/visio/collab/keys.d.ts +2 -0
  76. package/dist/visio/collab/keys.d.ts.map +1 -1
  77. package/dist/visio/collab/pieces.d.ts +7 -0
  78. package/dist/visio/collab/pieces.d.ts.map +1 -1
  79. package/dist/visio/collab/read-ids.d.ts +7 -1
  80. package/dist/visio/collab/read-ids.d.ts.map +1 -1
  81. package/dist/visio/collab/read-parts.d.ts.map +1 -1
  82. package/dist/visio/collab/read-shapes.d.ts +0 -1
  83. package/dist/visio/collab/read-shapes.d.ts.map +1 -1
  84. package/dist/visio/collab/read.d.ts.map +1 -1
  85. package/dist/visio/collab/schema.d.ts +1 -1
  86. package/dist/visio/collab/schema.d.ts.map +1 -1
  87. package/dist/visio/collab/snapshot-contents.d.ts.map +1 -1
  88. package/dist/visio/collab/write-shapes.d.ts.map +1 -1
  89. package/dist/visio/collab/zip-store.d.ts +4 -0
  90. package/dist/visio/collab/zip-store.d.ts.map +1 -0
  91. package/dist/visio/document-level.d.ts +57 -0
  92. package/dist/visio/document-level.d.ts.map +1 -0
  93. package/dist/visio/index.cjs +543 -444
  94. package/dist/visio/index.d.ts +1 -0
  95. package/dist/visio/index.d.ts.map +1 -1
  96. package/dist/visio/index.mjs +543 -444
  97. package/dist/visio/layers.d.ts +3 -0
  98. package/dist/visio/layers.d.ts.map +1 -1
  99. package/dist/visio/package.d.ts +9 -0
  100. package/dist/visio/package.d.ts.map +1 -1
  101. package/dist/visio/parser.d.ts +7 -0
  102. package/dist/visio/parser.d.ts.map +1 -1
  103. package/dist/visio/shape-metadata.d.ts +3 -0
  104. package/dist/visio/shape-metadata.d.ts.map +1 -1
  105. package/dist/visio/ui/contract.d.ts +27 -2
  106. package/dist/visio/ui/contract.d.ts.map +1 -1
  107. package/dist/visio/ui/customization.d.ts +46 -0
  108. package/dist/visio/ui/customization.d.ts.map +1 -0
  109. package/dist/visio/ui/index.cjs +454 -316
  110. package/dist/visio/ui/index.d.ts +1 -0
  111. package/dist/visio/ui/index.d.ts.map +1 -1
  112. package/dist/visio/ui/index.mjs +452 -317
  113. package/dist/xlsx/ui/commands.d.ts +2 -0
  114. package/dist/xlsx/ui/commands.d.ts.map +1 -1
  115. package/dist/xlsx/ui/customization.d.ts +49 -0
  116. package/dist/xlsx/ui/customization.d.ts.map +1 -0
  117. package/dist/xlsx/ui/index.cjs +39 -1
  118. package/dist/xlsx/ui/index.d.ts +1 -0
  119. package/dist/xlsx/ui/index.d.ts.map +1 -1
  120. package/dist/xlsx/ui/index.mjs +37 -2
  121. package/package.json +11 -1
  122. package/dist/pptx/chunks/index-CPhsd7Df.d.ts.map +0 -1
  123. package/dist/pptx/chunks/index-Q5mM8kIR.d.ts.map +0 -1
package/README.md CHANGED
@@ -56,7 +56,7 @@ import { xml, opc } from 'ooxml-core'; // or by namespace (shared building block
56
56
  | `crypto` | ECMA-376 package encryption ([MS-OFFCRYPTO]) for every format: `decryptOoxmlPackage`, `encryptOoxmlPackage` (agile AES-256/SHA-512 by default, or Standard), `isEncryptedOoxmlPackage`, and typed errors with a `code` (`password-required`, `incorrect-password`, `data-integrity`). The compound-file container comes from ole2 (inlined); not in the root entry. |
57
57
  | `collab` | Format-neutral real-time collaboration on Yjs: session and provider lifecycle, awareness/presence, transport-neutral sync (WebSocket, in-memory, any byte channel), update codecs, ordering helpers, asset sync and the product adapter seam. See `docs/collab-area.md`. |
58
58
  | `docx` | WordprocessingML: model, parser, preserving serializer, editing, validation. Also `/docx/embedded`. `/docx/layout` is the DOM-free pagination engine (an approximation of Word, not parity) and `/docx/load` detects and loads DOCX (also password-protected, `{ password }`) and legacy .doc (ole2 inlined). |
59
- | `pptx` | PresentationML: model, parser, serializer, editing, charts, SmartArt, converters, CLI, signatures. Subpaths `/pptx/converter`, `/pptx/cli`, `/pptx/signature-node`. |
59
+ | `pptx` | PresentationML: model, parser, serializer, editing, charts, SmartArt, converters, CLI, signatures. Subpaths `/pptx/converter`, `/pptx/cli`, `/pptx/signature-node`, `/pptx/node`. |
60
60
  | `xlsx` | SpreadsheetML: workbook model, `.xlsx`/`.xlsm` reader and preserving writer, formula engine (dependency graph, dynamic arrays, 490+ functions), Excel number formats, editing commands with undo, and the DOM-free grid layout (sizes, colours, conditional formats, charts as SVG, drawing anchors). SmartArt is shown from the cached drawing (not re-laid out) and kept verbatim on save. `/xlsx/load` detects and loads `.xlsx`, `.xlsm` (also password-protected: `loadWorkbook(bytes, { password })`, `saveWorkbook(workbook, 'xlsx', { password })`), legacy `.xls` (ole2 inlined) and CSV, and refuses `.xlsb` with a typed error. `/xlsx/collab` shares a workbook over Yjs (cells, formats, rows, columns, merges, sheets and defined names; see `docs/collab-area.md`). Digital signatures are detected and reported, never kept on save. An approximation of Excel, not parity. |
61
61
  | `visio` | Visio: `.vsdx` parsing, loading and bounded editing, page layers and visibility, and a conservative preview of legacy `.vsd` (through ole2). See `docs/visio-legacy-vsd.md`. |
62
62
  | `math` | Office Math: OMML to and from LaTeX and MathML, with colour and size helpers. |
@@ -93,7 +93,7 @@ count and the first cell.
93
93
  npm install ooxml-core
94
94
  ```
95
95
 
96
- Optional peer dependencies enable specific features: `node-forge` and `xml-crypto` for digital signatures (`/pptx/signature-node`), and `@napi-rs/canvas` for server-side rasterisation.
96
+ Optional peer dependencies enable specific features: `node-forge` and `xml-crypto` for digital signatures (`/pptx/signature-node`), and `@napi-rs/canvas` for server-side rasterisation. The `.ppt` writer's Node rasteriser for SVG pictures lives in the Node-only `/pptx/node` entry, so `ooxml-core/pptx` never references `@napi-rs/canvas` and browser builds of it never see that package. A `.ppt` save rasterises an SVG picture that has no raster fallback with the DOM. In Node.js, where there is no DOM, pass a rasteriser (`save(slides, { outputFormat: 'ppt', rasterizeSvg: rasterizeSvgInNode })`, with `rasterizeSvgInNode` from `ooxml-core/pptx/node`); without one the picture is written as a placeholder with a `ppt-image-format-unsupported` warning. Earlier releases loaded `@napi-rs/canvas` from `ooxml-core/pptx` itself for this.
97
97
 
98
98
  ## Quick start
99
99
 
@@ -1,5 +1,5 @@
1
- export { PptxHandler } from './chunk-Q5PKBQXH.mjs';
2
- import './chunk-4QPOJCJG.mjs';
1
+ export { PptxHandler } from './chunk-ON7XVRHQ.mjs';
2
+ import './chunk-7N7C5BNM.mjs';
3
3
  import './chunk-GBKBR4CX.mjs';
4
4
  import './chunk-3GXV5MPC.mjs';
5
5
  import './chunk-54S5A5PZ.mjs';
@@ -1,4 +1,4 @@
1
- export { PptxHandler } from './chunk-LF5E5ZOH.mjs';
1
+ export { PptxHandler } from './chunk-GVP262WE.mjs';
2
2
  import './chunk-6IIMI5RS.mjs';
3
3
  import './chunk-GXHKNSZX.mjs';
4
4
  import './chunk-CA7KCNL3.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHL3FBJ6X_cjs = require('./chunk-HL3FBJ6X.cjs');
3
+ var chunkXK55DEUD_cjs = require('./chunk-XK55DEUD.cjs');
4
4
  require('./chunk-4LZIUJI3.cjs');
5
5
  require('./chunk-XZPZHXV4.cjs');
6
6
  require('./chunk-5W2QL4SB.cjs');
@@ -9,5 +9,5 @@ require('./chunk-5W2QL4SB.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "PptxHandler", {
11
11
  enumerable: true,
12
- get: function () { return chunkHL3FBJ6X_cjs.PptxHandler; }
12
+ get: function () { return chunkXK55DEUD_cjs.PptxHandler; }
13
13
  });
@@ -1,4 +1,4 @@
1
- export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-LF5E5ZOH.mjs';
1
+ export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-GVP262WE.mjs';
2
2
  import './chunk-6IIMI5RS.mjs';
3
3
  import './chunk-GXHKNSZX.mjs';
4
4
  import './chunk-CA7KCNL3.mjs';
@@ -1,5 +1,5 @@
1
- export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-Q5PKBQXH.mjs';
2
- import './chunk-4QPOJCJG.mjs';
1
+ export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-ON7XVRHQ.mjs';
2
+ import './chunk-7N7C5BNM.mjs';
3
3
  import './chunk-GBKBR4CX.mjs';
4
4
  import './chunk-3GXV5MPC.mjs';
5
5
  import './chunk-54S5A5PZ.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHL3FBJ6X_cjs = require('./chunk-HL3FBJ6X.cjs');
3
+ var chunkXK55DEUD_cjs = require('./chunk-XK55DEUD.cjs');
4
4
  require('./chunk-4LZIUJI3.cjs');
5
5
  require('./chunk-XZPZHXV4.cjs');
6
6
  require('./chunk-5W2QL4SB.cjs');
@@ -9,13 +9,13 @@ require('./chunk-5W2QL4SB.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "PresentationBuilder", {
11
11
  enumerable: true,
12
- get: function () { return chunkHL3FBJ6X_cjs.PresentationBuilder; }
12
+ get: function () { return chunkXK55DEUD_cjs.PresentationBuilder; }
13
13
  });
14
14
  Object.defineProperty(exports, "STANDARD_LAYOUTS", {
15
15
  enumerable: true,
16
- get: function () { return chunkHL3FBJ6X_cjs.STANDARD_LAYOUTS; }
16
+ get: function () { return chunkXK55DEUD_cjs.STANDARD_LAYOUTS; }
17
17
  });
18
18
  Object.defineProperty(exports, "buildBlankPresentationArchive", {
19
19
  enumerable: true,
20
- get: function () { return chunkHL3FBJ6X_cjs.buildBlankPresentationArchive; }
20
+ get: function () { return chunkXK55DEUD_cjs.buildBlankPresentationArchive; }
21
21
  });