@betteroffice/xlsx-react 0.3.0 → 0.5.1

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
@@ -1,8 +1,9 @@
1
+ import { XlsxEditRefusal, Selection, XlsxReadRequest, XlsxReadResult, XlsxFindRequest, XlsxFindResult, XlsxEditRequest, XlsxValidationResult, XlsxEditResult, CellRange, CellEdit, EditResult, ProposalEdit, Proposal, WorkbookHandle } from '@betteroffice/xlsx';
2
+ export { XlsxSheetVisibility } from '@betteroffice/xlsx';
3
+ import { AsyncCollaborationReplica, CollaborationReplica, CollaborationAwareness } from '@betteroffice/xlsx/collaboration';
4
+ import { TranslationKey, Translations, TFunction } from '@betteroffice/xlsx-i18n';
1
5
  import * as react from 'react';
2
6
  import { CSSProperties, ReactNode, ComponentType } from 'react';
3
- import { XlsxEditRefusal, Selection, XlsxReadRequest, XlsxReadResult, XlsxFindRequest, XlsxFindResult, XlsxEditRequest, XlsxValidationResult, XlsxEditResult, CellRange, WorkbookHandle } from '@betteroffice/xlsx';
4
- import { CollaborationReplica, CollaborationAwareness } from '@betteroffice/xlsx/collaboration';
5
- import { TranslationKey, Translations, TFunction } from '@betteroffice/xlsx-i18n';
6
7
 
7
8
  /**
8
9
  * A value that survives `JSON.stringify` / `JSON.parse` unchanged.
@@ -261,7 +262,7 @@ interface XlsxCommandArgs {
261
262
  print: null;
262
263
  undo: null;
263
264
  redo: null;
264
- /** 1 is 100%; 0.25 to 4. */
265
+ /** 1 is 100%; 0.1 to 5. */
265
266
  zoom: {
266
267
  scale: number;
267
268
  };
@@ -444,6 +445,17 @@ interface XlsxCommandStore {
444
445
  execute(id: XlsxPluginCommandId, args: null): Promise<XlsxPluginCommandResult>;
445
446
  }
446
447
 
448
+ /** Why work queued behind accepted input could not run. */
449
+ type XlsxCommandAdmissionCode = Extract<XlsxCommandFailureCode, 'input-failed' | 'document-replaced' | 'target-changed' | 'gesture-active' | 'editor-unavailable'>;
450
+ /**
451
+ * Raised when work queued behind accepted input cannot run: a command, or a version, read or
452
+ * edit-batch call of the editor API.
453
+ */
454
+ declare class XlsxCommandAdmissionError extends Error {
455
+ readonly code: XlsxCommandAdmissionCode;
456
+ constructor(code: XlsxCommandAdmissionCode);
457
+ }
458
+
447
459
  /**
448
460
  * What the host lets one plugin do. Without a grant a plugin reads, validates and navigates only.
449
461
  * Built-in commands need their id listed and, when they mutate, `document: 'write'`; edit
@@ -594,7 +606,7 @@ interface XlsxPluginNavigationOptions {
594
606
  */
595
607
  interface XlsxPluginNavigation {
596
608
  /**
597
- * Activates the sheet, selects `selection` in its direction and reveals the focus cell.
609
+ * Activates the sheet, selects `selection` in its direction and reveals its anchor (the active cell).
598
610
  * Keyboard focus stays where it is unless `focus` is true.
599
611
  */
600
612
  selectCells(target: {
@@ -753,6 +765,118 @@ interface XlsxEditorPluginProps {
753
765
  onPluginError?(error: XlsxPluginError): void;
754
766
  }
755
767
 
768
+ declare class WorkerInputNotReadyError extends Error {
769
+ constructor();
770
+ }
771
+
772
+ /** @experimental */
773
+ declare class XlsxPeerNotReadyError extends WorkerInputNotReadyError {
774
+ constructor();
775
+ }
776
+ /** @experimental */
777
+ declare class XlsxWorkerEditorCollaborationError extends Error {
778
+ readonly code = "collaboration-unavailable";
779
+ constructor();
780
+ }
781
+ /** @deprecated Removed in 0.6.0. Use XlsxAsyncEditorApi. */
782
+ interface XlsxWorkerEditorApi extends Omit<XlsxWorkerViewerApi, 'save' | 'selectCells'> {
783
+ readonly hydrated: boolean;
784
+ readonly failure: Error | null;
785
+ whenHydrated(): Promise<void>;
786
+ flush(): Promise<void>;
787
+ save(): Promise<Uint8Array | null>;
788
+ recoverySave(): Promise<{
789
+ bytes: Uint8Array;
790
+ recovery: true;
791
+ }>;
792
+ selectCells(sheet: number, selection: Selection): boolean;
793
+ cell(sheet: number, row: number, col: number): CellEdit | null;
794
+ cellAsync(sheet: number, row: number, col: number): Promise<CellEdit | null>;
795
+ rangeCells(sheet: number, range: string): CellEdit[][];
796
+ rangeCellsAsync(sheet: number, range: string): Promise<CellEdit[][] | null>;
797
+ readCellsSync(request: XlsxReadRequest): XlsxReadResult | null;
798
+ editCell(sheet: number, row: number, col: number, input: string): EditResult;
799
+ editCellAsync(sheet: number, row: number, col: number, input: string): Promise<EditResult | null>;
800
+ }
801
+
802
+ declare class XlsxWorkerSessionFailedError extends Error {
803
+ readonly cause: unknown;
804
+ readonly code = "worker-session-failed";
805
+ constructor(cause: unknown);
806
+ }
807
+
808
+ declare class XlsxAsyncApiSyncAccessError extends Error {
809
+ readonly member: string;
810
+ readonly alternative: string;
811
+ readonly code = "sync-api-unavailable";
812
+ constructor(member: string, alternative: string);
813
+ }
814
+
815
+ interface XlsxProposalRequest {
816
+ agentId: string;
817
+ note?: string | null;
818
+ edits: ProposalEdit[];
819
+ }
820
+ type XlsxProposalResult = {
821
+ ok: true;
822
+ proposal: Proposal;
823
+ } | Extract<XlsxCommandResult, {
824
+ ok: false;
825
+ }>;
826
+ /**
827
+ * Host reads, edits and saves commit pending input first. Admission rejects with
828
+ * XlsxCommandAdmissionError for input-failed, document-replaced or editor-unavailable.
829
+ * Session failures reject with the session error.
830
+ * @experimental
831
+ */
832
+ interface XlsxAsyncEditorApi {
833
+ readonly hydrated: boolean;
834
+ readonly failure: Error | null;
835
+ whenHydrated(): Promise<void>;
836
+ recoverySave(): Promise<{
837
+ bytes: Uint8Array;
838
+ recovery: true;
839
+ }>;
840
+ /** Commits pending input before reading the workbook version. */
841
+ version(): Promise<string>;
842
+ /** Reads cells after pending input commits. */
843
+ readCells(request: XlsxReadRequest): Promise<XlsxReadResult>;
844
+ /** Searches display text after pending input commits. */
845
+ findText(request: XlsxFindRequest): Promise<XlsxFindResult>;
846
+ /** Refuses with `read-only` while the editor is read-only. */
847
+ validateEdits(request: XlsxEditRequest): Promise<XlsxValidationResult>;
848
+ /** Applies against `expectVersion` after pending input commits; notifies once if applied. */
849
+ applyEdits(request: XlsxEditRequest): Promise<XlsxEditResult>;
850
+ /** Commits pending input, returns bytes and calls onSave without downloading. */
851
+ save(): Promise<Uint8Array>;
852
+ readonly commands: XlsxCommandStore;
853
+ readonly collaboration: AsyncCollaborationReplica | null;
854
+ /** Stages tracked cell edits after pending input drains; available on worker editors. */
855
+ proposeChanges?(request: XlsxProposalRequest): Promise<XlsxProposalResult>;
856
+ focus(): void;
857
+ renderPng(...args: Parameters<WorkbookHandle['renderPng']>): Promise<ReturnType<WorkbookHandle['renderPng']>>;
858
+ renderRangePng(...args: Parameters<WorkbookHandle['renderRangePng']>): Promise<ReturnType<WorkbookHandle['renderRangePng']>>;
859
+ exportStructured(...args: Parameters<WorkbookHandle['exportStructured']>): Promise<ReturnType<WorkbookHandle['exportStructured']>>;
860
+ exportMarkdown(...args: Parameters<WorkbookHandle['exportMarkdown']>): Promise<ReturnType<WorkbookHandle['exportMarkdown']>>;
861
+ printDisplayList(...args: Parameters<WorkbookHandle['printDisplayList']>): Promise<ReturnType<WorkbookHandle['printDisplayList']>>;
862
+ }
863
+
864
+ declare const LEGACY_SYNC_API: "legacySyncApi";
865
+
866
+ /**
867
+ * `<XlsxEditor />` — the editor shell. A dpr-aware canvas paints the grid; DOM
868
+ * overlays (selection marquee, active-cell outline, in-cell editor) sit above it,
869
+ * positioned from the same display-list geometry the painter uses. A top bar
870
+ * holds the name box, formula bar, and save/undo/redo; an offscreen `role=grid`
871
+ * mirror serves screen readers. All compute lives in `@betteroffice/xlsx`; this
872
+ * layer is framework glue — keyboard/mouse wiring, focus flow, and DOM chrome.
873
+ */
874
+
875
+ interface XlsxPointPosition {
876
+ sheet: number;
877
+ row: number;
878
+ col: number;
879
+ }
756
880
  /**
757
881
  * The imperative surface handed to {@link XlsxEditorProps.onReady}: the open
758
882
  * workbook handle plus a `refreshProposals` to re-read the pending list after an
@@ -764,8 +888,12 @@ interface XlsxEditorPluginProps {
764
888
  * with {@link XlsxCommandAdmissionError}: `input-failed` while a refused entry
765
889
  * waits for correction or earlier input failed, `gesture-active` during a chart
766
890
  * drag, and `document-replaced` when the workbook is replaced meanwhile.
891
+ * @deprecated Removed in 0.6.0. Use XlsxAsyncEditorApi.
767
892
  */
768
893
  interface XlsxEditorApi {
894
+ flushPendingInput: () => Promise<void>;
895
+ /** Client coordinates; sheet, row and column are zero-based. */
896
+ getPositionAtPoint: (clientX: number, clientY: number) => XlsxPointPosition | null;
769
897
  /**
770
898
  * Closes the open cell entry and clears the selection. The entry is written
771
899
  * at once, or queued behind input still waiting to be written. An entry the
@@ -811,6 +939,19 @@ interface XlsxEditorApi {
811
939
  */
812
940
  applyEdits: (request: XlsxEditRequest) => Promise<XlsxEditResult>;
813
941
  }
942
+ /** @deprecated Removed in 0.6.0. Use XlsxAsyncEditorApi. */
943
+ interface XlsxWorkerViewerApi extends Omit<XlsxEditorApi, 'handle' | 'save' | 'selectCells' | 'version' | 'readCells' | 'findText' | 'validateEdits' | 'applyEdits'> {
944
+ handle: null;
945
+ save: () => null;
946
+ selectCells: (sheet: number, selection: Selection) => false;
947
+ saveAsync: () => Promise<Uint8Array | null>;
948
+ selectCellsAsync: (sheet: number, selection: Selection) => Promise<boolean>;
949
+ version: () => Promise<string | null>;
950
+ readCells: (request: XlsxReadRequest) => Promise<XlsxReadResult | null>;
951
+ findText: (request: XlsxFindRequest) => Promise<XlsxFindResult | null>;
952
+ validateEdits: (request: XlsxEditRequest) => Promise<XlsxValidationResult | null>;
953
+ applyEdits: (request: XlsxEditRequest) => Promise<XlsxEditResult | null>;
954
+ }
814
955
  /** Why a synchronous {@link XlsxEditorApi.save} did not return bytes. */
815
956
  declare class XlsxSaveRefusedError extends Error {
816
957
  readonly code: 'input-pending' | 'input-failed';
@@ -826,16 +967,34 @@ interface XlsxEditorCollaborationOptions {
826
967
  /** Presence-capable provider connected to the editor-owned replica. */
827
968
  provider?: CollaborationAwareness | null;
828
969
  }
829
- /**
830
- * Props for {@link XlsxEditor}.
831
- */
832
- interface XlsxEditorProps extends XlsxEditorPluginProps {
970
+ interface XlsxDocumentChange {
971
+ version: string;
972
+ }
973
+ interface XlsxHostProps {
974
+ /** Receives the version after a committed edit changes the workbook. */
975
+ onDocumentChange?: (change: XlsxDocumentChange) => void;
976
+ /** Whether Save also downloads a copy. Defaults to true without onSave, false with it. */
977
+ downloadOnSave?: boolean;
978
+ /** Initial scale, clamped to the supported zoom range. Defaults to 1. */
979
+ initialZoom?: number;
980
+ /** Rendered while a supplied file is opening. */
981
+ loadingIndicator?: React.ReactNode;
982
+ /** Inline style overrides for the editor root. */
983
+ style?: React.CSSProperties;
984
+ }
985
+ /** Props for XlsxEditor. */
986
+ interface XlsxInThreadEditorProps extends XlsxEditorPluginProps, XlsxHostProps {
987
+ /** @deprecated False selects the in-thread engine. */
988
+ experimentalWorkerOpen?: false;
989
+ onError?: (error: Error) => void;
833
990
  /** Raw .xlsx bytes to open. When omitted the shell paints a demo frame. */
834
- file?: Uint8Array;
991
+ file?: Uint8Array | ArrayBuffer;
835
992
  /** Download name for the save button; falls back to `workbook.xlsx`. */
836
993
  fileName?: string;
837
- /** Receive saved bytes instead of triggering a browser download. */
994
+ /** Receives saved workbook bytes. */
838
995
  onSave?: (bytes: Uint8Array) => void;
996
+ /** Return true for built-in saving; false or void handles/cancels the request. */
997
+ onSaveRequest?: () => boolean | void | Promise<boolean | void>;
839
998
  /** Called after a user edit changes the workbook. */
840
999
  onChange?: () => void;
841
1000
  /** Open a network-ready Yrs replica and repaint when peer updates arrive. */
@@ -861,10 +1020,54 @@ interface XlsxEditorProps extends XlsxEditorPluginProps {
861
1020
  /** `false` hides the toolbar region, whatever `toolbar` is. */
862
1021
  showToolbar?: boolean;
863
1022
  }
864
- /**
865
- * The xlsx editor React component.
866
- */
867
- declare function XlsxEditor(props: XlsxEditorProps): react.JSX.Element;
1023
+ /** @deprecated Removed in 0.6.0. Use XlsxAsyncEditorProps. */
1024
+ type XlsxWorkerViewerProps = Omit<XlsxInThreadEditorProps, 'onReady' | 'readOnly' | 'collaboration' | 'experimentalWorkerOpen' | keyof XlsxHostProps> & {
1025
+ /** @deprecated Removed in 0.6.0. Omit for the async editor. */
1026
+ [LEGACY_SYNC_API]: true;
1027
+ readOnly: true;
1028
+ collaboration?: undefined;
1029
+ /** Opens in the worker; without it the legacy runtime runs in-thread. */
1030
+ experimentalWorkerOpen: true;
1031
+ onReady?: (api: XlsxWorkerViewerApi) => void | (() => void);
1032
+ };
1033
+ /** @deprecated Removed in 0.6.0. Use XlsxAsyncEditorProps. */
1034
+ type XlsxWorkerEditorProps = Omit<XlsxWorkerViewerProps, 'onReady' | 'readOnly'> & {
1035
+ readOnly?: false;
1036
+ onReady?: (api: XlsxWorkerEditorApi) => void | (() => void);
1037
+ };
1038
+ type XlsxAsyncEditorProps = Omit<XlsxInThreadEditorProps, 'onReady' | 'experimentalWorkerOpen'> & {
1039
+ /** @deprecated Removed in 0.6.0. Omit for the async editor. */
1040
+ [LEGACY_SYNC_API]?: false;
1041
+ /** @deprecated False selects the in-thread engine. */
1042
+ experimentalWorkerOpen?: boolean;
1043
+ onReady?: (api: XlsxAsyncEditorApi) => void | (() => void);
1044
+ };
1045
+ /** @deprecated Removed in 0.6.0. Use XlsxAsyncEditorProps. */
1046
+ type XlsxLegacyEditorProps = Omit<XlsxInThreadEditorProps, keyof XlsxHostProps> & {
1047
+ /** @deprecated Removed in 0.6.0. Omit for the async editor. */
1048
+ [LEGACY_SYNC_API]: true;
1049
+ };
1050
+ type WorkerSessionProps = Omit<XlsxWorkerEditorProps, 'readOnly' | 'onReady'> & {
1051
+ readOnly?: boolean;
1052
+ onReady?: (api: XlsxWorkerEditorApi | XlsxWorkerViewerApi) => void | (() => void);
1053
+ };
1054
+ type GeneralEditorSessionProps = Omit<XlsxLegacyEditorProps, 'experimentalWorkerOpen' | 'onReady'> & {
1055
+ experimentalWorkerOpen?: boolean;
1056
+ onReady?: (api: XlsxEditorApi | XlsxWorkerEditorApi | XlsxWorkerViewerApi) => void | (() => void);
1057
+ };
1058
+ type XlsxEditorProps = XlsxAsyncEditorProps | GeneralEditorSessionProps;
1059
+ declare function XlsxEditor(props: XlsxAsyncEditorProps): React.JSX.Element;
1060
+ declare function XlsxEditor(props: XlsxLegacyEditorProps): React.JSX.Element;
1061
+ declare function XlsxEditor(props: XlsxWorkerViewerProps): React.JSX.Element;
1062
+ declare function XlsxEditor(props: XlsxWorkerEditorProps): React.JSX.Element;
1063
+ declare function XlsxEditor(props: WorkerSessionProps): React.JSX.Element;
1064
+ declare function XlsxEditor(props: XlsxEditorProps): React.JSX.Element;
1065
+
1066
+ declare class XlsxWorkerEditorChunkLoadError extends Error {
1067
+ readonly cause: unknown;
1068
+ readonly code = "chunk-load-failed";
1069
+ constructor(cause: unknown);
1070
+ }
868
1071
 
869
1072
  interface EditorToolbarProps extends ToolbarProps {
870
1073
  /**
@@ -962,17 +1165,6 @@ declare function useTranslation(): {
962
1165
  t: TFunction;
963
1166
  };
964
1167
 
965
- /** Why work queued behind accepted input could not run. */
966
- type XlsxCommandAdmissionCode = Extract<XlsxCommandFailureCode, 'input-failed' | 'document-replaced' | 'target-changed' | 'gesture-active' | 'editor-unavailable'>;
967
- /**
968
- * Raised when work queued behind accepted input cannot run: a command, or a version, read or
969
- * edit-batch call of the editor API.
970
- */
971
- declare class XlsxCommandAdmissionError extends Error {
972
- readonly code: XlsxCommandAdmissionCode;
973
- constructor(code: XlsxCommandAdmissionCode);
974
- }
975
-
976
1168
  /** @experimental */
977
1169
  interface XlsxCommandProviderProps {
978
1170
  /** An editor's `api.commands`; `null` until the editor is ready. */
@@ -1120,4 +1312,4 @@ declare function defineXlsxPlugin<S>(definition: XlsxPluginDefinition<S>): XlsxP
1120
1312
  */
1121
1313
  declare function XlsxPluginToolbar(): React.ReactElement | null;
1122
1314
 
1123
- export { type BorderPreset, type BorderStyle, type CommandReason, type CommandState, EditorToolbar, EditorToolbarContext, type EditorToolbarProps, type FormattingAction, type FormulaBarProps, type HorizontalAlignment, type JsonValue, LocaleProvider, type LocaleProviderProps, type MaybePromise, type MergeAction, type NumberFormat, type PluginCleanupReason, type PluginGrant, type PluginLoadReason, type SelectionFormatting, type SelectionShape, type TextWrapping, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarCommand, type ToolbarCommandArgs, ToolbarCommandButton, type ToolbarCommandButtonProps, type ToolbarCommandProps, ToolbarCommandSelect, type ToolbarCommandSelectProps, ToolbarDropdown, type ToolbarDropdownProps, ToolbarGroup, ToolbarMenuItem, type ToolbarMenuItemProps, ToolbarMenuSeparator, type ToolbarMode, ToolbarOverflow, type ToolbarOverflowProps, type ToolbarProps, ToolbarSeparator, type VerticalAlignment, type XlsxBoundCommand, type XlsxBoundPluginCommand, type XlsxCommandAdmissionCode, XlsxCommandAdmissionError, type XlsxCommandArgs, type XlsxCommandDescriptor, type XlsxCommandDisabledCode, type XlsxCommandFailureCode, type XlsxCommandId, type XlsxCommandOption, XlsxCommandProvider, type XlsxCommandProviderProps, type XlsxCommandResult, type XlsxCommandShortcut, type XlsxCommandState, type XlsxCommandStatus, type XlsxCommandStore, type XlsxCommandValues, XlsxEditor, type XlsxEditorApi, type XlsxEditorCollaborationOptions, type XlsxEditorPluginProps, type XlsxEditorProps, type XlsxNumberFormatValue, type XlsxPlugin, type XlsxPluginCellPosition, type XlsxPluginCommand, type XlsxPluginCommandClient, type XlsxPluginCommandDescriptor, type XlsxPluginCommandId, type XlsxPluginCommandResult, type XlsxPluginCommandState, type XlsxPluginContext, type XlsxPluginDefinition, type XlsxPluginEditClient, type XlsxPluginError, type XlsxPluginErrorPhase, type XlsxPluginEvent, type XlsxPluginFailureCode, type XlsxPluginGeometry, type XlsxPluginGrant, type XlsxPluginLayout, type XlsxPluginNavigation, type XlsxPluginNavigationFailureCode, type XlsxPluginNavigationOptions, type XlsxPluginNavigationResult, type XlsxPluginPanel, type XlsxPluginReadClient, type XlsxPluginRect, type XlsxPluginRefusal, type XlsxPluginSelection, type XlsxPluginSnapshot, XlsxPluginToolbar, XlsxSaveRefusedError, type XlsxSelectCommandId, Toolbar as XlsxToolbar, defineXlsxPlugin, useEditorToolbar, useTranslation, useXlsxCommand, useXlsxCommandState, useXlsxCommands };
1315
+ export { type BorderPreset, type BorderStyle, type CommandReason, type CommandState, EditorToolbar, EditorToolbarContext, type EditorToolbarProps, type FormattingAction, type FormulaBarProps, type HorizontalAlignment, type JsonValue, LocaleProvider, type LocaleProviderProps, type MaybePromise, type MergeAction, type NumberFormat, type PluginCleanupReason, type PluginGrant, type PluginLoadReason, type SelectionFormatting, type SelectionShape, type TextWrapping, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarCommand, type ToolbarCommandArgs, ToolbarCommandButton, type ToolbarCommandButtonProps, type ToolbarCommandProps, ToolbarCommandSelect, type ToolbarCommandSelectProps, ToolbarDropdown, type ToolbarDropdownProps, ToolbarGroup, ToolbarMenuItem, type ToolbarMenuItemProps, ToolbarMenuSeparator, type ToolbarMode, ToolbarOverflow, type ToolbarOverflowProps, type ToolbarProps, ToolbarSeparator, type VerticalAlignment, XlsxAsyncApiSyncAccessError, type XlsxAsyncEditorApi, type XlsxAsyncEditorProps, type XlsxBoundCommand, type XlsxBoundPluginCommand, type XlsxCommandAdmissionCode, XlsxCommandAdmissionError, type XlsxCommandArgs, type XlsxCommandDescriptor, type XlsxCommandDisabledCode, type XlsxCommandFailureCode, type XlsxCommandId, type XlsxCommandOption, XlsxCommandProvider, type XlsxCommandProviderProps, type XlsxCommandResult, type XlsxCommandShortcut, type XlsxCommandState, type XlsxCommandStatus, type XlsxCommandStore, type XlsxCommandValues, type XlsxDocumentChange, XlsxEditor, type XlsxEditorApi, type XlsxEditorCollaborationOptions, type XlsxEditorPluginProps, type XlsxEditorProps, type XlsxInThreadEditorProps, type XlsxLegacyEditorProps, type XlsxNumberFormatValue, XlsxPeerNotReadyError, type XlsxPlugin, type XlsxPluginCellPosition, type XlsxPluginCommand, type XlsxPluginCommandClient, type XlsxPluginCommandDescriptor, type XlsxPluginCommandId, type XlsxPluginCommandResult, type XlsxPluginCommandState, type XlsxPluginContext, type XlsxPluginDefinition, type XlsxPluginEditClient, type XlsxPluginError, type XlsxPluginErrorPhase, type XlsxPluginEvent, type XlsxPluginFailureCode, type XlsxPluginGeometry, type XlsxPluginGrant, type XlsxPluginLayout, type XlsxPluginNavigation, type XlsxPluginNavigationFailureCode, type XlsxPluginNavigationOptions, type XlsxPluginNavigationResult, type XlsxPluginPanel, type XlsxPluginReadClient, type XlsxPluginRect, type XlsxPluginRefusal, type XlsxPluginSelection, type XlsxPluginSnapshot, XlsxPluginToolbar, type XlsxPointPosition, type XlsxProposalRequest, type XlsxProposalResult, XlsxSaveRefusedError, type XlsxSelectCommandId, Toolbar as XlsxToolbar, type XlsxWorkerEditorApi, XlsxWorkerEditorChunkLoadError, XlsxWorkerEditorCollaborationError, type XlsxWorkerEditorProps, XlsxWorkerSessionFailedError, type XlsxWorkerViewerApi, type XlsxWorkerViewerProps, defineXlsxPlugin, useEditorToolbar, useTranslation, useXlsxCommand, useXlsxCommandState, useXlsxCommands };