pptx-vue-viewer 4.62.0 → 4.63.0

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 (80) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/i18n/de.cjs +89 -43
  3. package/dist/i18n/de.cjs.br +0 -0
  4. package/dist/i18n/de.cjs.gz +0 -0
  5. package/dist/i18n/de.mjs +89 -43
  6. package/dist/i18n/de.mjs.br +0 -0
  7. package/dist/i18n/de.mjs.gz +0 -0
  8. package/dist/i18n/es.cjs +89 -43
  9. package/dist/i18n/es.cjs.br +0 -0
  10. package/dist/i18n/es.cjs.gz +0 -0
  11. package/dist/i18n/es.mjs +89 -43
  12. package/dist/i18n/es.mjs.br +0 -0
  13. package/dist/i18n/es.mjs.gz +0 -0
  14. package/dist/i18n/fr.cjs +89 -43
  15. package/dist/i18n/fr.cjs.br +0 -0
  16. package/dist/i18n/fr.cjs.gz +0 -0
  17. package/dist/i18n/fr.mjs +89 -43
  18. package/dist/i18n/fr.mjs.br +0 -0
  19. package/dist/i18n/fr.mjs.gz +0 -0
  20. package/dist/i18n/zh-CN.cjs +95 -49
  21. package/dist/i18n/zh-CN.cjs.br +0 -0
  22. package/dist/i18n/zh-CN.cjs.gz +0 -0
  23. package/dist/i18n/zh-CN.mjs +95 -49
  24. package/dist/i18n/zh-CN.mjs.br +0 -0
  25. package/dist/i18n/zh-CN.mjs.gz +0 -0
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.cjs.br +0 -0
  28. package/dist/index.cjs.gz +0 -0
  29. package/dist/index.d.ts +23 -0
  30. package/dist/index.js +2 -2
  31. package/dist/index.js.br +0 -0
  32. package/dist/index.js.gz +0 -0
  33. package/dist/internals.cjs +1 -1
  34. package/dist/internals.cjs.br +0 -0
  35. package/dist/internals.cjs.gz +0 -0
  36. package/dist/internals.d.ts +12 -0
  37. package/dist/internals.js +1 -1
  38. package/dist/internals.js.br +0 -0
  39. package/dist/internals.js.gz +0 -0
  40. package/dist/pptx-vue-viewer.css +10 -10
  41. package/dist/pptx-vue-viewer.css.br +0 -0
  42. package/dist/pptx-vue-viewer.css.gz +0 -0
  43. package/dist/{useViewerSettingsDialog-CuXHKkLt.js → useViewerSettingsDialog-CCdx0WaP.js} +1916 -1897
  44. package/dist/useViewerSettingsDialog-CCdx0WaP.js.br +0 -0
  45. package/dist/useViewerSettingsDialog-CCdx0WaP.js.gz +0 -0
  46. package/dist/{useViewerSettingsDialog-CWrYP4MA.cjs → useViewerSettingsDialog-Cf0EUQ6A.cjs} +54 -36
  47. package/dist/useViewerSettingsDialog-Cf0EUQ6A.cjs.br +0 -0
  48. package/dist/useViewerSettingsDialog-Cf0EUQ6A.cjs.gz +0 -0
  49. package/dist/viewer/index.cjs +1 -1
  50. package/dist/viewer/index.cjs.br +0 -0
  51. package/dist/viewer/index.cjs.gz +0 -0
  52. package/dist/viewer/index.d.ts +23 -0
  53. package/dist/viewer/index.js +2 -2
  54. package/dist/viewer/index.js.br +0 -0
  55. package/dist/viewer/index.js.gz +0 -0
  56. package/dist/{viewer-DG4tdMXb.cjs → viewer-CEr7y9hX.cjs} +4042 -3972
  57. package/dist/viewer-CEr7y9hX.cjs.br +0 -0
  58. package/dist/viewer-CEr7y9hX.cjs.gz +0 -0
  59. package/dist/{viewer-Cg8TdjPB.js → viewer-vQxiJYTJ.js} +7425 -7355
  60. package/dist/viewer-vQxiJYTJ.js.br +0 -0
  61. package/dist/viewer-vQxiJYTJ.js.gz +0 -0
  62. package/dist/{y-webrtc-BhRi5OeK.js → y-webrtc-B4BFox9k.js} +1 -1
  63. package/dist/y-webrtc-B4BFox9k.js.br +0 -0
  64. package/dist/y-webrtc-B4BFox9k.js.gz +0 -0
  65. package/dist/{y-webrtc-EHVUQ-DG.cjs → y-webrtc-Er9ajboC.cjs} +1 -1
  66. package/dist/y-webrtc-Er9ajboC.cjs.br +0 -0
  67. package/dist/y-webrtc-Er9ajboC.cjs.gz +0 -0
  68. package/package.json +3 -3
  69. package/dist/useViewerSettingsDialog-CWrYP4MA.cjs.br +0 -0
  70. package/dist/useViewerSettingsDialog-CWrYP4MA.cjs.gz +0 -0
  71. package/dist/useViewerSettingsDialog-CuXHKkLt.js.br +0 -0
  72. package/dist/useViewerSettingsDialog-CuXHKkLt.js.gz +0 -0
  73. package/dist/viewer-Cg8TdjPB.js.br +0 -0
  74. package/dist/viewer-Cg8TdjPB.js.gz +0 -0
  75. package/dist/viewer-DG4tdMXb.cjs.br +0 -0
  76. package/dist/viewer-DG4tdMXb.cjs.gz +0 -0
  77. package/dist/y-webrtc-BhRi5OeK.js.br +0 -0
  78. package/dist/y-webrtc-BhRi5OeK.js.gz +0 -0
  79. package/dist/y-webrtc-EHVUQ-DG.cjs.br +0 -0
  80. package/dist/y-webrtc-EHVUQ-DG.cjs.gz +0 -0
@@ -1643,7 +1643,10 @@ var zt = { style: {
1643
1643
  const l = t.run.hyperlink?.href;
1644
1644
  if (!l) return;
1645
1645
  const a = o?.value ?? d.DEFAULT_VIEWER_OPTIONS;
1646
- (0, d.shouldConfirmExternalHyperlink)(a, l) && !window.confirm(`${n("pptx.options.trust.confirmHyperlinks")}\n\n${l}`) && e.preventDefault();
1646
+ (0, d.shouldConfirmExternalHyperlink)(a, l) && (e.preventDefault(), (0, d.openExternalHyperlinkConfirmed)(a, l, {
1647
+ t: n,
1648
+ host: e.currentTarget
1649
+ }, t.run.hyperlink?.target ?? "_blank"));
1647
1650
  }
1648
1651
  return (t, n) => e.run.equation ? ((0, p.openBlock)(), (0, p.createElementBlock)("span", {
1649
1652
  key: 0,
@@ -1678,7 +1681,7 @@ var zt = { style: {
1678
1681
  style: (0, p.normalizeStyle)(e.run.style)
1679
1682
  }, [(0, p.createVNode)(Ot, { run: e.run }, null, 8, ["run"])], 4));
1680
1683
  }
1681
- }), [["__scopeId", "data-v-40bc67e4"]]), Vt = {
1684
+ }), [["__scopeId", "data-v-f04237b3"]]), Vt = {
1682
1685
  key: 0,
1683
1686
  style: {
1684
1687
  position: "relative",
@@ -1948,6 +1951,7 @@ var zt = { style: {
1948
1951
  s.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("svg", {
1949
1952
  key: 4,
1950
1953
  class: "pptx-vue-gradient-outline",
1954
+ "data-pptx-outline": "",
1951
1955
  "aria-hidden": "true",
1952
1956
  viewBox: c.value,
1953
1957
  preserveAspectRatio: "none",
@@ -4295,6 +4299,7 @@ var ia = [
4295
4299
  element: {},
4296
4300
  mediaDataUrls: {},
4297
4301
  zIndex: {},
4302
+ edgeBleed: {},
4298
4303
  interactive: { type: Boolean },
4299
4304
  marked: { type: Boolean },
4300
4305
  templateEditing: { type: Boolean },
@@ -4304,11 +4309,14 @@ var ia = [
4304
4309
  },
4305
4310
  setup(e) {
4306
4311
  const t = e, n = N(), o = (0, p.computed)(() => n.value.smartArt3D), l = E(), a = (0, p.inject)(C, void 0), r = (0, p.inject)(M, () => (0, p.shallowRef)(/* @__PURE__ */ new Map()), !0), i = (0, p.computed)(() => r.value.get(t.element.id)), s = (0, p.computed)(() => (0, d.getBackgroundAnimationState)(t.element, r.value)), u = (0, p.computed)(() => (0, d.buildTextStyleOverrideCss)(t.element.id, i.value?.textStyle)), c = (0, p.computed)(() => T(t.element, t.zIndex)), m = (0, p.computed)(() => D(t.element, t.parentGroupFill, (s.value ?? i.value)?.animatesFill, (s.value ?? i.value)?.animatesStroke)), v = (0, p.computed)(() => (0, d.getGroupChildParentFill)(t.element, t.parentGroupFill)), f = (0, p.computed)(() => {
4307
- const e = c.value, t = m.value, n = {
4312
+ const e = c.value, n = m.value, o = {
4308
4313
  ...e,
4309
- ...t
4314
+ ...n
4315
+ };
4316
+ return e.transform && n.transform && (o.transform = `${e.transform} ${n.transform}`), {
4317
+ ...o,
4318
+ ...(0, d.abuttingEdgeBleedStyle)(t.element, t.edgeBleed, o)
4310
4319
  };
4311
- return e.transform && t.transform && (n.transform = `${e.transform} ${t.transform}`), n;
4312
4320
  }), h = (0, p.computed)(() => (0, d.getBackgroundAnimationLayers)(t.element, f.value, s.value)), y = (0, p.computed)(() => {
4313
4321
  const e = z(t.element), n = (0, k.hasTextProperties)(t.element) ? t.element.textStyle : void 0, o = (0, d.buildTextBody3DSceneStyle)(n, {
4314
4322
  width: t.element.width,
@@ -4665,7 +4673,8 @@ var ia = [
4665
4673
  presenting: { type: Boolean },
4666
4674
  preserveElementIds: { type: Boolean },
4667
4675
  transparentBackground: { type: Boolean },
4668
- inlineEditingElementId: {}
4676
+ inlineEditingElementId: {},
4677
+ selectedElementIds: {}
4669
4678
  },
4670
4679
  setup(e) {
4671
4680
  const t = e, { t: n } = c.useI18n(), o = (0, p.ref)(null);
@@ -4676,10 +4685,10 @@ var ia = [
4676
4685
  const l = (0, p.computed)(() => [...(0, d.visibleTemplateElements)(t.slide, t.templateElements ?? [])]);
4677
4686
  var a = () => [...l.value, ...t.slide?.elements ?? []];
4678
4687
  (0, p.provide)(C, a);
4679
- const r = (0, p.computed)(() => l.value.length), i = (0, p.computed)(() => [...l.value, ...t.slide?.elements ?? []]), s = (0, p.computed)(() => (t.interactive ?? !1) && (t.editTemplateMode ?? !1));
4688
+ const r = (0, p.computed)(() => t.preserveElementIds ? /* @__PURE__ */ new Map() : (0, d.resolveStageEdgeBleeds)(l.value, t.slide, t.selectedElementIds?.length ? new Set(t.selectedElementIds) : void 0)), i = (0, p.computed)(() => l.value.length), s = (0, p.computed)(() => [...l.value, ...t.slide?.elements ?? []]), u = (0, p.computed)(() => (t.interactive ?? !1) && (t.editTemplateMode ?? !1));
4680
4689
  (0, p.watchPostEffect)(() => {
4681
- const e = o.value, a = i.value;
4682
- e && (t.interactive || t.presenting ? ((0, d.applyRenderedElementAccessibility)(e, a, { presenting: !0 === t.presenting }), (0, d.applyElementActionAffordances)(e, [...s.value ? l.value : [], ...t.slide?.elements ?? []], {
4690
+ const e = o.value, a = s.value;
4691
+ e && (t.interactive || t.presenting ? ((0, d.applyRenderedElementAccessibility)(e, a, { presenting: !0 === t.presenting }), (0, d.applyElementActionAffordances)(e, [...u.value ? l.value : [], ...t.slide?.elements ?? []], {
4683
4692
  canInteract: !0 === t.interactive,
4684
4693
  presenting: !0 === t.presenting,
4685
4694
  labels: (0, d.actionAffordanceLabels)((e) => n(e))
@@ -4689,7 +4698,7 @@ var ia = [
4689
4698
  t.length;
4690
4699
  }(e));
4691
4700
  });
4692
- const u = (0, p.computed)(() => ({
4701
+ const m = (0, p.computed)(() => ({
4693
4702
  width: `${t.canvasSize.width}px`,
4694
4703
  height: `${t.canvasSize.height}px`,
4695
4704
  transform: `scale(${t.scale})`,
@@ -4712,7 +4721,7 @@ var ia = [
4712
4721
  ref: o,
4713
4722
  class: "pptx-vue-stage",
4714
4723
  "data-pptx-scope": "",
4715
- style: (0, p.normalizeStyle)(u.value),
4724
+ style: (0, p.normalizeStyle)(m.value),
4716
4725
  role: e.presenting ? "region" : void 0,
4717
4726
  "aria-roledescription": e.presenting ? "slide" : void 0,
4718
4727
  "aria-label": e.presenting ? (0, p.unref)(n)("pptx.canvas.slide") : void 0,
@@ -4723,7 +4732,8 @@ var ia = [
4723
4732
  element: t,
4724
4733
  "media-data-urls": e.mediaDataUrls,
4725
4734
  "z-index": n,
4726
- interactive: s.value,
4735
+ "edge-bleed": r.value.get(t.id),
4736
+ interactive: u.value,
4727
4737
  marked: e.interactive ?? !1,
4728
4738
  "template-editing": e.editTemplateMode ?? !1,
4729
4739
  "inline-editing-element-id": e.inlineEditingElementId
@@ -4731,6 +4741,7 @@ var ia = [
4731
4741
  "element",
4732
4742
  "media-data-urls",
4733
4743
  "z-index",
4744
+ "edge-bleed",
4734
4745
  "interactive",
4735
4746
  "marked",
4736
4747
  "template-editing",
@@ -4740,7 +4751,8 @@ var ia = [
4740
4751
  key: t.id,
4741
4752
  element: t,
4742
4753
  "media-data-urls": e.mediaDataUrls,
4743
- "z-index": n + r.value,
4754
+ "z-index": n + i.value,
4755
+ "edge-bleed": r.value.get(t.id),
4744
4756
  interactive: e.interactive ?? !1,
4745
4757
  presenting: e.presenting ?? !1,
4746
4758
  "inline-editing-element-id": e.inlineEditingElementId
@@ -4748,6 +4760,7 @@ var ia = [
4748
4760
  "element",
4749
4761
  "media-data-urls",
4750
4762
  "z-index",
4763
+ "edge-bleed",
4751
4764
  "interactive",
4752
4765
  "presenting",
4753
4766
  "inline-editing-element-id"
@@ -5256,33 +5269,37 @@ function Xa(e) {
5256
5269
  }
5257
5270
  function Za(e) {
5258
5271
  const t = (0, p.computed)(() => {
5259
- const t = e.transition();
5260
- return "morph" === t?.type ? (0, d.buildMorphTransitionPlan)(e.outgoingSlide(), e.incomingSlide(), e.durationMs(), (0, d.morphOptionToMode)(t.morphOption)) : void 0;
5272
+ const t = e.transition(), n = e.slideSize?.();
5273
+ return "morph" === t?.type ? (0, d.buildMorphTransitionPlan)(e.outgoingSlide(), e.incomingSlide(), e.durationMs(), (0, d.morphOptionToMode)(t.morphOption), n ? { slideSize: n } : {}) : void 0;
5261
5274
  }), n = (0, p.computed)(() => {
5262
5275
  const n = t.value, o = e.outgoingSlide(), l = e.incomingSlide();
5263
- return n && o ? n.overlayLayers.flatMap((e, t) => {
5276
+ if (!n || !o) return [];
5277
+ const a = (0, d.morphOverlayStackSlots)(n);
5278
+ return n.overlayLayers.flatMap((e, t) => {
5264
5279
  const n = "outgoing" === e.side ? o : l;
5265
5280
  return n ? [{
5266
5281
  key: `${e.side}-${e.elements[0]?.id ?? t}`,
5267
5282
  side: e.side,
5268
- style: { zIndex: Ja + t },
5283
+ style: { zIndex: Ja + (a.layers[t] ?? t) },
5269
5284
  slide: {
5270
5285
  ...n,
5271
5286
  elements: [...e.elements]
5272
5287
  }
5273
5288
  }] : [];
5274
- }) : [];
5289
+ });
5275
5290
  }), o = { mixBlendMode: d.MORPH_CROSSFADE_HALF_BLEND_MODE };
5276
5291
  return {
5277
5292
  morphPlan: t,
5278
5293
  morphOverlayLayers: n,
5279
5294
  morphCrossfadeGroups: (0, p.computed)(() => {
5280
5295
  const n = t.value, l = e.outgoingSlide(), a = e.incomingSlide();
5281
- return n && l && a ? n.crossfadeGroups.map((e, t) => ({
5296
+ if (!n || !l || !a) return [];
5297
+ const r = (0, d.morphOverlayStackSlots)(n);
5298
+ return n.crossfadeGroups.map((e, t) => ({
5282
5299
  key: e.incoming.id,
5283
5300
  style: {
5284
5301
  ...d.MORPH_CROSSFADE_GROUP_STYLE,
5285
- zIndex: Ja + n.overlayLayers.length + t
5302
+ zIndex: Ja + (r.groups[t] ?? n.overlayLayers.length + t)
5286
5303
  },
5287
5304
  outgoingStyle: {
5288
5305
  ...o,
@@ -5300,7 +5317,7 @@ function Za(e) {
5300
5317
  ...a,
5301
5318
  elements: [e.incoming]
5302
5319
  }
5303
- })) : [];
5320
+ }));
5304
5321
  }),
5305
5322
  morphCss: (0, p.computed)(() => {
5306
5323
  const e = t.value;
@@ -5447,7 +5464,8 @@ var Ja = 2, Qa = ["data-pptx-transition-fragment"], er = b((0, p.defineComponent
5447
5464
  transition: () => n.transition,
5448
5465
  outgoingSlide: () => n.outgoingSlide,
5449
5466
  incomingSlide: () => n.incomingSlide,
5450
- durationMs: () => a.value
5467
+ durationMs: () => a.value,
5468
+ slideSize: () => n.canvasSize
5451
5469
  }), m = (0, p.computed)(() => l.value.outgoingOnTop ? 2 : 1), v = (0, p.computed)(() => l.value.outgoingOnTop ? 1 : 2), f = (0, p.computed)(() => ({
5452
5470
  zIndex: m.value,
5453
5471
  animation: "none" !== l.value.outgoing ? l.value.outgoing : void 0
@@ -5559,7 +5577,7 @@ var Ja = 2, Qa = ["data-pptx-transition-fragment"], er = b((0, p.defineComponent
5559
5577
  ])
5560
5578
  ]));
5561
5579
  }
5562
- }), [["__scopeId", "data-v-e671b093"]]);
5580
+ }), [["__scopeId", "data-v-4c381057"]]);
5563
5581
  function sr(e) {
5564
5582
  const t = Math.max(0, Math.floor(e / 1e3)), n = Math.floor(t / 60), o = t % 60;
5565
5583
  return `${String(n)}:${String(o).padStart(2, "0")}`;
@@ -5755,7 +5773,7 @@ function yr(e) {
5755
5773
  var gr = {
5756
5774
  loadYjs: () => import("yjs"),
5757
5775
  loadWebsocket: () => import("y-websocket"),
5758
- loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-EHVUQ-DG.cjs"))
5776
+ loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-Er9ajboC.cjs"))
5759
5777
  };
5760
5778
  function kr(e, t) {
5761
5779
  const n = (0, p.ref)(!1), o = (0, p.ref)(!1), l = (0, p.ref)(void 0), a = (0, d.createCollaborationLivePatcher)();
@@ -6484,17 +6502,17 @@ function zr(e) {
6484
6502
  s.value = u.createCustomShow(e);
6485
6503
  },
6486
6504
  onDeleteCustomShow: v,
6487
- onRenameActiveCustomShow: function() {
6505
+ onRenameActiveCustomShow: async function() {
6488
6506
  const e = s.value;
6489
6507
  if (null === e) return;
6490
- const n = t.value.find((t) => t.id === e), o = window.prompt(r("pptx.customShows.renamePrompt"), n?.name ?? "")?.trim();
6508
+ const n = t.value.find((t) => t.id === e), o = (await (0, d.promptNameDialog)(r("pptx.customShows.renamePrompt"), n?.name ?? "", { t: r }))?.trim();
6491
6509
  o && u.renameCustomShow(e, o);
6492
6510
  },
6493
- onDeleteActiveCustomShow: function() {
6511
+ onDeleteActiveCustomShow: async function() {
6494
6512
  const e = s.value;
6495
6513
  if (null === e) return;
6496
6514
  const n = t.value.find((t) => t.id === e);
6497
- window.confirm(r("pptx.customShows.deleteConfirm", { name: n?.name ?? "" })) && v(e);
6515
+ await (0, d.confirmDeleteDialog)(r("pptx.customShows.deleteConfirm", { name: n?.name ?? "" }), { t: r }) && v(e);
6498
6516
  },
6499
6517
  onToggleCurrentSlideInActiveShow: function() {
6500
6518
  const e = s.value, t = f.value;
@@ -7617,21 +7635,21 @@ function ci(e) {
7617
7635
  mediaExport: y
7618
7636
  }), k = (0, p.computed)(() => h.exporting.value || y.exporting.value);
7619
7637
  async function x(t, n = "saveAs") {
7620
- const o = e.storage?.();
7638
+ const o = e.storage?.(), l = (0, d.savedPresentationRevision)(e.changeSources?.() ?? []);
7621
7639
  try {
7622
- const l = await r(t);
7640
+ const a = await r(t);
7623
7641
  await (0, d.deliverSavedPresentation)({
7624
7642
  storage: o,
7625
- bytes: l,
7643
+ bytes: a,
7626
7644
  format: t,
7627
7645
  fileName: (0, d.savedPresentationFileName)(e.fileName?.(), t),
7628
7646
  reason: n
7629
- });
7630
- const a = e.getOptions?.();
7631
- if (a) {
7632
- (0, d.playFeedbackSound)(a);
7647
+ }), e.changeSources && (0, d.isCleanAfterSave)(l, e.changeSources()) && e.onSavedClean?.();
7648
+ const i = e.getOptions?.();
7649
+ if (i) {
7650
+ (0, d.playFeedbackSound)(i);
7633
7651
  const n = e.filePath?.();
7634
- "pptx" === t && n && (0, d.shouldDiscardAutosaveOnSuccessfulSave)(a) && (0, d.deleteAutosaveSnapshot)(n, o).catch(() => {});
7652
+ "pptx" === t && n && (0, d.shouldDiscardAutosaveOnSuccessfulSave)(i) && (0, d.deleteAutosaveSnapshot)(n, o).catch(() => {});
7635
7653
  }
7636
7654
  } catch (n) {
7637
7655
  console.error(`[PowerPointViewer] Save as .${t} failed:`, n), e.onSaveError?.(n);
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("../useViewerSettingsDialog-CWrYP4MA.cjs"), t = require("../viewer-DG4tdMXb.cjs");
2
+ const e = require("../useViewerSettingsDialog-Cf0EUQ6A.cjs"), t = require("../viewer-CEr7y9hX.cjs");
3
3
  let r = require("ooxml-ui/pptx");
4
4
  Object.defineProperty(exports, "AUDIENCE_HASH", {
5
5
  enumerable: !0,
Binary file
Binary file
@@ -1,3 +1,4 @@
1
+ import { AbuttingEdgeBleed } from 'ooxml-ui/pptx';
1
2
  import { AccountAuthConfig } from 'ooxml-ui/pptx';
2
3
  import { AnimationApplyGroup } from 'ooxml-ui/pptx';
3
4
  import { AUDIENCE_HASH } from 'ooxml-ui/pptx';
@@ -6,6 +7,7 @@ import { buildInitialGuides } from 'ooxml-ui/pptx';
6
7
  import { CanvasSize } from 'ooxml-ui/pptx';
7
8
  import { ChangeCaseMode } from 'ooxml-ui/pptx';
8
9
  import { clearAudienceContent } from 'ooxml-ui/pptx';
10
+ import { CloudFileProvider } from 'ooxml-ui/pptx';
9
11
  import { CollabLoadOrigin } from 'ooxml-ui/pptx';
10
12
  import { CollaborationConfig } from 'ooxml-ui/pptx';
11
13
  import { CollaborationHistory } from 'ooxml-ui/pptx';
@@ -435,6 +437,8 @@ declare type __VLS_Props = {
435
437
  * static text render while the editor overlay draws it instead.
436
438
  */
437
439
  inlineEditingElementId?: string | null;
440
+ /** The selection, whose boxes {@link SlideStage} keeps exact while it is edited. */
441
+ selectedElementIds?: readonly string[];
438
442
  };
439
443
 
440
444
  /**
@@ -670,6 +674,11 @@ declare type __VLS_Props_2 = {
670
674
  * instead of duplicating it underneath the editor (issue #182).
671
675
  */
672
676
  inlineEditingElementId?: string | null;
677
+ /**
678
+ * The selection: its boxes never grow under a neighbour (see
679
+ * `edgeBleeds`), so a drag never uncovers a grown strip.
680
+ */
681
+ selectedElementIds?: readonly string[];
673
682
  };
674
683
 
675
684
  declare type __VLS_Props_3 = {
@@ -720,6 +729,11 @@ declare type __VLS_Props_4 = {
720
729
  element: PptxElement;
721
730
  mediaDataUrls: Map<string, string>;
722
731
  zIndex: number;
732
+ /**
733
+ * Grow this box under an abutting opaque box above it, closing the
734
+ * anti-aliasing seam between the two (shared `resolveAbuttingEdgeBleeds`).
735
+ */
736
+ edgeBleed?: AbuttingEdgeBleed;
723
737
  /**
724
738
  * When true, emit the `data-pptx-element` test/interaction hook. Only the
725
739
  * primary editable canvas sets this; thumbnails, the sorter, the export
@@ -1480,6 +1494,15 @@ export declare interface PowerPointViewerProps {
1480
1494
  * when it provides them.
1481
1495
  */
1482
1496
  storage?: DocumentStorage;
1497
+ /**
1498
+ * Cloud places for File > Open (OneDrive through `createOneDriveFileProvider` from
1499
+ * `ooxml-core/embedding/onedrive`, or a provider of your own). When non-empty, the Open page
1500
+ * lists "This device" and one place per provider. A file opened from a place loads like a
1501
+ * normal open (read-only when the service does not allow editing, or when `canEdit` /
1502
+ * `readOnly` already forbid it); File > Save, Save As and recovery of that document go to the
1503
+ * file's own storage instead of `storage`, until another document is loaded.
1504
+ */
1505
+ fileProviders?: readonly CloudFileProvider[];
1483
1506
  /** Optional class name applied to the root element. */
1484
1507
  class?: string;
1485
1508
  /**
@@ -1,3 +1,3 @@
1
- import { $n as a, An as s, C as e, Cr as r, Er as n, Fn as o, Kn as t, L as l, M as i, N as d, P as R, Qn as S, Rn as m, S as C, Sr as b, Tr as w, X as c, Z as v, br as x, cr as p, d as u, h as T, j as g, jn as j, kn as y, lr as E, nr as P, pt as f, rt as h, tr as A, vr as I, w as M, wr as O, x as k, xr as D, yr as F } from "../useViewerSettingsDialog-CuXHKkLt.js";
2
- import { C as V, S as Z, _ as q, a as B, b as K, c as L, d as N, f as Q, g as W, h as X, i as $, l as _, m as z, n as G, o as H, p as J, r as U, s as Y, t as aa, u as sa, v as ea, x as ra, y as na } from "../viewer-Cg8TdjPB.js";
1
+ import { $n as a, An as s, C as e, Cr as r, Er as n, Fn as o, Kn as t, L as l, M as i, N as d, P as R, Qn as S, Rn as m, S as C, Sr as b, Tr as w, X as c, Z as v, br as x, cr as p, d as u, h as T, j as g, jn as j, kn as y, lr as E, nr as P, pt as f, rt as h, tr as A, vr as I, w as M, wr as O, x as k, xr as D, yr as F } from "../useViewerSettingsDialog-CCdx0WaP.js";
2
+ import { C as V, S as Z, _ as q, a as B, b as K, c as L, d as N, f as Q, g as W, h as X, i as $, l as _, m as z, n as G, o as H, p as J, r as U, s as Y, t as aa, u as sa, v as ea, x as ra, y as na } from "../viewer-vQxiJYTJ.js";
3
3
  export { N as AUDIENCE_HASH, E as ChartRenderer, ea as CollaborationCursors, V as CollaborationStatusIndicator, p as ConnectorRenderer, b as DEFAULT_CANVAS_HEIGHT, r as DEFAULT_CANVAS_WIDTH, O as DEFAULT_FILL_COLOR, w as DEFAULT_STROKE_COLOR, n as DEFAULT_TEXT_COLOR, s as ElementRenderer, P as EquationRenderer, sa as FollowModeBar, A as InkRenderer, Z as InlineTextEditor, a as Model3DRenderer, S as OleRenderer, L as PowerPointViewer, q as RemoteSelectionOverlay, K as RibbonToolbar, ra as SelectionOverlay, na as SlideCanvas, y as SlideStage, _ as SlidesPane, t as SmartArtRenderer, m as TableRenderer, o as WordArtText, j as ZoomRenderer, i as buildInitialGuides, Q as clearAudienceContent, d as collectImagePaths, R as collectMediaElements, k as exportAllSlidesToSvg, C as exportAllSlidesToSvgBlobs, e as exportSlideToSvg, M as exportSlideToSvgBlob, I as getContainerStyle, F as getImageSrc, G as getResolvedShapeClipPath, U as getResolvedShapeClipPathFor, x as getShapeFillStrokeStyle, D as getTextBlockStyle, J as isAudienceTab, z as loadAudienceContent, aa as overlayInlineTextSnapshot, X as parseAudienceNonce, W as storeAudienceContent, f as useCollaboration, $ as useCollaborativeHistory, B as useCollaborativeState, h as useEditorHistory, v as useEditorOperations, c as useElementDrag, l as useInlineEditing, g as useLoadContent, H as usePresenceTracking, T as useSectionOperations, u as useSlideOperations, Y as useYjsProvider };
Binary file
Binary file