pptx-svelte-viewer 2.1.0 → 2.2.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 +2 -0
- package/dist/{AiChatPanel-CkC2py3J.js → AiChatPanel-X0ANm8gM.js} +1 -1
- package/dist/{export-CtfwVh4-.js → export-BCYxT6cD.js} +8652 -8516
- package/dist/i18n.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{translator-Ddi-liGk.js → translator-D2iZRR15.js} +10 -1
- package/dist/viewer/index.d.ts +6 -0
- package/dist/viewer/index.js +6 -2
- package/dist/viewer/state/create-viewer-state-presentation.svelte.d.ts.map +1 -1
- package/dist/viewer/state/viewport-handlers.d.ts +11 -6
- package/dist/viewer/state/viewport-handlers.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/i18n.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, S as t, St as a, _t as o, b as i, bt as r, dt as l, ft as n, gt as S, ht as m, lt as d, mt as p, pt as v, t as g, ut as h, vt as u, w as T, x, xt as f, yt as A } from "./export-
|
|
2
|
-
import { i as b } from "./translator-
|
|
1
|
+
import { C as e, S as t, St as a, _t as o, b as i, bt as r, dt as l, ft as n, gt as S, ht as m, lt as d, mt as p, pt as v, t as g, ut as h, vt as u, w as T, x, xt as f, yt as A } from "./export-BCYxT6cD.js";
|
|
2
|
+
import { i as b } from "./translator-D2iZRR15.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
export {
|
|
5
5
|
g as PowerPointViewer,
|
|
@@ -341,6 +341,7 @@ var r = {
|
|
|
341
341
|
"pptx.presentation.highlighter": "Highlighter",
|
|
342
342
|
"pptx.presentation.eraser": "Eraser",
|
|
343
343
|
"pptx.presentation.laserPointer": "Laser Pointer",
|
|
344
|
+
"pptx.presentation.pointerTools": "Pointer Options",
|
|
344
345
|
"pptx.selectionPane.title": "Selection Pane",
|
|
345
346
|
"pptx.selectionPane.empty": "No elements",
|
|
346
347
|
"pptx.selectionPane.show": "Show",
|
|
@@ -1017,9 +1018,17 @@ var r = {
|
|
|
1017
1018
|
"pptx.presenter.nextSlide": "Next Slide",
|
|
1018
1019
|
"pptx.presenter.noSlides": "No slides",
|
|
1019
1020
|
"pptx.presenter.openAudienceWindow": "Open Audience Window",
|
|
1020
|
-
"pptx.presenter.presenterView": "Presenter View
|
|
1021
|
+
"pptx.presenter.presenterView": "Presenter View",
|
|
1021
1022
|
"pptx.presenter.prev": "Prev",
|
|
1022
1023
|
"pptx.presenter.previousSlide": "Previous Slide",
|
|
1024
|
+
"pptx.presenter.seeAllSlides": "See All Slides",
|
|
1025
|
+
"pptx.presenter.screen": "Screen",
|
|
1026
|
+
"pptx.presenter.blackScreen": "Black Screen",
|
|
1027
|
+
"pptx.presenter.whiteScreen": "White Screen",
|
|
1028
|
+
"pptx.presenter.pointerArrow": "Arrow",
|
|
1029
|
+
"pptx.presenter.pointerPen": "Pen",
|
|
1030
|
+
"pptx.presenter.pointerHighlighter": "Highlighter",
|
|
1031
|
+
"pptx.presenter.eraseAllInk": "Erase All Ink on Slide",
|
|
1023
1032
|
"pptx.presenter.slideLabel": "Slide {{current}} of {{total}}",
|
|
1024
1033
|
"pptx.presenter.timerProgress": "Timer Progress",
|
|
1025
1034
|
"pptx.print.allSlides": "All Slides",
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -8751,6 +8751,12 @@ interface PresentationSnapshot {
|
|
|
8751
8751
|
zoom?: PresentationZoomState;
|
|
8752
8752
|
pointer?: PresentationPointerState;
|
|
8753
8753
|
inkStrokes?: PresentationInkStroke[];
|
|
8754
|
+
/**
|
|
8755
|
+
* Whether ink markup is drawn (PowerPoint's Ctrl+M). Undefined means visible,
|
|
8756
|
+
* so existing snapshots keep showing their ink. Hiding never discards the
|
|
8757
|
+
* strokes, which stay in `inkStrokes` and can be kept on exit.
|
|
8758
|
+
*/
|
|
8759
|
+
inkMarkupVisible?: boolean;
|
|
8754
8760
|
caption?: string;
|
|
8755
8761
|
subtitlesVisible?: boolean;
|
|
8756
8762
|
}
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as M, B as T, C as ge, D as P, E as F, H as R, I as U, L as H, M as O, O as W, R as D, S as ce, T as I, U as V, W as N, _, a as de, at as z, b as ue, c as B, d as Se, f as ve, g as k, h as K, it as L, j as $, k as q, l as pe, m as G, o as Z, ot as j, p as fe, s as J, st as Q, t as he, u as X, v as Y, w as me, x as be, y as ee, z as te } from "../export-
|
|
1
|
+
import { A as M, B as T, C as ge, D as P, E as F, H as R, I as U, L as H, M as O, O as W, R as D, S as ce, T as I, U as V, W as N, _, a as de, at as z, b as ue, c as B, d as Se, f as ve, g as k, h as K, it as L, j as $, k as q, l as pe, m as G, o as Z, ot as j, p as fe, s as J, st as Q, t as he, u as X, v as Y, w as me, x as be, y as ee, z as te } from "../export-BCYxT6cD.js";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
3
|
import { onDestroy as re, onMount as ne } from "svelte";
|
|
4
4
|
var Ce = O, Ee = P, Ae = W;
|
|
@@ -200,7 +200,11 @@ function ie(t) {
|
|
|
200
200
|
viewer: r,
|
|
201
201
|
controller: g,
|
|
202
202
|
getEditingActive: t.getEditingActive,
|
|
203
|
-
presentation: c
|
|
203
|
+
presentation: c,
|
|
204
|
+
setPointerTool: (o) => {
|
|
205
|
+
n.annotations.tool = o;
|
|
206
|
+
},
|
|
207
|
+
eraseAnnotations: () => n.annotations.clear()
|
|
204
208
|
});
|
|
205
209
|
return {
|
|
206
210
|
presentation: c,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-viewer-state-presentation.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/state/create-viewer-state-presentation.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAA0B,MAAM,iBAAiB,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACvC,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,cAAc,GAAG,SAAS,CAAC;IAC/C,SAAS,IAAI,cAAc,GAAG,SAAS,CAAC;CACxC;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC5D,YAAY,EAAE,sBAAsB,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,uBAAuB,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"create-viewer-state-presentation.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/state/create-viewer-state-presentation.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAA0B,MAAM,iBAAiB,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACvC,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,IAAI,OAAO,CAAC;IAC5B,gBAAgB,IAAI,cAAc,GAAG,SAAS,CAAC;IAC/C,SAAS,IAAI,cAAc,GAAG,SAAS,CAAC;CACxC;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC5D,YAAY,EAAE,sBAAsB,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,uBAAuB,GAAG,mBAAmB,CAqDzF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PresentationPointerTool } from 'pptx-viewer-shared';
|
|
1
2
|
import { EditorController } from '../editor/editor-controller.svelte';
|
|
2
3
|
import { PresentationController } from '../presentation/presentation-controller.svelte';
|
|
3
4
|
import { ViewerState } from './viewer-state.svelte';
|
|
@@ -8,17 +9,21 @@ export interface ViewportHandlersDeps {
|
|
|
8
9
|
getEditingActive(): boolean;
|
|
9
10
|
/** Presentation-mode playback controller (drives on-click animation steps). */
|
|
10
11
|
presentation: PresentationController;
|
|
12
|
+
/** End the running show (Esc / `-`). */
|
|
13
|
+
onEndShow?(): void;
|
|
14
|
+
/** Select a pointer tool (Ctrl+L / Ctrl+P / Ctrl+A / Ctrl+E). */
|
|
15
|
+
setPointerTool?(tool: PresentationPointerTool): void;
|
|
16
|
+
/** Erase the show's ink annotations (E). */
|
|
17
|
+
eraseAnnotations?(): void;
|
|
18
|
+
/** Show or hide ink markup (Ctrl+M). */
|
|
19
|
+
toggleInkMarkup?(): void;
|
|
20
|
+
/** Blank the screen black or white (B / W, or `.` / `,`). */
|
|
21
|
+
toggleBlank?(value: 'black' | 'white'): void;
|
|
11
22
|
}
|
|
12
23
|
export interface ViewportHandlers {
|
|
13
24
|
onFullscreenToggle(): void;
|
|
14
25
|
onFullscreenChange(): void;
|
|
15
26
|
onKeydown(event: KeyboardEvent): void;
|
|
16
27
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Fullscreen toggle + document `fullscreenchange` sync + the root keydown
|
|
19
|
-
* handler (gates slide navigation while a selection or inline edit owns the
|
|
20
|
-
* keyboard, mirroring the vanilla binding). Extracted to keep
|
|
21
|
-
* `PowerPointViewer.svelte` under the file-size budget.
|
|
22
|
-
*/
|
|
23
28
|
export declare function createViewportHandlers(deps: ViewportHandlersDeps): ViewportHandlers;
|
|
24
29
|
//# sourceMappingURL=viewport-handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-handlers.d.ts","sourceRoot":"","sources":["../../../src/viewer/state/viewport-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"viewport-handlers.d.ts","sourceRoot":"","sources":["../../../src/viewer/state/viewport-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAGlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAE7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACpC,SAAS,IAAI,cAAc,GAAG,SAAS,CAAC;IACxC,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,IAAI,OAAO,CAAC;IAC5B,+EAA+E;IAC/E,YAAY,EAAE,sBAAsB,CAAC;IACrC,wCAAwC;IACxC,SAAS,CAAC,IAAI,IAAI,CAAC;IACnB,iEAAiE;IACjE,cAAc,CAAC,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACrD,4CAA4C;IAC5C,gBAAgB,CAAC,IAAI,IAAI,CAAC;IAC1B,wCAAwC;IACxC,eAAe,CAAC,IAAI,IAAI,CAAC;IACzB,6DAA6D;IAC7D,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,gBAAgB;IAChC,kBAAkB,IAAI,IAAI,CAAC;IAC3B,kBAAkB,IAAI,IAAI,CAAC;IAC3B,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;CACtC;AAoED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CAkCnF"}
|