pptx-svelte-viewer 4.35.0 → 4.36.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/dist/index.d.ts CHANGED
@@ -252,6 +252,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
252
252
  * helpers (`hideRibbonTab`, `lockSetting`, ...) on the component instance;
253
253
  * mutating the same object in place is not observed.
254
254
  */
255
+ /** Initial inspector visibility; omitted preserves the desktop/mobile default. */
256
+ inspectorInitiallyOpen?: boolean;
255
257
  customization?: ViewerCustomization;
256
258
  /**
257
259
  * Show the speaker-notes panel and its toolbar toggle. Default true. The
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as o, c as s, l as r, o as t, s as S, t as a, y as i } from "./export-B6lUpPVl.js";
1
+ import { a as o, c as s, l as r, o as t, s as S, t as a, y as i } from "./export-DhJVM_b9.js";
2
2
  import { i as T } from "./translator-2U8GG-ce.js";
3
3
  import "./i18n.js";
4
4
  import { BACKSTAGE_CARD_IDS as n, BACKSTAGE_PAGE_IDS as E, CANVAS_CONTEXT_MENU_COMMAND_IDS as O, EDITOR_SHORTCUT_ACTION_IDS as D, ELEMENT_CONTEXT_MENU_COMMAND_IDS as N, OPTIONS_PAGE_IDS as A, OPTIONS_SECTION_IDS as m, OPTIONS_SETTING_IDS as C, PPTX_OPEN_ACCEPT as P, PRESENTATION_OPEN_EXTENSIONS as d, RIBBON_CONTROL_IDS as R, RIBBON_GROUP_IDS as p, RIBBON_TAB_IDS as v, TOOLBAR_BUTTON_IDS as B, VIEWER_DIALOG_IDS as g, VIEWER_EXPORT_FORMAT_IDS as h, VIEWER_FEATURE_IDS as c, VIEWER_PANEL_IDS as u, createImageElementFromFile as L, defaultCssVars as M, defaultRadius as V, defaultThemeColors as f, deleteAutosaveSnapshot as k, describeCollaborationShellState as G, forgetSessionDeck as b, getAutosaveSnapshot as x, getSessionTabId as F, isLegacyBinaryPresentation as U, isSupportedPresentationFile as X, listAutosaveSnapshots as W, loadPresentationDeck as y, loadSessionDeck as w, parsePresentationSessionId as K, presentationBaseName as H, rememberSessionDeck as j, restoreSessionDeck as q, savedPresentationFileName as z, themeToCssVars as J, vermilionDarkColors as Q, vermilionDarkTheme as Y, vermilionLightColors as Z, vermilionLightTheme as $, vermilionRadius as ee } from "ooxml-ui/pptx";
@@ -337,6 +337,8 @@ interface PowerPointViewerProps extends ViewportFitOptions {
337
337
  * helpers (`hideRibbonTab`, `lockSetting`, ...) on the component instance;
338
338
  * mutating the same object in place is not observed.
339
339
  */
340
+ /** Initial inspector visibility; omitted preserves the desktop/mobile default. */
341
+ inspectorInitiallyOpen?: boolean;
340
342
  customization?: ViewerCustomization;
341
343
  /**
342
344
  * Show the speaker-notes panel and its toolbar toggle. Default true. The
@@ -2240,6 +2242,7 @@ declare class FindReplaceState {
2240
2242
  /** The inspector pane's tab strip, matching React's `InspectorTab`. */
2241
2243
  type InspectorTabId = 'elements' | 'properties' | 'comments';
2242
2244
  declare class ChromeUiState {
2245
+ constructor(inspectorInitiallyOpen?: boolean);
2243
2246
  /** Left thumbnail rail visibility (React: `isSidebarCollapsed`). */
2244
2247
  sidebarCollapsed: boolean;
2245
2248
  /** Right inspector pane visibility (React: `isInspectorPaneOpen`). */
@@ -3637,6 +3640,7 @@ declare class ViewerParityUiState {
3637
3640
  * whichever component renders the actual markup.
3638
3641
  */
3639
3642
  interface CreateViewerStateOptions {
3643
+ inspectorInitiallyOpen?: boolean | undefined;
3640
3644
  getSource: () => Uint8Array | ArrayBuffer | null | undefined;
3641
3645
  collaboration?: CollaborationConfig;
3642
3646
  shareDefaults?: ShareDefaultsInput;
@@ -1,5 +1,5 @@
1
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";
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-DhJVM_b9.js";
3
3
  var P = e, V = t, u = s, A = a, R = r, f = o;
4
4
  export {
5
5
  A as CollaborationCursors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "4.35.0",
3
+ "version": "4.36.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",
@@ -111,21 +111,21 @@
111
111
  "pack": "bun run build && bun pm pack"
112
112
  },
113
113
  "dependencies": {
114
- "@lucide/svelte": "^1.52.0",
114
+ "@lucide/svelte": "^1.54.0",
115
115
  "fast-xml-parser": "^5.11.2",
116
- "html2canvas-pro": "^2.5.1",
116
+ "html2canvas-pro": "^2.5.2",
117
117
  "jspdf": "^4.2.1",
118
118
  "jszip": "^3.10.2",
119
- "ooxml-core": "^1.10.0",
120
- "ooxml-ui": "^1.10.0",
119
+ "ooxml-core": "^1.11.0",
120
+ "ooxml-ui": "^1.11.0",
121
121
  "opentype.js": "^2.0.0"
122
122
  },
123
123
  "devDependencies": {
124
- "@ai-sdk/svelte": "^5.0.127",
124
+ "@ai-sdk/svelte": "^5.0.137",
125
125
  "@microsoft/api-extractor": "^7.59.3",
126
126
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
127
127
  "@types/opentype.js": "^1.3.10",
128
- "ai": "^7.0.127",
128
+ "ai": "^7.0.137",
129
129
  "happy-dom": "^20.14.6",
130
130
  "pptx-viewer-core": "^4.13.5",
131
131
  "rollup": "^4.64.3",