pptx-react-viewer 2.17.0 → 2.18.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 (133) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +14 -14
  3. package/dist/{AiChatPanel-RZ4A7P4H.mjs → AiChatPanel-SSSBERWJ.mjs} +4 -4
  4. package/dist/AiChatPanel-SSSBERWJ.mjs.br +0 -0
  5. package/dist/AiChatPanel-SSSBERWJ.mjs.gz +0 -0
  6. package/dist/{AiChatPanel-HCHCVQN2.js → AiChatPanel-UN5DHPZY.js} +24 -24
  7. package/dist/AiChatPanel-UN5DHPZY.js.br +0 -0
  8. package/dist/AiChatPanel-UN5DHPZY.js.gz +0 -0
  9. package/dist/{Model3DScene-LK7LSQNH.js → Model3DScene-4RPYKC2I.js} +2 -2
  10. package/dist/Model3DScene-4RPYKC2I.js.br +0 -0
  11. package/dist/Model3DScene-4RPYKC2I.js.gz +0 -0
  12. package/dist/{Model3DScene-I7FR74AD.mjs → Model3DScene-LYEESYAI.mjs} +1 -1
  13. package/dist/Model3DScene-LYEESYAI.mjs.br +0 -0
  14. package/dist/Model3DScene-LYEESYAI.mjs.gz +0 -0
  15. package/dist/{PowerPointViewer-Du7u4INi.d.ts → PowerPointViewer-Cf4YHjdF.d.ts} +2 -2
  16. package/dist/{PowerPointViewer-Du7u4INi.d.ts.map → PowerPointViewer-Cf4YHjdF.d.ts.map} +1 -1
  17. package/dist/{SurfaceChart3DScene-ODQY77SZ.js → SurfaceChart3DScene-ACPKCWLJ.js} +2 -2
  18. package/dist/SurfaceChart3DScene-ACPKCWLJ.js.br +0 -0
  19. package/dist/SurfaceChart3DScene-ACPKCWLJ.js.gz +0 -0
  20. package/dist/{SurfaceChart3DScene-DEQP5O3U.mjs → SurfaceChart3DScene-JR62SOYO.mjs} +1 -1
  21. package/dist/{SurfaceChart3DScene-DEQP5O3U.mjs.br → SurfaceChart3DScene-JR62SOYO.mjs.br} +0 -0
  22. package/dist/SurfaceChart3DScene-JR62SOYO.mjs.gz +0 -0
  23. package/dist/{audience-content-store-BvqKy7Hf.d.ts → audience-content-store-CyS0oP6t.d.ts} +2 -2
  24. package/dist/{audience-content-store-BvqKy7Hf.d.ts.map → audience-content-store-CyS0oP6t.d.ts.map} +1 -1
  25. package/dist/{chunk-5BXATG54.js → chunk-4LWGAVAP.js} +239 -293
  26. package/dist/chunk-4LWGAVAP.js.br +0 -0
  27. package/dist/chunk-4LWGAVAP.js.gz +0 -0
  28. package/dist/{chunk-FXJOTEPO.mjs → chunk-7XF6S4AM.mjs} +1 -1
  29. package/dist/chunk-7XF6S4AM.mjs.br +0 -0
  30. package/dist/chunk-7XF6S4AM.mjs.gz +0 -0
  31. package/dist/{chunk-TCGXGD6E.js → chunk-ASKYZ5ZY.js} +544 -426
  32. package/dist/chunk-ASKYZ5ZY.js.br +0 -0
  33. package/dist/chunk-ASKYZ5ZY.js.gz +0 -0
  34. package/dist/{chunk-MQHC5TXI.mjs → chunk-BZOL6FXF.mjs} +25 -80
  35. package/dist/chunk-BZOL6FXF.mjs.br +0 -0
  36. package/dist/chunk-BZOL6FXF.mjs.gz +0 -0
  37. package/dist/{chunk-K2QU73KB.mjs → chunk-GODW6RNR.mjs} +9801 -6455
  38. package/dist/chunk-GODW6RNR.mjs.br +0 -0
  39. package/dist/chunk-GODW6RNR.mjs.gz +0 -0
  40. package/dist/{chunk-NQJPPIVH.js → chunk-ICZDMFF2.js} +1444 -1131
  41. package/dist/chunk-ICZDMFF2.js.br +0 -0
  42. package/dist/chunk-ICZDMFF2.js.gz +0 -0
  43. package/dist/{chunk-ATOUVRRQ.js → chunk-MAVLV56S.js} +3 -3
  44. package/dist/chunk-MAVLV56S.js.br +0 -0
  45. package/dist/chunk-MAVLV56S.js.gz +0 -0
  46. package/dist/{chunk-422DF424.mjs → chunk-O7FTUUXP.mjs} +464 -151
  47. package/dist/chunk-O7FTUUXP.mjs.br +0 -0
  48. package/dist/chunk-O7FTUUXP.mjs.gz +0 -0
  49. package/dist/{chunk-ZA5JONCW.mjs → chunk-QUB5OSKY.mjs} +193 -75
  50. package/dist/chunk-QUB5OSKY.mjs.br +0 -0
  51. package/dist/chunk-QUB5OSKY.mjs.gz +0 -0
  52. package/dist/{chunk-AONFHTTJ.js → chunk-RTUGI4HQ.js} +27 -4
  53. package/dist/chunk-RTUGI4HQ.js.br +0 -0
  54. package/dist/chunk-RTUGI4HQ.js.gz +0 -0
  55. package/dist/{chunk-S64T7C4V.mjs → chunk-SNL6LBRX.mjs} +27 -4
  56. package/dist/chunk-SNL6LBRX.mjs.br +0 -0
  57. package/dist/{chunk-S64T7C4V.mjs.gz → chunk-SNL6LBRX.mjs.gz} +0 -0
  58. package/dist/{chunk-7JPLVECA.js → chunk-WVDM36ZM.js} +9838 -6458
  59. package/dist/chunk-WVDM36ZM.js.br +0 -0
  60. package/dist/chunk-WVDM36ZM.js.gz +0 -0
  61. package/dist/i18n.js +4 -4
  62. package/dist/i18n.js.br +0 -0
  63. package/dist/i18n.js.gz +0 -0
  64. package/dist/i18n.mjs +1 -1
  65. package/dist/i18n.mjs.br +0 -0
  66. package/dist/i18n.mjs.gz +0 -0
  67. package/dist/index.d.ts +497 -16
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +65 -41
  70. package/dist/index.js.br +0 -0
  71. package/dist/index.js.gz +0 -0
  72. package/dist/index.mjs +6 -6
  73. package/dist/index.mjs.br +0 -0
  74. package/dist/index.mjs.gz +0 -0
  75. package/dist/internals.d.ts +543 -32
  76. package/dist/internals.d.ts.map +1 -1
  77. package/dist/internals.js +79 -79
  78. package/dist/internals.js.br +0 -0
  79. package/dist/internals.js.gz +0 -0
  80. package/dist/internals.mjs +4 -4
  81. package/dist/internals.mjs.br +0 -0
  82. package/dist/internals.mjs.gz +0 -0
  83. package/dist/pptx-viewer.css +1 -1
  84. package/dist/pptx-viewer.css.br +0 -0
  85. package/dist/pptx-viewer.css.gz +0 -0
  86. package/dist/{types-DU35aAJK.d.ts → types-C_CTI-QE.d.ts} +3 -31
  87. package/dist/types-C_CTI-QE.d.ts.map +1 -0
  88. package/dist/{useViewerBuildingBlocks-C9-prKYB.d.ts → useViewerBuildingBlocks-DItilDbP.d.ts} +16 -3
  89. package/dist/useViewerBuildingBlocks-DItilDbP.d.ts.map +1 -0
  90. package/dist/viewer/index.d.ts +427 -39
  91. package/dist/viewer/index.js +27 -27
  92. package/dist/viewer/index.js.br +0 -0
  93. package/dist/viewer/index.js.gz +0 -0
  94. package/dist/viewer/index.mjs +6 -6
  95. package/dist/viewer/index.mjs.br +0 -0
  96. package/dist/viewer/index.mjs.gz +0 -0
  97. package/package.json +2 -2
  98. package/dist/AiChatPanel-HCHCVQN2.js.br +0 -0
  99. package/dist/AiChatPanel-HCHCVQN2.js.gz +0 -0
  100. package/dist/AiChatPanel-RZ4A7P4H.mjs.br +0 -0
  101. package/dist/AiChatPanel-RZ4A7P4H.mjs.gz +0 -0
  102. package/dist/Model3DScene-I7FR74AD.mjs.br +0 -0
  103. package/dist/Model3DScene-I7FR74AD.mjs.gz +0 -0
  104. package/dist/Model3DScene-LK7LSQNH.js.br +0 -0
  105. package/dist/Model3DScene-LK7LSQNH.js.gz +0 -0
  106. package/dist/SurfaceChart3DScene-DEQP5O3U.mjs.gz +0 -0
  107. package/dist/SurfaceChart3DScene-ODQY77SZ.js.br +0 -0
  108. package/dist/SurfaceChart3DScene-ODQY77SZ.js.gz +0 -0
  109. package/dist/chunk-422DF424.mjs.br +0 -0
  110. package/dist/chunk-422DF424.mjs.gz +0 -0
  111. package/dist/chunk-5BXATG54.js.br +0 -0
  112. package/dist/chunk-5BXATG54.js.gz +0 -0
  113. package/dist/chunk-7JPLVECA.js.br +0 -0
  114. package/dist/chunk-7JPLVECA.js.gz +0 -0
  115. package/dist/chunk-AONFHTTJ.js.br +0 -0
  116. package/dist/chunk-AONFHTTJ.js.gz +0 -0
  117. package/dist/chunk-ATOUVRRQ.js.br +0 -0
  118. package/dist/chunk-ATOUVRRQ.js.gz +0 -0
  119. package/dist/chunk-FXJOTEPO.mjs.br +0 -0
  120. package/dist/chunk-FXJOTEPO.mjs.gz +0 -0
  121. package/dist/chunk-K2QU73KB.mjs.br +0 -0
  122. package/dist/chunk-K2QU73KB.mjs.gz +0 -0
  123. package/dist/chunk-MQHC5TXI.mjs.br +0 -0
  124. package/dist/chunk-MQHC5TXI.mjs.gz +0 -0
  125. package/dist/chunk-NQJPPIVH.js.br +0 -0
  126. package/dist/chunk-NQJPPIVH.js.gz +0 -0
  127. package/dist/chunk-S64T7C4V.mjs.br +0 -0
  128. package/dist/chunk-TCGXGD6E.js.br +0 -0
  129. package/dist/chunk-TCGXGD6E.js.gz +0 -0
  130. package/dist/chunk-ZA5JONCW.mjs.br +0 -0
  131. package/dist/chunk-ZA5JONCW.mjs.gz +0 -0
  132. package/dist/types-DU35aAJK.d.ts.map +0 -1
  133. package/dist/useViewerBuildingBlocks-C9-prKYB.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1165,6 +1165,22 @@ interface ShapeStyle {
1165
1165
  fontRefIdx?: string;
1166
1166
  /** Raw XML colour child of `<a:fontRef>`. */
1167
1167
  fontRefColorXml?: XmlObject;
1168
+ /**
1169
+ * The fill `<a:fillRef>` resolved to, recorded ONLY when the shape's own
1170
+ * `spPr` authored no fill at all, so the reference is what paints it.
1171
+ *
1172
+ * Its absence therefore means "the fill is the shape's own", and its
1173
+ * presence plus an unchanged flat fill means "still purely inherited": see
1174
+ * `authored-shape-style.ts`, the shape-scope twin of `TextStyle`'s
1175
+ * `inheritedRunStyle`.
1176
+ */
1177
+ inheritedFillStyle?: ShapeStyle;
1178
+ /**
1179
+ * The outline `<a:lnRef>` resolved to, recorded before `spPr/a:ln` was
1180
+ * layered on top. A property that still equals this baseline was never
1181
+ * authored on the shape and must not be written back as if it were.
1182
+ */
1183
+ inheritedLineStyle?: ShapeStyle;
1168
1184
  }
1169
1185
  //#endregion
1170
1186
  //#region src/core/types/text.d.ts
@@ -1205,6 +1221,60 @@ interface ShapeStyle {
1205
1221
  interface TextStyle {
1206
1222
  /** Original `a:rPr` XML retained by projections that share the shape-text model. */
1207
1223
  runPropertiesXml?: XmlObject;
1224
+ /**
1225
+ * The properties this run's OWN `a:rPr` authored, and nothing else.
1226
+ *
1227
+ * A run style is assembled as
1228
+ * `{...inheritedRunStyle, ...authoredRunStyle}`, so the flat style is a
1229
+ * fully RESOLVED view: it cannot say whether `fontSize: 60` came from the
1230
+ * run, from the shape's `a:lstStyle`, from the layout placeholder, from the
1231
+ * master `p:txStyles` or from the theme. Omission is meaningful in OOXML
1232
+ * (§21.1.2.3), so a writer that re-emits the resolved view converts every
1233
+ * inherited value into an authored one and the deck stops being
1234
+ * theme-driven after one save.
1235
+ *
1236
+ * This is the run-scope twin of {@link TextSegment.paragraphProperties},
1237
+ * which is parsed strictly from the paragraph's own `a:pPr` for the same
1238
+ * reason. Present only for runs that came from a parsed deck; absent for
1239
+ * SDK-built text, where the flat style IS the only description and must be
1240
+ * written out in full.
1241
+ */
1242
+ authoredRunStyle?: TextStyle;
1243
+ /**
1244
+ * The resolved inheritance baseline {@link authoredRunStyle} was layered
1245
+ * on top of (shape `a:lstStyle` -> placeholder -> layout -> master
1246
+ * `p:txStyles` -> theme -> `p:defaultTextStyle`).
1247
+ *
1248
+ * Kept alongside the authored half because the two answer different
1249
+ * questions. The authored half says "the source pinned this"; the baseline
1250
+ * says "this value is what inheritance already produces", which is how an
1251
+ * EDIT is told apart from an inherited value: an editor mutates the flat
1252
+ * style without knowing about either field, so a property that now differs
1253
+ * from the baseline was either authored or edited and must be written,
1254
+ * while one that still matches can be left to inherit.
1255
+ *
1256
+ * Holds a reference to the per-paragraph baseline object rather than a
1257
+ * copy, so carrying it costs one pointer per run.
1258
+ */
1259
+ inheritedRunStyle?: TextStyle;
1260
+ /**
1261
+ * Snapshot of the ELEMENT-scope paragraph geometry (alignment, margins,
1262
+ * indent, line and paragraph spacing, tab stops, rtl, line-break flags) as
1263
+ * the load pipeline resolved it.
1264
+ *
1265
+ * Present only on an `element.textStyle` that came from a parsed deck, and
1266
+ * populated only with the geometry keys. It exists so the save path can
1267
+ * answer one question it otherwise cannot: has the user CHANGED the body's
1268
+ * alignment or indent, or is the value simply what the shape's
1269
+ * `a:lstStyle`, its layout placeholder and the master already produce?
1270
+ * Element-level text panels (`textAdvancedPatch`, `alignPatch` and friends
1271
+ * in `pptx-viewer-shared`) write `element.textStyle` and never touch
1272
+ * `segment.paragraphProperties`, so a diff against this snapshot is the
1273
+ * only way to tell an edit from an inheritance artefact.
1274
+ *
1275
+ * @see element-paragraph-geometry.ts
1276
+ */
1277
+ resolvedParagraphGeometry?: TextStyle;
1208
1278
  fontFamily?: string;
1209
1279
  fontSize?: number;
1210
1280
  /** When true, renderer should shrink text to fit the shape bounds. */
@@ -1869,6 +1939,15 @@ interface PptxElementBase {
1869
1939
  shapeId?: string;
1870
1940
  /** Element name from `cNvPr/@name`. Used for morph transition matching via the `!!` naming convention. */
1871
1941
  name?: string;
1942
+ /**
1943
+ * `p:nvSpPr/p:nvPr/p:ph/@type` (lower-cased) when the shape is a placeholder:
1944
+ * `title`, `ctrtitle`, `body`, `subtitle`, `ftr`, `dt`, `sldnum`, ...
1945
+ *
1946
+ * Captured on load so consumers can tell a footer placeholder from a text box
1947
+ * without re-walking `rawXml`. Absent on non-placeholder shapes and on
1948
+ * SDK-created elements.
1949
+ */
1950
+ placeholderType?: string;
1872
1951
  x: number;
1873
1952
  y: number;
1874
1953
  width: number;
@@ -1929,6 +2008,19 @@ interface PptxTextProperties {
1929
2008
  }>;
1930
2009
  /** Placeholder prompt text inherited from layout/master (e.g. "Click to add title"). Shown as a greyed-out hint when the shape has no user-entered text. */
1931
2010
  promptText?: string;
2011
+ /**
2012
+ * The string {@link text} was INHERITED from, when this is a header / footer /
2013
+ * date / slide-number placeholder whose own body the file leaves empty.
2014
+ *
2015
+ * PowerPoint keeps the footer string on the slide master and writes each
2016
+ * slide's copy of the `ftr` placeholder empty, so the empty body means
2017
+ * "render the master's footer here". Rendering needs the resolved string, but
2018
+ * SAVING it into the slide would pin that slide to today's master text and
2019
+ * silently detach it from the Header & Footer dialog. The save writer
2020
+ * therefore leaves the authored empty body alone while `text` still equals
2021
+ * this value, and writes a genuine per-slide override once it does not.
2022
+ */
2023
+ inheritedPlaceholderText?: string;
1932
2024
  /** Linked text box chain ID from `a:bodyPr > a:linkedTxbx/@id` or `a:txbx > a:linkedTxbx/@id`. Text overflows from one linked frame to the next. */
1933
2025
  linkedTxbxId?: number;
1934
2026
  /** Sequence number within a linked text box chain (0-based). */
@@ -2339,6 +2431,12 @@ interface PptxChartLineStyle {
2339
2431
  }
2340
2432
  /** Marker symbol types for line/scatter chart data points. */
2341
2433
  type PptxChartMarkerSymbol = 'circle' | 'dash' | 'diamond' | 'dot' | 'none' | 'picture' | 'plus' | 'square' | 'star' | 'triangle' | 'x' | 'auto';
2434
+ /**
2435
+ * `ST_ScatterStyle` (ECMA-376 §21.2.3.40): how a scatter chart joins its points.
2436
+ * `line`/`lineMarker` connect them with straight segments, `smooth`/
2437
+ * `smoothMarker` with a bezier, `marker`/`none` not at all.
2438
+ */
2439
+ type PptxChartScatterStyle = 'none' | 'line' | 'lineMarker' | 'marker' | 'smooth' | 'smoothMarker';
2342
2440
  /** Shape properties extracted from c:spPr for chart formatting. */
2343
2441
  interface PptxChartShapeProps {
2344
2442
  fillColor?: string;
@@ -2540,6 +2638,42 @@ interface PptxChartTreemapOptions {
2540
2638
  interface PptxChartSeries {
2541
2639
  name: string;
2542
2640
  values: number[];
2641
+ /**
2642
+ * Per-series x values from `c:ser/c:xVal` (scatter and bubble series only).
2643
+ *
2644
+ * Every `CT_ScatterSer` / `CT_BubbleSer` carries its OWN `c:xVal`, so two
2645
+ * series in one scatter chart routinely plot against different x ranges (the
2646
+ * normal case for measurement data). Reading the x values off the first
2647
+ * series and reusing them everywhere plotted every series against series 1's
2648
+ * x axis. Absent for category-axis chart kinds, where
2649
+ * {@link PptxChartData.categories} is the x axis.
2650
+ */
2651
+ xValues?: number[];
2652
+ /**
2653
+ * Per-series bubble sizes from `c:ser/c:bubbleSize` (bubble series only),
2654
+ * aligned index-for-index with {@link values}.
2655
+ *
2656
+ * `CT_BubbleSer` carries x, y AND size, so a one-series bubble chart is fully
2657
+ * specified. Absent when the source omits `c:bubbleSize`.
2658
+ */
2659
+ bubbleSizes?: number[];
2660
+ /**
2661
+ * Series-level data-label content flags from `c:ser/c:dLbls`.
2662
+ *
2663
+ * PowerPoint writes the flags a user picks in "Format Data Labels" onto the
2664
+ * SERIES, and leaves the chart-type-level `c:dLbls` all-zero, so reading only
2665
+ * the chart-level group reports "show nothing" for a chart that visibly shows
2666
+ * percentages. These override {@link PptxChartStyle.dataLabels}.
2667
+ */
2668
+ dataLabelOptions?: PptxChartDataLabelOptions;
2669
+ /**
2670
+ * Whether the series line is explicitly suppressed
2671
+ * (`c:ser/c:spPr/a:ln/a:noFill`). Line-drawn kinds (line, scatter, radar)
2672
+ * use this to decide whether to draw a connecting line at all; a marker-only
2673
+ * scatter is authored as `scatterStyle="lineMarker"` PLUS this flag, never by
2674
+ * changing the scatter style.
2675
+ */
2676
+ lineNoFill?: boolean;
2543
2677
  /**
2544
2678
  * Blank-value mask aligned index-for-index with {@link values}: `true` marks
2545
2679
  * a category whose numeric cache point (`c:numCache/c:pt`) was absent or
@@ -2883,6 +3017,17 @@ interface PptxChartData {
2883
3017
  * default), so only horizontal bar charts need to carry the field.
2884
3018
  */
2885
3019
  barDirection?: PptxChartBarDirection;
3020
+ /**
3021
+ * Scatter presentation mode (`c:scatterChart/c:scatterStyle/@val`).
3022
+ *
3023
+ * `lineMarker` (PowerPoint's own default for every scatter it writes) and
3024
+ * `smoothMarker` draw a connecting line; `marker` and `none` do not. Whether
3025
+ * the MARKERS appear is decided separately by `c:marker/c:symbol`, and
3026
+ * whether the LINE appears is further gated by
3027
+ * {@link PptxChartSeries.lineNoFill} - PowerPoint expresses "markers only" as
3028
+ * `lineMarker` plus an `a:ln/a:noFill`, not as `marker`.
3029
+ */
3030
+ scatterStyle?: PptxChartScatterStyle;
2886
3031
  /**
2887
3032
  * Bar/column gap between category clusters as a percentage of bar width
2888
3033
  * (`c:gapWidth/@val`, 0 through 500). Absent uses the renderer default.
@@ -3036,6 +3181,53 @@ interface PptxChartData {
3036
3181
  * // => { brightness: 20, contrast: -10, grayscale: true } satisfies PptxImageEffects
3037
3182
  * ```
3038
3183
  */
3184
+ /**
3185
+ * One `a14:foregroundMark` / `a14:backgroundMark` polyline hint recorded while
3186
+ * the user painted over the picture in PowerPoint's "Remove Background" mode.
3187
+ * Coordinates are 0..1 fractions of the image.
3188
+ */
3189
+ interface PptxBackgroundRemovalMark {
3190
+ x1: number;
3191
+ y1: number;
3192
+ x2: number;
3193
+ y2: number;
3194
+ }
3195
+ /**
3196
+ * PowerPoint "Remove Background" state (`a14:backgroundRemoval`).
3197
+ *
3198
+ * The four edges are the RETAINED rectangle as 0..1 fractions of the image
3199
+ * (OOXML stores them as per-100000 relative units), and the mark lists are the
3200
+ * segmentation hints the user painted.
3201
+ *
3202
+ * **This is edit-time metadata, not a render instruction.** PowerPoint bakes the
3203
+ * removal into the bitmap referenced by the main `a:blip/@r:embed` and keeps the
3204
+ * pristine original in `a14:imgLayer/@r:embed`. Verified against PowerPoint COM:
3205
+ * a slide exported with and without this element is byte-identical. A renderer
3206
+ * that clips to the retained rectangle would clip an image whose background has
3207
+ * already been removed.
3208
+ *
3209
+ * @example
3210
+ * ```ts
3211
+ * const removal: PptxBackgroundRemoval = { top: 0.12, bottom: 0.88, left: 0.07, right: 0.93 };
3212
+ * // => retains the middle of the image; the marks list stays empty
3213
+ * ```
3214
+ */
3215
+ interface PptxBackgroundRemoval {
3216
+ /** Top edge of the retained rectangle (0..1 fraction of the image height). */
3217
+ top: number;
3218
+ /** Bottom edge of the retained rectangle (0..1 fraction of the image height). */
3219
+ bottom: number;
3220
+ /** Left edge of the retained rectangle (0..1 fraction of the image width). */
3221
+ left: number;
3222
+ /** Right edge of the retained rectangle (0..1 fraction of the image width). */
3223
+ right: number;
3224
+ /** Strokes marking regions the user forced to be foreground. */
3225
+ foregroundMarks?: PptxBackgroundRemovalMark[];
3226
+ /** Strokes marking regions the user forced to be background. */
3227
+ backgroundMarks?: PptxBackgroundRemovalMark[];
3228
+ /** Original effect XML, retained for lossless re-emission. */
3229
+ rawXml?: XmlObject;
3230
+ }
3039
3231
  interface PptxImageEffects {
3040
3232
  /** Brightness adjustment (-100 to 100). */
3041
3233
  brightness?: number;
@@ -3059,8 +3251,38 @@ interface PptxImageEffects {
3059
3251
  };
3060
3252
  /** Artistic effect name (blur, pencilGrayscale, paintStrokes, etc.). */
3061
3253
  artisticEffect?: string;
3062
- /** Artistic effect radius/amount. */
3254
+ /** Artistic effect radius/amount, normalised to 0..100. */
3063
3255
  artisticRadius?: number;
3256
+ /**
3257
+ * Every numeric attribute of the source `a14:artistic*` element, raw and
3258
+ * un-normalised (`trans`, `pencilSize`, `crackSpacing`, …). The attribute set
3259
+ * differs per effect, so this is the lossless companion to the single
3260
+ * {@link PptxImageEffects.artisticRadius} number.
3261
+ */
3262
+ artisticParams?: Record<string, number>;
3263
+ /**
3264
+ * Name of the artistic effect ALREADY baked into the image data, which a
3265
+ * renderer must not apply a second time. Set from the `a14` blip extension,
3266
+ * which PowerPoint writes alongside a pre-rendered bitmap (see
3267
+ * {@link PptxBackgroundRemoval}), and normally equal to
3268
+ * {@link PptxImageEffects.artisticEffect}.
3269
+ *
3270
+ * It records the NAME rather than a boolean so that picking a different
3271
+ * effect in this library's inspector (which patches `artisticEffect` alone)
3272
+ * still renders: the two names then differ.
3273
+ */
3274
+ artisticPrerenderedEffect?: string;
3275
+ /**
3276
+ * PowerPoint "Remove Background" state (`a14:backgroundRemoval`). Edit-time
3277
+ * metadata: the removal is already baked into the image data.
3278
+ */
3279
+ backgroundRemoval?: PptxBackgroundRemoval;
3280
+ /**
3281
+ * `a14:imgLayer/@r:embed` — relationship id of the PRISTINE original image
3282
+ * the baked effects were derived from (PowerPoint stores it as an HD Photo
3283
+ * `.wdp` part, which browsers cannot decode).
3284
+ */
3285
+ originalImageRelId?: string;
3064
3286
  /** Alpha modulation fixed: non-negative percentage (100 means unchanged opacity). */
3065
3287
  alphaModFix?: number;
3066
3288
  /** Original alpha modulation fixed node, including foreign attributes. */
@@ -4972,7 +5194,7 @@ interface UnknownPptxElement extends PptxElementBase {
4972
5194
  /**
4973
5195
  * A single element on a PPTX slide.
4974
5196
  *
4975
- * This is a **discriminated union** narrow on `element.type` to access
5197
+ * This is a **discriminated union**: narrow on `element.type` to access
4976
5198
  * variant-specific properties like `imageData` (image/picture), `pathData`
4977
5199
  * (shape), or `textSegments` (text/shape).
4978
5200
  */
@@ -5705,6 +5927,54 @@ interface PptxEmbeddedFontList {
5705
5927
  rawXml?: XmlObject;
5706
5928
  }
5707
5929
  //#endregion
5930
+ //#region src/core/types/comment-mentions.d.ts
5931
+ /**
5932
+ * A single `@`-mention inside a modern comment body.
5933
+ *
5934
+ * Offsets index into the comment's FLATTENED plain text: every `a:t` value
5935
+ * below `p188:txBody` concatenated, with paragraphs joined by `\n`. That is the
5936
+ * same string `PptxComment.text` carries, so an edit to `text` invalidates
5937
+ * every offset after the edit point and the serializer re-bases them.
5938
+ *
5939
+ * The markup Office uses for a mention is `CT_Mention` (documented for the
5940
+ * SpreadsheetML `2018/threadedcomments` part): `mentionpersonId`, `mentionId`,
5941
+ * `startIndex` and `length`. The PowerPoint `2018/8/main` schema does not
5942
+ * publish a mention element at all, so `rawXml` is retained and re-emitted
5943
+ * attribute-for-attribute: a producer that spells the attributes differently
5944
+ * still round-trips.
5945
+ *
5946
+ * @example
5947
+ * ```ts
5948
+ * const mention: PptxCommentMention = {
5949
+ * personId: "{2CB2E9D0-D392-EB21-5D46-FBA34C1295E6}",
5950
+ * authorName: "Bob Example",
5951
+ * startIndex: 3,
5952
+ * length: 11,
5953
+ * };
5954
+ * // => "Hi Bob Example can you check this".slice(3, 14) === "Bob Example"
5955
+ * ```
5956
+ */
5957
+ interface PptxCommentMention {
5958
+ /** `mentionId`: GUID identifying this mention instance. */
5959
+ id?: string;
5960
+ /** `mentionpersonId`: the `p188:author` id of the mentioned person. */
5961
+ personId: string;
5962
+ /** Display name resolved from the author list at parse time, when known. */
5963
+ authorName?: string;
5964
+ /** Character offset of the mentioned span in the flattened plain text. */
5965
+ startIndex: number;
5966
+ /** Character length of the mentioned span. */
5967
+ length: number;
5968
+ /**
5969
+ * `uri` of the `p188:ext` this mention list was read from. Undefined means
5970
+ * the list is a direct child of `p188:cm`, which is where it is written for
5971
+ * newly authored mentions.
5972
+ */
5973
+ containerUri?: string;
5974
+ /** Original `p188:mention` node, retained for unknown-attribute preservation. */
5975
+ rawXml?: XmlObject;
5976
+ }
5977
+ //#endregion
5708
5978
  //#region src/core/types/metadata.d.ts
5709
5979
  /**
5710
5980
  * A slide comment — may be a legacy positional comment or a modern
@@ -5751,6 +6021,8 @@ interface PptxComment {
5751
6021
  title?: string;
5752
6022
  /** Modern threaded comment support (p15:threadingInfo). */
5753
6023
  threadId?: string;
6024
+ /** `@`-mentions, indexed into `text` (see {@link PptxCommentMention}). */
6025
+ mentions?: PptxCommentMention[];
5754
6026
  /** Replies to this comment (for modern threaded comments). */
5755
6027
  replies?: PptxComment[];
5756
6028
  /** ID of the element this comment is associated with (if any). */
@@ -6270,7 +6542,7 @@ interface PptxTheme {
6270
6542
  * // => "morph" — one of 40+ transition effects
6271
6543
  * ```
6272
6544
  */
6273
- type PptxTransitionType = 'none' | 'cut' | 'fade' | 'push' | 'wipe' | 'split' | 'randomBar' | 'blinds' | 'checker' | 'circle' | 'comb' | 'cover' | 'diamond' | 'dissolve' | 'plus' | 'pull' | 'random' | 'strips' | 'uncover' | 'wedge' | 'wheel' | 'zoom' | 'newsflash' | 'morph' | 'conveyor' | 'doors' | 'ferris' | 'flash' | 'flythrough' | 'gallery' | 'glitter' | 'honeycomb' | 'pan' | 'prism' | 'reveal' | 'ripple' | 'shred' | 'switch' | 'vortex' | 'warp' | 'wheelReverse' | 'window' | 'cube' | 'flip' | 'rotate' | 'orbit' | 'fallOver' | 'drape' | 'curtains' | 'wind' | 'prestige' | 'fracture' | 'crush' | 'peelOff' | 'pageCurlDouble' | 'pageCurlSingle' | 'airplane' | 'origami';
6545
+ type PptxTransitionType = 'none' | 'cut' | 'fade' | 'push' | 'wipe' | 'split' | 'randomBar' | 'blinds' | 'checker' | 'circle' | 'comb' | 'cover' | 'diamond' | 'dissolve' | 'plus' | 'pull' | 'random' | 'strips' | 'uncover' | 'wedge' | 'wheel' | 'zoom' | 'newsflash' | 'morph' | 'conveyor' | 'doors' | 'ferris' | 'flash' | 'flythrough' | 'gallery' | 'glitter' | 'honeycomb' | 'pan' | 'prism' | 'reveal' | 'ripple' | 'shred' | 'switch' | 'vortex' | 'warp' | 'wheelReverse' | 'window' | 'cube' | 'flip' | 'rotate' | 'box' | 'orbit' | 'fallOver' | 'drape' | 'curtains' | 'wind' | 'prestige' | 'fracture' | 'crush' | 'peelOff' | 'pageCurlDouble' | 'pageCurlSingle' | 'airplane' | 'origami';
6274
6546
  /** Split orientation from OOXML `@_orient`. */
6275
6547
  type PptxSplitOrientation = 'horz' | 'vert';
6276
6548
  /** Schema-defined `ST_TransitionSpeed` values. */
@@ -6565,6 +6837,18 @@ interface PptxSlideBackgroundPattern {
6565
6837
  interface PptxSlide {
6566
6838
  id: string;
6567
6839
  rId: string;
6840
+ /**
6841
+ * `p:sldIdLst/p:sldId/@id` (ST_SlideId, 256..2147483647): the numeric key
6842
+ * that sections (`p14:sldIdLst/p14:sldId/@id`) and section/summary zooms
6843
+ * name slides by.
6844
+ *
6845
+ * It lives in `presentation.xml`, NOT in the slide part, so it cannot be
6846
+ * recovered from `rawXml`. Without it on the model, code that writes a
6847
+ * section's membership has nothing correct to write and falls back to the
6848
+ * slide NUMBER, which is 1-based and therefore never matches a real deck's
6849
+ * ids: the section reloads with no slides in it.
6850
+ */
6851
+ slideId?: string;
6568
6852
  sourceSlideId?: string;
6569
6853
  /** Optional author-supplied slide name (set via `SlideBuilder.setName`). */
6570
6854
  name?: string;
@@ -6767,6 +7051,26 @@ interface PptxPresentationProperties {
6767
7051
  /** Kiosk auto-restart interval in milliseconds (from `p:kiosk/@restart`). Only meaningful when showType is "kiosk". */
6768
7052
  kioskRestartTime?: number;
6769
7053
  }
7054
+ /**
7055
+ * Slide dimensions from `p:sldSz` (CT_SlideSize, ECMA-376 §19.2.1.39).
7056
+ *
7057
+ * @example
7058
+ * ```ts
7059
+ * const size: PptxSlideSize = { widthEmu: 9144000, heightEmu: 6858000, type: 'screen4x3' };
7060
+ * // => satisfies PptxSlideSize
7061
+ * ```
7062
+ */
7063
+ interface PptxSlideSize {
7064
+ /** `@cx` in EMU. Omitted or non-positive values leave the loaded width alone. */
7065
+ widthEmu?: number;
7066
+ /** `@cy` in EMU. Omitted or non-positive values leave the loaded height alone. */
7067
+ heightEmu?: number;
7068
+ /**
7069
+ * `@type` (ST_SlideSizeType). The schema default is `custom`, which is
7070
+ * why PowerPoint omits the attribute for a non-preset size.
7071
+ */
7072
+ type?: string;
7073
+ }
6770
7074
  /**
6771
7075
  * A named custom slide show (`p:custShowLst / p:custShow`).
6772
7076
  *
@@ -7781,6 +8085,19 @@ interface PptxHandlerSaveOptions {
7781
8085
  customerData?: PptxCustomerData[];
7782
8086
  /** Photo album metadata to save back to `p:photoAlbum`. */
7783
8087
  photoAlbum?: PptxPhotoAlbum;
8088
+ /**
8089
+ * Slide dimensions to write back to `p:sldSz`.
8090
+ *
8091
+ * Omitting the option preserves the load-time dimensions verbatim, which
8092
+ * is why an edit made through a viewer's Slide Size control has to reach
8093
+ * the save call: nothing else in the pipeline can observe it.
8094
+ *
8095
+ * PowerPoint derives `Presentation.PageSetup.SlideSize` from `@cx`/`@cy`
8096
+ * alone (verified by COM: an A4-typed `p:sldSz` carrying 4:3 dimensions
8097
+ * still reports `ppSlideSizeCustom`), so `type` is written for fidelity
8098
+ * but the dimensions are what actually decide the reported preset.
8099
+ */
8100
+ slideSize?: PptxSlideSize;
7784
8101
  /** East Asian line-break settings to save back to `p:kinsoku`. */
7785
8102
  kinsoku?: PptxKinsoku | null;
7786
8103
  /** Write-protection verifier. Set to `null` to remove, `undefined` to preserve existing. */
@@ -8372,24 +8689,38 @@ declare class PptxHandlerCore {
8372
8689
  name?: string;
8373
8690
  }>>;
8374
8691
  /**
8375
- * Export selected slides as individual PPTX files.
8692
+ * Export selected slides to a vector or raster format, keyed by slide index.
8693
+ *
8694
+ * **This does not produce PPTX files.** The previous version of this comment
8695
+ * said each entry was "a standalone PPTX with only that slide", named the
8696
+ * option `slideIndexes` (the real field is `slideIndices`), and wrote the
8697
+ * bytes to `slide_N.pptx`. None of that was ever true: the runtime has
8698
+ * always taken a `format` of `svg` / `png` / `pdf`. Per-slide PPTX
8699
+ * extraction is a different operation and is not implemented here.
8376
8700
  *
8377
- * Each entry in the returned map is keyed by slide index and contains a
8378
- * standalone `Uint8Array` PPTX with only that slide.
8701
+ * Only `svg` works without a host-supplied backend, and it works fully:
8702
+ * the headless {@link SvgExporter} renders it with no DOM. `png` and `pdf`
8703
+ * THROW, because this package carries no rasteriser; use a viewer binding's
8704
+ * browser export pipeline, or override `exportSlides` on the runtime with
8705
+ * your own backend.
8379
8706
  *
8380
8707
  * @param slides - Full slide array.
8381
- * @param options - Export options (slide indexes, format, etc.).
8382
- * @returns A `Map<slideIndex, Uint8Array>` of exported files.
8708
+ * @param options - Export options (`format`, `slideIndices`, `width`, ...).
8709
+ * @returns A `Map<slideIndex, Uint8Array>` of exported files. Hidden slides
8710
+ * are omitted unless `options.includeHidden` is set, so the map can be
8711
+ * smaller than `options.slideIndices`.
8712
+ * @throws {Error} when `options.format` is `png` or `pdf`.
8383
8713
  *
8384
8714
  * @example
8385
8715
  * ```ts
8386
8716
  * const exports = await handler.exportSlides(data.slides, {
8387
- * slideIndexes: [0, 2],
8717
+ * format: 'svg',
8718
+ * slideIndices: [0, 2],
8388
8719
  * });
8389
8720
  * for (const [idx, bytes] of exports) {
8390
- * await fs.writeFile(`slide_${idx}.pptx`, Buffer.from(bytes));
8721
+ * await fs.writeFile(`slide_${idx}.svg`, Buffer.from(bytes));
8391
8722
  * }
8392
- * // => Map<number, Uint8Array> one standalone .pptx per exported slide
8723
+ * // => Map<number, Uint8Array>: one SVG document per exported slide
8393
8724
  * ```
8394
8725
  */
8395
8726
  exportSlides(slides: PptxSlide[], options: PptxExportOptions): Promise<Map<number, Uint8Array>>;
@@ -8967,6 +9298,68 @@ interface FieldSubstitutionContext {
8967
9298
  //#endregion
8968
9299
  //#region src/render/text-case-transform.d.ts
8969
9300
  type ChangeCaseMode = 'sentence' | 'lower' | 'upper' | 'capitalize' | 'toggle';
9301
+ //#endregion
9302
+ //#region src/render/shape-adjustment-model.d.ts
9303
+ /**
9304
+ * `shape-adjustment-model`: the vocabulary the adjust-handle modules share.
9305
+ *
9306
+ * The `a:ahLst` work is split three ways for the repo's file-size budget:
9307
+ * `shape-adjustment-probe` measures the geometry, `shape-adjustment-handles`
9308
+ * derives the handles from those measurements, and `shape-adjustment-solver`
9309
+ * turns a pointer position back into guide values. All three need these types
9310
+ * and the one rule that operates purely on them, so they live here and the
9311
+ * dependency graph stays a DAG rather than a cycle.
9312
+ *
9313
+ * @module render/shape-adjustment-model
9314
+ */
9315
+ /**
9316
+ * How a pointer position becomes a guide value, captured once when the gesture
9317
+ * starts so `pointermove` stays pure arithmetic.
9318
+ */
9319
+ interface ShapeAdjustmentSolver {
9320
+ /** `linear`: the handle slides. `angular`: it swings about {@link centerX}. */
9321
+ kind: 'linear' | 'angular';
9322
+ /** Handle position in element-local px at {@link startValue}. */
9323
+ anchorX: number;
9324
+ anchorY: number;
9325
+ /** Element-local px the handle travels per ONE unit of guide value. */
9326
+ dirX: number;
9327
+ dirY: number;
9328
+ /** Pivot for an angular handle (the shape centre). */
9329
+ centerX: number;
9330
+ centerY: number;
9331
+ /** The guide value the anchor was measured at. */
9332
+ startValue: number;
9333
+ /** Guide-space bounds, taken from the preset's own `pin` clamp. */
9334
+ min: number;
9335
+ max: number;
9336
+ }
9337
+ /** One guide a handle drives. */
9338
+ interface AdjustmentAxisSolver {
9339
+ key: string;
9340
+ solver: ShapeAdjustmentSolver;
9341
+ }
9342
+ /** Descriptor for one draggable adjustment handle (the amber diamond). */
9343
+ interface ShapeAdjustmentHandleDescriptor {
9344
+ /** The `a:avLst` guide name this handle writes (`adj`, `adj1`, ...). */
9345
+ key: string;
9346
+ /** Handle x offset in element-local px (origin = element top-left). */
9347
+ left: number;
9348
+ /** Handle y offset in element-local px. */
9349
+ top: number;
9350
+ /**
9351
+ * Current adjustment value in GUIDE units, not a 0-1 fraction. Most presets
9352
+ * range 0..50000 or 0..100000 and the angular ones run to 21,600,000.
9353
+ */
9354
+ value: number;
9355
+ cursor: string;
9356
+ /**
9357
+ * How this handle's drag resolves, measured off the preset geometry: one
9358
+ * entry per `a:avLst` guide it drives (callouts drive two). Absent only for
9359
+ * a caller that built a descriptor by hand.
9360
+ */
9361
+ solvers?: AdjustmentAxisSolver[];
9362
+ }
8970
9363
  /**
8971
9364
  * A font supplied by the host application. The package never ships fonts:
8972
9365
  * applications provide a licensed URL, data URL, or blob URL for their users.
@@ -8979,6 +9372,80 @@ interface ViewerFontSource {
8979
9372
  style?: 'normal' | 'italic';
8980
9373
  }
8981
9374
  //#endregion
9375
+ //#region src/render/presentation-file-kinds.d.ts
9376
+ /**
9377
+ * presentation-file-kinds: the one place that answers "can the viewer open
9378
+ * this file?" and "what should the saved copy be called?".
9379
+ *
9380
+ * ## Why this is a shared decision and not five allow-lists
9381
+ *
9382
+ * The loader reads more formats than any single UI advertises. Legacy binary
9383
+ * `.ppt` (PowerPoint 97-2003) is the sharp example: `PptxHandler.load()` has
9384
+ * detected the OLE compound-file container and converted the binary deck
9385
+ * through the regular pptx pipeline for some time, but the product kept saying
9386
+ * it was unsupported, and a picker that filters the extension out makes a
9387
+ * working loader unreachable in practice. Whenever the loader learns a format,
9388
+ * exactly one list has to change.
9389
+ *
9390
+ * ## Read many, write one
9391
+ *
9392
+ * Input is a superset of output. We READ `.pptx`, `.ppsx`, `.pptm`, `.potx`,
9393
+ * legacy binary `.ppt` and portable `pptx-viewer-json`; we WRITE only the
9394
+ * OpenXML family. That asymmetry is deliberate (PowerPoint itself does the
9395
+ * same: open a 97-2003 deck and Save As offers `.pptx`), and it is why
9396
+ * {@link savedPresentationFileName} always REPLACES the source extension
9397
+ * rather than keeping it. A deck opened as `report.ppt` and saved as
9398
+ * `report.ppt` would be a file whose bytes and whose name disagree, which is
9399
+ * the kind of thing PowerPoint refuses to open.
9400
+ *
9401
+ * This module deliberately imports nothing, so any layer (render, export, a
9402
+ * binding, a host app) can depend on it without risking an import cycle.
9403
+ *
9404
+ * @module render/presentation-file-kinds
9405
+ */
9406
+ /**
9407
+ * Extensions the built-in file picker offers, in the order it offers them.
9408
+ *
9409
+ * `.ppt` is in the list because the loader genuinely handles it, not as a
9410
+ * courtesy: see `packages/core/src/core/ppt/` and the `ppt-import` integration
9411
+ * suite, which asserts a `.ppt` loads to the same model as the `.pptx` it was
9412
+ * exported from.
9413
+ */
9414
+ declare const PRESENTATION_OPEN_EXTENSIONS: readonly ['.pptx', '.ppsx', '.pptm', '.potx', '.ppt', '.json'];
9415
+ /** Comma-separated `accept` attribute for a presentation file input. */
9416
+ declare const PPTX_OPEN_ACCEPT: string;
9417
+ /**
9418
+ * True when a picked / dropped file's name looks like something the loader can
9419
+ * open. Use this instead of a hand-rolled `endsWith` chain: a drop handler that
9420
+ * disagrees with the picker's `accept` list is a format that is supported by
9421
+ * mouse but not by drag, which is how `.ppt` stayed invisible.
9422
+ *
9423
+ * Extension-only, by design. The real answer comes from the container sniff in
9424
+ * `PptxHandler.load()`; this is only the cheap pre-filter a drop target needs
9425
+ * before it hands bytes to the loader.
9426
+ */
9427
+ declare function isSupportedPresentationFile(name: string | null | undefined): boolean;
9428
+ /** True for the binary PowerPoint 97-2003 family, which we read but never write. */
9429
+ declare function isLegacyBinaryPresentation(name: string | null | undefined): boolean;
9430
+ /** The formats the save path can produce. Binary `.ppt` is deliberately absent. */
9431
+ type SavedPresentationFormat = 'pptx' | 'ppsx' | 'pptm';
9432
+ /**
9433
+ * The stem of a presentation file name: directories and any loadable extension
9434
+ * removed. `C:\decks\report.ppt` becomes `report`; a name with no recognised
9435
+ * extension is kept whole, so `Untitled Presentation` survives intact rather
9436
+ * than losing everything after its last dot.
9437
+ */
9438
+ declare function presentationBaseName(sourceName: string | null | undefined, fallback?: string): string;
9439
+ /**
9440
+ * The name a saved copy should be offered under: the source stem plus the
9441
+ * extension of the format actually being written.
9442
+ *
9443
+ * This is what turns `report.ppt` into `report.pptx` on Save As. Output is
9444
+ * always an OpenXML package, so keeping the source extension would mislabel
9445
+ * the bytes.
9446
+ */
9447
+ declare function savedPresentationFileName(sourceName: string | null | undefined, format?: SavedPresentationFormat): string;
9448
+ //#endregion
8982
9449
  //#region src/render/insert-chart.d.ts
8983
9450
  /**
8984
9451
  * Dropdown ids for the insert-chart menu. Distinct from `PptxChartType`
@@ -9117,13 +9584,25 @@ interface ViewerProofingOptions {
9117
9584
  checkSpellingAsYouType: boolean;
9118
9585
  hideSpellingErrors: boolean;
9119
9586
  }
9587
+ /**
9588
+ * File > Options > Save.
9589
+ *
9590
+ * Font embedding deliberately has NO entry here. It is owned by the File >
9591
+ * Fonts panel, whose toggle is the one the save path reads (see
9592
+ * `render/font-embedding`: `describeFontEmbedding` decides the toggle's start
9593
+ * position and whether it can do anything at all, `embeddedFontSaveOptions`
9594
+ * turns it into the `PptxHandler.save()` slice). This group used to carry a
9595
+ * second `embedFonts` boolean, plus an `embedAllFontCharacters` companion, and
9596
+ * neither was read by anything: the pane moved a switch that changed no saved
9597
+ * byte, while the panel next door moved the real one. Two switches for one
9598
+ * setting, one of them lying, is worse than one switch in a less
9599
+ * PowerPoint-shaped place.
9600
+ */
9120
9601
  interface ViewerSaveOptions {
9121
9602
  autoSave: boolean;
9122
9603
  autoRecoverIntervalMinutes: number;
9123
9604
  keepLastAutoRecoveredVersion: boolean;
9124
9605
  defaultExportFormat: DefaultExportFormat;
9125
- embedFonts: boolean;
9126
- embedAllFontCharacters: boolean;
9127
9606
  cacheRetentionDays: number;
9128
9607
  clearCacheOnClose: boolean;
9129
9608
  }
@@ -9898,6 +10377,8 @@ interface ToolbarProps {
9898
10377
  onToggleVersionHistory?: () => void;
9899
10378
  onOpenPasswordProtection?: () => void;
9900
10379
  onOpenDocumentProperties?: () => void;
10380
+ /** Design > Slide Size: reveal the inspector card that owns the slide size. */
10381
+ onOpenSlideSize?: () => void;
9901
10382
  onOpenFontEmbedding?: () => void;
9902
10383
  onOpenDigitalSignatures?: () => void;
9903
10384
  onEnterMasterView: () => void;
@@ -10023,7 +10504,7 @@ interface SlideCanvasProps {
10023
10504
  /** Called when the user presses mouse down on empty canvas space. */
10024
10505
  onCanvasMouseDown?: (e: React$1__default.MouseEvent) => void;
10025
10506
  onResizePointerDown: (elementId: string, e: React$1__default.MouseEvent, handle: string) => void;
10026
- onAdjustmentPointerDown: (elementId: string, e: React$1__default.MouseEvent) => void;
10507
+ onAdjustmentPointerDown: (elementId: string, e: React$1__default.MouseEvent, descriptor: ShapeAdjustmentHandleDescriptor) => void;
10027
10508
  /** Commit a new rotation (degrees) when the on-canvas rotate handle is dragged. */
10028
10509
  onRotate?: (elementId: string, rotationDeg: number) => void;
10029
10510
  onInlineEditChange: (text: string) => void;
@@ -10223,5 +10704,5 @@ declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePrevi
10223
10704
  */
10224
10705
  declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
10225
10706
 
10226
- export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, LOCALE_CATALOG, PowerPointViewer, SLIDE_TEMPLATES, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, VIEWER_PREFS_STORAGE_KEY, ViewerThemeProvider, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getAnimationInitialStyle, getLocalStorageUsageSummary, readStoredViewerPrefs, renderToCanvas, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, useViewerBuildingBlocks, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs };
10227
- export type { AccountAuthConfig, LocalStorageUsageSummary, LocaleCatalogEntry, PowerPointViewerAPI, PowerPointViewerHandle, PowerPointViewerProps, PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplateId, SlideTemplatePreviewProps, SlideTemplateSpec, StoredViewerPrefs, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarProps, ToolbarTabId, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerMode, ViewerProfile, ViewerTheme, ViewerThemeColors };
10707
+ export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, LOCALE_CATALOG, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PowerPointViewer, SLIDE_TEMPLATES, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, VIEWER_PREFS_STORAGE_KEY, ViewerThemeProvider, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getAnimationInitialStyle, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, renderToCanvas, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, useViewerBuildingBlocks, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs };
10708
+ export type { AccountAuthConfig, LocalStorageUsageSummary, LocaleCatalogEntry, PowerPointViewerAPI, PowerPointViewerHandle, PowerPointViewerProps, PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy, SavedPresentationFormat, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplateId, SlideTemplatePreviewProps, SlideTemplateSpec, StoredViewerPrefs, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarProps, ToolbarTabId, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerMode, ViewerProfile, ViewerTheme, ViewerThemeColors };