@silurus/ooxml 0.87.0 → 0.89.0

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 (128) hide show
  1. package/README.md +118 -23
  2. package/THIRD_PARTY_NOTICES.md +7 -6
  3. package/dist/abort-VrnK7mdP.js +10 -0
  4. package/dist/assets/render-worker-CUOU6mL2.js +16 -0
  5. package/dist/assets/render-worker-DOqrFhSU.js +15 -0
  6. package/dist/assets/render-worker-DvWUdZUN.js +35 -0
  7. package/dist/bounded-raw-part-cache-B7JoC1CD.js +64586 -0
  8. package/dist/bundled-asset-url-E2nXURF9.js +15 -0
  9. package/dist/canvas-viewer-mechanics-DfQqRKkD.js +675 -0
  10. package/dist/cfb-guard-9QTRTg7f.js +528 -0
  11. package/dist/chart-ex.mjs +708 -739
  12. package/dist/comment-overlay-controller-B5_zGgG5.js +994 -0
  13. package/dist/comment-ui-runtime-B7ZvovcS.js +2 -0
  14. package/dist/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-D_sb2K6s.js} +5 -5
  15. package/dist/{comment-ui-runtime-BfE7MJZn.js → comment-ui-runtime-Jy-3goA9.js} +5 -5
  16. package/dist/delimited-text-worker-host-CikWU6_m.js +27 -0
  17. package/dist/document-model-source-BKNrXjAL.js +249 -0
  18. package/dist/document-pull-client-CxONDGbk.js +37833 -0
  19. package/dist/document-pull-worker-AMyXYpPq.js +104 -0
  20. package/dist/docx-D91ER1_S.js +495 -0
  21. package/dist/docx-DhDnKEI6.js +3563 -0
  22. package/dist/docx-model-source-CdrSt3hF.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-ChcGZNd8.js +310 -0
  27. package/dist/duotone-ekYik4ix.js +126 -0
  28. package/dist/emf-UT6I8rVi.js +1790 -0
  29. package/dist/font-preload-demand-CdJZUMCT.js +2058 -0
  30. package/dist/grid-geometry-uQOgViJU.js +384 -0
  31. package/dist/host-layout-DVMw8hDY.js +56 -0
  32. package/dist/host-layout-measure-CCEgaC_v.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-CPOV6csk.js +2716 -0
  37. package/dist/math.mjs +2 -2
  38. package/dist/mathjax-stix2.js +10 -10
  39. package/dist/model-source-DJGzDtGb.js +61 -0
  40. package/dist/model-source-kz_NkZqT.js +179 -0
  41. package/dist/model-source-session-Bu9CHFHc.js +71 -0
  42. package/dist/model-source-session-CDuijwv1.js +85 -0
  43. package/dist/model-source-session-sKpNiIJI.js +58 -0
  44. package/dist/node.mjs +7 -1327
  45. package/dist/{pixel-budget-Dgjw269h.js → pixel-budget-BpTYrepD.js} +13 -10
  46. package/dist/plot-area-frame-CaJFvZ7p.js +8502 -0
  47. package/dist/pptx-CDP9dZHe.js +2936 -0
  48. package/dist/pptx-C_uxLVKB.js +183 -0
  49. package/dist/pptx-model-source-O7LhpOjz.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-tmROzteR.js +77 -0
  54. package/dist/raster-target-YQ4G6rxo.js +42 -0
  55. package/dist/region-map.mjs +114 -150
  56. package/dist/{render-8Zo7dnds.js → render-CJVglUHl.js} +3 -3
  57. package/dist/{render-worker-host-BfbnEChF.js → render-worker-host-BseIaVvm.js} +1 -1
  58. package/dist/{render-worker-host-DNL9dWRh.js → render-worker-host-CyxPU4JU.js} +1 -1
  59. package/dist/{render-worker-host-IkHrYOci.js → render-worker-host-aF6aWkC0.js} +1 -1
  60. package/dist/renderer-CkGLj0CC.js +5170 -0
  61. package/dist/renderer-Czw1cCC7.js +5823 -0
  62. package/dist/resource-measurement-mXw-WjMF.js +771 -0
  63. package/dist/session-Csv9maad.js +656 -0
  64. package/dist/slide-pull-client-DRZYwBTu.js +6515 -0
  65. package/dist/three-d-BK5siJgJ.js +878 -0
  66. package/dist/three-d.mjs +871 -764
  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 +289 -4
  70. package/dist/types/docx.d.ts +473 -98
  71. package/dist/types/index.d.ts +674 -303
  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 +530 -11
  75. package/dist/types/pptx.d.ts +410 -97
  76. package/dist/types/region-map.d.ts +289 -4
  77. package/dist/types/three-d.d.ts +289 -4
  78. package/dist/types/tiff.d.ts +1 -1
  79. package/dist/types/xlsx.d.ts +483 -134
  80. package/dist/wasm-loader-rlgHmcSv.js +35 -0
  81. package/dist/wasm-runtime-generation-DX4y0Ecl.js +97 -0
  82. package/dist/workbook-model-source-BTC4ISTS.js +94 -0
  83. package/dist/worker-source-I1cIYBel.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-CkHgbtyM.js +579 -0
  87. package/dist/xlsx-CpSDPAEU.js +5809 -0
  88. package/dist/xlsx-D5569TPf.js +534 -0
  89. package/dist/xlsx-model-source-DPSkjFic.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-CeK_iqK3.js +0 -10
  95. package/dist/assets/render-worker-DusrDhPk.js +0 -11
  96. package/dist/assets/render-worker-n2ZG0lrQ.js +0 -31
  97. package/dist/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  98. package/dist/canvas-viewer-mechanics-Cpk0YFvM.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-yKxI8aDH.js +0 -27251
  105. package/dist/docx-BkSRiy07.js +0 -2995
  106. package/dist/dom-interaction-boundary-CBUQJsIM.js +0 -223
  107. package/dist/highlight-rect-C5hkRqUr.js +0 -13
  108. package/dist/hyperlink-ArrU3ArU.js +0 -36447
  109. package/dist/line-distribute-Dtudnqhs.js +0 -1023
  110. package/dist/line-metrics-B60C86uh.js +0 -60
  111. package/dist/plot-area-frame-D5hEOgkJ.js +0 -2903
  112. package/dist/pptx-62MmVbYB.js +0 -3063
  113. package/dist/renderer-XFSCOT6m.js +0 -5857
  114. package/dist/resource-measurement-CJsgolre.js +0 -150
  115. package/dist/session-CrU8f8DI.js +0 -743
  116. package/dist/slide-pull-client-B9KA8bU6.js +0 -6253
  117. package/dist/source-key-DIJG8BA0.js +0 -42
  118. package/dist/three-d-YYghQndN.js +0 -1346
  119. package/dist/transfer-p6iCC2R7.js +0 -6
  120. package/dist/units-EJdC96r6.js +0 -4
  121. package/dist/worksheet-pull-client-eIcQ-xlD.js +0 -458
  122. package/dist/xlsx-CRcSzZNq.js +0 -8482
  123. /package/dist/{chunk-DmhlhrBa.js → chunk-Dy4uBu1J.js} +0 -0
  124. /package/dist/{mathjax-DoyWZbSp.js → mathjax-BhwN6ilc.js} +0 -0
  125. /package/dist/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-PidH0wnP.js} +0 -0
  126. /package/dist/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-B52rDVKo.js} +0 -0
  127. /package/dist/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-CWM7jv6d.js} +0 -0
  128. /package/dist/{visible-index-BgiHEc1z.js → visible-index-FeVA0mGE.js} +0 -0
@@ -1,4 +1,4 @@
1
- //#region dist/.types-work/chart-IZnSIPIJ.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;
@@ -416,7 +572,9 @@ interface ChartSeries {
416
572
  markerFill?: string | null;
417
573
  markerFillPaint?: Fill | null;
418
574
  markerFillPaintAuthored?: boolean | null;
575
+ markerStyle?: ChartExElementStyle | null;
419
576
  markerLine?: string | null;
577
+ markerLinePaintAuthored?: boolean | null;
420
578
  markerLineWidthEmu?: number | null;
421
579
  dataPointOverrides?: ChartDataPointOverride[] | null;
422
580
  dataLabelOverrides?: ChartDataLabelOverride[] | null;
@@ -430,6 +588,7 @@ interface ChartSeries {
430
588
  lineHidden?: boolean | null;
431
589
  }
432
590
  interface ChartTrendline {
591
+ style?: ChartExElementStyle | null;
433
592
  name?: string | null;
434
593
  trendlineType: string;
435
594
  order?: number | null;
@@ -468,6 +627,7 @@ interface ChartTrendline {
468
627
  lineWidthEmu?: number | null;
469
628
  lineDash?: string | null;
470
629
  lineHidden?: boolean | null;
630
+ linePaintAuthored?: boolean | null;
471
631
  }
472
632
  interface ChartDataPointOverride {
473
633
  idx: number;
@@ -483,7 +643,9 @@ interface ChartDataPointOverride {
483
643
  markerFill?: string;
484
644
  markerFillPaint?: Fill | null;
485
645
  markerFillPaintAuthored?: boolean | null;
646
+ markerStyle?: ChartExElementStyle | null;
486
647
  markerLine?: string;
648
+ markerLinePaintAuthored?: boolean | null;
487
649
  markerLineWidthEmu?: number;
488
650
  bubble3D?: boolean | null;
489
651
  explosion?: number;
@@ -525,8 +687,12 @@ interface ChartDataLabelOverride {
525
687
  deleted?: boolean;
526
688
  }
527
689
  interface ChartLabelBox {
690
+ style?: ChartExElementStyle | null;
691
+ effectFallbackStyle?: ChartExElementStyle | null;
692
+ effectStyleIndex?: number;
693
+ effectFallbackIndex?: number;
528
694
  fill?: string;
529
- fillPaint?: SolidFill | GradientFill | PatternFill | null;
695
+ fillPaint?: Fill | null;
530
696
  fillHidden?: boolean | null;
531
697
  fillPaintAuthored?: boolean | null;
532
698
  borderColor?: string;
@@ -577,8 +743,11 @@ interface ChartSeriesDataLabels {
577
743
  leaderLineWidthEmu?: number;
578
744
  leaderLineHidden?: boolean;
579
745
  leaderLineDash?: string;
746
+ leaderLinePaintAuthored?: boolean | null;
747
+ leaderLineStyle?: ChartExElementStyle | null;
580
748
  }
581
749
  interface ChartErrBars {
750
+ style?: ChartExElementStyle | null;
582
751
  dir: string;
583
752
  barType: string;
584
753
  plus: (number | null)[];
@@ -588,6 +757,7 @@ interface ChartErrBars {
588
757
  lineWidthEmu?: number;
589
758
  dash?: string;
590
759
  hidden?: boolean;
760
+ linePaintAuthored?: boolean | null;
591
761
  }
592
762
  type ChartType = 'line' | 'stackedLine' | 'stackedLinePct' | 'clusteredBar' | 'clusteredBarH' | 'stackedBar' | 'stackedBarH' | 'stackedBarPct' | 'stackedBarHPct' | 'area' | 'stackedArea' | 'stackedAreaPct' | 'pie' | 'doughnut' | 'scatter' | 'bubble' | 'radar' | 'waterfall' | 'stock' | 'surface' | 'surface3D' | 'boxWhisker' | 'sunburst' | 'treemap' | string;
593
763
  type ChartPlotGroupKind = 'area' | 'area3D' | 'line' | 'line3D' | 'stock' | 'radar' | 'scatter' | 'pie' | 'pie3D' | 'doughnut' | 'bar' | 'bar3D' | 'ofPie' | 'surface' | 'surface3D' | 'bubble';
@@ -604,6 +774,7 @@ interface ChartPlotGroup {
604
774
  barDirection?: string | null;
605
775
  scatterStyle?: string | null;
606
776
  radarStyle?: string | null;
777
+ varyColors?: boolean | null;
607
778
  gapWidth?: number | null;
608
779
  overlap?: number | null;
609
780
  bubbleScale?: number | null;
@@ -612,10 +783,16 @@ interface ChartPlotGroup {
612
783
  }
613
784
  type ChartLineDashSegment = DrawingMLCustomDashSegment;
614
785
  interface ChartExElementStyle {
786
+ shapePropertiesPresent?: boolean | null;
787
+ allowNoFillOverride?: boolean | null;
788
+ allowNoLineOverride?: boolean | null;
615
789
  fontSizeHpt?: number | null;
616
790
  fontBold?: boolean | null;
617
791
  fontItalic?: boolean | null;
618
792
  fontColor?: string | null;
793
+ fontColors?: Array<string | null> | null;
794
+ fontColorIndex?: number | null;
795
+ fontFormattingIndices?: number[] | null;
619
796
  fontPaintAuthored?: boolean | null;
620
797
  fontHidden?: boolean | null;
621
798
  fontFace?: string | null;
@@ -647,8 +824,22 @@ interface ChartExElementStyle {
647
824
  lineCap?: string | null;
648
825
  lineJoin?: string | null;
649
826
  lineCompound?: string | null;
827
+ shadows?: Array<Shadow | null> | null;
828
+ innerShadows?: Array<Shadow | null> | null;
829
+ glows?: Array<Glow | null> | null;
830
+ softEdges?: Array<SoftEdge | null> | null;
831
+ reflections?: Array<Reflection | null> | null;
832
+ effectAuthored?: boolean | null;
833
+ effectNoStyle?: boolean | null;
834
+ effectUnsupported?: boolean | null;
650
835
  fillColorIndex?: number | null;
836
+ fillFormattingIndices?: number[] | null;
837
+ fillSemanticFallbackIndices?: number[] | null;
651
838
  lineColorIndex?: number | null;
839
+ lineFormattingIndices?: number[] | null;
840
+ lineSemanticFallbackIndices?: number[] | null;
841
+ effectFormattingIndices?: number[] | null;
842
+ effectColorIndex?: number | null;
652
843
  }
653
844
  type ChartStyleRole = 'axisTitle' | 'categoryAxis' | 'chartArea' | 'dataLabel' | 'dataLabelCallout' | 'dataPoint' | 'dataPoint3D' | 'dataPointLine' | 'dataPointMarker' | 'dataPointWireframe' | 'dataTable' | 'downBar' | 'dropLine' | 'errorBar' | 'floor' | 'gridlineMajor' | 'gridlineMinor' | 'hiLoLine' | 'leaderLine' | 'legend' | 'plotArea' | 'plotArea3D' | 'seriesAxis' | 'seriesLine' | 'title' | 'trendline' | 'trendlineLabel' | 'upBar' | 'valueAxis' | 'wall';
654
845
  interface ChartSurfaceBandFormat {
@@ -660,7 +851,12 @@ interface ChartSurfaceBandFormat {
660
851
  lineWidthEmu?: number | null;
661
852
  lineHidden?: boolean | null;
662
853
  }
854
+ interface ChartClassicSurfaceBandStyles {
855
+ fixed?: ChartExElementStyle | null;
856
+ byBandCount?: Array<ChartExElementStyle | null> | null;
857
+ }
663
858
  interface ChartDataTable {
859
+ style?: ChartExElementStyle | null;
664
860
  showHorizontalBorder: boolean;
665
861
  showVerticalBorder: boolean;
666
862
  showOutline: boolean;
@@ -668,6 +864,8 @@ interface ChartDataTable {
668
864
  fontSizeHpt?: number | null;
669
865
  fontFace?: string | null;
670
866
  fontColor?: string | null;
867
+ fontPaintAuthored?: boolean | null;
868
+ fontHidden?: boolean | null;
671
869
  fontBold?: boolean | null;
672
870
  fontItalic?: boolean | null;
673
871
  fillColor?: string | null;
@@ -678,18 +876,33 @@ interface ChartDataTable {
678
876
  lineWidthEmu?: number | null;
679
877
  lineDash?: string | null;
680
878
  lineHidden?: boolean | null;
879
+ linePaintAuthored?: boolean | null;
681
880
  }
682
881
  interface ChartModel {
683
882
  chartType: ChartType;
684
883
  title: string | null;
685
884
  titleRichRuns?: ChartTextRun[] | null;
686
885
  titlePresent?: boolean;
886
+ authoredWithoutSeries?: boolean;
687
887
  categories: string[];
688
888
  categorySourceHidden?: boolean[] | null;
689
889
  categoryLevels?: string[][] | null;
690
890
  series: ChartSeries[];
691
891
  plotGroups?: ChartPlotGroup[] | null;
692
892
  chartTextBoxes?: ChartTextBox[] | null;
893
+ chartTextStyle?: ChartExElementStyle | null;
894
+ chartAreaStyle?: ChartExElementStyle | null;
895
+ plotAreaStyle?: ChartExElementStyle | null;
896
+ legendStyle?: ChartExElementStyle | null;
897
+ titleStyle?: ChartExElementStyle | null;
898
+ catAxisStyle?: ChartExElementStyle | null;
899
+ valAxisStyle?: ChartExElementStyle | null;
900
+ catAxisTitleStyle?: ChartExElementStyle | null;
901
+ valAxisTitleStyle?: ChartExElementStyle | null;
902
+ catAxisMajorGridlineStyle?: ChartExElementStyle | null;
903
+ catAxisMinorGridlineStyle?: ChartExElementStyle | null;
904
+ valAxisMajorGridlineStyle?: ChartExElementStyle | null;
905
+ valAxisMinorGridlineStyle?: ChartExElementStyle | null;
693
906
  varyColors?: boolean | null;
694
907
  showDataLabels: boolean;
695
908
  valMin: number | null;
@@ -734,24 +947,35 @@ interface ChartModel {
734
947
  catAxisMinorTickMark?: 'cross' | 'out' | 'in' | 'none' | string | null;
735
948
  titleFontSizeHpt: number | null;
736
949
  titleFontColor: string | null;
950
+ titleFontPaintAuthored?: boolean | null;
737
951
  titleFontFace: string | null;
738
952
  catAxisFontSizeHpt: number | null;
739
953
  valAxisFontSizeHpt: number | null;
740
954
  catAxisFontColor?: string | null;
955
+ catAxisFontPaintAuthored?: boolean | null;
741
956
  valAxisFontColor?: string | null;
957
+ valAxisFontPaintAuthored?: boolean | null;
742
958
  dataLabelFontSizeHpt: number | null;
743
959
  dataLabelFontBold?: boolean | null;
960
+ dataLabelFontItalic?: boolean | null;
961
+ dataLabelFontLanguage?: string | null;
962
+ dataLabelFontBaseline?: number | null;
744
963
  subtotalIndices: number[];
745
964
  legendManualLayout?: LegendManualLayout | null;
746
965
  valAxisFormatCode?: string | null;
966
+ valAxisNumberFormat?: ChartAxisNumberFormat | null;
747
967
  valAxisDisplayUnits?: ChartDisplayUnits | null;
748
968
  catAxisDisplayUnits?: ChartDisplayUnits | null;
749
969
  barGapWidth?: number | null;
750
970
  barOverlap?: number | null;
751
971
  dataLabelPosition?: string | null;
752
972
  dataLabelFontColor?: string | null;
973
+ dataLabelFontPaintAuthored?: boolean | null;
753
974
  dataLabelFormatCode?: string | null;
754
975
  titleFontBold?: boolean | null;
976
+ titleFontItalic?: boolean | null;
977
+ titleFontLanguage?: string | null;
978
+ titleFontBaseline?: number | null;
755
979
  catAxisFontBold?: boolean | null;
756
980
  catAxisFontItalic?: boolean | null;
757
981
  valAxisFontBold?: boolean | null;
@@ -760,6 +984,7 @@ interface ChartModel {
760
984
  catAxisTitleFontBold?: boolean | null;
761
985
  catAxisTitleFontItalic?: boolean | null;
762
986
  catAxisTitleFontColor?: string | null;
987
+ catAxisTitleFontPaintAuthored?: boolean | null;
763
988
  catAxisTitleRotation?: number | null;
764
989
  catAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
765
990
  catAxisTitleManualLayout?: ChartManualLayout | null;
@@ -768,6 +993,7 @@ interface ChartModel {
768
993
  valAxisTitleFontBold?: boolean | null;
769
994
  valAxisTitleFontItalic?: boolean | null;
770
995
  valAxisTitleFontColor?: string | null;
996
+ valAxisTitleFontPaintAuthored?: boolean | null;
771
997
  valAxisTitleRotation?: number | null;
772
998
  valAxisTitleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
773
999
  valAxisTitleManualLayout?: ChartManualLayout | null;
@@ -779,8 +1005,12 @@ interface ChartModel {
779
1005
  dataLabelFontFace?: string | null;
780
1006
  legendFontFace?: string | null;
781
1007
  legendFontColor?: string | null;
1008
+ legendFontPaintAuthored?: boolean | null;
782
1009
  legendFontSizeHpt?: number | null;
783
1010
  legendFontBold?: boolean | null;
1011
+ legendFontItalic?: boolean | null;
1012
+ legendFontLanguage?: string | null;
1013
+ legendFontBaseline?: number | null;
784
1014
  legendFillColor?: string | null;
785
1015
  legendFill?: Fill | null;
786
1016
  legendFillHidden?: boolean | null;
@@ -822,10 +1052,12 @@ interface ChartModel {
822
1052
  valAxisLineDash?: string | null;
823
1053
  valAxisLinePaintAuthored?: boolean | null;
824
1054
  catAxisFormatCode?: string | null;
1055
+ catAxisNumberFormat?: ChartAxisNumberFormat | null;
825
1056
  catAxisMin?: number | null;
826
1057
  catAxisMax?: number | null;
827
1058
  titleManualLayout?: ChartManualLayout | null;
828
1059
  plotAreaManualLayout?: ChartManualLayout | null;
1060
+ cartesianAutoLayoutProfile?: 'wordClassicColumn' | null;
829
1061
  scatterStyle?: string | null;
830
1062
  bubbleScale?: number | null;
831
1063
  bubbleSizeRepresents?: 'area' | 'w' | null;
@@ -843,17 +1075,21 @@ interface ChartModel {
843
1075
  valAxisGridlineColor?: string | null;
844
1076
  valAxisGridlineWidthEmu?: number | null;
845
1077
  valAxisGridlineDash?: string | null;
1078
+ valAxisGridlinePaintAuthored?: boolean | null;
846
1079
  catAxisGridlineColor?: string | null;
847
1080
  catAxisGridlineWidthEmu?: number | null;
848
1081
  catAxisGridlineDash?: string | null;
1082
+ catAxisGridlinePaintAuthored?: boolean | null;
849
1083
  valAxisMinorGridlines?: boolean | null;
850
1084
  valAxisMinorGridlineColor?: string | null;
851
1085
  valAxisMinorGridlineWidthEmu?: number | null;
852
1086
  valAxisMinorGridlineDash?: string | null;
1087
+ valAxisMinorGridlinePaintAuthored?: boolean | null;
853
1088
  catAxisMinorGridlines?: boolean | null;
854
1089
  catAxisMinorGridlineColor?: string | null;
855
1090
  catAxisMinorGridlineWidthEmu?: number | null;
856
1091
  catAxisMinorGridlineDash?: string | null;
1092
+ catAxisMinorGridlinePaintAuthored?: boolean | null;
857
1093
  valAxisMajorUnit?: number | null;
858
1094
  valAxisMinorUnit?: number | null;
859
1095
  catAxisMajorUnit?: number | null;
@@ -900,10 +1136,24 @@ interface ChartModel {
900
1136
  chartexTreemap?: ChartexTreemap | null;
901
1137
  chartexRegionMap?: ChartexRegionMap | null;
902
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;
903
1146
  chartexAccents?: string[] | null;
904
1147
  chartexColorPalette?: Array<string | null> | null;
905
1148
  chartexColorStyleMethod?: string | null;
906
1149
  chartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
1150
+ classicChartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
1151
+ classicSurfaceBandStyles?: ChartClassicSurfaceBandStyles | null;
1152
+ linkedChartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
1153
+ classicVaryingPointChartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
1154
+ classicVaryingPointChartStyleRolesByGroup?: Array<Partial<Record<ChartStyleRole, ChartExElementStyle>> | null> | null;
1155
+ varyingPointChartStyleRoles?: Partial<Record<ChartStyleRole, ChartExElementStyle>> | null;
1156
+ varyingPointChartStyleRolesByGroup?: Array<Partial<Record<ChartStyleRole, ChartExElementStyle>> | null> | null;
907
1157
  chartStyleColorPalette?: Array<string | null> | null;
908
1158
  chartStyleColorMethod?: string | null;
909
1159
  chartStyleMarkerSizePt?: number | null;
@@ -917,8 +1167,9 @@ interface ChartModel {
917
1167
  chartexConnectorLines?: boolean | null;
918
1168
  }
919
1169
  interface ChartStockBarPaint {
1170
+ style?: ChartExElementStyle | null;
920
1171
  fillColor?: string | null;
921
- fill?: SolidFill | GradientFill | PatternFill | null;
1172
+ fill?: Fill | null;
922
1173
  fillPaintAuthored?: boolean | null;
923
1174
  fillHidden?: boolean | null;
924
1175
  lineColor?: string | null;
@@ -935,7 +1186,9 @@ interface ChartStockUpDownBarStyle {
935
1186
  down: ChartStockBarPaint;
936
1187
  }
937
1188
  interface ChartDecorationLineStyle {
1189
+ style?: ChartExElementStyle | null;
938
1190
  color?: string | null;
1191
+ fill?: SolidFill | GradientFill | PatternFill | null;
939
1192
  paintAuthored?: boolean | null;
940
1193
  widthEmu?: number | null;
941
1194
  dash?: string | null;
@@ -967,6 +1220,7 @@ interface ChartOfPie {
967
1220
  secondPieSizePercent: number;
968
1221
  gapWidthPercent: number;
969
1222
  seriesLines: boolean;
1223
+ seriesLineStyle?: ChartDecorationLineStyle | null;
970
1224
  }
971
1225
  interface ChartThreeDSurface {
972
1226
  style?: ChartExElementStyle | null;
@@ -1012,6 +1266,10 @@ interface ChartThreeD {
1012
1266
  backWall?: ChartThreeDSurface | null;
1013
1267
  }
1014
1268
  interface ChartThreeDSeriesAxis {
1269
+ style?: ChartExElementStyle | null;
1270
+ titleStyle?: ChartExElementStyle | null;
1271
+ majorGridlineStyle?: ChartExElementStyle | null;
1272
+ minorGridlineStyle?: ChartExElementStyle | null;
1015
1273
  title?: string | null;
1016
1274
  hidden: boolean;
1017
1275
  orientation?: 'minMax' | 'maxMin' | string | null;
@@ -1021,6 +1279,7 @@ interface ChartThreeDSeriesAxis {
1021
1279
  majorTickMark: string;
1022
1280
  minorTickMark?: string | null;
1023
1281
  fontColor?: string | null;
1282
+ fontPaintAuthored?: boolean | null;
1024
1283
  fontSizeHpt?: number | null;
1025
1284
  fontBold?: boolean | null;
1026
1285
  fontItalic?: boolean | null;
@@ -1034,6 +1293,7 @@ interface ChartThreeDSeriesAxis {
1034
1293
  titleFontBold?: boolean | null;
1035
1294
  titleFontItalic?: boolean | null;
1036
1295
  titleFontColor?: string | null;
1296
+ titleFontPaintAuthored?: boolean | null;
1037
1297
  titleFontFace?: string | null;
1038
1298
  titleRotation?: number | null;
1039
1299
  titleVerticalMode?: ChartModel['catAxisTitleVerticalMode'];
@@ -1138,15 +1398,26 @@ interface ChartexHistogramBinning {
1138
1398
  intervalClosed?: 'l' | 'r' | null;
1139
1399
  underflow?: number | null;
1140
1400
  overflow?: number | null;
1401
+ edgeFormatCode?: string | null;
1402
+ }
1403
+ interface ChartAxisNumberFormat {
1404
+ authoredCode: string;
1405
+ sourceLinked?: boolean | null;
1141
1406
  }
1142
1407
  interface SecondaryValueAxis {
1408
+ style?: ChartExElementStyle | null;
1409
+ titleStyle?: ChartExElementStyle | null;
1410
+ majorGridlineStyle?: ChartExElementStyle | null;
1411
+ minorGridlineStyle?: ChartExElementStyle | null;
1143
1412
  min: number | null;
1144
1413
  max: number | null;
1145
1414
  title: string | null;
1146
1415
  hidden: boolean;
1147
1416
  formatCode?: string | null;
1417
+ numberFormat?: ChartAxisNumberFormat | null;
1148
1418
  displayUnits?: ChartDisplayUnits | null;
1149
1419
  fontColor?: string | null;
1420
+ fontPaintAuthored?: boolean | null;
1150
1421
  fontSizeHpt?: number | null;
1151
1422
  fontItalic?: boolean | null;
1152
1423
  fontBold?: boolean | null;
@@ -1154,6 +1425,7 @@ interface SecondaryValueAxis {
1154
1425
  lineColor?: string | null;
1155
1426
  lineWidthEmu?: number | null;
1156
1427
  lineDash?: string | null;
1428
+ linePaintAuthored?: boolean | null;
1157
1429
  lineHidden: boolean;
1158
1430
  majorTickMark: string;
1159
1431
  minorTickMark?: string | null;
@@ -1161,10 +1433,12 @@ interface SecondaryValueAxis {
1161
1433
  minorGridlineColor?: string | null;
1162
1434
  minorGridlineWidthEmu?: number | null;
1163
1435
  minorGridlineDash?: string | null;
1436
+ minorGridlinePaintAuthored?: boolean | null;
1164
1437
  majorGridlines?: boolean;
1165
1438
  majorGridlineColor?: string | null;
1166
1439
  majorGridlineWidthEmu?: number | null;
1167
1440
  majorGridlineDash?: string | null;
1441
+ majorGridlinePaintAuthored?: boolean | null;
1168
1442
  majorUnit?: number | null;
1169
1443
  minorUnit?: number | null;
1170
1444
  logBase?: number | null;
@@ -1180,6 +1454,7 @@ interface SecondaryValueAxis {
1180
1454
  titleFontBold?: boolean | null;
1181
1455
  titleFontItalic?: boolean | null;
1182
1456
  titleFontColor?: string | null;
1457
+ titleFontPaintAuthored?: boolean | null;
1183
1458
  titleFontFace?: string | null;
1184
1459
  titleRotation?: number | null;
1185
1460
  titleVerticalMode?: 'horz' | 'vert' | 'vert270' | 'wordArtVert' | 'eaVert' | 'mongolianVert' | 'wordArtVertRtl' | null;
@@ -1197,6 +1472,8 @@ interface ChartDisplayUnitsLabel {
1197
1472
  fontBold?: boolean | null;
1198
1473
  fontItalic?: boolean | null;
1199
1474
  fontColor?: string | null;
1475
+ fontPaintAuthored?: boolean | null;
1476
+ fontHidden?: boolean | null;
1200
1477
  fontFace?: string | null;
1201
1478
  rotation?: number | null;
1202
1479
  boxStyle?: ChartLabelBox | null;
@@ -1229,12 +1506,23 @@ interface ChartLegendEntryOverride {
1229
1506
  fontColor?: string | null;
1230
1507
  fontSizeHpt?: number | null;
1231
1508
  fontBold?: boolean | null;
1509
+ fontItalic?: boolean | null;
1232
1510
  }
1233
1511
  //#endregion
1234
- //#region dist/.types-work/hyperlink-BwNed17w.d.ts
1512
+ //#region dist/.types-work/hyperlink-BER006VA.d.ts
1235
1513
  type CjkLang = 'kr' | 'sc' | 'tc' | 'hk' | 'jp';
1236
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';
1237
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
+ }
1238
1526
  type OoxmlFormat = 'docx' | 'xlsx' | 'pptx';
1239
1527
  interface OoxmlResourceUsageSnapshot {
1240
1528
  readonly archiveEntryCount: number;
@@ -1270,6 +1558,12 @@ interface OoxmlResourcePolicySnapshot {
1270
1558
  readonly maxArchiveEntryBytes: number | null;
1271
1559
  readonly maxTotalInflatedBytes: number | null;
1272
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
+ }>;
1273
1567
  }
1274
1568
  interface OoxmlResourceMetricsCheckpoint {
1275
1569
  readonly name: string;
@@ -1301,7 +1595,13 @@ interface OoxmlResourceLimits {
1301
1595
  maxTotalInflatedBytes?: OoxmlResourceLimit;
1302
1596
  maxArchiveEntries?: OoxmlResourceLimit;
1303
1597
  }
1304
- 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';
1305
1605
  declare class OoxmlDecodedImageLimitError extends RangeError {
1306
1606
  readonly metric: OoxmlDecodedImageLimitMetric;
1307
1607
  readonly limit: number;
@@ -1319,7 +1619,37 @@ type HyperlinkTarget = {
1319
1619
  slideIndex?: number;
1320
1620
  };
1321
1621
  //#endregion
1322
- //#region dist/.types-work/types-C6IeBHJ1.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
1323
1653
  interface DocxDocumentModel {
1324
1654
  section: SectionProps;
1325
1655
  body: BodyElement[];
@@ -1344,15 +1674,19 @@ interface EmbeddedFontRef {
1344
1674
  fontKey: string;
1345
1675
  }
1346
1676
  interface DocSettings {
1677
+ doNotUseHtmlParagraphAutoSpacing?: boolean;
1347
1678
  kinsoku?: boolean;
1348
1679
  noLineBreaksBefore?: string;
1349
1680
  noLineBreaksAfter?: string;
1350
1681
  mathDefJc?: string;
1351
1682
  defaultTabStop?: number;
1352
1683
  characterSpacingControl?: string;
1684
+ lineWrapLikeWord6?: boolean;
1685
+ enableOpenTypeFeatures?: boolean;
1353
1686
  useFeLayout?: boolean;
1354
1687
  balanceSingleByteDoubleByteWidth?: boolean;
1355
1688
  adjustLineHeightInTable?: boolean;
1689
+ compatibilityMode?: number;
1356
1690
  }
1357
1691
  interface DocRevision {
1358
1692
  kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
@@ -1462,6 +1796,7 @@ type BodyElement = ({
1462
1796
  type: 'table';
1463
1797
  } & DocTable) | {
1464
1798
  type: 'pageBreak';
1799
+ origin?: 'authored' | 'coverPageSynthetic';
1465
1800
  parity?: 'odd' | 'even';
1466
1801
  sameParagraphAsPrevious?: boolean;
1467
1802
  } | {
@@ -1485,6 +1820,8 @@ interface DocParagraph {
1485
1820
  indentFirst: number;
1486
1821
  spaceBefore: number;
1487
1822
  spaceAfter: number;
1823
+ beforeAutospacing?: boolean;
1824
+ afterAutospacing?: boolean;
1488
1825
  lineSpacing: LineSpacing | null;
1489
1826
  numbering: NumberingInfo | null;
1490
1827
  tabStops: TabStop[];
@@ -1499,6 +1836,8 @@ interface DocParagraph {
1499
1836
  markVanish?: boolean;
1500
1837
  widowControl?: boolean;
1501
1838
  overflowPunct?: boolean;
1839
+ autoSpaceDE?: boolean;
1840
+ autoSpaceDN?: boolean;
1502
1841
  adjustRightInd?: boolean;
1503
1842
  borders?: ParagraphBorders | null;
1504
1843
  styleId?: string | null;
@@ -1572,6 +1911,7 @@ interface NumberingInfo {
1572
1911
  picBulletMimeType?: string;
1573
1912
  picBulletWidthPt?: number;
1574
1913
  picBulletHeightPt?: number;
1914
+ picBulletTransform?: Pick<ImageRun, 'srcRect' | 'rotation' | 'flipH' | 'flipV'>;
1575
1915
  }
1576
1916
  type DocRunContent = ({
1577
1917
  type: 'text';
@@ -1667,6 +2007,8 @@ interface AnchorHostMetrics {
1667
2007
  }
1668
2008
  interface ShapeRun {
1669
2009
  inline?: boolean;
2010
+ inlineOffsetXPt?: number;
2011
+ inlineOffsetYPt?: number;
1670
2012
  widthPt: number;
1671
2013
  heightPt: number;
1672
2014
  anchorXPt: number;
@@ -1687,9 +2029,37 @@ interface ShapeRun {
1687
2029
  groupHeightPt?: number | null;
1688
2030
  behindDoc?: boolean;
1689
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
+ };
1690
2054
  subpaths: PathCmd$1[][];
2055
+ subpathPaint?: Array<{
2056
+ fillRule?: 'nonzero' | 'evenodd';
2057
+ fill?: 'none' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess';
2058
+ stroke?: false;
2059
+ }>;
1691
2060
  presetGeometry?: string | null;
1692
2061
  adjValues?: Array<number | null>;
2062
+ vmlPicture?: Pick<ImageRun, 'imagePath' | 'mimeType' | 'srcRect' | 'colorReplaceFrom' | 'duotone'>;
1693
2063
  fill: ShapeFill$1 | null;
1694
2064
  stroke: string | null;
1695
2065
  strokeWidth?: number;
@@ -1719,11 +2089,13 @@ interface ShapeRun {
1719
2089
  defaultTextColor?: string | null;
1720
2090
  textAnchor?: string | null;
1721
2091
  textAutofit?: string | null;
2092
+ textWrap?: string | null;
1722
2093
  textInsetL?: number;
1723
2094
  textInsetT?: number;
1724
2095
  textInsetR?: number;
1725
2096
  textInsetB?: number;
1726
2097
  textVert?: string | null;
2098
+ textUpright?: boolean | null;
1727
2099
  textPath?: TextPath | null;
1728
2100
  fillOpacity?: number | null;
1729
2101
  }
@@ -1751,6 +2123,7 @@ interface ShapeTextRun$1 {
1751
2123
  interface ShapeText$1 {
1752
2124
  text: string;
1753
2125
  fontSizePt: number;
2126
+ defaultFontSize?: number;
1754
2127
  color?: string | null;
1755
2128
  paragraphMarkColor?: string | null;
1756
2129
  fontFamily?: string | null;
@@ -1761,6 +2134,8 @@ interface ShapeText$1 {
1761
2134
  alignment: string;
1762
2135
  spaceBefore?: number;
1763
2136
  spaceAfter?: number;
2137
+ beforeAutospacing?: boolean;
2138
+ afterAutospacing?: boolean;
1764
2139
  lineSpacingVal?: number;
1765
2140
  lineSpacingRule?: string;
1766
2141
  indentLeft?: number;
@@ -1797,6 +2172,20 @@ type ShapeFill$1 = {
1797
2172
  preset: string;
1798
2173
  } | {
1799
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
+ };
1800
2189
  imagePath: string;
1801
2190
  mimeType: string;
1802
2191
  svgImagePath?: string;
@@ -1810,6 +2199,7 @@ type ShapeFill$1 = {
1810
2199
  tile?: TileInfo;
1811
2200
  alpha?: number;
1812
2201
  duotone?: Duotone$1;
2202
+ blipEffects?: BlipEffect[];
1813
2203
  };
1814
2204
  type ShapeStrokeFill = {
1815
2205
  fillType: 'gradient';
@@ -1900,6 +2290,7 @@ interface DocxTextRun {
1900
2290
  interface NoteRef {
1901
2291
  kind: 'footnote' | 'endnote' | string;
1902
2292
  id: string;
2293
+ customMarkFollows?: boolean;
1903
2294
  }
1904
2295
  interface RunRevision {
1905
2296
  kind: 'insertion' | 'deletion' | 'moveFrom' | 'moveTo' | string;
@@ -1935,6 +2326,7 @@ interface ImageRun {
1935
2326
  anchorYFromPara?: boolean;
1936
2327
  colorReplaceFrom?: string;
1937
2328
  duotone?: Duotone$1;
2329
+ blipEffects?: BlipEffect[];
1938
2330
  alpha?: number;
1939
2331
  wrapMode?: string;
1940
2332
  distTop?: number;
@@ -2014,10 +2406,13 @@ interface DocTableCell {
2014
2406
  vAlign: 'top' | 'center' | 'bottom';
2015
2407
  widthPt: number | null;
2016
2408
  widthPct?: number;
2409
+ noWrap?: boolean;
2017
2410
  marginTop?: number | null;
2018
2411
  marginBottom?: number | null;
2019
2412
  marginLeft?: number | null;
2020
2413
  marginRight?: number | null;
2414
+ textDirection?: string;
2415
+ hideMark?: boolean;
2021
2416
  }
2022
2417
  interface CellBorders {
2023
2418
  top: BorderSpec | null;
@@ -2026,6 +2421,8 @@ interface CellBorders {
2026
2421
  right: BorderSpec | null;
2027
2422
  insideH: BorderSpec | null;
2028
2423
  insideV: BorderSpec | null;
2424
+ tl2br?: BorderSpec;
2425
+ tr2bl?: BorderSpec;
2029
2426
  }
2030
2427
  interface DocxStorySource {
2031
2428
  story: 'body' | 'header' | 'footer' | 'footnote' | 'endnote' | 'textbox';
@@ -2037,10 +2434,12 @@ interface DocxTextRunInfo {
2037
2434
  paragraphId?: string;
2038
2435
  sourceRunIndex?: number;
2039
2436
  direction?: 'ltr' | 'rtl';
2437
+ optionalHyphenGlyph?: true;
2040
2438
  text: string;
2041
2439
  x: number;
2042
2440
  y: number;
2043
2441
  w: number;
2442
+ trailingSpaceCompressionPx?: number;
2044
2443
  h: number;
2045
2444
  highlightBounds?: Readonly<{
2046
2445
  x: number;
@@ -2056,13 +2455,22 @@ interface DocxTextRunInfo {
2056
2455
  eastAsianVert?: boolean;
2057
2456
  }
2058
2457
  //#endregion
2059
- //#region dist/.types-work/types-B-UbxAih.d.ts
2458
+ //#region dist/.types-work/types-BYMzwltM.d.ts
2060
2459
  interface Paragraph extends Paragraph$1 {
2460
+ mathFallbacks?: {
2461
+ start: number;
2462
+ end: number;
2463
+ text: string;
2464
+ }[];
2061
2465
  eaLnBrk: boolean;
2466
+ fontAlgn?: 't' | 'ctr' | 'b';
2062
2467
  defTabSz?: number;
2063
2468
  }
2064
2469
  interface TextBody extends TextBody$1 {
2065
2470
  rtlCol?: boolean;
2471
+ spcFirstLastPara?: boolean;
2472
+ anchorCtr?: boolean;
2473
+ compatLnSpc?: boolean;
2066
2474
  textWarp?: {
2067
2475
  preset: string;
2068
2476
  adj?: number[];
@@ -2080,6 +2488,12 @@ interface Presentation {
2080
2488
  folHlinkColor?: string;
2081
2489
  }
2082
2490
  interface Slide {
2491
+ theme?: {
2492
+ defaultTextColor: string | null;
2493
+ majorFont: string | null;
2494
+ minorFont: string | null;
2495
+ hlinkColor: string | null;
2496
+ };
2083
2497
  index: number;
2084
2498
  slideNumber: number;
2085
2499
  partName?: string;
@@ -2148,7 +2562,13 @@ interface MediaElement {
2148
2562
  mediaPath: string;
2149
2563
  mimeType: string;
2150
2564
  }
2565
+ interface EquationBranchFallback {
2566
+ elements: SlideElement[];
2567
+ before: number;
2568
+ after: number;
2569
+ }
2151
2570
  interface ShapeElement {
2571
+ mathFallback?: EquationBranchFallback;
2152
2572
  type: 'shape';
2153
2573
  x: number;
2154
2574
  y: number;
@@ -2163,6 +2583,10 @@ interface ShapeElement {
2163
2583
  textBody: TextBody | null;
2164
2584
  defaultTextColor: string | null;
2165
2585
  custGeom: PathCmd$2[][] | null;
2586
+ custGeomPaint?: {
2587
+ fill: string | null;
2588
+ stroke: boolean;
2589
+ }[];
2166
2590
  adj: number | null;
2167
2591
  adj2: number | null;
2168
2592
  adj3: number | null;
@@ -2226,6 +2650,8 @@ interface Sp3d {
2226
2650
  bevelB?: Bevel3d;
2227
2651
  }
2228
2652
  interface TableElement {
2653
+ mathFallback?: EquationBranchFallback;
2654
+ background?: Fill;
2229
2655
  type: 'table';
2230
2656
  id?: string;
2231
2657
  x: number;
@@ -2245,6 +2671,7 @@ interface TableRow {
2245
2671
  }
2246
2672
  interface TableCell {
2247
2673
  textBody: TextBody | null;
2674
+ horzOverflow?: 'clip' | 'overflow';
2248
2675
  fill: Fill | null;
2249
2676
  textColor?: string;
2250
2677
  borderL: Stroke | null;
@@ -2286,6 +2713,7 @@ interface PictureElement {
2286
2713
  intrinsicWidthPx?: number;
2287
2714
  intrinsicHeightPx?: number;
2288
2715
  stroke: Stroke | null;
2716
+ fill?: Fill;
2289
2717
  prstGeom?: string;
2290
2718
  prstAdjust?: number[];
2291
2719
  srcRect?: {
@@ -2296,6 +2724,7 @@ interface PictureElement {
2296
2724
  };
2297
2725
  alpha?: number;
2298
2726
  duotone?: Duotone$1;
2727
+ blipEffects?: BlipEffect[];
2299
2728
  custGeom?: PathCmd$2[][] | null;
2300
2729
  shadow?: Shadow;
2301
2730
  innerShadow?: Shadow;
@@ -2306,7 +2735,7 @@ interface PictureElement {
2306
2735
  sp3d?: Sp3d;
2307
2736
  }
2308
2737
  //#endregion
2309
- //#region dist/.types-work/types-mD4FqxtD.d.ts
2738
+ //#region dist/.types-work/types-_hQx9Nud.d.ts
2310
2739
  type ShapeFill = Exclude<Fill, {
2311
2740
  fillType: 'image';
2312
2741
  } | {
@@ -2351,6 +2780,8 @@ interface Worksheet {
2351
2780
  colCollapsed?: Record<number, boolean>;
2352
2781
  colHidden?: Record<number, boolean>;
2353
2782
  defaultColWidth: number;
2783
+ baseColWidth?: number;
2784
+ defaultColWidthIsUi?: boolean;
2354
2785
  defaultRowHeight: number;
2355
2786
  defaultRowHeightCustom?: boolean;
2356
2787
  mergeCells: MergeCell[];
@@ -2378,6 +2809,11 @@ interface Worksheet {
2378
2809
  sparklineGroups?: SparklineGroup[];
2379
2810
  defaultFontFamily?: string;
2380
2811
  defaultFontSize?: number;
2812
+ defaultFontBold?: boolean;
2813
+ defaultFontItalic?: boolean;
2814
+ normalFontSize?: number;
2815
+ themeJapaneseMajorFont?: string;
2816
+ themeJapaneseMinorFont?: string;
2381
2817
  date1904?: boolean;
2382
2818
  parseError?: string;
2383
2819
  }
@@ -2395,6 +2831,27 @@ interface PivotTableMetadata {
2395
2831
  cacheSource?: PivotCacheSource;
2396
2832
  status: PivotMetadataStatus;
2397
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;
2398
2855
  }
2399
2856
  interface PivotLocation extends WorksheetCellRange {
2400
2857
  firstHeaderRow: number;
@@ -2556,6 +3013,8 @@ interface TableInfo {
2556
3013
  lastColumnDxf?: number;
2557
3014
  band1HorizontalDxf?: number;
2558
3015
  band2HorizontalDxf?: number;
3016
+ styleElements?: PivotTableStyleElement[];
3017
+ styleError?: string;
2559
3018
  columns: TableColumnInfo[];
2560
3019
  }
2561
3020
  interface TableColumnInfo {
@@ -2612,6 +3071,7 @@ interface ChartAnchor {
2612
3071
  toRowOff: number;
2613
3072
  chart: ChartModel;
2614
3073
  }
3074
+ type DrawingAnchorTag = 'oneCellAnchor' | 'twoCellAnchor';
2615
3075
  interface ShapeAnchor {
2616
3076
  fromCol: number;
2617
3077
  fromColOff: number;
@@ -2624,6 +3084,9 @@ interface ShapeAnchor {
2624
3084
  editAs?: string;
2625
3085
  nativeExtCx: number;
2626
3086
  nativeExtCy: number;
3087
+ anchorTag?: DrawingAnchorTag;
3088
+ anchorExtCx?: number;
3089
+ anchorExtCy?: number;
2627
3090
  shapes: ShapeInfo[];
2628
3091
  }
2629
3092
  interface ShapeInfo {
@@ -2660,6 +3123,9 @@ interface ShapeInfo {
2660
3123
  text?: ShapeText;
2661
3124
  }
2662
3125
  interface ShapeText {
3126
+ vert?: string;
3127
+ anchorCtr?: boolean;
3128
+ spcFirstLastPara?: boolean;
2663
3129
  anchor: string;
2664
3130
  wrap: string;
2665
3131
  autoFit?: string;
@@ -2677,7 +3143,14 @@ interface ShapeParagraph {
2677
3143
  marL?: number;
2678
3144
  marR?: number;
2679
3145
  indent?: number;
3146
+ defTabSz?: number;
3147
+ tabStops?: {
3148
+ pos: number;
3149
+ algn: string;
3150
+ }[];
2680
3151
  spaceLine?: SpaceLine | null;
3152
+ spaceBefore?: SpaceLine | null;
3153
+ spaceAfter?: SpaceLine | null;
2681
3154
  runs: ShapeTextRun[];
2682
3155
  }
2683
3156
  type ShapeTextRun = {
@@ -2686,6 +3159,7 @@ type ShapeTextRun = {
2686
3159
  bold: boolean;
2687
3160
  italic: boolean;
2688
3161
  size: number;
3162
+ spacing?: number;
2689
3163
  color?: string;
2690
3164
  fontFace?: string;
2691
3165
  fontFaceEa?: string;
@@ -2719,6 +3193,7 @@ type ShapeGeom = {
2719
3193
  };
2720
3194
  alpha?: number;
2721
3195
  duotone?: Duotone;
3196
+ blipEffects?: BlipEffect[];
2722
3197
  };
2723
3198
  interface Duotone {
2724
3199
  clr1: string;
@@ -2727,6 +3202,8 @@ interface Duotone {
2727
3202
  interface PathInfo {
2728
3203
  w: number;
2729
3204
  h: number;
3205
+ fill?: 'none' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess';
3206
+ stroke?: false;
2730
3207
  commands: PathCmd[];
2731
3208
  }
2732
3209
  type PathCmd = {
@@ -2771,8 +3248,14 @@ interface ImageAnchor {
2771
3248
  toRow: number;
2772
3249
  toRowOff: number;
2773
3250
  editAs?: string;
3251
+ anchorTag?: DrawingAnchorTag;
3252
+ anchorExtCx?: number;
3253
+ anchorExtCy?: number;
2774
3254
  nativeExtCx: number;
2775
3255
  nativeExtCy: number;
3256
+ rotation?: number;
3257
+ flipH?: boolean;
3258
+ flipV?: boolean;
2776
3259
  imagePath: string;
2777
3260
  mimeType: string;
2778
3261
  svgImagePath?: string;
@@ -2784,6 +3267,7 @@ interface ImageAnchor {
2784
3267
  };
2785
3268
  alpha?: number;
2786
3269
  duotone?: Duotone;
3270
+ blipEffects?: BlipEffect[];
2787
3271
  }
2788
3272
  interface WorksheetCellRange {
2789
3273
  top: number;
@@ -2808,6 +3292,7 @@ type CfRule = {
2808
3292
  formulas: string[];
2809
3293
  dxfId: number | null;
2810
3294
  priority: number;
3295
+ stopIfTrue?: boolean;
2811
3296
  } | {
2812
3297
  type: 'expression';
2813
3298
  formula: string;
@@ -2818,6 +3303,8 @@ type CfRule = {
2818
3303
  type: 'colorScale';
2819
3304
  stops: CfStop[];
2820
3305
  priority: number;
3306
+ activeFormula?: string;
3307
+ stopIfTrue?: boolean;
2821
3308
  } | {
2822
3309
  type: 'dataBar';
2823
3310
  color: string;
@@ -2825,6 +3312,9 @@ type CfRule = {
2825
3312
  max: CfValue;
2826
3313
  priority: number;
2827
3314
  gradient: boolean;
3315
+ activeFormula?: string;
3316
+ extThresholdFormula?: boolean;
3317
+ stopIfTrue?: boolean;
2828
3318
  } | {
2829
3319
  type: 'top10';
2830
3320
  top: boolean;
@@ -2832,6 +3322,7 @@ type CfRule = {
2832
3322
  rank: number;
2833
3323
  dxfId: number | null;
2834
3324
  priority: number;
3325
+ stopIfTrue?: boolean;
2835
3326
  } | {
2836
3327
  type: 'aboveAverage';
2837
3328
  aboveAverage: boolean;
@@ -2839,6 +3330,7 @@ type CfRule = {
2839
3330
  stdDev?: number;
2840
3331
  dxfId: number | null;
2841
3332
  priority: number;
3333
+ stopIfTrue?: boolean;
2842
3334
  } | {
2843
3335
  type: 'iconSet';
2844
3336
  iconSet: string;
@@ -2846,10 +3338,14 @@ type CfRule = {
2846
3338
  reverse: boolean;
2847
3339
  priority: number;
2848
3340
  customIcons?: CfIcon[];
3341
+ activeFormula?: string;
3342
+ stopIfTrue?: boolean;
2849
3343
  } | {
2850
3344
  type: 'other';
2851
3345
  kind: string;
2852
3346
  priority: number;
3347
+ unsupportedFormulaPhases?: number;
3348
+ stopIfTrue?: boolean;
2853
3349
  };
2854
3350
  interface CfIcon {
2855
3351
  iconSet: string;
@@ -2932,6 +3428,7 @@ interface RunFont {
2932
3428
  name?: string | null;
2933
3429
  underlineStyle?: string;
2934
3430
  vertAlign?: 'superscript' | 'subscript';
3431
+ normalColor?: boolean;
2935
3432
  }
2936
3433
  interface SharedString {
2937
3434
  text: string;
@@ -2956,6 +3453,14 @@ interface Dxf {
2956
3453
  fill: CellFill | null;
2957
3454
  border: Border | null;
2958
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;
2959
3464
  }
2960
3465
  interface CellFont {
2961
3466
  bold: boolean;
@@ -2965,6 +3470,8 @@ interface CellFont {
2965
3470
  size: number;
2966
3471
  color: string | null;
2967
3472
  name: string | null;
3473
+ scheme?: 'major' | 'minor';
3474
+ charset?: number;
2968
3475
  underlineStyle?: string;
2969
3476
  vertAlign?: 'superscript' | 'subscript';
2970
3477
  }
@@ -3012,16 +3519,22 @@ interface CellXf {
3012
3519
  textRotation?: number;
3013
3520
  shrinkToFit?: boolean;
3014
3521
  readingOrder?: number;
3522
+ ownFontColor?: boolean;
3015
3523
  }
3016
3524
  interface ParsedWorkbook {
3017
3525
  workbook: Workbook;
3018
3526
  styles: Styles;
3019
3527
  sharedStrings: SharedString[];
3528
+ layoutMetrics?: {
3529
+ maximumDigitWidth: number;
3530
+ };
3020
3531
  }
3021
3532
  //#endregion
3022
3533
  //#region dist/.types-work/node.d.ts
3023
3534
  interface OoxmlNodeSessionOptions {
3535
+ password?: string;
3024
3536
  resourceLimits?: OoxmlResourceLimits;
3537
+ xlsxWorksheetLimits?: XlsxWorksheetLimits;
3025
3538
  maxZipEntryBytes?: number;
3026
3539
  debug?: boolean;
3027
3540
  onResourceMetrics?: (metrics: OoxmlResourceMetrics) => void;
@@ -3063,6 +3576,7 @@ declare function renderSlideNode(canvas: NodeCanvasLike, presentation: Presentat
3063
3576
  }): Promise<void>;
3064
3577
  type OpenPptxPresentationOptions = OoxmlNodeSessionOptions & {
3065
3578
  cjkFallback?: CjkFallback;
3579
+ legacyPpt?: ModelSource<'pptx'>;
3066
3580
  };
3067
3581
  interface PptxSessionRenderOptions {
3068
3582
  readonly width?: number;
@@ -3083,9 +3597,11 @@ interface PptxPresentationSession extends AsyncIterable<Slide> {
3083
3597
  declare function openPptxPresentation(buffer: ArrayBuffer | Uint8Array, options?: OpenPptxPresentationOptions): Promise<PptxPresentationSession>;
3084
3598
  declare function materializePptxPresentation(buffer: ArrayBuffer | Uint8Array, options?: OpenPptxPresentationOptions): Promise<Presentation>;
3085
3599
  interface OpenDocxDocumentOptions extends OoxmlNodeSessionOptions {
3600
+ legacyDoc?: ModelSource<'docx'>;
3086
3601
  cjkFallback?: CjkFallback;
3087
3602
  factory: NodeCanvasFactory;
3088
3603
  currentDate?: Date | number;
3604
+ allowFootnoteContinuation?: boolean;
3089
3605
  }
3090
3606
  interface DocxPageRenderOptions {
3091
3607
  width?: number;
@@ -3111,14 +3627,17 @@ interface DocxDocumentSession extends AsyncIterable<DocxRenderedPage> {
3111
3627
  close(): Promise<void>;
3112
3628
  }
3113
3629
  declare function openDocxDocument(buffer: ArrayBuffer | Uint8Array, options: OpenDocxDocumentOptions): Promise<DocxDocumentSession>;
3114
- declare function materializeDocxDocument(buffer: ArrayBuffer | Uint8Array, options?: OoxmlNodeSessionOptions): Promise<DocxDocumentModel>;
3630
+ declare function materializeDocxDocument(buffer: ArrayBuffer | Uint8Array, options?: OoxmlNodeSessionOptions & Pick<OpenDocxDocumentOptions, 'legacyDoc'>): Promise<DocxDocumentModel>;
3115
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;
3116
3632
  type ReadonlyParsedWorkbook = DeepReadonly<ParsedWorkbook>;
3117
3633
  interface MaterializedXlsxWorkbook {
3118
3634
  readonly workbookIndex: ParsedWorkbook;
3119
3635
  readonly worksheets: readonly Worksheet[];
3120
3636
  }
3121
- type OpenXlsxWorkbookOptions = OoxmlNodeSessionOptions;
3637
+ type OpenXlsxWorkbookOptions = OoxmlNodeSessionOptions & {
3638
+ readonly legacyXls?: ModelSource<'xlsx'>;
3639
+ readonly factory?: NodeCanvasFactory;
3640
+ };
3122
3641
  type XlsxWorksheetRowChunk = {
3123
3642
  readonly kind: 'rows';
3124
3643
  readonly rows: Row[];
@@ -3145,4 +3664,4 @@ declare function materializeXlsxWorkbookIndex(buffer: ArrayBuffer | Uint8Array,
3145
3664
  declare function materializeXlsxWorksheet(buffer: ArrayBuffer | Uint8Array, sheetIndex: number, options?: OpenXlsxWorkbookOptions): Promise<Worksheet>;
3146
3665
  declare function materializeXlsxWorkbook(buffer: ArrayBuffer | Uint8Array, options?: OpenXlsxWorkbookOptions): Promise<MaterializedXlsxWorkbook>;
3147
3666
  //#endregion
3148
- 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 };