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.
- package/CHANGELOG.md +6 -0
- package/dist/{AiChatPanel-ClpVtftV.js → AiChatPanel-MJd0wjii.js} +2 -2
- package/dist/{export-Cbdv2K93.js → export-DI4TCh5m.js} +299 -273
- package/dist/index.js +2 -2
- package/dist/internals.js +1 -1
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{transition-overlay-YEP1YlGR.js → transition-overlay-CPN-2tva.js} +12 -11
- package/dist/viewer/index.d.ts +4 -0
- package/dist/viewer/index.js +2 -2
- package/package.json +1 -1
|
@@ -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
|
|
167920
|
-
record:
|
|
167921
|
-
key:
|
|
167922
|
-
timestamp:
|
|
167923
|
-
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 !
|
|
167928
|
-
prompt:
|
|
167929
|
-
record:
|
|
167928
|
+
return !i || !n ? null : {
|
|
167929
|
+
prompt: i,
|
|
167930
|
+
record: n
|
|
167930
167931
|
};
|
|
167931
167932
|
} catch {
|
|
167932
167933
|
return null;
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -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>;
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hh as l, Vh as S } from "../transition-overlay-
|
|
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-
|
|
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,
|