@silurus/ooxml 0.88.0 → 0.89.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 (127) hide show
  1. package/README.md +118 -23
  2. package/THIRD_PARTY_NOTICES.md +8 -7
  3. package/dist/abort-VrnK7mdP.js +10 -0
  4. package/dist/assets/render-worker-C5G_Nr_A.js +35 -0
  5. package/dist/assets/render-worker-DQfWdNsm.js +16 -0
  6. package/dist/assets/render-worker-Ds7LjwU-.js +15 -0
  7. package/dist/{hyperlink-Cxzhet30.js → bounded-raw-part-cache-CsnNptAy.js} +4937 -7458
  8. package/dist/bundled-asset-url-E2nXURF9.js +15 -0
  9. package/dist/canvas-viewer-mechanics-BZ8QCrRi.js +675 -0
  10. package/dist/cfb-guard-dNeUiANF.js +528 -0
  11. package/dist/chart-ex.mjs +667 -663
  12. package/dist/comment-overlay-controller-CBvQx-En.js +994 -0
  13. package/dist/comment-ui-runtime-B7ZvovcS.js +2 -0
  14. package/dist/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-BKidRH36.js} +5 -5
  15. package/dist/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-C47QoDUy.js} +5 -5
  16. package/dist/delimited-text-worker-host-CikWU6_m.js +27 -0
  17. package/dist/document-model-source-MzFPrxt0.js +249 -0
  18. package/dist/document-pull-client-BoJeuURD.js +35941 -0
  19. package/dist/document-pull-worker-CaP8XESP.js +104 -0
  20. package/dist/docx-BN70UhvX.js +495 -0
  21. package/dist/docx-BRRtSvk3.js +3563 -0
  22. package/dist/docx-model-source-CTO9iw_W.js +98 -0
  23. package/dist/docx-source-worker.mjs +455 -0
  24. package/dist/docx.mjs +7 -7
  25. package/dist/docx_parser_bg.wasm +0 -0
  26. package/dist/drawingml-shape-CHmq8kpM.js +310 -0
  27. package/dist/duotone-DN8P4aXe.js +126 -0
  28. package/dist/emf-CGFQIz6c.js +1790 -0
  29. package/dist/font-preload-demand-Dmy31xt-.js +2058 -0
  30. package/dist/grid-geometry-C3IG20ut.js +384 -0
  31. package/dist/host-layout-DVMw8hDY.js +56 -0
  32. package/dist/host-layout-measure-DsuQ2UJs.js +7 -0
  33. package/dist/in-process-pull-transport-DuXcPZng.js +29 -0
  34. package/dist/index.mjs +4 -4
  35. package/dist/internal-companion.mjs +12 -0
  36. package/dist/line-distribute-Bu8psjGd.js +2799 -0
  37. package/dist/math.mjs +2 -2
  38. package/dist/mathjax-stix2.js +10 -10
  39. package/dist/model-source-kz_NkZqT.js +179 -0
  40. package/dist/model-source-s5hRpk4w.js +61 -0
  41. package/dist/model-source-session-6fuaqbGs.js +71 -0
  42. package/dist/model-source-session-DqrR4XHR.js +85 -0
  43. package/dist/model-source-session-cPJSF_Ak.js +58 -0
  44. package/dist/node.mjs +7 -1327
  45. package/dist/{pixel-budget-9P63Bsk5.js → pixel-budget-BpTYrepD.js} +13 -10
  46. package/dist/plot-area-frame-Bs_j4uu7.js +41811 -0
  47. package/dist/pptx-CaJ6ILnw.js +183 -0
  48. package/dist/pptx-_BOGcBym.js +2936 -0
  49. package/dist/pptx-model-source-B_9afw9R.js +37 -0
  50. package/dist/pptx-source-worker.mjs +446 -0
  51. package/dist/pptx.mjs +8 -7
  52. package/dist/pptx_parser_bg.wasm +0 -0
  53. package/dist/presentation-model-source-CGHLyX32.js +77 -0
  54. package/dist/raster-target-YQ4G6rxo.js +42 -0
  55. package/dist/region-map.mjs +117 -153
  56. package/dist/{render-D3iqVKCo.js → render-CzbDzRKa.js} +3 -3
  57. package/dist/{render-worker-host-B5wQfB7U.js → render-worker-host-B1u6BOUd.js} +1 -1
  58. package/dist/{render-worker-host-D4123J27.js → render-worker-host-C-EECo68.js} +1 -1
  59. package/dist/{render-worker-host-Di3LxLc0.js → render-worker-host-DDqZTCVf.js} +1 -1
  60. package/dist/renderer-CD2cvVAF.js +5823 -0
  61. package/dist/renderer-DRoeb14O.js +5170 -0
  62. package/dist/resource-measurement-Dhhm7P_l.js +772 -0
  63. package/dist/session-XPmC0CUd.js +656 -0
  64. package/dist/slide-pull-client-tq7U_fYg.js +6485 -0
  65. package/dist/three-d-BKwNPAP4.js +878 -0
  66. package/dist/three-d.mjs +925 -910
  67. package/dist/{raster-target-ojDdQizC.js → tiff-contract-C6M3QcPp.js} +1 -42
  68. package/dist/tiff.mjs +401 -248
  69. package/dist/types/chart-ex.d.ts +149 -2
  70. package/dist/types/docx.d.ts +333 -96
  71. package/dist/types/index.d.ts +566 -301
  72. package/dist/types/internal-companion.d.ts +11 -0
  73. package/dist/types/math.d.ts +1 -1
  74. package/dist/types/node.d.ts +422 -9
  75. package/dist/types/pptx.d.ts +302 -95
  76. package/dist/types/region-map.d.ts +149 -2
  77. package/dist/types/three-d.d.ts +149 -2
  78. package/dist/types/tiff.d.ts +1 -1
  79. package/dist/types/xlsx.d.ts +343 -132
  80. package/dist/wasm-loader-rlgHmcSv.js +35 -0
  81. package/dist/wasm-runtime-generation-D6TKZdNb.js +97 -0
  82. package/dist/workbook-model-source-BIGrfZy6.js +94 -0
  83. package/dist/worker-source-DrwhR9fw.js +22 -0
  84. package/dist/worker-source-SbudzjYL.js +22 -0
  85. package/dist/worker-source-UAi3GNcM.js +22 -0
  86. package/dist/worksheet-pull-client-ClvPO_Jf.js +579 -0
  87. package/dist/xlsx-CsmREBaZ.js +5819 -0
  88. package/dist/xlsx-DmHfeNNp.js +534 -0
  89. package/dist/xlsx-model-source-D1flORqy.js +309 -0
  90. package/dist/xlsx-source-worker.mjs +525 -0
  91. package/dist/xlsx.mjs +8 -7
  92. package/dist/xlsx_parser_bg.wasm +0 -0
  93. package/package.json +42 -16
  94. package/dist/assets/render-worker-1uPAxMZr.js +0 -31
  95. package/dist/assets/render-worker-BlvJybji.js +0 -10
  96. package/dist/assets/render-worker-CzmiJfFL.js +0 -11
  97. package/dist/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  98. package/dist/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
  99. package/dist/cjk-fallback-bLI3z70h.js +0 -46
  100. package/dist/comment-occurrence-C8Y2uoVr.js +0 -6
  101. package/dist/comment-ui-runtime-BsK8pmUT.js +0 -2
  102. package/dist/comments-Diid5ujN.js +0 -246
  103. package/dist/delimited-text-worker-host-BVY-Ecni.js +0 -27
  104. package/dist/document-pull-client-B9PTM-pL.js +0 -27280
  105. package/dist/docx-BF9WXrYH.js +0 -3103
  106. package/dist/dom-interaction-boundary-Cnm8DSBN.js +0 -223
  107. package/dist/highlight-rect-C5hkRqUr.js +0 -13
  108. package/dist/line-distribute-D1WNHKz_.js +0 -1023
  109. package/dist/line-metrics-B60C86uh.js +0 -60
  110. package/dist/plot-area-frame-DLTYKHNP.js +0 -4354
  111. package/dist/pptx-DkyYBYoL.js +0 -3065
  112. package/dist/renderer-B4GZb5We.js +0 -6492
  113. package/dist/resource-measurement-SHQCbkh2.js +0 -150
  114. package/dist/session-BGq81gRQ.js +0 -743
  115. package/dist/slide-pull-client-DiPnm240.js +0 -6253
  116. package/dist/source-key-DIJG8BA0.js +0 -42
  117. package/dist/three-d-DJBl8g8M.js +0 -1162
  118. package/dist/transfer-p6iCC2R7.js +0 -6
  119. package/dist/units-BzZ0gAxs.js +0 -4
  120. package/dist/worksheet-pull-client-BM8ywvbu.js +0 -458
  121. package/dist/xlsx-C9NVjgaV.js +0 -8484
  122. /package/dist/{chunk-DmhlhrBa.js → chunk-Dy4uBu1J.js} +0 -0
  123. /package/dist/{mathjax-DoyWZbSp.js → mathjax-BhwN6ilc.js} +0 -0
  124. /package/dist/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-PidH0wnP.js} +0 -0
  125. /package/dist/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-B52rDVKo.js} +0 -0
  126. /package/dist/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-CWM7jv6d.js} +0 -0
  127. /package/dist/{visible-index-BgiHEc1z.js → visible-index-FeVA0mGE.js} +0 -0
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-BtUu4_7Y.d.ts
1
+ //#region dist/.types-work/chart-BX4Zli_Z.d.ts
2
2
  type MathStyle = 'roman' | 'italic' | 'bold' | 'boldItalic';
3
3
  interface MathRun {
4
4
  kind: 'run';
@@ -107,6 +107,136 @@ interface Duotone$1 {
107
107
  clr1: string;
108
108
  clr2: string;
109
109
  }
110
+ type BlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
111
+ type BlipEffect = {
112
+ type: 'grayscale';
113
+ } | {
114
+ type: 'biLevel';
115
+ thresh: number;
116
+ } | {
117
+ type: 'colorChange';
118
+ from: string;
119
+ fromAlpha: number;
120
+ to: string;
121
+ toAlpha: number;
122
+ useAlpha: boolean;
123
+ } | {
124
+ type: 'luminance';
125
+ bright: number;
126
+ contrast: number;
127
+ } | {
128
+ type: 'duotone';
129
+ clr1?: string;
130
+ clr2?: string;
131
+ } | {
132
+ type: 'alphaBiLevel';
133
+ thresh: number;
134
+ } | {
135
+ type: 'alphaCeiling' | 'alphaFloor';
136
+ } | {
137
+ type: 'alphaInv';
138
+ color?: string;
139
+ } | {
140
+ type: 'hsl';
141
+ hue: number;
142
+ sat: number;
143
+ lum: number;
144
+ } | {
145
+ type: 'tint';
146
+ hue: number;
147
+ amt: number;
148
+ } | {
149
+ type: 'blur';
150
+ radius: number;
151
+ grow: boolean;
152
+ } | {
153
+ type: 'alphaMod';
154
+ container: BlipEffectContainer;
155
+ } | {
156
+ type: 'container';
157
+ container: BlipEffectContainer;
158
+ } | {
159
+ type: 'reference';
160
+ reference: string;
161
+ } | {
162
+ type: 'definitions';
163
+ containers: readonly BlipEffectContainer[];
164
+ work: number;
165
+ } | {
166
+ type: 'effectCountLimit';
167
+ observed: number;
168
+ } | {
169
+ type: 'alphaOutset';
170
+ radius: number;
171
+ } | {
172
+ type: 'blend';
173
+ container: BlipEffectContainer;
174
+ blend: BlendMode;
175
+ } | {
176
+ type: 'fill';
177
+ fill: BlipEffectFill;
178
+ } | {
179
+ type: 'glow';
180
+ glow: Glow;
181
+ } | {
182
+ type: 'shadow';
183
+ shadow: Shadow;
184
+ inner: boolean;
185
+ } | {
186
+ type: 'softEdge';
187
+ radius: number;
188
+ } | {
189
+ type: 'reflection';
190
+ reflection: Reflection & {
191
+ kx?: number;
192
+ ky?: number;
193
+ algn?: Shadow['algn'];
194
+ fadeDir?: number;
195
+ rotWithShape?: boolean;
196
+ };
197
+ } | {
198
+ type: 'transform';
199
+ sx: number;
200
+ sy: number;
201
+ kx: number;
202
+ ky: number;
203
+ tx: number;
204
+ ty: number;
205
+ } | {
206
+ type: 'relativeOffset';
207
+ tx: number;
208
+ ty: number;
209
+ } | {
210
+ type: 'presetShadow';
211
+ shadows: readonly Shadow[];
212
+ } | {
213
+ type: 'fillOverlay';
214
+ fill: BlipEffectFill;
215
+ blend: BlendMode;
216
+ } | {
217
+ type: 'alphaModFix';
218
+ amt: number;
219
+ } | {
220
+ type: 'alphaRepl';
221
+ alpha: number;
222
+ } | {
223
+ type: 'colorReplace';
224
+ color: string;
225
+ } | {
226
+ type: 'unsupported';
227
+ effect: string;
228
+ };
229
+ type BlipEffectImageFill = Omit<ImageFill, 'blipEffects'> & {
230
+ readonly blipEffects?: readonly BlipEffect[];
231
+ };
232
+ type BlipEffectFill = SolidFill | NoFill | PatternFill | (Omit<GradientFill, 'stops'> & {
233
+ readonly stops: readonly GradientStop$1[];
234
+ }) | BlipEffectImageFill;
235
+ interface BlipEffectContainer {
236
+ readonly kind: 'sib' | 'tree';
237
+ readonly name?: string;
238
+ readonly effects: readonly BlipEffect[];
239
+ }
110
240
  interface SrcRect {
111
241
  l: number;
112
242
  t: number;
@@ -201,6 +331,7 @@ interface ImageFill {
201
331
  tile?: TileInfo;
202
332
  alpha?: number;
203
333
  duotone?: Duotone$1;
334
+ blipEffects?: BlipEffect[];
204
335
  }
205
336
  interface Shadow {
206
337
  color: string;
@@ -317,6 +448,8 @@ interface Paragraph$1 {
317
448
  indent: number;
318
449
  spaceBefore: number | null;
319
450
  spaceAfter: number | null;
451
+ spaceBeforePct?: number;
452
+ spaceAfterPct?: number;
320
453
  spaceLine: SpaceLine | null;
321
454
  lvl: number;
322
455
  bullet: Bullet;
@@ -328,9 +461,11 @@ interface Paragraph$1 {
328
461
  tabStops: TabStop$1[];
329
462
  rtl?: boolean;
330
463
  runs: TextRun[];
464
+ endRunProperties?: TextRunData;
331
465
  }
332
466
  type TextRun = TextRunData | LineBreak | EquationRun;
333
467
  interface EquationRun {
468
+ fallbackText?: string;
334
469
  type: 'math';
335
470
  nodes: MathNode[];
336
471
  display: boolean;
@@ -339,36 +474,57 @@ interface EquationRun {
339
474
  }
340
475
  interface TextRunData {
341
476
  type: 'text';
477
+ hyperlinkUsesTextFill?: boolean;
342
478
  text: string;
343
479
  bold: boolean | null;
344
480
  italic: boolean | null;
345
481
  underline: boolean;
346
482
  underlineStyle?: string;
347
483
  underlineColor?: string;
484
+ underlineFill?: Fill;
485
+ underlineLine?: TextOutline;
486
+ underlineLineNoFill?: boolean;
348
487
  strikethrough: boolean;
349
488
  strikeDouble?: boolean;
350
489
  fontSize: number | null;
351
490
  color: string | null;
491
+ patternFill?: PatternFill;
492
+ glyphFill?: Fill;
493
+ noFill?: boolean;
352
494
  fontFamily: string | null;
353
495
  fontFamilyEa?: string;
496
+ fontFamilyCs?: string;
354
497
  fontFamilySym?: string;
498
+ lang?: string;
499
+ altLang?: string;
355
500
  baseline?: number;
356
501
  caps?: 'none' | 'small' | 'all';
357
502
  letterSpacing?: number;
358
503
  fieldType?: string;
359
504
  hyperlink?: string;
360
505
  hyperlinkAction?: string;
506
+ hyperlinkMouseOver?: string;
507
+ hyperlinkMouseOverAction?: string;
361
508
  shadow?: Shadow;
362
509
  reflection?: Reflection;
363
510
  outline?: TextOutline;
364
511
  highlight?: string;
512
+ characterAttributes?: Record<string, string>;
513
+ characterChildAttributes?: Record<string, Record<string, string>>;
365
514
  }
366
515
  interface TextOutline {
367
516
  width: number;
368
517
  color?: string;
518
+ fill?: Fill;
369
519
  }
370
520
  interface LineBreak {
371
521
  type: 'break';
522
+ fontSize?: number;
523
+ fontFamily?: string;
524
+ bold?: boolean;
525
+ italic?: boolean;
526
+ characterAttributes?: Record<string, string>;
527
+ characterChildAttributes?: Record<string, Record<string, string>>;
372
528
  }
373
529
  interface ChartSeries {
374
530
  name: string;
@@ -727,6 +883,7 @@ interface ChartModel {
727
883
  title: string | null;
728
884
  titleRichRuns?: ChartTextRun[] | null;
729
885
  titlePresent?: boolean;
886
+ authoredWithoutSeries?: boolean;
730
887
  categories: string[];
731
888
  categorySourceHidden?: boolean[] | null;
732
889
  categoryLevels?: string[][] | null;
@@ -806,6 +963,7 @@ interface ChartModel {
806
963
  subtotalIndices: number[];
807
964
  legendManualLayout?: LegendManualLayout | null;
808
965
  valAxisFormatCode?: string | null;
966
+ valAxisNumberFormat?: ChartAxisNumberFormat | null;
809
967
  valAxisDisplayUnits?: ChartDisplayUnits | null;
810
968
  catAxisDisplayUnits?: ChartDisplayUnits | null;
811
969
  barGapWidth?: number | null;
@@ -894,6 +1052,7 @@ interface ChartModel {
894
1052
  valAxisLineDash?: string | null;
895
1053
  valAxisLinePaintAuthored?: boolean | null;
896
1054
  catAxisFormatCode?: string | null;
1055
+ catAxisNumberFormat?: ChartAxisNumberFormat | null;
897
1056
  catAxisMin?: number | null;
898
1057
  catAxisMax?: number | null;
899
1058
  titleManualLayout?: ChartManualLayout | null;
@@ -977,6 +1136,13 @@ interface ChartModel {
977
1136
  chartexTreemap?: ChartexTreemap | null;
978
1137
  chartexRegionMap?: ChartexRegionMap | null;
979
1138
  chartexHistogramBinning?: ChartexHistogramBinning | null;
1139
+ chartexParetoOwnerIndex?: number | null;
1140
+ chartexParetoSortDescending?: boolean | null;
1141
+ chartexParetoFlatEndpoint?: boolean | null;
1142
+ chartexSuppressGeometry?: boolean | null;
1143
+ chartexParetoOutlineOwner?: boolean | null;
1144
+ chartexPrimaryAxisRight?: boolean | null;
1145
+ chartexShowUnpairedPercentageAxis?: boolean | null;
980
1146
  chartexAccents?: string[] | null;
981
1147
  chartexColorPalette?: Array<string | null> | null;
982
1148
  chartexColorStyleMethod?: string | null;
@@ -1232,6 +1398,11 @@ interface ChartexHistogramBinning {
1232
1398
  intervalClosed?: 'l' | 'r' | null;
1233
1399
  underflow?: number | null;
1234
1400
  overflow?: number | null;
1401
+ edgeFormatCode?: string | null;
1402
+ }
1403
+ interface ChartAxisNumberFormat {
1404
+ authoredCode: string;
1405
+ sourceLinked?: boolean | null;
1235
1406
  }
1236
1407
  interface SecondaryValueAxis {
1237
1408
  style?: ChartExElementStyle | null;
@@ -1243,6 +1414,7 @@ interface SecondaryValueAxis {
1243
1414
  title: string | null;
1244
1415
  hidden: boolean;
1245
1416
  formatCode?: string | null;
1417
+ numberFormat?: ChartAxisNumberFormat | null;
1246
1418
  displayUnits?: ChartDisplayUnits | null;
1247
1419
  fontColor?: string | null;
1248
1420
  fontPaintAuthored?: boolean | null;
@@ -1337,10 +1509,20 @@ interface ChartLegendEntryOverride {
1337
1509
  fontItalic?: boolean | null;
1338
1510
  }
1339
1511
  //#endregion
1340
- //#region dist/.types-work/hyperlink-BUVsH0z0.d.ts
1512
+ //#region dist/.types-work/hyperlink-BER006VA.d.ts
1341
1513
  type CjkLang = 'kr' | 'sc' | 'tc' | 'hk' | 'jp';
1342
1514
  type CjkFallback = 'auto' | CjkLang;
1515
+ type OoxmlErrorCode = 'encrypted' | 'invalid-password' | 'unsupported-encryption' | 'legacy-binary-format' | 'not-ooxml' | 'unsupported-image-effect' | 'invalid-numbering' | 'unsupported-content';
1343
1516
  type OoxmlErrorStage = 'container' | 'decompression' | 'parsing' | 'serialization' | 'layout' | 'rendering' | 'worker';
1517
+ interface OoxmlUnsupportedContentDetails {
1518
+ readonly format: string;
1519
+ readonly reason: 'source-subset';
1520
+ }
1521
+ declare class OoxmlError extends Error {
1522
+ readonly code: OoxmlErrorCode;
1523
+ readonly details?: OoxmlUnsupportedContentDetails;
1524
+ constructor(code: OoxmlErrorCode, message: string, details?: OoxmlUnsupportedContentDetails);
1525
+ }
1344
1526
  type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
1345
1527
  interface OoxmlResourceUsageSnapshot {
1346
1528
  readonly archiveEntryCount: number;
@@ -1376,6 +1558,12 @@ interface OoxmlResourcePolicySnapshot {
1376
1558
  readonly maxArchiveEntryBytes: number | null;
1377
1559
  readonly maxTotalInflatedBytes: number | null;
1378
1560
  readonly maxArchiveEntries: number | null;
1561
+ readonly xlsxWorksheetLimits?: Readonly<{
1562
+ readonly maxRows: number;
1563
+ readonly maxCells: number;
1564
+ readonly maxOwnedUtf8Bytes: number;
1565
+ readonly maxJsonBytes: number;
1566
+ }>;
1379
1567
  }
1380
1568
  interface OoxmlResourceMetricsCheckpoint {
1381
1569
  readonly name: string;
@@ -1407,7 +1595,13 @@ interface OoxmlResourceLimits {
1407
1595
  maxTotalInflatedBytes?: OoxmlResourceLimit;
1408
1596
  maxArchiveEntries?: OoxmlResourceLimit;
1409
1597
  }
1410
- type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes';
1598
+ interface XlsxWorksheetLimits {
1599
+ maxRows?: number;
1600
+ maxCells?: number;
1601
+ maxOwnedUtf8Bytes?: number;
1602
+ maxJsonBytes?: number;
1603
+ }
1604
+ type OoxmlDecodedImageLimitMetric = 'image-dimension' | 'image-pixels' | 'active-decoded-bytes' | 'image-effect-count' | 'image-effect-work' | 'tiff-lzw-work' | 'metafile-path-commands' | 'metafile-record-points' | 'metafile-record-polygons' | 'metafile-record-rectangles' | 'metafile-record-text-units';
1411
1605
  declare class OoxmlDecodedImageLimitError extends RangeError {
1412
1606
  readonly metric: OoxmlDecodedImageLimitMetric;
1413
1607
  readonly limit: number;
@@ -1425,7 +1619,37 @@ type HyperlinkTarget = {
1425
1619
  slideIndex?: number;
1426
1620
  };
1427
1621
  //#endregion
1428
- //#region dist/.types-work/types-fEjGozew.d.ts
1622
+ //#region dist/.types-work/model-source-BvlR3Xr6.d.ts
1623
+ type ModelSourceTarget = 'docx' | 'xlsx' | 'pptx';
1624
+ type ModelSourceConfigValue = string | number | boolean | null;
1625
+ type ModelSourceConfig = Readonly<Record<string, ModelSourceConfigValue>>;
1626
+ declare const MODEL_SOURCE_MODULE_PROTOCOL = "ooxml-model-source-module/v2";
1627
+ interface ModelSourceModuleDescriptor {
1628
+ readonly protocol: typeof MODEL_SOURCE_MODULE_PROTOCOL;
1629
+ readonly target: ModelSourceTarget;
1630
+ readonly moduleUrl: string;
1631
+ readonly config: ModelSourceConfig;
1632
+ }
1633
+ interface ModelSourceLoad {
1634
+ readonly module: ModelSourceModuleDescriptor;
1635
+ readonly transfer?: readonly Transferable[];
1636
+ release(): void;
1637
+ }
1638
+ interface ModelSource<T extends ModelSourceTarget = ModelSourceTarget> {
1639
+ readonly target: T;
1640
+ claim(bytes: Uint8Array): boolean;
1641
+ beginLoad(): ModelSourceLoad;
1642
+ }
1643
+ interface OpenedModelSource<TArchive> {
1644
+ readonly archive: TArchive;
1645
+ readonly viewDefaults?: Readonly<Record<string, boolean>>;
1646
+ close(): void;
1647
+ }
1648
+ interface ModelSourceModule<TArchive = unknown> {
1649
+ openModelSource(bytes: Uint8Array, config: ModelSourceConfig, signal?: AbortSignal, transfer?: readonly Transferable[]): Promise<OpenedModelSource<TArchive>>;
1650
+ }
1651
+ //#endregion
1652
+ //#region dist/.types-work/types-DD7HF1Wg.d.ts
1429
1653
  interface DocxDocumentModel {
1430
1654
  section: SectionProps;
1431
1655
  body: BodyElement[];
@@ -1450,15 +1674,19 @@ interface EmbeddedFontRef {
1450
1674
  fontKey: string;
1451
1675
  }
1452
1676
  interface DocSettings {
1677
+ doNotUseHtmlParagraphAutoSpacing?: boolean;
1453
1678
  kinsoku?: boolean;
1454
1679
  noLineBreaksBefore?: string;
1455
1680
  noLineBreaksAfter?: string;
1456
1681
  mathDefJc?: string;
1457
1682
  defaultTabStop?: number;
1458
1683
  characterSpacingControl?: string;
1684
+ lineWrapLikeWord6?: boolean;
1685
+ enableOpenTypeFeatures?: boolean;
1459
1686
  useFeLayout?: boolean;
1460
1687
  balanceSingleByteDoubleByteWidth?: boolean;
1461
1688
  adjustLineHeightInTable?: boolean;
1689
+ compatibilityMode?: number;
1462
1690
  }
1463
1691
  interface DocRevision {
1464
1692
  kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
@@ -1568,6 +1796,7 @@ type BodyElement = ({
1568
1796
  type: 'table';
1569
1797
  } & DocTable) | {
1570
1798
  type: 'pageBreak';
1799
+ origin?: 'authored' | 'coverPageSynthetic';
1571
1800
  parity?: 'odd' | 'even';
1572
1801
  sameParagraphAsPrevious?: boolean;
1573
1802
  } | {
@@ -1591,6 +1820,8 @@ interface DocParagraph {
1591
1820
  indentFirst: number;
1592
1821
  spaceBefore: number;
1593
1822
  spaceAfter: number;
1823
+ beforeAutospacing?: boolean;
1824
+ afterAutospacing?: boolean;
1594
1825
  lineSpacing: LineSpacing | null;
1595
1826
  numbering: NumberingInfo | null;
1596
1827
  tabStops: TabStop[];
@@ -1605,6 +1836,8 @@ interface DocParagraph {
1605
1836
  markVanish?: boolean;
1606
1837
  widowControl?: boolean;
1607
1838
  overflowPunct?: boolean;
1839
+ autoSpaceDE?: boolean;
1840
+ autoSpaceDN?: boolean;
1608
1841
  adjustRightInd?: boolean;
1609
1842
  borders?: ParagraphBorders | null;
1610
1843
  styleId?: string | null;
@@ -1678,6 +1911,7 @@ interface NumberingInfo {
1678
1911
  picBulletMimeType?: string;
1679
1912
  picBulletWidthPt?: number;
1680
1913
  picBulletHeightPt?: number;
1914
+ picBulletTransform?: Pick<ImageRun, 'srcRect' | 'rotation' | 'flipH' | 'flipV'>;
1681
1915
  }
1682
1916
  type DocRunContent = ({
1683
1917
  type: 'text';
@@ -1773,6 +2007,8 @@ interface AnchorHostMetrics {
1773
2007
  }
1774
2008
  interface ShapeRun {
1775
2009
  inline?: boolean;
2010
+ inlineOffsetXPt?: number;
2011
+ inlineOffsetYPt?: number;
1776
2012
  widthPt: number;
1777
2013
  heightPt: number;
1778
2014
  anchorXPt: number;
@@ -1793,9 +2029,37 @@ interface ShapeRun {
1793
2029
  groupHeightPt?: number | null;
1794
2030
  behindDoc?: boolean;
1795
2031
  zOrder: number;
2032
+ vmlShadow?: {
2033
+ kind: 'single' | 'double' | 'emboss' | 'perspective';
2034
+ color: string;
2035
+ color2: string;
2036
+ offset: {
2037
+ xPt: number;
2038
+ yPt: number;
2039
+ xFraction: number;
2040
+ yFraction: number;
2041
+ };
2042
+ offset2: {
2043
+ xPt: number;
2044
+ yPt: number;
2045
+ xFraction: number;
2046
+ yFraction: number;
2047
+ };
2048
+ opacity: number;
2049
+ obscured: boolean;
2050
+ origin: [number, number];
2051
+ matrix: [number, number, number, number, number, number];
2052
+ absolutePerspective: boolean;
2053
+ };
1796
2054
  subpaths: PathCmd$1[][];
2055
+ subpathPaint?: Array<{
2056
+ fillRule?: 'nonzero' | 'evenodd';
2057
+ fill?: 'none' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess';
2058
+ stroke?: false;
2059
+ }>;
1797
2060
  presetGeometry?: string | null;
1798
2061
  adjValues?: Array<number | null>;
2062
+ vmlPicture?: Pick<ImageRun, 'imagePath' | 'mimeType' | 'srcRect' | 'colorReplaceFrom' | 'duotone'>;
1799
2063
  fill: ShapeFill$1 | null;
1800
2064
  stroke: string | null;
1801
2065
  strokeWidth?: number;
@@ -1825,11 +2089,13 @@ interface ShapeRun {
1825
2089
  defaultTextColor?: string | null;
1826
2090
  textAnchor?: string | null;
1827
2091
  textAutofit?: string | null;
2092
+ textWrap?: string | null;
1828
2093
  textInsetL?: number;
1829
2094
  textInsetT?: number;
1830
2095
  textInsetR?: number;
1831
2096
  textInsetB?: number;
1832
2097
  textVert?: string | null;
2098
+ textUpright?: boolean | null;
1833
2099
  textPath?: TextPath | null;
1834
2100
  fillOpacity?: number | null;
1835
2101
  }
@@ -1857,6 +2123,7 @@ interface ShapeTextRun$1 {
1857
2123
  interface ShapeText$1 {
1858
2124
  text: string;
1859
2125
  fontSizePt: number;
2126
+ defaultFontSize?: number;
1860
2127
  color?: string | null;
1861
2128
  paragraphMarkColor?: string | null;
1862
2129
  fontFamily?: string | null;
@@ -1867,6 +2134,8 @@ interface ShapeText$1 {
1867
2134
  alignment: string;
1868
2135
  spaceBefore?: number;
1869
2136
  spaceAfter?: number;
2137
+ beforeAutospacing?: boolean;
2138
+ afterAutospacing?: boolean;
1870
2139
  lineSpacingVal?: number;
1871
2140
  lineSpacingRule?: string;
1872
2141
  indentLeft?: number;
@@ -1903,6 +2172,20 @@ type ShapeFill$1 = {
1903
2172
  preset: string;
1904
2173
  } | {
1905
2174
  fillType: 'image';
2175
+ vml?: {
2176
+ repeat: boolean;
2177
+ size: [{
2178
+ value: number;
2179
+ fraction: boolean;
2180
+ }, {
2181
+ value: number;
2182
+ fraction: boolean;
2183
+ }] | null;
2184
+ origin: [number, number];
2185
+ position: [number, number];
2186
+ aspect: string;
2187
+ alignShape: boolean;
2188
+ };
1906
2189
  imagePath: string;
1907
2190
  mimeType: string;
1908
2191
  svgImagePath?: string;
@@ -1916,6 +2199,7 @@ type ShapeFill$1 = {
1916
2199
  tile?: TileInfo;
1917
2200
  alpha?: number;
1918
2201
  duotone?: Duotone$1;
2202
+ blipEffects?: BlipEffect[];
1919
2203
  };
1920
2204
  type ShapeStrokeFill = {
1921
2205
  fillType: 'gradient';
@@ -2006,6 +2290,7 @@ interface DocxTextRun {
2006
2290
  interface NoteRef {
2007
2291
  kind: 'footnote' | 'endnote' | string;
2008
2292
  id: string;
2293
+ customMarkFollows?: boolean;
2009
2294
  }
2010
2295
  interface RunRevision {
2011
2296
  kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
@@ -2041,6 +2326,7 @@ interface ImageRun {
2041
2326
  anchorYFromPara?: boolean;
2042
2327
  colorReplaceFrom?: string;
2043
2328
  duotone?: Duotone$1;
2329
+ blipEffects?: BlipEffect[];
2044
2330
  alpha?: number;
2045
2331
  wrapMode?: string;
2046
2332
  distTop?: number;
@@ -2120,10 +2406,13 @@ interface DocTableCell {
2120
2406
  vAlign: 'top' | 'center' | 'bottom';
2121
2407
  widthPt: number | null;
2122
2408
  widthPct?: number;
2409
+ noWrap?: boolean;
2123
2410
  marginTop?: number | null;
2124
2411
  marginBottom?: number | null;
2125
2412
  marginLeft?: number | null;
2126
2413
  marginRight?: number | null;
2414
+ textDirection?: string;
2415
+ hideMark?: boolean;
2127
2416
  }
2128
2417
  interface CellBorders {
2129
2418
  top: BorderSpec | null;
@@ -2132,6 +2421,8 @@ interface CellBorders {
2132
2421
  right: BorderSpec | null;
2133
2422
  insideH: BorderSpec | null;
2134
2423
  insideV: BorderSpec | null;
2424
+ tl2br?: BorderSpec;
2425
+ tr2bl?: BorderSpec;
2135
2426
  }
2136
2427
  interface DocxStorySource {
2137
2428
  story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
@@ -2143,10 +2434,12 @@ interface DocxTextRunInfo {
2143
2434
  paragraphId?: string;
2144
2435
  sourceRunIndex?: number;
2145
2436
  direction?: 'ltr' | 'rtl';
2437
+ optionalHyphenGlyph?: true;
2146
2438
  text: string;
2147
2439
  x: number;
2148
2440
  y: number;
2149
2441
  w: number;
2442
+ trailingSpaceCompressionPx?: number;
2150
2443
  h: number;
2151
2444
  highlightBounds?: Readonly<{
2152
2445
  x: number;
@@ -2162,13 +2455,22 @@ interface DocxTextRunInfo {
2162
2455
  eastAsianVert?: boolean;
2163
2456
  }
2164
2457
  //#endregion
2165
- //#region dist/.types-work/types-B8-0I5kb.d.ts
2458
+ //#region dist/.types-work/types-BYMzwltM.d.ts
2166
2459
  interface Paragraph extends Paragraph$1 {
2460
+ mathFallbacks?: {
2461
+ start: number;
2462
+ end: number;
2463
+ text: string;
2464
+ }[];
2167
2465
  eaLnBrk: boolean;
2466
+ fontAlgn?: 't' | 'ctr' | 'b';
2168
2467
  defTabSz?: number;
2169
2468
  }
2170
2469
  interface TextBody extends TextBody$1 {
2171
2470
  rtlCol?: boolean;
2471
+ spcFirstLastPara?: boolean;
2472
+ anchorCtr?: boolean;
2473
+ compatLnSpc?: boolean;
2172
2474
  textWarp?: {
2173
2475
  preset: string;
2174
2476
  adj?: number[];
@@ -2186,6 +2488,12 @@ interface Presentation {
2186
2488
  folHlinkColor?: string;
2187
2489
  }
2188
2490
  interface Slide {
2491
+ theme?: {
2492
+ defaultTextColor: string | null;
2493
+ majorFont: string | null;
2494
+ minorFont: string | null;
2495
+ hlinkColor: string | null;
2496
+ };
2189
2497
  index: number;
2190
2498
  slideNumber: number;
2191
2499
  partName?: string;
@@ -2254,7 +2562,13 @@ interface MediaElement {
2254
2562
  mediaPath: string;
2255
2563
  mimeType: string;
2256
2564
  }
2565
+ interface EquationBranchFallback {
2566
+ elements: SlideElement[];
2567
+ before: number;
2568
+ after: number;
2569
+ }
2257
2570
  interface ShapeElement {
2571
+ mathFallback?: EquationBranchFallback;
2258
2572
  type: 'shape';
2259
2573
  x: number;
2260
2574
  y: number;
@@ -2269,6 +2583,10 @@ interface ShapeElement {
2269
2583
  textBody: TextBody | null;
2270
2584
  defaultTextColor: string | null;
2271
2585
  custGeom: PathCmd$2[][] | null;
2586
+ custGeomPaint?: {
2587
+ fill: string | null;
2588
+ stroke: boolean;
2589
+ }[];
2272
2590
  adj: number | null;
2273
2591
  adj2: number | null;
2274
2592
  adj3: number | null;
@@ -2332,6 +2650,8 @@ interface Sp3d {
2332
2650
  bevelB?: Bevel3d;
2333
2651
  }
2334
2652
  interface TableElement {
2653
+ mathFallback?: EquationBranchFallback;
2654
+ background?: Fill;
2335
2655
  type: 'table';
2336
2656
  id?: string;
2337
2657
  x: number;
@@ -2351,6 +2671,7 @@ interface TableRow {
2351
2671
  }
2352
2672
  interface TableCell {
2353
2673
  textBody: TextBody | null;
2674
+ horzOverflow?: 'clip' | 'overflow';
2354
2675
  fill: Fill | null;
2355
2676
  textColor?: string;
2356
2677
  borderL: Stroke | null;
@@ -2392,6 +2713,7 @@ interface PictureElement {
2392
2713
  intrinsicWidthPx?: number;
2393
2714
  intrinsicHeightPx?: number;
2394
2715
  stroke: Stroke | null;
2716
+ fill?: Fill;
2395
2717
  prstGeom?: string;
2396
2718
  prstAdjust?: number[];
2397
2719
  srcRect?: {
@@ -2402,6 +2724,7 @@ interface PictureElement {
2402
2724
  };
2403
2725
  alpha?: number;
2404
2726
  duotone?: Duotone$1;
2727
+ blipEffects?: BlipEffect[];
2405
2728
  custGeom?: PathCmd$2[][] | null;
2406
2729
  shadow?: Shadow;
2407
2730
  innerShadow?: Shadow;
@@ -2412,7 +2735,7 @@ interface PictureElement {
2412
2735
  sp3d?: Sp3d;
2413
2736
  }
2414
2737
  //#endregion
2415
- //#region dist/.types-work/types-VRdpmXrR.d.ts
2738
+ //#region dist/.types-work/types-_hQx9Nud.d.ts
2416
2739
  type ShapeFill = Exclude<Fill, {
2417
2740
  fillType: 'image';
2418
2741
  } | {
@@ -2457,6 +2780,8 @@ interface Worksheet {
2457
2780
  colCollapsed?: Record<number, boolean>;
2458
2781
  colHidden?: Record<number, boolean>;
2459
2782
  defaultColWidth: number;
2783
+ baseColWidth?: number;
2784
+ defaultColWidthIsUi?: boolean;
2460
2785
  defaultRowHeight: number;
2461
2786
  defaultRowHeightCustom?: boolean;
2462
2787
  mergeCells: MergeCell[];
@@ -2484,6 +2809,11 @@ interface Worksheet {
2484
2809
  sparklineGroups?: SparklineGroup[];
2485
2810
  defaultFontFamily?: string;
2486
2811
  defaultFontSize?: number;
2812
+ defaultFontBold?: boolean;
2813
+ defaultFontItalic?: boolean;
2814
+ normalFontSize?: number;
2815
+ themeJapaneseMajorFont?: string;
2816
+ themeJapaneseMinorFont?: string;
2487
2817
  date1904?: boolean;
2488
2818
  parseError?: string;
2489
2819
  }
@@ -2501,6 +2831,27 @@ interface PivotTableMetadata {
2501
2831
  cacheSource?: PivotCacheSource;
2502
2832
  status: PivotMetadataStatus;
2503
2833
  extensionUris?: string[];
2834
+ style?: PivotTableStyle;
2835
+ rowItems?: PivotAxisItem[];
2836
+ columnItems?: PivotAxisItem[];
2837
+ }
2838
+ interface PivotTableStyle {
2839
+ name: string;
2840
+ showRowHeaders: boolean;
2841
+ showColumnHeaders: boolean;
2842
+ showRowStripes: boolean;
2843
+ showColumnStripes: boolean;
2844
+ showLastColumn: boolean;
2845
+ elements: PivotTableStyleElement[];
2846
+ }
2847
+ interface PivotTableStyleElement {
2848
+ kind: string;
2849
+ size: number;
2850
+ dxf: Dxf;
2851
+ }
2852
+ interface PivotAxisItem {
2853
+ kind: string;
2854
+ depth: number;
2504
2855
  }
2505
2856
  interface PivotLocation extends WorksheetCellRange {
2506
2857
  firstHeaderRow: number;
@@ -2662,6 +3013,8 @@ interface TableInfo {
2662
3013
  lastColumnDxf?: number;
2663
3014
  band1HorizontalDxf?: number;
2664
3015
  band2HorizontalDxf?: number;
3016
+ styleElements?: PivotTableStyleElement[];
3017
+ styleError?: string;
2665
3018
  columns: TableColumnInfo[];
2666
3019
  }
2667
3020
  interface TableColumnInfo {
@@ -2718,6 +3071,7 @@ interface ChartAnchor {
2718
3071
  toRowOff: number;
2719
3072
  chart: ChartModel;
2720
3073
  }
3074
+ type DrawingAnchorTag = 'oneCellAnchor' | 'twoCellAnchor';
2721
3075
  interface ShapeAnchor {
2722
3076
  fromCol: number;
2723
3077
  fromColOff: number;
@@ -2730,6 +3084,9 @@ interface ShapeAnchor {
2730
3084
  editAs?: string;
2731
3085
  nativeExtCx: number;
2732
3086
  nativeExtCy: number;
3087
+ anchorTag?: DrawingAnchorTag;
3088
+ anchorExtCx?: number;
3089
+ anchorExtCy?: number;
2733
3090
  shapes: ShapeInfo[];
2734
3091
  }
2735
3092
  interface ShapeInfo {
@@ -2766,6 +3123,9 @@ interface ShapeInfo {
2766
3123
  text?: ShapeText;
2767
3124
  }
2768
3125
  interface ShapeText {
3126
+ vert?: string;
3127
+ anchorCtr?: boolean;
3128
+ spcFirstLastPara?: boolean;
2769
3129
  anchor: string;
2770
3130
  wrap: string;
2771
3131
  autoFit?: string;
@@ -2783,7 +3143,14 @@ interface ShapeParagraph {
2783
3143
  marL?: number;
2784
3144
  marR?: number;
2785
3145
  indent?: number;
3146
+ defTabSz?: number;
3147
+ tabStops?: {
3148
+ pos: number;
3149
+ algn: string;
3150
+ }[];
2786
3151
  spaceLine?: SpaceLine | null;
3152
+ spaceBefore?: SpaceLine | null;
3153
+ spaceAfter?: SpaceLine | null;
2787
3154
  runs: ShapeTextRun[];
2788
3155
  }
2789
3156
  type ShapeTextRun = {
@@ -2792,6 +3159,7 @@ type ShapeTextRun = {
2792
3159
  bold: boolean;
2793
3160
  italic: boolean;
2794
3161
  size: number;
3162
+ spacing?: number;
2795
3163
  color?: string;
2796
3164
  fontFace?: string;
2797
3165
  fontFaceEa?: string;
@@ -2825,6 +3193,7 @@ type ShapeGeom = {
2825
3193
  };
2826
3194
  alpha?: number;
2827
3195
  duotone?: Duotone;
3196
+ blipEffects?: BlipEffect[];
2828
3197
  };
2829
3198
  interface Duotone {
2830
3199
  clr1: string;
@@ -2833,6 +3202,8 @@ interface Duotone {
2833
3202
  interface PathInfo {
2834
3203
  w: number;
2835
3204
  h: number;
3205
+ fill?: 'none' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess';
3206
+ stroke?: false;
2836
3207
  commands: PathCmd[];
2837
3208
  }
2838
3209
  type PathCmd = {
@@ -2877,8 +3248,14 @@ interface ImageAnchor {
2877
3248
  toRow: number;
2878
3249
  toRowOff: number;
2879
3250
  editAs?: string;
3251
+ anchorTag?: DrawingAnchorTag;
3252
+ anchorExtCx?: number;
3253
+ anchorExtCy?: number;
2880
3254
  nativeExtCx: number;
2881
3255
  nativeExtCy: number;
3256
+ rotation?: number;
3257
+ flipH?: boolean;
3258
+ flipV?: boolean;
2882
3259
  imagePath: string;
2883
3260
  mimeType: string;
2884
3261
  svgImagePath?: string;
@@ -2890,6 +3267,7 @@ interface ImageAnchor {
2890
3267
  };
2891
3268
  alpha?: number;
2892
3269
  duotone?: Duotone;
3270
+ blipEffects?: BlipEffect[];
2893
3271
  }
2894
3272
  interface WorksheetCellRange {
2895
3273
  top: number;
@@ -2914,6 +3292,7 @@ type CfRule = {
2914
3292
  formulas: string[];
2915
3293
  dxfId: number | null;
2916
3294
  priority: number;
3295
+ stopIfTrue?: boolean;
2917
3296
  } | {
2918
3297
  type: 'expression';
2919
3298
  formula: string;
@@ -2924,6 +3303,8 @@ type CfRule = {
2924
3303
  type: 'colorScale';
2925
3304
  stops: CfStop[];
2926
3305
  priority: number;
3306
+ activeFormula?: string;
3307
+ stopIfTrue?: boolean;
2927
3308
  } | {
2928
3309
  type: 'dataBar';
2929
3310
  color: string;
@@ -2931,6 +3312,9 @@ type CfRule = {
2931
3312
  max: CfValue;
2932
3313
  priority: number;
2933
3314
  gradient: boolean;
3315
+ activeFormula?: string;
3316
+ extThresholdFormula?: boolean;
3317
+ stopIfTrue?: boolean;
2934
3318
  } | {
2935
3319
  type: 'top10';
2936
3320
  top: boolean;
@@ -2938,6 +3322,7 @@ type CfRule = {
2938
3322
  rank: number;
2939
3323
  dxfId: number | null;
2940
3324
  priority: number;
3325
+ stopIfTrue?: boolean;
2941
3326
  } | {
2942
3327
  type: 'aboveAverage';
2943
3328
  aboveAverage: boolean;
@@ -2945,6 +3330,7 @@ type CfRule = {
2945
3330
  stdDev?: number;
2946
3331
  dxfId: number | null;
2947
3332
  priority: number;
3333
+ stopIfTrue?: boolean;
2948
3334
  } | {
2949
3335
  type: 'iconSet';
2950
3336
  iconSet: string;
@@ -2952,10 +3338,14 @@ type CfRule = {
2952
3338
  reverse: boolean;
2953
3339
  priority: number;
2954
3340
  customIcons?: CfIcon[];
3341
+ activeFormula?: string;
3342
+ stopIfTrue?: boolean;
2955
3343
  } | {
2956
3344
  type: 'other';
2957
3345
  kind: string;
2958
3346
  priority: number;
3347
+ unsupportedFormulaPhases?: number;
3348
+ stopIfTrue?: boolean;
2959
3349
  };
2960
3350
  interface CfIcon {
2961
3351
  iconSet: string;
@@ -3038,6 +3428,7 @@ interface RunFont {
3038
3428
  name?: string | null;
3039
3429
  underlineStyle?: string;
3040
3430
  vertAlign?: 'superscript' | 'subscript';
3431
+ normalColor?: boolean;
3041
3432
  }
3042
3433
  interface SharedString {
3043
3434
  text: string;
@@ -3062,6 +3453,14 @@ interface Dxf {
3062
3453
  fill: CellFill | null;
3063
3454
  border: Border | null;
3064
3455
  numFmt?: NumFmt | null;
3456
+ fontToggles?: DxfFontToggles;
3457
+ }
3458
+ interface DxfFontToggles {
3459
+ bold?: boolean;
3460
+ italic?: boolean;
3461
+ underline?: boolean;
3462
+ strike?: boolean;
3463
+ automaticColor?: boolean;
3065
3464
  }
3066
3465
  interface CellFont {
3067
3466
  bold: boolean;
@@ -3071,6 +3470,8 @@ interface CellFont {
3071
3470
  size: number;
3072
3471
  color: string | null;
3073
3472
  name: string | null;
3473
+ scheme?: 'major' | 'minor';
3474
+ charset?: number;
3074
3475
  underlineStyle?: string;
3075
3476
  vertAlign?: 'superscript' | 'subscript';
3076
3477
  }
@@ -3118,16 +3519,22 @@ interface CellXf {
3118
3519
  textRotation?: number;
3119
3520
  shrinkToFit?: boolean;
3120
3521
  readingOrder?: number;
3522
+ ownFontColor?: boolean;
3121
3523
  }
3122
3524
  interface ParsedWorkbook {
3123
3525
  workbook: Workbook;
3124
3526
  styles: Styles;
3125
3527
  sharedStrings: SharedString[];
3528
+ layoutMetrics?: {
3529
+ maximumDigitWidth: number;
3530
+ };
3126
3531
  }
3127
3532
  //#endregion
3128
3533
  //#region dist/.types-work/node.d.ts
3129
3534
  interface OoxmlNodeSessionOptions {
3535
+ password?: string;
3130
3536
  resourceLimits?: OoxmlResourceLimits;
3537
+ xlsxWorksheetLimits?: XlsxWorksheetLimits;
3131
3538
  maxZipEntryBytes?: number;
3132
3539
  debug?: boolean;
3133
3540
  onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
@@ -3169,6 +3576,7 @@ declare function renderSlideNode(canvas: NodeCanvasLike, presentation: Presentat
3169
3576
  }): Promise<void>;
3170
3577
  type OpenPptxPresentationOptions = OoxmlNodeSessionOptions & {
3171
3578
  cjkFallback?: CjkFallback;
3579
+ legacyPpt?: ModelSource<'pptx'>;
3172
3580
  };
3173
3581
  interface PptxSessionRenderOptions {
3174
3582
  readonly width?: number;
@@ -3189,9 +3597,11 @@ interface PptxPresentationSession extends AsyncIterable<Slide> {
3189
3597
  declare function openPptxPresentation(buffer: ArrayBuffer | Uint8Array, options?: OpenPptxPresentationOptions): Promise<PptxPresentationSession>;
3190
3598
  declare function materializePptxPresentation(buffer: ArrayBuffer | Uint8Array, options?: OpenPptxPresentationOptions): Promise<Presentation>;
3191
3599
  interface OpenDocxDocumentOptions extends OoxmlNodeSessionOptions {
3600
+ legacyDoc?: ModelSource<'docx'>;
3192
3601
  cjkFallback?: CjkFallback;
3193
3602
  factory: NodeCanvasFactory;
3194
3603
  currentDate?: Date | number;
3604
+ allowFootnoteContinuation?: boolean;
3195
3605
  }
3196
3606
  interface DocxPageRenderOptions {
3197
3607
  width?: number;
@@ -3217,14 +3627,17 @@ interface DocxDocumentSession extends AsyncIterable<DocxRenderedPage> {
3217
3627
  close(): Promise<void>;
3218
3628
  }
3219
3629
  declare function openDocxDocument(buffer: ArrayBuffer | Uint8Array, options: OpenDocxDocumentOptions): Promise<DocxDocumentSession>;
3220
- declare function materializeDocxDocument(buffer: ArrayBuffer | Uint8Array, options?: OoxmlNodeSessionOptions): Promise<DocxDocumentModel>;
3630
+ declare function materializeDocxDocument(buffer: ArrayBuffer | Uint8Array, options?: OoxmlNodeSessionOptions & Pick<OpenDocxDocumentOptions, 'legacyDoc'>): Promise<DocxDocumentModel>;
3221
3631
  type DeepReadonly<T> = T extends ((...args: never[]) => unknown) ? T : T extends readonly (infer TValue)[] ? readonly DeepReadonly<TValue>[] : T extends object ? { readonly [TKey in keyof T]: DeepReadonly<T[TKey]>; } : T;
3222
3632
  type ReadonlyParsedWorkbook = DeepReadonly<ParsedWorkbook>;
3223
3633
  interface MaterializedXlsxWorkbook {
3224
3634
  readonly workbookIndex: ParsedWorkbook;
3225
3635
  readonly worksheets: readonly Worksheet[];
3226
3636
  }
3227
- type OpenXlsxWorkbookOptions = OoxmlNodeSessionOptions;
3637
+ type OpenXlsxWorkbookOptions = OoxmlNodeSessionOptions & {
3638
+ readonly legacyXls?: ModelSource<'xlsx'>;
3639
+ readonly factory?: NodeCanvasFactory;
3640
+ };
3228
3641
  type XlsxWorksheetRowChunk = {
3229
3642
  readonly kind: 'rows';
3230
3643
  readonly rows: Row[];
@@ -3251,4 +3664,4 @@ declare function materializeXlsxWorkbookIndex(buffer: ArrayBuffer | Uint8Array,
3251
3664
  declare function materializeXlsxWorksheet(buffer: ArrayBuffer | Uint8Array, sheetIndex: number, options?: OpenXlsxWorkbookOptions): Promise<Worksheet>;
3252
3665
  declare function materializeXlsxWorkbook(buffer: ArrayBuffer | Uint8Array, options?: OpenXlsxWorkbookOptions): Promise<MaterializedXlsxWorkbook>;
3253
3666
  //#endregion
3254
- export { type DeepReadonly, type DocxDocumentSession, type DocxPageRenderOptions, type DocxRenderedPage, type MaterializedXlsxWorkbook, type NodeCanvasFactory, type NodeCanvasLike, type NodeImageLike, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, type OoxmlNodeSessionOptions, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OpenDocxDocumentOptions, type OpenPptxPresentationOptions, type OpenXlsxWorkbookOptions, type PptxPresentationSession, type PptxSessionRenderOptions, type ReadonlyParsedWorkbook, type XlsxWorkbookSession, type XlsxWorksheetRowChunk, installImageBitmapShim, installOffscreenCanvasShim, isOoxmlDecodedImageLimitError, materializeDocxDocument, materializePptxPresentation, materializeXlsxWorkbook, materializeXlsxWorkbookIndex, materializeXlsxWorksheet, openDocxDocument, openPptxPresentation, openXlsxWorkbook, renderSlideNode };
3667
+ export { type DeepReadonly, type DocxDocumentSession, type DocxPageRenderOptions, type DocxRenderedPage, type MaterializedXlsxWorkbook, type ModelSource, type ModelSourceConfig, type ModelSourceConfigValue, type ModelSourceLoad, type ModelSourceModule, type ModelSourceModuleDescriptor, type ModelSourceTarget, type NodeCanvasFactory, type NodeCanvasLike, type NodeImageLike, OoxmlDecodedImageLimitError, type OoxmlDecodedImageLimitMetric, OoxmlError, type OoxmlErrorCode, type OoxmlNodeSessionOptions, type OoxmlResourceLimit, OoxmlResourceLimitError, type OoxmlResourceLimitErrorDetails, type OoxmlResourceLimits, type OoxmlResourceMetrics, type OoxmlResourceMetricsCheckpoint, type OoxmlResourcePolicySnapshot, type OoxmlResourceUsageSnapshot, type OoxmlUnsupportedContentDetails, type OpenDocxDocumentOptions, type OpenPptxPresentationOptions, type OpenXlsxWorkbookOptions, type OpenedModelSource, type PptxPresentationSession, type PptxSessionRenderOptions, type ReadonlyParsedWorkbook, type XlsxWorkbookSession, type XlsxWorksheetLimits, type XlsxWorksheetRowChunk, installImageBitmapShim, installOffscreenCanvasShim, isOoxmlDecodedImageLimitError, materializeDocxDocument, materializePptxPresentation, materializeXlsxWorkbook, materializeXlsxWorkbookIndex, materializeXlsxWorksheet, openDocxDocument, openPptxPresentation, openXlsxWorkbook, renderSlideNode };