pptx-react-viewer 3.16.2 → 3.16.4

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.
Files changed (136) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AiChatPanel-SNG6LWGZ.js → AiChatPanel-QJKB2BL3.js} +24 -24
  3. package/dist/AiChatPanel-QJKB2BL3.js.br +0 -0
  4. package/dist/AiChatPanel-QJKB2BL3.js.gz +0 -0
  5. package/dist/{AiChatPanel-D77PKWZT.mjs → AiChatPanel-YWYME2RM.mjs} +3 -3
  6. package/dist/AiChatPanel-YWYME2RM.mjs.br +0 -0
  7. package/dist/AiChatPanel-YWYME2RM.mjs.gz +0 -0
  8. package/dist/{Area3DChartScene-3RNVCXU6.mjs → Area3DChartScene-47SQRQTD.mjs} +1 -1
  9. package/dist/Area3DChartScene-47SQRQTD.mjs.br +0 -0
  10. package/dist/Area3DChartScene-47SQRQTD.mjs.gz +0 -0
  11. package/dist/{Area3DChartScene-4IS4EKPJ.js → Area3DChartScene-DEWKUQUS.js} +2 -2
  12. package/dist/Area3DChartScene-DEWKUQUS.js.br +0 -0
  13. package/dist/Area3DChartScene-DEWKUQUS.js.gz +0 -0
  14. package/dist/{Bar3DChartScene-OODRQGK6.js → Bar3DChartScene-HRCZHDNT.js} +2 -2
  15. package/dist/Bar3DChartScene-HRCZHDNT.js.br +0 -0
  16. package/dist/Bar3DChartScene-HRCZHDNT.js.gz +0 -0
  17. package/dist/{Bar3DChartScene-VKGLA3KB.mjs → Bar3DChartScene-JXXBIKLB.mjs} +1 -1
  18. package/dist/{Bar3DChartScene-VKGLA3KB.mjs.br → Bar3DChartScene-JXXBIKLB.mjs.br} +0 -0
  19. package/dist/Bar3DChartScene-JXXBIKLB.mjs.gz +0 -0
  20. package/dist/{Line3DChartScene-Y6QDWIFG.js → Line3DChartScene-JPHU2WGC.js} +2 -2
  21. package/dist/Line3DChartScene-JPHU2WGC.js.br +0 -0
  22. package/dist/Line3DChartScene-JPHU2WGC.js.gz +0 -0
  23. package/dist/{Line3DChartScene-EPLCFAC5.mjs → Line3DChartScene-S2SV5HCH.mjs} +1 -1
  24. package/dist/{Line3DChartScene-EPLCFAC5.mjs.br → Line3DChartScene-S2SV5HCH.mjs.br} +0 -0
  25. package/dist/Line3DChartScene-S2SV5HCH.mjs.gz +0 -0
  26. package/dist/{Model3DScene-3MYNMS6E.mjs → Model3DScene-4MOLASW6.mjs} +1 -1
  27. package/dist/Model3DScene-4MOLASW6.mjs.br +0 -0
  28. package/dist/Model3DScene-4MOLASW6.mjs.gz +0 -0
  29. package/dist/{Model3DScene-TS35CVPY.js → Model3DScene-JP4ICMLY.js} +2 -2
  30. package/dist/Model3DScene-JP4ICMLY.js.br +0 -0
  31. package/dist/Model3DScene-JP4ICMLY.js.gz +0 -0
  32. package/dist/{PieChart3DScene-UZQFG6GM.mjs → PieChart3DScene-PV7BN7MS.mjs} +1 -1
  33. package/dist/{PieChart3DScene-UZQFG6GM.mjs.br → PieChart3DScene-PV7BN7MS.mjs.br} +0 -0
  34. package/dist/PieChart3DScene-PV7BN7MS.mjs.gz +0 -0
  35. package/dist/{PieChart3DScene-FMVV6AYF.js → PieChart3DScene-QYWGHJGG.js} +2 -2
  36. package/dist/PieChart3DScene-QYWGHJGG.js.br +0 -0
  37. package/dist/PieChart3DScene-QYWGHJGG.js.gz +0 -0
  38. package/dist/{SurfaceChart3DScene-UWRHDZMG.mjs → SurfaceChart3DScene-7ONY7OIY.mjs} +1 -1
  39. package/dist/SurfaceChart3DScene-7ONY7OIY.mjs.br +0 -0
  40. package/dist/SurfaceChart3DScene-7ONY7OIY.mjs.gz +0 -0
  41. package/dist/{SurfaceChart3DScene-T6HOOYKR.js → SurfaceChart3DScene-KAD2GVBY.js} +2 -2
  42. package/dist/SurfaceChart3DScene-KAD2GVBY.js.br +0 -0
  43. package/dist/SurfaceChart3DScene-KAD2GVBY.js.gz +0 -0
  44. package/dist/{chunk-5ETLPGKA.js → chunk-4WGGCKLD.js} +5 -5
  45. package/dist/chunk-4WGGCKLD.js.br +0 -0
  46. package/dist/chunk-4WGGCKLD.js.gz +0 -0
  47. package/dist/{chunk-K5DP3GFC.mjs → chunk-6TGJ5RGQ.mjs} +1 -1
  48. package/dist/chunk-6TGJ5RGQ.mjs.br +0 -0
  49. package/dist/{chunk-K5DP3GFC.mjs.gz → chunk-6TGJ5RGQ.mjs.gz} +0 -0
  50. package/dist/{chunk-QLM6L5PA.js → chunk-EDCU5EK5.js} +469 -463
  51. package/dist/chunk-EDCU5EK5.js.br +0 -0
  52. package/dist/chunk-EDCU5EK5.js.gz +0 -0
  53. package/dist/{chunk-TX77ZJH6.mjs → chunk-IKQY2ZU2.mjs} +1 -1
  54. package/dist/chunk-IKQY2ZU2.mjs.br +0 -0
  55. package/dist/chunk-IKQY2ZU2.mjs.gz +0 -0
  56. package/dist/{chunk-KJEEEUWF.mjs → chunk-ISXUHV3L.mjs} +22 -16
  57. package/dist/chunk-ISXUHV3L.mjs.br +0 -0
  58. package/dist/chunk-ISXUHV3L.mjs.gz +0 -0
  59. package/dist/{chunk-3URR46TX.js → chunk-NMSZ3NSG.js} +169 -169
  60. package/dist/chunk-NMSZ3NSG.js.br +0 -0
  61. package/dist/{chunk-3URR46TX.js.gz → chunk-NMSZ3NSG.js.gz} +0 -0
  62. package/dist/{chunk-42YQYM4M.js → chunk-PABSSYRA.js} +160 -103
  63. package/dist/chunk-PABSSYRA.js.br +0 -0
  64. package/dist/chunk-PABSSYRA.js.gz +0 -0
  65. package/dist/{chunk-F3B7MWQ5.mjs → chunk-R5CW64K4.mjs} +160 -104
  66. package/dist/chunk-R5CW64K4.mjs.br +0 -0
  67. package/dist/chunk-R5CW64K4.mjs.gz +0 -0
  68. package/dist/{chunk-LFOXMY2O.mjs → chunk-USQGKC4A.mjs} +12 -12
  69. package/dist/chunk-USQGKC4A.mjs.br +0 -0
  70. package/dist/chunk-USQGKC4A.mjs.gz +0 -0
  71. package/dist/{chunk-66PTLRAD.js → chunk-ZWZGKJ4E.js} +1290 -1290
  72. package/dist/chunk-ZWZGKJ4E.js.br +0 -0
  73. package/dist/chunk-ZWZGKJ4E.js.gz +0 -0
  74. package/dist/index.js +45 -45
  75. package/dist/index.js.br +0 -0
  76. package/dist/index.js.gz +0 -0
  77. package/dist/index.mjs +5 -5
  78. package/dist/index.mjs.br +0 -0
  79. package/dist/index.mjs.gz +0 -0
  80. package/dist/internals.d.ts.map +1 -1
  81. package/dist/internals.js +78 -78
  82. package/dist/internals.js.br +0 -0
  83. package/dist/internals.js.gz +0 -0
  84. package/dist/internals.mjs +3 -3
  85. package/dist/internals.mjs.br +0 -0
  86. package/dist/internals.mjs.gz +0 -0
  87. package/dist/viewer/index.js +26 -26
  88. package/dist/viewer/index.js.br +0 -0
  89. package/dist/viewer/index.js.gz +0 -0
  90. package/dist/viewer/index.mjs +5 -5
  91. package/dist/viewer/index.mjs.br +0 -0
  92. package/dist/viewer/index.mjs.gz +0 -0
  93. package/package.json +1 -1
  94. package/dist/AiChatPanel-D77PKWZT.mjs.br +0 -0
  95. package/dist/AiChatPanel-D77PKWZT.mjs.gz +0 -0
  96. package/dist/AiChatPanel-SNG6LWGZ.js.br +0 -0
  97. package/dist/AiChatPanel-SNG6LWGZ.js.gz +0 -0
  98. package/dist/Area3DChartScene-3RNVCXU6.mjs.br +0 -0
  99. package/dist/Area3DChartScene-3RNVCXU6.mjs.gz +0 -0
  100. package/dist/Area3DChartScene-4IS4EKPJ.js.br +0 -0
  101. package/dist/Area3DChartScene-4IS4EKPJ.js.gz +0 -0
  102. package/dist/Bar3DChartScene-OODRQGK6.js.br +0 -0
  103. package/dist/Bar3DChartScene-OODRQGK6.js.gz +0 -0
  104. package/dist/Bar3DChartScene-VKGLA3KB.mjs.gz +0 -0
  105. package/dist/Line3DChartScene-EPLCFAC5.mjs.gz +0 -0
  106. package/dist/Line3DChartScene-Y6QDWIFG.js.br +0 -0
  107. package/dist/Line3DChartScene-Y6QDWIFG.js.gz +0 -0
  108. package/dist/Model3DScene-3MYNMS6E.mjs.br +0 -0
  109. package/dist/Model3DScene-3MYNMS6E.mjs.gz +0 -0
  110. package/dist/Model3DScene-TS35CVPY.js.br +0 -0
  111. package/dist/Model3DScene-TS35CVPY.js.gz +0 -0
  112. package/dist/PieChart3DScene-FMVV6AYF.js.br +0 -0
  113. package/dist/PieChart3DScene-FMVV6AYF.js.gz +0 -0
  114. package/dist/PieChart3DScene-UZQFG6GM.mjs.gz +0 -0
  115. package/dist/SurfaceChart3DScene-T6HOOYKR.js.br +0 -0
  116. package/dist/SurfaceChart3DScene-T6HOOYKR.js.gz +0 -0
  117. package/dist/SurfaceChart3DScene-UWRHDZMG.mjs.br +0 -0
  118. package/dist/SurfaceChart3DScene-UWRHDZMG.mjs.gz +0 -0
  119. package/dist/chunk-3URR46TX.js.br +0 -0
  120. package/dist/chunk-42YQYM4M.js.br +0 -0
  121. package/dist/chunk-42YQYM4M.js.gz +0 -0
  122. package/dist/chunk-5ETLPGKA.js.br +0 -0
  123. package/dist/chunk-5ETLPGKA.js.gz +0 -0
  124. package/dist/chunk-66PTLRAD.js.br +0 -0
  125. package/dist/chunk-66PTLRAD.js.gz +0 -0
  126. package/dist/chunk-F3B7MWQ5.mjs.br +0 -0
  127. package/dist/chunk-F3B7MWQ5.mjs.gz +0 -0
  128. package/dist/chunk-K5DP3GFC.mjs.br +0 -0
  129. package/dist/chunk-KJEEEUWF.mjs.br +0 -0
  130. package/dist/chunk-KJEEEUWF.mjs.gz +0 -0
  131. package/dist/chunk-LFOXMY2O.mjs.br +0 -0
  132. package/dist/chunk-LFOXMY2O.mjs.gz +0 -0
  133. package/dist/chunk-QLM6L5PA.js.br +0 -0
  134. package/dist/chunk-QLM6L5PA.js.gz +0 -0
  135. package/dist/chunk-TX77ZJH6.mjs.br +0 -0
  136. package/dist/chunk-TX77ZJH6.mjs.gz +0 -0
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, xmlText, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitRunByScriptFont } from './chunk-F3B7MWQ5.mjs';
1
+ import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, xmlText, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitRunByScriptFont } from './chunk-R5CW64K4.mjs';
2
2
  import { translationsEn } from './chunk-HMX3MQR7.mjs';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
Binary file
Binary file
@@ -1,5 +1,5 @@
1
- import { cloneHistorySnapshot, MIN_ELEMENT_SIZE, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildPdfFromTiledImageData, buildNotesPdf, GRID_SIZE, DEFAULT_TEXT_FONT_SIZE } from './chunk-TX77ZJH6.mjs';
2
- import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createPresenceProjector, BROADCAST_THROTTLE_MS, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, 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, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, partitionTemplateElements, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, EncryptedFileError, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, hasTextProperties, remapTextToSegments, updateMasterViewElement, isTemplateElementId, updateElement, hasShapeProperties, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canInteractWithElement, 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, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, mapSlideShowStartKey, mapEditorKey, isEditorTextInputTarget, createViewerOptionsStore, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, savedPresentationFileName, downloadBlob, exportDeckJson, groupElements, generateElementId, makeCloneId, ungroupElements, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, 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, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, openUrlInNewTab, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, 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, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterResultToPngBlob, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, canvasToJpegData, rasterizeElementTiledToCanvas, isPpactionUrl, parsePpactionUrl, resolvePresentationAction, ACTION_BUTTON_PRESETS, elementActionToPptxAction, isUrlSafe, buildSmartArtPresetData, classifyMediaType, computeSnapToShape, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, clampGifDimensions, rasterizeElement, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset } from './chunk-F3B7MWQ5.mjs';
1
+ import { cloneHistorySnapshot, MIN_ELEMENT_SIZE, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildPdfFromTiledImageData, buildNotesPdf, GRID_SIZE, DEFAULT_TEXT_FONT_SIZE } from './chunk-IKQY2ZU2.mjs';
2
+ import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createPresenceProjector, BROADCAST_THROTTLE_MS, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, 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, hasTextProperties, remapTextToSegments, updateMasterViewElement, isTemplateElementId, updateElement, hasShapeProperties, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canInteractWithElement, 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, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, mapSlideShowStartKey, mapEditorKey, isEditorTextInputTarget, createViewerOptionsStore, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, savedPresentationFileName, downloadBlob, exportDeckJson, groupElements, generateElementId, makeCloneId, ungroupElements, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, 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, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, openUrlInNewTab, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, 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, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterResultToPngBlob, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, canvasToJpegData, rasterizeElementTiledToCanvas, isPpactionUrl, parsePpactionUrl, resolvePresentationAction, ACTION_BUTTON_PRESETS, elementActionToPptxAction, isUrlSafe, buildSmartArtPresetData, classifyMediaType, computeSnapToShape, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, clampGifDimensions, rasterizeElement, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset } from './chunk-R5CW64K4.mjs';
3
3
  import { translationsEn } from './chunk-HMX3MQR7.mjs';
4
4
  import { createContext, useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect, useContext, useImperativeHandle, useSyncExternalStore } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
@@ -4022,7 +4022,9 @@ function useLoadContent({
4022
4022
  }
4023
4023
  let cancelled = false;
4024
4024
  const token = ++renderTokenRef.current;
4025
- const loadBlobUrls = [];
4025
+ const handler = new PptxHandler();
4026
+ const resources = createPresentationLoadResources(handler);
4027
+ const loadBlobUrls = resources.blobUrls;
4026
4028
  (async () => {
4027
4029
  try {
4028
4030
  setLoading(true);
@@ -4036,26 +4038,15 @@ function useLoadContent({
4036
4038
  );
4037
4039
  }
4038
4040
  const previousHandler = handlerRef.current;
4039
- const handler = new PptxHandler();
4040
4041
  const parsed = await handler.load(buffer, { allowExternalImages });
4041
4042
  if (cancelled || token !== renderTokenRef.current) {
4042
- handler.dispose();
4043
4043
  return;
4044
4044
  }
4045
- if (previousHandler) {
4046
- previousHandler.dispose();
4047
- }
4048
- handlerRef.current = null;
4049
4045
  const mediaElements = [];
4050
4046
  for (const slide of parsed.slides) {
4051
4047
  collectMediaElements(slide.elements, mediaElements);
4052
4048
  }
4053
- for (const url of mediaDataUrls.values()) {
4054
- if (url.startsWith("blob:")) {
4055
- URL.revokeObjectURL(url);
4056
- }
4057
- }
4058
- mediaDataUrls.clear();
4049
+ const nextMediaUrls = /* @__PURE__ */ new Map();
4059
4050
  await Promise.all(
4060
4051
  mediaElements.map(async (mediaElement) => {
4061
4052
  const resolved = await resolveMediaElementSource(mediaElement, handler);
@@ -4063,7 +4054,7 @@ function useLoadContent({
4063
4054
  mediaElement.mediaMissing = true;
4064
4055
  return;
4065
4056
  }
4066
- mediaDataUrls.set(resolved.mediaPath, resolved.url);
4057
+ nextMediaUrls.set(resolved.mediaPath, resolved.url);
4067
4058
  if (resolved.isBlobUrl) {
4068
4059
  loadBlobUrls.push(resolved.url);
4069
4060
  }
@@ -4097,6 +4088,20 @@ function useLoadContent({
4097
4088
  parsed.tableStyleMap,
4098
4089
  (path) => handler.getImageData(path)
4099
4090
  );
4091
+ if (cancelled || token !== renderTokenRef.current) {
4092
+ return;
4093
+ }
4094
+ previousHandler?.dispose();
4095
+ for (const url of mediaDataUrls.values()) {
4096
+ if (url.startsWith("blob:")) {
4097
+ URL.revokeObjectURL(url);
4098
+ }
4099
+ }
4100
+ mediaDataUrls.clear();
4101
+ for (const [path, url] of nextMediaUrls) {
4102
+ mediaDataUrls.set(path, url);
4103
+ }
4104
+ resources.commit();
4100
4105
  handlerRef.current = handler;
4101
4106
  const partition = partitionTemplateElements(nextSlides);
4102
4107
  setSlides(partition.slides);
@@ -4172,6 +4177,7 @@ function useLoadContent({
4172
4177
  }
4173
4178
  }
4174
4179
  } finally {
4180
+ resources.releaseIfUncommitted();
4175
4181
  if (!cancelled && token === renderTokenRef.current) {
4176
4182
  setLoading(false);
4177
4183
  }
Binary file
Binary file