@dxos/plugin-sheet 0.6.13 → 0.6.14-main.1366248

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 (330) hide show
  1. package/dist/lib/browser/SheetContainer-JZEKRM4Z.mjs +297 -0
  2. package/dist/lib/browser/SheetContainer-JZEKRM4Z.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-BVUN7SHF.mjs +67 -0
  4. package/dist/lib/browser/chunk-BVUN7SHF.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-G2FUL6PK.mjs +1671 -0
  6. package/dist/lib/browser/chunk-G2FUL6PK.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-RABELMEQ.mjs +15 -0
  8. package/dist/lib/browser/chunk-RABELMEQ.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-D5AGLXJP.mjs → chunk-VMSX6Z4X.mjs} +659 -675
  10. package/dist/lib/browser/chunk-VMSX6Z4X.mjs.map +7 -0
  11. package/dist/lib/browser/compute-graph-GGWUX644.mjs +35 -0
  12. package/dist/lib/browser/compute-graph-GGWUX644.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +168 -67
  14. package/dist/lib/browser/index.mjs.map +4 -4
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/meta.mjs +1 -1
  17. package/dist/lib/browser/types.mjs +6 -12
  18. package/dist/lib/node/SheetContainer-PJE74VO4.cjs +300 -0
  19. package/dist/lib/node/SheetContainer-PJE74VO4.cjs.map +7 -0
  20. package/dist/lib/node/chunk-2ZVZI2KJ.cjs +38 -0
  21. package/dist/lib/node/chunk-2ZVZI2KJ.cjs.map +7 -0
  22. package/dist/lib/node/{chunk-DSYKOI4E.cjs → chunk-AWKOWDMI.cjs} +34 -52
  23. package/dist/lib/node/chunk-AWKOWDMI.cjs.map +7 -0
  24. package/dist/lib/node/{chunk-5KKJ4NPP.cjs → chunk-O7XR4R7Y.cjs} +678 -674
  25. package/dist/lib/node/chunk-O7XR4R7Y.cjs.map +7 -0
  26. package/dist/lib/node/chunk-STZ7S7RF.cjs +1656 -0
  27. package/dist/lib/node/chunk-STZ7S7RF.cjs.map +7 -0
  28. package/dist/lib/node/compute-graph-KGWA2QLE.cjs +57 -0
  29. package/dist/lib/node/compute-graph-KGWA2QLE.cjs.map +7 -0
  30. package/dist/lib/node/index.cjs +178 -75
  31. package/dist/lib/node/index.cjs.map +4 -4
  32. package/dist/lib/node/meta.cjs +3 -3
  33. package/dist/lib/node/meta.cjs.map +1 -1
  34. package/dist/lib/node/meta.json +1 -1
  35. package/dist/lib/node/types.cjs +9 -15
  36. package/dist/lib/node/types.cjs.map +2 -2
  37. package/dist/lib/node-esm/SheetContainer-R73XEXHU.mjs +298 -0
  38. package/dist/lib/node-esm/SheetContainer-R73XEXHU.mjs.map +7 -0
  39. package/dist/lib/node-esm/chunk-BM2Q3FFC.mjs +17 -0
  40. package/dist/lib/node-esm/chunk-BM2Q3FFC.mjs.map +7 -0
  41. package/dist/lib/node-esm/chunk-CR4K75EL.mjs +3220 -0
  42. package/dist/lib/node-esm/chunk-CR4K75EL.mjs.map +7 -0
  43. package/dist/lib/node-esm/chunk-UIBWRHW7.mjs +68 -0
  44. package/dist/lib/node-esm/chunk-UIBWRHW7.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-V5N3Y2O5.mjs +1672 -0
  46. package/dist/lib/node-esm/chunk-V5N3Y2O5.mjs.map +7 -0
  47. package/dist/lib/node-esm/compute-graph-2SCZT7N5.mjs +36 -0
  48. package/dist/lib/node-esm/compute-graph-2SCZT7N5.mjs.map +7 -0
  49. package/dist/lib/node-esm/index.mjs +350 -0
  50. package/dist/lib/node-esm/index.mjs.map +7 -0
  51. package/dist/lib/node-esm/meta.json +1 -0
  52. package/dist/lib/node-esm/meta.mjs +10 -0
  53. package/dist/lib/node-esm/meta.mjs.map +7 -0
  54. package/dist/lib/node-esm/types.mjs +17 -0
  55. package/dist/lib/node-esm/types.mjs.map +7 -0
  56. package/dist/types/src/SheetPlugin.d.ts.map +1 -1
  57. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +13 -0
  58. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -0
  59. package/dist/types/src/components/ComputeGraph/index.d.ts +1 -3
  60. package/dist/types/src/components/ComputeGraph/index.d.ts.map +1 -1
  61. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +3 -0
  62. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +1 -0
  63. package/dist/types/src/components/FunctionEditor/index.d.ts +2 -0
  64. package/dist/types/src/components/FunctionEditor/index.d.ts.map +1 -0
  65. package/dist/types/src/components/GridSheet/GridSheet.d.ts +3 -0
  66. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -0
  67. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +6 -0
  68. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -0
  69. package/dist/types/src/components/{CellEditor/CellEditor.stories.d.ts → GridSheet/SheetCellEditor.stories.d.ts} +5 -9
  70. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -0
  71. package/dist/types/src/components/GridSheet/index.d.ts +2 -0
  72. package/dist/types/src/components/GridSheet/index.d.ts.map +1 -0
  73. package/dist/types/src/components/GridSheet/util.d.ts +15 -0
  74. package/dist/types/src/components/GridSheet/util.d.ts.map +1 -0
  75. package/dist/types/src/components/RangeList/RangeList.d.ts +7 -0
  76. package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -0
  77. package/dist/types/src/components/RangeList/index.d.ts +2 -0
  78. package/dist/types/src/components/RangeList/index.d.ts.map +1 -0
  79. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +9 -0
  80. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -0
  81. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +6 -0
  82. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
  83. package/dist/types/src/components/SheetContainer/index.d.ts +3 -0
  84. package/dist/types/src/components/SheetContainer/index.d.ts.map +1 -0
  85. package/dist/types/src/components/SheetContext/SheetContext.d.ts +28 -0
  86. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -0
  87. package/dist/types/src/components/SheetContext/index.d.ts +2 -0
  88. package/dist/types/src/components/SheetContext/index.d.ts.map +1 -0
  89. package/dist/types/src/components/Toolbar/Toolbar.d.ts +36 -9
  90. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
  91. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +4 -32
  92. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
  93. package/dist/types/src/components/index.d.ts +7 -4
  94. package/dist/types/src/components/index.d.ts.map +1 -1
  95. package/dist/types/src/compute-graph/compute-graph-registry.d.ts +34 -0
  96. package/dist/types/src/compute-graph/compute-graph-registry.d.ts.map +1 -0
  97. package/dist/types/src/compute-graph/compute-graph.d.ts +64 -0
  98. package/dist/types/src/compute-graph/compute-graph.d.ts.map +1 -0
  99. package/dist/types/src/compute-graph/compute-graph.stories.d.ts +6 -0
  100. package/dist/types/src/compute-graph/compute-graph.stories.d.ts.map +1 -0
  101. package/dist/types/src/compute-graph/compute-graph.test.d.ts +2 -0
  102. package/dist/types/src/compute-graph/compute-graph.test.d.ts.map +1 -0
  103. package/dist/types/src/compute-graph/compute-node.d.ts +26 -0
  104. package/dist/types/src/compute-graph/compute-node.d.ts.map +1 -0
  105. package/dist/types/src/{components/ComputeGraph → compute-graph/functions}/async-function.d.ts +14 -5
  106. package/dist/types/src/compute-graph/functions/async-function.d.ts.map +1 -0
  107. package/dist/types/src/compute-graph/functions/edge-function.d.ts +21 -0
  108. package/dist/types/src/compute-graph/functions/edge-function.d.ts.map +1 -0
  109. package/dist/types/src/{model/functions.d.ts → compute-graph/functions/function-defs.d.ts} +1 -1
  110. package/dist/types/src/compute-graph/functions/function-defs.d.ts.map +1 -0
  111. package/dist/types/src/compute-graph/functions/index.d.ts +4 -0
  112. package/dist/types/src/compute-graph/functions/index.d.ts.map +1 -0
  113. package/dist/types/src/compute-graph/hyperformula.test.d.ts +2 -0
  114. package/dist/types/src/compute-graph/hyperformula.test.d.ts.map +1 -0
  115. package/dist/types/src/compute-graph/index.d.ts +5 -0
  116. package/dist/types/src/compute-graph/index.d.ts.map +1 -0
  117. package/dist/types/src/compute-graph/testing/index.d.ts +3 -0
  118. package/dist/types/src/compute-graph/testing/index.d.ts.map +1 -0
  119. package/dist/types/src/compute-graph/testing/test-builder.d.ts +15 -0
  120. package/dist/types/src/compute-graph/testing/test-builder.d.ts.map +1 -0
  121. package/dist/types/src/compute-graph/testing/test-plugin.d.ts +36 -0
  122. package/dist/types/src/compute-graph/testing/test-plugin.d.ts.map +1 -0
  123. package/dist/types/src/compute-graph/util.d.ts +2 -0
  124. package/dist/types/src/compute-graph/util.d.ts.map +1 -0
  125. package/dist/types/src/defs/index.d.ts +4 -0
  126. package/dist/types/src/defs/index.d.ts.map +1 -0
  127. package/dist/types/src/defs/sheet-range-types.d.ts +13 -0
  128. package/dist/types/src/defs/sheet-range-types.d.ts.map +1 -0
  129. package/dist/types/src/defs/types.d.ts +28 -0
  130. package/dist/types/src/defs/types.d.ts.map +1 -0
  131. package/dist/types/src/defs/types.test.d.ts.map +1 -0
  132. package/dist/types/src/defs/util.d.ts +39 -0
  133. package/dist/types/src/defs/util.d.ts.map +1 -0
  134. package/dist/types/src/extensions/compute.d.ts +6 -0
  135. package/dist/types/src/extensions/compute.d.ts.map +1 -0
  136. package/dist/types/src/extensions/compute.stories.d.ts +21 -0
  137. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -0
  138. package/dist/types/src/extensions/editor/extension.d.ts +39 -0
  139. package/dist/types/src/extensions/editor/extension.d.ts.map +1 -0
  140. package/dist/types/src/extensions/editor/extension.test.d.ts.map +1 -0
  141. package/dist/types/src/extensions/editor/index.d.ts +2 -0
  142. package/dist/types/src/extensions/editor/index.d.ts.map +1 -0
  143. package/dist/types/src/extensions/index.d.ts +3 -0
  144. package/dist/types/src/extensions/index.d.ts.map +1 -0
  145. package/dist/types/src/index.d.ts +1 -1
  146. package/dist/types/src/index.d.ts.map +1 -1
  147. package/dist/types/src/integrations/index.d.ts +2 -0
  148. package/dist/types/src/integrations/index.d.ts.map +1 -0
  149. package/dist/types/src/integrations/thread-ranges.d.ts +7 -0
  150. package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -0
  151. package/dist/types/src/meta.d.ts +4 -9
  152. package/dist/types/src/meta.d.ts.map +1 -1
  153. package/dist/types/src/model/index.d.ts +2 -3
  154. package/dist/types/src/model/index.d.ts.map +1 -1
  155. package/dist/types/src/model/{model.d.ts → sheet-model.d.ts} +22 -69
  156. package/dist/types/src/model/sheet-model.d.ts.map +1 -0
  157. package/dist/types/src/model/sheet-model.test.d.ts +2 -0
  158. package/dist/types/src/model/sheet-model.test.d.ts.map +1 -0
  159. package/dist/types/src/model/useSheetModel.d.ts +8 -0
  160. package/dist/types/src/model/useSheetModel.d.ts.map +1 -0
  161. package/dist/types/src/sanity.test.d.ts +2 -0
  162. package/dist/types/src/sanity.test.d.ts.map +1 -0
  163. package/dist/types/src/serializer.d.ts +4 -0
  164. package/dist/types/src/serializer.d.ts.map +1 -0
  165. package/dist/types/src/testing/index.d.ts +2 -0
  166. package/dist/types/src/testing/index.d.ts.map +1 -0
  167. package/dist/types/src/testing/testing.d.ts +8 -0
  168. package/dist/types/src/testing/testing.d.ts.map +1 -0
  169. package/dist/types/src/translations.d.ts +32 -12
  170. package/dist/types/src/translations.d.ts.map +1 -1
  171. package/dist/types/src/types.d.ts +132 -43
  172. package/dist/types/src/types.d.ts.map +1 -1
  173. package/dist/vendor/hyperformula.mjs +37145 -0
  174. package/package.json +60 -61
  175. package/src/SheetPlugin.tsx +89 -78
  176. package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +37 -0
  177. package/src/components/ComputeGraph/index.ts +1 -3
  178. package/src/components/FunctionEditor/FunctionEditor.tsx +45 -0
  179. package/src/components/FunctionEditor/index.ts +5 -0
  180. package/src/components/GridSheet/GridSheet.stories.tsx +46 -0
  181. package/src/components/GridSheet/GridSheet.tsx +358 -0
  182. package/src/components/{CellEditor/CellEditor.stories.tsx → GridSheet/SheetCellEditor.stories.tsx} +18 -15
  183. package/src/components/GridSheet/index.ts +5 -0
  184. package/src/components/GridSheet/util.ts +170 -0
  185. package/src/components/RangeList/RangeList.tsx +53 -0
  186. package/src/components/RangeList/index.ts +5 -0
  187. package/src/components/SheetContainer/SheetContainer.stories.tsx +45 -0
  188. package/src/components/SheetContainer/SheetContainer.tsx +33 -0
  189. package/src/components/SheetContainer/index.ts +7 -0
  190. package/src/components/SheetContext/SheetContext.tsx +127 -0
  191. package/src/components/SheetContext/index.ts +5 -0
  192. package/src/components/Toolbar/Toolbar.stories.tsx +9 -6
  193. package/src/components/Toolbar/Toolbar.tsx +265 -111
  194. package/src/components/index.ts +5 -3
  195. package/src/compute-graph/compute-graph-registry.ts +90 -0
  196. package/src/compute-graph/compute-graph.stories.tsx +97 -0
  197. package/src/compute-graph/compute-graph.test.ts +87 -0
  198. package/src/compute-graph/compute-graph.ts +260 -0
  199. package/src/compute-graph/compute-node.ts +62 -0
  200. package/src/{components/ComputeGraph → compute-graph/functions}/async-function.ts +26 -15
  201. package/src/{components/ComputeGraph → compute-graph/functions}/edge-function.ts +21 -17
  202. package/src/compute-graph/functions/index.ts +7 -0
  203. package/src/compute-graph/hyperformula.test.ts +14 -0
  204. package/src/compute-graph/index.ts +8 -0
  205. package/src/compute-graph/testing/index.ts +6 -0
  206. package/src/compute-graph/testing/test-builder.ts +54 -0
  207. package/src/{components/ComputeGraph/custom.ts → compute-graph/testing/test-plugin.ts} +44 -14
  208. package/src/compute-graph/util.ts +8 -0
  209. package/src/defs/index.ts +7 -0
  210. package/src/defs/sheet-range-types.ts +49 -0
  211. package/src/{model → defs}/types.test.ts +8 -9
  212. package/src/defs/types.ts +86 -0
  213. package/src/defs/util.ts +136 -0
  214. package/src/extensions/compute.stories.tsx +155 -0
  215. package/src/extensions/compute.ts +147 -0
  216. package/src/{components/CellEditor → extensions/editor}/extension.test.ts +4 -6
  217. package/src/{components/CellEditor → extensions/editor}/extension.ts +51 -27
  218. package/src/{components/CellEditor → extensions/editor}/index.ts +0 -1
  219. package/src/extensions/index.ts +6 -0
  220. package/src/index.ts +2 -2
  221. package/src/integrations/index.ts +5 -0
  222. package/src/integrations/thread-ranges.ts +101 -0
  223. package/src/meta.ts +15 -0
  224. package/src/model/index.ts +2 -3
  225. package/src/model/sheet-model.test.ts +59 -0
  226. package/src/model/sheet-model.ts +495 -0
  227. package/src/model/useSheetModel.ts +40 -0
  228. package/src/sanity.test.ts +40 -0
  229. package/src/serializer.ts +27 -0
  230. package/src/{components/Sheet → testing}/index.ts +1 -1
  231. package/src/testing/testing.tsx +68 -0
  232. package/src/translations.ts +24 -4
  233. package/src/types.ts +62 -47
  234. package/dist/lib/browser/SheetContainer-U4H5D34A.mjs +0 -1772
  235. package/dist/lib/browser/SheetContainer-U4H5D34A.mjs.map +0 -7
  236. package/dist/lib/browser/chunk-APHOLYUB.mjs +0 -175
  237. package/dist/lib/browser/chunk-APHOLYUB.mjs.map +0 -7
  238. package/dist/lib/browser/chunk-D5AGLXJP.mjs.map +0 -7
  239. package/dist/lib/browser/chunk-FUAGSXA4.mjs +0 -82
  240. package/dist/lib/browser/chunk-FUAGSXA4.mjs.map +0 -7
  241. package/dist/lib/browser/chunk-JRL5LGCE.mjs +0 -18
  242. package/dist/lib/browser/chunk-JRL5LGCE.mjs.map +0 -7
  243. package/dist/lib/browser/chunk-NU4PBN33.mjs +0 -8
  244. package/dist/lib/browser/chunk-NU4PBN33.mjs.map +0 -7
  245. package/dist/lib/browser/testing.mjs +0 -92
  246. package/dist/lib/browser/testing.mjs.map +0 -7
  247. package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs +0 -1765
  248. package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs.map +0 -7
  249. package/dist/lib/node/chunk-5KKJ4NPP.cjs.map +0 -7
  250. package/dist/lib/node/chunk-BJ6ZD7MN.cjs +0 -51
  251. package/dist/lib/node/chunk-BJ6ZD7MN.cjs.map +0 -7
  252. package/dist/lib/node/chunk-CN3RPESU.cjs +0 -202
  253. package/dist/lib/node/chunk-CN3RPESU.cjs.map +0 -7
  254. package/dist/lib/node/chunk-DSYKOI4E.cjs.map +0 -7
  255. package/dist/lib/node/chunk-PYXHNAAK.cjs +0 -40
  256. package/dist/lib/node/chunk-PYXHNAAK.cjs.map +0 -7
  257. package/dist/lib/node/testing.cjs +0 -111
  258. package/dist/lib/node/testing.cjs.map +0 -7
  259. package/dist/types/src/components/CellEditor/CellEditor.d.ts +0 -14
  260. package/dist/types/src/components/CellEditor/CellEditor.d.ts.map +0 -1
  261. package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts.map +0 -1
  262. package/dist/types/src/components/CellEditor/extension.d.ts +0 -19
  263. package/dist/types/src/components/CellEditor/extension.d.ts.map +0 -1
  264. package/dist/types/src/components/CellEditor/extension.test.d.ts.map +0 -1
  265. package/dist/types/src/components/CellEditor/index.d.ts +0 -3
  266. package/dist/types/src/components/CellEditor/index.d.ts.map +0 -1
  267. package/dist/types/src/components/ComputeGraph/async-function.d.ts.map +0 -1
  268. package/dist/types/src/components/ComputeGraph/custom.d.ts +0 -21
  269. package/dist/types/src/components/ComputeGraph/custom.d.ts.map +0 -1
  270. package/dist/types/src/components/ComputeGraph/edge-function.d.ts +0 -20
  271. package/dist/types/src/components/ComputeGraph/edge-function.d.ts.map +0 -1
  272. package/dist/types/src/components/ComputeGraph/graph-context.d.ts +0 -12
  273. package/dist/types/src/components/ComputeGraph/graph-context.d.ts.map +0 -1
  274. package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts +0 -2
  275. package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts.map +0 -1
  276. package/dist/types/src/components/ComputeGraph/graph.d.ts +0 -26
  277. package/dist/types/src/components/ComputeGraph/graph.d.ts.map +0 -1
  278. package/dist/types/src/components/Sheet/Sheet.d.ts +0 -55
  279. package/dist/types/src/components/Sheet/Sheet.d.ts.map +0 -1
  280. package/dist/types/src/components/Sheet/Sheet.stories.d.ts +0 -54
  281. package/dist/types/src/components/Sheet/Sheet.stories.d.ts.map +0 -1
  282. package/dist/types/src/components/Sheet/formatting.d.ts +0 -14
  283. package/dist/types/src/components/Sheet/formatting.d.ts.map +0 -1
  284. package/dist/types/src/components/Sheet/grid.d.ts +0 -52
  285. package/dist/types/src/components/Sheet/grid.d.ts.map +0 -1
  286. package/dist/types/src/components/Sheet/index.d.ts +0 -2
  287. package/dist/types/src/components/Sheet/index.d.ts.map +0 -1
  288. package/dist/types/src/components/Sheet/nav.d.ts +0 -29
  289. package/dist/types/src/components/Sheet/nav.d.ts.map +0 -1
  290. package/dist/types/src/components/Sheet/sheet-context.d.ts +0 -25
  291. package/dist/types/src/components/Sheet/sheet-context.d.ts.map +0 -1
  292. package/dist/types/src/components/Sheet/util.d.ts +0 -18
  293. package/dist/types/src/components/Sheet/util.d.ts.map +0 -1
  294. package/dist/types/src/components/SheetContainer.d.ts +0 -9
  295. package/dist/types/src/components/SheetContainer.d.ts.map +0 -1
  296. package/dist/types/src/components/Toolbar/common.d.ts +0 -20
  297. package/dist/types/src/components/Toolbar/common.d.ts.map +0 -1
  298. package/dist/types/src/model/functions.d.ts.map +0 -1
  299. package/dist/types/src/model/model.browser.test.d.ts +0 -2
  300. package/dist/types/src/model/model.browser.test.d.ts.map +0 -1
  301. package/dist/types/src/model/model.d.ts.map +0 -1
  302. package/dist/types/src/model/types.d.ts +0 -17
  303. package/dist/types/src/model/types.d.ts.map +0 -1
  304. package/dist/types/src/model/types.test.d.ts.map +0 -1
  305. package/dist/types/src/model/util.d.ts +0 -15
  306. package/dist/types/src/model/util.d.ts.map +0 -1
  307. package/dist/types/src/testing.d.ts +0 -9
  308. package/dist/types/src/testing.d.ts.map +0 -1
  309. package/src/components/CellEditor/CellEditor.tsx +0 -113
  310. package/src/components/ComputeGraph/graph-context.tsx +0 -50
  311. package/src/components/ComputeGraph/graph.browser.test.ts +0 -50
  312. package/src/components/ComputeGraph/graph.ts +0 -62
  313. package/src/components/Sheet/Sheet.stories.tsx +0 -287
  314. package/src/components/Sheet/Sheet.tsx +0 -1160
  315. package/src/components/Sheet/formatting.ts +0 -106
  316. package/src/components/Sheet/grid.ts +0 -191
  317. package/src/components/Sheet/nav.ts +0 -157
  318. package/src/components/Sheet/sheet-context.tsx +0 -150
  319. package/src/components/Sheet/util.ts +0 -56
  320. package/src/components/SheetContainer.tsx +0 -34
  321. package/src/components/Toolbar/common.tsx +0 -72
  322. package/src/meta.tsx +0 -18
  323. package/src/model/model.browser.test.ts +0 -100
  324. package/src/model/model.ts +0 -550
  325. package/src/model/types.ts +0 -71
  326. package/src/model/util.ts +0 -36
  327. package/src/testing.ts +0 -50
  328. /package/dist/types/src/{model → defs}/types.test.d.ts +0 -0
  329. /package/dist/types/src/{components/CellEditor → extensions/editor}/extension.test.d.ts +0 -0
  330. /package/src/{model/functions.ts → compute-graph/functions/function-defs.ts} +0 -0
@@ -0,0 +1,15 @@
1
+ import { Client, type ClientOptions } from '@dxos/client';
2
+ import { type Context, Resource } from '@dxos/context';
3
+ import { type ComputeGraphOptions, ComputeGraphRegistry } from '../compute-graph-registry';
4
+ export type TestBuilderOptions = ClientOptions & ComputeGraphOptions;
5
+ export declare class TestBuilder extends Resource {
6
+ private readonly _options;
7
+ private _client?;
8
+ private _registry?;
9
+ constructor(_options?: TestBuilderOptions);
10
+ get ctx(): Context;
11
+ get client(): Client;
12
+ get registry(): ComputeGraphRegistry;
13
+ _open(): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=test-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-builder.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/testing/test-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,KAAK,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAGrE,qBAAa,WAAY,SAAQ,QAAQ;IAI3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAHrC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,SAAS,CAAC,CAAuB;gBAEZ,QAAQ,GAAE,kBAAuB;IAI9D,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,MAAM,IAAI,MAAM,CAGnB;IAED,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAEc,KAAK;CAkBrB"}
@@ -0,0 +1,36 @@
1
+ import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
2
+ import { type ProcedureAst } from 'hyperformula/typings/parser';
3
+ import { type ComputeGraphPlugin } from '../compute-graph-registry';
4
+ import { AsyncFunctionPlugin } from '../functions';
5
+ /**
6
+ * Testing functions run locally (not run via EDGE).
7
+ * https://hyperformula.handsontable.com/guide/custom-functions.html#add-a-simple-custom-function
8
+ */
9
+ export declare class TestPlugin extends AsyncFunctionPlugin {
10
+ /**
11
+ * Simple local function returns input value.
12
+ */
13
+ test(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
14
+ /**
15
+ * Simple local function returns random number.
16
+ */
17
+ random(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
18
+ /**
19
+ * Async HTTP function.
20
+ */
21
+ crypto(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
22
+ }
23
+ export declare const TestPluginTranslations: {
24
+ enGB: {
25
+ TEST: string;
26
+ RANDOM: string;
27
+ CRYPTO: string;
28
+ };
29
+ enUS: {
30
+ TEST: string;
31
+ RANDOM: string;
32
+ CRYPTO: string;
33
+ };
34
+ };
35
+ export declare const testFunctionPlugins: ComputeGraphPlugin[];
36
+ //# sourceMappingURL=test-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/compute-graph/testing/test-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGvE;;;GAGG;AACH,qBAAa,UAAW,SAAQ,mBAAmB;IACjD;;OAEG;IACH,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQ/C;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQjD;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CAelD;AAsBD,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAWlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,EAKnD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const parseNumberString: (str: string) => number;
2
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/compute-graph/util.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,MAE/C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './sheet-range-types';
2
+ export * from './types';
3
+ export * from './util';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/defs/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type ClassNameValue } from '@dxos/react-ui';
2
+ import { type SheetType } from '../types';
3
+ export declare const alignKey = "alignment";
4
+ export type AlignKey = typeof alignKey;
5
+ export type AlignValue = 'start' | 'center' | 'end' | 'unset';
6
+ export declare const commentKey = "comment";
7
+ export type CommentKey = typeof commentKey;
8
+ export type CommentValue = string;
9
+ export declare const styleKey = "style";
10
+ export type StyleKey = typeof styleKey;
11
+ export type StyleValue = 'highlight' | 'softwrap';
12
+ export declare const cellClassNameForRange: ({ key, value }: SheetType["ranges"][number]) => ClassNameValue;
13
+ //# sourceMappingURL=sheet-range-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-range-types.d.ts","sourceRoot":"","sources":["../../../../src/defs/sheet-range-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;AAE9D,eAAO,MAAM,UAAU,YAAY,CAAC;AACpC,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,eAAO,MAAM,QAAQ,UAAU,CAAC;AAChC,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAGlD,eAAO,MAAM,qBAAqB,mBAAoB,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAG,cA2BnF,CAAC"}
@@ -0,0 +1,28 @@
1
+ export declare const DEFAULT_ROWS = 50;
2
+ export declare const DEFAULT_COLUMNS = 26;
3
+ export declare const MAX_ROWS = 500;
4
+ export declare const MAX_COLUMNS: number;
5
+ export type CellAddress = {
6
+ col: number;
7
+ row: number;
8
+ };
9
+ export type CellRange = {
10
+ from: CellAddress;
11
+ to?: CellAddress;
12
+ };
13
+ export type CompleteCellRange = {
14
+ from: CellAddress;
15
+ to: CellAddress;
16
+ };
17
+ export type CellIndex = string;
18
+ export type CellContentValue = number | string | boolean | null;
19
+ export declare const RANGE_NOTATION: RegExp;
20
+ export declare const isFormula: (value: any) => value is string;
21
+ export declare const posEquals: (a: CellAddress | undefined, b: CellAddress | undefined) => boolean;
22
+ export declare const columnLetter: (col: number) => string;
23
+ export declare const addressToA1Notation: ({ col, row }: CellAddress) => string;
24
+ export declare const addressFromA1Notation: (ref: string) => CellAddress;
25
+ export declare const rangeToA1Notation: (range: CellRange) => string;
26
+ export declare const rangeFromA1Notation: (ref: string) => CellRange;
27
+ export declare const inRange: (range: CellRange | undefined, cell: CellAddress) => boolean;
28
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/defs/types.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,QAAQ,MAAM,CAAC;AAC5B,eAAO,MAAM,WAAW,QAAS,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,EAAE,WAAW,CAAA;CAAE,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAEhE,eAAO,MAAM,cAAc,QAAmC,CAAC;AAE/D,eAAO,MAAM,SAAS,UAAW,GAAG,KAAG,KAAK,IAAI,MAA8D,CAAC;AAE/G,eAAO,MAAM,SAAS,MAAO,WAAW,GAAG,SAAS,KAAK,WAAW,GAAG,SAAS,YAE/E,CAAC;AAEF,eAAO,MAAM,YAAY,QAAS,MAAM,KAAG,MAM1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,iBAAkB,WAAW,KAAG,MAE/D,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,WAOnD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,SAAS,WAIjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,SAGjD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,GAAG,SAAS,QAAQ,WAAW,KAAG,OAuBzE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.test.d.ts","sourceRoot":"","sources":["../../../../src/defs/types.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { type CellAddress, type CellRange, type CompleteCellRange } from './types';
2
+ import { type CreateSheetOptions, type SheetSize, SheetType } from '../types';
3
+ export declare class ApiError extends Error {
4
+ }
5
+ export declare class ReadonlyException extends ApiError {
6
+ }
7
+ export declare class RangeException extends ApiError {
8
+ constructor(n: number);
9
+ }
10
+ /**
11
+ * With a string length of 8, the chance of a collision is 0.02% for a sheet with 10,000 strings.
12
+ */
13
+ export declare const createIndex: (length?: number) => string;
14
+ export declare const createIndices: (length: number) => string[];
15
+ export declare const insertIndices: (indices: string[], i: number, n: number, max: number) => string[];
16
+ export declare const initialize: (sheet: SheetType, { rows, columns }?: Partial<SheetSize>) => void;
17
+ export declare const createSheet: ({ name, cells, ...size }?: CreateSheetOptions) => SheetType;
18
+ /**
19
+ * E.g., "A1" => "CA2@CB3".
20
+ */
21
+ export declare const addressToIndex: (sheet: SheetType, cell: CellAddress) => string;
22
+ /**
23
+ * E.g., "CA2@CB3" => "A1".
24
+ */
25
+ export declare const addressFromIndex: (sheet: SheetType, idx: string) => CellAddress;
26
+ /**
27
+ * E.g., "A1:B2" => "CA2@CB3:CC4@CD5".
28
+ */
29
+ export declare const rangeToIndex: (sheet: SheetType, range: CellRange) => string;
30
+ /**
31
+ * E.g., "CA2@CB3:CC4@CD5" => "A1:B2".
32
+ */
33
+ export declare const rangeFromIndex: (sheet: SheetType, idx: string) => CompleteCellRange;
34
+ /**
35
+ * Compares the positions of two cell indexes in a sheet.
36
+ * Sorts primarily by row, then by column if rows are equal.
37
+ */
38
+ export declare const compareIndexPositions: (sheet: SheetType, indexA: string, indexB: string) => number;
39
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/defs/util.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,iBAAiB,EAKvB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG9E,qBAAa,QAAS,SAAQ,KAAK;CAAG;AAEtC,qBAAa,iBAAkB,SAAQ,QAAQ;CAAG;AAElD,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,CAAC,EAAE,MAAM;CAGtB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,uBAAiB,MAKxC,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,MAAM,EAAqD,CAAC;AAE3G,eAAO,MAAM,aAAa,YAAa,MAAM,EAAE,KAAK,MAAM,KAAK,MAAM,OAAO,MAAM,aAQjF,CAAC;AAEF,eAAO,MAAM,UAAU,UACd,SAAS,sBACoC,OAAO,CAAC,SAAS,CAAC,SAQvE,CAAC;AAEF,eAAO,MAAM,WAAW,8BAA8B,kBAAkB,KAAQ,SAsB/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,SAAS,QAAQ,WAAW,KAAG,MAEpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,SAAS,OAAO,MAAM,KAAG,WAMhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,SAAS,SAAS,SAAS,KAAG,MAEjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,SAAS,OAAO,MAAM,KAAG,iBAG9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAW,SAAS,UAAU,MAAM,UAAU,MAAM,KAAG,MAUxF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { type ComputeGraph } from '../compute-graph';
3
+ export declare const computeGraphFacet: import("@codemirror/state").Facet<ComputeGraph, ComputeGraph>;
4
+ export type ComputeOptions = {};
5
+ export declare const compute: (options?: ComputeOptions) => Extension;
6
+ //# sourceMappingURL=compute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,mBAAmB,CAAC;AAO3B,OAAO,EAAE,KAAK,YAAY,EAAqC,MAAM,kBAAkB,CAAC;AASxF,eAAO,MAAM,iBAAiB,+DAAmC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC,eAAO,MAAM,OAAO,aAAa,cAAc,KAAQ,SAgGtD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@storybook/react';
3
+ import React from 'react';
4
+ type EditorProps = {
5
+ text?: string;
6
+ };
7
+ export declare const Default: {
8
+ render: ({ text }: EditorProps) => React.JSX.Element;
9
+ args: {
10
+ text: string;
11
+ };
12
+ };
13
+ export declare const Graph: {
14
+ render: (props: EditorProps) => React.JSX.Element;
15
+ args: {
16
+ text: string;
17
+ };
18
+ };
19
+ declare const meta: Meta;
20
+ export default meta;
21
+ //# sourceMappingURL=compute.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAA6B,MAAM,OAAO,CAAC;AAyBlD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAmEF,eAAO,MAAM,OAAO;uBA1DW,WAAW;;;;CAgFzC,CAAC;AAEF,eAAO,MAAM,KAAK;oBAlCS,WAAW;;;;CAkDrC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { type FunctionDefinition } from '../../compute-graph';
3
+ export type SheetExtensionOptions = {
4
+ functions?: FunctionDefinition[];
5
+ };
6
+ /**
7
+ * Spreadsheet formula extension and parser.
8
+ * https://github.com/luizzappa/codemirror-lang-spreadsheet
9
+ * https://github.com/luizzappa/codemirror-app-spreadsheet/blob/master/src/editor.ts
10
+ * https://github.com/codemirror/lang-example
11
+ * https://hyperformula.handsontable.com/guide/key-concepts.html#grammar
12
+ */
13
+ export declare const sheetExtension: ({ functions }: SheetExtensionOptions) => Extension;
14
+ export type SelectionRange = {
15
+ from: number;
16
+ to: number;
17
+ };
18
+ export interface RangeController {
19
+ setRange(range: string): void;
20
+ }
21
+ export type RangeExtensionOptions = {
22
+ /**
23
+ * Provides controller callback when extension is initialized.
24
+ */
25
+ onInit?: (controller: RangeController) => void;
26
+ /**
27
+ * Called when the active range changes.
28
+ * @param state The current state.
29
+ * @param state.activeRange undefined if no range is active, otherwise a possibly partially defined range.
30
+ */
31
+ onStateChange?: (state: {
32
+ activeRange: string | undefined;
33
+ }) => void;
34
+ };
35
+ /**
36
+ * Tracks the currently active cell within a formula and provides a callback to modify it.
37
+ */
38
+ export declare const rangeExtension: ({ onInit, onStateChange }: RangeExtensionOptions) => Extension;
39
+ //# sourceMappingURL=extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/editor/extension.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AASnD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA0C9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAClC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,kBAAwB,qBAAqB,KAAG,SAwH1E,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,KAAK,IAAI,CAAC;CACtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,8BAA+B,qBAAqB,KAAG,SAuEjF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension.test.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/editor/extension.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './extension';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/editor/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './compute';
2
+ export * from './editor';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { SheetPlugin } from './SheetPlugin';
2
- export default SheetPlugin;
3
2
  export * from './SheetPlugin';
3
+ export default SheetPlugin;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAe,WAAW,CAAC;AAE3B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,cAAc,eAAe,CAAC;AAE9B,eAAe,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './thread-ranges';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type DxGridElement } from '@dxos/react-ui-grid';
2
+ import { type CompleteCellRange } from '../defs';
3
+ export declare const completeCellRangeToThreadCursor: (range: CompleteCellRange) => string;
4
+ export declare const parseThreadAnchorAsCellRange: (cursor: string) => CompleteCellRange | null;
5
+ export declare const useUpdateFocusedCellOnThreadSelection: (grid: DxGridElement | null) => void;
6
+ export declare const useSelectThreadOnCellFocus: () => void;
7
+ //# sourceMappingURL=thread-ranges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-ranges.d.ts","sourceRoot":"","sources":["../../../../src/integrations/thread-ranges.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,qBAAqB,CAAC;AAG9E,OAAO,EAAoB,KAAK,iBAAiB,EAAW,MAAM,SAAS,CAAC;AAG5E,eAAO,MAAM,+BAA+B,UAAW,iBAAiB,KAAG,MAE1E,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAAY,MAAM,KAAG,iBAAiB,GAAG,IAWjF,CAAC;AAEF,eAAO,MAAM,qCAAqC,SAAU,aAAa,GAAG,IAAI,SAoB/E,CAAC;AAEF,eAAO,MAAM,0BAA0B,YA8CtC,CAAC"}
@@ -1,15 +1,10 @@
1
- import { type IconProps } from '@phosphor-icons/react';
2
- import React from 'react';
3
1
  export declare const SHEET_PLUGIN = "dxos.org/plugin/sheet";
4
2
  declare const _default: {
5
3
  id: string;
6
- shortId?: string;
7
- name?: string;
8
- description?: string;
9
- homePage?: string;
10
- tags?: string[];
11
- iconComponent?: React.FC<IconProps>;
12
- iconSymbol?: string;
4
+ name: string;
5
+ description: string;
6
+ icon: string;
7
+ source: string;
13
8
  };
14
9
  export default _default;
15
10
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,0BAA0B,CAAC;;;;;;;;;;;AAEpD,wBAMG"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,0BAA0B,CAAC;;;;;;;;AAEpD,wBAMuB"}
@@ -1,4 +1,3 @@
1
- export * from './functions';
2
- export * from './model';
3
- export * from './types';
1
+ export * from './sheet-model';
2
+ export * from './useSheetModel';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -1,41 +1,26 @@
1
1
  import { type SimpleDate, type SimpleDateTime } from 'hyperformula/typings/DateTimeHelper';
2
2
  import { Event } from '@dxos/async';
3
- import { type Space } from '@dxos/client/echo';
4
- import { type FunctionType } from '@dxos/plugin-script/types';
5
- import { type FunctionDefinition } from './functions';
6
- import { type CellAddress, type CellRange } from './types';
7
- import { type ComputeGraph } from '../components';
8
- import { type CellScalarValue, type CellValue, type SheetType, ValueTypeEnum } from '../types';
9
- export type CellIndex = string;
10
- export type CellContentValue = number | string | boolean | null;
3
+ import { Resource } from '@dxos/context';
4
+ import { FormatEnum, TypeEnum } from '@dxos/echo-schema';
5
+ import { type ComputeGraph, type ComputeNodeEvent } from '../compute-graph';
6
+ import { type CellAddress, type CellRange } from '../defs';
7
+ import { type CellScalarValue, type CellValue, type SheetType, type RestoreAxis } from '../types';
11
8
  export type SheetModelOptions = {
12
9
  readonly?: boolean;
13
- rows: number;
14
- columns: number;
15
- mapFormulaBindingToId: (functions: FunctionType[]) => (formula: string) => string;
16
- mapFormulaBindingFromId: (functions: FunctionType[]) => (formula: string) => string;
17
10
  };
18
- export declare const defaultOptions: SheetModelOptions;
19
11
  /**
20
12
  * Spreadsheet data model.
21
13
  *
22
14
  * [ComputeGraphContext] > [SheetContext]:[SheetModel] > [Sheet.Root]
23
15
  */
24
- export declare class SheetModel {
16
+ export declare class SheetModel extends Resource {
25
17
  private readonly _graph;
26
18
  private readonly _sheet;
27
- private readonly _space?;
28
- readonly id: string;
29
- private _ctx?;
30
- /**
31
- * Formula engine.
32
- * Acts as a write through cache for scalar and computed values.
33
- */
34
- private readonly _sheetId;
35
19
  private readonly _options;
36
- private _functions;
37
- readonly update: Event<void>;
38
- constructor(_graph: ComputeGraph, _sheet: SheetType, _space?: Space | undefined, options?: Partial<SheetModelOptions>);
20
+ readonly id: string;
21
+ readonly update: Event<ComputeNodeEvent>;
22
+ private _node?;
23
+ constructor(_graph: ComputeGraph, _sheet: SheetType, _options?: SheetModelOptions);
39
24
  get graph(): ComputeGraph;
40
25
  get sheet(): SheetType;
41
26
  get readonly(): boolean | undefined;
@@ -43,13 +28,10 @@ export declare class SheetModel {
43
28
  rows: number;
44
29
  columns: number;
45
30
  };
46
- get functions(): FunctionDefinition[];
47
- get initialized(): boolean;
48
31
  /**
49
32
  * Initialize sheet and engine.
50
33
  */
51
- initialize(): Promise<this>;
52
- destroy(): Promise<void>;
34
+ protected _open(): Promise<void>;
53
35
  /**
54
36
  * Update engine.
55
37
  * NOTE: This resets the undo history.
@@ -63,8 +45,12 @@ export declare class SheetModel {
63
45
  * @deprecated
64
46
  */
65
47
  recalculate(): void;
66
- insertRows(i: number, n?: number): void;
67
- insertColumns(i: number, n?: number): void;
48
+ insertRows(i: number, n?: number): string[];
49
+ insertColumns(i: number, n?: number): string[];
50
+ dropRow(rowIndex: string): RestoreAxis;
51
+ dropColumn(colIndex: string): RestoreAxis;
52
+ restoreRow({ index, axisIndex, axisMeta, values }: RestoreAxis): void;
53
+ restoreColumn({ index, axisIndex, axisMeta, values }: RestoreAxis): void;
68
54
  /**
69
55
  * Clear range of values.
70
56
  */
@@ -93,7 +79,10 @@ export declare class SheetModel {
93
79
  /**
94
80
  * Get value type.
95
81
  */
96
- getValueType(cell: CellAddress): ValueTypeEnum;
82
+ getValueDescription(cell: CellAddress): {
83
+ type: TypeEnum;
84
+ format?: FormatEnum;
85
+ } | undefined;
97
86
  /**
98
87
  * Sets the value, updating the sheet and engine.
99
88
  */
@@ -106,44 +95,8 @@ export declare class SheetModel {
106
95
  * Iterate range.
107
96
  */
108
97
  private _iterRange;
109
- /**
110
- *
111
- */
112
- private _insertIndices;
113
98
  private _deleteIndices;
114
99
  private _moveIndices;
115
- /**
116
- * E.g., "A1" => "x1@y1".
117
- */
118
- addressToIndex(cell: CellAddress): CellIndex;
119
- /**
120
- * E.g., "x1@y1" => "A1".
121
- */
122
- addressFromIndex(idx: CellIndex): CellAddress;
123
- /**
124
- * E.g., "A1:B2" => "x1@y1:x2@y2".
125
- */
126
- rangeToIndex(range: CellRange): string;
127
- /**
128
- * E.g., "x1@y1:x2@y2" => "A1:B2".
129
- */
130
- rangeFromIndex(idx: string): CellRange;
131
- /**
132
- * E.g., "HELLO()" => "EDGE("HELLO")".
133
- */
134
- mapFormulaBindingToFormula(formula: string): string;
135
- /**
136
- * E.g., "EDGE("HELLO")" => "HELLO()".
137
- */
138
- mapFormulaBindingFromFormula(formula: string): string;
139
- /**
140
- * Map from binding to fully qualified ECHO ID.
141
- */
142
- mapFormulaBindingToId(formula: string): string;
143
- /**
144
- * Map from fully qualified ECHO ID to binding.
145
- */
146
- mapFormulaBindingFromId(formula: string): string;
147
100
  /**
148
101
  * Map from A1 notation to indices.
149
102
  */
@@ -162,4 +115,4 @@ export declare class SheetModel {
162
115
  toDate(num: number): SimpleDate;
163
116
  toTime(num: number): SimpleDate;
164
117
  }
165
- //# sourceMappingURL=model.d.ts.map
118
+ //# sourceMappingURL=sheet-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-model.d.ts","sourceRoot":"","sources":["../../../../src/model/sheet-model.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE3F,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAe,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAMtE,OAAO,EAAE,KAAK,YAAY,EAAoB,KAAK,gBAAgB,EAAmB,MAAM,kBAAkB,CAAC;AAC/G,OAAO,EAQL,KAAK,WAAW,EAChB,KAAK,SAAS,EAIf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAgClG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AAEH,qBAAa,UAAW,SAAQ,QAAQ;IASpC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAV3B,SAAgB,EAAE,SAA4C;IAG9D,SAAgB,MAAM,0BAAiC;IAEvD,OAAO,CAAC,KAAK,CAAC,CAAc;gBAGT,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,SAAS,EACjB,QAAQ,GAAE,iBAAsB;IAKnD,IAAI,KAAK,iBAER;IAED,IAAI,KAAK,cAER;IAED,IAAI,QAAQ,wBAEX;IAED,IAAI,MAAM;;;MAKT;IAED;;OAEG;cACsB,KAAK;IAqB9B;;;;OAIG;IACH,KAAK;IAqBL;;;;;OAKG;IAEH,WAAW;IAIX,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,SAAI;IAM3B,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,SAAI;IAM9B,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW;IActC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW;IAczC,UAAU,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,WAAW;IAa9D,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,WAAW;IAkBjE;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS;IAWtB,GAAG,CAAC,KAAK,EAAE,SAAS;IASpB,IAAI,CAAC,KAAK,EAAE,SAAS;IAKrB,KAAK,CAAC,IAAI,EAAE,WAAW;IAevB,IAAI;IAQJ,IAAI;IAQJ;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe;IAKhD;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS;IAalD;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,eAAe,EAAE,EAAE;IAIpD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe;IAc5C;;OAEG;IACH,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,CAAA;KAAE,GAAG,SAAS;IAO3F;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe;IAwClD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;IAM3C;;OAEG;IACH,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,YAAY;IAQpB;;OAEG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAOhD;;OAEG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAWhD;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK9B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc;IAKvC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAK/B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;CAIhC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sheet-model.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-model.test.d.ts","sourceRoot":"","sources":["../../../../src/model/sheet-model.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { type ComputeGraph } from '../compute-graph';
2
+ import { SheetModel } from '../model';
3
+ import { type SheetType } from '../types';
4
+ export type UseSheetModelOptions = {
5
+ readonly?: boolean;
6
+ };
7
+ export declare const useSheetModel: (graph?: ComputeGraph, sheet?: SheetType, { readonly }?: UseSheetModelOptions) => SheetModel | undefined;
8
+ //# sourceMappingURL=useSheetModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSheetModel.d.ts","sourceRoot":"","sources":["../../../../src/model/useSheetModel.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,YAAY,UACZ,SAAS,iBACH,oBAAoB,KACjC,UAAU,GAAG,SAqBf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sanity.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanity.test.d.ts","sourceRoot":"","sources":["../../../src/sanity.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { type TypedObjectSerializer } from '@dxos/plugin-space/types';
2
+ import { SheetType } from './types';
3
+ export declare const serializer: TypedObjectSerializer<SheetType>;
4
+ //# sourceMappingURL=serializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../src/serializer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,UAAU,EAAE,qBAAqB,CAAC,SAAS,CAiBvD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './testing';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type Decorator } from '@storybook/react';
2
+ import { type Space } from '@dxos/react-client/echo';
3
+ import { type ComputeGraph, type ComputeGraphOptions } from '../compute-graph';
4
+ import { type CellValue, type CreateSheetOptions } from '../types';
5
+ export declare const createTestCells: () => Record<string, CellValue>;
6
+ export declare const useTestSheet: (space?: Space, graph?: ComputeGraph, options?: CreateSheetOptions) => import("../types").SheetType | undefined;
7
+ export declare const withComputeGraphDecorator: (options?: ComputeGraphOptions) => Decorator;
8
+ //# sourceMappingURL=testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAwB,MAAM,kBAAkB,CAAC;AAErG,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInE,eAAO,MAAM,eAAe,QAAO,MAAM,CAAC,MAAM,EAAE,SAAS,CA0BzD,CAAC;AAEH,eAAO,MAAM,YAAY,WAAY,KAAK,UAAU,YAAY,YAAY,kBAAkB,6CAW7F,CAAC;AAEF,eAAO,MAAM,yBAAyB,aACzB,mBAAmB,KAAG,SAQhC,CAAC"}
@@ -1,16 +1,36 @@
1
- declare const _default: {
2
- 'en-US': {
3
- "dxos.org/plugin/sheet": {
4
- 'plugin name': string;
5
- 'sheet title placeholder': string;
6
- 'create sheet label': string;
7
- 'create sheet section label': string;
8
- 'cell placeholder': string;
9
- 'toolbar left label': string;
10
- 'toolbar left center': string;
11
- 'toolbar left right': string;
1
+ declare const _default: readonly [{
2
+ readonly 'en-US': {
3
+ readonly "dxos.org/plugin/sheet": {
4
+ readonly 'plugin name': "Sheets";
5
+ readonly 'sheet title placeholder': "New sheet";
6
+ readonly 'create sheet label': "Create sheet";
7
+ readonly 'create sheet section label': "Create sheet";
8
+ readonly 'cell placeholder': "Cell value...";
9
+ readonly 'range key alignment label': "Align";
10
+ readonly 'range key style label': "Style";
11
+ readonly 'range value start label': "Align left";
12
+ readonly 'range value center label': "Align center";
13
+ readonly 'range value end label': "Align right";
14
+ readonly 'range value softwrap label': "Wrap text";
15
+ readonly 'range value highlight label': "Highlight";
16
+ readonly 'toolbar action label': "{{value}}";
17
+ readonly 'selection overlaps existing comment label': "Selected cell already has a comment";
18
+ readonly 'comment label': "Add comment";
19
+ readonly 'comment ranges not supported label': "Commenting on ranges is not yet supported";
20
+ readonly 'no cursor label': "Select a cell to comment";
21
+ readonly 'open comment for sheet cell': "View comments for cell";
22
+ readonly 'add col before label': "Add column before";
23
+ readonly 'add col after label': "Add column after";
24
+ readonly 'delete col label': "Delete column";
25
+ readonly 'add row before label': "Add row before";
26
+ readonly 'add row after label': "Add row after";
27
+ readonly 'delete row label': "Delete row";
28
+ readonly 'range list heading': "Ranges";
29
+ readonly 'range title': "{{position}} — {{value}}";
30
+ readonly 'col dropped label': "Deleted a column";
31
+ readonly 'row dropped label': "Deleted a row";
12
32
  };
13
33
  };
14
- }[];
34
+ }];
15
35
  export default _default;
16
36
  //# sourceMappingURL=translations.d.ts.map