pptx-svelte-viewer 4.55.0 → 4.56.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, 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, 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';
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';
@@ -312,6 +312,16 @@ interface PowerPointViewerProps extends ViewportFitOptions {
312
312
  * invalid `baseUrl` disables the fallback (with a console warning).
313
313
  */
314
314
  googleFonts?: GoogleFontsOption;
315
+ /**
316
+ * How far Bullets / Numbering reach when the selection is a bare caret.
317
+ * `'paragraph'` (the default, PowerPoint behaviour): only the paragraph
318
+ * holding the caret changes. `'list'` (opt-in, Word / Google Docs
319
+ * behaviour): switching a list paragraph between bullets and numbering
320
+ * converts the whole adjacent list around the caret. Turning a list off,
321
+ * listing a plain paragraph and range selections behave the same in both.
322
+ * A change applies from the next Bullets / Numbering press.
323
+ */
324
+ listConversionScope?: ListConversionScope;
315
325
  /**
316
326
  * Host switch for content a deck links from another server (http(s)
317
327
  * relationship targets): pictures, picture fills and bullets, video, audio
@@ -1735,6 +1745,11 @@ interface EditorStateDeps {
1735
1745
  } | undefined;
1736
1746
  /** Host `authorName` prop: the comment/reply author that wins over Options > General. */
1737
1747
  getAuthorName?: () => string | undefined;
1748
+ /**
1749
+ * Host `listConversionScope` prop: how far a bare caret's Bullets /
1750
+ * Numbering reach. Optional; unset keeps PowerPoint's single paragraph.
1751
+ */
1752
+ getListConversionScope?: () => ListConversionScope | undefined;
1738
1753
  /**
1739
1754
  * The `tableStyles`/`tableStylesDefaultId`/`tableStylesToDelete` save
1740
1755
  * options (see `pptx-viewer-shared`'s `tableStyleSaveOptions`). Table style
@@ -1965,6 +1980,8 @@ declare class EditorState {
1965
1980
  getSlideSize(): PptxSlideSize | undefined;
1966
1981
  /** The host `authorName` prop, or undefined (see {@link EditorStateDeps.getAuthorName}). */
1967
1982
  get hostAuthorName(): string | undefined;
1983
+ /** The host `listConversionScope` prop, or undefined (see {@link EditorStateDeps.getListConversionScope}). */
1984
+ get listConversionScope(): ListConversionScope | undefined;
1968
1985
  /** The slide canvas in px (see {@link EditorStateDeps.getCanvasSize}). */
1969
1986
  getCanvasSize(): {
1970
1987
  width: number;
@@ -3712,6 +3729,8 @@ interface CreateViewerStateOptions {
3712
3729
  getInitialSlide: () => number;
3713
3730
  /** Host `googleFonts` prop: the Google Fonts fallback policy. */
3714
3731
  getGoogleFonts?: () => GoogleFontsOption | undefined;
3732
+ /** Host `listConversionScope` prop: how far a bare caret's Bullets / Numbering reach. */
3733
+ getListConversionScope?: () => ListConversionScope | undefined;
3715
3734
  /** Host `allowExternalContent` prop: overrides the Trust Center setting for every load when set. */
3716
3735
  getAllowExternalContent?: () => boolean | undefined;
3717
3736
  /** Host `limits` prop: the load limits passed to every load (unset keeps the core defaults). */
@@ -1,5 +1,5 @@
1
- import "../transition-overlay-BSugeWHT.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-BJPif0uf.js";
1
+ import "../transition-overlay-DdHKcrCY.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-QeYSnfaI.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-BSugeWHT.js";
1
+ import { A as pr, O as gr, k as Fe } from "./transition-overlay-DdHKcrCY.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.55.0",
3
+ "version": "4.56.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.2",
122
122
  "jspdf": "^4.2.1",
123
123
  "jszip": "^3.10.2",
124
- "ooxml-core": "^1.30.0",
125
- "ooxml-ui": "^1.31.0",
124
+ "ooxml-core": "^1.30.1",
125
+ "ooxml-ui": "^1.32.0",
126
126
  "opentype.js": "^2.0.0"
127
127
  },
128
128
  "devDependencies": {