@pptx-editor.dev/react 0.3.0-canary.20261108032713.sha-58e17f1 → 0.3.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.
- package/dist/index.d.ts +138 -18
- package/dist/index.js +2715 -1087
- 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, 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, 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, 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';
|
|
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';
|
|
@@ -46,9 +46,9 @@ declare namespace HyperLinkUnlink {
|
|
|
46
46
|
var pptxHyperLinkPart: "Unlink";
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* The link's target: **Link to** (a web address, an email address, or a
|
|
50
|
-
* presentation) and its fields. Each kind writes the
|
|
51
|
-
* @public
|
|
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
52
|
*/
|
|
53
53
|
declare function HyperLinkFields({ className, hidden }: HyperLinkPartProps): react.JSX.Element | null;
|
|
54
54
|
declare namespace HyperLinkFields {
|
|
@@ -211,10 +211,10 @@ interface BulletsAndNumberingDialogProps extends DialogCustomizationProps {
|
|
|
211
211
|
/**
|
|
212
212
|
* The field names of the Bullets and Numbering dialog, for `BulletsAndNumberingDialog.Field`:
|
|
213
213
|
* the fields of a whole tab (`bullet`, `number`), or one field, named as its input: `style`,
|
|
214
|
-
* `char`, `font`, `sizePercent`, and `color` on the Bulleted tab; `numberStyle`,
|
|
215
|
-
* `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
|
|
216
216
|
*/
|
|
217
|
-
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';
|
|
218
218
|
/** The Bullets and Numbering draft and its actions, for a host's own field. @public */
|
|
219
219
|
type UseBulletsAndNumberingDialogReturn = UseDialogReturn<BulletsDialogFields>;
|
|
220
220
|
declare function BulletsAndNumberingDialogRoot({ open, onClose, className, style, preset, children, }: BulletsAndNumberingDialogProps): ReactNode;
|
|
@@ -333,6 +333,54 @@ declare const ParagraphDialog: typeof ParagraphDialogRoot & {
|
|
|
333
333
|
Cancel: (props: DialogPartProps) => ReactNode;
|
|
334
334
|
};
|
|
335
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
|
+
|
|
336
384
|
/** The draft of the Format Picture dialog, in inches, degrees, and percent. @public */
|
|
337
385
|
interface ImagePropertiesDialogFields {
|
|
338
386
|
/** Width in inches, on the slide (`SelectedImageState.widthEmu`). */
|
|
@@ -1132,6 +1180,12 @@ interface PptxEditorPopups {
|
|
|
1132
1180
|
* DOCX Editor's `imageProperties`. `false` turns it off; `setImageProperties` keeps working.
|
|
1133
1181
|
*/
|
|
1134
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>;
|
|
1135
1189
|
/**
|
|
1136
1190
|
* The menu of a section header in the slide rail and in the slide sorter (Rename, Remove,
|
|
1137
1191
|
* Move, Collapse all). A callback renders the host's menu, or `SectionContextMenu` with its
|
|
@@ -1140,7 +1194,7 @@ interface PptxEditorPopups {
|
|
|
1140
1194
|
sectionContextMenu?: PptxEditorPopup<SectionContextMenuProps>;
|
|
1141
1195
|
}
|
|
1142
1196
|
/** The modal dialogs the registry mounts and `useEditorDialog` opens. @public */
|
|
1143
|
-
type PptxEditorDialogKey = 'pageSetup' | 'background' | 'paragraph' | 'font' | 'bulletsAndNumbering' | 'columns' | 'imageAltText' | 'imageProperties';
|
|
1197
|
+
type PptxEditorDialogKey = 'pageSetup' | 'background' | 'paragraph' | 'font' | 'bulletsAndNumbering' | 'columns' | 'imageAltText' | 'imageProperties' | 'equation';
|
|
1144
1198
|
/** What `useEditorDialog` returns. @public */
|
|
1145
1199
|
interface UseEditorDialogReturn {
|
|
1146
1200
|
/**
|
|
@@ -1208,8 +1262,9 @@ interface PptxEditorRootProps {
|
|
|
1208
1262
|
*/
|
|
1209
1263
|
readonly modules?: readonly EditorModule[];
|
|
1210
1264
|
/**
|
|
1211
|
-
* AutoCorrect while typing (default `true`):
|
|
1212
|
-
*
|
|
1265
|
+
* AutoCorrect while typing (default `true`): symbols, ellipses, fractions, and lists started
|
|
1266
|
+
* by typing `1.`, `1)`, `*`, or `-` and a space. Capitals, curly quotes, dashes, and
|
|
1267
|
+
* spelling are never automatic here: keyboards and systems that offer them apply them. Read
|
|
1213
1268
|
* once, when the editor is created.
|
|
1214
1269
|
*/
|
|
1215
1270
|
readonly autoCorrect?: boolean;
|
|
@@ -1220,6 +1275,11 @@ interface PptxEditorRootProps {
|
|
|
1220
1275
|
* created.
|
|
1221
1276
|
*/
|
|
1222
1277
|
readonly readClipboardDrawing?: ClipboardDrawingReader;
|
|
1278
|
+
/**
|
|
1279
|
+
* The author of later comments and replies, as DOCX Editor's `author` prop. A change applies
|
|
1280
|
+
* without a remount (`setAuthor`); existing comments keep their authors.
|
|
1281
|
+
*/
|
|
1282
|
+
readonly author?: string;
|
|
1223
1283
|
/** Customize the dialogs the editor mounts. Set an entry to `false` to turn one off. */
|
|
1224
1284
|
readonly popups?: PptxEditorPopups;
|
|
1225
1285
|
/**
|
|
@@ -1776,6 +1836,10 @@ interface ToolbarNamedParts {
|
|
|
1776
1836
|
readonly Shapes: ToolbarSlotPartComponent;
|
|
1777
1837
|
/** `insert.image`. */
|
|
1778
1838
|
readonly ImageInsert: ToolbarPartComponent;
|
|
1839
|
+
/** `insert.chart`: the chart types; a pick inserts a chart and opens the Chart tab. */
|
|
1840
|
+
readonly ChartInsert: ToolbarSlotPartComponent;
|
|
1841
|
+
/** `insert.equation`: opens the Equation dialog. */
|
|
1842
|
+
readonly Equation: ToolbarPartComponent;
|
|
1779
1843
|
/** `shape.fill`. */
|
|
1780
1844
|
readonly ShapeFill: ToolbarColorSplitComponent;
|
|
1781
1845
|
/** `shape.lineColor`. */
|
|
@@ -1792,6 +1856,8 @@ interface ToolbarNamedParts {
|
|
|
1792
1856
|
readonly ShapeStyles: ToolbarSlotPartComponent;
|
|
1793
1857
|
/** `shape.effects`. */
|
|
1794
1858
|
readonly ShapeEffects: ToolbarSlotPartComponent;
|
|
1859
|
+
/** `shape.textEffects`. */
|
|
1860
|
+
readonly TextEffects: ToolbarSlotPartComponent;
|
|
1795
1861
|
/** `shape.properties`. */
|
|
1796
1862
|
readonly FormatShape: ToolbarPartComponent;
|
|
1797
1863
|
/** `format.painter`. */
|
|
@@ -1878,6 +1944,20 @@ interface ToolbarNamedParts {
|
|
|
1878
1944
|
readonly ImageCropFit: ToolbarPartComponent;
|
|
1879
1945
|
/** `image.properties`. */
|
|
1880
1946
|
readonly ImageProperties: ToolbarPartComponent;
|
|
1947
|
+
/** `chart.editData`. */
|
|
1948
|
+
readonly ChartEditData: ToolbarPartComponent;
|
|
1949
|
+
/** `diagram.editText`. */
|
|
1950
|
+
readonly DiagramEditText: ToolbarPartComponent;
|
|
1951
|
+
/** `diagram.addAfter`. */
|
|
1952
|
+
readonly DiagramAddAfter: ToolbarPartComponent;
|
|
1953
|
+
/** `diagram.addBefore`. */
|
|
1954
|
+
readonly DiagramAddBefore: ToolbarPartComponent;
|
|
1955
|
+
/** `diagram.addBelow`. */
|
|
1956
|
+
readonly DiagramAddBelow: ToolbarPartComponent;
|
|
1957
|
+
/** `diagram.delete`. */
|
|
1958
|
+
readonly DiagramDelete: ToolbarPartComponent;
|
|
1959
|
+
/** `review.addComment`. */
|
|
1960
|
+
readonly AddComment: ToolbarPartComponent;
|
|
1881
1961
|
/** `table.insert`. */
|
|
1882
1962
|
readonly TableInsert: ToolbarPartComponent;
|
|
1883
1963
|
/** `table.style`. */
|
|
@@ -1954,9 +2034,15 @@ interface SidePanelProps {
|
|
|
1954
2034
|
readonly tab?: SidePanelTab;
|
|
1955
2035
|
/** Called with the tab the user picks. */
|
|
1956
2036
|
readonly onTabChange?: (tab: SidePanelTab) => void;
|
|
2037
|
+
/**
|
|
2038
|
+
* Content that replaces a tab's packaged pane, by tab. The **Comments** tab has no packaged
|
|
2039
|
+
* pane: pass the comments pane of `@pptx-editor.dev/pro/react` as `panes.comments`. Without
|
|
2040
|
+
* it, the tab says that comments are kept when you save.
|
|
2041
|
+
*/
|
|
2042
|
+
readonly panes?: Partial<Record<SidePanelTab, ReactNode>>;
|
|
1957
2043
|
}
|
|
1958
|
-
/** The side panel: Format · Selection · Comments. @public */
|
|
1959
|
-
declare function SidePanel({ onClose, className, paneWidth, style, tab: shown, onTabChange, }: SidePanelProps): react.JSX.Element;
|
|
2044
|
+
/** The side panel: Format · Chart Data · Diagram · Selection · Animations · Comments. `panes` fills a tab. @public */
|
|
2045
|
+
declare function SidePanel({ onClose, className, paneWidth, style, tab: shown, onTabChange, panes, }: SidePanelProps): react.JSX.Element;
|
|
1960
2046
|
|
|
1961
2047
|
/**
|
|
1962
2048
|
* Props of `NotesPane`: the pane props, without a width (the notes take the slide's width),
|
|
@@ -1976,7 +2062,7 @@ interface NotesPaneProps extends Omit<PaneProps, 'paneWidth'> {
|
|
|
1976
2062
|
* pointer goes down anywhere else, when the current slide changes, and before a format or an
|
|
1977
2063
|
* undo. @public
|
|
1978
2064
|
*/
|
|
1979
|
-
declare function NotesPane(props?: NotesPaneProps): react.JSX.Element;
|
|
2065
|
+
declare function NotesPane(props?: NotesPaneProps): react.JSX.Element | null;
|
|
1980
2066
|
|
|
1981
2067
|
/**
|
|
1982
2068
|
* Props of the editor's panes, after DOCX Editor's `Navigation` (`open`, `onOpenChange`,
|
|
@@ -2568,11 +2654,14 @@ interface UsePptxSourceResult {
|
|
|
2568
2654
|
* ```
|
|
2569
2655
|
*
|
|
2570
2656
|
* Eager fonts (a value, a promise, or a zero-argument loader) hold the deck back until they
|
|
2571
|
-
* settle, so the slides lay out once.
|
|
2657
|
+
* settle, so the slides lay out once. They hold it for at most 2 seconds: fonts that settle
|
|
2658
|
+
* later apply, and the slides lay out again. An on-demand resolver (`packagedFonts()`,
|
|
2572
2659
|
* `googleFonts()`) needs the parsed deck, so the bytes go through at once and the slides lay
|
|
2573
2660
|
* out again when the faces arrive. A font failure never fails the deck.
|
|
2574
2661
|
*
|
|
2575
|
-
* A URL is fetched with the browser's `fetch`, as written. Check a URL from user input first.
|
|
2662
|
+
* A URL is fetched with the browser's `fetch`, as written. Check a URL from user input first. A URL
|
|
2663
|
+
* that sends no bytes for 10 seconds fails with an error, and a slow download that keeps
|
|
2664
|
+
* sending bytes finishes.
|
|
2576
2665
|
*
|
|
2577
2666
|
* @public
|
|
2578
2667
|
*/
|
|
@@ -2828,6 +2917,23 @@ interface UseBulletFormatReturn {
|
|
|
2828
2917
|
*/
|
|
2829
2918
|
declare function useBulletFormat(): UseBulletFormatReturn;
|
|
2830
2919
|
|
|
2920
|
+
/**
|
|
2921
|
+
* The review authors of the open deck, in slot order (`getReviewAuthors`): every comment author
|
|
2922
|
+
* by first appearance, then the author of new comments, each with the color the comment markers,
|
|
2923
|
+
* the text bands, and the comments pane draw them in. Renders again only when a slot changes.
|
|
2924
|
+
* Use it for a legend or for your own comment UI.
|
|
2925
|
+
*
|
|
2926
|
+
* ```tsx
|
|
2927
|
+
* const authors = useReviewAuthors();
|
|
2928
|
+
* authors.map(({ author, color }) => (
|
|
2929
|
+
* <li key={author} style={{ borderColor: color }}>{author}</li>
|
|
2930
|
+
* ));
|
|
2931
|
+
* ```
|
|
2932
|
+
*
|
|
2933
|
+
* @public
|
|
2934
|
+
*/
|
|
2935
|
+
declare function useReviewAuthors(): readonly ReviewAuthorInfo[];
|
|
2936
|
+
|
|
2831
2937
|
/**
|
|
2832
2938
|
* What `useFonts` returns: one marked resolver for the component's life. Named for the
|
|
2833
2939
|
* adapters' composable parity check (PPTX Editor addition).
|
|
@@ -3275,6 +3381,8 @@ interface PptxEditorProps {
|
|
|
3275
3381
|
readonly autoCorrect?: boolean;
|
|
3276
3382
|
/** Reads copied shapes from the system clipboard, as on `PptxEditor.Root`. Read at mount. */
|
|
3277
3383
|
readonly readClipboardDrawing?: ClipboardDrawingReader;
|
|
3384
|
+
/** The author of later comments and replies, as on `PptxEditor.Root`. */
|
|
3385
|
+
readonly author?: string;
|
|
3278
3386
|
/**
|
|
3279
3387
|
* The notice for a file that does not open (`PptxEditor.OpenFailure`). An object is
|
|
3280
3388
|
* `PptxEditorOpenFailureProps`, passed straight through. `false` removes the notice, for a host that
|
|
@@ -3392,6 +3500,18 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
|
|
|
3392
3500
|
Apply: (props: DialogPartProps) => ReactNode;
|
|
3393
3501
|
Cancel: (props: DialogPartProps) => ReactNode;
|
|
3394
3502
|
};
|
|
3503
|
+
EquationDialog: ((props: EquationDialogProps) => ReactNode) & {
|
|
3504
|
+
Header: (props: DialogPartProps) => ReactNode;
|
|
3505
|
+
Title: (props: DialogPartProps) => ReactNode;
|
|
3506
|
+
Body: (props: DialogPartProps) => ReactNode;
|
|
3507
|
+
Footer: (props: DialogPartProps) => ReactNode;
|
|
3508
|
+
Field: (props: DialogPartProps & {
|
|
3509
|
+
readonly name: EquationDialogFieldName;
|
|
3510
|
+
}) => ReactNode;
|
|
3511
|
+
Error: (props: DialogPartProps) => ReactNode;
|
|
3512
|
+
Apply: (props: DialogPartProps) => ReactNode;
|
|
3513
|
+
Cancel: (props: DialogPartProps) => ReactNode;
|
|
3514
|
+
};
|
|
3395
3515
|
ParagraphDialog: (({ open, onClose, className, style, preset, children, }: ParagraphDialogProps) => ReactNode) & {
|
|
3396
3516
|
Header: (props: DialogPartProps) => ReactNode;
|
|
3397
3517
|
Title: (props: DialogPartProps) => ReactNode;
|
|
@@ -3449,5 +3569,5 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
|
|
|
3449
3569
|
StatusBar: StatusBarNamespace;
|
|
3450
3570
|
};
|
|
3451
3571
|
|
|
3452
|
-
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, 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, useFontDialog, useFontFamily, useFontFormat, useFonts, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useImageAltTextDialog, useImagePropertiesDialog, useNotesPane, useOpenFailure, usePageSetupDialog, useParagraphDialog, useParagraphFormat, usePptxEditor, usePptxSource, useScopeClassName, useSlideLayouts, useSlideshow, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
|
|
3453
|
-
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, 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, UseFontDialogReturn, UseFontFamilyReturn, UseFontFormatReturn, UseFontsReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseImageAltTextDialogReturn, UseImagePropertiesDialogReturn, UseNotesPaneReturn, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UsePptxSourceResult, UseSlideshowReturn, UseZoomResult, ZoomPillProps };
|
|
3572
|
+
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 };
|
|
3573
|
+
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 };
|