pptx-react-viewer 4.43.0 → 4.45.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/{AiChatPanel-VI2IQ7XU.js → AiChatPanel-TGZQBH3L.js} +9 -9
  3. package/dist/AiChatPanel-TGZQBH3L.js.br +0 -0
  4. package/dist/AiChatPanel-TGZQBH3L.js.gz +0 -0
  5. package/dist/{AiChatPanel-R5UTSMXU.mjs → AiChatPanel-Z5VHI4WA.mjs} +1 -1
  6. package/dist/AiChatPanel-Z5VHI4WA.mjs.br +0 -0
  7. package/dist/AiChatPanel-Z5VHI4WA.mjs.gz +0 -0
  8. package/dist/{chunk-GLWV52C6.js → chunk-2YCROYR6.js} +333 -263
  9. package/dist/chunk-2YCROYR6.js.br +0 -0
  10. package/dist/chunk-2YCROYR6.js.gz +0 -0
  11. package/dist/{chunk-UACDKMXF.mjs → chunk-66APV3YZ.mjs} +91 -21
  12. package/dist/chunk-66APV3YZ.mjs.br +0 -0
  13. package/dist/chunk-66APV3YZ.mjs.gz +0 -0
  14. package/dist/{chunk-3LIHPZKS.mjs → chunk-FBN7UFW2.mjs} +15 -9
  15. package/dist/chunk-FBN7UFW2.mjs.br +0 -0
  16. package/dist/chunk-FBN7UFW2.mjs.gz +0 -0
  17. package/dist/{chunk-CHPELGQD.js → chunk-KUQRWMIK.js} +1455 -1434
  18. package/dist/chunk-KUQRWMIK.js.br +0 -0
  19. package/dist/chunk-KUQRWMIK.js.gz +0 -0
  20. package/dist/{chunk-FKY33ZKL.js → chunk-VJZJESNT.js} +14 -8
  21. package/dist/chunk-VJZJESNT.js.br +0 -0
  22. package/dist/chunk-VJZJESNT.js.gz +0 -0
  23. package/dist/{chunk-ITV63NJ5.mjs → chunk-VUE3EPTJ.mjs} +148 -127
  24. package/dist/chunk-VUE3EPTJ.mjs.br +0 -0
  25. package/dist/chunk-VUE3EPTJ.mjs.gz +0 -0
  26. package/dist/index.d.ts +21 -3
  27. package/dist/index.js +24 -24
  28. package/dist/index.js.br +0 -0
  29. package/dist/index.js.gz +0 -0
  30. package/dist/index.mjs +3 -3
  31. package/dist/index.mjs.br +0 -0
  32. package/dist/index.mjs.gz +0 -0
  33. package/dist/internals.d.ts +12 -3
  34. package/dist/internals.js +81 -81
  35. package/dist/internals.js.br +0 -0
  36. package/dist/internals.js.gz +0 -0
  37. package/dist/internals.mjs +2 -2
  38. package/dist/internals.mjs.br +0 -0
  39. package/dist/internals.mjs.gz +0 -0
  40. package/dist/viewer/index.d.ts +14 -3
  41. package/dist/viewer/index.js +19 -19
  42. package/dist/viewer/index.js.br +0 -0
  43. package/dist/viewer/index.js.gz +0 -0
  44. package/dist/viewer/index.mjs +3 -3
  45. package/dist/viewer/index.mjs.br +0 -0
  46. package/dist/viewer/index.mjs.gz +0 -0
  47. package/package.json +3 -3
  48. package/dist/AiChatPanel-R5UTSMXU.mjs.br +0 -0
  49. package/dist/AiChatPanel-R5UTSMXU.mjs.gz +0 -0
  50. package/dist/AiChatPanel-VI2IQ7XU.js.br +0 -0
  51. package/dist/AiChatPanel-VI2IQ7XU.js.gz +0 -0
  52. package/dist/chunk-3LIHPZKS.mjs.br +0 -0
  53. package/dist/chunk-3LIHPZKS.mjs.gz +0 -0
  54. package/dist/chunk-CHPELGQD.js.br +0 -0
  55. package/dist/chunk-CHPELGQD.js.gz +0 -0
  56. package/dist/chunk-FKY33ZKL.js.br +0 -0
  57. package/dist/chunk-FKY33ZKL.js.gz +0 -0
  58. package/dist/chunk-GLWV52C6.js.br +0 -0
  59. package/dist/chunk-GLWV52C6.js.gz +0 -0
  60. package/dist/chunk-ITV63NJ5.mjs.br +0 -0
  61. package/dist/chunk-ITV63NJ5.mjs.gz +0 -0
  62. package/dist/chunk-UACDKMXF.mjs.br +0 -0
  63. package/dist/chunk-UACDKMXF.mjs.gz +0 -0
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  import * as React$1 from 'react';
2
2
  import React$1__default from 'react';
3
3
  import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
4
- import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, CollaborationShellState } from 'ooxml-ui/pptx';
4
+ import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, CollaborationShellState } from 'ooxml-ui/pptx';
5
5
  export { AVATAR_COLOR_SWATCHES, AccountAuthConfig, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, CollaborationConfig, CollaborationShellState, ContextMenuCustomization, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, KeyboardCustomization, LocalStorageUsageSummary, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PowerPointViewerAPI, RIBBON_TAB_IDS, ResolvedCustomization, RibbonCustomization, SLIDE_TEMPLATES, SavedPresentationFormat, ShortcutChord, SlideTemplateId, SlideTemplateSpec, StoredViewerPrefs, THEME_CATALOG, TOOLBAR_BUTTON_IDS, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerMode, ViewerPanelId, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from 'ooxml-ui/pptx';
6
6
  import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
7
7
  export { LOCALE_CATALOG, LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
8
+ import { CollaborationState } from 'ooxml-core/collab';
9
+ export { CollaborationState } from 'ooxml-core/collab';
8
10
  import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
9
11
  export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
10
12
  import { Doc } from 'yjs';
@@ -96,6 +98,8 @@ interface CollaborationContextValue {
96
98
  synced: boolean;
97
99
  /** Manually retry the WebSocket connection after a timeout or error. */
98
100
  retry: () => void;
101
+ /** The local awareness client id, once the session has one. */
102
+ clientId?: number | null;
99
103
  }
100
104
  //#endregion
101
105
  //#region src/viewer/hooks/useLoadNotifications.d.ts
@@ -302,7 +306,7 @@ interface PowerPointViewerProps extends ViewportFitOptions {
302
306
  * />
303
307
  * ```
304
308
  */
305
- collaboration?: CollaborationConfig;
309
+ collaboration?: CollaborationInput;
306
310
  /**
307
311
  * Callback invoked when the user starts a collaboration session from the
308
312
  * Share dialog. The host app should use this to set the `collaboration`
@@ -314,6 +318,13 @@ interface PowerPointViewerProps extends ViewportFitOptions {
314
318
  * Share dialog. The host app should clear the `collaboration` prop.
315
319
  */
316
320
  onStopCollaboration?: () => void;
321
+ /**
322
+ * Reports the shared `CollaborationState` (the contract Word, Excel and Visio
323
+ * use): called when a session starts or stops (the off state), and when its
324
+ * connection status, synced flag or people change. Works for viewer-owned and
325
+ * host-owned (`collaboration.session`) sessions; unchanged states are not repeated.
326
+ */
327
+ onCollaborationChange?: (state: CollaborationState) => void;
317
328
  /**
318
329
  * Default values for the Share dialog fields. The host app should provide
319
330
  * these to control the session name, user display name, and server URL.
@@ -967,7 +978,7 @@ type AutosaveStatus = {
967
978
  //#region src/viewer/hooks/useViewerBuildingBlocks-types.d.ts
968
979
  interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
969
980
  /** Optional collaboration, including a host-owned document and presence session. */
970
- collaboration?: CollaborationConfig;
981
+ collaboration?: CollaborationInput;
971
982
  /** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
972
983
  content: ArrayBuffer | Uint8Array | null | undefined;
973
984
  /** Whether editing actions are enabled. Defaults to false (view-only). */
@@ -976,6 +987,13 @@ interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
976
987
  filePath?: string;
977
988
  /** Display name for the toolbar's file-name-aware controls (e.g. title bar hosts build themselves). */
978
989
  fileName?: string;
990
+ /**
991
+ * Zero-based slide shown after each load, clamped into the deck, as `PowerPointViewer`'s
992
+ * `initialSlide`. It is applied in the same render that shows the loaded deck, so slide 1 is
993
+ * never shown first. Changing it later applies to the next load, not the current slide; use
994
+ * the handle's `goTo` to move an open deck.
995
+ */
996
+ initialSlide?: number;
979
997
  /** Whether the built-in autosave-to-localStorage recovery timer is active. Defaults to true. */
980
998
  autosaveEnabled?: boolean;
981
999
  /** Display name used as the author for comments. */
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkCHPELGQD_js = require('./chunk-CHPELGQD.js');
4
- var chunkGLWV52C6_js = require('./chunk-GLWV52C6.js');
5
- var chunkFKY33ZKL_js = require('./chunk-FKY33ZKL.js');
3
+ var chunkKUQRWMIK_js = require('./chunk-KUQRWMIK.js');
4
+ var chunk2YCROYR6_js = require('./chunk-2YCROYR6.js');
5
+ var chunkVJZJESNT_js = require('./chunk-VJZJESNT.js');
6
6
  require('./chunk-W2IMY5SY.js');
7
7
  var pptx = require('ooxml-ui/pptx');
8
8
  var i18n = require('ooxml-ui/pptx/i18n');
@@ -11,87 +11,87 @@ var i18n = require('ooxml-ui/pptx/i18n');
11
11
 
12
12
  Object.defineProperty(exports, "PowerPointViewer", {
13
13
  enumerable: true,
14
- get: function () { return chunkCHPELGQD_js.PowerPointViewer; }
14
+ get: function () { return chunkKUQRWMIK_js.PowerPointViewer; }
15
15
  });
16
16
  Object.defineProperty(exports, "SlideCanvas", {
17
17
  enumerable: true,
18
- get: function () { return chunkCHPELGQD_js.SlideCanvas; }
18
+ get: function () { return chunkKUQRWMIK_js.SlideCanvas; }
19
19
  });
20
20
  Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
21
21
  enumerable: true,
22
- get: function () { return chunkCHPELGQD_js.SlideTemplateGalleryDialog; }
22
+ get: function () { return chunkKUQRWMIK_js.SlideTemplateGalleryDialog; }
23
23
  });
24
24
  Object.defineProperty(exports, "SlideTemplatePreview", {
25
25
  enumerable: true,
26
- get: function () { return chunkCHPELGQD_js.SlideTemplatePreview; }
26
+ get: function () { return chunkKUQRWMIK_js.SlideTemplatePreview; }
27
27
  });
28
28
  Object.defineProperty(exports, "THEME_CATALOG", {
29
29
  enumerable: true,
30
- get: function () { return chunkCHPELGQD_js.THEME_CATALOG; }
30
+ get: function () { return chunkKUQRWMIK_js.THEME_CATALOG; }
31
31
  });
32
32
  Object.defineProperty(exports, "Toolbar", {
33
33
  enumerable: true,
34
- get: function () { return chunkCHPELGQD_js.Toolbar; }
34
+ get: function () { return chunkKUQRWMIK_js.Toolbar; }
35
35
  });
36
36
  Object.defineProperty(exports, "ViewerThemeProvider", {
37
37
  enumerable: true,
38
- get: function () { return chunkCHPELGQD_js.ViewerThemeProvider; }
38
+ get: function () { return chunkKUQRWMIK_js.ViewerThemeProvider; }
39
39
  });
40
40
  Object.defineProperty(exports, "defaultCssVars", {
41
41
  enumerable: true,
42
- get: function () { return chunkCHPELGQD_js.defaultCssVars; }
42
+ get: function () { return chunkKUQRWMIK_js.defaultCssVars; }
43
43
  });
44
44
  Object.defineProperty(exports, "defaultRadius", {
45
45
  enumerable: true,
46
- get: function () { return chunkCHPELGQD_js.defaultRadius; }
46
+ get: function () { return chunkKUQRWMIK_js.defaultRadius; }
47
47
  });
48
48
  Object.defineProperty(exports, "defaultThemeColors", {
49
49
  enumerable: true,
50
- get: function () { return chunkCHPELGQD_js.defaultThemeColors; }
50
+ get: function () { return chunkKUQRWMIK_js.defaultThemeColors; }
51
51
  });
52
52
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
53
53
  enumerable: true,
54
- get: function () { return chunkCHPELGQD_js.resolveThemeCatalogEntry; }
54
+ get: function () { return chunkKUQRWMIK_js.resolveThemeCatalogEntry; }
55
55
  });
56
56
  Object.defineProperty(exports, "themeToCssVars", {
57
57
  enumerable: true,
58
- get: function () { return chunkCHPELGQD_js.themeToCssVars; }
58
+ get: function () { return chunkKUQRWMIK_js.themeToCssVars; }
59
59
  });
60
60
  Object.defineProperty(exports, "useViewerTheme", {
61
61
  enumerable: true,
62
- get: function () { return chunkCHPELGQD_js.useViewerTheme; }
62
+ get: function () { return chunkKUQRWMIK_js.useViewerTheme; }
63
63
  });
64
64
  Object.defineProperty(exports, "vermilionDarkColors", {
65
65
  enumerable: true,
66
- get: function () { return chunkCHPELGQD_js.vermilionDarkColors; }
66
+ get: function () { return chunkKUQRWMIK_js.vermilionDarkColors; }
67
67
  });
68
68
  Object.defineProperty(exports, "vermilionDarkTheme", {
69
69
  enumerable: true,
70
- get: function () { return chunkCHPELGQD_js.vermilionDarkTheme; }
70
+ get: function () { return chunkKUQRWMIK_js.vermilionDarkTheme; }
71
71
  });
72
72
  Object.defineProperty(exports, "vermilionLightColors", {
73
73
  enumerable: true,
74
- get: function () { return chunkCHPELGQD_js.vermilionLightColors; }
74
+ get: function () { return chunkKUQRWMIK_js.vermilionLightColors; }
75
75
  });
76
76
  Object.defineProperty(exports, "vermilionLightTheme", {
77
77
  enumerable: true,
78
- get: function () { return chunkCHPELGQD_js.vermilionLightTheme; }
78
+ get: function () { return chunkKUQRWMIK_js.vermilionLightTheme; }
79
79
  });
80
80
  Object.defineProperty(exports, "vermilionRadius", {
81
81
  enumerable: true,
82
- get: function () { return chunkCHPELGQD_js.vermilionRadius; }
82
+ get: function () { return chunkKUQRWMIK_js.vermilionRadius; }
83
83
  });
84
84
  Object.defineProperty(exports, "renderToCanvas", {
85
85
  enumerable: true,
86
- get: function () { return chunkGLWV52C6_js.renderToCanvas; }
86
+ get: function () { return chunk2YCROYR6_js.renderToCanvas; }
87
87
  });
88
88
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
89
89
  enumerable: true,
90
- get: function () { return chunkGLWV52C6_js.useViewerBuildingBlocks; }
90
+ get: function () { return chunk2YCROYR6_js.useViewerBuildingBlocks; }
91
91
  });
92
92
  Object.defineProperty(exports, "getAnimationInitialStyle", {
93
93
  enumerable: true,
94
- get: function () { return chunkFKY33ZKL_js.getAnimationInitialStyle; }
94
+ get: function () { return chunkVJZJESNT_js.getAnimationInitialStyle; }
95
95
  });
96
96
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
97
97
  enumerable: true,
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, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-ITV63NJ5.mjs';
2
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-UACDKMXF.mjs';
3
- export { getAnimationInitialStyle } from './chunk-3LIHPZKS.mjs';
1
+ export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-VUE3EPTJ.mjs';
2
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-66APV3YZ.mjs';
3
+ export { getAnimationInitialStyle } from './chunk-FBN7UFW2.mjs';
4
4
  import './chunk-Q3DHYOLK.mjs';
5
5
  export { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, saveViewerProfile, savedPresentationFileName, writeStoredViewerPrefs } from 'ooxml-ui/pptx';
6
6
  export { LOCALE_CATALOG } from 'ooxml-ui/pptx/i18n';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, ViewerMode, ShapeAdjustmentDragState, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
1
+ import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, ViewerMode, ShapeAdjustmentDragState, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, CollaborationInput, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
2
2
  export { CINEMATIC_TRANSITION_KEYFRAMES, CollaborationConfig, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, DeviceOrientation, EASE, INSTANT, MOBILE_BREAKPOINT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, ResolvedDirection, ResolvedDirection8, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, SlideTransitionAnimations, TABLET_BREAKPOINT, TRANSITION_SPEED_DURATION_MS, TouchGestureCallbacks, VirtualizedRange, WHEEL_SPOKE_COUNTS, computeVirtualRange, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount } from 'ooxml-ui/pptx';
3
3
  import { PptxSlide, PptxElement, PptxElementAnimation, TextStyle, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, ShapePptxElement, MergeShapeOperation, PptxSlideTransition, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, PptxTheme, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, MasterViewTab, PptxSlideLayout, PptxHandler, PptxLayoutOption, PptxLayoutPreview, PptxComment, ConnectorPptxElement, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme, PptxData, PptxHandlerSaveOptions, PptxSaveFormat, TextSegment, PptxModifyVerifier } from 'ooxml-core/pptx';
4
4
  import * as Y from 'yjs';
@@ -143,6 +143,8 @@ interface CollaborationContextValue {
143
143
  synced: boolean;
144
144
  /** Manually retry the WebSocket connection after a timeout or error. */
145
145
  retry: () => void;
146
+ /** The local awareness client id, once the session has one. */
147
+ clientId?: number | null;
146
148
  }
147
149
  //#endregion
148
150
  //#region src/viewer/types-ui.d.ts
@@ -2234,7 +2236,7 @@ declare function useAutosave(input: UseAutosaveInput): UseAutosaveResult;
2234
2236
  //#region src/viewer/hooks/useViewerBuildingBlocks-types.d.ts
2235
2237
  interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
2236
2238
  /** Optional collaboration, including a host-owned document and presence session. */
2237
- collaboration?: CollaborationConfig;
2239
+ collaboration?: CollaborationInput;
2238
2240
  /** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
2239
2241
  content: ArrayBuffer | Uint8Array | null | undefined;
2240
2242
  /** Whether editing actions are enabled. Defaults to false (view-only). */
@@ -2243,6 +2245,13 @@ interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
2243
2245
  filePath?: string;
2244
2246
  /** Display name for the toolbar's file-name-aware controls (e.g. title bar hosts build themselves). */
2245
2247
  fileName?: string;
2248
+ /**
2249
+ * Zero-based slide shown after each load, clamped into the deck, as `PowerPointViewer`'s
2250
+ * `initialSlide`. It is applied in the same render that shows the loaded deck, so slide 1 is
2251
+ * never shown first. Changing it later applies to the next load, not the current slide; use
2252
+ * the handle's `goTo` to move an open deck.
2253
+ */
2254
+ initialSlide?: number;
2246
2255
  /** Whether the built-in autosave-to-localStorage recovery timer is active. Defaults to true. */
2247
2256
  autosaveEnabled?: boolean;
2248
2257
  /** Display name used as the author for comments. */
@@ -2546,7 +2555,7 @@ interface UseCollaborativeStateInput {
2546
2555
  canvasWidth: number;
2547
2556
  canvasHeight: number;
2548
2557
  }
2549
- declare function useCollaborativeState({ config, canvasWidth, canvasHeight }: UseCollaborativeStateInput): CollaborationContextValue | null;
2558
+ declare function useCollaborativeState({ config: requested, canvasWidth, canvasHeight }: UseCollaborativeStateInput): CollaborationContextValue | null;
2550
2559
  //#endregion
2551
2560
  //#region src/viewer/hooks/collaboration/useCollaborativeHistory.d.ts
2552
2561
  interface UseCollaborativeHistoryInput {