pptx-svelte-viewer 4.65.0 → 4.67.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.
@@ -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, 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, SaveProgressController, 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, DeckWebfontProgress, LoadLimitTranslate, ReadOnlyRecommendation, ReadOnlyBannerPasswordError, ViewerOptions, ViewerOptionsStoreInit, ToolbarTabId, ViewerOptionsGroupId, ViewerOptionPrimitive, ViewerOptionsConstraints, CompareResult, Guide, DeckViewPreferences, CloudDocumentController, SaveProgressController, 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';
@@ -304,7 +304,10 @@ interface PowerPointViewerProps extends ViewportFitOptions {
304
304
  initialSlide?: number;
305
305
  /**
306
306
  * Google Fonts fallback for deck fonts that are neither installed nor
307
- * embedded. Unset: the viewer loads them from `fonts.googleapis.com`.
307
+ * embedded. Unset: File > Options > Trust Center > "Download fonts that
308
+ * are not installed or embedded" decides (on by default: the viewer
309
+ * loads them from `fonts.googleapis.com`). Any other value locks that
310
+ * option: off for `false` or an invalid `baseUrl`, on for a mirror.
308
311
  * `false`: no request goes to Google (`fonts.googleapis.com` or
309
312
  * `fonts.gstatic.com`); text uses installed, embedded or fallback fonts.
310
313
  * `{ baseUrl }`: requests go to a self-hosted mirror of the Google Fonts
@@ -3345,6 +3348,8 @@ declare class PresentationLoader {
3345
3348
  tableStylesToDelete: string[];
3346
3349
  /** True while a load is in flight. */
3347
3350
  loading: boolean;
3351
+ /** Webfont download progress while a load waits for the deck's fonts (after a short delay). */
3352
+ fontProgress: DeckWebfontProgress | null;
3348
3353
  /** Error message from the last failed load, or null. */
3349
3354
  error: string | null;
3350
3355
  /** True when the file is password-protected and could not be opened. */
@@ -3376,6 +3381,11 @@ declare class PresentationLoader {
3376
3381
  * the core's English message.
3377
3382
  */
3378
3383
  translate: LoadLimitTranslate | undefined;
3384
+ /**
3385
+ * The host `googleFonts` prop, read when a load waits for the deck's
3386
+ * webfonts. Set by the composition root; unset loads from Google Fonts.
3387
+ */
3388
+ getGoogleFonts: () => GoogleFontsOption | undefined;
3379
3389
  /** Parse a `.pptx` buffer into reactive viewer state. */
3380
3390
  load(raw: Uint8Array | ArrayBuffer, origin?: CollabLoadOrigin): Promise<void>;
3381
3391
  /**
@@ -1,5 +1,5 @@
1
- import "../transition-overlay-D3b7XOOt.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-C3NWTUOt.js";
1
+ import "../transition-overlay-DmshZAWm.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-2vQNeP9e.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-D3b7XOOt.js";
1
+ import { A as pr, O as gr, k as Fe } from "./transition-overlay-DmshZAWm.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.65.0",
3
+ "version": "4.67.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.41.0",
125
- "ooxml-ui": "^1.44.0",
124
+ "ooxml-core": "^1.43.0",
125
+ "ooxml-ui": "^1.46.0",
126
126
  "opentype.js": "^2.0.0"
127
127
  },
128
128
  "devDependencies": {
@@ -132,7 +132,7 @@
132
132
  "@types/opentype.js": "^1.3.10",
133
133
  "ai": "^7.0.157",
134
134
  "happy-dom": "^21.0.4",
135
- "pptx-viewer-core": "^4.14.0",
135
+ "pptx-viewer-core": "^4.14.1",
136
136
  "rollup": "^4.66.0",
137
137
  "rollup-plugin-dts": "^6.5.1",
138
138
  "svelte": "^5.57.3",