pptx-react-viewer 1.21.0 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{Model3DScene-IGFOR6UG.js → Model3DScene-3YB3JAJS.js} +2 -2
  3. package/dist/{Model3DScene-IGFOR6UG.js.br → Model3DScene-3YB3JAJS.js.br} +0 -0
  4. package/dist/Model3DScene-3YB3JAJS.js.gz +0 -0
  5. package/dist/{Model3DScene-FERG6DP5.mjs → Model3DScene-NLUSXHD6.mjs} +1 -1
  6. package/dist/Model3DScene-NLUSXHD6.mjs.br +0 -0
  7. package/dist/Model3DScene-NLUSXHD6.mjs.gz +0 -0
  8. package/dist/{PowerPointViewer-JxHuwp4K.d.ts → PowerPointViewer-WGVR_u4z.d.ts} +2 -2
  9. package/dist/PowerPointViewer-WGVR_u4z.d.ts.map +1 -0
  10. package/dist/{SurfaceChart3DScene-S2UEFUQ5.js → SurfaceChart3DScene-PUQ5DCO5.js} +2 -2
  11. package/dist/SurfaceChart3DScene-PUQ5DCO5.js.br +0 -0
  12. package/dist/SurfaceChart3DScene-PUQ5DCO5.js.gz +0 -0
  13. package/dist/{SurfaceChart3DScene-754VHVLW.mjs → SurfaceChart3DScene-YBMJQGH3.mjs} +1 -1
  14. package/dist/{SurfaceChart3DScene-754VHVLW.mjs.br → SurfaceChart3DScene-YBMJQGH3.mjs.br} +0 -0
  15. package/dist/SurfaceChart3DScene-YBMJQGH3.mjs.gz +0 -0
  16. package/dist/{chunk-FTJ5JKLB.mjs → chunk-5SBQZEKD.mjs} +170 -1
  17. package/dist/chunk-5SBQZEKD.mjs.br +0 -0
  18. package/dist/chunk-5SBQZEKD.mjs.gz +0 -0
  19. package/dist/{chunk-K6C5G2J6.mjs → chunk-B7JRQB5F.mjs} +363 -89
  20. package/dist/chunk-B7JRQB5F.mjs.br +0 -0
  21. package/dist/chunk-B7JRQB5F.mjs.gz +0 -0
  22. package/dist/{chunk-2C3XYEFM.mjs → chunk-DZUI64SO.mjs} +3 -3
  23. package/dist/chunk-DZUI64SO.mjs.br +0 -0
  24. package/dist/chunk-DZUI64SO.mjs.gz +0 -0
  25. package/dist/{chunk-4LPWBQTH.mjs → chunk-E3KJKCSV.mjs} +7 -1
  26. package/dist/chunk-E3KJKCSV.mjs.br +0 -0
  27. package/dist/{chunk-4LPWBQTH.mjs.gz → chunk-E3KJKCSV.mjs.gz} +0 -0
  28. package/dist/{chunk-2YHX6IAW.js → chunk-QVQTDWB7.js} +400 -400
  29. package/dist/chunk-QVQTDWB7.js.br +0 -0
  30. package/dist/chunk-QVQTDWB7.js.gz +0 -0
  31. package/dist/{chunk-UGAJLDGZ.js → chunk-VSNXVKJI.js} +182 -0
  32. package/dist/chunk-VSNXVKJI.js.br +0 -0
  33. package/dist/chunk-VSNXVKJI.js.gz +0 -0
  34. package/dist/{chunk-PQUAAGKH.js → chunk-YPZV4KJT.js} +1053 -779
  35. package/dist/chunk-YPZV4KJT.js.br +0 -0
  36. package/dist/chunk-YPZV4KJT.js.gz +0 -0
  37. package/dist/{chunk-4SRCC7NB.js → chunk-ZISXRMDJ.js} +7 -0
  38. package/dist/chunk-ZISXRMDJ.js.br +0 -0
  39. package/dist/{chunk-4SRCC7NB.js.gz → chunk-ZISXRMDJ.js.gz} +0 -0
  40. package/dist/hooks-unstable.js +76 -76
  41. package/dist/hooks-unstable.js.br +0 -0
  42. package/dist/hooks-unstable.js.gz +0 -0
  43. package/dist/hooks-unstable.mjs +3 -3
  44. package/dist/hooks-unstable.mjs.br +0 -0
  45. package/dist/hooks-unstable.mjs.gz +0 -0
  46. package/dist/i18n.d.ts +18 -2
  47. package/dist/i18n.js +7 -3
  48. package/dist/i18n.js.br +0 -0
  49. package/dist/i18n.js.gz +0 -0
  50. package/dist/i18n.mjs +1 -1
  51. package/dist/i18n.mjs.br +0 -0
  52. package/dist/i18n.mjs.gz +0 -0
  53. package/dist/index-SUL_8gq8.d.ts +43 -0
  54. package/dist/index-SUL_8gq8.d.ts.map +1 -0
  55. package/dist/{index-BhR8ykQj.d.ts → index-ntF3kHHU.d.ts} +2 -2
  56. package/dist/{index-BhR8ykQj.d.ts.map → index-ntF3kHHU.d.ts.map} +1 -1
  57. package/dist/index.d.ts +153 -2
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +70 -18
  60. package/dist/index.js.br +0 -0
  61. package/dist/index.js.gz +0 -0
  62. package/dist/index.mjs +4 -4
  63. package/dist/index.mjs.br +0 -0
  64. package/dist/index.mjs.gz +0 -0
  65. package/dist/pptx-viewer.css +1 -1
  66. package/dist/pptx-viewer.css.br +0 -0
  67. package/dist/pptx-viewer.css.gz +0 -0
  68. package/dist/{types-DGauquE9.d.ts → types-Cdh0XYcS.d.ts} +48 -3
  69. package/dist/types-Cdh0XYcS.d.ts.map +1 -0
  70. package/dist/viewer/index.d.ts +79 -0
  71. package/dist/viewer/index.js +20 -20
  72. package/dist/viewer/index.js.br +0 -0
  73. package/dist/viewer/index.js.gz +0 -0
  74. package/dist/viewer/index.mjs +4 -4
  75. package/dist/viewer/index.mjs.br +0 -0
  76. package/dist/viewer/index.mjs.gz +0 -0
  77. package/package.json +1 -1
  78. package/dist/Model3DScene-FERG6DP5.mjs.br +0 -0
  79. package/dist/Model3DScene-FERG6DP5.mjs.gz +0 -0
  80. package/dist/Model3DScene-IGFOR6UG.js.gz +0 -0
  81. package/dist/PowerPointViewer-JxHuwp4K.d.ts.map +0 -1
  82. package/dist/SurfaceChart3DScene-754VHVLW.mjs.gz +0 -0
  83. package/dist/SurfaceChart3DScene-S2UEFUQ5.js.br +0 -0
  84. package/dist/SurfaceChart3DScene-S2UEFUQ5.js.gz +0 -0
  85. package/dist/chunk-2C3XYEFM.mjs.br +0 -0
  86. package/dist/chunk-2C3XYEFM.mjs.gz +0 -0
  87. package/dist/chunk-2YHX6IAW.js.br +0 -0
  88. package/dist/chunk-2YHX6IAW.js.gz +0 -0
  89. package/dist/chunk-4LPWBQTH.mjs.br +0 -0
  90. package/dist/chunk-4SRCC7NB.js.br +0 -0
  91. package/dist/chunk-FTJ5JKLB.mjs.br +0 -0
  92. package/dist/chunk-FTJ5JKLB.mjs.gz +0 -0
  93. package/dist/chunk-K6C5G2J6.mjs.br +0 -0
  94. package/dist/chunk-K6C5G2J6.mjs.gz +0 -0
  95. package/dist/chunk-PQUAAGKH.js.br +0 -0
  96. package/dist/chunk-PQUAAGKH.js.gz +0 -0
  97. package/dist/chunk-UGAJLDGZ.js.br +0 -0
  98. package/dist/chunk-UGAJLDGZ.js.gz +0 -0
  99. package/dist/i18n.d.ts.map +0 -1
  100. package/dist/types-DGauquE9.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, computeEntranceAnimationDelay, storePresentationDeck, loadPresentationDeck, clearPresentationDeck, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, isPresentationSessionMessage, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, getAnimationInitialStyle, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createTouchGestureRecognizer, isKeyboardOpen, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, tintColor2, shadeColor2, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, chartPartToAttrs } from './chunk-FTJ5JKLB.mjs';
2
- import { translationsEn } from './chunk-4LPWBQTH.mjs';
1
+ import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, computeEntranceAnimationDelay, storePresentationDeck, loadPresentationDeck, clearPresentationDeck, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, isPresentationSessionMessage, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, getAnimationInitialStyle, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createTouchGestureRecognizer, isKeyboardOpen, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, tintColor2, shadeColor2, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, chartPartToAttrs } from './chunk-5SBQZEKD.mjs';
2
+ import { translationsEn } from './chunk-E3KJKCSV.mjs';
3
3
  import { hasTextProperties, PptxHandler, EncryptedFileError, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, guidePxToEmu, mergeShapes, getSubstituteFontFamily, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-3ZGCM6RC.mjs';
4
4
  import React3, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useSyncExternalStore, useImperativeHandle, useLayoutEffect } from 'react';
5
5
  import { LuTriangle, LuPlus, LuMoveRight, LuMinus, LuDiamond, LuDatabase, LuCircle, LuSquare } from 'react-icons/lu';
@@ -8464,7 +8464,7 @@ function FailedToLoad() {
8464
8464
  var LazySurfaceChart3DScene = React3.lazy(
8465
8465
  async () => {
8466
8466
  try {
8467
- return await import('./SurfaceChart3DScene-754VHVLW.mjs');
8467
+ return await import('./SurfaceChart3DScene-YBMJQGH3.mjs');
8468
8468
  } catch {
8469
8469
  return { default: FailedToLoad };
8470
8470
  }
Binary file
Binary file
@@ -2535,5 +2535,11 @@ function keyToLabel(key) {
2535
2535
  const last = key.split(".").pop() ?? key;
2536
2536
  return last.replace(/(?<lower>[a-z])(?<upper>[A-Z])/gu, "$<lower> $<upper>").replace(/^./u, (c) => c.toUpperCase());
2537
2537
  }
2538
+ var LOCALE_CATALOG = [
2539
+ { code: "en", label: "English", nativeLabel: "English" },
2540
+ { code: "fr", label: "French", nativeLabel: "Fran\xE7ais" },
2541
+ { code: "es", label: "Spanish", nativeLabel: "Espa\xF1ol" },
2542
+ { code: "de", label: "German", nativeLabel: "Deutsch" }
2543
+ ];
2538
2544
 
2539
- export { keyToLabel, translationsEn };
2545
+ export { LOCALE_CATALOG, keyToLabel, translationsEn };
Binary file