pptx-svelte-viewer 4.75.0 → 4.76.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, RibbonDisplayMode, 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, RibbonDisplayController, ViewerPreferences, CollaborationTransport, YDocLike, YjsFactories, CollabProviderHandle, CollaborationHistoryTarget, CollabLoadOrigin, BroadcastConfig, PptxSaveSnapshot, PptxSaveAcknowledgement, 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';
4
+ import { PrintSettings, CanvasSize, RasterizeElementResult, RasterizeElementTilesResult, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, GoogleFontsOption, ListConversionScope, PptxLoadLimits, ToolbarActionId, RibbonAddInTab, RibbonDisplayMode, ViewerCustomization, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, CollaborationInput, CollaborationConfig, CollaborationState, PowerPointViewerAPI, ViewerCustomizationApi, RemoteCursor, SanitizedPresence, SlideFindHighlights, 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, RibbonDisplayController, ViewerPreferences, CollaborationTransport, YDocLike, YjsFactories, CollabProviderHandle, CollaborationHistoryTarget, CollabLoadOrigin, BroadcastConfig, PptxSaveSnapshot, PptxSaveAcknowledgement, 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';
@@ -277,6 +277,14 @@ interface PowerPointViewerProps extends ViewportFitOptions {
277
277
  * `localStorage` automatically.
278
278
  */
279
279
  onThemeChange?: (themeKey: string) => void;
280
+ /**
281
+ * Reports a slide element omitted after a render or effect error, on every surface of the
282
+ * viewer (canvas, thumbnails, slide show, reading view, previews), with
283
+ * `{ elementId, elementType, slideId }`. Camel-cased like `onThemeChange` because it is the
284
+ * same reporter option the building blocks take. Defaults to `console.error(error, context)`,
285
+ * also used when this callback throws.
286
+ */
287
+ onElementRenderError?: ooxml_ui_pptx.ElementRenderErrorHandler;
280
288
  /**
281
289
  * Initial File > Options > Language selection (locale code). Falls back to
282
290
  * a value persisted in `localStorage`, then the `locale` prop. Once the
@@ -754,6 +762,8 @@ interface SlideCanvasProps {
754
762
  editingElementId?: string | null;
755
763
  /** Forwarded to `SlideStage`; see `SlideStageProps.selectedElementIds`. */
756
764
  selectedElementIds?: readonly string[];
765
+ /** The Find bar's matches, marked in the elements' text (`findTextHighlightsByElement`). */
766
+ findHighlights?: SlideFindHighlights;
757
767
  ontablecellcommit?: (elementId: string, rowIndex: number, cellIndex: number, text: string) => void;
758
768
  onsmartartnodecommit?: (elementId: string, nodeId: string, text: string) => void;
759
769
  onsmartartnodefill?: (elementId: string, nodeId: string, fill: string) => void;
@@ -1,5 +1,5 @@
1
- import { C as a, D as o, E as s, S as r, T as i, _ as t, a as l, b as S, c as n, d, g as v, h as p, i as c, l as m, m as b, n as g, o as x, r as P, s as T, t as w, v as y, w as A, x as C, y as V } from "../export-CVudgvaM.js";
2
- import "../transition-overlay-SNUzj4xJ.js";
1
+ import { C as a, D as o, E as s, S as r, T as i, _ as t, a as l, b as S, c as n, d, g as v, h as p, i as c, l as m, m as b, n as g, o as x, r as P, s as T, t as w, v as y, w as A, x as C, y as V } from "../export-B-KZgn51.js";
2
+ import "../transition-overlay-DXsGFRMK.js";
3
3
  export {
4
4
  g as CollaborationCursors,
5
5
  P as EditorLayer,
@@ -1,4 +1,4 @@
1
- import { A as pr, O as gr, k as Fe } from "./transition-overlay-SNUzj4xJ.js";
1
+ import { M as Fe, N as pr, j as gr } from "./transition-overlay-DXsGFRMK.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.75.0",
3
+ "version": "4.76.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",
@@ -122,7 +122,7 @@
122
122
  "jspdf": "^4.2.1",
123
123
  "jszip": "^3.10.2",
124
124
  "ooxml-core": "^1.50.0",
125
- "ooxml-ui": "^1.50.0",
125
+ "ooxml-ui": "^1.51.0",
126
126
  "opentype.js": "^2.0.0"
127
127
  },
128
128
  "devDependencies": {