pptx-react-viewer 4.55.0 → 4.56.1
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 +60 -0
- package/README.md +16 -1
- package/dist/ai.d.ts +17 -0
- package/dist/ai.js +11 -0
- package/dist/ai.js.br +2 -0
- package/dist/ai.js.gz +0 -0
- package/dist/ai.mjs +9 -0
- package/dist/ai.mjs.br +0 -0
- package/dist/ai.mjs.gz +0 -0
- package/dist/{chunk-EXSGJHOH.mjs → chunk-3CN33VMC.mjs} +3017 -3037
- package/dist/chunk-3CN33VMC.mjs.br +0 -0
- package/dist/chunk-3CN33VMC.mjs.gz +0 -0
- package/dist/chunk-F6WCYCHV.js +40 -0
- package/dist/chunk-F6WCYCHV.js.br +0 -0
- package/dist/chunk-F6WCYCHV.js.gz +0 -0
- package/dist/chunk-NE5JQMED.mjs +37 -0
- package/dist/chunk-NE5JQMED.mjs.br +0 -0
- package/dist/chunk-NE5JQMED.mjs.gz +0 -0
- package/dist/{chunk-OIQAJR57.js → chunk-OOBBI4DH.js} +106 -8
- package/dist/chunk-OOBBI4DH.js.br +0 -0
- package/dist/chunk-OOBBI4DH.js.gz +0 -0
- package/dist/{chunk-V7JICDSL.js → chunk-PAJZXF2Q.js} +3113 -3132
- package/dist/chunk-PAJZXF2Q.js.br +0 -0
- package/dist/chunk-PAJZXF2Q.js.gz +0 -0
- package/dist/{chunk-64BFLDBT.mjs → chunk-UMGVFMAW.mjs} +107 -9
- package/dist/chunk-UMGVFMAW.mjs.br +0 -0
- package/dist/chunk-UMGVFMAW.mjs.gz +0 -0
- package/dist/index.d.ts +95 -14
- package/dist/index.js +28 -23
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +64 -7
- package/dist/internals.js +80 -80
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +1 -1
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer-canvas.css +1 -1
- package/dist/pptx-viewer-canvas.css.br +0 -0
- package/dist/pptx-viewer-canvas.css.gz +0 -0
- package/dist/viewer/index.d.ts +20 -10
- package/dist/viewer/index.js +19 -18
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +3 -2
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +9 -4
- package/dist/chunk-64BFLDBT.mjs.br +0 -0
- package/dist/chunk-64BFLDBT.mjs.gz +0 -0
- package/dist/chunk-EXSGJHOH.mjs.br +0 -0
- package/dist/chunk-EXSGJHOH.mjs.gz +0 -0
- package/dist/chunk-OIQAJR57.js.br +0 -0
- package/dist/chunk-OIQAJR57.js.gz +0 -0
- package/dist/chunk-V7JICDSL.js.br +0 -0
- package/dist/chunk-V7JICDSL.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cloneTemplateElementsBySlideId, cloneSlide, cloneHistorySnapshot, MIN_ELEMENT_SIZE, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, useTranslation, partitionTemplateElements, isTemplateElementId, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, comparePresentation, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, stopAllPersistentAudio, buildSaveSlides, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, getImageEffectsOpacity, getImageEffectsFilter, getImageRenderStyle, cn, isEditableTextElement, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, getElementLabel, normalizeHexColor, makeCloneId, DEFAULT_TEXT_FONT_SIZE, buildPdfFromTiledImageData, GRID_SIZE, copyFormatFromElement, hasCopyableFormat, isImageTiled, getDuotoneColors, DEFAULT_STROKE_COLOR, DEFAULT_FILL_COLOR, buildCssGradientFromShapeStyle, getCropShapeClipPath, getElementTransform, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getImageSurfaceMaskStyle, getTextWarpStyle, getTextCompensationTransform, renderTextSegments, buildReactChartViewModel, renderChartElement, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, buildTextBody3DSceneStyle, rerouteConnectorsForMovedElements, applyReroutedConnectors, updateCellTextStyleInRawXml, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, buildNotesPdf, canvasToJpegData, applyFormatToElement, isPpactionUrl, parsePpactionUrl, getImageTilingStyle, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getAriaRoleDescription as getAriaRoleDescription$1, getAriaLabel as getAriaLabel$1, getAriaRole, DEFAULT_FONT_FAMILY, ACTION_BUTTON_PRESETS, isUrlSafe, safeOpenUrl as safeOpenUrl$1, substituteFieldText, HYPERLINK_COLOR } from './chunk-MR3ZSEHS.mjs';
|
|
2
|
-
import { defineThreeViewElement, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createCollaborationSessionController, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, createEditorHistoryController, historyTheme, crossedHistoryTheme, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, resolveMediaBookmarkTimesMs, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, resolveShowBackward, resolveShowForward, beginZoomExcursion, buildZoomTransitionOverride, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, INITIAL_FIND_REPLACE_SESSION, findReplaceSessionActions, visibleTemplateElements, createCollaborationLivePatcher, reportInlineTextDraft, initialInspectorOpen, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, GlyphOutlineFontCache, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, resolveInitialSlideIndex, pptxLoadErrorMessage, resolveAutosaveIntervalMs, createAutosaveController, saveAutosaveSnapshot, updateMasterViewElement, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canMergeShapes, canInteractWithElement, prepareHtml2CanvasClone, html2canvasCaptureScope, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, DEFAULT_VIEWER_OPTIONS, resolveImageResolutionScale, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, createAutosaveRecoveryController, discardAutosaveRecovery, probeAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, rasterResultToPngBlob, downloadBlob, elementPictureFilename, canEditElementPoints, resolveGoogleFontsCss2Base, selectTrustedEmbeddedFonts, resolveFontWeight, resolveFontItalic, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, dispatchEditorKey, isFeatureEnabled, parentSelection, textFontSizePtToPx, stepFontSizePt, textFontSizePxToPt, cycleSelectableElement, createCustomizationController, prepareElementForInsertion, slideSpaceElement, autosaveStatusKind, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, isKeyboardOpen, scopeLayoutOptionsToSlide, INITIAL_READ_ONLY_SESSION, readOnlySessionActions, applyReadOnlySessionEvent, readOnlyBannerVisible, readOnlyLocked, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, resolveCollaborationConfig, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, getResizeHandleHitAreaStyle, resolveElementInteractivity, getBackgroundAnimationState, getShapeEffectLayerPlacement, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, getShapeEffectAnimationLayerStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, resolvePalette as resolvePalette$1, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, deviceStrokeStageStyle, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, setPendingCaretPoint, resolveGroupDoubleClickTarget, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, contextMenuInspectorAnchor, savedPresentationFileName, deliverSavedPresentation, exportDeckJson, mapCustomizedEditorKey, isEditorTextInputTarget, groupElements, generateElementId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, planMergeShapes, applyMergeShapesPlan, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, createBlankSlide, insertSlidePaste, applySlidePasteTemplates, makeSlideId, insertedLayoutCompletion, buildSlideTemplateSlide, templateSchemeFromTheme, queueThemeWrite, needsOwnedSession, openOwnedCollaboration, resolveViewportFitOptions, editorViewportFitFor, calculateViewportFit, observeViewportClientSize, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, openUrlInNewTab, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, slideSpaceMembers, remapTextToSegments, getInlineEditorSelectionResult, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, createGestureController, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx as computeGridSpacingPx$1, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, rasterizeElement, cloneElementForPaste, applyPasteSpecialFormat, buildRasterPictureElement, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, writeBackReport, createSyncGate, observeExternalCollaborationReadiness, resolveHistoryDepth, lockExternalContentSetting, resolveAllowExternalContent, createBackstagePresentation, buildFieldSubstitutionContext, getImageColorWashStyle, attachRotateHandlePlacement, getSelectionControlArtworkStyle, getSelectionOutlineColor, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, getAnimationOpacity, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, buildSummaryZoomView, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, mapInlineEditorChord, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, chartFormatTargetFromEvent, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, getAriaRoleDescription, getAriaLabel, elementIdSelector, TOOLBAR_TABS, resolveGroupPressTarget, scrollInspectorSectionIntoView, computeScrollDelta, buildOutlinePrintJobDocument, printJobRasterFallback, applyThemeByPath, withHistoryTheme, withHistoryMasterThemes, writeThemeParts, loadedThemeName, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, withCellStyle, setCellText, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, createSnapshotTextPositions, resolvePresentationAction, getImageSvgFilters, getCachedNativeImageSize, probeNativeImageSize, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, svgLineCap, screenStrokeWidth, connectorWrapperTransform, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, modelDataToBlobUrl, resolveZoomNavigationTarget, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, isBulletMarkerSegment, resolveChartThreeViewSpec, applyChart3DDrag, applyChart3DSelect, canDrillDown, findChartPartTarget, withChartTitle, resolveSmartArtThreeViewSpec, measureSvgViewportRect, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, hasGlyphEnvelope, buildGlyphEnvelopeBlock, getWarpPath, isWedgeCalloutPresetShape, getAriaRole as getAriaRole$1, isElementActionable, buildSmartArtPresetData, classifyMediaType, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, planPrintJob, openPrintWindow, buildVectorPrintJobDocument, openPendingPrintWindow, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, publishLiveGeometry, rasterizeElementTiledToCanvas, clampGifDimensions, rasterResultToPngDataUrl, shouldConfirmExternalHyperlink, advanceChartMarkDrag, advanceChartValueDrag, resolveChartKind, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, findSmartArtNodeText, commitSmartArtNodeFill, commitSmartArtNodeText, groupIntoParagraphs as groupIntoParagraphs$1, createGlyphOutlineLookup, finishPrintWindow, buildRasterPrintJobDocument, applyMotionPathPreset, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, computeSmartArtElementLayout, flattenNodes, computeInlineEditorRect, smartArtNodeAtPoint, SMARTART_DEFAULT_PALETTE, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, centeredSvgTextLines, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, bringForward, sendBackward, bringToFront, sendToBack } from 'ooxml-ui/pptx';
|
|
2
|
+
import { defineThreeViewElement, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createCollaborationSessionController, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, createEditorHistoryController, historyTheme, crossedHistoryTheme, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, resolveMediaBookmarkTimesMs, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, resolveShowBackward, resolveShowForward, beginZoomExcursion, buildZoomTransitionOverride, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, INITIAL_FIND_REPLACE_SESSION, findReplaceSessionActions, visibleTemplateElements, createCollaborationLivePatcher, reportInlineTextDraft, initialInspectorOpen, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, GlyphOutlineFontCache, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, resolveInitialSlideIndex, pptxLoadErrorMessage, resolveAutosaveIntervalMs, createAutosaveController, saveAutosaveSnapshot, updateMasterViewElement, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canMergeShapes, canInteractWithElement, prepareHtml2CanvasClone, html2canvasCaptureScope, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, DEFAULT_VIEWER_OPTIONS, resolveImageResolutionScale, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, createAutosaveRecoveryController, discardAutosaveRecovery, probeAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, rasterResultToPngBlob, downloadBlob, elementPictureFilename, canEditElementPoints, resolveGoogleFontsCss2Base, selectTrustedEmbeddedFonts, resolveFontWeight, resolveFontItalic, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, dispatchEditorKey, isFeatureEnabled, parentSelection, textFontSizePtToPx, stepFontSizePt, textFontSizePxToPt, cycleSelectableElement, createCustomizationController, prepareElementForInsertion, slideSpaceElement, autosaveStatusKind, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, isKeyboardOpen, scopeLayoutOptionsToSlide, collaborationHistoryReady, bindCollaborationHistory, INITIAL_READ_ONLY_SESSION, readOnlySessionActions, applyReadOnlySessionEvent, readOnlyBannerVisible, readOnlyLocked, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, resolveCollaborationConfig, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, getResizeHandleHitAreaStyle, resolveElementInteractivity, getBackgroundAnimationState, getShapeEffectLayerPlacement, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, getShapeEffectAnimationLayerStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, resolvePalette as resolvePalette$1, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, deviceStrokeStageStyle, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, setPendingCaretPoint, resolveGroupDoubleClickTarget, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, contextMenuInspectorAnchor, savedPresentationFileName, deliverSavedPresentation, exportDeckJson, mapCustomizedEditorKey, isEditorTextInputTarget, groupElements, generateElementId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, planMergeShapes, applyMergeShapesPlan, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, createBlankSlide, insertSlidePaste, applySlidePasteTemplates, makeSlideId, insertedLayoutCompletion, buildSlideTemplateSlide, templateSchemeFromTheme, queueThemeWrite, needsOwnedSession, openOwnedCollaboration, resolveViewportFitOptions, editorViewportFitFor, calculateViewportFit, observeViewportClientSize, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, openUrlInNewTab, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, slideSpaceMembers, remapTextToSegments, getInlineEditorSelectionResult, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, createGestureController, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx as computeGridSpacingPx$1, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, rasterizeElement, cloneElementForPaste, applyPasteSpecialFormat, buildRasterPictureElement, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, writeBackReport, createSyncGate, observeExternalCollaborationReadiness, resolveHistoryDepth, lockExternalContentSetting, resolveAllowExternalContent, createBackstagePresentation, buildFieldSubstitutionContext, buildSlidesPaneFieldContext, buildSlidesPaneTableStyleContext, slidesPaneRehearsalTimings, openSlidesPaneLayoutGallery, getImageColorWashStyle, attachRotateHandlePlacement, getSelectionControlArtworkStyle, getSelectionOutlineColor, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, getAnimationOpacity, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, buildSummaryZoomView, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, mapInlineEditorChord, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, chartFormatTargetFromEvent, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, getAriaRoleDescription, getAriaLabel, elementIdSelector, TOOLBAR_TABS, resolveGroupPressTarget, scrollInspectorSectionIntoView, computeScrollDelta, buildOutlinePrintJobDocument, printJobRasterFallback, applyThemeByPath, withHistoryTheme, withHistoryMasterThemes, writeThemeParts, loadedThemeName, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, withCellStyle, getCellText, setCellText, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, createSnapshotTextPositions, resolvePresentationAction, getImageSvgFilters, getCachedNativeImageSize, probeNativeImageSize, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, svgLineCap, screenStrokeWidth, connectorWrapperTransform, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, modelDataToBlobUrl, resolveZoomNavigationTarget, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, isBulletMarkerSegment, resolveChartThreeViewSpec, applyChart3DDrag, applyChart3DSelect, canDrillDown, findChartPartTarget, withChartTitle, resolveSmartArtThreeViewSpec, measureSvgViewportRect, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, hasGlyphEnvelope, buildGlyphEnvelopeBlock, getWarpPath, isWedgeCalloutPresetShape, getAriaRole as getAriaRole$1, isElementActionable, buildSmartArtPresetData, classifyMediaType, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, planPrintJob, openPrintWindow, buildVectorPrintJobDocument, openPendingPrintWindow, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, publishLiveGeometry, rasterizeElementTiledToCanvas, clampGifDimensions, rasterResultToPngDataUrl, shouldConfirmExternalHyperlink, advanceChartMarkDrag, advanceChartValueDrag, resolveChartKind, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, findSmartArtNodeText, commitSmartArtNodeFill, commitSmartArtNodeText, groupIntoParagraphs as groupIntoParagraphs$1, createGlyphOutlineLookup, finishPrintWindow, buildRasterPrintJobDocument, applyMotionPathPreset, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, computeSmartArtElementLayout, flattenNodes, computeInlineEditorRect, smartArtNodeAtPoint, SMARTART_DEFAULT_PALETTE, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, centeredSvgTextLines, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, bringForward, sendBackward, bringToFront, sendToBack } from 'ooxml-ui/pptx';
|
|
3
3
|
export { DUOTONE_PRESETS, MOBILE_BREAKPOINT, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, clearAudienceContent, computeVirtualRange, downloadBlob, getSlideTransitionAnimations, loadAudienceContent, storeAudienceContent } from 'ooxml-ui/pptx';
|
|
4
4
|
import React17, { useRef, useState, useCallback, useEffect, useSyncExternalStore, useMemo, useContext, useLayoutEffect, createContext, useImperativeHandle, Suspense } from 'react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -93,6 +93,7 @@ function useYjsProvider({ config: inputConfig }) {
|
|
|
93
93
|
);
|
|
94
94
|
const state = useController(controller);
|
|
95
95
|
const signalingKey = config?.signaling?.join("\n");
|
|
96
|
+
const enabled = Boolean(config);
|
|
96
97
|
useEffect(() => {
|
|
97
98
|
if (!config) {
|
|
98
99
|
controller.stop();
|
|
@@ -114,7 +115,7 @@ function useYjsProvider({ config: inputConfig }) {
|
|
|
114
115
|
config?.authToken,
|
|
115
116
|
config?.transport,
|
|
116
117
|
signalingKey,
|
|
117
|
-
|
|
118
|
+
enabled
|
|
118
119
|
]);
|
|
119
120
|
const session = state.active ? controller.getSession() : null;
|
|
120
121
|
return {
|
|
@@ -912,6 +913,7 @@ function useEditorHistory(input) {
|
|
|
912
913
|
handleRedo,
|
|
913
914
|
resetHistory,
|
|
914
915
|
forgetHistory: history.forget,
|
|
916
|
+
attachCollaboration: history.attachCollaboration,
|
|
915
917
|
markDirty,
|
|
916
918
|
withoutUndoStep,
|
|
917
919
|
buildHistorySnapshot
|
|
@@ -5644,7 +5646,7 @@ function useCanvasInteractions(input) {
|
|
|
5644
5646
|
return;
|
|
5645
5647
|
}
|
|
5646
5648
|
const liveText = read?.snapshot.text ?? inlineEditingTextRef?.current ?? inlineEditingText;
|
|
5647
|
-
const committedText = transformCommittedText ? transformCommittedText(liveText) : liveText;
|
|
5649
|
+
const committedText = transformCommittedText ? transformCommittedText(liveText, el.text) : liveText;
|
|
5648
5650
|
const textPatch = buildInlineTextCommitPatch(
|
|
5649
5651
|
el,
|
|
5650
5652
|
committedText,
|
|
@@ -7116,7 +7118,7 @@ function createTableStructHandlers(input) {
|
|
|
7116
7118
|
if (!el || el.type !== "table") {
|
|
7117
7119
|
return;
|
|
7118
7120
|
}
|
|
7119
|
-
const text = transformCommittedText ? transformCommittedText(rawText) : rawText;
|
|
7121
|
+
const text = transformCommittedText ? transformCommittedText(rawText, getCellText(el, rowIndex, colIndex)) : rawText;
|
|
7120
7122
|
const updates = {};
|
|
7121
7123
|
if (el.tableData) {
|
|
7122
7124
|
updates.tableData = setCellText(el, rowIndex, colIndex, text).tableData;
|
|
@@ -9230,10 +9232,11 @@ function useSerialize(input) {
|
|
|
9230
9232
|
}
|
|
9231
9233
|
const pendingEditText = read?.snapshot.text ?? inlineEditingTextRef.current;
|
|
9232
9234
|
const pendingSnapshot = read?.snapshot ?? inlineEditingSnapshotRef?.current;
|
|
9235
|
+
const heldDeck = heldDeckRef?.current;
|
|
9233
9236
|
const pending = overlayPendingInlineEdit(
|
|
9234
9237
|
{
|
|
9235
|
-
slides:
|
|
9236
|
-
templateElementsBySlideId:
|
|
9238
|
+
slides: heldDeck?.slides ?? slides,
|
|
9239
|
+
templateElementsBySlideId: heldDeck?.templateElementsBySlideId ?? templateElementsBySlideId,
|
|
9237
9240
|
activeSlideIndex,
|
|
9238
9241
|
editTemplateMode,
|
|
9239
9242
|
masterViewTarget,
|
|
@@ -9311,6 +9314,7 @@ function useSerialize(input) {
|
|
|
9311
9314
|
editTemplateMode,
|
|
9312
9315
|
masterViewTarget,
|
|
9313
9316
|
handlerRef,
|
|
9317
|
+
heldDeckRef,
|
|
9314
9318
|
inlineEditingElementIdRef,
|
|
9315
9319
|
inlineEditingTextRef,
|
|
9316
9320
|
inlineEditingSnapshotRef,
|
|
@@ -11988,6 +11992,70 @@ function buildCanvasProps(input) {
|
|
|
11988
11992
|
}
|
|
11989
11993
|
};
|
|
11990
11994
|
}
|
|
11995
|
+
function useSlidesPaneProps({
|
|
11996
|
+
state,
|
|
11997
|
+
slides,
|
|
11998
|
+
canEdit,
|
|
11999
|
+
activeSlideIndex,
|
|
12000
|
+
slideSectionGroups,
|
|
12001
|
+
slideOps,
|
|
12002
|
+
sectionOps,
|
|
12003
|
+
recordedTimings,
|
|
12004
|
+
onOpenLayoutGallery
|
|
12005
|
+
}) {
|
|
12006
|
+
const { setActiveSlideIndex, setIsSlidesPaneOpen } = state;
|
|
12007
|
+
const fieldContext = useMemo(
|
|
12008
|
+
() => buildSlidesPaneFieldContext({
|
|
12009
|
+
headerFooter: state.headerFooter,
|
|
12010
|
+
customProperties: state.customProperties,
|
|
12011
|
+
firstSlideNumber: state.firstSlideNumber
|
|
12012
|
+
}),
|
|
12013
|
+
[state.headerFooter, state.customProperties, state.firstSlideNumber]
|
|
12014
|
+
);
|
|
12015
|
+
const tableStyleContext = useMemo(
|
|
12016
|
+
() => buildSlidesPaneTableStyleContext(state.theme, state.tableStyleMap),
|
|
12017
|
+
[state.theme, state.tableStyleMap]
|
|
12018
|
+
);
|
|
12019
|
+
const rehearsalTimings = useMemo(
|
|
12020
|
+
() => slidesPaneRehearsalTimings(recordedTimings),
|
|
12021
|
+
[recordedTimings]
|
|
12022
|
+
);
|
|
12023
|
+
const onOpenLayoutForSlide = useCallback(
|
|
12024
|
+
(slideIndex, x, y) => {
|
|
12025
|
+
openSlidesPaneLayoutGallery({ slideIndex, x, y }, setActiveSlideIndex, onOpenLayoutGallery);
|
|
12026
|
+
},
|
|
12027
|
+
[setActiveSlideIndex, onOpenLayoutGallery]
|
|
12028
|
+
);
|
|
12029
|
+
const onCollapse = useCallback(() => setIsSlidesPaneOpen(false), [setIsSlidesPaneOpen]);
|
|
12030
|
+
return {
|
|
12031
|
+
slides,
|
|
12032
|
+
templateElementsBySlideId: state.templateElementsBySlideId,
|
|
12033
|
+
activeSlideIndex,
|
|
12034
|
+
canvasSize: state.canvasSize,
|
|
12035
|
+
sectionGroups: slideSectionGroups,
|
|
12036
|
+
isOpen: state.isSlidesPaneOpen,
|
|
12037
|
+
canEdit,
|
|
12038
|
+
onSelectSlide: setActiveSlideIndex,
|
|
12039
|
+
onSlideContextMenu: slideOps.handleSlideContextMenu,
|
|
12040
|
+
onMoveSlide: slideOps.handleMoveSlide,
|
|
12041
|
+
onAddSlide: slideOps.handleAddSlide,
|
|
12042
|
+
onAddSlideAfter: slideOps.handleAddSlideAfter,
|
|
12043
|
+
onDuplicateSlides: slideOps.handleDuplicateSlides,
|
|
12044
|
+
onDeleteSlides: slideOps.handleDeleteSlides,
|
|
12045
|
+
onHideSlides: slideOps.handleToggleHideSlides,
|
|
12046
|
+
onOpenLayoutForSlide,
|
|
12047
|
+
onCollapse,
|
|
12048
|
+
onAddSection: sectionOps.addSection,
|
|
12049
|
+
onRenameSection: sectionOps.renameSection,
|
|
12050
|
+
onDeleteSection: sectionOps.deleteSection,
|
|
12051
|
+
onMoveSectionUp: sectionOps.moveSectionUp,
|
|
12052
|
+
onMoveSectionDown: sectionOps.moveSectionDown,
|
|
12053
|
+
onToggleSectionCollapse: sectionOps.toggleSectionCollapse,
|
|
12054
|
+
rehearsalTimings,
|
|
12055
|
+
fieldContext,
|
|
12056
|
+
tableStyleContext
|
|
12057
|
+
};
|
|
12058
|
+
}
|
|
11991
12059
|
|
|
11992
12060
|
// src/viewer/hooks/createReviewCommentsHost.ts
|
|
11993
12061
|
function createReviewCommentsHost(input) {
|
|
@@ -12462,7 +12530,7 @@ function RemoteSelectionOverlay({
|
|
|
12462
12530
|
)) });
|
|
12463
12531
|
}
|
|
12464
12532
|
function useCollaborationDocumentSync(input) {
|
|
12465
|
-
const { collaboration, ...state } = input;
|
|
12533
|
+
const { collaboration, history, ...state } = input;
|
|
12466
12534
|
const latest = useRef(input);
|
|
12467
12535
|
latest.current = input;
|
|
12468
12536
|
const getSourceBytes = useCallback(() => {
|
|
@@ -12481,6 +12549,20 @@ function useCollaborationDocumentSync(input) {
|
|
|
12481
12549
|
}
|
|
12482
12550
|
}, []);
|
|
12483
12551
|
const isConnected = config?.externalSession ? Boolean(collaboration?.doc) : collaboration?.status === "connected";
|
|
12552
|
+
const historyReady = collaborationHistoryReady({
|
|
12553
|
+
hasDoc: Boolean(doc),
|
|
12554
|
+
external: Boolean(config?.externalSession),
|
|
12555
|
+
connected: isConnected && !config?.externalSession,
|
|
12556
|
+
synced: collaboration?.synced ?? false,
|
|
12557
|
+
viewer: config?.role === "viewer"
|
|
12558
|
+
});
|
|
12559
|
+
const attachCollaboration = history?.attachCollaboration;
|
|
12560
|
+
useEffect(() => {
|
|
12561
|
+
if (!attachCollaboration || !doc || !historyReady) {
|
|
12562
|
+
return;
|
|
12563
|
+
}
|
|
12564
|
+
return bindCollaborationHistory({ attachCollaboration }, doc, collabModules.loadYjs);
|
|
12565
|
+
}, [attachCollaboration, doc, historyReady]);
|
|
12484
12566
|
useYjsDocumentSync({
|
|
12485
12567
|
...state,
|
|
12486
12568
|
doc: collaboration?.doc ?? null,
|
|
@@ -12517,6 +12599,7 @@ function useViewerBuildingBlocksCollaboration(input) {
|
|
|
12517
12599
|
});
|
|
12518
12600
|
useCollaborationDocumentSync({
|
|
12519
12601
|
collaboration,
|
|
12602
|
+
history: input.core.history,
|
|
12520
12603
|
content: input.content,
|
|
12521
12604
|
slides: state.slides,
|
|
12522
12605
|
setSlides: state.setSlides,
|
|
@@ -12621,7 +12704,7 @@ function useViewerBuildingBlocksCore(input) {
|
|
|
12621
12704
|
setEditTemplateMode: state.setEditTemplateMode,
|
|
12622
12705
|
setHeaderFooter: state.setHeaderFooter
|
|
12623
12706
|
});
|
|
12624
|
-
const { gridSpacingPx, visibleSlideIndexes, masterPseudoSlide } = useDerivedSlideState({
|
|
12707
|
+
const { gridSpacingPx, visibleSlideIndexes, masterPseudoSlide, slideSectionGroups } = useDerivedSlideState({
|
|
12625
12708
|
slides,
|
|
12626
12709
|
sections: state.sections,
|
|
12627
12710
|
customShows: state.customShows,
|
|
@@ -12680,6 +12763,7 @@ function useViewerBuildingBlocksCore(input) {
|
|
|
12680
12763
|
setExitModeHandler,
|
|
12681
12764
|
masterPseudoSlide,
|
|
12682
12765
|
gridSpacingPx,
|
|
12766
|
+
slideSectionGroups,
|
|
12683
12767
|
// Multiplied against the pre-existing 2x baseline; see the matching
|
|
12684
12768
|
// comment in `PowerPointViewer.tsx`.
|
|
12685
12769
|
imageExportScale: 2 * resolveImageResolutionScale(viewerOptions),
|
|
@@ -13009,7 +13093,8 @@ function useViewerBuildingBlocks(input) {
|
|
|
13009
13093
|
onSlideCountChange,
|
|
13010
13094
|
onOpenSettings,
|
|
13011
13095
|
onOpenHeaderFooter,
|
|
13012
|
-
onOpenShareDialog
|
|
13096
|
+
onOpenShareDialog,
|
|
13097
|
+
onOpenLayoutGallery
|
|
13013
13098
|
} = input;
|
|
13014
13099
|
const collaborationConfig = resolveCollaborationConfig(input.collaboration);
|
|
13015
13100
|
const [collaborationReadOnly, setCollaborationReadOnly] = useState(Boolean(collaborationConfig));
|
|
@@ -13057,6 +13142,7 @@ function useViewerBuildingBlocks(input) {
|
|
|
13057
13142
|
presentation,
|
|
13058
13143
|
masterPseudoSlide,
|
|
13059
13144
|
gridSpacingPx,
|
|
13145
|
+
slideSectionGroups,
|
|
13060
13146
|
viewerOptions
|
|
13061
13147
|
} = core;
|
|
13062
13148
|
const canEdit = resolveCollaborationShellEditability({
|
|
@@ -13163,6 +13249,17 @@ function useViewerBuildingBlocks(input) {
|
|
|
13163
13249
|
${url}`
|
|
13164
13250
|
});
|
|
13165
13251
|
canvasProps.collaborationOverlay = overlay;
|
|
13252
|
+
const slidesPaneProps = useSlidesPaneProps({
|
|
13253
|
+
state,
|
|
13254
|
+
slides,
|
|
13255
|
+
canEdit,
|
|
13256
|
+
activeSlideIndex,
|
|
13257
|
+
slideSectionGroups,
|
|
13258
|
+
slideOps: editorOps.slideOps,
|
|
13259
|
+
sectionOps: editorOps.sectionOps,
|
|
13260
|
+
recordedTimings: presentation.recordedTimings,
|
|
13261
|
+
onOpenLayoutGallery
|
|
13262
|
+
});
|
|
13166
13263
|
const shellState = useMemo(
|
|
13167
13264
|
() => resolveCollaborationShellState({
|
|
13168
13265
|
authorizedCanEdit: requestedCanEdit,
|
|
@@ -13187,6 +13284,7 @@ ${url}`
|
|
|
13187
13284
|
return {
|
|
13188
13285
|
toolbarProps,
|
|
13189
13286
|
canvasProps,
|
|
13287
|
+
slidesPaneProps,
|
|
13190
13288
|
mode,
|
|
13191
13289
|
loading,
|
|
13192
13290
|
error,
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React$1__default, { ReactNode, ReactElement } from 'react';
|
|
3
3
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
4
|
-
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, 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, CollaborationShellState, PptxAutosaveStatus } from 'ooxml-ui/pptx';
|
|
5
|
-
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, 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, 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';
|
|
4
|
+
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, 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';
|
|
5
|
+
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, 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';
|
|
6
|
+
import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
|
|
7
|
+
export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
|
|
8
|
+
import { PptxAiAssistant } from 'ooxml-ui/pptx/ai/host';
|
|
9
|
+
export { PptxAiAssistant } from 'ooxml-ui/pptx/ai/host';
|
|
6
10
|
import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
7
11
|
export { LOCALE_CATALOG, LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
8
12
|
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';
|
|
9
13
|
import { CollaborationWriteBackState, CollaborationState } from 'ooxml-core/collab';
|
|
10
14
|
export { CollaborationState } from 'ooxml-core/collab';
|
|
11
|
-
import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
|
|
12
|
-
export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
|
|
13
15
|
import { Doc } from 'yjs';
|
|
14
16
|
import { Options } from 'html2canvas-pro';
|
|
15
17
|
|
|
@@ -149,6 +151,19 @@ interface TableCellEditorState {
|
|
|
149
151
|
col: number;
|
|
150
152
|
}>;
|
|
151
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Groups slides into named sections for the slides pane sidebar.
|
|
156
|
+
* Corresponds to OOXML `p15:section` elements in `presentation.xml`.
|
|
157
|
+
*/
|
|
158
|
+
interface SlideSectionGroup {
|
|
159
|
+
id: string;
|
|
160
|
+
label: string;
|
|
161
|
+
slideIndexes: number[];
|
|
162
|
+
/** Section highlight color from p15:sectionPr. */
|
|
163
|
+
color?: string;
|
|
164
|
+
/** Whether the section should start collapsed (from p15:sectionPr). */
|
|
165
|
+
defaultCollapsed?: boolean;
|
|
166
|
+
}
|
|
152
167
|
/** Identifies one of the ribbon-style toolbar tabs (home, insert, text, etc.). */
|
|
153
168
|
type ToolbarSection = 'file' | 'home' | 'insert' | 'text' | 'arrange' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
|
|
154
169
|
/** The active drawing/inking tool selected in the Draw toolbar tab. */
|
|
@@ -513,22 +528,30 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
513
528
|
ribbonAddIns?: readonly RibbonAddInTab[];
|
|
514
529
|
/**
|
|
515
530
|
* Opt in to the built-in AI assistant. When provided, a Sparkles toggle
|
|
516
|
-
* appears in the toolbar and opens a chat panel
|
|
517
|
-
*
|
|
518
|
-
*
|
|
531
|
+
* appears in the toolbar and opens a chat panel; when omitted, no AI icon
|
|
532
|
+
* renders and no AI code is loaded (the panel and its `@ai-sdk/react`
|
|
533
|
+
* dependency are `React.lazy`-imported only on first open).
|
|
519
534
|
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
535
|
+
* Pass a plain `PptxAiConfig` (supported and not deprecated), or the opaque
|
|
536
|
+
* handle `createAiAssistant(config)` returns (from `pptx-react-viewer/ai`, the
|
|
537
|
+
* opt-in entry that brings the chat panel). Both open the same panel. Only a
|
|
538
|
+
* value from `createAiAssistant` is read as a handle; any other value is a
|
|
539
|
+
* plain config, which the viewer does not validate. The config supplies the
|
|
540
|
+
* model connection (a backend `endpoint`, an in-browser `model`, or a custom
|
|
541
|
+
* `transport`) plus optional tool allow/deny lists and a write policy.
|
|
542
|
+
* Requires the optional `ai` and `@ai-sdk/react` peers.
|
|
523
543
|
*
|
|
524
544
|
* @example
|
|
525
545
|
* ```tsx
|
|
526
|
-
*
|
|
546
|
+
* import { createAiAssistant } from 'pptx-react-viewer/ai';
|
|
547
|
+
*
|
|
548
|
+
* const assistant = createAiAssistant({ connection: { kind: 'endpoint', api: '/api/chat' } });
|
|
549
|
+
* <PowerPointViewer content={bytes} ai={assistant} />
|
|
527
550
|
* ```
|
|
528
551
|
*
|
|
529
552
|
* @see {@link PptxAiConfig}
|
|
530
553
|
*/
|
|
531
|
-
ai?: PptxAiConfig;
|
|
554
|
+
ai?: PptxAiConfig | PptxAiAssistant;
|
|
532
555
|
/**
|
|
533
556
|
* Framework-neutral UI customisation. See docs/guide/customization.md.
|
|
534
557
|
* Unioned with `hiddenActions`. A new object replaces the whole
|
|
@@ -1070,6 +1093,49 @@ interface SlideCanvasProps {
|
|
|
1070
1093
|
outlineAuthoring?: OutlineAuthoringProps;
|
|
1071
1094
|
}
|
|
1072
1095
|
//#endregion
|
|
1096
|
+
//#region src/viewer/components/slides-pane/types.d.ts
|
|
1097
|
+
interface SlidesPaneSidebarProps {
|
|
1098
|
+
slides: PptxSlide[];
|
|
1099
|
+
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
1100
|
+
activeSlideIndex: number;
|
|
1101
|
+
canvasSize: CanvasSize$1;
|
|
1102
|
+
sectionGroups: SlideSectionGroup[];
|
|
1103
|
+
isOpen: boolean;
|
|
1104
|
+
canEdit: boolean;
|
|
1105
|
+
onSelectSlide: (index: number) => void;
|
|
1106
|
+
onSlideContextMenu: (e: React$1__default.MouseEvent, index: number) => void;
|
|
1107
|
+
onMoveSlide: (fromIndex: number, toIndex: number) => void;
|
|
1108
|
+
onAddSlide: () => void;
|
|
1109
|
+
onAddSlideAfter: (index: number) => void;
|
|
1110
|
+
onDuplicateSlides: (indexes: number[]) => void;
|
|
1111
|
+
onDeleteSlides: (indexes: number[]) => void;
|
|
1112
|
+
onHideSlides: (indexes: number[]) => void;
|
|
1113
|
+
/** Makes `index` active, then opens the Layout gallery anchored at (x, y). */
|
|
1114
|
+
onOpenLayoutForSlide: (index: number, x: number, y: number) => void;
|
|
1115
|
+
onCollapse: () => void;
|
|
1116
|
+
onAddSection?: (name: string, afterSlideIndex: number) => void;
|
|
1117
|
+
onRenameSection?: (sectionId: string, newName: string) => void;
|
|
1118
|
+
onDeleteSection?: (sectionId: string) => void;
|
|
1119
|
+
onMoveSectionUp?: (sectionId: string) => void;
|
|
1120
|
+
onMoveSectionDown?: (sectionId: string) => void;
|
|
1121
|
+
/**
|
|
1122
|
+
* Persist the collapse flag onto the section model, so it round-trips
|
|
1123
|
+
* through save exactly as it does in the other four bindings.
|
|
1124
|
+
*/
|
|
1125
|
+
onToggleSectionCollapse?: (sectionId: string) => void;
|
|
1126
|
+
/** Recorded rehearsal timings in ms, keyed by slide index. */
|
|
1127
|
+
rehearsalTimings?: Record<number, number>;
|
|
1128
|
+
/** Width of the panel in pixels (for resizable panels). */
|
|
1129
|
+
panelWidth?: number;
|
|
1130
|
+
/**
|
|
1131
|
+
* Presentation-wide field context (date/header/footer/custom props) so
|
|
1132
|
+
* thumbnails substitute the same field placeholders as the canvas.
|
|
1133
|
+
*/
|
|
1134
|
+
fieldContext?: FieldSubstitutionContext;
|
|
1135
|
+
/** Theme + table style map so thumbnails resolve table band/header colours. */
|
|
1136
|
+
tableStyleContext?: TableStyleContext;
|
|
1137
|
+
}
|
|
1138
|
+
//#endregion
|
|
1073
1139
|
//#region src/viewer/hooks/useAutosave.d.ts
|
|
1074
1140
|
/** The one autosave status every binding renders (`PptxAutosaveStatus` in `ooxml-ui/pptx`). */
|
|
1075
1141
|
type AutosaveStatus = PptxAutosaveStatus;
|
|
@@ -1128,6 +1194,12 @@ interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
|
|
|
1128
1194
|
onOpenHeaderFooter?: () => void;
|
|
1129
1195
|
/** Fired by the toolbar's "Share" button; the host owns rendering that dialog. */
|
|
1130
1196
|
onOpenShareDialog?: () => void;
|
|
1197
|
+
/**
|
|
1198
|
+
* Fired by the "Layout" entry of a slide's context menu in `<SlidesPane>`,
|
|
1199
|
+
* after that slide is made active; the host owns rendering the Layout
|
|
1200
|
+
* gallery (for example anchored at the click point).
|
|
1201
|
+
*/
|
|
1202
|
+
onOpenLayoutGallery?: (request: SlidesPaneLayoutGalleryRequest) => void;
|
|
1131
1203
|
}
|
|
1132
1204
|
interface ViewerBuildingBlocksResult {
|
|
1133
1205
|
/** Connection and presence state for a custom status bar, or null when disabled. */
|
|
@@ -1143,6 +1215,12 @@ interface ViewerBuildingBlocksResult {
|
|
|
1143
1215
|
toolbarProps: ToolbarProps;
|
|
1144
1216
|
/** Flat, self-contained props for the standalone `<SlideCanvas>` component. */
|
|
1145
1217
|
canvasProps: SlideCanvasProps;
|
|
1218
|
+
/**
|
|
1219
|
+
* Flat, self-contained props for the standalone `<SlidesPane>` component:
|
|
1220
|
+
* the slide thumbnail rail `PowerPointViewer` shows beside the canvas.
|
|
1221
|
+
* Its open state is the toolbar's sidebar toggle.
|
|
1222
|
+
*/
|
|
1223
|
+
slidesPaneProps: SlidesPaneSidebarProps;
|
|
1146
1224
|
/** Current viewer mode (edit, view, present, master). */
|
|
1147
1225
|
mode: ViewerMode;
|
|
1148
1226
|
/** True while the initial parse of `content` is in progress. */
|
|
@@ -1162,6 +1240,9 @@ declare function Toolbar(p: ToolbarProps): React$1__default.ReactElement;
|
|
|
1162
1240
|
//#region src/viewer/components/SlideCanvas.d.ts
|
|
1163
1241
|
declare function SlideCanvas(props: SlideCanvasProps): React$1.JSX.Element;
|
|
1164
1242
|
//#endregion
|
|
1243
|
+
//#region src/viewer/components/SlidesPaneSidebar.d.ts
|
|
1244
|
+
declare function SlidesPaneSidebar({ slides, templateElementsBySlideId, activeSlideIndex, canvasSize, sectionGroups, isOpen, canEdit, onSelectSlide, onSlideContextMenu, onMoveSlide, onAddSlide, onAddSlideAfter, onDuplicateSlides, onDeleteSlides, onHideSlides, onOpenLayoutForSlide, onCollapse: _onCollapse, onAddSection, onRenameSection, onDeleteSection, onMoveSectionUp, onMoveSectionDown, onToggleSectionCollapse, rehearsalTimings, panelWidth, fieldContext, tableStyleContext }: SlidesPaneSidebarProps): React$1__default.ReactElement | null;
|
|
1245
|
+
//#endregion
|
|
1165
1246
|
//#region src/viewer/components/SlideTemplateGalleryDialog.d.ts
|
|
1166
1247
|
interface SlideTemplateGalleryDialogProps {
|
|
1167
1248
|
isOpen: boolean;
|
|
@@ -1199,5 +1280,5 @@ declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePrevi
|
|
|
1199
1280
|
*/
|
|
1200
1281
|
declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
1201
1282
|
|
|
1202
|
-
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks, useViewerTheme };
|
|
1203
|
-
export type { CollaborationContextValue, PowerPointViewerHandle, PowerPointViewerProps, PptxI18nProviderProps, PptxTranslate, PptxTranslateParams, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplatePreviewProps, ToolbarProps, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerLoadDetail };
|
|
1283
|
+
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlidesPaneSidebar as SlidesPane, Toolbar, ViewerThemeProvider, getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks, useViewerTheme };
|
|
1284
|
+
export type { CollaborationContextValue, PowerPointViewerHandle, PowerPointViewerProps, PptxI18nProviderProps, PptxTranslate, PptxTranslateParams, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplatePreviewProps, SlidesPaneSidebarProps as SlidesPaneProps, ToolbarProps, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerLoadDetail };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var chunkPAJZXF2Q_js = require('./chunk-PAJZXF2Q.js');
|
|
4
|
+
require('./chunk-F6WCYCHV.js');
|
|
5
|
+
var chunkOOBBI4DH_js = require('./chunk-OOBBI4DH.js');
|
|
5
6
|
var chunk5KFSMXI4_js = require('./chunk-5KFSMXI4.js');
|
|
6
7
|
require('./chunk-PIRHQTI4.js');
|
|
7
8
|
var pptx = require('ooxml-ui/pptx');
|
|
@@ -11,87 +12,91 @@ var i18n = require('ooxml-ui/pptx/i18n');
|
|
|
11
12
|
|
|
12
13
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkPAJZXF2Q_js.PowerPointViewer; }
|
|
15
16
|
});
|
|
16
17
|
Object.defineProperty(exports, "PptxI18nProvider", {
|
|
17
18
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkPAJZXF2Q_js.PptxI18nProvider; }
|
|
19
20
|
});
|
|
20
21
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
21
22
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkPAJZXF2Q_js.SlideCanvas; }
|
|
23
24
|
});
|
|
24
25
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
25
26
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkPAJZXF2Q_js.SlideTemplateGalleryDialog; }
|
|
27
28
|
});
|
|
28
29
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkPAJZXF2Q_js.SlideTemplatePreview; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "SlidesPane", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkPAJZXF2Q_js.SlidesPaneSidebar; }
|
|
31
36
|
});
|
|
32
37
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
33
38
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkPAJZXF2Q_js.THEME_CATALOG; }
|
|
35
40
|
});
|
|
36
41
|
Object.defineProperty(exports, "Toolbar", {
|
|
37
42
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkPAJZXF2Q_js.Toolbar; }
|
|
39
44
|
});
|
|
40
45
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
41
46
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkPAJZXF2Q_js.ViewerThemeProvider; }
|
|
43
48
|
});
|
|
44
49
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
45
50
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkPAJZXF2Q_js.defaultCssVars; }
|
|
47
52
|
});
|
|
48
53
|
Object.defineProperty(exports, "defaultRadius", {
|
|
49
54
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkPAJZXF2Q_js.defaultRadius; }
|
|
51
56
|
});
|
|
52
57
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
53
58
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkPAJZXF2Q_js.defaultThemeColors; }
|
|
55
60
|
});
|
|
56
61
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
57
62
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkPAJZXF2Q_js.resolveThemeCatalogEntry; }
|
|
59
64
|
});
|
|
60
65
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
61
66
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkPAJZXF2Q_js.themeToCssVars; }
|
|
63
68
|
});
|
|
64
69
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
65
70
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkPAJZXF2Q_js.useViewerTheme; }
|
|
67
72
|
});
|
|
68
73
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
69
74
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkPAJZXF2Q_js.vermilionDarkColors; }
|
|
71
76
|
});
|
|
72
77
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
73
78
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkPAJZXF2Q_js.vermilionDarkTheme; }
|
|
75
80
|
});
|
|
76
81
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
77
82
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkPAJZXF2Q_js.vermilionLightColors; }
|
|
79
84
|
});
|
|
80
85
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
81
86
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkPAJZXF2Q_js.vermilionLightTheme; }
|
|
83
88
|
});
|
|
84
89
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
85
90
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkPAJZXF2Q_js.vermilionRadius; }
|
|
87
92
|
});
|
|
88
93
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
89
94
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkOOBBI4DH_js.renderToCanvas; }
|
|
91
96
|
});
|
|
92
97
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
93
98
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkOOBBI4DH_js.useViewerBuildingBlocks; }
|
|
95
100
|
});
|
|
96
101
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
97
102
|
enumerable: true,
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-
|
|
2
|
-
|
|
1
|
+
export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-3CN33VMC.mjs';
|
|
2
|
+
import './chunk-NE5JQMED.mjs';
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-UMGVFMAW.mjs';
|
|
3
4
|
export { getAnimationInitialStyle } from './chunk-MR3ZSEHS.mjs';
|
|
4
5
|
import './chunk-UV2HVMKZ.mjs';
|
|
5
6
|
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, 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 'ooxml-ui/pptx';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|