pptx-vanilla-viewer 3.16.0 → 3.17.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.
@@ -2,8 +2,8 @@ import "fast-xml-parser";
2
2
  import "jszip";
3
3
  import { Doc } from "yjs";
4
4
  import "opentype.js";
5
- //#region ../core/dist/text-operations-BnsCJby5.d.ts
6
- //#region src/core/types/actions.d.ts
5
+ //#region ../../node_modules/.bun/@christophervr+ooxml-core@0.1.0+da5426518d4ada24/node_modules/@christophervr/ooxml-core/dist/pptx/chunks/text-operations-DTcDvVjf.d.ts
6
+ //#region src/pptx/core/types/actions.d.ts
7
7
  /**
8
8
  * Action types: hyperlinks, slide jumps, macros, and action buttons.
9
9
  *
@@ -118,7 +118,7 @@ interface ElementAction {
118
118
  oleVerb?: number;
119
119
  }
120
120
  //#endregion
121
- //#region src/core/types/common.d.ts
121
+ //#region src/pptx/core/types/common.d.ts
122
122
  /**
123
123
  * Shared value types used across the entire PPTX editor type system.
124
124
  *
@@ -336,7 +336,7 @@ interface PptxDrawingGuide {
336
336
  color?: string;
337
337
  }
338
338
  //#endregion
339
- //#region src/core/types/geometry.d.ts
339
+ //#region src/pptx/core/types/geometry.d.ts
340
340
  /**
341
341
  * Geometry types: adjustment handles, custom geometry points, segments,
342
342
  * paths, and custom path properties.
@@ -638,7 +638,7 @@ interface PptxCustomPathProperties {
638
638
  customGeometryTextRect?: CustomGeometryTextRect;
639
639
  }
640
640
  //#endregion
641
- //#region src/core/types/color-ref.d.ts
641
+ //#region src/pptx/core/types/color-ref.d.ts
642
642
  /**
643
643
  * Theme colour references: the typed counterpart of `<a:schemeClr>`.
644
644
  *
@@ -676,7 +676,7 @@ interface PptxThemeColorRef {
676
676
  alpha?: number;
677
677
  }
678
678
  //#endregion
679
- //#region src/core/types/effect-dag.d.ts
679
+ //#region src/pptx/core/types/effect-dag.d.ts
680
680
  type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
681
681
  type EffectDagContainerType = 'sib' | 'tree';
682
682
  type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
@@ -732,7 +732,7 @@ interface EffectDagRawLeaf {
732
732
  xml: Record<string, unknown>;
733
733
  }
734
734
  //#endregion
735
- //#region src/core/types/three-d.d.ts
735
+ //#region src/pptx/core/types/three-d.d.ts
736
736
  /**
737
737
  * 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
738
738
  * definitions parsed from OOXML `a:sp3d`, `a:scene3d`, and `a:bodyPr/a:prstTxWarp`.
@@ -911,7 +911,7 @@ interface Pptx3DShape {
911
911
  */
912
912
  type PptxTextWarpPreset = 'textNoShape' | 'textPlain' | 'textStop' | 'textTriangle' | 'textTriangleInverted' | 'textChevron' | 'textChevronInverted' | 'textRingInside' | 'textRingOutside' | 'textArchUp' | 'textArchDown' | 'textCircle' | 'textButton' | 'textArchUpPour' | 'textArchDownPour' | 'textCirclePour' | 'textButtonPour' | 'textCurveUp' | 'textCurveDown' | 'textCanUp' | 'textCanDown' | 'textWave1' | 'textWave2' | 'textWave4' | 'textDoubleWave1' | 'textInflate' | 'textDeflate' | 'textInflateBottom' | 'textDeflateBottom' | 'textInflateTop' | 'textDeflateTop' | 'textFadeRight' | 'textFadeLeft' | 'textFadeUp' | 'textFadeDown' | 'textSlantUp' | 'textSlantDown' | 'textCascadeUp' | 'textCascadeDown' | 'textDeflateInflate' | 'textDeflateInflateDeflate' | string;
913
913
  //#endregion
914
- //#region src/core/types/shape-style.d.ts
914
+ //#region src/pptx/core/types/shape-style.d.ts
915
915
  interface PptxCustomDashSegment {
916
916
  /** Dash length as a non-negative percentage in thousandths of one percent. */
917
917
  dash: number;
@@ -1385,7 +1385,7 @@ interface ResolvedStyleMatrix {
1385
1385
  fontColor?: string;
1386
1386
  }
1387
1387
  //#endregion
1388
- //#region src/core/types/text.d.ts
1388
+ //#region src/pptx/core/types/text.d.ts
1389
1389
  /**
1390
1390
  * Rich text style properties for a text run or paragraph.
1391
1391
  *
@@ -2400,7 +2400,7 @@ interface TextSegment {
2400
2400
  };
2401
2401
  }
2402
2402
  //#endregion
2403
- //#region src/core/types/element-base.d.ts
2403
+ //#region src/pptx/core/types/element-base.d.ts
2404
2404
  /**
2405
2405
  * Properties shared by **every** element on a slide.
2406
2406
  *
@@ -2710,7 +2710,7 @@ interface PlaceholderTextLevelStyle {
2710
2710
  hangingPunctuation?: boolean;
2711
2711
  }
2712
2712
  //#endregion
2713
- //#region src/core/types/chart-axis.d.ts
2713
+ //#region src/pptx/core/types/chart-axis.d.ts
2714
2714
  /** Tick-mark placement from ChartML `ST_TickMark`. */
2715
2715
  type PptxChartTickMark = 'cross' | 'in' | 'none' | 'out';
2716
2716
  /** Typed axis tick and category/date label controls. */
@@ -2734,7 +2734,7 @@ interface PptxChartAxisLabelFormatting {
2734
2734
  noMultiLevelLabels?: boolean;
2735
2735
  }
2736
2736
  //#endregion
2737
- //#region src/core/types/chart-ex.d.ts
2737
+ //#region src/pptx/core/types/chart-ex.d.ts
2738
2738
  /**
2739
2739
  * Chart-formatting types that don't fit an existing, owned type module for
2740
2740
  * this wave (`types/chart.ts` is owned elsewhere; see its own module doc).
@@ -2791,7 +2791,7 @@ interface PptxChartDataPointPicture {
2791
2791
  opacity?: number;
2792
2792
  }
2793
2793
  //#endregion
2794
- //#region src/core/types/chart-pivot-format.d.ts
2794
+ //#region src/pptx/core/types/chart-pivot-format.d.ts
2795
2795
  interface PptxChartPivotFormat {
2796
2796
  index: number;
2797
2797
  /**
@@ -2837,7 +2837,7 @@ interface PptxChartPivotFormats {
2837
2837
  rawXml?: XmlObject;
2838
2838
  }
2839
2839
  //#endregion
2840
- //#region src/core/types/chart-pivot-source.d.ts
2840
+ //#region src/pptx/core/types/chart-pivot-source.d.ts
2841
2841
  /** Editable classic ChartML `c:pivotSource` metadata. */
2842
2842
  interface PptxChartPivotSource {
2843
2843
  /** Pivot table reference stored as `c:name` text. */
@@ -2848,7 +2848,7 @@ interface PptxChartPivotSource {
2848
2848
  rawXml?: XmlObject;
2849
2849
  }
2850
2850
  //#endregion
2851
- //#region src/core/types/chart-print-settings.d.ts
2851
+ //#region src/pptx/core/types/chart-print-settings.d.ts
2852
2852
  /** Headers and footers used when a classic ChartML chart is printed. */
2853
2853
  interface PptxChartPrintHeaderFooter {
2854
2854
  oddHeader?: string;
@@ -2908,7 +2908,7 @@ interface PptxChartPrintSettings {
2908
2908
  rawXml?: unknown;
2909
2909
  }
2910
2910
  //#endregion
2911
- //#region src/core/types/chart-protection.d.ts
2911
+ //#region src/pptx/core/types/chart-protection.d.ts
2912
2912
  /** Editable classic ChartML `c:protection` settings. */
2913
2913
  interface PptxChartProtection {
2914
2914
  /** Prevent editing the chart object. */
@@ -2925,7 +2925,7 @@ interface PptxChartProtection {
2925
2925
  rawXml?: XmlObject;
2926
2926
  }
2927
2927
  //#endregion
2928
- //#region src/core/types/chart-style-definition.d.ts
2928
+ //#region src/pptx/core/types/chart-style-definition.d.ts
2929
2929
  /**
2930
2930
  * Typed subset of an Office 2013+ chart-style part (`ppt/charts/style#.xml`,
2931
2931
  * root element `cs:chartStyle`, relationship type
@@ -2984,7 +2984,7 @@ interface PptxChartStyleDefinition {
2984
2984
  plotArea?: PptxChartStylePartEntry;
2985
2985
  }
2986
2986
  //#endregion
2987
- //#region src/core/types/chart-title.d.ts
2987
+ //#region src/pptx/core/types/chart-title.d.ts
2988
2988
  /**
2989
2989
  * Chart title rich-text run type, split out of `types/chart.ts` (already at
2990
2990
  * the repo's file-size limit) to keep that module from growing further.
@@ -3017,7 +3017,7 @@ interface PptxChartTitleRun {
3017
3017
  color?: string;
3018
3018
  }
3019
3019
  //#endregion
3020
- //#region src/core/types/chart-user-shapes.d.ts
3020
+ //#region src/pptx/core/types/chart-user-shapes.d.ts
3021
3021
  /** A single paragraph of overlay-shape text with light formatting. */
3022
3022
  interface PptxChartUserShapeParagraph {
3023
3023
  /** Joined run text of the paragraph. */
@@ -3230,7 +3230,7 @@ interface PptxChartUserShape {
3230
3230
  children?: PptxChartUserShapeGroupChild[];
3231
3231
  }
3232
3232
  //#endregion
3233
- //#region src/core/types/chart.d.ts
3233
+ //#region src/pptx/core/types/chart.d.ts
3234
3234
  /**
3235
3235
  * Supported chart type discriminators.
3236
3236
  *
@@ -3411,9 +3411,10 @@ type PptxChartMarkerSymbol = 'circle' | 'dash' | 'diamond' | 'dot' | 'none' | 'p
3411
3411
  type PptxChartScatterStyle = 'none' | 'line' | 'lineMarker' | 'marker' | 'smooth' | 'smoothMarker';
3412
3412
  /** Shape properties extracted from c:spPr for chart formatting. */
3413
3413
  /**
3414
- * A render-ready gradient fill from a chart `c:spPr/a:gradFill` (chart area,
3415
- * plot area or series). Positions are 0..100; a linear gradient's `angle` is
3416
- * in degrees clockwise from left-to-right (`a:lin/@ang`); a radial (`a:path`)
3414
+ * A gradient fill from a chart `c:spPr/a:gradFill` (chart area, plot area,
3415
+ * series or data point). Positions are 0..100 and stop `opacity` 0..1 (absent
3416
+ * means opaque); a linear gradient's `angle` is in degrees clockwise from
3417
+ * left-to-right (`a:lin/@ang`, so 90 is top to bottom); a radial (`a:path`)
3417
3418
  * gradient centres on `focalPoint` (0..1 fractions of the box), the middle
3418
3419
  * when absent.
3419
3420
  */
@@ -3455,6 +3456,14 @@ interface PptxChartMarker {
3455
3456
  interface PptxChartDataPoint {
3456
3457
  idx: number;
3457
3458
  spPr?: PptxChartShapeProps;
3459
+ /**
3460
+ * Per-point gradient fill (`c:dPt/c:spPr/a:gradFill`): one bar, column or
3461
+ * slice painted with its own gradient. Takes precedence over
3462
+ * `spPr.fillColor` and round-trips with the same lossless rules as
3463
+ * {@link PptxChartSeries.gradientFill}; ignored for line-drawn series. Set
3464
+ * it through `setChartDataPointGradient`.
3465
+ */
3466
+ gradientFill?: PptxChartGradientFill;
3458
3467
  explosion?: number;
3459
3468
  invertIfNegative?: boolean;
3460
3469
  marker?: PptxChartMarker;
@@ -3757,8 +3766,17 @@ interface PptxChartSeries {
3757
3766
  values: number[];
3758
3767
  /**
3759
3768
  * Series gradient fill (`c:ser/c:spPr/a:gradFill`), painted on every mark
3760
- * of the series that has no per-point override. Render-only: the series'
3761
- * own `c:spPr` round-trips untouched.
3769
+ * of the series that has no per-point override.
3770
+ *
3771
+ * Written back on save for area-filled chart types (bar, area, pie,
3772
+ * doughnut, ofPie, bubble, surface and their 3-D variants, and such series
3773
+ * inside a combo): when set it takes precedence over {@link color} and
3774
+ * replaces the series' fill choice; clearing it removes the authored
3775
+ * `a:gradFill`. A loaded gradient the model still describes round-trips
3776
+ * byte-for-byte, theme colours included. Ignored for line-drawn series
3777
+ * (line, line3D, scatter, radar, stock), which have no fillable area. Set
3778
+ * it through `setChartSeriesGradient` to get validation and the
3779
+ * colour/gradient "last action wins" behaviour.
3762
3780
  */
3763
3781
  gradientFill?: PptxChartGradientFill;
3764
3782
  /**
@@ -4560,7 +4578,7 @@ interface PptxChartData {
4560
4578
  chartStyleDefinition?: PptxChartStyleDefinition;
4561
4579
  }
4562
4580
  //#endregion
4563
- //#region src/core/types/image.d.ts
4581
+ //#region src/pptx/core/types/image.d.ts
4564
4582
  /**
4565
4583
  * Image recolour/adjustment properties parsed from blip extensions.
4566
4584
  *
@@ -4987,7 +5005,7 @@ interface PptxImageProperties {
4987
5005
  cropShape?: PptxCropShape;
4988
5006
  }
4989
5007
  //#endregion
4990
- //#region src/core/types/media.d.ts
5008
+ //#region src/pptx/core/types/media.d.ts
4991
5009
  /**
4992
5010
  * Discriminator for embedded media element types.
4993
5011
  *
@@ -5081,7 +5099,7 @@ interface MediaCaptionTrack {
5081
5099
  isDefault?: boolean;
5082
5100
  }
5083
5101
  //#endregion
5084
- //#region src/core/types/model3d-scene.d.ts
5102
+ //#region src/pptx/core/types/model3d-scene.d.ts
5085
5103
  /**
5086
5104
  * Authored scene data of a PowerPoint 3D model (`am3d:model3d`, namespace
5087
5105
  * `http://schemas.microsoft.com/office/drawing/2017/model3d`).
@@ -5139,7 +5157,7 @@ interface Model3DSceneData {
5139
5157
  viewportSizeEmu?: number;
5140
5158
  }
5141
5159
  //#endregion
5142
- //#region src/core/types/smart-art-chrome.d.ts
5160
+ //#region src/pptx/core/types/smart-art-chrome.d.ts
5143
5161
  /**
5144
5162
  * Background / outline extracted from `dgm:bg` and `dgm:whole`.
5145
5163
  *
@@ -5185,7 +5203,7 @@ interface PptxSmartArtRawBackgroundFill {
5185
5203
  xml: XmlObject;
5186
5204
  }
5187
5205
  //#endregion
5188
- //#region src/core/types/smart-art-constraint-rules.d.ts
5206
+ //#region src/pptx/core/types/smart-art-constraint-rules.d.ts
5189
5207
  type PptxSmartArtConstraintRelationship = 'self' | 'ch' | 'des';
5190
5208
  type PptxSmartArtConstraintOperator = 'none' | 'equ' | 'gte' | 'lte';
5191
5209
  type PptxSmartArtConstraintPointType = 'all' | 'doc' | 'node' | 'norm' | 'nonNorm' | 'asst' | 'nonAsst' | 'parTrans' | 'pres' | 'sibTrans';
@@ -5217,7 +5235,7 @@ interface PptxSmartArtNumericRule extends PptxSmartArtConstraintTarget {
5217
5235
  rawXml?: XmlObject;
5218
5236
  }
5219
5237
  //#endregion
5220
- //#region src/core/types/smart-art-layout-primitives.d.ts
5238
+ //#region src/pptx/core/types/smart-art-layout-primitives.d.ts
5221
5239
  interface PptxSmartArtLocalizedText {
5222
5240
  value: string;
5223
5241
  language?: string;
@@ -5293,7 +5311,7 @@ interface PptxSmartArtLayoutNodeShape {
5293
5311
  lkTxEntry?: boolean;
5294
5312
  }
5295
5313
  //#endregion
5296
- //#region src/core/types/smart-art-layout-definition.d.ts
5314
+ //#region src/pptx/core/types/smart-art-layout-definition.d.ts
5297
5315
  /** Identity and ordering metadata from DiagramML CT_LayoutNode. */
5298
5316
  interface PptxSmartArtLayoutNode {
5299
5317
  name?: string;
@@ -5567,7 +5585,7 @@ interface PptxSmartArtLayoutDefinition {
5567
5585
  rawXmlText?: string;
5568
5586
  }
5569
5587
  //#endregion
5570
- //#region src/core/types/smart-art-node.d.ts
5588
+ //#region src/pptx/core/types/smart-art-node.d.ts
5571
5589
  /**
5572
5590
  * A single run of text inside a SmartArt node, capturing the run text and the
5573
5591
  * raw `a:rPr` run-properties object verbatim so per-run formatting (bold,
@@ -5810,7 +5828,7 @@ interface PptxSmartArtNode {
5810
5828
  customLayout?: SmartArtNodeCustomLayout;
5811
5829
  }
5812
5830
  //#endregion
5813
- //#region src/core/types/smart-art-style-definition.d.ts
5831
+ //#region src/pptx/core/types/smart-art-style-definition.d.ts
5814
5832
  interface PptxSmartArtDefinitionText {
5815
5833
  value: string;
5816
5834
  language?: string;
@@ -5941,7 +5959,7 @@ interface PptxSmartArtQuickStyle extends PptxSmartArtDefinitionMetadata {
5941
5959
  scene3d?: Pptx3DScene;
5942
5960
  }
5943
5961
  //#endregion
5944
- //#region src/core/types/smart-art.d.ts
5962
+ //#region src/pptx/core/types/smart-art.d.ts
5945
5963
  /**
5946
5964
  * Resolved SmartArt layout category.
5947
5965
  *
@@ -6286,7 +6304,7 @@ interface PptxSmartArtData {
6286
6304
  drawingDirty?: boolean;
6287
6305
  }
6288
6306
  //#endregion
6289
- //#region src/core/types/table-style-edit.d.ts
6307
+ //#region src/pptx/core/types/table-style-edit.d.ts
6290
6308
  /**
6291
6309
  * A `a:fillRef`/`a:lnRef`/`a:effectRef`-style style-matrix reference: an
6292
6310
  * index into the theme's format scheme (`a:fmtScheme/a:fillStyleLst`, 1-based
@@ -6334,7 +6352,7 @@ interface ParsedTableStyleEffect {
6334
6352
  xml: XmlObject;
6335
6353
  }
6336
6354
  //#endregion
6337
- //#region src/core/types/table.d.ts
6355
+ //#region src/pptx/core/types/table.d.ts
6338
6356
  /**
6339
6357
  * Per-cell visual style for a table cell.
6340
6358
  *
@@ -7023,7 +7041,7 @@ interface ParsedTableStyleEntry {
7023
7041
  */
7024
7042
  type ParsedTableStyleMap = Record<string, ParsedTableStyleEntry>;
7025
7043
  //#endregion
7026
- //#region src/core/types/elements.d.ts
7044
+ //#region src/pptx/core/types/elements.d.ts
7027
7045
  /**
7028
7046
  * Accessibility metadata from `p:cNvPr/a:extLst`'s "Mark as decorative"
7029
7047
  * vendor extension (issue G16). PowerPoint's Alt Text pane writes
@@ -7745,7 +7763,7 @@ interface UnknownPptxElement extends PptxElementBase {
7745
7763
  */
7746
7764
  type PptxElement = TextPptxElement | ShapePptxElement | ConnectorPptxElement | ImagePptxElement | PicturePptxElement | TablePptxElement | ChartPptxElement | SmartArtPptxElement | OlePptxElement | MediaPptxElement | GroupPptxElement | InkPptxElement | ContentPartPptxElement | ZoomPptxElement | Model3DPptxElement | UnknownPptxElement;
7747
7765
  //#endregion
7748
- //#region src/core/types/masters.d.ts
7766
+ //#region src/pptx/core/types/masters.d.ts
7749
7767
  /**
7750
7768
  * A placeholder slot declared on a master or layout.
7751
7769
  *
@@ -8041,7 +8059,7 @@ interface PptxThemeOption {
8041
8059
  name?: string;
8042
8060
  }
8043
8061
  //#endregion
8044
- //#region src/core/types/animation-behavior.d.ts
8062
+ //#region src/pptx/core/types/animation-behavior.d.ts
8045
8063
  /** Timing of one behaviour, from its own `p:cBhvr/p:cTn`. */
8046
8064
  interface PptxAnimationBehaviorTiming {
8047
8065
  /** `p:cTn/@dur` in ms; absent when `indefinite` or unset. */
@@ -8119,7 +8137,7 @@ interface PptxAnimMotionBehavior extends BehaviorBase {
8119
8137
  /** One behaviour child of an effect, tagged by its OOXML element. */
8120
8138
  type PptxAnimationBehavior = PptxSetBehavior | PptxAnimBehavior | PptxAnimEffectBehavior | PptxAnimScaleBehavior | PptxAnimRotBehavior | PptxAnimMotionBehavior;
8121
8139
  //#endregion
8122
- //#region src/core/types/animation.d.ts
8140
+ //#region src/pptx/core/types/animation.d.ts
8123
8141
  /**
8124
8142
  * Built-in animation preset names used for entrance, exit, and emphasis effects.
8125
8143
  *
@@ -9119,7 +9137,7 @@ interface PptxAnimationTimelineAnchor {
9119
9137
  presetClasses: Array<'entr' | 'exit' | 'emph' | 'path'>;
9120
9138
  }
9121
9139
  //#endregion
9122
- //#region src/core/types/embedded-font.d.ts
9140
+ //#region src/pptx/core/types/embedded-font.d.ts
9123
9141
  interface PptxEmbeddedFontDataId {
9124
9142
  /** Required relationship identifier from `r:id`. */
9125
9143
  relationshipId?: string | null;
@@ -9147,7 +9165,7 @@ interface PptxEmbeddedFontList {
9147
9165
  rawXml?: XmlObject;
9148
9166
  }
9149
9167
  //#endregion
9150
- //#region src/core/types/comment-mentions.d.ts
9168
+ //#region src/pptx/core/types/comment-mentions.d.ts
9151
9169
  /**
9152
9170
  * A single `@`-mention inside a modern comment body.
9153
9171
  *
@@ -9195,7 +9213,7 @@ interface PptxCommentMention {
9195
9213
  rawXml?: XmlObject;
9196
9214
  }
9197
9215
  //#endregion
9198
- //#region src/core/types/metadata.d.ts
9216
+ //#region src/pptx/core/types/metadata.d.ts
9199
9217
  /**
9200
9218
  * A slide comment — may be a legacy positional comment or a modern
9201
9219
  * threaded comment with replies.
@@ -9474,7 +9492,7 @@ interface PptxAppProperties {
9474
9492
  hyperlinksChanged?: boolean;
9475
9493
  }
9476
9494
  //#endregion
9477
- //#region src/core/types/presentation-print-properties.d.ts
9495
+ //#region src/pptx/core/types/presentation-print-properties.d.ts
9478
9496
  type PptxPrintOutput = 'slides' | 'handouts1' | 'handouts2' | 'handouts3' | 'handouts4' | 'handouts6' | 'handouts9' | 'notes' | 'outline';
9479
9497
  type PptxPrintColorMode = 'bw' | 'gray' | 'clr';
9480
9498
  /** PresentationML `CT_PrintProperties` (`p:prnPr`). */
@@ -9750,7 +9768,7 @@ interface PptxTheme {
9750
9768
  formatScheme?: PptxThemeFormatScheme;
9751
9769
  }
9752
9770
  //#endregion
9753
- //#region src/core/types/transition.d.ts
9771
+ //#region src/pptx/core/types/transition.d.ts
9754
9772
  /**
9755
9773
  * Available slide transition effects.
9756
9774
  *
@@ -9851,7 +9869,7 @@ interface PptxSlideTransition {
9851
9869
  rawTransition?: XmlObject;
9852
9870
  }
9853
9871
  //#endregion
9854
- //#region src/core/types/view-properties.d.ts
9872
+ //#region src/pptx/core/types/view-properties.d.ts
9855
9873
  /**
9856
9874
  * View properties types parsed from `ppt/viewProps.xml`.
9857
9875
  *
@@ -9970,7 +9988,7 @@ interface PptxViewProperties {
9970
9988
  rawXml?: Record<string, unknown>;
9971
9989
  }
9972
9990
  //#endregion
9973
- //#region src/core/types/presentation.d.ts
9991
+ //#region src/pptx/core/types/presentation.d.ts
9974
9992
  /**
9975
9993
  * A customer data reference from `p:custDataLst / p:custData`.
9976
9994
  *
@@ -10778,8 +10796,8 @@ interface PptxEmbeddedFont {
10778
10796
  originalPartBytes?: Uint8Array;
10779
10797
  }
10780
10798
  //#endregion
10781
- //#region ../core/dist/index-7Wjeu_zK.d.ts
10782
- //#region src/core/types/theme-presets.d.ts
10799
+ //#region ../../node_modules/.bun/@christophervr+ooxml-core@0.1.0+da5426518d4ada24/node_modules/@christophervr/ooxml-core/dist/pptx/chunks/index-7UNw4lUN.d.ts
10800
+ //#region src/pptx/core/types/theme-presets.d.ts
10783
10801
  /**
10784
10802
  * A complete theme preset that can be applied to a presentation.
10785
10803
  *
@@ -10802,7 +10820,60 @@ interface PptxThemePreset {
10802
10820
  fontScheme: PptxThemeFontScheme;
10803
10821
  }
10804
10822
  //#endregion
10805
- //#region src/core/builders/sdk/types.d.ts
10823
+ //#region src/pptx/core/builders/sdk/chart-gradient-input.d.ts
10824
+ /** One gradient stop. */
10825
+ interface ChartGradientStopInput {
10826
+ /** Hex colour, `#RRGGBB` or `RRGGBB`. */
10827
+ color: string;
10828
+ /** Stop position along the gradient, 0 to 100 (percent). */
10829
+ position: number;
10830
+ /** Stop opacity, 0 (transparent) to 1 (opaque, the default); written as `a:alpha`. */
10831
+ opacity?: number;
10832
+ }
10833
+ /**
10834
+ * A chart series or data-point gradient fill: at least two stops, linear
10835
+ * (the default) or radial.
10836
+ *
10837
+ * `angle` follows the OOXML `a:lin/@ang` convention, the same as the shape
10838
+ * `FillInput`: degrees clockwise from the positive x-axis, pointing from the
10839
+ * first stop towards the last (`0` = left to right, `90` = top to bottom, the
10840
+ * default). A radial gradient radiates from `focalPoint` (fractions 0 to 1 of
10841
+ * the mark's box, the centre by default) and is written as
10842
+ * `a:path path="circle"` with a matching `a:fillToRect`.
10843
+ *
10844
+ * @example
10845
+ * ```ts
10846
+ * const topToBottom: ChartGradientInput = {
10847
+ * angle: 90,
10848
+ * stops: [
10849
+ * { color: "#60A5FA", position: 0 },
10850
+ * { color: "#1E3A8A", position: 100 },
10851
+ * ],
10852
+ * };
10853
+ * const glow: ChartGradientInput = {
10854
+ * type: "radial",
10855
+ * focalPoint: { x: 0.5, y: 0.5 },
10856
+ * stops: [
10857
+ * { color: "#FFFFFF", position: 0, opacity: 0.6 },
10858
+ * { color: "#ED7D31", position: 100 },
10859
+ * ],
10860
+ * };
10861
+ * ```
10862
+ */
10863
+ type ChartGradientInput = {
10864
+ type?: 'linear';
10865
+ angle?: number;
10866
+ stops: ChartGradientStopInput[];
10867
+ } | {
10868
+ type: 'radial';
10869
+ focalPoint?: {
10870
+ x: number;
10871
+ y: number;
10872
+ };
10873
+ stops: ChartGradientStopInput[];
10874
+ };
10875
+ //#endregion
10876
+ //#region src/pptx/core/builders/sdk/types.d.ts
10806
10877
  /** Position and size in pixels. Converted to EMU internally when needed. */
10807
10878
  interface ElementPosition {
10808
10879
  x: number;
@@ -10948,6 +11019,13 @@ interface ChartSeriesInput {
10948
11019
  name: string;
10949
11020
  values: number[];
10950
11021
  color?: string;
11022
+ /**
11023
+ * Gradient fill for the whole series, written as `c:ser/c:spPr/a:gradFill`.
11024
+ * Takes precedence over `color`. Area-filled chart types only (bar, area,
11025
+ * pie, doughnut, ofPie, bubble, surface and their 3-D variants);
11026
+ * `createChartElement` throws for line-drawn and ChartEx types.
11027
+ */
11028
+ gradientFill?: ChartGradientInput;
10951
11029
  boxWhiskerOptions?: PptxChartBoxWhiskerOptions;
10952
11030
  histogramOptions?: PptxChartHistogramOptions;
10953
11031
  waterfallOptions?: PptxChartWaterfallOptions;
@@ -11061,7 +11139,7 @@ interface PresentationThemeInput {
11061
11139
  };
11062
11140
  }
11063
11141
  //#endregion
11064
- //#region src/core/builders/sdk/SlideBuilder.d.ts
11142
+ //#region src/pptx/core/builders/sdk/SlideBuilder.d.ts
11065
11143
  /**
11066
11144
  * Fluent builder for a single slide.
11067
11145
  *
@@ -11236,7 +11314,7 @@ declare class SlideBuilder {
11236
11314
  build(): PptxSlide;
11237
11315
  }
11238
11316
  //#endregion
11239
- //#region src/core/builders/sdk/PresentationBuilder.d.ts
11317
+ //#region src/pptx/core/builders/sdk/PresentationBuilder.d.ts
11240
11318
  /** Result returned by {@link PresentationBuilder.create}. */
11241
11319
  interface PresentationBuilderResult {
11242
11320
  /** Initialized handler ready for editing and saving. */
@@ -11247,7 +11325,7 @@ interface PresentationBuilderResult {
11247
11325
  createSlide: (layoutName?: string) => SlideBuilder;
11248
11326
  }
11249
11327
  //#endregion
11250
- //#region src/core/builders/fluent/PptxXmlBuilder.d.ts
11328
+ //#region src/pptx/core/builders/fluent/PptxXmlBuilder.d.ts
11251
11329
  /**
11252
11330
  * Fluent interface for navigating and mutating a {@link PptxData} structure.
11253
11331
  * Provides method-chaining access to slides, elements, and notes.
@@ -11408,7 +11486,7 @@ declare class PptxSlideNotesBuilder {
11408
11486
  private syncSegmentsFromNotes;
11409
11487
  }
11410
11488
  //#endregion
11411
- //#region src/core/core/types.d.ts
11489
+ //#region src/pptx/core/core/types.d.ts
11412
11490
  interface PptxHandlerLoadOptions {
11413
11491
  eagerDecodeImages?: boolean;
11414
11492
  password?: string;
@@ -11642,7 +11720,7 @@ interface IPptxHandlerRuntime {
11642
11720
  applyLayoutToSlide(slideIndex: number, layoutPath: string, slides: PptxSlide[]): Promise<PptxSlide>;
11643
11721
  }
11644
11722
  //#endregion
11645
- //#region src/core/core/PptxHandlerRuntimeFactory.d.ts
11723
+ //#region src/pptx/core/core/PptxHandlerRuntimeFactory.d.ts
11646
11724
  /**
11647
11725
  * Abstract factory contract for creating {@link IPptxHandlerRuntime}
11648
11726
  * instances.
@@ -11655,7 +11733,7 @@ interface IPptxHandlerRuntimeFactory {
11655
11733
  createRuntime(): IPptxHandlerRuntime;
11656
11734
  }
11657
11735
  //#endregion
11658
- //#region src/core/utils/ooxml-crypto-types.d.ts
11736
+ //#region src/pptx/core/utils/ooxml-crypto-types.d.ts
11659
11737
  /**
11660
11738
  * Type definitions for OOXML encryption and decryption.
11661
11739
  *
@@ -11686,7 +11764,7 @@ interface EncryptionOptions {
11686
11764
  encryptionScheme?: EncryptionScheme;
11687
11765
  }
11688
11766
  //#endregion
11689
- //#region src/core/PptxHandlerCore.d.ts
11767
+ //#region src/pptx/core/PptxHandlerCore.d.ts
11690
11768
  /**
11691
11769
  * Dependency injection options for {@link PptxHandlerCore}.
11692
11770
  *
@@ -12175,7 +12253,7 @@ declare class PptxHandlerCore {
12175
12253
  exportSlides(slides: PptxSlide[], options: PptxExportOptions): Promise<Map<number, Uint8Array>>;
12176
12254
  }
12177
12255
  //#endregion
12178
- //#region src/core/PptxHandler.d.ts
12256
+ //#region src/pptx/core/PptxHandler.d.ts
12179
12257
  /**
12180
12258
  * Public facade for the PPTX editor handler.
12181
12259
  *
@@ -12263,7 +12341,7 @@ declare class PptxHandler extends PptxHandlerCore {
12263
12341
  loadFromJson(text: string, options?: PptxHandlerLoadOptions): Promise<PptxData>;
12264
12342
  }
12265
12343
  //#endregion
12266
- //#region src/converter/SvgExporter.d.ts
12344
+ //#region src/pptx/converter/SvgExporter.d.ts
12267
12345
  /**
12268
12346
  * Options controlling SVG export behaviour.
12269
12347
  */
@@ -12278,9 +12356,9 @@ interface SvgExportOptions {
12278
12356
  defaultFontSize?: number;
12279
12357
  }
12280
12358
  //#endregion
12281
- //#region ../core/dist/index.d.ts
12359
+ //#region ../../node_modules/.bun/@christophervr+ooxml-core@0.1.0+da5426518d4ada24/node_modules/@christophervr/ooxml-core/dist/pptx/index.d.ts
12282
12360
  //#endregion
12283
- //#region src/core/utils/accessibility-checker.d.ts
12361
+ //#region src/pptx/core/utils/accessibility-checker.d.ts
12284
12362
  type AccessibilityIssueType = 'missingAltText' | 'missingSlideTitle' | 'lowContrast' | 'complexTable' | 'duplicateTitle' | 'blankSlide';
12285
12363
  type AccessibilityIssueSeverity = 'error' | 'warning' | 'tip';
12286
12364
  interface AccessibilityIssue {
@@ -14127,6 +14205,7 @@ declare const RIBBON_CONTROL_CATALOG: {
14127
14205
  readonly select: 'Select';
14128
14206
  readonly pen: 'Pen';
14129
14207
  readonly highlighter: 'Highlighter';
14208
+ readonly freeform: 'Freeform';
14130
14209
  readonly eraser: 'Eraser';
14131
14210
  readonly penColor: 'Pen colour';
14132
14211
  readonly penWidth: 'Pen width';
@@ -14307,6 +14386,7 @@ declare const RIBBON_CONTROL_CATALOG: {
14307
14386
  readonly label: 'Language';
14308
14387
  readonly controls: {
14309
14388
  readonly translate: 'Translate';
14389
+ readonly language: 'Language';
14310
14390
  };
14311
14391
  };
14312
14392
  readonly comments: {
@@ -14737,6 +14817,29 @@ interface ViewerCustomizationController {
14737
14817
  subscribe(listener: () => void): () => void;
14738
14818
  }
14739
14819
  //#endregion
14820
+ //#region src/render/ribbon-command-view.d.ts
14821
+ /** A host supplies translated labels and controlled state; shared owns markup. */
14822
+ interface RibbonCommandView {
14823
+ id: RibbonControlId;
14824
+ label: string;
14825
+ icon: string;
14826
+ title?: string;
14827
+ disabled?: boolean;
14828
+ active?: boolean;
14829
+ pressed?: boolean;
14830
+ expanded?: boolean;
14831
+ hidden?: boolean;
14832
+ compact?: boolean;
14833
+ badge?: number;
14834
+ /** Commands with the same column share a vertical stack. */
14835
+ column?: number;
14836
+ }
14837
+ interface RibbonGroupView {
14838
+ id: RibbonGroupId;
14839
+ label: string;
14840
+ commands: readonly RibbonCommandView[];
14841
+ }
14842
+ //#endregion
14740
14843
  //#region src/render/p14-transition-keyframes.d.ts
14741
14844
  /** Part 1: conveyor / doors / ferris / flash / flythrough / gallery / glitter / honeycomb / pan. */
14742
14845
  declare const P14_TRANSITION_KEYFRAMES = "\n/* ── Conveyor (translate X with staggered timing) ──────────────────── */\n@keyframes pptx-tr-conveyor-in-from-right {\n\tfrom { transform: translateX(100%) rotateY(-30deg); }\n\t60% { transform: translateX(20%) rotateY(-10deg); }\n\tto { transform: translateX(0) rotateY(0deg); }\n}\n@keyframes pptx-tr-conveyor-out-to-left {\n\tfrom { transform: translateX(0) rotateY(0deg); }\n\t40% { transform: translateX(-20%) rotateY(10deg); }\n\tto { transform: translateX(-100%) rotateY(30deg); }\n}\n@keyframes pptx-tr-conveyor-in-from-left {\n\tfrom { transform: translateX(-100%) rotateY(30deg); }\n\t60% { transform: translateX(-20%) rotateY(10deg); }\n\tto { transform: translateX(0) rotateY(0deg); }\n}\n@keyframes pptx-tr-conveyor-out-to-right {\n\tfrom { transform: translateX(0) rotateY(0deg); }\n\t40% { transform: translateX(20%) rotateY(-10deg); }\n\tto { transform: translateX(100%) rotateY(-30deg); }\n}\n\n/* ── Doors (clip-path from center split) ──────────────────────────────\n MEASURED via COM CreateVideo: PowerPoint's `dir=\"horz\"` names a\n HORIZONTAL split line (two panels stacked top/bottom, opening upward and\n downward), and `dir=\"vert\"` a VERTICAL split line (panels side by side,\n opening left and right) - the opposite of what \"clips left/right\" vs\n \"clips top/bottom\" would suggest at a glance. Keep the clip-path bodies\n matched to the MEASURED direction, not the intuitive one. */\n@keyframes pptx-tr-doors-horz {\n\tfrom { clip-path: inset(50% 0); }\n\tto { clip-path: inset(0 0); }\n}\n@keyframes pptx-tr-doors-vert {\n\tfrom { clip-path: inset(0 50%); }\n\tto { clip-path: inset(0 0); }\n}\n\n/* ── Ferris (rotate elements around center) ───────────────────────── */\n@keyframes pptx-tr-ferris-in-from-right {\n\tfrom { transform: translateX(80%) rotate(45deg) scale(0.6); opacity: 0; }\n\tto { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }\n}\n@keyframes pptx-tr-ferris-out-to-left {\n\tfrom { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }\n\tto { transform: translateX(-80%) rotate(-45deg) scale(0.6); opacity: 0; }\n}\n@keyframes pptx-tr-ferris-in-from-left {\n\tfrom { transform: translateX(-80%) rotate(-45deg) scale(0.6); opacity: 0; }\n\tto { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }\n}\n@keyframes pptx-tr-ferris-out-to-right {\n\tfrom { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }\n\tto { transform: translateX(80%) rotate(45deg) scale(0.6); opacity: 0; }\n}\n\n/* ── Flash (bright flash opacity burst) ──────────────────────────── */\n@keyframes pptx-tr-flash-white {\n\t0% { opacity: 1; }\n\t30% { opacity: 0; }\n\t50% { opacity: 0; }\n\t100% { opacity: 1; }\n}\n@keyframes pptx-tr-flash-in {\n\t0% { opacity: 0; }\n\t50% { opacity: 0; }\n\t70% { opacity: 1; }\n\t100% { opacity: 1; }\n}\n\n/* ── Flythrough (scale + translate Z-axis feel) ──────────────────── */\n@keyframes pptx-tr-flythrough-in {\n\tfrom { transform: scale(4) translateZ(200px); opacity: 0; filter: blur(8px); }\n\tto { transform: scale(1) translateZ(0); opacity: 1; filter: blur(0); }\n}\n@keyframes pptx-tr-flythrough-out {\n\tfrom { transform: scale(1) translateZ(0); opacity: 1; filter: blur(0); }\n\tto { transform: scale(0.1) translateZ(-200px); opacity: 0; filter: blur(8px); }\n}\n@keyframes pptx-tr-flythrough-reverse-in {\n\tfrom { transform: scale(0.1) translateZ(-200px); opacity: 0; filter: blur(8px); }\n\tto { transform: scale(1) translateZ(0); opacity: 1; filter: blur(0); }\n}\n@keyframes pptx-tr-flythrough-reverse-out {\n\tfrom { transform: scale(1) translateZ(0); opacity: 1; filter: blur(0); }\n\tto { transform: scale(4) translateZ(200px); opacity: 0; filter: blur(8px); }\n}\n\n/* ── Gallery (translate with perspective) ─────────────────────────── */\n@keyframes pptx-tr-gallery-in-from-right {\n\tfrom { transform: perspective(800px) translateX(100%) rotateY(-45deg); opacity: 0.5; }\n\tto { transform: perspective(800px) translateX(0) rotateY(0deg); opacity: 1; }\n}\n@keyframes pptx-tr-gallery-out-to-left {\n\tfrom { transform: perspective(800px) translateX(0) rotateY(0deg); opacity: 1; }\n\tto { transform: perspective(800px) translateX(-100%) rotateY(45deg); opacity: 0.5; }\n}\n@keyframes pptx-tr-gallery-in-from-left {\n\tfrom { transform: perspective(800px) translateX(-100%) rotateY(45deg); opacity: 0.5; }\n\tto { transform: perspective(800px) translateX(0) rotateY(0deg); opacity: 1; }\n}\n@keyframes pptx-tr-gallery-out-to-right {\n\tfrom { transform: perspective(800px) translateX(0) rotateY(0deg); opacity: 1; }\n\tto { transform: perspective(800px) translateX(100%) rotateY(-45deg); opacity: 0.5; }\n}\n\n/* ── Glitter (particle dissolve effect) ──────────────────────────── */\n@keyframes pptx-tr-glitter-in {\n\tfrom { opacity: 0; filter: brightness(1.5) contrast(1.3) blur(2px); }\n\t60% { opacity: 0.7; filter: brightness(1.2) contrast(1.1) blur(1px); }\n\tto { opacity: 1; filter: brightness(1) contrast(1) blur(0); }\n}\n\n/* ── Honeycomb (hexagonal reveal) ────────────────────────────────── */\n@keyframes pptx-tr-honeycomb-in {\n\tfrom {\n\t\tclip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);\n\t\topacity: 0;\n\t}\n\tto {\n\t\tclip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);\n\t\topacity: 1;\n\t}\n}\n@keyframes pptx-tr-honeycomb-out {\n\tfrom { opacity: 1; }\n\tto { opacity: 0; filter: blur(2px); }\n}\n\n/* ── Pan (large-scale translate) ─────────────────────────────────── */\n@keyframes pptx-tr-pan-from-right {\n\tfrom { transform: translateX(100%); }\n\tto { transform: translateX(0); }\n}\n@keyframes pptx-tr-pan-to-left {\n\tfrom { transform: translateX(0); }\n\tto { transform: translateX(-100%); }\n}\n@keyframes pptx-tr-pan-from-left {\n\tfrom { transform: translateX(-100%); }\n\tto { transform: translateX(0); }\n}\n@keyframes pptx-tr-pan-to-right {\n\tfrom { transform: translateX(0); }\n\tto { transform: translateX(100%); }\n}\n@keyframes pptx-tr-pan-from-bottom {\n\tfrom { transform: translateY(100%); }\n\tto { transform: translateY(0); }\n}\n@keyframes pptx-tr-pan-to-top {\n\tfrom { transform: translateY(0); }\n\tto { transform: translateY(-100%); }\n}\n@keyframes pptx-tr-pan-from-top {\n\tfrom { transform: translateY(-100%); }\n\tto { transform: translateY(0); }\n}\n@keyframes pptx-tr-pan-to-bottom {\n\tfrom { transform: translateY(0); }\n\tto { transform: translateY(100%); }\n}\n";
@@ -14788,7 +14891,7 @@ interface SlideSizeEmu {
14788
14891
  *
14789
14892
  * Input is a superset of output. We READ `.pptx`, `.ppsx`, `.pptm`, `.potx`,
14790
14893
  * legacy binary `.ppt` and portable `pptx-viewer-json`; we WRITE the OpenXML
14791
- * family plus legacy binary `.ppt` (via `packages/core/src/core/ppt/writer/`,
14894
+ * family plus legacy binary `.ppt` (via `ooxml-core/src/pptx/core/ppt/writer/`,
14792
14895
  * a real MS-PPT/OLE2 encoder, not a stub). `savedPresentationFileName`
14793
14896
  * REPLACES the source extension with the extension of the format actually
14794
14897
  * being written rather than keeping the source's: a deck opened as
@@ -14805,7 +14908,7 @@ interface SlideSizeEmu {
14805
14908
  * Extensions the built-in file picker offers, in the order it offers them.
14806
14909
  *
14807
14910
  * `.ppt` is in the list because the loader genuinely handles it, not as a
14808
- * courtesy: see `packages/core/src/core/ppt/` and the `ppt-import` integration
14911
+ * courtesy: see `ooxml-core/src/pptx/core/ppt/` and the `ppt-import` integration
14809
14912
  * suite, which asserts a `.ppt` loads to the same model as the `.pptx` it was
14810
14913
  * exported from.
14811
14914
  */
@@ -15262,6 +15365,57 @@ interface AccountAuthConfig {
15262
15365
  avatarUrl?: string;
15263
15366
  };
15264
15367
  }
15368
+ //#endregion
15369
+ //#region src/render/ribbon-galleries/gallery-types.d.ts
15370
+ /** Every gallery the ribbon offers. */
15371
+ type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'themeColors' | 'themeFonts';
15372
+ /** One tile. */
15373
+ interface RibbonGalleryItem {
15374
+ /** Stable within its gallery; what `applyRibbonGalleryItem` takes. */
15375
+ id: string;
15376
+ /** i18n key of the tile's accessible name / tooltip. */
15377
+ labelKey: string;
15378
+ /** `{{name}}` interpolation values for `labelKey`. */
15379
+ labelParams?: Readonly<Record<string, string | number>>;
15380
+ /** English fallback for bindings whose dictionary lacks `labelKey`. */
15381
+ label: string;
15382
+ /**
15383
+ * A complete, self-contained `<svg>` element (width/height/viewBox set).
15384
+ * Built only from catalogue data and theme colours, never from user text,
15385
+ * so it is safe to inject as markup.
15386
+ */
15387
+ previewSvg: string;
15388
+ /**
15389
+ * CSS `filter` the tile's preview carries (the Picture Adjust galleries),
15390
+ * for a host that draws the thumbnail over a real image instead of
15391
+ * `previewSvg`. Omitted when the preset has no CSS-expressible preview.
15392
+ */
15393
+ previewFilter?: string;
15394
+ /** True when this entry is what the selection currently carries. */
15395
+ applied: boolean;
15396
+ }
15397
+ /** A titled block of tiles (PowerPoint's "Theme Styles" / "Presets"). */
15398
+ interface RibbonGallerySection {
15399
+ id: string;
15400
+ /** i18n key of the section heading; omitted for an untitled section. */
15401
+ titleKey?: string;
15402
+ title?: string;
15403
+ /** Tiles per row in the dropped-down grid. */
15404
+ columns: number;
15405
+ /** Preview tile size in CSS px (the SVG's own width/height). */
15406
+ tileWidth: number;
15407
+ tileHeight: number;
15408
+ items: RibbonGalleryItem[];
15409
+ }
15410
+ interface RibbonGalleryDescriptor {
15411
+ id: RibbonGalleryId;
15412
+ /** i18n key of the gallery trigger / group caption. */
15413
+ labelKey: string;
15414
+ label: string;
15415
+ sections: RibbonGallerySection[];
15416
+ /** True when the selection cannot take this gallery (trigger disabled). */
15417
+ disabled: boolean;
15418
+ }
15265
15419
  /**
15266
15420
  * What a gallery needs to know about the deck and the selection. Bindings
15267
15421
  * build it once per render from state they already hold.
@@ -15419,6 +15573,94 @@ interface CropSession {
15419
15573
  absentInsets: readonly (keyof CropInsets)[];
15420
15574
  }
15421
15575
  type ThemeEditorLabels = Record<string, string>;
15576
+ /**
15577
+ * Controlled Animations tab state. Hosts own the slide model, selection,
15578
+ * history and the inspector; the view only reflects these values.
15579
+ */
15580
+ interface RibbonAnimationsViewState {
15581
+ /** False in read-only hosts: every authoring intent is rejected. */
15582
+ editable: boolean;
15583
+ /** Whether an element is selected; effects always target one element. */
15584
+ hasSelection: boolean;
15585
+ /** Whether the Animation Pane (inspector) is open; reflected as pressed. */
15586
+ paneOpen?: boolean;
15587
+ /** Transient highlight while a host's Preview is playing, where it tracks one. */
15588
+ previewActive?: boolean;
15589
+ translate?: (key: string) => string;
15590
+ }
15591
+ //#endregion
15592
+ //#region src/render/ribbon-draw-state.d.ts
15593
+ type RibbonDrawTool = 'select' | 'pen' | 'highlighter' | 'eraser' | 'freeform';
15594
+ interface RibbonDrawViewState {
15595
+ tool: RibbonDrawTool;
15596
+ color: string;
15597
+ width: number;
15598
+ editable: boolean;
15599
+ recentColors?: readonly string[];
15600
+ translate?: (key: string) => string;
15601
+ }
15602
+ /**
15603
+ * Controlled Insert tab state. Native viewers own the selections, every document
15604
+ * mutation, the file/shape/SmartArt/equation/hyperlink dialogs and history.
15605
+ */
15606
+ interface RibbonInsertState {
15607
+ editable: boolean;
15608
+ /** A hyperlink always attaches to something, so Link tracks the selection. */
15609
+ hasSelection: boolean;
15610
+ /** The shape preset staged in the Shape picker. */
15611
+ shapeType: string;
15612
+ /** The chart entry staged in the Chart picker. */
15613
+ chartKind: string;
15614
+ /** The armed Freeform: Shape / Curve tool. */
15615
+ activeFreeformTool?: string | null;
15616
+ /** Visible Freeform tools; empty hides the buttons (host customization). */
15617
+ freeformTools?: readonly string[];
15618
+ /** Hosts without these capabilities hide the control instead of showing a dead one. */
15619
+ chartAvailable?: boolean;
15620
+ fieldAvailable?: boolean;
15621
+ headerFooterAvailable?: boolean;
15622
+ translate?: (key: string) => string;
15623
+ }
15624
+ interface RibbonHomeControlState {
15625
+ disabled?: boolean;
15626
+ /** Omit for ordinary commands; a boolean reflects `aria-pressed`. */
15627
+ pressed?: boolean;
15628
+ hidden?: boolean;
15629
+ }
15630
+ interface RibbonHomeViewState {
15631
+ /** Missing entries are enabled, unpressed and visible. */
15632
+ controls: Readonly<Partial<Record<RibbonControlId, RibbonHomeControlState>>>;
15633
+ translate?: (key: string) => string;
15634
+ }
15635
+ /** Controlled View tab state. Native viewers own the values and every side effect. */
15636
+ interface RibbonViewState {
15637
+ editable: boolean;
15638
+ showRulers: boolean;
15639
+ showGrid: boolean;
15640
+ showGuides: boolean;
15641
+ snapToGrid: boolean;
15642
+ snapToShape: boolean;
15643
+ templateEditing: boolean;
15644
+ selectionPaneOpen?: boolean;
15645
+ eyedropperActive?: boolean;
15646
+ /** Hosts without these capabilities hide the control instead of showing a dead one. */
15647
+ selectionPaneAvailable?: boolean;
15648
+ eyedropperAvailable?: boolean;
15649
+ zoomAvailable?: boolean;
15650
+ translate?: (key: string) => string;
15651
+ }
15652
+ //#endregion
15653
+ //#region src/render/ribbon-transitions-state.d.ts
15654
+ type RibbonTransitionsTranslate = (key: string, params?: Record<string, string>) => string;
15655
+ /** Controlled Transitions tab state. The host derives it from the ACTIVE slide. */
15656
+ interface RibbonTransitionsViewState {
15657
+ draft: RibbonTransitionDraft;
15658
+ /** The slide's transition, used only to list and select the Sound entries. */
15659
+ transition?: PptxSlideTransition;
15660
+ editable: boolean;
15661
+ inspectorOpen?: boolean;
15662
+ translate?: RibbonTransitionsTranslate;
15663
+ }
15422
15664
  //#endregion
15423
15665
  //#region src/web-components/theme-editor.d.ts
15424
15666
  interface PptxUiThemeEditorElement extends HTMLElement {
@@ -15431,6 +15673,86 @@ declare global {
15431
15673
  'pptx-ui-theme-editor': PptxUiThemeEditorElement;
15432
15674
  }
15433
15675
  }
15676
+ interface PptxUiRibbonAnimationsElement extends HTMLElement {
15677
+ state: RibbonAnimationsViewState;
15678
+ }
15679
+ declare global {
15680
+ interface HTMLElementTagNameMap {
15681
+ 'pptx-ui-ribbon-animations': PptxUiRibbonAnimationsElement;
15682
+ }
15683
+ }
15684
+ interface PptxUiRibbonDrawElement extends HTMLElement {
15685
+ state: RibbonDrawViewState;
15686
+ }
15687
+ declare global {
15688
+ interface HTMLElementTagNameMap {
15689
+ 'pptx-ui-ribbon-draw': PptxUiRibbonDrawElement;
15690
+ }
15691
+ }
15692
+ interface PptxUiRibbonHomeElement extends HTMLElement {
15693
+ state: RibbonHomeViewState;
15694
+ }
15695
+ declare global {
15696
+ interface HTMLElementTagNameMap {
15697
+ 'pptx-ui-ribbon-home-clipboard': PptxUiRibbonHomeElement;
15698
+ 'pptx-ui-ribbon-home-font': PptxUiRibbonHomeElement;
15699
+ 'pptx-ui-ribbon-home-paragraph': PptxUiRibbonHomeElement;
15700
+ 'pptx-ui-ribbon-home-editing': PptxUiRibbonHomeElement;
15701
+ }
15702
+ }
15703
+ interface PptxUiRibbonTransitionsElement extends HTMLElement {
15704
+ state: RibbonTransitionsViewState;
15705
+ }
15706
+ declare global {
15707
+ interface HTMLElementTagNameMap {
15708
+ 'pptx-ui-ribbon-transitions': PptxUiRibbonTransitionsElement;
15709
+ }
15710
+ }
15711
+ interface PptxUiRibbonInsertElement extends HTMLElement {
15712
+ state: RibbonInsertState;
15713
+ /** Return focus to a control by its public id, e.g. after a native dialog closes. */
15714
+ focusControl(id: string): void;
15715
+ }
15716
+ declare global {
15717
+ interface HTMLElementTagNameMap {
15718
+ 'pptx-ui-ribbon-insert': PptxUiRibbonInsertElement;
15719
+ }
15720
+ }
15721
+ interface PptxUiRibbonViewElement extends HTMLElement {
15722
+ state: RibbonViewState;
15723
+ }
15724
+ declare global {
15725
+ interface HTMLElementTagNameMap {
15726
+ 'pptx-ui-ribbon-view': PptxUiRibbonViewElement;
15727
+ }
15728
+ }
15729
+ //#endregion
15730
+ //#region src/web-components/ribbon-section.d.ts
15731
+ interface PptxUiRibbonSectionElement extends HTMLElement {
15732
+ groups: readonly RibbonGroupView[];
15733
+ }
15734
+ declare global {
15735
+ interface HTMLElementTagNameMap {
15736
+ 'pptx-ui-ribbon-section': PptxUiRibbonSectionElement;
15737
+ }
15738
+ }
15739
+ //#endregion
15740
+ //#region src/web-components/ribbon-gallery-view.d.ts
15741
+ type GalleryTranslate = (key: string, params?: Readonly<Record<string, string | number>>) => string;
15742
+ interface PptxUiRibbonGalleryElement extends HTMLElement {
15743
+ readonly trigger: HTMLButtonElement;
15744
+ readonly popup: HTMLElement;
15745
+ descriptor: RibbonGalleryDescriptor | undefined;
15746
+ translateLabel: GalleryTranslate;
15747
+ disabled: boolean;
15748
+ open: boolean;
15749
+ close(): void;
15750
+ }
15751
+ declare global {
15752
+ interface HTMLElementTagNameMap {
15753
+ 'pptx-ui-ribbon-gallery': PptxUiRibbonGalleryElement;
15754
+ }
15755
+ }
15434
15756
  //#endregion
15435
15757
  //#region src/web-components/subtitle-settings.d.ts
15436
15758
  interface PptxUiSubtitleSettingsElement extends HTMLElement {
@@ -15504,4 +15826,4 @@ interface TransitionOverlayParams {
15504
15826
  declare function playTransitionOverlay(params: TransitionOverlayParams): () => void;
15505
15827
  //#endregion
15506
15828
  export { InlineTextEditSnapshot as $, ViewerTheme as $n, PptxSmartArtNodeStyle as $r, SlideTransitionAnimations as $t, CssStyleMap as A, describeCollaborationShellState as An, PptxCommentAuthor as Ar, ResolvedCustomization as At, ElementUpdateOptions as B, overlayInlineTextSnapshot as Bn, PptxHandoutMaster as Br, RulerUnit as Bt, CollaborationTransport as C, ViewportFitOptions as Cn, PptxAnimationSequence as Cr, PresentationPointerTool as Ct, ContextMenuCustomization as D, buildInlineTextCommitPatch as Dn, PptxAppProperties as Dr, RIBBON_TAB_IDS as Dt, ContextMenuCommandId as E, ZoomNavigationTarget as En, PptxAnimationTrigger as Er, RANDOM_ELIGIBLE_TYPES as Et, ELEMENT_CONTEXT_MENU_COMMAND_IDS as F, getSlideTransitionAnimations as Fn, PptxCustomShow as Fr, RibbonCustomization as Ft, FreeformToolKind as G, resolveDirection8 as Gn, PptxModifyVerifier as Gr, SavedPresentationFormat as Gt, ExternalCollaborationSession as H, presentationBaseName as Hn, PptxImageEffects as Hr, SLIDE_TRANSITION_KEYFRAMES as Ht, EditorKeyActionName as I, isLegacyBinaryPresentation as In, PptxData as Ir, RibbonGalleryApplyResult as It, HostCanvasMenuContext as J, resolveTransitionDurationMs as Jn, PptxSection as Jr, ShareDefaults as Jt, GradientState as K, resolveOrientation as Kn, PptxNotesMaster as Kr, SessionDeck as Kt, ElementAnimationState as L, isSupportedPresentationFile as Ln, PptxElement as Lr, RibbonGalleryContext as Lt, DEFAULT_TRANSITION_DURATION_MS as M, getCinematicTransitionAnimations as Mn, PptxCompatibilityWarning as Mr, ResolvedDirection8 as Mt, EASE as N, getP14TransitionAnimations as Nn, PptxCoreProperties as Nr, RibbonContextualTabId as Nt, CropElementUpdate as O, canInteractWithElement as On, PptxChartData as Or, ReadOnlyRecommendation as Ot, EDITOR_SHORTCUT_ACTION_IDS as P, getSessionTabId as Pn, PptxCustomProperty as Pr, RibbonControlId as Pt, InlineListReadResult as Q, ThemeCatalogEntry as Qn, PptxSmartArtData as Qr, SlideTemplateId as Qt, ElementClipboardPayload as R, loadPresentationDeck as Rn, PptxElementAnimation as Rr, RibbonGroupId as Rt, CollaborationShellState as S, ViewerQuickAccessOptions as Sn, PptxAnimationRepeatMode as Sr, PresentationBlackout as St, ConnectionStatus as T, WHEEL_SPOKE_COUNTS as Tn, PptxAnimationTimingCurve as Tr, PrintSettings as Tt, ExternalCollaborationSnapshot as U, rememberSessionDeck as Un, PptxLayoutPreview as Ur, SLIDE_TRANSITION_KEYFRAMES_CSS as Ut, ExternalCollaborationAwareness as V, parsePresentationSessionId as Vn, PptxHeaderFooter as Vr, RunProgramNotice as Vt, FieldSubstitutionContext as W, resolveDirection as Wn, PptxModernCommentAuthor as Wr, SanitizedPresence as Wt, HostMenuCommand as X, restoreSessionDeck as Xn, PptxSlideMaster as Xr, SlideSizeEmu as Xt, HostElementMenuContext as Y, resolveWheelSpokeCount as Yn, PptxSlide as Yr, ShortcutChord as Yt, INSTANT as Z, savedPresentationFileName as Zn, PptxSlideTransition as Zr, SlideSizeRescaleMode as Zt, ChartPartRef as _, TextStyle as _i, ViewerFontSource as _n, OlePptxElement as _r, P14_TRANSITION_KEYFRAMES_ALL as _t, AnimationGroup as a, PptxThemeColorRef as ai, ToolbarButtonId as an, vermilionDarkTheme as ar, MobileSheetKey as at, CollaborationLivePatcher as b, ViewerOptionsStore as bn, PptxAnimationDirection as br, PasteSpecialFormat as bt, BACKSTAGE_PAGE_IDS as c, PptxThemeOption as ci, VIEWER_EXPORT_FORMAT_IDS as cn, MergeShapeOperation as cr, OPTIONS_SECTION_IDS as ct, BackstagePage as d, ShapeStyle as di, ViewerCustomization as dn, PptxSaveFormat as dr, OptionsPageId as dt, PptxTableCellStyle as ei, StrokeToInkElementOpts as en, ViewerThemeColors as er, InlineTextSelection as et, CANVAS_CONTEXT_MENU_COMMAND_IDS as f, SmartArtColorScheme as fi, ViewerCustomizationApi as fn, SvgExportOptions as fr, OptionsSectionId as ft, ChangeCaseMode as g, TextSegment as gi, ViewerFeatureId as gn, OleObjectType as gr, P14_TRANSITION_KEYFRAMES_2 as gt, CanvasSize as h, TablePptxElement as hi, ViewerExportFormatId as hn, MediaPptxElement as hr, P14_TRANSITION_KEYFRAMES as ht, AlignEdge as i, PptxTheme as ii, ToolbarActionId as in, themeToCssVars as ir, MasterViewCrudActionId as it, DEFAULT_MORPH_DURATION_MS as j, forgetSessionDeck as jn, PptxCommentMention as jr, ResolvedDirection as jt, CropSession as k, createImageElementFromFile as kn, PptxComment as kr, RemoteCursor as kt, BackstageCardId as l, PptxTransitionType as li, VIEWER_FEATURE_IDS as ln, PptxHandler as lr, OPTIONS_SETTING_IDS as lt, CanvasContextMenuCommandId as m, SmartArtLayoutType as mi, ViewerDialogId as mn, MasterViewTab as mr, OptionsSettingValues as mt, playTransitionOverlay as n, PptxTagCollection as ni, TRANSITION_SPEED_DURATION_MS as nn, defaultRadius as nr, KeyboardCustomization as nt, AutosaveRecord as o, PptxThemeColorScheme as oi, ToolbarTabId as on, vermilionLightTheme as or, ModifyPasswordCheckResult as ot, CINEMATIC_TRANSITION_KEYFRAMES as p, SmartArtLayout as pi, ViewerCustomizationController as pn, ElementAction as pr, OptionsSettingId as pt, Guide as q, resolveSlideTransition as qn, PptxPresentationProperties as qr, ShapePresetType as qt, AccountAuthConfig as r, PptxTextStyleLevels as ri, TextAdvancedChanges as rn, defaultThemeColors as rr, MasterViewCrudAction as rt, BACKSTAGE_CARD_IDS as s, PptxThemeFontScheme as si, VIEWER_DIALOG_IDS as sn, AccessibilityIssue as sr, OPTIONS_PAGE_IDS as st, TransitionOverlayParams as t, PptxTableData as ti, TOOLBAR_BUTTON_IDS as tn, defaultCssVars as tr, InsertChartKind as tt, BackstageCustomization as u, PptxViewProperties as ui, VIEWER_PANEL_IDS as un, PptxHandlerSaveOptions as ur, OptionsCustomization as ut, CollabLoadOrigin as v, XmlObject as vi, ViewerMode as vn, ParsedTableStyleMap as vr, PPTX_OPEN_ACCEPT as vt, CompatibilityWarningToast as w, ViewportFitPadding as wn, PptxAnimationTimelineAnchor as wr, PresentationSnapshot as wt, CollaborationRole as x, ViewerPanelId as xn, PptxAnimationPreset as xr, PowerPointViewerAPI as xt, CollaborationConfig as y, ViewerOptionPrimitive as yn, PptxAfterAnimationAction as yr, PRESENTATION_OPEN_EXTENSIONS as yt, ElementUpdate as z, loadSessionDeck as zn, PptxEmbeddedFont as zr, RibbonTransitionDraft as zt };
15507
- //# sourceMappingURL=transition-overlay-f0pbzLt7.d.ts.map
15829
+ //# sourceMappingURL=transition-overlay-DjUk9Dpn.d.ts.map