@dxos/plugin-sheet 0.8.3 → 0.8.4-main.28f8d3d
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.
- package/dist/lib/browser/{SheetContainer-BDZXBB5U.mjs → SheetContainer-JZNFXBW3.mjs} +15 -15
- package/dist/lib/browser/SheetContainer-JZNFXBW3.mjs.map +7 -0
- package/dist/lib/browser/{anchor-sort-NYYZLRAA.mjs → anchor-sort-VRX3YZKT.mjs} +4 -4
- package/dist/lib/browser/{anchor-sort-NYYZLRAA.mjs.map → anchor-sort-VRX3YZKT.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-D3G4UGEK.mjs → chunk-6AKBCBL4.mjs} +2 -2
- package/dist/lib/browser/{chunk-5TA43LO4.mjs → chunk-BVTHIA5U.mjs} +197 -197
- package/dist/lib/browser/chunk-BVTHIA5U.mjs.map +7 -0
- package/dist/lib/browser/{chunk-I7FZ4TWJ.mjs → chunk-ELAASQ5H.mjs} +19 -12
- package/dist/lib/browser/chunk-ELAASQ5H.mjs.map +7 -0
- package/dist/lib/browser/{chunk-IR42IS3F.mjs → chunk-KJWZUQVA.mjs} +3 -3
- package/dist/lib/browser/{chunk-FJRLDX7Z.mjs → chunk-VTTKAHAY.mjs} +3 -3
- package/dist/lib/browser/{chunk-FJRLDX7Z.mjs.map → chunk-VTTKAHAY.mjs.map} +2 -2
- package/dist/lib/browser/{compute-graph-registry-IXGGJJBU.mjs → compute-graph-registry-6YJHXORG.mjs} +4 -4
- package/dist/lib/{node-esm/compute-graph-registry-7PDWXMHF.mjs.map → browser/compute-graph-registry-6YJHXORG.mjs.map} +2 -2
- package/dist/lib/browser/index.mjs +21 -20
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-IBBI6B74.mjs → intent-resolver-SSLPTP5O.mjs} +5 -5
- package/dist/lib/browser/{intent-resolver-IBBI6B74.mjs.map → intent-resolver-SSLPTP5O.mjs.map} +3 -3
- package/dist/lib/browser/{markdown-T4TUP4BF.mjs → markdown-3VPZYNGU.mjs} +5 -5
- package/dist/lib/browser/markdown-3VPZYNGU.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-UI46P43F.mjs → react-surface-Y7KTPJW2.mjs} +7 -7
- package/dist/lib/browser/{react-surface-UI46P43F.mjs.map → react-surface-Y7KTPJW2.mjs.map} +2 -2
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node-esm/{SheetContainer-V632Q4HA.mjs → SheetContainer-GOIBAE2P.mjs} +15 -15
- package/dist/lib/node-esm/SheetContainer-GOIBAE2P.mjs.map +7 -0
- package/dist/lib/node-esm/{anchor-sort-JTNZOE67.mjs → anchor-sort-YM2UBIKL.mjs} +4 -4
- package/dist/lib/node-esm/{anchor-sort-JTNZOE67.mjs.map → anchor-sort-YM2UBIKL.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-Y6ND5HWX.mjs → chunk-3K5VNYOF.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-C4IKYVTV.mjs → chunk-4L5CIB7E.mjs} +19 -12
- package/dist/lib/node-esm/chunk-4L5CIB7E.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SOC52B67.mjs → chunk-56HYMW55.mjs} +197 -197
- package/dist/lib/node-esm/chunk-56HYMW55.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IQ76YE6M.mjs → chunk-6SK5LJ5S.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-NMCVJWDT.mjs → chunk-FXRXBHWM.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-NMCVJWDT.mjs.map → chunk-FXRXBHWM.mjs.map} +2 -2
- package/dist/lib/node-esm/{compute-graph-registry-7PDWXMHF.mjs → compute-graph-registry-ET5KJNLV.mjs} +4 -4
- package/dist/lib/{browser/compute-graph-registry-IXGGJJBU.mjs.map → node-esm/compute-graph-registry-ET5KJNLV.mjs.map} +2 -2
- package/dist/lib/node-esm/index.mjs +21 -20
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-M2HNR7PJ.mjs → intent-resolver-5P6DBGK2.mjs} +5 -5
- package/dist/lib/node-esm/{intent-resolver-M2HNR7PJ.mjs.map → intent-resolver-5P6DBGK2.mjs.map} +3 -3
- package/dist/lib/node-esm/{markdown-WWUJ3E5F.mjs → markdown-SFDGQWYE.mjs} +5 -5
- package/dist/lib/node-esm/markdown-SFDGQWYE.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-OLXO2MVB.mjs → react-surface-6Z5FAOBH.mjs} +7 -7
- package/dist/lib/node-esm/{react-surface-OLXO2MVB.mjs.map → react-surface-6Z5FAOBH.mjs.map} +2 -2
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts +1 -1
- package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/util.d.ts +1 -1
- package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +1 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/align.d.ts +2 -2
- package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
- package/dist/types/src/extensions/compute.d.ts.map +1 -1
- package/dist/types/src/extensions/compute.stories.d.ts +1 -1
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts +1 -1
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/playwright/playwright.config.d.ts +3 -0
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
- package/dist/types/src/{testing/playwright → playwright}/sheet-manager.d.ts +1 -1
- package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -0
- package/dist/types/src/playwright/sheet.spec.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +7 -62
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +1 -1
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/types/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +54 -52
- package/src/SheetPlugin.tsx +3 -3
- package/src/capabilities/anchor-sort.ts +1 -1
- package/src/capabilities/compute-graph-registry.ts +1 -1
- package/src/capabilities/intent-resolver.ts +2 -2
- package/src/capabilities/markdown.ts +3 -2
- package/src/capabilities/react-surface.tsx +2 -1
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -1
- package/src/components/ComputeGraph/compute-graph.stories.tsx +6 -5
- package/src/components/GridSheet/GridSheet.stories.tsx +5 -4
- package/src/components/GridSheet/GridSheet.tsx +15 -14
- package/src/components/GridSheet/SheetCellEditor.stories.tsx +2 -2
- package/src/components/GridSheet/util.ts +6 -6
- package/src/components/SheetContainer/SheetContainer.stories.tsx +6 -5
- package/src/components/SheetContainer/SheetContainer.tsx +1 -1
- package/src/components/SheetContext/SheetContext.tsx +1 -1
- package/src/components/SheetToolbar/SheetToolbar.stories.tsx +3 -2
- package/src/components/SheetToolbar/SheetToolbar.tsx +5 -4
- package/src/components/SheetToolbar/align.ts +4 -3
- package/src/components/SheetToolbar/style.ts +2 -2
- package/src/extensions/compute.stories.tsx +4 -3
- package/src/extensions/compute.ts +1 -1
- package/src/integrations/thread-ranges.ts +7 -6
- package/src/model/sheet-model.test.ts +2 -1
- package/src/model/sheet-model.ts +6 -6
- package/src/playwright/playwright.config.ts +17 -0
- package/src/{testing/playwright → playwright}/sheet-manager.ts +1 -1
- package/src/{testing/playwright → playwright}/sheet.spec.ts +2 -2
- package/src/sanity.test.ts +1 -1
- package/src/testing/testing.tsx +1 -1
- package/src/translations.ts +8 -6
- package/src/types/schema.ts +1 -0
- package/src/types/types.ts +2 -1
- package/src/types/util.ts +3 -3
- package/dist/lib/browser/SheetContainer-BDZXBB5U.mjs.map +0 -7
- package/dist/lib/browser/chunk-5TA43LO4.mjs.map +0 -7
- package/dist/lib/browser/chunk-I7FZ4TWJ.mjs.map +0 -7
- package/dist/lib/browser/markdown-T4TUP4BF.mjs.map +0 -7
- package/dist/lib/node/SheetContainer-VWPM3HYJ.cjs +0 -351
- package/dist/lib/node/SheetContainer-VWPM3HYJ.cjs.map +0 -7
- package/dist/lib/node/anchor-sort-A7NABMJM.cjs +0 -39
- package/dist/lib/node/anchor-sort-A7NABMJM.cjs.map +0 -7
- package/dist/lib/node/chunk-FIM6EZ6M.cjs +0 -256
- package/dist/lib/node/chunk-FIM6EZ6M.cjs.map +0 -7
- package/dist/lib/node/chunk-JSIDCZHB.cjs +0 -41
- package/dist/lib/node/chunk-JSIDCZHB.cjs.map +0 -7
- package/dist/lib/node/chunk-LJWWS53Z.cjs +0 -34
- package/dist/lib/node/chunk-LJWWS53Z.cjs.map +0 -7
- package/dist/lib/node/chunk-N7FSEUIN.cjs +0 -927
- package/dist/lib/node/chunk-N7FSEUIN.cjs.map +0 -7
- package/dist/lib/node/chunk-ST3WA73J.cjs +0 -855
- package/dist/lib/node/chunk-ST3WA73J.cjs.map +0 -7
- package/dist/lib/node/compute-graph-registry-ARLDHPFW.cjs +0 -56
- package/dist/lib/node/compute-graph-registry-ARLDHPFW.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -173
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-2657YDOU.cjs +0 -69
- package/dist/lib/node/intent-resolver-2657YDOU.cjs.map +0 -7
- package/dist/lib/node/markdown-DBPOAYI7.cjs +0 -40
- package/dist/lib/node/markdown-DBPOAYI7.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-surface-XQEIRKWU.cjs +0 -71
- package/dist/lib/node/react-surface-XQEIRKWU.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs +0 -84
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-V632Q4HA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-C4IKYVTV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SOC52B67.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-WWUJ3E5F.mjs.map +0 -7
- package/dist/types/src/testing/playwright/sheet-manager.d.ts.map +0 -1
- package/dist/types/src/testing/playwright/sheet.spec.d.ts.map +0 -1
- package/src/testing/playwright/playwright.config.cts +0 -18
- /package/dist/lib/browser/{chunk-D3G4UGEK.mjs.map → chunk-6AKBCBL4.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-IR42IS3F.mjs.map → chunk-KJWZUQVA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-Y6ND5HWX.mjs.map → chunk-3K5VNYOF.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-IQ76YE6M.mjs.map → chunk-6SK5LJ5S.mjs.map} +0 -0
- /package/dist/types/src/{testing/playwright → playwright}/sheet.spec.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-sheet",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-main.28f8d3d",
|
|
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
|
},
|
|
@@ -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.
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/echo": "0.8.
|
|
65
|
-
"@dxos/functions": "0.8.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/plugin-graph": "0.8.
|
|
76
|
-
"@dxos/plugin-markdown": "0.8.
|
|
77
|
-
"@dxos/plugin-script": "0.8.
|
|
78
|
-
"@dxos/plugin-space": "0.8.
|
|
79
|
-
"@dxos/plugin-stack": "0.8.
|
|
80
|
-
"@dxos/plugin-thread": "0.8.
|
|
81
|
-
"@dxos/react-client": "0.8.
|
|
82
|
-
"@dxos/react-
|
|
83
|
-
"@dxos/react-
|
|
84
|
-
"@dxos/react-ui-editor": "0.8.
|
|
85
|
-
"@dxos/react-ui-
|
|
86
|
-
"@dxos/react-ui-
|
|
87
|
-
"@dxos/react-ui-list": "0.8.
|
|
88
|
-
"@dxos/react-ui-menu": "0.8.
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
59
|
+
"@dxos/app-framework": "0.8.4-main.28f8d3d",
|
|
60
|
+
"@dxos/client": "0.8.4-main.28f8d3d",
|
|
61
|
+
"@dxos/async": "0.8.4-main.28f8d3d",
|
|
62
|
+
"@dxos/compute": "0.8.4-main.28f8d3d",
|
|
63
|
+
"@dxos/crypto": "0.8.4-main.28f8d3d",
|
|
64
|
+
"@dxos/context": "0.8.4-main.28f8d3d",
|
|
65
|
+
"@dxos/debug": "0.8.4-main.28f8d3d",
|
|
66
|
+
"@dxos/echo": "0.8.4-main.28f8d3d",
|
|
67
|
+
"@dxos/functions": "0.8.4-main.28f8d3d",
|
|
68
|
+
"@dxos/echo-schema": "0.8.4-main.28f8d3d",
|
|
69
|
+
"@dxos/invariant": "0.8.4-main.28f8d3d",
|
|
70
|
+
"@dxos/lit-grid": "0.8.4-main.28f8d3d",
|
|
71
|
+
"@dxos/keys": "0.8.4-main.28f8d3d",
|
|
72
|
+
"@dxos/live-object": "0.8.4-main.28f8d3d",
|
|
73
|
+
"@dxos/log": "0.8.4-main.28f8d3d",
|
|
74
|
+
"@dxos/plugin-attention": "0.8.4-main.28f8d3d",
|
|
75
|
+
"@dxos/plugin-client": "0.8.4-main.28f8d3d",
|
|
76
|
+
"@dxos/plugin-deck": "0.8.4-main.28f8d3d",
|
|
77
|
+
"@dxos/plugin-graph": "0.8.4-main.28f8d3d",
|
|
78
|
+
"@dxos/plugin-markdown": "0.8.4-main.28f8d3d",
|
|
79
|
+
"@dxos/plugin-script": "0.8.4-main.28f8d3d",
|
|
80
|
+
"@dxos/plugin-space": "0.8.4-main.28f8d3d",
|
|
81
|
+
"@dxos/plugin-stack": "0.8.4-main.28f8d3d",
|
|
82
|
+
"@dxos/plugin-thread": "0.8.4-main.28f8d3d",
|
|
83
|
+
"@dxos/react-client": "0.8.4-main.28f8d3d",
|
|
84
|
+
"@dxos/react-hooks": "0.8.4-main.28f8d3d",
|
|
85
|
+
"@dxos/react-ui-attention": "0.8.4-main.28f8d3d",
|
|
86
|
+
"@dxos/react-ui-editor": "0.8.4-main.28f8d3d",
|
|
87
|
+
"@dxos/react-ui-grid": "0.8.4-main.28f8d3d",
|
|
88
|
+
"@dxos/react-ui-form": "0.8.4-main.28f8d3d",
|
|
89
|
+
"@dxos/react-ui-list": "0.8.4-main.28f8d3d",
|
|
90
|
+
"@dxos/react-ui-menu": "0.8.4-main.28f8d3d",
|
|
91
|
+
"@dxos/react-ui-stack": "0.8.4-main.28f8d3d",
|
|
92
|
+
"@dxos/schema": "0.8.4-main.28f8d3d",
|
|
93
|
+
"@dxos/util": "0.8.4-main.28f8d3d"
|
|
92
94
|
},
|
|
93
95
|
"devDependencies": {
|
|
94
|
-
"@effect-rx/rx-react": "
|
|
95
|
-
"@effect/platform": "0.
|
|
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.
|
|
104
|
+
"effect": "3.17.7",
|
|
103
105
|
"react": "~18.2.0",
|
|
104
106
|
"react-dom": "~18.2.0",
|
|
105
107
|
"vite": "5.4.7",
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/
|
|
109
|
-
"@dxos/react-ui": "0.8.
|
|
110
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.
|
|
111
|
-
"@dxos/
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/test-utils": "0.8.
|
|
114
|
-
"@dxos/
|
|
108
|
+
"@dxos/lit-grid": "0.8.4-main.28f8d3d",
|
|
109
|
+
"@dxos/random": "0.8.4-main.28f8d3d",
|
|
110
|
+
"@dxos/react-ui": "0.8.4-main.28f8d3d",
|
|
111
|
+
"@dxos/react-ui-theme": "0.8.4-main.28f8d3d",
|
|
112
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.28f8d3d",
|
|
113
|
+
"@dxos/storybook-utils": "0.8.4-main.28f8d3d",
|
|
114
|
+
"@dxos/react-ui-types": "0.8.4-main.28f8d3d",
|
|
115
|
+
"@dxos/test-utils": "0.8.4-main.28f8d3d",
|
|
116
|
+
"@dxos/echo-generator": "0.8.4-main.28f8d3d"
|
|
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.
|
|
123
|
-
"@dxos/react-ui-theme": "0.8.
|
|
124
|
+
"@dxos/react-ui": "0.8.4-main.28f8d3d",
|
|
125
|
+
"@dxos/react-ui-theme": "0.8.4-main.28f8d3d"
|
|
124
126
|
},
|
|
125
127
|
"publishConfig": {
|
|
126
128
|
"access": "public"
|
package/src/SheetPlugin.tsx
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, createIntent, defineModule, definePlugin
|
|
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,
|
|
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 {
|
|
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 {
|
|
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 {
|
|
5
|
+
import { Capabilities, contributes, createResolver } from '@dxos/app-framework';
|
|
6
6
|
|
|
7
7
|
import { SHEET_PLUGIN } from '../meta';
|
|
8
|
-
import {
|
|
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 {
|
|
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, {
|
|
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,22 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
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 {
|
|
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 {
|
|
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 {
|
|
21
|
+
import { SheetType, createSheet } from '../../types';
|
|
22
|
+
|
|
23
|
+
import { useComputeGraph } from './ComputeGraphContextProvider';
|
|
23
24
|
|
|
24
25
|
const FUNCTION_NAME = 'TEST';
|
|
25
26
|
|
|
@@ -4,22 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } 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 {
|
|
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);
|
|
@@ -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 {
|
|
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
|
-
|
|
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 {
|
|
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 = {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
9
9
|
|
|
10
10
|
import { Client } from '@dxos/client';
|
|
@@ -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 {
|
|
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 {
|
|
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
|
|
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
|
|
|
@@ -4,25 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
-
import { Capabilities, contributes, createResolver
|
|
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 {
|
|
17
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
18
18
|
|
|
19
|
-
import { SheetContainer } from './SheetContainer';
|
|
20
19
|
import { createTestCells, useTestSheet, withComputeGraphDecorator } from '../../testing';
|
|
21
|
-
import translations from '../../translations';
|
|
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 {
|
|
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
|
|
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 {
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
10
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
|
+
import { translations } from '../../translations';
|
|
13
|
+
|
|
12
14
|
import { SheetToolbar } from './SheetToolbar';
|
|
13
|
-
import translations from '../../translations';
|
|
14
15
|
|
|
15
16
|
const DefaultStory = () => {
|
|
16
17
|
return <SheetToolbar id='test' />;
|
|
@@ -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
|
|
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,
|
|
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
|
|
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 {
|
|
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>>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React, { useEffect, useMemo } from 'react';
|
|
9
9
|
|
|
10
10
|
import { PublicKey } from '@dxos/keys';
|
|
@@ -19,15 +19,16 @@ import {
|
|
|
19
19
|
documentId,
|
|
20
20
|
useTextEditor,
|
|
21
21
|
} from '@dxos/react-ui-editor';
|
|
22
|
-
import {
|
|
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,20 +6,20 @@ 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
|
-
|
|
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,
|
|
22
|
-
import { type DxGridElement, type
|
|
21
|
+
import { Filter, Query, fullyQualifiedId, getSpace, useQuery } from '@dxos/react-client/echo';
|
|
22
|
+
import { type DxGridElement, type GridContentProps } from '@dxos/react-ui-grid';
|
|
23
23
|
import { AnchoredTo } from '@dxos/schema';
|
|
24
24
|
|
|
25
25
|
import { useSheetContext } from '../components';
|
|
@@ -111,13 +111,14 @@ export const useSelectThreadOnCellFocus = () => {
|
|
|
111
111
|
);
|
|
112
112
|
|
|
113
113
|
const debounced = useMemo(() => {
|
|
114
|
-
return debounce((cellCoords:
|
|
114
|
+
return debounce((cellCoords: CellAddress) => requestAnimationFrame(() => selectClosestThread(cellCoords)), 50);
|
|
115
115
|
}, [selectClosestThread]);
|
|
116
116
|
|
|
117
117
|
useEffect(() => {
|
|
118
118
|
if (!cursor) {
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
|
+
|
|
121
122
|
debounced(cursor);
|
|
122
123
|
}, [cursor, debounced]);
|
|
123
124
|
};
|