@sheetxl/react 0.8.0-beta.10 → 0.8.0-beta.11

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 (233) hide show
  1. package/browser/esm/{CYoUd5KIl7W3AsxH.mjs → 1-LEUre9ZLG0OYYB.mjs} +24 -23
  2. package/browser/esm/94dxo1A-z8lgiiGw.mjs +128 -0
  3. package/browser/esm/{BwRduT8FTrk5n72r.mjs → B26QVfjer2oY2ewK.mjs} +1 -1
  4. package/browser/esm/B93LSmhnvkxNXTq-.mjs +42 -0
  5. package/browser/esm/{BZcQ-KYwS62Ut45c.mjs → BQYS2Yf-EAV_tBLr.mjs} +1 -1
  6. package/browser/esm/BegvsXeRs7e-9t8k.mjs +8 -0
  7. package/browser/esm/Bl2BFCQ00fotauKB.mjs +36 -0
  8. package/browser/esm/{Cfe0kofqVKGxLqO6.mjs → Bos4Rkp8UTF7QXUB.mjs} +1 -1
  9. package/browser/esm/{Dd-ZybXAgoq9pgGv.mjs → C1pc9F4Rt2C5FKUo.mjs} +1 -1
  10. package/browser/esm/{C6urN77szrYwODXF.mjs → CPnnESfZz2jjJd82.mjs} +1 -1
  11. package/browser/esm/CRi6DQ3UXmPEv-w_.mjs +729 -0
  12. package/browser/esm/{BuvXl14hs-1CvjeA.mjs → ClAtIfYbsUPA073B.mjs} +1 -1
  13. package/browser/esm/CzRIbc-Lk__VMLKM.mjs +60 -0
  14. package/browser/esm/{DyU9UInRnfkPYYlR.mjs → D2u6THGErqw64KQI.mjs} +1 -1
  15. package/browser/esm/{cYjYjqEsyd63x8t4.mjs → DMdsMPT0fWBbTkNn.mjs} +1 -1
  16. package/browser/esm/{Bow9CzRJrYxak2i5.mjs → DS66lAIM-9M-YoZQ.mjs} +5 -8
  17. package/browser/esm/DgL7Dy-Lqcr1TvW6.mjs +23528 -0
  18. package/browser/esm/{DjiBz4H74I6nPUY6.mjs → Dnh1kpz3v1JKtRD_.mjs} +2 -2
  19. package/browser/esm/{Sp6PJavGKpF8SJzA.mjs → cQ6xdPFkEcuDlNTN.mjs} +1 -1
  20. package/browser/esm/chart.mjs +32 -52
  21. package/browser/esm/control.mjs +2 -2
  22. package/browser/esm/group.mjs +3 -3
  23. package/browser/esm/index.mjs +6590 -4824
  24. package/browser/esm/note.mjs +73 -47
  25. package/browser/esm/picture.mjs +2 -2
  26. package/browser/esm/shape.mjs +2 -2
  27. package/browser/esm/slicer.mjs +5 -5
  28. package/browser/esm/ugfE7YeZALQURDKF.mjs +241 -0
  29. package/licenses/dependencies.txt +313 -1
  30. package/node/esm/6zApGj9DozhFy-bx.mjs +35 -0
  31. package/node/esm/{DPN0n6MGYQ9vZ2KO.mjs → BMVK5plvmBOAIlxP.mjs} +1 -1
  32. package/node/esm/{Dxbm6ryIDCEi26RO.mjs → BaRfst1euuhquupX.mjs} +1 -1
  33. package/node/esm/{BJ7ZZm63j5O6cvrB.mjs → Be9c1GwQkPo8Piuh.mjs} +1 -1
  34. package/node/esm/{DhSq680c5tgMFFbj.mjs → BiaDWnN3tT7neoRL.mjs} +1 -1
  35. package/node/esm/BlxXufqBBg1PtsXd.mjs +8 -0
  36. package/node/esm/{CM5BT7h-hMtST2bE.mjs → C_SNx7TlFEcwbYjx.mjs} +1 -1
  37. package/node/esm/DJPgbB1X22YmhbaR.mjs +242 -0
  38. package/node/esm/DTMTIrYIK1eZswsM.mjs +37 -0
  39. package/node/esm/{Buw-VKYJy3y5dbaJ.mjs → D_pCpfdQowV_4Aje.mjs} +23 -22
  40. package/node/esm/{DYosMUJKp-3MSO4q.mjs → DgGEHydEjD7nfsDB.mjs} +1 -1
  41. package/node/esm/{CFFlJxNwgyInjEnh.mjs → Dj5FM7_-YWhCtCCt.mjs} +1 -1
  42. package/node/esm/{GkmuxU7OwRZtm2Rf.mjs → DxQZmb-j4NLUO9Af.mjs} +1 -1
  43. package/node/esm/{BfRn5S5V4X8xIAEa.mjs → JiQGhLkoL8CJpVvA.mjs} +1 -1
  44. package/node/esm/b-XRVRI1fYQQMkTC.mjs +1664 -0
  45. package/node/esm/chart.mjs +32 -52
  46. package/node/esm/control.mjs +2 -2
  47. package/node/esm/{C_ANM4feA1xV-pri.mjs → gpD-9LDW92phhoma.mjs} +1 -1
  48. package/node/esm/group.mjs +3 -3
  49. package/node/esm/index.mjs +9005 -7225
  50. package/node/esm/note.mjs +86 -60
  51. package/node/esm/picture.mjs +2 -2
  52. package/node/esm/shape.mjs +292 -340
  53. package/node/esm/sigD1UFqvPlWUw_9.mjs +128 -0
  54. package/node/esm/slicer.mjs +15 -15
  55. package/node/esm/{D3YXHeOyFp00Xk3m.mjs → umljAT66yb3_rURh.mjs} +53 -56
  56. package/package.json +8 -6
  57. package/resources/contents.json +6 -0
  58. package/resources/locales/contents.json +14 -0
  59. package/resources/locales/de/chart.cmd.json +82 -0
  60. package/resources/locales/de/sheet.cmd.json +11 -0
  61. package/resources/locales/de/table.cmd.json +1 -1
  62. package/resources/locales/de/ui.msg.json +12 -0
  63. package/resources/locales/de/workbook.cmd.json +5 -0
  64. package/resources/locales/en/chart.cmd.json +82 -0
  65. package/resources/locales/en/sheet.cmd.json +11 -0
  66. package/resources/locales/en/table.cmd.json +1 -1
  67. package/resources/locales/en/ui.msg.json +12 -0
  68. package/resources/locales/en/workbook.cmd.json +5 -0
  69. package/types/src/autoFill/FillMenu.d.ts +2 -2
  70. package/types/src/autoFill/FillSeries.d.ts +2 -2
  71. package/types/src/border/StaticBorderRenderer.d.ts +18 -1
  72. package/types/src/border/useBorders.d.ts +74 -1
  73. package/types/src/cell/FormulaCellRenderer.d.ts +5 -2
  74. package/types/src/cell/useFormulaViewAnchor.d.ts +2 -2
  75. package/types/src/chart/ChartCommands.d.ts +15 -0
  76. package/types/src/chart/ChartEditor.d.ts +10 -2
  77. package/types/src/chart/ChartElement.d.ts +111 -0
  78. package/types/src/chart/ChartKind.d.ts +7 -0
  79. package/types/src/chart/PresetChartTypeDescriptors.d.ts +3 -1
  80. package/types/src/chart/index.d.ts +2 -0
  81. package/types/src/chart/paint/_fills.d.ts +24 -0
  82. package/types/src/chart/paint/_graphics.d.ts +46 -0
  83. package/types/src/chart/paint/echarts.d.ts +30 -0
  84. package/types/src/chart/paint/index.d.ts +12 -0
  85. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +132 -0
  86. package/types/src/chart/paint/kinds/_Area.d.ts +3 -0
  87. package/types/src/chart/paint/kinds/_Bar.d.ts +3 -0
  88. package/types/src/chart/paint/kinds/_BoxWhisker.d.ts +3 -0
  89. package/types/src/chart/paint/kinds/_Bubble.d.ts +3 -0
  90. package/types/src/chart/paint/kinds/_Funnel.d.ts +3 -0
  91. package/types/src/chart/paint/kinds/_Histogram.d.ts +3 -0
  92. package/types/src/chart/paint/kinds/_Line.d.ts +10 -0
  93. package/types/src/chart/paint/kinds/_OfPie.d.ts +3 -0
  94. package/types/src/chart/paint/kinds/_Pie.d.ts +21 -0
  95. package/types/src/chart/paint/kinds/_Placeholder.d.ts +7 -0
  96. package/types/src/chart/paint/kinds/_Radar.d.ts +3 -0
  97. package/types/src/chart/paint/kinds/_Scatter.d.ts +3 -0
  98. package/types/src/chart/paint/kinds/_Sunburst.d.ts +3 -0
  99. package/types/src/chart/paint/kinds/_Surface.d.ts +3 -0
  100. package/types/src/chart/paint/kinds/_Treemap.d.ts +3 -0
  101. package/types/src/chart/paint/kinds/_Waterfall.d.ts +3 -0
  102. package/types/src/chart/paint/kinds/_builtIns.d.ts +12 -0
  103. package/types/src/chart/paint/toEChartsOption.d.ts +31 -0
  104. package/types/src/clipboard/ClipboardCommands.d.ts +3 -3
  105. package/types/src/clipboard/SheetClipboardLayer.d.ts +2 -2
  106. package/types/src/comment/CommentCardRequest.d.ts +9 -9
  107. package/types/src/comment/useSheetComments.d.ts +2 -2
  108. package/types/src/context/WorksheetContext.d.ts +18 -0
  109. package/types/src/context/index.d.ts +1 -1
  110. package/types/src/editor/EditorCommands.d.ts +3 -3
  111. package/types/src/editor/SheetCellEditorLayer.d.ts +2 -2
  112. package/types/src/editor/SheetCellEditorStartLayer.d.ts +22 -5
  113. package/types/src/editor/SheetEditable.d.ts +6 -6
  114. package/types/src/editor/SheetReferenceLayer.d.ts +4 -4
  115. package/types/src/editor/VirtualKeyboardLayer.d.ts +49 -0
  116. package/types/src/editor/formulaAnchor.d.ts +12 -0
  117. package/types/src/editor/index.d.ts +1 -0
  118. package/types/src/editor/pickedReference.d.ts +3 -3
  119. package/types/src/editor/useEditRejectedNotice.d.ts +3 -3
  120. package/types/src/editor/useFormulaHints.d.ts +2 -2
  121. package/types/src/editor/validationAlert.d.ts +3 -3
  122. package/types/src/frame/CommandContext.d.ts +7 -7
  123. package/types/src/index.d.ts +2 -0
  124. package/types/src/layer/BorderLayer.d.ts +2 -2
  125. package/types/src/layer/CellErrorLayer.d.ts +2 -2
  126. package/types/src/layer/CellFillLayer.d.ts +2 -2
  127. package/types/src/layer/CellInsertLayer.d.ts +71 -0
  128. package/types/src/layer/CircularIndicatorLayer.d.ts +2 -2
  129. package/types/src/layer/CommentCardLayer.d.ts +2 -2
  130. package/types/src/layer/CommentsLayer.d.ts +2 -2
  131. package/types/src/layer/ConditionalBarLayer.d.ts +2 -2
  132. package/types/src/layer/ConditionalIconsLayer.d.ts +2 -2
  133. package/types/src/layer/ContextMenuLayer.d.ts +2 -2
  134. package/types/src/layer/GridFreezeLayer.d.ts +2 -2
  135. package/types/src/layer/HyperlinkLayer.d.ts +3 -3
  136. package/types/src/layer/MovableKindScope.d.ts +2 -2
  137. package/types/src/layer/ProtectionLayer.d.ts +3 -3
  138. package/types/src/layer/RangeAnnotationLayer.d.ts +2 -2
  139. package/types/src/layer/ResizeIndicator.d.ts +2 -2
  140. package/types/src/layer/SheetBackgroundLayer.d.ts +3 -3
  141. package/types/src/layer/SheetCellLayer.d.ts +4 -4
  142. package/types/src/layer/SheetColumnButtonLayer.d.ts +2 -2
  143. package/types/src/layer/SheetGridLineLayer.d.ts +11 -13
  144. package/types/src/layer/SheetLayers.d.ts +115 -0
  145. package/types/src/layer/SheetMovableLayer.d.ts +2 -2
  146. package/types/src/layer/SheetOutlineLayer.d.ts +2 -2
  147. package/types/src/layer/SheetTableCommandLayer.d.ts +2 -2
  148. package/types/src/layer/SpillLayer.d.ts +2 -2
  149. package/types/src/layer/TableLayer.d.ts +2 -2
  150. package/types/src/layer/TableToolbar.d.ts +3 -3
  151. package/types/src/layer/ValidationDropdownLayer.d.ts +2 -2
  152. package/types/src/layer/ValidationIndicatorLayer.d.ts +2 -2
  153. package/types/src/layer/ValidationPromptLayer.d.ts +5 -4
  154. package/types/src/layer/_tableColor.d.ts +2 -2
  155. package/types/src/layer/index.d.ts +2 -0
  156. package/types/src/layer/useFreezeDrag.d.ts +2 -2
  157. package/types/src/layer/useNormalBorderLines.d.ts +15 -0
  158. package/types/src/layer/useSheetFeatureRegions.d.ts +2 -2
  159. package/types/src/layer/useSheetVisibleCells.d.ts +2 -2
  160. package/types/src/layer/useSheetVisibleDecorations.d.ts +2 -2
  161. package/types/src/layer/useTableHeaderCells.d.ts +2 -2
  162. package/types/src/layer/useValidationPicker.d.ts +2 -2
  163. package/types/src/layer/useVisibleTables.d.ts +2 -2
  164. package/types/src/layer/validationMark.d.ts +3 -3
  165. package/types/src/listener/index.d.ts +5 -0
  166. package/types/src/listener/useCell.d.ts +29 -0
  167. package/types/src/listener/useCellRange.d.ts +23 -0
  168. package/types/src/listener/useCellValue.d.ts +26 -0
  169. package/types/src/listener/useModelListener.d.ts +4 -4
  170. package/types/src/listener/useRangeSnapshot.d.ts +35 -0
  171. package/types/src/listener/useTable.d.ts +26 -0
  172. package/types/src/movable/DefaultMovable.d.ts +8 -0
  173. package/types/src/movable/MovableCommands.d.ts +2 -2
  174. package/types/src/movable/MovableRenderers.d.ts +3 -3
  175. package/types/src/movable/index.d.ts +1 -0
  176. package/types/src/picker/cellPickerOpen.d.ts +3 -3
  177. package/types/src/picker/useCellPicker.d.ts +2 -2
  178. package/types/src/richText/RichTextEditor.d.ts +2 -2
  179. package/types/src/selection/SelectionCommands.d.ts +2 -2
  180. package/types/src/selection/SheetSelectionLayer.d.ts +2 -2
  181. package/types/src/sheet/ISheetHeaderElement.d.ts +1 -1
  182. package/types/src/sheet/{ISheetElement.d.ts → IWorksheetElement.d.ts} +46 -13
  183. package/types/src/sheet/OpaqueSheetElement.d.ts +21 -0
  184. package/types/src/sheet/SheetCommandProvider.d.ts +2 -2
  185. package/types/src/sheet/SheetCommands.d.ts +2 -2
  186. package/types/src/sheet/SheetKindIcon.d.ts +14 -0
  187. package/types/src/sheet/SheetOutlineElement.d.ts +4 -4
  188. package/types/src/sheet/SheetPanels.d.ts +11 -0
  189. package/types/src/sheet/SheetScrollbar.d.ts +3 -3
  190. package/types/src/sheet/TopLeftCorner.d.ts +2 -2
  191. package/types/src/sheet/WorksheetElement.d.ts +12 -0
  192. package/types/src/sheet/_freezeAt.d.ts +2 -2
  193. package/types/src/sheet/circularReferences.d.ts +3 -3
  194. package/types/src/sheet/index.d.ts +5 -2
  195. package/types/src/sheet/useCycleHighlight.d.ts +2 -2
  196. package/types/src/tabStrip/SheetTab.d.ts +1 -1
  197. package/types/src/table/TableCommands.d.ts +2 -2
  198. package/types/src/taskPane/TaskPaneArea.d.ts +7 -0
  199. package/types/src/theme/buildOOXMLThemeCSS.d.ts +2 -2
  200. package/types/src/theme/useGridColorScheme.d.ts +1 -1
  201. package/types/src/theme/useSystemColors.d.ts +2 -2
  202. package/types/src/workbook/DefaultRenderers.d.ts +3 -2
  203. package/types/src/workbook/IWorkbookElement.d.ts +27 -5
  204. package/browser/esm/BHjeSMaycUkS5dVL.mjs +0 -66
  205. package/browser/esm/CYMRbtPIr6SklGpp.mjs +0 -775
  206. package/browser/esm/CiRN-woJZWYOgTn4.mjs +0 -36
  207. package/browser/esm/J8cPagZBeXz86Lnd.mjs +0 -777
  208. package/node/esm/BpwE3HqTnrLLzE3C.mjs +0 -775
  209. package/node/esm/CV3bT3Hql74GcHoU.mjs +0 -37
  210. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +0 -10
  211. package/types/src/chart/templates/area-stacked-template.json.d.ts +0 -10
  212. package/types/src/chart/templates/area-template.json.d.ts +0 -9
  213. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +0 -10
  214. package/types/src/chart/templates/bar-stacked-template.json.d.ts +0 -10
  215. package/types/src/chart/templates/bar-template.json.d.ts +0 -9
  216. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +0 -10
  217. package/types/src/chart/templates/column-stacked-template.json.d.ts +0 -10
  218. package/types/src/chart/templates/column-template.json.d.ts +0 -9
  219. package/types/src/chart/templates/line-markers-template.json.d.ts +0 -10
  220. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +0 -11
  221. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +0 -11
  222. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +0 -10
  223. package/types/src/chart/templates/line-stacked-template.json.d.ts +0 -10
  224. package/types/src/chart/templates/line-template.json.d.ts +0 -9
  225. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +0 -10
  226. package/types/src/chart/templates/pie-template.json.d.ts +0 -9
  227. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +0 -10
  228. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +0 -10
  229. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +0 -10
  230. package/types/src/chart/templates/scatter-lines-template.json.d.ts +0 -10
  231. package/types/src/chart/templates/scatter-markers-template.json.d.ts +0 -10
  232. package/types/src/context/SheetContext.d.ts +0 -18
  233. package/types/src/sheet/SheetElement.d.ts +0 -15
@@ -4,10 +4,10 @@
4
4
  * own tokens; decision 4). It wraps the generic {@link buildThemeCSS} (utils-react) — OOXML lives here in
5
5
  * `@sheetxl/react`, not below — passing the sys aliases as the per-surface records.
6
6
  *
7
- * The sys aliases are **just another surface layer**, so each top-level instance (`SheetElement`,
7
+ * The sys aliases are **just another surface layer**, so each top-level instance (`WorksheetElement`,
8
8
  * `WorkbookElement`, studio) emits its own copy `@scope`d to its instance root — same per-instance `useId`
9
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.
10
+ * model-driven and stay with `WorksheetElement` for now.
11
11
  */
12
12
  export declare const buildOOXMLThemeCSS: (layer?: string, scope?: string) => string;
13
13
  //# sourceMappingURL=buildOOXMLThemeCSS.d.ts.map
@@ -7,7 +7,7 @@ import { ThemeMode } from '@sheetxl/utils-react';
7
7
  * (`ThemeStateKey.DarkGrid`, off unless a host or the user turns it on) so the grid stays light in a dark app unless opted in.
8
8
  *
9
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
10
+ * (`WorksheetElement`) **and** chrome that must match the grid but renders outside its DOM (the table-style
11
11
  * preview, the cell-style / color pickers) — resolves the *same* value with no prop-threading and no
12
12
  * drift from the studio (which reads the same keys the same way).
13
13
  *
@@ -18,7 +18,7 @@ export declare const installSystemColorDefaults: () => void;
18
18
  * to the provided values rather than the global host mapping.
19
19
  *
20
20
  * @remarks
21
- * Used by the grid container ({@link SheetElement}) and by UI rendered *outside* the grid subtree
21
+ * Used by the grid container ({@link WorksheetElement}) and by UI rendered *outside* the grid subtree
22
22
  * that must still match the grid's light/dark intent — most notably a color picker popup, which is
23
23
  * portaled and would otherwise inherit the host's `--sxl-sys-color-*` (e.g. a light grid in a dark host
24
24
  * would show the host's dark `auto` color). Names are lower-cased to match the variable
@@ -27,7 +27,7 @@ export declare const installSystemColorDefaults: () => void;
27
27
  export declare const createSystemColorVars: (colors: Partial<Record<IColor.Named, string>>) => Record<string, string>;
28
28
  /**
29
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.
30
+ * Wired into `WorksheetElement`, so the grid themes from `--sxl-sys-color-*` out of the box.
31
31
  */
32
32
  export declare const useSystemColors: () => void;
33
33
  /**
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { LoadingPanelProps } from '@sheetxl/utils-react';
3
- import { SheetElementProps } from '../sheet';
3
+ import { WorksheetElementProps, OpaqueSheetElementProps } from '../sheet';
4
4
  import { WorkbookStripProps } from './WorkbookStrip';
5
5
  /**
6
6
  * Default renderers for {@link WorkbookElement}.
@@ -8,7 +8,8 @@ import { WorkbookStripProps } from './WorkbookStrip';
8
8
  * @remarks
9
9
  * These can be replaced by host application layers as needed.
10
10
  */
11
- export declare const renderWorkbookSheet: (props: SheetElementProps) => React.ReactElement;
11
+ export declare const renderWorkbookWorksheet: (props: WorksheetElementProps) => React.ReactElement;
12
+ export declare const renderWorkbookOpaqueSheet: (props: OpaqueSheetElementProps) => React.ReactElement;
12
13
  export declare const renderWorkbookStrip: (props: WorkbookStripProps) => React.ReactElement;
13
14
  export declare const renderWorkbookLoading: (props: LoadingPanelProps) => React.ReactElement;
14
15
  //# sourceMappingURL=DefaultRenderers.d.ts.map
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { UndoManager } from '@sheetxl/utils';
3
3
  import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
4
4
  import { LoadingPanelProps, ErrorPanelProps, RenderFloatPanel, FloatPanelProps, ThemeMode, Command } from '@sheetxl/utils-react';
5
- import { SheetElementProps, ISheetElement } from '../sheet';
5
+ import { WorksheetElementProps, IWorksheetElement, OpaqueSheetElementProps } from '../sheet';
6
6
  import { SheetEditable } from '../editor';
7
7
  import { WorkbookStripProps } from './WorkbookStrip';
8
8
  /**
@@ -17,7 +17,7 @@ export interface IWorkbookAttributes {
17
17
  * Retrieve the sheet element associated with this workbook element.
18
18
  * `null` before the sheet has mounted.
19
19
  */
20
- getSheetElement: () => ISheetElement | null;
20
+ getSheetElement: () => IWorksheetElement | null;
21
21
  /**
22
22
  * Retrieve the viewport element associated with this workbook element.
23
23
  * `null` before the viewport has mounted.
@@ -74,6 +74,24 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
74
74
  * loading panels.
75
75
  */
76
76
  onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
77
+ /**
78
+ * Called with the workbook once {@link WorkbookElementProps.workbook} resolves, and again whenever
79
+ * a new input resolves to a different one. Until the first input resolves, or if an input fails,
80
+ * the workbook is `null`; while a later input resolves, the current workbook is kept.
81
+ *
82
+ * @remarks
83
+ * Lets an app pass a `Promise` here and hold the live workbook in its own state, without awaiting
84
+ * or suspending.
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * const [pending] = useState(() => createInvoice());
89
+ * const [workbook, setWorkbook] = useState<IWorkbook | null>(null);
90
+ * const [total] = useCellValue<number>(workbook, 'D23');
91
+ * return <WorkbookElement workbook={pending} onWorkbookChange={setWorkbook} />;
92
+ * ```
93
+ */
94
+ onWorkbookChange?: (workbook: IWorkbook | null) => void;
77
95
  /**
78
96
  * Whether features that load on first use (charts, shapes, form controls, file formats, dialogs)
79
97
  * are loaded ahead of use once the workbook has shown, so their first use does not wait on the
@@ -171,11 +189,15 @@ export interface WorkbookElementProps extends Omit<React.HTMLAttributes<HTMLDivE
171
189
  /**
172
190
  * Allow for customizations on the sheet.
173
191
  */
174
- propsSheet?: Partial<SheetElementProps>;
192
+ propsSheet?: Partial<WorksheetElementProps>;
193
+ /**
194
+ * Render custom IWorksheetElement.
195
+ */
196
+ renderWorksheet?: (props: WorksheetElementProps) => React.ReactElement;
175
197
  /**
176
- * Render custom ISheetElement.
198
+ * Render the pane of a chart sheet, a macro sheet or a dialog sheet while it is the active tab.
177
199
  */
178
- renderSheet?: (props: SheetElementProps) => React.ReactElement;
200
+ renderOpaqueSheet?: (props: OpaqueSheetElementProps) => React.ReactElement;
179
201
  /**
180
202
  * Allows users to Wrap stage children in Top level Context.
181
203
  */
@@ -1,66 +0,0 @@
1
- /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.10
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { t as e } from "./Cfe0kofqVKGxLqO6.mjs";
8
- import { forwardRef as t, memo as n, useEffect as r } from "react";
9
- import { jsx as i } from "react/jsx-runtime";
10
- import { useImperativeElement as a, useMeasure as o, useTranslator as s } from "@sheetxl/utils-react";
11
- var c = Object.defineProperty, l = (e, t) => {
12
- let n = {};
13
- for (var r in e) c(n, r, {
14
- get: e[r],
15
- enumerable: !0
16
- });
17
- return t || c(n, Symbol.toStringTag, { value: "Module" }), n;
18
- }, u = n(t((t, n) => {
19
- let { children: s, disabled: c, style: l, movable: u, zoom: d = 1, description: f, isDragging: p, onHide: m, onShow: h, onDragZone: g, adornmentHost: _, flip: v, gesture: y, ...b } = t;
20
- r(() => {}, [f]);
21
- let x = a(n, () => ({ isEmptyFrame: () => !0 }), []), [S, { height: C, width: w }] = o(), T = e([x, S]);
22
- return i("div", {
23
- className: "unknown-editor",
24
- ...b,
25
- ref: T,
26
- style: {
27
- width: "100%",
28
- height: "100%",
29
- border: "var(--sxl-color-neutral, grey) solid 1px",
30
- backgroundColor: "var(--sxl-color-base-100, white)",
31
- backgroundImage: "var(--sxl-image-background)",
32
- alignItems: "center",
33
- justifyContent: "center",
34
- zoom: d,
35
- display: "flex",
36
- position: "relative",
37
- filter: c ? "blur(1px)" : void 0,
38
- boxShadow: p ? "1px 1px 2px var(--sxl-color-shadow, rgba(0,0,0,.15))" : void 0,
39
- overflow: "hidden",
40
- wordBreak: "break-word",
41
- ...l
42
- },
43
- children: f
44
- });
45
- })), d = l({
46
- ErrorContentFrame: () => p,
47
- UnsupportedContentFrame: () => m
48
- }), f = Object.freeze({ border: "var(--sxl-color-error, red) solid 2px" }), p = n((e) => {
49
- let t = s(), n = e.movable.getContent(), r = n.getError(), a = r?.message ?? String(r);
50
- return i(u, {
51
- ...e,
52
- style: f,
53
- description: t("movable.contentError", {
54
- type: n.getOriginalType(),
55
- message: a
56
- })
57
- });
58
- }), m = n((e) => {
59
- let t = s();
60
- return i(u, {
61
- ...e,
62
- style: f,
63
- description: t("movable.unsupportedType", { type: e.movable.getContent().getType() })
64
- });
65
- });
66
- export { l as i, m as n, u as r, d as t };