@dxos/plugin-sheet 0.8.4-main.67995b8 → 0.8.4-main.f5c0578

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 (113) hide show
  1. package/dist/lib/browser/{SheetContainer-KDGD4AVG.mjs → SheetContainer-JZNFXBW3.mjs} +5 -5
  2. package/dist/lib/browser/SheetContainer-JZNFXBW3.mjs.map +7 -0
  3. package/dist/lib/browser/{anchor-sort-VHURGBOY.mjs → anchor-sort-VRX3YZKT.mjs} +2 -2
  4. package/dist/lib/browser/{anchor-sort-VHURGBOY.mjs.map → anchor-sort-VRX3YZKT.mjs.map} +1 -1
  5. package/dist/lib/browser/{chunk-JUOVL3LE.mjs → chunk-BVTHIA5U.mjs} +187 -187
  6. package/dist/lib/browser/chunk-BVTHIA5U.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-SI4X5GUR.mjs → chunk-ELAASQ5H.mjs} +9 -2
  8. package/dist/lib/browser/chunk-ELAASQ5H.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-7HQX4NQP.mjs → chunk-VTTKAHAY.mjs} +1 -1
  10. package/dist/lib/browser/{chunk-7HQX4NQP.mjs.map → chunk-VTTKAHAY.mjs.map} +2 -2
  11. package/dist/lib/browser/{compute-graph-registry-VG7VP7IV.mjs → compute-graph-registry-6YJHXORG.mjs} +1 -1
  12. package/dist/lib/{node-esm/compute-graph-registry-3K3Q2A5T.mjs.map → browser/compute-graph-registry-6YJHXORG.mjs.map} +2 -2
  13. package/dist/lib/browser/index.mjs +7 -7
  14. package/dist/lib/browser/index.mjs.map +3 -3
  15. package/dist/lib/browser/{intent-resolver-WOJGZMSV.mjs → intent-resolver-SSLPTP5O.mjs} +3 -3
  16. package/dist/lib/browser/{intent-resolver-WOJGZMSV.mjs.map → intent-resolver-SSLPTP5O.mjs.map} +3 -3
  17. package/dist/lib/browser/{markdown-VXMIPUQC.mjs → markdown-3VPZYNGU.mjs} +2 -2
  18. package/dist/lib/browser/markdown-3VPZYNGU.mjs.map +7 -0
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/{react-surface-SE4HGAEH.mjs → react-surface-Y7KTPJW2.mjs} +4 -4
  21. package/dist/lib/browser/{react-surface-SE4HGAEH.mjs.map → react-surface-Y7KTPJW2.mjs.map} +2 -2
  22. package/dist/lib/browser/types/index.mjs +1 -1
  23. package/dist/lib/node-esm/{SheetContainer-RMG24NZC.mjs → SheetContainer-GOIBAE2P.mjs} +5 -5
  24. package/dist/lib/node-esm/SheetContainer-GOIBAE2P.mjs.map +7 -0
  25. package/dist/lib/node-esm/{anchor-sort-CTJGOPET.mjs → anchor-sort-YM2UBIKL.mjs} +2 -2
  26. package/dist/lib/node-esm/{anchor-sort-CTJGOPET.mjs.map → anchor-sort-YM2UBIKL.mjs.map} +1 -1
  27. package/dist/lib/node-esm/{chunk-CADTJFAS.mjs → chunk-4L5CIB7E.mjs} +9 -2
  28. package/dist/lib/node-esm/chunk-4L5CIB7E.mjs.map +7 -0
  29. package/dist/lib/node-esm/{chunk-IFMIRCZH.mjs → chunk-56HYMW55.mjs} +187 -187
  30. package/dist/lib/node-esm/chunk-56HYMW55.mjs.map +7 -0
  31. package/dist/lib/node-esm/{chunk-Q6UYC4G5.mjs → chunk-FXRXBHWM.mjs} +1 -1
  32. package/dist/lib/node-esm/{chunk-Q6UYC4G5.mjs.map → chunk-FXRXBHWM.mjs.map} +2 -2
  33. package/dist/lib/node-esm/{compute-graph-registry-3K3Q2A5T.mjs → compute-graph-registry-ET5KJNLV.mjs} +1 -1
  34. package/dist/lib/{browser/compute-graph-registry-VG7VP7IV.mjs.map → node-esm/compute-graph-registry-ET5KJNLV.mjs.map} +2 -2
  35. package/dist/lib/node-esm/index.mjs +7 -7
  36. package/dist/lib/node-esm/index.mjs.map +3 -3
  37. package/dist/lib/node-esm/{intent-resolver-PZRXBNIJ.mjs → intent-resolver-5P6DBGK2.mjs} +3 -3
  38. package/dist/lib/node-esm/{intent-resolver-PZRXBNIJ.mjs.map → intent-resolver-5P6DBGK2.mjs.map} +3 -3
  39. package/dist/lib/node-esm/{markdown-4VPQJZNZ.mjs → markdown-SFDGQWYE.mjs} +2 -2
  40. package/dist/lib/node-esm/markdown-SFDGQWYE.mjs.map +7 -0
  41. package/dist/lib/node-esm/meta.json +1 -1
  42. package/dist/lib/node-esm/{react-surface-LAU23XBH.mjs → react-surface-6Z5FAOBH.mjs} +4 -4
  43. package/dist/lib/node-esm/{react-surface-LAU23XBH.mjs.map → react-surface-6Z5FAOBH.mjs.map} +2 -2
  44. package/dist/lib/node-esm/types/index.mjs +1 -1
  45. package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  48. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  49. package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
  50. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
  51. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
  52. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/GridSheet/util.d.ts +1 -1
  54. package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
  55. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
  56. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
  57. package/dist/types/src/components/SheetContext/SheetContext.d.ts +1 -1
  58. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
  59. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
  60. package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
  61. package/dist/types/src/components/SheetToolbar/align.d.ts +2 -2
  62. package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
  63. package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
  64. package/dist/types/src/extensions/compute.d.ts.map +1 -1
  65. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  66. package/dist/types/src/model/sheet-model.d.ts +1 -1
  67. package/dist/types/src/model/sheet-model.d.ts.map +1 -1
  68. package/dist/types/src/playwright/sheet-manager.d.ts +1 -1
  69. package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -1
  70. package/dist/types/src/testing/testing.d.ts.map +1 -1
  71. package/dist/types/src/types/types.d.ts +1 -1
  72. package/dist/types/src/types/types.d.ts.map +1 -1
  73. package/dist/types/src/types/util.d.ts.map +1 -1
  74. package/dist/types/tsconfig.tsbuildinfo +1 -1
  75. package/package.json +53 -53
  76. package/src/SheetPlugin.tsx +2 -2
  77. package/src/capabilities/anchor-sort.ts +1 -1
  78. package/src/capabilities/compute-graph-registry.ts +1 -1
  79. package/src/capabilities/intent-resolver.ts +2 -2
  80. package/src/capabilities/markdown.ts +3 -2
  81. package/src/capabilities/react-surface.tsx +2 -1
  82. package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -1
  83. package/src/components/ComputeGraph/compute-graph.stories.tsx +5 -4
  84. package/src/components/GridSheet/GridSheet.stories.tsx +3 -2
  85. package/src/components/GridSheet/GridSheet.tsx +15 -14
  86. package/src/components/GridSheet/SheetCellEditor.stories.tsx +1 -1
  87. package/src/components/GridSheet/util.ts +6 -6
  88. package/src/components/SheetContainer/SheetContainer.stories.tsx +4 -3
  89. package/src/components/SheetContainer/SheetContainer.tsx +1 -1
  90. package/src/components/SheetContext/SheetContext.tsx +1 -1
  91. package/src/components/SheetToolbar/SheetToolbar.stories.tsx +2 -1
  92. package/src/components/SheetToolbar/SheetToolbar.tsx +5 -4
  93. package/src/components/SheetToolbar/align.ts +4 -3
  94. package/src/components/SheetToolbar/style.ts +2 -2
  95. package/src/extensions/compute.stories.tsx +3 -2
  96. package/src/extensions/compute.ts +1 -1
  97. package/src/integrations/thread-ranges.ts +4 -4
  98. package/src/model/sheet-model.test.ts +2 -1
  99. package/src/model/sheet-model.ts +6 -6
  100. package/src/playwright/sheet-manager.ts +1 -1
  101. package/src/playwright/sheet.spec.ts +1 -1
  102. package/src/sanity.test.ts +1 -1
  103. package/src/testing/testing.tsx +1 -1
  104. package/src/types/types.ts +2 -1
  105. package/src/types/util.ts +3 -3
  106. package/dist/lib/browser/SheetContainer-KDGD4AVG.mjs.map +0 -7
  107. package/dist/lib/browser/chunk-JUOVL3LE.mjs.map +0 -7
  108. package/dist/lib/browser/chunk-SI4X5GUR.mjs.map +0 -7
  109. package/dist/lib/browser/markdown-VXMIPUQC.mjs.map +0 -7
  110. package/dist/lib/node-esm/SheetContainer-RMG24NZC.mjs.map +0 -7
  111. package/dist/lib/node-esm/chunk-CADTJFAS.mjs.map +0 -7
  112. package/dist/lib/node-esm/chunk-IFMIRCZH.mjs.map +0 -7
  113. package/dist/lib/node-esm/markdown-4VPQJZNZ.mjs.map +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-sheet",
3
- "version": "0.8.4-main.67995b8",
3
+ "version": "0.8.4-main.f5c0578",
4
4
  "description": "Braneframe sketch plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,16 +10,16 @@
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
- "node": "./dist/lib/node-esm/index.mjs",
16
- "source": "./src/index.ts"
16
+ "node": "./dist/lib/node-esm/index.mjs"
17
17
  },
18
18
  "./types": {
19
+ "source": "./src/types/index.ts",
19
20
  "types": "./dist/types/src/types/index.d.ts",
20
21
  "browser": "./dist/lib/browser/types/index.mjs",
21
- "node": "./dist/lib/node-esm/types/index.mjs",
22
- "source": "./src/types/index.ts"
22
+ "node": "./dist/lib/node-esm/types/index.mjs"
23
23
  }
24
24
  },
25
25
  "types": "dist/types/src/index.d.ts",
@@ -56,64 +56,64 @@
56
56
  "re-resizable": "^6.9.17",
57
57
  "react-markdown": "^8.0.5",
58
58
  "react-resize-detector": "^11.0.1",
59
- "@dxos/app-framework": "0.8.4-main.67995b8",
60
- "@dxos/async": "0.8.4-main.67995b8",
61
- "@dxos/client": "0.8.4-main.67995b8",
62
- "@dxos/compute": "0.8.4-main.67995b8",
63
- "@dxos/context": "0.8.4-main.67995b8",
64
- "@dxos/debug": "0.8.4-main.67995b8",
65
- "@dxos/echo": "0.8.4-main.67995b8",
66
- "@dxos/crypto": "0.8.4-main.67995b8",
67
- "@dxos/echo-schema": "0.8.4-main.67995b8",
68
- "@dxos/functions": "0.8.4-main.67995b8",
69
- "@dxos/invariant": "0.8.4-main.67995b8",
70
- "@dxos/keys": "0.8.4-main.67995b8",
71
- "@dxos/lit-grid": "0.8.4-main.67995b8",
72
- "@dxos/live-object": "0.8.4-main.67995b8",
73
- "@dxos/log": "0.8.4-main.67995b8",
74
- "@dxos/plugin-attention": "0.8.4-main.67995b8",
75
- "@dxos/plugin-client": "0.8.4-main.67995b8",
76
- "@dxos/plugin-graph": "0.8.4-main.67995b8",
77
- "@dxos/plugin-deck": "0.8.4-main.67995b8",
78
- "@dxos/plugin-markdown": "0.8.4-main.67995b8",
79
- "@dxos/plugin-script": "0.8.4-main.67995b8",
80
- "@dxos/plugin-space": "0.8.4-main.67995b8",
81
- "@dxos/plugin-stack": "0.8.4-main.67995b8",
82
- "@dxos/plugin-thread": "0.8.4-main.67995b8",
83
- "@dxos/react-client": "0.8.4-main.67995b8",
84
- "@dxos/react-hooks": "0.8.4-main.67995b8",
85
- "@dxos/react-ui-editor": "0.8.4-main.67995b8",
86
- "@dxos/react-ui-attention": "0.8.4-main.67995b8",
87
- "@dxos/react-ui-form": "0.8.4-main.67995b8",
88
- "@dxos/react-ui-grid": "0.8.4-main.67995b8",
89
- "@dxos/react-ui-list": "0.8.4-main.67995b8",
90
- "@dxos/react-ui-menu": "0.8.4-main.67995b8",
91
- "@dxos/react-ui-stack": "0.8.4-main.67995b8",
92
- "@dxos/schema": "0.8.4-main.67995b8",
93
- "@dxos/util": "0.8.4-main.67995b8"
59
+ "@dxos/app-framework": "0.8.4-main.f5c0578",
60
+ "@dxos/async": "0.8.4-main.f5c0578",
61
+ "@dxos/client": "0.8.4-main.f5c0578",
62
+ "@dxos/compute": "0.8.4-main.f5c0578",
63
+ "@dxos/context": "0.8.4-main.f5c0578",
64
+ "@dxos/crypto": "0.8.4-main.f5c0578",
65
+ "@dxos/debug": "0.8.4-main.f5c0578",
66
+ "@dxos/echo": "0.8.4-main.f5c0578",
67
+ "@dxos/echo-schema": "0.8.4-main.f5c0578",
68
+ "@dxos/functions": "0.8.4-main.f5c0578",
69
+ "@dxos/invariant": "0.8.4-main.f5c0578",
70
+ "@dxos/keys": "0.8.4-main.f5c0578",
71
+ "@dxos/live-object": "0.8.4-main.f5c0578",
72
+ "@dxos/log": "0.8.4-main.f5c0578",
73
+ "@dxos/plugin-attention": "0.8.4-main.f5c0578",
74
+ "@dxos/lit-grid": "0.8.4-main.f5c0578",
75
+ "@dxos/plugin-client": "0.8.4-main.f5c0578",
76
+ "@dxos/plugin-deck": "0.8.4-main.f5c0578",
77
+ "@dxos/plugin-graph": "0.8.4-main.f5c0578",
78
+ "@dxos/plugin-markdown": "0.8.4-main.f5c0578",
79
+ "@dxos/plugin-script": "0.8.4-main.f5c0578",
80
+ "@dxos/plugin-space": "0.8.4-main.f5c0578",
81
+ "@dxos/plugin-stack": "0.8.4-main.f5c0578",
82
+ "@dxos/plugin-thread": "0.8.4-main.f5c0578",
83
+ "@dxos/react-client": "0.8.4-main.f5c0578",
84
+ "@dxos/react-ui-editor": "0.8.4-main.f5c0578",
85
+ "@dxos/react-ui-form": "0.8.4-main.f5c0578",
86
+ "@dxos/react-ui-attention": "0.8.4-main.f5c0578",
87
+ "@dxos/react-ui-grid": "0.8.4-main.f5c0578",
88
+ "@dxos/react-ui-list": "0.8.4-main.f5c0578",
89
+ "@dxos/react-ui-menu": "0.8.4-main.f5c0578",
90
+ "@dxos/react-ui-stack": "0.8.4-main.f5c0578",
91
+ "@dxos/schema": "0.8.4-main.f5c0578",
92
+ "@dxos/util": "0.8.4-main.f5c0578",
93
+ "@dxos/react-hooks": "0.8.4-main.f5c0578"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@effect-rx/rx-react": "0.38.0",
97
- "@effect/platform": "0.89.0",
97
+ "@effect/platform": "0.90.2",
98
98
  "@lezer/generator": "^1.7.1",
99
99
  "@tldraw/indices": "^2.0.0-alpha.14",
100
100
  "@types/lodash.defaultsdeep": "^4.6.6",
101
101
  "@types/react": "~18.2.0",
102
102
  "@types/react-dom": "~18.2.0",
103
103
  "@types/react-window": "^1.8.8",
104
- "effect": "3.17.0",
104
+ "effect": "3.17.7",
105
105
  "react": "~18.2.0",
106
106
  "react-dom": "~18.2.0",
107
107
  "vite": "5.4.7",
108
- "@dxos/echo-generator": "0.8.4-main.67995b8",
109
- "@dxos/lit-grid": "0.8.4-main.67995b8",
110
- "@dxos/random": "0.8.4-main.67995b8",
111
- "@dxos/react-ui": "0.8.4-main.67995b8",
112
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.67995b8",
113
- "@dxos/react-ui-types": "0.8.4-main.67995b8",
114
- "@dxos/react-ui-theme": "0.8.4-main.67995b8",
115
- "@dxos/storybook-utils": "0.8.4-main.67995b8",
116
- "@dxos/test-utils": "0.8.4-main.67995b8"
108
+ "@dxos/lit-grid": "0.8.4-main.f5c0578",
109
+ "@dxos/echo-generator": "0.8.4-main.f5c0578",
110
+ "@dxos/random": "0.8.4-main.f5c0578",
111
+ "@dxos/react-ui": "0.8.4-main.f5c0578",
112
+ "@dxos/react-ui-theme": "0.8.4-main.f5c0578",
113
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.f5c0578",
114
+ "@dxos/react-ui-types": "0.8.4-main.f5c0578",
115
+ "@dxos/storybook-utils": "0.8.4-main.f5c0578",
116
+ "@dxos/test-utils": "0.8.4-main.f5c0578"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "@effect-rx/rx-react": "^0.34.1",
@@ -121,8 +121,8 @@
121
121
  "effect": "^3.13.3",
122
122
  "react": "~18.2.0",
123
123
  "react-dom": "~18.2.0",
124
- "@dxos/react-ui": "0.8.4-main.67995b8",
125
- "@dxos/react-ui-theme": "0.8.4-main.67995b8"
124
+ "@dxos/react-ui": "0.8.4-main.f5c0578",
125
+ "@dxos/react-ui-theme": "0.8.4-main.f5c0578"
126
126
  },
127
127
  "publishConfig": {
128
128
  "access": "public"
@@ -2,13 +2,13 @@
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
14
  import { translations } from './translations';
@@ -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';
@@ -8,18 +8,19 @@ import { type Meta } 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
 
@@ -11,15 +11,16 @@ 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
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);
@@ -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 = {
@@ -16,7 +16,7 @@ import { CellEditor, type CellEditorProps } from '@dxos/react-ui-grid';
16
16
  import { withTheme } from '@dxos/storybook-utils';
17
17
 
18
18
  import { sheetExtension } from '../../extensions';
19
- import { createSheet, SheetType } from '../../types';
19
+ import { SheetType, createSheet } from '../../types';
20
20
 
21
21
  type StoryProps = CellEditorProps;
22
22
 
@@ -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
 
@@ -7,22 +7,23 @@ import '@dxos-theme';
7
7
  import { type Meta } from '@storybook/react-vite';
8
8
  import React from 'react';
9
9
 
10
- import { Capabilities, contributes, createResolver, IntentPlugin } from '@dxos/app-framework';
10
+ import { Capabilities, IntentPlugin, contributes, createResolver } from '@dxos/app-framework';
11
11
  import { withPluginManager } from '@dxos/app-framework/testing';
12
12
  import { GraphPlugin } from '@dxos/plugin-graph';
13
13
  import { fullyQualifiedId, useSpace } from '@dxos/react-client/echo';
14
14
  import { withClientProvider } from '@dxos/react-client/testing';
15
15
  import { AttendableContainer } from '@dxos/react-ui-attention';
16
16
  import { withAttention } from '@dxos/react-ui-attention/testing';
17
- import { withTheme, withLayout } from '@dxos/storybook-utils';
17
+ import { withLayout, withTheme } from '@dxos/storybook-utils';
18
18
 
19
- import { SheetContainer } from './SheetContainer';
20
19
  import { createTestCells, useTestSheet, withComputeGraphDecorator } from '../../testing';
21
20
  import { translations } from '../../translations';
22
21
  import { SheetAction, SheetType } from '../../types';
23
22
  import { useComputeGraph } from '../ComputeGraph';
24
23
  import { RangeList } from '../RangeList';
25
24
 
25
+ import { SheetContainer } from './SheetContainer';
26
+
26
27
  export const Basic = () => {
27
28
  const space = useSpace();
28
29
  const graph = useComputeGraph(space);
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React from 'react';
6
6
 
7
- import { fullyQualifiedId, type Space } from '@dxos/react-client/echo';
7
+ import { type Space, fullyQualifiedId } from '@dxos/react-client/echo';
8
8
  import { StackItem } from '@dxos/react-ui-stack';
9
9
 
10
10
  import { type SheetType } from '../../types';
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React, { type PropsWithChildren, createContext, useCallback, useContext, useState } from 'react';
6
6
 
7
- import { type ComputeGraph, type CellAddress, type CellRange, type CompleteCellRange } from '@dxos/compute';
7
+ import { type CellAddress, type CellRange, type CompleteCellRange, type ComputeGraph } from '@dxos/compute';
8
8
  import { invariant } from '@dxos/invariant';
9
9
  import { fullyQualifiedId } from '@dxos/react-client/echo';
10
10
  import {
@@ -9,9 +9,10 @@ import React from 'react';
9
9
 
10
10
  import { withLayout, withTheme } from '@dxos/storybook-utils';
11
11
 
12
- import { SheetToolbar } from './SheetToolbar';
13
12
  import { translations } from '../../translations';
14
13
 
14
+ import { SheetToolbar } from './SheetToolbar';
15
+
15
16
  const DefaultStory = () => {
16
17
  return <SheetToolbar id='test' />;
17
18
  };
@@ -12,18 +12,19 @@ import {
12
12
  type ActionGraphEdges,
13
13
  type ActionGraphNodes,
14
14
  type ActionGraphProps,
15
- createGapSeparator,
16
15
  MenuProvider,
17
- rxFromSignal,
18
16
  ToolbarMenu,
17
+ createGapSeparator,
18
+ rxFromSignal,
19
19
  useMenuActions,
20
20
  } from '@dxos/react-ui-menu';
21
21
 
22
+ import { type SheetModel } from '../../model';
23
+ import { useSheetContext } from '../SheetContext';
24
+
22
25
  import { createAlign, useAlignState } from './align';
23
26
  import { createStyle, useStyleState } from './style';
24
27
  import { type ToolbarState, useToolbarState } from './useToolbarState';
25
- import { type SheetModel } from '../../model';
26
- import { useSheetContext } from '../SheetContext';
27
28
 
28
29
  //
29
30
  // Root
@@ -5,14 +5,15 @@
5
5
  import { useEffect } from 'react';
6
6
 
7
7
  import { type CompleteCellRange, inRange } from '@dxos/compute';
8
- import { createMenuAction, createMenuItemGroup, type ToolbarMenuActionGroupProperties } from '@dxos/react-ui-menu';
8
+ import { type ToolbarMenuActionGroupProperties, createMenuAction, createMenuItemGroup } from '@dxos/react-ui-menu';
9
9
 
10
- import { type ToolbarState } from './useToolbarState';
11
10
  import { SHEET_PLUGIN } from '../../meta';
12
11
  import { type SheetModel } from '../../model';
13
- import { type AlignKey, alignKey, type AlignValue, rangeFromIndex, rangeToIndex } from '../../types';
12
+ import { type AlignKey, type AlignValue, alignKey, rangeFromIndex, rangeToIndex } from '../../types';
14
13
  import { useSheetContext } from '../SheetContext';
15
14
 
15
+ import { type ToolbarState } from './useToolbarState';
16
+
16
17
  export type AlignAction = { key: AlignKey; value: AlignValue };
17
18
 
18
19
  export type AlignState = { [alignKey]: AlignValue | undefined };
@@ -5,11 +5,11 @@
5
5
  import { useEffect } from 'react';
6
6
 
7
7
  import { type CompleteCellRange, inRange } from '@dxos/compute';
8
- import { createMenuAction, createMenuItemGroup, type ToolbarMenuActionGroupProperties } from '@dxos/react-ui-menu';
8
+ import { type ToolbarMenuActionGroupProperties, createMenuAction, createMenuItemGroup } from '@dxos/react-ui-menu';
9
9
 
10
10
  import { SHEET_PLUGIN } from '../../meta';
11
11
  import { type SheetModel } from '../../model';
12
- import { rangeFromIndex, rangeToIndex, type StyleKey, type StyleValue } from '../../types';
12
+ import { type StyleKey, type StyleValue, rangeFromIndex, rangeToIndex } from '../../types';
13
13
  import { useSheetContext } from '../SheetContext';
14
14
 
15
15
  export type StyleState = Partial<Record<StyleValue, boolean>>;
@@ -19,15 +19,16 @@ import {
19
19
  documentId,
20
20
  useTextEditor,
21
21
  } from '@dxos/react-ui-editor';
22
- import { withTheme, withLayout } from '@dxos/storybook-utils';
22
+ import { withLayout, withTheme } from '@dxos/storybook-utils';
23
23
  import { isNonNullable } from '@dxos/util';
24
24
 
25
- import { compute, computeGraphFacet } from './compute';
26
25
  import { GridSheet, SheetProvider, useComputeGraph } from '../components';
27
26
  import { useSheetModel } from '../model';
28
27
  import { useTestSheet, withComputeGraphDecorator } from '../testing';
29
28
  import { SheetType } from '../types';
30
29
 
30
+ import { compute, computeGraphFacet } from './compute';
31
+
31
32
  const str = (...lines: string[]) => lines.join('\n');
32
33
 
33
34
  type EditorProps = {
@@ -16,11 +16,11 @@ import { Decoration, EditorView, ViewPlugin, WidgetType } from '@codemirror/view
16
16
 
17
17
  import { type CleanupFn, debounce } from '@dxos/async';
18
18
  import {
19
- createSheetName,
20
19
  type CellAddress,
21
20
  type CellScalarValue,
22
21
  type ComputeGraph,
23
22
  type ComputeNode,
23
+ createSheetName,
24
24
  } from '@dxos/compute';
25
25
  import { invariant } from '@dxos/invariant';
26
26
  import { documentId, singleValueFacet } from '@dxos/react-ui-editor';
@@ -6,19 +6,19 @@ import { Schema, pipe } from 'effect';
6
6
  import { useCallback, useEffect, useMemo } from 'react';
7
7
 
8
8
  import {
9
+ LayoutAction,
10
+ chain,
9
11
  createIntent,
10
12
  createResolver,
11
- LayoutAction,
12
- useIntentResolver,
13
13
  useIntentDispatcher,
14
- chain,
14
+ useIntentResolver,
15
15
  } from '@dxos/app-framework';
16
16
  import { debounce } from '@dxos/async';
17
17
  import { type CellAddress, type CompleteCellRange, inRange } from '@dxos/compute';
18
18
  import { Obj, Relation } from '@dxos/echo';
19
19
  import { ATTENDABLE_PATH_SEPARATOR, DeckAction } from '@dxos/plugin-deck/types';
20
20
  import { ThreadAction, ThreadType } from '@dxos/plugin-thread/types';
21
- import { Filter, fullyQualifiedId, getSpace, Query, useQuery } from '@dxos/react-client/echo';
21
+ import { Filter, Query, fullyQualifiedId, getSpace, useQuery } from '@dxos/react-client/echo';
22
22
  import { type DxGridElement, type GridContentProps } from '@dxos/react-ui-grid';
23
23
  import { AnchoredTo } from '@dxos/schema';
24
24
 
@@ -10,9 +10,10 @@ import { TestBuilder, testFunctionPlugins } from '@dxos/compute/testing';
10
10
  import { FunctionType } from '@dxos/functions';
11
11
  import { log } from '@dxos/log';
12
12
 
13
+ import { createSheet, mapFormulaIndicesToRefs, mapFormulaRefsToIndices } from '../types';
14
+
13
15
  import { SheetModel } from './sheet-model';
14
16
  import { createTestGrid } from './testing';
15
- import { createSheet, mapFormulaIndicesToRefs, mapFormulaRefsToIndices } from '../types';
16
17
 
17
18
  describe('SheetModel', () => {
18
19
  let testBuilder: TestBuilder;
@@ -4,10 +4,6 @@
4
4
 
5
5
  import { Event } from '@dxos/async';
6
6
  import {
7
- addressFromA1Notation,
8
- addressToA1Notation,
9
- createSheetName,
10
- isFormula,
11
7
  type CellAddress,
12
8
  type CellRange,
13
9
  type CellScalarValue,
@@ -16,10 +12,14 @@ import {
16
12
  type ComputeNodeEvent,
17
13
  DetailedCellError,
18
14
  ExportedCellChange,
19
- type SimpleCellRange,
20
15
  type SimpleCellAddress,
16
+ type SimpleCellRange,
21
17
  type SimpleDate,
22
18
  type SimpleDateTime,
19
+ addressFromA1Notation,
20
+ addressToA1Notation,
21
+ createSheetName,
22
+ isFormula,
23
23
  } from '@dxos/compute';
24
24
  import { Resource } from '@dxos/context';
25
25
  import { Obj } from '@dxos/echo';
@@ -39,7 +39,7 @@ import {
39
39
  mapFormulaIndicesToRefs,
40
40
  mapFormulaRefsToIndices,
41
41
  } from '../types';
42
- import { type SheetAction, type CellValue, type SheetType } from '../types';
42
+ import { type CellValue, type SheetAction, type SheetType } from '../types';
43
43
 
44
44
  // TODO(burdon): Move to compute.
45
45
  // Map sheet types to system types.
@@ -5,7 +5,7 @@
5
5
  import { type Locator, type Page } from '@playwright/test';
6
6
 
7
7
  import { DxGridManager } from '@dxos/lit-grid/testing';
8
- import { type DxGridPosition, type DxGridAxis } from '@dxos/react-ui-grid';
8
+ import { type DxGridAxis, type DxGridPosition } from '@dxos/react-ui-grid';
9
9
 
10
10
  /**
11
11
  * Test helper for managing dx-grid interactions and assertions in Playwright tests.
@@ -2,7 +2,7 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import { expect, test, type Page } from '@playwright/test';
5
+ import { type Page, expect, test } from '@playwright/test';
6
6
 
7
7
  import { faker } from '@dxos/random';
8
8
  import { setupPage, storybookUrl } from '@dxos/test-utils/playwright';