pptx-svelte-viewer 4.62.0 → 4.63.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 +50 -0
- package/dist/{export-B8LIv1cr.js → export-C5JIiZT-.js} +10236 -10171
- package/dist/i18n/de.cjs +89 -43
- package/dist/i18n/de.mjs +89 -43
- package/dist/i18n/es.cjs +89 -43
- package/dist/i18n/es.mjs +89 -43
- package/dist/i18n/fr.cjs +89 -43
- package/dist/i18n/fr.mjs +89 -43
- package/dist/i18n/zh-CN.cjs +95 -49
- package/dist/i18n/zh-CN.mjs +95 -49
- package/dist/index.d.ts +21 -5
- package/dist/index.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/transition-overlay-C6JEwPWk.js +4485 -0
- package/dist/viewer/index.d.ts +38 -6
- package/dist/viewer/index.js +2 -2
- package/dist/{y-webrtc-DkwmdPJT.js → y-webrtc-B-ZacfCH.js} +1 -1
- package/package.json +3 -3
- package/dist/transition-overlay-CCn-6Vwr.js +0 -4463
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as svelte from 'svelte';
|
|
2
2
|
import { Component } from 'svelte';
|
|
3
3
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
4
|
-
import { PrintSettings, CanvasSize, RasterizeElementResult, RasterizeElementTilesResult, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, GoogleFontsOption, ListConversionScope, PptxLoadLimits, ToolbarActionId, RibbonAddInTab, ViewerCustomization, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, PptxAutosaveStatusKind, DeckSaveIntent, InlineTextDraft, AnimationGroup, AlignEdge, DistributeAxis, MergeShapeOperation, PasteSpecialFormat, CropSession, CropElementUpdate, TemplateElementMap, HistoryTheme, ElementBoxPatch, EditorHistoryController, InkStrokeView, InkPoint, MasterViewCrudAction, MasterViewCrudActionId, FreeformToolKind, EditPointsElementPatch, SlideTemplateId, SlideTemplateBuildOptions, SlidePasteRequest, RibbonTransitionDraft, CellCoord, CellRect, PendingInlineTextEdit, InlineListController, ElementClipboardPayload, TableStyleSaveOptions, FontEmbeddingDescriptor, InlineTextEditSnapshot, SnapGuideInput, CollaborationLivePatcher, InlineTextDraftSink, ResolvedKeyboardCustomization, MarqueeRect, ShapeAdjustmentHandleDescriptor, SnapLine, ResizeHandleId, ConnectorEndpointKind, CollaborationInlineEditor, FindResult, ViewerPreferences, CollaborationTransport, YDocLike, YjsFactories, CollabProviderHandle, CollaborationHistoryTarget, CollabLoadOrigin, BroadcastConfig, ElementAnimationState, AuthoredSlideRange, RunProgramNotice, ZoomNavigationTarget, PresentationSnapshot, AutosaveRecoveryPrompt, CompatibilityWarningToast, SlideSizeEmu, LoadLimitTranslate, ReadOnlyRecommendation, ReadOnlyBannerPasswordError, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, ResolvedCustomization, ViewerMode, ViewportFitPadding, CollaborationShellState, AutosaveDisabledReason, MobileSheetKey, FieldSubstitutionContext, SlidesPaneLayoutGalleryRequest } from 'ooxml-ui/pptx';
|
|
4
|
+
import { PrintSettings, CanvasSize, RasterizeElementResult, RasterizeElementTilesResult, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, GoogleFontsOption, ListConversionScope, PptxLoadLimits, ToolbarActionId, RibbonAddInTab, ViewerCustomization, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, PptxAutosaveStatusKind, DeckSaveIntent, InlineTextDraft, AnimationGroup, AlignEdge, DistributeAxis, MergeShapeOperation, PasteSpecialFormat, CropSession, CropElementUpdate, TemplateElementMap, HistoryTheme, ElementBoxPatch, EditorHistoryController, InkStrokeView, InkPoint, MasterViewCrudAction, MasterViewCrudActionId, FreeformToolKind, EditPointsElementPatch, SlideTemplateId, SlideTemplateBuildOptions, SlidePasteRequest, RibbonTransitionDraft, CellCoord, CellRect, PendingInlineTextEdit, InlineListController, ElementClipboardPayload, TableStyleSaveOptions, FontEmbeddingDescriptor, InlineTextEditSnapshot, SnapGuideInput, CollaborationLivePatcher, InlineTextDraftSink, ResolvedKeyboardCustomization, MarqueeRect, ShapeAdjustmentHandleDescriptor, SnapLine, ResizeHandleId, ConnectorEndpointKind, CollaborationInlineEditor, FindResult, ViewerPreferences, CollaborationTransport, YDocLike, YjsFactories, CollabProviderHandle, CollaborationHistoryTarget, CollabLoadOrigin, BroadcastConfig, ElementAnimationState, AuthoredSlideRange, RunProgramNotice, ZoomNavigationTarget, PresentationSnapshot, AutosaveRecoveryPrompt, CompatibilityWarningToast, SlideSizeEmu, LoadLimitTranslate, ReadOnlyRecommendation, ReadOnlyBannerPasswordError, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, CloudDocumentController, ResolvedCustomization, ViewerMode, ViewportFitPadding, CollaborationShellState, AutosaveDisabledReason, MobileSheetKey, FieldSubstitutionContext, SlidesPaneLayoutGalleryRequest } from 'ooxml-ui/pptx';
|
|
5
5
|
export { CanvasSize, CollaborationShellState, CollaborationState, ConnectionStatus, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, InlineListController, InlineListReadResult, InlineTextEditSnapshot, RemoteCursor, SanitizedPresence, SlidesPaneLayoutGalleryRequest, ViewerTheme, zoomInPercent, zoomOutPercent } from 'ooxml-ui/pptx';
|
|
6
6
|
import { PptxAiConfig, PptxAiBridge } from 'ooxml-ui/pptx/ai';
|
|
7
7
|
export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiUIMessage, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
|
|
@@ -553,6 +553,15 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
553
553
|
* when it provides them.
|
|
554
554
|
*/
|
|
555
555
|
storage?: DocumentStorage;
|
|
556
|
+
/**
|
|
557
|
+
* Cloud places for File > Open (OneDrive through `createOneDriveFileProvider` from
|
|
558
|
+
* `ooxml-core/embedding/onedrive`, or a provider of your own). When non-empty, the Open page
|
|
559
|
+
* lists "This device" and one place per provider. A file opened from a place loads like a
|
|
560
|
+
* normal open (read-only when the service does not allow editing, or when `editable` /
|
|
561
|
+
* `readOnly` already forbid it); File > Save, Save As and recovery of that document go to the
|
|
562
|
+
* file's own storage instead of `storage`, until another document is loaded.
|
|
563
|
+
*/
|
|
564
|
+
fileProviders?: readonly CloudFileProvider[];
|
|
556
565
|
/** Fired with the serialized `.pptx` bytes after each successful autosave. */
|
|
557
566
|
onautosave?: (bytes: Uint8Array) => void;
|
|
558
567
|
/** Fired on every autosave lifecycle transition (`idle`, `saving`, `saved`, `error`). */
|
|
@@ -911,6 +920,8 @@ declare class AutosaveController {
|
|
|
911
920
|
get lastSavedAt(): number | null;
|
|
912
921
|
/** In-progress inline text: a changed draft is an edit and goes into the snapshot. */
|
|
913
922
|
noteInlineDraft(draft: InlineTextDraft | null): void;
|
|
923
|
+
/** File > Save landed with no edit in flight: the document is clean (and saved, if autosave runs). */
|
|
924
|
+
markSaved(): void;
|
|
914
925
|
/** Force an immediate save, bypassing the interval. */
|
|
915
926
|
save(): Promise<void>;
|
|
916
927
|
}
|
|
@@ -1409,7 +1420,7 @@ declare class EditorMasterController {
|
|
|
1409
1420
|
|
|
1410
1421
|
interface MasterViewCrudPrompts {
|
|
1411
1422
|
/** Ask for the new layout/master name; null/empty cancels the rename. */
|
|
1412
|
-
promptName(currentName: string): string | null
|
|
1423
|
+
promptName(currentName: string): string | null | Promise<string | null>;
|
|
1413
1424
|
/** Surface a rejection (`notFound` / `inUse` / `lastMaster`) as translated copy. */
|
|
1414
1425
|
notify(message: string): void;
|
|
1415
1426
|
translate(key: string): string;
|
|
@@ -2077,6 +2088,8 @@ declare class EditorState {
|
|
|
2077
2088
|
undo(): void;
|
|
2078
2089
|
redo(): void;
|
|
2079
2090
|
save(format?: PptxSaveFormat): Promise<Uint8Array>;
|
|
2091
|
+
/** Serialise without touching the dirty flag: File > Save decides once the bytes are stored. */
|
|
2092
|
+
serialize(format?: PptxSaveFormat): Promise<Uint8Array>;
|
|
2080
2093
|
}
|
|
2081
2094
|
|
|
2082
2095
|
/**
|
|
@@ -2934,7 +2947,7 @@ interface PresentationControllerDeps {
|
|
|
2934
2947
|
* hyperlinks"). Forwarded to `PresentationActionRunner.confirmUrl`;
|
|
2935
2948
|
* omitted opens unconditionally.
|
|
2936
2949
|
*/
|
|
2937
|
-
confirmUrl?(url: string): boolean
|
|
2950
|
+
confirmUrl?(url: string): boolean | Promise<boolean>;
|
|
2938
2951
|
/**
|
|
2939
2952
|
* The `p:showPr/p:sldRg` authored slide-range restriction (deck opens into
|
|
2940
2953
|
* slides `fromIndex..toIndex` rather than the whole deck), when no custom
|
|
@@ -3479,9 +3492,10 @@ declare class ViewerOptionsState {
|
|
|
3479
3492
|
screenTip(label: string, description?: string, shortcut?: string): string | undefined;
|
|
3480
3493
|
/**
|
|
3481
3494
|
* Trust Center gate for following an external hyperlink. Returns true when
|
|
3482
|
-
* navigation may proceed (gate off, non-http(s) target, or
|
|
3495
|
+
* navigation may proceed (gate off, non-http(s) target), or a promise of the
|
|
3496
|
+
* user's answer to the in-app confirmation dialog.
|
|
3483
3497
|
*/
|
|
3484
|
-
confirmHyperlink(href: string,
|
|
3498
|
+
confirmHyperlink(href: string, t: (key: string) => string, host?: Node | null): boolean | Promise<boolean>;
|
|
3485
3499
|
/** Accessibility > "feedback with sound" cue for a completed action. */
|
|
3486
3500
|
playFeedback(): void;
|
|
3487
3501
|
/**
|
|
@@ -3722,8 +3736,24 @@ interface CreateViewerStateOptions {
|
|
|
3722
3736
|
getAutosave: () => boolean | undefined;
|
|
3723
3737
|
autosaveIntervalMs?: number;
|
|
3724
3738
|
getFilePath: () => string | undefined;
|
|
3725
|
-
/**
|
|
3739
|
+
/**
|
|
3740
|
+
* The document's storage: Save goes to `storage.save()`; recovery copies to its recovery
|
|
3741
|
+
* methods. The host `storage` prop, or the open cloud file's own (see `cloudDocument`).
|
|
3742
|
+
*/
|
|
3726
3743
|
getStorage?: () => DocumentStorage | undefined;
|
|
3744
|
+
/**
|
|
3745
|
+
* The host `storage` prop itself, which File > Open > Recent and the recovery-cache
|
|
3746
|
+
* maintenance keep using while a cloud file is open. Defaults to {@link getStorage}.
|
|
3747
|
+
*/
|
|
3748
|
+
getHostStorage?: () => DocumentStorage | undefined;
|
|
3749
|
+
/** Host `fileProviders` prop: the cloud places of File > Open. */
|
|
3750
|
+
getFileProviders?: () => readonly CloudFileProvider[] | undefined;
|
|
3751
|
+
/**
|
|
3752
|
+
* The File > Open cloud file now open (shared `render/cloud-open`). `getStorage`,
|
|
3753
|
+
* `getFilePath`, `getFileName` and `getEditable` already resolve through it; the factory opens
|
|
3754
|
+
* and clears it. Omitted, the factory makes its own.
|
|
3755
|
+
*/
|
|
3756
|
+
cloudDocument?: CloudDocumentController;
|
|
3727
3757
|
/** Host `authorName` prop: comment/reply author and the broadcast presenter name. */
|
|
3728
3758
|
getAuthorName?: () => string | undefined;
|
|
3729
3759
|
getInitialSlide: () => number;
|
|
@@ -3895,6 +3925,8 @@ interface ViewerStateBag {
|
|
|
3895
3925
|
closeSignatureWarning(): void;
|
|
3896
3926
|
/** File > Open > "Browse this device" (host override, else the native picker). */
|
|
3897
3927
|
openFile(): void;
|
|
3928
|
+
/** The File > Open cloud file now open; cleared when another document is loaded. */
|
|
3929
|
+
cloudDocument: CloudDocumentController;
|
|
3898
3930
|
/** Run a Quick Access Toolbar command by catalog id (unknown ids no-op). */
|
|
3899
3931
|
runQuickAccessCommand(id: string): void;
|
|
3900
3932
|
/**
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../transition-overlay-
|
|
2
|
-
import { C as o, S as s, _ as r, a as t, b as i, c as l, d as S, f as n, g as d, h as p, i as v, l as c, m as g, n as m, o as x, p as P, r as b, s as w, t as T, u as y, v as A, x as C, y as V } from "../export-
|
|
1
|
+
import "../transition-overlay-C6JEwPWk.js";
|
|
2
|
+
import { C as o, S as s, _ as r, a as t, b as i, c as l, d as S, f as n, g as d, h as p, i as v, l as c, m as g, n as m, o as x, p as P, r as b, s as w, t as T, u as y, v as A, x as C, y as V } from "../export-C5JIiZT-.js";
|
|
3
3
|
export {
|
|
4
4
|
m as CollaborationCursors,
|
|
5
5
|
b as EditorLayer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as pr, O as gr, k as Fe } from "./transition-overlay-
|
|
1
|
+
import { A as pr, O as gr, k as Fe } from "./transition-overlay-C6JEwPWk.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.
|
|
3
|
+
"version": "4.63.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.5.4",
|
|
122
122
|
"jspdf": "^4.2.1",
|
|
123
123
|
"jszip": "^3.10.2",
|
|
124
|
-
"ooxml-core": "^1.
|
|
125
|
-
"ooxml-ui": "^1.
|
|
124
|
+
"ooxml-core": "^1.39.0",
|
|
125
|
+
"ooxml-ui": "^1.41.0",
|
|
126
126
|
"opentype.js": "^2.0.0"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|