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.
- package/CHANGELOG.md +8 -0
- package/dist/{AiChatPanel-GZCDFIGE.mjs → AiChatPanel-L2HGGEND.mjs} +3 -3
- package/dist/AiChatPanel-L2HGGEND.mjs.br +0 -0
- package/dist/AiChatPanel-L2HGGEND.mjs.gz +0 -0
- package/dist/{AiChatPanel-AR6FYCHC.js → AiChatPanel-ZEM3ZVA6.js} +24 -24
- package/dist/AiChatPanel-ZEM3ZVA6.js.br +0 -0
- package/dist/AiChatPanel-ZEM3ZVA6.js.gz +0 -0
- package/dist/{Area3DChartScene-EZFIY4YQ.mjs → Area3DChartScene-EYNCHRB3.mjs} +1 -1
- package/dist/Area3DChartScene-EYNCHRB3.mjs.br +2 -0
- package/dist/Area3DChartScene-EYNCHRB3.mjs.gz +0 -0
- package/dist/{Area3DChartScene-NB6Q6KNP.js → Area3DChartScene-I7LMTNK5.js} +2 -2
- package/dist/Area3DChartScene-I7LMTNK5.js.br +0 -0
- package/dist/Area3DChartScene-I7LMTNK5.js.gz +0 -0
- package/dist/{Bar3DChartScene-ZVTJM5EB.mjs → Bar3DChartScene-6HQ6QWNB.mjs} +1 -1
- package/dist/Bar3DChartScene-6HQ6QWNB.mjs.br +0 -0
- package/dist/Bar3DChartScene-6HQ6QWNB.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-3A6MUJW7.js → Bar3DChartScene-VPKQDPIO.js} +2 -2
- package/dist/Bar3DChartScene-VPKQDPIO.js.br +0 -0
- package/dist/Bar3DChartScene-VPKQDPIO.js.gz +0 -0
- package/dist/{Line3DChartScene-XTWON2Q4.mjs → Line3DChartScene-QYBKXNOD.mjs} +1 -1
- package/dist/Line3DChartScene-QYBKXNOD.mjs.br +2 -0
- package/dist/Line3DChartScene-QYBKXNOD.mjs.gz +0 -0
- package/dist/{Line3DChartScene-RQGOPRGY.js → Line3DChartScene-VV362RMX.js} +2 -2
- package/dist/Line3DChartScene-VV362RMX.js.br +0 -0
- package/dist/Line3DChartScene-VV362RMX.js.gz +0 -0
- package/dist/{Model3DScene-V4WPP5CC.js → Model3DScene-XA57KXA5.js} +2 -2
- package/dist/{Model3DScene-V4WPP5CC.js.br → Model3DScene-XA57KXA5.js.br} +0 -0
- package/dist/Model3DScene-XA57KXA5.js.gz +0 -0
- package/dist/{Model3DScene-42VYK4DR.mjs → Model3DScene-YTLWTG52.mjs} +1 -1
- package/dist/Model3DScene-YTLWTG52.mjs.br +0 -0
- package/dist/Model3DScene-YTLWTG52.mjs.gz +0 -0
- package/dist/{PieChart3DScene-UVYGUNRM.js → PieChart3DScene-IFZMTN5H.js} +2 -2
- package/dist/{PieChart3DScene-UVYGUNRM.js.br → PieChart3DScene-IFZMTN5H.js.br} +0 -0
- package/dist/PieChart3DScene-IFZMTN5H.js.gz +0 -0
- package/dist/{PieChart3DScene-GHNKD5TN.mjs → PieChart3DScene-INBL4F5Z.mjs} +1 -1
- package/dist/PieChart3DScene-INBL4F5Z.mjs.br +0 -0
- package/dist/PieChart3DScene-INBL4F5Z.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-AEKTCMYZ.mjs → SurfaceChart3DScene-EV6DBPJS.mjs} +1 -1
- package/dist/SurfaceChart3DScene-EV6DBPJS.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-EV6DBPJS.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-E7OHBIM3.js → SurfaceChart3DScene-FRSZVIVB.js} +2 -2
- package/dist/{SurfaceChart3DScene-E7OHBIM3.js.br → SurfaceChart3DScene-FRSZVIVB.js.br} +0 -0
- package/dist/SurfaceChart3DScene-FRSZVIVB.js.gz +0 -0
- package/dist/{chunk-5F4RXVTA.mjs → chunk-3WM5TUY7.mjs} +2 -2
- package/dist/chunk-3WM5TUY7.mjs.br +0 -0
- package/dist/chunk-3WM5TUY7.mjs.gz +0 -0
- package/dist/{chunk-RCPRMTPJ.mjs → chunk-7AL6KAFX.mjs} +12 -12
- package/dist/chunk-7AL6KAFX.mjs.br +0 -0
- package/dist/chunk-7AL6KAFX.mjs.gz +0 -0
- package/dist/{chunk-VEU3QLEZ.js → chunk-BBSFZLYI.js} +5 -5
- package/dist/chunk-BBSFZLYI.js.br +0 -0
- package/dist/chunk-BBSFZLYI.js.gz +0 -0
- package/dist/{chunk-5FIC2LG3.js → chunk-HHDPQJF3.js} +3 -3
- package/dist/chunk-HHDPQJF3.js.br +0 -0
- package/dist/{chunk-5FIC2LG3.js.gz → chunk-HHDPQJF3.js.gz} +0 -0
- package/dist/{chunk-HNTAGERM.mjs → chunk-KOLCCOTS.mjs} +1 -1
- package/dist/chunk-KOLCCOTS.mjs.br +0 -0
- package/dist/chunk-KOLCCOTS.mjs.gz +0 -0
- package/dist/{chunk-3LYWPIRW.mjs → chunk-MSRRBA7G.mjs} +1 -1
- package/dist/chunk-MSRRBA7G.mjs.br +0 -0
- package/dist/chunk-MSRRBA7G.mjs.gz +0 -0
- package/dist/{chunk-OTKVJT4R.js → chunk-PPL3WBC7.js} +1180 -1180
- package/dist/chunk-PPL3WBC7.js.br +0 -0
- package/dist/chunk-PPL3WBC7.js.gz +0 -0
- package/dist/{chunk-LIIV45TR.js → chunk-QA573RUB.js} +160 -160
- package/dist/chunk-QA573RUB.js.br +0 -0
- package/dist/chunk-QA573RUB.js.gz +0 -0
- package/dist/{chunk-OHNNWSCP.mjs → chunk-QPHGHUUJ.mjs} +3 -3
- package/dist/chunk-QPHGHUUJ.mjs.br +0 -0
- package/dist/chunk-QPHGHUUJ.mjs.gz +0 -0
- package/dist/{chunk-XGNK2IZ4.js → chunk-SIM2LXO2.js} +430 -430
- package/dist/chunk-SIM2LXO2.js.br +0 -0
- package/dist/chunk-SIM2LXO2.js.gz +0 -0
- package/dist/index.js +45 -45
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.js +26 -26
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-AR6FYCHC.js.br +0 -0
- package/dist/AiChatPanel-AR6FYCHC.js.gz +0 -0
- package/dist/AiChatPanel-GZCDFIGE.mjs.br +0 -0
- package/dist/AiChatPanel-GZCDFIGE.mjs.gz +0 -0
- package/dist/Area3DChartScene-EZFIY4YQ.mjs.br +0 -0
- package/dist/Area3DChartScene-EZFIY4YQ.mjs.gz +0 -0
- package/dist/Area3DChartScene-NB6Q6KNP.js.br +0 -0
- package/dist/Area3DChartScene-NB6Q6KNP.js.gz +0 -0
- package/dist/Bar3DChartScene-3A6MUJW7.js.br +0 -0
- package/dist/Bar3DChartScene-3A6MUJW7.js.gz +0 -0
- package/dist/Bar3DChartScene-ZVTJM5EB.mjs.br +0 -0
- package/dist/Bar3DChartScene-ZVTJM5EB.mjs.gz +0 -0
- package/dist/Line3DChartScene-RQGOPRGY.js.br +0 -0
- package/dist/Line3DChartScene-RQGOPRGY.js.gz +0 -0
- package/dist/Line3DChartScene-XTWON2Q4.mjs.br +0 -0
- package/dist/Line3DChartScene-XTWON2Q4.mjs.gz +0 -0
- package/dist/Model3DScene-42VYK4DR.mjs.br +0 -0
- package/dist/Model3DScene-42VYK4DR.mjs.gz +0 -0
- package/dist/Model3DScene-V4WPP5CC.js.gz +0 -0
- package/dist/PieChart3DScene-GHNKD5TN.mjs.br +0 -0
- package/dist/PieChart3DScene-GHNKD5TN.mjs.gz +0 -0
- package/dist/PieChart3DScene-UVYGUNRM.js.gz +0 -0
- package/dist/SurfaceChart3DScene-AEKTCMYZ.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-AEKTCMYZ.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-E7OHBIM3.js.gz +0 -0
- package/dist/chunk-3LYWPIRW.mjs.br +0 -0
- package/dist/chunk-3LYWPIRW.mjs.gz +0 -0
- package/dist/chunk-5F4RXVTA.mjs.br +0 -0
- package/dist/chunk-5F4RXVTA.mjs.gz +0 -0
- package/dist/chunk-5FIC2LG3.js.br +0 -0
- package/dist/chunk-HNTAGERM.mjs.br +0 -0
- package/dist/chunk-HNTAGERM.mjs.gz +0 -0
- package/dist/chunk-LIIV45TR.js.br +0 -0
- package/dist/chunk-LIIV45TR.js.gz +0 -0
- package/dist/chunk-OHNNWSCP.mjs.br +0 -0
- package/dist/chunk-OHNNWSCP.mjs.gz +0 -0
- package/dist/chunk-OTKVJT4R.js.br +0 -0
- package/dist/chunk-OTKVJT4R.js.gz +0 -0
- package/dist/chunk-RCPRMTPJ.mjs.br +0 -0
- package/dist/chunk-RCPRMTPJ.mjs.gz +0 -0
- package/dist/chunk-VEU3QLEZ.js.br +0 -0
- package/dist/chunk-VEU3QLEZ.js.gz +0 -0
- package/dist/chunk-XGNK2IZ4.js.br +0 -0
- package/dist/chunk-XGNK2IZ4.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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(
|
|
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 (!
|
|
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 (!
|
|
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 =
|
|
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 =
|
|
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
|
|
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-
|
|
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-
|
|
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
|