pptx-vue-viewer 4.46.0 → 4.47.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.
- package/CHANGELOG.md +22 -0
- package/dist/{AiChatPanel-D_Q17Wtu.cjs → AiChatPanel-DijLC9jc.cjs} +1 -1
- package/dist/AiChatPanel-DijLC9jc.cjs.br +0 -0
- package/dist/AiChatPanel-DijLC9jc.cjs.gz +0 -0
- package/dist/{AiChatPanel-DFuzQuJU.js → AiChatPanel-Jcgn-oeY.js} +2 -2
- package/dist/AiChatPanel-Jcgn-oeY.js.br +0 -0
- package/dist/AiChatPanel-Jcgn-oeY.js.gz +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +2 -2
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.d.ts +23 -1
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +5 -5
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-CJMF2f_L.js → useViewerSettingsDialog-CXbWkqSq.js} +2436 -2415
- package/dist/useViewerSettingsDialog-CXbWkqSq.js.br +0 -0
- package/dist/useViewerSettingsDialog-CXbWkqSq.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-CWoUSatY.cjs → useViewerSettingsDialog-jAbWHh3J.cjs} +58 -37
- package/dist/useViewerSettingsDialog-jAbWHh3J.cjs.br +0 -0
- package/dist/{useViewerSettingsDialog-CWoUSatY.cjs.gz → useViewerSettingsDialog-jAbWHh3J.cjs.gz} +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.d.ts +61 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-Yk-sYgUA.cjs → viewer-7Z6aaf6w.cjs} +3462 -3407
- package/dist/viewer-7Z6aaf6w.cjs.br +0 -0
- package/dist/viewer-7Z6aaf6w.cjs.gz +0 -0
- package/dist/{viewer-eKX1MZ4K.js → viewer-DIlCsUp0.js} +6792 -6737
- package/dist/viewer-DIlCsUp0.js.br +0 -0
- package/dist/viewer-DIlCsUp0.js.gz +0 -0
- package/dist/{y-webrtc-Bswp1Y3G.cjs → y-webrtc-B7OSkf8u.cjs} +1 -1
- package/dist/y-webrtc-B7OSkf8u.cjs.br +0 -0
- package/dist/y-webrtc-B7OSkf8u.cjs.gz +0 -0
- package/dist/{y-webrtc-6M09Lxxx.js → y-webrtc-BHTCM7ok.js} +1 -1
- package/dist/y-webrtc-BHTCM7ok.js.br +0 -0
- package/dist/y-webrtc-BHTCM7ok.js.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-DFuzQuJU.js.br +0 -0
- package/dist/AiChatPanel-DFuzQuJU.js.gz +0 -0
- package/dist/AiChatPanel-D_Q17Wtu.cjs.br +0 -0
- package/dist/AiChatPanel-D_Q17Wtu.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-CJMF2f_L.js.br +0 -0
- package/dist/useViewerSettingsDialog-CJMF2f_L.js.gz +0 -0
- package/dist/useViewerSettingsDialog-CWoUSatY.cjs.br +0 -0
- package/dist/viewer-Yk-sYgUA.cjs.br +0 -0
- package/dist/viewer-Yk-sYgUA.cjs.gz +0 -0
- package/dist/viewer-eKX1MZ4K.js.br +0 -0
- package/dist/viewer-eKX1MZ4K.js.gz +0 -0
- package/dist/y-webrtc-6M09Lxxx.js.br +0 -0
- package/dist/y-webrtc-6M09Lxxx.js.gz +0 -0
- package/dist/y-webrtc-Bswp1Y3G.cjs.br +0 -0
- package/dist/y-webrtc-Bswp1Y3G.cjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -6887,6 +6887,7 @@ var zc = [
|
|
|
6887
6887
|
ref_key: "stageRef",
|
|
6888
6888
|
ref: o,
|
|
6889
6889
|
class: "pptx-vue-stage",
|
|
6890
|
+
"data-pptx-scope": "",
|
|
6890
6891
|
style: (0, d.normalizeStyle)(c.value),
|
|
6891
6892
|
role: e.presenting ? "region" : void 0,
|
|
6892
6893
|
"aria-roledescription": e.presenting ? "slide" : void 0,
|
|
@@ -8496,7 +8497,7 @@ function ad(e) {
|
|
|
8496
8497
|
}
|
|
8497
8498
|
const y = await async function(e, t, n) {
|
|
8498
8499
|
if ("webrtc" === e) {
|
|
8499
|
-
const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-
|
|
8500
|
+
const { WebrtcProvider: e } = await Promise.resolve().then(() => require("./y-webrtc-B7OSkf8u.cjs")), o = new e(t.roomId, n, {
|
|
8500
8501
|
signaling: t.signaling?.length ? t.signaling : void 0,
|
|
8501
8502
|
password: t.authToken || void 0
|
|
8502
8503
|
}), l = (0, u.createDepartureChannel)(t.roomId, o.awareness);
|
|
@@ -9095,14 +9096,14 @@ function vd(e) {
|
|
|
9095
9096
|
const { coreProperties: t, customProperties: n, appProperties: o } = e, l = (0, d.ref)(!1);
|
|
9096
9097
|
return {
|
|
9097
9098
|
propertiesOpen: l,
|
|
9098
|
-
onPropertiesSave: function(
|
|
9099
|
+
onPropertiesSave: function(a) {
|
|
9099
9100
|
t.value = {
|
|
9100
9101
|
...t.value,
|
|
9101
|
-
...
|
|
9102
|
-
}, n.value =
|
|
9102
|
+
...a.core
|
|
9103
|
+
}, n.value = a.custom, a.app && (o.value = {
|
|
9103
9104
|
...o.value,
|
|
9104
|
-
...
|
|
9105
|
-
}), l.value = !1;
|
|
9105
|
+
...a.app
|
|
9106
|
+
}), l.value = !1, e.onCorePropertiesChanged?.(a.core);
|
|
9106
9107
|
}
|
|
9107
9108
|
};
|
|
9108
9109
|
}
|
|
@@ -9123,22 +9124,28 @@ function fd(e, t, n) {
|
|
|
9123
9124
|
const e = Math.max(o.slides.length - 1, 0);
|
|
9124
9125
|
l.value > e && (l.value = e);
|
|
9125
9126
|
}
|
|
9127
|
+
}, c = (0, d.computed)(() => (l.value, o.canUndo)), p = (0, d.computed)(() => (l.value, o.canRedo)), m = (0, d.computed)(() => (l.value, o.undoLabel || void 0)), v = (0, d.computed)(() => (l.value, o.redoLabel || void 0));
|
|
9128
|
+
let f = !1;
|
|
9129
|
+
const g = () => {
|
|
9130
|
+
n?.onChange && !f && (f = !0, (0, d.nextTick)(() => {
|
|
9131
|
+
f = !1, n.onChange?.();
|
|
9132
|
+
}));
|
|
9126
9133
|
};
|
|
9127
9134
|
return {
|
|
9128
|
-
canUndo:
|
|
9129
|
-
canRedo:
|
|
9130
|
-
undoLabel:
|
|
9131
|
-
redoLabel:
|
|
9135
|
+
canUndo: c,
|
|
9136
|
+
canRedo: p,
|
|
9137
|
+
undoLabel: m,
|
|
9138
|
+
redoLabel: v,
|
|
9132
9139
|
pushHistory: (e = "") => {
|
|
9133
|
-
o.record(i(), e), a();
|
|
9140
|
+
o.record(i(), e), a(), g();
|
|
9134
9141
|
},
|
|
9135
9142
|
undo: () => {
|
|
9136
9143
|
const e = o.undo(i());
|
|
9137
|
-
e && (s(e.snapshot), a());
|
|
9144
|
+
e && (s(e.snapshot), a(), g());
|
|
9138
9145
|
},
|
|
9139
9146
|
redo: () => {
|
|
9140
9147
|
const e = o.redo(i());
|
|
9141
|
-
e && (s(e.snapshot), a());
|
|
9148
|
+
e && (s(e.snapshot), a(), g());
|
|
9142
9149
|
},
|
|
9143
9150
|
clearHistory: () => {
|
|
9144
9151
|
o.clear(), a();
|
|
@@ -10104,7 +10111,28 @@ function $d(e) {
|
|
|
10104
10111
|
}), y = Dd({
|
|
10105
10112
|
exporter: g,
|
|
10106
10113
|
mediaExport: h
|
|
10107
|
-
});
|
|
10114
|
+
}), k = (0, d.computed)(() => g.exporting.value || h.exporting.value);
|
|
10115
|
+
async function x(t, n = "saveAs") {
|
|
10116
|
+
const o = e.storage?.();
|
|
10117
|
+
try {
|
|
10118
|
+
const l = await r(t);
|
|
10119
|
+
await (0, u.deliverSavedPresentation)({
|
|
10120
|
+
storage: o,
|
|
10121
|
+
bytes: l,
|
|
10122
|
+
format: t,
|
|
10123
|
+
fileName: (0, u.savedPresentationFileName)(e.fileName?.(), t),
|
|
10124
|
+
reason: n
|
|
10125
|
+
});
|
|
10126
|
+
const a = e.getOptions?.();
|
|
10127
|
+
if (a) {
|
|
10128
|
+
(0, u.playFeedbackSound)(a);
|
|
10129
|
+
const n = e.filePath?.();
|
|
10130
|
+
"pptx" === t && n && (0, u.shouldDiscardAutosaveOnSuccessfulSave)(a) && (0, u.deleteAutosaveSnapshot)(n, o).catch(() => {});
|
|
10131
|
+
}
|
|
10132
|
+
} catch (n) {
|
|
10133
|
+
console.error(`[PowerPointViewer] Save as .${t} failed:`, n), e.onSaveError?.(n);
|
|
10134
|
+
}
|
|
10135
|
+
}
|
|
10108
10136
|
return {
|
|
10109
10137
|
exportStageRef: s,
|
|
10110
10138
|
exportSlide: p,
|
|
@@ -10114,7 +10142,7 @@ function $d(e) {
|
|
|
10114
10142
|
exporter: g,
|
|
10115
10143
|
mediaExport: h,
|
|
10116
10144
|
exportProgressCtl: y,
|
|
10117
|
-
isExporting:
|
|
10145
|
+
isExporting: k,
|
|
10118
10146
|
onExportPng: function() {
|
|
10119
10147
|
g.exportSlidePng(a.value);
|
|
10120
10148
|
},
|
|
@@ -10134,19 +10162,9 @@ function $d(e) {
|
|
|
10134
10162
|
console.error("[PowerPointViewer] Export as JSON failed:", e);
|
|
10135
10163
|
}
|
|
10136
10164
|
},
|
|
10137
|
-
downloadAs:
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
(0, u.downloadBlob)(o, `presentation.${t}`);
|
|
10141
|
-
const l = e.getOptions?.();
|
|
10142
|
-
if (l) {
|
|
10143
|
-
(0, u.playFeedbackSound)(l);
|
|
10144
|
-
const n = e.filePath?.();
|
|
10145
|
-
"pptx" === t && n && (0, u.shouldDiscardAutosaveOnSuccessfulSave)(l) && (0, u.deleteAutosaveSnapshot)(n).catch(() => {});
|
|
10146
|
-
}
|
|
10147
|
-
} catch (e) {
|
|
10148
|
-
console.error(`[PowerPointViewer] Save as .${t} failed:`, e);
|
|
10149
|
-
}
|
|
10165
|
+
downloadAs: x,
|
|
10166
|
+
save: function() {
|
|
10167
|
+
return x("pptx", "save");
|
|
10150
10168
|
},
|
|
10151
10169
|
onCopySlideAsImage: async function() {
|
|
10152
10170
|
try {
|
|
@@ -11024,16 +11042,16 @@ function xp(e) {
|
|
|
11024
11042
|
}, t.value = r;
|
|
11025
11043
|
}
|
|
11026
11044
|
return {
|
|
11027
|
-
onNotesUpdate: function(
|
|
11028
|
-
const
|
|
11029
|
-
if (!
|
|
11045
|
+
onNotesUpdate: function(o, a) {
|
|
11046
|
+
const r = n.value, i = t.value[r];
|
|
11047
|
+
if (!i) return;
|
|
11030
11048
|
l();
|
|
11031
|
-
const
|
|
11032
|
-
|
|
11033
|
-
...
|
|
11034
|
-
notes:
|
|
11035
|
-
...void 0 ===
|
|
11036
|
-
}, t.value =
|
|
11049
|
+
const s = t.value.slice();
|
|
11050
|
+
s[r] = {
|
|
11051
|
+
...i,
|
|
11052
|
+
notes: o,
|
|
11053
|
+
...void 0 === a ? {} : { notesSegments: a.length > 0 ? a : void 0 }
|
|
11054
|
+
}, t.value = s, e.onNotesChanged?.(o);
|
|
11037
11055
|
},
|
|
11038
11056
|
toggleSlideHidden: function(e) {
|
|
11039
11057
|
const n = t.value[e];
|
|
@@ -11430,6 +11448,9 @@ function Dp(e) {
|
|
|
11430
11448
|
onOpenShareDialog: () => {
|
|
11431
11449
|
e.shareOpen.value = !0;
|
|
11432
11450
|
},
|
|
11451
|
+
onSave: () => {
|
|
11452
|
+
e.save();
|
|
11453
|
+
},
|
|
11433
11454
|
onSaveAsPptx: () => {
|
|
11434
11455
|
e.downloadAs("pptx");
|
|
11435
11456
|
},
|
|
Binary file
|
package/dist/{useViewerSettingsDialog-CWoUSatY.cjs.gz → useViewerSettingsDialog-jAbWHh3J.cjs.gz}
RENAMED
|
Binary file
|
package/dist/viewer/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("../useViewerSettingsDialog-
|
|
2
|
+
const e = require("../useViewerSettingsDialog-jAbWHh3J.cjs"), t = require("../viewer-7Z6aaf6w.cjs");
|
|
3
3
|
let r = require("ooxml-ui/pptx");
|
|
4
4
|
Object.defineProperty(exports, "AUDIENCE_HASH", {
|
|
5
5
|
enumerable: !0,
|
package/dist/viewer/index.cjs.br
CHANGED
|
Binary file
|
package/dist/viewer/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AccountAuthConfig } from 'ooxml-ui/pptx';
|
|
2
2
|
import { AnimationApplyGroup } from 'ooxml-ui/pptx';
|
|
3
3
|
import { AUDIENCE_HASH } from 'ooxml-ui/pptx';
|
|
4
|
+
import { AutosaveRecord } from 'ooxml-ui/pptx';
|
|
4
5
|
import { buildInitialGuides } from 'ooxml-ui/pptx';
|
|
5
6
|
import { CanvasSize } from 'ooxml-ui/pptx';
|
|
6
7
|
import { ChangeCaseMode } from 'ooxml-ui/pptx';
|
|
@@ -21,6 +22,7 @@ import { ConnectionStatus } from 'ooxml-ui/pptx';
|
|
|
21
22
|
import { CSSProperties } from 'vue';
|
|
22
23
|
import { DeckSaveIntent } from 'ooxml-ui/pptx';
|
|
23
24
|
import { DefineComponent } from 'vue';
|
|
25
|
+
import { DocumentStorage } from 'ooxml-ui/pptx';
|
|
24
26
|
import { ElementAnimationState } from 'ooxml-ui/pptx';
|
|
25
27
|
import { ExternalCollaborationAwareness } from 'ooxml-ui/pptx';
|
|
26
28
|
import { ExternalCollaborationSession } from 'ooxml-ui/pptx';
|
|
@@ -98,6 +100,7 @@ import { TemplateElementMap } from 'ooxml-ui/pptx';
|
|
|
98
100
|
import { TextStyle } from 'ooxml-core/pptx';
|
|
99
101
|
import { ThemeCatalogEntry } from 'ooxml-ui/pptx';
|
|
100
102
|
import { ToolbarActionId } from 'ooxml-ui/pptx';
|
|
103
|
+
import { ViewerAutosaveStatus } from 'ooxml-ui/pptx';
|
|
101
104
|
import { ViewerCustomization } from 'ooxml-ui/pptx';
|
|
102
105
|
import { ViewerCustomizationApi } from 'ooxml-ui/pptx';
|
|
103
106
|
import { ViewerFontSource } from 'ooxml-ui/pptx';
|
|
@@ -122,8 +125,10 @@ declare const __VLS_base_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, Compo
|
|
|
122
125
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
123
126
|
|
|
124
127
|
declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointViewerExpose, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
128
|
+
change: () => any;
|
|
125
129
|
error: (message: string) => any;
|
|
126
130
|
load: (detail: ViewerLoadDetail) => any;
|
|
131
|
+
"collaboration-status": (status: ConnectionStatus) => any;
|
|
127
132
|
"dirty-change": (isDirty: boolean) => any;
|
|
128
133
|
"content-change": (content: Uint8Array<ArrayBufferLike>) => any;
|
|
129
134
|
autosave: (content: Uint8Array<ArrayBufferLike>) => any;
|
|
@@ -135,9 +140,17 @@ declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointVie
|
|
|
135
140
|
"start-collaboration": (config: CollaborationConfig) => any;
|
|
136
141
|
"stop-collaboration": () => any;
|
|
137
142
|
"collaboration-change": (state: CollaborationState) => any;
|
|
143
|
+
"autosave-toggle": (enabled: boolean) => any;
|
|
144
|
+
"autosave-status": (status: ViewerAutosaveStatus) => any;
|
|
145
|
+
"autosave-recovery": (record: AutosaveRecord) => any;
|
|
146
|
+
"properties-change": (updates: Partial< PptxCoreProperties>) => any;
|
|
147
|
+
"notes-update": (notes: string) => any;
|
|
148
|
+
"presentation-change": (presenting: boolean) => any;
|
|
138
149
|
}, string, PublicProps, Readonly<PowerPointViewerProps> & Readonly<{
|
|
150
|
+
onChange?: (() => any) | undefined;
|
|
139
151
|
onError?: ((message: string) => any) | undefined;
|
|
140
152
|
onLoad?: ((detail: ViewerLoadDetail) => any) | undefined;
|
|
153
|
+
"onCollaboration-status"?: ((status: ConnectionStatus) => any) | undefined;
|
|
141
154
|
"onDirty-change"?: ((isDirty: boolean) => any) | undefined;
|
|
142
155
|
"onContent-change"?: ((content: Uint8Array<ArrayBufferLike>) => any) | undefined;
|
|
143
156
|
onAutosave?: ((content: Uint8Array<ArrayBufferLike>) => any) | undefined;
|
|
@@ -149,8 +162,16 @@ declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointVie
|
|
|
149
162
|
"onStart-collaboration"?: ((config: CollaborationConfig) => any) | undefined;
|
|
150
163
|
"onStop-collaboration"?: (() => any) | undefined;
|
|
151
164
|
"onCollaboration-change"?: ((state: CollaborationState) => any) | undefined;
|
|
165
|
+
"onAutosave-toggle"?: ((enabled: boolean) => any) | undefined;
|
|
166
|
+
"onAutosave-status"?: ((status: ViewerAutosaveStatus) => any) | undefined;
|
|
167
|
+
"onAutosave-recovery"?: ((record: AutosaveRecord) => any) | undefined;
|
|
168
|
+
"onProperties-change"?: ((updates: Partial< PptxCoreProperties>) => any) | undefined;
|
|
169
|
+
"onNotes-update"?: ((notes: string) => any) | undefined;
|
|
170
|
+
"onPresentation-change"?: ((presenting: boolean) => any) | undefined;
|
|
152
171
|
}>, {
|
|
153
172
|
canEdit: boolean;
|
|
173
|
+
readOnly: boolean;
|
|
174
|
+
autosave: boolean;
|
|
154
175
|
barChart3D: boolean;
|
|
155
176
|
lineChart3D: boolean;
|
|
156
177
|
areaChart3D: boolean;
|
|
@@ -1185,6 +1206,25 @@ export declare interface PowerPointViewerEmits {
|
|
|
1185
1206
|
(e: 'load', detail: ViewerLoadDetail): void;
|
|
1186
1207
|
/** Fired once per distinct load failure, with a human-readable message. */
|
|
1187
1208
|
(e: 'error', message: string): void;
|
|
1209
|
+
/** Fired when the user enables or disables autosave (title bar or File > Options). */
|
|
1210
|
+
(e: 'autosave-toggle', enabled: boolean): void;
|
|
1211
|
+
/** Fired on every autosave lifecycle transition (`idle`, `saving`, `saved`, `error`). */
|
|
1212
|
+
(e: 'autosave-status', status: ViewerAutosaveStatus): void;
|
|
1213
|
+
/**
|
|
1214
|
+
* Fired when a recovery snapshot left by a previous session is found for this deck. The
|
|
1215
|
+
* built-in recovery prompt is shown as well.
|
|
1216
|
+
*/
|
|
1217
|
+
(e: 'autosave-recovery', record: AutosaveRecord): void;
|
|
1218
|
+
/** Fired after any committed document edit (move, resize, text, undo, redo, ...). */
|
|
1219
|
+
(e: 'change'): void;
|
|
1220
|
+
/** Fired with the changed fields when the user edits the document properties. */
|
|
1221
|
+
(e: 'properties-change', updates: Partial<PptxCoreProperties>): void;
|
|
1222
|
+
/** Fired with the new speaker-notes text when the user edits the notes of a slide. */
|
|
1223
|
+
(e: 'notes-update', notes: string): void;
|
|
1224
|
+
/** Fired when presentation (slide show) mode is entered (`true`) or left (`false`). */
|
|
1225
|
+
(e: 'presentation-change', presenting: boolean): void;
|
|
1226
|
+
/** Fired on every collaboration connection-status transition. */
|
|
1227
|
+
(e: 'collaboration-status', status: ConnectionStatus): void;
|
|
1188
1228
|
}
|
|
1189
1229
|
|
|
1190
1230
|
/**
|
|
@@ -1224,6 +1264,12 @@ export declare interface PowerPointViewerProps {
|
|
|
1224
1264
|
fileName?: string;
|
|
1225
1265
|
/** Whether editing actions are enabled. */
|
|
1226
1266
|
canEdit?: boolean;
|
|
1267
|
+
/**
|
|
1268
|
+
* Makes the deck read-only (default `false`). It is the inverse of the edit switch: true wins
|
|
1269
|
+
* over it, false only lifts this restriction, so editing still needs the edit switch and
|
|
1270
|
+
* is never granted over a collaboration `viewer` role or `capabilities.edit`.
|
|
1271
|
+
*/
|
|
1272
|
+
readOnly?: boolean;
|
|
1227
1273
|
/** Fired before following a link; return false to cancel its default action. */
|
|
1228
1274
|
onHyperlinkClick?: HyperlinkClickHandler;
|
|
1229
1275
|
/**
|
|
@@ -1251,6 +1297,14 @@ export declare interface PowerPointViewerProps {
|
|
|
1251
1297
|
* were brought onto one rule.
|
|
1252
1298
|
*/
|
|
1253
1299
|
autosaveIntervalMs?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* Host-owned storage (`DocumentStorage` from `ooxml-core/embedding`). When set,
|
|
1302
|
+
* Save and Save As hand the bytes to `storage.save()` instead of downloading
|
|
1303
|
+
* them, and recovery autosave snapshots go to the storage's recovery methods
|
|
1304
|
+
* (`readRecovery` / `writeRecovery` / `clearRecovery`) instead of IndexedDB
|
|
1305
|
+
* when it provides them.
|
|
1306
|
+
*/
|
|
1307
|
+
storage?: DocumentStorage;
|
|
1254
1308
|
/** Optional class name applied to the root element. */
|
|
1255
1309
|
class?: string;
|
|
1256
1310
|
/**
|
|
@@ -1693,6 +1747,8 @@ export declare interface RibbonProps {
|
|
|
1693
1747
|
/** Serialise the deck to pptx-viewer-json and download it (Export page card). */
|
|
1694
1748
|
onExportJson: () => void;
|
|
1695
1749
|
onOpenShareDialog?: () => void;
|
|
1750
|
+
/** File > Save (backstage Save item): reported to host storage as `save`, not Save As. */
|
|
1751
|
+
onSave?: () => void;
|
|
1696
1752
|
onSaveAsPptx: () => void;
|
|
1697
1753
|
onSaveAsPpsx: () => void;
|
|
1698
1754
|
onSaveAsPptm: () => void;
|
|
@@ -1993,6 +2049,11 @@ declare interface UseEditorHistoryOptions {
|
|
|
1993
2049
|
* Without it the stage pointed past the end of the deck and drew nothing.
|
|
1994
2050
|
*/
|
|
1995
2051
|
activeSlideIndex?: Ref<number>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Called once per tick after an edit is recorded, undone or redone: the host's `change`
|
|
2054
|
+
* event. Deferred a tick so a listener reads the committed deck, not the one before it.
|
|
2055
|
+
*/
|
|
2056
|
+
onChange?: () => void;
|
|
1996
2057
|
}
|
|
1997
2058
|
|
|
1998
2059
|
export declare function useEditorOperations(input: UseEditorOperationsInput): EditorOperations;
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as a, Ar as s, Bn as r, C as e, Fr as o, Hn as n, Ir as t, Kn as l, L as i, Lr as d, M as R, Mr as S, N as m, Nr as b, P as C, Pr as w, S as u, Vn as c, X as p, Yn as v, Z as f, br as g, fr as j, j as x, jr as y, kr as I, lr as M, lt as P, pr as T, rr as A, ur as E, w as O, x as V, yr as h } from "../useViewerSettingsDialog-
|
|
2
|
-
import { C as k, S as B, _ as D, a as F, b as L, c as N, d as Z, f as q, g as H, h as K, i as W, m as X, n as Y, o as $, p as _, r as z, s as G, t as J, u as Q, v as U, w as aa, y as sa } from "../viewer-
|
|
1
|
+
import { $ as a, Ar as s, Bn as r, C as e, Fr as o, Hn as n, Ir as t, Kn as l, L as i, Lr as d, M as R, Mr as S, N as m, Nr as b, P as C, Pr as w, S as u, Vn as c, X as p, Yn as v, Z as f, br as g, fr as j, j as x, jr as y, kr as I, lr as M, lt as P, pr as T, rr as A, ur as E, w as O, x as V, yr as h } from "../useViewerSettingsDialog-CXbWkqSq.js";
|
|
2
|
+
import { C as k, S as B, _ as D, a as F, b as L, c as N, d as Z, f as q, g as H, h as K, i as W, m as X, n as Y, o as $, p as _, r as z, s as G, t as J, u as Q, v as U, w as aa, y as sa } from "../viewer-DIlCsUp0.js";
|
|
3
3
|
export { Z as AUDIENCE_HASH, g as ChartRenderer, U as CollaborationCursors, aa as CollaborationStatusIndicator, h as ConnectorRenderer, b as DEFAULT_CANVAS_HEIGHT, w as DEFAULT_CANVAS_WIDTH, o as DEFAULT_FILL_COLOR, t as DEFAULT_STROKE_COLOR, d as DEFAULT_TEXT_COLOR, c as ElementRenderer, T as EquationRenderer, Q as FollowModeBar, j as InkRenderer, k as InlineTextEditor, E as Model3DRenderer, M as OleRenderer, N as PowerPointViewer, D as RemoteSelectionOverlay, L as RibbonToolbar, B as SelectionOverlay, sa as SlideCanvas, r as SlideStage, A as SmartArtRenderer, v as TableRenderer, l as WordArtText, n as ZoomRenderer, R as buildInitialGuides, q as clearAudienceContent, m as collectImagePaths, C as collectMediaElements, V as exportAllSlidesToSvg, u as exportAllSlidesToSvgBlobs, e as exportSlideToSvg, O as exportSlideToSvgBlob, I as getContainerStyle, s as getImageSrc, Y as getResolvedShapeClipPath, z as getResolvedShapeClipPathFor, y as getShapeFillStrokeStyle, S as getTextBlockStyle, _ as isAudienceTab, X as loadAudienceContent, J as overlayInlineTextSnapshot, K as parseAudienceNonce, H as storeAudienceContent, P as useCollaboration, W as useCollaborativeHistory, F as useCollaborativeState, a as useEditorHistory, f as useEditorOperations, p as useElementDrag, i as useInlineEditing, x as useLoadContent, $ as usePresenceTracking, G as useYjsProvider };
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|