pptx-react-viewer 4.75.0 → 4.77.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/CHANGELOG.md +50 -0
- package/dist/{AiChatPanel-6ML3VLIX.mjs → AiChatPanel-7BPX44IR.mjs} +1 -1
- package/dist/AiChatPanel-7BPX44IR.mjs.br +0 -0
- package/dist/AiChatPanel-7BPX44IR.mjs.gz +0 -0
- package/dist/{AiChatPanel-4V7QB5Z3.js → AiChatPanel-YJ5R7PPW.js} +19 -19
- package/dist/AiChatPanel-YJ5R7PPW.js.br +0 -0
- package/dist/AiChatPanel-YJ5R7PPW.js.gz +0 -0
- package/dist/ai.js +2 -2
- package/dist/ai.js.br +2 -3
- package/dist/ai.js.gz +0 -0
- package/dist/ai.mjs +1 -1
- package/dist/ai.mjs.br +0 -0
- package/dist/ai.mjs.gz +0 -0
- package/dist/{chunk-P2IEKYVG.js → chunk-3T5NEBOR.js} +2 -2
- package/dist/chunk-3T5NEBOR.js.br +0 -0
- package/dist/chunk-3T5NEBOR.js.gz +0 -0
- package/dist/{chunk-3AZ6ESJU.js → chunk-5CJHRYFK.js} +1666 -1249
- package/dist/chunk-5CJHRYFK.js.br +0 -0
- package/dist/chunk-5CJHRYFK.js.gz +0 -0
- package/dist/{chunk-6GFSF2ML.js → chunk-AIA7CY5U.js} +4 -29
- package/dist/chunk-AIA7CY5U.js.br +0 -0
- package/dist/chunk-AIA7CY5U.js.gz +0 -0
- package/dist/{chunk-AZLOOFU2.mjs → chunk-I5WQFYAK.mjs} +680 -273
- package/dist/chunk-I5WQFYAK.mjs.br +0 -0
- package/dist/chunk-I5WQFYAK.mjs.gz +0 -0
- package/dist/{chunk-RMEWSJZU.mjs → chunk-J4NOGC3R.mjs} +1 -1
- package/dist/chunk-J4NOGC3R.mjs.br +0 -0
- package/dist/chunk-J4NOGC3R.mjs.gz +0 -0
- package/dist/{chunk-Y53EC3JU.mjs → chunk-JB37G6GW.mjs} +1 -1
- package/dist/chunk-JB37G6GW.mjs.br +0 -0
- package/dist/chunk-JB37G6GW.mjs.gz +0 -0
- package/dist/{chunk-DE4Y5F4T.mjs → chunk-MMBLGDHD.mjs} +556 -375
- package/dist/chunk-MMBLGDHD.mjs.br +0 -0
- package/dist/chunk-MMBLGDHD.mjs.gz +0 -0
- package/dist/{chunk-N3YK2BCA.mjs → chunk-N6BJW23K.mjs} +5 -30
- package/dist/chunk-N6BJW23K.mjs.br +0 -0
- package/dist/chunk-N6BJW23K.mjs.gz +0 -0
- package/dist/{chunk-RJRDE3C2.js → chunk-USEEERPE.js} +1107 -926
- package/dist/chunk-USEEERPE.js.br +0 -0
- package/dist/chunk-USEEERPE.js.gz +0 -0
- package/dist/{chunk-MU3BIZ2U.js → chunk-VCNDY7HS.js} +1 -1
- package/dist/chunk-VCNDY7HS.js.br +0 -0
- package/dist/chunk-VCNDY7HS.js.gz +0 -0
- package/dist/i18n/de.cjs +5 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +5 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +5 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +5 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +5 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +5 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +5 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +5 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.d.ts +59 -8
- package/dist/index.js +29 -29
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +51 -24
- package/dist/internals.js +82 -82
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/no-i18next.d.ts +59 -8
- package/dist/no-i18next.js +28 -28
- package/dist/no-i18next.js.br +0 -0
- package/dist/no-i18next.js.gz +0 -0
- package/dist/no-i18next.mjs +4 -4
- package/dist/no-i18next.mjs.br +0 -0
- package/dist/no-i18next.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.d.ts +20 -1
- package/dist/viewer/index.js +22 -22
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +5 -4
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-4V7QB5Z3.js.br +0 -0
- package/dist/AiChatPanel-4V7QB5Z3.js.gz +0 -0
- package/dist/AiChatPanel-6ML3VLIX.mjs.br +0 -0
- package/dist/AiChatPanel-6ML3VLIX.mjs.gz +0 -0
- package/dist/chunk-3AZ6ESJU.js.br +0 -0
- package/dist/chunk-3AZ6ESJU.js.gz +0 -0
- package/dist/chunk-6GFSF2ML.js.br +0 -0
- package/dist/chunk-6GFSF2ML.js.gz +0 -0
- package/dist/chunk-AZLOOFU2.mjs.br +0 -0
- package/dist/chunk-AZLOOFU2.mjs.gz +0 -0
- package/dist/chunk-DE4Y5F4T.mjs.br +0 -0
- package/dist/chunk-DE4Y5F4T.mjs.gz +0 -0
- package/dist/chunk-MU3BIZ2U.js.br +0 -0
- package/dist/chunk-MU3BIZ2U.js.gz +0 -0
- package/dist/chunk-N3YK2BCA.mjs.br +0 -0
- package/dist/chunk-N3YK2BCA.mjs.gz +0 -0
- package/dist/chunk-P2IEKYVG.js.br +0 -0
- package/dist/chunk-P2IEKYVG.js.gz +0 -0
- package/dist/chunk-RJRDE3C2.js.br +0 -0
- package/dist/chunk-RJRDE3C2.js.gz +0 -0
- package/dist/chunk-RMEWSJZU.mjs.br +0 -0
- package/dist/chunk-RMEWSJZU.mjs.gz +0 -0
- package/dist/chunk-Y53EC3JU.mjs.br +0 -0
- package/dist/chunk-Y53EC3JU.mjs.gz +0 -0
package/dist/internals.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
export { FragmentedTransitionLayer, MIN_TOUCH_TARGET, MOBILE_BREAKPOINT, MorphTransitionOverlay, PresentationTransitionOverlay, SlideLayer, TABLET_BREAKPOINT, computeToolbarVisibility, computeVirtualRange, useAnimationPlayback, useAnnotationHandlers, useAudienceMode, useAutosave, useBroadcastFollower, useCanvasInteractions, useClipboardHandlers, useCollaborativeHistory, useCollaborativeState, useComments, useContentLifecycle, useDerivedElementState, useDerivedSlideState, useDialogCustomShows, useEditorHistory, useEditorOperations, useElementManipulation, useElementOperations, useExportHandlers, useExportSaveAs, useFindReplace, useFollowMode, useFontInjection, useGroupAlignLayerHandlers, useIOHandlers, useInsertElements, useIsMobile, useKeyboardInsets, useKeyboardShortcutWiring, useKeyboardShortcuts, useLayoutSwitching, useLoadContent, useMergeShapesHandler, useModalDismissDrag, usePointerHandlers, usePresenceTracking, usePresentationAnnotations, usePresentationKeyboard, usePresentationMode, usePresentationSetup, usePresenterWindow, usePrintHandlers, usePropertyHandlers, useRecoveryDetection, useReducedMotion, useRehearsalTimings, useResizablePanels, useSectionOperations, useSerialize, useSheetDismissDrag, useSlideManagement, useSlideNavigation, useSwipeNavigation, useTableOperations, useThemeHandlers, useThemeSwitching, useToolbarVisibility, useTouchGestures, useViewerBuildingBlocks, useViewerCoreState, useViewerDialogs, useViewerIntegration, useViewerOptions, useViewerState, useViewerUIState, useVirtualizedSlides, useYjsDocumentSync, useYjsProvider, useZoomNavigation, useZoomViewport } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import './chunk-JB37G6GW.mjs';
|
|
2
|
+
export { FragmentedTransitionLayer, MIN_TOUCH_TARGET, MOBILE_BREAKPOINT, MorphTransitionOverlay, PresentationTransitionOverlay, SlideLayer, TABLET_BREAKPOINT, computeToolbarVisibility, computeVirtualRange, useAnimationPlayback, useAnnotationHandlers, useAudienceMode, useAutosave, useBroadcastFollower, useCanvasInteractions, useClipboardHandlers, useCollaborativeHistory, useCollaborativeState, useComments, useContentLifecycle, useDerivedElementState, useDerivedSlideState, useDialogCustomShows, useEditorHistory, useEditorOperations, useElementManipulation, useElementOperations, useExportHandlers, useExportSaveAs, useFindReplace, useFollowMode, useFontInjection, useGroupAlignLayerHandlers, useIOHandlers, useInsertElements, useIsMobile, useKeyboardInsets, useKeyboardShortcutWiring, useKeyboardShortcuts, useLayoutSwitching, useLoadContent, useMergeShapesHandler, useModalDismissDrag, usePointerHandlers, usePresenceTracking, usePresentationAnnotations, usePresentationKeyboard, usePresentationMode, usePresentationSetup, usePresenterWindow, usePrintHandlers, usePropertyHandlers, useRecoveryDetection, useReducedMotion, useRehearsalTimings, useResizablePanels, useSectionOperations, useSerialize, useSheetDismissDrag, useSlideManagement, useSlideNavigation, useSwipeNavigation, useTableOperations, useThemeHandlers, useThemeSwitching, useToolbarVisibility, useTouchGestures, useViewerBuildingBlocks, useViewerCoreState, useViewerDialogs, useViewerIntegration, useViewerOptions, useViewerState, useViewerUIState, useVirtualizedSlides, useYjsDocumentSync, useYjsProvider, useZoomNavigation, useZoomViewport } from './chunk-I5WQFYAK.mjs';
|
|
3
|
+
import './chunk-N6BJW23K.mjs';
|
|
4
4
|
import './chunk-UV2HVMKZ.mjs';
|
|
5
5
|
export { CINEMATIC_TRANSITION_KEYFRAMES, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, EASE, INSTANT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, TRANSITION_SPEED_DURATION_MS, WHEEL_SPOKE_COUNTS, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount } from 'ooxml-ui/pptx';
|
package/dist/internals.mjs.br
CHANGED
|
Binary file
|
package/dist/internals.mjs.gz
CHANGED
|
Binary file
|
package/dist/no-i18next.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
2
|
-
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, ListConversionScope, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PptxLoadLimits, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, SlidesPaneLayoutGalleryRequest, CollaborationShellState, PptxAutosaveStatus } from 'ooxml-ui/pptx';
|
|
3
|
-
export { AVATAR_COLOR_SWATCHES, AccountAuthConfig, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, CollaborationConfig, CollaborationShellState, ContextMenuCustomization, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, KeyboardCustomization, ListConversionScope, LocalStorageUsageSummary, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PowerPointViewerAPI, RIBBON_TAB_IDS, ResolvedCustomization, RibbonCustomization, SLIDE_TEMPLATES, SavedPresentationFormat, ShortcutChord, SlideTemplateId, SlideTemplateSpec, SlidesPaneLayoutGalleryRequest, StoredViewerPrefs, THEME_CATALOG, TOOLBAR_BUTTON_IDS, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerMode, ViewerPanelId, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from 'ooxml-ui/pptx';
|
|
2
|
+
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, ElementRenderErrorHandler, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, ListConversionScope, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PptxLoadLimits, PowerPointViewerAPI, ViewerCustomizationApi, ElementRenderErrorContext, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, RibbonDisplayController, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, UseViewerBuildingBlocksActionsOptions, SlidesPaneLayoutGalleryRequest, CollaborationShellState, CollaborationState as CollaborationState$1, PptxAutosaveStatus, ViewerBuildingBlockActions } from 'ooxml-ui/pptx';
|
|
3
|
+
export { AVATAR_COLOR_SWATCHES, AccountAuthConfig, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, BuildingBlockActionId, BuildingBlockActionState, BuildingBlockFailureCode, BuildingBlockFindReplace, BuildingBlockLayoutActions, BuildingBlockRequest, BuildingBlockResult, CANVAS_CONTEXT_MENU_COMMAND_IDS, CollaborationConfig, CollaborationShellState, ContextMenuCustomization, DEFAULT_VIEWER_PROFILE, DocumentPropertiesActions, DocumentPropertiesPatch, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, FontEmbeddingActions, HostCanvasMenuContext, HostElementMenuContext, HostFileLimits, HostMenuCommand, HostSignatureInfo, KeyboardCustomization, ListConversionScope, LocalStorageUsageSummary, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PasswordProtectionActions, PowerPointViewerAPI, RIBBON_TAB_IDS, ResolvedCustomization, RibbonCustomization, SLIDE_TEMPLATES, SavedPresentationFormat, ShortcutChord, SignatureActions, SlideTemplateId, SlideTemplateSpec, SlidesPaneLayoutGalleryRequest, StoredViewerPrefs, THEME_CATALOG, TOOLBAR_BUTTON_IDS, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, ViewerBuildingBlockActions, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerMode, ViewerPanelId, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from 'ooxml-ui/pptx';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React$1__default, { ReactNode, ReactElement } from 'react';
|
|
6
6
|
import { PptxCoreProperties, PptxAnimationPreset, PptxNativeAnimation, PptxSlide, PptxElement, TextStyle, InkPptxElement, ShapePptxElement, PptxAction, PptxComment, PptxElementAnimation, ConnectorPptxElement, ParsedTableStyleMap, PptxTheme, ShapeStyle, PptxLayoutOption, PptxLayoutPreview, PptxCustomShow, PptxSlideTransition, PptxPresentationProperties } from 'ooxml-core/pptx';
|
|
@@ -194,6 +194,19 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
194
194
|
onModeChange?: (mode: ooxml_ui_pptx.ViewerMode) => void;
|
|
195
195
|
/** Callback when the zoom level changes. */
|
|
196
196
|
onZoomChange?: (zoom: number) => void;
|
|
197
|
+
/**
|
|
198
|
+
* Ribbon Display Options, the starting mode: `always` docks the tabs and commands above the
|
|
199
|
+
* slide (the default), `tabs` shows only the tab row (a chosen tab lays its commands over the
|
|
200
|
+
* slide until a press elsewhere or Escape), `fullScreen` hides the title bar and the ribbon
|
|
201
|
+
* until the strip at the top is pressed. Changing it later applies the mode without calling
|
|
202
|
+
* `onRibbonDisplayChange`.
|
|
203
|
+
*/
|
|
204
|
+
ribbonDisplay?: ooxml_ui_pptx.RibbonDisplayMode;
|
|
205
|
+
/**
|
|
206
|
+
* Called when the user picks a Ribbon Display Option (the menu, Ctrl+F1, a double click on a
|
|
207
|
+
* tab). Not called when the host changes `ribbonDisplay`.
|
|
208
|
+
*/
|
|
209
|
+
onRibbonDisplayChange?: (mode: ooxml_ui_pptx.RibbonDisplayMode) => void;
|
|
197
210
|
/** Callback when element selection changes. */
|
|
198
211
|
onSelectionChange?: (elementIds: string[]) => void;
|
|
199
212
|
/** Callback when the total slide count changes (slide added/deleted). */
|
|
@@ -205,6 +218,12 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
205
218
|
onLoad?: (detail: ViewerLoadDetail) => void;
|
|
206
219
|
/** Fired once per distinct load failure, and for each failed Save / Save As, with a human-readable message. */
|
|
207
220
|
onError?: (message: string) => void;
|
|
221
|
+
/**
|
|
222
|
+
* Reports a slide element omitted after a render or lifecycle error, on every surface of the
|
|
223
|
+
* viewer (canvas, thumbnails, slide show, reading view, previews). Defaults to
|
|
224
|
+
* `console.error(error, context)`, also used when this callback throws.
|
|
225
|
+
*/
|
|
226
|
+
onElementRenderError?: ElementRenderErrorHandler;
|
|
208
227
|
/**
|
|
209
228
|
* Host override for the File ▸ Open action. When provided, the built-in
|
|
210
229
|
* native file picker is bypassed and this is invoked instead; the host is
|
|
@@ -662,6 +681,11 @@ interface ToolbarProps {
|
|
|
662
681
|
isProtectedView?: boolean;
|
|
663
682
|
/** Drops the Protected View override for this session. Only offered when `isProtectedView` is true. */
|
|
664
683
|
onEnableEditing?: () => void;
|
|
684
|
+
/**
|
|
685
|
+
* The viewer's Ribbon Display Options controller. Optional: a ribbon rendered on its own
|
|
686
|
+
* stays in the default "always" mode.
|
|
687
|
+
*/
|
|
688
|
+
ribbonDisplay?: RibbonDisplayController;
|
|
665
689
|
isNarrowViewport: boolean;
|
|
666
690
|
isSidebarCollapsed: boolean;
|
|
667
691
|
isInspectorPaneOpen: boolean;
|
|
@@ -933,6 +957,9 @@ interface TableStyleContext {
|
|
|
933
957
|
tableStyleMap?: ParsedTableStyleMap;
|
|
934
958
|
theme?: PptxTheme;
|
|
935
959
|
}
|
|
960
|
+
/** Identifies the element omitted after a React client render or lifecycle error. */
|
|
961
|
+
type ElementRenderErrorContext$1 = ElementRenderErrorContext;
|
|
962
|
+
type ElementRenderErrorHandler$1 = ElementRenderErrorHandler;
|
|
936
963
|
/** Wiring for Edit Points and the Freeform: Shape / Curve tools. */
|
|
937
964
|
interface OutlineAuthoringProps {
|
|
938
965
|
/** The shape in Edit Points mode, or null. */
|
|
@@ -957,6 +984,8 @@ interface ZoomViewport {
|
|
|
957
984
|
editorScale: number;
|
|
958
985
|
}
|
|
959
986
|
interface SlideCanvasProps {
|
|
987
|
+
/** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
|
|
988
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
960
989
|
/** The viewer-owned live channel; absent for static/custom non-collaborative canvases. */
|
|
961
990
|
livePatcher?: CollaborationLivePatcher;
|
|
962
991
|
registerInlineEditReader?: (elementId: string, read: () => InlineListReadResult) => () => void;
|
|
@@ -1097,6 +1126,8 @@ interface SlideCanvasProps {
|
|
|
1097
1126
|
outlineAuthoring?: OutlineAuthoringProps;
|
|
1098
1127
|
}
|
|
1099
1128
|
interface SlidesPaneSidebarProps {
|
|
1129
|
+
/** Reports an element omitted from a thumbnail; defaults to console.error. */
|
|
1130
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1100
1131
|
slides: PptxSlide[];
|
|
1101
1132
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
1102
1133
|
activeSlideIndex: number;
|
|
@@ -1139,7 +1170,9 @@ interface SlidesPaneSidebarProps {
|
|
|
1139
1170
|
}
|
|
1140
1171
|
/** The one autosave status every binding renders (`PptxAutosaveStatus` in `ooxml-ui/pptx`). */
|
|
1141
1172
|
type AutosaveStatus = PptxAutosaveStatus;
|
|
1142
|
-
interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
|
|
1173
|
+
interface UseViewerBuildingBlocksInput extends ViewportFitOptions, UseViewerBuildingBlocksActionsOptions {
|
|
1174
|
+
/** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
|
|
1175
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1143
1176
|
/** Optional collaboration, including a host-owned document and presence session. */
|
|
1144
1177
|
collaboration?: CollaborationInput;
|
|
1145
1178
|
/** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
|
|
@@ -1216,6 +1249,11 @@ interface ViewerBuildingBlocksResult {
|
|
|
1216
1249
|
* `describeCollaborationShellState` for a localised status line.
|
|
1217
1250
|
*/
|
|
1218
1251
|
shellState: CollaborationShellState;
|
|
1252
|
+
/**
|
|
1253
|
+
* The shared `CollaborationState` of the room (`COLLABORATION_OFF` when not sharing), the
|
|
1254
|
+
* value `PowerPointViewer`'s `onCollaborationChange` reports, in every binding's blocks.
|
|
1255
|
+
*/
|
|
1256
|
+
collaborationState: CollaborationState$1;
|
|
1219
1257
|
/** Flat, self-contained props for the standalone `<Toolbar>` component. */
|
|
1220
1258
|
toolbarProps: ToolbarProps;
|
|
1221
1259
|
/** Flat, self-contained props for the standalone `<SlideCanvas>` component. */
|
|
@@ -1226,7 +1264,11 @@ interface ViewerBuildingBlocksResult {
|
|
|
1226
1264
|
* Its open state is the toolbar's sidebar toggle.
|
|
1227
1265
|
*/
|
|
1228
1266
|
slidesPaneProps: SlidesPaneSidebarProps;
|
|
1229
|
-
/**
|
|
1267
|
+
/**
|
|
1268
|
+
* The effective mode, as every binding's building blocks report it: `preview` while the blocks
|
|
1269
|
+
* may not edit (no `canEdit`, a collaboration viewer role), otherwise the viewer's mode (`edit`,
|
|
1270
|
+
* `present`, `master`). `toolbarProps.mode` and `canvasProps.mode` keep the viewer's own mode.
|
|
1271
|
+
*/
|
|
1230
1272
|
mode: ViewerMode;
|
|
1231
1273
|
/** True while the initial parse of `content` is in progress. */
|
|
1232
1274
|
loading: boolean;
|
|
@@ -1234,18 +1276,26 @@ interface ViewerBuildingBlocksResult {
|
|
|
1234
1276
|
error: string | null;
|
|
1235
1277
|
/** Current autosave-to-localStorage recovery status. */
|
|
1236
1278
|
autosaveStatus: AutosaveStatus;
|
|
1279
|
+
/**
|
|
1280
|
+
* Operations and state for finishing picker, dialog and layout workflows from host-rendered
|
|
1281
|
+
* controls: image / media insertion, hyperlink, SmartArt and equation editing, Find / Replace
|
|
1282
|
+
* and layout apply / reset, plus which actions can run now. See `docs/react/hooks.md`.
|
|
1283
|
+
*/
|
|
1284
|
+
actions: ViewerBuildingBlockActions;
|
|
1237
1285
|
}
|
|
1238
1286
|
declare function useViewerBuildingBlocks(input: UseViewerBuildingBlocksInput): ViewerBuildingBlocksResult;
|
|
1239
1287
|
|
|
1240
1288
|
declare function Toolbar(p: ToolbarProps): React$1__default.ReactElement;
|
|
1241
1289
|
declare function SlideCanvas(props: SlideCanvasProps): React$1.JSX.Element;
|
|
1242
|
-
declare function SlidesPaneSidebar(
|
|
1290
|
+
declare function SlidesPaneSidebar(props: SlidesPaneSidebarProps): React$1__default.ReactElement;
|
|
1243
1291
|
/**
|
|
1244
1292
|
* A static, scaled-down drawing of one slide, as the slides pane shows it. It renders from the
|
|
1245
1293
|
* slide model, so it follows unsaved edits. Feed it from `slidesPaneProps`:
|
|
1246
1294
|
* `templateElementsBySlideId[slide.id]`, `canvasSize`, `fieldContext` and `tableStyleContext`.
|
|
1247
1295
|
*/
|
|
1248
1296
|
interface SlideThumbnailProps {
|
|
1297
|
+
/** Reports an element omitted from this preview; defaults to console.error. */
|
|
1298
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1249
1299
|
/** The slide to draw. A different slide object (every edit makes one) redraws it. */
|
|
1250
1300
|
slide: PptxSlide;
|
|
1251
1301
|
/** The slide's inherited layout and master elements, drawn beneath its own. */
|
|
@@ -1261,7 +1311,7 @@ interface SlideThumbnailProps {
|
|
|
1261
1311
|
/** Theme + table style map for resolving table band/header colours. */
|
|
1262
1312
|
tableStyleContext?: TableStyleContext;
|
|
1263
1313
|
}
|
|
1264
|
-
declare function SlideThumbnailImpl({ slide, templateElements, canvasSize, previewWidth, fieldContext, tableStyleContext }: SlideThumbnailProps): React$1__default.ReactElement;
|
|
1314
|
+
declare function SlideThumbnailImpl({ slide, templateElements, canvasSize, previewWidth, fieldContext, tableStyleContext, onElementRenderError }: SlideThumbnailProps): React$1__default.ReactElement;
|
|
1265
1315
|
declare const SlideThumbnail: React$1__default.MemoExoticComponent<typeof SlideThumbnailImpl>;
|
|
1266
1316
|
interface SlideTemplateGalleryDialogProps {
|
|
1267
1317
|
isOpen: boolean;
|
|
@@ -1272,11 +1322,12 @@ interface SlideTemplateGalleryDialogProps {
|
|
|
1272
1322
|
}
|
|
1273
1323
|
declare function SlideTemplateGalleryDialog({ isOpen, onClose, onInsert, scheme }: SlideTemplateGalleryDialogProps): React$1__default.ReactElement | null;
|
|
1274
1324
|
interface SlideTemplatePreviewProps {
|
|
1325
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1275
1326
|
templateId: SlideTemplateId;
|
|
1276
1327
|
/** Optional deck scheme so the preview shows the deck's theme colours. */
|
|
1277
1328
|
scheme?: Record<string, string>;
|
|
1278
1329
|
}
|
|
1279
|
-
declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePreviewProps): React$1__default.ReactElement;
|
|
1330
|
+
declare function SlideTemplatePreview({ templateId, scheme, onElementRenderError }: SlideTemplatePreviewProps): React$1__default.ReactElement;
|
|
1280
1331
|
/**
|
|
1281
1332
|
* A drop-in replacement for `html2canvas(element, options)` that first
|
|
1282
1333
|
* resolves any oklch / oklab / lch / lab / color() values in the cloned
|
|
@@ -1296,4 +1347,4 @@ declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePrevi
|
|
|
1296
1347
|
declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
1297
1348
|
|
|
1298
1349
|
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, Toolbar, ViewerThemeProvider, getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks, useViewerTheme };
|
|
1299
|
-
export type { CollaborationContextValue, PowerPointViewerHandle, PowerPointViewerProps, PptxI18nProviderProps, PptxTranslate, PptxTranslateParams, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplatePreviewProps, SlideThumbnailProps, SlidesPaneSidebarProps as SlidesPaneProps, ToolbarProps, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerLoadDetail };
|
|
1350
|
+
export type { CollaborationContextValue, ElementRenderErrorContext$1 as ElementRenderErrorContext, ElementRenderErrorHandler$1 as ElementRenderErrorHandler, PowerPointViewerHandle, PowerPointViewerProps, PptxI18nProviderProps, PptxTranslate, PptxTranslateParams, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplatePreviewProps, SlideThumbnailProps, SlidesPaneSidebarProps as SlidesPaneProps, ToolbarProps, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerLoadDetail };
|
package/dist/no-i18next.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLWGPHJHC_js = require('./chunk-LWGPHJHC.js');
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var chunkUSEEERPE_js = require('./chunk-USEEERPE.js');
|
|
5
|
+
require('./chunk-VCNDY7HS.js');
|
|
6
|
+
var chunk5CJHRYFK_js = require('./chunk-5CJHRYFK.js');
|
|
7
|
+
var chunkAIA7CY5U_js = require('./chunk-AIA7CY5U.js');
|
|
8
8
|
require('./chunk-PIRHQTI4.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -155,97 +155,97 @@ Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkUSEEERPE_js.PowerPointViewer; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkUSEEERPE_js.SlideCanvas; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkUSEEERPE_js.SlideTemplateGalleryDialog; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkUSEEERPE_js.SlideTemplatePreview; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "SlideThumbnail", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkUSEEERPE_js.SlideThumbnail; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "SlidesPane", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkUSEEERPE_js.SlidesPaneSidebar; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkUSEEERPE_js.THEME_CATALOG; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "Toolbar", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkUSEEERPE_js.Toolbar; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkUSEEERPE_js.ViewerThemeProvider; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkUSEEERPE_js.defaultCssVars; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "defaultRadius", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkUSEEERPE_js.defaultRadius; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkUSEEERPE_js.defaultThemeColors; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkUSEEERPE_js.resolveThemeCatalogEntry; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkUSEEERPE_js.themeToCssVars; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkUSEEERPE_js.useViewerTheme; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkUSEEERPE_js.vermilionDarkColors; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkUSEEERPE_js.vermilionDarkTheme; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkUSEEERPE_js.vermilionLightColors; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkUSEEERPE_js.vermilionLightTheme; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkUSEEERPE_js.vermilionRadius; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk5CJHRYFK_js.renderToCanvas; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunk5CJHRYFK_js.useViewerBuildingBlocks; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "PptxI18nProvider", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkAIA7CY5U_js.PptxI18nProvider; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkAIA7CY5U_js.getAnimationInitialStyle; }
|
|
251
251
|
});
|
package/dist/no-i18next.js.br
CHANGED
|
Binary file
|
package/dist/no-i18next.js.gz
CHANGED
|
Binary file
|
package/dist/no-i18next.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, LOCALE_CATALOG, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, saveViewerProfile, savedPresentationFileName, writeStoredViewerPrefs } from './chunk-FFTZYNL4.mjs';
|
|
2
|
-
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
5
|
-
export { PptxI18nProvider, getAnimationInitialStyle } from './chunk-
|
|
2
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-MMBLGDHD.mjs';
|
|
3
|
+
import './chunk-J4NOGC3R.mjs';
|
|
4
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-I5WQFYAK.mjs';
|
|
5
|
+
export { PptxI18nProvider, getAnimationInitialStyle } from './chunk-N6BJW23K.mjs';
|
|
6
6
|
import './chunk-UV2HVMKZ.mjs';
|
package/dist/no-i18next.mjs.br
CHANGED
|
Binary file
|
package/dist/no-i18next.mjs.gz
CHANGED
|
Binary file
|