@pptx-editor.dev/react 0.3.1 → 0.4.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 +23 -4
- package/dist/index.js +3626 -3163
- package/package.json +3 -3
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, 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';
|
|
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, FormatSectionId, FormatSectionDefinition, 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, FORMAT_SECTIONS, FontConfigurationBase, FontConfigurationFragment, FontDialogFields, FontFormatCommand, FontFormatRead, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontPickerGroup, FontPickerGroupId, FontPickerRow, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, FormatSectionDefinition, FormatSectionId, 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, formatSectionsOf, 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';
|
|
@@ -3191,6 +3191,25 @@ interface MenuItemProps {
|
|
|
3191
3191
|
*/
|
|
3192
3192
|
declare function MenuItem({ children, onSelect, checked, disabled, reason, title, option, checkbox, description, }: MenuItemProps): react.JSX.Element;
|
|
3193
3193
|
|
|
3194
|
+
/** Selection-aware format panel customization. @public */
|
|
3195
|
+
interface FormatPanelProps {
|
|
3196
|
+
/** Ordered section identifiers. Omitted identifiers are hidden. Defaults to all applicable sections. */
|
|
3197
|
+
readonly sections?: readonly FormatSectionId[];
|
|
3198
|
+
/** Replace an applicable section. A null value hides it. */
|
|
3199
|
+
readonly sectionContent?: Partial<Record<FormatSectionId, ReactNode>>;
|
|
3200
|
+
readonly className?: string;
|
|
3201
|
+
/** Content appended after built-in sections. */
|
|
3202
|
+
readonly children?: ReactNode;
|
|
3203
|
+
}
|
|
3204
|
+
/** Props of a reusable formatting section. @public */
|
|
3205
|
+
interface FormatSectionProps {
|
|
3206
|
+
readonly section: FormatSectionDefinition;
|
|
3207
|
+
}
|
|
3208
|
+
/** A built-in section, reusable in a custom inspector. @public */
|
|
3209
|
+
declare function FormatSection({ section }: FormatSectionProps): react.JSX.Element;
|
|
3210
|
+
/** Formats the current selection with shared commands and capability checks. @public */
|
|
3211
|
+
declare function FormatPanel({ sections, sectionContent, className, children }: FormatPanelProps): react.JSX.Element;
|
|
3212
|
+
|
|
3194
3213
|
/**
|
|
3195
3214
|
* `PptxEditor.Toolbar` with its statics, as DOCX Editor's `DocxEditorToolbarNamespace`. @public
|
|
3196
3215
|
*/
|
|
@@ -3572,5 +3591,5 @@ declare const PptxEditor: react.ForwardRefExoticComponent<PptxEditorProps & reac
|
|
|
3572
3591
|
StatusBar: StatusBarNamespace;
|
|
3573
3592
|
};
|
|
3574
3593
|
|
|
3575
|
-
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 };
|
|
3576
|
-
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 };
|
|
3594
|
+
export { BackgroundDialog, BulletsAndNumberingDialog, ColumnsDialog, ContextMenu, EditNotice, EquationDialog, FillControl, FindBar, FontDialog, FontNotice, FormatPanel, FormatSection, 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 };
|
|
3595
|
+
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, FormatPanelProps, FormatSectionProps, 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 };
|