@sheetxl/react 0.7.27 → 0.7.28-beta.2

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 (257) hide show
  1. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  2. package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +156 -0
  3. package/browser/cjs/index.cjs +24 -24
  4. package/browser/esm/BPJdKxa9KFZWhw7o.mjs +6286 -0
  5. package/browser/esm/index.mjs +19258 -4911
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/CUEW3f18r-pU7F0q.mjs +9 -0
  8. package/node/esm/index.mjs +17035 -3691
  9. package/package.json +10 -11
  10. package/resources/contents.json +60 -0
  11. package/resources/locales/contents.json +114 -0
  12. package/resources/locales/de/clipboard.cmd.json +36 -0
  13. package/resources/locales/de/editor.cmd.json +128 -0
  14. package/resources/locales/de/movable.cmd.json +123 -0
  15. package/resources/locales/de/selection.cmd.json +373 -0
  16. package/resources/locales/de/sheet.cmd.json +1563 -0
  17. package/resources/locales/de/table.cmd.json +83 -0
  18. package/resources/locales/de/ui.msg.json +166 -0
  19. package/resources/locales/de/workbook.cmd.json +282 -0
  20. package/resources/locales/en/clipboard.cmd.json +36 -0
  21. package/resources/locales/en/editor.cmd.json +128 -0
  22. package/resources/locales/en/movable.cmd.json +123 -0
  23. package/resources/locales/en/selection.cmd.json +373 -0
  24. package/resources/locales/en/sheet.cmd.json +1563 -0
  25. package/resources/locales/en/table.cmd.json +83 -0
  26. package/resources/locales/en/ui.msg.json +166 -0
  27. package/resources/locales/en/workbook.cmd.json +282 -0
  28. package/types/index.d.ts +2 -1767
  29. package/types/src/border/StaticBorderRenderer.d.ts +32 -0
  30. package/types/src/border/StyledStrokePath.d.ts +14 -0
  31. package/types/src/border/index.d.ts +4 -0
  32. package/types/src/border/useBorders.d.ts +87 -0
  33. package/types/src/cell/ColumnButton.d.ts +45 -0
  34. package/types/src/cell/CornerTriangle.d.ts +27 -0
  35. package/types/src/cell/FormulaCellRenderer.d.ts +34 -0
  36. package/types/src/cell/SheetCellRenderer.d.ts +52 -0
  37. package/types/src/cell/SheetHeaderRenderer.d.ts +37 -0
  38. package/types/src/cell/index.d.ts +7 -0
  39. package/types/src/cell/useFormulaViewAnchor.d.ts +42 -0
  40. package/types/src/chart/ChartEditor.d.ts +17 -0
  41. package/types/src/chart/PresetChartTypeDescriptors.d.ts +35 -0
  42. package/types/src/chart/index.d.ts +3 -0
  43. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +10 -0
  44. package/types/src/chart/templates/area-stacked-template.json.d.ts +10 -0
  45. package/types/src/chart/templates/area-template.json.d.ts +9 -0
  46. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +10 -0
  47. package/types/src/chart/templates/bar-stacked-template.json.d.ts +10 -0
  48. package/types/src/chart/templates/bar-template.json.d.ts +9 -0
  49. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +10 -0
  50. package/types/src/chart/templates/column-stacked-template.json.d.ts +10 -0
  51. package/types/src/chart/templates/column-template.json.d.ts +9 -0
  52. package/types/src/chart/templates/line-markers-template.json.d.ts +10 -0
  53. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +11 -0
  54. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +11 -0
  55. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +10 -0
  56. package/types/src/chart/templates/line-stacked-template.json.d.ts +10 -0
  57. package/types/src/chart/templates/line-template.json.d.ts +9 -0
  58. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +10 -0
  59. package/types/src/chart/templates/pie-template.json.d.ts +9 -0
  60. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +10 -0
  61. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +10 -0
  62. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +10 -0
  63. package/types/src/chart/templates/scatter-lines-template.json.d.ts +10 -0
  64. package/types/src/chart/templates/scatter-markers-template.json.d.ts +10 -0
  65. package/types/src/clipboard/ClipboardCommands.d.ts +68 -0
  66. package/types/src/clipboard/SheetClipboardLayer.d.ts +22 -0
  67. package/types/src/clipboard/index.d.ts +3 -0
  68. package/types/src/commands/Catalog.d.ts +8 -0
  69. package/types/src/commands/CommandRootProvider.d.ts +36 -0
  70. package/types/src/commands/InputClipboardCommands.d.ts +41 -0
  71. package/types/src/commands/InputClipboardInjector.d.ts +16 -0
  72. package/types/src/commands/MainFocusContext.d.ts +13 -0
  73. package/types/src/commands/PaneScopeProvider.d.ts +40 -0
  74. package/types/src/commands/createTransactionalMiddleware.d.ts +49 -0
  75. package/types/src/commands/index.d.ts +7 -0
  76. package/types/src/context/SheetContext.d.ts +18 -0
  77. package/types/src/context/WorkbookContext.d.ts +20 -0
  78. package/types/src/context/index.d.ts +3 -0
  79. package/types/src/editableLabel/EditableLabel.d.ts +28 -0
  80. package/types/src/editableLabel/index.d.ts +2 -0
  81. package/types/src/editor/EditorCommands.d.ts +98 -0
  82. package/types/src/editor/FunctionPreviewPanel.d.ts +166 -0
  83. package/types/src/editor/NamedHintPanel.d.ts +38 -0
  84. package/types/src/editor/NamedItemsPanel.d.ts +59 -0
  85. package/types/src/editor/SheetCellEditorLayer.d.ts +40 -0
  86. package/types/src/editor/SheetCellInput.d.ts +99 -0
  87. package/types/src/editor/SheetEditable.d.ts +53 -0
  88. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +46 -0
  89. package/types/src/editor/SheetReferenceLayer.d.ts +55 -0
  90. package/types/src/editor/formulaCaret.d.ts +84 -0
  91. package/types/src/editor/formulaEval.d.ts +202 -0
  92. package/types/src/editor/formulaPresentation.d.ts +136 -0
  93. package/types/src/editor/formulaText.d.ts +80 -0
  94. package/types/src/editor/functionArgs.d.ts +111 -0
  95. package/types/src/editor/functionHint.d.ts +37 -0
  96. package/types/src/editor/index.d.ts +18 -0
  97. package/types/src/editor/referencePointNav.d.ts +39 -0
  98. package/types/src/editor/useFormulaHints.d.ts +126 -0
  99. package/types/src/editor/useFormulaInput.d.ts +326 -0
  100. package/types/src/editor/useProtectedEditNotice.d.ts +14 -0
  101. package/types/src/editor/useReferenceMode.d.ts +177 -0
  102. package/types/src/form/FormulaInput.d.ts +86 -0
  103. package/types/src/form/FormulaInputParts.d.ts +94 -0
  104. package/types/src/form/index.d.ts +5 -0
  105. package/types/src/form/useEditCommit.d.ts +174 -0
  106. package/types/src/form/useInputField.d.ts +86 -0
  107. package/types/src/frame/CommandContext.d.ts +179 -0
  108. package/types/src/frame/IFrame.d.ts +17 -0
  109. package/types/src/frame/index.d.ts +3 -0
  110. package/types/src/icons/LogoNoPaddingIcon.d.ts +3 -0
  111. package/types/src/icons/LogoTextNoPaddingIcon.d.ts +4 -0
  112. package/types/src/icons/WaterMark.d.ts +12 -0
  113. package/types/src/icons/chart/ChartAreaIcon.d.ts +5 -0
  114. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +5 -0
  115. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +5 -0
  116. package/types/src/icons/chart/ChartBarIcon.d.ts +5 -0
  117. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +5 -0
  118. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +5 -0
  119. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +5 -0
  120. package/types/src/icons/chart/ChartBubbleIcon.d.ts +5 -0
  121. package/types/src/icons/chart/ChartColumnIcon.d.ts +5 -0
  122. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +5 -0
  123. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +5 -0
  124. package/types/src/icons/chart/ChartLineIcon.d.ts +5 -0
  125. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +5 -0
  126. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +5 -0
  127. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +5 -0
  128. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +5 -0
  129. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +5 -0
  130. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +5 -0
  131. package/types/src/icons/chart/ChartPieIcon.d.ts +5 -0
  132. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +5 -0
  133. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +5 -0
  134. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +5 -0
  135. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +5 -0
  136. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +5 -0
  137. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +5 -0
  138. package/types/src/icons/chart/ThemedChartIcon.d.ts +20 -0
  139. package/types/src/icons/chart/index.d.ts +50 -0
  140. package/types/src/icons/index.d.ts +4 -0
  141. package/types/src/index.d.ts +27 -0
  142. package/types/src/io/WorkbookIO.d.ts +50 -0
  143. package/types/src/io/index.d.ts +2 -0
  144. package/types/src/layer/BorderLayer.d.ts +14 -0
  145. package/types/src/layer/CellErrorLayer.d.ts +49 -0
  146. package/types/src/layer/CellFillLayer.d.ts +15 -0
  147. package/types/src/layer/ConditionalBarLayer.d.ts +41 -0
  148. package/types/src/layer/ConditionalIcons.d.ts +34 -0
  149. package/types/src/layer/ConditionalIconsLayer.d.ts +31 -0
  150. package/types/src/layer/ContextMenuLayer.d.ts +27 -0
  151. package/types/src/layer/HeaderResizerLayer.d.ts +28 -0
  152. package/types/src/layer/HeaderSelectionLayer.d.ts +89 -0
  153. package/types/src/layer/ResizeIndicator.d.ts +19 -0
  154. package/types/src/layer/SheetBackgroundLayer.d.ts +22 -0
  155. package/types/src/layer/SheetCellLayer.d.ts +49 -0
  156. package/types/src/layer/SheetColumnButtonLayer.d.ts +23 -0
  157. package/types/src/layer/SheetGridLineLayer.d.ts +22 -0
  158. package/types/src/layer/SheetHeaderCellLayer.d.ts +30 -0
  159. package/types/src/layer/SheetMovableLayer.d.ts +26 -0
  160. package/types/src/layer/SheetTableCommandLayer.d.ts +16 -0
  161. package/types/src/layer/SpillLayer.d.ts +22 -0
  162. package/types/src/layer/TableLayer.d.ts +22 -0
  163. package/types/src/layer/ValidationIndicatorLayer.d.ts +41 -0
  164. package/types/src/layer/index.d.ts +25 -0
  165. package/types/src/layer/resizeIndicatorState.d.ts +26 -0
  166. package/types/src/layer/useSheetFeatureRegions.d.ts +21 -0
  167. package/types/src/layer/useSheetVisibleCells.d.ts +60 -0
  168. package/types/src/layer/useSheetVisibleDecorations.d.ts +42 -0
  169. package/types/src/layer/useTableHeaderCells.d.ts +22 -0
  170. package/types/src/layer/useVisibleTables.d.ts +27 -0
  171. package/types/src/listener/index.d.ts +3 -0
  172. package/types/src/listener/useModelListener.d.ts +67 -0
  173. package/types/src/listener/useRangeListener.d.ts +15 -0
  174. package/types/src/movable/EmptyFrame.d.ts +16 -0
  175. package/types/src/movable/IMovableArea.d.ts +34 -0
  176. package/types/src/movable/MovableCommands.d.ts +22 -0
  177. package/types/src/movable/MovableFrame.d.ts +48 -0
  178. package/types/src/movable/MovableLayer.d.ts +77 -0
  179. package/types/src/movable/MoveableBundle.d.ts +4 -0
  180. package/types/src/movable/index.d.ts +4 -0
  181. package/types/src/picture/IPictureEditor.d.ts +39 -0
  182. package/types/src/picture/PictureEditor.d.ts +4 -0
  183. package/types/src/picture/index.d.ts +3 -0
  184. package/types/src/selection/SelectionCommands.d.ts +23 -0
  185. package/types/src/selection/SheetSelection.d.ts +53 -0
  186. package/types/src/selection/SheetSelectionLayer.d.ts +30 -0
  187. package/types/src/selection/index.d.ts +4 -0
  188. package/types/src/shape/ShapeEditor.d.ts +16 -0
  189. package/types/src/shape/index.d.ts +2 -0
  190. package/types/src/sheet/ConditionalFormatPresets.d.ts +56 -0
  191. package/types/src/sheet/ISheetElement.d.ts +233 -0
  192. package/types/src/sheet/ISheetHeaderElement.d.ts +138 -0
  193. package/types/src/sheet/NotImplemented.d.ts +3 -0
  194. package/types/src/sheet/SheetCommandProvider.d.ts +57 -0
  195. package/types/src/sheet/SheetCommands.d.ts +75 -0
  196. package/types/src/sheet/SheetElement.d.ts +15 -0
  197. package/types/src/sheet/SheetHeaderElement.d.ts +4 -0
  198. package/types/src/sheet/SheetScrollbar.d.ts +28 -0
  199. package/types/src/sheet/TopLeftCorner.d.ts +17 -0
  200. package/types/src/sheet/index.d.ts +7 -0
  201. package/types/src/slicer/SlicerEditor.d.ts +16 -0
  202. package/types/src/slicer/index.d.ts +2 -0
  203. package/types/src/tabStrip/SheetTab.d.ts +41 -0
  204. package/types/src/tabStrip/Sortable.d.ts +66 -0
  205. package/types/src/tabStrip/Tab.d.ts +19 -0
  206. package/types/src/tabStrip/TabStrip.d.ts +41 -0
  207. package/types/src/tabStrip/TabStripItem.d.ts +36 -0
  208. package/types/src/tabStrip/TabStripRow.d.ts +9 -0
  209. package/types/src/tabStrip/index.d.ts +7 -0
  210. package/types/src/table/TableCommands.d.ts +16 -0
  211. package/types/src/taskPane/ITaskPane.d.ts +72 -0
  212. package/types/src/taskPane/TaskPaneArea.d.ts +144 -0
  213. package/types/src/taskPane/TaskPaneFrame.d.ts +48 -0
  214. package/types/src/taskPane/TaskPaneRegistry.d.ts +108 -0
  215. package/types/src/taskPane/TaskPaneStrip.d.ts +33 -0
  216. package/types/src/taskPane/TaskPaneTitle.d.ts +24 -0
  217. package/types/src/taskPane/index.d.ts +7 -0
  218. package/types/src/taskPane/useTaskPane.d.ts +29 -0
  219. package/types/src/theme/DocThemesContext.d.ts +3 -0
  220. package/types/src/theme/DocThemesProvider.d.ts +15 -0
  221. package/types/src/theme/ThemeState.d.ts +19 -0
  222. package/types/src/theme/buildDocThemeCSS.d.ts +16 -0
  223. package/types/src/theme/buildOOXMLThemeCSS.d.ts +13 -0
  224. package/types/src/theme/createCSSSystemLookup.d.ts +51 -0
  225. package/types/src/theme/index.d.ts +11 -0
  226. package/types/src/theme/useAppColorScheme.d.ts +15 -0
  227. package/types/src/theme/useDocThemes.d.ts +3 -0
  228. package/types/src/theme/useGridColorScheme.d.ts +20 -0
  229. package/types/src/theme/useSystemColors.d.ts +44 -0
  230. package/types/src/undo/UndoCommands.d.ts +28 -0
  231. package/types/src/undo/UndoManagerContext.d.ts +14 -0
  232. package/types/src/undo/index.d.ts +3 -0
  233. package/types/src/workbook/DefaultRenderers.d.ts +14 -0
  234. package/types/src/workbook/GlobalWorkbookElement.d.ts +10 -0
  235. package/types/src/workbook/IWorkbookElement.d.ts +178 -0
  236. package/types/src/workbook/WindowChrome.d.ts +61 -0
  237. package/types/src/workbook/WorkbookCommandContributor.d.ts +24 -0
  238. package/types/src/workbook/WorkbookCommands.d.ts +97 -0
  239. package/types/src/workbook/WorkbookElement.d.ts +9 -0
  240. package/types/src/workbook/WorkbookStrip.d.ts +73 -0
  241. package/types/src/workbook/index.d.ts +17 -0
  242. package/types/src/workbook/resolveWorkbookInput.d.ts +27 -0
  243. package/types/src/workbook/useResolvedWorkbook.d.ts +31 -0
  244. package/types/src/workbook/useWindowChrome.d.ts +24 -0
  245. package/types/src/workbook/useWorkbookApp.d.ts +47 -0
  246. package/types/src/workbook/useWorkbookEncrypted.d.ts +15 -0
  247. package/types/src/workbook/useWorkbookFormat.d.ts +18 -0
  248. package/types/src/workbook/useWorkbookName.d.ts +13 -0
  249. package/types/src/workbook/useWorkbookSaveState.d.ts +29 -0
  250. package/browser/cjs/DNki9dGbSn_gUfd3.cjs +0 -7
  251. package/browser/cjs/Da611GSWMp5ncOGO.cjs +0 -16
  252. package/browser/cjs/F8ZECny0CwW2OV5X.cjs +0 -161
  253. package/browser/esm/BYGSBjns_83FWXAx.mjs +0 -3905
  254. package/browser/esm/CmObbQiLq9AAM7-q.mjs +0 -394
  255. package/browser/esm/Daa2g2QALCIHFgqP.mjs +0 -1377
  256. package/node/assets/style.css +0 -1
  257. package/node/esm/Bu9xI_rgkuupQ2AO.mjs +0 -11
@@ -0,0 +1,3 @@
1
+ import { IThemeCollection } from '@sheetxl/sdk';
2
+ export declare const DocThemesContext: import('react').Context<IThemeCollection | null>;
3
+ //# sourceMappingURL=DocThemesContext.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { IThemeCollection } from '@sheetxl/sdk';
2
+ export interface DocThemesProviderProps {
3
+ /**
4
+ * A custom list of DocThemes to use.
5
+ */
6
+ themes: IThemeCollection;
7
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
8
+ }
9
+ /**
10
+ * This component takes a `themes` prop.
11
+ * It makes the `themes` available down the React tree thanks to React context.
12
+ * This component should preferably be used at **the root of your component tree**.
13
+ */
14
+ export declare const DocThemesProvider: (props: DocThemesProviderProps) => import("react").JSX.Element;
15
+ //# sourceMappingURL=DocThemesProvider.d.ts.map
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Persistence keys for the spreadsheet's self-managed appearance state.
3
+ *
4
+ * @remarks
5
+ * Owned via `usePersistenceState` against the surrounding `PersistenceStateProvider` (Studio, or a
6
+ * standalone host). A consumer that wants to read or set them (e.g. a VS Code host driving the mode from
7
+ * its editor theme) does so with the same key, or by supplying its own provider/store. They are
8
+ * intentionally not component props — appearance is *state*, theme customization is *config* (see
9
+ * `Studio.theme`).
10
+ */
11
+ export declare const ThemeStateKey: {
12
+ /** The user's light/dark override (`null` = follow system). */
13
+ readonly Mode: "themeMode";
14
+ /** Whether the grid renders dark when the app is dark (Excel-style: dark app, optional dark grid). */
15
+ readonly DarkGrid: "enableDarkGrid";
16
+ /** Whether images invert in a dark grid. */
17
+ readonly DarkImages: "enableDarkImages";
18
+ };
19
+ //# sourceMappingURL=ThemeState.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { ITheme } from '@sheetxl/sdk';
2
+ /**
3
+ * The **document-color** stylesheet — the workbook's OOXML document theme (`srgbClr` + the theme scheme →
4
+ * `--sxl-doc-*`), the **model-driven** sibling of the `--sxl-sys-color-*` aliases ({@link buildOOXMLThemeCSS}).
5
+ * Same per-instance `@scope`d model as the sys/token sheets (pass the instance's scope selector).
6
+ *
7
+ * Both the **light AND dark** values are emitted, as `[data-sxl-theme-mode="light"|"dark"]` rules (resolved
8
+ * once via `toCSS(false)` / `toCSS(true)`). So a mode flip is a **pure attribute change** — the grid re-renders
9
+ * in the correct document theme instantly, with no JS re-resolution and no baked-snapshot staleness. Only a
10
+ * change to the document THEME itself regenerates this sheet (not a mode toggle).
11
+ *
12
+ * Wraps the generic {@link buildThemeCSS} (utils-react) — OOXML/`--sxl-doc-*` is a react-layer concept — with
13
+ * the doc-color records cast to the token shape (the emitter is a generic `--sxl-*` matrix, agnostic to keys).
14
+ */
15
+ export declare const buildDocThemeCSS: (theme: ITheme, defaultFontSize?: number, layer?: string, scope?: string) => string;
16
+ //# sourceMappingURL=buildDocThemeCSS.d.ts.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The OOXML **system-color** stylesheet — the `--sxl-sys-color-*` environment layer, emitted as the same aliases
3
+ * inside the `app`, `grid`, and `header` surface blocks (so every surface adopter resolves them against its
4
+ * own tokens; decision 4). It wraps the generic {@link buildThemeCSS} (utils-react) — OOXML lives here in
5
+ * `@sheetxl/react`, not below — passing the sys aliases as the per-surface records.
6
+ *
7
+ * The sys aliases are **just another surface layer**, so each top-level instance (`SheetElement`,
8
+ * `WorkbookElement`, studio) emits its own copy `@scope`d to its instance root — same per-instance `useId`
9
+ * model as the token sheets. Pass the instance's scope selector. The `--sxl-doc-*` document colors are
10
+ * model-driven and stay with `SheetElement` for now.
11
+ */
12
+ export declare const buildOOXMLThemeCSS: (layer?: string, scope?: string) => string;
13
+ //# sourceMappingURL=buildOOXMLThemeCSS.d.ts.map
@@ -0,0 +1,51 @@
1
+ import { IColor } from '@sheetxl/sdk';
2
+ /**
3
+ * Options for {@link createCSSSystemLookup}.
4
+ */
5
+ export interface CSSSystemLookupOptions {
6
+ /**
7
+ * Prefix for the CSS custom properties read for each system color.
8
+ * The variable name is `${prefix}${named.toLowerCase()}` (with an optional `-dark` variant).
9
+ * @defaultValue `'--sxl-sys-color-'`
10
+ */
11
+ prefix?: string;
12
+ /**
13
+ * The element under which the probe is placed and whose inherited custom properties are read.
14
+ * Defaults to `document.body`. Provide a getter so the element can be resolved lazily.
15
+ * Use this when the `--sxl-sys-color-*` variables are scoped to a container rather than `:root`.
16
+ */
17
+ element?: () => Element | null;
18
+ }
19
+ /**
20
+ * A {@link IColor.SystemLookup} backed by CSS custom properties, with an `invalidate()` method.
21
+ */
22
+ export type CSSSystemLookup = IColor.SystemLookup & {
23
+ /**
24
+ * Clears the internal cache and bumps the global system epoch
25
+ * (see `Color.invalidateSystemColors`). Call when the host theme changes.
26
+ */
27
+ invalidate: () => void;
28
+ };
29
+ /**
30
+ * Creates a {@link IColor.SystemLookup} that resolves system colors (e.g. `windowText`,
31
+ * `window`) from CSS custom properties on the document.
32
+ *
33
+ * @remarks
34
+ * A host (for example the VSCode extension or a MUI app) defines variables like
35
+ * `--sxl-sys-color-windowtext` / `--sxl-sys-color-window` (optionally `--sxl-sys-color-windowtext-dark`) and
36
+ * installs this as the concrete default lookup (see {@link installSystemColorLookup}). Note that
37
+ * grid *rendering* does not use this — it emits CSS `var()` directly (see {@link useSystemColors});
38
+ * this lookup is for `toRGBA`-based consumers (color pickers, contrast).
39
+ *
40
+ * Resolution uses a hidden **probe element**: the variable is applied to the probe's `color`
41
+ * and the *computed* value is read back. This forces the browser to fully resolve `var()`
42
+ * chains (e.g. `var(--vscode-editor-foreground)`) **and** CSS system keywords (`Canvas`,
43
+ * `CanvasText`) down to an `rgb(...)` value — neither of which is reliable when reading the
44
+ * custom property string directly.
45
+ *
46
+ * Results are cached per `(name, darkMode)`. Returning `null` (variable unset or no DOM) lets
47
+ * the color fall through to its `lastClr` / built-in baked value, so this is always safe to
48
+ * install — including in headless / Node environments.
49
+ */
50
+ export declare const createCSSSystemLookup: (options?: CSSSystemLookupOptions) => CSSSystemLookup;
51
+ //# sourceMappingURL=createCSSSystemLookup.d.ts.map
@@ -0,0 +1,11 @@
1
+ export * from './DocThemesContext';
2
+ export * from './DocThemesProvider';
3
+ export * from './useDocThemes';
4
+ export * from './createCSSSystemLookup';
5
+ export * from './useSystemColors';
6
+ export * from './buildOOXMLThemeCSS';
7
+ export * from './buildDocThemeCSS';
8
+ export * from './ThemeState';
9
+ export * from './useGridColorScheme';
10
+ export * from './useAppColorScheme';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { ThemeMode } from '@sheetxl/utils-react';
2
+ /**
3
+ * The app chrome's resolved light/dark scheme — the sibling of `useGridColorScheme`, before the
4
+ * *Enable Dark Grid* gate that one applies.
5
+ *
6
+ * @remarks
7
+ * Read by anything that must paint as app chrome while rendering inside a surface that flips mode — the
8
+ * grid's own frame is drawn from within the grid, so it sets `themeSurfaceProps('app', useAppColorScheme())`
9
+ * to select the app cell explicitly. The mode is not optional there: `[mode] [surface]` is a descendant
10
+ * rule, and both the workbook root (app mode) and the sheet (grid mode) are ancestors, so CSS would pick by
11
+ * source order rather than proximity. Stating the mode selects the compound `[mode][surface]` cell, which is
12
+ * emitted last and wins.
13
+ */
14
+ export declare const useAppColorScheme: () => ThemeMode;
15
+ //# sourceMappingURL=useAppColorScheme.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { IThemeCollection } from '@sheetxl/sdk';
2
+ export declare const useDocThemes: () => IThemeCollection;
3
+ //# sourceMappingURL=useDocThemes.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { ThemeMode } from '@sheetxl/utils-react';
2
+ /**
3
+ * The grid body's resolved light/dark scheme — the single source of the grid's mode.
4
+ *
5
+ * Derived from the shared appearance preference: the user's light/dark override
6
+ * (`ThemeStateKey.Mode`, resolved via `prefers-color-scheme` when unset), gated by *Enable Dark Grid*
7
+ * (`ThemeStateKey.DarkGrid`, default off) so the grid stays light in a dark app unless opted in.
8
+ *
9
+ * Because it reads the shared (module-singleton) preference store, every caller — the grid surface
10
+ * (`SheetElement`) **and** chrome that must match the grid but renders outside its DOM (the table-style
11
+ * preview, the cell-style / color pickers) — resolves the *same* value with no prop-threading and no
12
+ * drift from the studio (which reads the same keys the same way).
13
+ *
14
+ * A consumer uses it to set `data-sxl-theme-surface="grid"` + `data-sxl-theme-mode={scheme}` on its own
15
+ * element, then resolves `--sxl-*` from the cascade / `getComputedStyle`.
16
+ *
17
+ * @param override Optional controlled scheme; when provided it wins over the preference.
18
+ */
19
+ export declare const useGridColorScheme: (override?: ThemeMode) => ThemeMode;
20
+ //# sourceMappingURL=useGridColorScheme.d.ts.map
@@ -0,0 +1,44 @@
1
+ import { IColor } from '@sheetxl/sdk';
2
+ import { CSSSystemLookup } from './createCSSSystemLookup';
3
+ /**
4
+ * Injects the default `--sxl-sys-color-*` CSS variables — the built-in (baked) system color
5
+ * definitions — as a low-specificity `:root` stylesheet (idempotent).
6
+ *
7
+ * @remarks
8
+ * `IColor.toCSS()` emits `var(--sxl-sys-color-windowtext, …)` for system/auto colors, so the browser
9
+ * resolves them in place — per DOM subtree, exactly like CSS. These defaults make the full
10
+ * `--sxl-sys-color-*` palette a visible, overridable contract: a host (MUI app, VSCode extension)
11
+ * themes the grid (or an individual widget) by overriding the variables on a container. Using a
12
+ * `:root` stylesheet (not inline styles) keeps specificity low so host overrides win.
13
+ */
14
+ export declare const installSystemColorDefaults: () => void;
15
+ /**
16
+ * Builds `--sxl-sys-color-*` CSS variable overrides from a partial set of {@link IColor.Named} system
17
+ * colors, so that system/auto colors (which `IColor.toCSS()` emits as `var(--sxl-sys-color-*)`) resolve
18
+ * to the provided values rather than the global host mapping.
19
+ *
20
+ * @remarks
21
+ * Used by the grid container ({@link SheetElement}) and by UI rendered *outside* the grid subtree
22
+ * that must still match the grid's light/dark intent — most notably a color picker popup, which is
23
+ * portaled and would otherwise inherit the host's `--sxl-sys-color-*` (e.g. a light grid in a dark host
24
+ * would show the host's dark `auto` color). Names are lower-cased to match the variable
25
+ * `IColor.toCSS()` references; centralizing that here keeps callers from drifting.
26
+ */
27
+ export declare const createSystemColorVars: (colors: Partial<Record<IColor.Named, string>>) => Record<string, string>;
28
+ /**
29
+ * Ensures the default system-color CSS variables are present (see {@link installSystemColorDefaults}).
30
+ * Wired into `SheetElement`, so the grid themes from `--sxl-sys-color-*` out of the box.
31
+ */
32
+ export declare const useSystemColors: () => void;
33
+ /**
34
+ * Optionally installs a **global** concrete CSS system-color lookup, for `toRGBA`-based
35
+ * consumers (color pickers, contrast via `toBlackOrWhite`) that need an actual number rather
36
+ * than a CSS `var()`.
37
+ *
38
+ * @remarks
39
+ * Rendering does **not** need this — it uses CSS `var()` (the browser resolves `--sxl-sys-color-*`).
40
+ * This is opt-in for hosts that want concrete system colors resolved from the host theme. Returns
41
+ * the lookup so the host can `invalidate()` it when the theme changes.
42
+ */
43
+ export declare const installSystemColorLookup: () => CSSSystemLookup;
44
+ //# sourceMappingURL=useSystemColors.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { RemoveListener, UndoManager } from '@sheetxl/utils';
2
+ import { Command, IReactNotifier } from '@sheetxl/utils-react';
3
+ /**
4
+ * Undo/redo command **behavior**. A **plain function, not a hook**: pure imperative work over two non-React
5
+ * objects (the contribution + the `manager`), so it stays React-free, unit-testable without a renderer, and
6
+ * usable from a non-React host. It takes the **contribution** (the authoring facet), not the raw scope —
7
+ * least privilege, and the contribution is what tracks its keys for automatic teardown. The command chrome
8
+ * (label / description / shortcut / tags) lives in the catalog (`sheet.cmd.en.json`); the cascade merges the
9
+ * two.
10
+ *
11
+ * @returns ONLY its own external-subscription disposer (the stack listener). It does **not** remove the
12
+ * commands — that's the owner's (`dispose()` / `contribution.remove()`).
13
+ *
14
+ * @remarks
15
+ * Each command's `callback` + dynamic `disabledReasons` (empty stack) + dynamic `description`
16
+ * (`"Undo <top>"`) are **re-contributed on every `onStackChange`** — the definitions model's "dynamic
17
+ * via re-contribute" (`updateCommand` itself bumps; no separate `invalidate()`).
18
+ *
19
+ * Force-disable (e.g. sheet protection) is **not** handled here — it's a cross-cutting concern: add a
20
+ * `disabledReason` from a parent scope (the `mutator`-style reducer), which accumulates with these.
21
+ */
22
+ /** The single `data` bundle {@link contributeUndoCommands} takes (the `DynamicCommandContributor` shape). */
23
+ export interface UndoCommandData {
24
+ manager: UndoManager | null;
25
+ notifier?: IReactNotifier;
26
+ }
27
+ export declare function contributeUndoCommands(contribution: Command.CommandContribution, data: UndoCommandData): RemoveListener;
28
+ //# sourceMappingURL=UndoCommands.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { UndoManager } from '@sheetxl/utils';
2
+ /**
3
+ * The **per-workbook** {@link UndoManager} — published by `WorkbookElement` (which owns it, over its
4
+ * workbook's transactions) and read by the sheet's transactional middleware (in
5
+ * {@link SheetCommandProvider}) so its **F4-repeat** (`setRepeatableOperation`) and the `redo` command
6
+ * (`redo()`) act on the **same** instance. One manager per live workbook (the double-buffer needs this),
7
+ * shared *down* to the sheet layer rather than duplicated.
8
+ *
9
+ * `null` outside a command tree (a bare chromeless grid) — the middleware then simply disables repeat.
10
+ */
11
+ export declare const UndoManagerContext: import('react').Context<UndoManager | null>;
12
+ /** The nearest per-workbook undo manager, or `null` outside a command tree. */
13
+ export declare const useUndoManager: () => UndoManager | null;
14
+ //# sourceMappingURL=UndoManagerContext.d.ts.map
@@ -0,0 +1,3 @@
1
+ export * from './UndoCommands';
2
+ export * from './UndoManagerContext';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { LoadingPanelProps } from '@sheetxl/utils-react';
3
+ import { SheetElementProps } from '../sheet';
4
+ import { WorkbookStripProps } from './WorkbookStrip';
5
+ /**
6
+ * Default renderers for {@link WorkbookElement}.
7
+ *
8
+ * @remarks
9
+ * These can be replaced by host application layers as needed.
10
+ */
11
+ export declare const renderWorkbookSheet: (props: SheetElementProps) => React.ReactElement;
12
+ export declare const renderWorkbookStrip: (props: WorkbookStripProps) => React.ReactElement;
13
+ export declare const renderWorkbookLoading: (props: LoadingPanelProps) => React.ReactElement;
14
+ //# sourceMappingURL=DefaultRenderers.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { IWorkbookElement } from './IWorkbookElement';
2
+ export declare const setGlobalIWorkbookElement: (workbookElement: IWorkbookElement) => Promise<void>;
3
+ /**
4
+ * By default we will print examples message if dev and eval only
5
+ *
6
+ * @param forcePrintExamples
7
+ * @hidden
8
+ */
9
+ export declare const setPrintExamplesOnLoad: (forcePrintExamples: boolean) => void;
10
+ //# sourceMappingURL=GlobalWorkbookElement.d.ts.map
@@ -0,0 +1,178 @@
1
+ import { default as React } from 'react';
2
+ import { UndoManager } from '@sheetxl/utils';
3
+ import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
4
+ import { LoadingPanelProps, ErrorPanelProps, RenderFloatPanel, FloatPanelProps, ThemeMode, Command } from '@sheetxl/utils-react';
5
+ import { SheetElementProps, ISheetElement } from '../sheet';
6
+ import { SheetEditable } from '../editor';
7
+ import { WorkbookStripProps } from './WorkbookStrip';
8
+ /**
9
+ * Workbook specific attributes beyond HTMLDivElement.
10
+ */
11
+ export interface IWorkbookAttributes {
12
+ /**
13
+ * Retrieve the workbook model associated with this workbook element.
14
+ */
15
+ getWorkbook: () => IWorkbook;
16
+ /**
17
+ * Retrieve the sheet element associated with this workbook element.
18
+ * `null` before the sheet has mounted.
19
+ */
20
+ getSheetElement: () => ISheetElement | null;
21
+ /**
22
+ * Retrieve the viewport element associated with this workbook element.
23
+ * `null` before the viewport has mounted.
24
+ */
25
+ getViewportElement: () => HTMLElement | null;
26
+ /**
27
+ * The per-workbook `workbook` command scope this element owns (per GRID-BUFFERING-PLAN: each
28
+ * `WorkbookElement` owns its own scope + undo manager for safe double-mount). Exposed so an
29
+ * out-of-tree host — e.g. a hoisted task-pane area, which no longer renders inside this element's
30
+ * scope — can bridge it via `CommandScopeContext` and resolve the workbook commands
31
+ * (`insertFunction` / `executeScript` / `undo` / `redo`) against the SHOWN workbook.
32
+ *
33
+ * `null` until the scope is created (or for a bare chromeless grid with no ambient command root).
34
+ */
35
+ getCommandScope: () => Command.CommandScope | null;
36
+ /**
37
+ * For runtime type checking
38
+ */
39
+ isWorkbookElement: () => true;
40
+ }
41
+ /**
42
+ * Type returned via ref property
43
+ */
44
+ export interface IWorkbookElement extends HTMLDivElement, IWorkbookAttributes {
45
+ }
46
+ export type WorkbookLoadEvent = {
47
+ source: IWorkbookElement;
48
+ };
49
+ /**
50
+ * Properties and methods available on the workbook element.
51
+ */
52
+ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'autoFocus'>, React.Attributes {
53
+ /**
54
+ * The workbook to render: a live {@link IWorkbook}, a `Promise` for one, or
55
+ * {@link IWorkbookIO.ReadOptions} to read one from a source. If omitted (or an empty object), a
56
+ * default workbook is created. A promise / read-options input shows the loading panel while
57
+ * resolving and the error panel ({@link WorkbookElementProps.renderWorkbookError}) on failure.
58
+ *
59
+ * This can be accessed (once resolved) via the workbook ref.
60
+ */
61
+ workbook?: IWorkbook | Promise<IWorkbook> | IWorkbookIO.ReadOptions;
62
+ /**
63
+ * Controlled override for the app (chrome) light/dark scheme. When omitted, the workbook self-sources
64
+ * it from the shared appearance preference (`ThemeStateKey.Mode`, resolved via `prefers-color-scheme`).
65
+ */
66
+ colorScheme?: ThemeMode;
67
+ /**
68
+ * Controlled override for the grid-body scheme (stays light in a dark app when *Enable Dark Grid* is
69
+ * off). When omitted, derived from {@link colorScheme} + the `ThemeStateKey.DarkGrid` preference.
70
+ */
71
+ gridColorScheme?: ThemeMode;
72
+ /**
73
+ * Callback for when the workbook is loaded (first render). Useful for hiding/showing
74
+ * loading panels.
75
+ */
76
+ onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
77
+ /**
78
+ * A custom undo manager.
79
+ *
80
+ * @defaultValue A {@link TransactionUndoManager} bound to the workbook's transaction store.
81
+ */
82
+ undoManager?: UndoManager;
83
+ /**
84
+ * Focus the formula-bar name box (Alt+F3 / `activeNameBox`) — a bridge from a host shell (e.g. studio)
85
+ * to the workbook-ops command, until the name box has a react home. Wired into the per-workbook
86
+ * command scope's workbook commands.
87
+ */
88
+ focusNameBox?: () => void;
89
+ /**
90
+ * This doesn't influence # of tabs just the visibility of the widget.
91
+ *
92
+ * @defaultValue 'workbook model but can be overridden'
93
+ */
94
+ showTabs?: boolean;
95
+ /**
96
+ * Allow for customizations on tabs.
97
+ */
98
+ propsTabs?: Partial<WorkbookStripProps>;
99
+ /**
100
+ * Render custom tabs.
101
+ */
102
+ renderTabs?: (props: WorkbookStripProps) => React.ReactElement;
103
+ /**
104
+ * Props for the context menu.
105
+ */
106
+ propsContextMenu?: any;
107
+ /**
108
+ * Render custom context menu. (chrome - no default)
109
+ */
110
+ renderContextMenu?: (props: any) => React.ReactElement;
111
+ /**
112
+ * Render custom filter/column menu. (chrome - no default)
113
+ */
114
+ renderColumnMenu?: (props: any) => React.ReactElement;
115
+ /**
116
+ * Render custom movable menu. (chrome - no default)
117
+ */
118
+ renderMovableMenu?: (props: any) => React.ReactElement;
119
+ /**
120
+ * Allow for customizations on the floating surface used for the workbook's popups.
121
+ */
122
+ propsFloatPanel?: Partial<FloatPanelProps>;
123
+ /**
124
+ * Render the floating surface used for the workbook's own popups (e.g. context menus).
125
+ * Defaults to the neutral `FloatPanel`; UI layers inject a themed surface (e.g. MUI Paper).
126
+ */
127
+ renderFloatPanel?: RenderFloatPanel;
128
+ /**
129
+ * Allow for customizations on loading panels.
130
+ */
131
+ propsWorkbookLoading?: Partial<LoadingPanelProps>;
132
+ /**
133
+ * Assign a custom loading panel.
134
+ */
135
+ renderWorkbookLoading?: (props: LoadingPanelProps) => React.ReactElement;
136
+ /**
137
+ * Custom error panel, shown when a `Promise` / {@link IWorkbookIO.ReadOptions} {@link WorkbookElementProps.workbook}
138
+ * fails to resolve. Defaults to a minimal message. (Studio supplies a themed panel.)
139
+ */
140
+ renderWorkbookError?: (props: ErrorPanelProps) => React.ReactElement;
141
+ /**
142
+ * The app-created editor for the new always-mounted cell editor. Pass the SAME stable
143
+ * {@link IEditable} instance here and to the formula bar for free two-way sync; this forwards it to
144
+ * the sheet's editor layer.
145
+ */
146
+ editable?: SheetEditable;
147
+ /**
148
+ * Allow for customizations on the sheet.
149
+ */
150
+ propsSheet?: Partial<SheetElementProps>;
151
+ /**
152
+ * Render custom ISheetElement.
153
+ */
154
+ renderSheet?: (props: SheetElementProps) => React.ReactElement;
155
+ /**
156
+ * Allows users to Wrap stage children in Top level Context.
157
+ */
158
+ wrapperMain?: (children: React.ReactNode) => React.ReactElement;
159
+ /**
160
+ * Show the horizontal scrollbar.
161
+ */
162
+ showHorizontalScrollbar?: boolean;
163
+ /**
164
+ * Show the vertical scrollbar.
165
+ */
166
+ showVerticalScrollbar?: boolean;
167
+ /**
168
+ * Will autofocus to the sheet.
169
+ *
170
+ * @defaultValue false
171
+ */
172
+ autoFocus?: boolean | FocusOptions;
173
+ /**
174
+ * Ref for the workbook element.
175
+ */
176
+ ref?: React.Ref<IWorkbookElement>;
177
+ }
178
+ //# sourceMappingURL=IWorkbookElement.d.ts.map
@@ -0,0 +1,61 @@
1
+ export interface WindowChromeOptions {
2
+ /**
3
+ * Manage `document.title` from the workbook name + a leading `●` when there are unsaved changes.
4
+ *
5
+ * - `true` (default): capture the current `document.title` as the base (e.g. the app name).
6
+ * - a string: use it as the base.
7
+ * - `false`: leave `document.title` alone.
8
+ *
9
+ * The title becomes `"<name> - <base>"` (or just `"<base>"` for an unnamed workbook), with a
10
+ * leading `"● "` while dirty.
11
+ */
12
+ documentTitle?: boolean | string;
13
+ /**
14
+ * When `true` (default), install a `beforeunload` guard that prompts the browser's
15
+ * "leave site / unsaved changes" dialog while the workbook is dirty.
16
+ */
17
+ confirmOnClose?: boolean;
18
+ /**
19
+ * Suppress browser keyboard shortcuts so they don't fire the browser instead of the app.
20
+ *
21
+ * - `true` (default): the {@link DEFAULT_GUARD_KEYS} (Ctrl/Cmd + O/S/W/N/T/M) plus Alt+Arrows.
22
+ * - a string array: those keys (with Ctrl/Cmd), plus Alt+Arrows.
23
+ * - `false`: don't touch the keyboard.
24
+ */
25
+ keyboardGuard?: boolean | string[];
26
+ }
27
+ /**
28
+ * Manages the single-per-window app chrome for a workbook: the document/tab title (with an unsaved
29
+ * marker), an unsaved-changes close prompt, and a browser keyboard guard.
30
+ *
31
+ * @remarks
32
+ * Framework-agnostic (no React) — {@link useWindowChrome} drives it for React apps. These are
33
+ * *window-level* concerns that an embeddable widget (e.g. `Studio`) must NOT own, so they live here
34
+ * as an opt-in helper for apps that own the whole window. It is **value-driven**: the consumer
35
+ * pushes the current `(name, dirty)` via {@link update} (from `IWorkbook.onNameChange` and a
36
+ * `TransactionSaveStateManager`) — it holds no model references of its own.
37
+ */
38
+ export declare class WindowChrome {
39
+ private readonly documentTitle;
40
+ private readonly confirmOnClose;
41
+ private readonly guardKeys;
42
+ private name;
43
+ private dirty;
44
+ private removeLangListener;
45
+ private base;
46
+ private originalTitle;
47
+ private windowInstalled;
48
+ constructor(options?: WindowChromeOptions);
49
+ /**
50
+ * Push the current display state. Window-level listeners (beforeunload, keyboard) are installed
51
+ * on the first call and read the pushed state live.
52
+ */
53
+ update(name: string | null, dirty: boolean): void;
54
+ /** Remove all listeners and restore the original `document.title`. */
55
+ dispose(): void;
56
+ private installWindowListeners;
57
+ private applyTitle;
58
+ private readonly handleBeforeUnload;
59
+ private readonly handleKey;
60
+ }
61
+ //# sourceMappingURL=WindowChrome.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { UndoManager } from '@sheetxl/utils';
2
+ import { Command } from '@sheetxl/utils-react';
3
+ import { WorkbookCommandData } from './WorkbookCommands';
4
+ /**
5
+ * The `data` bundle for the `workbook` contributor — the workbook-command data (incl. the shared cell
6
+ * editable, read by the `insertFunction` picker) plus the per-workbook undo manager (its undo/redo behavior
7
+ * is contributed when present). One bundle carried by the {@link Command.CommandScopeSpec}.
8
+ */
9
+ export interface WorkbookCommandContributorData extends WorkbookCommandData {
10
+ /** The per-workbook {@link UndoManager}; when present, undo/redo behavior is contributed onto this scope. */
11
+ manager?: UndoManager | null;
12
+ }
13
+ /**
14
+ * The `workbook` feature's command contributor: attaches the per-workbook **behavior** — undo/redo (over
15
+ * `data.manager`) + the workbook model ops (sheet-ops / view / name / style / find). Static chrome is seeded
16
+ * at module init (`registerReactCommandCatalogs`), not here. Stateless — the model + services ride in `data`.
17
+ *
18
+ * @remarks
19
+ * undo/redo and the workbook ops are **non-transactional** (this scope carries no `tx` middleware): undo
20
+ * runs its own manager, workbook model ops self-transact. undo chrome is registered into both `sheet` (owner)
21
+ * and `workbook` (borrower); its behavior is contributed here on the `workbook` node.
22
+ */
23
+ export declare const WorkbookCommandContributor: Command.CommandContributor<WorkbookCommandContributorData>;
24
+ //# sourceMappingURL=WorkbookCommandContributor.d.ts.map