pptx-svelte-viewer 4.33.2 → 4.35.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 +49 -0
- package/dist/{AiChatPanel-BqNJXRhr.js → AiChatPanel-qMcKw6eX.js} +2 -2
- package/dist/export-B6lUpPVl.js +29546 -0
- package/dist/i18n/de.cjs +10 -0
- package/dist/i18n/de.mjs +10 -0
- package/dist/i18n/es.cjs +10 -0
- package/dist/i18n/es.mjs +10 -0
- package/dist/i18n/fr.cjs +10 -0
- package/dist/i18n/fr.mjs +10 -0
- package/dist/i18n/zh-CN.cjs +10 -0
- package/dist/i18n/zh-CN.mjs +10 -0
- package/dist/index.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/transition-overlay-DuEdHA8e.js +4402 -0
- package/dist/viewer/index.d.ts +10 -4
- package/dist/viewer/index.js +2 -2
- package/dist/{y-webrtc-C7WRDJND.js → y-webrtc-ChMLtt7l.js} +1 -1
- package/package.json +6 -6
- package/dist/export-wlFFSdAc.js +0 -29390
- package/dist/transition-overlay-DmfHOSnl.js +0 -4390
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, ToolbarActionId, RibbonAddInTab, ViewerCustomization, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, DeckSaveIntent, AnimationGroup, AlignEdge, DistributeAxis, MergeShapeOperation, PasteSpecialFormat, CropSession, CropElementUpdate, TemplateElementMap, ElementBoxPatch, InkStrokeView, InkPoint, MasterViewCrudAction, MasterViewCrudActionId, FreeformToolKind, EditPointsElementPatch, SlideTemplateId, SlideTemplateBuildOptions, RibbonTransitionDraft, CellCoord, CellRect, PendingInlineTextEdit, InlineListController, ElementClipboardPayload, TableStyleSaveOptions, FontEmbeddingDescriptor, InlineTextEditSnapshot, SnapGuideInput, CollaborationLivePatcher, ResolvedKeyboardCustomization, MarqueeRect, ShapeAdjustmentHandleDescriptor, SnapLine, ResizeHandleId, ConnectorEndpointKind, CollaborationInlineEditor, FindResult, ViewerPreferences, ViewportFitPadding, SlideSizeEmu, CollabLoadOrigin, AwarenessLike, CollaborationTransport, YDocLike, YjsFactories, ConnectionStatus, BroadcastConfig, ElementAnimationState, AuthoredSlideRange, RunProgramNotice, ZoomNavigationTarget, PresentationSnapshot, AutosaveRecoveryPrompt, CompatibilityWarningToast, ReadOnlyRecommendation, ModifyPasswordCheckResult, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, ResolvedCustomization, ViewerMode, CollaborationShellState, AutosaveDisabledReason, MobileSheetKey, FieldSubstitutionContext } from 'ooxml-ui/pptx';
|
|
4
|
+
import { PrintSettings, CanvasSize, RasterizeElementResult, RasterizeElementTilesResult, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, DeckSaveIntent, AnimationGroup, AlignEdge, DistributeAxis, MergeShapeOperation, PasteSpecialFormat, CropSession, CropElementUpdate, TemplateElementMap, ElementBoxPatch, InkStrokeView, InkPoint, MasterViewCrudAction, MasterViewCrudActionId, FreeformToolKind, EditPointsElementPatch, SlideTemplateId, SlideTemplateBuildOptions, SlidePasteRequest, RibbonTransitionDraft, CellCoord, CellRect, PendingInlineTextEdit, InlineListController, ElementClipboardPayload, TableStyleSaveOptions, FontEmbeddingDescriptor, InlineTextEditSnapshot, SnapGuideInput, CollaborationLivePatcher, ResolvedKeyboardCustomization, MarqueeRect, ShapeAdjustmentHandleDescriptor, SnapLine, ResizeHandleId, ConnectorEndpointKind, CollaborationInlineEditor, FindResult, ViewerPreferences, ViewportFitPadding, SlideSizeEmu, CollabLoadOrigin, AwarenessLike, CollaborationTransport, YDocLike, YjsFactories, ConnectionStatus, BroadcastConfig, ElementAnimationState, AuthoredSlideRange, RunProgramNotice, ZoomNavigationTarget, PresentationSnapshot, AutosaveRecoveryPrompt, CompatibilityWarningToast, ReadOnlyRecommendation, ModifyPasswordCheckResult, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, ResolvedCustomization, ViewerMode, CollaborationShellState, AutosaveDisabledReason, MobileSheetKey, FieldSubstitutionContext } from 'ooxml-ui/pptx';
|
|
5
5
|
export { CanvasSize, CollaborationShellState, ConnectionStatus, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, InlineListController, InlineListReadResult, InlineTextEditSnapshot, RemoteCursor, SanitizedPresence, ViewerTheme, zoomInPercent, zoomOutPercent } from 'ooxml-ui/pptx';
|
|
6
6
|
import { PptxAiConfig, PptxAiNotifyLevel, PptxAiBridge, PptxAiFocusedTarget, AiChangeBatch, AiCanvasHighlight, ToolCanvasTarget } from 'ooxml-ui/pptx/ai';
|
|
7
7
|
export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiUIMessage, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
|
|
@@ -1459,6 +1459,7 @@ declare class EditorSlidesController {
|
|
|
1459
1459
|
* slide the user was looking at, or null when not editable.
|
|
1460
1460
|
*/
|
|
1461
1461
|
duplicateSlideAtIndex(index: number): number | null;
|
|
1462
|
+
pasteSlides(request: SlidePasteRequest): number | null;
|
|
1462
1463
|
/**
|
|
1463
1464
|
* Delete the slide at an arbitrary index (the sorter's context-menu
|
|
1464
1465
|
* target). Returns the index the caller should navigate to, or null (not
|
|
@@ -1642,7 +1643,7 @@ interface EditorStateDeps {
|
|
|
1642
1643
|
* new `PptxHandler`; the loader owns handler lifecycle, so it disposes the
|
|
1643
1644
|
* previous one here. Optional for out-of-tree mounts and the unit tests.
|
|
1644
1645
|
*/
|
|
1645
|
-
setHandler?: (handler: PptxHandler) => void;
|
|
1646
|
+
setHandler?: (handler: PptxHandler, keepPrevious?: boolean, data?: PptxData) => void;
|
|
1646
1647
|
onChange?: () => void;
|
|
1647
1648
|
}
|
|
1648
1649
|
declare class EditorState {
|
|
@@ -1818,7 +1819,7 @@ declare class EditorState {
|
|
|
1818
1819
|
* Slides group for layout switching (`applyLayoutToSlide`). */
|
|
1819
1820
|
getHandler(): PptxHandler | null;
|
|
1820
1821
|
/** Hand a rebuilt handler to the loader (see `EditorStateDeps.setHandler`). */
|
|
1821
|
-
adoptHandler(handler: PptxHandler): void;
|
|
1822
|
+
adoptHandler(handler: PptxHandler, keepPrevious?: boolean, data?: PptxData): void;
|
|
1822
1823
|
/**
|
|
1823
1824
|
* The `p:sldSz` the next save should write, or undefined to leave the
|
|
1824
1825
|
* load-time dimensions alone. Slide size lives on the loader (it is not
|
|
@@ -2209,6 +2210,9 @@ declare class FindReplaceState {
|
|
|
2209
2210
|
query: string;
|
|
2210
2211
|
replacement: string;
|
|
2211
2212
|
matchCase: boolean;
|
|
2213
|
+
includeNotes: boolean;
|
|
2214
|
+
includeChartTitles: boolean;
|
|
2215
|
+
includeChartData: boolean;
|
|
2212
2216
|
results: FindResult[];
|
|
2213
2217
|
index: number;
|
|
2214
2218
|
constructor(deps: FindReplaceDeps);
|
|
@@ -2510,6 +2514,7 @@ declare class PresentationLoader {
|
|
|
2510
2514
|
handoutMaster: PptxHandoutMaster | undefined;
|
|
2511
2515
|
sections: PptxSection[];
|
|
2512
2516
|
headerFooter: PptxHeaderFooter;
|
|
2517
|
+
firstSlideNumber: number | undefined;
|
|
2513
2518
|
presentationProperties: PptxPresentationProperties;
|
|
2514
2519
|
/**
|
|
2515
2520
|
* View properties (`ppt/viewProps.xml`, `p:viewPr`): grid spacing, snap /
|
|
@@ -2609,7 +2614,7 @@ declare class PresentationLoader {
|
|
|
2609
2614
|
* a fresh package rather than a patch). Disposes the previous handler; the
|
|
2610
2615
|
* Blob URLs stay valid because the media parts are unchanged.
|
|
2611
2616
|
*/
|
|
2612
|
-
adoptHandler(next: PptxHandler): void;
|
|
2617
|
+
adoptHandler(next: PptxHandler, keepPrevious?: boolean, data?: PptxData): void;
|
|
2613
2618
|
/** Cancel in-flight loads, revoke Blob URLs, dispose the handler. */
|
|
2614
2619
|
dispose(): void;
|
|
2615
2620
|
}
|
|
@@ -2897,6 +2902,7 @@ declare class AnimationPlayback {
|
|
|
2897
2902
|
*/
|
|
2898
2903
|
reset(options?: {
|
|
2899
2904
|
completed?: boolean;
|
|
2905
|
+
stopped?: boolean;
|
|
2900
2906
|
}): void;
|
|
2901
2907
|
/**
|
|
2902
2908
|
* Reveal the next click-group. Returns `true` if a group was revealed, `false`
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../transition-overlay-
|
|
2
|
-
import { S as e, _ as a, a as S, b as o, c as v, d as n, f as d, g as r, h as b, i as p, l as c, m, n as g, o as x, p as w, r as C, s as T, t as $, u as y, v as s, x as t } from "../export-
|
|
1
|
+
import "../transition-overlay-DuEdHA8e.js";
|
|
2
|
+
import { S as e, _ as a, a as S, b as o, c as v, d as n, f as d, g as r, h as b, i as p, l as c, m, n as g, o as x, p as w, r as C, s as T, t as $, u as y, v as s, x as t } from "../export-B6lUpPVl.js";
|
|
3
3
|
var P = e, V = t, u = s, A = a, R = r, f = o;
|
|
4
4
|
export {
|
|
5
5
|
A as CollaborationCursors,
|
|
@@ -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-DuEdHA8e.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.35.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",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"html2canvas-pro": "^2.5.1",
|
|
117
117
|
"jspdf": "^4.2.1",
|
|
118
118
|
"jszip": "^3.10.2",
|
|
119
|
-
"ooxml-core": "^1.
|
|
120
|
-
"ooxml-ui": "^1.
|
|
119
|
+
"ooxml-core": "^1.10.0",
|
|
120
|
+
"ooxml-ui": "^1.10.0",
|
|
121
121
|
"opentype.js": "^2.0.0"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
@@ -126,14 +126,14 @@
|
|
|
126
126
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
127
127
|
"@types/opentype.js": "^1.3.10",
|
|
128
128
|
"ai": "^7.0.127",
|
|
129
|
-
"happy-dom": "^20.14.
|
|
129
|
+
"happy-dom": "^20.14.6",
|
|
130
130
|
"pptx-viewer-core": "^4.13.5",
|
|
131
|
-
"rollup": "^4.64.
|
|
131
|
+
"rollup": "^4.64.3",
|
|
132
132
|
"rollup-plugin-dts": "^6.5.1",
|
|
133
133
|
"svelte": "^5.57.2",
|
|
134
134
|
"svelte-check": "^4.7.6",
|
|
135
135
|
"typescript": "6.0.3",
|
|
136
|
-
"vite": "^8.3.
|
|
136
|
+
"vite": "^8.3.4",
|
|
137
137
|
"vite-plugin-dts": "^5.1.2",
|
|
138
138
|
"vitest": "^5.0.3",
|
|
139
139
|
"y-webrtc": "^10.3.0",
|