pptx-react-viewer 2.19.1 → 2.19.3

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 (92) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AiChatPanel-GRAIPSG3.mjs → AiChatPanel-6GZJUAZO.mjs} +3 -3
  3. package/dist/AiChatPanel-6GZJUAZO.mjs.br +0 -0
  4. package/dist/AiChatPanel-6GZJUAZO.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-JSTZ6W7R.js → AiChatPanel-ITONW4RG.js} +23 -23
  6. package/dist/AiChatPanel-ITONW4RG.js.br +0 -0
  7. package/dist/AiChatPanel-ITONW4RG.js.gz +0 -0
  8. package/dist/{Model3DScene-WLRZXJHN.js → Model3DScene-37TFKKMR.js} +2 -2
  9. package/dist/Model3DScene-37TFKKMR.js.br +0 -0
  10. package/dist/Model3DScene-37TFKKMR.js.gz +0 -0
  11. package/dist/{Model3DScene-FXDA7OII.mjs → Model3DScene-FHEYYYMP.mjs} +1 -1
  12. package/dist/Model3DScene-FHEYYYMP.mjs.br +0 -0
  13. package/dist/Model3DScene-FHEYYYMP.mjs.gz +0 -0
  14. package/dist/{chunk-B55E3KXL.mjs → chunk-6Q5ZJ5CE.mjs} +55 -7
  15. package/dist/chunk-6Q5ZJ5CE.mjs.br +0 -0
  16. package/dist/chunk-6Q5ZJ5CE.mjs.gz +0 -0
  17. package/dist/{chunk-PNR3J26S.mjs → chunk-E3ABZJ3V.mjs} +129 -3
  18. package/dist/chunk-E3ABZJ3V.mjs.br +0 -0
  19. package/dist/{chunk-PNR3J26S.mjs.gz → chunk-E3ABZJ3V.mjs.gz} +0 -0
  20. package/dist/{chunk-PIJAFM4B.js → chunk-GB7DRDDJ.js} +146 -146
  21. package/dist/chunk-GB7DRDDJ.js.br +0 -0
  22. package/dist/chunk-GB7DRDDJ.js.gz +0 -0
  23. package/dist/{chunk-KQGS6A5J.mjs → chunk-JFZ3ZA6J.mjs} +1 -1
  24. package/dist/chunk-JFZ3ZA6J.mjs.br +0 -0
  25. package/dist/chunk-JFZ3ZA6J.mjs.gz +0 -0
  26. package/dist/{chunk-TPC65IB2.js → chunk-LL2GSA3M.js} +1066 -1018
  27. package/dist/chunk-LL2GSA3M.js.br +0 -0
  28. package/dist/chunk-LL2GSA3M.js.gz +0 -0
  29. package/dist/{chunk-T7BIRNE4.js → chunk-MZ6E7TUV.js} +130 -2
  30. package/dist/chunk-MZ6E7TUV.js.br +0 -0
  31. package/dist/{chunk-T7BIRNE4.js.gz → chunk-MZ6E7TUV.js.gz} +0 -0
  32. package/dist/{chunk-LMTUC7U7.js → chunk-N6EY3PJP.js} +372 -372
  33. package/dist/chunk-N6EY3PJP.js.br +0 -0
  34. package/dist/chunk-N6EY3PJP.js.gz +0 -0
  35. package/dist/{chunk-WGXQXHCS.mjs → chunk-QVTFZH7K.mjs} +1 -1
  36. package/dist/chunk-QVTFZH7K.mjs.br +0 -0
  37. package/dist/chunk-QVTFZH7K.mjs.gz +0 -0
  38. package/dist/{chunk-5ZQ3ZQ3M.mjs → chunk-SL32VQDZ.mjs} +2 -2
  39. package/dist/chunk-SL32VQDZ.mjs.br +0 -0
  40. package/dist/chunk-SL32VQDZ.mjs.gz +0 -0
  41. package/dist/{chunk-SCGIXXN5.js → chunk-T7KTLC6L.js} +3 -3
  42. package/dist/chunk-T7KTLC6L.js.br +0 -0
  43. package/dist/chunk-T7KTLC6L.js.gz +0 -0
  44. package/dist/index.js +45 -45
  45. package/dist/index.js.br +0 -0
  46. package/dist/index.js.gz +0 -0
  47. package/dist/index.mjs +5 -5
  48. package/dist/index.mjs.br +0 -0
  49. package/dist/index.mjs.gz +0 -0
  50. package/dist/internals.d.ts +53 -0
  51. package/dist/internals.js +78 -78
  52. package/dist/internals.js.br +0 -0
  53. package/dist/internals.js.gz +0 -0
  54. package/dist/internals.mjs +3 -3
  55. package/dist/internals.mjs.br +0 -0
  56. package/dist/internals.mjs.gz +0 -0
  57. package/dist/pptx-viewer.css +1 -1
  58. package/dist/pptx-viewer.css.br +0 -0
  59. package/dist/pptx-viewer.css.gz +0 -0
  60. package/dist/viewer/index.js +26 -26
  61. package/dist/viewer/index.js.br +0 -0
  62. package/dist/viewer/index.js.gz +0 -0
  63. package/dist/viewer/index.mjs +5 -5
  64. package/dist/viewer/index.mjs.br +0 -0
  65. package/dist/viewer/index.mjs.gz +0 -0
  66. package/package.json +1 -1
  67. package/dist/AiChatPanel-GRAIPSG3.mjs.br +0 -0
  68. package/dist/AiChatPanel-GRAIPSG3.mjs.gz +0 -0
  69. package/dist/AiChatPanel-JSTZ6W7R.js.br +0 -0
  70. package/dist/AiChatPanel-JSTZ6W7R.js.gz +0 -0
  71. package/dist/Model3DScene-FXDA7OII.mjs.br +0 -0
  72. package/dist/Model3DScene-FXDA7OII.mjs.gz +0 -0
  73. package/dist/Model3DScene-WLRZXJHN.js.br +0 -0
  74. package/dist/Model3DScene-WLRZXJHN.js.gz +0 -0
  75. package/dist/chunk-5ZQ3ZQ3M.mjs.br +0 -0
  76. package/dist/chunk-5ZQ3ZQ3M.mjs.gz +0 -0
  77. package/dist/chunk-B55E3KXL.mjs.br +0 -0
  78. package/dist/chunk-B55E3KXL.mjs.gz +0 -0
  79. package/dist/chunk-KQGS6A5J.mjs.br +0 -0
  80. package/dist/chunk-KQGS6A5J.mjs.gz +0 -0
  81. package/dist/chunk-LMTUC7U7.js.br +0 -0
  82. package/dist/chunk-LMTUC7U7.js.gz +0 -0
  83. package/dist/chunk-PIJAFM4B.js.br +0 -0
  84. package/dist/chunk-PIJAFM4B.js.gz +0 -0
  85. package/dist/chunk-PNR3J26S.mjs.br +0 -0
  86. package/dist/chunk-SCGIXXN5.js.br +0 -0
  87. package/dist/chunk-SCGIXXN5.js.gz +0 -0
  88. package/dist/chunk-T7BIRNE4.js.br +0 -0
  89. package/dist/chunk-TPC65IB2.js.br +0 -0
  90. package/dist/chunk-TPC65IB2.js.gz +0 -0
  91. package/dist/chunk-WGXQXHCS.mjs.br +0 -0
  92. package/dist/chunk-WGXQXHCS.mjs.gz +0 -0
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  import { translationsEn } from './chunk-SQJBFMEX.mjs';
2
- import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, isImageLikeElement, getImageTilingStyle, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, build3DExtrusionData, getComputedFillStyle, getComputedEffectStyle, getComputedStrokeStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, getResolvedShapeClipPath, mediaFallbackVisual, registerPersistentAudio, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, cellRunStyle, getChartStylePalette, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, chartPartToAttrs, splitRunForMetrics, hexToRgbChannels, segmentByScript, resolveFontForScript } from './chunk-PNR3J26S.mjs';
2
+ import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, isImageLikeElement, getImageTilingStyle, runMediaCommand, findMediaElementByElementId, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, build3DExtrusionData, getComputedFillStyle, getComputedEffectStyle, getComputedStrokeStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, getRoundRectRadiusPx2, getResolvedShapeClipPath, mediaFallbackVisual, registerPersistentAudio, resolveAutoFitFontScale, getSubstituteFontFamily, parsePanoseString, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, svgGradientFillRef, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, cellRunStyle, getChartStylePalette, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, chartPartToAttrs, splitRunForMetrics, hexToRgbChannels, segmentByScript, resolveFontForScript } from './chunk-E3ABZJ3V.mjs';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import React6, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
Binary file
Binary file
@@ -1,6 +1,6 @@
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, executeMediaCommand, buildPdfFromImageData, buildNotesPdf, EMU_PER_PX, GRID_SIZE, DEFAULT_TEXT_FONT_SIZE } from './chunk-WGXQXHCS.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, executeMediaCommand, buildPdfFromImageData, buildNotesPdf, EMU_PER_PX, GRID_SIZE, DEFAULT_TEXT_FONT_SIZE } from './chunk-QVTFZH7K.mjs';
2
2
  import { translationsEn } from './chunk-SQJBFMEX.mjs';
3
- import { TOOLBAR_TABS, 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, PresentationAnimationController, 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, attachPresentationVisibilityPause, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, createCollaborationLivePatcher, publishLiveInlineText, PptxHandler, collectMediaElements, collectImagePaths, partitionTemplateElements, resolveAuthoredCustomShowId, buildInitialGuides, EncryptedFileError, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, isTemplateElementId, hasShapeProperties, hasTextProperties, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, downloadBlob, sanitizeDownloadFilename, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, describeFontEmbedding, mayLeaveSlideShow, stopAllPersistentAudio, remapTextToSegments, guidePxToEmu, buildSaveSlides, embeddedFontSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, mapEditorKey, isEditorTextInputTarget, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, scopeLayoutOptionsToSlide, openPptxFile, readBackstageRecentFile, isActionHidden, canInteractWithElement, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, savedPresentationFileName, generatePackageReadme, presentationBaseName, exportDeckJson, groupElements, generateElementId, makeCloneId, ungroupElements, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, mergeShapes, mapPresentationKey, lastShowSlideIndex, firstShowSlideIndex, mapPresentationWheel, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, buildThemeColorMap, reResolveSlideColors, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, runPresentationAction, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, encodeGif, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, hasCopyableFormat, createBackstagePresentation, buildFieldSubstitutionContext, cloneElementForPaste, computeScrollDelta, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, buildPrintHtmlDocument, deleteTableColumn, rebuildTableStructureInRawXml, insertTableColumn, deleteTableRow, insertTableRow, updateCellTextStyleInRawXml, setCellText, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, elementActionToPptxAction, buildSmartArtPresetData, computeSnapToShape, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, applyResize, snapBoxToGrid, applyMotionPathPreset } from './chunk-PNR3J26S.mjs';
3
+ import { TOOLBAR_TABS, 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, PresentationAnimationController, 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, attachPresentationVisibilityPause, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, createCollaborationLivePatcher, publishLiveInlineText, PptxHandler, collectMediaElements, collectImagePaths, partitionTemplateElements, resolveAuthoredCustomShowId, buildInitialGuides, EncryptedFileError, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, isTemplateElementId, hasShapeProperties, hasTextProperties, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, downloadBlob, sanitizeDownloadFilename, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, describeFontEmbedding, mayLeaveSlideShow, stopAllPersistentAudio, remapTextToSegments, guidePxToEmu, buildSaveSlides, embeddedFontSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, mapEditorKey, isEditorTextInputTarget, createViewerOptionsStore, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, shouldAutoFollowBroadcaster, createTouchGestureRecognizer, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, isKeyboardOpen, scopeLayoutOptionsToSlide, openPptxFile, readBackstageRecentFile, isActionHidden, canInteractWithElement, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, savedPresentationFileName, generatePackageReadme, presentationBaseName, exportDeckJson, groupElements, generateElementId, makeCloneId, ungroupElements, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, mergeShapes, mapPresentationKey, lastShowSlideIndex, firstShowSlideIndex, mapPresentationWheel, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, buildThemeColorMap, reResolveSlideColors, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, runPresentationAction, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, encodeGif, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, hasCopyableFormat, createBackstagePresentation, buildFieldSubstitutionContext, cloneElementForPaste, computeScrollDelta, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, buildPrintHtmlDocument, deleteTableColumn, rebuildTableStructureInRawXml, insertTableColumn, deleteTableRow, insertTableRow, updateCellTextStyleInRawXml, setCellText, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, isPpactionUrl, parsePpactionUrl, safeOpenUrl, ACTION_BUTTON_PRESETS, elementActionToPptxAction, buildSmartArtPresetData, computeSnapToShape, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, applyResize, snapBoxToGrid, applyMotionPathPreset } from './chunk-E3ABZJ3V.mjs';
4
4
  import { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect, useSyncExternalStore, useImperativeHandle } from 'react';
5
5
  import JSZip from 'jszip';
6
6
  import { useTranslation } from 'react-i18next';
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkT7BIRNE4_js = require('./chunk-T7BIRNE4.js');
3
+ var chunkMZ6E7TUV_js = require('./chunk-MZ6E7TUV.js');
4
4
  var chunk4VNS5WPM_js = require('./chunk-4VNS5WPM.js');
5
5
  var mcp = require('pptx-viewer-mcp');
6
6
  var mcpSchemas = require('pptx-viewer-mcp/schemas');
@@ -14879,7 +14879,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
14879
14879
  };
14880
14880
  let markdown;
14881
14881
  try {
14882
- const converter = new chunkT7BIRNE4_js.PptxMarkdownConverter(
14882
+ const converter = new chunkMZ6E7TUV_js.PptxMarkdownConverter(
14883
14883
  "",
14884
14884
  {
14885
14885
  sourceName: meta3.title ?? "deck.pptx",
@@ -15471,7 +15471,7 @@ var getTheme = (ctx) => {
15471
15471
  name: theme?.name,
15472
15472
  colorScheme: theme?.colorScheme,
15473
15473
  fontScheme: theme?.fontScheme,
15474
- availablePresets: Object.keys(chunkT7BIRNE4_js.ThemePresets)
15474
+ availablePresets: Object.keys(chunkMZ6E7TUV_js.ThemePresets)
15475
15475
  };
15476
15476
  };
15477
15477
  var readExecutors = {
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1,54 +1,54 @@
1
1
  'use strict';
2
2
 
3
- var chunkTPC65IB2_js = require('./chunk-TPC65IB2.js');
4
- require('./chunk-SCGIXXN5.js');
5
- var chunkLMTUC7U7_js = require('./chunk-LMTUC7U7.js');
6
- var chunkPIJAFM4B_js = require('./chunk-PIJAFM4B.js');
3
+ var chunkLL2GSA3M_js = require('./chunk-LL2GSA3M.js');
4
+ require('./chunk-T7KTLC6L.js');
5
+ var chunkN6EY3PJP_js = require('./chunk-N6EY3PJP.js');
6
+ var chunkGB7DRDDJ_js = require('./chunk-GB7DRDDJ.js');
7
7
  var chunkMVKRI3CZ_js = require('./chunk-MVKRI3CZ.js');
8
- var chunkT7BIRNE4_js = require('./chunk-T7BIRNE4.js');
8
+ var chunkMZ6E7TUV_js = require('./chunk-MZ6E7TUV.js');
9
9
  require('./chunk-4VNS5WPM.js');
10
10
 
11
11
 
12
12
 
13
13
  Object.defineProperty(exports, "PowerPointViewer", {
14
14
  enumerable: true,
15
- get: function () { return chunkTPC65IB2_js.PowerPointViewer; }
15
+ get: function () { return chunkLL2GSA3M_js.PowerPointViewer; }
16
16
  });
17
17
  Object.defineProperty(exports, "SlideCanvas", {
18
18
  enumerable: true,
19
- get: function () { return chunkTPC65IB2_js.SlideCanvas; }
19
+ get: function () { return chunkLL2GSA3M_js.SlideCanvas; }
20
20
  });
21
21
  Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
22
22
  enumerable: true,
23
- get: function () { return chunkTPC65IB2_js.SlideTemplateGalleryDialog; }
23
+ get: function () { return chunkLL2GSA3M_js.SlideTemplateGalleryDialog; }
24
24
  });
25
25
  Object.defineProperty(exports, "SlideTemplatePreview", {
26
26
  enumerable: true,
27
- get: function () { return chunkTPC65IB2_js.SlideTemplatePreview; }
27
+ get: function () { return chunkLL2GSA3M_js.SlideTemplatePreview; }
28
28
  });
29
29
  Object.defineProperty(exports, "Toolbar", {
30
30
  enumerable: true,
31
- get: function () { return chunkTPC65IB2_js.Toolbar; }
31
+ get: function () { return chunkLL2GSA3M_js.Toolbar; }
32
32
  });
33
33
  Object.defineProperty(exports, "ViewerThemeProvider", {
34
34
  enumerable: true,
35
- get: function () { return chunkTPC65IB2_js.ViewerThemeProvider; }
35
+ get: function () { return chunkLL2GSA3M_js.ViewerThemeProvider; }
36
36
  });
37
37
  Object.defineProperty(exports, "useViewerTheme", {
38
38
  enumerable: true,
39
- get: function () { return chunkTPC65IB2_js.useViewerTheme; }
39
+ get: function () { return chunkLL2GSA3M_js.useViewerTheme; }
40
40
  });
41
41
  Object.defineProperty(exports, "renderToCanvas", {
42
42
  enumerable: true,
43
- get: function () { return chunkLMTUC7U7_js.renderToCanvas; }
43
+ get: function () { return chunkN6EY3PJP_js.renderToCanvas; }
44
44
  });
45
45
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
46
46
  enumerable: true,
47
- get: function () { return chunkLMTUC7U7_js.useViewerBuildingBlocks; }
47
+ get: function () { return chunkN6EY3PJP_js.useViewerBuildingBlocks; }
48
48
  });
49
49
  Object.defineProperty(exports, "getAnimationInitialStyle", {
50
50
  enumerable: true,
51
- get: function () { return chunkPIJAFM4B_js.getAnimationInitialStyle; }
51
+ get: function () { return chunkGB7DRDDJ_js.getAnimationInitialStyle; }
52
52
  });
53
53
  Object.defineProperty(exports, "LOCALE_CATALOG", {
54
54
  enumerable: true,
@@ -56,121 +56,121 @@ Object.defineProperty(exports, "LOCALE_CATALOG", {
56
56
  });
57
57
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
58
58
  enumerable: true,
59
- get: function () { return chunkT7BIRNE4_js.AVATAR_COLOR_SWATCHES; }
59
+ get: function () { return chunkMZ6E7TUV_js.AVATAR_COLOR_SWATCHES; }
60
60
  });
61
61
  Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
62
62
  enumerable: true,
63
- get: function () { return chunkT7BIRNE4_js.DEFAULT_VIEWER_PROFILE; }
63
+ get: function () { return chunkMZ6E7TUV_js.DEFAULT_VIEWER_PROFILE; }
64
64
  });
65
65
  Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
66
66
  enumerable: true,
67
- get: function () { return chunkT7BIRNE4_js.PPTX_OPEN_ACCEPT; }
67
+ get: function () { return chunkMZ6E7TUV_js.PPTX_OPEN_ACCEPT; }
68
68
  });
69
69
  Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
70
70
  enumerable: true,
71
- get: function () { return chunkT7BIRNE4_js.PRESENTATION_OPEN_EXTENSIONS; }
71
+ get: function () { return chunkMZ6E7TUV_js.PRESENTATION_OPEN_EXTENSIONS; }
72
72
  });
73
73
  Object.defineProperty(exports, "SLIDE_TEMPLATES", {
74
74
  enumerable: true,
75
- get: function () { return chunkT7BIRNE4_js.SLIDE_TEMPLATES; }
75
+ get: function () { return chunkMZ6E7TUV_js.SLIDE_TEMPLATES; }
76
76
  });
77
77
  Object.defineProperty(exports, "THEME_CATALOG", {
78
78
  enumerable: true,
79
- get: function () { return chunkT7BIRNE4_js.THEME_CATALOG; }
79
+ get: function () { return chunkMZ6E7TUV_js.THEME_CATALOG; }
80
80
  });
81
81
  Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
82
82
  enumerable: true,
83
- get: function () { return chunkT7BIRNE4_js.VIEWER_PREFS_STORAGE_KEY; }
83
+ get: function () { return chunkMZ6E7TUV_js.VIEWER_PREFS_STORAGE_KEY; }
84
84
  });
85
85
  Object.defineProperty(exports, "buildSlideTemplateContent", {
86
86
  enumerable: true,
87
- get: function () { return chunkT7BIRNE4_js.buildSlideTemplateContent; }
87
+ get: function () { return chunkMZ6E7TUV_js.buildSlideTemplateContent; }
88
88
  });
89
89
  Object.defineProperty(exports, "buildSlideTemplateSlide", {
90
90
  enumerable: true,
91
- get: function () { return chunkT7BIRNE4_js.buildSlideTemplateSlide; }
91
+ get: function () { return chunkMZ6E7TUV_js.buildSlideTemplateSlide; }
92
92
  });
93
93
  Object.defineProperty(exports, "clearAllLocalViewerData", {
94
94
  enumerable: true,
95
- get: function () { return chunkT7BIRNE4_js.clearAllLocalViewerData; }
95
+ get: function () { return chunkMZ6E7TUV_js.clearAllLocalViewerData; }
96
96
  });
97
97
  Object.defineProperty(exports, "clearStoredViewerPrefs", {
98
98
  enumerable: true,
99
- get: function () { return chunkT7BIRNE4_js.clearStoredViewerPrefs; }
99
+ get: function () { return chunkMZ6E7TUV_js.clearStoredViewerPrefs; }
100
100
  });
101
101
  Object.defineProperty(exports, "defaultCssVars", {
102
102
  enumerable: true,
103
- get: function () { return chunkT7BIRNE4_js.defaultCssVars; }
103
+ get: function () { return chunkMZ6E7TUV_js.defaultCssVars; }
104
104
  });
105
105
  Object.defineProperty(exports, "defaultRadius", {
106
106
  enumerable: true,
107
- get: function () { return chunkT7BIRNE4_js.defaultRadius; }
107
+ get: function () { return chunkMZ6E7TUV_js.defaultRadius; }
108
108
  });
109
109
  Object.defineProperty(exports, "defaultThemeColors", {
110
110
  enumerable: true,
111
- get: function () { return chunkT7BIRNE4_js.defaultThemeColors; }
111
+ get: function () { return chunkMZ6E7TUV_js.defaultThemeColors; }
112
112
  });
113
113
  Object.defineProperty(exports, "getLocalStorageUsageSummary", {
114
114
  enumerable: true,
115
- get: function () { return chunkT7BIRNE4_js.getLocalStorageUsageSummary; }
115
+ get: function () { return chunkMZ6E7TUV_js.getLocalStorageUsageSummary; }
116
116
  });
117
117
  Object.defineProperty(exports, "isLegacyBinaryPresentation", {
118
118
  enumerable: true,
119
- get: function () { return chunkT7BIRNE4_js.isLegacyBinaryPresentation; }
119
+ get: function () { return chunkMZ6E7TUV_js.isLegacyBinaryPresentation; }
120
120
  });
121
121
  Object.defineProperty(exports, "isSupportedPresentationFile", {
122
122
  enumerable: true,
123
- get: function () { return chunkT7BIRNE4_js.isSupportedPresentationFile; }
123
+ get: function () { return chunkMZ6E7TUV_js.isSupportedPresentationFile; }
124
124
  });
125
125
  Object.defineProperty(exports, "presentationBaseName", {
126
126
  enumerable: true,
127
- get: function () { return chunkT7BIRNE4_js.presentationBaseName; }
127
+ get: function () { return chunkMZ6E7TUV_js.presentationBaseName; }
128
128
  });
129
129
  Object.defineProperty(exports, "readStoredViewerPrefs", {
130
130
  enumerable: true,
131
- get: function () { return chunkT7BIRNE4_js.readStoredViewerPrefs; }
131
+ get: function () { return chunkMZ6E7TUV_js.readStoredViewerPrefs; }
132
132
  });
133
133
  Object.defineProperty(exports, "resolveProfileInitial", {
134
134
  enumerable: true,
135
- get: function () { return chunkT7BIRNE4_js.resolveProfileInitial; }
135
+ get: function () { return chunkMZ6E7TUV_js.resolveProfileInitial; }
136
136
  });
137
137
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
138
138
  enumerable: true,
139
- get: function () { return chunkT7BIRNE4_js.resolveThemeCatalogEntry; }
139
+ get: function () { return chunkMZ6E7TUV_js.resolveThemeCatalogEntry; }
140
140
  });
141
141
  Object.defineProperty(exports, "saveViewerProfile", {
142
142
  enumerable: true,
143
- get: function () { return chunkT7BIRNE4_js.saveViewerProfile; }
143
+ get: function () { return chunkMZ6E7TUV_js.saveViewerProfile; }
144
144
  });
145
145
  Object.defineProperty(exports, "savedPresentationFileName", {
146
146
  enumerable: true,
147
- get: function () { return chunkT7BIRNE4_js.savedPresentationFileName; }
147
+ get: function () { return chunkMZ6E7TUV_js.savedPresentationFileName; }
148
148
  });
149
149
  Object.defineProperty(exports, "themeToCssVars", {
150
150
  enumerable: true,
151
- get: function () { return chunkT7BIRNE4_js.themeToCssVars; }
151
+ get: function () { return chunkMZ6E7TUV_js.themeToCssVars; }
152
152
  });
153
153
  Object.defineProperty(exports, "vermilionDarkColors", {
154
154
  enumerable: true,
155
- get: function () { return chunkT7BIRNE4_js.vermilionDarkColors; }
155
+ get: function () { return chunkMZ6E7TUV_js.vermilionDarkColors; }
156
156
  });
157
157
  Object.defineProperty(exports, "vermilionDarkTheme", {
158
158
  enumerable: true,
159
- get: function () { return chunkT7BIRNE4_js.vermilionDarkTheme; }
159
+ get: function () { return chunkMZ6E7TUV_js.vermilionDarkTheme; }
160
160
  });
161
161
  Object.defineProperty(exports, "vermilionLightColors", {
162
162
  enumerable: true,
163
- get: function () { return chunkT7BIRNE4_js.vermilionLightColors; }
163
+ get: function () { return chunkMZ6E7TUV_js.vermilionLightColors; }
164
164
  });
165
165
  Object.defineProperty(exports, "vermilionLightTheme", {
166
166
  enumerable: true,
167
- get: function () { return chunkT7BIRNE4_js.vermilionLightTheme; }
167
+ get: function () { return chunkMZ6E7TUV_js.vermilionLightTheme; }
168
168
  });
169
169
  Object.defineProperty(exports, "vermilionRadius", {
170
170
  enumerable: true,
171
- get: function () { return chunkT7BIRNE4_js.vermilionRadius; }
171
+ get: function () { return chunkMZ6E7TUV_js.vermilionRadius; }
172
172
  });
173
173
  Object.defineProperty(exports, "writeStoredViewerPrefs", {
174
174
  enumerable: true,
175
- get: function () { return chunkT7BIRNE4_js.writeStoredViewerPrefs; }
175
+ get: function () { return chunkMZ6E7TUV_js.writeStoredViewerPrefs; }
176
176
  });
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-B55E3KXL.mjs';
2
- import './chunk-KQGS6A5J.mjs';
3
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-5ZQ3ZQ3M.mjs';
4
- export { getAnimationInitialStyle } from './chunk-WGXQXHCS.mjs';
1
+ export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-6Q5ZJ5CE.mjs';
2
+ import './chunk-JFZ3ZA6J.mjs';
3
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-SL32VQDZ.mjs';
4
+ export { getAnimationInitialStyle } from './chunk-QVTFZH7K.mjs';
5
5
  export { LOCALE_CATALOG } from './chunk-SQJBFMEX.mjs';
6
- 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, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-PNR3J26S.mjs';
6
+ 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, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-E3ABZJ3V.mjs';
7
7
  import './chunk-XGB3TDIC.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -9098,6 +9098,34 @@ interface FieldSubstitutionContext {
9098
9098
  slideTitle?: string;
9099
9099
  }
9100
9100
  //#endregion
9101
+ //#region src/render/morph-crossfade-group.d.ts
9102
+ /** A matched pair whose two halves are both painted by the overlay. */
9103
+ interface MorphCrossfadeGroup {
9104
+ /** The outgoing (ghost) half, rendered in the OUTGOING slide's context. */
9105
+ outgoing: PptxElement;
9106
+ /** The incoming half, rendered in the INCOMING slide's context. */
9107
+ incoming: PptxElement;
9108
+ /**
9109
+ * The dissolve to run on the outgoing half's own WRAPPER, not on the element.
9110
+ *
9111
+ * A pair that dissolves where it stands never moves, so its journey keyframes
9112
+ * are an identity transform and are dropped; what is left is the fade. Put
9113
+ * that fade on the element and the element becomes its own compositing layer,
9114
+ * whose raster the browser snaps to whole device pixels: the wording is
9115
+ * painted up to a third of a pixel from where the live stage paints it, so it
9116
+ * visibly twitches as the transition starts and again as it ends. Measured on
9117
+ * the wheel deck at four show sizes, moving the fade onto the slide-sized
9118
+ * wrapper takes the arriving half from 0.22-0.31px off to under 0.02px - a
9119
+ * mean pixel difference of 0.01/255 against the settled slide.
9120
+ *
9121
+ * Undefined when the pair MOVES: it needs its journey keyframes on the
9122
+ * element, and a shape that is travelling cannot be seen to snap.
9123
+ */
9124
+ outgoingAnimation?: string;
9125
+ /** The arriving half's dissolve. @see MorphCrossfadeGroup.outgoingAnimation */
9126
+ incomingAnimation?: string;
9127
+ }
9128
+ //#endregion
9101
9129
  //#region src/render/morph-plan.d.ts
9102
9130
  /** Everything needed to play one morph transition. */
9103
9131
  interface MorphTransitionPlan {
@@ -9148,8 +9176,33 @@ interface MorphTransitionPlan {
9148
9176
  *
9149
9177
  * Usually empty. A binding renders these with the INCOMING slide as their
9150
9178
  * context, applying {@link MorphTransitionPlan.overlayIncomingAnimations}.
9179
+ *
9180
+ * A lifted half that is one end of a cross-dissolve is NOT here: it moves
9181
+ * into {@link MorphTransitionPlan.crossfadeGroups} so it can be composited
9182
+ * with its own ghost.
9151
9183
  */
9152
9184
  overlayIncomingElements: PptxElement[];
9185
+ /**
9186
+ * Pairs the overlay paints BOTH halves of, to be rendered as one isolated
9187
+ * group blending additively (see `morph-crossfade-group`).
9188
+ *
9189
+ * Their elements are deliberately absent from
9190
+ * {@link MorphTransitionPlan.outgoingElements} and
9191
+ * {@link MorphTransitionPlan.overlayIncomingElements}: a binding that renders
9192
+ * the groups paints each half exactly once, and one that ignored them would
9193
+ * drop the pair rather than paint it twice.
9194
+ *
9195
+ * A pair that dissolves where it stands also has its dissolve moved OFF the
9196
+ * two elements and onto {@link MorphCrossfadeGroup.outgoingAnimation} /
9197
+ * {@link MorphCrossfadeGroup.incomingAnimation}, for the binding to put on
9198
+ * the wrapper it paints each half in; the elements are then absent from
9199
+ * `outgoingAnimations` / `overlayIncomingAnimations` too, so no scoped rule
9200
+ * animates them. One that MOVES keeps its animations where they were.
9201
+ *
9202
+ * Painted above {@link MorphTransitionPlan.overlayIncomingElements}, in the
9203
+ * incoming slide's document order.
9204
+ */
9205
+ crossfadeGroups: MorphCrossfadeGroup[];
9153
9206
  /**
9154
9207
  * The outgoing slide's elements, in document order, for the binding to
9155
9208
  * render in its transition overlay for the duration of the morph. Most carry