@pptx-editor.dev/react 0.1.0 → 0.3.0-canary.20261108032713.sha-58e17f1
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.d.ts +110 -26
- package/dist/index.js +2934 -1885
- package/package.json +3 -3
- package/dist/index.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2026
|
|
189
|
+
Copyright 2026 Eigenpal, Inc.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -245,7 +245,7 @@ const fonts = useFonts(packagedFonts());
|
|
|
245
245
|
<PptxEditor document={bytes} fonts={fonts} onFontError={(error) => report(error)} />;
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
See [Fonts](
|
|
248
|
+
See [Fonts](https://github.com/eigenpal/pptx-editor/blob/main/docs/site/content/customization/fonts.mdx).
|
|
249
249
|
|
|
250
250
|
## License
|
|
251
251
|
|
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, 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, 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';
|
|
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
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* The link's target: **Link to** (a web address, an email address, or a slide of this
|
|
50
|
+
* presentation) and its fields. Each kind writes the one draft that Apply sends. Enter applies.
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
49
53
|
declare function HyperLinkFields({ className, hidden }: HyperLinkPartProps): react.JSX.Element | null;
|
|
50
54
|
declare namespace HyperLinkFields {
|
|
51
55
|
var pptxHyperLinkPart: "Fields";
|
|
@@ -462,7 +466,7 @@ interface UseBackgroundDialogReturn extends UseDialogReturn<BackgroundDialogFiel
|
|
|
462
466
|
* The field names of the Background dialog, for `BackgroundDialog.Field`: one per fill kind
|
|
463
467
|
* (`SlideBackground['kind']`), and Apply to all slides. @public
|
|
464
468
|
*/
|
|
465
|
-
type BackgroundDialogFieldName = 'solid' | 'gradient' | 'picture' | 'allSlides';
|
|
469
|
+
type BackgroundDialogFieldName = 'solid' | 'gradient' | 'pattern' | 'picture' | 'allSlides';
|
|
466
470
|
/** Props for `PptxEditor.BackgroundDialog`. @public */
|
|
467
471
|
interface BackgroundDialogProps extends DialogCustomizationProps {
|
|
468
472
|
/** Whether the dialog is shown. The host owns this state. */
|
|
@@ -510,6 +514,8 @@ declare const BackgroundDialog: typeof BackgroundDialogRoot & {
|
|
|
510
514
|
interface PageSetupDialogFields {
|
|
511
515
|
/** The chrome theme the appearance choice shows. */
|
|
512
516
|
readonly theme: 'light' | 'dark';
|
|
517
|
+
/** The slide size: a preset, the width and height in inches, and whether content scales. */
|
|
518
|
+
readonly slideSize: SlideSizeFields;
|
|
513
519
|
}
|
|
514
520
|
/** The Page setup draft and its actions. @public */
|
|
515
521
|
type UsePageSetupDialogReturn = UseDialogReturn<PageSetupDialogFields>;
|
|
@@ -1201,6 +1207,19 @@ interface PptxEditorRootProps {
|
|
|
1201
1207
|
* effect and prints a development warning. Create the list once, outside the component.
|
|
1202
1208
|
*/
|
|
1203
1209
|
readonly modules?: readonly EditorModule[];
|
|
1210
|
+
/**
|
|
1211
|
+
* AutoCorrect while typing (default `true`): curly quotes, symbols, fractions, en dashes,
|
|
1212
|
+
* sentence capitals, and lists started by typing `1.`, `1)`, `*`, or `-` and a space. Read
|
|
1213
|
+
* once, when the editor is created.
|
|
1214
|
+
*/
|
|
1215
|
+
readonly autoCorrect?: boolean;
|
|
1216
|
+
/**
|
|
1217
|
+
* Reads the DrawingML clipboard package from the system clipboard, for a desktop host that
|
|
1218
|
+
* can. A paste of copied shapes from another application then pastes editable shapes, not
|
|
1219
|
+
* their picture. See `PptxEditorOptions.readClipboardDrawing`. Read once, when the editor is
|
|
1220
|
+
* created.
|
|
1221
|
+
*/
|
|
1222
|
+
readonly readClipboardDrawing?: ClipboardDrawingReader;
|
|
1204
1223
|
/** Customize the dialogs the editor mounts. Set an entry to `false` to turn one off. */
|
|
1205
1224
|
readonly popups?: PptxEditorPopups;
|
|
1206
1225
|
/**
|
|
@@ -1220,11 +1239,16 @@ interface PptxEditorRootProps {
|
|
|
1220
1239
|
* returns. @public
|
|
1221
1240
|
*/
|
|
1222
1241
|
interface PptxEditorRef {
|
|
1223
|
-
/** Open `.pptx` bytes. Resolves when the presentation is open, or with the refusal. */
|
|
1224
|
-
load(bytes: Uint8Array): Promise<CommandResult>;
|
|
1225
1242
|
/**
|
|
1226
|
-
*
|
|
1227
|
-
*
|
|
1243
|
+
* Open `.pptx` bytes. Resolves when the presentation is open, or with the refusal. A long
|
|
1244
|
+
* deck resolves when `options.startSlide` (or the first slide) is ready.
|
|
1245
|
+
*/
|
|
1246
|
+
load(bytes: Uint8Array, options?: LoadOptions): Promise<CommandResult>;
|
|
1247
|
+
/**
|
|
1248
|
+
* The presentation as `.pptx` bytes. The bytes own an `ArrayBuffer`, so `new Blob([bytes])`
|
|
1249
|
+
* takes them as they are. `null` when no presentation is open, and when a slide of it is
|
|
1250
|
+
* damaged: `snapshot().readOnlyReason` is then `'damaged-slide'` (after edits), or
|
|
1251
|
+
* `snapshot().openFailure` reports the refused file.
|
|
1228
1252
|
*/
|
|
1229
1253
|
save(): Uint8Array<ArrayBuffer> | null;
|
|
1230
1254
|
/** The editor instance, or `null` before it mounts. */
|
|
@@ -1242,14 +1266,21 @@ declare const PptxEditorRoot: react.ForwardRefExoticComponent<PptxEditorRootProp
|
|
|
1242
1266
|
interface PptxEditorViewportProps {
|
|
1243
1267
|
/** Appended after the `pptx-editor` class. */
|
|
1244
1268
|
className?: string;
|
|
1269
|
+
/**
|
|
1270
|
+
* The name of the editor's landmark region, or a translation key. Default: "Presentation
|
|
1271
|
+
* editor" (`viewport.ariaLabel`). Give each editor its own name when a page shows more than one.
|
|
1272
|
+
* `false` renders no region, for a host whose own landmarks (`header`, `main`) are inside.
|
|
1273
|
+
*/
|
|
1274
|
+
label?: string | false;
|
|
1245
1275
|
/** The chrome and the content of the editor. */
|
|
1246
1276
|
children?: ReactNode;
|
|
1247
1277
|
}
|
|
1248
1278
|
/**
|
|
1249
1279
|
* The editor's scroll and styling scope: carries the `.pptx-editor` class, and `dark` with it
|
|
1250
|
-
* when the root's `colorMode` resolves to dark.
|
|
1280
|
+
* when the root's `colorMode` resolves to dark. It is a named landmark region ("Presentation
|
|
1281
|
+
* editor"), so a screen reader user can go to the editor from anywhere on the page. @public
|
|
1251
1282
|
*/
|
|
1252
|
-
declare function PptxEditorViewport({ className, children }: PptxEditorViewportProps): react.JSX.Element;
|
|
1283
|
+
declare function PptxEditorViewport({ className, label, children }: PptxEditorViewportProps): react.JSX.Element;
|
|
1253
1284
|
/** The props of `PptxEditorContent`. @public */
|
|
1254
1285
|
interface PptxEditorContentProps {
|
|
1255
1286
|
/** Appended after the `pptx-canvas` class. */
|
|
@@ -1538,6 +1569,9 @@ interface UseEditorValueCommandReturn<V, S = V> {
|
|
|
1538
1569
|
/**
|
|
1539
1570
|
* The slot's fixed choices, from the registry (the Rotate, Align, line width, or Shape Effects
|
|
1540
1571
|
* rows); none for a slot with a free value (`font.size`, `shape.fill`, `shape.styles`).
|
|
1572
|
+
* Without the `@pptx-editor.dev/pro/drawing` module, they leave out the effects it paints
|
|
1573
|
+
* (`chromeOfferedControl`), so `value` can be an effect from the file that is not in the list.
|
|
1574
|
+
* They keep the rows that remove an effect the selection has (`reflection.none`).
|
|
1541
1575
|
*/
|
|
1542
1576
|
readonly options: readonly V[];
|
|
1543
1577
|
/** Whether the command can run now. */
|
|
@@ -1864,6 +1898,12 @@ interface ToolbarNamedParts {
|
|
|
1864
1898
|
readonly TableCellFill: ToolbarColorSplitComponent;
|
|
1865
1899
|
/** `table.borderTarget`. */
|
|
1866
1900
|
readonly TableBorderTarget: ToolbarSlotPartComponent;
|
|
1901
|
+
/** `table.borderColor`. */
|
|
1902
|
+
readonly TableBorderColor: ToolbarColorSplitComponent;
|
|
1903
|
+
/** `table.borderStyle`. */
|
|
1904
|
+
readonly TableBorderStyle: ToolbarSlotPartComponent;
|
|
1905
|
+
/** `table.borderWidth`. */
|
|
1906
|
+
readonly TableBorderWidth: ToolbarSlotPartComponent;
|
|
1867
1907
|
/** `table.select`. */
|
|
1868
1908
|
readonly TableSelect: ToolbarSlotPartComponent;
|
|
1869
1909
|
/** `table.delete`. */
|
|
@@ -1888,6 +1928,36 @@ interface ToolbarNamedParts {
|
|
|
1888
1928
|
readonly TableCellMargins: ToolbarSlotPartComponent;
|
|
1889
1929
|
}
|
|
1890
1930
|
|
|
1931
|
+
/** @jsxImportSource react */
|
|
1932
|
+
/** Props of `SelectionPane`. @public */
|
|
1933
|
+
interface SelectionPaneProps {
|
|
1934
|
+
/** A class name added to the pane. */
|
|
1935
|
+
readonly className?: string;
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* The selection pane: select, show or hide, rename, and reorder the elements of the current
|
|
1939
|
+
* slide. Render it inside the editor root, or open the side panel's **Selection** tab. @public
|
|
1940
|
+
*/
|
|
1941
|
+
declare function SelectionPane(props?: SelectionPaneProps): react.JSX.Element;
|
|
1942
|
+
|
|
1943
|
+
/** Props of `SidePanel`. The host shows or hides the panel by rendering it. @public */
|
|
1944
|
+
interface SidePanelProps {
|
|
1945
|
+
/** Shows a close button that calls it. */
|
|
1946
|
+
readonly onClose?: () => void;
|
|
1947
|
+
/** A class name added to the panel. */
|
|
1948
|
+
readonly className?: string;
|
|
1949
|
+
/** The panel's width in CSS pixels. */
|
|
1950
|
+
readonly paneWidth?: number;
|
|
1951
|
+
/** Inline styles for the panel; a `width` here wins over `paneWidth`. */
|
|
1952
|
+
readonly style?: CSSProperties;
|
|
1953
|
+
/** The tab that shows. Set it with `onTabChange` to control the tab; omit it to start on Format. */
|
|
1954
|
+
readonly tab?: SidePanelTab;
|
|
1955
|
+
/** Called with the tab the user picks. */
|
|
1956
|
+
readonly onTabChange?: (tab: SidePanelTab) => void;
|
|
1957
|
+
}
|
|
1958
|
+
/** The side panel: Format · Selection · Comments. @public */
|
|
1959
|
+
declare function SidePanel({ onClose, className, paneWidth, style, tab: shown, onTabChange, }: SidePanelProps): react.JSX.Element;
|
|
1960
|
+
|
|
1891
1961
|
/**
|
|
1892
1962
|
* Props of `NotesPane`: the pane props, without a width (the notes take the slide's width),
|
|
1893
1963
|
* and the format buttons. @public
|
|
@@ -1960,19 +2030,6 @@ interface ZoomPillProps {
|
|
|
1960
2030
|
}
|
|
1961
2031
|
/** The zoom pill (`– 100% ▾ +`). @public */
|
|
1962
2032
|
declare function ZoomPill({ className }?: ZoomPillProps): react.JSX.Element;
|
|
1963
|
-
/** Props of `SidePanel`. The host shows or hides the panel by rendering it. @public */
|
|
1964
|
-
interface SidePanelProps {
|
|
1965
|
-
/** Shows a close button that calls it. */
|
|
1966
|
-
readonly onClose?: () => void;
|
|
1967
|
-
/** A class name added to the panel. */
|
|
1968
|
-
readonly className?: string;
|
|
1969
|
-
/** The panel's width in CSS pixels. */
|
|
1970
|
-
readonly paneWidth?: number;
|
|
1971
|
-
/** Inline styles for the panel; a `width` here wins over `paneWidth`. */
|
|
1972
|
-
readonly style?: CSSProperties;
|
|
1973
|
-
}
|
|
1974
|
-
/** The side panel: Format · Comments. @public */
|
|
1975
|
-
declare function SidePanel({ onClose, className, paneWidth, style }: SidePanelProps): react.JSX.Element;
|
|
1976
2033
|
|
|
1977
2034
|
/** Props of every named part of the slide rail's action row. @public */
|
|
1978
2035
|
interface SlideRailPartProps {
|
|
@@ -2055,6 +2112,12 @@ interface PptxEditorOpenFailureProps {
|
|
|
2055
2112
|
readonly message?: ReactNode | ((failure: DocumentOpenFailure) => ReactNode);
|
|
2056
2113
|
/** Show the stable error code under the message. Defaults to `true`. */
|
|
2057
2114
|
readonly showCode?: boolean;
|
|
2115
|
+
/**
|
|
2116
|
+
* Show **Copy details**, which copies `openFailureReport(failure)`: the code, the reason,
|
|
2117
|
+
* the editor version, the browser, and the time, for a support request. It holds no file
|
|
2118
|
+
* content. Defaults to `true`.
|
|
2119
|
+
*/
|
|
2120
|
+
readonly showCopy?: boolean;
|
|
2058
2121
|
/** Your own buttons, before **Close**. The notice shows no contact of its own. */
|
|
2059
2122
|
readonly actions?: (context: OpenFailureContext) => ReactNode;
|
|
2060
2123
|
/** The label of the **Close** button. Defaults to the translated `openFailure.close`. */
|
|
@@ -2574,7 +2637,7 @@ interface FillControlProps {
|
|
|
2574
2637
|
}
|
|
2575
2638
|
/**
|
|
2576
2639
|
* Fill color: one menu with the theme and standard colors, Transparent, gradient presets from
|
|
2577
|
-
* the theme colors,
|
|
2640
|
+
* the theme colors, a custom gradient dialog, a pattern dialog, and a picture. @public
|
|
2578
2641
|
*/
|
|
2579
2642
|
declare function FillControl({ slot, control }: FillControlProps): react.JSX.Element;
|
|
2580
2643
|
/** Props for `PptxEditor.GradientDialog`. @public */
|
|
@@ -2609,6 +2672,22 @@ interface LineMenuControlProps {
|
|
|
2609
2672
|
/** The line tool and the line start and end menus, with each option drawn. @public */
|
|
2610
2673
|
declare function LineMenuControl({ slot, control }: LineMenuControlProps): react.JSX.Element | null;
|
|
2611
2674
|
|
|
2675
|
+
/** Props for `PptxEditor.PatternDialog`. @public */
|
|
2676
|
+
interface PatternDialogProps {
|
|
2677
|
+
/** Whether the dialog shows. */
|
|
2678
|
+
readonly open: boolean;
|
|
2679
|
+
/** The pattern the dialog starts from, or null for a 50% pattern in `base` on white. */
|
|
2680
|
+
readonly initial: PatternFill | null;
|
|
2681
|
+
/** The foreground of a new pattern, as `#RRGGBB`. */
|
|
2682
|
+
readonly base?: string;
|
|
2683
|
+
/** Called when the dialog closes, applied or not. */
|
|
2684
|
+
readonly onClose: () => void;
|
|
2685
|
+
/** Called with the pattern the person applied. */
|
|
2686
|
+
readonly onApply: (pattern: PatternFill) => void;
|
|
2687
|
+
}
|
|
2688
|
+
/** The pattern fill dialog: a preset, its two colors, and a preview. @public */
|
|
2689
|
+
declare function PatternDialog({ open, initial, base, onClose, onApply }: PatternDialogProps): react.JSX.Element;
|
|
2690
|
+
|
|
2612
2691
|
/**
|
|
2613
2692
|
* The deck's slide layouts (`EditorSnapshot.layouts`), in the order the galleries list them,
|
|
2614
2693
|
* reference-stable while they do not change. For a host's own layout picker. @public
|
|
@@ -3192,6 +3271,10 @@ interface PptxEditorProps {
|
|
|
3192
3271
|
readonly fontFamilies?: readonly string[];
|
|
3193
3272
|
/** Capability modules (`@pptx-editor.dev/pro`), as on `PptxEditor.Root`. Read at mount. */
|
|
3194
3273
|
readonly modules?: readonly EditorModule[];
|
|
3274
|
+
/** AutoCorrect while typing, as on `PptxEditor.Root`. Read at mount. */
|
|
3275
|
+
readonly autoCorrect?: boolean;
|
|
3276
|
+
/** Reads copied shapes from the system clipboard, as on `PptxEditor.Root`. Read at mount. */
|
|
3277
|
+
readonly readClipboardDrawing?: ClipboardDrawingReader;
|
|
3195
3278
|
/**
|
|
3196
3279
|
* The notice for a file that does not open (`PptxEditor.OpenFailure`). An object is
|
|
3197
3280
|
* `PptxEditorOpenFailureProps`, passed straight through. `false` removes the notice, for a host that
|
|
@@ -3255,6 +3338,7 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
|
|
|
3255
3338
|
NotesPane: typeof NotesPane;
|
|
3256
3339
|
ZoomPill: typeof ZoomPill;
|
|
3257
3340
|
SidePanel: typeof SidePanel;
|
|
3341
|
+
SelectionPane: typeof SelectionPane;
|
|
3258
3342
|
FontNotice: (props: FontNoticeProps) => ReactNode;
|
|
3259
3343
|
EditNotice: (props: EditNoticeProps) => ReactNode;
|
|
3260
3344
|
OpenFailure: (props: PptxEditorOpenFailureProps) => ReactNode;
|
|
@@ -3365,5 +3449,5 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
|
|
|
3365
3449
|
StatusBar: StatusBarNamespace;
|
|
3366
3450
|
};
|
|
3367
3451
|
|
|
3368
|
-
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 };
|
|
3369
|
-
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 };
|
|
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 };
|