pptx-react-viewer 3.5.2 → 3.5.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 (136) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AiChatPanel-GZCDFIGE.mjs → AiChatPanel-L2HGGEND.mjs} +3 -3
  3. package/dist/AiChatPanel-L2HGGEND.mjs.br +0 -0
  4. package/dist/AiChatPanel-L2HGGEND.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-AR6FYCHC.js → AiChatPanel-ZEM3ZVA6.js} +24 -24
  6. package/dist/AiChatPanel-ZEM3ZVA6.js.br +0 -0
  7. package/dist/AiChatPanel-ZEM3ZVA6.js.gz +0 -0
  8. package/dist/{Area3DChartScene-EZFIY4YQ.mjs → Area3DChartScene-EYNCHRB3.mjs} +1 -1
  9. package/dist/Area3DChartScene-EYNCHRB3.mjs.br +2 -0
  10. package/dist/Area3DChartScene-EYNCHRB3.mjs.gz +0 -0
  11. package/dist/{Area3DChartScene-NB6Q6KNP.js → Area3DChartScene-I7LMTNK5.js} +2 -2
  12. package/dist/Area3DChartScene-I7LMTNK5.js.br +0 -0
  13. package/dist/Area3DChartScene-I7LMTNK5.js.gz +0 -0
  14. package/dist/{Bar3DChartScene-ZVTJM5EB.mjs → Bar3DChartScene-6HQ6QWNB.mjs} +1 -1
  15. package/dist/Bar3DChartScene-6HQ6QWNB.mjs.br +0 -0
  16. package/dist/Bar3DChartScene-6HQ6QWNB.mjs.gz +0 -0
  17. package/dist/{Bar3DChartScene-3A6MUJW7.js → Bar3DChartScene-VPKQDPIO.js} +2 -2
  18. package/dist/Bar3DChartScene-VPKQDPIO.js.br +0 -0
  19. package/dist/Bar3DChartScene-VPKQDPIO.js.gz +0 -0
  20. package/dist/{Line3DChartScene-XTWON2Q4.mjs → Line3DChartScene-QYBKXNOD.mjs} +1 -1
  21. package/dist/Line3DChartScene-QYBKXNOD.mjs.br +2 -0
  22. package/dist/Line3DChartScene-QYBKXNOD.mjs.gz +0 -0
  23. package/dist/{Line3DChartScene-RQGOPRGY.js → Line3DChartScene-VV362RMX.js} +2 -2
  24. package/dist/Line3DChartScene-VV362RMX.js.br +0 -0
  25. package/dist/Line3DChartScene-VV362RMX.js.gz +0 -0
  26. package/dist/{Model3DScene-V4WPP5CC.js → Model3DScene-XA57KXA5.js} +2 -2
  27. package/dist/{Model3DScene-V4WPP5CC.js.br → Model3DScene-XA57KXA5.js.br} +0 -0
  28. package/dist/Model3DScene-XA57KXA5.js.gz +0 -0
  29. package/dist/{Model3DScene-42VYK4DR.mjs → Model3DScene-YTLWTG52.mjs} +1 -1
  30. package/dist/Model3DScene-YTLWTG52.mjs.br +0 -0
  31. package/dist/Model3DScene-YTLWTG52.mjs.gz +0 -0
  32. package/dist/{PieChart3DScene-UVYGUNRM.js → PieChart3DScene-IFZMTN5H.js} +2 -2
  33. package/dist/{PieChart3DScene-UVYGUNRM.js.br → PieChart3DScene-IFZMTN5H.js.br} +0 -0
  34. package/dist/PieChart3DScene-IFZMTN5H.js.gz +0 -0
  35. package/dist/{PieChart3DScene-GHNKD5TN.mjs → PieChart3DScene-INBL4F5Z.mjs} +1 -1
  36. package/dist/PieChart3DScene-INBL4F5Z.mjs.br +0 -0
  37. package/dist/PieChart3DScene-INBL4F5Z.mjs.gz +0 -0
  38. package/dist/{SurfaceChart3DScene-AEKTCMYZ.mjs → SurfaceChart3DScene-EV6DBPJS.mjs} +1 -1
  39. package/dist/SurfaceChart3DScene-EV6DBPJS.mjs.br +0 -0
  40. package/dist/SurfaceChart3DScene-EV6DBPJS.mjs.gz +0 -0
  41. package/dist/{SurfaceChart3DScene-E7OHBIM3.js → SurfaceChart3DScene-FRSZVIVB.js} +2 -2
  42. package/dist/{SurfaceChart3DScene-E7OHBIM3.js.br → SurfaceChart3DScene-FRSZVIVB.js.br} +0 -0
  43. package/dist/SurfaceChart3DScene-FRSZVIVB.js.gz +0 -0
  44. package/dist/{chunk-5F4RXVTA.mjs → chunk-3WM5TUY7.mjs} +2 -2
  45. package/dist/chunk-3WM5TUY7.mjs.br +0 -0
  46. package/dist/chunk-3WM5TUY7.mjs.gz +0 -0
  47. package/dist/{chunk-RCPRMTPJ.mjs → chunk-7AL6KAFX.mjs} +12 -12
  48. package/dist/chunk-7AL6KAFX.mjs.br +0 -0
  49. package/dist/chunk-7AL6KAFX.mjs.gz +0 -0
  50. package/dist/{chunk-VEU3QLEZ.js → chunk-BBSFZLYI.js} +5 -5
  51. package/dist/chunk-BBSFZLYI.js.br +0 -0
  52. package/dist/chunk-BBSFZLYI.js.gz +0 -0
  53. package/dist/{chunk-5FIC2LG3.js → chunk-HHDPQJF3.js} +3 -3
  54. package/dist/chunk-HHDPQJF3.js.br +0 -0
  55. package/dist/{chunk-5FIC2LG3.js.gz → chunk-HHDPQJF3.js.gz} +0 -0
  56. package/dist/{chunk-HNTAGERM.mjs → chunk-KOLCCOTS.mjs} +1 -1
  57. package/dist/chunk-KOLCCOTS.mjs.br +0 -0
  58. package/dist/chunk-KOLCCOTS.mjs.gz +0 -0
  59. package/dist/{chunk-3LYWPIRW.mjs → chunk-MSRRBA7G.mjs} +1 -1
  60. package/dist/chunk-MSRRBA7G.mjs.br +0 -0
  61. package/dist/chunk-MSRRBA7G.mjs.gz +0 -0
  62. package/dist/{chunk-OTKVJT4R.js → chunk-PPL3WBC7.js} +1180 -1180
  63. package/dist/chunk-PPL3WBC7.js.br +0 -0
  64. package/dist/chunk-PPL3WBC7.js.gz +0 -0
  65. package/dist/{chunk-LIIV45TR.js → chunk-QA573RUB.js} +160 -160
  66. package/dist/chunk-QA573RUB.js.br +0 -0
  67. package/dist/chunk-QA573RUB.js.gz +0 -0
  68. package/dist/{chunk-OHNNWSCP.mjs → chunk-QPHGHUUJ.mjs} +3 -3
  69. package/dist/chunk-QPHGHUUJ.mjs.br +0 -0
  70. package/dist/chunk-QPHGHUUJ.mjs.gz +0 -0
  71. package/dist/{chunk-XGNK2IZ4.js → chunk-SIM2LXO2.js} +430 -430
  72. package/dist/chunk-SIM2LXO2.js.br +0 -0
  73. package/dist/chunk-SIM2LXO2.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.js +78 -78
  81. package/dist/internals.js.br +0 -0
  82. package/dist/internals.js.gz +0 -0
  83. package/dist/internals.mjs +3 -3
  84. package/dist/internals.mjs.br +0 -0
  85. package/dist/internals.mjs.gz +0 -0
  86. package/dist/viewer/index.js +26 -26
  87. package/dist/viewer/index.js.br +0 -0
  88. package/dist/viewer/index.js.gz +0 -0
  89. package/dist/viewer/index.mjs +5 -5
  90. package/dist/viewer/index.mjs.br +0 -0
  91. package/dist/viewer/index.mjs.gz +0 -0
  92. package/package.json +1 -1
  93. package/dist/AiChatPanel-AR6FYCHC.js.br +0 -0
  94. package/dist/AiChatPanel-AR6FYCHC.js.gz +0 -0
  95. package/dist/AiChatPanel-GZCDFIGE.mjs.br +0 -0
  96. package/dist/AiChatPanel-GZCDFIGE.mjs.gz +0 -0
  97. package/dist/Area3DChartScene-EZFIY4YQ.mjs.br +0 -0
  98. package/dist/Area3DChartScene-EZFIY4YQ.mjs.gz +0 -0
  99. package/dist/Area3DChartScene-NB6Q6KNP.js.br +0 -0
  100. package/dist/Area3DChartScene-NB6Q6KNP.js.gz +0 -0
  101. package/dist/Bar3DChartScene-3A6MUJW7.js.br +0 -0
  102. package/dist/Bar3DChartScene-3A6MUJW7.js.gz +0 -0
  103. package/dist/Bar3DChartScene-ZVTJM5EB.mjs.br +0 -0
  104. package/dist/Bar3DChartScene-ZVTJM5EB.mjs.gz +0 -0
  105. package/dist/Line3DChartScene-RQGOPRGY.js.br +0 -0
  106. package/dist/Line3DChartScene-RQGOPRGY.js.gz +0 -0
  107. package/dist/Line3DChartScene-XTWON2Q4.mjs.br +0 -0
  108. package/dist/Line3DChartScene-XTWON2Q4.mjs.gz +0 -0
  109. package/dist/Model3DScene-42VYK4DR.mjs.br +0 -0
  110. package/dist/Model3DScene-42VYK4DR.mjs.gz +0 -0
  111. package/dist/Model3DScene-V4WPP5CC.js.gz +0 -0
  112. package/dist/PieChart3DScene-GHNKD5TN.mjs.br +0 -0
  113. package/dist/PieChart3DScene-GHNKD5TN.mjs.gz +0 -0
  114. package/dist/PieChart3DScene-UVYGUNRM.js.gz +0 -0
  115. package/dist/SurfaceChart3DScene-AEKTCMYZ.mjs.br +0 -0
  116. package/dist/SurfaceChart3DScene-AEKTCMYZ.mjs.gz +0 -0
  117. package/dist/SurfaceChart3DScene-E7OHBIM3.js.gz +0 -0
  118. package/dist/chunk-3LYWPIRW.mjs.br +0 -0
  119. package/dist/chunk-3LYWPIRW.mjs.gz +0 -0
  120. package/dist/chunk-5F4RXVTA.mjs.br +0 -0
  121. package/dist/chunk-5F4RXVTA.mjs.gz +0 -0
  122. package/dist/chunk-5FIC2LG3.js.br +0 -0
  123. package/dist/chunk-HNTAGERM.mjs.br +0 -0
  124. package/dist/chunk-HNTAGERM.mjs.gz +0 -0
  125. package/dist/chunk-LIIV45TR.js.br +0 -0
  126. package/dist/chunk-LIIV45TR.js.gz +0 -0
  127. package/dist/chunk-OHNNWSCP.mjs.br +0 -0
  128. package/dist/chunk-OHNNWSCP.mjs.gz +0 -0
  129. package/dist/chunk-OTKVJT4R.js.br +0 -0
  130. package/dist/chunk-OTKVJT4R.js.gz +0 -0
  131. package/dist/chunk-RCPRMTPJ.mjs.br +0 -0
  132. package/dist/chunk-RCPRMTPJ.mjs.gz +0 -0
  133. package/dist/chunk-VEU3QLEZ.js.br +0 -0
  134. package/dist/chunk-VEU3QLEZ.js.gz +0 -0
  135. package/dist/chunk-XGNK2IZ4.js.br +0 -0
  136. package/dist/chunk-XGNK2IZ4.js.gz +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5FIC2LG3_js = require('./chunk-5FIC2LG3.js');
3
+ var chunkHHDPQJF3_js = require('./chunk-HHDPQJF3.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 chunk5FIC2LG3_js.PptxMarkdownConverter(
14882
+ const converter = new chunkHHDPQJF3_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(chunk5FIC2LG3_js.ThemePresets)
15474
+ availablePresets: Object.keys(chunkHHDPQJF3_js.ThemePresets)
15475
15475
  };
15476
15476
  };
15477
15477
  var readExecutors = {
@@ -16499,7 +16499,7 @@ function applyElementUpdate(el, u) {
16499
16499
  applyShapeStyleUpdate(el, u);
16500
16500
  }
16501
16501
  function applyTextUpdate(el, u) {
16502
- if (!chunk5FIC2LG3_js.hasTextProperties(el)) {
16502
+ if (!chunkHHDPQJF3_js.hasTextProperties(el)) {
16503
16503
  return;
16504
16504
  }
16505
16505
  const textEl = el;
@@ -16548,7 +16548,7 @@ function applyShapeStyleUpdate(el, u) {
16548
16548
  if (u.fillColor === void 0 && u.strokeColor === void 0 && u.strokeWidth === void 0) {
16549
16549
  return;
16550
16550
  }
16551
- if (!chunk5FIC2LG3_js.hasShapeProperties(el)) {
16551
+ if (!chunkHHDPQJF3_js.hasShapeProperties(el)) {
16552
16552
  return;
16553
16553
  }
16554
16554
  const holder = el;
Binary file
Binary file
@@ -40281,7 +40281,7 @@ function applyRunProperties(run, runProperties2, context) {
40281
40281
  }
40282
40282
  const size = parseInt(String(runProperties2["@_sz"] ?? ""), 10);
40283
40283
  if (Number.isFinite(size) && size > 0) {
40284
- run.fontSize = Math.round(size / 100);
40284
+ run.fontSize = size / 100;
40285
40285
  }
40286
40286
  if (runProperties2["a:solidFill"]) {
40287
40287
  const color2 = context.parseColor(runProperties2["a:solidFill"]);
@@ -40395,7 +40395,7 @@ function applyRunProperties2(runProperties2, style, context) {
40395
40395
  hasStyle = true;
40396
40396
  }
40397
40397
  if (runProperties2["@_sz"]) {
40398
- style.fontSize = Math.round(parseInt(String(runProperties2["@_sz"]), 10) / 100);
40398
+ style.fontSize = parseInt(String(runProperties2["@_sz"]), 10) / 100;
40399
40399
  hasStyle = true;
40400
40400
  }
40401
40401
  if (runProperties2["a:solidFill"]) {
@@ -65629,7 +65629,7 @@ function writeCellTextFormatting(xmlCell, style, ensureArray18) {
65629
65629
  rPr["@_u"] = style.underline ? "sng" : "none";
65630
65630
  }
65631
65631
  if (style.fontSize !== void 0) {
65632
- rPr["@_sz"] = String(style.fontSize * 100);
65632
+ rPr["@_sz"] = String(Math.round(style.fontSize * 100));
65633
65633
  }
65634
65634
  if (style.color) {
65635
65635
  rPr["a:solidFill"] = {
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, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitRunForMetrics, splitRunByScriptFont } from './chunk-OHNNWSCP.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, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitRunForMetrics, splitRunByScriptFont } from './chunk-QPHGHUUJ.mjs';
2
2
  import { translationsEn } from './chunk-JCJ3EPG6.mjs';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { ThemePresets, PptxMarkdownConverter, hasTextProperties, hasShapeProperties } from './chunk-OHNNWSCP.mjs';
1
+ import { ThemePresets, PptxMarkdownConverter, hasTextProperties, hasShapeProperties } from './chunk-QPHGHUUJ.mjs';
2
2
  import { __export } from './chunk-XGB3TDIC.mjs';
3
3
  import * as mcp from 'pptx-viewer-mcp';
4
4
  import * as mcpSchemas from 'pptx-viewer-mcp/schemas';
Binary file
Binary file