@sheetxl/react 0.7.22 → 0.7.23-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 (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/B5ln1NAKVNy0DKUy.mjs +6286 -0
  5. package/browser/esm/index.mjs +19258 -4911
  6. package/licenses/dependencies.txt +42 -214
  7. package/node/esm/h7d3ckrxRK_JlmsZ.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/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/DE4tB6-rHLjtcP1D.cjs +0 -16
  450. package/browser/cjs/DfFvH5gp0fyrdVBe.cjs +0 -7
  451. package/browser/cjs/IsZqO9D9KfIS8rJK.cjs +0 -161
  452. package/browser/esm/B-FEg36883DAwV11.mjs +0 -1377
  453. package/browser/esm/C07OMiF-GZT09DE8.mjs +0 -394
  454. package/browser/esm/DpetxHCqcdvCcpAe.mjs +0 -3905
  455. package/node/assets/style.css +0 -1
  456. package/node/esm/BzmGjDsMnAeW7Hwa.mjs +0 -11
@@ -1,394 +0,0 @@
1
- import x, { memo as ce, useState as q, useRef as h, useCallback as ie, useEffect as M } from "react";
2
- /**
3
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.22
4
- *
5
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
- * License: The license can be found at https://www.sheetxl.com/license.
7
- */
8
- function Me(e, t, r) {
9
- return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
10
- }
11
- function se(e, t) {
12
- var r = Object.keys(e);
13
- if (Object.getOwnPropertySymbols) {
14
- var n = Object.getOwnPropertySymbols(e);
15
- t && (n = n.filter(function(o) {
16
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
17
- })), r.push.apply(r, n);
18
- }
19
- return r;
20
- }
21
- function de(e) {
22
- for (var t = 1; t < arguments.length; t++) {
23
- var r = arguments[t] != null ? arguments[t] : {};
24
- t % 2 ? se(Object(r), !0).forEach(function(n) {
25
- Me(e, n, r[n]);
26
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : se(Object(r)).forEach(function(n) {
27
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
28
- });
29
- }
30
- return e;
31
- }
32
- function Ee(e, t) {
33
- if (e == null) return {};
34
- var r, n, o = (function(c, a) {
35
- if (c == null) return {};
36
- var s, g, j = {}, v = Object.keys(c);
37
- for (g = 0; g < v.length; g++) s = v[g], a.indexOf(s) >= 0 || (j[s] = c[s]);
38
- return j;
39
- })(e, t);
40
- if (Object.getOwnPropertySymbols) {
41
- var i = Object.getOwnPropertySymbols(e);
42
- for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) >= 0 || Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
43
- }
44
- return o;
45
- }
46
- function fe(e, t) {
47
- (t == null || t > e.length) && (t = e.length);
48
- for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
49
- return n;
50
- }
51
- function Pe(e, t, r) {
52
- return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
53
- }
54
- function ge(e, t) {
55
- var r = Object.keys(e);
56
- if (Object.getOwnPropertySymbols) {
57
- var n = Object.getOwnPropertySymbols(e);
58
- t && (n = n.filter(function(o) {
59
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
60
- })), r.push.apply(r, n);
61
- }
62
- return r;
63
- }
64
- function pe(e) {
65
- for (var t = 1; t < arguments.length; t++) {
66
- var r = arguments[t] != null ? arguments[t] : {};
67
- t % 2 ? ge(Object(r), !0).forEach(function(n) {
68
- Pe(e, n, r[n]);
69
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ge(Object(r)).forEach(function(n) {
70
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
71
- });
72
- }
73
- return e;
74
- }
75
- function V(e) {
76
- return function t() {
77
- for (var r = this, n = arguments.length, o = new Array(n), i = 0; i < n; i++) o[i] = arguments[i];
78
- return o.length >= e.length ? e.apply(this, o) : function() {
79
- for (var c = arguments.length, a = new Array(c), s = 0; s < c; s++) a[s] = arguments[s];
80
- return t.apply(r, [].concat(o, a));
81
- };
82
- };
83
- }
84
- function F(e) {
85
- return {}.toString.call(e).includes("Object");
86
- }
87
- function L(e) {
88
- return typeof e == "function";
89
- }
90
- var P = V(function(e, t) {
91
- throw new Error(e[t] || e.default);
92
- })({ initialIsRequired: "initial state is required", initialType: "initial state should be an object", initialContent: "initial state shouldn't be an empty object", handlerType: "handler should be an object or a function", handlersType: "all handlers should be a functions", selectorType: "selector should be a function", changeType: "provided value of changes should be an object", changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state', default: "an unknown error accured in `state-local` package" }), U = { changes: function(e, t) {
93
- return F(t) || P("changeType"), Object.keys(t).some(function(r) {
94
- return n = e, o = r, !Object.prototype.hasOwnProperty.call(n, o);
95
- var n, o;
96
- }) && P("changeField"), t;
97
- }, selector: function(e) {
98
- L(e) || P("selectorType");
99
- }, handler: function(e) {
100
- L(e) || F(e) || P("handlerType"), F(e) && Object.values(e).some(function(t) {
101
- return !L(t);
102
- }) && P("handlersType");
103
- }, initial: function(e) {
104
- var t;
105
- e || P("initialIsRequired"), F(e) || P("initialType"), t = e, Object.keys(t).length || P("initialContent");
106
- } };
107
- function Se(e, t) {
108
- return L(t) ? t(e.current) : t;
109
- }
110
- function ke(e, t) {
111
- return e.current = pe(pe({}, e.current), t), t;
112
- }
113
- function xe(e, t, r) {
114
- return L(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
115
- var o;
116
- return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
117
- }), r;
118
- }
119
- var Ie = { create: function(e) {
120
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
121
- U.initial(e), U.handler(t);
122
- var r = { current: e }, n = V(xe)(r, t), o = V(ke)(r), i = V(U.changes)(e), c = V(Se)(r);
123
- return [function() {
124
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(s) {
125
- return s;
126
- };
127
- return U.selector(a), a(r.current);
128
- }, function(a) {
129
- (function() {
130
- for (var s = arguments.length, g = new Array(s), j = 0; j < s; j++) g[j] = arguments[j];
131
- return function(v) {
132
- return g.reduceRight(function(I, T) {
133
- return T(I);
134
- }, v);
135
- };
136
- })(n, o, i, c)(a);
137
- }];
138
- } }, Z, ve = { configIsRequired: "the configuration object is required", configType: "the configuration object should be an object", default: "an unknown error accured in `@monaco-editor/loader` package", deprecation: `Deprecation warning!
139
- You are using deprecated way of configuration.
140
-
141
- Instead of using
142
- monaco.config({ urls: { monacoBase: '...' } })
143
- use
144
- monaco.config({ paths: { vs: '...' } })
145
-
146
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
147
- ` }, he = (Z = function(e, t) {
148
- throw new Error(e[t] || e.default);
149
- }, function e() {
150
- for (var t = this, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
151
- return n.length >= Z.length ? Z.apply(this, n) : function() {
152
- for (var i = arguments.length, c = new Array(i), a = 0; a < i; a++) c[a] = arguments[a];
153
- return e.apply(t, [].concat(n, c));
154
- };
155
- })(ve), Te = { config: function(e) {
156
- var t;
157
- return e || he("configIsRequired"), t = e, {}.toString.call(t).includes("Object") || he("configType"), e.urls ? (console.warn(ve.deprecation), { paths: { vs: e.urls.monacoBase } }) : e;
158
- } };
159
- function ye(e, t) {
160
- return Object.keys(t).forEach(function(r) {
161
- t[r] instanceof Object && e[r] && Object.assign(t[r], ye(e[r], t[r]));
162
- }), de(de({}, e), t);
163
- }
164
- var Ae = { type: "cancelation", msg: "operation is manually canceled" };
165
- function ee(e) {
166
- var t = !1, r = new Promise(function(n, o) {
167
- e.then(function(i) {
168
- return t ? o(Ae) : n(i);
169
- }), e.catch(o);
170
- });
171
- return r.cancel = function() {
172
- return t = !0;
173
- }, r;
174
- }
175
- var te, re, Ce = Ie.create({ config: { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs" } }, isInitialized: !1, resolve: null, reject: null, monaco: null }), be = (re = 2, (function(e) {
176
- if (Array.isArray(e)) return e;
177
- })(te = Ce) || (function(e, t) {
178
- if (typeof Symbol < "u" && Symbol.iterator in Object(e)) {
179
- var r = [], n = !0, o = !1, i = void 0;
180
- try {
181
- for (var c, a = e[Symbol.iterator](); !(n = (c = a.next()).done) && (r.push(c.value), !t || r.length !== t); n = !0) ;
182
- } catch (s) {
183
- o = !0, i = s;
184
- } finally {
185
- try {
186
- n || a.return == null || a.return();
187
- } finally {
188
- if (o) throw i;
189
- }
190
- }
191
- return r;
192
- }
193
- })(te, re) || (function(e, t) {
194
- if (e) {
195
- if (typeof e == "string") return fe(e, t);
196
- var r = Object.prototype.toString.call(e).slice(8, -1);
197
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? fe(e, t) : void 0;
198
- }
199
- })(te, re) || (function() {
200
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
201
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
202
- })()), z = be[0], W = be[1];
203
- function De(e) {
204
- return document.body.appendChild(e);
205
- }
206
- function Ve(e) {
207
- var t, r, n = z(function(i) {
208
- return { config: i.config, reject: i.reject };
209
- }), o = (t = "".concat(n.config.paths.vs, "/loader.js"), r = document.createElement("script"), t && (r.src = t), r);
210
- return o.onload = function() {
211
- return e();
212
- }, o.onerror = n.reject, o;
213
- }
214
- function Le() {
215
- var e = z(function(r) {
216
- return { config: r.config, resolve: r.resolve, reject: r.reject };
217
- }), t = window.require;
218
- t.config(e.config), t(["vs/editor/editor.main"], function(r) {
219
- we(r), e.resolve(r);
220
- }, function(r) {
221
- e.reject(r);
222
- });
223
- }
224
- function we(e) {
225
- z().monaco || W({ monaco: e });
226
- }
227
- var ne = new Promise(function(e, t) {
228
- return W({ resolve: e, reject: t });
229
- }), Y = { config: function(e) {
230
- var t = Te.config(e), r = t.monaco, n = Ee(t, ["monaco"]);
231
- W(function(o) {
232
- return { config: ye(o.config, n), monaco: r };
233
- });
234
- }, init: function() {
235
- var e = z(function(t) {
236
- return { monaco: t.monaco, isInitialized: t.isInitialized, resolve: t.resolve };
237
- });
238
- if (!e.isInitialized) {
239
- if (W({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), ee(ne);
240
- if (window.monaco && window.monaco.editor) return we(window.monaco), e.resolve(window.monaco), ee(ne);
241
- (function() {
242
- for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
243
- return function(o) {
244
- return r.reduceRight(function(i, c) {
245
- return c(i);
246
- }, o);
247
- };
248
- })(De, Ve)(Le);
249
- }
250
- return ee(ne);
251
- }, __getMonacoInstance: function() {
252
- return z(function(e) {
253
- return e.monaco;
254
- });
255
- } }, oe = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Re = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, qe = function({ children: e }) {
256
- return x.createElement("div", { style: Re.container }, e);
257
- }, Oe = ce(function({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: c }) {
258
- return x.createElement("section", { style: { ...oe.wrapper, width: e, height: t }, ...c }, !r && x.createElement(qe, null, n), x.createElement("div", { ref: o, style: { ...oe.fullWidth, ...!r && oe.hide }, className: i }));
259
- }), ae = function(e) {
260
- M(e, []);
261
- }, O = function(e, t, r = !0) {
262
- let n = h(!0);
263
- M(n.current || !r ? () => {
264
- n.current = !1;
265
- } : e, t);
266
- };
267
- function R() {
268
- }
269
- function k(e, t, r, n) {
270
- return (function(o, i) {
271
- return o.editor.getModel(me(o, i));
272
- })(e, n) || (function(o, i, c, a) {
273
- return o.editor.createModel(i, c, a ? me(o, a) : void 0);
274
- })(e, t, r, n);
275
- }
276
- function me(e, t) {
277
- return e.Uri.parse(t);
278
- }
279
- var ze = function({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: c, keepCurrentOriginalModel: a = !1, keepCurrentModifiedModel: s = !1, theme: g = "light", loading: j = "Loading...", options: v = {}, height: I = "100%", width: T = "100%", className: $, wrapperProps: G = {}, beforeMount: H = R, onMount: J = R }) {
280
- let [w, A] = q(!1), [C, p] = q(!0), m = h(null), d = h(null), D = h(null), y = h(J), u = h(H), S = h(!1);
281
- ae(() => {
282
- let l = Y.init();
283
- return l.then((f) => (d.current = f) && p(!1)).catch((f) => f?.type !== "cancelation" && console.error("Monaco initialization: error:", f)), () => m.current ? (function() {
284
- let f = m.current?.getModel();
285
- a || f?.original?.dispose(), s || f?.modified?.dispose(), m.current?.dispose();
286
- })() : l.cancel();
287
- }), O(() => {
288
- if (m.current && d.current) {
289
- let l = m.current.getOriginalEditor(), f = k(d.current, e || "", n || r || "text", i || "");
290
- f !== l.getModel() && l.setModel(f);
291
- }
292
- }, [i], w), O(() => {
293
- if (m.current && d.current) {
294
- let l = m.current.getModifiedEditor(), f = k(d.current, t || "", o || r || "text", c || "");
295
- f !== l.getModel() && l.setModel(f);
296
- }
297
- }, [c], w), O(() => {
298
- let l = m.current.getModifiedEditor();
299
- l.getOption(d.current.editor.EditorOption.readOnly) ? l.setValue(t || "") : t !== l.getValue() && (l.executeEdits("", [{ range: l.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), l.pushUndoStop());
300
- }, [t], w), O(() => {
301
- m.current?.getModel()?.original.setValue(e || "");
302
- }, [e], w), O(() => {
303
- let { original: l, modified: f } = m.current.getModel();
304
- d.current.editor.setModelLanguage(l, n || r || "text"), d.current.editor.setModelLanguage(f, o || r || "text");
305
- }, [r, n, o], w), O(() => {
306
- d.current?.editor.setTheme(g);
307
- }, [g], w), O(() => {
308
- m.current?.updateOptions(v);
309
- }, [v], w);
310
- let _ = ie(() => {
311
- if (!d.current) return;
312
- u.current(d.current);
313
- let l = k(d.current, e || "", n || r || "text", i || ""), f = k(d.current, t || "", o || r || "text", c || "");
314
- m.current?.setModel({ original: l, modified: f });
315
- }, [r, t, o, e, n, i, c]), N = ie(() => {
316
- !S.current && D.current && (m.current = d.current.editor.createDiffEditor(D.current, { automaticLayout: !0, ...v }), _(), d.current?.editor.setTheme(g), A(!0), S.current = !0);
317
- }, [v, g, _]);
318
- return M(() => {
319
- w && y.current(m.current, d.current);
320
- }, [w]), M(() => {
321
- !C && !w && N();
322
- }, [C, w, N]), x.createElement(Oe, { width: T, height: I, isEditorReady: w, loading: j, _ref: D, className: $, wrapperProps: G });
323
- }, Be = ce(ze), We = function() {
324
- let [e, t] = q(Y.__getMonacoInstance());
325
- return ae(() => {
326
- let r;
327
- return e || (r = Y.init(), r.then((n) => {
328
- t(n);
329
- })), () => r?.cancel();
330
- }), e;
331
- }, _e = function(e) {
332
- let t = h();
333
- return M(() => {
334
- t.current = e;
335
- }, [e]), t.current;
336
- }, B = /* @__PURE__ */ new Map(), Ne = function({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: c = "light", line: a, loading: s = "Loading...", options: g = {}, overrideServices: j = {}, saveViewState: v = !0, keepCurrentModel: I = !1, width: T = "100%", height: $ = "100%", className: G, wrapperProps: H = {}, beforeMount: J = R, onMount: w = R, onChange: A, onValidate: C = R }) {
337
- let [p, m] = q(!1), [d, D] = q(!0), y = h(null), u = h(null), S = h(null), _ = h(w), N = h(J), l = h(), f = h(n), je = _e(i), ue = h(!1), K = h(!1);
338
- ae(() => {
339
- let b = Y.init();
340
- return b.then((E) => (y.current = E) && D(!1)).catch((E) => E?.type !== "cancelation" && console.error("Monaco initialization: error:", E)), () => u.current ? (l.current?.dispose(), I ? v && B.set(i, u.current.saveViewState()) : u.current.getModel()?.dispose(), void u.current.dispose()) : b.cancel();
341
- }), O(() => {
342
- let b = k(y.current, e || n || "", t || o || "", i || r || "");
343
- b !== u.current?.getModel() && (v && B.set(je, u.current?.saveViewState()), u.current?.setModel(b), v && u.current?.restoreViewState(B.get(i)));
344
- }, [i], p), O(() => {
345
- u.current?.updateOptions(g);
346
- }, [g], p), O(() => {
347
- !u.current || n === void 0 || (u.current.getOption(y.current.editor.EditorOption.readOnly) ? u.current.setValue(n) : n !== u.current.getValue() && (K.current = !0, u.current.executeEdits("", [{ range: u.current.getModel().getFullModelRange(), text: n, forceMoveMarkers: !0 }]), u.current.pushUndoStop(), K.current = !1));
348
- }, [n], p), O(() => {
349
- let b = u.current?.getModel();
350
- b && o && y.current?.editor.setModelLanguage(b, o);
351
- }, [o], p), O(() => {
352
- a !== void 0 && u.current?.revealLine(a);
353
- }, [a], p), O(() => {
354
- y.current?.editor.setTheme(c);
355
- }, [c], p);
356
- let le = ie(() => {
357
- if (S.current && y.current && !ue.current) {
358
- N.current(y.current);
359
- let b = i || r, E = k(y.current, n || e || "", t || o || "", b || "");
360
- u.current = y.current?.editor.create(S.current, { model: E, automaticLayout: !0, ...g }, j), v && u.current.restoreViewState(B.get(b)), y.current.editor.setTheme(c), a !== void 0 && u.current.revealLine(a), m(!0), ue.current = !0;
361
- }
362
- }, [e, t, r, n, o, i, g, j, v, c, a]);
363
- return M(() => {
364
- p && _.current(u.current, y.current);
365
- }, [p]), M(() => {
366
- !d && !p && le();
367
- }, [d, p, le]), f.current = n, M(() => {
368
- p && A && (l.current?.dispose(), l.current = u.current?.onDidChangeModelContent((b) => {
369
- K.current || A(u.current.getValue(), b);
370
- }));
371
- }, [p, A]), M(() => {
372
- if (p) {
373
- let b = y.current.editor.onDidChangeMarkers((E) => {
374
- let Q = u.current.getModel()?.uri;
375
- if (Q && E.find((X) => X.path === Q.path)) {
376
- let X = y.current.editor.getModelMarkers({ resource: Q });
377
- C?.(X);
378
- }
379
- });
380
- return () => {
381
- b?.dispose();
382
- };
383
- }
384
- return () => {
385
- };
386
- }, [p, C]), x.createElement(Oe, { width: T, height: $, isEditorReady: p, loading: s, _ref: S, className: G, wrapperProps: H });
387
- }, Fe = ce(Ne), Ye = Fe;
388
- export {
389
- Be as DiffEditor,
390
- Fe as Editor,
391
- Ye as default,
392
- Y as loader,
393
- We as useMonaco
394
- };