pptx-react-viewer 1.20.0 → 1.22.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 +12 -0
- package/README.md +14 -13
- package/dist/{Model3DScene-BLUWY36S.js → Model3DScene-3YB3JAJS.js} +2 -2
- package/dist/{Model3DScene-BLUWY36S.js.br → Model3DScene-3YB3JAJS.js.br} +0 -0
- package/dist/Model3DScene-3YB3JAJS.js.gz +0 -0
- package/dist/{Model3DScene-RYHVTFOT.mjs → Model3DScene-NLUSXHD6.mjs} +1 -1
- package/dist/Model3DScene-NLUSXHD6.mjs.br +0 -0
- package/dist/Model3DScene-NLUSXHD6.mjs.gz +0 -0
- package/dist/{PowerPointViewer-C4d7SKZf.d.ts → PowerPointViewer-WGVR_u4z.d.ts} +2 -2
- package/dist/PowerPointViewer-WGVR_u4z.d.ts.map +1 -0
- package/dist/{SurfaceChart3DScene-BW2YTOPQ.js → SurfaceChart3DScene-PUQ5DCO5.js} +2 -2
- package/dist/{SurfaceChart3DScene-BW2YTOPQ.js.br → SurfaceChart3DScene-PUQ5DCO5.js.br} +0 -0
- package/dist/SurfaceChart3DScene-PUQ5DCO5.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-U6QOMUJF.mjs → SurfaceChart3DScene-YBMJQGH3.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-U6QOMUJF.mjs.br → SurfaceChart3DScene-YBMJQGH3.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-YBMJQGH3.mjs.gz +0 -0
- package/dist/{chunk-GG2KBJSN.mjs → chunk-5SBQZEKD.mjs} +187 -1
- package/dist/chunk-5SBQZEKD.mjs.br +0 -0
- package/dist/chunk-5SBQZEKD.mjs.gz +0 -0
- package/dist/{chunk-TUVSZMLW.mjs → chunk-7P7QQGTI.mjs} +487 -184
- package/dist/chunk-7P7QQGTI.mjs.br +0 -0
- package/dist/chunk-7P7QQGTI.mjs.gz +0 -0
- package/dist/{chunk-KRK367H5.js → chunk-A6IFTYB5.js} +1166 -863
- package/dist/chunk-A6IFTYB5.js.br +0 -0
- package/dist/chunk-A6IFTYB5.js.gz +0 -0
- package/dist/{chunk-UDJHJM5B.mjs → chunk-DZUI64SO.mjs} +13 -4
- package/dist/chunk-DZUI64SO.mjs.br +0 -0
- package/dist/chunk-DZUI64SO.mjs.gz +0 -0
- package/dist/{chunk-4LPWBQTH.mjs → chunk-E3KJKCSV.mjs} +7 -1
- package/dist/chunk-E3KJKCSV.mjs.br +0 -0
- package/dist/{chunk-4LPWBQTH.mjs.gz → chunk-E3KJKCSV.mjs.gz} +0 -0
- package/dist/{chunk-LXUMBK2O.js → chunk-QVQTDWB7.js} +409 -398
- package/dist/chunk-QVQTDWB7.js.br +0 -0
- package/dist/chunk-QVQTDWB7.js.gz +0 -0
- package/dist/{chunk-BXACB3BG.js → chunk-VSNXVKJI.js} +201 -0
- package/dist/chunk-VSNXVKJI.js.br +0 -0
- package/dist/chunk-VSNXVKJI.js.gz +0 -0
- package/dist/{chunk-4SRCC7NB.js → chunk-ZISXRMDJ.js} +7 -0
- package/dist/chunk-ZISXRMDJ.js.br +0 -0
- package/dist/{chunk-4SRCC7NB.js.gz → chunk-ZISXRMDJ.js.gz} +0 -0
- package/dist/hooks-unstable.d.ts +51 -2
- package/dist/hooks-unstable.d.ts.map +1 -1
- package/dist/hooks-unstable.js +82 -74
- package/dist/hooks-unstable.js.br +0 -0
- package/dist/hooks-unstable.js.gz +0 -0
- package/dist/hooks-unstable.mjs +3 -3
- package/dist/hooks-unstable.mjs.br +0 -0
- package/dist/hooks-unstable.mjs.gz +0 -0
- package/dist/i18n.d.ts +18 -2
- package/dist/i18n.js +7 -3
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index-SUL_8gq8.d.ts +43 -0
- package/dist/index-SUL_8gq8.d.ts.map +1 -0
- package/dist/{index-DmHVR48M.d.ts → index-ntF3kHHU.d.ts} +2 -2
- package/dist/{index-DmHVR48M.d.ts.map → index-ntF3kHHU.d.ts.map} +1 -1
- package/dist/index.d.ts +196 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -18
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{types-BK7Nt13M.d.ts → types-Cdh0XYcS.d.ts} +66 -3
- package/dist/types-Cdh0XYcS.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +122 -0
- package/dist/viewer/index.js +20 -20
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/Model3DScene-BLUWY36S.js.gz +0 -0
- package/dist/Model3DScene-RYHVTFOT.mjs.br +0 -0
- package/dist/Model3DScene-RYHVTFOT.mjs.gz +0 -0
- package/dist/PowerPointViewer-C4d7SKZf.d.ts.map +0 -1
- package/dist/SurfaceChart3DScene-BW2YTOPQ.js.gz +0 -0
- package/dist/SurfaceChart3DScene-U6QOMUJF.mjs.gz +0 -0
- package/dist/chunk-4LPWBQTH.mjs.br +0 -0
- package/dist/chunk-4SRCC7NB.js.br +0 -0
- package/dist/chunk-BXACB3BG.js.br +0 -0
- package/dist/chunk-BXACB3BG.js.gz +0 -0
- package/dist/chunk-GG2KBJSN.mjs.br +0 -0
- package/dist/chunk-GG2KBJSN.mjs.gz +0 -0
- package/dist/chunk-KRK367H5.js.br +0 -0
- package/dist/chunk-KRK367H5.js.gz +0 -0
- package/dist/chunk-LXUMBK2O.js.br +0 -0
- package/dist/chunk-LXUMBK2O.js.gz +0 -0
- package/dist/chunk-TUVSZMLW.mjs.br +0 -0
- package/dist/chunk-TUVSZMLW.mjs.gz +0 -0
- package/dist/chunk-UDJHJM5B.mjs.br +0 -0
- package/dist/chunk-UDJHJM5B.mjs.gz +0 -0
- package/dist/i18n.d.ts.map +0 -1
- package/dist/types-BK7Nt13M.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,6 +127,25 @@ declare const vermilionLightTheme: ViewerTheme;
|
|
|
127
127
|
/** Dark vermilion theme, ready for the viewer's `theme` prop. */
|
|
128
128
|
declare const vermilionDarkTheme: ViewerTheme;
|
|
129
129
|
|
|
130
|
+
/** One selectable entry in the viewer chrome's built-in theme picker (File > Options > Appearance). */
|
|
131
|
+
interface ThemeCatalogEntry {
|
|
132
|
+
/** Stable identifier persisted to storage and passed to `onThemeChange`. */
|
|
133
|
+
key: string;
|
|
134
|
+
/** `pptx.*` translation key for the entry's display label. */
|
|
135
|
+
labelKey: string;
|
|
136
|
+
/** The theme to apply, or `undefined` to reset to the built-in default. */
|
|
137
|
+
theme: ViewerTheme | undefined;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Built-in theme choices offered by File > Options > Appearance when a host
|
|
141
|
+
* doesn't supply its own `availableThemes`. Keep this list short: it's meant
|
|
142
|
+
* as a sensible out-of-the-box picker, not a full theme gallery. Hosts that
|
|
143
|
+
* want more (or fewer) choices pass their own `availableThemes` prop.
|
|
144
|
+
*/
|
|
145
|
+
declare const THEME_CATALOG: readonly ThemeCatalogEntry[];
|
|
146
|
+
/** Look up a catalog entry by key, falling back to `undefined` (the built-in default) if not found. */
|
|
147
|
+
declare function resolveThemeCatalogEntry(key: string | undefined, catalog?: readonly ThemeCatalogEntry[]): ViewerTheme | undefined;
|
|
148
|
+
|
|
130
149
|
/**
|
|
131
150
|
* Action types: hyperlinks, slide jumps, macros, and action buttons.
|
|
132
151
|
*
|
|
@@ -5282,6 +5301,119 @@ interface ViewerFontSource {
|
|
|
5282
5301
|
style?: 'normal' | 'italic';
|
|
5283
5302
|
}
|
|
5284
5303
|
|
|
5304
|
+
/** Local-only display profile shown in File > Account. Never sent anywhere; purely cosmetic. */
|
|
5305
|
+
interface ViewerProfile {
|
|
5306
|
+
displayName: string;
|
|
5307
|
+
/** CSS color for the avatar bubble background, e.g. `'#c2431f'`. */
|
|
5308
|
+
avatarColor: string;
|
|
5309
|
+
/** Single character shown in the avatar bubble. Derived from `displayName` when omitted. */
|
|
5310
|
+
initial?: string;
|
|
5311
|
+
}
|
|
5312
|
+
declare const DEFAULT_VIEWER_PROFILE: ViewerProfile;
|
|
5313
|
+
/** Suggested avatar color swatches for the Account profile editor. */
|
|
5314
|
+
declare const AVATAR_COLOR_SWATCHES: readonly string[];
|
|
5315
|
+
/** Derive the avatar-bubble initial from a profile, falling back to `'?'` for an empty name. */
|
|
5316
|
+
declare function resolveProfileInitial(profile: ViewerProfile): string;
|
|
5317
|
+
/**
|
|
5318
|
+
* Optional hook point for hosts that want to wire a real sign-in flow into
|
|
5319
|
+
* File > Account. Disabled by default: the Account page renders nothing
|
|
5320
|
+
* extra unless a host explicitly opts in by passing `enabled: true`.
|
|
5321
|
+
* See docs/guide for wiring instructions.
|
|
5322
|
+
*/
|
|
5323
|
+
interface AccountAuthConfig {
|
|
5324
|
+
enabled: boolean;
|
|
5325
|
+
onSignIn: () => void;
|
|
5326
|
+
signedInUser?: {
|
|
5327
|
+
name: string;
|
|
5328
|
+
email?: string;
|
|
5329
|
+
avatarUrl?: string;
|
|
5330
|
+
};
|
|
5331
|
+
}
|
|
5332
|
+
interface LocalStorageUsageSummary {
|
|
5333
|
+
/** Number of presentations with a local autosave/recovery snapshot. */
|
|
5334
|
+
presentationCount: number;
|
|
5335
|
+
/** Total bytes across every stored snapshot. */
|
|
5336
|
+
totalBytes: number;
|
|
5337
|
+
}
|
|
5338
|
+
/** Summarize local (IndexedDB) storage usage for the Account > Storage & Privacy panel. */
|
|
5339
|
+
declare function getLocalStorageUsageSummary(): Promise<LocalStorageUsageSummary>;
|
|
5340
|
+
/**
|
|
5341
|
+
* Delete every locally stored presentation/recovery snapshot and persisted
|
|
5342
|
+
* viewer preference (theme/locale/profile). Irreversible; callers should
|
|
5343
|
+
* confirm with the user before invoking this.
|
|
5344
|
+
*/
|
|
5345
|
+
declare function clearAllLocalViewerData(): Promise<void>;
|
|
5346
|
+
/** Persist an updated profile via the shared viewer-prefs store. */
|
|
5347
|
+
declare function saveViewerProfile(profile: ViewerProfile): void;
|
|
5348
|
+
|
|
5349
|
+
/**
|
|
5350
|
+
* `localStorage`-backed viewer chrome preferences (theme/locale/profile),
|
|
5351
|
+
* shared by every binding.
|
|
5352
|
+
*
|
|
5353
|
+
* This is the persistence layer behind File > Options' Appearance/Language
|
|
5354
|
+
* tabs and File > Account's profile editor when a host doesn't supply its
|
|
5355
|
+
* own `onThemeChange`/`onLocaleChange`/`onProfileChange` callbacks - i.e. the
|
|
5356
|
+
* "standalone" fallback path. Hosts that do wire those callbacks own
|
|
5357
|
+
* persistence themselves and this module is never touched.
|
|
5358
|
+
*/
|
|
5359
|
+
declare const VIEWER_PREFS_STORAGE_KEY = "pptx-viewer-prefs";
|
|
5360
|
+
interface StoredViewerPrefs {
|
|
5361
|
+
/** Key into the shared `THEME_CATALOG` (or a host-supplied `availableThemes` catalog). */
|
|
5362
|
+
themeKey?: string;
|
|
5363
|
+
/** Locale code, e.g. `'fr'`. */
|
|
5364
|
+
localeCode?: string;
|
|
5365
|
+
/** Local-only display profile shown in File > Account. */
|
|
5366
|
+
profile?: ViewerProfile;
|
|
5367
|
+
}
|
|
5368
|
+
/** Read all persisted viewer preferences. Returns `{}` when unavailable, unset, or corrupt. */
|
|
5369
|
+
declare function readStoredViewerPrefs(): StoredViewerPrefs;
|
|
5370
|
+
/** Merge `patch` into the persisted viewer preferences. Silently no-ops when storage is unavailable. */
|
|
5371
|
+
declare function writeStoredViewerPrefs(patch: Partial<StoredViewerPrefs>): void;
|
|
5372
|
+
/** Remove all persisted viewer preferences. Silently no-ops when storage is unavailable. */
|
|
5373
|
+
declare function clearStoredViewerPrefs(): void;
|
|
5374
|
+
|
|
5375
|
+
/**
|
|
5376
|
+
* Toolbar action / ribbon-tab visibility: a single, framework-agnostic
|
|
5377
|
+
* catalogue of every top-level toolbar button and ribbon tab a host app can
|
|
5378
|
+
* independently hide. Each binding exposes a `hiddenActions?: ToolbarActionId[]`
|
|
5379
|
+
* prop, threads it down to the relevant render sites, and gates them with
|
|
5380
|
+
* `isActionHidden`. Default (`undefined` / `[]`) hides nothing, matching
|
|
5381
|
+
* today's always-visible behaviour.
|
|
5382
|
+
*
|
|
5383
|
+
* `TOOLBAR_TABS` is also the canonical ribbon-tab list/order, replacing the
|
|
5384
|
+
* copy hand-duplicated in each binding (React's `TOOLBAR_SECTIONS`, Vue's
|
|
5385
|
+
* `ribbon-constants.ts`, Angular's `RIBBON_TABS`, etc.) so the tab set can't
|
|
5386
|
+
* drift between bindings. Per-tab icons stay in each binding (icon libraries
|
|
5387
|
+
* differ per framework); only id + i18n key + order are shared here.
|
|
5388
|
+
*/
|
|
5389
|
+
/**
|
|
5390
|
+
* A single toolbar button/control that can be hidden independently of the
|
|
5391
|
+
* ribbon tab it may also appear inside. `zoom` and `navigation` each cover a
|
|
5392
|
+
* whole control cluster (zoom in/out/fit, prev/next) rather than each button
|
|
5393
|
+
* in it, matching how hosts actually want to hide/keep them as a unit.
|
|
5394
|
+
*/
|
|
5395
|
+
type ToolbarButtonId = 'share' | 'broadcast' | 'export' | 'undo' | 'redo' | 'record' | 'notes' | 'fullscreen' | 'zoom' | 'navigation';
|
|
5396
|
+
/** A top-level ribbon tab. `record` intentionally shares its id with the quick-access Record button above: both surface the same recording feature, so hiding one hides the other. */
|
|
5397
|
+
type ToolbarTabId = 'file' | 'home' | 'insert' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
|
|
5398
|
+
type ToolbarActionId = ToolbarButtonId | ToolbarTabId;
|
|
5399
|
+
|
|
5400
|
+
/** One selectable entry in the viewer chrome's built-in language picker (File > Options > Language). */
|
|
5401
|
+
interface LocaleCatalogEntry {
|
|
5402
|
+
/** BCP-47-ish locale code, e.g. `'en'`, `'fr'`. Matches `pptx-viewer-locales`' exports. */
|
|
5403
|
+
code: string;
|
|
5404
|
+
/** English display name, used before a translation dictionary for the target locale is loaded. */
|
|
5405
|
+
label: string;
|
|
5406
|
+
/** The locale's own name for itself, e.g. `'Français'` for `fr`. */
|
|
5407
|
+
nativeLabel: string;
|
|
5408
|
+
}
|
|
5409
|
+
/**
|
|
5410
|
+
* Built-in language choices offered by File > Options > Language when a host
|
|
5411
|
+
* doesn't supply its own `availableLocales`. Mirrors the locales shipped by
|
|
5412
|
+
* the optional `pptx-viewer-locales` package (English needs no dictionary,
|
|
5413
|
+
* it's the viewer's own baseline).
|
|
5414
|
+
*/
|
|
5415
|
+
declare const LOCALE_CATALOG: readonly LocaleCatalogEntry[];
|
|
5416
|
+
|
|
5285
5417
|
//#endregion
|
|
5286
5418
|
//#region src/theme/context.d.ts
|
|
5287
5419
|
interface ViewerThemeProviderProps {
|
|
@@ -5376,6 +5508,50 @@ interface PowerPointViewerProps {
|
|
|
5376
5508
|
* @see {@link ViewerTheme} for the full type definition.
|
|
5377
5509
|
*/
|
|
5378
5510
|
theme?: ViewerTheme;
|
|
5511
|
+
/**
|
|
5512
|
+
* Initial key into `availableThemes` (or the built-in `THEME_CATALOG`) for
|
|
5513
|
+
* File > Options > Appearance. Ignored once the user picks a different
|
|
5514
|
+
* entry in that session, and always overridden by the `theme` prop when
|
|
5515
|
+
* both are supplied. Falls back to a persisted `localStorage` choice, then
|
|
5516
|
+
* `'default'`.
|
|
5517
|
+
*/
|
|
5518
|
+
defaultThemeKey?: string;
|
|
5519
|
+
/**
|
|
5520
|
+
* Theme choices offered by File > Options > Appearance. Defaults to the
|
|
5521
|
+
* shared `THEME_CATALOG` (default/light/vermilionLight/vermilionDark).
|
|
5522
|
+
*/
|
|
5523
|
+
availableThemes?: ThemeCatalogEntry[];
|
|
5524
|
+
/**
|
|
5525
|
+
* Called when the user picks a theme from File > Options > Appearance.
|
|
5526
|
+
* When provided, the host owns persisting the choice (the viewer will not
|
|
5527
|
+
* also write it to `localStorage`); otherwise the viewer persists it via
|
|
5528
|
+
* the shared `writeStoredViewerPrefs` helper.
|
|
5529
|
+
*/
|
|
5530
|
+
onThemeChange?: (key: string) => void;
|
|
5531
|
+
/**
|
|
5532
|
+
* Initial locale code for File > Options > Language. Falls back to a
|
|
5533
|
+
* persisted `localStorage` choice, then `'en'`.
|
|
5534
|
+
*/
|
|
5535
|
+
defaultLocale?: string;
|
|
5536
|
+
/**
|
|
5537
|
+
* Locale choices offered by File > Options > Language. Defaults to the
|
|
5538
|
+
* codes actually registered on the host's `react-i18next` instance
|
|
5539
|
+
* (mapped through the shared `LOCALE_CATALOG` for display labels).
|
|
5540
|
+
*/
|
|
5541
|
+
availableLocales?: LocaleCatalogEntry[];
|
|
5542
|
+
/**
|
|
5543
|
+
* Called when the user picks a language from File > Options > Language.
|
|
5544
|
+
* When provided, the host owns applying and persisting the choice (the
|
|
5545
|
+
* viewer will not call `i18n.changeLanguage` or touch `localStorage`
|
|
5546
|
+
* itself); otherwise the viewer applies and persists it directly.
|
|
5547
|
+
*/
|
|
5548
|
+
onLocaleChange?: (code: string) => void;
|
|
5549
|
+
/**
|
|
5550
|
+
* Optional hook point for File > Account's sign-in section. Disabled by
|
|
5551
|
+
* default (renders nothing extra); pass `{ enabled: true, onSignIn }` to
|
|
5552
|
+
* surface a real sign-in flow.
|
|
5553
|
+
*/
|
|
5554
|
+
accountAuth?: AccountAuthConfig;
|
|
5379
5555
|
/**
|
|
5380
5556
|
* Optional real-time collaboration configuration.
|
|
5381
5557
|
*
|
|
@@ -5437,6 +5613,24 @@ interface PowerPointViewerProps {
|
|
|
5437
5613
|
* back to the SVG `SmartArtRenderer`. Default `false`.
|
|
5438
5614
|
*/
|
|
5439
5615
|
smartArt3D?: boolean;
|
|
5616
|
+
/**
|
|
5617
|
+
* Hide individual toolbar buttons and/or ribbon tabs instead of the whole
|
|
5618
|
+
* toolbar. Accepts any mix of button ids (`share`, `broadcast`, `export`,
|
|
5619
|
+
* `undo`, `redo`, `record`, `notes`, `fullscreen`, `zoom`, `navigation`)
|
|
5620
|
+
* and ribbon-tab ids (`file`, `home`, `insert`, `draw`, `design`,
|
|
5621
|
+
* `transitions`, `animations`, `slideShow`, `record`, `review`, `view`,
|
|
5622
|
+
* `help`). `zoom` and `navigation` each hide their whole control cluster
|
|
5623
|
+
* (zoom in/out/fit; previous/next slide), not each sub-button. `record`
|
|
5624
|
+
* is shared between the quick-access Record button and the Record ribbon
|
|
5625
|
+
* tab: hiding it hides both. Omitted or empty hides nothing (default,
|
|
5626
|
+
* fully backward compatible).
|
|
5627
|
+
*
|
|
5628
|
+
* @example
|
|
5629
|
+
* ```tsx
|
|
5630
|
+
* <PowerPointViewer content={bytes} hiddenActions={['share', 'broadcast', 'record']} />
|
|
5631
|
+
* ```
|
|
5632
|
+
*/
|
|
5633
|
+
hiddenActions?: ToolbarActionId[];
|
|
5440
5634
|
}
|
|
5441
5635
|
interface PowerPointViewerHandle extends FileViewerHandle, PowerPointViewerAPI {
|
|
5442
5636
|
getContent: () => Promise<Uint8Array>;
|
|
@@ -5476,5 +5670,5 @@ declare const PowerPointViewer: react.ForwardRefExoticComponent<PowerPointViewer
|
|
|
5476
5670
|
*/
|
|
5477
5671
|
declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
5478
5672
|
|
|
5479
|
-
export { PowerPointViewer, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, getAnimationInitialStyle, renderToCanvas, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius };
|
|
5480
|
-
export type { PowerPointViewerAPI, PowerPointViewerHandle, PowerPointViewerProps, ViewerMode, ViewerTheme, ViewerThemeColors };
|
|
5673
|
+
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, LOCALE_CATALOG, PowerPointViewer, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, ViewerThemeProvider, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getAnimationInitialStyle, getLocalStorageUsageSummary, readStoredViewerPrefs, renderToCanvas, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs };
|
|
5674
|
+
export type { AccountAuthConfig, LocalStorageUsageSummary, LocaleCatalogEntry, PowerPointViewerAPI, PowerPointViewerHandle, PowerPointViewerProps, StoredViewerPrefs, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, ViewerMode, ViewerProfile, ViewerTheme, ViewerThemeColors };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/lib/canvas-export.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/lib/canvas-export.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAmCsB,eACrB,SAAS,aACT,UAAS,QAAQ,WACf,QAAQ"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkA6IFTYB5_js = require('./chunk-A6IFTYB5.js');
|
|
4
|
+
var chunkQVQTDWB7_js = require('./chunk-QVQTDWB7.js');
|
|
5
|
+
var chunkVSNXVKJI_js = require('./chunk-VSNXVKJI.js');
|
|
6
|
+
var chunkZISXRMDJ_js = require('./chunk-ZISXRMDJ.js');
|
|
7
7
|
require('./chunk-AD3EAEY6.js');
|
|
8
8
|
require('./chunk-QGM4M3NI.js');
|
|
9
9
|
|
|
@@ -11,57 +11,109 @@ require('./chunk-QGM4M3NI.js');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkA6IFTYB5_js.PowerPointViewer; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkA6IFTYB5_js.ViewerThemeProvider; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkA6IFTYB5_js.useViewerTheme; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkQVQTDWB7_js.getAnimationInitialStyle; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkQVQTDWB7_js.renderToCanvas; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkVSNXVKJI_js.AVATAR_COLOR_SWATCHES; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkVSNXVKJI_js.DEFAULT_VIEWER_PROFILE; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkVSNXVKJI_js.THEME_CATALOG; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkVSNXVKJI_js.VIEWER_PREFS_STORAGE_KEY; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "clearAllLocalViewerData", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkVSNXVKJI_js.clearAllLocalViewerData; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "clearStoredViewerPrefs", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkVSNXVKJI_js.clearStoredViewerPrefs; }
|
|
31
55
|
});
|
|
32
56
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
33
57
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkVSNXVKJI_js.defaultCssVars; }
|
|
35
59
|
});
|
|
36
60
|
Object.defineProperty(exports, "defaultRadius", {
|
|
37
61
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkVSNXVKJI_js.defaultRadius; }
|
|
39
63
|
});
|
|
40
64
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
41
65
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkVSNXVKJI_js.defaultThemeColors; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "getLocalStorageUsageSummary", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkVSNXVKJI_js.getLocalStorageUsageSummary; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "readStoredViewerPrefs", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkVSNXVKJI_js.readStoredViewerPrefs; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "resolveProfileInitial", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkVSNXVKJI_js.resolveProfileInitial; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkVSNXVKJI_js.resolveThemeCatalogEntry; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "saveViewerProfile", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkVSNXVKJI_js.saveViewerProfile; }
|
|
43
87
|
});
|
|
44
88
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
45
89
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkVSNXVKJI_js.themeToCssVars; }
|
|
47
91
|
});
|
|
48
92
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
49
93
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkVSNXVKJI_js.vermilionDarkColors; }
|
|
51
95
|
});
|
|
52
96
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
53
97
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkVSNXVKJI_js.vermilionDarkTheme; }
|
|
55
99
|
});
|
|
56
100
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
57
101
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkVSNXVKJI_js.vermilionLightColors; }
|
|
59
103
|
});
|
|
60
104
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
61
105
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkVSNXVKJI_js.vermilionLightTheme; }
|
|
63
107
|
});
|
|
64
108
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
65
109
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkVSNXVKJI_js.vermilionRadius; }
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () { return chunkVSNXVKJI_js.writeStoredViewerPrefs; }
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () { return chunkZISXRMDJ_js.LOCALE_CATALOG; }
|
|
67
119
|
});
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PowerPointViewer, ViewerThemeProvider, useViewerTheme } from './chunk-
|
|
2
|
-
export { getAnimationInitialStyle, renderToCanvas } from './chunk-
|
|
3
|
-
export { defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-
|
|
4
|
-
|
|
1
|
+
export { PowerPointViewer, ViewerThemeProvider, useViewerTheme } from './chunk-7P7QQGTI.mjs';
|
|
2
|
+
export { getAnimationInitialStyle, renderToCanvas } from './chunk-DZUI64SO.mjs';
|
|
3
|
+
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-5SBQZEKD.mjs';
|
|
4
|
+
export { LOCALE_CATALOG } from './chunk-E3KJKCSV.mjs';
|
|
5
5
|
import './chunk-3ZGCM6RC.mjs';
|
|
6
6
|
import './chunk-6DZX6EAA.mjs';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|