pptx-svelte-viewer 4.1.1 → 4.1.2

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.
@@ -167901,7 +167901,7 @@ function HJt(e) {
167901
167901
  titleKey: "pptx.autosave.recovery.title",
167902
167902
  messageKey: "pptx.autosave.recovery.message",
167903
167903
  messageParams: {
167904
- file: t.key,
167904
+ file: e.displayName?.trim() || t.key,
167905
167905
  size: jJt(t.size)
167906
167906
  },
167907
167907
  ageKey: i.key,
@@ -167913,20 +167913,21 @@ function HJt(e) {
167913
167913
  function Txr(e) {
167914
167914
  return !!e.prompt && !e.presenting;
167915
167915
  }
167916
- async function _xr(e, t = Date.now()) {
167916
+ async function _xr(e, t = Date.now(), r) {
167917
167917
  if (typeof indexedDB > "u") return null;
167918
167918
  try {
167919
- const r = await W6(e), n = HJt({
167920
- record: r ? {
167921
- key: r.key,
167922
- timestamp: r.timestamp,
167923
- size: r.size
167919
+ const n = await W6(e), i = HJt({
167920
+ record: n ? {
167921
+ key: n.key,
167922
+ timestamp: n.timestamp,
167923
+ size: n.size
167924
167924
  } : void 0,
167925
- now: t
167925
+ now: t,
167926
+ displayName: r
167926
167927
  });
167927
- return !n || !r ? null : {
167928
- prompt: n,
167929
- record: r
167928
+ return !i || !n ? null : {
167929
+ prompt: i,
167930
+ record: n
167930
167931
  };
167931
167932
  } catch {
167932
167933
  return null;
@@ -16921,6 +16921,8 @@ declare class PresenterSession {
16921
16921
  interface AutosaveRecoveryDeps {
16922
16922
  /** IndexedDB record key (host `filePath`). Nothing to look up without one. */
16923
16923
  getFilePath: () => string | undefined;
16924
+ /** Public document name rendered in the recovery message. */
16925
+ getFileName?: () => string | undefined;
16924
16926
  /**
16925
16927
  * Whether recovery snapshots are permitted at all, which is the HOST prop
16926
16928
  * (`autosave !== false`) and not the user's toggle: someone who merely
@@ -16940,6 +16942,8 @@ declare class AutosaveRecoveryController {
16940
16942
  #private;
16941
16943
  /** The prompt to render, or null when there is nothing to recover. */
16942
16944
  prompt: AutosaveRecoveryPrompt | null;
16945
+ /** The destructive delete is still pending. */
16946
+ discarding: boolean;
16943
16947
  constructor(deps: AutosaveRecoveryDeps);
16944
16948
  /** Take the snapshot and load its bytes in place without deleting it. */
16945
16949
  restore(): Promise<void>;
@@ -1,5 +1,5 @@
1
- import { Hh as l, Vh as S } from "../transition-overlay-YEP1YlGR.js";
2
- import { A as e, F as a, M as o, N as r, P as s, c as n, d, f as b, i as m, j as t, l as p, m as c, n as g, o as x, p as w, r as C, s as P, t as T, u as V } from "../export-Cbdv2K93.js";
1
+ import { Hh as l, Vh as S } from "../transition-overlay-CPN-2tva.js";
2
+ import { A as e, F as a, M as o, N as r, P as s, c as n, d, f as b, i as m, j as t, l as p, m as c, n as g, o as x, p as w, r as C, s as P, t as T, u as V } from "../export-DI4TCh5m.js";
3
3
  var $ = a, y = s, A = o, f = t, u = e, R = r;
4
4
  export {
5
5
  f as CollaborationCursors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Svelte 5 PowerPoint viewer and editor component: render, edit, present, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "office",