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.
Files changed (164) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/{dist-CvCXjCMh.js → dist-ABxBuMU7.js} +54 -52
  4. package/dist/dist-ABxBuMU7.js.br +0 -0
  5. package/dist/{dist-CvCXjCMh.js.gz → dist-ABxBuMU7.js.gz} +0 -0
  6. package/dist/{dist-CKUdBsHT.cjs → dist-Dtt0UVyq.cjs} +98 -51
  7. package/dist/dist-Dtt0UVyq.cjs.br +0 -0
  8. package/dist/{dist-CKUdBsHT.cjs.gz → dist-Dtt0UVyq.cjs.gz} +0 -0
  9. package/dist/gif-encoder-DZLW3o_g.js +2 -0
  10. package/dist/gif-encoder-DZLW3o_g.js.br +3 -0
  11. package/dist/gif-encoder-DZLW3o_g.js.gz +0 -0
  12. package/dist/gif-encoder-m86u_ZK4.cjs +2 -0
  13. package/dist/gif-encoder-m86u_ZK4.cjs.br +0 -0
  14. package/dist/gif-encoder-m86u_ZK4.cjs.gz +0 -0
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.cjs.br +0 -0
  17. package/dist/index.cjs.gz +0 -0
  18. package/dist/index.js +1 -1
  19. package/dist/index.js.br +2 -3
  20. package/dist/index.js.gz +0 -0
  21. package/dist/pptx-vue-viewer.css +1 -1
  22. package/dist/pptx-vue-viewer.css.br +0 -0
  23. package/dist/pptx-vue-viewer.css.gz +0 -0
  24. package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
  25. package/dist/viewer/components/ActionButtonGlyphOverlay.vue.d.ts +20 -0
  26. package/dist/viewer/components/ActionButtonGlyphOverlay.vue.d.ts.map +1 -0
  27. package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts +20 -0
  28. package/dist/viewer/components/CommentMarkersOverlay.vue.d.ts.map +1 -0
  29. package/dist/viewer/components/CommentsPanel.vue.d.ts +8 -0
  30. package/dist/viewer/components/CommentsPanel.vue.d.ts.map +1 -1
  31. package/dist/viewer/components/ElementRenderer.vue.d.ts.map +1 -1
  32. package/dist/viewer/components/FontEmbeddingPanel.vue.d.ts +22 -0
  33. package/dist/viewer/components/FontEmbeddingPanel.vue.d.ts.map +1 -0
  34. package/dist/viewer/components/HyperlinkDialog.vue.d.ts +13 -30
  35. package/dist/viewer/components/HyperlinkDialog.vue.d.ts.map +1 -1
  36. package/dist/viewer/components/InlineTextEditor.vue.d.ts +3 -1
  37. package/dist/viewer/components/InlineTextEditor.vue.d.ts.map +1 -1
  38. package/dist/viewer/components/KeepAnnotationsDialog.vue.d.ts +20 -0
  39. package/dist/viewer/components/KeepAnnotationsDialog.vue.d.ts.map +1 -0
  40. package/dist/viewer/components/LinkTooltip.vue.d.ts +18 -0
  41. package/dist/viewer/components/LinkTooltip.vue.d.ts.map +1 -0
  42. package/dist/viewer/components/PasswordProtectionDialog.vue.d.ts +22 -0
  43. package/dist/viewer/components/PasswordProtectionDialog.vue.d.ts.map +1 -0
  44. package/dist/viewer/components/PresentationMode.vue.d.ts +7 -2
  45. package/dist/viewer/components/PresentationMode.vue.d.ts.map +1 -1
  46. package/dist/viewer/components/SelectionPane.vue.d.ts +33 -0
  47. package/dist/viewer/components/SelectionPane.vue.d.ts.map +1 -0
  48. package/dist/viewer/components/SetUpSlideShowDialog.vue.d.ts +26 -0
  49. package/dist/viewer/components/SetUpSlideShowDialog.vue.d.ts.map +1 -0
  50. package/dist/viewer/components/ShowOptionsFieldset.vue.d.ts +18 -0
  51. package/dist/viewer/components/ShowOptionsFieldset.vue.d.ts.map +1 -0
  52. package/dist/viewer/components/ShowSlidesFieldset.vue.d.ts +21 -0
  53. package/dist/viewer/components/ShowSlidesFieldset.vue.d.ts.map +1 -0
  54. package/dist/viewer/components/SignatureStatusBadge.vue.d.ts +18 -0
  55. package/dist/viewer/components/SignatureStatusBadge.vue.d.ts.map +1 -0
  56. package/dist/viewer/components/SignatureStrippedDialog.vue.d.ts +20 -0
  57. package/dist/viewer/components/SignatureStrippedDialog.vue.d.ts.map +1 -0
  58. package/dist/viewer/components/SlideSorter.vue.d.ts +7 -0
  59. package/dist/viewer/components/SlideSorter.vue.d.ts.map +1 -1
  60. package/dist/viewer/components/TableRenderer.vue.d.ts +3 -2
  61. package/dist/viewer/components/TableRenderer.vue.d.ts.map +1 -1
  62. package/dist/viewer/components/TableResizeOverlay.vue.d.ts +36 -0
  63. package/dist/viewer/components/TableResizeOverlay.vue.d.ts.map +1 -0
  64. package/dist/viewer/components/inspector/ArtisticEffectsGallery.vue.d.ts +19 -0
  65. package/dist/viewer/components/inspector/ArtisticEffectsGallery.vue.d.ts.map +1 -0
  66. package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts +35 -0
  67. package/dist/viewer/components/inspector/ChartDataGrid.vue.d.ts.map +1 -0
  68. package/dist/viewer/components/inspector/ChartDataPointMarkerOptions.vue.d.ts +21 -0
  69. package/dist/viewer/components/inspector/ChartDataPointMarkerOptions.vue.d.ts.map +1 -0
  70. package/dist/viewer/components/inspector/ChartDataPointOptions.vue.d.ts +2 -0
  71. package/dist/viewer/components/inspector/ChartDataPointOptions.vue.d.ts.map +1 -1
  72. package/dist/viewer/components/inspector/ChartPanel.vue.d.ts.map +1 -1
  73. package/dist/viewer/components/inspector/ColorChangeSection.vue.d.ts +17 -0
  74. package/dist/viewer/components/inspector/ColorChangeSection.vue.d.ts.map +1 -0
  75. package/dist/viewer/components/inspector/ColorWashSection.vue.d.ts +17 -0
  76. package/dist/viewer/components/inspector/ColorWashSection.vue.d.ts.map +1 -0
  77. package/dist/viewer/components/inspector/DebouncedColorInput.vue.d.ts +19 -0
  78. package/dist/viewer/components/inspector/DebouncedColorInput.vue.d.ts.map +1 -0
  79. package/dist/viewer/components/inspector/DuotonePanel.vue.d.ts +17 -0
  80. package/dist/viewer/components/inspector/DuotonePanel.vue.d.ts.map +1 -0
  81. package/dist/viewer/components/inspector/EffectsPanel.vue.d.ts.map +1 -1
  82. package/dist/viewer/components/inspector/ImageAdjustmentsPanel.vue.d.ts +20 -0
  83. package/dist/viewer/components/inspector/ImageAdjustmentsPanel.vue.d.ts.map +1 -0
  84. package/dist/viewer/components/inspector/ImageCropSection.vue.d.ts +21 -0
  85. package/dist/viewer/components/inspector/ImageCropSection.vue.d.ts.map +1 -0
  86. package/dist/viewer/components/inspector/ImagePanel.vue.d.ts +7 -13
  87. package/dist/viewer/components/inspector/ImagePanel.vue.d.ts.map +1 -1
  88. package/dist/viewer/components/inspector/InspectorPane.vue.d.ts.map +1 -1
  89. package/dist/viewer/components/inspector/MediaBookmarks.vue.d.ts +16 -0
  90. package/dist/viewer/components/inspector/MediaBookmarks.vue.d.ts.map +1 -0
  91. package/dist/viewer/components/inspector/MediaPlaybackOptions.vue.d.ts +13 -0
  92. package/dist/viewer/components/inspector/MediaPlaybackOptions.vue.d.ts.map +1 -0
  93. package/dist/viewer/components/inspector/MediaPropertiesPanel.vue.d.ts +13 -0
  94. package/dist/viewer/components/inspector/MediaPropertiesPanel.vue.d.ts.map +1 -0
  95. package/dist/viewer/components/inspector/MediaTrimTimeline.vue.d.ts +25 -0
  96. package/dist/viewer/components/inspector/MediaTrimTimeline.vue.d.ts.map +1 -0
  97. package/dist/viewer/components/inspector/PresentationSettingsCard.vue.d.ts +22 -0
  98. package/dist/viewer/components/inspector/PresentationSettingsCard.vue.d.ts.map +1 -0
  99. package/dist/viewer/components/inspector/QuickStylesGallery.vue.d.ts +9 -0
  100. package/dist/viewer/components/inspector/QuickStylesGallery.vue.d.ts.map +1 -0
  101. package/dist/viewer/components/inspector/SlideInspector.vue.d.ts +4 -1
  102. package/dist/viewer/components/inspector/SlideInspector.vue.d.ts.map +1 -1
  103. package/dist/viewer/components/inspector/TableCellAdvancedFill.vue.d.ts +20 -0
  104. package/dist/viewer/components/inspector/TableCellAdvancedFill.vue.d.ts.map +1 -0
  105. package/dist/viewer/components/inspector/TableCellFormattingPanel.vue.d.ts +24 -0
  106. package/dist/viewer/components/inspector/TableCellFormattingPanel.vue.d.ts.map +1 -0
  107. package/dist/viewer/components/inspector/TablePanel.vue.d.ts +9 -24
  108. package/dist/viewer/components/inspector/TablePanel.vue.d.ts.map +1 -1
  109. package/dist/viewer/components/inspector/TableSizePanel.vue.d.ts +19 -0
  110. package/dist/viewer/components/inspector/TableSizePanel.vue.d.ts.map +1 -0
  111. package/dist/viewer/components/inspector/TableStyleOptions.vue.d.ts +19 -0
  112. package/dist/viewer/components/inspector/TableStyleOptions.vue.d.ts.map +1 -0
  113. package/dist/viewer/components/inspector/Text3DBevelSection.vue.d.ts +25 -0
  114. package/dist/viewer/components/inspector/Text3DBevelSection.vue.d.ts.map +1 -0
  115. package/dist/viewer/components/inspector/Text3DProperties.vue.d.ts +20 -0
  116. package/dist/viewer/components/inspector/Text3DProperties.vue.d.ts.map +1 -0
  117. package/dist/viewer/components/inspector/TextEffectsPanel.vue.d.ts +18 -0
  118. package/dist/viewer/components/inspector/TextEffectsPanel.vue.d.ts.map +1 -0
  119. package/dist/viewer/components/inspector/TextPanel.vue.d.ts.map +1 -1
  120. package/dist/viewer/components/inspector/TextWarpGallery.vue.d.ts +19 -0
  121. package/dist/viewer/components/inspector/TextWarpGallery.vue.d.ts.map +1 -0
  122. package/dist/viewer/composables/table-mutations.d.ts +26 -0
  123. package/dist/viewer/composables/table-mutations.d.ts.map +1 -0
  124. package/dist/viewer/composables/table-selection.d.ts +68 -0
  125. package/dist/viewer/composables/table-selection.d.ts.map +1 -0
  126. package/dist/viewer/composables/useChartEditing.d.ts +14 -1
  127. package/dist/viewer/composables/useChartEditing.d.ts.map +1 -1
  128. package/dist/viewer/composables/useComments.d.ts +8 -0
  129. package/dist/viewer/composables/useComments.d.ts.map +1 -1
  130. package/dist/viewer/composables/useDebouncedCallback.d.ts +16 -0
  131. package/dist/viewer/composables/useDebouncedCallback.d.ts.map +1 -0
  132. package/dist/viewer/composables/useImageEditing.d.ts +46 -0
  133. package/dist/viewer/composables/useImageEditing.d.ts.map +1 -0
  134. package/dist/viewer/composables/useLoadContent.d.ts +3 -1
  135. package/dist/viewer/composables/useLoadContent.d.ts.map +1 -1
  136. package/dist/viewer/composables/useMediaEditing.d.ts +34 -0
  137. package/dist/viewer/composables/useMediaEditing.d.ts.map +1 -0
  138. package/dist/viewer/composables/useTextEffects.d.ts +23 -0
  139. package/dist/viewer/composables/useTextEffects.d.ts.map +1 -0
  140. package/dist/viewer/index.cjs +1 -1
  141. package/dist/viewer/index.cjs.br +0 -0
  142. package/dist/viewer/index.cjs.gz +0 -0
  143. package/dist/viewer/index.js +1 -1
  144. package/dist/viewer/index.js.br +1 -2
  145. package/dist/viewer/index.js.gz +0 -0
  146. package/dist/{viewer-t-wza0VB.js → viewer-BUUM_Eul.js} +11887 -7714
  147. package/dist/viewer-BUUM_Eul.js.br +0 -0
  148. package/dist/viewer-BUUM_Eul.js.gz +0 -0
  149. package/dist/{viewer-BgiINZf1.cjs → viewer-DGYrL5xE.cjs} +9111 -4937
  150. package/dist/viewer-DGYrL5xE.cjs.br +0 -0
  151. package/dist/viewer-DGYrL5xE.cjs.gz +0 -0
  152. package/package.json +1 -1
  153. package/dist/dist-CKUdBsHT.cjs.br +0 -0
  154. package/dist/dist-CvCXjCMh.js.br +0 -0
  155. package/dist/gif-encoder-CYNnxL8D.cjs +0 -2
  156. package/dist/gif-encoder-CYNnxL8D.cjs.br +0 -0
  157. package/dist/gif-encoder-CYNnxL8D.cjs.gz +0 -0
  158. package/dist/gif-encoder-NTISOGYu.js +0 -2
  159. package/dist/gif-encoder-NTISOGYu.js.br +0 -3
  160. package/dist/gif-encoder-NTISOGYu.js.gz +0 -0
  161. package/dist/viewer-BgiINZf1.cjs.br +0 -0
  162. package/dist/viewer-BgiINZf1.cjs.gz +0 -0
  163. package/dist/viewer-t-wza0VB.js.br +0 -0
  164. 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
  ![PowerPoint editor UI rendered in the browser](https://raw.githubusercontent.com/ChristopherVR/pptx-viewer/main/.github/assets/editor.png)
12
12
 
13
- The rendering is done by the framework-agnostic [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core) engine (also published as [`@christophervr/pptx-viewer`](https://www.npmjs.com/package/@christophervr/pptx-viewer) -- the two names are identical releases), 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.
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 r = `${n.replace("slideMasters/", "slideMasters/_rels/")}.rels`;
29283
- await this.loadSlideRelationships(n, r);
29284
- const i = e["p:sldMaster"]?.["p:cSld"]?.["p:spTree"];
29285
- if (!i) return this.masterCache.set(n, []), [];
29286
- this.unwrapAlternateContent(i);
29287
- const o = this.ensureArray(i["p:sp"]), a = /* @__PURE__ */ new Set();
29288
- for (let t = 0; t < o.length; t++) {
29289
- const e = o[t];
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
- a.add(t);
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 s = this.extractSpTreeChildOrder(t, i, "p:spTree"), l = [];
29304
- for (const t of s) if ("p:sp" === t.tag) {
29305
- if (a.has(t.indexInType)) continue;
29306
- const e = o[t.indexInType];
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 r = e["p:spPr"];
29309
- let i = null;
29310
- i = r?.["a:blipFill"] ? await this.parseShapeWithImageFill(e, `master-shape-img-${t.indexInType}`, n) : this.parseShape(e, `master-shape-${t.indexInType}`, n), i && (i.id = `master-${i.id}`, l.push(i));
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(i["p:pic"])[t.indexInType];
29313
+ const e = this.ensureArray(o["p:pic"])[t.indexInType];
29313
29314
  if (!e) continue;
29314
- const r = await this.parsePicture(e, `master-pic-${t.indexInType}`, n);
29315
- r && (r.id = `master-${r.id}`, l.push(r));
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(i["p:graphicFrame"])[t.indexInType];
29318
+ const e = this.ensureArray(o["p:graphicFrame"])[t.indexInType];
29318
29319
  if (!e) continue;
29319
- const r = this.parseGraphicFrame(e, `master-frame-${t.indexInType}`, n);
29320
- r && (r.id = `master-${r.id}`, l.push(r));
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, l), l;
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 r = `${n.replace("slideLayouts/", "slideLayouts/_rels/")}.rels`;
29345
- await this.loadSlideRelationships(n, r);
29346
- const i = this.parseLayoutClrMapOverride(e), o = this.currentSlideClrMapOverride;
29347
- i && (this.currentSlideClrMapOverride = i);
29348
- const a = e["p:sldLayout"]?.["p:cSld"]?.["p:spTree"];
29349
- if (!a) return this.layoutCache.set(n, []), [];
29350
- this.unwrapAlternateContent(a);
29351
- const s = this.ensureArray(a["p:sp"]), l = /* @__PURE__ */ new Set();
29352
- for (let t = 0; t < s.length; t++) {
29353
- const e = s[t];
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
- l.add(t);
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 c = this.extractSpTreeChildOrder(t, a, "p:spTree"), d = [];
29368
- for (const t of c) if ("p:sp" === t.tag) {
29369
- if (l.has(t.indexInType)) continue;
29370
- const e = s[t.indexInType];
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 r = qn(e, "p:spPr");
29373
- let i = null;
29374
- i = r && qn(r, "a:blipFill") ? await this.parseShapeWithImageFill(e, `layout-shape-img-${t.indexInType}`, n) : this.parseShape(e, `layout-shape-${t.indexInType}`, n), i && (i.id = `layout-${i.id}`, d.push(i));
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(a["p:pic"])[t.indexInType];
29378
+ const e = this.ensureArray(s["p:pic"])[t.indexInType];
29377
29379
  if (!e) continue;
29378
- const r = await this.parsePicture(e, `layout-pic-${t.indexInType}`, n);
29379
- r && (r.id = `layout-${r.id}`, d.push(r));
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(a["p:graphicFrame"])[t.indexInType];
29383
+ const e = this.ensureArray(s["p:graphicFrame"])[t.indexInType];
29382
29384
  if (!e) continue;
29383
- const r = this.parseGraphicFrame(e, `layout-frame-${t.indexInType}`, n);
29384
- r && (r.id = `layout-${r.id}`, d.push(r));
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 h = Zn(qn(e, "p:sldLayout"), "showMasterSp"), p = void 0 === h || "0" !== h.trim().toLowerCase() && "false" !== h.trim().toLowerCase() ? await this.getMasterElements(n) : [];
29387
- this.currentSlideClrMapOverride = o;
29388
- const u = [...p, ...d];
29389
- return this.layoutCache.set(n, u), u;
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 { Kt as $, _c as A, xl as B, wp as C, Sl as D, Be as E, Tl as F, Qx as G, ib as H, eb as I, ol as J, Ah as K, qp as L, Na as M, Gt as N, Ie as O, ov as P, qt as Q, nb as R, vp as S, hl as T, tb as U, ph as V, rb as W, Jt as X, Qt as Y, kn as Z, Bd as _, Tc as _t, Wp as a, wc as at, kp as b, ny as c, Mv as ct, ee as d, Dv as dt, Zt as et, Wt as f, Fv as ft, cp as g, jd as gt, Pn as h, vb as ht, Gp as i, kc as it, Da as j, Ae as k, Ed as l, Pv as lt, Mc as m, Ac as mt, nl as n, Rl as nt, Rc as o, Cc as ot, vc as p, Iv as pt, hi as q, Hp as r, ya as rt, Fn as s, Av as st, el as t, Qi as tt, te as u, Bv as ut, _p as v, dl as w, Tp as x, Cp as y, sb as z };
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
@@ -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 r = `${n.replace("slideMasters/", "slideMasters/_rels/")}.rels`;
29294
- await this.loadSlideRelationships(n, r);
29295
- const i = e["p:sldMaster"]?.["p:cSld"]?.["p:spTree"];
29296
- if (!i) return this.masterCache.set(n, []), [];
29297
- this.unwrapAlternateContent(i);
29298
- const o = this.ensureArray(i["p:sp"]), a = /* @__PURE__ */ new Set();
29299
- for (let t = 0; t < o.length; t++) {
29300
- const e = o[t];
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
- a.add(t);
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 s = this.extractSpTreeChildOrder(t, i, "p:spTree"), l = [];
29315
- for (const t of s) if ("p:sp" === t.tag) {
29316
- if (a.has(t.indexInType)) continue;
29317
- const e = o[t.indexInType];
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 r = e["p:spPr"];
29320
- let i = null;
29321
- i = r?.["a:blipFill"] ? await this.parseShapeWithImageFill(e, `master-shape-img-${t.indexInType}`, n) : this.parseShape(e, `master-shape-${t.indexInType}`, n), i && (i.id = `master-${i.id}`, l.push(i));
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(i["p:pic"])[t.indexInType];
29324
+ const e = this.ensureArray(o["p:pic"])[t.indexInType];
29324
29325
  if (!e) continue;
29325
- const r = await this.parsePicture(e, `master-pic-${t.indexInType}`, n);
29326
- r && (r.id = `master-${r.id}`, l.push(r));
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(i["p:graphicFrame"])[t.indexInType];
29329
+ const e = this.ensureArray(o["p:graphicFrame"])[t.indexInType];
29329
29330
  if (!e) continue;
29330
- const r = this.parseGraphicFrame(e, `master-frame-${t.indexInType}`, n);
29331
- r && (r.id = `master-${r.id}`, l.push(r));
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, l), l;
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 r = `${n.replace("slideLayouts/", "slideLayouts/_rels/")}.rels`;
29356
- await this.loadSlideRelationships(n, r);
29357
- const i = this.parseLayoutClrMapOverride(e), o = this.currentSlideClrMapOverride;
29358
- i && (this.currentSlideClrMapOverride = i);
29359
- const a = e["p:sldLayout"]?.["p:cSld"]?.["p:spTree"];
29360
- if (!a) return this.layoutCache.set(n, []), [];
29361
- this.unwrapAlternateContent(a);
29362
- const s = this.ensureArray(a["p:sp"]), l = /* @__PURE__ */ new Set();
29363
- for (let t = 0; t < s.length; t++) {
29364
- const e = s[t];
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
- l.add(t);
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 c = this.extractSpTreeChildOrder(t, a, "p:spTree"), d = [];
29379
- for (const t of c) if ("p:sp" === t.tag) {
29380
- if (l.has(t.indexInType)) continue;
29381
- const e = s[t.indexInType];
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 r = tr(e, "p:spPr");
29384
- let i = null;
29385
- i = r && tr(r, "a:blipFill") ? await this.parseShapeWithImageFill(e, `layout-shape-img-${t.indexInType}`, n) : this.parseShape(e, `layout-shape-${t.indexInType}`, n), i && (i.id = `layout-${i.id}`, d.push(i));
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(a["p:pic"])[t.indexInType];
29389
+ const e = this.ensureArray(s["p:pic"])[t.indexInType];
29388
29390
  if (!e) continue;
29389
- const r = await this.parsePicture(e, `layout-pic-${t.indexInType}`, n);
29390
- r && (r.id = `layout-${r.id}`, d.push(r));
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(a["p:graphicFrame"])[t.indexInType];
29394
+ const e = this.ensureArray(s["p:graphicFrame"])[t.indexInType];
29393
29395
  if (!e) continue;
29394
- const r = this.parseGraphicFrame(e, `layout-frame-${t.indexInType}`, n);
29395
- r && (r.id = `layout-${r.id}`, d.push(r));
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 h = nr(tr(e, "p:sldLayout"), "showMasterSp"), p = void 0 === h || "0" !== h.trim().toLowerCase() && "false" !== h.trim().toLowerCase() ? await this.getMasterElements(n) : [];
29398
- this.currentSlideClrMapOverride = o;
29399
- const u = [...p, ...d];
29400
- return this.layoutCache.set(n, u), u;
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
@@ -0,0 +1,2 @@
1
+ import { H as r } from "./viewer-BUUM_Eul.js";
2
+ export { r as encodeGif };
@@ -0,0 +1,3 @@
1
+ �$�import { H as r } from "./viewer-BUUM_Eul.js";
2
+ export { r as encodeGif };
3
+ 
Binary file
@@ -0,0 +1,2 @@
1
+ const e = require("./viewer-DGYrL5xE.cjs");
2
+ exports.encodeGif = e.encodeGif;
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-BgiINZf1.cjs");
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-t-wza0VB.js";
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
- l�eI�<6H�p+��S�&ץ�[~����OvX��\�ɑ�?xQ[��&��� ��=����k��{�XD9�nI�O�l��U��{�8��)�~���GV�)�9ʖQ�&e�CUt�LN�.�nT�p�}��./���>��5�
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"ݒ���ٮ��ė��qNI R����+H Fd�$�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