pptx-svelte-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 +21 -0
- package/dist/{AiChatPanel-C0KJlp00.js → AiChatPanel-CjQpzO0U.js} +2 -2
- package/dist/{export-BK-HTwwB.js → export-Bh9pAUzY.js} +9514 -9435
- package/dist/index.d.ts +29 -2
- package/dist/index.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/{transition-overlay-Ca1_ksUi.js → transition-overlay-C-ut2gr6.js} +1073 -1070
- package/dist/viewer/index.d.ts +64 -5
- package/dist/viewer/index.js +2 -2
- package/dist/{y-webrtc-Bg6u2mji.js → y-webrtc-CFOloTcS.js} +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
2
|
-
import { PrintSettings, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, CanvasSize, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi } from 'ooxml-ui/pptx';
|
|
2
|
+
import { PrintSettings, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi } from 'ooxml-ui/pptx';
|
|
3
3
|
export { AutosaveRecord, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, CanvasSize, CollaborationConfig, CollaborationRole, CollaborationShellState, CollaborationState, CollaborationTransport, ConnectionStatus, ContextMenuCustomization, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, KeyboardCustomization, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_CONTROL_IDS, RIBBON_GROUP_IDS, RIBBON_TAB_IDS, RemoteCursor, ResolvedCustomization, RibbonContextualTabId, RibbonControlId, RibbonCustomization, RibbonGroupId, SanitizedPresence, SavedPresentationFormat, SessionDeck, ShortcutChord, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerPanelId, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, deleteAutosaveSnapshot, describeCollaborationShellState, forgetSessionDeck, getAutosaveSnapshot, getSessionTabId, isLegacyBinaryPresentation, isSupportedPresentationFile, listAutosaveSnapshots, loadPresentationDeck, loadSessionDeck, parsePresentationSessionId, presentationBaseName, rememberSessionDeck, restoreSessionDeck, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from 'ooxml-ui/pptx';
|
|
4
4
|
import { Component } from 'svelte';
|
|
5
5
|
import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
|
|
6
6
|
export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiUIMessage, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
|
|
7
7
|
import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
8
|
-
import { SvgExportOptions, PptxData, PptxSlide, PptxSaveFormat } from 'ooxml-core/pptx';
|
|
8
|
+
import { SvgExportOptions, PptxData, PptxSlide, PptxCoreProperties, PptxSaveFormat } from 'ooxml-core/pptx';
|
|
9
9
|
import { Options } from 'html2canvas-pro';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -330,6 +330,12 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
330
330
|
* the toolbar. Default false (read-only viewer).
|
|
331
331
|
*/
|
|
332
332
|
editable?: boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Makes the deck read-only (default `false`). It is the inverse of the edit switch: true wins
|
|
335
|
+
* over it, false only lifts this restriction, so editing still needs the edit switch and
|
|
336
|
+
* is never granted over a collaboration `viewer` role or `capabilities.edit`.
|
|
337
|
+
*/
|
|
338
|
+
readOnly?: boolean;
|
|
333
339
|
/** Optional class name applied to the root element. */
|
|
334
340
|
class?: string;
|
|
335
341
|
/** Optional display name shown in the desktop title bar. */
|
|
@@ -413,8 +419,29 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
413
419
|
* @default 120000 (Options > Save, "every 2 minutes")
|
|
414
420
|
*/
|
|
415
421
|
autosaveIntervalMs?: number;
|
|
422
|
+
/**
|
|
423
|
+
* Host-owned storage (`DocumentStorage` from `ooxml-core/embedding`). When set,
|
|
424
|
+
* Save and Save As hand the bytes to `storage.save()` instead of downloading
|
|
425
|
+
* them, and recovery autosave snapshots go to the storage's recovery methods
|
|
426
|
+
* (`readRecovery` / `writeRecovery` / `clearRecovery`) instead of IndexedDB
|
|
427
|
+
* when it provides them.
|
|
428
|
+
*/
|
|
429
|
+
storage?: DocumentStorage;
|
|
416
430
|
/** Fired with the serialized `.pptx` bytes after each successful autosave. */
|
|
417
431
|
onautosave?: (bytes: Uint8Array) => void;
|
|
432
|
+
/** Fired on every autosave lifecycle transition (`idle`, `saving`, `saved`, `error`). */
|
|
433
|
+
onautosavestatus?: (status: ViewerAutosaveStatus) => void;
|
|
434
|
+
/**
|
|
435
|
+
* Fired when a recovery snapshot left by a previous session is found for this deck. The
|
|
436
|
+
* built-in recovery prompt is shown as well.
|
|
437
|
+
*/
|
|
438
|
+
onautosaverecovery?: (record: AutosaveRecord) => void;
|
|
439
|
+
/** Fired with the changed fields when the user edits the document properties. */
|
|
440
|
+
onpropertieschange?: (updates: Partial<PptxCoreProperties>) => void;
|
|
441
|
+
/** Fired when presentation (slide show) mode is entered (`true`) or left (`false`). */
|
|
442
|
+
onpresentationchange?: (presenting: boolean) => void;
|
|
443
|
+
/** Fired on every collaboration connection-status transition. */
|
|
444
|
+
oncollaborationstatus?: (status: ConnectionStatus) => void;
|
|
418
445
|
/**
|
|
419
446
|
* Real-time collaboration configuration. When provided, the viewer connects
|
|
420
447
|
* to the room (y-websocket or serverless y-webrtc), publishes local edits
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, c as s, l as r, o as t, s as S, t as a, y as i } from "./export-
|
|
1
|
+
import { a as o, c as s, l as r, o as t, s as S, t as a, y as i } from "./export-Bh9pAUzY.js";
|
|
2
2
|
import { i as T } from "./translator-2U8GG-ce.js";
|
|
3
3
|
import "./i18n.js";
|
|
4
4
|
import { BACKSTAGE_CARD_IDS as n, BACKSTAGE_PAGE_IDS as E, CANVAS_CONTEXT_MENU_COMMAND_IDS as O, EDITOR_SHORTCUT_ACTION_IDS as D, ELEMENT_CONTEXT_MENU_COMMAND_IDS as N, OPTIONS_PAGE_IDS as A, OPTIONS_SECTION_IDS as m, OPTIONS_SETTING_IDS as C, PPTX_OPEN_ACCEPT as P, PRESENTATION_OPEN_EXTENSIONS as d, RIBBON_CONTROL_IDS as R, RIBBON_GROUP_IDS as p, RIBBON_TAB_IDS as v, TOOLBAR_BUTTON_IDS as B, VIEWER_DIALOG_IDS as g, VIEWER_EXPORT_FORMAT_IDS as h, VIEWER_FEATURE_IDS as c, VIEWER_PANEL_IDS as u, createImageElementFromFile as L, defaultCssVars as M, defaultRadius as V, defaultThemeColors as f, deleteAutosaveSnapshot as k, describeCollaborationShellState as G, forgetSessionDeck as b, getAutosaveSnapshot as x, getSessionTabId as F, isLegacyBinaryPresentation as U, isSupportedPresentationFile as X, listAutosaveSnapshots as W, loadPresentationDeck as y, loadSessionDeck as w, parsePresentationSessionId as K, presentationBaseName as H, rememberSessionDeck as j, restoreSessionDeck as q, savedPresentationFileName as z, themeToCssVars as J, vermilionDarkColors as Q, vermilionDarkTheme as Y, vermilionLightColors as Z, vermilionLightTheme as $, vermilionRadius as ee } from "ooxml-ui/pptx";
|
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-C-ut2gr6.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,
|