@dxos/plugin-sheet 0.8.3-staging.0fa589b → 0.8.4-main.03d5cd7b56

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 (402) hide show
  1. package/dist/lib/neutral/RangeList-HYB5S6KQ.mjs +46 -0
  2. package/dist/lib/neutral/RangeList-HYB5S6KQ.mjs.map +7 -0
  3. package/dist/lib/neutral/SheetContainer-ZOVKGHLT.mjs +33 -0
  4. package/dist/lib/neutral/SheetContainer-ZOVKGHLT.mjs.map +7 -0
  5. package/dist/lib/neutral/SheetPlugin.mjs +48 -0
  6. package/dist/lib/neutral/SheetPlugin.mjs.map +7 -0
  7. package/dist/lib/neutral/SheetPlugin.node.mjs +27 -0
  8. package/dist/lib/neutral/SheetPlugin.node.mjs.map +7 -0
  9. package/dist/lib/neutral/anchor-sort-TTCKGX7V.mjs +22 -0
  10. package/dist/lib/neutral/anchor-sort-TTCKGX7V.mjs.map +7 -0
  11. package/dist/lib/neutral/capabilities/index.mjs +25 -0
  12. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  13. package/dist/lib/neutral/chunk-4GWJDLTH.mjs +83 -0
  14. package/dist/lib/neutral/chunk-4GWJDLTH.mjs.map +7 -0
  15. package/dist/lib/{browser/chunk-FJRLDX7Z.mjs → neutral/chunk-4SBAIU6F.mjs} +17 -17
  16. package/dist/lib/neutral/chunk-4SBAIU6F.mjs.map +7 -0
  17. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  18. package/dist/lib/neutral/chunk-KC2SMDNF.mjs +373 -0
  19. package/dist/lib/neutral/chunk-KC2SMDNF.mjs.map +7 -0
  20. package/dist/lib/neutral/chunk-YFHTB6MX.mjs +8 -0
  21. package/dist/lib/neutral/chunk-YFHTB6MX.mjs.map +7 -0
  22. package/dist/lib/neutral/chunk-ZWOQCLH7.mjs +21 -0
  23. package/dist/lib/neutral/chunk-ZWOQCLH7.mjs.map +7 -0
  24. package/dist/lib/neutral/comment-config-ZBWNCJMZ.mjs +20 -0
  25. package/dist/lib/neutral/comment-config-ZBWNCJMZ.mjs.map +7 -0
  26. package/dist/lib/neutral/components/index.mjs +1551 -0
  27. package/dist/lib/neutral/components/index.mjs.map +7 -0
  28. package/dist/lib/neutral/compute-graph-registry-IEQBF5XZ.mjs +20 -0
  29. package/dist/lib/neutral/compute-graph-registry-IEQBF5XZ.mjs.map +7 -0
  30. package/dist/lib/neutral/containers/index.mjs +11 -0
  31. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  32. package/dist/lib/neutral/create-object-OKQAXJCW.mjs +27 -0
  33. package/dist/lib/neutral/create-object-OKQAXJCW.mjs.map +7 -0
  34. package/dist/lib/neutral/drop-axis-G6UOXG54.mjs +23 -0
  35. package/dist/lib/neutral/drop-axis-G6UOXG54.mjs.map +7 -0
  36. package/dist/lib/{node-esm/types → neutral}/index.mjs +16 -13
  37. package/dist/lib/neutral/insert-axis-ZFFNG22G.mjs +16 -0
  38. package/dist/lib/neutral/insert-axis-ZFFNG22G.mjs.map +7 -0
  39. package/dist/lib/neutral/markdown-I2AKJYPF.mjs +28 -0
  40. package/dist/lib/neutral/markdown-I2AKJYPF.mjs.map +7 -0
  41. package/dist/lib/neutral/meta.json +1 -0
  42. package/dist/lib/neutral/meta.mjs +8 -0
  43. package/dist/lib/neutral/meta.mjs.map +7 -0
  44. package/dist/lib/neutral/operation-handler-TB6LFV2H.mjs +13 -0
  45. package/dist/lib/neutral/operation-handler-TB6LFV2H.mjs.map +7 -0
  46. package/dist/lib/neutral/operations/index.mjs +8 -0
  47. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  48. package/dist/lib/neutral/plugin.mjs +16 -0
  49. package/dist/lib/neutral/plugin.mjs.map +7 -0
  50. package/dist/lib/neutral/react-surface-ID4JCAFR.mjs +44 -0
  51. package/dist/lib/neutral/react-surface-ID4JCAFR.mjs.map +7 -0
  52. package/dist/lib/neutral/restore-axis-44DM6N54.mjs +16 -0
  53. package/dist/lib/neutral/restore-axis-44DM6N54.mjs.map +7 -0
  54. package/dist/lib/neutral/scroll-to-anchor-WHX3HJC7.mjs +33 -0
  55. package/dist/lib/neutral/scroll-to-anchor-WHX3HJC7.mjs.map +7 -0
  56. package/dist/lib/neutral/state-HPA27MX2.mjs +29 -0
  57. package/dist/lib/neutral/state-HPA27MX2.mjs.map +7 -0
  58. package/dist/lib/neutral/testing/index.mjs +103 -0
  59. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  60. package/dist/lib/neutral/translations.mjs +55 -0
  61. package/dist/lib/neutral/translations.mjs.map +7 -0
  62. package/dist/lib/{browser → neutral}/types/index.mjs +8 -12
  63. package/dist/lib/neutral/types/index.mjs.map +7 -0
  64. package/dist/lib/neutral/undo-mappings-3FQLSTCZ.mjs +31 -0
  65. package/dist/lib/neutral/undo-mappings-3FQLSTCZ.mjs.map +7 -0
  66. package/dist/types/src/SheetPlugin.d.ts +3 -1
  67. package/dist/types/src/SheetPlugin.d.ts.map +1 -1
  68. package/dist/types/src/SheetPlugin.node.d.ts +4 -0
  69. package/dist/types/src/SheetPlugin.node.d.ts.map +1 -0
  70. package/dist/types/src/SheetPlugin.test.d.ts +2 -0
  71. package/dist/types/src/SheetPlugin.test.d.ts.map +1 -0
  72. package/dist/types/src/capabilities/anchor-sort.d.ts +4 -4
  73. package/dist/types/src/capabilities/anchor-sort.d.ts.map +1 -1
  74. package/dist/types/src/capabilities/comment-config.d.ts +12 -0
  75. package/dist/types/src/capabilities/comment-config.d.ts.map +1 -0
  76. package/dist/types/src/capabilities/compute-graph-registry.d.ts +3 -2
  77. package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
  78. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  79. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  80. package/dist/types/src/capabilities/index.d.ts +23 -11
  81. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  82. package/dist/types/src/capabilities/markdown.d.ts +3 -4
  83. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  84. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  85. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  86. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  87. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  88. package/dist/types/src/capabilities/state.d.ts +6 -0
  89. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  90. package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
  91. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
  92. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +1 -1
  93. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
  94. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts +9 -4
  95. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
  96. package/dist/types/src/components/Sheet/Sheet.d.ts +17 -0
  97. package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -0
  98. package/dist/types/src/components/Sheet/index.d.ts +2 -0
  99. package/dist/types/src/components/Sheet/index.d.ts.map +1 -0
  100. package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts +16 -0
  101. package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts.map +1 -0
  102. package/dist/types/src/components/SheetContent/SheetContent.d.ts +6 -0
  103. package/dist/types/src/components/SheetContent/SheetContent.d.ts.map +1 -0
  104. package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts +93 -0
  105. package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts.map +1 -0
  106. package/dist/types/src/components/SheetContent/index.d.ts +2 -0
  107. package/dist/types/src/components/SheetContent/index.d.ts.map +1 -0
  108. package/dist/types/src/components/{GridSheet → SheetContent}/util.d.ts +2 -2
  109. package/dist/types/src/components/SheetContent/util.d.ts.map +1 -0
  110. package/dist/types/src/components/{SheetContext/SheetContext.d.ts → SheetRoot/SheetRoot.d.ts} +9 -7
  111. package/dist/types/src/components/SheetRoot/SheetRoot.d.ts.map +1 -0
  112. package/dist/types/src/components/SheetRoot/index.d.ts +2 -0
  113. package/dist/types/src/components/SheetRoot/index.d.ts.map +1 -0
  114. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts +6 -0
  115. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts.map +1 -0
  116. package/dist/types/src/components/SheetStatusbar/index.d.ts +2 -0
  117. package/dist/types/src/components/SheetStatusbar/index.d.ts.map +1 -0
  118. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +5 -6
  119. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
  120. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +92 -4
  121. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
  122. package/dist/types/src/components/SheetToolbar/align.d.ts +14 -21
  123. package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
  124. package/dist/types/src/components/SheetToolbar/style.d.ts +14 -20
  125. package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
  126. package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts +14 -1
  127. package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts.map +1 -1
  128. package/dist/types/src/components/index.d.ts +1 -4
  129. package/dist/types/src/components/index.d.ts.map +1 -1
  130. package/dist/types/src/containers/RangeList/RangeList.d.ts +7 -0
  131. package/dist/types/src/containers/RangeList/RangeList.d.ts.map +1 -0
  132. package/dist/types/src/containers/RangeList/index.d.ts +2 -0
  133. package/dist/types/src/containers/RangeList/index.d.ts.map +1 -0
  134. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts +12 -0
  135. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts.map +1 -0
  136. package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts +92 -0
  137. package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
  138. package/dist/types/src/containers/SheetContainer/index.d.ts +2 -0
  139. package/dist/types/src/containers/SheetContainer/index.d.ts.map +1 -0
  140. package/dist/types/src/containers/index.d.ts +4 -0
  141. package/dist/types/src/containers/index.d.ts.map +1 -0
  142. package/dist/types/src/extensions/compute.d.ts +2 -2
  143. package/dist/types/src/extensions/compute.d.ts.map +1 -1
  144. package/dist/types/src/extensions/compute.stories.d.ts +10 -13
  145. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  146. package/dist/types/src/extensions/editor/index.d.ts +1 -1
  147. package/dist/types/src/extensions/editor/index.d.ts.map +1 -1
  148. package/dist/types/src/extensions/editor/{extension.d.ts → sheet-extension.d.ts} +2 -2
  149. package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -0
  150. package/dist/types/src/extensions/editor/sheet-extension.test.d.ts +2 -0
  151. package/dist/types/src/extensions/editor/sheet-extension.test.d.ts.map +1 -0
  152. package/dist/types/src/index.d.ts +2 -2
  153. package/dist/types/src/index.d.ts.map +1 -1
  154. package/dist/types/src/integrations/thread-ranges.d.ts +1 -3
  155. package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
  156. package/dist/types/src/meta.d.ts +2 -3
  157. package/dist/types/src/meta.d.ts.map +1 -1
  158. package/dist/types/src/model/sheet-model.d.ts +7 -7
  159. package/dist/types/src/model/sheet-model.d.ts.map +1 -1
  160. package/dist/types/src/model/testing.d.ts +2 -2
  161. package/dist/types/src/model/testing.d.ts.map +1 -1
  162. package/dist/types/src/model/useSheetModel.d.ts +3 -3
  163. package/dist/types/src/model/useSheetModel.d.ts.map +1 -1
  164. package/dist/types/src/operations/drop-axis.d.ts +5 -0
  165. package/dist/types/src/operations/drop-axis.d.ts.map +1 -0
  166. package/dist/types/src/operations/index.d.ts +3 -0
  167. package/dist/types/src/operations/index.d.ts.map +1 -0
  168. package/dist/types/src/operations/insert-axis.d.ts +5 -0
  169. package/dist/types/src/operations/insert-axis.d.ts.map +1 -0
  170. package/dist/types/src/operations/restore-axis.d.ts +5 -0
  171. package/dist/types/src/operations/restore-axis.d.ts.map +1 -0
  172. package/dist/types/src/operations/scroll-to-anchor.d.ts +5 -0
  173. package/dist/types/src/operations/scroll-to-anchor.d.ts.map +1 -0
  174. package/dist/types/src/playwright/playwright.config.d.ts +3 -0
  175. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  176. package/dist/types/src/{testing/playwright → playwright}/sheet-manager.d.ts +1 -1
  177. package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -0
  178. package/dist/types/src/playwright/sheet.spec.d.ts.map +1 -0
  179. package/dist/types/src/plugin.d.ts +4 -0
  180. package/dist/types/src/plugin.d.ts.map +1 -0
  181. package/dist/types/src/serializer.d.ts +3 -3
  182. package/dist/types/src/serializer.d.ts.map +1 -1
  183. package/dist/types/src/testing/data.d.ts +2 -2
  184. package/dist/types/src/testing/data.d.ts.map +1 -1
  185. package/dist/types/src/testing/testing.d.ts +28 -4
  186. package/dist/types/src/testing/testing.d.ts.map +1 -1
  187. package/dist/types/src/translations.d.ts +73 -92
  188. package/dist/types/src/translations.d.ts.map +1 -1
  189. package/dist/types/src/types/Sheet.d.ts +76 -0
  190. package/dist/types/src/types/Sheet.d.ts.map +1 -0
  191. package/dist/types/src/types/SheetCapabilities.d.ts +16 -0
  192. package/dist/types/src/types/SheetCapabilities.d.ts.map +1 -0
  193. package/dist/types/src/types/SheetOperation.d.ts +45 -0
  194. package/dist/types/src/types/SheetOperation.d.ts.map +1 -0
  195. package/dist/types/src/types/index.d.ts +3 -1
  196. package/dist/types/src/types/index.d.ts.map +1 -1
  197. package/dist/types/src/types/sheet-range-types.d.ts +2 -2
  198. package/dist/types/src/types/sheet-range-types.d.ts.map +1 -1
  199. package/dist/types/src/types/types.d.ts +3 -78
  200. package/dist/types/src/types/types.d.ts.map +1 -1
  201. package/dist/types/src/types/util.d.ts +11 -11
  202. package/dist/types/src/types/util.d.ts.map +1 -1
  203. package/dist/types/tsconfig.tsbuildinfo +1 -1
  204. package/package.json +134 -82
  205. package/src/SheetPlugin.node.ts +21 -0
  206. package/src/SheetPlugin.test.ts +30 -0
  207. package/src/SheetPlugin.tsx +46 -68
  208. package/src/capabilities/anchor-sort.ts +20 -15
  209. package/src/capabilities/comment-config.ts +24 -0
  210. package/src/capabilities/compute-graph-registry.ts +21 -20
  211. package/src/capabilities/create-object.ts +30 -0
  212. package/src/capabilities/index.ts +16 -8
  213. package/src/capabilities/markdown.ts +22 -13
  214. package/src/capabilities/operation-handler.ts +16 -0
  215. package/src/capabilities/react-surface.tsx +38 -28
  216. package/src/capabilities/state.ts +29 -0
  217. package/src/capabilities/undo-mappings.ts +30 -0
  218. package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +2 -2
  219. package/src/components/ComputeGraph/compute-graph.stories.tsx +33 -29
  220. package/src/components/Sheet/Sheet.tsx +20 -0
  221. package/src/components/Sheet/index.ts +5 -0
  222. package/src/components/SheetContent/SheetCellEditor.stories.tsx +95 -0
  223. package/src/components/SheetContent/SheetContent.stories.tsx +60 -0
  224. package/src/components/{GridSheet/GridSheet.tsx → SheetContent/SheetContent.tsx} +100 -69
  225. package/src/components/{RangeList → SheetContent}/index.ts +1 -1
  226. package/src/components/{GridSheet → SheetContent}/util.ts +23 -16
  227. package/src/components/{SheetContext/SheetContext.tsx → SheetRoot/SheetRoot.tsx} +55 -42
  228. package/src/components/{GridSheet → SheetRoot}/index.ts +1 -1
  229. package/src/components/{FunctionEditor/FunctionEditor.tsx → SheetStatusbar/SheetStatusbar.tsx} +19 -7
  230. package/src/components/{FunctionEditor → SheetStatusbar}/index.ts +1 -1
  231. package/src/components/SheetToolbar/SheetToolbar.stories.tsx +20 -14
  232. package/src/components/SheetToolbar/SheetToolbar.tsx +62 -56
  233. package/src/components/SheetToolbar/align.ts +50 -24
  234. package/src/components/SheetToolbar/style.ts +52 -22
  235. package/src/components/SheetToolbar/useToolbarState.ts +22 -5
  236. package/src/components/index.ts +1 -7
  237. package/src/containers/RangeList/RangeList.tsx +65 -0
  238. package/src/containers/RangeList/index.ts +5 -0
  239. package/src/containers/SheetContainer/SheetContainer.stories.tsx +110 -0
  240. package/src/containers/SheetContainer/SheetContainer.tsx +57 -0
  241. package/src/containers/SheetContainer/index.ts +5 -0
  242. package/src/containers/index.ts +8 -0
  243. package/src/extensions/compute.stories.tsx +50 -36
  244. package/src/extensions/compute.ts +4 -5
  245. package/src/extensions/editor/index.ts +1 -1
  246. package/src/extensions/editor/{extension.test.ts → sheet-extension.test.ts} +2 -2
  247. package/src/extensions/editor/{extension.ts → sheet-extension.ts} +18 -15
  248. package/src/index.ts +2 -2
  249. package/src/integrations/thread-ranges.ts +21 -62
  250. package/src/meta.ts +9 -7
  251. package/src/model/sheet-model.test.ts +7 -6
  252. package/src/model/sheet-model.ts +87 -55
  253. package/src/model/testing.ts +5 -5
  254. package/src/model/useSheetModel.ts +4 -3
  255. package/src/operations/drop-axis.ts +26 -0
  256. package/src/operations/index.ts +12 -0
  257. package/src/operations/insert-axis.ts +19 -0
  258. package/src/operations/restore-axis.ts +19 -0
  259. package/src/operations/scroll-to-anchor.ts +30 -0
  260. package/src/playwright/playwright.config.ts +17 -0
  261. package/src/{testing/playwright → playwright}/sheet-manager.ts +1 -1
  262. package/src/{testing/playwright → playwright}/sheet.spec.ts +5 -4
  263. package/src/plugin.ts +11 -0
  264. package/src/sanity.test.ts +6 -4
  265. package/src/serializer.ts +5 -5
  266. package/src/testing/data.ts +2 -2
  267. package/src/testing/testing.tsx +13 -7
  268. package/src/translations.ts +46 -38
  269. package/src/types/Sheet.ts +103 -0
  270. package/src/types/SheetCapabilities.ts +26 -0
  271. package/src/types/SheetOperation.ts +75 -0
  272. package/src/types/index.ts +4 -1
  273. package/src/types/sheet-range-types.ts +5 -5
  274. package/src/types/types.ts +6 -51
  275. package/src/types/util.ts +15 -42
  276. package/dist/lib/browser/SheetContainer-BDZXBB5U.mjs +0 -351
  277. package/dist/lib/browser/SheetContainer-BDZXBB5U.mjs.map +0 -7
  278. package/dist/lib/browser/anchor-sort-NYYZLRAA.mjs +0 -24
  279. package/dist/lib/browser/anchor-sort-NYYZLRAA.mjs.map +0 -7
  280. package/dist/lib/browser/chunk-5TA43LO4.mjs +0 -847
  281. package/dist/lib/browser/chunk-5TA43LO4.mjs.map +0 -7
  282. package/dist/lib/browser/chunk-D3G4UGEK.mjs +0 -18
  283. package/dist/lib/browser/chunk-D3G4UGEK.mjs.map +0 -7
  284. package/dist/lib/browser/chunk-FJRLDX7Z.mjs.map +0 -7
  285. package/dist/lib/browser/chunk-I7FZ4TWJ.mjs +0 -892
  286. package/dist/lib/browser/chunk-I7FZ4TWJ.mjs.map +0 -7
  287. package/dist/lib/browser/chunk-IR42IS3F.mjs +0 -15
  288. package/dist/lib/browser/chunk-IR42IS3F.mjs.map +0 -7
  289. package/dist/lib/browser/compute-graph-registry-IXGGJJBU.mjs +0 -30
  290. package/dist/lib/browser/compute-graph-registry-IXGGJJBU.mjs.map +0 -7
  291. package/dist/lib/browser/index.mjs +0 -154
  292. package/dist/lib/browser/index.mjs.map +0 -7
  293. package/dist/lib/browser/intent-resolver-IBBI6B74.mjs +0 -56
  294. package/dist/lib/browser/intent-resolver-IBBI6B74.mjs.map +0 -7
  295. package/dist/lib/browser/markdown-T4TUP4BF.mjs +0 -26
  296. package/dist/lib/browser/markdown-T4TUP4BF.mjs.map +0 -7
  297. package/dist/lib/browser/meta.json +0 -1
  298. package/dist/lib/browser/react-surface-UI46P43F.mjs +0 -53
  299. package/dist/lib/browser/react-surface-UI46P43F.mjs.map +0 -7
  300. package/dist/lib/node/SheetContainer-VWPM3HYJ.cjs +0 -351
  301. package/dist/lib/node/SheetContainer-VWPM3HYJ.cjs.map +0 -7
  302. package/dist/lib/node/anchor-sort-A7NABMJM.cjs +0 -39
  303. package/dist/lib/node/anchor-sort-A7NABMJM.cjs.map +0 -7
  304. package/dist/lib/node/chunk-FIM6EZ6M.cjs +0 -256
  305. package/dist/lib/node/chunk-FIM6EZ6M.cjs.map +0 -7
  306. package/dist/lib/node/chunk-JSIDCZHB.cjs +0 -41
  307. package/dist/lib/node/chunk-JSIDCZHB.cjs.map +0 -7
  308. package/dist/lib/node/chunk-LJWWS53Z.cjs +0 -34
  309. package/dist/lib/node/chunk-LJWWS53Z.cjs.map +0 -7
  310. package/dist/lib/node/chunk-N7FSEUIN.cjs +0 -927
  311. package/dist/lib/node/chunk-N7FSEUIN.cjs.map +0 -7
  312. package/dist/lib/node/chunk-ST3WA73J.cjs +0 -855
  313. package/dist/lib/node/chunk-ST3WA73J.cjs.map +0 -7
  314. package/dist/lib/node/compute-graph-registry-ARLDHPFW.cjs +0 -56
  315. package/dist/lib/node/compute-graph-registry-ARLDHPFW.cjs.map +0 -7
  316. package/dist/lib/node/index.cjs +0 -173
  317. package/dist/lib/node/index.cjs.map +0 -7
  318. package/dist/lib/node/intent-resolver-2657YDOU.cjs +0 -69
  319. package/dist/lib/node/intent-resolver-2657YDOU.cjs.map +0 -7
  320. package/dist/lib/node/markdown-DBPOAYI7.cjs +0 -40
  321. package/dist/lib/node/markdown-DBPOAYI7.cjs.map +0 -7
  322. package/dist/lib/node/meta.json +0 -1
  323. package/dist/lib/node/react-surface-XQEIRKWU.cjs +0 -71
  324. package/dist/lib/node/react-surface-XQEIRKWU.cjs.map +0 -7
  325. package/dist/lib/node/types/index.cjs +0 -84
  326. package/dist/lib/node/types/index.cjs.map +0 -7
  327. package/dist/lib/node-esm/SheetContainer-V632Q4HA.mjs +0 -352
  328. package/dist/lib/node-esm/SheetContainer-V632Q4HA.mjs.map +0 -7
  329. package/dist/lib/node-esm/anchor-sort-JTNZOE67.mjs +0 -25
  330. package/dist/lib/node-esm/anchor-sort-JTNZOE67.mjs.map +0 -7
  331. package/dist/lib/node-esm/chunk-C4IKYVTV.mjs +0 -893
  332. package/dist/lib/node-esm/chunk-C4IKYVTV.mjs.map +0 -7
  333. package/dist/lib/node-esm/chunk-IQ76YE6M.mjs +0 -16
  334. package/dist/lib/node-esm/chunk-IQ76YE6M.mjs.map +0 -7
  335. package/dist/lib/node-esm/chunk-NMCVJWDT.mjs +0 -236
  336. package/dist/lib/node-esm/chunk-NMCVJWDT.mjs.map +0 -7
  337. package/dist/lib/node-esm/chunk-SOC52B67.mjs +0 -848
  338. package/dist/lib/node-esm/chunk-SOC52B67.mjs.map +0 -7
  339. package/dist/lib/node-esm/chunk-Y6ND5HWX.mjs +0 -20
  340. package/dist/lib/node-esm/chunk-Y6ND5HWX.mjs.map +0 -7
  341. package/dist/lib/node-esm/compute-graph-registry-7PDWXMHF.mjs +0 -31
  342. package/dist/lib/node-esm/compute-graph-registry-7PDWXMHF.mjs.map +0 -7
  343. package/dist/lib/node-esm/index.mjs +0 -155
  344. package/dist/lib/node-esm/index.mjs.map +0 -7
  345. package/dist/lib/node-esm/intent-resolver-M2HNR7PJ.mjs +0 -57
  346. package/dist/lib/node-esm/intent-resolver-M2HNR7PJ.mjs.map +0 -7
  347. package/dist/lib/node-esm/markdown-WWUJ3E5F.mjs +0 -27
  348. package/dist/lib/node-esm/markdown-WWUJ3E5F.mjs.map +0 -7
  349. package/dist/lib/node-esm/meta.json +0 -1
  350. package/dist/lib/node-esm/react-surface-OLXO2MVB.mjs +0 -54
  351. package/dist/lib/node-esm/react-surface-OLXO2MVB.mjs.map +0 -7
  352. package/dist/types/src/capabilities/capabilities.d.ts +0 -5
  353. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  354. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  355. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  356. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +0 -3
  357. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +0 -1
  358. package/dist/types/src/components/FunctionEditor/index.d.ts +0 -2
  359. package/dist/types/src/components/FunctionEditor/index.d.ts.map +0 -1
  360. package/dist/types/src/components/GridSheet/GridSheet.d.ts +0 -3
  361. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +0 -1
  362. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +0 -7
  363. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +0 -1
  364. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +0 -25
  365. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +0 -1
  366. package/dist/types/src/components/GridSheet/index.d.ts +0 -2
  367. package/dist/types/src/components/GridSheet/index.d.ts.map +0 -1
  368. package/dist/types/src/components/GridSheet/util.d.ts.map +0 -1
  369. package/dist/types/src/components/RangeList/RangeList.d.ts +0 -7
  370. package/dist/types/src/components/RangeList/RangeList.d.ts.map +0 -1
  371. package/dist/types/src/components/RangeList/index.d.ts +0 -2
  372. package/dist/types/src/components/RangeList/index.d.ts.map +0 -1
  373. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +0 -11
  374. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +0 -1
  375. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +0 -8
  376. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
  377. package/dist/types/src/components/SheetContainer/index.d.ts +0 -3
  378. package/dist/types/src/components/SheetContainer/index.d.ts.map +0 -1
  379. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +0 -1
  380. package/dist/types/src/components/SheetContext/index.d.ts +0 -2
  381. package/dist/types/src/components/SheetContext/index.d.ts.map +0 -1
  382. package/dist/types/src/extensions/editor/extension.d.ts.map +0 -1
  383. package/dist/types/src/extensions/editor/extension.test.d.ts +0 -2
  384. package/dist/types/src/extensions/editor/extension.test.d.ts.map +0 -1
  385. package/dist/types/src/testing/playwright/sheet-manager.d.ts.map +0 -1
  386. package/dist/types/src/testing/playwright/sheet.spec.d.ts.map +0 -1
  387. package/dist/types/src/types/schema.d.ts +0 -37
  388. package/dist/types/src/types/schema.d.ts.map +0 -1
  389. package/src/capabilities/capabilities.ts +0 -14
  390. package/src/capabilities/intent-resolver.ts +0 -38
  391. package/src/components/GridSheet/GridSheet.stories.tsx +0 -53
  392. package/src/components/GridSheet/SheetCellEditor.stories.tsx +0 -93
  393. package/src/components/RangeList/RangeList.tsx +0 -60
  394. package/src/components/SheetContainer/SheetContainer.stories.tsx +0 -89
  395. package/src/components/SheetContainer/SheetContainer.tsx +0 -36
  396. package/src/components/SheetContainer/index.ts +0 -7
  397. package/src/components/SheetContext/index.ts +0 -5
  398. package/src/testing/playwright/playwright.config.cts +0 -18
  399. package/src/types/schema.ts +0 -60
  400. /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  401. /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
  402. /package/dist/types/src/{testing/playwright → playwright}/sheet.spec.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"inputs":{"packages/plugins/plugin-sheet/src/meta.ts":{"bytes":2221,"imports":[],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/capabilities.ts":{"bytes":1473,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-sheet/src/types/schema.ts":{"bytes":6707,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-sheet/src/types/sheet-range-types.ts":{"bytes":3737,"imports":[],"format":"esm"},"packages/plugins/plugin-sheet/src/model/sheet-model.ts":{"bytes":57931,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/model/useSheetModel.ts":{"bytes":3041,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"packages/plugins/plugin-sheet/src/model/index.ts":{"bytes":587,"imports":[{"path":"packages/plugins/plugin-sheet/src/model/sheet-model.ts","kind":"import-statement","original":"./sheet-model"},{"path":"packages/plugins/plugin-sheet/src/model/useSheetModel.ts","kind":"import-statement","original":"./useSheetModel"}],"format":"esm"},"packages/plugins/plugin-sheet/src/types/types.ts":{"bytes":7320,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-sheet/src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"packages/plugins/plugin-sheet/src/types/util.ts":{"bytes":16392,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/types/index.ts":{"bytes":743,"imports":[{"path":"packages/plugins/plugin-sheet/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-sheet/src/types/sheet-range-types.ts","kind":"import-statement","original":"./sheet-range-types"},{"path":"packages/plugins/plugin-sheet/src/types/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-sheet/src/types/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/anchor-sort.ts":{"bytes":2642,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/compute-graph-registry.ts":{"bytes":4369,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/intent-resolver.ts":{"bytes":5455,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/extensions/compute.ts":{"bytes":17706,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-sheet/src/extensions/editor/extension.ts":{"bytes":28538,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@lezer/highlight","kind":"import-statement","external":true},{"path":"codemirror-lang-spreadsheet","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-sheet/src/extensions/editor/index.ts":{"bytes":492,"imports":[{"path":"packages/plugins/plugin-sheet/src/extensions/editor/extension.ts","kind":"import-statement","original":"./extension"}],"format":"esm"},"packages/plugins/plugin-sheet/src/extensions/index.ts":{"bytes":561,"imports":[{"path":"packages/plugins/plugin-sheet/src/extensions/compute.ts","kind":"import-statement","original":"./compute"},{"path":"packages/plugins/plugin-sheet/src/extensions/editor/index.ts","kind":"import-statement","original":"./editor"}],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/markdown.ts":{"bytes":2961,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-sheet/src/extensions/index.ts","kind":"import-statement","original":"../extensions"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytes":4236,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/ComputeGraph/index.ts":{"bytes":540,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/ComputeGraph/ComputeGraphContextProvider.tsx","kind":"import-statement","original":"./ComputeGraphContextProvider"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/GridSheet/util.ts":{"bytes":21636,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/integrations/thread-ranges.ts":{"bytes":15158,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-thread/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-sheet/src/integrations/index.ts":{"bytes":499,"imports":[{"path":"packages/plugins/plugin-sheet/src/integrations/thread-ranges.ts","kind":"import-statement","original":"./thread-ranges"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetContext/SheetContext.tsx":{"bytes":10975,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/model/index.ts","kind":"import-statement","original":"../../model"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts":{"bytes":505,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/SheetContext.tsx","kind":"import-statement","original":"./SheetContext"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/GridSheet/GridSheet.tsx":{"bytes":46626,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/lit-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/components/GridSheet/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/plugins/plugin-sheet/src/extensions/index.ts","kind":"import-statement","original":"../../extensions"},{"path":"packages/plugins/plugin-sheet/src/integrations/index.ts","kind":"import-statement","original":"../../integrations"},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/GridSheet/index.ts":{"bytes":495,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/GridSheet/GridSheet.tsx","kind":"import-statement","original":"./GridSheet"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/RangeList/RangeList.tsx":{"bytes":7909,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/RangeList/index.ts":{"bytes":495,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/RangeList/RangeList.tsx","kind":"import-statement","original":"./RangeList"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/FunctionEditor/FunctionEditor.tsx":{"bytes":5402,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/FunctionEditor/index.ts":{"bytes":513,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/FunctionEditor/FunctionEditor.tsx","kind":"import-statement","original":"./FunctionEditor"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetToolbar/align.ts":{"bytes":12272,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetToolbar/style.ts":{"bytes":12562,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetToolbar/useToolbarState.ts":{"bytes":1375,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetToolbar/SheetToolbar.tsx":{"bytes":9440,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/components/SheetToolbar/align.ts","kind":"import-statement","original":"./align"},{"path":"packages/plugins/plugin-sheet/src/components/SheetToolbar/style.ts","kind":"import-statement","original":"./style"},{"path":"packages/plugins/plugin-sheet/src/components/SheetToolbar/useToolbarState.ts","kind":"import-statement","original":"./useToolbarState"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetToolbar/index.ts":{"bytes":505,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/SheetToolbar/SheetToolbar.tsx","kind":"import-statement","original":"./SheetToolbar"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetContainer/SheetContainer.tsx":{"bytes":4262,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/components/ComputeGraph/index.ts","kind":"import-statement","original":"../ComputeGraph"},{"path":"packages/plugins/plugin-sheet/src/components/FunctionEditor/index.ts","kind":"import-statement","original":"../FunctionEditor"},{"path":"packages/plugins/plugin-sheet/src/components/GridSheet/index.ts","kind":"import-statement","original":"../GridSheet"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"},{"path":"packages/plugins/plugin-sheet/src/components/SheetToolbar/index.ts","kind":"import-statement","original":"../SheetToolbar"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/SheetContainer/index.ts":{"bytes":689,"imports":[{"path":"packages/plugins/plugin-sheet/src/components/SheetContainer/SheetContainer.tsx","kind":"import-statement","original":"./SheetContainer"}],"format":"esm"},"packages/plugins/plugin-sheet/src/components/index.ts":{"bytes":1148,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/components/ComputeGraph/index.ts","kind":"import-statement","original":"./ComputeGraph"},{"path":"packages/plugins/plugin-sheet/src/components/GridSheet/index.ts","kind":"import-statement","original":"./GridSheet"},{"path":"packages/plugins/plugin-sheet/src/components/RangeList/index.ts","kind":"import-statement","original":"./RangeList"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts","kind":"import-statement","original":"./SheetContext"},{"path":"packages/plugins/plugin-sheet/src/components/SheetContainer/index.ts","kind":"dynamic-import","original":"./SheetContainer"}],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/react-surface.tsx":{"bytes":5569,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-sheet/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/capabilities/index.ts":{"bytes":1891,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-sheet/src/capabilities/anchor-sort.ts","kind":"dynamic-import","original":"./anchor-sort"},{"path":"packages/plugins/plugin-sheet/src/capabilities/compute-graph-registry.ts","kind":"dynamic-import","original":"./compute-graph-registry"},{"path":"packages/plugins/plugin-sheet/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-sheet/src/capabilities/markdown.ts","kind":"dynamic-import","original":"./markdown"},{"path":"packages/plugins/plugin-sheet/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-sheet/src/serializer.ts":{"bytes":2583,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/translations.ts":{"bytes":5788,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/SheetPlugin.tsx":{"bytes":9626,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-sheet/src/serializer.ts","kind":"import-statement","original":"./serializer"},{"path":"packages/plugins/plugin-sheet/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-sheet/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-sheet/src/index.ts":{"bytes":748,"imports":[{"path":"packages/plugins/plugin-sheet/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-sheet/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-sheet/src/SheetPlugin.tsx","kind":"import-statement","original":"./SheetPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-sheet/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9350},"packages/plugins/plugin-sheet/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-IR42IS3F.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/anchor-sort-NYYZLRAA.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/compute-graph-registry-IXGGJJBU.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/intent-resolver-IBBI6B74.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/markdown-T4TUP4BF.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/react-surface-UI46P43F.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["SHEET_PLUGIN","SheetCapabilities","SheetPlugin","meta"],"entryPoint":"packages/plugins/plugin-sheet/src/index.ts","inputs":{"packages/plugins/plugin-sheet/src/capabilities/index.ts":{"bytesInOutput":407},"packages/plugins/plugin-sheet/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/SheetPlugin.tsx":{"bytesInOutput":2019},"packages/plugins/plugin-sheet/src/serializer.ts":{"bytesInOutput":451},"packages/plugins/plugin-sheet/src/translations.ts":{"bytesInOutput":1707}},"bytes":5154},"packages/plugins/plugin-sheet/dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-sheet/dist/lib/browser/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"}],"exports":["ApiError","CellValue","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","Range","RangeException","ReadonlyException","RowColumnMeta","SheetAction","SheetType","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","createSheet","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","rangeFromIndex","rangeToIndex","styleKey"],"entryPoint":"packages/plugins/plugin-sheet/src/types/index.ts","inputs":{},"bytes":1050},"packages/plugins/plugin-sheet/dist/lib/browser/anchor-sort-NYYZLRAA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1371},"packages/plugins/plugin-sheet/dist/lib/browser/anchor-sort-NYYZLRAA.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-sheet/src/capabilities/anchor-sort.ts","inputs":{"packages/plugins/plugin-sheet/src/capabilities/anchor-sort.ts":{"bytesInOutput":514}},"bytes":783},"packages/plugins/plugin-sheet/dist/lib/browser/compute-graph-registry-IXGGJJBU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2244},"packages/plugins/plugin-sheet/dist/lib/browser/compute-graph-registry-IXGGJJBU.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-IR42IS3F.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-sheet/src/capabilities/compute-graph-registry.ts","inputs":{"packages/plugins/plugin-sheet/src/capabilities/compute-graph-registry.ts":{"bytesInOutput":887}},"bytes":1172},"packages/plugins/plugin-sheet/dist/lib/browser/intent-resolver-IBBI6B74.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2531},"packages/plugins/plugin-sheet/dist/lib/browser/intent-resolver-IBBI6B74.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-sheet/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-sheet/src/capabilities/intent-resolver.ts":{"bytesInOutput":1207}},"bytes":1504},"packages/plugins/plugin-sheet/dist/lib/browser/markdown-T4TUP4BF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1523},"packages/plugins/plugin-sheet/dist/lib/browser/markdown-T4TUP4BF.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-IR42IS3F.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-FJRLDX7Z.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-sheet/src/capabilities/markdown.ts","inputs":{"packages/plugins/plugin-sheet/src/capabilities/markdown.ts":{"bytesInOutput":551}},"bytes":854},"packages/plugins/plugin-sheet/dist/lib/browser/SheetContainer-BDZXBB5U.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":23093},"packages/plugins/plugin-sheet/dist/lib/browser/SheetContainer-BDZXBB5U.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-5TA43LO4.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-FJRLDX7Z.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-sheet/src/components/SheetContainer/index.ts","inputs":{"packages/plugins/plugin-sheet/src/components/SheetContainer/SheetContainer.tsx":{"bytesInOutput":940},"packages/plugins/plugin-sheet/src/components/FunctionEditor/FunctionEditor.tsx":{"bytesInOutput":1569},"packages/plugins/plugin-sheet/src/components/FunctionEditor/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/components/SheetToolbar/SheetToolbar.tsx":{"bytesInOutput":2208},"packages/plugins/plugin-sheet/src/components/SheetToolbar/align.ts":{"bytesInOutput":2688},"packages/plugins/plugin-sheet/src/components/SheetToolbar/style.ts":{"bytesInOutput":2730},"packages/plugins/plugin-sheet/src/components/SheetToolbar/useToolbarState.ts":{"bytesInOutput":173},"packages/plugins/plugin-sheet/src/components/SheetToolbar/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/components/SheetContainer/index.ts":{"bytesInOutput":45}},"bytes":11462},"packages/plugins/plugin-sheet/dist/lib/browser/react-surface-UI46P43F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2733},"packages/plugins/plugin-sheet/dist/lib/browser/react-surface-UI46P43F.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-IR42IS3F.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-5TA43LO4.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-FJRLDX7Z.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-sheet/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-sheet/src/capabilities/react-surface.tsx":{"bytesInOutput":1163}},"bytes":1630},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-IR42IS3F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":739},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-IR42IS3F.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["SheetCapabilities"],"inputs":{"packages/plugins/plugin-sheet/src/capabilities/capabilities.ts":{"bytesInOutput":277}},"bytes":476},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-5TA43LO4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":55114},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-5TA43LO4.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-FJRLDX7Z.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/lit-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-thread/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-sheet/dist/lib/browser/SheetContainer-BDZXBB5U.mjs","kind":"dynamic-import"}],"exports":["ComputeGraphContextProvider","GridSheet","RangeList","SheetContainer","SheetProvider","useComputeGraph","useSheetContext"],"inputs":{"packages/plugins/plugin-sheet/src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytesInOutput":940},"packages/plugins/plugin-sheet/src/components/RangeList/RangeList.tsx":{"bytesInOutput":1981},"packages/plugins/plugin-sheet/src/components/index.ts":{"bytesInOutput":104},"packages/plugins/plugin-sheet/src/components/ComputeGraph/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/components/GridSheet/GridSheet.tsx":{"bytesInOutput":12131},"packages/plugins/plugin-sheet/src/components/GridSheet/util.ts":{"bytesInOutput":5023},"packages/plugins/plugin-sheet/src/integrations/thread-ranges.ts":{"bytesInOutput":3327},"packages/plugins/plugin-sheet/src/integrations/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/components/SheetContext/SheetContext.tsx":{"bytesInOutput":2678},"packages/plugins/plugin-sheet/src/components/SheetContext/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/components/GridSheet/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/components/RangeList/index.ts":{"bytesInOutput":0}},"bytes":27298},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":46386},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-I7FZ4TWJ.mjs":{"imports":[{"path":"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"exports":["ApiError","CellValue","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","Range","RangeException","ReadonlyException","RowColumnMeta","SheetAction","SheetType","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","createSheet","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","rangeFromIndex","rangeToIndex","styleKey","useSheetModel"],"inputs":{"packages/plugins/plugin-sheet/src/types/schema.ts":{"bytesInOutput":1437},"packages/plugins/plugin-sheet/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/types/sheet-range-types.ts":{"bytesInOutput":709},"packages/plugins/plugin-sheet/src/types/types.ts":{"bytesInOutput":1633},"packages/plugins/plugin-sheet/src/model/sheet-model.ts":{"bytesInOutput":14333},"packages/plugins/plugin-sheet/src/model/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/model/useSheetModel.ts":{"bytesInOutput":543},"packages/plugins/plugin-sheet/src/types/util.ts":{"bytesInOutput":3620}},"bytes":23266},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-FJRLDX7Z.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20132},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-FJRLDX7Z.mjs":{"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@lezer/highlight","kind":"import-statement","external":true},{"path":"codemirror-lang-spreadsheet","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["computeGraphFacet","rangeExtension","sheetExtension"],"inputs":{"packages/plugins/plugin-sheet/src/extensions/compute.ts":{"bytesInOutput":509},"packages/plugins/plugin-sheet/src/extensions/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-sheet/src/extensions/editor/extension.ts":{"bytesInOutput":6110},"packages/plugins/plugin-sheet/src/extensions/editor/index.ts":{"bytesInOutput":0}},"bytes":6860},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1044},"packages/plugins/plugin-sheet/dist/lib/browser/chunk-D3G4UGEK.mjs":{"imports":[],"exports":["SHEET_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-sheet/src/meta.ts":{"bytesInOutput":593}},"bytes":718}}}
@@ -1,53 +0,0 @@
1
- import {
2
- SheetCapabilities
3
- } from "./chunk-IR42IS3F.mjs";
4
- import {
5
- ComputeGraphContextProvider,
6
- RangeList,
7
- SheetContainer
8
- } from "./chunk-5TA43LO4.mjs";
9
- import {
10
- SheetType
11
- } from "./chunk-I7FZ4TWJ.mjs";
12
- import "./chunk-FJRLDX7Z.mjs";
13
- import {
14
- SHEET_PLUGIN
15
- } from "./chunk-D3G4UGEK.mjs";
16
-
17
- // packages/plugins/plugin-sheet/src/capabilities/react-surface.tsx
18
- import React from "react";
19
- import { Capabilities, contributes, createSurface, useCapability } from "@dxos/app-framework";
20
- import { Obj } from "@dxos/echo";
21
- import { getSpace } from "@dxos/react-client/echo";
22
- var react_surface_default = () => contributes(Capabilities.ReactSurface, [
23
- createSurface({
24
- id: `${SHEET_PLUGIN}/sheet`,
25
- role: [
26
- "article",
27
- "section"
28
- ],
29
- filter: (data) => Obj.instanceOf(SheetType, data.subject) && !!getSpace(data.subject),
30
- component: ({ data, role }) => {
31
- const computeGraphRegistry = useCapability(SheetCapabilities.ComputeGraphRegistry);
32
- return /* @__PURE__ */ React.createElement(ComputeGraphContextProvider, {
33
- registry: computeGraphRegistry
34
- }, /* @__PURE__ */ React.createElement(SheetContainer, {
35
- space: getSpace(data.subject),
36
- sheet: data.subject,
37
- role
38
- }));
39
- }
40
- }),
41
- createSurface({
42
- id: `${SHEET_PLUGIN}/object-settings`,
43
- role: "object-settings",
44
- filter: (data) => Obj.instanceOf(SheetType, data.subject),
45
- component: ({ data }) => /* @__PURE__ */ React.createElement(RangeList, {
46
- sheet: data.subject
47
- })
48
- })
49
- ]);
50
- export {
51
- react_surface_default as default
52
- };
53
- //# sourceMappingURL=react-surface-UI46P43F.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface, useCapability } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { getSpace } from '@dxos/react-client/echo';\n\nimport { SheetCapabilities } from './capabilities';\nimport { ComputeGraphContextProvider, RangeList, SheetContainer } from '../components';\nimport { SHEET_PLUGIN } from '../meta';\nimport { SheetType } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${SHEET_PLUGIN}/sheet`,\n role: ['article', 'section'],\n filter: (data): data is { subject: SheetType } =>\n Obj.instanceOf(SheetType, data.subject) && !!getSpace(data.subject),\n component: ({ data, role }) => {\n const computeGraphRegistry = useCapability(SheetCapabilities.ComputeGraphRegistry);\n\n return (\n <ComputeGraphContextProvider registry={computeGraphRegistry}>\n <SheetContainer space={getSpace(data.subject)!} sheet={data.subject} role={role} />\n </ComputeGraphContextProvider>\n );\n },\n }),\n createSurface({\n id: `${SHEET_PLUGIN}/object-settings`,\n role: 'object-settings',\n filter: (data): data is { subject: SheetType } => Obj.instanceOf(SheetType, data.subject),\n component: ({ data }) => <RangeList sheet={data.subject} />,\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,eAAeC,qBAAqB;AACxE,SAASC,WAAW;AACpB,SAASC,gBAAgB;AAOzB,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,YAAAA;IACPC,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SACPC,IAAIC,WAAWC,WAAWH,KAAKI,OAAO,KAAK,CAAC,CAACC,SAASL,KAAKI,OAAO;IACpEE,WAAW,CAAC,EAAEN,MAAMF,KAAI,MAAE;AACxB,YAAMS,uBAAuBC,cAAcC,kBAAkBC,oBAAoB;AAEjF,aACE,sBAAA,cAACC,6BAAAA;QAA4BC,UAAUL;SACrC,sBAAA,cAACM,gBAAAA;QAAeC,OAAOT,SAASL,KAAKI,OAAO;QAAIW,OAAOf,KAAKI;QAASN;;IAG3E;EACF,CAAA;EACAH,cAAc;IACZC,IAAI,GAAGC,YAAAA;IACPC,MAAM;IACNC,QAAQ,CAACC,SAAyCC,IAAIC,WAAWC,WAAWH,KAAKI,OAAO;IACxFE,WAAW,CAAC,EAAEN,KAAI,MAAO,sBAAA,cAACgB,WAAAA;MAAUD,OAAOf,KAAKI;;EAClD,CAAA;CACD;",
6
- "names": ["React", "Capabilities", "contributes", "createSurface", "useCapability", "Obj", "getSpace", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "SHEET_PLUGIN", "role", "filter", "data", "Obj", "instanceOf", "SheetType", "subject", "getSpace", "component", "computeGraphRegistry", "useCapability", "SheetCapabilities", "ComputeGraphRegistry", "ComputeGraphContextProvider", "registry", "SheetContainer", "space", "sheet", "RangeList"]
7
- }
@@ -1,351 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var SheetContainer_VWPM3HYJ_exports = {};
30
- __export(SheetContainer_VWPM3HYJ_exports, {
31
- default: () => SheetContainer_default
32
- });
33
- module.exports = __toCommonJS(SheetContainer_VWPM3HYJ_exports);
34
- var import_chunk_ST3WA73J = require("./chunk-ST3WA73J.cjs");
35
- var import_chunk_N7FSEUIN = require("./chunk-N7FSEUIN.cjs");
36
- var import_chunk_FIM6EZ6M = require("./chunk-FIM6EZ6M.cjs");
37
- var import_chunk_JSIDCZHB = require("./chunk-JSIDCZHB.cjs");
38
- var import_tracking = require("@preact-signals/safe-react/tracking");
39
- var import_react = __toESM(require("react"));
40
- var import_echo = require("@dxos/react-client/echo");
41
- var import_react_ui_stack = require("@dxos/react-ui-stack");
42
- var import_tracking2 = require("@preact-signals/safe-react/tracking");
43
- var import_react2 = __toESM(require("react"));
44
- var import_compute = require("@dxos/compute");
45
- var import_react_ui = require("@dxos/react-ui");
46
- var import_tracking3 = require("@preact-signals/safe-react/tracking");
47
- var import_rx_react = require("@effect-rx/rx-react");
48
- var import_react3 = __toESM(require("react"));
49
- var import_app_framework = require("@dxos/app-framework");
50
- var import_react_ui_menu = require("@dxos/react-ui-menu");
51
- var import_tracking4 = require("@preact-signals/safe-react/tracking");
52
- var import_react4 = require("react");
53
- var import_compute2 = require("@dxos/compute");
54
- var import_react_ui_menu2 = require("@dxos/react-ui-menu");
55
- var import_react5 = require("react");
56
- var import_compute3 = require("@dxos/compute");
57
- var import_react_ui_menu3 = require("@dxos/react-ui-menu");
58
- var import_react6 = require("react");
59
- var import_live_object = require("@dxos/live-object");
60
- var FunctionEditor = () => {
61
- var _effect = (0, import_tracking2.useSignals)();
62
- try {
63
- const { model, cursor, range } = (0, import_chunk_ST3WA73J.useSheetContext)();
64
- let value;
65
- let formula = false;
66
- if (cursor) {
67
- value = model.getCellValue(cursor);
68
- if ((0, import_compute.isFormula)(value)) {
69
- value = model.graph.mapFunctionBindingFromId((0, import_chunk_N7FSEUIN.mapFormulaIndicesToRefs)(model.sheet, value));
70
- formula = true;
71
- } else if (value != null) {
72
- value = String(value);
73
- }
74
- }
75
- return /* @__PURE__ */ import_react2.default.createElement("div", {
76
- className: "flex shrink-0 justify-between items-center px-4 py-1 text-sm bg-toolbarSurface border-bs !border-subduedSeparator"
77
- }, /* @__PURE__ */ import_react2.default.createElement("div", {
78
- className: "flex gap-4 items-center"
79
- }, /* @__PURE__ */ import_react2.default.createElement("div", {
80
- className: "flex w-16 items-center font-mono"
81
- }, range && (0, import_compute.rangeToA1Notation)(range) || cursor && (0, import_compute.addressToA1Notation)(cursor)), /* @__PURE__ */ import_react2.default.createElement("div", {
82
- className: "flex gap-2 items-center"
83
- }, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Icon, {
84
- icon: "ph--function--regular",
85
- classNames: [
86
- "text-greenText",
87
- formula ? "visible" : "invisible"
88
- ]
89
- }), /* @__PURE__ */ import_react2.default.createElement("span", {
90
- className: "font-mono"
91
- }, value))));
92
- } finally {
93
- _effect.f();
94
- }
95
- };
96
- var aligns = {
97
- start: "ph--text-align-left--regular",
98
- center: "ph--text-align-center--regular",
99
- end: "ph--text-align-right--regular"
100
- };
101
- var useAlignState = (state) => {
102
- var _effect = (0, import_tracking4.useSignals)();
103
- try {
104
- const { cursor, model } = (0, import_chunk_ST3WA73J.useSheetContext)();
105
- (0, import_react4.useEffect)(() => {
106
- state[import_chunk_N7FSEUIN.alignKey] = cursor ? model.sheet.ranges?.findLast(({ range, key }) => key === import_chunk_N7FSEUIN.alignKey && (0, import_compute2.inRange)((0, import_chunk_N7FSEUIN.rangeFromIndex)(model.sheet, range), cursor))?.value : void 0;
107
- }, [
108
- cursor,
109
- model.sheet
110
- ]);
111
- } finally {
112
- _effect.f();
113
- }
114
- };
115
- var createAlignGroupAction = (value) => (0, import_react_ui_menu2.createMenuItemGroup)("align", {
116
- label: [
117
- "align label",
118
- {
119
- ns: import_chunk_JSIDCZHB.SHEET_PLUGIN
120
- }
121
- ],
122
- variant: "toggleGroup",
123
- selectCardinality: "single",
124
- value: `${import_chunk_N7FSEUIN.alignKey}--${value}`
125
- });
126
- var createAlignActions = (model, state, cursorFallbackRange) => Object.entries(aligns).map(([alignValue, icon]) => {
127
- return (0, import_react_ui_menu2.createMenuAction)(`${import_chunk_N7FSEUIN.alignKey}--${alignValue}`, () => {
128
- if (!cursorFallbackRange) {
129
- return;
130
- }
131
- const index = model.sheet.ranges?.findIndex((range) => range.key === import_chunk_N7FSEUIN.alignKey && (0, import_compute2.inRange)((0, import_chunk_N7FSEUIN.rangeFromIndex)(model.sheet, range.range), cursorFallbackRange.from)) ?? -1;
132
- const nextRangeEntity = {
133
- range: (0, import_chunk_N7FSEUIN.rangeToIndex)(model.sheet, cursorFallbackRange),
134
- key: import_chunk_N7FSEUIN.alignKey,
135
- value: alignValue
136
- };
137
- if (index < 0) {
138
- model.sheet.ranges?.push(nextRangeEntity);
139
- state[import_chunk_N7FSEUIN.alignKey] = nextRangeEntity.value;
140
- } else if (model.sheet.ranges[index].value === nextRangeEntity.value) {
141
- model.sheet.ranges?.splice(index, 1);
142
- state[import_chunk_N7FSEUIN.alignKey] = void 0;
143
- } else {
144
- model.sheet.ranges?.splice(index, 1, nextRangeEntity);
145
- state[import_chunk_N7FSEUIN.alignKey] = nextRangeEntity.value;
146
- }
147
- }, {
148
- key: import_chunk_N7FSEUIN.alignKey,
149
- value: alignValue,
150
- checked: state[import_chunk_N7FSEUIN.alignKey] === alignValue,
151
- label: [
152
- `range value ${alignValue} label`,
153
- {
154
- ns: import_chunk_JSIDCZHB.SHEET_PLUGIN
155
- }
156
- ],
157
- icon,
158
- testId: `grid.toolbar.${import_chunk_N7FSEUIN.alignKey}.${alignValue}`
159
- });
160
- });
161
- var createAlign = (model, state, cursorFallbackRange) => {
162
- const alignGroup = createAlignGroupAction(state[import_chunk_N7FSEUIN.alignKey]);
163
- const alignActions = createAlignActions(model, state, cursorFallbackRange);
164
- return {
165
- nodes: [
166
- alignGroup,
167
- ...alignActions
168
- ],
169
- edges: [
170
- {
171
- source: "root",
172
- target: "align"
173
- },
174
- ...alignActions.map(({ id }) => ({
175
- source: alignGroup.id,
176
- target: id
177
- }))
178
- ]
179
- };
180
- };
181
- var styles = {
182
- highlight: "ph--highlighter--regular",
183
- softwrap: "ph--paragraph--regular"
184
- };
185
- var useStyleState = (state) => {
186
- const { cursorFallbackRange, model } = (0, import_chunk_ST3WA73J.useSheetContext)();
187
- (0, import_react5.useEffect)(() => {
188
- state.highlight = false;
189
- state.softwrap = false;
190
- if (cursorFallbackRange && model.sheet.ranges) {
191
- model.sheet.ranges.filter(({ range, key }) => key === "style" && (0, import_compute3.inRange)((0, import_chunk_N7FSEUIN.rangeFromIndex)(model.sheet, range), cursorFallbackRange.from)).forEach(({ value }) => {
192
- state[value] = true;
193
- });
194
- }
195
- }, [
196
- cursorFallbackRange,
197
- model.sheet
198
- ]);
199
- };
200
- var createStyleGroup = (state) => {
201
- return (0, import_react_ui_menu3.createMenuItemGroup)("style", {
202
- variant: "toggleGroup",
203
- selectCardinality: "multiple",
204
- value: Object.keys(styles).filter((key) => !!state[key]).map((styleValue) => `style--${styleValue}`)
205
- });
206
- };
207
- var createStyleActions = (model, state, cursorFallbackRange) => Object.entries(styles).map(([styleValue, icon]) => {
208
- return (0, import_react_ui_menu3.createMenuAction)(`style--${styleValue}`, () => {
209
- if (!cursorFallbackRange) {
210
- return;
211
- }
212
- const index = model.sheet.ranges?.findIndex((range) => range.key === "style" && (0, import_compute3.inRange)((0, import_chunk_N7FSEUIN.rangeFromIndex)(model.sheet, range.range), cursorFallbackRange.from)) ?? -1;
213
- const nextRangeEntity = {
214
- range: (0, import_chunk_N7FSEUIN.rangeToIndex)(model.sheet, cursorFallbackRange),
215
- key: "style",
216
- value: styleValue
217
- };
218
- if (model.sheet.ranges.filter(({ range, key: rangeKey }) => rangeKey === "style" && (0, import_compute3.inRange)((0, import_chunk_N7FSEUIN.rangeFromIndex)(model.sheet, range), cursorFallbackRange.from)).some(({ value: rangeValue }) => rangeValue === styleValue)) {
219
- if (index >= 0) {
220
- model.sheet.ranges?.splice(index, 1);
221
- }
222
- state[nextRangeEntity.value] = false;
223
- } else {
224
- model.sheet.ranges?.push(nextRangeEntity);
225
- state[nextRangeEntity.value] = true;
226
- }
227
- }, {
228
- key: "style",
229
- value: styleValue,
230
- icon,
231
- label: [
232
- `range value ${styleValue} label`,
233
- {
234
- ns: import_chunk_JSIDCZHB.SHEET_PLUGIN
235
- }
236
- ],
237
- checked: !!state[styleValue]
238
- });
239
- });
240
- var createStyle = (model, state, cursorFallbackRange) => {
241
- const styleGroupAction = createStyleGroup(state);
242
- const styleActions = createStyleActions(model, state, cursorFallbackRange);
243
- return {
244
- nodes: [
245
- styleGroupAction,
246
- ...styleActions
247
- ],
248
- edges: [
249
- {
250
- source: "root",
251
- target: "style"
252
- },
253
- ...styleActions.map(({ id }) => ({
254
- source: styleGroupAction.id,
255
- target: id
256
- }))
257
- ]
258
- };
259
- };
260
- var useToolbarState = (initialState = {}) => {
261
- return (0, import_react6.useMemo)(() => (0, import_live_object.live)(initialState), []);
262
- };
263
- var createToolbarActions = (model, state, cursorFallbackRange, customActions) => {
264
- return import_rx_react.Rx.make((get) => {
265
- const align = get((0, import_react_ui_menu.rxFromSignal)(() => createAlign(model, state, cursorFallbackRange)));
266
- const style = get((0, import_react_ui_menu.rxFromSignal)(() => createStyle(model, state, cursorFallbackRange)));
267
- const gap = (0, import_react_ui_menu.createGapSeparator)();
268
- const nodes = [
269
- ...align.nodes,
270
- ...style.nodes,
271
- ...gap.nodes
272
- ];
273
- const edges = [
274
- ...align.edges,
275
- ...style.edges,
276
- ...gap.edges
277
- ];
278
- if (customActions) {
279
- const custom = get(customActions);
280
- nodes.push(...custom.nodes);
281
- edges.push(...custom.edges);
282
- }
283
- return {
284
- nodes,
285
- edges
286
- };
287
- });
288
- };
289
- var SheetToolbar = ({ id, classNames }) => {
290
- var _effect = (0, import_tracking3.useSignals)();
291
- try {
292
- const { model, cursorFallbackRange } = (0, import_chunk_ST3WA73J.useSheetContext)();
293
- const state = useToolbarState({});
294
- useAlignState(state);
295
- useStyleState(state);
296
- const { graph } = (0, import_app_framework.useAppGraph)();
297
- const customActions = (0, import_react3.useMemo)(() => {
298
- return import_rx_react.Rx.make((get) => {
299
- const actions = get(graph.actions(id));
300
- const nodes = actions.filter((action) => action.properties.disposition === "toolbar");
301
- return {
302
- nodes,
303
- edges: nodes.map((node) => ({
304
- source: "root",
305
- target: node.id
306
- }))
307
- };
308
- });
309
- }, [
310
- graph
311
- ]);
312
- const actionsCreator = (0, import_react3.useMemo)(() => createToolbarActions(model, state, cursorFallbackRange, customActions), [
313
- model,
314
- state,
315
- cursorFallbackRange,
316
- customActions
317
- ]);
318
- const menu = (0, import_react_ui_menu.useMenuActions)(actionsCreator);
319
- return /* @__PURE__ */ import_react3.default.createElement(import_react_ui_menu.MenuProvider, {
320
- ...menu,
321
- attendableId: id
322
- }, /* @__PURE__ */ import_react3.default.createElement(import_react_ui_menu.ToolbarMenu, {
323
- classNames
324
- }));
325
- } finally {
326
- _effect.f();
327
- }
328
- };
329
- var SheetContainer = ({ space, sheet, role, ignoreAttention }) => {
330
- var _effect = (0, import_tracking.useSignals)();
331
- try {
332
- const graph = (0, import_chunk_ST3WA73J.useComputeGraph)(space);
333
- return graph ? /* @__PURE__ */ import_react.default.createElement(import_chunk_ST3WA73J.SheetProvider, {
334
- sheet,
335
- graph,
336
- ignoreAttention
337
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
338
- toolbar: true,
339
- statusbar: true,
340
- ...role === "section" && {
341
- classNames: "aspect-video"
342
- }
343
- }, /* @__PURE__ */ import_react.default.createElement(SheetToolbar, {
344
- id: (0, import_echo.fullyQualifiedId)(sheet)
345
- }), /* @__PURE__ */ import_react.default.createElement(import_chunk_ST3WA73J.GridSheet, null), /* @__PURE__ */ import_react.default.createElement(FunctionEditor, null))) : null;
346
- } finally {
347
- _effect.f();
348
- }
349
- };
350
- var SheetContainer_default = SheetContainer;
351
- //# sourceMappingURL=SheetContainer-VWPM3HYJ.cjs.map