pptx-svelte-viewer 4.72.1 → 4.74.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.
@@ -4052,6 +4052,34 @@ interface CreateSlidesPanePropsOptions {
4052
4052
  */
4053
4053
  declare function createSlidesPaneProps(state: ViewerStateBag, options?: CreateSlidesPanePropsOptions): SlidesPaneProps;
4054
4054
 
4055
+ /**
4056
+ * Props of `SlideThumbnail`, a static, scaled-down drawing of one slide as `SlidesPane` shows
4057
+ * it. It renders from the slide model, so it follows unsaved edits.
4058
+ *
4059
+ * Feed it from the same values as `SlidesPane` (for example `createSlidesPaneProps(state)`):
4060
+ * a slide from `slides`, plus `canvasSize`, `mediaDataUrls`, `fieldContext` and
4061
+ * `tableStyleContext`. Those `slides` already carry their layout and master elements, so leave
4062
+ * `templateElements` empty for them; pass it only for a slide whose template layer is separate.
4063
+ */
4064
+ interface SlideThumbnailProps {
4065
+ slide: PptxSlide;
4066
+ /** The slide's inherited layout and master elements, drawn beneath its own. Default none. */
4067
+ templateElements?: PptxElement[];
4068
+ /** The deck's slide size in CSS px; the thumbnail is scaled down from it. */
4069
+ canvasSize: CanvasSize;
4070
+ /**
4071
+ * Thumbnail width in pixels; the height follows the deck's aspect ratio. Defaults to the
4072
+ * slides pane thumbnail width.
4073
+ */
4074
+ previewWidth?: number;
4075
+ /** Resolved media data URLs (`PresentationLoader.mediaDataUrls`) for images and video posters. */
4076
+ mediaDataUrls?: Map<string, string>;
4077
+ /** Deck-wide field context; see `SlidesPaneProps.fieldContext`. */
4078
+ fieldContext?: FieldSubstitutionContext;
4079
+ /** Theme and table style map for tables; see `SlidesPaneProps.tableStyleContext`. */
4080
+ tableStyleContext?: SlidesPaneTableStyleContext;
4081
+ }
4082
+
4055
4083
  /**
4056
4084
  * Explicitly-typed public exports of the standalone view components.
4057
4085
  *
@@ -4068,6 +4096,7 @@ declare const Ribbon: Component<RibbonProps>;
4068
4096
  declare const ViewerToolbar: Component<ViewerToolbarProps>;
4069
4097
  declare const SlideCanvas: Component<SlideCanvasProps>;
4070
4098
  declare const SlidesPane: Component<SlidesPaneProps>;
4099
+ declare const SlideThumbnail: Component<SlideThumbnailProps>;
4071
4100
  declare const CollaborationCursors: Component<CollaborationCursorsProps>;
4072
4101
  declare const RemoteSelectionOverlay: Component<RemoteSelectionOverlayProps>;
4073
4102
  declare const EditorLayer: Component<EditorLayerProps>;
@@ -4213,5 +4242,5 @@ declare function fitScale(viewportWidth: number, viewportHeight: number, canvasW
4213
4242
  */
4214
4243
  declare function createViewerState(options: CreateViewerStateOptions): ViewerStateBag;
4215
4244
 
4216
- export { CollaborationCursors, EditorController, EditorLayer, PowerPointViewer, PresentationLoader, RemoteSelectionOverlay, Ribbon, SlideCanvas, SlidesPane, ViewerState, ViewerToolbar, clampSlideIndex, createSlidesPaneProps, createSvelteAiBridge, createViewerState, exportAllSlidesToSvg, exportAllSlidesToSvgBlobs, exportSlideAsSvg, exportSlideToSvg, exportSlideToSvgBlob, fitScale, resolveNavigationKey };
4217
- export type { CollaborationCursorsProps, CreateSlidesPanePropsOptions, CreateViewerStateOptions, EditorLayerProps, ExportGifOptions, ExportPdfOptions, ExportVideoOptions, NavigationAction, PowerPointViewerApi, PowerPointViewerProps, PrintOptions, RemoteSelectionOverlayProps, RibbonProps, SlideCanvasProps, SlidesPaneProps, SlidesPaneTableStyleContext, SvelteAiBridgeDeps, SvgExportAllOptions, SvgExportSingleSlideOptions, ViewerLoadDetail, ViewerStateBag, ViewerToolbarProps };
4245
+ export { CollaborationCursors, EditorController, EditorLayer, PowerPointViewer, PresentationLoader, RemoteSelectionOverlay, Ribbon, SlideCanvas, SlideThumbnail, SlidesPane, ViewerState, ViewerToolbar, clampSlideIndex, createSlidesPaneProps, createSvelteAiBridge, createViewerState, exportAllSlidesToSvg, exportAllSlidesToSvgBlobs, exportSlideAsSvg, exportSlideToSvg, exportSlideToSvgBlob, fitScale, resolveNavigationKey };
4246
+ export type { CollaborationCursorsProps, CreateSlidesPanePropsOptions, CreateViewerStateOptions, EditorLayerProps, ExportGifOptions, ExportPdfOptions, ExportVideoOptions, NavigationAction, PowerPointViewerApi, PowerPointViewerProps, PrintOptions, RemoteSelectionOverlayProps, RibbonProps, SlideCanvasProps, SlideThumbnailProps, SlidesPaneProps, SlidesPaneTableStyleContext, SvelteAiBridgeDeps, SvgExportAllOptions, SvgExportSingleSlideOptions, ViewerLoadDetail, ViewerStateBag, ViewerToolbarProps };
@@ -1,27 +1,28 @@
1
- import { C as a, S as o, _ as s, a as r, b as t, c as i, d as l, f as S, g as n, h as d, i as p, l as v, m as c, n as g, o as m, p as x, r as P, s as b, t as w, u as T, v as y, x as A, y as C } from "../export-CgCgu4W3.js";
2
- import "../transition-overlay-DmshZAWm.js";
1
+ import { C as a, S as o, _ as s, a as r, b as i, c as t, d as l, f as S, g as n, h as d, i as p, l as v, m as c, n as m, o as b, p as g, r as x, s as P, t as w, u as T, v as u, w as y, x as A, y as C } from "../export-BSqJw7u_.js";
2
+ import "../transition-overlay-SNUzj4xJ.js";
3
3
  export {
4
- g as CollaborationCursors,
5
- P as EditorLayer,
6
- v as PowerPointViewer,
7
- S as PresentationLoader,
4
+ m as CollaborationCursors,
5
+ x as EditorLayer,
6
+ T as PowerPointViewer,
7
+ g as PresentationLoader,
8
8
  p as RemoteSelectionOverlay,
9
9
  r as Ribbon,
10
- m as SlideCanvas,
11
- b as SlidesPane,
12
- l as ViewerState,
13
- i as ViewerToolbar,
14
- y as clampSlideIndex,
10
+ b as SlideCanvas,
11
+ P as SlideThumbnail,
12
+ t as SlidesPane,
13
+ S as ViewerState,
14
+ v as ViewerToolbar,
15
+ C as clampSlideIndex,
15
16
  w as createSlidesPaneProps,
16
- a as createSvelteAiBridge,
17
- T as createViewerState,
18
- x as exportAllSlidesToSvg,
19
- c as exportAllSlidesToSvgBlobs,
20
- d as exportSlideAsSvg,
21
- n as exportSlideToSvg,
22
- s as exportSlideToSvgBlob,
23
- C as fitScale,
24
- t as resolveNavigationKey,
25
- A as zoomInPercent,
26
- o as zoomOutPercent
17
+ y as createSvelteAiBridge,
18
+ l as createViewerState,
19
+ c as exportAllSlidesToSvg,
20
+ d as exportAllSlidesToSvgBlobs,
21
+ n as exportSlideAsSvg,
22
+ s as exportSlideToSvg,
23
+ u as exportSlideToSvgBlob,
24
+ i as fitScale,
25
+ A as resolveNavigationKey,
26
+ o as zoomInPercent,
27
+ a as zoomOutPercent
27
28
  };
@@ -1,4 +1,4 @@
1
- import { A as pr, O as gr, k as Fe } from "./transition-overlay-DmshZAWm.js";
1
+ import { A as pr, O as gr, k as Fe } from "./transition-overlay-SNUzj4xJ.js";
2
2
  import { $ as yr, A as br, B as Ct, D as mr, E as ut, F as _r, G as Ye, H as vr, I as Mt, J as je, K as wr, L as lt, M as se, O as Er, P as ae, R as ce, S as Cr, T as Rr, U as Rt, V as Sr, W as St, X as Tr, Y as ht, Z as Ar, _ as kr, a as Or, at as xr, b as Ge, c as Nr, d as Lr, et as Mr, f as Dr, g as Ir, i as Tt, it as Pr, j as it, k as Dt, l as jr, m as Ur, n as Br, nt as ft, o as It, ot as Fr, p as $r, q as Pt, r as $e, rt as jt, s as qr, st, t as Wr, tt as dt, u as Hr, v as Vr, w as Ut, x as Yr, y as Gr, z as Le } from "./awareness-BwmJcSKy.js";
3
3
  import "yjs";
4
4
  var zr = 1200, Kr = 2500, qe = 3e4, ot = (r) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "4.72.1",
3
+ "version": "4.74.0",
4
4
  "description": "pptx-viewer for Svelte 5: a PowerPoint viewer and editor component to render, edit, present, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "office",
@@ -121,8 +121,8 @@
121
121
  "html2canvas-pro": "^2.6.3",
122
122
  "jspdf": "^4.2.1",
123
123
  "jszip": "^3.10.2",
124
- "ooxml-core": "^1.48.1",
125
- "ooxml-ui": "^1.48.1",
124
+ "ooxml-core": "^1.49.0",
125
+ "ooxml-ui": "^1.49.1",
126
126
  "opentype.js": "^2.0.0"
127
127
  },
128
128
  "devDependencies": {