@pptx-editor.dev/react 0.2.0 → 0.3.0-canary.20261109032918.sha-39dc46e

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 (3) hide show
  1. package/dist/index.d.ts +203 -29
  2. package/dist/index.js +4503 -2040
  3. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ReactElement, CSSProperties, ComponentType, MouseEvent } from 'react';
3
- import { ChromeTranslate, PptxEditorInstance, ColumnsDialogFields, BulletsDialogFields, FontDialogFields, ParagraphDialogFields, SlideBackground, EditorRejection, MenuNamedRow, ChromeSlotId, ChromeMenuId, CanvasMenuKind, SlideSection, LoadOptions, CommandResult, EditorCommand, EditorExecOptions, EditorSnapshot, EditorMode, EditorFontsOption, EditorFontError, EditorModule, ColorMode, ChromeGroupId, ChromeControl, SlideshowController, ToolbarValueMap, ToolbarShownValue, SlideRailOrientation, DocumentOpenFailure, RibbonTabId, ResolvedColorMode, DocumentSearchState, DocumentSearchFindOptions, FindMatch, EditorCaret, HistoryGroupBindingOptions, PptxEditorEvents, ShapeStyleChoice, ShapeStyleValue, HyperlinkPopupActions, HyperlinkPopupState, FontResolver, PptxSource, UsePptxSourceOptions, GradientFill, SlideLayoutSummary, ParagraphFormatRead, ParagraphFormatCommand, FontFormatRead, FontFormatCommand, BulletFormatRead, BulletFormat, FontConfigurationFragment, MarkedFontResolver, FontOrigin, FontPickerGroup, FontPickerRow, PopoverAnchorRect, ContextMenuPartName, MenuRowPartName } from '@pptx-editor.dev/core/editor';
4
- export { BulletFormat, BulletFormatRead, BulletsDialogFields, CanvasMenuKind, ChromeControl, ChromeGroupId, ChromeMenuId, ChromeSlotId, ChromeTranslate, ColorMode, ColumnsDialogFields, CommandResult, ContextMenuPartName, DEFAULT_FONT, DocumentOpenFailure, DocumentSearchFindOptions, DocumentSearchState, EditorCaret, EditorCommand, EditorExecOptions, EditorFontError, EditorFontsOption, EditorMode, EditorModule, EditorRejection, EditorRemoval, EditorSnapshot, FontConfigurationBase, FontConfigurationFragment, FontDialogFields, FontFormatCommand, FontFormatRead, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontPickerGroup, FontPickerGroupId, FontPickerRow, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, GradientFill, HistoryGroupBindingOptions, HyperlinkPopupActions, HyperlinkPopupLink, HyperlinkPopupMode, HyperlinkPopupState, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, MenuNamedRow, MenuRowPartName, ParagraphDialogFields, ParagraphFormatCommand, ParagraphFormatRead, PptxEditorEvents, PptxEditorInstance, PptxFontOrigin, PptxFontsInput, PptxFontsSource, PptxSource, ResolvedColorMode, RibbonTabId, ShapeStyleChoice, ShapeStyleValue, SlideBackground, SlideLayoutSummary, SlideRailOrientation, SlideSection, SlideshowController, ToolbarShownValue, ToolbarValueMap, UsePptxSourceOptions, composeFontConfiguration, composeFontOrigins, createFontSource, deferFonts, defineFontResolver, gradientCss, isFontResolver, loadFonts, platformShortcuts } from '@pptx-editor.dev/core/editor';
3
+ import { ChromeTranslate, PptxEditorInstance, ColumnsDialogFields, BulletsDialogFields, FontDialogFields, ParagraphDialogFields, SlideBackground, SlideSizeFields, EditorRejection, MenuNamedRow, ChromeSlotId, ChromeMenuId, CanvasMenuKind, SlideSection, LoadOptions, CommandResult, EditorCommand, EditorExecOptions, EditorSnapshot, EditorMode, EditorFontsOption, EditorFontError, EditorModule, ClipboardDrawingReader, ColorMode, ChromeGroupId, ChromeControl, SlideshowController, ToolbarValueMap, ToolbarShownValue, SidePanelTab, SlideRailOrientation, DocumentOpenFailure, RibbonTabId, ResolvedColorMode, DocumentSearchState, DocumentSearchFindOptions, FindMatch, EditorCaret, HistoryGroupBindingOptions, PptxEditorEvents, ShapeStyleChoice, ShapeStyleValue, HyperlinkPopupActions, HyperlinkPopupState, FontResolver, PptxSource, UsePptxSourceOptions, GradientFill, PatternFill, SlideLayoutSummary, ParagraphFormatRead, ParagraphFormatCommand, FontFormatRead, FontFormatCommand, BulletFormatRead, BulletFormat, ReviewAuthorInfo, FontConfigurationFragment, MarkedFontResolver, FontOrigin, FontPickerGroup, FontPickerRow, PopoverAnchorRect, ContextMenuPartName, MenuRowPartName } from '@pptx-editor.dev/core/editor';
4
+ export { BulletFormat, BulletFormatMixed, BulletFormatRead, BulletsDialogFields, CanvasMenuKind, ChromeControl, ChromeGroupId, ChromeMenuId, ChromeSlotId, ChromeTranslate, ClipboardDrawingReader, ColorMode, ColumnsDialogFields, CommandResult, ContextMenuPartName, DEFAULT_FONT, DocumentOpenFailure, DocumentSearchFindOptions, DocumentSearchState, EditorCaret, EditorCommand, EditorExecOptions, EditorFontError, EditorFontsOption, EditorMode, EditorModule, EditorRejection, EditorRemoval, EditorSnapshot, FontConfigurationBase, FontConfigurationFragment, FontDialogFields, FontFormatCommand, FontFormatRead, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontPickerGroup, FontPickerGroupId, FontPickerRow, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, GradientFill, HistoryGroupBindingOptions, HyperlinkPopupActions, HyperlinkPopupLink, HyperlinkPopupMode, HyperlinkPopupState, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, MenuNamedRow, MenuRowPartName, PaneRequest, ParagraphDialogFields, ParagraphFormatCommand, ParagraphFormatRead, PatternFill, PatternPreset, PptxEditorEvents, PptxEditorInstance, PptxFontOrigin, PptxFontsInput, PptxFontsSource, PptxSource, ResolvedColorMode, RibbonTabId, ShapeStyleChoice, ShapeStyleValue, SidePanelTab, SlideBackground, SlideLayoutSummary, SlideRailOrientation, SlideSection, SlideshowController, ToolbarShownValue, ToolbarValueMap, UsePptxSourceOptions, composeFontConfiguration, composeFontOrigins, createFontSource, deferFonts, defineFontResolver, gradientCss, isFontResolver, listenPaneRequests, loadFonts, platformShortcuts, requestPane } from '@pptx-editor.dev/core/editor';
5
5
  import { Translate, LocaleCatalog } from '@pptx-editor.dev/i18n';
6
6
  import { FontConfiguration } from '@pptx-editor.dev/core/contracts';
7
7
  export { EditorFontErrorCode, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution } from '@pptx-editor.dev/core/contracts';
@@ -45,7 +45,11 @@ declare function HyperLinkUnlink(props: HyperLinkActionProps): ReactElement<unkn
45
45
  declare namespace HyperLinkUnlink {
46
46
  var pptxHyperLinkPart: "Unlink";
47
47
  }
48
- /** The URL field. Enter applies. @public */
48
+ /**
49
+ * The link's target: **Link to** (a web address, an email address, a slide or a custom show of
50
+ * this presentation, or another file by its relative path) and its fields. Each kind writes the
51
+ * one draft that Apply sends. Enter applies. @public
52
+ */
49
53
  declare function HyperLinkFields({ className, hidden }: HyperLinkPartProps): react.JSX.Element | null;
50
54
  declare namespace HyperLinkFields {
51
55
  var pptxHyperLinkPart: "Fields";
@@ -207,10 +211,10 @@ interface BulletsAndNumberingDialogProps extends DialogCustomizationProps {
207
211
  /**
208
212
  * The field names of the Bullets and Numbering dialog, for `BulletsAndNumberingDialog.Field`:
209
213
  * the fields of a whole tab (`bullet`, `number`), or one field, named as its input: `style`,
210
- * `char`, `font`, `sizePercent`, and `color` on the Bulleted tab; `numberStyle`, `numberSizePercent`,
211
- * `numberColor`, and `startAt` on the Numbered tab. @public
214
+ * `char`, `font`, `picture`, `sizePercent`, and `color` on the Bulleted tab; `numberStyle`,
215
+ * `numberSizePercent`, `numberColor`, and `startAt` on the Numbered tab. @public
212
216
  */
213
- type BulletsAndNumberingDialogFieldName = 'bullet' | 'number' | 'style' | 'char' | 'font' | 'sizePercent' | 'color' | 'numberStyle' | 'numberSizePercent' | 'numberColor' | 'startAt';
217
+ type BulletsAndNumberingDialogFieldName = 'bullet' | 'number' | 'style' | 'char' | 'font' | 'picture' | 'sizePercent' | 'color' | 'numberStyle' | 'numberSizePercent' | 'numberColor' | 'startAt';
214
218
  /** The Bullets and Numbering draft and its actions, for a host's own field. @public */
215
219
  type UseBulletsAndNumberingDialogReturn = UseDialogReturn<BulletsDialogFields>;
216
220
  declare function BulletsAndNumberingDialogRoot({ open, onClose, className, style, preset, children, }: BulletsAndNumberingDialogProps): ReactNode;
@@ -329,6 +333,54 @@ declare const ParagraphDialog: typeof ParagraphDialogRoot & {
329
333
  Cancel: (props: DialogPartProps) => ReactNode;
330
334
  };
331
335
 
336
+ /** The draft of the Equation dialog. @public */
337
+ interface EquationDialogFields {
338
+ /** The linear form of the equation, such as `x=(-b\pm\sqrt(b^2-4ac))/(2a)`. */
339
+ readonly linear: string;
340
+ }
341
+ /** The Equation draft and its actions. @public */
342
+ type UseEquationDialogReturn = UseDialogReturn<EquationDialogFields>;
343
+ /** The field names of the Equation dialog, for `EquationDialog.Field`. @public */
344
+ type EquationDialogFieldName = 'gallery' | 'linear';
345
+ /** Props for `PptxEditor.EquationDialog`. @public */
346
+ interface EquationDialogProps extends DialogCustomizationProps {
347
+ /** Whether the dialog is shown. The host owns this state. */
348
+ readonly open: boolean;
349
+ /** Called on Cancel, Escape, a click on the backdrop, and after OK. */
350
+ readonly onClose: () => void;
351
+ }
352
+ declare function EquationDialogRoot(props: EquationDialogProps): ReactNode;
353
+ /**
354
+ * Read the draft of the enclosing Equation dialog, for a host's own field inside it. It does
355
+ * not open the dialog: `useEditorDialog('equation').open()` does. @public
356
+ */
357
+ declare function useEquationDialog(): UseEquationDialogReturn;
358
+ /**
359
+ * Insert Equation and Edit Equation: a gallery of common equations and the linear form, with
360
+ * replaceable parts (`Header`, `Title`, `Body`, `Footer`, `Field`, `Error`, `Apply`, `Cancel`).
361
+ *
362
+ * @example
363
+ * ```tsx
364
+ * <PptxEditor.EquationDialog {...props}>
365
+ * <PptxEditor.EquationDialog.Field name="gallery" hidden />
366
+ * </PptxEditor.EquationDialog>
367
+ * ```
368
+ *
369
+ * @public
370
+ */
371
+ declare const EquationDialog: typeof EquationDialogRoot & {
372
+ Header: (props: DialogPartProps) => ReactNode;
373
+ Title: (props: DialogPartProps) => ReactNode;
374
+ Body: (props: DialogPartProps) => ReactNode;
375
+ Footer: (props: DialogPartProps) => ReactNode;
376
+ Field: (props: DialogPartProps & {
377
+ readonly name: EquationDialogFieldName;
378
+ }) => ReactNode;
379
+ Error: (props: DialogPartProps) => ReactNode;
380
+ Apply: (props: DialogPartProps) => ReactNode;
381
+ Cancel: (props: DialogPartProps) => ReactNode;
382
+ };
383
+
332
384
  /** The draft of the Format Picture dialog, in inches, degrees, and percent. @public */
333
385
  interface ImagePropertiesDialogFields {
334
386
  /** Width in inches, on the slide (`SelectedImageState.widthEmu`). */
@@ -462,7 +514,7 @@ interface UseBackgroundDialogReturn extends UseDialogReturn<BackgroundDialogFiel
462
514
  * The field names of the Background dialog, for `BackgroundDialog.Field`: one per fill kind
463
515
  * (`SlideBackground['kind']`), and Apply to all slides. @public
464
516
  */
465
- type BackgroundDialogFieldName = 'solid' | 'gradient' | 'picture' | 'allSlides';
517
+ type BackgroundDialogFieldName = 'solid' | 'gradient' | 'pattern' | 'picture' | 'allSlides';
466
518
  /** Props for `PptxEditor.BackgroundDialog`. @public */
467
519
  interface BackgroundDialogProps extends DialogCustomizationProps {
468
520
  /** Whether the dialog is shown. The host owns this state. */
@@ -510,6 +562,8 @@ declare const BackgroundDialog: typeof BackgroundDialogRoot & {
510
562
  interface PageSetupDialogFields {
511
563
  /** The chrome theme the appearance choice shows. */
512
564
  readonly theme: 'light' | 'dark';
565
+ /** The slide size: a preset, the width and height in inches, and whether content scales. */
566
+ readonly slideSize: SlideSizeFields;
513
567
  }
514
568
  /** The Page setup draft and its actions. @public */
515
569
  type UsePageSetupDialogReturn = UseDialogReturn<PageSetupDialogFields>;
@@ -1126,6 +1180,12 @@ interface PptxEditorPopups {
1126
1180
  * DOCX Editor's `imageProperties`. `false` turns it off; `setImageProperties` keeps working.
1127
1181
  */
1128
1182
  imageProperties?: PptxEditorPopup<ImagePropertiesDialogProps>;
1183
+ /**
1184
+ * Insert > Equation: a gallery and the linear form of an equation, which inserts an equation
1185
+ * or edits the selected one. `false` turns it off; `insertEquation` and `setEquation` keep
1186
+ * working from the API.
1187
+ */
1188
+ equation?: PptxEditorPopup<EquationDialogProps>;
1129
1189
  /**
1130
1190
  * The menu of a section header in the slide rail and in the slide sorter (Rename, Remove,
1131
1191
  * Move, Collapse all). A callback renders the host's menu, or `SectionContextMenu` with its
@@ -1134,7 +1194,7 @@ interface PptxEditorPopups {
1134
1194
  sectionContextMenu?: PptxEditorPopup<SectionContextMenuProps>;
1135
1195
  }
1136
1196
  /** The modal dialogs the registry mounts and `useEditorDialog` opens. @public */
1137
- type PptxEditorDialogKey = 'pageSetup' | 'background' | 'paragraph' | 'font' | 'bulletsAndNumbering' | 'columns' | 'imageAltText' | 'imageProperties';
1197
+ type PptxEditorDialogKey = 'pageSetup' | 'background' | 'paragraph' | 'font' | 'bulletsAndNumbering' | 'columns' | 'imageAltText' | 'imageProperties' | 'equation';
1138
1198
  /** What `useEditorDialog` returns. @public */
1139
1199
  interface UseEditorDialogReturn {
1140
1200
  /**
@@ -1207,6 +1267,18 @@ interface PptxEditorRootProps {
1207
1267
  * once, when the editor is created.
1208
1268
  */
1209
1269
  readonly autoCorrect?: boolean;
1270
+ /**
1271
+ * Reads the DrawingML clipboard package from the system clipboard, for a desktop host that
1272
+ * can. A paste of copied shapes from another application then pastes editable shapes, not
1273
+ * their picture. See `PptxEditorOptions.readClipboardDrawing`. Read once, when the editor is
1274
+ * created.
1275
+ */
1276
+ readonly readClipboardDrawing?: ClipboardDrawingReader;
1277
+ /**
1278
+ * The author of later comments and replies, as DOCX Editor's `author` prop. A change applies
1279
+ * without a remount (`setAuthor`); existing comments keep their authors.
1280
+ */
1281
+ readonly author?: string;
1210
1282
  /** Customize the dialogs the editor mounts. Set an entry to `false` to turn one off. */
1211
1283
  readonly popups?: PptxEditorPopups;
1212
1284
  /**
@@ -1763,6 +1835,10 @@ interface ToolbarNamedParts {
1763
1835
  readonly Shapes: ToolbarSlotPartComponent;
1764
1836
  /** `insert.image`. */
1765
1837
  readonly ImageInsert: ToolbarPartComponent;
1838
+ /** `insert.chart`: the chart types; a pick inserts a chart and opens the Chart tab. */
1839
+ readonly ChartInsert: ToolbarSlotPartComponent;
1840
+ /** `insert.equation`: opens the Equation dialog. */
1841
+ readonly Equation: ToolbarPartComponent;
1766
1842
  /** `shape.fill`. */
1767
1843
  readonly ShapeFill: ToolbarColorSplitComponent;
1768
1844
  /** `shape.lineColor`. */
@@ -1779,6 +1855,8 @@ interface ToolbarNamedParts {
1779
1855
  readonly ShapeStyles: ToolbarSlotPartComponent;
1780
1856
  /** `shape.effects`. */
1781
1857
  readonly ShapeEffects: ToolbarSlotPartComponent;
1858
+ /** `shape.textEffects`. */
1859
+ readonly TextEffects: ToolbarSlotPartComponent;
1782
1860
  /** `shape.properties`. */
1783
1861
  readonly FormatShape: ToolbarPartComponent;
1784
1862
  /** `format.painter`. */
@@ -1865,6 +1943,20 @@ interface ToolbarNamedParts {
1865
1943
  readonly ImageCropFit: ToolbarPartComponent;
1866
1944
  /** `image.properties`. */
1867
1945
  readonly ImageProperties: ToolbarPartComponent;
1946
+ /** `chart.editData`. */
1947
+ readonly ChartEditData: ToolbarPartComponent;
1948
+ /** `diagram.editText`. */
1949
+ readonly DiagramEditText: ToolbarPartComponent;
1950
+ /** `diagram.addAfter`. */
1951
+ readonly DiagramAddAfter: ToolbarPartComponent;
1952
+ /** `diagram.addBefore`. */
1953
+ readonly DiagramAddBefore: ToolbarPartComponent;
1954
+ /** `diagram.addBelow`. */
1955
+ readonly DiagramAddBelow: ToolbarPartComponent;
1956
+ /** `diagram.delete`. */
1957
+ readonly DiagramDelete: ToolbarPartComponent;
1958
+ /** `review.addComment`. */
1959
+ readonly AddComment: ToolbarPartComponent;
1868
1960
  /** `table.insert`. */
1869
1961
  readonly TableInsert: ToolbarPartComponent;
1870
1962
  /** `table.style`. */
@@ -1915,6 +2007,42 @@ interface ToolbarNamedParts {
1915
2007
  readonly TableCellMargins: ToolbarSlotPartComponent;
1916
2008
  }
1917
2009
 
2010
+ /** @jsxImportSource react */
2011
+ /** Props of `SelectionPane`. @public */
2012
+ interface SelectionPaneProps {
2013
+ /** A class name added to the pane. */
2014
+ readonly className?: string;
2015
+ }
2016
+ /**
2017
+ * The selection pane: select, show or hide, rename, and reorder the elements of the current
2018
+ * slide. Render it inside the editor root, or open the side panel's **Selection** tab. @public
2019
+ */
2020
+ declare function SelectionPane(props?: SelectionPaneProps): react.JSX.Element;
2021
+
2022
+ /** Props of `SidePanel`. The host shows or hides the panel by rendering it. @public */
2023
+ interface SidePanelProps {
2024
+ /** Shows a close button that calls it. */
2025
+ readonly onClose?: () => void;
2026
+ /** A class name added to the panel. */
2027
+ readonly className?: string;
2028
+ /** The panel's width in CSS pixels. */
2029
+ readonly paneWidth?: number;
2030
+ /** Inline styles for the panel; a `width` here wins over `paneWidth`. */
2031
+ readonly style?: CSSProperties;
2032
+ /** The tab that shows. Set it with `onTabChange` to control the tab; omit it to start on Format. */
2033
+ readonly tab?: SidePanelTab;
2034
+ /** Called with the tab the user picks. */
2035
+ readonly onTabChange?: (tab: SidePanelTab) => void;
2036
+ /**
2037
+ * Content that replaces a tab's packaged pane, by tab. The **Comments** tab has no packaged
2038
+ * pane: pass the comments pane of `@pptx-editor.dev/pro/react` as `panes.comments`. Without
2039
+ * it, the tab says that comments are kept when you save.
2040
+ */
2041
+ readonly panes?: Partial<Record<SidePanelTab, ReactNode>>;
2042
+ }
2043
+ /** The side panel: Format · Chart Data · Diagram · Selection · Animations · Comments. `panes` fills a tab. @public */
2044
+ declare function SidePanel({ onClose, className, paneWidth, style, tab: shown, onTabChange, panes, }: SidePanelProps): react.JSX.Element;
2045
+
1918
2046
  /**
1919
2047
  * Props of `NotesPane`: the pane props, without a width (the notes take the slide's width),
1920
2048
  * and the format buttons. @public
@@ -1933,7 +2061,7 @@ interface NotesPaneProps extends Omit<PaneProps, 'paneWidth'> {
1933
2061
  * pointer goes down anywhere else, when the current slide changes, and before a format or an
1934
2062
  * undo. @public
1935
2063
  */
1936
- declare function NotesPane(props?: NotesPaneProps): react.JSX.Element;
2064
+ declare function NotesPane(props?: NotesPaneProps): react.JSX.Element | null;
1937
2065
 
1938
2066
  /**
1939
2067
  * Props of the editor's panes, after DOCX Editor's `Navigation` (`open`, `onOpenChange`,
@@ -1987,19 +2115,6 @@ interface ZoomPillProps {
1987
2115
  }
1988
2116
  /** The zoom pill (`– 100% ▾ +`). @public */
1989
2117
  declare function ZoomPill({ className }?: ZoomPillProps): react.JSX.Element;
1990
- /** Props of `SidePanel`. The host shows or hides the panel by rendering it. @public */
1991
- interface SidePanelProps {
1992
- /** Shows a close button that calls it. */
1993
- readonly onClose?: () => void;
1994
- /** A class name added to the panel. */
1995
- readonly className?: string;
1996
- /** The panel's width in CSS pixels. */
1997
- readonly paneWidth?: number;
1998
- /** Inline styles for the panel; a `width` here wins over `paneWidth`. */
1999
- readonly style?: CSSProperties;
2000
- }
2001
- /** The side panel: Format · Comments. @public */
2002
- declare function SidePanel({ onClose, className, paneWidth, style }: SidePanelProps): react.JSX.Element;
2003
2118
 
2004
2119
  /** Props of every named part of the slide rail's action row. @public */
2005
2120
  interface SlideRailPartProps {
@@ -2082,6 +2197,12 @@ interface PptxEditorOpenFailureProps {
2082
2197
  readonly message?: ReactNode | ((failure: DocumentOpenFailure) => ReactNode);
2083
2198
  /** Show the stable error code under the message. Defaults to `true`. */
2084
2199
  readonly showCode?: boolean;
2200
+ /**
2201
+ * Show **Copy details**, which copies `openFailureReport(failure)`: the code, the reason,
2202
+ * the editor version, the browser, and the time, for a support request. It holds no file
2203
+ * content. Defaults to `true`.
2204
+ */
2205
+ readonly showCopy?: boolean;
2085
2206
  /** Your own buttons, before **Close**. The notice shows no contact of its own. */
2086
2207
  readonly actions?: (context: OpenFailureContext) => ReactNode;
2087
2208
  /** The label of the **Close** button. Defaults to the translated `openFailure.close`. */
@@ -2207,8 +2328,8 @@ interface StatusBarNotesProps extends StatusBarPartProps {
2207
2328
  /** The Notes button: shows or hides the speaker notes (`useNotesPane`). @public */
2208
2329
  declare function StatusBarNotes({ className, hidden, icon, asChild, children, }: StatusBarNotesProps): ReactNode;
2209
2330
  /**
2210
- * The view buttons: the editor's view switch (`view.presentationView`: Normal and Slide
2211
- * Sorter), the same control as the default editor's status area. @public
2331
+ * The view buttons: the editor's view switch (`view.presentationView`: Normal, Slide
2332
+ * Sorter, and Slide Master), the same control as the default editor's status area. @public
2212
2333
  */
2213
2334
  declare function StatusBarViews({ className, hidden }: StatusBarPartProps): ReactNode;
2214
2335
  /** Zoom out, the zoom level with its menu, and zoom in: the editor's `ZoomPill`. @public */
@@ -2532,11 +2653,14 @@ interface UsePptxSourceResult {
2532
2653
  * ```
2533
2654
  *
2534
2655
  * Eager fonts (a value, a promise, or a zero-argument loader) hold the deck back until they
2535
- * settle, so the slides lay out once. An on-demand resolver (`packagedFonts()`,
2656
+ * settle, so the slides lay out once. They hold it for at most 2 seconds: fonts that settle
2657
+ * later apply, and the slides lay out again. An on-demand resolver (`packagedFonts()`,
2536
2658
  * `googleFonts()`) needs the parsed deck, so the bytes go through at once and the slides lay
2537
2659
  * out again when the faces arrive. A font failure never fails the deck.
2538
2660
  *
2539
- * A URL is fetched with the browser's `fetch`, as written. Check a URL from user input first.
2661
+ * A URL is fetched with the browser's `fetch`, as written. Check a URL from user input first. A URL
2662
+ * that sends no bytes for 10 seconds fails with an error, and a slow download that keeps
2663
+ * sending bytes finishes.
2540
2664
  *
2541
2665
  * @public
2542
2666
  */
@@ -2601,7 +2725,7 @@ interface FillControlProps {
2601
2725
  }
2602
2726
  /**
2603
2727
  * Fill color: one menu with the theme and standard colors, Transparent, gradient presets from
2604
- * the theme colors, and a custom gradient dialog. @public
2728
+ * the theme colors, a custom gradient dialog, a pattern dialog, and a picture. @public
2605
2729
  */
2606
2730
  declare function FillControl({ slot, control }: FillControlProps): react.JSX.Element;
2607
2731
  /** Props for `PptxEditor.GradientDialog`. @public */
@@ -2636,6 +2760,22 @@ interface LineMenuControlProps {
2636
2760
  /** The line tool and the line start and end menus, with each option drawn. @public */
2637
2761
  declare function LineMenuControl({ slot, control }: LineMenuControlProps): react.JSX.Element | null;
2638
2762
 
2763
+ /** Props for `PptxEditor.PatternDialog`. @public */
2764
+ interface PatternDialogProps {
2765
+ /** Whether the dialog shows. */
2766
+ readonly open: boolean;
2767
+ /** The pattern the dialog starts from, or null for a 50% pattern in `base` on white. */
2768
+ readonly initial: PatternFill | null;
2769
+ /** The foreground of a new pattern, as `#RRGGBB`. */
2770
+ readonly base?: string;
2771
+ /** Called when the dialog closes, applied or not. */
2772
+ readonly onClose: () => void;
2773
+ /** Called with the pattern the person applied. */
2774
+ readonly onApply: (pattern: PatternFill) => void;
2775
+ }
2776
+ /** The pattern fill dialog: a preset, its two colors, and a preview. @public */
2777
+ declare function PatternDialog({ open, initial, base, onClose, onApply }: PatternDialogProps): react.JSX.Element;
2778
+
2639
2779
  /**
2640
2780
  * The deck's slide layouts (`EditorSnapshot.layouts`), in the order the galleries list them,
2641
2781
  * reference-stable while they do not change. For a host's own layout picker. @public
@@ -2776,6 +2916,23 @@ interface UseBulletFormatReturn {
2776
2916
  */
2777
2917
  declare function useBulletFormat(): UseBulletFormatReturn;
2778
2918
 
2919
+ /**
2920
+ * The review authors of the open deck, in slot order (`getReviewAuthors`): every comment author
2921
+ * by first appearance, then the author of new comments, each with the color the comment markers,
2922
+ * the text bands, and the comments pane draw them in. Renders again only when a slot changes.
2923
+ * Use it for a legend or for your own comment UI.
2924
+ *
2925
+ * ```tsx
2926
+ * const authors = useReviewAuthors();
2927
+ * authors.map(({ author, color }) => (
2928
+ * <li key={author} style={{ borderColor: color }}>{author}</li>
2929
+ * ));
2930
+ * ```
2931
+ *
2932
+ * @public
2933
+ */
2934
+ declare function useReviewAuthors(): readonly ReviewAuthorInfo[];
2935
+
2779
2936
  /**
2780
2937
  * What `useFonts` returns: one marked resolver for the component's life. Named for the
2781
2938
  * adapters' composable parity check (PPTX Editor addition).
@@ -3221,6 +3378,10 @@ interface PptxEditorProps {
3221
3378
  readonly modules?: readonly EditorModule[];
3222
3379
  /** AutoCorrect while typing, as on `PptxEditor.Root`. Read at mount. */
3223
3380
  readonly autoCorrect?: boolean;
3381
+ /** Reads copied shapes from the system clipboard, as on `PptxEditor.Root`. Read at mount. */
3382
+ readonly readClipboardDrawing?: ClipboardDrawingReader;
3383
+ /** The author of later comments and replies, as on `PptxEditor.Root`. */
3384
+ readonly author?: string;
3224
3385
  /**
3225
3386
  * The notice for a file that does not open (`PptxEditor.OpenFailure`). An object is
3226
3387
  * `PptxEditorOpenFailureProps`, passed straight through. `false` removes the notice, for a host that
@@ -3284,6 +3445,7 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
3284
3445
  NotesPane: typeof NotesPane;
3285
3446
  ZoomPill: typeof ZoomPill;
3286
3447
  SidePanel: typeof SidePanel;
3448
+ SelectionPane: typeof SelectionPane;
3287
3449
  FontNotice: (props: FontNoticeProps) => ReactNode;
3288
3450
  EditNotice: (props: EditNoticeProps) => ReactNode;
3289
3451
  OpenFailure: (props: PptxEditorOpenFailureProps) => ReactNode;
@@ -3337,6 +3499,18 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
3337
3499
  Apply: (props: DialogPartProps) => ReactNode;
3338
3500
  Cancel: (props: DialogPartProps) => ReactNode;
3339
3501
  };
3502
+ EquationDialog: ((props: EquationDialogProps) => ReactNode) & {
3503
+ Header: (props: DialogPartProps) => ReactNode;
3504
+ Title: (props: DialogPartProps) => ReactNode;
3505
+ Body: (props: DialogPartProps) => ReactNode;
3506
+ Footer: (props: DialogPartProps) => ReactNode;
3507
+ Field: (props: DialogPartProps & {
3508
+ readonly name: EquationDialogFieldName;
3509
+ }) => ReactNode;
3510
+ Error: (props: DialogPartProps) => ReactNode;
3511
+ Apply: (props: DialogPartProps) => ReactNode;
3512
+ Cancel: (props: DialogPartProps) => ReactNode;
3513
+ };
3340
3514
  ParagraphDialog: (({ open, onClose, className, style, preset, children, }: ParagraphDialogProps) => ReactNode) & {
3341
3515
  Header: (props: DialogPartProps) => ReactNode;
3342
3516
  Title: (props: DialogPartProps) => ReactNode;
@@ -3394,5 +3568,5 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
3394
3568
  StatusBar: StatusBarNamespace;
3395
3569
  };
3396
3570
 
3397
- export { BackgroundDialog, BulletsAndNumberingDialog, ColumnsDialog, ContextMenu, EditNotice, FillControl, FindBar, FontDialog, FontNotice, GradientDialog, HyperLink, HyperlinkPopup, Icon, ImageAltTextDialog, ImagePropertiesDialog, LayoutControl, LayoutGallery, LineGlyph, LineMenuControl, Loading, LoadingSpinner, MenuEntry, MenuGroup, MenuItem, MenuRow, MenuSeparator, MenuSlotItem, MenuSubmenu, MenuTableGrid, NewSlideControl, NotesPane, OpenFailure, PageSetupDialog, ParagraphDialog, Popover, PptxEditor, PptxEditorContent, PptxEditorContext, PptxEditorContextMenu, PptxEditorMenu, PptxEditorRibbon, PptxEditorRoot, PptxEditorStatusBar, PptxEditorViewport, RailContextMenu, RibbonTab, SectionContextMenu, ShapeGalleryControl, ShapeGrid, ShapeIcon, ShapeStyleGallery, SidePanel, SlideRail, SlideRailAddSlide, SlideRailChooseLayout, SlideRailCollapse, SlideRailDelete, SlideRailDuplicate, SlideRailExpand, SlideRailMoveEarlier, SlideRailMoveLater, SlideSorter, Slideshow, SlideshowContext, StatusBarNotes, StatusBarSlideNumber, StatusBarViews, StatusBarZoom, ToolButton, Toolbar, ToolbarAction, ToolbarContext, ToolbarControl, ToolbarGroup, ToolbarSeparator, ToolbarSlot, ZoomPill, definePopup, keepFocus, rejectionMessage, requestFindBar, requestSectionRename, translatorFor, useBackgroundDialog, useBulletFormat, useBulletsAndNumberingDialog, useChromeTranslate, useColumnsDialog, useContextMenuRequest, useContextMenuTarget, useDocumentSearch, useEditorCaret, useEditorColorMode, useEditorCommand, useEditorDialog, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontDialog, useFontFamily, useFontFormat, useFonts, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useImageAltTextDialog, useImagePropertiesDialog, useNotesPane, useOpenFailure, usePageSetupDialog, useParagraphDialog, useParagraphFormat, usePptxEditor, usePptxSource, useScopeClassName, useSlideLayouts, useSlideshow, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
3398
- export type { BackgroundDialogFieldName, BackgroundDialogFields, BackgroundDialogProps, BulletsAndNumberingDialogFieldName, BulletsAndNumberingDialogProps, ColumnsDialogFieldName, ColumnsDialogProps, ContextMenuNamedRows, ContextMenuNamespace, ContextMenuPoint, ContextMenuProps, ContextMenuRequest, DefinePopupOptions, DialogCustomizationProps, DialogPartProps, EditNoticeProps, FillControlProps, FindBarProps, FindPopupProps, FontDialogFieldName, FontDialogProps, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontNoticeProps, FontsInput, GradientDialogProps, HyperLinkActionProps, HyperLinkNamespace, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupProps, IconProps, ImageAltTextDialogFieldName, ImageAltTextDialogFields, ImageAltTextDialogProps, ImagePropertiesDialogFieldName, ImagePropertiesDialogFields, ImagePropertiesDialogProps, LayoutControlProps, LayoutGalleryProps, LineGlyphProps, LineMenuControlProps, LoadingComponent, LoadingProps, LoadingSpinnerProps, MenuEntryProps, MenuGroupProps, MenuItemProps, MenuNamedRows, MenuNamespace, MenuPartComponent, MenuProps, MenuRowPartComponent, MenuRowPartProps, MenuRowProps, MenuSlotItemProps, MenuSubmenuProps, MenuTableGridProps, NewSlideControlProps, NotesPaneProps, OpenFailureContext, PageSetupDialogFieldName, PageSetupDialogFields, PageSetupDialogProps, PaneProps, ParagraphDialogFieldName, ParagraphDialogProps, PopoverProps, PptxEditorContentProps, PptxEditorContextMenuProps, PptxEditorDialogKey, PptxEditorOpenFailureProps, PptxEditorPopup, PptxEditorPopups, PptxEditorProps, PptxEditorRef, PptxEditorRootProps, PptxEditorToolbarNamespace, PptxEditorViewportProps, RailContextMenuProps, RailMenuState, RibbonNamespace, RibbonProps, RibbonTabProps, SectionContextMenuProps, SectionMenuState, ShapeGalleryControlProps, ShapeGridProps, ShapeIconProps, ShapeStyleGalleryProps, SidePanelProps, SlideRailNamespace, SlideRailPartProps, SlideRailProps, SlideSorterProps, StatusBarNamespace, StatusBarNotesProps, StatusBarPartProps, StatusBarProps, ToolButtonProps, ToolbarActionProps, ToolbarColorSplitComponent, ToolbarColorSplitProps, ToolbarContextValue, ToolbarControlProps, ToolbarGroupProps, ToolbarNamedParts, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarSeparatorProps, ToolbarSlotBaseProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarSlotProps, UseBackgroundDialogReturn, UseBulletFormatReturn, UseBulletsAndNumberingDialogReturn, UseColumnsDialogReturn, UseDialogReturn, UseDocumentSearchResult, UseEditorColorModeReturn, UseEditorCommandReturn, UseEditorDialogReturn, UseEditorHostDocumentReturn, UseEditorValueCommandReturn, UseFontDialogReturn, UseFontFamilyReturn, UseFontFormatReturn, UseFontsReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseImageAltTextDialogReturn, UseImagePropertiesDialogReturn, UseNotesPaneReturn, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UsePptxSourceResult, UseSlideshowReturn, UseZoomResult, ZoomPillProps };
3571
+ export { BackgroundDialog, BulletsAndNumberingDialog, ColumnsDialog, ContextMenu, EditNotice, EquationDialog, FillControl, FindBar, FontDialog, FontNotice, GradientDialog, HyperLink, HyperlinkPopup, Icon, ImageAltTextDialog, ImagePropertiesDialog, LayoutControl, LayoutGallery, LineGlyph, LineMenuControl, Loading, LoadingSpinner, MenuEntry, MenuGroup, MenuItem, MenuRow, MenuSeparator, MenuSlotItem, MenuSubmenu, MenuTableGrid, NewSlideControl, NotesPane, OpenFailure, PageSetupDialog, ParagraphDialog, PatternDialog, Popover, PptxEditor, PptxEditorContent, PptxEditorContext, PptxEditorContextMenu, PptxEditorMenu, PptxEditorRibbon, PptxEditorRoot, PptxEditorStatusBar, PptxEditorViewport, RailContextMenu, RibbonTab, SectionContextMenu, SelectionPane, ShapeGalleryControl, ShapeGrid, ShapeIcon, ShapeStyleGallery, SidePanel, SlideRail, SlideRailAddSlide, SlideRailChooseLayout, SlideRailCollapse, SlideRailDelete, SlideRailDuplicate, SlideRailExpand, SlideRailMoveEarlier, SlideRailMoveLater, SlideSorter, Slideshow, SlideshowContext, StatusBarNotes, StatusBarSlideNumber, StatusBarViews, StatusBarZoom, ToolButton, Toolbar, ToolbarAction, ToolbarContext, ToolbarControl, ToolbarGroup, ToolbarSeparator, ToolbarSlot, ZoomPill, definePopup, keepFocus, rejectionMessage, requestFindBar, requestSectionRename, translatorFor, useBackgroundDialog, useBulletFormat, useBulletsAndNumberingDialog, useChromeTranslate, useColumnsDialog, useContextMenuRequest, useContextMenuTarget, useDocumentSearch, useEditorCaret, useEditorColorMode, useEditorCommand, useEditorDialog, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useEquationDialog, useFontDialog, useFontFamily, useFontFormat, useFonts, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useImageAltTextDialog, useImagePropertiesDialog, useNotesPane, useOpenFailure, usePageSetupDialog, useParagraphDialog, useParagraphFormat, usePptxEditor, usePptxSource, useReviewAuthors, useScopeClassName, useSlideLayouts, useSlideshow, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
3572
+ export type { BackgroundDialogFieldName, BackgroundDialogFields, BackgroundDialogProps, BulletsAndNumberingDialogFieldName, BulletsAndNumberingDialogProps, ColumnsDialogFieldName, ColumnsDialogProps, ContextMenuNamedRows, ContextMenuNamespace, ContextMenuPoint, ContextMenuProps, ContextMenuRequest, DefinePopupOptions, DialogCustomizationProps, DialogPartProps, EditNoticeProps, EquationDialogFieldName, EquationDialogFields, EquationDialogProps, FillControlProps, FindBarProps, FindPopupProps, FontDialogFieldName, FontDialogProps, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontNoticeProps, FontsInput, GradientDialogProps, HyperLinkActionProps, HyperLinkNamespace, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupProps, IconProps, ImageAltTextDialogFieldName, ImageAltTextDialogFields, ImageAltTextDialogProps, ImagePropertiesDialogFieldName, ImagePropertiesDialogFields, ImagePropertiesDialogProps, LayoutControlProps, LayoutGalleryProps, LineGlyphProps, LineMenuControlProps, LoadingComponent, LoadingProps, LoadingSpinnerProps, MenuEntryProps, MenuGroupProps, MenuItemProps, MenuNamedRows, MenuNamespace, MenuPartComponent, MenuProps, MenuRowPartComponent, MenuRowPartProps, MenuRowProps, MenuSlotItemProps, MenuSubmenuProps, MenuTableGridProps, NewSlideControlProps, NotesPaneProps, OpenFailureContext, PageSetupDialogFieldName, PageSetupDialogFields, PageSetupDialogProps, PaneProps, ParagraphDialogFieldName, ParagraphDialogProps, PatternDialogProps, PopoverProps, PptxEditorContentProps, PptxEditorContextMenuProps, PptxEditorDialogKey, PptxEditorOpenFailureProps, PptxEditorPopup, PptxEditorPopups, PptxEditorProps, PptxEditorRef, PptxEditorRootProps, PptxEditorToolbarNamespace, PptxEditorViewportProps, RailContextMenuProps, RailMenuState, RibbonNamespace, RibbonProps, RibbonTabProps, SectionContextMenuProps, SectionMenuState, SelectionPaneProps, ShapeGalleryControlProps, ShapeGridProps, ShapeIconProps, ShapeStyleGalleryProps, SidePanelProps, SlideRailNamespace, SlideRailPartProps, SlideRailProps, SlideSorterProps, StatusBarNamespace, StatusBarNotesProps, StatusBarPartProps, StatusBarProps, ToolButtonProps, ToolbarActionProps, ToolbarColorSplitComponent, ToolbarColorSplitProps, ToolbarContextValue, ToolbarControlProps, ToolbarGroupProps, ToolbarNamedParts, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarSeparatorProps, ToolbarSlotBaseProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarSlotProps, UseBackgroundDialogReturn, UseBulletFormatReturn, UseBulletsAndNumberingDialogReturn, UseColumnsDialogReturn, UseDialogReturn, UseDocumentSearchResult, UseEditorColorModeReturn, UseEditorCommandReturn, UseEditorDialogReturn, UseEditorHostDocumentReturn, UseEditorValueCommandReturn, UseEquationDialogReturn, UseFontDialogReturn, UseFontFamilyReturn, UseFontFormatReturn, UseFontsReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseImageAltTextDialogReturn, UseImagePropertiesDialogReturn, UseNotesPaneReturn, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UsePptxSourceResult, UseSlideshowReturn, UseZoomResult, ZoomPillProps };