pptx-vue-viewer 1.1.76 → 1.1.77

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 (43) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{dist-CKUdBsHT.cjs → dist-BDDSrdd_.cjs} +53 -51
  3. package/dist/dist-BDDSrdd_.cjs.br +0 -0
  4. package/dist/{dist-CKUdBsHT.cjs.gz → dist-BDDSrdd_.cjs.gz} +0 -0
  5. package/dist/{dist-CvCXjCMh.js → dist-DSB3vjJj.js} +53 -51
  6. package/dist/dist-DSB3vjJj.js.br +0 -0
  7. package/dist/{dist-CvCXjCMh.js.gz → dist-DSB3vjJj.js.gz} +0 -0
  8. package/dist/gif-encoder-B918Zcqn.js +2 -0
  9. package/dist/gif-encoder-B918Zcqn.js.br +3 -0
  10. package/dist/gif-encoder-B918Zcqn.js.gz +0 -0
  11. package/dist/gif-encoder-DKnC3ZPU.cjs +2 -0
  12. package/dist/gif-encoder-DKnC3ZPU.cjs.br +0 -0
  13. package/dist/gif-encoder-DKnC3ZPU.cjs.gz +0 -0
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.cjs.br +0 -0
  16. package/dist/index.cjs.gz +0 -0
  17. package/dist/index.js +1 -1
  18. package/dist/index.js.br +2 -3
  19. package/dist/index.js.gz +0 -0
  20. package/dist/viewer/index.cjs +1 -1
  21. package/dist/viewer/index.cjs.br +0 -0
  22. package/dist/viewer/index.cjs.gz +0 -0
  23. package/dist/viewer/index.js +1 -1
  24. package/dist/viewer/index.js.br +3 -2
  25. package/dist/viewer/index.js.gz +0 -0
  26. package/dist/{viewer-BgiINZf1.cjs → viewer-BMiP13uG.cjs} +3 -3
  27. package/dist/viewer-BMiP13uG.cjs.br +0 -0
  28. package/dist/viewer-BMiP13uG.cjs.gz +0 -0
  29. package/dist/{viewer-t-wza0VB.js → viewer-B_IKYYv_.js} +3 -3
  30. package/dist/viewer-B_IKYYv_.js.br +0 -0
  31. package/dist/{viewer-t-wza0VB.js.gz → viewer-B_IKYYv_.js.gz} +0 -0
  32. package/package.json +1 -1
  33. package/dist/dist-CKUdBsHT.cjs.br +0 -0
  34. package/dist/dist-CvCXjCMh.js.br +0 -0
  35. package/dist/gif-encoder-CYNnxL8D.cjs +0 -2
  36. package/dist/gif-encoder-CYNnxL8D.cjs.br +0 -0
  37. package/dist/gif-encoder-CYNnxL8D.cjs.gz +0 -0
  38. package/dist/gif-encoder-NTISOGYu.js +0 -2
  39. package/dist/gif-encoder-NTISOGYu.js.br +0 -3
  40. package/dist/gif-encoder-NTISOGYu.js.gz +0 -0
  41. package/dist/viewer-BgiINZf1.cjs.br +0 -0
  42. package/dist/viewer-BgiINZf1.cjs.gz +0 -0
  43. package/dist/viewer-t-wza0VB.js.br +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
@@ -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
  }
Binary file
@@ -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
  }
Binary file
@@ -0,0 +1,2 @@
1
+ import { H as r } from "./viewer-B_IKYYv_.js";
2
+ export { r as encodeGif };
@@ -0,0 +1,3 @@
1
+ �$�import { H as r } from "./viewer-B_IKYYv_.js";
2
+ export { r as encodeGif };
3
+ 
Binary file
@@ -0,0 +1,2 @@
1
+ const e = require("./viewer-BMiP13uG.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-BMiP13uG.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-B_IKYYv_.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
- leI�<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�lNe/�$<�@X
2
+ ;з���ӯ��� b�D�% ?Y]sW�/�㜒��� �-��G2ufM*}#VSzsR+Z{:FGgLW7r��7uya$uP��F����쬭μ��B�еQ��#��zC��>�n�<F`�L��тC*�CLW��4����]�>�7��Y��~G�����Clj?���e��p���B��u��Y-IY
package/dist/index.js.gz CHANGED
Binary file
@@ -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-BMiP13uG.cjs");
3
3
  exports.AUDIENCE_HASH = e.AUDIENCE_HASH, exports.ChartRenderer = e.ChartRenderer_default, exports.ConnectorRenderer = e.ConnectorRenderer_default, exports.DEFAULT_CANVAS_HEIGHT = e.DEFAULT_CANVAS_HEIGHT, exports.DEFAULT_CANVAS_WIDTH = e.DEFAULT_CANVAS_WIDTH, exports.DEFAULT_FILL_COLOR = e.DEFAULT_FILL_COLOR, exports.DEFAULT_STROKE_COLOR = e.DEFAULT_STROKE_COLOR, exports.DEFAULT_TEXT_COLOR = e.DEFAULT_TEXT_COLOR, exports.ElementRenderer = e.ElementRenderer_default, exports.EquationRenderer = e.EquationRenderer_default, exports.InkRenderer = e.InkRenderer_default, exports.Model3DRenderer = e.Model3DRenderer_default, exports.OleRenderer = e.OleRenderer_default, exports.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.SmartArtRenderer = e.SmartArtRenderer_default, exports.TableRenderer = e.TableRenderer_default, exports.WordArtText = e.WordArtText_default, exports.ZoomRenderer = e.ZoomRenderer_default, exports.buildInitialGuides = e.buildInitialGuides, exports.clearAudienceContent = e.clearAudienceContent, exports.collectImagePaths = e.collectImagePaths, exports.collectMediaElements = e.collectMediaElements, exports.getContainerStyle = e.getContainerStyle, exports.getImageSrc = e.getImageSrc, exports.getResolvedShapeClipPath = e.getResolvedShapeClipPath, exports.getResolvedShapeClipPathFor = e.getResolvedShapeClipPathFor, exports.getShapeFillStrokeStyle = e.getShapeFillStrokeStyle, exports.getTextBlockStyle = e.getTextBlockStyle, exports.isAudienceTab = e.isAudienceTab, exports.loadAudienceContent = e.loadAudienceContent, exports.storeAudienceContent = e.storeAudienceContent, exports.useEditorHistory = e.useEditorHistory, exports.useEditorOperations = e.useEditorOperations, exports.useLoadContent = e.useLoadContent;
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import { A as a, C as s, D as e, E as r, I as n, L as d, M as o, O as t, R, S as i, T as l, U as m, W as S, _ as w, a as C, b as p, c as v, f as x, g as A, h as E, i as T, j as b, k as c, l as f, m as g, n as h, o as j, p as k, r as u, s as D, t as I, u as M, v as O, w as P, x as W, y as q } from "../viewer-t-wza0VB.js";
1
+ import { A as a, C as s, D as e, E as r, I as n, L as d, M as o, O as t, R, S as i, T as l, U as m, W as S, _ as w, a as C, b as p, c as v, f as x, g as A, h as E, i as T, j as b, k as c, l as f, m as g, n as h, o as j, p as k, r as u, s as D, t as I, u as M, v as O, w as P, x as W, y as q } from "../viewer-B_IKYYv_.js";
2
2
  export { I as AUDIENCE_HASH, s as ChartRenderer, i as ConnectorRenderer, t as DEFAULT_CANVAS_HEIGHT, c as DEFAULT_CANVAS_WIDTH, a as DEFAULT_FILL_COLOR, b as DEFAULT_STROKE_COLOR, o as DEFAULT_TEXT_COLOR, k as ElementRenderer, W as EquationRenderer, p as InkRenderer, q as Model3DRenderer, O as OleRenderer, j as PowerPointViewer, M as SlideCanvas, x as SlideStage, w as SmartArtRenderer, A as TableRenderer, E as WordArtText, g as ZoomRenderer, n as buildInitialGuides, h as clearAudienceContent, d as collectImagePaths, R as collectMediaElements, P as getContainerStyle, l as getImageSrc, m as getResolvedShapeClipPath, S as getResolvedShapeClipPathFor, r as getShapeFillStrokeStyle, e as getTextBlockStyle, u as isAudienceTab, T as loadAudienceContent, C as storeAudienceContent, f as useEditorHistory, v as useEditorOperations, D as useLoadContent };
@@ -1,2 +1,3 @@
1
- �`���#�t�ͪ�I-oEE��s%�g�lJa���~u���L{�><�$:��&�%:�K��v`����d/ƙ ���x 8��.����Ҹ�O��lYƔ�S!T4���:���M�L͐�X �%��5�
2
- �#[\�_O�yM]�[t�wGiF����I�t���u�dڇ�I��Ӿ��<>8���]��
1
+ �`���#�t�rNes� �H��%�d@��}�~�:g�j�ֽoMOx����%o;0M�`��/�$�$�e��j��.��bqxZ>ƴ��p��4F1a4a��j�f�њĆԖ܎žҁڑF�.GU`y��A����;��OI����5��ef9�ۃ-j./3���x]sK��pܦu@
2
+ ף��t8�G��
3
+ >�m)X�G�P�_�q"�Z�.RGx �U@�;c��+�񷆣����t}*���,~��yp�M�n���>,@�ﲷ�ZG����y�a�V2<`�OK�_�ȁ��X�`H���p84 �b"�4��F�5{p����gF����a��ޝ����̨��w�MvM� 9N\v�
Binary file
@@ -1,4 +1,4 @@
1
- const e = require("./dist-CKUdBsHT.cjs");
1
+ const e = require("./dist-BDDSrdd_.cjs");
2
2
  let t = require("vue"), n = require("dompurify");
3
3
  n = e.__toESM(n, 1);
4
4
  let o = require("lucide-vue-next"), a = require("clsx"), r = require("tailwind-merge");
@@ -25278,7 +25278,7 @@ function gT(e) {
25278
25278
  if (b = null, !S || !t.onWriteBack) return;
25279
25279
  const n = e.getSourceBytes?.();
25280
25280
  if (n) try {
25281
- const { PptxHandler: o } = await Promise.resolve().then(() => require("./dist-CKUdBsHT.cjs")).then((e) => e.dist_exports), a = new o();
25281
+ const { PptxHandler: o } = await Promise.resolve().then(() => require("./dist-BDDSrdd_.cjs")).then((e) => e.dist_exports), a = new o();
25282
25282
  await a.load(n.buffer);
25283
25283
  const r = iT(vr(S), e.getTemplateElements?.() ?? {}), l = await a.save(r);
25284
25284
  t.onWriteBack(l);
@@ -27309,7 +27309,7 @@ var QT = ["tabindex"], eF = {
27309
27309
  canvasSize: f,
27310
27310
  rasterizeSlide: yt
27311
27311
  }), kt = function(e) {
27312
- const { slideCount: n, rasterizeSlide: o } = e, a = e.loadGifEncoder ?? (async () => (await Promise.resolve().then(() => require("./gif-encoder-CYNnxL8D.cjs"))).encodeGif), r = e.createRecorder ?? jT, l = e.createCanvas ?? (() => document.createElement("canvas")), i = e.downloadBlob ?? Dl, s = (0, t.ref)(!1), c = (0, t.ref)(0);
27312
+ const { slideCount: n, rasterizeSlide: o } = e, a = e.loadGifEncoder ?? (async () => (await Promise.resolve().then(() => require("./gif-encoder-DKnC3ZPU.cjs"))).encodeGif), r = e.createRecorder ?? jT, l = e.createCanvas ?? (() => document.createElement("canvas")), i = e.downloadBlob ?? Dl, s = (0, t.ref)(!1), c = (0, t.ref)(0);
27313
27313
  return {
27314
27314
  exporting: s,
27315
27315
  progress: c,
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, B as n, C as o, D as a, E as r, F as l, G as i, H as s, I as u, J as c, K as d, L as p, M as m, O as h, P as v, Q as f, R as g, S as x, T as b, U as y, W as k, X as S, Y as $, _ as M, _t as T, a as F, at as I, b as P, c as A, ct as D, d as E, dt as B, et as L, f as _, ft as z, g as R, gt as O, i as W, it as j, j as H, k as Y, l as X, lt as G, m as Z, mt as V, n as q, nt as K, o as J, ot as Q, p as ee, pt as te, q as ne, r as oe, rt as ae, st as le, t as ie, tt as se, u as ue, ut as ce, v as de, w as pe, x as me, y as he, z as ve } from "./dist-CvCXjCMh.js";
1
+ import { $ as e, A as t, B as n, C as o, D as a, E as r, F as l, G as i, H as s, I as u, J as c, K as d, L as p, M as m, O as h, P as v, Q as f, R as g, S as x, T as b, U as y, W as k, X as S, Y as $, _ as M, _t as T, a as F, at as I, b as P, c as A, ct as D, d as E, dt as B, et as L, f as _, ft as z, g as R, gt as O, i as W, it as j, j as H, k as Y, l as X, lt as G, m as Z, mt as V, n as q, nt as K, o as J, ot as Q, p as ee, pt as te, q as ne, r as oe, rt as ae, st as le, t as ie, tt as se, u as ue, ut as ce, v as de, w as pe, x as me, y as he, z as ve } from "./dist-DSB3vjJj.js";
2
2
  import { Fragment as fe, Teleport as ge, computed as xe, createBlock as be, createCommentVNode as ye, createElementBlock as we, createElementVNode as ke, createTextVNode as Se, createVNode as $e, defineComponent as Ce, guardReactiveProps as Me, inject as Te, mergeModels as Fe, mergeProps as Ie, nextTick as Pe, normalizeClass as Ae, normalizeProps as De, normalizeStyle as Ee, onBeforeUnmount as Be, onMounted as Le, onScopeDispose as _e, openBlock as ze, provide as Re, readonly as Oe, ref as Ue, renderList as Ne, renderSlot as We, resolveComponent as je, resolveDynamicComponent as He, shallowRef as Ye, toDisplayString as Xe, toRaw as Ge, toRef as Ze, toValue as Ve, unref as qe, useModel as Ke, vModelCheckbox as Je, vModelSelect as Qe, vModelText as et, vShow as tt, watch as nt, withCtx as ot, withDirectives as at, withKeys as rt, withModifiers as lt } from "vue";
3
3
  import it from "dompurify";
4
4
  import { AArrowDown as st, AArrowUp as ut, AlignCenter as ct, AlignHorizontalSpaceAround as dt, AlignJustify as pt, AlignLeft as mt, AlignRight as ht, AlignVerticalSpaceAround as vt, Bold as ft, Captions as gt, Cast as xt, Check as bt, ChevronDown as yt, ChevronUp as wt, Circle as kt, ClipboardList as St, ClipboardPaste as $t, Clock as Ct, Columns2 as Mt, Copy as Tt, Database as Ft, Diamond as It, Download as Pt, Ellipsis as At, EyeOff as Dt, File as Et, FileText as Bt, FolderOpen as Lt, GitCompare as _t, Highlighter as zt, Image as Rt, IndentDecrease as Ot, IndentIncrease as Ut, Info as Nt, Italic as Wt, Layers as jt, LayoutGrid as Ht, Link as Yt, List as Xt, ListOrdered as Gt, Lock as Zt, LockOpen as Vt, Menu as qt, MessageSquare as Kt, Minus as Jt, Monitor as Qt, MoveRight as en, Package as tn, PaintBucket as nn, Paintbrush as on, Palette as an, PanelLeft as rn, PanelRight as ln, Pencil as sn, Pipette as un, Play as cn, Plus as dn, Presentation as pn, Printer as mn, Radio as hn, Redo as vn, RemoveFormatting as fn, Scissors as gn, Search as xn, Settings as bn, Shapes as yn, Share2 as wn, ShieldAlert as kn, Sparkles as Sn, SpellCheck as $n, Spline as Cn, Square as Mn, StickyNote as Tn, Strikethrough as Fn, TextCursorInput as In, Trash2 as Pn, Triangle as An, Type as Dn, Underline as En, Undo as Bn, Video as Ln, Wand as _n, X as zn } from "lucide-vue-next";
@@ -25278,7 +25278,7 @@ function eL(e) {
25278
25278
  if (b = null, !S || !t.onWriteBack) return;
25279
25279
  const n = e.getSourceBytes?.();
25280
25280
  if (n) try {
25281
- const { PptxHandler: o } = await import("./dist-CvCXjCMh.js").then((e) => e.N), a = new o();
25281
+ const { PptxHandler: o } = await import("./dist-DSB3vjJj.js").then((e) => e.N), a = new o();
25282
25282
  await a.load(n.buffer);
25283
25283
  const r = HB(Vs(S), e.getTemplateElements?.() ?? {}), l = await a.save(r);
25284
25284
  t.onWriteBack(l);
@@ -27308,7 +27308,7 @@ var _L = ["tabindex"], zL = {
27308
27308
  canvasSize: f,
27309
27309
  rasterizeSlide: on
27310
27310
  }), rn = function(e) {
27311
- const { slideCount: t, rasterizeSlide: n } = e, o = e.loadGifEncoder ?? (async () => (await import("./gif-encoder-NTISOGYu.js")).encodeGif), a = e.createRecorder ?? ML, r = e.createCanvas ?? (() => document.createElement("canvas")), l = e.downloadBlob ?? pc, i = Ue(!1), s = Ue(0);
27311
+ const { slideCount: t, rasterizeSlide: n } = e, o = e.loadGifEncoder ?? (async () => (await import("./gif-encoder-B918Zcqn.js")).encodeGif), a = e.createRecorder ?? ML, r = e.createCanvas ?? (() => document.createElement("canvas")), l = e.downloadBlob ?? pc, i = Ue(!1), s = Ue(0);
27312
27312
  return {
27313
27313
  exporting: i,
27314
27314
  progress: s,
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-vue-viewer",
3
- "version": "1.1.76",
3
+ "version": "1.1.77",
4
4
  "description": "Vue 3 PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- const e = require("./viewer-BgiINZf1.cjs");
2
- exports.encodeGif = e.encodeGif;
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- import { H as r } from "./viewer-t-wza0VB.js";
2
- export { r as encodeGif };
@@ -1,3 +0,0 @@
1
- �$�import { H as r } from "./viewer-t-wza0VB.js";
2
- export { r as encodeGif };
3
- 
Binary file
Binary file
Binary file
Binary file