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.
- package/CHANGELOG.md +20 -0
- package/dist/{export-CgCgu4W3.js → export-BSqJw7u_.js} +3304 -3242
- package/dist/index.d.ts +31 -2
- package/dist/index.js +50 -49
- package/dist/internals.js +1 -1
- package/dist/transition-overlay-SNUzj4xJ.js +4550 -0
- package/dist/viewer/index.d.ts +31 -2
- package/dist/viewer/index.js +23 -22
- package/dist/{y-webrtc-nRJSlTr_.js → y-webrtc-CJ08ZGdW.js} +1 -1
- package/package.json +3 -3
- package/dist/transition-overlay-DmshZAWm.js +0 -4530
package/dist/index.d.ts
CHANGED
|
@@ -3689,7 +3689,36 @@ interface CreateSlidesPanePropsOptions {
|
|
|
3689
3689
|
*/
|
|
3690
3690
|
declare function createSlidesPaneProps(state: ViewerStateBag, options?: CreateSlidesPanePropsOptions): SlidesPaneProps;
|
|
3691
3691
|
|
|
3692
|
+
/**
|
|
3693
|
+
* Props of `SlideThumbnail`, a static, scaled-down drawing of one slide as `SlidesPane` shows
|
|
3694
|
+
* it. It renders from the slide model, so it follows unsaved edits.
|
|
3695
|
+
*
|
|
3696
|
+
* Feed it from the same values as `SlidesPane` (for example `createSlidesPaneProps(state)`):
|
|
3697
|
+
* a slide from `slides`, plus `canvasSize`, `mediaDataUrls`, `fieldContext` and
|
|
3698
|
+
* `tableStyleContext`. Those `slides` already carry their layout and master elements, so leave
|
|
3699
|
+
* `templateElements` empty for them; pass it only for a slide whose template layer is separate.
|
|
3700
|
+
*/
|
|
3701
|
+
interface SlideThumbnailProps {
|
|
3702
|
+
slide: PptxSlide;
|
|
3703
|
+
/** The slide's inherited layout and master elements, drawn beneath its own. Default none. */
|
|
3704
|
+
templateElements?: PptxElement[];
|
|
3705
|
+
/** The deck's slide size in CSS px; the thumbnail is scaled down from it. */
|
|
3706
|
+
canvasSize: CanvasSize;
|
|
3707
|
+
/**
|
|
3708
|
+
* Thumbnail width in pixels; the height follows the deck's aspect ratio. Defaults to the
|
|
3709
|
+
* slides pane thumbnail width.
|
|
3710
|
+
*/
|
|
3711
|
+
previewWidth?: number;
|
|
3712
|
+
/** Resolved media data URLs (`PresentationLoader.mediaDataUrls`) for images and video posters. */
|
|
3713
|
+
mediaDataUrls?: Map<string, string>;
|
|
3714
|
+
/** Deck-wide field context; see `SlidesPaneProps.fieldContext`. */
|
|
3715
|
+
fieldContext?: FieldSubstitutionContext;
|
|
3716
|
+
/** Theme and table style map for tables; see `SlidesPaneProps.tableStyleContext`. */
|
|
3717
|
+
tableStyleContext?: SlidesPaneTableStyleContext;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3692
3720
|
declare const SlidesPane: Component<SlidesPaneProps>;
|
|
3721
|
+
declare const SlideThumbnail: Component<SlideThumbnailProps>;
|
|
3693
3722
|
|
|
3694
|
-
export { PowerPointViewer, SlidesPane, createSlidesPaneProps, exportAllSlidesToSvg, exportAllSlidesToSvgBlobs, exportSlideAsSvg, exportSlideToSvg, exportSlideToSvgBlob, registerTranslations, renderToCanvas };
|
|
3695
|
-
export type { AutosaveStatus, CreateSlidesPanePropsOptions, ExportGifOptions, ExportPdfOptions, ExportVideoOptions, PowerPointViewerApi, PowerPointViewerProps, PrintOptions, SlidesPaneProps, SlidesPaneTableStyleContext, SvgExportAllOptions, SvgExportSingleSlideOptions, TranslationDictionary, Translator, ViewerLoadDetail };
|
|
3723
|
+
export { PowerPointViewer, SlideThumbnail, SlidesPane, createSlidesPaneProps, exportAllSlidesToSvg, exportAllSlidesToSvgBlobs, exportSlideAsSvg, exportSlideToSvg, exportSlideToSvgBlob, registerTranslations, renderToCanvas };
|
|
3724
|
+
export type { AutosaveStatus, CreateSlidesPanePropsOptions, ExportGifOptions, ExportPdfOptions, ExportVideoOptions, PowerPointViewerApi, PowerPointViewerProps, PrintOptions, SlideThumbnailProps, SlidesPaneProps, SlidesPaneTableStyleContext, SvgExportAllOptions, SvgExportSingleSlideOptions, TranslationDictionary, Translator, ViewerLoadDetail };
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
1
|
+
import { T as s, _ as o, c as a, g as i, h as S, m as r, s as t, t as T, u as _, v as l } from "./export-BSqJw7u_.js";
|
|
2
|
+
import { i as I } from "./translator-2U8GG-ce.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
|
-
import { BACKSTAGE_CARD_IDS as
|
|
4
|
+
import { BACKSTAGE_CARD_IDS as D, BACKSTAGE_PAGE_IDS as N, CANVAS_CONTEXT_MENU_COMMAND_IDS as A, EDITOR_SHORTCUT_ACTION_IDS as m, ELEMENT_CONTEXT_MENU_COMMAND_IDS as P, OPTIONS_PAGE_IDS as d, OPTIONS_SECTION_IDS as C, OPTIONS_SETTING_IDS as R, PPTX_OPEN_ACCEPT as p, PRESENTATION_OPEN_EXTENSIONS as v, RIBBON_CONTROL_IDS as B, RIBBON_GROUP_IDS as g, RIBBON_TAB_IDS as h, TOOLBAR_BUTTON_IDS as u, VIEWER_DIALOG_IDS as c, VIEWER_EXPORT_FORMAT_IDS as L, VIEWER_FEATURE_IDS as M, VIEWER_PANEL_IDS as V, createImageElementFromFile as b, defaultCssVars as f, defaultRadius as k, defaultThemeColors as G, deleteAutosaveSnapshot as x, describeCollaborationShellState as F, forgetSessionDeck as U, getAutosaveSnapshot as X, getSessionTabId as W, isLegacyBinaryPresentation as w, isSupportedPresentationFile as y, listAutosaveSnapshots as K, loadPresentationDeck as H, loadSessionDeck as j, parsePresentationSessionId as q, presentationBaseName as z, rememberSessionDeck as J, restoreSessionDeck as Q, savedPresentationFileName as Y, themeToCssVars as Z, vermilionDarkColors as $, vermilionDarkTheme as ee, vermilionLightColors as se, vermilionLightTheme as oe, vermilionRadius as ae } from "ooxml-ui/pptx";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
D as BACKSTAGE_CARD_IDS,
|
|
7
|
+
N as BACKSTAGE_PAGE_IDS,
|
|
8
|
+
A as CANVAS_CONTEXT_MENU_COMMAND_IDS,
|
|
9
|
+
m as EDITOR_SHORTCUT_ACTION_IDS,
|
|
10
|
+
P as ELEMENT_CONTEXT_MENU_COMMAND_IDS,
|
|
11
|
+
d as OPTIONS_PAGE_IDS,
|
|
12
|
+
C as OPTIONS_SECTION_IDS,
|
|
13
|
+
R as OPTIONS_SETTING_IDS,
|
|
14
14
|
p as PPTX_OPEN_ACCEPT,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
t as
|
|
21
|
-
|
|
15
|
+
v as PRESENTATION_OPEN_EXTENSIONS,
|
|
16
|
+
_ as PowerPointViewer,
|
|
17
|
+
B as RIBBON_CONTROL_IDS,
|
|
18
|
+
g as RIBBON_GROUP_IDS,
|
|
19
|
+
h as RIBBON_TAB_IDS,
|
|
20
|
+
t as SlideThumbnail,
|
|
21
|
+
a as SlidesPane,
|
|
22
|
+
u as TOOLBAR_BUTTON_IDS,
|
|
22
23
|
c as VIEWER_DIALOG_IDS,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
L as VIEWER_EXPORT_FORMAT_IDS,
|
|
25
|
+
M as VIEWER_FEATURE_IDS,
|
|
26
|
+
V as VIEWER_PANEL_IDS,
|
|
27
|
+
b as createImageElementFromFile,
|
|
28
|
+
T as createSlidesPaneProps,
|
|
28
29
|
f as defaultCssVars,
|
|
29
30
|
k as defaultRadius,
|
|
30
31
|
G as defaultThemeColors,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
x as deleteAutosaveSnapshot,
|
|
33
|
+
F as describeCollaborationShellState,
|
|
34
|
+
r as exportAllSlidesToSvg,
|
|
34
35
|
S as exportAllSlidesToSvgBlobs,
|
|
35
|
-
|
|
36
|
+
i as exportSlideAsSvg,
|
|
36
37
|
o as exportSlideToSvg,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
38
|
+
l as exportSlideToSvgBlob,
|
|
39
|
+
U as forgetSessionDeck,
|
|
40
|
+
X as getAutosaveSnapshot,
|
|
41
|
+
W as getSessionTabId,
|
|
42
|
+
w as isLegacyBinaryPresentation,
|
|
43
|
+
y as isSupportedPresentationFile,
|
|
44
|
+
K as listAutosaveSnapshots,
|
|
45
|
+
H as loadPresentationDeck,
|
|
46
|
+
j as loadSessionDeck,
|
|
47
|
+
q as parsePresentationSessionId,
|
|
48
|
+
z as presentationBaseName,
|
|
49
|
+
I as registerTranslations,
|
|
50
|
+
J as rememberSessionDeck,
|
|
51
|
+
s as renderToCanvas,
|
|
52
|
+
Q as restoreSessionDeck,
|
|
53
|
+
Y as savedPresentationFileName,
|
|
54
|
+
Z as themeToCssVars,
|
|
55
|
+
$ as vermilionDarkColors,
|
|
56
|
+
ee as vermilionDarkTheme,
|
|
57
|
+
se as vermilionLightColors,
|
|
58
|
+
oe as vermilionLightTheme,
|
|
59
|
+
ae as vermilionRadius
|
|
59
60
|
};
|
package/dist/internals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as T } from "./transition-overlay-
|
|
1
|
+
import { t as T } from "./transition-overlay-SNUzj4xJ.js";
|
|
2
2
|
import { CINEMATIC_TRANSITION_KEYFRAMES as e, DEFAULT_MORPH_DURATION_MS as _, DEFAULT_TRANSITION_DURATION_MS as n, EASE as o, INSTANT as A, P14_TRANSITION_KEYFRAMES as E, P14_TRANSITION_KEYFRAMES_2 as I, P14_TRANSITION_KEYFRAMES_ALL as t, RANDOM_ELIGIBLE_TYPES as N, SLIDE_TRANSITION_KEYFRAMES as r, SLIDE_TRANSITION_KEYFRAMES_CSS as R, TRANSITION_SPEED_DURATION_MS as s, WHEEL_SPOKE_COUNTS as O, getCinematicTransitionAnimations as a, getP14TransitionAnimations as M, getSlideTransitionAnimations as D, resolveDirection as l, resolveDirection8 as L, resolveOrientation as P, resolveSlideTransition as m, resolveTransitionDurationMs as F, resolveWheelSpokeCount as v } from "ooxml-ui/pptx";
|
|
3
3
|
export {
|
|
4
4
|
e as CINEMATIC_TRANSITION_KEYFRAMES,
|