pptx-react-viewer 2.2.0 → 2.2.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 +2 -0
- package/dist/{AiChatPanel-S3FWARWG.js → AiChatPanel-O4NYWO3D.js} +23 -23
- package/dist/AiChatPanel-O4NYWO3D.js.br +0 -0
- package/dist/AiChatPanel-O4NYWO3D.js.gz +0 -0
- package/dist/{AiChatPanel-JFCJCR3O.mjs → AiChatPanel-XRKEPXAM.mjs} +4 -4
- package/dist/AiChatPanel-XRKEPXAM.mjs.br +0 -0
- package/dist/AiChatPanel-XRKEPXAM.mjs.gz +0 -0
- package/dist/{Model3DScene-BZK4UHL4.js → Model3DScene-HYE6HA2C.js} +3 -3
- package/dist/Model3DScene-HYE6HA2C.js.br +0 -0
- package/dist/Model3DScene-HYE6HA2C.js.gz +0 -0
- package/dist/{Model3DScene-RCZCBW52.mjs → Model3DScene-JN5F5C4Z.mjs} +2 -2
- package/dist/Model3DScene-JN5F5C4Z.mjs.br +0 -0
- package/dist/Model3DScene-JN5F5C4Z.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-EGPAMPX4.js → SurfaceChart3DScene-FDJ6LC4E.js} +3 -3
- package/dist/SurfaceChart3DScene-FDJ6LC4E.js.br +0 -0
- package/dist/SurfaceChart3DScene-FDJ6LC4E.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-IRLH4ADG.mjs → SurfaceChart3DScene-V7P3LQVV.mjs} +2 -2
- package/dist/{SurfaceChart3DScene-IRLH4ADG.mjs.br → SurfaceChart3DScene-V7P3LQVV.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-V7P3LQVV.mjs.gz +0 -0
- package/dist/{chunk-UTTXH3GH.js → chunk-2QHCOESN.js} +42 -42
- package/dist/chunk-2QHCOESN.js.br +0 -0
- package/dist/chunk-2QHCOESN.js.gz +0 -0
- package/dist/{chunk-RNZJKGA7.js → chunk-2U243ZEP.js} +237 -237
- package/dist/chunk-2U243ZEP.js.br +0 -0
- package/dist/chunk-2U243ZEP.js.gz +0 -0
- package/dist/{chunk-RLK72AOU.mjs → chunk-6G6S7PEI.mjs} +1 -1
- package/dist/chunk-6G6S7PEI.mjs.br +0 -0
- package/dist/{chunk-RLK72AOU.mjs.gz → chunk-6G6S7PEI.mjs.gz} +0 -0
- package/dist/{chunk-L4ETDT4F.mjs → chunk-7NSLKNCT.mjs} +4 -4
- package/dist/chunk-7NSLKNCT.mjs.br +0 -0
- package/dist/chunk-7NSLKNCT.mjs.gz +0 -0
- package/dist/{chunk-BHVCED34.mjs → chunk-I2HF7ZPO.mjs} +1 -1
- package/dist/chunk-I2HF7ZPO.mjs.br +0 -0
- package/dist/chunk-I2HF7ZPO.mjs.gz +0 -0
- package/dist/{chunk-JPJBOVU7.js → chunk-K2AW5UXT.js} +309 -309
- package/dist/chunk-K2AW5UXT.js.br +0 -0
- package/dist/chunk-K2AW5UXT.js.gz +0 -0
- package/dist/{chunk-SOHIKHL4.mjs → chunk-O75FHZQJ.mjs} +3 -3
- package/dist/chunk-O75FHZQJ.mjs.br +0 -0
- package/dist/chunk-O75FHZQJ.mjs.gz +0 -0
- package/dist/{chunk-6YXLGMTN.mjs → chunk-PE2I5L6R.mjs} +27 -12
- package/dist/chunk-PE2I5L6R.mjs.br +0 -0
- package/dist/{chunk-6YXLGMTN.mjs.gz → chunk-PE2I5L6R.mjs.gz} +0 -0
- package/dist/{chunk-3KD6S6VM.js → chunk-QULJW7LU.js} +843 -843
- package/dist/chunk-QULJW7LU.js.br +0 -0
- package/dist/chunk-QULJW7LU.js.gz +0 -0
- package/dist/{chunk-CLNGAVNH.js → chunk-R2H3FHK6.js} +27 -12
- package/dist/chunk-R2H3FHK6.js.br +0 -0
- package/dist/{chunk-CLNGAVNH.js.gz → chunk-R2H3FHK6.js.gz} +0 -0
- package/dist/{chunk-6BUR4MJO.mjs → chunk-RYHBWTPI.mjs} +8 -8
- package/dist/chunk-RYHBWTPI.mjs.br +0 -0
- package/dist/chunk-RYHBWTPI.mjs.gz +0 -0
- package/dist/{chunk-SYPHGLIB.js → chunk-XJTWUXXC.js} +3 -3
- package/dist/chunk-XJTWUXXC.js.br +0 -0
- package/dist/chunk-XJTWUXXC.js.gz +0 -0
- package/dist/{dist-J6PC54PZ.mjs → dist-VEWYRBTB.mjs} +1 -1
- package/dist/dist-VEWYRBTB.mjs.br +0 -0
- package/dist/dist-VEWYRBTB.mjs.gz +0 -0
- package/dist/{dist-4LUVI3SW.js → dist-ZCJLIRYG.js} +568 -568
- package/dist/dist-ZCJLIRYG.js.br +0 -0
- package/dist/dist-ZCJLIRYG.js.gz +0 -0
- package/dist/index.js +35 -35
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.js +22 -22
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-JFCJCR3O.mjs.br +0 -0
- package/dist/AiChatPanel-JFCJCR3O.mjs.gz +0 -0
- package/dist/AiChatPanel-S3FWARWG.js.br +0 -0
- package/dist/AiChatPanel-S3FWARWG.js.gz +0 -0
- package/dist/Model3DScene-BZK4UHL4.js.br +0 -0
- package/dist/Model3DScene-BZK4UHL4.js.gz +0 -0
- package/dist/Model3DScene-RCZCBW52.mjs.br +0 -0
- package/dist/Model3DScene-RCZCBW52.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-EGPAMPX4.js.br +0 -0
- package/dist/SurfaceChart3DScene-EGPAMPX4.js.gz +0 -0
- package/dist/SurfaceChart3DScene-IRLH4ADG.mjs.gz +0 -0
- package/dist/chunk-3KD6S6VM.js.br +0 -0
- package/dist/chunk-3KD6S6VM.js.gz +0 -0
- package/dist/chunk-6BUR4MJO.mjs.br +0 -0
- package/dist/chunk-6BUR4MJO.mjs.gz +0 -0
- package/dist/chunk-6YXLGMTN.mjs.br +0 -0
- package/dist/chunk-BHVCED34.mjs.br +0 -0
- package/dist/chunk-BHVCED34.mjs.gz +0 -0
- package/dist/chunk-CLNGAVNH.js.br +0 -0
- package/dist/chunk-JPJBOVU7.js.br +0 -0
- package/dist/chunk-JPJBOVU7.js.gz +0 -0
- package/dist/chunk-L4ETDT4F.mjs.br +0 -0
- package/dist/chunk-L4ETDT4F.mjs.gz +0 -0
- package/dist/chunk-RLK72AOU.mjs.br +0 -0
- package/dist/chunk-RNZJKGA7.js.br +0 -0
- package/dist/chunk-RNZJKGA7.js.gz +0 -0
- package/dist/chunk-SOHIKHL4.mjs.br +0 -0
- package/dist/chunk-SOHIKHL4.mjs.gz +0 -0
- package/dist/chunk-SYPHGLIB.js.br +0 -0
- package/dist/chunk-SYPHGLIB.js.gz +0 -0
- package/dist/chunk-UTTXH3GH.js.br +0 -0
- package/dist/chunk-UTTXH3GH.js.gz +0 -0
- package/dist/dist-4LUVI3SW.js.br +0 -0
- package/dist/dist-4LUVI3SW.js.gz +0 -0
- package/dist/dist-J6PC54PZ.mjs.br +0 -0
- package/dist/dist-J6PC54PZ.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, getAnimationInitialStyle, cloneHistorySnapshot, isTemplateElement, clampCropValue, parseMediaCommand, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, getRoundRectRadiusPx, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, getAnimationInitialStyle, cloneHistorySnapshot, isTemplateElement, clampCropValue, parseMediaCommand, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getSoftEdgeFilterId, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildNotesPdfBytes, buildSlidesPdfBytes, buildPreviewAnimation, getRoundRectRadiusPx, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, TEXT_BUILD_ID_SEP, apply3dEffects, clampUnitInterval, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, getPatternSvg, ooxmlDashToCssBorderStyle, cell3DBevelCss, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, resolveFontRefIdx, tintColor2, shadeColor2, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, hexToRgbChannels, chartPartToAttrs } from './chunk-6G6S7PEI.mjs';
|
|
2
2
|
import { translationsEn } from './chunk-PZTPX3HK.mjs';
|
|
3
|
-
import { hasShapeProperties, isImageLikeElement, hasTextProperties, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths } from './chunk-
|
|
3
|
+
import { hasShapeProperties, isImageLikeElement, hasTextProperties, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, getSubstituteFontFamily, evaluatePresetShape, customGeometryPathsToSvgSubpaths } from './chunk-PE2I5L6R.mjs';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import React6, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useLayoutEffect } from 'react';
|
|
@@ -6250,7 +6250,7 @@ function FailedToLoad() {
|
|
|
6250
6250
|
var LazySurfaceChart3DScene = React6.lazy(
|
|
6251
6251
|
async () => {
|
|
6252
6252
|
try {
|
|
6253
|
-
return await import('./SurfaceChart3DScene-
|
|
6253
|
+
return await import('./SurfaceChart3DScene-V7P3LQVV.mjs');
|
|
6254
6254
|
} catch {
|
|
6255
6255
|
return { default: FailedToLoad };
|
|
6256
6256
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -57767,6 +57767,14 @@ var PptxHandlerRuntime12 = class _PptxHandlerRuntime2 extends PptxHandlerRuntime
|
|
|
57767
57767
|
}
|
|
57768
57768
|
};
|
|
57769
57769
|
var PptxHandlerRuntime13 = class extends PptxHandlerRuntime12 {
|
|
57770
|
+
isRenderedBulletMarker(segment) {
|
|
57771
|
+
const bullet = segment.bulletInfo;
|
|
57772
|
+
if (!bullet) {
|
|
57773
|
+
return false;
|
|
57774
|
+
}
|
|
57775
|
+
const marker = bullet.char ? `${bullet.char} ` : bullet.imageRelId || bullet.imageDataUrl ? "\u{1F4CE} " : bullet.autoNumType ? void 0 : "\u2022 ";
|
|
57776
|
+
return marker ? segment.text === marker : bullet.paragraphIndex !== void 0;
|
|
57777
|
+
}
|
|
57770
57778
|
createParagraphsFromTextContent(text2, textStyle, textSegments, resolveHyperlinkRelationshipId) {
|
|
57771
57779
|
const createParagraph = (runs, bulletInfo, level, endParaRunProperties, paragraphProperties2) => {
|
|
57772
57780
|
const effectiveStyle = paragraphProperties2 ? { ...textStyle, ...paragraphProperties2 } : textStyle;
|
|
@@ -57786,9 +57794,10 @@ var PptxHandlerRuntime13 = class extends PptxHandlerRuntime12 {
|
|
|
57786
57794
|
);
|
|
57787
57795
|
return assembleParagraphXml(runs, paragraphProps, endParaRunProperties);
|
|
57788
57796
|
};
|
|
57797
|
+
const createTextNode = (value) => /^[\t\n\r ]|[\t\n\r ]$/.test(value) ? { "@_xml:space": "preserve", "#text": value } : value;
|
|
57789
57798
|
const createRun = (runText, style) => ({
|
|
57790
57799
|
"a:rPr": this.createRunPropertiesFromTextStyle(style, resolveHyperlinkRelationshipId),
|
|
57791
|
-
"a:t": runText
|
|
57800
|
+
"a:t": createTextNode(runText)
|
|
57792
57801
|
});
|
|
57793
57802
|
const createFieldRun = (runText, style, fieldType, fieldGuid, fieldGuidAttr, fieldParagraphPropertiesXml) => {
|
|
57794
57803
|
const fld = { "@_type": fieldType };
|
|
@@ -57803,7 +57812,7 @@ var PptxHandlerRuntime13 = class extends PptxHandlerRuntime12 {
|
|
|
57803
57812
|
if (fieldParagraphPropertiesXml && typeof fieldParagraphPropertiesXml === "object") {
|
|
57804
57813
|
fld["a:pPr"] = fieldParagraphPropertiesXml;
|
|
57805
57814
|
}
|
|
57806
|
-
fld["a:t"] = runText;
|
|
57815
|
+
fld["a:t"] = createTextNode(runText);
|
|
57807
57816
|
return fld;
|
|
57808
57817
|
};
|
|
57809
57818
|
const createRubyRun = (segment, style) => {
|
|
@@ -57820,7 +57829,7 @@ var PptxHandlerRuntime13 = class extends PptxHandlerRuntime12 {
|
|
|
57820
57829
|
);
|
|
57821
57830
|
const rtRun = {
|
|
57822
57831
|
"a:rPr": rtRunProps,
|
|
57823
|
-
"a:t": segment.rubyText ?? ""
|
|
57832
|
+
"a:t": createTextNode(segment.rubyText ?? "")
|
|
57824
57833
|
};
|
|
57825
57834
|
const baseRunProps = this.createRunPropertiesFromTextStyle(
|
|
57826
57835
|
style,
|
|
@@ -57828,7 +57837,7 @@ var PptxHandlerRuntime13 = class extends PptxHandlerRuntime12 {
|
|
|
57828
57837
|
);
|
|
57829
57838
|
const baseRun = {
|
|
57830
57839
|
"a:rPr": baseRunProps,
|
|
57831
|
-
"a:t": segment.text
|
|
57840
|
+
"a:t": createTextNode(segment.text)
|
|
57832
57841
|
};
|
|
57833
57842
|
return {
|
|
57834
57843
|
"a:rPr": this.createRunPropertiesFromTextStyle(style, resolveHyperlinkRelationshipId),
|
|
@@ -57889,6 +57898,9 @@ var PptxHandlerRuntime13 = class extends PptxHandlerRuntime12 {
|
|
|
57889
57898
|
}
|
|
57890
57899
|
capturedParagraphMeta = true;
|
|
57891
57900
|
}
|
|
57901
|
+
if (this.isRenderedBulletMarker(segment)) {
|
|
57902
|
+
return;
|
|
57903
|
+
}
|
|
57892
57904
|
if (segment.isLineBreak) {
|
|
57893
57905
|
const brNode = {};
|
|
57894
57906
|
if (segment.breakRunProperties && typeof segment.breakRunProperties === "object") {
|
|
@@ -58800,12 +58812,15 @@ var PptxHandlerRuntime17 = class extends PptxHandlerRuntime16 {
|
|
|
58800
58812
|
/**
|
|
58801
58813
|
* Whether a segment carries run-level content that the flat `el.text` string
|
|
58802
58814
|
* cannot represent: an OOXML field (`a:fld`), an inline equation, or a ruby
|
|
58803
|
-
* (phonetic) annotation. Such segments must
|
|
58804
|
-
* to the plain-text path silently downgrades
|
|
58805
|
-
* slide-number field becomes a frozen number)
|
|
58815
|
+
* (phonetic) annotation, or paragraph bullet metadata. Such segments must
|
|
58816
|
+
* survive a save: collapsing them to the plain-text path silently downgrades
|
|
58817
|
+
* a field to static text (e.g. a slide-number field becomes a frozen number)
|
|
58818
|
+
* or drops the equation, ruby, or bullet.
|
|
58806
58819
|
*/
|
|
58807
58820
|
isStructuralTextSegment(segment) {
|
|
58808
|
-
return Boolean(
|
|
58821
|
+
return Boolean(
|
|
58822
|
+
segment.fieldType || segment.equationXml || segment.rubyText || segment.bulletInfo
|
|
58823
|
+
);
|
|
58809
58824
|
}
|
|
58810
58825
|
areTextSegmentsUniform(textSegments) {
|
|
58811
58826
|
if (!textSegments || textSegments.length === 0) {
|
|
@@ -70824,14 +70839,14 @@ var PptxHandlerRuntime63 = class extends PptxHandlerRuntime62 {
|
|
|
70824
70839
|
return;
|
|
70825
70840
|
}
|
|
70826
70841
|
}
|
|
70827
|
-
const runText =
|
|
70842
|
+
const runText = xmlText(r["a:t"]) ?? "";
|
|
70828
70843
|
appendRun(runText, r["a:rPr"]);
|
|
70829
70844
|
};
|
|
70830
70845
|
const processField = (field) => {
|
|
70831
70846
|
if (!field) {
|
|
70832
70847
|
return;
|
|
70833
70848
|
}
|
|
70834
|
-
const fieldText =
|
|
70849
|
+
const fieldText = xmlText(field["a:t"]) ?? "";
|
|
70835
70850
|
const fieldRunStyle = {
|
|
70836
70851
|
...mergedDefaultRunStyle,
|
|
70837
70852
|
...this.extractTextRunStyle(
|
|
@@ -71027,7 +71042,7 @@ var PptxHandlerRuntime63 = class extends PptxHandlerRuntime62 {
|
|
|
71027
71042
|
const rtRunObj = rtRun;
|
|
71028
71043
|
const t = rtRunObj["a:t"];
|
|
71029
71044
|
if (t !== void 0) {
|
|
71030
|
-
rtParts.push(
|
|
71045
|
+
rtParts.push(xmlText(t) ?? "");
|
|
71031
71046
|
}
|
|
71032
71047
|
if (!rubyStyle) {
|
|
71033
71048
|
rubyStyle = {
|
|
@@ -71058,7 +71073,7 @@ var PptxHandlerRuntime63 = class extends PptxHandlerRuntime62 {
|
|
|
71058
71073
|
const baseRunObj = baseRun;
|
|
71059
71074
|
const t = baseRunObj["a:t"];
|
|
71060
71075
|
if (t !== void 0) {
|
|
71061
|
-
baseParts.push(
|
|
71076
|
+
baseParts.push(xmlText(t) ?? "");
|
|
71062
71077
|
}
|
|
71063
71078
|
if (baseParts.length === 1) {
|
|
71064
71079
|
baseStyle = {
|
|
Binary file
|
|
Binary file
|