pptx-react-viewer 4.1.0 → 4.1.2
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 +42 -0
- package/dist/{AiChatPanel-C3ACRWOY.mjs → AiChatPanel-3MBRZW26.mjs} +3 -3
- package/dist/AiChatPanel-3MBRZW26.mjs.br +0 -0
- package/dist/AiChatPanel-3MBRZW26.mjs.gz +0 -0
- package/dist/{AiChatPanel-GQNSKMP6.js → AiChatPanel-H5OF3KBZ.js} +24 -24
- package/dist/AiChatPanel-H5OF3KBZ.js.br +0 -0
- package/dist/AiChatPanel-H5OF3KBZ.js.gz +0 -0
- package/dist/{Area3DChartScene-4TPNRYXS.mjs → Area3DChartScene-4NQEW5KF.mjs} +1 -1
- package/dist/{Area3DChartScene-4TPNRYXS.mjs.br → Area3DChartScene-4NQEW5KF.mjs.br} +0 -0
- package/dist/Area3DChartScene-4NQEW5KF.mjs.gz +0 -0
- package/dist/{Area3DChartScene-3I6KB2DN.js → Area3DChartScene-VN5RQBRM.js} +2 -2
- package/dist/Area3DChartScene-VN5RQBRM.js.br +0 -0
- package/dist/Area3DChartScene-VN5RQBRM.js.gz +0 -0
- package/dist/{Bar3DChartScene-ZSCATOYF.js → Bar3DChartScene-AKC3DWD5.js} +2 -2
- package/dist/Bar3DChartScene-AKC3DWD5.js.br +0 -0
- package/dist/Bar3DChartScene-AKC3DWD5.js.gz +0 -0
- package/dist/{Bar3DChartScene-V45IUIT7.mjs → Bar3DChartScene-HDRJUZ3U.mjs} +1 -1
- package/dist/{Bar3DChartScene-V45IUIT7.mjs.br → Bar3DChartScene-HDRJUZ3U.mjs.br} +0 -0
- package/dist/Bar3DChartScene-HDRJUZ3U.mjs.gz +0 -0
- package/dist/{Line3DChartScene-DK55LQ2D.js → Line3DChartScene-3FMVK4VO.js} +2 -2
- package/dist/Line3DChartScene-3FMVK4VO.js.br +0 -0
- package/dist/Line3DChartScene-3FMVK4VO.js.gz +0 -0
- package/dist/{Line3DChartScene-DCQJEZK6.mjs → Line3DChartScene-IVR5DJS6.mjs} +1 -1
- package/dist/{Line3DChartScene-DCQJEZK6.mjs.br → Line3DChartScene-IVR5DJS6.mjs.br} +0 -0
- package/dist/Line3DChartScene-IVR5DJS6.mjs.gz +0 -0
- package/dist/{Model3DScene-SA5XMR2D.mjs → Model3DScene-RTRR7W5G.mjs} +1 -1
- package/dist/Model3DScene-RTRR7W5G.mjs.br +0 -0
- package/dist/Model3DScene-RTRR7W5G.mjs.gz +0 -0
- package/dist/{Model3DScene-2WNP4XBP.js → Model3DScene-ZDQ6L7IA.js} +2 -2
- package/dist/Model3DScene-ZDQ6L7IA.js.br +0 -0
- package/dist/Model3DScene-ZDQ6L7IA.js.gz +0 -0
- package/dist/{PieChart3DScene-Q75D66HS.js → PieChart3DScene-KTA4QWWO.js} +2 -2
- package/dist/PieChart3DScene-KTA4QWWO.js.br +0 -0
- package/dist/PieChart3DScene-KTA4QWWO.js.gz +0 -0
- package/dist/{PieChart3DScene-HC2ZWL42.mjs → PieChart3DScene-PV7CLRBQ.mjs} +1 -1
- package/dist/PieChart3DScene-PV7CLRBQ.mjs.br +0 -0
- package/dist/PieChart3DScene-PV7CLRBQ.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-JRMX4PN5.mjs → SurfaceChart3DScene-3XRDIWM3.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-JRMX4PN5.mjs.br → SurfaceChart3DScene-3XRDIWM3.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-3XRDIWM3.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-ODS5E6ZG.js → SurfaceChart3DScene-LGKTU3KM.js} +2 -2
- package/dist/SurfaceChart3DScene-LGKTU3KM.js.br +0 -0
- package/dist/SurfaceChart3DScene-LGKTU3KM.js.gz +0 -0
- package/dist/{chunk-MQHMMB6V.js → chunk-2YZHPPKB.js} +5 -5
- package/dist/chunk-2YZHPPKB.js.br +0 -0
- package/dist/chunk-2YZHPPKB.js.gz +0 -0
- package/dist/{chunk-25CABWCR.mjs → chunk-5HWRX5WI.mjs} +20 -14
- package/dist/chunk-5HWRX5WI.mjs.br +0 -0
- package/dist/chunk-5HWRX5WI.mjs.gz +0 -0
- package/dist/{chunk-Q6QJOD56.mjs → chunk-7YLUB3VE.mjs} +84 -112
- package/dist/chunk-7YLUB3VE.mjs.br +0 -0
- package/dist/{chunk-Q6QJOD56.mjs.gz → chunk-7YLUB3VE.mjs.gz} +0 -0
- package/dist/{chunk-SK2CZQ6P.js → chunk-FRSFVE2I.js} +84 -112
- package/dist/chunk-FRSFVE2I.js.br +0 -0
- package/dist/{chunk-SK2CZQ6P.js.gz → chunk-FRSFVE2I.js.gz} +0 -0
- package/dist/{chunk-NR4MQJM5.js → chunk-HFSWAAY4.js} +1076 -1070
- package/dist/chunk-HFSWAAY4.js.br +0 -0
- package/dist/chunk-HFSWAAY4.js.gz +0 -0
- package/dist/{chunk-GRAARMUW.mjs → chunk-KLIZF4F6.mjs} +1 -1
- package/dist/chunk-KLIZF4F6.mjs.br +0 -0
- package/dist/chunk-KLIZF4F6.mjs.gz +0 -0
- package/dist/{chunk-WLWAYLL6.mjs → chunk-LP52C4PZ.mjs} +1 -1
- package/dist/chunk-LP52C4PZ.mjs.br +0 -0
- package/dist/chunk-LP52C4PZ.mjs.gz +0 -0
- package/dist/{chunk-PUALTXTU.js → chunk-MEAT7XDZ.js} +173 -173
- package/dist/chunk-MEAT7XDZ.js.br +0 -0
- package/dist/chunk-MEAT7XDZ.js.gz +0 -0
- package/dist/{chunk-A6JKOHSV.js → chunk-OHYMOFAS.js} +845 -803
- package/dist/chunk-OHYMOFAS.js.br +0 -0
- package/dist/chunk-OHYMOFAS.js.gz +0 -0
- package/dist/{chunk-3B6YIH4K.mjs → chunk-P4SKGHBS.mjs} +60 -18
- package/dist/chunk-P4SKGHBS.mjs.br +0 -0
- package/dist/chunk-P4SKGHBS.mjs.gz +0 -0
- package/dist/index.js +47 -47
- 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 +5 -0
- package/dist/internals.js +104 -104
- 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/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.js +26 -26
- 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-C3ACRWOY.mjs.br +0 -0
- package/dist/AiChatPanel-C3ACRWOY.mjs.gz +0 -0
- package/dist/AiChatPanel-GQNSKMP6.js.br +0 -0
- package/dist/AiChatPanel-GQNSKMP6.js.gz +0 -0
- package/dist/Area3DChartScene-3I6KB2DN.js.br +0 -0
- package/dist/Area3DChartScene-3I6KB2DN.js.gz +0 -0
- package/dist/Area3DChartScene-4TPNRYXS.mjs.gz +0 -0
- package/dist/Bar3DChartScene-V45IUIT7.mjs.gz +0 -0
- package/dist/Bar3DChartScene-ZSCATOYF.js.br +0 -0
- package/dist/Bar3DChartScene-ZSCATOYF.js.gz +0 -0
- package/dist/Line3DChartScene-DCQJEZK6.mjs.gz +0 -0
- package/dist/Line3DChartScene-DK55LQ2D.js.br +0 -0
- package/dist/Line3DChartScene-DK55LQ2D.js.gz +0 -0
- package/dist/Model3DScene-2WNP4XBP.js.br +0 -0
- package/dist/Model3DScene-2WNP4XBP.js.gz +0 -0
- package/dist/Model3DScene-SA5XMR2D.mjs.br +0 -0
- package/dist/Model3DScene-SA5XMR2D.mjs.gz +0 -0
- package/dist/PieChart3DScene-HC2ZWL42.mjs.br +0 -0
- package/dist/PieChart3DScene-HC2ZWL42.mjs.gz +0 -0
- package/dist/PieChart3DScene-Q75D66HS.js.br +0 -0
- package/dist/PieChart3DScene-Q75D66HS.js.gz +0 -0
- package/dist/SurfaceChart3DScene-JRMX4PN5.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-ODS5E6ZG.js.br +0 -0
- package/dist/SurfaceChart3DScene-ODS5E6ZG.js.gz +0 -0
- package/dist/chunk-25CABWCR.mjs.br +0 -0
- package/dist/chunk-25CABWCR.mjs.gz +0 -0
- package/dist/chunk-3B6YIH4K.mjs.br +0 -0
- package/dist/chunk-3B6YIH4K.mjs.gz +0 -0
- package/dist/chunk-A6JKOHSV.js.br +0 -0
- package/dist/chunk-A6JKOHSV.js.gz +0 -0
- package/dist/chunk-GRAARMUW.mjs.br +0 -0
- package/dist/chunk-GRAARMUW.mjs.gz +0 -0
- package/dist/chunk-MQHMMB6V.js.br +0 -0
- package/dist/chunk-MQHMMB6V.js.gz +0 -0
- package/dist/chunk-NR4MQJM5.js.br +0 -0
- package/dist/chunk-NR4MQJM5.js.gz +0 -0
- package/dist/chunk-PUALTXTU.js.br +0 -0
- package/dist/chunk-PUALTXTU.js.gz +0 -0
- package/dist/chunk-Q6QJOD56.mjs.br +0 -0
- package/dist/chunk-SK2CZQ6P.js.br +0 -0
- package/dist/chunk-WLWAYLL6.mjs.br +0 -0
- package/dist/chunk-WLWAYLL6.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, DEFAULT_FILL_COLOR, getCropShapeClipPath, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getImageSurfaceMaskStyle, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, MIN_ELEMENT_SIZE, buildTextBody3DSceneStyle, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, HYPERLINK_COLOR, cloneHistorySnapshot, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildPdfFromTiledImageData, GRID_SIZE, buildNotesPdf } from './chunk-
|
|
2
|
-
import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, getSelectionControlArtworkStyle, hasShapeProperties, normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, hasTextProperties, getSelectionOutlineColor, connectorWrapperTransform, getAriaRoleDescription, getAriaLabel, getAriaRole, resolveElementInteractivity, isEditableTextElement, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, shouldRenderHitTarget, elementHitTargetStyle, getImageEffectsOpacity, getImageEffectsFilter, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, ACTION_BUTTON_PRESETS, mediaTransportVisible, isInkElement, getGroupChildParentFill, getElementLabel, getResizeHandleHitAreaStyle, paintedStrokeWidth, buildCssGradientFromShapeStyle, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, getElementTransform, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, isImageLikeElement, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, isImageTiled, getImageColorWashStyle, readEditableText, placeCaretAtEnd, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, resolveChartKind, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, attachRotateHandlePlacement, elementIdSelector, createRotationDrag, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, DEFAULT_PALETTE2, resolvePalette, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, measureSvgViewportRect, modelDataToBlobUrl, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, getInlineEditorSelectionResult, isBulletMarkerSegment, findChartPartTarget, buildSurfaceChart3DDataForElement, buildBarChart3DDataForElement, buildLineChart3DDataForElement, buildAreaChart3DDataForElement, buildPieChart3DDataForElement, withChartTitle, resolveSmartArt3DLayout, buildSmartArt3DModel, collectCoherent3DOffNodeIds, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, openUrlInNewTab, getSubstituteFontFamily, hasGlyphEnvelope, buildGlyphEnvelope, getWarpPath, isWedgeCalloutPresetShape, isElementActionable, centeredSvgTextLines, findSmartArtNodeText, setSmartArtNodeStyle, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, updateSmartArtNodeText, advanceChartMarkDrag, advanceChartValueDrag, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, groupIntoParagraphs, substituteFieldText, computeInlineEditorRect, withChartPointValue, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, visibleTemplateElements, createCollaborationLivePatcher, publishLiveInlineText, PptxHandler, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, partitionTemplateElements, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, EncryptedFileError, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, isTemplateElementId, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canInteractWithElement, prepareExportClone, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, resolveImageResolutionScale, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, stopAllPersistentAudio, guidePxToEmu, buildSaveSlides, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, mapSlideShowStartKey, mapEditorKey, isEditorTextInputTarget, prepareElementForInsertion, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, savedPresentationFileName, downloadBlob, exportDeckJson, groupElements, generateElementId, makeCloneId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, mergeShapes, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, openPendingPrintWindow, computeColorFilter, filterHiddenSlideIndices, computeSlideIndices, buildPrintDocument, finishPrintWindow, buildPrintHtmlDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, buildThemeColorMap, reResolveSlideColors, reResolveElementColors, resolveViewportFitOptions, calculateViewportFit, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, remapTextToSegments, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, observeExternalCollaborationReadiness, resolveHistoryDepth, hasCopyableFormat, createBackstagePresentation, buildFieldSubstitutionContext, cloneElementForPaste, computeScrollDelta, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, updateCellTextStyleInRawXml, setCellText, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterResultToPngBlob, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, canvasToJpegData, createSnapshotTextPositions, isPpactionUrl, parsePpactionUrl, resolvePresentationAction, elementActionToPptxAction, isUrlSafe, buildSmartArtPresetData, classifyMediaType, computeSnapToShape, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, rasterizeElementTiledToCanvas, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, clampGifDimensions, rasterizeElement, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset, bringForward, sendBackward, bringToFront, sendToBack } from './chunk-Q6QJOD56.mjs';
|
|
1
|
+
import { DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, DEFAULT_FILL_COLOR, getCropShapeClipPath, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getImageSurfaceMaskStyle, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, MIN_ELEMENT_SIZE, buildTextBody3DSceneStyle, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, HYPERLINK_COLOR, cloneHistorySnapshot, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildPdfFromTiledImageData, GRID_SIZE, buildNotesPdf } from './chunk-LP52C4PZ.mjs';
|
|
2
|
+
import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, getSelectionControlArtworkStyle, hasShapeProperties, normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, hasTextProperties, getSelectionOutlineColor, connectorWrapperTransform, getAriaRoleDescription, getAriaLabel, getAriaRole, resolveElementInteractivity, isEditableTextElement, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, shouldRenderHitTarget, elementHitTargetStyle, getImageEffectsOpacity, getImageEffectsFilter, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, ACTION_BUTTON_PRESETS, mediaTransportVisible, isInkElement, getGroupChildParentFill, getElementLabel, getResizeHandleHitAreaStyle, paintedStrokeWidth, buildCssGradientFromShapeStyle, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, getElementTransform, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, isImageLikeElement, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, isImageTiled, getImageColorWashStyle, readEditableText, placeCaretAtEnd, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, resolveChartKind, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, attachRotateHandlePlacement, elementIdSelector, createRotationDrag, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, DEFAULT_PALETTE2, resolvePalette, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, measureSvgViewportRect, modelDataToBlobUrl, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, getInlineEditorSelectionResult, isBulletMarkerSegment, findChartPartTarget, buildSurfaceChart3DDataForElement, buildBarChart3DDataForElement, buildLineChart3DDataForElement, buildAreaChart3DDataForElement, buildPieChart3DDataForElement, withChartTitle, resolveSmartArt3DLayout, buildSmartArt3DModel, collectCoherent3DOffNodeIds, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, openUrlInNewTab, getSubstituteFontFamily, hasGlyphEnvelope, buildGlyphEnvelope, getWarpPath, isWedgeCalloutPresetShape, isElementActionable, centeredSvgTextLines, findSmartArtNodeText, setSmartArtNodeStyle, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, updateSmartArtNodeText, advanceChartMarkDrag, advanceChartValueDrag, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, groupIntoParagraphs, substituteFieldText, computeInlineEditorRect, withChartPointValue, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, cloneTemplateElementsBySlideId, cloneSlide, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, visibleTemplateElements, createCollaborationLivePatcher, publishLiveInlineText, PptxHandler, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, partitionTemplateElements, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, EncryptedFileError, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, isTemplateElementId, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canInteractWithElement, prepareExportClone, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, resolveImageResolutionScale, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, stopAllPersistentAudio, guidePxToEmu, buildSaveSlides, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, mapSlideShowStartKey, mapEditorKey, isEditorTextInputTarget, prepareElementForInsertion, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, savedPresentationFileName, downloadBlob, exportDeckJson, groupElements, generateElementId, makeCloneId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, mergeShapes, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, openPendingPrintWindow, computeColorFilter, filterHiddenSlideIndices, computeSlideIndices, buildPrintDocument, finishPrintWindow, buildPrintHtmlDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, buildThemeColorMap, reResolveSlideColors, reResolveElementColors, resolveViewportFitOptions, calculateViewportFit, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, remapTextToSegments, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, observeExternalCollaborationReadiness, resolveHistoryDepth, hasCopyableFormat, createBackstagePresentation, buildFieldSubstitutionContext, cloneElementForPaste, computeScrollDelta, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, updateCellTextStyleInRawXml, setCellText, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterResultToPngBlob, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, canvasToJpegData, createSnapshotTextPositions, isPpactionUrl, parsePpactionUrl, resolvePresentationAction, elementActionToPptxAction, isUrlSafe, buildSmartArtPresetData, classifyMediaType, computeSnapToShape, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, rasterizeElementTiledToCanvas, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, clampGifDimensions, rasterizeElement, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset, bringForward, sendBackward, bringToFront, sendToBack } from './chunk-7YLUB3VE.mjs';
|
|
3
3
|
import { translationsEn } from './chunk-PC7H3C5W.mjs';
|
|
4
4
|
import React20, { createContext, useMemo, useState, useCallback, useEffect, Suspense, useRef, useLayoutEffect, useContext, useSyncExternalStore, useImperativeHandle } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -645,12 +645,31 @@ function useSheetDismissDrag(onClose, threshold = 120) {
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
// src/viewer/hooks/explicit-slide-history.ts
|
|
648
|
+
function historyElementContent(element) {
|
|
649
|
+
return {
|
|
650
|
+
...element,
|
|
651
|
+
// Saving refreshes these archive-only fields in place. They are needed by
|
|
652
|
+
// serialization, but neither one represents a user edit.
|
|
653
|
+
rawXml: void 0,
|
|
654
|
+
shapeId: void 0,
|
|
655
|
+
...element.type === "group" ? { children: element.children.map(historyElementContent) } : {}
|
|
656
|
+
};
|
|
657
|
+
}
|
|
648
658
|
function serializeHistoryDocument(snapshot) {
|
|
649
659
|
return JSON.stringify({
|
|
650
660
|
width: snapshot.width,
|
|
651
661
|
height: snapshot.height,
|
|
652
|
-
slides: snapshot.slides
|
|
653
|
-
|
|
662
|
+
slides: snapshot.slides.map((slide) => ({
|
|
663
|
+
...slide,
|
|
664
|
+
rawXml: void 0,
|
|
665
|
+
elements: slide.elements.map(historyElementContent)
|
|
666
|
+
})),
|
|
667
|
+
templateElementsBySlideId: Object.fromEntries(
|
|
668
|
+
Object.entries(snapshot.templateElementsBySlideId).map(([slideId, elements]) => [
|
|
669
|
+
slideId,
|
|
670
|
+
elements.map(historyElementContent)
|
|
671
|
+
])
|
|
672
|
+
)
|
|
654
673
|
});
|
|
655
674
|
}
|
|
656
675
|
function recordExplicitSlideUpdate(past, future, previous, before, label, maxDepth) {
|
|
@@ -9542,10 +9561,12 @@ function useSerialize(input) {
|
|
|
9542
9561
|
);
|
|
9543
9562
|
}
|
|
9544
9563
|
function useRecoveryDetection(input) {
|
|
9545
|
-
const { filePath, loading, error, slideCount, autosaveAllowed = true } = input;
|
|
9564
|
+
const { filePath, fileName, loading, error, slideCount, autosaveAllowed = true } = input;
|
|
9546
9565
|
const recoveryCheckedRef = useRef(false);
|
|
9547
9566
|
const recordRef = useRef(null);
|
|
9567
|
+
const actionPendingRef = useRef(false);
|
|
9548
9568
|
const [prompt, setPrompt] = useState(null);
|
|
9569
|
+
const [discarding, setDiscarding] = useState(false);
|
|
9549
9570
|
const onRestore = input.onRestore;
|
|
9550
9571
|
const openVersionHistory = input.openVersionHistory;
|
|
9551
9572
|
useEffect(() => {
|
|
@@ -9561,7 +9582,7 @@ function useRecoveryDetection(input) {
|
|
|
9561
9582
|
}
|
|
9562
9583
|
recoveryCheckedRef.current = true;
|
|
9563
9584
|
void (async () => {
|
|
9564
|
-
const offer = await probeAutosaveRecovery(filePath);
|
|
9585
|
+
const offer = await probeAutosaveRecovery(filePath, Date.now(), fileName);
|
|
9565
9586
|
if (!offer) {
|
|
9566
9587
|
return;
|
|
9567
9588
|
}
|
|
@@ -9569,8 +9590,12 @@ function useRecoveryDetection(input) {
|
|
|
9569
9590
|
setPrompt(offer.prompt);
|
|
9570
9591
|
openVersionHistory?.();
|
|
9571
9592
|
})();
|
|
9572
|
-
}, [filePath, loading, error, slideCount, autosaveAllowed, openVersionHistory]);
|
|
9593
|
+
}, [filePath, fileName, loading, error, slideCount, autosaveAllowed, openVersionHistory]);
|
|
9573
9594
|
const restore = useCallback(() => {
|
|
9595
|
+
if (actionPendingRef.current) {
|
|
9596
|
+
return;
|
|
9597
|
+
}
|
|
9598
|
+
actionPendingRef.current = true;
|
|
9574
9599
|
const record = recordRef.current;
|
|
9575
9600
|
setPrompt(null);
|
|
9576
9601
|
if (record && onRestore) {
|
|
@@ -9579,14 +9604,29 @@ function useRecoveryDetection(input) {
|
|
|
9579
9604
|
recordRef.current = null;
|
|
9580
9605
|
}, [onRestore]);
|
|
9581
9606
|
const discard = useCallback(() => {
|
|
9607
|
+
if (actionPendingRef.current) {
|
|
9608
|
+
return;
|
|
9609
|
+
}
|
|
9582
9610
|
const record = recordRef.current;
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
void discardAutosaveRecovery(record);
|
|
9611
|
+
if (!record) {
|
|
9612
|
+
setPrompt(null);
|
|
9613
|
+
return;
|
|
9587
9614
|
}
|
|
9615
|
+
actionPendingRef.current = true;
|
|
9616
|
+
setDiscarding(true);
|
|
9617
|
+
void (async () => {
|
|
9618
|
+
try {
|
|
9619
|
+
await discardAutosaveRecovery(record);
|
|
9620
|
+
recordRef.current = null;
|
|
9621
|
+
setPrompt(null);
|
|
9622
|
+
} catch {
|
|
9623
|
+
} finally {
|
|
9624
|
+
actionPendingRef.current = false;
|
|
9625
|
+
setDiscarding(false);
|
|
9626
|
+
}
|
|
9627
|
+
})();
|
|
9588
9628
|
}, []);
|
|
9589
|
-
return { prompt, restore, discard };
|
|
9629
|
+
return { prompt, restore, discard, discarding };
|
|
9590
9630
|
}
|
|
9591
9631
|
function usePresentationSetup(input) {
|
|
9592
9632
|
const {
|
|
@@ -10643,6 +10683,7 @@ function useViewerIntegration(input) {
|
|
|
10643
10683
|
gridSpacingPx,
|
|
10644
10684
|
content,
|
|
10645
10685
|
filePath,
|
|
10686
|
+
fileName,
|
|
10646
10687
|
autosaveEnabled,
|
|
10647
10688
|
autosaveAllowed = true,
|
|
10648
10689
|
autosaveIntervalMs,
|
|
@@ -10762,6 +10803,7 @@ function useViewerIntegration(input) {
|
|
|
10762
10803
|
});
|
|
10763
10804
|
const recovery = useRecoveryDetection({
|
|
10764
10805
|
filePath,
|
|
10806
|
+
fileName,
|
|
10765
10807
|
loading,
|
|
10766
10808
|
error,
|
|
10767
10809
|
slideCount: slides.length,
|
|
@@ -13410,7 +13452,7 @@ function FailedToLoad() {
|
|
|
13410
13452
|
var LazyArea3DChartScene = React20.lazy(
|
|
13411
13453
|
async () => {
|
|
13412
13454
|
try {
|
|
13413
|
-
return await import('./Area3DChartScene-
|
|
13455
|
+
return await import('./Area3DChartScene-4NQEW5KF.mjs');
|
|
13414
13456
|
} catch {
|
|
13415
13457
|
return { default: FailedToLoad };
|
|
13416
13458
|
}
|
|
@@ -13479,7 +13521,7 @@ function FailedToLoad2() {
|
|
|
13479
13521
|
var LazyBar3DChartScene = React20.lazy(
|
|
13480
13522
|
async () => {
|
|
13481
13523
|
try {
|
|
13482
|
-
return await import('./Bar3DChartScene-
|
|
13524
|
+
return await import('./Bar3DChartScene-HDRJUZ3U.mjs');
|
|
13483
13525
|
} catch {
|
|
13484
13526
|
return { default: FailedToLoad2 };
|
|
13485
13527
|
}
|
|
@@ -13582,7 +13624,7 @@ function FailedToLoad3() {
|
|
|
13582
13624
|
var LazyLine3DChartScene = React20.lazy(
|
|
13583
13625
|
async () => {
|
|
13584
13626
|
try {
|
|
13585
|
-
return await import('./Line3DChartScene-
|
|
13627
|
+
return await import('./Line3DChartScene-IVR5DJS6.mjs');
|
|
13586
13628
|
} catch {
|
|
13587
13629
|
return { default: FailedToLoad3 };
|
|
13588
13630
|
}
|
|
@@ -13651,7 +13693,7 @@ function FailedToLoad4() {
|
|
|
13651
13693
|
var LazyPieChart3DScene = React20.lazy(
|
|
13652
13694
|
async () => {
|
|
13653
13695
|
try {
|
|
13654
|
-
return await import('./PieChart3DScene-
|
|
13696
|
+
return await import('./PieChart3DScene-PV7CLRBQ.mjs');
|
|
13655
13697
|
} catch {
|
|
13656
13698
|
return { default: FailedToLoad4 };
|
|
13657
13699
|
}
|
|
@@ -13718,7 +13760,7 @@ function FailedToLoad5() {
|
|
|
13718
13760
|
var LazySurfaceChart3DScene = React20.lazy(
|
|
13719
13761
|
async () => {
|
|
13720
13762
|
try {
|
|
13721
|
-
return await import('./SurfaceChart3DScene-
|
|
13763
|
+
return await import('./SurfaceChart3DScene-3XRDIWM3.mjs');
|
|
13722
13764
|
} catch {
|
|
13723
13765
|
return { default: FailedToLoad5 };
|
|
13724
13766
|
}
|
|
@@ -16172,7 +16214,7 @@ function FailedToLoad6() {
|
|
|
16172
16214
|
var LazyModel3DScene = React20.lazy(
|
|
16173
16215
|
async () => {
|
|
16174
16216
|
try {
|
|
16175
|
-
return await import('./Model3DScene-
|
|
16217
|
+
return await import('./Model3DScene-RTRR7W5G.mjs');
|
|
16176
16218
|
} catch {
|
|
16177
16219
|
return { default: FailedToLoad6 };
|
|
16178
16220
|
}
|
|
Binary file
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkHFSWAAY4_js = require('./chunk-HFSWAAY4.js');
|
|
4
|
+
require('./chunk-2YZHPPKB.js');
|
|
5
|
+
var chunkOHYMOFAS_js = require('./chunk-OHYMOFAS.js');
|
|
6
|
+
var chunkMEAT7XDZ_js = require('./chunk-MEAT7XDZ.js');
|
|
7
|
+
var chunkFRSFVE2I_js = require('./chunk-FRSFVE2I.js');
|
|
8
8
|
var chunkNXGUR2DO_js = require('./chunk-NXGUR2DO.js');
|
|
9
9
|
require('./chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
@@ -12,171 +12,171 @@ require('./chunk-4VNS5WPM.js');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkHFSWAAY4_js.PowerPointViewer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkHFSWAAY4_js.SlideCanvas; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkHFSWAAY4_js.SlideTemplateGalleryDialog; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkHFSWAAY4_js.SlideTemplatePreview; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "Toolbar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkHFSWAAY4_js.Toolbar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkHFSWAAY4_js.ViewerThemeProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkHFSWAAY4_js.useViewerTheme; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkOHYMOFAS_js.renderToCanvas; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkOHYMOFAS_js.useViewerBuildingBlocks; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkMEAT7XDZ_js.getAnimationInitialStyle; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkFRSFVE2I_js.AVATAR_COLOR_SWATCHES; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkFRSFVE2I_js.DEFAULT_VIEWER_PROFILE; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkFRSFVE2I_js.PPTX_OPEN_ACCEPT; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkFRSFVE2I_js.PRESENTATION_OPEN_EXTENSIONS; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "SLIDE_TEMPLATES", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkFRSFVE2I_js.SLIDE_TEMPLATES; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkFRSFVE2I_js.THEME_CATALOG; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkFRSFVE2I_js.VIEWER_PREFS_STORAGE_KEY; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "buildSlideTemplateContent", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkFRSFVE2I_js.buildSlideTemplateContent; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "buildSlideTemplateSlide", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkFRSFVE2I_js.buildSlideTemplateSlide; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "clearAllLocalViewerData", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkFRSFVE2I_js.clearAllLocalViewerData; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "clearStoredViewerPrefs", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkFRSFVE2I_js.clearStoredViewerPrefs; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "createImageElementFromFile", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkFRSFVE2I_js.createImageElementFromFile; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkFRSFVE2I_js.defaultCssVars; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "defaultRadius", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkFRSFVE2I_js.defaultRadius; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkFRSFVE2I_js.defaultThemeColors; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "describeCollaborationShellState", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkFRSFVE2I_js.describeCollaborationShellState; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "getLocalStorageUsageSummary", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkFRSFVE2I_js.getLocalStorageUsageSummary; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "isLegacyBinaryPresentation", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkFRSFVE2I_js.isLegacyBinaryPresentation; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "isSupportedPresentationFile", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkFRSFVE2I_js.isSupportedPresentationFile; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "presentationBaseName", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkFRSFVE2I_js.presentationBaseName; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "readStoredViewerPrefs", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkFRSFVE2I_js.readStoredViewerPrefs; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "resolveProfileInitial", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkFRSFVE2I_js.resolveProfileInitial; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkFRSFVE2I_js.resolveThemeCatalogEntry; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "saveViewerProfile", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkFRSFVE2I_js.saveViewerProfile; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "savedPresentationFileName", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkFRSFVE2I_js.savedPresentationFileName; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkFRSFVE2I_js.themeToCssVars; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkFRSFVE2I_js.vermilionDarkColors; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkFRSFVE2I_js.vermilionDarkTheme; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkFRSFVE2I_js.vermilionLightColors; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkFRSFVE2I_js.vermilionLightTheme; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkFRSFVE2I_js.vermilionRadius; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkFRSFVE2I_js.writeStoredViewerPrefs; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
182
182
|
enumerable: true,
|
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
|
-
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from './chunk-
|
|
5
|
-
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, 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 './chunk-
|
|
1
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-5HWRX5WI.mjs';
|
|
2
|
+
import './chunk-KLIZF4F6.mjs';
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-P4SKGHBS.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from './chunk-LP52C4PZ.mjs';
|
|
5
|
+
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, 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 './chunk-7YLUB3VE.mjs';
|
|
6
6
|
export { LOCALE_CATALOG } from './chunk-PC7H3C5W.mjs';
|
|
7
7
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -16670,6 +16670,8 @@ declare function useAnnotationHandlers(input: UseAnnotationHandlersInput): Annot
|
|
|
16670
16670
|
//#region src/viewer/hooks/useRecoveryDetection.d.ts
|
|
16671
16671
|
interface UseRecoveryDetectionInput {
|
|
16672
16672
|
filePath: string | undefined;
|
|
16673
|
+
/** Public document name rendered in the recovery message. */
|
|
16674
|
+
fileName?: string;
|
|
16673
16675
|
loading: boolean;
|
|
16674
16676
|
error: string | null;
|
|
16675
16677
|
slideCount: number;
|
|
@@ -16691,6 +16693,8 @@ interface UseRecoveryDetectionResult {
|
|
|
16691
16693
|
restore: () => void;
|
|
16692
16694
|
/** Decline: drop the snapshot and close. */
|
|
16693
16695
|
discard: () => void;
|
|
16696
|
+
/** The destructive delete is still pending. */
|
|
16697
|
+
discarding: boolean;
|
|
16694
16698
|
}
|
|
16695
16699
|
declare function useRecoveryDetection(input: UseRecoveryDetectionInput): UseRecoveryDetectionResult;
|
|
16696
16700
|
//#endregion
|
|
@@ -16921,6 +16925,7 @@ interface UseViewerIntegrationInput {
|
|
|
16921
16925
|
gridSpacingPx: number;
|
|
16922
16926
|
content: ArrayBuffer | Uint8Array | null;
|
|
16923
16927
|
filePath: string | undefined;
|
|
16928
|
+
fileName?: string;
|
|
16924
16929
|
/**
|
|
16925
16930
|
* Whether autosave actually runs: the shared `resolveAutosaveActivation`
|
|
16926
16931
|
* verdict (host `autosave` prop as a ceiling, title-bar toggle inside it).
|