pptx-react-viewer 4.76.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 +16 -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-SEIVQGH5.js → chunk-5CJHRYFK.js} +252 -227
- 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-PPOGAZ53.mjs → chunk-I5WQFYAK.mjs} +50 -26
- 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-OC4RP2CB.mjs → chunk-MMBLGDHD.mjs} +15 -36
- 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-XTYBIJ2S.js → chunk-USEEERPE.js} +584 -605
- 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/index.d.ts +21 -14
- 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 +14 -15
- 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 +21 -14
- 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/viewer/index.d.ts +7 -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 +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +2 -2
- 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-6GFSF2ML.js.br +0 -0
- package/dist/chunk-6GFSF2ML.js.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-OC4RP2CB.mjs.br +0 -0
- package/dist/chunk-OC4RP2CB.mjs.gz +0 -0
- package/dist/chunk-P2IEKYVG.js.br +0 -0
- package/dist/chunk-P2IEKYVG.js.gz +0 -0
- package/dist/chunk-PPOGAZ53.mjs.br +0 -0
- package/dist/chunk-PPOGAZ53.mjs.gz +0 -0
- package/dist/chunk-RMEWSJZU.mjs.br +0 -0
- package/dist/chunk-RMEWSJZU.mjs.gz +0 -0
- package/dist/chunk-SEIVQGH5.js.br +0 -0
- package/dist/chunk-SEIVQGH5.js.gz +0 -0
- package/dist/chunk-XTYBIJ2S.js.br +0 -0
- package/dist/chunk-XTYBIJ2S.js.gz +0 -0
- package/dist/chunk-Y53EC3JU.mjs.br +0 -0
- package/dist/chunk-Y53EC3JU.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -12,7 +12,7 @@ var aiAssistants = host.createAiAssistantRegistry({
|
|
|
12
12
|
var AiChatPanel = /* @__PURE__ */ react.lazy(async () => {
|
|
13
13
|
const [{ useChat }, { default: Panel }] = await Promise.all([
|
|
14
14
|
import('@ai-sdk/react'),
|
|
15
|
-
import('./AiChatPanel-
|
|
15
|
+
import('./AiChatPanel-YJ5R7PPW.js')
|
|
16
16
|
]);
|
|
17
17
|
function BoundAiChatPanel(props) {
|
|
18
18
|
return /* @__PURE__ */ jsxRuntime.jsx(Panel, { ...props, useChat });
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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, RibbonDisplayController, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, UseViewerBuildingBlocksActionsOptions, SlidesPaneLayoutGalleryRequest, CollaborationShellState, PptxAutosaveStatus, ViewerBuildingBlockActions } 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
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
|
-
import { PptxCoreProperties, PptxAnimationPreset, PptxNativeAnimation,
|
|
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';
|
|
7
7
|
import { CollaborationWriteBackState, CollaborationState } from 'ooxml-core/collab';
|
|
8
8
|
export { CollaborationState } from 'ooxml-core/collab';
|
|
9
9
|
import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
|
|
@@ -218,6 +218,12 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
218
218
|
onLoad?: (detail: ViewerLoadDetail) => void;
|
|
219
219
|
/** Fired once per distinct load failure, and for each failed Save / Save As, with a human-readable message. */
|
|
220
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;
|
|
221
227
|
/**
|
|
222
228
|
* Host override for the File ▸ Open action. When provided, the built-in
|
|
223
229
|
* native file picker is bypassed and this is invoked instead; the host is
|
|
@@ -952,12 +958,8 @@ interface TableStyleContext {
|
|
|
952
958
|
theme?: PptxTheme;
|
|
953
959
|
}
|
|
954
960
|
/** Identifies the element omitted after a React client render or lifecycle error. */
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
elementType: PptxElement['type'];
|
|
958
|
-
slideId?: string;
|
|
959
|
-
}
|
|
960
|
-
type ElementRenderErrorHandler = (error: Error, context: ElementRenderErrorContext) => void;
|
|
961
|
+
type ElementRenderErrorContext$1 = ElementRenderErrorContext;
|
|
962
|
+
type ElementRenderErrorHandler$1 = ElementRenderErrorHandler;
|
|
961
963
|
/** Wiring for Edit Points and the Freeform: Shape / Curve tools. */
|
|
962
964
|
interface OutlineAuthoringProps {
|
|
963
965
|
/** The shape in Edit Points mode, or null. */
|
|
@@ -983,7 +985,7 @@ interface ZoomViewport {
|
|
|
983
985
|
}
|
|
984
986
|
interface SlideCanvasProps {
|
|
985
987
|
/** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
|
|
986
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
988
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
987
989
|
/** The viewer-owned live channel; absent for static/custom non-collaborative canvases. */
|
|
988
990
|
livePatcher?: CollaborationLivePatcher;
|
|
989
991
|
registerInlineEditReader?: (elementId: string, read: () => InlineListReadResult) => () => void;
|
|
@@ -1125,7 +1127,7 @@ interface SlideCanvasProps {
|
|
|
1125
1127
|
}
|
|
1126
1128
|
interface SlidesPaneSidebarProps {
|
|
1127
1129
|
/** Reports an element omitted from a thumbnail; defaults to console.error. */
|
|
1128
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
1130
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1129
1131
|
slides: PptxSlide[];
|
|
1130
1132
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
1131
1133
|
activeSlideIndex: number;
|
|
@@ -1170,7 +1172,7 @@ interface SlidesPaneSidebarProps {
|
|
|
1170
1172
|
type AutosaveStatus = PptxAutosaveStatus;
|
|
1171
1173
|
interface UseViewerBuildingBlocksInput extends ViewportFitOptions, UseViewerBuildingBlocksActionsOptions {
|
|
1172
1174
|
/** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
|
|
1173
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
1175
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1174
1176
|
/** Optional collaboration, including a host-owned document and presence session. */
|
|
1175
1177
|
collaboration?: CollaborationInput;
|
|
1176
1178
|
/** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
|
|
@@ -1247,6 +1249,11 @@ interface ViewerBuildingBlocksResult {
|
|
|
1247
1249
|
* `describeCollaborationShellState` for a localised status line.
|
|
1248
1250
|
*/
|
|
1249
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;
|
|
1250
1257
|
/** Flat, self-contained props for the standalone `<Toolbar>` component. */
|
|
1251
1258
|
toolbarProps: ToolbarProps;
|
|
1252
1259
|
/** Flat, self-contained props for the standalone `<SlideCanvas>` component. */
|
|
@@ -1288,7 +1295,7 @@ declare function SlidesPaneSidebar(props: SlidesPaneSidebarProps): React$1__defa
|
|
|
1288
1295
|
*/
|
|
1289
1296
|
interface SlideThumbnailProps {
|
|
1290
1297
|
/** Reports an element omitted from this preview; defaults to console.error. */
|
|
1291
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
1298
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1292
1299
|
/** The slide to draw. A different slide object (every edit makes one) redraws it. */
|
|
1293
1300
|
slide: PptxSlide;
|
|
1294
1301
|
/** The slide's inherited layout and master elements, drawn beneath its own. */
|
|
@@ -1315,7 +1322,7 @@ interface SlideTemplateGalleryDialogProps {
|
|
|
1315
1322
|
}
|
|
1316
1323
|
declare function SlideTemplateGalleryDialog({ isOpen, onClose, onInsert, scheme }: SlideTemplateGalleryDialogProps): React$1__default.ReactElement | null;
|
|
1317
1324
|
interface SlideTemplatePreviewProps {
|
|
1318
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
1325
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
1319
1326
|
templateId: SlideTemplateId;
|
|
1320
1327
|
/** Optional deck scheme so the preview shows the deck's theme colours. */
|
|
1321
1328
|
scheme?: Record<string, string>;
|
|
@@ -1340,4 +1347,4 @@ declare function SlideTemplatePreview({ templateId, scheme, onElementRenderError
|
|
|
1340
1347
|
declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
1341
1348
|
|
|
1342
1349
|
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, Toolbar, ViewerThemeProvider, getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks, useViewerTheme };
|
|
1343
|
-
export type { CollaborationContextValue, ElementRenderErrorContext, ElementRenderErrorHandler, 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/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLWGPHJHC_js = require('./chunk-LWGPHJHC.js');
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
4
|
+
require('./chunk-3T5NEBOR.js');
|
|
5
|
+
var chunkUSEEERPE_js = require('./chunk-USEEERPE.js');
|
|
6
|
+
require('./chunk-VCNDY7HS.js');
|
|
7
|
+
var chunk5CJHRYFK_js = require('./chunk-5CJHRYFK.js');
|
|
8
|
+
var chunkAIA7CY5U_js = require('./chunk-AIA7CY5U.js');
|
|
9
9
|
require('./chunk-PIRHQTI4.js');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -156,97 +156,97 @@ Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkUSEEERPE_js.PowerPointViewer; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkUSEEERPE_js.SlideCanvas; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkUSEEERPE_js.SlideTemplateGalleryDialog; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkUSEEERPE_js.SlideTemplatePreview; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "SlideThumbnail", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkUSEEERPE_js.SlideThumbnail; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "SlidesPane", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkUSEEERPE_js.SlidesPaneSidebar; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkUSEEERPE_js.THEME_CATALOG; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "Toolbar", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkUSEEERPE_js.Toolbar; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkUSEEERPE_js.ViewerThemeProvider; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkUSEEERPE_js.defaultCssVars; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "defaultRadius", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkUSEEERPE_js.defaultRadius; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkUSEEERPE_js.defaultThemeColors; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkUSEEERPE_js.resolveThemeCatalogEntry; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkUSEEERPE_js.themeToCssVars; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkUSEEERPE_js.useViewerTheme; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkUSEEERPE_js.vermilionDarkColors; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
222
222
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkUSEEERPE_js.vermilionDarkTheme; }
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkUSEEERPE_js.vermilionLightColors; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
230
230
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkUSEEERPE_js.vermilionLightTheme; }
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkUSEEERPE_js.vermilionRadius; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunk5CJHRYFK_js.renderToCanvas; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunk5CJHRYFK_js.useViewerBuildingBlocks; }
|
|
244
244
|
});
|
|
245
245
|
Object.defineProperty(exports, "PptxI18nProvider", {
|
|
246
246
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkAIA7CY5U_js.PptxI18nProvider; }
|
|
248
248
|
});
|
|
249
249
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
250
250
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkAIA7CY5U_js.getAnimationInitialStyle; }
|
|
252
252
|
});
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import './chunk-
|
|
3
|
-
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-
|
|
4
|
-
import './chunk-
|
|
5
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
6
|
-
export { PptxI18nProvider, getAnimationInitialStyle } from './chunk-
|
|
2
|
+
import './chunk-JB37G6GW.mjs';
|
|
3
|
+
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';
|
|
4
|
+
import './chunk-J4NOGC3R.mjs';
|
|
5
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-I5WQFYAK.mjs';
|
|
6
|
+
export { PptxI18nProvider, getAnimationInitialStyle } from './chunk-N6BJW23K.mjs';
|
|
7
7
|
import './chunk-UV2HVMKZ.mjs';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollaborationRole, CollaborationConfig, HistoryTheme, PowerPointViewerAPI, ViewerCustomizationApi, PptxAutosaveStatus, ShapeAdjustmentHandleDescriptor, EditorHistoryController, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, InsertChartOptions, HyperlinkEditData, BuildingBlockResult, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, DocumentStorage, InlineTextDraftSink, ViewerMode, ShapeAdjustmentDragState, GestureKind, PointerLike, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, DeckWebfontProgress, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, ListConversionScope, MasterViewTarget, ViewportFitOptions, UseViewerBuildingBlocksActionsOptions, CollaborationInput, GoogleFontsOption, PptxLoadLimits, ToolbarActionId, SlidesPaneLayoutGalleryRequest, CollaborationShellState, RibbonDisplayController, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, ViewerBuildingBlockActions, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, DocumentSaveReason, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, AutosaveRecord, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerAutosaveStatus, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
1
|
+
import { CollaborationRole, CollaborationConfig, HistoryTheme, PowerPointViewerAPI, ViewerCustomizationApi, PptxAutosaveStatus, ShapeAdjustmentHandleDescriptor, EditorHistoryController, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, InsertChartOptions, HyperlinkEditData, BuildingBlockResult, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, ElementRenderErrorHandler, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, DocumentStorage, InlineTextDraftSink, ViewerMode, ShapeAdjustmentDragState, GestureKind, PointerLike, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, DeckWebfontProgress, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, ListConversionScope, MasterViewTarget, ViewportFitOptions, UseViewerBuildingBlocksActionsOptions, CollaborationInput, GoogleFontsOption, PptxLoadLimits, ToolbarActionId, SlidesPaneLayoutGalleryRequest, CollaborationShellState, CollaborationState, RibbonDisplayController, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, ViewerBuildingBlockActions, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, DocumentSaveReason, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, AutosaveRecord, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerAutosaveStatus, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
2
2
|
export { CINEMATIC_TRANSITION_KEYFRAMES, CollaborationConfig, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, DeviceOrientation, EASE, INSTANT, MOBILE_BREAKPOINT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, ResolvedDirection, ResolvedDirection8, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, SlideTransitionAnimations, TABLET_BREAKPOINT, TRANSITION_SPEED_DURATION_MS, TouchGestureCallbacks, VirtualizedRange, WHEEL_SPOKE_COUNTS, computeVirtualRange, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount } from 'ooxml-ui/pptx';
|
|
3
3
|
import { PptxSlide, PptxElement, PptxElementAnimation, TextStyle, PptxHeaderFooter, PptxTheme, PptxSlideMaster, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, ShapePptxElement, MergeShapeOperation, PptxSlideTransition, PptxAction, PptxModernCommentAuthor, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, MasterViewTab, PptxSlideLayout, PptxHandler, PptxLayoutOption, PptxLayoutPreview, PptxComment, ConnectorPptxElement, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme, PptxData, PptxHandlerSaveOptions, PptxSaveFormat, TextSegment, PptxModifyVerifier } from 'ooxml-core/pptx';
|
|
4
4
|
import { CollaborationWriteBackState } from 'ooxml-core/collab';
|
|
@@ -2086,13 +2086,7 @@ interface TableStyleContext {
|
|
|
2086
2086
|
tableStyleMap?: ParsedTableStyleMap;
|
|
2087
2087
|
theme?: PptxTheme;
|
|
2088
2088
|
}
|
|
2089
|
-
|
|
2090
|
-
interface ElementRenderErrorContext {
|
|
2091
|
-
elementId: string;
|
|
2092
|
-
elementType: PptxElement['type'];
|
|
2093
|
-
slideId?: string;
|
|
2094
|
-
}
|
|
2095
|
-
type ElementRenderErrorHandler = (error: Error, context: ElementRenderErrorContext) => void;
|
|
2089
|
+
type ElementRenderErrorHandler$1 = ElementRenderErrorHandler;
|
|
2096
2090
|
/** Wiring for Edit Points and the Freeform: Shape / Curve tools. */
|
|
2097
2091
|
interface OutlineAuthoringProps {
|
|
2098
2092
|
/** The shape in Edit Points mode, or null. */
|
|
@@ -2118,7 +2112,7 @@ interface ZoomViewport {
|
|
|
2118
2112
|
}
|
|
2119
2113
|
interface SlideCanvasProps {
|
|
2120
2114
|
/** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
|
|
2121
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
2115
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
2122
2116
|
/** The viewer-owned live channel; absent for static/custom non-collaborative canvases. */
|
|
2123
2117
|
livePatcher?: CollaborationLivePatcher;
|
|
2124
2118
|
registerInlineEditReader?: (elementId: string, read: () => InlineListReadResult) => () => void;
|
|
@@ -2260,7 +2254,7 @@ interface SlideCanvasProps {
|
|
|
2260
2254
|
}
|
|
2261
2255
|
interface SlidesPaneSidebarProps {
|
|
2262
2256
|
/** Reports an element omitted from a thumbnail; defaults to console.error. */
|
|
2263
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
2257
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
2264
2258
|
slides: PptxSlide[];
|
|
2265
2259
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
2266
2260
|
activeSlideIndex: number;
|
|
@@ -2354,7 +2348,7 @@ interface UseAutosaveResult {
|
|
|
2354
2348
|
declare function useAutosave(input: UseAutosaveInput): UseAutosaveResult;
|
|
2355
2349
|
interface UseViewerBuildingBlocksInput extends ViewportFitOptions, UseViewerBuildingBlocksActionsOptions {
|
|
2356
2350
|
/** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
|
|
2357
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
2351
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
2358
2352
|
/** Optional collaboration, including a host-owned document and presence session. */
|
|
2359
2353
|
collaboration?: CollaborationInput;
|
|
2360
2354
|
/** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
|
|
@@ -2431,6 +2425,11 @@ interface ViewerBuildingBlocksResult {
|
|
|
2431
2425
|
* `describeCollaborationShellState` for a localised status line.
|
|
2432
2426
|
*/
|
|
2433
2427
|
shellState: CollaborationShellState;
|
|
2428
|
+
/**
|
|
2429
|
+
* The shared `CollaborationState` of the room (`COLLABORATION_OFF` when not sharing), the
|
|
2430
|
+
* value `PowerPointViewer`'s `onCollaborationChange` reports, in every binding's blocks.
|
|
2431
|
+
*/
|
|
2432
|
+
collaborationState: CollaborationState;
|
|
2434
2433
|
/** Flat, self-contained props for the standalone `<Toolbar>` component. */
|
|
2435
2434
|
toolbarProps: ToolbarProps;
|
|
2436
2435
|
/** Flat, self-contained props for the standalone `<SlideCanvas>` component. */
|
|
@@ -4551,7 +4550,7 @@ interface UseAudienceModeInput {
|
|
|
4551
4550
|
*/
|
|
4552
4551
|
declare function useAudienceMode(input: UseAudienceModeInput): void;
|
|
4553
4552
|
interface PresentationTransitionOverlayProps {
|
|
4554
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
4553
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
4555
4554
|
/** The outgoing (old) slide to render in the overlay layer. */
|
|
4556
4555
|
outgoingSlide: PptxSlide;
|
|
4557
4556
|
/** Template/master elements that belong to the outgoing slide. */
|
|
@@ -4603,7 +4602,7 @@ interface PresentationTransitionOverlayProps {
|
|
|
4603
4602
|
}
|
|
4604
4603
|
declare function PresentationTransitionOverlay(props: PresentationTransitionOverlayProps): React$1.ReactElement;
|
|
4605
4604
|
interface MorphTransitionOverlayProps {
|
|
4606
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
4605
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
4607
4606
|
canvasSize: CanvasSize$1;
|
|
4608
4607
|
scale: number;
|
|
4609
4608
|
morphPlan: MorphTransitionPlan;
|
|
@@ -4624,14 +4623,14 @@ interface MorphTransitionOverlayProps {
|
|
|
4624
4623
|
}
|
|
4625
4624
|
declare function MorphTransitionOverlay({ canvasSize, scale, morphPlan, outgoingSlide, incomingSlide, containerRef, onElementRenderError }: MorphTransitionOverlayProps): React$1.ReactElement;
|
|
4626
4625
|
interface SlideLayerProps {
|
|
4627
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
4626
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
4628
4627
|
slide: PptxSlide;
|
|
4629
4628
|
templateElements: PptxElement[];
|
|
4630
4629
|
canvasSize: CanvasSize$1;
|
|
4631
4630
|
}
|
|
4632
4631
|
declare function SlideLayer({ slide, templateElements, canvasSize, onElementRenderError }: SlideLayerProps): React$1.ReactElement;
|
|
4633
4632
|
interface FragmentedTransitionLayerProps {
|
|
4634
|
-
onElementRenderError?: ElementRenderErrorHandler;
|
|
4633
|
+
onElementRenderError?: ElementRenderErrorHandler$1;
|
|
4635
4634
|
layer: FragmentedLayer;
|
|
4636
4635
|
slide: PptxSlide;
|
|
4637
4636
|
templateElements: PptxElement[];
|