pptx-vue-viewer 1.1.76 → 1.1.78
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 +6 -0
- package/README.md +1 -1
- package/dist/{dist-CvCXjCMh.js → dist-ABxBuMU7.js} +54 -52
- package/dist/dist-ABxBuMU7.js.br +0 -0
- package/dist/{dist-CvCXjCMh.js.gz → dist-ABxBuMU7.js.gz} +0 -0
- package/dist/{dist-CKUdBsHT.cjs → dist-Dtt0UVyq.cjs} +98 -51
- package/dist/dist-Dtt0UVyq.cjs.br +0 -0
- package/dist/{dist-CKUdBsHT.cjs.gz → dist-Dtt0UVyq.cjs.gz} +0 -0
- package/dist/gif-encoder-DZLW3o_g.js +2 -0
- package/dist/gif-encoder-DZLW3o_g.js.br +3 -0
- package/dist/gif-encoder-DZLW3o_g.js.gz +0 -0
- package/dist/gif-encoder-m86u_ZK4.cjs +2 -0
- package/dist/gif-encoder-m86u_ZK4.cjs.br +0 -0
- package/dist/gif-encoder-m86u_ZK4.cjs.gz +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.br +2 -3
- package/dist/index.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/ActionButtonGlyphOverlay.vue.d.ts +20 -0
- package/dist/viewer/components/ActionButtonGlyphOverlay.vue.d.ts.map +1 -0
- package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts +20 -0
- package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts.map +1 -0
- package/dist/viewer/components/CommentsPanel.vue.d.ts +8 -0
- package/dist/viewer/components/CommentsPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/ElementRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/FontEmbeddingPanel.vue.d.ts +22 -0
- package/dist/viewer/components/FontEmbeddingPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/HyperlinkDialog.vue.d.ts +13 -30
- package/dist/viewer/components/HyperlinkDialog.vue.d.ts.map +1 -1
- package/dist/viewer/components/InlineTextEditor.vue.d.ts +3 -1
- package/dist/viewer/components/InlineTextEditor.vue.d.ts.map +1 -1
- package/dist/viewer/components/KeepAnnotationsDialog.vue.d.ts +20 -0
- package/dist/viewer/components/KeepAnnotationsDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/LinkTooltip.vue.d.ts +18 -0
- package/dist/viewer/components/LinkTooltip.vue.d.ts.map +1 -0
- package/dist/viewer/components/PasswordProtectionDialog.vue.d.ts +22 -0
- package/dist/viewer/components/PasswordProtectionDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/PresentationMode.vue.d.ts +7 -2
- package/dist/viewer/components/PresentationMode.vue.d.ts.map +1 -1
- package/dist/viewer/components/SelectionPane.vue.d.ts +33 -0
- package/dist/viewer/components/SelectionPane.vue.d.ts.map +1 -0
- package/dist/viewer/components/SetUpSlideShowDialog.vue.d.ts +26 -0
- package/dist/viewer/components/SetUpSlideShowDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/ShowOptionsFieldset.vue.d.ts +18 -0
- package/dist/viewer/components/ShowOptionsFieldset.vue.d.ts.map +1 -0
- package/dist/viewer/components/ShowSlidesFieldset.vue.d.ts +21 -0
- package/dist/viewer/components/ShowSlidesFieldset.vue.d.ts.map +1 -0
- package/dist/viewer/components/SignatureStatusBadge.vue.d.ts +18 -0
- package/dist/viewer/components/SignatureStatusBadge.vue.d.ts.map +1 -0
- package/dist/viewer/components/SignatureStrippedDialog.vue.d.ts +20 -0
- package/dist/viewer/components/SignatureStrippedDialog.vue.d.ts.map +1 -0
- package/dist/viewer/components/SlideSorter.vue.d.ts +7 -0
- package/dist/viewer/components/SlideSorter.vue.d.ts.map +1 -1
- package/dist/viewer/components/TableRenderer.vue.d.ts +3 -2
- package/dist/viewer/components/TableRenderer.vue.d.ts.map +1 -1
- package/dist/viewer/components/TableResizeOverlay.vue.d.ts +36 -0
- package/dist/viewer/components/TableResizeOverlay.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ArtisticEffectsGallery.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/ArtisticEffectsGallery.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts +35 -0
- package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataPointMarkerOptions.vue.d.ts +21 -0
- package/dist/viewer/components/inspector/ChartDataPointMarkerOptions.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ChartDataPointOptions.vue.d.ts +2 -0
- package/dist/viewer/components/inspector/ChartDataPointOptions.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ChartPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ColorChangeSection.vue.d.ts +17 -0
- package/dist/viewer/components/inspector/ColorChangeSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ColorWashSection.vue.d.ts +17 -0
- package/dist/viewer/components/inspector/ColorWashSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/DebouncedColorInput.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/DebouncedColorInput.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/DuotonePanel.vue.d.ts +17 -0
- package/dist/viewer/components/inspector/DuotonePanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/EffectsPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/ImageAdjustmentsPanel.vue.d.ts +20 -0
- package/dist/viewer/components/inspector/ImageAdjustmentsPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ImageCropSection.vue.d.ts +21 -0
- package/dist/viewer/components/inspector/ImageCropSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/ImagePanel.vue.d.ts +7 -13
- package/dist/viewer/components/inspector/ImagePanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/InspectorPane.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/MediaBookmarks.vue.d.ts +16 -0
- package/dist/viewer/components/inspector/MediaBookmarks.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/MediaPlaybackOptions.vue.d.ts +13 -0
- package/dist/viewer/components/inspector/MediaPlaybackOptions.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/MediaPropertiesPanel.vue.d.ts +13 -0
- package/dist/viewer/components/inspector/MediaPropertiesPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/MediaTrimTimeline.vue.d.ts +25 -0
- package/dist/viewer/components/inspector/MediaTrimTimeline.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/PresentationSettingsCard.vue.d.ts +22 -0
- package/dist/viewer/components/inspector/PresentationSettingsCard.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/QuickStylesGallery.vue.d.ts +9 -0
- package/dist/viewer/components/inspector/QuickStylesGallery.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/SlideInspector.vue.d.ts +4 -1
- package/dist/viewer/components/inspector/SlideInspector.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/TableCellAdvancedFill.vue.d.ts +20 -0
- package/dist/viewer/components/inspector/TableCellAdvancedFill.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TableCellFormattingPanel.vue.d.ts +24 -0
- package/dist/viewer/components/inspector/TableCellFormattingPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TablePanel.vue.d.ts +9 -24
- package/dist/viewer/components/inspector/TablePanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/TableSizePanel.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/TableSizePanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TableStyleOptions.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/TableStyleOptions.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/Text3DBevelSection.vue.d.ts +25 -0
- package/dist/viewer/components/inspector/Text3DBevelSection.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/Text3DProperties.vue.d.ts +20 -0
- package/dist/viewer/components/inspector/Text3DProperties.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TextEffectsPanel.vue.d.ts +18 -0
- package/dist/viewer/components/inspector/TextEffectsPanel.vue.d.ts.map +1 -0
- package/dist/viewer/components/inspector/TextPanel.vue.d.ts.map +1 -1
- package/dist/viewer/components/inspector/TextWarpGallery.vue.d.ts +19 -0
- package/dist/viewer/components/inspector/TextWarpGallery.vue.d.ts.map +1 -0
- package/dist/viewer/composables/table-mutations.d.ts +26 -0
- package/dist/viewer/composables/table-mutations.d.ts.map +1 -0
- package/dist/viewer/composables/table-selection.d.ts +68 -0
- package/dist/viewer/composables/table-selection.d.ts.map +1 -0
- package/dist/viewer/composables/useChartEditing.d.ts +14 -1
- package/dist/viewer/composables/useChartEditing.d.ts.map +1 -1
- package/dist/viewer/composables/useComments.d.ts +8 -0
- package/dist/viewer/composables/useComments.d.ts.map +1 -1
- package/dist/viewer/composables/useDebouncedCallback.d.ts +16 -0
- package/dist/viewer/composables/useDebouncedCallback.d.ts.map +1 -0
- package/dist/viewer/composables/useImageEditing.d.ts +46 -0
- package/dist/viewer/composables/useImageEditing.d.ts.map +1 -0
- package/dist/viewer/composables/useLoadContent.d.ts +3 -1
- package/dist/viewer/composables/useLoadContent.d.ts.map +1 -1
- package/dist/viewer/composables/useMediaEditing.d.ts +34 -0
- package/dist/viewer/composables/useMediaEditing.d.ts.map +1 -0
- package/dist/viewer/composables/useTextEffects.d.ts +23 -0
- package/dist/viewer/composables/useTextEffects.d.ts.map +1 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/index.js.br +1 -2
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-t-wza0VB.js → viewer-BUUM_Eul.js} +11887 -7714
- package/dist/viewer-BUUM_Eul.js.br +0 -0
- package/dist/viewer-BUUM_Eul.js.gz +0 -0
- package/dist/{viewer-BgiINZf1.cjs → viewer-DGYrL5xE.cjs} +9111 -4937
- package/dist/viewer-DGYrL5xE.cjs.br +0 -0
- package/dist/viewer-DGYrL5xE.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/dist-CKUdBsHT.cjs.br +0 -0
- package/dist/dist-CvCXjCMh.js.br +0 -0
- package/dist/gif-encoder-CYNnxL8D.cjs +0 -2
- package/dist/gif-encoder-CYNnxL8D.cjs.br +0 -0
- package/dist/gif-encoder-CYNnxL8D.cjs.gz +0 -0
- package/dist/gif-encoder-NTISOGYu.js +0 -2
- package/dist/gif-encoder-NTISOGYu.js.br +0 -3
- package/dist/gif-encoder-NTISOGYu.js.gz +0 -0
- package/dist/viewer-BgiINZf1.cjs.br +0 -0
- package/dist/viewer-BgiINZf1.cjs.gz +0 -0
- package/dist/viewer-t-wza0VB.js.br +0 -0
- package/dist/viewer-t-wza0VB.js.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.1.76](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.1.76) - 2026-07-02
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **core,angular:** Revert xmldom to 0.8.x and fix shared import specifiers (by @ChristopherVR) ([29eda31](https://github.com/ChristopherVR/pptx-viewer/commit/29eda3119836559b63bc08733dd9dd6398a69c8d))
|
|
12
|
+
|
|
7
13
|
## [1.1.73](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.1.73) - 2026-06-27
|
|
8
14
|
|
|
9
15
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ slides as real HTML and CSS with full editing and export support.
|
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
13
|
-
The rendering is done by the framework-agnostic [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core) engine
|
|
13
|
+
The rendering is done by the framework-agnostic [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core) engine, which turns a `.pptx` file into a structured slide model. This package is the Vue layer that draws that model on screen, and the engine is **bundled in**, so you install just one package.
|
|
14
14
|
|
|
15
15
|
<samp>**[▶️ Try the live demo](https://christophervr.github.io/pptx-viewer/demo-vue/)** · **[📦 npm](https://www.npmjs.com/package/pptx-vue-viewer)** · **[📖 Full docs](https://christophervr.github.io/pptx-viewer/)** · **[🧩 Core SDK](https://www.npmjs.com/package/pptx-viewer-core)**</samp>
|
|
16
16
|
|
|
@@ -29274,21 +29274,22 @@ var _g = class extends Cg {
|
|
|
29274
29274
|
}
|
|
29275
29275
|
if (!n) return [];
|
|
29276
29276
|
if (this.masterCache.has(n)) return this.masterCache.get(n);
|
|
29277
|
+
const r = n.split("/").pop()?.replace(/\.xml$/u, "") ?? n;
|
|
29277
29278
|
try {
|
|
29278
29279
|
const t = await this.zip.file(n)?.async("string");
|
|
29279
29280
|
if (!t) return [];
|
|
29280
29281
|
const e = this.parser.parse(t);
|
|
29281
29282
|
this.masterXmlMap.set(n, e);
|
|
29282
|
-
const
|
|
29283
|
-
await this.loadSlideRelationships(n,
|
|
29284
|
-
const
|
|
29285
|
-
if (!
|
|
29286
|
-
this.unwrapAlternateContent(
|
|
29287
|
-
const
|
|
29288
|
-
for (let t = 0; t <
|
|
29289
|
-
const e =
|
|
29283
|
+
const i = `${n.replace("slideMasters/", "slideMasters/_rels/")}.rels`;
|
|
29284
|
+
await this.loadSlideRelationships(n, i);
|
|
29285
|
+
const o = e["p:sldMaster"]?.["p:cSld"]?.["p:spTree"];
|
|
29286
|
+
if (!o) return this.masterCache.set(n, []), [];
|
|
29287
|
+
this.unwrapAlternateContent(o);
|
|
29288
|
+
const a = this.ensureArray(o["p:sp"]), s = /* @__PURE__ */ new Set();
|
|
29289
|
+
for (let t = 0; t < a.length; t++) {
|
|
29290
|
+
const e = a[t];
|
|
29290
29291
|
if (e["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"]) {
|
|
29291
|
-
|
|
29292
|
+
s.add(t);
|
|
29292
29293
|
const r = this.extractPlaceholderDefaultsFromShape(e);
|
|
29293
29294
|
if (r) {
|
|
29294
29295
|
this.masterPlaceholderDefaultsCache.has(n) || this.masterPlaceholderDefaultsCache.set(n, /* @__PURE__ */ new Map());
|
|
@@ -29300,26 +29301,26 @@ var _g = class extends Cg {
|
|
|
29300
29301
|
}
|
|
29301
29302
|
}
|
|
29302
29303
|
}
|
|
29303
|
-
const
|
|
29304
|
-
for (const t of
|
|
29305
|
-
if (
|
|
29306
|
-
const e =
|
|
29304
|
+
const l = this.extractSpTreeChildOrder(t, o, "p:spTree"), c = [];
|
|
29305
|
+
for (const t of l) if ("p:sp" === t.tag) {
|
|
29306
|
+
if (s.has(t.indexInType)) continue;
|
|
29307
|
+
const e = a[t.indexInType];
|
|
29307
29308
|
if (!e) continue;
|
|
29308
|
-
const
|
|
29309
|
-
let
|
|
29310
|
-
|
|
29309
|
+
const i = e["p:spPr"];
|
|
29310
|
+
let o = null;
|
|
29311
|
+
o = i?.["a:blipFill"] ? await this.parseShapeWithImageFill(e, `master-shape-img-${r}-${t.indexInType}`, n) : this.parseShape(e, `master-shape-${r}-${t.indexInType}`, n), o && (o.id = `master-${o.id}`, c.push(o));
|
|
29311
29312
|
} else if ("p:pic" === t.tag) {
|
|
29312
|
-
const e = this.ensureArray(
|
|
29313
|
+
const e = this.ensureArray(o["p:pic"])[t.indexInType];
|
|
29313
29314
|
if (!e) continue;
|
|
29314
|
-
const
|
|
29315
|
-
|
|
29315
|
+
const i = await this.parsePicture(e, `master-pic-${r}-${t.indexInType}`, n);
|
|
29316
|
+
i && (i.id = `master-${i.id}`, c.push(i));
|
|
29316
29317
|
} else if ("p:graphicFrame" === t.tag) {
|
|
29317
|
-
const e = this.ensureArray(
|
|
29318
|
+
const e = this.ensureArray(o["p:graphicFrame"])[t.indexInType];
|
|
29318
29319
|
if (!e) continue;
|
|
29319
|
-
const
|
|
29320
|
-
|
|
29320
|
+
const i = this.parseGraphicFrame(e, `master-frame-${r}-${t.indexInType}`, n);
|
|
29321
|
+
i && (i.id = `master-${i.id}`, c.push(i));
|
|
29321
29322
|
}
|
|
29322
|
-
return this.masterCache.set(n,
|
|
29323
|
+
return this.masterCache.set(n, c), c;
|
|
29323
29324
|
} catch (t) {
|
|
29324
29325
|
return console.warn("Failed to parse master:", t), [];
|
|
29325
29326
|
}
|
|
@@ -29336,23 +29337,24 @@ var _g = class extends Cg {
|
|
|
29336
29337
|
}
|
|
29337
29338
|
if (!n) return [];
|
|
29338
29339
|
if (this.layoutCache.has(n)) return this.layoutCache.get(n);
|
|
29340
|
+
const r = n.split("/").pop()?.replace(/\.xml$/u, "") ?? n;
|
|
29339
29341
|
try {
|
|
29340
29342
|
const t = await this.zip.file(n)?.async("string");
|
|
29341
29343
|
if (!t) return [];
|
|
29342
29344
|
const e = this.parser.parse(t);
|
|
29343
29345
|
this.layoutXmlMap.set(n, e);
|
|
29344
|
-
const
|
|
29345
|
-
await this.loadSlideRelationships(n,
|
|
29346
|
-
const
|
|
29347
|
-
|
|
29348
|
-
const
|
|
29349
|
-
if (!
|
|
29350
|
-
this.unwrapAlternateContent(
|
|
29351
|
-
const
|
|
29352
|
-
for (let t = 0; t <
|
|
29353
|
-
const e =
|
|
29346
|
+
const i = `${n.replace("slideLayouts/", "slideLayouts/_rels/")}.rels`;
|
|
29347
|
+
await this.loadSlideRelationships(n, i);
|
|
29348
|
+
const o = this.parseLayoutClrMapOverride(e), a = this.currentSlideClrMapOverride;
|
|
29349
|
+
o && (this.currentSlideClrMapOverride = o);
|
|
29350
|
+
const s = e["p:sldLayout"]?.["p:cSld"]?.["p:spTree"];
|
|
29351
|
+
if (!s) return this.layoutCache.set(n, []), [];
|
|
29352
|
+
this.unwrapAlternateContent(s);
|
|
29353
|
+
const l = this.ensureArray(s["p:sp"]), c = /* @__PURE__ */ new Set();
|
|
29354
|
+
for (let t = 0; t < l.length; t++) {
|
|
29355
|
+
const e = l[t];
|
|
29354
29356
|
if (er(e, "p:nvSpPr", "p:nvPr", "p:ph")) {
|
|
29355
|
-
|
|
29357
|
+
c.add(t);
|
|
29356
29358
|
const r = this.extractPlaceholderDefaultsFromShape(e);
|
|
29357
29359
|
if (r) {
|
|
29358
29360
|
this.layoutPlaceholderDefaultsCache.has(n) || this.layoutPlaceholderDefaultsCache.set(n, /* @__PURE__ */ new Map());
|
|
@@ -29364,29 +29366,29 @@ var _g = class extends Cg {
|
|
|
29364
29366
|
}
|
|
29365
29367
|
}
|
|
29366
29368
|
}
|
|
29367
|
-
const
|
|
29368
|
-
for (const t of
|
|
29369
|
-
if (
|
|
29370
|
-
const e =
|
|
29369
|
+
const d = this.extractSpTreeChildOrder(t, s, "p:spTree"), h = [];
|
|
29370
|
+
for (const t of d) if ("p:sp" === t.tag) {
|
|
29371
|
+
if (c.has(t.indexInType)) continue;
|
|
29372
|
+
const e = l[t.indexInType];
|
|
29371
29373
|
if (!e) continue;
|
|
29372
|
-
const
|
|
29373
|
-
let
|
|
29374
|
-
|
|
29374
|
+
const i = qn(e, "p:spPr");
|
|
29375
|
+
let o = null;
|
|
29376
|
+
o = i && qn(i, "a:blipFill") ? await this.parseShapeWithImageFill(e, `layout-shape-img-${r}-${t.indexInType}`, n) : this.parseShape(e, `layout-shape-${r}-${t.indexInType}`, n), o && (o.id = `layout-${o.id}`, h.push(o));
|
|
29375
29377
|
} else if ("p:pic" === t.tag) {
|
|
29376
|
-
const e = this.ensureArray(
|
|
29378
|
+
const e = this.ensureArray(s["p:pic"])[t.indexInType];
|
|
29377
29379
|
if (!e) continue;
|
|
29378
|
-
const
|
|
29379
|
-
|
|
29380
|
+
const i = await this.parsePicture(e, `layout-pic-${r}-${t.indexInType}`, n);
|
|
29381
|
+
i && (i.id = `layout-${i.id}`, h.push(i));
|
|
29380
29382
|
} else if ("p:graphicFrame" === t.tag) {
|
|
29381
|
-
const e = this.ensureArray(
|
|
29383
|
+
const e = this.ensureArray(s["p:graphicFrame"])[t.indexInType];
|
|
29382
29384
|
if (!e) continue;
|
|
29383
|
-
const
|
|
29384
|
-
|
|
29385
|
+
const i = this.parseGraphicFrame(e, `layout-frame-${r}-${t.indexInType}`, n);
|
|
29386
|
+
i && (i.id = `layout-${i.id}`, h.push(i));
|
|
29385
29387
|
}
|
|
29386
|
-
const
|
|
29387
|
-
this.currentSlideClrMapOverride =
|
|
29388
|
-
const
|
|
29389
|
-
return this.layoutCache.set(n,
|
|
29388
|
+
const p = Zn(qn(e, "p:sldLayout"), "showMasterSp"), u = void 0 === p || "0" !== p.trim().toLowerCase() && "false" !== p.trim().toLowerCase() ? await this.getMasterElements(n) : [];
|
|
29389
|
+
this.currentSlideClrMapOverride = a;
|
|
29390
|
+
const m = [...u, ...h];
|
|
29391
|
+
return this.layoutCache.set(n, m), m;
|
|
29390
29392
|
} catch (t) {
|
|
29391
29393
|
return console.warn("Failed to parse layout:", t), [];
|
|
29392
29394
|
}
|
|
@@ -50348,4 +50350,4 @@ var PT = class t {
|
|
|
50348
50350
|
return r;
|
|
50349
50351
|
}
|
|
50350
50352
|
};
|
|
50351
|
-
export {
|
|
50353
|
+
export { hi as $, hl as A, Dl as B, _p as C, Ac as Ct, vp as D, Tp as E, Tc as Et, _c as F, sb as G, eb as H, Da as I, ib as J, xl as K, Na as L, Sl as M, Ie as N, wp as O, Ae as P, Ah as Q, Gt as R, Dd as S, Iv as St, kp as T, jd as Tt, qp as U, Tl as V, nb as W, rb as X, tb as Y, Qx as Z, Rd as _, Bv as _t, Wp as a, Kt as at, Nd as b, Rv as bt, ny as c, Rl as ct, ee as d, kc as dt, ol as et, Wt as f, wc as ft, cp as g, Pv as gt, Pn as h, Mv as ht, Gp as i, qt as it, Be as j, dl as k, Ed as l, ya as lt, Mc as m, Av as mt, nl as n, Jt as nt, Rc as o, Zt as ot, vc as p, Cc as pt, ph as q, Hp as r, kn as rt, Fn as s, Qi as st, el as t, Qt as tt, te as u, Ll as ut, Fd as v, Dv as vt, Cp as w, vb as wt, Ld as x, Fv as xt, Bd as y, Nv as yt, ov as z };
|
|
Binary file
|
|
Binary file
|
|
@@ -29285,21 +29285,22 @@ var Fg = class extends Ag {
|
|
|
29285
29285
|
}
|
|
29286
29286
|
if (!n) return [];
|
|
29287
29287
|
if (this.masterCache.has(n)) return this.masterCache.get(n);
|
|
29288
|
+
const r = n.split("/").pop()?.replace(/\.xml$/u, "") ?? n;
|
|
29288
29289
|
try {
|
|
29289
29290
|
const t = await this.zip.file(n)?.async("string");
|
|
29290
29291
|
if (!t) return [];
|
|
29291
29292
|
const e = this.parser.parse(t);
|
|
29292
29293
|
this.masterXmlMap.set(n, e);
|
|
29293
|
-
const
|
|
29294
|
-
await this.loadSlideRelationships(n,
|
|
29295
|
-
const
|
|
29296
|
-
if (!
|
|
29297
|
-
this.unwrapAlternateContent(
|
|
29298
|
-
const
|
|
29299
|
-
for (let t = 0; t <
|
|
29300
|
-
const e =
|
|
29294
|
+
const i = `${n.replace("slideMasters/", "slideMasters/_rels/")}.rels`;
|
|
29295
|
+
await this.loadSlideRelationships(n, i);
|
|
29296
|
+
const o = e["p:sldMaster"]?.["p:cSld"]?.["p:spTree"];
|
|
29297
|
+
if (!o) return this.masterCache.set(n, []), [];
|
|
29298
|
+
this.unwrapAlternateContent(o);
|
|
29299
|
+
const a = this.ensureArray(o["p:sp"]), s = /* @__PURE__ */ new Set();
|
|
29300
|
+
for (let t = 0; t < a.length; t++) {
|
|
29301
|
+
const e = a[t];
|
|
29301
29302
|
if (e["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"]) {
|
|
29302
|
-
|
|
29303
|
+
s.add(t);
|
|
29303
29304
|
const r = this.extractPlaceholderDefaultsFromShape(e);
|
|
29304
29305
|
if (r) {
|
|
29305
29306
|
this.masterPlaceholderDefaultsCache.has(n) || this.masterPlaceholderDefaultsCache.set(n, /* @__PURE__ */ new Map());
|
|
@@ -29311,26 +29312,26 @@ var Fg = class extends Ag {
|
|
|
29311
29312
|
}
|
|
29312
29313
|
}
|
|
29313
29314
|
}
|
|
29314
|
-
const
|
|
29315
|
-
for (const t of
|
|
29316
|
-
if (
|
|
29317
|
-
const e =
|
|
29315
|
+
const l = this.extractSpTreeChildOrder(t, o, "p:spTree"), c = [];
|
|
29316
|
+
for (const t of l) if ("p:sp" === t.tag) {
|
|
29317
|
+
if (s.has(t.indexInType)) continue;
|
|
29318
|
+
const e = a[t.indexInType];
|
|
29318
29319
|
if (!e) continue;
|
|
29319
|
-
const
|
|
29320
|
-
let
|
|
29321
|
-
|
|
29320
|
+
const i = e["p:spPr"];
|
|
29321
|
+
let o = null;
|
|
29322
|
+
o = i?.["a:blipFill"] ? await this.parseShapeWithImageFill(e, `master-shape-img-${r}-${t.indexInType}`, n) : this.parseShape(e, `master-shape-${r}-${t.indexInType}`, n), o && (o.id = `master-${o.id}`, c.push(o));
|
|
29322
29323
|
} else if ("p:pic" === t.tag) {
|
|
29323
|
-
const e = this.ensureArray(
|
|
29324
|
+
const e = this.ensureArray(o["p:pic"])[t.indexInType];
|
|
29324
29325
|
if (!e) continue;
|
|
29325
|
-
const
|
|
29326
|
-
|
|
29326
|
+
const i = await this.parsePicture(e, `master-pic-${r}-${t.indexInType}`, n);
|
|
29327
|
+
i && (i.id = `master-${i.id}`, c.push(i));
|
|
29327
29328
|
} else if ("p:graphicFrame" === t.tag) {
|
|
29328
|
-
const e = this.ensureArray(
|
|
29329
|
+
const e = this.ensureArray(o["p:graphicFrame"])[t.indexInType];
|
|
29329
29330
|
if (!e) continue;
|
|
29330
|
-
const
|
|
29331
|
-
|
|
29331
|
+
const i = this.parseGraphicFrame(e, `master-frame-${r}-${t.indexInType}`, n);
|
|
29332
|
+
i && (i.id = `master-${i.id}`, c.push(i));
|
|
29332
29333
|
}
|
|
29333
|
-
return this.masterCache.set(n,
|
|
29334
|
+
return this.masterCache.set(n, c), c;
|
|
29334
29335
|
} catch (t) {
|
|
29335
29336
|
return console.warn("Failed to parse master:", t), [];
|
|
29336
29337
|
}
|
|
@@ -29347,23 +29348,24 @@ var Fg = class extends Ag {
|
|
|
29347
29348
|
}
|
|
29348
29349
|
if (!n) return [];
|
|
29349
29350
|
if (this.layoutCache.has(n)) return this.layoutCache.get(n);
|
|
29351
|
+
const r = n.split("/").pop()?.replace(/\.xml$/u, "") ?? n;
|
|
29350
29352
|
try {
|
|
29351
29353
|
const t = await this.zip.file(n)?.async("string");
|
|
29352
29354
|
if (!t) return [];
|
|
29353
29355
|
const e = this.parser.parse(t);
|
|
29354
29356
|
this.layoutXmlMap.set(n, e);
|
|
29355
|
-
const
|
|
29356
|
-
await this.loadSlideRelationships(n,
|
|
29357
|
-
const
|
|
29358
|
-
|
|
29359
|
-
const
|
|
29360
|
-
if (!
|
|
29361
|
-
this.unwrapAlternateContent(
|
|
29362
|
-
const
|
|
29363
|
-
for (let t = 0; t <
|
|
29364
|
-
const e =
|
|
29357
|
+
const i = `${n.replace("slideLayouts/", "slideLayouts/_rels/")}.rels`;
|
|
29358
|
+
await this.loadSlideRelationships(n, i);
|
|
29359
|
+
const o = this.parseLayoutClrMapOverride(e), a = this.currentSlideClrMapOverride;
|
|
29360
|
+
o && (this.currentSlideClrMapOverride = o);
|
|
29361
|
+
const s = e["p:sldLayout"]?.["p:cSld"]?.["p:spTree"];
|
|
29362
|
+
if (!s) return this.layoutCache.set(n, []), [];
|
|
29363
|
+
this.unwrapAlternateContent(s);
|
|
29364
|
+
const l = this.ensureArray(s["p:sp"]), c = /* @__PURE__ */ new Set();
|
|
29365
|
+
for (let t = 0; t < l.length; t++) {
|
|
29366
|
+
const e = l[t];
|
|
29365
29367
|
if (ar(e, "p:nvSpPr", "p:nvPr", "p:ph")) {
|
|
29366
|
-
|
|
29368
|
+
c.add(t);
|
|
29367
29369
|
const r = this.extractPlaceholderDefaultsFromShape(e);
|
|
29368
29370
|
if (r) {
|
|
29369
29371
|
this.layoutPlaceholderDefaultsCache.has(n) || this.layoutPlaceholderDefaultsCache.set(n, /* @__PURE__ */ new Map());
|
|
@@ -29375,29 +29377,29 @@ var Fg = class extends Ag {
|
|
|
29375
29377
|
}
|
|
29376
29378
|
}
|
|
29377
29379
|
}
|
|
29378
|
-
const
|
|
29379
|
-
for (const t of
|
|
29380
|
-
if (
|
|
29381
|
-
const e =
|
|
29380
|
+
const d = this.extractSpTreeChildOrder(t, s, "p:spTree"), h = [];
|
|
29381
|
+
for (const t of d) if ("p:sp" === t.tag) {
|
|
29382
|
+
if (c.has(t.indexInType)) continue;
|
|
29383
|
+
const e = l[t.indexInType];
|
|
29382
29384
|
if (!e) continue;
|
|
29383
|
-
const
|
|
29384
|
-
let
|
|
29385
|
-
|
|
29385
|
+
const i = tr(e, "p:spPr");
|
|
29386
|
+
let o = null;
|
|
29387
|
+
o = i && tr(i, "a:blipFill") ? await this.parseShapeWithImageFill(e, `layout-shape-img-${r}-${t.indexInType}`, n) : this.parseShape(e, `layout-shape-${r}-${t.indexInType}`, n), o && (o.id = `layout-${o.id}`, h.push(o));
|
|
29386
29388
|
} else if ("p:pic" === t.tag) {
|
|
29387
|
-
const e = this.ensureArray(
|
|
29389
|
+
const e = this.ensureArray(s["p:pic"])[t.indexInType];
|
|
29388
29390
|
if (!e) continue;
|
|
29389
|
-
const
|
|
29390
|
-
|
|
29391
|
+
const i = await this.parsePicture(e, `layout-pic-${r}-${t.indexInType}`, n);
|
|
29392
|
+
i && (i.id = `layout-${i.id}`, h.push(i));
|
|
29391
29393
|
} else if ("p:graphicFrame" === t.tag) {
|
|
29392
|
-
const e = this.ensureArray(
|
|
29394
|
+
const e = this.ensureArray(s["p:graphicFrame"])[t.indexInType];
|
|
29393
29395
|
if (!e) continue;
|
|
29394
|
-
const
|
|
29395
|
-
|
|
29396
|
+
const i = this.parseGraphicFrame(e, `layout-frame-${r}-${t.indexInType}`, n);
|
|
29397
|
+
i && (i.id = `layout-${i.id}`, h.push(i));
|
|
29396
29398
|
}
|
|
29397
|
-
const
|
|
29398
|
-
this.currentSlideClrMapOverride =
|
|
29399
|
-
const
|
|
29400
|
-
return this.layoutCache.set(n,
|
|
29399
|
+
const p = nr(tr(e, "p:sldLayout"), "showMasterSp"), u = void 0 === p || "0" !== p.trim().toLowerCase() && "false" !== p.trim().toLowerCase() ? await this.getMasterElements(n) : [];
|
|
29400
|
+
this.currentSlideClrMapOverride = a;
|
|
29401
|
+
const m = [...u, ...h];
|
|
29402
|
+
return this.layoutCache.set(n, m), m;
|
|
29401
29403
|
} catch (t) {
|
|
29402
29404
|
return console.warn("Failed to parse layout:", t), [];
|
|
29403
29405
|
}
|
|
@@ -50444,11 +50446,36 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
50444
50446
|
get: function() {
|
|
50445
50447
|
return mp;
|
|
50446
50448
|
}
|
|
50449
|
+
}), Object.defineProperty(exports, "chartDataAddCategory", {
|
|
50450
|
+
enumerable: !0,
|
|
50451
|
+
get: function() {
|
|
50452
|
+
return $d;
|
|
50453
|
+
}
|
|
50454
|
+
}), Object.defineProperty(exports, "chartDataAddSeries", {
|
|
50455
|
+
enumerable: !0,
|
|
50456
|
+
get: function() {
|
|
50457
|
+
return Nd;
|
|
50458
|
+
}
|
|
50447
50459
|
}), Object.defineProperty(exports, "chartDataChangeType", {
|
|
50448
50460
|
enumerable: !0,
|
|
50449
50461
|
get: function() {
|
|
50450
50462
|
return Od;
|
|
50451
50463
|
}
|
|
50464
|
+
}), Object.defineProperty(exports, "chartDataRemoveCategory", {
|
|
50465
|
+
enumerable: !0,
|
|
50466
|
+
get: function() {
|
|
50467
|
+
return Ud;
|
|
50468
|
+
}
|
|
50469
|
+
}), Object.defineProperty(exports, "chartDataRemoveSeries", {
|
|
50470
|
+
enumerable: !0,
|
|
50471
|
+
get: function() {
|
|
50472
|
+
return Ed;
|
|
50473
|
+
}
|
|
50474
|
+
}), Object.defineProperty(exports, "chartDataUpdatePoint", {
|
|
50475
|
+
enumerable: !0,
|
|
50476
|
+
get: function() {
|
|
50477
|
+
return jd;
|
|
50478
|
+
}
|
|
50452
50479
|
}), Object.defineProperty(exports, "checkBlankSlide", {
|
|
50453
50480
|
enumerable: !0,
|
|
50454
50481
|
get: function() {
|
|
@@ -50534,6 +50561,11 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
50534
50561
|
get: function() {
|
|
50535
50562
|
return dv;
|
|
50536
50563
|
}
|
|
50564
|
+
}), Object.defineProperty(exports, "elementActionToPptxAction", {
|
|
50565
|
+
enumerable: !0,
|
|
50566
|
+
get: function() {
|
|
50567
|
+
return jl;
|
|
50568
|
+
}
|
|
50537
50569
|
}), Object.defineProperty(exports, "formatCommentTimestamp", {
|
|
50538
50570
|
enumerable: !0,
|
|
50539
50571
|
get: function() {
|
|
@@ -50649,6 +50681,11 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
50649
50681
|
get: function() {
|
|
50650
50682
|
return wa;
|
|
50651
50683
|
}
|
|
50684
|
+
}), Object.defineProperty(exports, "pptxActionToElementAction", {
|
|
50685
|
+
enumerable: !0,
|
|
50686
|
+
get: function() {
|
|
50687
|
+
return El;
|
|
50688
|
+
}
|
|
50652
50689
|
}), Object.defineProperty(exports, "promoteSmartArtNode", {
|
|
50653
50690
|
enumerable: !0,
|
|
50654
50691
|
get: function() {
|
|
@@ -50689,6 +50726,16 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
50689
50726
|
get: function() {
|
|
50690
50727
|
return jv;
|
|
50691
50728
|
}
|
|
50729
|
+
}), Object.defineProperty(exports, "setChartDataPointLabel", {
|
|
50730
|
+
enumerable: !0,
|
|
50731
|
+
get: function() {
|
|
50732
|
+
return Uv;
|
|
50733
|
+
}
|
|
50734
|
+
}), Object.defineProperty(exports, "setChartDataPointMarker", {
|
|
50735
|
+
enumerable: !0,
|
|
50736
|
+
get: function() {
|
|
50737
|
+
return $v;
|
|
50738
|
+
}
|
|
50692
50739
|
}), Object.defineProperty(exports, "setChartSeriesChartType", {
|
|
50693
50740
|
enumerable: !0,
|
|
50694
50741
|
get: function() {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("./viewer-
|
|
2
|
+
const e = require("./viewer-DGYrL5xE.cjs");
|
|
3
3
|
exports.AUDIENCE_HASH = e.AUDIENCE_HASH, exports.ElementRenderer = e.ElementRenderer_default, exports.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.clearAudienceContent = e.clearAudienceContent, exports.cn = e.cn, exports.defaultCssVars = e.defaultCssVars, exports.defaultRadius = e.defaultRadius, exports.defaultThemeColors = e.defaultThemeColors, exports.isAudienceTab = e.isAudienceTab, exports.loadAudienceContent = e.loadAudienceContent, exports.provideViewerTheme = e.provideViewerTheme, exports.storeAudienceContent = e.storeAudienceContent, exports.themeToCssVars = e.themeToCssVars, exports.useThemeStyle = e.useThemeStyle, exports.useViewerTheme = e.useViewerTheme;
|
package/dist/index.cjs.br
CHANGED
|
Binary file
|
package/dist/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as a, F as s, G as e, N as r, P as i, V as o, a as t, d as n, f as d, i as l, n as m, o as p, p as w, r as P, t as S, u as f, z as v } from "./viewer-
|
|
1
|
+
import { B as a, F as s, G as e, N as r, P as i, V as o, a as t, d as n, f as d, i as l, n as m, o as p, p as w, r as P, t as S, u as f, z as v } from "./viewer-BUUM_Eul.js";
|
|
2
2
|
export { S as AUDIENCE_HASH, w as ElementRenderer, p as PowerPointViewer, f as SlideCanvas, d as SlideStage, m as clearAudienceContent, n as cn, v as defaultCssVars, a as defaultRadius, o as defaultThemeColors, P as isAudienceTab, l as loadAudienceContent, r as provideViewerTheme, t as storeAudienceContent, e as themeToCssVars, i as useThemeStyle, s as useViewerTheme };
|
package/dist/index.js.br
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
�kk5o9�� ]��P�=�nl����it�H��}��*�CLW��4����]���q���o${����q�-Y��5q���ag7q�ץGg�$e5�a�yY�{�WE�s�r��X-*���
|
|
1
|
+
#����#�t��\�d}��+01)��[{V����|o����r"ݒ���ٮ��ė��qNIR����+HFd�$�fѥ6fT��1X�Y�9�;29q���S�����QvP��D�����͊ʯ��[/� ]��P�=�n��7T����Ƒ,b����+�L������iN�]э��C�h���~����/�z��1�d�����jx�2qv��z]ztVKRV�&�g1��XE���C|p�
|
|
2
|
+
��x�?
|
package/dist/index.js.gz
CHANGED
|
Binary file
|