@sheetxl/react 0.7.21 → 0.7.23-beta.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.
Files changed (456) 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/E9rKWgbrtweBguqR.mjs +6286 -0
  5. package/browser/esm/index.mjs +19252 -4914
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/CmChqiPvaotX5mCV.mjs +9 -0
  8. package/node/esm/index.mjs +17028 -3694
  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 -1815
  29. package/types/src/border/StaticBorderRenderer.d.ts +32 -0
  30. package/types/src/border/StaticBorderRenderer.d.ts.map +1 -0
  31. package/types/src/border/StyledStrokePath.d.ts +14 -0
  32. package/types/src/border/StyledStrokePath.d.ts.map +1 -0
  33. package/types/src/border/index.d.ts +4 -0
  34. package/types/src/border/index.d.ts.map +1 -0
  35. package/types/src/border/useBorders.d.ts +87 -0
  36. package/types/src/border/useBorders.d.ts.map +1 -0
  37. package/types/src/cell/ColumnButton.d.ts +45 -0
  38. package/types/src/cell/ColumnButton.d.ts.map +1 -0
  39. package/types/src/cell/CornerTriangle.d.ts +27 -0
  40. package/types/src/cell/CornerTriangle.d.ts.map +1 -0
  41. package/types/src/cell/FormulaCellRenderer.d.ts +34 -0
  42. package/types/src/cell/FormulaCellRenderer.d.ts.map +1 -0
  43. package/types/src/cell/SheetCellRenderer.d.ts +52 -0
  44. package/types/src/cell/SheetCellRenderer.d.ts.map +1 -0
  45. package/types/src/cell/SheetHeaderRenderer.d.ts +37 -0
  46. package/types/src/cell/SheetHeaderRenderer.d.ts.map +1 -0
  47. package/types/src/cell/index.d.ts +7 -0
  48. package/types/src/cell/index.d.ts.map +1 -0
  49. package/types/src/cell/useFormulaViewAnchor.d.ts +42 -0
  50. package/types/src/cell/useFormulaViewAnchor.d.ts.map +1 -0
  51. package/types/src/chart/ChartEditor.d.ts +17 -0
  52. package/types/src/chart/ChartEditor.d.ts.map +1 -0
  53. package/types/src/chart/PresetChartTypeDescriptors.d.ts +35 -0
  54. package/types/src/chart/PresetChartTypeDescriptors.d.ts.map +1 -0
  55. package/types/src/chart/index.d.ts +3 -0
  56. package/types/src/chart/index.d.ts.map +1 -0
  57. package/types/src/chart/templates/area-stacked-percent-template.json.d.ts +10 -0
  58. package/types/src/chart/templates/area-stacked-template.json.d.ts +10 -0
  59. package/types/src/chart/templates/area-template.json.d.ts +9 -0
  60. package/types/src/chart/templates/bar-stacked-percent-template.json.d.ts +10 -0
  61. package/types/src/chart/templates/bar-stacked-template.json.d.ts +10 -0
  62. package/types/src/chart/templates/bar-template.json.d.ts +9 -0
  63. package/types/src/chart/templates/column-stacked-percent-template.json.d.ts +10 -0
  64. package/types/src/chart/templates/column-stacked-template.json.d.ts +10 -0
  65. package/types/src/chart/templates/column-template.json.d.ts +9 -0
  66. package/types/src/chart/templates/line-markers-template.json.d.ts +10 -0
  67. package/types/src/chart/templates/line-stacked-markers-template.json.d.ts +11 -0
  68. package/types/src/chart/templates/line-stacked-percent-markers-template.json.d.ts +11 -0
  69. package/types/src/chart/templates/line-stacked-percent-template.json.d.ts +10 -0
  70. package/types/src/chart/templates/line-stacked-template.json.d.ts +10 -0
  71. package/types/src/chart/templates/line-template.json.d.ts +9 -0
  72. package/types/src/chart/templates/pie-doughnut-template.json.d.ts +10 -0
  73. package/types/src/chart/templates/pie-template.json.d.ts +9 -0
  74. package/types/src/chart/templates/scatter-lines-markers-smooth-template.json.d.ts +10 -0
  75. package/types/src/chart/templates/scatter-lines-markers-template.json.d.ts +10 -0
  76. package/types/src/chart/templates/scatter-lines-smooth-template.json.d.ts +10 -0
  77. package/types/src/chart/templates/scatter-lines-template.json.d.ts +10 -0
  78. package/types/src/chart/templates/scatter-markers-template.json.d.ts +10 -0
  79. package/types/src/clipboard/ClipboardCommands.d.ts +68 -0
  80. package/types/src/clipboard/ClipboardCommands.d.ts.map +1 -0
  81. package/types/src/clipboard/SheetClipboardLayer.d.ts +22 -0
  82. package/types/src/clipboard/SheetClipboardLayer.d.ts.map +1 -0
  83. package/types/src/clipboard/index.d.ts +3 -0
  84. package/types/src/clipboard/index.d.ts.map +1 -0
  85. package/types/src/commands/Catalog.d.ts +8 -0
  86. package/types/src/commands/Catalog.d.ts.map +1 -0
  87. package/types/src/commands/CommandRootProvider.d.ts +36 -0
  88. package/types/src/commands/CommandRootProvider.d.ts.map +1 -0
  89. package/types/src/commands/InputClipboardCommands.d.ts +41 -0
  90. package/types/src/commands/InputClipboardCommands.d.ts.map +1 -0
  91. package/types/src/commands/InputClipboardInjector.d.ts +16 -0
  92. package/types/src/commands/InputClipboardInjector.d.ts.map +1 -0
  93. package/types/src/commands/MainFocusContext.d.ts +13 -0
  94. package/types/src/commands/MainFocusContext.d.ts.map +1 -0
  95. package/types/src/commands/PaneScopeProvider.d.ts +40 -0
  96. package/types/src/commands/PaneScopeProvider.d.ts.map +1 -0
  97. package/types/src/commands/createTransactionalMiddleware.d.ts +49 -0
  98. package/types/src/commands/createTransactionalMiddleware.d.ts.map +1 -0
  99. package/types/src/commands/index.d.ts +7 -0
  100. package/types/src/commands/index.d.ts.map +1 -0
  101. package/types/src/context/SheetContext.d.ts +18 -0
  102. package/types/src/context/SheetContext.d.ts.map +1 -0
  103. package/types/src/context/WorkbookContext.d.ts +20 -0
  104. package/types/src/context/WorkbookContext.d.ts.map +1 -0
  105. package/types/src/context/index.d.ts +3 -0
  106. package/types/src/context/index.d.ts.map +1 -0
  107. package/types/src/editableLabel/EditableLabel.d.ts +28 -0
  108. package/types/src/editableLabel/EditableLabel.d.ts.map +1 -0
  109. package/types/src/editableLabel/index.d.ts +2 -0
  110. package/types/src/editableLabel/index.d.ts.map +1 -0
  111. package/types/src/editor/EditorCommands.d.ts +98 -0
  112. package/types/src/editor/EditorCommands.d.ts.map +1 -0
  113. package/types/src/editor/FunctionPreviewPanel.d.ts +166 -0
  114. package/types/src/editor/FunctionPreviewPanel.d.ts.map +1 -0
  115. package/types/src/editor/NamedHintPanel.d.ts +38 -0
  116. package/types/src/editor/NamedHintPanel.d.ts.map +1 -0
  117. package/types/src/editor/NamedItemsPanel.d.ts +59 -0
  118. package/types/src/editor/NamedItemsPanel.d.ts.map +1 -0
  119. package/types/src/editor/SheetCellEditorLayer.d.ts +40 -0
  120. package/types/src/editor/SheetCellEditorLayer.d.ts.map +1 -0
  121. package/types/src/editor/SheetCellInput.d.ts +99 -0
  122. package/types/src/editor/SheetCellInput.d.ts.map +1 -0
  123. package/types/src/editor/SheetEditable.d.ts +53 -0
  124. package/types/src/editor/SheetEditable.d.ts.map +1 -0
  125. package/types/src/editor/SheetReferenceHeaderLayer.d.ts +46 -0
  126. package/types/src/editor/SheetReferenceHeaderLayer.d.ts.map +1 -0
  127. package/types/src/editor/SheetReferenceLayer.d.ts +55 -0
  128. package/types/src/editor/SheetReferenceLayer.d.ts.map +1 -0
  129. package/types/src/editor/formulaCaret.d.ts +84 -0
  130. package/types/src/editor/formulaCaret.d.ts.map +1 -0
  131. package/types/src/editor/formulaEval.d.ts +202 -0
  132. package/types/src/editor/formulaEval.d.ts.map +1 -0
  133. package/types/src/editor/formulaPresentation.d.ts +136 -0
  134. package/types/src/editor/formulaPresentation.d.ts.map +1 -0
  135. package/types/src/editor/formulaText.d.ts +80 -0
  136. package/types/src/editor/formulaText.d.ts.map +1 -0
  137. package/types/src/editor/functionArgs.d.ts +111 -0
  138. package/types/src/editor/functionArgs.d.ts.map +1 -0
  139. package/types/src/editor/functionHint.d.ts +37 -0
  140. package/types/src/editor/functionHint.d.ts.map +1 -0
  141. package/types/src/editor/index.d.ts +18 -0
  142. package/types/src/editor/index.d.ts.map +1 -0
  143. package/types/src/editor/referencePointNav.d.ts +39 -0
  144. package/types/src/editor/referencePointNav.d.ts.map +1 -0
  145. package/types/src/editor/useFormulaHints.d.ts +126 -0
  146. package/types/src/editor/useFormulaHints.d.ts.map +1 -0
  147. package/types/src/editor/useFormulaInput.d.ts +326 -0
  148. package/types/src/editor/useFormulaInput.d.ts.map +1 -0
  149. package/types/src/editor/useProtectedEditNotice.d.ts +14 -0
  150. package/types/src/editor/useProtectedEditNotice.d.ts.map +1 -0
  151. package/types/src/editor/useReferenceMode.d.ts +177 -0
  152. package/types/src/editor/useReferenceMode.d.ts.map +1 -0
  153. package/types/src/form/FormulaInput.d.ts +86 -0
  154. package/types/src/form/FormulaInput.d.ts.map +1 -0
  155. package/types/src/form/FormulaInputParts.d.ts +94 -0
  156. package/types/src/form/FormulaInputParts.d.ts.map +1 -0
  157. package/types/src/form/index.d.ts +5 -0
  158. package/types/src/form/index.d.ts.map +1 -0
  159. package/types/src/form/useEditCommit.d.ts +174 -0
  160. package/types/src/form/useEditCommit.d.ts.map +1 -0
  161. package/types/src/form/useInputField.d.ts +86 -0
  162. package/types/src/form/useInputField.d.ts.map +1 -0
  163. package/types/src/frame/CommandContext.d.ts +179 -0
  164. package/types/src/frame/CommandContext.d.ts.map +1 -0
  165. package/types/src/frame/IFrame.d.ts +17 -0
  166. package/types/src/frame/IFrame.d.ts.map +1 -0
  167. package/types/src/frame/index.d.ts +3 -0
  168. package/types/src/frame/index.d.ts.map +1 -0
  169. package/types/src/icons/LogoNoPaddingIcon.d.ts +3 -0
  170. package/types/src/icons/LogoNoPaddingIcon.d.ts.map +1 -0
  171. package/types/src/icons/LogoTextNoPaddingIcon.d.ts +4 -0
  172. package/types/src/icons/LogoTextNoPaddingIcon.d.ts.map +1 -0
  173. package/types/src/icons/WaterMark.d.ts +12 -0
  174. package/types/src/icons/WaterMark.d.ts.map +1 -0
  175. package/types/src/icons/chart/ChartAreaIcon.d.ts +5 -0
  176. package/types/src/icons/chart/ChartAreaIcon.d.ts.map +1 -0
  177. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +5 -0
  178. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts.map +1 -0
  179. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +5 -0
  180. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts.map +1 -0
  181. package/types/src/icons/chart/ChartBarIcon.d.ts +5 -0
  182. package/types/src/icons/chart/ChartBarIcon.d.ts.map +1 -0
  183. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +5 -0
  184. package/types/src/icons/chart/ChartBarStackedIcon.d.ts.map +1 -0
  185. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +5 -0
  186. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts.map +1 -0
  187. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +5 -0
  188. package/types/src/icons/chart/ChartBubble3DIcon.d.ts.map +1 -0
  189. package/types/src/icons/chart/ChartBubbleIcon.d.ts +5 -0
  190. package/types/src/icons/chart/ChartBubbleIcon.d.ts.map +1 -0
  191. package/types/src/icons/chart/ChartColumnIcon.d.ts +5 -0
  192. package/types/src/icons/chart/ChartColumnIcon.d.ts.map +1 -0
  193. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +5 -0
  194. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts.map +1 -0
  195. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +5 -0
  196. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts.map +1 -0
  197. package/types/src/icons/chart/ChartLineIcon.d.ts +5 -0
  198. package/types/src/icons/chart/ChartLineIcon.d.ts.map +1 -0
  199. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +5 -0
  200. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts.map +1 -0
  201. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +5 -0
  202. package/types/src/icons/chart/ChartLineStackedIcon.d.ts.map +1 -0
  203. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +5 -0
  204. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts.map +1 -0
  205. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +5 -0
  206. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts.map +1 -0
  207. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +5 -0
  208. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts.map +1 -0
  209. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +5 -0
  210. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts.map +1 -0
  211. package/types/src/icons/chart/ChartPieIcon.d.ts +5 -0
  212. package/types/src/icons/chart/ChartPieIcon.d.ts.map +1 -0
  213. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +5 -0
  214. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts.map +1 -0
  215. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +5 -0
  216. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts.map +1 -0
  217. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +5 -0
  218. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts.map +1 -0
  219. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +5 -0
  220. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts.map +1 -0
  221. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +5 -0
  222. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts.map +1 -0
  223. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +5 -0
  224. package/types/src/icons/chart/ChartWaterfallIcon.d.ts.map +1 -0
  225. package/types/src/icons/chart/ThemedChartIcon.d.ts +20 -0
  226. package/types/src/icons/chart/ThemedChartIcon.d.ts.map +1 -0
  227. package/types/src/icons/chart/index.d.ts +50 -0
  228. package/types/src/icons/chart/index.d.ts.map +1 -0
  229. package/types/src/icons/index.d.ts +4 -0
  230. package/types/src/icons/index.d.ts.map +1 -0
  231. package/types/src/index.d.ts +27 -0
  232. package/types/src/index.d.ts.map +1 -0
  233. package/types/src/io/WorkbookIO.d.ts +50 -0
  234. package/types/src/io/WorkbookIO.d.ts.map +1 -0
  235. package/types/src/io/index.d.ts +2 -0
  236. package/types/src/io/index.d.ts.map +1 -0
  237. package/types/src/layer/BorderLayer.d.ts +14 -0
  238. package/types/src/layer/BorderLayer.d.ts.map +1 -0
  239. package/types/src/layer/CellErrorLayer.d.ts +49 -0
  240. package/types/src/layer/CellErrorLayer.d.ts.map +1 -0
  241. package/types/src/layer/CellFillLayer.d.ts +15 -0
  242. package/types/src/layer/CellFillLayer.d.ts.map +1 -0
  243. package/types/src/layer/ConditionalBarLayer.d.ts +41 -0
  244. package/types/src/layer/ConditionalBarLayer.d.ts.map +1 -0
  245. package/types/src/layer/ConditionalIcons.d.ts +34 -0
  246. package/types/src/layer/ConditionalIcons.d.ts.map +1 -0
  247. package/types/src/layer/ConditionalIconsLayer.d.ts +31 -0
  248. package/types/src/layer/ConditionalIconsLayer.d.ts.map +1 -0
  249. package/types/src/layer/ContextMenuLayer.d.ts +27 -0
  250. package/types/src/layer/ContextMenuLayer.d.ts.map +1 -0
  251. package/types/src/layer/HeaderResizerLayer.d.ts +28 -0
  252. package/types/src/layer/HeaderResizerLayer.d.ts.map +1 -0
  253. package/types/src/layer/HeaderSelectionLayer.d.ts +89 -0
  254. package/types/src/layer/HeaderSelectionLayer.d.ts.map +1 -0
  255. package/types/src/layer/ResizeIndicator.d.ts +19 -0
  256. package/types/src/layer/ResizeIndicator.d.ts.map +1 -0
  257. package/types/src/layer/SheetBackgroundLayer.d.ts +22 -0
  258. package/types/src/layer/SheetBackgroundLayer.d.ts.map +1 -0
  259. package/types/src/layer/SheetCellLayer.d.ts +49 -0
  260. package/types/src/layer/SheetCellLayer.d.ts.map +1 -0
  261. package/types/src/layer/SheetColumnButtonLayer.d.ts +23 -0
  262. package/types/src/layer/SheetColumnButtonLayer.d.ts.map +1 -0
  263. package/types/src/layer/SheetGridLineLayer.d.ts +22 -0
  264. package/types/src/layer/SheetGridLineLayer.d.ts.map +1 -0
  265. package/types/src/layer/SheetHeaderCellLayer.d.ts +30 -0
  266. package/types/src/layer/SheetHeaderCellLayer.d.ts.map +1 -0
  267. package/types/src/layer/SheetMovableLayer.d.ts +26 -0
  268. package/types/src/layer/SheetMovableLayer.d.ts.map +1 -0
  269. package/types/src/layer/SheetTableCommandLayer.d.ts +16 -0
  270. package/types/src/layer/SheetTableCommandLayer.d.ts.map +1 -0
  271. package/types/src/layer/SpillLayer.d.ts +22 -0
  272. package/types/src/layer/SpillLayer.d.ts.map +1 -0
  273. package/types/src/layer/TableLayer.d.ts +22 -0
  274. package/types/src/layer/TableLayer.d.ts.map +1 -0
  275. package/types/src/layer/ValidationIndicatorLayer.d.ts +41 -0
  276. package/types/src/layer/ValidationIndicatorLayer.d.ts.map +1 -0
  277. package/types/src/layer/index.d.ts +25 -0
  278. package/types/src/layer/index.d.ts.map +1 -0
  279. package/types/src/layer/resizeIndicatorState.d.ts +26 -0
  280. package/types/src/layer/resizeIndicatorState.d.ts.map +1 -0
  281. package/types/src/layer/useSheetFeatureRegions.d.ts +21 -0
  282. package/types/src/layer/useSheetFeatureRegions.d.ts.map +1 -0
  283. package/types/src/layer/useSheetVisibleCells.d.ts +60 -0
  284. package/types/src/layer/useSheetVisibleCells.d.ts.map +1 -0
  285. package/types/src/layer/useSheetVisibleDecorations.d.ts +42 -0
  286. package/types/src/layer/useSheetVisibleDecorations.d.ts.map +1 -0
  287. package/types/src/layer/useTableHeaderCells.d.ts +22 -0
  288. package/types/src/layer/useTableHeaderCells.d.ts.map +1 -0
  289. package/types/src/layer/useVisibleTables.d.ts +27 -0
  290. package/types/src/layer/useVisibleTables.d.ts.map +1 -0
  291. package/types/src/listener/index.d.ts +3 -0
  292. package/types/src/listener/index.d.ts.map +1 -0
  293. package/types/src/listener/useModelListener.d.ts +67 -0
  294. package/types/src/listener/useModelListener.d.ts.map +1 -0
  295. package/types/src/listener/useRangeListener.d.ts +15 -0
  296. package/types/src/listener/useRangeListener.d.ts.map +1 -0
  297. package/types/src/movable/EmptyFrame.d.ts +16 -0
  298. package/types/src/movable/EmptyFrame.d.ts.map +1 -0
  299. package/types/src/movable/IMovableArea.d.ts +34 -0
  300. package/types/src/movable/IMovableArea.d.ts.map +1 -0
  301. package/types/src/movable/MovableCommands.d.ts +22 -0
  302. package/types/src/movable/MovableCommands.d.ts.map +1 -0
  303. package/types/src/movable/MovableFrame.d.ts +48 -0
  304. package/types/src/movable/MovableFrame.d.ts.map +1 -0
  305. package/types/src/movable/MovableLayer.d.ts +77 -0
  306. package/types/src/movable/MovableLayer.d.ts.map +1 -0
  307. package/types/src/movable/MoveableBundle.d.ts +4 -0
  308. package/types/src/movable/MoveableBundle.d.ts.map +1 -0
  309. package/types/src/movable/index.d.ts +4 -0
  310. package/types/src/movable/index.d.ts.map +1 -0
  311. package/types/src/picture/IPictureEditor.d.ts +39 -0
  312. package/types/src/picture/IPictureEditor.d.ts.map +1 -0
  313. package/types/src/picture/PictureEditor.d.ts +4 -0
  314. package/types/src/picture/PictureEditor.d.ts.map +1 -0
  315. package/types/src/picture/index.d.ts +3 -0
  316. package/types/src/picture/index.d.ts.map +1 -0
  317. package/types/src/selection/SelectionCommands.d.ts +23 -0
  318. package/types/src/selection/SelectionCommands.d.ts.map +1 -0
  319. package/types/src/selection/SheetSelection.d.ts +53 -0
  320. package/types/src/selection/SheetSelection.d.ts.map +1 -0
  321. package/types/src/selection/SheetSelectionLayer.d.ts +30 -0
  322. package/types/src/selection/SheetSelectionLayer.d.ts.map +1 -0
  323. package/types/src/selection/index.d.ts +4 -0
  324. package/types/src/selection/index.d.ts.map +1 -0
  325. package/types/src/shape/ShapeEditor.d.ts +16 -0
  326. package/types/src/shape/ShapeEditor.d.ts.map +1 -0
  327. package/types/src/shape/index.d.ts +2 -0
  328. package/types/src/shape/index.d.ts.map +1 -0
  329. package/types/src/sheet/ConditionalFormatPresets.d.ts +56 -0
  330. package/types/src/sheet/ConditionalFormatPresets.d.ts.map +1 -0
  331. package/types/src/sheet/ISheetElement.d.ts +233 -0
  332. package/types/src/sheet/ISheetElement.d.ts.map +1 -0
  333. package/types/src/sheet/ISheetHeaderElement.d.ts +138 -0
  334. package/types/src/sheet/ISheetHeaderElement.d.ts.map +1 -0
  335. package/types/src/sheet/NotImplemented.d.ts +3 -0
  336. package/types/src/sheet/NotImplemented.d.ts.map +1 -0
  337. package/types/src/sheet/SheetCommandProvider.d.ts +57 -0
  338. package/types/src/sheet/SheetCommandProvider.d.ts.map +1 -0
  339. package/types/src/sheet/SheetCommands.d.ts +75 -0
  340. package/types/src/sheet/SheetCommands.d.ts.map +1 -0
  341. package/types/src/sheet/SheetElement.d.ts +15 -0
  342. package/types/src/sheet/SheetElement.d.ts.map +1 -0
  343. package/types/src/sheet/SheetHeaderElement.d.ts +4 -0
  344. package/types/src/sheet/SheetHeaderElement.d.ts.map +1 -0
  345. package/types/src/sheet/SheetScrollbar.d.ts +28 -0
  346. package/types/src/sheet/SheetScrollbar.d.ts.map +1 -0
  347. package/types/src/sheet/TopLeftCorner.d.ts +17 -0
  348. package/types/src/sheet/TopLeftCorner.d.ts.map +1 -0
  349. package/types/src/sheet/index.d.ts +7 -0
  350. package/types/src/sheet/index.d.ts.map +1 -0
  351. package/types/src/slicer/SlicerEditor.d.ts +16 -0
  352. package/types/src/slicer/SlicerEditor.d.ts.map +1 -0
  353. package/types/src/slicer/index.d.ts +2 -0
  354. package/types/src/slicer/index.d.ts.map +1 -0
  355. package/types/src/tabStrip/SheetTab.d.ts +41 -0
  356. package/types/src/tabStrip/SheetTab.d.ts.map +1 -0
  357. package/types/src/tabStrip/Sortable.d.ts +66 -0
  358. package/types/src/tabStrip/Sortable.d.ts.map +1 -0
  359. package/types/src/tabStrip/Tab.d.ts +19 -0
  360. package/types/src/tabStrip/Tab.d.ts.map +1 -0
  361. package/types/src/tabStrip/TabStrip.d.ts +41 -0
  362. package/types/src/tabStrip/TabStrip.d.ts.map +1 -0
  363. package/types/src/tabStrip/TabStripItem.d.ts +36 -0
  364. package/types/src/tabStrip/TabStripItem.d.ts.map +1 -0
  365. package/types/src/tabStrip/TabStripRow.d.ts +9 -0
  366. package/types/src/tabStrip/TabStripRow.d.ts.map +1 -0
  367. package/types/src/tabStrip/index.d.ts +7 -0
  368. package/types/src/tabStrip/index.d.ts.map +1 -0
  369. package/types/src/table/TableCommands.d.ts +16 -0
  370. package/types/src/table/TableCommands.d.ts.map +1 -0
  371. package/types/src/taskPane/ITaskPane.d.ts +72 -0
  372. package/types/src/taskPane/ITaskPane.d.ts.map +1 -0
  373. package/types/src/taskPane/TaskPaneArea.d.ts +144 -0
  374. package/types/src/taskPane/TaskPaneArea.d.ts.map +1 -0
  375. package/types/src/taskPane/TaskPaneFrame.d.ts +48 -0
  376. package/types/src/taskPane/TaskPaneFrame.d.ts.map +1 -0
  377. package/types/src/taskPane/TaskPaneRegistry.d.ts +108 -0
  378. package/types/src/taskPane/TaskPaneRegistry.d.ts.map +1 -0
  379. package/types/src/taskPane/TaskPaneStrip.d.ts +33 -0
  380. package/types/src/taskPane/TaskPaneStrip.d.ts.map +1 -0
  381. package/types/src/taskPane/TaskPaneTitle.d.ts +24 -0
  382. package/types/src/taskPane/TaskPaneTitle.d.ts.map +1 -0
  383. package/types/src/taskPane/index.d.ts +7 -0
  384. package/types/src/taskPane/index.d.ts.map +1 -0
  385. package/types/src/taskPane/useTaskPane.d.ts +29 -0
  386. package/types/src/taskPane/useTaskPane.d.ts.map +1 -0
  387. package/types/src/theme/DocThemesContext.d.ts +3 -0
  388. package/types/src/theme/DocThemesContext.d.ts.map +1 -0
  389. package/types/src/theme/DocThemesProvider.d.ts +15 -0
  390. package/types/src/theme/DocThemesProvider.d.ts.map +1 -0
  391. package/types/src/theme/ThemeState.d.ts +19 -0
  392. package/types/src/theme/ThemeState.d.ts.map +1 -0
  393. package/types/src/theme/buildDocThemeCSS.d.ts +16 -0
  394. package/types/src/theme/buildDocThemeCSS.d.ts.map +1 -0
  395. package/types/src/theme/buildOOXMLThemeCSS.d.ts +13 -0
  396. package/types/src/theme/buildOOXMLThemeCSS.d.ts.map +1 -0
  397. package/types/src/theme/createCSSSystemLookup.d.ts +51 -0
  398. package/types/src/theme/createCSSSystemLookup.d.ts.map +1 -0
  399. package/types/src/theme/index.d.ts +11 -0
  400. package/types/src/theme/index.d.ts.map +1 -0
  401. package/types/src/theme/useAppColorScheme.d.ts +15 -0
  402. package/types/src/theme/useAppColorScheme.d.ts.map +1 -0
  403. package/types/src/theme/useDocThemes.d.ts +3 -0
  404. package/types/src/theme/useDocThemes.d.ts.map +1 -0
  405. package/types/src/theme/useGridColorScheme.d.ts +20 -0
  406. package/types/src/theme/useGridColorScheme.d.ts.map +1 -0
  407. package/types/src/theme/useSystemColors.d.ts +44 -0
  408. package/types/src/theme/useSystemColors.d.ts.map +1 -0
  409. package/types/src/undo/UndoCommands.d.ts +28 -0
  410. package/types/src/undo/UndoCommands.d.ts.map +1 -0
  411. package/types/src/undo/UndoManagerContext.d.ts +14 -0
  412. package/types/src/undo/UndoManagerContext.d.ts.map +1 -0
  413. package/types/src/undo/index.d.ts +3 -0
  414. package/types/src/undo/index.d.ts.map +1 -0
  415. package/types/src/workbook/DefaultRenderers.d.ts +14 -0
  416. package/types/src/workbook/DefaultRenderers.d.ts.map +1 -0
  417. package/types/src/workbook/GlobalWorkbookElement.d.ts +10 -0
  418. package/types/src/workbook/GlobalWorkbookElement.d.ts.map +1 -0
  419. package/types/src/workbook/IWorkbookElement.d.ts +178 -0
  420. package/types/src/workbook/IWorkbookElement.d.ts.map +1 -0
  421. package/types/src/workbook/WindowChrome.d.ts +61 -0
  422. package/types/src/workbook/WindowChrome.d.ts.map +1 -0
  423. package/types/src/workbook/WorkbookCommandContributor.d.ts +24 -0
  424. package/types/src/workbook/WorkbookCommandContributor.d.ts.map +1 -0
  425. package/types/src/workbook/WorkbookCommands.d.ts +97 -0
  426. package/types/src/workbook/WorkbookCommands.d.ts.map +1 -0
  427. package/types/src/workbook/WorkbookElement.d.ts +9 -0
  428. package/types/src/workbook/WorkbookElement.d.ts.map +1 -0
  429. package/types/src/workbook/WorkbookStrip.d.ts +73 -0
  430. package/types/src/workbook/WorkbookStrip.d.ts.map +1 -0
  431. package/types/src/workbook/index.d.ts +17 -0
  432. package/types/src/workbook/index.d.ts.map +1 -0
  433. package/types/src/workbook/resolveWorkbookInput.d.ts +27 -0
  434. package/types/src/workbook/resolveWorkbookInput.d.ts.map +1 -0
  435. package/types/src/workbook/useResolvedWorkbook.d.ts +31 -0
  436. package/types/src/workbook/useResolvedWorkbook.d.ts.map +1 -0
  437. package/types/src/workbook/useWindowChrome.d.ts +24 -0
  438. package/types/src/workbook/useWindowChrome.d.ts.map +1 -0
  439. package/types/src/workbook/useWorkbookApp.d.ts +47 -0
  440. package/types/src/workbook/useWorkbookApp.d.ts.map +1 -0
  441. package/types/src/workbook/useWorkbookEncrypted.d.ts +15 -0
  442. package/types/src/workbook/useWorkbookEncrypted.d.ts.map +1 -0
  443. package/types/src/workbook/useWorkbookFormat.d.ts +18 -0
  444. package/types/src/workbook/useWorkbookFormat.d.ts.map +1 -0
  445. package/types/src/workbook/useWorkbookName.d.ts +13 -0
  446. package/types/src/workbook/useWorkbookName.d.ts.map +1 -0
  447. package/types/src/workbook/useWorkbookSaveState.d.ts +29 -0
  448. package/types/src/workbook/useWorkbookSaveState.d.ts.map +1 -0
  449. package/browser/cjs/Be13sRyTTTUvNIit.cjs +0 -161
  450. package/browser/cjs/KLgpeikeRSDp4tUK.cjs +0 -16
  451. package/browser/cjs/n4OQZCE7fVxRfX1r.cjs +0 -7
  452. package/browser/esm/ClLcB3xHul5RfTMr.mjs +0 -1377
  453. package/browser/esm/EUZRpu3SnHayUDBu.mjs +0 -3905
  454. package/browser/esm/Mz1Nj2KbO5FcE969.mjs +0 -394
  455. package/node/assets/style.css +0 -1
  456. package/node/esm/sKvpUJVdmYl8r9f6.mjs +0 -11
@@ -0,0 +1,144 @@
1
+ import { default as React } from 'react';
2
+ import { RemoveListener } from '@sheetxl/utils';
3
+ import { FocusWindowOptions } from '@sheetxl/utils-react';
4
+ import { ITaskPaneRegistry } from './TaskPaneRegistry';
5
+ import { TaskPaneStripProps } from './TaskPaneStrip';
6
+ import { TaskPaneTitleProps } from './TaskPaneTitle';
7
+ export interface TaskPaneAreaProps<T = any> extends React.HTMLAttributes<HTMLDivElement> {
8
+ /**
9
+ * The model to pass to taskpane
10
+ */
11
+ model?: T;
12
+ /**
13
+ * Called when the task pane is should open.
14
+ *
15
+ * @remarks
16
+ * This is called when the first task pane is activated but it does not actually open.
17
+ */
18
+ onOpen?: () => void;
19
+ /**
20
+ * Called when the task pane is closed.
21
+ *
22
+ * @remarks
23
+ * This is called when the last task pane is deactivated but it does not actually close.
24
+ */
25
+ onClose?: () => void;
26
+ /**
27
+ * Props that can be injected to pane
28
+ */
29
+ propsPane?: React.HTMLAttributes<HTMLDivElement>;
30
+ /**
31
+ * Allows users to Wrap pane children in Top level Context.
32
+ *
33
+ * @remarks
34
+ * Rendered as `<WrapperPane>{pane}</WrapperPane>` — a real component, hooks are allowed.
35
+ */
36
+ wrapperPane?: React.ComponentType<{
37
+ children?: React.ReactNode;
38
+ }>;
39
+ /**
40
+ * Wrap frame in a context.
41
+ *
42
+ * @remarks
43
+ * Rendered as `<WrapperFrame>{frame}</WrapperFrame>` — a real component, hooks are allowed.
44
+ */
45
+ wrapperFrame?: React.ComponentType<{
46
+ children?: React.ReactNode;
47
+ }>;
48
+ /**
49
+ * Props that can be injected to the frame
50
+ */
51
+ propsFrame?: React.HTMLAttributes<HTMLDivElement>;
52
+ /**
53
+ * Override the default title component.
54
+ *
55
+ * @remarks
56
+ * If the registry also provides a custom title component that will be used instead.
57
+ */
58
+ componentTitle?: React.ComponentType<TaskPaneTitleProps>;
59
+ /**
60
+ * Override the default task pane strip component.
61
+ */
62
+ componentStrip?: React.ComponentType<TaskPaneStripProps>;
63
+ /**
64
+ * Allow for custom registry of task panes.
65
+ */
66
+ registry?: ITaskPaneRegistry;
67
+ /**
68
+ * If true always show the strip even with one pane.
69
+ */
70
+ alwaysShowStrip?: boolean;
71
+ /**
72
+ * Whether the layout should be right to left. This will flip the order of the panes and the direction of the split.
73
+ *
74
+ * @defaultValue 'right'
75
+ */
76
+ side?: 'left' | 'right';
77
+ /**
78
+ * Reference to the underlying element.
79
+ */
80
+ ref?: React.Ref<ITaskPaneAreaElement>;
81
+ }
82
+ export interface ActivateFrameOptions<A = any> {
83
+ /**
84
+ * If not provided then will drive autoFocus
85
+ */
86
+ autoFocus?: boolean | string | FocusWindowOptions;
87
+ /**
88
+ * An opaque value bag for the pane being activated, delivered as {@link TaskPaneProps.args}.
89
+ *
90
+ * @remarks
91
+ * How an activation says *what to show*, as opposed to merely *show yourself* — a conditional
92
+ * format preset ("Greater Than…") opens the rules pane already editing a new rule seeded with its
93
+ * condition. The area does not read it; only the pane registered under `key` knows its shape (see
94
+ * {@link ItemsPaneArgs} for the built-in list panes).
95
+ *
96
+ * It belongs to ONE activation. Activating the same pane again without it clears it — otherwise a
97
+ * pane that unmounts on tab switch would re-consume the last one every time it came back — so a
98
+ * caller that wants it delivered again passes it again.
99
+ */
100
+ args?: A;
101
+ }
102
+ export interface ITaskPaneAreaListener {
103
+ /**
104
+ * Called when the active pane or open panes change.
105
+ */
106
+ onChange?: () => void;
107
+ }
108
+ export interface ITaskPaneArea {
109
+ /**
110
+ * This will show and focus a task pane by key.
111
+ *
112
+ * @param key The task pane key.
113
+ */
114
+ activate: <A = any>(key: string, options?: ActivateFrameOptions<A>) => void;
115
+ /**
116
+ * Return the key for the currently active task pane.
117
+ */
118
+ getActive: () => string | null;
119
+ /**
120
+ * Returns the list of currently open task panes.
121
+ */
122
+ getOpen: () => readonly string[];
123
+ /**
124
+ * Will close the task pane with the given key.
125
+ * @param key The task pane key.
126
+ */
127
+ close: (key: string) => Promise<void>;
128
+ /**
129
+ * Add a listener for task pane state changes.
130
+ */
131
+ addListener: (listener: ITaskPaneAreaListener) => RemoveListener;
132
+ }
133
+ export interface ITaskPaneAreaElement extends HTMLDivElement, ITaskPaneArea {
134
+ }
135
+ /**
136
+ * The TaskPaneArea is a React component that renders multiple task panes.
137
+ *
138
+ * Container component implements 2 interfaces. If
139
+ * implements the ITaskPaneArea interface to be given to the TaskPaneProvider
140
+ * and it implement the ITaskPaneParent to be given to the TaskPane component.
141
+ * This provides a simple implementation but can be swapped out later.
142
+ */
143
+ export declare const TaskPaneArea: React.NamedExoticComponent<Omit<TaskPaneAreaProps<any>, "ref"> & React.RefAttributes<ITaskPaneAreaElement>>;
144
+ //# sourceMappingURL=TaskPaneArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskPaneArea.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/TaskPaneArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAwC,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAIrG,OAAO,EACoB,KAAK,iBAAiB,EAChD,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAC,GAAG,CAAE,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpF;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;IACV;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IAEH,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACjD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;IAElE;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;IAEnE;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAElD;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAC,GAAG;IAWzC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,kBAAkB,CAAC;IAElD;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CAIvB;AAED,MAAM,WAAW,aAAa;IAE5B;;;;OAIG;IAEH,QAAQ,EAAE,CAAC,CAAC,GAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1E;;OAEG;IACH,SAAS,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,SAAS,MAAM,EAAE,CAAC;IACjC;;;OAGG;IACH,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,cAAc,CAAC;CAClE;AAED,MAAM,WAAW,oBAAqB,SAAQ,cAAc,EAAE,aAAa;CAAG;AAwB9E;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,6GAqVtB,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { default as React } from 'react';
2
+ import { RemoveListener } from '@sheetxl/utils';
3
+ import { IFrameContainerListener } from '../frame';
4
+ import { TaskPaneEntry } from './TaskPaneRegistry';
5
+ import { TaskPaneTitleProps } from './TaskPaneTitle';
6
+ export interface TaskPaneFrameProps extends React.HTMLAttributes<HTMLElement> {
7
+ entry: TaskPaneEntry;
8
+ model?: any;
9
+ /** The activating call's value bag — see {@link ActivateFrameOptions.args}. */
10
+ args?: any;
11
+ close?: () => void;
12
+ listenerContainer?: (listener: IFrameContainerListener) => RemoveListener;
13
+ /**
14
+ * If the values can be modified
15
+ */
16
+ readOnly?: boolean;
17
+ /**
18
+ * Allows for component to be autoFocused.
19
+ *
20
+ * @remarks
21
+ * If a string is provided this will be used as a querySelector to find the initial focusable component.
22
+ */
23
+ autoFocusSel?: string;
24
+ /**
25
+ * Props that can be injected to pane
26
+ */
27
+ propsPane?: React.HTMLAttributes<HTMLDivElement>;
28
+ /**
29
+ * Allows users to Wrap pane children in Top level Context.
30
+ *
31
+ * @remarks
32
+ * Rendered as `<WrapperPane>{pane}</WrapperPane>` — a real component, hooks are allowed.
33
+ */
34
+ wrapperPane?: React.ComponentType<{
35
+ children?: React.ReactNode;
36
+ }>;
37
+ /**
38
+ * Override the default title component.
39
+ *
40
+ * @remarks
41
+ * If the registry also provides a custom title component that will be used instead.
42
+ */
43
+ componentTitle?: React.ComponentType<TaskPaneTitleProps>;
44
+ onMounted?: (entry: TaskPaneEntry) => void;
45
+ onUnmounted?: (entry: TaskPaneEntry) => void;
46
+ }
47
+ export declare const TaskPaneFrame: React.NamedExoticComponent<TaskPaneFrameProps & React.RefAttributes<HTMLDivElement>>;
48
+ //# sourceMappingURL=TaskPaneFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskPaneFrame.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/TaskPaneFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAErE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAIzE,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC3E,KAAK,EAAE,aAAa,CAAC;IAErB,KAAK,CAAC,EAAE,GAAG,CAAC;IAEZ,+EAA+E;IAC/E,IAAI,CAAC,EAAE,GAAG,CAAC;IAEX,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IAEnB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,uBAAuB,KAAK,cAAc,CAAC;IAE1E;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAQtB;;OAEG;IAEH,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACjD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;IAElE;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAEzD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,aAAa,sFA2KvB,CAAA"}
@@ -0,0 +1,108 @@
1
+ import { ICommandDefinition, CommandButtonProps } from '@sheetxl/utils-react';
2
+ import { TaskPaneProps } from './ITaskPane';
3
+ import { TaskPaneTitleProps } from './TaskPaneTitle';
4
+ import { ITaskPaneArea } from './TaskPaneArea';
5
+ export interface TaskPaneEntry {
6
+ /**
7
+ * The unique key for the task pane.
8
+ *
9
+ * @remarks
10
+ * * Must not change.
11
+ */
12
+ readonly key: string;
13
+ /**
14
+ * The command paths to use to open the task pane.
15
+ *
16
+ * @remarks
17
+ * * Must not change.
18
+ * If this is not provided the task pane can only be opened programmatically.
19
+ */
20
+ readonly contributionPoints?: string[];
21
+ /**
22
+ * The title to display to identify the task pane.
23
+ */
24
+ getTitle(): string;
25
+ /**
26
+ * The icon to display to identify the task pane.
27
+ *
28
+ * @remarks
29
+ * This can be either a string (iconKey) or a React element.
30
+ */
31
+ getIcon?(): React.ReactElement | string | undefined;
32
+ /**
33
+ * The task pane component.
34
+ *
35
+ * @remarks
36
+ * This is rendered as a React element (`<Component {...props}/>`), so it is a real component:
37
+ * hooks are allowed, and it participates in reconciliation like any other component. The host's
38
+ * `ref` is delivered as a regular prop ({@link TaskPaneProps.ref}, React 19 style) — forward it
39
+ * to the pane's root element.
40
+ */
41
+ component: React.ComponentType<TaskPaneProps>;
42
+ /**
43
+ * If `true`, the pane stays mounted (hidden with `display: none`) while another pane is active,
44
+ * instead of unmounting on switch. Opt in for panes that are expensive or fragile to (re)mount —
45
+ * the script editor, whose Monaco/CDN-loader/worker setup is built around a single mount lifecycle
46
+ * (remounting it re-runs the AMD loader shim + global juggling and re-creates the language workers,
47
+ * which fails on the way back). Leave unset for ordinary panes so they keep the default
48
+ * unmount-on-hide behavior (state resets, memory freed).
49
+ *
50
+ * @defaultValue false
51
+ */
52
+ readonly keepMounted?: boolean;
53
+ /**
54
+ * Optional component to render a custom title for the task pane.
55
+ *
56
+ * @remarks
57
+ * Rendered as a React element — hooks are allowed.
58
+ */
59
+ componentTitle?: React.ComponentType<TaskPaneTitleProps>;
60
+ createCommand?(taskPaneArea: ITaskPaneArea): ICommandDefinition;
61
+ /**
62
+ * Optional component for a button that can be placed in the command bar.
63
+ *
64
+ * @remarks
65
+ * If not provided a default button will be created.
66
+ * Rendered as a React element — hooks are allowed.
67
+ */
68
+ componentCommandButton?: React.ComponentType<CommandButtonProps>;
69
+ }
70
+ export interface ITaskPaneRegistry {
71
+ /**
72
+ * Registers a task pane container.
73
+ * @param entry The task pane entry.
74
+ * @param replace Whether to replace an existing task pane. Default is false.
75
+ */
76
+ registerTaskPane(entry: TaskPaneEntry, replace?: boolean): void;
77
+ /**
78
+ * Unregister a task pane container.
79
+ *
80
+ * @param key The unique key for the task pane.
81
+ */
82
+ unregisterTaskPane(key: string): void;
83
+ /**
84
+ * Gets a registered task pane container.
85
+ *
86
+ * @param key The unique key for the task pane.
87
+ * @returns The registered task pane or null if not found.
88
+ */
89
+ getRegisteredTaskPane(key: string): TaskPaneEntry | null;
90
+ /**
91
+ * Finds contributions for a specific entry.
92
+ * @param contributionKey
93
+ */
94
+ findContributions(contributionKey: string): TaskPaneEntry[];
95
+ }
96
+ declare class TaskPaneRegistry implements ITaskPaneRegistry {
97
+ protected _taskPanes: Map<string, TaskPaneEntry>;
98
+ /** @inheritdoc ITaskPaneRegistry.registerTaskPane */
99
+ registerTaskPane(entry: TaskPaneEntry, replace?: boolean): void;
100
+ /** @inheritdoc ITaskPaneRegistry.unregisterTaskPane */
101
+ unregisterTaskPane(key: string): void;
102
+ /** @inheritdoc ITaskPaneRegistry.getRegisteredTaskPane */
103
+ getRegisteredTaskPane(key: string): TaskPaneEntry | null;
104
+ findContributions(contributionKey: string): TaskPaneEntry[];
105
+ }
106
+ export declare const DefaultTaskPaneRegistry: TaskPaneRegistry;
107
+ export {};
108
+ //# sourceMappingURL=TaskPaneRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskPaneRegistry.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/TaskPaneRegistry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEjG,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEvC;;OAEG;IACH,QAAQ,IAAI,MAAM,CAAC;IAEnB;;;;;OAKG;IAEH,OAAO,CAAC,IAAI,KAAK,CAAC,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;IAEpD;;;;;;;;OAQG;IACH,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAE9C;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAE/B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAGzD,aAAa,CAAC,CAAC,YAAY,EAAE,aAAa,GAAG,kBAAkB,CAAC;IAChE;;;;;;OAMG;IAKH,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAGlE;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhE;;;;OAIG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtC;;;;;OAKG;IACH,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;IAEzD;;;OAGG;IACH,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;CAC7D;AAgCD,cAAM,gBAAiB,YAAW,iBAAiB;IACjD,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IAE7D,qDAAqD;IACrD,gBAAgB,CACd,KAAK,EAAE,aAAa,EACpB,OAAO,GAAE,OAAe,GACvB,IAAI;IAQP,uDAAuD;IACvD,kBAAkB,CAChB,GAAG,EAAE,MAAM,GACV,IAAI;IAQP,0DAA0D;IAC1D,qBAAqB,CACnB,GAAG,EAAE,MAAM,GACV,aAAa,GAAG,IAAI;IAKvB,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,EAAE;CAoB5D;AAED,eAAO,MAAM,uBAAuB,kBAAyB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { default as React } from 'react';
2
+ import { ITaskPaneRegistry } from './TaskPaneRegistry';
3
+ export interface TaskPaneStripProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'selected'> {
4
+ taskPanes: readonly string[];
5
+ onSelect(key: string): void;
6
+ /** The active task-pane key, or `undefined` when none is active. */
7
+ selected?: string;
8
+ /**
9
+ * Allow for custom registry of task panes.
10
+ */
11
+ registry?: ITaskPaneRegistry;
12
+ /**
13
+ * If true, only show icons in the strip (no text).
14
+ */
15
+ iconsOnly?: boolean;
16
+ /**
17
+ * Whether the layout should be right to left. This will flip the order of the panes and the direction of the split.
18
+ *
19
+ * @defaultValue 'left'
20
+ */
21
+ side?: 'left' | 'right';
22
+ /**
23
+ * Ref to the task pane strip element.
24
+ */
25
+ ref?: React.Ref<ITaskPaneStrip>;
26
+ }
27
+ export interface TaskPaneStripAttributes {
28
+ isTaskPaneStrip: () => true;
29
+ }
30
+ export interface ITaskPaneStrip extends HTMLDivElement, TaskPaneStripAttributes {
31
+ }
32
+ export declare const TaskPaneStrip: React.NamedExoticComponent<Omit<TaskPaneStripProps, "ref"> & React.RefAttributes<ITaskPaneStrip>>;
33
+ //# sourceMappingURL=TaskPaneStrip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskPaneStrip.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/TaskPaneStrip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EACoB,KAAK,iBAAiB,EAChD,MAAM,oBAAoB,CAAC;AAK5B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAI1G,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAE7B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,uBAAuB;CAAG;AAMlF,eAAO,MAAM,aAAa,mGA8EvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ export interface TaskPaneTitleProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
3
+ title: React.ReactNode;
4
+ icon: React.ReactNode;
5
+ onClose: () => void;
6
+ readOnly: boolean;
7
+ /**
8
+ * If the task pane is focused
9
+ */
10
+ focused: boolean;
11
+ /**
12
+ * Whether the layout should be right to left. This will flip the order of the panes and the direction of the split.
13
+ *
14
+ * @defaultValue 'left'
15
+ */
16
+ side?: 'left' | 'right';
17
+ /**
18
+ * Reference to the underlying element.
19
+ */
20
+ ref?: React.Ref<HTMLDivElement>;
21
+ }
22
+ declare const TaskPaneTitle: React.NamedExoticComponent<Omit<TaskPaneTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ export { TaskPaneTitle };
24
+ //# sourceMappingURL=TaskPaneTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskPaneTitle.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/TaskPaneTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC1F,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IAEtB,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAIjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAKD,QAAA,MAAM,aAAa,mGA4DhB,CAAC;AAGJ,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './ITaskPane';
2
+ export * from './useTaskPane';
3
+ export * from './TaskPaneArea';
4
+ export * from './TaskPaneTitle';
5
+ export * from './TaskPaneStrip';
6
+ export * from './TaskPaneRegistry';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { default as React } from 'react';
2
+ import { ITaskPaneArea, ITaskPaneAreaElement, TaskPaneAreaProps } from './TaskPaneArea';
3
+ import { ITaskPaneRegistry } from './TaskPaneRegistry';
4
+ /**
5
+ * Context provider for task panes. Allows custom task pane manager
6
+ * to be provided to components within the provider tree.
7
+ *
8
+ * ```tsx
9
+ * <TaskPaneProvider
10
+ * renderArea={(props) => <TaskPaneArea {...props} />}
11
+ * onUpdateArea={(area) => { }}
12
+ * >
13
+ * <App />
14
+ * </TaskPaneProvider>
15
+ * ```
16
+ */
17
+ export interface TaskPaneProviderProps {
18
+ children: React.ReactNode;
19
+ renderArea: (props: TaskPaneAreaProps) => React.ReactElement<ITaskPaneAreaElement>;
20
+ onUpdateArea: (area: React.ReactElement<ITaskPaneAreaElement> | null) => void;
21
+ registry?: ITaskPaneRegistry;
22
+ }
23
+ export declare const TaskPaneProvider: React.FC<TaskPaneProviderProps>;
24
+ /**
25
+ * Hook to get the task pane manager directly.
26
+ * Useful for registering new task panes or managing instances.
27
+ */
28
+ export declare const useTaskPaneArea: (ignoreUpdates?: boolean) => ITaskPaneArea;
29
+ //# sourceMappingURL=useTaskPane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTaskPane.d.ts","sourceRoot":"","sources":["../../../../src/taskPane/useTaskPane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EACsB,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EACjG,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIrF;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,UAAU,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAEnF,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,oBAAoB,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAE9E,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiF5D,CAAC;AAoBF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,gBAAe,OAAa,KAAG,aAiB9D,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"DocThemesContext.d.ts","sourceRoot":"","sources":["../../../../src/theme/DocThemesContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,gBAAgB,kDAA+C,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"DocThemesProvider.d.ts","sourceRoot":"","sources":["../../../../src/theme/DocThemesProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9E;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,gCAa9D,CAAA"}
@@ -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 @@
1
+ {"version":3,"file":"ThemeState.d.ts","sourceRoot":"","sources":["../../../../src/theme/ThemeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa;IACxB,+DAA+D;;IAE/D,sGAAsG;;IAEtG,4CAA4C;;CAEpC,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"buildDocThemeCSS.d.ts","sourceRoot":"","sources":["../../../../src/theme/buildDocThemeCSS.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAsE3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,EAAE,kBAAiB,MAAW,EAAE,QAAO,MAAuB,EAAE,QAAQ,MAAM,KAAG,MAQ3H,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"buildOOXMLThemeCSS.d.ts","sourceRoot":"","sources":["../../../../src/theme/buildOOXMLThemeCSS.ts"],"names":[],"mappings":"AAsEA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAO,MAAuB,EAAE,QAAQ,MAAM,KAAG,MAMhF,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"createCSSSystemLookup.d.ts","sourceRoot":"","sources":["../../../../src/theme/createCSSSystemLookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,GAAG;IAClD;;;OAGG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,sBAAsB,KAAG,eAuExE,CAAA"}
@@ -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 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AAErC,cAAc,qBAAqB,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"useAppColorScheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/useAppColorScheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjG;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAIpC,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"useDocThemes.d.ts","sourceRoot":"","sources":["../../../../src/theme/useDocThemes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAItE,eAAO,MAAM,YAAY,QAAO,gBAgB/B,CAAA"}