@dxos/plugin-sheet 0.8.4-main.c1de068 → 0.8.4-main.c85a9c8dae

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 (319) hide show
  1. package/dist/lib/browser/RangeList-S3SHV7T6.mjs +53 -0
  2. package/dist/lib/browser/RangeList-S3SHV7T6.mjs.map +7 -0
  3. package/dist/lib/browser/SheetContainer-I3NFVVDQ.mjs +1805 -0
  4. package/dist/lib/browser/SheetContainer-I3NFVVDQ.mjs.map +7 -0
  5. package/dist/lib/browser/anchor-sort-DZ3IHHJJ.mjs +24 -0
  6. package/dist/lib/browser/anchor-sort-DZ3IHHJJ.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-7HQX4NQP.mjs → chunk-NNWF7EKC.mjs} +14 -14
  8. package/dist/lib/browser/chunk-NNWF7EKC.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-S445OQGW.mjs +397 -0
  10. package/dist/lib/browser/chunk-S445OQGW.mjs.map +7 -0
  11. package/dist/lib/browser/compute-graph-registry-W6HO2G3P.mjs +21 -0
  12. package/dist/lib/browser/compute-graph-registry-W6HO2G3P.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +72 -82
  14. package/dist/lib/browser/index.mjs.map +4 -4
  15. package/dist/lib/browser/markdown-S6GVLHB4.mjs +29 -0
  16. package/dist/lib/browser/markdown-S6GVLHB4.mjs.map +7 -0
  17. package/dist/lib/browser/meta.json +1 -1
  18. package/dist/lib/browser/operation-resolver-Z4X4UWNR.mjs +79 -0
  19. package/dist/lib/browser/operation-resolver-Z4X4UWNR.mjs.map +7 -0
  20. package/dist/lib/browser/react-surface-KIU6DGKW.mjs +51 -0
  21. package/dist/lib/browser/react-surface-KIU6DGKW.mjs.map +7 -0
  22. package/dist/lib/browser/types/index.mjs +7 -12
  23. package/dist/lib/node-esm/RangeList-IB23OJK2.mjs +54 -0
  24. package/dist/lib/node-esm/RangeList-IB23OJK2.mjs.map +7 -0
  25. package/dist/lib/node-esm/SheetContainer-KUXNCSFP.mjs +1806 -0
  26. package/dist/lib/node-esm/SheetContainer-KUXNCSFP.mjs.map +7 -0
  27. package/dist/lib/node-esm/anchor-sort-24OXMOSX.mjs +25 -0
  28. package/dist/lib/node-esm/anchor-sort-24OXMOSX.mjs.map +7 -0
  29. package/dist/lib/node-esm/{chunk-Q6UYC4G5.mjs → chunk-M52YLLWU.mjs} +14 -14
  30. package/dist/lib/node-esm/chunk-M52YLLWU.mjs.map +7 -0
  31. package/dist/lib/node-esm/chunk-NKZ3O4OR.mjs +398 -0
  32. package/dist/lib/node-esm/chunk-NKZ3O4OR.mjs.map +7 -0
  33. package/dist/lib/node-esm/compute-graph-registry-2C3Y2RPQ.mjs +22 -0
  34. package/dist/lib/node-esm/compute-graph-registry-2C3Y2RPQ.mjs.map +7 -0
  35. package/dist/lib/node-esm/index.mjs +72 -82
  36. package/dist/lib/node-esm/index.mjs.map +4 -4
  37. package/dist/lib/node-esm/markdown-YT5KJTQT.mjs +30 -0
  38. package/dist/lib/node-esm/markdown-YT5KJTQT.mjs.map +7 -0
  39. package/dist/lib/node-esm/meta.json +1 -1
  40. package/dist/lib/node-esm/operation-resolver-7VD2YXSQ.mjs +80 -0
  41. package/dist/lib/node-esm/operation-resolver-7VD2YXSQ.mjs.map +7 -0
  42. package/dist/lib/node-esm/react-surface-7FZAE3S7.mjs +52 -0
  43. package/dist/lib/node-esm/react-surface-7FZAE3S7.mjs.map +7 -0
  44. package/dist/lib/node-esm/types/index.mjs +7 -12
  45. package/dist/types/src/SheetPlugin.d.ts +2 -1
  46. package/dist/types/src/SheetPlugin.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts +6 -0
  48. package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/anchor-sort/index.d.ts +3 -0
  50. package/dist/types/src/capabilities/anchor-sort/index.d.ts.map +1 -0
  51. package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts +5 -0
  52. package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts.map +1 -0
  53. package/dist/types/src/capabilities/compute-graph-registry/index.d.ts +3 -0
  54. package/dist/types/src/capabilities/compute-graph-registry/index.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/index.d.ts +5 -11
  56. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  57. package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
  58. package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
  59. package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
  60. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
  61. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  62. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  63. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  64. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  66. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  68. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  69. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
  70. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts +9 -4
  71. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
  72. package/dist/types/src/components/Sheet/Sheet.d.ts +11 -0
  73. package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -0
  74. package/dist/types/src/components/Sheet/index.d.ts +2 -0
  75. package/dist/types/src/components/Sheet/index.d.ts.map +1 -0
  76. package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts +16 -0
  77. package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts.map +1 -0
  78. package/dist/types/src/components/SheetContent/SheetContent.d.ts +5 -0
  79. package/dist/types/src/components/SheetContent/SheetContent.d.ts.map +1 -0
  80. package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts +55 -0
  81. package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts.map +1 -0
  82. package/dist/types/src/components/SheetContent/index.d.ts +2 -0
  83. package/dist/types/src/components/SheetContent/index.d.ts.map +1 -0
  84. package/dist/types/src/components/{GridSheet → SheetContent}/util.d.ts +1 -1
  85. package/dist/types/src/components/SheetContent/util.d.ts.map +1 -0
  86. package/dist/types/src/components/{SheetContext/SheetContext.d.ts → SheetRoot/SheetRoot.d.ts} +7 -7
  87. package/dist/types/src/components/SheetRoot/SheetRoot.d.ts.map +1 -0
  88. package/dist/types/src/components/SheetRoot/index.d.ts +2 -0
  89. package/dist/types/src/components/SheetRoot/index.d.ts.map +1 -0
  90. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts +5 -0
  91. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts.map +1 -0
  92. package/dist/types/src/components/SheetStatusbar/index.d.ts +2 -0
  93. package/dist/types/src/components/SheetStatusbar/index.d.ts.map +1 -0
  94. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +6 -4
  95. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
  96. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +88 -4
  97. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
  98. package/dist/types/src/components/SheetToolbar/align.d.ts +13 -20
  99. package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
  100. package/dist/types/src/components/SheetToolbar/style.d.ts +12 -18
  101. package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
  102. package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts +14 -1
  103. package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts.map +1 -1
  104. package/dist/types/src/components/index.d.ts +1 -4
  105. package/dist/types/src/components/index.d.ts.map +1 -1
  106. package/dist/types/src/{components → containers}/RangeList/RangeList.d.ts +2 -2
  107. package/dist/types/src/containers/RangeList/RangeList.d.ts.map +1 -0
  108. package/dist/types/src/containers/RangeList/index.d.ts +3 -0
  109. package/dist/types/src/containers/RangeList/index.d.ts.map +1 -0
  110. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts +12 -0
  111. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts.map +1 -0
  112. package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts +56 -0
  113. package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
  114. package/dist/types/src/{components → containers}/SheetContainer/index.d.ts.map +1 -1
  115. package/dist/types/src/containers/index.d.ts +4 -0
  116. package/dist/types/src/containers/index.d.ts.map +1 -0
  117. package/dist/types/src/extensions/compute.d.ts +1 -1
  118. package/dist/types/src/extensions/compute.d.ts.map +1 -1
  119. package/dist/types/src/extensions/compute.stories.d.ts +10 -13
  120. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  121. package/dist/types/src/extensions/editor/index.d.ts +1 -1
  122. package/dist/types/src/extensions/editor/index.d.ts.map +1 -1
  123. package/dist/types/src/extensions/editor/{extension.d.ts → sheet-extension.d.ts} +1 -1
  124. package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -0
  125. package/dist/types/src/extensions/editor/sheet-extension.test.d.ts +2 -0
  126. package/dist/types/src/extensions/editor/sheet-extension.test.d.ts.map +1 -0
  127. package/dist/types/src/index.d.ts +1 -1
  128. package/dist/types/src/index.d.ts.map +1 -1
  129. package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
  130. package/dist/types/src/meta.d.ts +2 -3
  131. package/dist/types/src/meta.d.ts.map +1 -1
  132. package/dist/types/src/model/sheet-model.d.ts +6 -6
  133. package/dist/types/src/model/sheet-model.d.ts.map +1 -1
  134. package/dist/types/src/model/testing.d.ts +2 -2
  135. package/dist/types/src/model/testing.d.ts.map +1 -1
  136. package/dist/types/src/model/useSheetModel.d.ts +2 -2
  137. package/dist/types/src/model/useSheetModel.d.ts.map +1 -1
  138. package/dist/types/src/playwright/sheet-manager.d.ts +1 -1
  139. package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -1
  140. package/dist/types/src/serializer.d.ts +2 -2
  141. package/dist/types/src/serializer.d.ts.map +1 -1
  142. package/dist/types/src/testing/data.d.ts +2 -2
  143. package/dist/types/src/testing/data.d.ts.map +1 -1
  144. package/dist/types/src/testing/testing.d.ts +27 -3
  145. package/dist/types/src/testing/testing.d.ts.map +1 -1
  146. package/dist/types/src/translations.d.ts +3 -2
  147. package/dist/types/src/translations.d.ts.map +1 -1
  148. package/dist/types/src/types/Sheet.d.ts +76 -0
  149. package/dist/types/src/types/Sheet.d.ts.map +1 -0
  150. package/dist/types/src/types/capabilities.d.ts +6 -0
  151. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  152. package/dist/types/src/types/index.d.ts +2 -1
  153. package/dist/types/src/types/index.d.ts.map +1 -1
  154. package/dist/types/src/types/sheet-range-types.d.ts +2 -2
  155. package/dist/types/src/types/sheet-range-types.d.ts.map +1 -1
  156. package/dist/types/src/types/types.d.ts +92 -75
  157. package/dist/types/src/types/types.d.ts.map +1 -1
  158. package/dist/types/src/types/util.d.ts +10 -10
  159. package/dist/types/src/types/util.d.ts.map +1 -1
  160. package/dist/types/tsconfig.tsbuildinfo +1 -1
  161. package/package.json +81 -72
  162. package/src/SheetPlugin.tsx +52 -64
  163. package/src/capabilities/anchor-sort/anchor-sort.ts +27 -0
  164. package/src/capabilities/anchor-sort/index.ts +7 -0
  165. package/src/capabilities/compute-graph-registry/compute-graph-registry.ts +27 -0
  166. package/src/capabilities/compute-graph-registry/index.ts +7 -0
  167. package/src/capabilities/index.ts +5 -9
  168. package/src/capabilities/markdown/index.ts +7 -0
  169. package/src/capabilities/markdown/markdown.ts +30 -0
  170. package/src/capabilities/operation-resolver/index.ts +7 -0
  171. package/src/capabilities/operation-resolver/operation-resolver.ts +77 -0
  172. package/src/capabilities/react-surface/index.ts +7 -0
  173. package/src/capabilities/react-surface/react-surface.tsx +46 -0
  174. package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -1
  175. package/src/components/ComputeGraph/compute-graph.stories.tsx +22 -21
  176. package/src/components/Sheet/Sheet.tsx +20 -0
  177. package/src/components/Sheet/index.ts +5 -0
  178. package/src/components/SheetContent/SheetCellEditor.stories.tsx +94 -0
  179. package/src/components/SheetContent/SheetContent.stories.tsx +60 -0
  180. package/src/components/{GridSheet/GridSheet.tsx → SheetContent/SheetContent.tsx} +74 -60
  181. package/src/components/{RangeList → SheetContent}/index.ts +1 -1
  182. package/src/components/{GridSheet → SheetContent}/util.ts +20 -14
  183. package/src/components/{SheetContext/SheetContext.tsx → SheetRoot/SheetRoot.tsx} +43 -41
  184. package/src/components/{GridSheet → SheetRoot}/index.ts +1 -1
  185. package/src/components/{FunctionEditor/FunctionEditor.tsx → SheetStatusbar/SheetStatusbar.tsx} +10 -5
  186. package/src/components/{FunctionEditor → SheetStatusbar}/index.ts +1 -1
  187. package/src/components/SheetToolbar/SheetToolbar.stories.tsx +20 -14
  188. package/src/components/SheetToolbar/SheetToolbar.tsx +57 -46
  189. package/src/components/SheetToolbar/align.ts +49 -23
  190. package/src/components/SheetToolbar/style.ts +51 -21
  191. package/src/components/SheetToolbar/useToolbarState.ts +22 -5
  192. package/src/components/index.ts +1 -7
  193. package/src/{components → containers}/RangeList/RangeList.tsx +20 -15
  194. package/src/containers/RangeList/index.ts +7 -0
  195. package/src/containers/SheetContainer/SheetContainer.stories.tsx +94 -0
  196. package/src/containers/SheetContainer/SheetContainer.tsx +57 -0
  197. package/src/{components → containers}/SheetContainer/index.ts +1 -1
  198. package/src/containers/index.ts +8 -0
  199. package/src/extensions/compute.stories.tsx +46 -32
  200. package/src/extensions/compute.ts +3 -4
  201. package/src/extensions/editor/index.ts +1 -1
  202. package/src/extensions/editor/{extension.test.ts → sheet-extension.test.ts} +1 -1
  203. package/src/extensions/editor/{extension.ts → sheet-extension.ts} +16 -13
  204. package/src/index.ts +1 -1
  205. package/src/integrations/thread-ranges.ts +39 -49
  206. package/src/meta.ts +9 -7
  207. package/src/model/sheet-model.test.ts +5 -4
  208. package/src/model/sheet-model.ts +85 -53
  209. package/src/model/testing.ts +4 -4
  210. package/src/model/useSheetModel.ts +2 -2
  211. package/src/playwright/playwright.config.ts +1 -1
  212. package/src/playwright/sheet-manager.ts +1 -1
  213. package/src/playwright/sheet.spec.ts +3 -2
  214. package/src/sanity.test.ts +4 -5
  215. package/src/serializer.ts +4 -4
  216. package/src/testing/data.ts +2 -2
  217. package/src/testing/testing.tsx +11 -5
  218. package/src/translations.ts +3 -2
  219. package/src/types/Sheet.ts +97 -0
  220. package/src/types/capabilities.ts +14 -0
  221. package/src/types/index.ts +2 -1
  222. package/src/types/sheet-range-types.ts +5 -5
  223. package/src/types/types.ts +84 -49
  224. package/src/types/util.ts +14 -41
  225. package/dist/lib/browser/SheetContainer-KDGD4AVG.mjs +0 -351
  226. package/dist/lib/browser/SheetContainer-KDGD4AVG.mjs.map +0 -7
  227. package/dist/lib/browser/anchor-sort-VHURGBOY.mjs +0 -24
  228. package/dist/lib/browser/anchor-sort-VHURGBOY.mjs.map +0 -7
  229. package/dist/lib/browser/chunk-6AKBCBL4.mjs +0 -18
  230. package/dist/lib/browser/chunk-6AKBCBL4.mjs.map +0 -7
  231. package/dist/lib/browser/chunk-7HQX4NQP.mjs.map +0 -7
  232. package/dist/lib/browser/chunk-JUOVL3LE.mjs +0 -847
  233. package/dist/lib/browser/chunk-JUOVL3LE.mjs.map +0 -7
  234. package/dist/lib/browser/chunk-KJWZUQVA.mjs +0 -15
  235. package/dist/lib/browser/chunk-KJWZUQVA.mjs.map +0 -7
  236. package/dist/lib/browser/chunk-SI4X5GUR.mjs +0 -892
  237. package/dist/lib/browser/chunk-SI4X5GUR.mjs.map +0 -7
  238. package/dist/lib/browser/compute-graph-registry-VG7VP7IV.mjs +0 -30
  239. package/dist/lib/browser/compute-graph-registry-VG7VP7IV.mjs.map +0 -7
  240. package/dist/lib/browser/intent-resolver-WOJGZMSV.mjs +0 -56
  241. package/dist/lib/browser/intent-resolver-WOJGZMSV.mjs.map +0 -7
  242. package/dist/lib/browser/markdown-VXMIPUQC.mjs +0 -26
  243. package/dist/lib/browser/markdown-VXMIPUQC.mjs.map +0 -7
  244. package/dist/lib/browser/react-surface-SE4HGAEH.mjs +0 -53
  245. package/dist/lib/browser/react-surface-SE4HGAEH.mjs.map +0 -7
  246. package/dist/lib/node-esm/SheetContainer-RMG24NZC.mjs +0 -352
  247. package/dist/lib/node-esm/SheetContainer-RMG24NZC.mjs.map +0 -7
  248. package/dist/lib/node-esm/anchor-sort-CTJGOPET.mjs +0 -25
  249. package/dist/lib/node-esm/anchor-sort-CTJGOPET.mjs.map +0 -7
  250. package/dist/lib/node-esm/chunk-3K5VNYOF.mjs +0 -20
  251. package/dist/lib/node-esm/chunk-3K5VNYOF.mjs.map +0 -7
  252. package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs +0 -16
  253. package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs.map +0 -7
  254. package/dist/lib/node-esm/chunk-CADTJFAS.mjs +0 -893
  255. package/dist/lib/node-esm/chunk-CADTJFAS.mjs.map +0 -7
  256. package/dist/lib/node-esm/chunk-IFMIRCZH.mjs +0 -848
  257. package/dist/lib/node-esm/chunk-IFMIRCZH.mjs.map +0 -7
  258. package/dist/lib/node-esm/chunk-Q6UYC4G5.mjs.map +0 -7
  259. package/dist/lib/node-esm/compute-graph-registry-3K3Q2A5T.mjs +0 -31
  260. package/dist/lib/node-esm/compute-graph-registry-3K3Q2A5T.mjs.map +0 -7
  261. package/dist/lib/node-esm/intent-resolver-PZRXBNIJ.mjs +0 -57
  262. package/dist/lib/node-esm/intent-resolver-PZRXBNIJ.mjs.map +0 -7
  263. package/dist/lib/node-esm/markdown-4VPQJZNZ.mjs +0 -27
  264. package/dist/lib/node-esm/markdown-4VPQJZNZ.mjs.map +0 -7
  265. package/dist/lib/node-esm/react-surface-LAU23XBH.mjs +0 -54
  266. package/dist/lib/node-esm/react-surface-LAU23XBH.mjs.map +0 -7
  267. package/dist/types/src/capabilities/anchor-sort.d.ts +0 -6
  268. package/dist/types/src/capabilities/anchor-sort.d.ts.map +0 -1
  269. package/dist/types/src/capabilities/capabilities.d.ts +0 -5
  270. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  271. package/dist/types/src/capabilities/compute-graph-registry.d.ts +0 -4
  272. package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +0 -1
  273. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  274. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  275. package/dist/types/src/capabilities/markdown.d.ts +0 -6
  276. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  277. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  278. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  279. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +0 -3
  280. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +0 -1
  281. package/dist/types/src/components/FunctionEditor/index.d.ts +0 -2
  282. package/dist/types/src/components/FunctionEditor/index.d.ts.map +0 -1
  283. package/dist/types/src/components/GridSheet/GridSheet.d.ts +0 -3
  284. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +0 -1
  285. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +0 -7
  286. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +0 -1
  287. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +0 -25
  288. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +0 -1
  289. package/dist/types/src/components/GridSheet/index.d.ts +0 -2
  290. package/dist/types/src/components/GridSheet/index.d.ts.map +0 -1
  291. package/dist/types/src/components/GridSheet/util.d.ts.map +0 -1
  292. package/dist/types/src/components/RangeList/RangeList.d.ts.map +0 -1
  293. package/dist/types/src/components/RangeList/index.d.ts +0 -2
  294. package/dist/types/src/components/RangeList/index.d.ts.map +0 -1
  295. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +0 -11
  296. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +0 -1
  297. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +0 -8
  298. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
  299. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +0 -1
  300. package/dist/types/src/components/SheetContext/index.d.ts +0 -2
  301. package/dist/types/src/components/SheetContext/index.d.ts.map +0 -1
  302. package/dist/types/src/extensions/editor/extension.d.ts.map +0 -1
  303. package/dist/types/src/extensions/editor/extension.test.d.ts +0 -2
  304. package/dist/types/src/extensions/editor/extension.test.d.ts.map +0 -1
  305. package/dist/types/src/types/schema.d.ts +0 -37
  306. package/dist/types/src/types/schema.d.ts.map +0 -1
  307. package/src/capabilities/anchor-sort.ts +0 -22
  308. package/src/capabilities/capabilities.ts +0 -14
  309. package/src/capabilities/compute-graph-registry.ts +0 -28
  310. package/src/capabilities/intent-resolver.ts +0 -38
  311. package/src/capabilities/markdown.ts +0 -22
  312. package/src/capabilities/react-surface.tsx +0 -39
  313. package/src/components/GridSheet/GridSheet.stories.tsx +0 -53
  314. package/src/components/GridSheet/SheetCellEditor.stories.tsx +0 -93
  315. package/src/components/SheetContainer/SheetContainer.stories.tsx +0 -89
  316. package/src/components/SheetContainer/SheetContainer.tsx +0 -36
  317. package/src/components/SheetContext/index.ts +0 -5
  318. package/src/types/schema.ts +0 -61
  319. /package/dist/types/src/{components → containers}/SheetContainer/index.d.ts +0 -0
@@ -2,15 +2,32 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { useMemo } from 'react';
6
-
7
- import { live } from '@dxos/live-object';
5
+ import { Atom, type Registry, RegistryContext, useAtomValue } from '@effect-atom/atom-react';
6
+ import { useContext, useMemo } from 'react';
8
7
 
9
8
  import { type AlignState } from './align';
10
9
  import { type StyleState } from './style';
11
10
 
12
11
  export type ToolbarState = Partial<StyleState & AlignState>;
12
+ export type ToolbarStateAtom = Atom.Writable<ToolbarState>;
13
+
14
+ /**
15
+ * Creates a reactive toolbar state Atom.
16
+ */
17
+ export const useToolbarState = (initialState: ToolbarState = {}): ToolbarStateAtom => {
18
+ return useMemo(() => Atom.make<ToolbarState>(initialState).pipe(Atom.keepAlive), []);
19
+ };
20
+
21
+ /**
22
+ * Hook to read the current toolbar state value.
23
+ */
24
+ export const useToolbarStateValue = (stateAtom: ToolbarStateAtom): ToolbarState => {
25
+ return useAtomValue(stateAtom);
26
+ };
13
27
 
14
- export const useToolbarState = (initialState: ToolbarState = {}) => {
15
- return useMemo(() => live<ToolbarState>(initialState), []);
28
+ /**
29
+ * Hook to get the registry for updating toolbar state.
30
+ */
31
+ export const useToolbarStateRegistry = (): Registry.Registry => {
32
+ return useContext(RegistryContext);
16
33
  };
@@ -2,11 +2,5 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { lazy } from 'react';
6
-
7
5
  export * from './ComputeGraph';
8
- export * from './GridSheet';
9
- export * from './RangeList';
10
- export * from './SheetContext';
11
-
12
- export const SheetContainer = lazy(() => import('./SheetContainer'));
6
+ export * from './Sheet';
@@ -2,42 +2,47 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { Schema } from 'effect';
5
+ import * as Schema from 'effect/Schema';
6
6
  import React, { useCallback } from 'react';
7
7
 
8
8
  import { rangeToA1Notation } from '@dxos/compute';
9
- import { Callout, useTranslation } from '@dxos/react-ui';
9
+ import { Obj } from '@dxos/echo';
10
+ import { Input, Message, useTranslation } from '@dxos/react-ui';
10
11
  import { List } from '@dxos/react-ui-list';
11
- import { ghostHover } from '@dxos/react-ui-theme';
12
+ import { ghostHover } from '@dxos/ui-theme';
12
13
 
13
- import { SHEET_PLUGIN } from '../../meta';
14
+ import { meta } from '../../meta';
14
15
  import { rangeFromIndex } from '../../types';
15
- import { Range, type SheetType } from '../../types';
16
+ import { Sheet } from '../../types';
16
17
 
17
18
  export type RangeListProps = {
18
- sheet: SheetType;
19
+ sheet: Sheet.Sheet;
19
20
  };
20
21
 
21
22
  export const RangeList = ({ sheet }: RangeListProps) => {
22
- const { t } = useTranslation(SHEET_PLUGIN);
23
+ const { t } = useTranslation(meta.id);
23
24
  // TODO(thure): Implement similar to comments, #8121
24
- const handleSelectRange = (range: Range) => {};
25
+ const handleSelectRange = (range: Sheet.Range) => {};
25
26
  const handleDeleteRange = useCallback(
26
- (range: Range) => {
27
+ (range: Sheet.Range) => {
27
28
  const index = sheet.ranges.findIndex((sheetRange) => sheetRange === range);
28
- sheet.ranges.splice(index, 1);
29
+ Obj.change(sheet, (obj) => {
30
+ obj.ranges.splice(index, 1);
31
+ });
29
32
  },
30
33
  [sheet],
31
34
  );
32
35
  return (
33
36
  <>
34
- <h2 className='mbs-cardSpacingBlock mbe-labelSpacingBlock text-sm font-semibold'>{t('range list heading')}</h2>
37
+ <Input.Root>
38
+ <Input.Label>{t('range list heading')}</Input.Label>
39
+ </Input.Root>
35
40
  {sheet.ranges.length < 1 ? (
36
- <Callout.Root>
37
- <Callout.Title>{t('no ranges message')}</Callout.Title>
38
- </Callout.Root>
41
+ <Message.Root>
42
+ <Message.Title>{t('no ranges message')}</Message.Title>
43
+ </Message.Root>
39
44
  ) : (
40
- <List.Root<Range> items={sheet.ranges} isItem={Schema.is(Range)}>
45
+ <List.Root<Sheet.Range> items={sheet.ranges} isItem={Schema.is(Sheet.Range)}>
41
46
  {({ items: ranges }) =>
42
47
  ranges.map((range, i) => (
43
48
  <List.Item key={i} item={range} classNames={['p-2', ghostHover]}>
@@ -0,0 +1,7 @@
1
+ //
2
+ // Copyright 2024 DXOS.org
3
+ //
4
+
5
+ import { RangeList } from './RangeList';
6
+
7
+ export default RangeList;
@@ -0,0 +1,94 @@
1
+ //
2
+ // Copyright 2024 DXOS.org
3
+ //
4
+
5
+ import { type Meta } from '@storybook/react-vite';
6
+ import * as Effect from 'effect/Effect';
7
+ import React, { useContext } from 'react';
8
+
9
+ import { Capabilities, Capability } from '@dxos/app-framework';
10
+ import { withPluginManager } from '@dxos/app-framework/testing';
11
+ import { Obj } from '@dxos/echo';
12
+ import { OperationResolver } from '@dxos/operation';
13
+ import { corePlugins } from '@dxos/plugin-testing';
14
+ import { useSpace } from '@dxos/react-client/echo';
15
+ import { withClientProvider } from '@dxos/react-client/testing';
16
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
17
+ import { AttendableContainer } from '@dxos/react-ui-attention';
18
+
19
+ import { ComputeGraphContext, useComputeGraph } from '../../components';
20
+ import { createTestCells, useTestSheet, withComputeGraphDecorator } from '../../testing';
21
+ import { translations } from '../../translations';
22
+ import { Sheet, SheetOperation } from '../../types';
23
+ import RangeList from '../RangeList';
24
+
25
+ import { SheetContainer } from './SheetContainer';
26
+
27
+ const meta = {
28
+ title: 'plugins/plugin-sheet/containers/SheetContainer',
29
+ component: SheetContainer,
30
+ decorators: [
31
+ withTheme(),
32
+ withLayout({ layout: 'fullscreen' }),
33
+ withClientProvider({ types: [Sheet.Sheet], createSpace: true }),
34
+ withComputeGraphDecorator(),
35
+ withPluginManager({
36
+ plugins: [...corePlugins()],
37
+ capabilities: [
38
+ Capability.contributes(Capabilities.OperationResolver, [
39
+ OperationResolver.make({
40
+ operation: SheetOperation.DropAxis,
41
+ handler: ({ model, axis, axisIndex }) =>
42
+ Effect.sync(() => {
43
+ model[axis === 'col' ? 'dropColumn' : 'dropRow'](axisIndex);
44
+ return { axis, axisIndex, index: 0, axisMeta: null, values: [] };
45
+ }),
46
+ }),
47
+ ]),
48
+ ],
49
+ }),
50
+ ],
51
+ parameters: {
52
+ layout: 'fullscreen',
53
+ translations,
54
+ },
55
+ } satisfies Meta<typeof SheetContainer>;
56
+
57
+ export default meta;
58
+
59
+ export const Default = () => {
60
+ const space = useSpace();
61
+ const graph = useComputeGraph(space);
62
+ const { registry } = useContext(ComputeGraphContext) ?? {};
63
+ const sheet = useTestSheet(space, graph, { cells: createTestCells() });
64
+ if (!sheet || !space || !registry) {
65
+ return null;
66
+ }
67
+
68
+ return (
69
+ <AttendableContainer id={Obj.getDXN(sheet).toString()} classNames='contents'>
70
+ <SheetContainer role='article' space={space} subject={sheet} registry={registry} ignoreAttention />
71
+ </AttendableContainer>
72
+ );
73
+ };
74
+
75
+ export const Spec = () => {
76
+ const space = useSpace();
77
+ const graph = useComputeGraph(space);
78
+ const { registry } = useContext(ComputeGraphContext) ?? {};
79
+ const sheet = useTestSheet(space, graph, { cells: { A1: { value: 'Ready' } } });
80
+ if (!sheet || !space || !registry) {
81
+ return null;
82
+ }
83
+
84
+ return (
85
+ <AttendableContainer id={Obj.getDXN(sheet).toString()} classNames='contents'>
86
+ <div role='none' className='w-full grid grid-cols-[1fr_20rem]'>
87
+ <SheetContainer role='article' space={space} subject={sheet} registry={registry} ignoreAttention />
88
+ <div role='none' data-testid='grid.range-list'>
89
+ <RangeList sheet={sheet} />
90
+ </div>
91
+ </div>
92
+ </AttendableContainer>
93
+ );
94
+ };
@@ -0,0 +1,57 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import React from 'react';
6
+
7
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
8
+ import { type ComputeGraphRegistry } from '@dxos/compute';
9
+ import { Obj } from '@dxos/echo';
10
+ import { type Space } from '@dxos/react-client/echo';
11
+ import { Panel } from '@dxos/react-ui';
12
+
13
+ import { ComputeGraphContextProvider, Sheet, useComputeGraph } from '../../components';
14
+ import { type Sheet as SheetType } from '../../types';
15
+
16
+ export type SheetContainerProps = SurfaceComponentProps<
17
+ SheetType.Sheet,
18
+ {
19
+ space: Space;
20
+ registry: ComputeGraphRegistry;
21
+ ignoreAttention?: boolean;
22
+ }
23
+ >;
24
+
25
+ export const SheetContainer = ({ registry, ...props }: SheetContainerProps) => (
26
+ <ComputeGraphContextProvider registry={registry}>
27
+ <SheetContainerInner {...props} />
28
+ </ComputeGraphContextProvider>
29
+ );
30
+
31
+ const SheetContainerInner = ({
32
+ role,
33
+ subject: sheet,
34
+ space,
35
+ ignoreAttention,
36
+ }: Omit<SheetContainerProps, 'registry'>) => {
37
+ const graph = useComputeGraph(space);
38
+ if (!graph) {
39
+ return null;
40
+ }
41
+
42
+ return (
43
+ <Sheet.Root graph={graph} sheet={sheet} ignoreAttention={ignoreAttention}>
44
+ <Panel.Root classNames={role === 'section' && 'aspect-aquare'}>
45
+ <Panel.Toolbar asChild>
46
+ <Sheet.Toolbar id={Obj.getDXN(sheet).toString()} />
47
+ </Panel.Toolbar>
48
+ <Panel.Content asChild>
49
+ <Sheet.Content />
50
+ </Panel.Content>
51
+ <Panel.Statusbar asChild>
52
+ <Sheet.Statusbar />
53
+ </Panel.Statusbar>
54
+ </Panel.Root>
55
+ </Sheet.Root>
56
+ );
57
+ };
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright 2024 DXOS.org
2
+ // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
5
  import { SheetContainer } from './SheetContainer';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { type ComponentType, lazy } from 'react';
6
+
7
+ export const RangeList: ComponentType<any> = lazy(() => import('./RangeList'));
8
+ export const SheetContainer: ComponentType<any> = lazy(() => import('./SheetContainer'));
@@ -2,31 +2,32 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos-theme';
6
-
7
- import { type Meta } from '@storybook/react-vite';
5
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
8
6
  import React, { useEffect, useMemo } from 'react';
9
7
 
8
+ import { OperationPlugin, RuntimePlugin } from '@dxos/app-framework';
9
+ import { withPluginManager } from '@dxos/app-framework/testing';
10
10
  import { PublicKey } from '@dxos/keys';
11
11
  import { useSpace } from '@dxos/react-client/echo';
12
12
  import { withClientProvider } from '@dxos/react-client/testing';
13
13
  import { useThemeContext } from '@dxos/react-ui';
14
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
15
+ import { useTextEditor } from '@dxos/react-ui-editor';
14
16
  import {
15
17
  createBasicExtensions,
16
18
  createMarkdownExtensions,
17
19
  createThemeExtensions,
18
20
  decorateMarkdown,
19
21
  documentId,
20
- useTextEditor,
21
- } from '@dxos/react-ui-editor';
22
- import { withTheme, withLayout } from '@dxos/storybook-utils';
22
+ } from '@dxos/ui-editor';
23
23
  import { isNonNullable } from '@dxos/util';
24
24
 
25
- import { compute, computeGraphFacet } from './compute';
26
- import { GridSheet, SheetProvider, useComputeGraph } from '../components';
25
+ import { Sheet, useComputeGraph } from '../components';
27
26
  import { useSheetModel } from '../model';
28
27
  import { useTestSheet, withComputeGraphDecorator } from '../testing';
29
- import { SheetType } from '../types';
28
+ import { Sheet as SheetType } from '../types';
29
+
30
+ import { compute, computeGraphFacet } from './compute';
30
31
 
31
32
  const str = (...lines: string[]) => lines.join('\n');
32
33
 
@@ -41,7 +42,7 @@ type EditorProps = {
41
42
 
42
43
  const SHEET_NAME = 'Test Sheet';
43
44
 
44
- const EditorStory = ({ text }: EditorProps) => {
45
+ const DefaultStory = ({ text }: EditorProps) => {
45
46
  const id = useMemo(() => PublicKey.random(), []);
46
47
  const { themeMode } = useThemeContext();
47
48
  const space = useSpace();
@@ -51,7 +52,7 @@ const EditorStory = ({ text }: EditorProps) => {
51
52
  initialValue: text,
52
53
  extensions: [
53
54
  createBasicExtensions(),
54
- createMarkdownExtensions({ themeMode }),
55
+ createMarkdownExtensions(),
55
56
  createThemeExtensions({ themeMode, syntaxHighlighting: true }),
56
57
  documentId.of(id.toHex()),
57
58
  computeGraph && computeGraphFacet.of(computeGraph),
@@ -72,7 +73,12 @@ const Grid = () => {
72
73
  const model = useSheetModel(graph, sheet);
73
74
  useEffect(() => {
74
75
  if (model) {
75
- model.setValues({ A1: { value: 100 }, A2: { value: 200 }, A3: { value: 300 }, A5: { value: '=SUM(A1:A3)' } });
76
+ model.setValues({
77
+ A1: { value: 100 },
78
+ A2: { value: 200 },
79
+ A3: { value: 300 },
80
+ A5: { value: '=SUM(A1:A3)' },
81
+ });
76
82
  }
77
83
  }, [model]);
78
84
 
@@ -82,9 +88,9 @@ const Grid = () => {
82
88
 
83
89
  return (
84
90
  <div className='flex w-[40rem] overflow-hidden'>
85
- <SheetProvider graph={graph} sheet={sheet}>
86
- <GridSheet />
87
- </SheetProvider>
91
+ <Sheet.Root graph={graph} sheet={sheet}>
92
+ <Sheet.Content />
93
+ </Sheet.Root>
88
94
  </div>
89
95
  );
90
96
  };
@@ -92,15 +98,36 @@ const Grid = () => {
92
98
  const GraphStory = (props: EditorProps) => {
93
99
  return (
94
100
  <div className='grid grid-rows-2'>
95
- <EditorStory {...props} />
101
+ <DefaultStory {...props} />
96
102
  <Grid />
97
103
  </div>
98
104
  );
99
105
  };
100
106
 
107
+ const meta = {
108
+ title: 'plugins/plugin-sheet/extensions/compute',
109
+ decorators: [
110
+ withTheme(),
111
+ withLayout({ layout: 'fullscreen' }),
112
+ withClientProvider({
113
+ types: [SheetType.Sheet],
114
+ createIdentity: true,
115
+ createSpace: true,
116
+ }),
117
+ // TODO(wittjosiah): Try to write story which does not depend on plugin manager.
118
+ withPluginManager({ plugins: [OperationPlugin(), RuntimePlugin()] }),
119
+ withComputeGraphDecorator(),
120
+ ],
121
+ parameters: {
122
+ layout: 'fullscreen',
123
+ },
124
+ } satisfies Meta;
125
+
126
+ export default meta;
127
+
101
128
  // TODO(burdon): Inline formulae.
102
- export const Default = {
103
- render: EditorStory,
129
+ export const Default: StoryObj<typeof DefaultStory> = {
130
+ render: DefaultStory,
104
131
  args: {
105
132
  text: str(
106
133
  //
@@ -123,7 +150,7 @@ export const Default = {
123
150
  },
124
151
  };
125
152
 
126
- export const Graph = {
153
+ export const Graph: StoryObj<typeof GraphStory> = {
127
154
  render: GraphStory,
128
155
  args: {
129
156
  text: str(
@@ -140,16 +167,3 @@ export const Graph = {
140
167
  ),
141
168
  },
142
169
  };
143
-
144
- const meta: Meta = {
145
- title: 'plugins/plugin-sheet/extensions',
146
- decorators: [
147
- withClientProvider({ types: [SheetType], createIdentity: true, createSpace: true }),
148
- withComputeGraphDecorator(),
149
- withTheme,
150
- withLayout({ fullscreen: true, classNames: 'justify-center' }),
151
- ],
152
- parameters: { layout: 'fullscreen' },
153
- };
154
-
155
- export default meta;
@@ -16,14 +16,14 @@ import { Decoration, EditorView, ViewPlugin, WidgetType } from '@codemirror/view
16
16
 
17
17
  import { type CleanupFn, debounce } from '@dxos/async';
18
18
  import {
19
- createSheetName,
20
19
  type CellAddress,
21
20
  type CellScalarValue,
22
21
  type ComputeGraph,
23
22
  type ComputeNode,
23
+ createSheetName,
24
24
  } from '@dxos/compute';
25
25
  import { invariant } from '@dxos/invariant';
26
- import { documentId, singleValueFacet } from '@dxos/react-ui-editor';
26
+ import { documentId, singleValueFacet } from '@dxos/ui-editor';
27
27
 
28
28
  const LANGUAGE_TAG = 'dx';
29
29
 
@@ -34,7 +34,7 @@ export const computeGraphFacet = singleValueFacet<ComputeGraph>();
34
34
 
35
35
  export type ComputeOptions = {};
36
36
 
37
- export const compute = (options: ComputeOptions = {}): Extension => {
37
+ export const compute = (_options: ComputeOptions = {}): Extension => {
38
38
  let computeNode: ComputeNode | undefined;
39
39
 
40
40
  const update = (state: EditorState, current?: RangeSet<Decoration>) => {
@@ -53,7 +53,6 @@ export const compute = (options: ComputeOptions = {}): Extension => {
53
53
  const text = node.node.getChild('CodeText');
54
54
  if (type === LANGUAGE_TAG && text) {
55
55
  const formula = state.sliceDoc(text.from, text.to);
56
-
57
56
  const iter = current?.iter(node.node.from);
58
57
  if (iter?.value && iter?.value.spec.formula === formula) {
59
58
  // Add existing widget.
@@ -2,4 +2,4 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- export * from './extension';
5
+ export * from './sheet-extension';
@@ -10,7 +10,7 @@ import { describe, expect, test } from 'vitest';
10
10
 
11
11
  import { defaultFunctions } from '@dxos/compute';
12
12
 
13
- import { sheetExtension } from './extension';
13
+ import { sheetExtension } from './sheet-extension';
14
14
 
15
15
  describe('formula parser', () => {
16
16
  const {
@@ -20,8 +20,8 @@ import { spreadsheet } from 'codemirror-lang-spreadsheet';
20
20
 
21
21
  import { type FunctionDefinition } from '@dxos/compute';
22
22
  import { RANGE_NOTATION } from '@dxos/compute';
23
- import { singleValueFacet } from '@dxos/react-ui-editor';
24
- import { mx } from '@dxos/react-ui-theme';
23
+ import { singleValueFacet } from '@dxos/ui-editor';
24
+ import { mx } from '@dxos/ui-theme';
25
25
 
26
26
  /**
27
27
  * https://codemirror.net/examples/styling
@@ -33,30 +33,30 @@ const highlightStyles = HighlightStyle.define([
33
33
  // Function.
34
34
  {
35
35
  tag: tags.name,
36
- class: 'text-accentText',
36
+ class: 'text-accent-text',
37
37
  },
38
38
  // Range.
39
39
  {
40
40
  tag: tags.tagName,
41
- class: 'text-pinkText',
41
+ class: 'text-pink-text',
42
42
  },
43
43
  // Values.
44
44
  {
45
45
  tag: tags.number,
46
- class: 'text-tealText',
46
+ class: 'text-teal-text',
47
47
  },
48
48
  {
49
49
  tag: tags.bool,
50
- class: 'text-tealText',
50
+ class: 'text-teal-text',
51
51
  },
52
52
  {
53
53
  tag: tags.string,
54
- class: 'text-tealText',
54
+ class: 'text-teal-text',
55
55
  },
56
56
  // Error.
57
57
  {
58
58
  tag: tags.invalid,
59
- class: 'text-unAccent',
59
+ class: 'text-un-accent',
60
60
  },
61
61
  ]);
62
62
 
@@ -75,7 +75,10 @@ export type SheetExtensionOptions = {
75
75
  * https://hyperformula.handsontable.com/guide/key-concepts.html#grammar
76
76
  */
77
77
  export const sheetExtension = ({ debug, functions = [] }: SheetExtensionOptions): Extension => {
78
- const { extension, language } = spreadsheet({ idiom: 'en-US', decimalSeparator: '.' });
78
+ const { extension, language } = spreadsheet({
79
+ idiom: 'en-US',
80
+ decimalSeparator: '.',
81
+ });
79
82
 
80
83
  const createCompletion = (name: string) => {
81
84
  const { section = 'Custom', description, syntax } = functions.find((value) => value.name === name) ?? {};
@@ -94,7 +97,7 @@ export const sheetExtension = ({ debug, functions = [] }: SheetExtensionOptions)
94
97
 
95
98
  const title = document.createElement('h2');
96
99
  title.innerText = name;
97
- title.className = 'text-lg font-mono text-accentText';
100
+ title.className = 'text-lg font-mono text-accent-text';
98
101
  root.appendChild(title);
99
102
 
100
103
  if (description) {
@@ -107,7 +110,7 @@ export const sheetExtension = ({ debug, functions = [] }: SheetExtensionOptions)
107
110
  if (syntax) {
108
111
  const detail = document.createElement('pre');
109
112
  detail.innerText = syntax;
110
- detail.className = 'whitespace-pre-wrap text-greenText';
113
+ detail.className = 'whitespace-pre-wrap text-green-text';
111
114
  root.appendChild(detail);
112
115
  }
113
116
 
@@ -166,8 +169,8 @@ export const sheetExtension = ({ debug, functions = [] }: SheetExtensionOptions)
166
169
  icons: false,
167
170
  tooltipClass: () =>
168
171
  mx(
169
- '!-left-[1px] !top-[33px] !-m-0 border !border-t-0 [&>ul]:!min-w-[198px]',
170
- '[&>ul>li[aria-selected]]:!bg-accentSurface',
172
+ '!-left-[1px] !top-[33px] !-m-0 border border-h-0! [&>ul]:!min-w-[198px]',
173
+ '[&>ul>li[aria-selected]]:!bg-accent-surface',
171
174
  'border-separator',
172
175
  ),
173
176
  }),
package/src/index.ts CHANGED
@@ -2,6 +2,6 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- export { SheetCapabilities } from './capabilities';
5
+ export { SheetCapabilities } from './types';
6
6
  export * from './meta';
7
7
  export * from './SheetPlugin';