pptx-react-viewer 4.16.1 → 4.17.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 (134) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/{AiChatPanel-DFZSMXJB.js → AiChatPanel-4VMAZWMA.js} +28 -28
  3. package/dist/AiChatPanel-4VMAZWMA.js.br +0 -0
  4. package/dist/AiChatPanel-4VMAZWMA.js.gz +0 -0
  5. package/dist/{AiChatPanel-K3PL6O3M.mjs → AiChatPanel-Z455OA7S.mjs} +4 -4
  6. package/dist/AiChatPanel-Z455OA7S.mjs.br +0 -0
  7. package/dist/AiChatPanel-Z455OA7S.mjs.gz +0 -0
  8. package/dist/{Model3DScene-EOKTWVG7.mjs → Model3DScene-DTWVQCBT.mjs} +1 -1
  9. package/dist/Model3DScene-DTWVQCBT.mjs.br +0 -0
  10. package/dist/Model3DScene-DTWVQCBT.mjs.gz +0 -0
  11. package/dist/{Model3DScene-ZYC5U7NY.js → Model3DScene-MFLMJAQX.js} +2 -2
  12. package/dist/Model3DScene-MFLMJAQX.js.br +0 -0
  13. package/dist/Model3DScene-MFLMJAQX.js.gz +0 -0
  14. package/dist/{chunk-XVJSAY7C.js → chunk-24CSDBXI.js} +875 -826
  15. package/dist/chunk-24CSDBXI.js.br +0 -0
  16. package/dist/chunk-24CSDBXI.js.gz +0 -0
  17. package/dist/{chunk-4VV5HJXQ.js → chunk-24UNI4EL.js} +6363 -3381
  18. package/dist/chunk-24UNI4EL.js.br +0 -0
  19. package/dist/chunk-24UNI4EL.js.gz +0 -0
  20. package/dist/{chunk-VUNRFZRR.mjs → chunk-26EMM7IE.mjs} +6343 -3365
  21. package/dist/chunk-26EMM7IE.mjs.br +0 -0
  22. package/dist/chunk-26EMM7IE.mjs.gz +0 -0
  23. package/dist/{chunk-33XJSD62.mjs → chunk-GLLEZR4U.mjs} +8 -0
  24. package/dist/chunk-GLLEZR4U.mjs.br +0 -0
  25. package/dist/{chunk-33XJSD62.mjs.gz → chunk-GLLEZR4U.mjs.gz} +0 -0
  26. package/dist/{chunk-KK2CFTKC.mjs → chunk-HUNX22TC.mjs} +2 -2
  27. package/dist/chunk-HUNX22TC.mjs.br +0 -0
  28. package/dist/chunk-HUNX22TC.mjs.gz +0 -0
  29. package/dist/{chunk-CWVPHCMJ.js → chunk-I23JEAUE.js} +5 -5
  30. package/dist/chunk-I23JEAUE.js.br +0 -0
  31. package/dist/chunk-I23JEAUE.js.gz +0 -0
  32. package/dist/{chunk-RE6NDQH7.js → chunk-I6VNRB6R.js} +197 -197
  33. package/dist/chunk-I6VNRB6R.js.br +0 -0
  34. package/dist/chunk-I6VNRB6R.js.gz +0 -0
  35. package/dist/{chunk-6PWT46Y4.mjs → chunk-JSMKHCKC.mjs} +604 -1804
  36. package/dist/chunk-JSMKHCKC.mjs.br +0 -0
  37. package/dist/chunk-JSMKHCKC.mjs.gz +0 -0
  38. package/dist/{chunk-VVGYZBF5.js → chunk-QDVMTPYQ.js} +2568 -3768
  39. package/dist/chunk-QDVMTPYQ.js.br +0 -0
  40. package/dist/chunk-QDVMTPYQ.js.gz +0 -0
  41. package/dist/{chunk-LJEI7O6S.js → chunk-QWQADOJZ.js} +8 -0
  42. package/dist/chunk-QWQADOJZ.js.br +0 -0
  43. package/dist/{chunk-LJEI7O6S.js.gz → chunk-QWQADOJZ.js.gz} +0 -0
  44. package/dist/{chunk-VUI3VE7K.mjs → chunk-UKR42GJS.mjs} +59 -10
  45. package/dist/chunk-UKR42GJS.mjs.br +0 -0
  46. package/dist/chunk-UKR42GJS.mjs.gz +0 -0
  47. package/dist/{chunk-QZSA3E4L.mjs → chunk-YMVJOQIS.mjs} +1 -1
  48. package/dist/chunk-YMVJOQIS.mjs.br +0 -0
  49. package/dist/chunk-YMVJOQIS.mjs.gz +0 -0
  50. package/dist/i18n/de.cjs +9 -1
  51. package/dist/i18n/de.cjs.br +0 -0
  52. package/dist/i18n/de.cjs.gz +0 -0
  53. package/dist/i18n/de.mjs +9 -1
  54. package/dist/i18n/de.mjs.br +0 -0
  55. package/dist/i18n/de.mjs.gz +0 -0
  56. package/dist/i18n/es.cjs +9 -1
  57. package/dist/i18n/es.cjs.br +0 -0
  58. package/dist/i18n/es.cjs.gz +0 -0
  59. package/dist/i18n/es.mjs +9 -1
  60. package/dist/i18n/es.mjs.br +0 -0
  61. package/dist/i18n/es.mjs.gz +0 -0
  62. package/dist/i18n/fr.cjs +9 -1
  63. package/dist/i18n/fr.cjs.br +0 -0
  64. package/dist/i18n/fr.cjs.gz +0 -0
  65. package/dist/i18n/fr.mjs +9 -1
  66. package/dist/i18n/fr.mjs.br +0 -0
  67. package/dist/i18n/fr.mjs.gz +0 -0
  68. package/dist/i18n/zh-CN.cjs +9 -1
  69. package/dist/i18n/zh-CN.cjs.br +0 -0
  70. package/dist/i18n/zh-CN.cjs.gz +0 -0
  71. package/dist/i18n/zh-CN.mjs +9 -1
  72. package/dist/i18n/zh-CN.mjs.br +0 -0
  73. package/dist/i18n/zh-CN.mjs.gz +0 -0
  74. package/dist/i18n.js +4 -4
  75. package/dist/i18n.js.br +0 -0
  76. package/dist/i18n.js.gz +0 -0
  77. package/dist/i18n.mjs +1 -1
  78. package/dist/i18n.mjs.br +0 -0
  79. package/dist/i18n.mjs.gz +0 -0
  80. package/dist/index.d.ts +158 -12185
  81. package/dist/index.js +63 -63
  82. package/dist/index.js.br +0 -0
  83. package/dist/index.js.gz +0 -0
  84. package/dist/index.mjs +6 -6
  85. package/dist/index.mjs.br +0 -0
  86. package/dist/index.mjs.gz +0 -0
  87. package/dist/internals.d.ts +162 -12196
  88. package/dist/internals.js +105 -105
  89. package/dist/internals.js.br +0 -0
  90. package/dist/internals.js.gz +0 -0
  91. package/dist/internals.mjs +4 -4
  92. package/dist/internals.mjs.br +0 -0
  93. package/dist/internals.mjs.gz +0 -0
  94. package/dist/pptx-viewer.css +1 -1
  95. package/dist/pptx-viewer.css.br +0 -0
  96. package/dist/pptx-viewer.css.gz +0 -0
  97. package/dist/viewer/index.d.ts +156 -12183
  98. package/dist/viewer/index.js +27 -27
  99. package/dist/viewer/index.js.br +0 -0
  100. package/dist/viewer/index.js.gz +0 -0
  101. package/dist/viewer/index.mjs +6 -6
  102. package/dist/viewer/index.mjs.br +0 -0
  103. package/dist/viewer/index.mjs.gz +0 -0
  104. package/package.json +2 -2
  105. package/dist/AiChatPanel-DFZSMXJB.js.br +0 -0
  106. package/dist/AiChatPanel-DFZSMXJB.js.gz +0 -0
  107. package/dist/AiChatPanel-K3PL6O3M.mjs.br +0 -0
  108. package/dist/AiChatPanel-K3PL6O3M.mjs.gz +0 -0
  109. package/dist/Model3DScene-EOKTWVG7.mjs.br +0 -0
  110. package/dist/Model3DScene-EOKTWVG7.mjs.gz +0 -0
  111. package/dist/Model3DScene-ZYC5U7NY.js.br +0 -0
  112. package/dist/Model3DScene-ZYC5U7NY.js.gz +0 -0
  113. package/dist/chunk-33XJSD62.mjs.br +0 -0
  114. package/dist/chunk-4VV5HJXQ.js.br +0 -0
  115. package/dist/chunk-4VV5HJXQ.js.gz +0 -0
  116. package/dist/chunk-6PWT46Y4.mjs.br +0 -0
  117. package/dist/chunk-6PWT46Y4.mjs.gz +0 -0
  118. package/dist/chunk-CWVPHCMJ.js.br +0 -0
  119. package/dist/chunk-CWVPHCMJ.js.gz +0 -0
  120. package/dist/chunk-KK2CFTKC.mjs.br +0 -0
  121. package/dist/chunk-KK2CFTKC.mjs.gz +0 -0
  122. package/dist/chunk-LJEI7O6S.js.br +0 -0
  123. package/dist/chunk-QZSA3E4L.mjs.br +0 -0
  124. package/dist/chunk-QZSA3E4L.mjs.gz +0 -0
  125. package/dist/chunk-RE6NDQH7.js.br +0 -0
  126. package/dist/chunk-RE6NDQH7.js.gz +0 -0
  127. package/dist/chunk-VUI3VE7K.mjs.br +0 -0
  128. package/dist/chunk-VUI3VE7K.mjs.gz +0 -0
  129. package/dist/chunk-VUNRFZRR.mjs.br +0 -0
  130. package/dist/chunk-VUNRFZRR.mjs.gz +0 -0
  131. package/dist/chunk-VVGYZBF5.js.br +0 -0
  132. package/dist/chunk-VVGYZBF5.js.gz +0 -0
  133. package/dist/chunk-XVJSAY7C.js.br +0 -0
  134. package/dist/chunk-XVJSAY7C.js.gz +0 -0
Binary file
Binary file
@@ -2479,6 +2479,7 @@ var translationsEn = {
2479
2479
  "pptx.ribbon.formatBackground": "Format Background",
2480
2480
  "pptx.ribbon.formatBackgroundTitle": "Format slide background - opens the Inspector",
2481
2481
  "pptx.ribbon.preview": "Preview",
2482
+ "pptx.ribbon.transitionToThisSlide": "Transition to This Slide",
2482
2483
  "pptx.ribbon.previewTransition": "Preview transition",
2483
2484
  "pptx.ribbon.duration": "Duration:",
2484
2485
  "pptx.ribbon.transitionDurationTitle": "Transition duration in seconds",
@@ -2875,6 +2876,13 @@ var translationsEn = {
2875
2876
  "pptx.hyperlink.urlPlaceholder": "https://example.com",
2876
2877
  "pptx.insert.addShape": "Add shape",
2877
2878
  "pptx.insert.addTextBox": "Add text box",
2879
+ "pptx.insert.groupTables": "Tables",
2880
+ "pptx.insert.groupImages": "Images",
2881
+ "pptx.insert.groupIllustrations": "Illustrations",
2882
+ "pptx.insert.groupLinks": "Links",
2883
+ "pptx.insert.groupText": "Text",
2884
+ "pptx.insert.groupSymbols": "Symbols",
2885
+ "pptx.insert.groupMedia": "Media",
2878
2886
  "pptx.insert.insertEquation": "Insert Equation",
2879
2887
  "pptx.insert.insertSmartArt": "Insert SmartArt",
2880
2888
  "pptx.insert.insertTable": "Insert table",
Binary file
@@ -1,5 +1,5 @@
1
- import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getImageFillCounterTransform, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_SANDBOX, ONLINE_VIDEO_IFRAME_ALLOW, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, followingText, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, getConnectorPathGeometry, 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, measurePreviewGeometry, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, shouldShowMediaFullscreenStopButton, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, scaleFontSizeForAutoFit, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, authoredLetterSpacingPx, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, splitsUnderlineIntoWords, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, 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, splitEastAsianBreaks, splitRunByScriptFont } from './chunk-VUNRFZRR.mjs';
2
- import { translationsEn } from './chunk-33XJSD62.mjs';
1
+ import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getImageFillCounterTransform, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_SANDBOX, ONLINE_VIDEO_IFRAME_ALLOW, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, followingText, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, getConnectorPathGeometry, 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, measurePreviewGeometry, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, shouldShowMediaFullscreenStopButton, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, scaleFontSizeForAutoFit, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, authoredLetterSpacingPx, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, splitsUnderlineIntoWords, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, 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, splitEastAsianBreaks, splitRunByScriptFont } from './chunk-26EMM7IE.mjs';
2
+ import { translationsEn } from './chunk-GLLEZR4U.mjs';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import React8, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk4VV5HJXQ_js = require('./chunk-4VV5HJXQ.js');
3
+ var chunk24UNI4EL_js = require('./chunk-24UNI4EL.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');
@@ -19079,7 +19079,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
19079
19079
  };
19080
19080
  let markdown;
19081
19081
  try {
19082
- const converter = new chunk4VV5HJXQ_js.PptxMarkdownConverter(
19082
+ const converter = new chunk24UNI4EL_js.PptxMarkdownConverter(
19083
19083
  "",
19084
19084
  {
19085
19085
  sourceName: meta3.title ?? "deck.pptx",
@@ -19671,7 +19671,7 @@ var getTheme = (ctx) => {
19671
19671
  name: theme?.name,
19672
19672
  colorScheme: theme?.colorScheme,
19673
19673
  fontScheme: theme?.fontScheme,
19674
- availablePresets: Object.keys(chunk4VV5HJXQ_js.ThemePresets)
19674
+ availablePresets: Object.keys(chunk24UNI4EL_js.ThemePresets)
19675
19675
  };
19676
19676
  };
19677
19677
  var readExecutors = {
@@ -20801,7 +20801,7 @@ function applyElementUpdate(el, u) {
20801
20801
  applyShapeStyleUpdate(el, u);
20802
20802
  }
20803
20803
  function applyTextUpdate(el, u) {
20804
- if (!chunk4VV5HJXQ_js.hasTextProperties(el)) {
20804
+ if (!chunk24UNI4EL_js.hasTextProperties(el)) {
20805
20805
  return;
20806
20806
  }
20807
20807
  const textEl = el;
@@ -20847,7 +20847,7 @@ function applyShapeStyleUpdate(el, u) {
20847
20847
  if (u.fillColor === void 0 && u.strokeColor === void 0 && u.strokeWidth === void 0) {
20848
20848
  return;
20849
20849
  }
20850
- if (!chunk4VV5HJXQ_js.hasShapeProperties(el)) {
20850
+ if (!chunk24UNI4EL_js.hasShapeProperties(el)) {
20851
20851
  return;
20852
20852
  }
20853
20853
  const holder = el;
Binary file
Binary file