pptx-svelte-viewer 4.33.2 → 4.34.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 +26 -0
- package/dist/{AiChatPanel-BqNJXRhr.js → AiChatPanel-CSA1b5ei.js} +2 -2
- package/dist/{export-wlFFSdAc.js → export-Z5I2ESiY.js} +8365 -8269
- package/dist/i18n/de.cjs +9 -0
- package/dist/i18n/de.mjs +9 -0
- package/dist/i18n/es.cjs +9 -0
- package/dist/i18n/es.mjs +9 -0
- package/dist/i18n/fr.cjs +9 -0
- package/dist/i18n/fr.mjs +9 -0
- package/dist/i18n/zh-CN.cjs +9 -0
- package/dist/i18n/zh-CN.mjs +9 -0
- package/dist/index.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/{transition-overlay-DmfHOSnl.js → transition-overlay-DUVAVLC7.js} +1526 -1514
- package/dist/viewer/index.d.ts +8 -4
- package/dist/viewer/index.js +2 -2
- package/dist/{y-webrtc-C7WRDJND.js → y-webrtc-Cj6-IF-s.js} +1 -1
- package/package.json +6 -6
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);
|
|
@@ -2609,7 +2613,7 @@ declare class PresentationLoader {
|
|
|
2609
2613
|
* a fresh package rather than a patch). Disposes the previous handler; the
|
|
2610
2614
|
* Blob URLs stay valid because the media parts are unchanged.
|
|
2611
2615
|
*/
|
|
2612
|
-
adoptHandler(next: PptxHandler): void;
|
|
2616
|
+
adoptHandler(next: PptxHandler, keepPrevious?: boolean, data?: PptxData): void;
|
|
2613
2617
|
/** Cancel in-flight loads, revoke Blob URLs, dispose the handler. */
|
|
2614
2618
|
dispose(): void;
|
|
2615
2619
|
}
|
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-DUVAVLC7.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-Z5I2ESiY.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-DUVAVLC7.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.34.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.9.0",
|
|
120
|
+
"ooxml-ui": "^1.9.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",
|