pptx-react-viewer 3.18.0 → 3.19.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.
- package/CHANGELOG.md +111 -0
- package/README.md +22 -0
- package/dist/{AiChatPanel-T2QSCUQR.js → AiChatPanel-DLADHD56.js} +24 -24
- package/dist/AiChatPanel-DLADHD56.js.br +0 -0
- package/dist/AiChatPanel-DLADHD56.js.gz +0 -0
- package/dist/{AiChatPanel-DDZC6IRK.mjs → AiChatPanel-MSALNPYW.mjs} +3 -3
- package/dist/AiChatPanel-MSALNPYW.mjs.br +0 -0
- package/dist/AiChatPanel-MSALNPYW.mjs.gz +0 -0
- package/dist/{Area3DChartScene-WTKQDHC7.mjs → Area3DChartScene-53ZVPYKG.mjs} +1 -1
- package/dist/Area3DChartScene-53ZVPYKG.mjs.br +0 -0
- package/dist/Area3DChartScene-53ZVPYKG.mjs.gz +0 -0
- package/dist/{Area3DChartScene-WEU2MP3B.js → Area3DChartScene-BQQHOYRS.js} +2 -2
- package/dist/Area3DChartScene-BQQHOYRS.js.br +0 -0
- package/dist/Area3DChartScene-BQQHOYRS.js.gz +0 -0
- package/dist/{Bar3DChartScene-A5ICLHXS.mjs → Bar3DChartScene-IN67ZH3P.mjs} +1 -1
- package/dist/{Bar3DChartScene-A5ICLHXS.mjs.br → Bar3DChartScene-IN67ZH3P.mjs.br} +0 -0
- package/dist/Bar3DChartScene-IN67ZH3P.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-25G6TG53.js → Bar3DChartScene-PNQOIOIH.js} +2 -2
- package/dist/Bar3DChartScene-PNQOIOIH.js.br +0 -0
- package/dist/Bar3DChartScene-PNQOIOIH.js.gz +0 -0
- package/dist/{Line3DChartScene-ARCDLHXQ.mjs → Line3DChartScene-4SQUUAOW.mjs} +1 -1
- package/dist/{Line3DChartScene-ARCDLHXQ.mjs.br → Line3DChartScene-4SQUUAOW.mjs.br} +0 -0
- package/dist/Line3DChartScene-4SQUUAOW.mjs.gz +0 -0
- package/dist/{Line3DChartScene-WRZ52Z2Z.js → Line3DChartScene-CFSTMTFH.js} +2 -2
- package/dist/Line3DChartScene-CFSTMTFH.js.br +0 -0
- package/dist/Line3DChartScene-CFSTMTFH.js.gz +0 -0
- package/dist/{Model3DScene-JGUG5NPX.js → Model3DScene-DXNAYZ6P.js} +2 -2
- package/dist/Model3DScene-DXNAYZ6P.js.br +0 -0
- package/dist/Model3DScene-DXNAYZ6P.js.gz +0 -0
- package/dist/{Model3DScene-PBKBL2YU.mjs → Model3DScene-TA55BJY7.mjs} +1 -1
- package/dist/Model3DScene-TA55BJY7.mjs.br +0 -0
- package/dist/Model3DScene-TA55BJY7.mjs.gz +0 -0
- package/dist/{PieChart3DScene-S25DNSRS.js → PieChart3DScene-NCBKTWAO.js} +2 -2
- package/dist/PieChart3DScene-NCBKTWAO.js.br +0 -0
- package/dist/PieChart3DScene-NCBKTWAO.js.gz +0 -0
- package/dist/{PieChart3DScene-ZNKXS62H.mjs → PieChart3DScene-TQOCHJOY.mjs} +1 -1
- package/dist/{PieChart3DScene-ZNKXS62H.mjs.br → PieChart3DScene-TQOCHJOY.mjs.br} +0 -0
- package/dist/PieChart3DScene-TQOCHJOY.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-EBT7RPCX.mjs → SurfaceChart3DScene-7CSF2GPT.mjs} +1 -1
- package/dist/SurfaceChart3DScene-7CSF2GPT.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-7CSF2GPT.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-LXBC3HMV.js → SurfaceChart3DScene-VA6IRLFG.js} +2 -2
- package/dist/SurfaceChart3DScene-VA6IRLFG.js.br +0 -0
- package/dist/SurfaceChart3DScene-VA6IRLFG.js.gz +0 -0
- package/dist/{chunk-GNRVDNCV.mjs → chunk-3KVLOKA6.mjs} +4928 -2647
- package/dist/chunk-3KVLOKA6.mjs.br +0 -0
- package/dist/chunk-3KVLOKA6.mjs.gz +0 -0
- package/dist/{chunk-LJ46KXUV.js → chunk-4WUGOCYU.js} +226 -180
- package/dist/chunk-4WUGOCYU.js.br +0 -0
- package/dist/chunk-4WUGOCYU.js.gz +0 -0
- package/dist/{chunk-WGBXO4LM.js → chunk-AZEDCITO.js} +7284 -1263
- package/dist/chunk-AZEDCITO.js.br +0 -0
- package/dist/chunk-AZEDCITO.js.gz +0 -0
- package/dist/{chunk-5S3A6HL3.mjs → chunk-DNQ3PGGU.mjs} +6218 -219
- package/dist/chunk-DNQ3PGGU.mjs.br +0 -0
- package/dist/chunk-DNQ3PGGU.mjs.gz +0 -0
- package/dist/{chunk-V32F4I45.js → chunk-EJSRXEXA.js} +4982 -2647
- package/dist/chunk-EJSRXEXA.js.br +0 -0
- package/dist/chunk-EJSRXEXA.js.gz +0 -0
- package/dist/{chunk-WRO37U2O.mjs → chunk-LBKKSCVS.mjs} +1 -1
- package/dist/chunk-LBKKSCVS.mjs.br +0 -0
- package/dist/chunk-LBKKSCVS.mjs.gz +0 -0
- package/dist/{chunk-2OCTGK4L.mjs → chunk-RCUPQJVY.mjs} +61 -15
- package/dist/chunk-RCUPQJVY.mjs.br +0 -0
- package/dist/chunk-RCUPQJVY.mjs.gz +0 -0
- package/dist/{chunk-2LTTSFLD.js → chunk-YVZKXCML.js} +5 -5
- package/dist/chunk-YVZKXCML.js.br +0 -0
- package/dist/chunk-YVZKXCML.js.gz +0 -0
- package/dist/{chunk-3KKPRPVE.mjs → chunk-Z3KMGLXL.mjs} +216 -5460
- package/dist/chunk-Z3KMGLXL.mjs.br +0 -0
- package/dist/chunk-Z3KMGLXL.mjs.gz +0 -0
- package/dist/{chunk-6R2EUDJQ.js → chunk-ZHPBQVBK.js} +2024 -7268
- package/dist/chunk-ZHPBQVBK.js.br +0 -0
- package/dist/chunk-ZHPBQVBK.js.gz +0 -0
- package/dist/i18n/de.cjs +3765 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.d.cts +3 -0
- package/dist/i18n/de.d.mts +3 -0
- package/dist/i18n/de.mjs +3738 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +3765 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.d.cts +3 -0
- package/dist/i18n/es.d.mts +3 -0
- package/dist/i18n/es.mjs +3738 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +3765 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.d.cts +3 -0
- package/dist/i18n/fr.d.mts +3 -0
- package/dist/i18n/fr.mjs +3738 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +3803 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.d.cts +3 -0
- package/dist/i18n/zh-CN.d.mts +3 -0
- package/dist/i18n/zh-CN.mjs +3776 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.d.ts +65 -4
- package/dist/index.js +49 -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.d.ts +2408 -2055
- package/dist/internals.js +182 -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/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.d.ts +13 -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 +44 -4
- package/dist/AiChatPanel-DDZC6IRK.mjs.br +0 -0
- package/dist/AiChatPanel-DDZC6IRK.mjs.gz +0 -0
- package/dist/AiChatPanel-T2QSCUQR.js.br +0 -0
- package/dist/AiChatPanel-T2QSCUQR.js.gz +0 -0
- package/dist/Area3DChartScene-WEU2MP3B.js.br +0 -0
- package/dist/Area3DChartScene-WEU2MP3B.js.gz +0 -0
- package/dist/Area3DChartScene-WTKQDHC7.mjs.br +0 -0
- package/dist/Area3DChartScene-WTKQDHC7.mjs.gz +0 -0
- package/dist/Bar3DChartScene-25G6TG53.js.br +0 -0
- package/dist/Bar3DChartScene-25G6TG53.js.gz +0 -0
- package/dist/Bar3DChartScene-A5ICLHXS.mjs.gz +0 -0
- package/dist/Line3DChartScene-ARCDLHXQ.mjs.gz +0 -0
- package/dist/Line3DChartScene-WRZ52Z2Z.js.br +0 -0
- package/dist/Line3DChartScene-WRZ52Z2Z.js.gz +0 -0
- package/dist/Model3DScene-JGUG5NPX.js.br +0 -0
- package/dist/Model3DScene-JGUG5NPX.js.gz +0 -0
- package/dist/Model3DScene-PBKBL2YU.mjs.br +0 -0
- package/dist/Model3DScene-PBKBL2YU.mjs.gz +0 -0
- package/dist/PieChart3DScene-S25DNSRS.js.br +0 -0
- package/dist/PieChart3DScene-S25DNSRS.js.gz +0 -0
- package/dist/PieChart3DScene-ZNKXS62H.mjs.gz +0 -0
- package/dist/PowerPointViewer-Cde_wzd0.d.ts +0 -21
- package/dist/PowerPointViewer-Cde_wzd0.d.ts.map +0 -1
- package/dist/SurfaceChart3DScene-EBT7RPCX.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-EBT7RPCX.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-LXBC3HMV.js.br +0 -0
- package/dist/SurfaceChart3DScene-LXBC3HMV.js.gz +0 -0
- package/dist/audience-content-store-A8Km8rBo.d.ts +0 -402
- package/dist/audience-content-store-A8Km8rBo.d.ts.map +0 -1
- package/dist/chunk-2LTTSFLD.js.br +0 -0
- package/dist/chunk-2LTTSFLD.js.gz +0 -0
- package/dist/chunk-2OCTGK4L.mjs.br +0 -0
- package/dist/chunk-2OCTGK4L.mjs.gz +0 -0
- package/dist/chunk-3KKPRPVE.mjs.br +0 -0
- package/dist/chunk-3KKPRPVE.mjs.gz +0 -0
- package/dist/chunk-5S3A6HL3.mjs.br +0 -0
- package/dist/chunk-5S3A6HL3.mjs.gz +0 -0
- package/dist/chunk-6R2EUDJQ.js.br +0 -0
- package/dist/chunk-6R2EUDJQ.js.gz +0 -0
- package/dist/chunk-GNRVDNCV.mjs.br +0 -0
- package/dist/chunk-GNRVDNCV.mjs.gz +0 -0
- package/dist/chunk-LJ46KXUV.js.br +0 -0
- package/dist/chunk-LJ46KXUV.js.gz +0 -0
- package/dist/chunk-V32F4I45.js.br +0 -0
- package/dist/chunk-V32F4I45.js.gz +0 -0
- package/dist/chunk-WGBXO4LM.js.br +0 -0
- package/dist/chunk-WGBXO4LM.js.gz +0 -0
- package/dist/chunk-WRO37U2O.mjs.br +0 -0
- package/dist/chunk-WRO37U2O.mjs.gz +0 -0
- package/dist/index-CGKutKk1.d.ts +0 -46
- package/dist/index-CGKutKk1.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internals.d.ts.map +0 -1
- package/dist/types-BqB2ZCwS.d.ts +0 -836
- package/dist/types-BqB2ZCwS.d.ts.map +0 -1
- package/dist/useViewerBuildingBlocks-4Tj6P8Fm.d.ts +0 -523
- package/dist/useViewerBuildingBlocks-4Tj6P8Fm.d.ts.map +0 -1
- package/dist/viewer/index.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemePresets, PptxMarkdownConverter, hasTextProperties, hasShapeProperties } from './chunk-
|
|
1
|
+
import { ThemePresets, PptxMarkdownConverter, hasTextProperties, hasShapeProperties } from './chunk-3KVLOKA6.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
|
|
@@ -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, 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, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts,
|
|
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, 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, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, 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, splitRunByScriptFont } from './chunk-3KVLOKA6.mjs';
|
|
2
2
|
import { translationsEn } from './chunk-MQUTXOET.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
@@ -1426,7 +1426,33 @@ function renderRubyOrText(run, baseContent) {
|
|
|
1426
1426
|
/* @__PURE__ */ jsx("rp", { children: ")" })
|
|
1427
1427
|
] });
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function renderSeededListRun(seed, runs, segments, context) {
|
|
1430
|
+
const sourceRun = runs.find((candidate) => candidate.segmentIndex === seed.segmentIndex);
|
|
1431
|
+
const segment = sourceRun ? segments[seed.segmentIndex] : { text: seed.text, style: seed.style };
|
|
1432
|
+
const resolvedSegment = {
|
|
1433
|
+
...segment,
|
|
1434
|
+
style: withInlineListDecorationDefaults(segment.style, context.element.textStyle)
|
|
1435
|
+
};
|
|
1436
|
+
const decorationCss = segmentStyleToCss(
|
|
1437
|
+
resolvedSegment,
|
|
1438
|
+
resolveAutoFitFontScale(context.element.textStyle)
|
|
1439
|
+
);
|
|
1440
|
+
applyUnderlineVariant(decorationCss, resolvedSegment);
|
|
1441
|
+
const run = sourceRun ? { ...sourceRun, style: { ...sourceRun.style, ...nestedTextDecorationStyle(decorationCss) } } : {
|
|
1442
|
+
text: seed.text,
|
|
1443
|
+
style: decorationCss,
|
|
1444
|
+
segmentIndex: seed.segmentIndex
|
|
1445
|
+
};
|
|
1446
|
+
const rendered = renderParagraphRun(run, resolvedSegment, context);
|
|
1447
|
+
if (!React7.isValidElement(rendered)) {
|
|
1448
|
+
return rendered;
|
|
1449
|
+
}
|
|
1450
|
+
return React7.cloneElement(rendered, {
|
|
1451
|
+
"data-pptx-list-run": seed.token,
|
|
1452
|
+
...seed.text === "" ? { children: /* @__PURE__ */ jsx("br", {}) } : {}
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
function renderTextSegments(element, fallbackColor, emptyFallback, findHighlights, onHyperlinkClick, fieldContext, subElementAnimStates, segmentOverrides, requireCtrlClick, placeholderPrompt, inlineListSeed) {
|
|
1430
1456
|
if (!hasTextProperties(element)) {
|
|
1431
1457
|
return emptyFallback || null;
|
|
1432
1458
|
}
|
|
@@ -1437,7 +1463,12 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
|
|
|
1437
1463
|
}
|
|
1438
1464
|
return element.text || emptyFallback || "";
|
|
1439
1465
|
}
|
|
1440
|
-
const paragraphs = buildParagraphs(
|
|
1466
|
+
const paragraphs = buildParagraphs(
|
|
1467
|
+
element,
|
|
1468
|
+
fieldContext,
|
|
1469
|
+
segmentOverrides,
|
|
1470
|
+
inlineListSeed ? { preserveTrailingEmpty: true } : void 0
|
|
1471
|
+
);
|
|
1441
1472
|
const ctx = {
|
|
1442
1473
|
element,
|
|
1443
1474
|
fallbackColor,
|
|
@@ -1446,7 +1477,15 @@ function renderTextSegments(element, fallbackColor, emptyFallback, findHighlight
|
|
|
1446
1477
|
requireCtrlClick
|
|
1447
1478
|
};
|
|
1448
1479
|
return paragraphs.map(
|
|
1449
|
-
(para, paraIndex) => renderParagraph(
|
|
1480
|
+
(para, paraIndex) => renderParagraph(
|
|
1481
|
+
para,
|
|
1482
|
+
paraIndex,
|
|
1483
|
+
paragraphs.length,
|
|
1484
|
+
segments,
|
|
1485
|
+
ctx,
|
|
1486
|
+
subElementAnimStates,
|
|
1487
|
+
inlineListSeed
|
|
1488
|
+
)
|
|
1450
1489
|
);
|
|
1451
1490
|
}
|
|
1452
1491
|
function joinRunsBySegment(runs) {
|
|
@@ -1461,13 +1500,12 @@ function joinRunsBySegment(runs) {
|
|
|
1461
1500
|
}
|
|
1462
1501
|
return out;
|
|
1463
1502
|
}
|
|
1464
|
-
function renderParagraph(para, paraIndex, paraCount, segments, ctx, subElementAnimStates) {
|
|
1503
|
+
function renderParagraph(para, paraIndex, paraCount, segments, ctx, subElementAnimStates, inlineListSeed) {
|
|
1465
1504
|
const element = ctx.element;
|
|
1466
1505
|
const runCtx = { ...ctx, paragraphRtl: para.rtl };
|
|
1467
1506
|
const runs = joinRunsBySegment(para.runs);
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
);
|
|
1507
|
+
const listParagraph = inlineListSeed?.paragraphs[paraIndex];
|
|
1508
|
+
const renderedRuns = listParagraph ? listParagraph.runs.map((run) => renderSeededListRun(run, runs, segments, runCtx)) : runs.map((run) => renderParagraphRun(run, segments[run.segmentIndex ?? -1], runCtx));
|
|
1471
1509
|
const paraStyle = {
|
|
1472
1510
|
// `text-align`, BiDi `direction` / `unicode-bidi` and the kinsoku
|
|
1473
1511
|
// line-break rules, resolved by shared from this paragraph's own `a:pPr`.
|
|
@@ -1512,17 +1550,25 @@ function renderParagraph(para, paraIndex, paraCount, segments, ctx, subElementAn
|
|
|
1512
1550
|
`-build-${pieceKey}`
|
|
1513
1551
|
)
|
|
1514
1552
|
);
|
|
1515
|
-
const needsWrapper = Object.keys(paraStyle).length > 0 || marker !== null;
|
|
1553
|
+
const needsWrapper = Boolean(listParagraph) || Object.keys(paraStyle).length > 0 || marker !== null;
|
|
1516
1554
|
if (!needsWrapper) {
|
|
1517
1555
|
return /* @__PURE__ */ jsxs(React7.Fragment, { children: [
|
|
1518
1556
|
wrappedContent,
|
|
1519
1557
|
paraIndex < paraCount - 1 ? /* @__PURE__ */ jsx("br", {}) : null
|
|
1520
1558
|
] }, `${element.id}-para-${paraIndex}`);
|
|
1521
1559
|
}
|
|
1522
|
-
return /* @__PURE__ */ jsxs(
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1560
|
+
return /* @__PURE__ */ jsxs(
|
|
1561
|
+
"div",
|
|
1562
|
+
{
|
|
1563
|
+
style: paraStyle,
|
|
1564
|
+
"data-pptx-list-paragraph": listParagraph?.token,
|
|
1565
|
+
children: [
|
|
1566
|
+
marker,
|
|
1567
|
+
para.isEmpty && !listParagraph ? /* @__PURE__ */ jsx("br", {}) : wrappedContent
|
|
1568
|
+
]
|
|
1569
|
+
},
|
|
1570
|
+
`${element.id}-para-${paraIndex}`
|
|
1571
|
+
);
|
|
1526
1572
|
}
|
|
1527
1573
|
function renderBulletMarker(para, paraIndex, elementId) {
|
|
1528
1574
|
const picture = para.bulletPicture;
|
|
@@ -2907,10 +2953,10 @@ function TableResizeOverlay({
|
|
|
2907
2953
|
return;
|
|
2908
2954
|
}
|
|
2909
2955
|
const rect = containerRef.current.getBoundingClientRect();
|
|
2910
|
-
if (drag.type === "col" && drag.initialWidths && onResizeColumns) {
|
|
2956
|
+
if (e.clientX !== drag.startPos && drag.type === "col" && drag.initialWidths && onResizeColumns) {
|
|
2911
2957
|
const deltaProp = (e.clientX - drag.startPos) / rect.width;
|
|
2912
2958
|
onResizeColumns(computeResizedColumnWidths(drag.initialWidths, drag.index, deltaProp));
|
|
2913
|
-
} else if (drag.type === "row" && onResizeRow) {
|
|
2959
|
+
} else if (e.clientY !== drag.startPos && drag.type === "row" && onResizeRow) {
|
|
2914
2960
|
const deltaY = e.clientY - drag.startPos;
|
|
2915
2961
|
const newHeight = computeResizedRowHeight(
|
|
2916
2962
|
drag.initialRowHeight ?? DEFAULT_ROW_HEIGHT,
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEJSRXEXA_js = require('./chunk-EJSRXEXA.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
|
|
19082
|
+
const converter = new chunkEJSRXEXA_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(
|
|
19674
|
+
availablePresets: Object.keys(chunkEJSRXEXA_js.ThemePresets)
|
|
19675
19675
|
};
|
|
19676
19676
|
};
|
|
19677
19677
|
var readExecutors = {
|
|
@@ -20776,7 +20776,7 @@ function applyElementUpdate(el, u) {
|
|
|
20776
20776
|
applyShapeStyleUpdate(el, u);
|
|
20777
20777
|
}
|
|
20778
20778
|
function applyTextUpdate(el, u) {
|
|
20779
|
-
if (!
|
|
20779
|
+
if (!chunkEJSRXEXA_js.hasTextProperties(el)) {
|
|
20780
20780
|
return;
|
|
20781
20781
|
}
|
|
20782
20782
|
const textEl = el;
|
|
@@ -20822,7 +20822,7 @@ function applyShapeStyleUpdate(el, u) {
|
|
|
20822
20822
|
if (u.fillColor === void 0 && u.strokeColor === void 0 && u.strokeWidth === void 0) {
|
|
20823
20823
|
return;
|
|
20824
20824
|
}
|
|
20825
|
-
if (!
|
|
20825
|
+
if (!chunkEJSRXEXA_js.hasShapeProperties(el)) {
|
|
20826
20826
|
return;
|
|
20827
20827
|
}
|
|
20828
20828
|
const holder = el;
|
|
Binary file
|
|
Binary file
|