pptx-react-viewer 1.1.2 → 1.1.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/node_modules/emf-converter/package.json +1 -1
- package/node_modules/mtx-decompressor/package.json +1 -1
- package/node_modules/pptx-viewer-core/dist/{SvgExporter--H1PDfAY.d.ts → SvgExporter-BMjoxMDV.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{SvgExporter-Dq_2eV_r.d.mts → SvgExporter-z6AbXRQg.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/cli/index.d.mts +2 -2
- package/node_modules/pptx-viewer-core/dist/cli/index.d.ts +2 -2
- package/node_modules/pptx-viewer-core/dist/cli/index.js +165 -18
- package/node_modules/pptx-viewer-core/dist/cli/index.mjs +165 -18
- package/node_modules/pptx-viewer-core/dist/converter/index.d.mts +3 -3
- package/node_modules/pptx-viewer-core/dist/converter/index.d.ts +3 -3
- package/node_modules/pptx-viewer-core/dist/index.d.mts +26 -5
- package/node_modules/pptx-viewer-core/dist/index.d.ts +26 -5
- package/node_modules/pptx-viewer-core/dist/index.js +165 -18
- package/node_modules/pptx-viewer-core/dist/index.mjs +165 -18
- package/node_modules/pptx-viewer-core/dist/{presentation-BozkirFp.d.mts → presentation-CchuDGfU.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{presentation-BozkirFp.d.ts → presentation-CchuDGfU.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{text-operations-B2JbPA5H.d.mts → text-operations-CeukUztU.d.mts} +1 -1
- package/node_modules/pptx-viewer-core/dist/{text-operations-zwF6i4eH.d.ts → text-operations-e7JxgI5l.d.ts} +1 -1
- package/node_modules/pptx-viewer-core/package.json +1 -1
- package/package.json +4 -4
|
@@ -1441,7 +1441,11 @@ function isoNow() {
|
|
|
1441
1441
|
return (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d+Z$/, "Z");
|
|
1442
1442
|
}
|
|
1443
1443
|
var STANDARD_LAYOUTS = [
|
|
1444
|
-
|
|
1444
|
+
// `type` is ST_SlideLayoutType per ECMA-376 §19.7.15. The Title Slide
|
|
1445
|
+
// layout uses `title`; `ctrTitle` is a placeholder type (ST_PlaceholderType)
|
|
1446
|
+
// and is not valid here — PowerPoint's OPC loader rejects the package
|
|
1447
|
+
// with ERROR_FILE_CORRUPT (0x80070570) when it sees it.
|
|
1448
|
+
{ name: "Title Slide", type: "title" },
|
|
1445
1449
|
{ name: "Title and Content", type: "obj" },
|
|
1446
1450
|
{ name: "Section Header", type: "secHead" },
|
|
1447
1451
|
{ name: "Two Content", type: "twoObj" },
|
|
@@ -1475,7 +1479,7 @@ ${slideOverrides}
|
|
|
1475
1479
|
<Override PartName="/ppt/viewProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"/>
|
|
1476
1480
|
<Override PartName="/ppt/tableStyles.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"/>
|
|
1477
1481
|
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
|
|
1478
|
-
<Override PartName="/docProps/app.xml" ContentType="application/vnd.
|
|
1482
|
+
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
|
|
1479
1483
|
</Types>`;
|
|
1480
1484
|
}
|
|
1481
1485
|
function rootRelsXml() {
|
|
@@ -2801,9 +2805,40 @@ var PptxPresentationSlidesReconciler = class {
|
|
|
2801
2805
|
"@_r:id": slide.rId
|
|
2802
2806
|
};
|
|
2803
2807
|
});
|
|
2804
|
-
|
|
2805
|
-
|
|
2808
|
+
input.presentationData["p:presentation"] = this.insertSlideIdListInOrder(
|
|
2809
|
+
presentation,
|
|
2810
|
+
slideIdList
|
|
2811
|
+
);
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
/**
|
|
2815
|
+
* Return a new presentation XML object whose `p:sldIdLst` child sits in the
|
|
2816
|
+
* schema-mandated position (after `sldMasterIdLst` / `notesMasterIdLst` /
|
|
2817
|
+
* `handoutMasterIdLst`, before `sldSz`). Non-sldIdLst keys keep their
|
|
2818
|
+
* relative order; attribute keys (`@_...`) stay at the front.
|
|
2819
|
+
*/
|
|
2820
|
+
insertSlideIdListInOrder(presentation, slideIdList) {
|
|
2821
|
+
const before = /* @__PURE__ */ new Set([
|
|
2822
|
+
"p:sldMasterIdLst",
|
|
2823
|
+
"p:notesMasterIdLst",
|
|
2824
|
+
"p:handoutMasterIdLst"
|
|
2825
|
+
]);
|
|
2826
|
+
const rebuilt = {};
|
|
2827
|
+
let inserted = false;
|
|
2828
|
+
for (const key of Object.keys(presentation)) {
|
|
2829
|
+
if (key === "p:sldIdLst") {
|
|
2830
|
+
continue;
|
|
2831
|
+
}
|
|
2832
|
+
if (!inserted && !key.startsWith("@_") && !before.has(key)) {
|
|
2833
|
+
rebuilt["p:sldIdLst"] = slideIdList;
|
|
2834
|
+
inserted = true;
|
|
2835
|
+
}
|
|
2836
|
+
rebuilt[key] = presentation[key];
|
|
2837
|
+
}
|
|
2838
|
+
if (!inserted) {
|
|
2839
|
+
rebuilt["p:sldIdLst"] = slideIdList;
|
|
2806
2840
|
}
|
|
2841
|
+
return rebuilt;
|
|
2807
2842
|
}
|
|
2808
2843
|
async attachNewSlide(init) {
|
|
2809
2844
|
const sourceSlidePath = init.input.findSourceSlidePath(init.slide.sourceSlideId);
|
|
@@ -28792,6 +28827,55 @@ var PptxHandlerRuntime14 = class extends PptxHandlerRuntime13 {
|
|
|
28792
28827
|
|
|
28793
28828
|
// src/core/core/runtime/PptxHandlerRuntimeSaveShapeXml.ts
|
|
28794
28829
|
var PptxHandlerRuntime15 = class _PptxHandlerRuntime extends PptxHandlerRuntime14 {
|
|
28830
|
+
/**
|
|
28831
|
+
* Build a `p:graphicFrame` XML skeleton for an SDK-created table.
|
|
28832
|
+
*
|
|
28833
|
+
* Tables round-trip as `<p:graphicFrame>/<a:graphic>/<a:graphicData
|
|
28834
|
+
* uri=".../drawingml/2006/table">/<a:tbl>` inside `p:spTree`. When the
|
|
28835
|
+
* element was loaded from an existing file, `el.rawXml` already contains
|
|
28836
|
+
* this envelope and the downstream `serializeTableDataToXml` path
|
|
28837
|
+
* populates cells in place. When the element was created via the SDK
|
|
28838
|
+
* (`SlideBuilder.addTable`), there is no `rawXml`, so this method
|
|
28839
|
+
* fabricates a minimal envelope with an empty `a:tbl`. The element
|
|
28840
|
+
* writer then calls `serializeTableDataToXml`, which triggers
|
|
28841
|
+
* `rebuildTableXmlFromData` and fills in `a:tblGrid` / `a:tr` children.
|
|
28842
|
+
*/
|
|
28843
|
+
createTableGraphicFrameXml(el) {
|
|
28844
|
+
const EMU = _PptxHandlerRuntime.EMU_PER_PX;
|
|
28845
|
+
const offX = String(Math.round(el.x * EMU));
|
|
28846
|
+
const offY = String(Math.round(el.y * EMU));
|
|
28847
|
+
const extCx = String(Math.round(Math.max(el.width, 1) * EMU));
|
|
28848
|
+
const extCy = String(Math.round(Math.max(el.height, 1) * EMU));
|
|
28849
|
+
const tblPr = {
|
|
28850
|
+
"@_firstRow": el.tableData?.firstRowHeader ? "1" : "0",
|
|
28851
|
+
"@_bandRow": el.tableData?.bandedRows ? "1" : "0"
|
|
28852
|
+
};
|
|
28853
|
+
if (el.tableData?.tableStyleId) {
|
|
28854
|
+
tblPr["a:tableStyleId"] = el.tableData.tableStyleId;
|
|
28855
|
+
}
|
|
28856
|
+
return {
|
|
28857
|
+
"p:nvGraphicFramePr": {
|
|
28858
|
+
"p:cNvPr": { "@_id": "0", "@_name": el.name || "Table" },
|
|
28859
|
+
"p:cNvGraphicFramePr": {
|
|
28860
|
+
"a:graphicFrameLocks": { "@_noGrp": "1" }
|
|
28861
|
+
},
|
|
28862
|
+
"p:nvPr": {}
|
|
28863
|
+
},
|
|
28864
|
+
"p:xfrm": {
|
|
28865
|
+
"a:off": { "@_x": offX, "@_y": offY },
|
|
28866
|
+
"a:ext": { "@_cx": extCx, "@_cy": extCy }
|
|
28867
|
+
},
|
|
28868
|
+
"a:graphic": {
|
|
28869
|
+
"a:graphicData": {
|
|
28870
|
+
"@_uri": "http://schemas.openxmlformats.org/drawingml/2006/table",
|
|
28871
|
+
"a:tbl": {
|
|
28872
|
+
"a:tblPr": tblPr,
|
|
28873
|
+
"a:tblGrid": {}
|
|
28874
|
+
}
|
|
28875
|
+
}
|
|
28876
|
+
}
|
|
28877
|
+
};
|
|
28878
|
+
}
|
|
28795
28879
|
/**
|
|
28796
28880
|
* Build a p:sp XML object for an ink annotation element.
|
|
28797
28881
|
* Each ink path becomes a separate a:path within a:pathLst,
|
|
@@ -30273,14 +30357,15 @@ function writeCellTextFormatting(xmlCell, style, ensureArray6) {
|
|
|
30273
30357
|
const paragraphs = ensureArray6(xmlCell["a:txBody"]?.["a:p"]);
|
|
30274
30358
|
for (const paragraph of paragraphs) {
|
|
30275
30359
|
const runs = ensureArray6(paragraph?.["a:r"]);
|
|
30360
|
+
const rebuiltRuns = [];
|
|
30361
|
+
let runsChanged = false;
|
|
30276
30362
|
for (const run of runs) {
|
|
30277
30363
|
if (!run) {
|
|
30364
|
+
rebuiltRuns.push(run);
|
|
30278
30365
|
continue;
|
|
30279
30366
|
}
|
|
30280
|
-
|
|
30281
|
-
|
|
30282
|
-
}
|
|
30283
|
-
const rPr = run["a:rPr"];
|
|
30367
|
+
const existingRPr = run["a:rPr"] ?? {};
|
|
30368
|
+
const rPr = { ...existingRPr };
|
|
30284
30369
|
if (style.bold !== void 0) {
|
|
30285
30370
|
rPr["@_b"] = style.bold ? "1" : "0";
|
|
30286
30371
|
}
|
|
@@ -30300,6 +30385,18 @@ function writeCellTextFormatting(xmlCell, style, ensureArray6) {
|
|
|
30300
30385
|
}
|
|
30301
30386
|
};
|
|
30302
30387
|
}
|
|
30388
|
+
const rebuilt = { "a:rPr": rPr };
|
|
30389
|
+
for (const key of Object.keys(run)) {
|
|
30390
|
+
if (key === "a:rPr") {
|
|
30391
|
+
continue;
|
|
30392
|
+
}
|
|
30393
|
+
rebuilt[key] = run[key];
|
|
30394
|
+
}
|
|
30395
|
+
rebuiltRuns.push(rebuilt);
|
|
30396
|
+
runsChanged = true;
|
|
30397
|
+
}
|
|
30398
|
+
if (runsChanged && rebuiltRuns.length > 0) {
|
|
30399
|
+
paragraph["a:r"] = rebuiltRuns.length === 1 ? rebuiltRuns[0] : rebuiltRuns;
|
|
30303
30400
|
}
|
|
30304
30401
|
}
|
|
30305
30402
|
}
|
|
@@ -30321,6 +30418,9 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
30321
30418
|
const existingParagraphs = this.ensureArray(txBody["a:p"]);
|
|
30322
30419
|
const firstRPr = this.ensureArray(existingParagraphs[0]?.["a:r"])[0]?.["a:rPr"];
|
|
30323
30420
|
const firstPPr = existingParagraphs[0]?.["a:pPr"];
|
|
30421
|
+
const firstEndParaRPr = existingParagraphs[0]?.["a:endParaRPr"];
|
|
30422
|
+
const rPrForRun = firstRPr ? { ...firstRPr } : { "@_lang": "en-US", "@_dirty": "0" };
|
|
30423
|
+
const endParaRPr = firstEndParaRPr ? { ...firstEndParaRPr } : { "@_lang": "en-US", "@_dirty": "0" };
|
|
30324
30424
|
const lines = text.split("\n");
|
|
30325
30425
|
const paragraphs = lines.map((line) => {
|
|
30326
30426
|
const paragraph = {};
|
|
@@ -30328,9 +30428,10 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
30328
30428
|
paragraph["a:pPr"] = firstPPr;
|
|
30329
30429
|
}
|
|
30330
30430
|
paragraph["a:r"] = {
|
|
30331
|
-
|
|
30431
|
+
"a:rPr": rPrForRun,
|
|
30332
30432
|
"a:t": line
|
|
30333
30433
|
};
|
|
30434
|
+
paragraph["a:endParaRPr"] = endParaRPr;
|
|
30334
30435
|
return paragraph;
|
|
30335
30436
|
});
|
|
30336
30437
|
txBody["a:p"] = paragraphs.length === 1 ? paragraphs[0] : paragraphs;
|
|
@@ -30480,14 +30581,27 @@ function serializeCellMergeAttributes(xmlCell, cell) {
|
|
|
30480
30581
|
delete xmlCell["@_vMerge"];
|
|
30481
30582
|
}
|
|
30482
30583
|
}
|
|
30584
|
+
var DEFAULT_POWERPOINT_TABLE_STYLE_ID = "{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}";
|
|
30483
30585
|
function serializeTablePropertyFlags(tbl, tableData) {
|
|
30484
30586
|
const tblPr = tbl["a:tblPr"] ?? {};
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
|
|
30488
|
-
|
|
30489
|
-
|
|
30490
|
-
|
|
30587
|
+
const setOrDelete = (key, truthy) => {
|
|
30588
|
+
if (truthy) {
|
|
30589
|
+
tblPr[key] = "1";
|
|
30590
|
+
} else {
|
|
30591
|
+
delete tblPr[key];
|
|
30592
|
+
}
|
|
30593
|
+
};
|
|
30594
|
+
setOrDelete("@_bandRow", tableData.bandedRows);
|
|
30595
|
+
setOrDelete("@_bandCol", tableData.bandedColumns);
|
|
30596
|
+
setOrDelete("@_firstRow", tableData.firstRowHeader);
|
|
30597
|
+
setOrDelete("@_lastRow", tableData.lastRow);
|
|
30598
|
+
setOrDelete("@_firstCol", tableData.firstCol);
|
|
30599
|
+
setOrDelete("@_lastCol", tableData.lastCol);
|
|
30600
|
+
if (tableData.tableStyleId) {
|
|
30601
|
+
tblPr["a:tableStyleId"] = tableData.tableStyleId;
|
|
30602
|
+
} else if (!tblPr["a:tableStyleId"]) {
|
|
30603
|
+
tblPr["a:tableStyleId"] = DEFAULT_POWERPOINT_TABLE_STYLE_ID;
|
|
30604
|
+
}
|
|
30491
30605
|
tbl["a:tblPr"] = tblPr;
|
|
30492
30606
|
}
|
|
30493
30607
|
function replaceFirstTextValueInTree(node, localName, newValue, getXmlLocalName) {
|
|
@@ -30532,7 +30646,9 @@ function createDefaultXmlCell() {
|
|
|
30532
30646
|
"a:bodyPr": {},
|
|
30533
30647
|
"a:lstStyle": {},
|
|
30534
30648
|
"a:p": {
|
|
30535
|
-
|
|
30649
|
+
// Match PowerPoint's "Insert Table" default: every paragraph-end
|
|
30650
|
+
// run carries `lang="en-US" dirty="0"`.
|
|
30651
|
+
"a:endParaRPr": { "@_lang": "en-US", "@_dirty": "0" }
|
|
30536
30652
|
}
|
|
30537
30653
|
},
|
|
30538
30654
|
"a:tcPr": {}
|
|
@@ -30540,6 +30656,11 @@ function createDefaultXmlCell() {
|
|
|
30540
30656
|
}
|
|
30541
30657
|
|
|
30542
30658
|
// src/core/core/runtime/table-xml-rebuild.ts
|
|
30659
|
+
var GRID_COL_ID_EXT_URI = "{9D8B030D-6E8A-4147-A177-3AD203B41FA5}";
|
|
30660
|
+
var A16_NAMESPACE = "http://schemas.microsoft.com/office/drawing/2014/main";
|
|
30661
|
+
function randomColumnId() {
|
|
30662
|
+
return String(Math.floor(Math.random() * 4294967295));
|
|
30663
|
+
}
|
|
30543
30664
|
function rebuildTableXmlFromData(tbl, tableData, emuPerPx, ensureArrayFn) {
|
|
30544
30665
|
const existingXmlRows = ensureArrayFn(tbl["a:tr"]);
|
|
30545
30666
|
const existingGridCols = ensureArrayFn(
|
|
@@ -30548,8 +30669,31 @@ function rebuildTableXmlFromData(tbl, tableData, emuPerPx, ensureArrayFn) {
|
|
|
30548
30669
|
const totalWidthEmu = existingGridCols.reduce((sum, col) => {
|
|
30549
30670
|
return sum + (parseInt(String(col?.["@_w"] || "0"), 10) || 0);
|
|
30550
30671
|
}, 0) || 9144e3;
|
|
30551
|
-
const
|
|
30552
|
-
|
|
30672
|
+
const existingColIds = existingGridCols.map((col) => {
|
|
30673
|
+
const extList = col?.["a:extLst"];
|
|
30674
|
+
const exts = Array.isArray(extList?.["a:ext"]) ? extList["a:ext"] : extList?.["a:ext"] ? [extList["a:ext"]] : [];
|
|
30675
|
+
for (const ext of exts) {
|
|
30676
|
+
if (ext?.["@_uri"] === GRID_COL_ID_EXT_URI) {
|
|
30677
|
+
const colId = ext["a16:colId"];
|
|
30678
|
+
const val = colId?.["@_val"];
|
|
30679
|
+
if (typeof val === "string" && val.length > 0) {
|
|
30680
|
+
return val;
|
|
30681
|
+
}
|
|
30682
|
+
}
|
|
30683
|
+
}
|
|
30684
|
+
return "";
|
|
30685
|
+
});
|
|
30686
|
+
const newGridCols = tableData.columnWidths.map((w, i) => ({
|
|
30687
|
+
"@_w": String(Math.round(w * totalWidthEmu)),
|
|
30688
|
+
"a:extLst": {
|
|
30689
|
+
"a:ext": {
|
|
30690
|
+
"@_uri": GRID_COL_ID_EXT_URI,
|
|
30691
|
+
"a16:colId": {
|
|
30692
|
+
"@_xmlns:a16": A16_NAMESPACE,
|
|
30693
|
+
"@_val": existingColIds[i] || randomColumnId()
|
|
30694
|
+
}
|
|
30695
|
+
}
|
|
30696
|
+
}
|
|
30553
30697
|
}));
|
|
30554
30698
|
if (!tbl["a:tblGrid"]) {
|
|
30555
30699
|
tbl["a:tblGrid"] = {};
|
|
@@ -32959,6 +33103,9 @@ var PptxHandlerRuntime32 = class _PptxHandlerRuntime extends PptxHandlerRuntime3
|
|
|
32959
33103
|
if (!shape && el.type === "ink") {
|
|
32960
33104
|
shape = this.createInkShapeXml(el);
|
|
32961
33105
|
}
|
|
33106
|
+
if (!shape && el.type === "table") {
|
|
33107
|
+
shape = this.createTableGraphicFrameXml(el);
|
|
33108
|
+
}
|
|
32962
33109
|
if (!shape) {
|
|
32963
33110
|
this.compatibilityService.reportWarning({
|
|
32964
33111
|
code: "SAVE_ELEMENT_SKIPPED",
|
|
@@ -4577,4 +4577,4 @@ interface PptxEmbeddedFont {
|
|
|
4577
4577
|
originalPartBytes?: Uint8Array;
|
|
4578
4578
|
}
|
|
4579
4579
|
|
|
4580
|
-
export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type ParsedTableStyleEntry as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type
|
|
4580
|
+
export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type ParsedTableStyleEntry as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type BulletInfo as aA, type PptxShapeLocks as aB, type PptxThemeFillStyle as aC, type PptxThemeLineStyle as aD, type PptxThemeEffectStyle as aE, type PptxSmartArtChrome as aF, type PptxSmartArtColorTransform as aG, type PptxSmartArtQuickStyle as aH, type PptxExternalData as aI, type CustomGeometryPoint as aJ, type CustomGeometryPath as aK, type ChartPptxElement as aL, type ImagePptxElement as aM, type ActionButtonPreset as aN, type AnimationConditionEvent as aO, type BevelPresetType as aP, type ConnectorConnectionPoint as aQ, type ContentPartInkStroke as aR, type ContentPartPptxElement as aS, type CustomGeometrySegment as aT, type ElementActionType as aU, type MasterViewTab as aV, type MaterialPresetType as aW, type MediaCaptionTrack as aX, type MediaMetadata as aY, type Model3DPptxElement as aZ, type OlePptxElement as a_, type PptxChartShapeProps as aa, type PptxChart3DSurface as ab, type PptxChartAxisFormatting as ac, type PptxEmbeddedWorkbookData as ad, type PptxDrawingGuide as ae, type PptxTableCellStyle as af, type PptxCustomXmlPart as ag, type PptxCommentAuthor as ah, type MediaPptxElement as ai, type PptxTableData as aj, type PptxTheme as ak, type ParsedTableStyleMap as al, type PptxSlideMaster as am, type PptxThemeOption as an, type PlaceholderDefaults as ao, type ParsedTableStyleFill as ap, type ParsedTableStyleText as aq, type PptxImageEffects as ar, type MediaBookmark as as, type PptxChartStyle as at, type TablePptxElement as au, type GroupPptxElement as av, type PlaceholderTextLevelStyle as aw, type PptxChartSeries as ax, type SmartArtPptxElement as ay, type GeometryAdjustmentHandle as az, type PptxElementWithText as b, type PicturePptxElement as b0, type Pptx3DScene as b1, type Pptx3DShape as b2, type PptxAfterAnimationAction as b3, type PptxAnimationDirection as b4, type PptxAnimationIterate as b5, type PptxAnimationRepeatMode as b6, type PptxAnimationSequence as b7, type PptxAnimationTimingCurve as b8, type PptxChartAxisNumFmt as b9, type PptxTextAnimationTarget as bA, type PptxTextBuildType as bB, type PptxTextProperties as bC, type PptxTextStyleLevels as bD, type PptxTextWarpPreset as bE, type PptxThemeFontGroup as bF, type PptxTransitionDirection4 as bG, type PptxTransitionDirection8 as bH, type PptxViewOrigin as bI, type PptxViewScale as bJ, type ShadowEffect as bK, type SmartArtColorScheme as bL, type SmartArtLayout as bM, type SmartArtStyle as bN, THEME_COLOR_SCHEME_KEYS as bO, TRANSITION_VALID_DIRECTIONS as bP, type Text3DStyle as bQ, type UnderlineStyle as bR, type UnknownPptxElement as bS, type PptxChartErrBarDir as ba, type PptxChartErrBarType as bb, type PptxChartErrValType as bc, type PptxChartMarkerSymbol as bd, type PptxChartTrendlineType as be, type PptxColorAnimation as bf, type PptxCommonSlideViewProperties as bg, type PptxCropShape as bh, type PptxCustomPathProperties as bi, type PptxElementBase as bj, type PptxElementType as bk, type PptxExportFormat as bl, type PptxImageProperties as bm, type PptxMasterTextStyles as bn, type PptxMediaType as bo, type PptxNormalViewProperties as bp, type PptxRestoredRegion as bq, type PptxShapeProperties as br, type PptxSlideLayout as bs, type PptxSmartArtConnection as bt, type PptxSplitDirection as bu, type PptxSplitOrientation as bv, type PptxStripDirection as bw, type PptxTableCell as bx, type PptxTableRow as by, type PptxTag as bz, type PptxImageLikeElement as c, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
|
package/node_modules/pptx-viewer-core/dist/{presentation-BozkirFp.d.ts → presentation-CchuDGfU.d.ts}
RENAMED
|
@@ -4577,4 +4577,4 @@ interface PptxEmbeddedFont {
|
|
|
4577
4577
|
originalPartBytes?: Uint8Array;
|
|
4578
4578
|
}
|
|
4579
4579
|
|
|
4580
|
-
export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type ParsedTableStyleEntry as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type
|
|
4580
|
+
export { type OleObjectType as $, type PptxTagCollection as A, type PptxPhotoAlbum as B, type ConnectorPptxElement as C, type PptxKinsoku as D, type PptxModifyVerifier as E, type PptxViewProperties as F, type PptxEmbeddedFont as G, type PptxExportOptions as H, type InkPptxElement as I, type PptxThemeFormatScheme as J, type TextSegment as K, type PptxComment as L, type PptxSlideTransition as M, type PptxElementAnimation as N, type PptxNativeAnimation as O, type PptxElement as P, type PptxCustomerData as Q, type PptxActiveXControl as R, type ShapePptxElement as S, type TextPptxElement as T, type AnimationCondition as U, type ShapeStyle as V, type TextStyle as W, type XmlObject as X, type ElementAction as Y, type ZoomPptxElement as Z, type PptxAction as _, type PptxElementWithShapeStyle as a, type ParsedTableStyleEntry as a$, type PptxSmartArtNode as a0, type SmartArtLayoutType as a1, type PptxSmartArtDrawingShape as a2, type PptxChartDataTable as a3, type PptxChartLineStyle as a4, type PptxChartErrBars as a5, type PptxChartTrendline as a6, type PptxChartMarker as a7, type PptxChartDataLabel as a8, type PptxChartDataPoint as a9, type BulletInfo as aA, type PptxShapeLocks as aB, type PptxThemeFillStyle as aC, type PptxThemeLineStyle as aD, type PptxThemeEffectStyle as aE, type PptxSmartArtChrome as aF, type PptxSmartArtColorTransform as aG, type PptxSmartArtQuickStyle as aH, type PptxExternalData as aI, type CustomGeometryPoint as aJ, type CustomGeometryPath as aK, type ChartPptxElement as aL, type ImagePptxElement as aM, type ActionButtonPreset as aN, type AnimationConditionEvent as aO, type BevelPresetType as aP, type ConnectorConnectionPoint as aQ, type ContentPartInkStroke as aR, type ContentPartPptxElement as aS, type CustomGeometrySegment as aT, type ElementActionType as aU, type MasterViewTab as aV, type MaterialPresetType as aW, type MediaCaptionTrack as aX, type MediaMetadata as aY, type Model3DPptxElement as aZ, type OlePptxElement as a_, type PptxChartShapeProps as aa, type PptxChart3DSurface as ab, type PptxChartAxisFormatting as ac, type PptxEmbeddedWorkbookData as ad, type PptxDrawingGuide as ae, type PptxTableCellStyle as af, type PptxCustomXmlPart as ag, type PptxCommentAuthor as ah, type MediaPptxElement as ai, type PptxTableData as aj, type PptxTheme as ak, type ParsedTableStyleMap as al, type PptxSlideMaster as am, type PptxThemeOption as an, type PlaceholderDefaults as ao, type ParsedTableStyleFill as ap, type ParsedTableStyleText as aq, type PptxImageEffects as ar, type MediaBookmark as as, type PptxChartStyle as at, type TablePptxElement as au, type GroupPptxElement as av, type PlaceholderTextLevelStyle as aw, type PptxChartSeries as ax, type SmartArtPptxElement as ay, type GeometryAdjustmentHandle as az, type PptxElementWithText as b, type PicturePptxElement as b0, type Pptx3DScene as b1, type Pptx3DShape as b2, type PptxAfterAnimationAction as b3, type PptxAnimationDirection as b4, type PptxAnimationIterate as b5, type PptxAnimationRepeatMode as b6, type PptxAnimationSequence as b7, type PptxAnimationTimingCurve as b8, type PptxChartAxisNumFmt as b9, type PptxTextAnimationTarget as bA, type PptxTextBuildType as bB, type PptxTextProperties as bC, type PptxTextStyleLevels as bD, type PptxTextWarpPreset as bE, type PptxThemeFontGroup as bF, type PptxTransitionDirection4 as bG, type PptxTransitionDirection8 as bH, type PptxViewOrigin as bI, type PptxViewScale as bJ, type ShadowEffect as bK, type SmartArtColorScheme as bL, type SmartArtLayout as bM, type SmartArtStyle as bN, THEME_COLOR_SCHEME_KEYS as bO, TRANSITION_VALID_DIRECTIONS as bP, type Text3DStyle as bQ, type UnderlineStyle as bR, type UnknownPptxElement as bS, type PptxChartErrBarDir as ba, type PptxChartErrBarType as bb, type PptxChartErrValType as bc, type PptxChartMarkerSymbol as bd, type PptxChartTrendlineType as be, type PptxColorAnimation as bf, type PptxCommonSlideViewProperties as bg, type PptxCropShape as bh, type PptxCustomPathProperties as bi, type PptxElementBase as bj, type PptxElementType as bk, type PptxExportFormat as bl, type PptxImageProperties as bm, type PptxMasterTextStyles as bn, type PptxMediaType as bo, type PptxNormalViewProperties as bp, type PptxRestoredRegion as bq, type PptxShapeProperties as br, type PptxSlideLayout as bs, type PptxSmartArtConnection as bt, type PptxSplitDirection as bu, type PptxSplitOrientation as bv, type PptxStripDirection as bw, type PptxTableCell as bx, type PptxTableRow as by, type PptxTag as bz, type PptxImageLikeElement as c, type PptxThemeColorScheme as d, type PptxThemeFontScheme as e, type PptxAnimationPreset as f, type PptxAnimationTrigger as g, type StrokeDashType as h, type ConnectorArrowType as i, type PptxTransitionType as j, type PptxChartType as k, type PptxSlide as l, type PptxData as m, type PptxCompatibilityWarning as n, type PptxLayoutOption as o, type PptxChartData as p, type PptxSmartArtData as q, type PptxHeaderFooter as r, type PptxPresentationProperties as s, type PptxCustomShow as t, type PptxSection as u, type PptxCoreProperties as v, type PptxAppProperties as w, type PptxCustomProperty as x, type PptxNotesMaster as y, type PptxHandoutMaster as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-react-viewer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "React-based PowerPoint viewer, editor, and canvas export — depends on pptx-viewer-core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"editor",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"clsx": "^2.1.1",
|
|
60
|
-
"emf-converter": "^1.1.
|
|
60
|
+
"emf-converter": "^1.1.3",
|
|
61
61
|
"html2canvas-pro": "^2.0.2",
|
|
62
|
-
"mtx-decompressor": "^1.1.
|
|
63
|
-
"pptx-viewer-core": "^1.1.
|
|
62
|
+
"mtx-decompressor": "^1.1.3",
|
|
63
|
+
"pptx-viewer-core": "^1.1.3",
|
|
64
64
|
"tailwind-merge": "^3.5.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|