pptx-react-viewer 1.1.2 → 1.1.4

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 (25) hide show
  1. package/dist/index.js +587 -288
  2. package/dist/index.mjs +587 -288
  3. package/dist/pptx-viewer.css +1 -1
  4. package/dist/viewer/index.js +587 -288
  5. package/dist/viewer/index.mjs +587 -288
  6. package/node_modules/emf-converter/package.json +2 -2
  7. package/node_modules/mtx-decompressor/package.json +2 -2
  8. package/node_modules/pptx-viewer-core/dist/{SvgExporter--H1PDfAY.d.ts → SvgExporter-0TxiiorD.d.ts} +1 -1
  9. package/node_modules/pptx-viewer-core/dist/{SvgExporter-Dq_2eV_r.d.mts → SvgExporter-BQ4KbRO9.d.mts} +1 -1
  10. package/node_modules/pptx-viewer-core/dist/cli/index.d.mts +2 -2
  11. package/node_modules/pptx-viewer-core/dist/cli/index.d.ts +2 -2
  12. package/node_modules/pptx-viewer-core/dist/cli/index.js +2875 -321
  13. package/node_modules/pptx-viewer-core/dist/cli/index.mjs +2875 -321
  14. package/node_modules/pptx-viewer-core/dist/converter/index.d.mts +3 -3
  15. package/node_modules/pptx-viewer-core/dist/converter/index.d.ts +3 -3
  16. package/node_modules/pptx-viewer-core/dist/index.d.mts +713 -44
  17. package/node_modules/pptx-viewer-core/dist/index.d.ts +713 -44
  18. package/node_modules/pptx-viewer-core/dist/index.js +2958 -390
  19. package/node_modules/pptx-viewer-core/dist/index.mjs +2949 -390
  20. package/node_modules/pptx-viewer-core/dist/{presentation-BozkirFp.d.mts → presentation-ArhfImJ5.d.mts} +225 -8
  21. package/node_modules/pptx-viewer-core/dist/{presentation-BozkirFp.d.ts → presentation-ArhfImJ5.d.ts} +225 -8
  22. package/node_modules/pptx-viewer-core/dist/{text-operations-B2JbPA5H.d.mts → text-operations-CLj-sJyk.d.mts} +1 -1
  23. package/node_modules/pptx-viewer-core/dist/{text-operations-zwF6i4eH.d.ts → text-operations-rhJV-A_W.d.ts} +1 -1
  24. package/node_modules/pptx-viewer-core/package.json +5 -5
  25. package/package.json +20 -20
@@ -426,6 +426,13 @@ interface TextStyle {
426
426
  /** Whether the hyperlink target is an internal slide jump (targetSlideIndex style). */
427
427
  hyperlinkTargetSlideIndex?: number;
428
428
  color?: string;
429
+ /**
430
+ * Raw XML colour-choice node preserved from `a:rPr/a:solidFill` for
431
+ * round-trip serialisation. Captures `a:schemeClr` / `a:sysClr` /
432
+ * `a:prstClr` / `a:srgbClr` plus colour transforms. On save we re-emit
433
+ * verbatim when the resolved {@link color} still matches this node.
434
+ */
435
+ colorXml?: XmlObject;
429
436
  align?: 'left' | 'center' | 'right' | 'justify' | 'justLow' | 'dist' | 'thaiDist';
430
437
  vAlign?: 'top' | 'middle' | 'bottom';
431
438
  /** Right-to-left paragraph/run direction (`a:pPr/@rtl`, `a:rPr/@rtl`). */
@@ -524,6 +531,36 @@ interface TextStyle {
524
531
  smartTagClean?: boolean;
525
532
  /** Bookmark link target (`a:rPr/@bmk`). */
526
533
  bookmark?: string;
534
+ /** Alternative language for the run (`a:rPr/@altLang`). Populated for runs
535
+ * authored in mixed-script documents (e.g. Asian/Latin combined). */
536
+ altLanguage?: string;
537
+ /** SmartTag (Office grammar tag) GUID id (`a:rPr/@smtId`). Round-tripped
538
+ * verbatim — the engine doesn't interpret it. */
539
+ smartTagId?: number;
540
+ /** Latin font PANOSE classification string from `a:rPr > a:latin/@panose`. */
541
+ latinFontPanose?: string;
542
+ /** Latin font pitch + family flag from `a:rPr > a:latin/@pitchFamily`. */
543
+ latinFontPitchFamily?: number;
544
+ /** Latin font character set id from `a:rPr > a:latin/@charset`. */
545
+ latinFontCharset?: number;
546
+ /** East-Asian font PANOSE from `a:rPr > a:ea/@panose`. */
547
+ eastAsiaFontPanose?: string;
548
+ /** East-Asian font pitch + family flag from `a:rPr > a:ea/@pitchFamily`. */
549
+ eastAsiaFontPitchFamily?: number;
550
+ /** East-Asian font character set id from `a:rPr > a:ea/@charset`. */
551
+ eastAsiaFontCharset?: number;
552
+ /** Complex-script font PANOSE from `a:rPr > a:cs/@panose`. */
553
+ complexScriptFontPanose?: string;
554
+ /** Complex-script font pitch + family flag from `a:rPr > a:cs/@pitchFamily`. */
555
+ complexScriptFontPitchFamily?: number;
556
+ /** Complex-script font character set id from `a:rPr > a:cs/@charset`. */
557
+ complexScriptFontCharset?: number;
558
+ /** Symbol-font PANOSE from `a:rPr > a:sym/@panose`. */
559
+ symbolFontPanose?: string;
560
+ /** Symbol-font pitch + family flag from `a:rPr > a:sym/@pitchFamily`. */
561
+ symbolFontPitchFamily?: number;
562
+ /** Symbol-font character set id from `a:rPr > a:sym/@charset`. */
563
+ symbolFontCharset?: number;
527
564
  /** Paragraph list type for toggling bullet / numbered lists via the toolbar.
528
565
  * - `'bullet'` — character bullet (default "•")
529
566
  * - `'numbered'` — auto-numbered list (arabicPeriod)
@@ -671,6 +708,15 @@ interface BulletInfo {
671
708
  imageRelId?: string;
672
709
  /** Picture bullet: data URL of the embedded image. */
673
710
  imageDataUrl?: string;
711
+ /** When true, `<a:buFontTx/>` was specified — inherit the bullet font from
712
+ * the run text, not from a buFont declaration. */
713
+ fontInherit?: boolean;
714
+ /** When true, `<a:buClrTx/>` was specified — inherit the bullet colour from
715
+ * the run text. */
716
+ colorInherit?: boolean;
717
+ /** When true, `<a:buSzTx/>` was specified — inherit the bullet size from
718
+ * the run text font size. */
719
+ sizeInherit?: boolean;
674
720
  }
675
721
  /**
676
722
  * A single text run within a paragraph.
@@ -708,6 +754,22 @@ interface TextSegment {
708
754
  isParagraphBreak?: boolean;
709
755
  /** Structured bullet info for the first segment of a paragraph. */
710
756
  bulletInfo?: BulletInfo;
757
+ /**
758
+ * Outline level for the paragraph this segment starts (`a:p/@lvl`).
759
+ *
760
+ * Only meaningful on the first segment of a paragraph (matching the
761
+ * convention used for {@link bulletInfo}). Stored as the raw OOXML
762
+ * value (0 = top level, 1-8 = nested) and serialised back when non-zero.
763
+ */
764
+ paragraphLevel?: number;
765
+ /**
766
+ * Raw `a:endParaRPr` XML node for the paragraph this segment starts.
767
+ *
768
+ * Captured verbatim on parse so attributes and child colours/fonts that
769
+ * the typed model doesn't represent survive a round-trip. Only meaningful
770
+ * on the first segment of a paragraph.
771
+ */
772
+ endParaRunProperties?: Record<string, unknown>;
711
773
  /**
712
774
  * Phonetic annotation text from `a:ruby > a:rt` (e.g. furigana, pinyin).
713
775
  * When present, the renderer should wrap the base text with an HTML `<ruby>` tag.
@@ -787,6 +849,15 @@ interface TextSegment {
787
849
  */
788
850
  interface ShapeStyle {
789
851
  fillColor?: string;
852
+ /**
853
+ * Raw XML colour-choice node preserved from `a:solidFill` for round-trip
854
+ * serialisation. Captures `a:schemeClr` / `a:sysClr` / `a:prstClr` /
855
+ * `a:srgbClr` plus colour transforms (`lumMod`, `lumOff`, `tint`,
856
+ * `shade`, `satMod`, `alpha`, …). On save we re-emit verbatim when the
857
+ * resolved {@link fillColor} still matches this node, otherwise we fall
858
+ * back to canonical `<a:srgbClr>`.
859
+ */
860
+ fillColorXml?: XmlObject;
790
861
  fillGradient?: string;
791
862
  fillMode?: 'solid' | 'gradient' | 'pattern' | 'none' | 'image' | 'theme' | 'group';
792
863
  fillPatternPreset?: string;
@@ -825,13 +896,30 @@ interface ShapeStyle {
825
896
  r: number;
826
897
  b: number;
827
898
  };
899
+ /** Gradient tile flip mode (`a:gradFill/@flip`).
900
+ * `none` = no tiling flip (default), `x|y|xy` = mirror in the named axis. */
901
+ fillGradientFlip?: 'none' | 'x' | 'y' | 'xy';
902
+ /** Whether the gradient rotates with the shape (`a:gradFill/@rotWithShape`).
903
+ * Defaults to true per the schema; preserved for round-trip when the source
904
+ * authored the attribute explicitly. */
905
+ fillGradientRotWithShape?: boolean;
906
+ /** Whether the linear gradient is scaled to the shape (`a:lin/@scaled`).
907
+ * Defaults to true per the schema; preserved for round-trip. */
908
+ fillGradientScaled?: boolean;
828
909
  fillOpacity?: number;
829
910
  strokeColor?: string;
911
+ /**
912
+ * Raw XML colour-choice node preserved from `a:ln/a:solidFill` for
913
+ * round-trip serialisation. See {@link fillColorXml} for the rationale.
914
+ */
915
+ strokeColorXml?: XmlObject;
830
916
  strokeWidth?: number;
831
917
  strokeOpacity?: number;
832
918
  strokeDash?: StrokeDashType;
833
919
  /** Line join style (`a:ln/@join`): round, bevel, or miter. */
834
920
  lineJoin?: 'round' | 'bevel' | 'miter';
921
+ /** Miter limit (`a:miter/@lim`) in EMU-percent units (default 800000 = 8.0). Only meaningful when lineJoin is 'miter'. */
922
+ miterLimit?: number;
835
923
  /** Line cap style (`a:ln/@cap`): flat, rnd, or sq. */
836
924
  lineCap?: 'flat' | 'rnd' | 'sq';
837
925
  /** Compound line type (`a:ln/@cmpd`). */
@@ -849,6 +937,34 @@ interface ShapeStyle {
849
937
  shadowDistance?: number;
850
938
  /** Whether shadow rotates with shape. Parsed from `@_rotWithShape`. */
851
939
  shadowRotateWithShape?: boolean;
940
+ /** Outer-shadow horizontal scaling (`a:outerShdw/@sx`) in 1000ths of a percent (default 100000 = 100%). */
941
+ shadowScaleX?: number;
942
+ /** Outer-shadow vertical scaling (`a:outerShdw/@sy`). */
943
+ shadowScaleY?: number;
944
+ /** Outer-shadow horizontal skew (`a:outerShdw/@kx`) in 60000ths of a degree. */
945
+ shadowSkewX?: number;
946
+ /** Outer-shadow vertical skew (`a:outerShdw/@ky`). */
947
+ shadowSkewY?: number;
948
+ /** Outer-shadow alignment (`a:outerShdw/@algn`). */
949
+ shadowAlignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
950
+ /** Inner-shadow rotateWithShape (`a:innerShdw/@rotWithShape`). */
951
+ innerShadowRotateWithShape?: boolean;
952
+ /** Reflection fade direction (`a:reflection/@fadeDir`) in 60000ths of a degree. */
953
+ reflectionFadeDirection?: number;
954
+ /** Reflection horizontal scaling (`a:reflection/@sx`). */
955
+ reflectionScaleX?: number;
956
+ /** Reflection vertical scaling (`a:reflection/@sy`). */
957
+ reflectionScaleY?: number;
958
+ /** Reflection horizontal skew (`a:reflection/@kx`). */
959
+ reflectionSkewX?: number;
960
+ /** Reflection vertical skew (`a:reflection/@ky`). */
961
+ reflectionSkewY?: number;
962
+ /** Reflection alignment (`a:reflection/@algn`). */
963
+ reflectionAlignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br';
964
+ /** Reflection rotateWithShape (`a:reflection/@rotWithShape`). */
965
+ reflectionRotateWithShape?: boolean;
966
+ /** Reflection start position (`a:reflection/@stPos`) as 0-1 fraction. */
967
+ reflectionStartPosition?: number;
852
968
  /** Multiple shadow layers (for advanced effects). */
853
969
  shadows?: ShadowEffect[];
854
970
  glowColor?: string;
@@ -951,6 +1067,22 @@ interface ShapeStyle {
951
1067
  };
952
1068
  /** Fill overlay blend mode from effectDag `a:fillOverlay/@blend`. */
953
1069
  dagFillOverlayBlend?: 'over' | 'mult' | 'screen' | 'darken' | 'lighten';
1070
+ /** `<a:lnRef @idx>` — 1-based index into the theme's lnStyleLst. */
1071
+ lnRefIdx?: number;
1072
+ /** Raw XML colour child of `<a:lnRef>` (e.g. `<a:schemeClr>` with transforms). */
1073
+ lnRefColorXml?: XmlObject;
1074
+ /** `<a:fillRef @idx>` — 1-based index into fillStyleLst (1-3) or bgFillStyleLst (1001-1003). */
1075
+ fillRefIdx?: number;
1076
+ /** Raw XML colour child of `<a:fillRef>`. */
1077
+ fillRefColorXml?: XmlObject;
1078
+ /** `<a:effectRef @idx>` — 1-based index into the theme's effectStyleLst. */
1079
+ effectRefIdx?: number;
1080
+ /** Raw XML colour child of `<a:effectRef>`. */
1081
+ effectRefColorXml?: XmlObject;
1082
+ /** `<a:fontRef @idx>` — typically `major`, `minor`, or `none`. */
1083
+ fontRefIdx?: string;
1084
+ /** Raw XML colour child of `<a:fontRef>`. */
1085
+ fontRefColorXml?: XmlObject;
954
1086
  }
955
1087
 
956
1088
  /**
@@ -1187,6 +1319,27 @@ interface CustomGeometryPath {
1187
1319
  height: number;
1188
1320
  /** Ordered list of drawing segments. */
1189
1321
  segments: CustomGeometrySegment[];
1322
+ /** Path fill mode (`a:path/@fill`): norm, lighten, lightenLess, darken, darkenLess, none. */
1323
+ fillMode?: 'norm' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess' | 'none';
1324
+ /** Whether the path is stroked (`a:path/@stroke`). */
1325
+ stroke?: boolean;
1326
+ /** 3D extrusion compatibility (`a:path/@extrusionOk`). */
1327
+ extrusionOk?: boolean;
1328
+ }
1329
+ /**
1330
+ * Auxiliary raw XML preserved from `a:custGeom` for round-trip serialization.
1331
+ * These are stored opaquely so adjustment guides, handles, connection sites,
1332
+ * and the text rectangle are not lost when a custGeom is edited and saved.
1333
+ */
1334
+ interface CustomGeometryRawData {
1335
+ /** Raw `a:gdLst` XML content (guide list). */
1336
+ gdLstXml?: unknown;
1337
+ /** Raw `a:ahLst` XML content (adjustment handles). */
1338
+ ahLstXml?: unknown;
1339
+ /** Raw `a:cxnLst` XML content (connection sites). */
1340
+ cxnLstXml?: unknown;
1341
+ /** Raw `a:rect` XML content (text rectangle). */
1342
+ rectXml?: unknown;
1190
1343
  }
1191
1344
  /**
1192
1345
  * Custom (non-preset) geometry path — only on shapes and pictures.
@@ -1213,6 +1366,8 @@ interface PptxCustomPathProperties {
1213
1366
  pathHeight?: number;
1214
1367
  /** Structured custom geometry paths for editing (maps to a:custGeom/a:pathLst). */
1215
1368
  customGeometryPaths?: CustomGeometryPath[];
1369
+ /** Raw a:gdLst/a:ahLst/a:cxnLst/a:rect XML preserved for round-trip serialization. */
1370
+ customGeometryRawData?: CustomGeometryRawData;
1216
1371
  }
1217
1372
 
1218
1373
  /**
@@ -1416,6 +1571,12 @@ interface PptxChartAxisFormatting {
1416
1571
  logScale?: boolean;
1417
1572
  /** Logarithmic base value (c:scaling/c:logBase/@val), typically 10 or e. */
1418
1573
  logBase?: number;
1574
+ /** Major-unit interval between primary tick marks (c:majorUnit/@val). */
1575
+ majorUnit?: number;
1576
+ /** Minor-unit interval between secondary tick marks (c:minorUnit/@val). */
1577
+ minorUnit?: number;
1578
+ /** Tick-label position (c:tickLblPos/@val): 'high', 'low', 'nextTo', or 'none'. */
1579
+ tickLblPos?: 'high' | 'low' | 'nextTo' | 'none';
1419
1580
  }
1420
1581
  /** 3D wall or floor element formatting. */
1421
1582
  interface PptxChart3DSurface {
@@ -1878,7 +2039,20 @@ interface PptxTableCellStyle {
1878
2039
  italic?: boolean;
1879
2040
  underline?: boolean;
1880
2041
  color?: string;
2042
+ /**
2043
+ * Raw XML colour-choice node preserved from `a:tc/a:txBody/.../a:rPr/a:solidFill`
2044
+ * for round-trip serialisation. Currently unused by the cell-level writer
2045
+ * (cell text colour falls through `writeCellTextFormatting`), reserved for
2046
+ * future expansion alongside the run-properties round-trip path.
2047
+ */
2048
+ colorXml?: XmlObject;
1881
2049
  backgroundColor?: string;
2050
+ /**
2051
+ * Raw XML colour-choice node preserved from cell `a:tcPr/a:solidFill` for
2052
+ * round-trip serialisation. Re-emitted verbatim when the resolved
2053
+ * {@link backgroundColor} still matches the original colour.
2054
+ */
2055
+ backgroundColorXml?: XmlObject;
1882
2056
  borderColor?: string;
1883
2057
  /** Top border width in px. */
1884
2058
  borderTopWidth?: number;
@@ -3559,6 +3733,14 @@ interface PptxThemeFontGroup {
3559
3733
  latin?: string;
3560
3734
  eastAsia?: string;
3561
3735
  complexScript?: string;
3736
+ /**
3737
+ * Per-script typeface overrides (`<a:font script="Hans|Hant|Arab|Hebr|
3738
+ * Thai|Beng|Gujr|Khmr|Knda|…"/>` per ECMA-376 §20.1.4.1.16). Keyed by
3739
+ * the four-letter ISO 15924 script tag from the `script` attribute.
3740
+ *
3741
+ * Phase 4 Stream A / M4.
3742
+ */
3743
+ byScript?: Record<string, string>;
3562
3744
  }
3563
3745
  /**
3564
3746
  * Theme font scheme — major (headings) and minor (body) font families.
@@ -3758,6 +3940,22 @@ interface PptxTheme {
3758
3940
  /** Format scheme — fill, line, effect and background fill style matrices. */
3759
3941
  formatScheme?: PptxThemeFormatScheme;
3760
3942
  }
3943
+ /**
3944
+ * Snapshot of `<a:objectDefaults>` (ECMA-376 §20.1.6.7). Each child
3945
+ * (`spDef`, `lnDef`, `txDef`) carries `<a:spPr>`, `<a:bodyPr>`,
3946
+ * `<a:lstStyle>`, `<a:style>`. We capture them as raw parser objects so
3947
+ * round-trip is byte-stable regardless of schema-walking depth.
3948
+ *
3949
+ * Phase 4 Stream A / M5.
3950
+ */
3951
+ interface PptxThemeObjectDefaults {
3952
+ /** Raw `<a:spDef>` parser object, or `undefined` if absent. */
3953
+ spDef?: unknown;
3954
+ /** Raw `<a:lnDef>` parser object, or `undefined` if absent. */
3955
+ lnDef?: unknown;
3956
+ /** Raw `<a:txDef>` parser object, or `undefined` if absent. */
3957
+ txDef?: unknown;
3958
+ }
3761
3959
 
3762
3960
  /**
3763
3961
  * Master and layout types: notes master, handout master, slide master,
@@ -3793,6 +3991,8 @@ interface PptxNotesMaster {
3793
3991
  }>;
3794
3992
  /** Editable elements on the notes master (header, footer, date, page number, slide image, notes body). */
3795
3993
  elements?: PptxElement[];
3994
+ /** Header/footer flags from `<p:hf>` on the notes master (P-H3). */
3995
+ headerFooter?: PptxHeaderFooterFlags;
3796
3996
  }
3797
3997
  /**
3798
3998
  * Parsed handout master from `ppt/handoutMasters/handoutMaster1.xml`.
@@ -3822,6 +4022,8 @@ interface PptxHandoutMaster {
3822
4022
  elements?: PptxElement[];
3823
4023
  /** Number of slides per page for handout print layout (1, 2, 3, 4, 6, or 9). */
3824
4024
  slidesPerPage?: number;
4025
+ /** Header/footer flags from `<p:hf>` on the handout master (P-H3). */
4026
+ headerFooter?: PptxHeaderFooterFlags;
3825
4027
  }
3826
4028
  /**
3827
4029
  * Active tab within the master view sidebar.
@@ -3871,6 +4073,8 @@ interface PptxSlideMaster {
3871
4073
  layouts?: PptxSlideLayout[];
3872
4074
  /** Text styles from `p:txStyles` — title, body, and other text defaults. */
3873
4075
  txStyles?: PptxMasterTextStyles;
4076
+ /** Header/footer flags from `<p:hf>` on this master (P-H3). */
4077
+ headerFooter?: PptxHeaderFooterFlags;
3874
4078
  }
3875
4079
  /**
3876
4080
  * Per-level paragraph properties for a text style category.
@@ -3889,6 +4093,22 @@ interface PptxMasterTextStyles {
3889
4093
  /** Other text style (`p:otherStyle`). */
3890
4094
  otherStyle?: PptxTextStyleLevels;
3891
4095
  }
4096
+ /**
4097
+ * Per-part header/footer flags from `<p:hf>` (CT_HeaderFooter, ECMA-376
4098
+ * §19.3.1.21). Defaults are "all true" — fields are only set on the typed
4099
+ * model when they were explicitly read, so callers can distinguish "unset"
4100
+ * (preserve original XML) from "false" (override).
4101
+ */
4102
+ interface PptxHeaderFooterFlags {
4103
+ /** `@hdr` — show header placeholder. Spec default: `true`. */
4104
+ hasHeader?: boolean;
4105
+ /** `@ftr` — show footer placeholder. Spec default: `true`. */
4106
+ hasFooter?: boolean;
4107
+ /** `@dt` — show date/time placeholder. Spec default: `true`. */
4108
+ hasDateTime?: boolean;
4109
+ /** `@sldNum` — show slide-number placeholder. Spec default: `true`. */
4110
+ hasSlideNumber?: boolean;
4111
+ }
3892
4112
  /**
3893
4113
  * A slide layout associated with a slide master.
3894
4114
  *
@@ -3927,6 +4147,8 @@ interface PptxSlideLayout {
3927
4147
  userDrawn?: boolean;
3928
4148
  /** Colour map override from `p:clrMapOvr`. */
3929
4149
  clrMapOverride?: Record<string, string>;
4150
+ /** Header/footer flags from `<p:hf>` on this layout (P-H3). */
4151
+ headerFooter?: PptxHeaderFooterFlags;
3930
4152
  }
3931
4153
  /**
3932
4154
  * A theme part available in the presentation package.
@@ -4044,13 +4266,6 @@ interface PptxViewProperties {
4044
4266
  rawXml?: Record<string, unknown>;
4045
4267
  }
4046
4268
 
4047
- /**
4048
- * Top-level presentation types: slides, canvas dimensions, export options,
4049
- * and the root {@link PptxData} structure returned by `PptxHandlerCore.load()`.
4050
- *
4051
- * @module pptx-types/presentation
4052
- */
4053
-
4054
4269
  /**
4055
4270
  * A customer data reference from `p:custDataLst / p:custData`.
4056
4271
  *
@@ -4145,6 +4360,8 @@ interface PptxSlide {
4145
4360
  customerData?: PptxCustomerData[];
4146
4361
  /** ActiveX control references from `p:controls` on this slide. */
4147
4362
  activeXControls?: PptxActiveXControl[];
4363
+ /** Per-slide header/footer flags from `<p:hf>` (P-H3). */
4364
+ headerFooterFlags?: PptxHeaderFooterFlags;
4148
4365
  }
4149
4366
  /**
4150
4367
  * A slide layout available in the loaded presentation.
@@ -4577,4 +4794,4 @@ interface PptxEmbeddedFont {
4577
4794
  originalPartBytes?: Uint8Array;
4578
4795
  }
4579
4796
 
4580
- export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type ParsedTableStyleEntry as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type PptxShapeLocks as aA, type PptxThemeFillStyle as aB, type PptxThemeLineStyle as aC, type PptxThemeEffectStyle as aD, type PptxSmartArtChrome as aE, type PptxSmartArtColorTransform as aF, type PptxSmartArtQuickStyle as aG, type PptxExternalData as aH, type CustomGeometryPoint as aI, type CustomGeometryPath as aJ, type ChartPptxElement as aK, type ImagePptxElement as aL, type TablePptxElement as aM, type ActionButtonPreset as aN, type AnimationConditionEvent as aO, type BevelPresetType as aP, type ConnectorConnectionPoint as aQ, type ContentPartInkStroke as aR, type ContentPartPptxElement as aS, type CustomGeometrySegment as aT, type ElementActionType as aU, type MasterViewTab as aV, type MaterialPresetType as aW, type MediaCaptionTrack as aX, type MediaMetadata as aY, type Model3DPptxElement as aZ, type OlePptxElement as a_, type PptxChartShapeProps as aa, type PptxChart3DSurface as ab, type PptxChartAxisFormatting as ac, type PptxEmbeddedWorkbookData as ad, type PptxDrawingGuide as ae, type PptxTableCellStyle as af, type PptxCustomXmlPart as ag, type PptxCommentAuthor as ah, type MediaPptxElement as ai, type PptxTableData as aj, type PptxTheme as ak, type ParsedTableStyleMap as al, type PptxSlideMaster as am, type PptxThemeOption as an, type PlaceholderDefaults as ao, type ParsedTableStyleFill as ap, type ParsedTableStyleText as aq, type PptxImageEffects as ar, type MediaBookmark as as, type PptxChartStyle as at, type GroupPptxElement as au, type PlaceholderTextLevelStyle as av, type PptxChartSeries as aw, type SmartArtPptxElement as ax, type GeometryAdjustmentHandle as ay, type BulletInfo as az, type PptxElementWithText as b, type PicturePptxElement as b0, type Pptx3DScene as b1, type Pptx3DShape as b2, type PptxAfterAnimationAction as b3, type PptxAnimationDirection as b4, type PptxAnimationIterate as b5, type PptxAnimationRepeatMode as b6, type PptxAnimationSequence as b7, type PptxAnimationTimingCurve as b8, type PptxChartAxisNumFmt as b9, type PptxTextAnimationTarget as bA, type PptxTextBuildType as bB, type PptxTextProperties as bC, type PptxTextStyleLevels as bD, type PptxTextWarpPreset as bE, type PptxThemeFontGroup as bF, type PptxTransitionDirection4 as bG, type PptxTransitionDirection8 as bH, type PptxViewOrigin as bI, type PptxViewScale as bJ, type ShadowEffect as bK, type SmartArtColorScheme as bL, type SmartArtLayout as bM, type SmartArtStyle as bN, THEME_COLOR_SCHEME_KEYS as bO, TRANSITION_VALID_DIRECTIONS as bP, type Text3DStyle as bQ, type UnderlineStyle as bR, type UnknownPptxElement as bS, type PptxChartErrBarDir as ba, type PptxChartErrBarType as bb, type PptxChartErrValType as bc, type PptxChartMarkerSymbol as bd, type PptxChartTrendlineType as be, type PptxColorAnimation as bf, type PptxCommonSlideViewProperties as bg, type PptxCropShape as bh, type PptxCustomPathProperties as bi, type PptxElementBase as bj, type PptxElementType as bk, type PptxExportFormat as bl, type PptxImageProperties as bm, type PptxMasterTextStyles as bn, type PptxMediaType as bo, type PptxNormalViewProperties as bp, type PptxRestoredRegion as bq, type PptxShapeProperties as br, type PptxSlideLayout as bs, type PptxSmartArtConnection as bt, type PptxSplitDirection as bu, type PptxSplitOrientation as bv, type PptxStripDirection as bw, type PptxTableCell as bx, type PptxTableRow as by, type PptxTag as bz, type PptxImageLikeElement as c, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
4797
+ export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type MaterialPresetType as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type PptxChartSeries as aA, type SmartArtPptxElement as aB, type GeometryAdjustmentHandle as aC, type CustomGeometryRawData as aD, type CustomGeometryPath as aE, type BulletInfo as aF, type PptxShapeLocks as aG, type PptxTextStyleLevels as aH, type PptxThemeFillStyle as aI, type PptxThemeLineStyle as aJ, type PptxThemeEffectStyle as aK, type PptxSmartArtChrome as aL, type PptxSmartArtColorTransform as aM, type PptxSmartArtQuickStyle as aN, type PptxExternalData as aO, type CustomGeometryPoint as aP, type ChartPptxElement as aQ, type ImagePptxElement as aR, type ActionButtonPreset as aS, type AnimationConditionEvent as aT, type BevelPresetType as aU, type ConnectorConnectionPoint as aV, type ContentPartInkStroke as aW, type ContentPartPptxElement as aX, type CustomGeometrySegment as aY, type ElementActionType as aZ, type MasterViewTab as a_, type PptxChartShapeProps as aa, type PptxChart3DSurface as ab, type PptxChartAxisFormatting as ac, type PptxEmbeddedWorkbookData as ad, type PptxDrawingGuide as ae, type PptxTableCellStyle as af, type PptxCustomXmlPart as ag, type PptxCommentAuthor as ah, type MediaPptxElement as ai, type PptxTableData as aj, type PptxTheme as ak, type ParsedTableStyleMap as al, type PptxSlideMaster as am, type PptxThemeOption as an, type PlaceholderDefaults as ao, type PptxMasterTextStyles as ap, type PptxThemeObjectDefaults as aq, type ParsedTableStyleFill as ar, type ParsedTableStyleText as as, type PptxImageEffects as at, type MediaBookmark as au, type PptxChartStyle as av, type TablePptxElement as aw, type OlePptxElement as ax, type GroupPptxElement as ay, type PlaceholderTextLevelStyle as az, type PptxElementWithText as b, type MediaCaptionTrack as b0, type MediaMetadata as b1, type Model3DPptxElement as b2, type ParsedTableStyleEntry as b3, type PicturePptxElement as b4, type Pptx3DScene as b5, type Pptx3DShape as b6, type PptxAfterAnimationAction as b7, type PptxAnimationDirection as b8, type PptxAnimationIterate as b9, type PptxStripDirection as bA, type PptxTableCell as bB, type PptxTableRow as bC, type PptxTag as bD, type PptxTextAnimationTarget as bE, type PptxTextBuildType as bF, type PptxTextProperties as bG, type PptxTextWarpPreset as bH, type PptxThemeFontGroup as bI, type PptxTransitionDirection4 as bJ, type PptxTransitionDirection8 as bK, type PptxViewOrigin as bL, type PptxViewScale as bM, type ShadowEffect as bN, type SmartArtColorScheme as bO, type SmartArtLayout as bP, type SmartArtStyle as bQ, THEME_COLOR_SCHEME_KEYS as bR, TRANSITION_VALID_DIRECTIONS as bS, type Text3DStyle as bT, type UnderlineStyle as bU, type UnknownPptxElement as bV, type PptxAnimationRepeatMode as ba, type PptxAnimationSequence as bb, type PptxAnimationTimingCurve as bc, type PptxChartAxisNumFmt as bd, type PptxChartErrBarDir as be, type PptxChartErrBarType as bf, type PptxChartErrValType as bg, type PptxChartMarkerSymbol as bh, type PptxChartTrendlineType as bi, type PptxColorAnimation as bj, type PptxCommonSlideViewProperties as bk, type PptxCropShape as bl, type PptxCustomPathProperties as bm, type PptxElementBase as bn, type PptxElementType as bo, type PptxExportFormat as bp, type PptxHeaderFooterFlags as bq, type PptxImageProperties as br, type PptxMediaType as bs, type PptxNormalViewProperties as bt, type PptxRestoredRegion as bu, type PptxShapeProperties as bv, type PptxSlideLayout as bw, type PptxSmartArtConnection as bx, type PptxSplitDirection as by, type PptxSplitOrientation as bz, type PptxImageLikeElement as c, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
@@ -1,4 +1,4 @@
1
- import { m as PptxData, l as PptxSlide } from './presentation-BozkirFp.mjs';
1
+ import { m as PptxData, l as PptxSlide } from './presentation-ArhfImJ5.mjs';
2
2
 
3
3
  /**
4
4
  * Presentation merge operations for the headless PPTX SDK.
@@ -1,4 +1,4 @@
1
- import { m as PptxData, l as PptxSlide } from './presentation-BozkirFp.js';
1
+ import { m as PptxData, l as PptxSlide } from './presentation-ArhfImJ5.js';
2
2
 
3
3
  /**
4
4
  * Presentation merge operations for the headless PPTX SDK.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-viewer-core",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Core PPTX engine — parse, edit, serialize, and convert PowerPoint files.",
5
5
  "keywords": [
6
6
  "converter",
@@ -69,15 +69,15 @@
69
69
  "@xmldom/xmldom": "^0.8.11",
70
70
  "emf-converter": "workspace:*",
71
71
  "mtx-decompressor": "workspace:*",
72
- "node-forge": "^1.3.3",
72
+ "node-forge": "^1.4.0",
73
73
  "tsup": "^8.5.1",
74
74
  "typescript": "^5.9.3",
75
- "vitest": "^4.1.0",
75
+ "vitest": "^4.1.5",
76
76
  "xml-crypto": "^6.1.2"
77
77
  },
78
78
  "peerDependencies": {
79
- "@xmldom/xmldom": "^0.9.0",
80
- "fast-xml-parser": "^5.5.5",
79
+ "@xmldom/xmldom": "^0.8.0",
80
+ "fast-xml-parser": "^5.7.3",
81
81
  "jszip": "^3.10.1",
82
82
  "node-forge": "^1.3.0",
83
83
  "xml-crypto": "^6.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-react-viewer",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "React-based PowerPoint viewer, editor, and canvas export — depends on pptx-viewer-core",
5
5
  "keywords": [
6
6
  "editor",
@@ -57,41 +57,41 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "clsx": "^2.1.1",
60
- "emf-converter": "^1.1.2",
60
+ "emf-converter": "^1.1.4",
61
61
  "html2canvas-pro": "^2.0.2",
62
- "mtx-decompressor": "^1.1.2",
63
- "pptx-viewer-core": "^1.1.2",
62
+ "mtx-decompressor": "^1.1.4",
63
+ "pptx-viewer-core": "^1.1.4",
64
64
  "tailwind-merge": "^3.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@tailwindcss/cli": "^4.2.1",
67
+ "@tailwindcss/cli": "^4.2.4",
68
68
  "@types/react": "^19.2.14",
69
69
  "@types/react-dom": "^19.2.3",
70
- "tailwindcss": "^4.2.1",
70
+ "tailwindcss": "^4.2.4",
71
71
  "tsup": "^8.5.1",
72
72
  "typescript": "^5.9.3",
73
- "vitest": "^4.1.0",
73
+ "vitest": "^4.1.5",
74
74
  "y-websocket": "^3.0.0",
75
75
  "yjs": "^13.6.30"
76
76
  },
77
77
  "peerDependencies": {
78
- "fast-xml-parser": "^5.5.5",
79
- "framer-motion": "^12.36.0",
80
- "i18next": "^25.8.18",
81
- "jspdf": "^4.2.0",
78
+ "fast-xml-parser": "^5.7.3",
79
+ "framer-motion": "^12.38.0",
80
+ "i18next": "^26.0.8",
81
+ "jspdf": "^4.2.1",
82
82
  "jszip": "^3.10.1",
83
- "lucide-react": "^0.577.0",
84
- "react": "^19.2.4",
85
- "react-dom": "^19.2.4",
86
- "react-i18next": "^16.5.8",
83
+ "lucide-react": "^1.14.0",
84
+ "react": "^19.2.5",
85
+ "react-dom": "^19.2.5",
86
+ "react-i18next": "^17.0.6",
87
87
  "react-icons": "^5.6.0"
88
88
  },
89
89
  "optionalDependencies": {
90
- "@react-three/drei": ">=9.0.0",
91
- "@react-three/fiber": ">=8.0.0",
92
- "three": ">=0.160.0",
93
- "y-websocket": ">=2.0.0",
94
- "yjs": ">=13.0.0"
90
+ "@react-three/drei": "^10.7.7",
91
+ "@react-three/fiber": "^9.6.1",
92
+ "three": "^0.184.0",
93
+ "y-websocket": "^3.0.0",
94
+ "yjs": "^13.6.30"
95
95
  },
96
96
  "bundledDependencies": [
97
97
  "emf-converter",