@dxos/plugin-sheet 0.8.3 → 0.8.4-main.1da679c

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 (191) hide show
  1. package/dist/lib/browser/{SheetContainer-BDZXBB5U.mjs → SheetContainer-OUN6AARA.mjs} +30 -31
  2. package/dist/lib/browser/SheetContainer-OUN6AARA.mjs.map +7 -0
  3. package/dist/lib/browser/{anchor-sort-NYYZLRAA.mjs → anchor-sort-CAYLDDRF.mjs} +6 -6
  4. package/dist/lib/browser/{anchor-sort-NYYZLRAA.mjs.map → anchor-sort-CAYLDDRF.mjs.map} +2 -2
  5. package/dist/lib/browser/{chunk-D3G4UGEK.mjs → chunk-6AKBCBL4.mjs} +2 -2
  6. package/dist/lib/browser/{chunk-IR42IS3F.mjs → chunk-KJWZUQVA.mjs} +3 -3
  7. package/dist/lib/browser/{chunk-FJRLDX7Z.mjs → chunk-SSN4HYJL.mjs} +7 -7
  8. package/dist/lib/browser/chunk-SSN4HYJL.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-5TA43LO4.mjs → chunk-X4EWLDT3.mjs} +207 -203
  10. package/dist/lib/browser/chunk-X4EWLDT3.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-I7FZ4TWJ.mjs → chunk-XSXUU6FO.mjs} +29 -15
  12. package/dist/lib/browser/chunk-XSXUU6FO.mjs.map +7 -0
  13. package/dist/lib/browser/{compute-graph-registry-IXGGJJBU.mjs → compute-graph-registry-WHF3BJTJ.mjs} +6 -6
  14. package/dist/lib/{node-esm/compute-graph-registry-7PDWXMHF.mjs.map → browser/compute-graph-registry-WHF3BJTJ.mjs.map} +2 -2
  15. package/dist/lib/browser/index.mjs +21 -20
  16. package/dist/lib/browser/index.mjs.map +3 -3
  17. package/dist/lib/browser/{intent-resolver-IBBI6B74.mjs → intent-resolver-LKZXAJRJ.mjs} +7 -7
  18. package/dist/lib/browser/{intent-resolver-IBBI6B74.mjs.map → intent-resolver-LKZXAJRJ.mjs.map} +3 -3
  19. package/dist/lib/browser/{markdown-T4TUP4BF.mjs → markdown-XKFA4Z2M.mjs} +7 -7
  20. package/dist/lib/browser/markdown-XKFA4Z2M.mjs.map +7 -0
  21. package/dist/lib/browser/meta.json +1 -1
  22. package/dist/lib/browser/{react-surface-UI46P43F.mjs → react-surface-N6NYHHT3.mjs} +9 -9
  23. package/dist/lib/browser/{react-surface-UI46P43F.mjs.map → react-surface-N6NYHHT3.mjs.map} +2 -2
  24. package/dist/lib/browser/types/index.mjs +2 -2
  25. package/dist/lib/node-esm/{SheetContainer-V632Q4HA.mjs → SheetContainer-NFLLTGNV.mjs} +30 -31
  26. package/dist/lib/node-esm/SheetContainer-NFLLTGNV.mjs.map +7 -0
  27. package/dist/lib/node-esm/{anchor-sort-JTNZOE67.mjs → anchor-sort-4R2ID6GE.mjs} +6 -6
  28. package/dist/lib/node-esm/{anchor-sort-JTNZOE67.mjs.map → anchor-sort-4R2ID6GE.mjs.map} +2 -2
  29. package/dist/lib/node-esm/{chunk-Y6ND5HWX.mjs → chunk-3K5VNYOF.mjs} +2 -2
  30. package/dist/lib/node-esm/{chunk-IQ76YE6M.mjs → chunk-6SK5LJ5S.mjs} +3 -3
  31. package/dist/lib/node-esm/{chunk-NMCVJWDT.mjs → chunk-IK4O7FUJ.mjs} +7 -7
  32. package/dist/lib/node-esm/chunk-IK4O7FUJ.mjs.map +7 -0
  33. package/dist/lib/node-esm/{chunk-C4IKYVTV.mjs → chunk-ODP4L4OV.mjs} +29 -15
  34. package/dist/lib/node-esm/chunk-ODP4L4OV.mjs.map +7 -0
  35. package/dist/lib/node-esm/{chunk-SOC52B67.mjs → chunk-PYF4ZJXN.mjs} +207 -203
  36. package/dist/lib/node-esm/chunk-PYF4ZJXN.mjs.map +7 -0
  37. package/dist/lib/node-esm/{compute-graph-registry-7PDWXMHF.mjs → compute-graph-registry-3IUZXRXJ.mjs} +6 -6
  38. package/dist/lib/{browser/compute-graph-registry-IXGGJJBU.mjs.map → node-esm/compute-graph-registry-3IUZXRXJ.mjs.map} +2 -2
  39. package/dist/lib/node-esm/index.mjs +21 -20
  40. package/dist/lib/node-esm/index.mjs.map +3 -3
  41. package/dist/lib/node-esm/{intent-resolver-M2HNR7PJ.mjs → intent-resolver-JHH6ZVJ4.mjs} +7 -7
  42. package/dist/lib/node-esm/{intent-resolver-M2HNR7PJ.mjs.map → intent-resolver-JHH6ZVJ4.mjs.map} +3 -3
  43. package/dist/lib/node-esm/{markdown-WWUJ3E5F.mjs → markdown-NOKROLCG.mjs} +7 -7
  44. package/dist/lib/node-esm/markdown-NOKROLCG.mjs.map +7 -0
  45. package/dist/lib/node-esm/meta.json +1 -1
  46. package/dist/lib/node-esm/{react-surface-OLXO2MVB.mjs → react-surface-TYBS4DOF.mjs} +9 -9
  47. package/dist/lib/node-esm/{react-surface-OLXO2MVB.mjs.map → react-surface-TYBS4DOF.mjs.map} +2 -2
  48. package/dist/lib/node-esm/types/index.mjs +2 -2
  49. package/dist/types/src/capabilities/anchor-sort.d.ts +2 -2
  50. package/dist/types/src/capabilities/compute-graph-registry.d.ts +1 -1
  51. package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
  52. package/dist/types/src/capabilities/index.d.ts +6 -8
  53. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  54. package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
  55. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  56. package/dist/types/src/capabilities/markdown.d.ts +1 -3
  57. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  58. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  59. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  60. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
  61. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts +9 -3
  62. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
  64. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +49 -2
  65. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +11 -19
  67. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
  68. package/dist/types/src/components/GridSheet/util.d.ts +1 -1
  69. package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
  70. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
  71. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +49 -2
  72. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
  73. package/dist/types/src/components/SheetContext/SheetContext.d.ts +1 -1
  74. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
  75. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
  76. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +86 -3
  77. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
  78. package/dist/types/src/components/SheetToolbar/align.d.ts +2 -2
  79. package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
  80. package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
  81. package/dist/types/src/extensions/compute.d.ts +1 -1
  82. package/dist/types/src/extensions/compute.d.ts.map +1 -1
  83. package/dist/types/src/extensions/compute.stories.d.ts +10 -12
  84. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  85. package/dist/types/src/extensions/editor/index.d.ts +1 -1
  86. package/dist/types/src/extensions/editor/index.d.ts.map +1 -1
  87. package/dist/types/src/extensions/editor/{extension.d.ts → sheet-extension.d.ts} +1 -1
  88. package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -0
  89. package/dist/types/src/extensions/editor/sheet-extension.test.d.ts +2 -0
  90. package/dist/types/src/extensions/editor/sheet-extension.test.d.ts.map +1 -0
  91. package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
  92. package/dist/types/src/model/sheet-model.d.ts +1 -1
  93. package/dist/types/src/model/sheet-model.d.ts.map +1 -1
  94. package/dist/types/src/playwright/playwright.config.d.ts +3 -0
  95. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  96. package/dist/types/src/{testing/playwright → playwright}/sheet-manager.d.ts +1 -1
  97. package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -0
  98. package/dist/types/src/playwright/sheet.spec.d.ts.map +1 -0
  99. package/dist/types/src/testing/testing.d.ts.map +1 -1
  100. package/dist/types/src/translations.d.ts +7 -62
  101. package/dist/types/src/translations.d.ts.map +1 -1
  102. package/dist/types/src/types/schema.d.ts.map +1 -1
  103. package/dist/types/src/types/types.d.ts +1 -1
  104. package/dist/types/src/types/types.d.ts.map +1 -1
  105. package/dist/types/src/types/util.d.ts.map +1 -1
  106. package/dist/types/tsconfig.tsbuildinfo +1 -1
  107. package/package.json +59 -57
  108. package/src/SheetPlugin.tsx +3 -3
  109. package/src/capabilities/anchor-sort.ts +1 -1
  110. package/src/capabilities/compute-graph-registry.ts +1 -1
  111. package/src/capabilities/intent-resolver.ts +2 -2
  112. package/src/capabilities/markdown.ts +3 -2
  113. package/src/capabilities/react-surface.tsx +2 -1
  114. package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -1
  115. package/src/components/ComputeGraph/compute-graph.stories.tsx +13 -10
  116. package/src/components/GridSheet/GridSheet.stories.tsx +9 -6
  117. package/src/components/GridSheet/GridSheet.tsx +19 -18
  118. package/src/components/GridSheet/SheetCellEditor.stories.tsx +37 -38
  119. package/src/components/GridSheet/util.ts +6 -6
  120. package/src/components/SheetContainer/SheetContainer.stories.tsx +10 -7
  121. package/src/components/SheetContainer/SheetContainer.tsx +1 -1
  122. package/src/components/SheetContext/SheetContext.tsx +1 -1
  123. package/src/components/SheetToolbar/SheetToolbar.stories.tsx +10 -7
  124. package/src/components/SheetToolbar/SheetToolbar.tsx +16 -15
  125. package/src/components/SheetToolbar/align.ts +4 -3
  126. package/src/components/SheetToolbar/style.ts +2 -2
  127. package/src/extensions/compute.stories.tsx +20 -19
  128. package/src/extensions/compute.ts +2 -3
  129. package/src/extensions/editor/index.ts +1 -1
  130. package/src/extensions/editor/{extension.test.ts → sheet-extension.test.ts} +1 -1
  131. package/src/integrations/thread-ranges.ts +7 -6
  132. package/src/model/sheet-model.test.ts +2 -1
  133. package/src/model/sheet-model.ts +6 -6
  134. package/src/playwright/playwright.config.ts +17 -0
  135. package/src/{testing/playwright → playwright}/sheet-manager.ts +1 -1
  136. package/src/{testing/playwright → playwright}/sheet.spec.ts +2 -2
  137. package/src/sanity.test.ts +1 -1
  138. package/src/testing/testing.tsx +1 -1
  139. package/src/translations.ts +8 -6
  140. package/src/types/schema.ts +1 -0
  141. package/src/types/types.ts +2 -1
  142. package/src/types/util.ts +3 -3
  143. package/dist/lib/browser/SheetContainer-BDZXBB5U.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-5TA43LO4.mjs.map +0 -7
  145. package/dist/lib/browser/chunk-FJRLDX7Z.mjs.map +0 -7
  146. package/dist/lib/browser/chunk-I7FZ4TWJ.mjs.map +0 -7
  147. package/dist/lib/browser/markdown-T4TUP4BF.mjs.map +0 -7
  148. package/dist/lib/node/SheetContainer-VWPM3HYJ.cjs +0 -351
  149. package/dist/lib/node/SheetContainer-VWPM3HYJ.cjs.map +0 -7
  150. package/dist/lib/node/anchor-sort-A7NABMJM.cjs +0 -39
  151. package/dist/lib/node/anchor-sort-A7NABMJM.cjs.map +0 -7
  152. package/dist/lib/node/chunk-FIM6EZ6M.cjs +0 -256
  153. package/dist/lib/node/chunk-FIM6EZ6M.cjs.map +0 -7
  154. package/dist/lib/node/chunk-JSIDCZHB.cjs +0 -41
  155. package/dist/lib/node/chunk-JSIDCZHB.cjs.map +0 -7
  156. package/dist/lib/node/chunk-LJWWS53Z.cjs +0 -34
  157. package/dist/lib/node/chunk-LJWWS53Z.cjs.map +0 -7
  158. package/dist/lib/node/chunk-N7FSEUIN.cjs +0 -927
  159. package/dist/lib/node/chunk-N7FSEUIN.cjs.map +0 -7
  160. package/dist/lib/node/chunk-ST3WA73J.cjs +0 -855
  161. package/dist/lib/node/chunk-ST3WA73J.cjs.map +0 -7
  162. package/dist/lib/node/compute-graph-registry-ARLDHPFW.cjs +0 -56
  163. package/dist/lib/node/compute-graph-registry-ARLDHPFW.cjs.map +0 -7
  164. package/dist/lib/node/index.cjs +0 -173
  165. package/dist/lib/node/index.cjs.map +0 -7
  166. package/dist/lib/node/intent-resolver-2657YDOU.cjs +0 -69
  167. package/dist/lib/node/intent-resolver-2657YDOU.cjs.map +0 -7
  168. package/dist/lib/node/markdown-DBPOAYI7.cjs +0 -40
  169. package/dist/lib/node/markdown-DBPOAYI7.cjs.map +0 -7
  170. package/dist/lib/node/meta.json +0 -1
  171. package/dist/lib/node/react-surface-XQEIRKWU.cjs +0 -71
  172. package/dist/lib/node/react-surface-XQEIRKWU.cjs.map +0 -7
  173. package/dist/lib/node/types/index.cjs +0 -84
  174. package/dist/lib/node/types/index.cjs.map +0 -7
  175. package/dist/lib/node-esm/SheetContainer-V632Q4HA.mjs.map +0 -7
  176. package/dist/lib/node-esm/chunk-C4IKYVTV.mjs.map +0 -7
  177. package/dist/lib/node-esm/chunk-NMCVJWDT.mjs.map +0 -7
  178. package/dist/lib/node-esm/chunk-SOC52B67.mjs.map +0 -7
  179. package/dist/lib/node-esm/markdown-WWUJ3E5F.mjs.map +0 -7
  180. package/dist/types/src/extensions/editor/extension.d.ts.map +0 -1
  181. package/dist/types/src/extensions/editor/extension.test.d.ts +0 -2
  182. package/dist/types/src/extensions/editor/extension.test.d.ts.map +0 -1
  183. package/dist/types/src/testing/playwright/sheet-manager.d.ts.map +0 -1
  184. package/dist/types/src/testing/playwright/sheet.spec.d.ts.map +0 -1
  185. package/src/testing/playwright/playwright.config.cts +0 -18
  186. /package/dist/lib/browser/{chunk-D3G4UGEK.mjs.map → chunk-6AKBCBL4.mjs.map} +0 -0
  187. /package/dist/lib/browser/{chunk-IR42IS3F.mjs.map → chunk-KJWZUQVA.mjs.map} +0 -0
  188. /package/dist/lib/node-esm/{chunk-Y6ND5HWX.mjs.map → chunk-3K5VNYOF.mjs.map} +0 -0
  189. /package/dist/lib/node-esm/{chunk-IQ76YE6M.mjs.map → chunk-6SK5LJ5S.mjs.map} +0 -0
  190. /package/dist/types/src/{testing/playwright → playwright}/sheet.spec.d.ts +0 -0
  191. /package/src/extensions/editor/{extension.ts → sheet-extension.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-sheet",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-main.1da679c",
4
4
  "description": "Braneframe sketch plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,11 +10,13 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
+ "source": "./src/index.ts",
13
14
  "types": "./dist/types/src/index.d.ts",
14
15
  "browser": "./dist/lib/browser/index.mjs",
15
16
  "node": "./dist/lib/node-esm/index.mjs"
16
17
  },
17
18
  "./types": {
19
+ "source": "./src/types/index.ts",
18
20
  "types": "./dist/types/src/types/index.d.ts",
19
21
  "browser": "./dist/lib/browser/types/index.mjs",
20
22
  "node": "./dist/lib/node-esm/types/index.mjs"
@@ -24,7 +26,7 @@
24
26
  "typesVersions": {
25
27
  "*": {
26
28
  "types": [
27
- "dist/types/src/types.d.ts"
29
+ "dist/types/src/types/index.d.ts"
28
30
  ]
29
31
  }
30
32
  },
@@ -33,10 +35,10 @@
33
35
  "src"
34
36
  ],
35
37
  "dependencies": {
36
- "@codemirror/autocomplete": "^6.18.1",
37
- "@codemirror/language": "^6.10.3",
38
- "@codemirror/state": "^6.4.1",
39
- "@codemirror/view": "^6.34.1",
38
+ "@codemirror/autocomplete": "^6.18.7",
39
+ "@codemirror/language": "^6.11.3",
40
+ "@codemirror/state": "^6.5.2",
41
+ "@codemirror/view": "^6.38.2",
40
42
  "@dnd-kit/core": "^6.0.5",
41
43
  "@dnd-kit/modifiers": "^6.0.0",
42
44
  "@dnd-kit/sortable": "^7.0.1",
@@ -54,73 +56,73 @@
54
56
  "re-resizable": "^6.9.17",
55
57
  "react-markdown": "^8.0.5",
56
58
  "react-resize-detector": "^11.0.1",
57
- "@dxos/app-framework": "0.8.3",
58
- "@dxos/async": "0.8.3",
59
- "@dxos/compute": "0.8.3",
60
- "@dxos/client": "0.8.3",
61
- "@dxos/context": "0.8.3",
62
- "@dxos/debug": "0.8.3",
63
- "@dxos/crypto": "0.8.3",
64
- "@dxos/echo": "0.8.3",
65
- "@dxos/functions": "0.8.3",
66
- "@dxos/invariant": "0.8.3",
67
- "@dxos/echo-schema": "0.8.3",
68
- "@dxos/keys": "0.8.3",
69
- "@dxos/live-object": "0.8.3",
70
- "@dxos/lit-grid": "0.8.3",
71
- "@dxos/plugin-attention": "0.8.3",
72
- "@dxos/plugin-client": "0.8.3",
73
- "@dxos/plugin-deck": "0.8.3",
74
- "@dxos/log": "0.8.3",
75
- "@dxos/plugin-graph": "0.8.3",
76
- "@dxos/plugin-markdown": "0.8.3",
77
- "@dxos/plugin-script": "0.8.3",
78
- "@dxos/plugin-space": "0.8.3",
79
- "@dxos/plugin-stack": "0.8.3",
80
- "@dxos/plugin-thread": "0.8.3",
81
- "@dxos/react-client": "0.8.3",
82
- "@dxos/react-ui-attention": "0.8.3",
83
- "@dxos/react-hooks": "0.8.3",
84
- "@dxos/react-ui-editor": "0.8.3",
85
- "@dxos/react-ui-form": "0.8.3",
86
- "@dxos/react-ui-grid": "0.8.3",
87
- "@dxos/react-ui-list": "0.8.3",
88
- "@dxos/react-ui-menu": "0.8.3",
89
- "@dxos/schema": "0.8.3",
90
- "@dxos/util": "0.8.3",
91
- "@dxos/react-ui-stack": "0.8.3"
59
+ "@dxos/app-framework": "0.8.4-main.1da679c",
60
+ "@dxos/async": "0.8.4-main.1da679c",
61
+ "@dxos/client": "0.8.4-main.1da679c",
62
+ "@dxos/compute": "0.8.4-main.1da679c",
63
+ "@dxos/context": "0.8.4-main.1da679c",
64
+ "@dxos/crypto": "0.8.4-main.1da679c",
65
+ "@dxos/debug": "0.8.4-main.1da679c",
66
+ "@dxos/echo": "0.8.4-main.1da679c",
67
+ "@dxos/echo-schema": "0.8.4-main.1da679c",
68
+ "@dxos/keys": "0.8.4-main.1da679c",
69
+ "@dxos/invariant": "0.8.4-main.1da679c",
70
+ "@dxos/live-object": "0.8.4-main.1da679c",
71
+ "@dxos/lit-grid": "0.8.4-main.1da679c",
72
+ "@dxos/log": "0.8.4-main.1da679c",
73
+ "@dxos/plugin-client": "0.8.4-main.1da679c",
74
+ "@dxos/plugin-attention": "0.8.4-main.1da679c",
75
+ "@dxos/plugin-graph": "0.8.4-main.1da679c",
76
+ "@dxos/plugin-deck": "0.8.4-main.1da679c",
77
+ "@dxos/plugin-markdown": "0.8.4-main.1da679c",
78
+ "@dxos/plugin-script": "0.8.4-main.1da679c",
79
+ "@dxos/functions": "0.8.4-main.1da679c",
80
+ "@dxos/plugin-space": "0.8.4-main.1da679c",
81
+ "@dxos/plugin-thread": "0.8.4-main.1da679c",
82
+ "@dxos/plugin-stack": "0.8.4-main.1da679c",
83
+ "@dxos/react-hooks": "0.8.4-main.1da679c",
84
+ "@dxos/react-client": "0.8.4-main.1da679c",
85
+ "@dxos/react-ui-form": "0.8.4-main.1da679c",
86
+ "@dxos/react-ui-grid": "0.8.4-main.1da679c",
87
+ "@dxos/react-ui-attention": "0.8.4-main.1da679c",
88
+ "@dxos/react-ui-menu": "0.8.4-main.1da679c",
89
+ "@dxos/react-ui-editor": "0.8.4-main.1da679c",
90
+ "@dxos/react-ui-list": "0.8.4-main.1da679c",
91
+ "@dxos/react-ui-stack": "0.8.4-main.1da679c",
92
+ "@dxos/schema": "0.8.4-main.1da679c",
93
+ "@dxos/util": "0.8.4-main.1da679c"
92
94
  },
93
95
  "devDependencies": {
94
- "@effect-rx/rx-react": "^0.34.1",
95
- "@effect/platform": "0.80.12",
96
+ "@effect-rx/rx-react": "0.38.0",
97
+ "@effect/platform": "0.90.2",
96
98
  "@lezer/generator": "^1.7.1",
97
99
  "@tldraw/indices": "^2.0.0-alpha.14",
98
100
  "@types/lodash.defaultsdeep": "^4.6.6",
99
101
  "@types/react": "~18.2.0",
100
102
  "@types/react-dom": "~18.2.0",
101
103
  "@types/react-window": "^1.8.8",
102
- "effect": "3.14.21",
104
+ "effect": "3.17.7",
103
105
  "react": "~18.2.0",
104
106
  "react-dom": "~18.2.0",
105
- "vite": "5.4.7",
106
- "@dxos/echo-generator": "0.8.3",
107
- "@dxos/lit-grid": "0.8.3",
108
- "@dxos/random": "0.8.3",
109
- "@dxos/react-ui": "0.8.3",
110
- "@dxos/react-ui-syntax-highlighter": "0.8.3",
111
- "@dxos/react-ui-types": "0.8.3",
112
- "@dxos/storybook-utils": "0.8.3",
113
- "@dxos/test-utils": "0.8.3",
114
- "@dxos/react-ui-theme": "0.8.3"
107
+ "vite": "7.1.1",
108
+ "@dxos/echo-generator": "0.8.4-main.1da679c",
109
+ "@dxos/random": "0.8.4-main.1da679c",
110
+ "@dxos/lit-grid": "0.8.4-main.1da679c",
111
+ "@dxos/react-ui": "0.8.4-main.1da679c",
112
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.1da679c",
113
+ "@dxos/react-ui-theme": "0.8.4-main.1da679c",
114
+ "@dxos/react-ui-types": "0.8.4-main.1da679c",
115
+ "@dxos/test-utils": "0.8.4-main.1da679c",
116
+ "@dxos/storybook-utils": "0.8.4-main.1da679c"
115
117
  },
116
118
  "peerDependencies": {
117
119
  "@effect-rx/rx-react": "^0.34.1",
118
- "@effect/platform": "0.80.12",
120
+ "@effect/platform": "^0.80.12",
119
121
  "effect": "^3.13.3",
120
122
  "react": "~18.2.0",
121
123
  "react-dom": "~18.2.0",
122
- "@dxos/react-ui": "0.8.3",
123
- "@dxos/react-ui-theme": "0.8.3"
124
+ "@dxos/react-ui": "0.8.4-main.1da679c",
125
+ "@dxos/react-ui-theme": "0.8.4-main.1da679c"
124
126
  },
125
127
  "publishConfig": {
126
128
  "access": "public"
@@ -2,16 +2,16 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';
5
+ import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
6
6
  import { ClientEvents } from '@dxos/plugin-client';
7
7
  import { MarkdownEvents } from '@dxos/plugin-markdown';
8
8
  import { SpaceCapabilities } from '@dxos/plugin-space';
9
9
  import { defineObjectForm } from '@dxos/plugin-space/types';
10
10
 
11
- import { AnchorSort, Markdown, ReactSurface, IntentResolver, ComputeGraphRegistry } from './capabilities';
11
+ import { AnchorSort, ComputeGraphRegistry, IntentResolver, Markdown, ReactSurface } from './capabilities';
12
12
  import { meta } from './meta';
13
13
  import { serializer } from './serializer';
14
- import translations from './translations';
14
+ import { translations } from './translations';
15
15
  import { SheetAction, SheetType } from './types';
16
16
 
17
17
  export const SheetPlugin = () =>
@@ -6,7 +6,7 @@ import { Capabilities, contributes } from '@dxos/app-framework';
6
6
  import { Type } from '@dxos/echo';
7
7
  import { getTarget } from '@dxos/react-client/echo';
8
8
 
9
- import { compareIndexPositions, SheetType } from '../types';
9
+ import { SheetType, compareIndexPositions } from '../types';
10
10
 
11
11
  export default () =>
12
12
  contributes(Capabilities.AnchorSort, {
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { contributes, type PluginContext } from '@dxos/app-framework';
5
+ import { type PluginContext, contributes } from '@dxos/app-framework';
6
6
  import { ClientCapabilities } from '@dxos/plugin-client';
7
7
 
8
8
  import { SheetCapabilities } from './capabilities';
@@ -2,10 +2,10 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { contributes, Capabilities, createResolver } from '@dxos/app-framework';
5
+ import { Capabilities, contributes, createResolver } from '@dxos/app-framework';
6
6
 
7
7
  import { SHEET_PLUGIN } from '../meta';
8
- import { createSheet, SheetAction } from '../types';
8
+ import { SheetAction, createSheet } from '../types';
9
9
 
10
10
  export default () =>
11
11
  contributes(Capabilities.IntentResolver, [
@@ -2,13 +2,14 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { contributes, type PluginContext } from '@dxos/app-framework';
5
+ import { type PluginContext, contributes } from '@dxos/app-framework';
6
6
  import { getSpace } from '@dxos/client/echo';
7
7
  import { MarkdownCapabilities } from '@dxos/plugin-markdown';
8
8
 
9
- import { SheetCapabilities } from './capabilities';
10
9
  import { computeGraphFacet } from '../extensions';
11
10
 
11
+ import { SheetCapabilities } from './capabilities';
12
+
12
13
  export default (context: PluginContext) =>
13
14
  contributes(MarkdownCapabilities.Extensions, [
14
15
  ({ document: doc }) => {
@@ -8,11 +8,12 @@ import { Capabilities, contributes, createSurface, useCapability } from '@dxos/a
8
8
  import { Obj } from '@dxos/echo';
9
9
  import { getSpace } from '@dxos/react-client/echo';
10
10
 
11
- import { SheetCapabilities } from './capabilities';
12
11
  import { ComputeGraphContextProvider, RangeList, SheetContainer } from '../components';
13
12
  import { SHEET_PLUGIN } from '../meta';
14
13
  import { SheetType } from '../types';
15
14
 
15
+ import { SheetCapabilities } from './capabilities';
16
+
16
17
  export default () =>
17
18
  contributes(Capabilities.ReactSurface, [
18
19
  createSurface({
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import React, { createContext, type PropsWithChildren, useContext } from 'react';
5
+ import React, { type PropsWithChildren, createContext, useContext } from 'react';
6
6
 
7
7
  import { type ComputeGraph, type ComputeGraphRegistry } from '@dxos/compute';
8
8
  import { raise } from '@dxos/debug';
@@ -4,26 +4,27 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { type Meta } from '@storybook/react';
7
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
8
8
  import React, { useEffect, useRef, useState } from 'react';
9
9
 
10
10
  import { testFunctionPlugins } from '@dxos/compute/testing';
11
- import { Obj, Filter } from '@dxos/echo';
11
+ import { Filter, Obj } from '@dxos/echo';
12
12
  import { FunctionType } from '@dxos/functions';
13
13
  import { useSpace } from '@dxos/react-client/echo';
14
14
  import { withClientProvider } from '@dxos/react-client/testing';
15
- import { Toolbar, Button, Input } from '@dxos/react-ui';
15
+ import { Button, Input, Toolbar } from '@dxos/react-ui';
16
16
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
17
17
  import { withTheme } from '@dxos/storybook-utils';
18
18
 
19
- import { useComputeGraph } from './ComputeGraphContextProvider';
20
19
  import { useSheetModel } from '../../model';
21
20
  import { withComputeGraphDecorator } from '../../testing';
22
- import { createSheet, SheetType } from '../../types';
21
+ import { SheetType, createSheet } from '../../types';
22
+
23
+ import { useComputeGraph } from './ComputeGraphContextProvider';
23
24
 
24
25
  const FUNCTION_NAME = 'TEST';
25
26
 
26
- const Story = () => {
27
+ const DefaultStory = () => {
27
28
  const space = useSpace();
28
29
  const graph = useComputeGraph(space);
29
30
  const [sheet, setSheet] = useState<SheetType>();
@@ -82,16 +83,18 @@ const Story = () => {
82
83
  );
83
84
  };
84
85
 
85
- export const Default = {};
86
+ export const Default: Story = {};
86
87
 
87
- const meta: Meta = {
88
+ const meta = {
88
89
  title: 'plugins/plugin-sheet/functions',
90
+ render: DefaultStory,
89
91
  decorators: [
90
92
  withClientProvider({ types: [FunctionType, SheetType], createIdentity: true, createSpace: true }),
91
93
  withComputeGraphDecorator({ plugins: testFunctionPlugins }),
92
94
  withTheme,
93
95
  ],
94
- render: (args: any) => <Story {...args} />,
95
- };
96
+ } satisfies Meta<typeof DefaultStory>;
96
97
 
97
98
  export default meta;
99
+
100
+ type Story = StoryObj<typeof meta>;
@@ -4,22 +4,23 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { type Meta } from '@storybook/react';
7
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
8
8
  import React from 'react';
9
9
 
10
10
  import { IntentPlugin } from '@dxos/app-framework';
11
11
  import { withPluginManager } from '@dxos/app-framework/testing';
12
12
  import { useSpace } from '@dxos/react-client/echo';
13
13
  import { withClientProvider } from '@dxos/react-client/testing';
14
- import { withTheme, withLayout } from '@dxos/storybook-utils';
14
+ import { withLayout, withTheme } from '@dxos/storybook-utils';
15
15
 
16
- import { GridSheet } from './GridSheet';
17
16
  import { createTestCells, useTestSheet, withComputeGraphDecorator } from '../../testing';
18
- import translations from '../../translations';
17
+ import { translations } from '../../translations';
19
18
  import { SheetType } from '../../types';
20
19
  import { useComputeGraph } from '../ComputeGraph';
21
20
  import { SheetProvider } from '../SheetContext';
22
21
 
22
+ import { GridSheet } from './GridSheet';
23
+
23
24
  export const Basic = () => {
24
25
  const space = useSpace();
25
26
  const graph = useComputeGraph(space);
@@ -35,7 +36,7 @@ export const Basic = () => {
35
36
  );
36
37
  };
37
38
 
38
- const meta: Meta = {
39
+ const meta = {
39
40
  title: 'plugins/plugin-sheet/GridSheet',
40
41
  component: GridSheet,
41
42
  decorators: [
@@ -48,6 +49,8 @@ const meta: Meta = {
48
49
  }),
49
50
  ],
50
51
  parameters: { translations },
51
- };
52
+ } satisfies Meta<typeof GridSheet>;
52
53
 
53
54
  export default meta;
55
+
56
+ type Story = StoryObj<typeof meta>;
@@ -3,42 +3,43 @@
3
3
  //
4
4
 
5
5
  import React, {
6
+ type FocusEvent,
7
+ type KeyboardEvent,
8
+ type MouseEvent,
9
+ type WheelEvent,
6
10
  useCallback,
7
11
  useMemo,
8
12
  useRef,
9
13
  useState,
10
- type FocusEvent,
11
- type KeyboardEvent,
12
- type WheelEvent,
13
- type MouseEvent,
14
14
  } from 'react';
15
15
 
16
16
  import { createIntent, useIntentDispatcher } from '@dxos/app-framework';
17
- import { rangeToA1Notation, type CellRange } from '@dxos/compute';
17
+ import { type CellRange, rangeToA1Notation } from '@dxos/compute';
18
18
  import { defaultColSize, defaultRowSize } from '@dxos/lit-grid';
19
19
  import { DropdownMenu, Icon, useTranslation } from '@dxos/react-ui';
20
20
  import { useAttention } from '@dxos/react-ui-attention';
21
21
  import {
22
- closestCell,
23
- editorKeys,
24
- parseCellIndex,
25
- Grid,
26
- GridCellEditor,
22
+ type DxGridCellIndex,
27
23
  type DxGridElement,
28
24
  type DxGridPosition,
29
- type DxGridCellIndex,
30
- type EditorKeyHandler,
31
25
  type EditorBlurHandler,
26
+ type EditorKeyHandler,
27
+ Grid,
28
+ GridCellEditor,
32
29
  type GridContentProps,
30
+ closestCell,
31
+ editorKeys,
32
+ parseCellIndex,
33
33
  } from '@dxos/react-ui-grid';
34
34
 
35
- import { colLabelCell, rowLabelCell, useSheetModelDxGridProps } from './util';
36
- import { rangeExtension, sheetExtension, type RangeController } from '../../extensions';
35
+ import { type RangeController, rangeExtension, sheetExtension } from '../../extensions';
37
36
  import { useSelectThreadOnCellFocus, useUpdateFocusedCellOnThreadSelection } from '../../integrations';
38
37
  import { SHEET_PLUGIN } from '../../meta';
39
38
  import { DEFAULT_COLS, DEFAULT_ROWS, SheetAction } from '../../types';
40
39
  import { useSheetContext } from '../SheetContext';
41
40
 
41
+ import { colLabelCell, rowLabelCell, useSheetModelDxGridProps } from './util';
42
+
42
43
  const inertPosition: DxGridPosition = { plane: 'grid', col: 0, row: 0 };
43
44
 
44
45
  const initialCells = {
@@ -59,11 +60,11 @@ const frozen = {
59
60
  };
60
61
 
61
62
  const sheetColDefault = {
62
- frozenColsStart: { size: 48, readonly: true },
63
+ frozenColsStart: { size: 48, readonly: true, focusUnfurl: false },
63
64
  grid: { size: defaultColSize, resizeable: true },
64
65
  };
65
66
  const sheetRowDefault = {
66
- frozenRowsStart: { size: defaultRowSize, readonly: true },
67
+ frozenRowsStart: { size: defaultRowSize, readonly: true, focusUnfurl: false },
67
68
  grid: { size: defaultRowSize, resizeable: true },
68
69
  };
69
70
 
@@ -278,7 +279,7 @@ export const GridSheet = () => {
278
279
 
279
280
  const { columns, rows } = useSheetModelDxGridProps(dxGrid, model);
280
281
 
281
- const extension = useMemo(
282
+ const extensions = useMemo(
282
283
  () => [
283
284
  editorKeys({ onClose: handleClose, ...(editing?.initialContent && { onNav: handleClose }) }),
284
285
  sheetExtension({ functions: model.graph.getFunctions() }),
@@ -308,7 +309,7 @@ export const GridSheet = () => {
308
309
  return (
309
310
  // TODO(thure): Why are Table’s and Sheet’s editor boxes off by 1px?
310
311
  <div role='none' className='relative min-bs-0 [&_.cm-editor]:!border-lb [&_.cm-editor]:!border-transparent '>
311
- <GridCellEditor getCellContent={getCellContent} extension={extension} onBlur={handleBlur} />
312
+ <GridCellEditor getCellContent={getCellContent} extensions={extensions} onBlur={handleBlur} />
312
313
  <Grid.Content
313
314
  initialCells={initialCells}
314
315
  limitColumns={DEFAULT_COLS}
@@ -4,51 +4,48 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { type Meta } from '@storybook/react';
8
- import React, { useEffect, useMemo, useState } from 'react';
7
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
8
+ import React, { useMemo, useState } from 'react';
9
9
 
10
10
  import { Client } from '@dxos/client';
11
11
  import { createDocAccessor } from '@dxos/client/echo';
12
12
  import { defaultFunctions } from '@dxos/compute';
13
13
  import { getRegisteredFunctionNames } from '@dxos/compute/testing';
14
+ import { useAsyncEffect } from '@dxos/react-hooks';
14
15
  import { automerge } from '@dxos/react-ui-editor';
15
16
  import { CellEditor, type CellEditorProps } from '@dxos/react-ui-grid';
16
17
  import { withTheme } from '@dxos/storybook-utils';
17
18
 
18
19
  import { sheetExtension } from '../../extensions';
19
- import { createSheet, SheetType } from '../../types';
20
+ import { SheetType, createSheet } from '../../types';
20
21
 
21
- type StoryProps = CellEditorProps;
22
-
23
- const Story = ({ value, ...props }: StoryProps) => {
24
- const extension = useMemo(() => {
22
+ const DefaultStory = ({ value, ...props }: CellEditorProps) => {
23
+ const extensions = useMemo(() => {
25
24
  const functionNames = getRegisteredFunctionNames();
26
25
  const functions = defaultFunctions.filter(({ name }) => functionNames.includes(name));
27
26
  return [sheetExtension({ functions })];
28
27
  }, []);
29
28
 
30
- return <CellEditor {...props} value={value} extension={extension} />;
29
+ return <CellEditor {...props} value={value} extensions={extensions} />;
31
30
  };
32
31
 
33
- const AutomergeStory = ({ value, ...props }: StoryProps) => {
32
+ const AutomergeStory = ({ value, ...props }: CellEditorProps) => {
34
33
  const cell = 'A1';
35
34
  const [object, setObject] = useState<SheetType>();
36
- useEffect(() => {
37
- setTimeout(async () => {
38
- const client = new Client({ types: [SheetType] });
39
- await client.initialize();
40
- await client.halo.createIdentity();
41
- const space = await client.spaces.create();
42
-
43
- const sheet = createSheet();
44
- sheet.name = 'Test';
45
- sheet.cells[cell] = { value };
46
- space.db.add(sheet);
47
- setObject(sheet);
48
- });
35
+ useAsyncEffect(async () => {
36
+ const client = new Client({ types: [SheetType] });
37
+ await client.initialize();
38
+ await client.halo.createIdentity();
39
+ const space = await client.spaces.create();
40
+
41
+ const sheet = createSheet();
42
+ sheet.name = 'Test';
43
+ sheet.cells[cell] = { value };
44
+ space.db.add(sheet);
45
+ setObject(sheet);
49
46
  }, [value]);
50
47
 
51
- const extension = useMemo(() => {
48
+ const extensions = useMemo(() => {
52
49
  if (!object) {
53
50
  return [];
54
51
  }
@@ -59,35 +56,37 @@ const AutomergeStory = ({ value, ...props }: StoryProps) => {
59
56
  return [automerge(accessor), sheetExtension({ functions })];
60
57
  }, [object]);
61
58
 
62
- return <CellEditor {...props} value={value} extension={extension} />;
59
+ return <CellEditor {...props} value={value} extensions={extensions} />;
63
60
  };
64
61
 
65
- export const Default = {};
62
+ const meta = {
63
+ title: 'plugins/plugin-sheet/CellEditor',
64
+ component: CellEditor,
65
+ render: DefaultStory,
66
+ decorators: [withTheme],
67
+ } satisfies Meta<typeof DefaultStory>;
68
+
69
+ export default meta;
70
+
71
+ type Story = StoryObj<typeof meta>;
72
+
73
+ export const Default: Story = {};
66
74
 
67
- export const AutoComplete = {
75
+ export const AutoComplete: Story = {
68
76
  args: {
69
77
  value: '=SUM',
70
78
  },
71
79
  };
72
80
 
73
- export const Formatting = {
81
+ export const Formatting: Story = {
74
82
  args: {
75
83
  value: '=SUM(A1:A2, 100, TRUE, "100", SUM(A1:A2, B1:B2))',
76
84
  },
77
85
  };
78
86
 
79
- export const Automerge = {
80
- render: (args: StoryProps) => <AutomergeStory {...args} />,
87
+ export const Automerge: Story = {
88
+ render: AutomergeStory,
81
89
  args: {
82
90
  value: '=SUM(A1:A2, 100, TRUE, "100", SUM(A1:A2, B1:B2))',
83
91
  },
84
92
  };
85
-
86
- const meta: Meta = {
87
- title: 'plugins/plugin-sheet/CellEditor',
88
- component: CellEditor,
89
- decorators: [withTheme],
90
- render: (args: StoryProps) => <Story {...args} />,
91
- };
92
-
93
- export default meta;
@@ -6,18 +6,18 @@ import { useEffect, useState } from 'react';
6
6
 
7
7
  import { inRange } from '@dxos/compute';
8
8
  import { createDocAccessor } from '@dxos/react-client/echo';
9
- import { parseValue, cellClassesForFieldType } from '@dxos/react-ui-form';
9
+ import { cellClassesForFieldType, parseValue } from '@dxos/react-ui-form';
10
10
  import {
11
- type GridContentProps,
12
- type DxGridElement,
13
11
  type DxGridAxisMeta,
12
+ type DxGridCellValue,
13
+ type DxGridElement,
14
14
  type DxGridPlane,
15
- type DxGridPlaneRange,
16
15
  type DxGridPlaneCells,
17
- type DxGridCellValue,
16
+ type DxGridPlaneRange,
17
+ type GridContentProps,
18
18
  colToA1Notation,
19
- rowToA1Notation,
20
19
  commentedClassName,
20
+ rowToA1Notation,
21
21
  } from '@dxos/react-ui-grid';
22
22
  import { mx } from '@dxos/react-ui-theme';
23
23