@dxos/plugin-sheet 0.8.4-main.1da679c → 0.8.4-main.21d9917
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-ESCXPI7Y.mjs +397 -0
- package/dist/lib/browser/SheetContainer-ESCXPI7Y.mjs.map +7 -0
- package/dist/lib/browser/anchor-sort-JBRMW6OY.mjs +23 -0
- package/dist/lib/browser/anchor-sort-JBRMW6OY.mjs.map +7 -0
- package/dist/lib/browser/chunk-2SAGT3BB.mjs +397 -0
- package/dist/lib/browser/chunk-2SAGT3BB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-SSN4HYJL.mjs → chunk-IFLWVS2V.mjs} +9 -9
- package/dist/lib/browser/chunk-IFLWVS2V.mjs.map +7 -0
- package/dist/lib/browser/chunk-W6N44ONZ.mjs +1470 -0
- package/dist/lib/browser/chunk-W6N44ONZ.mjs.map +7 -0
- package/dist/lib/browser/compute-graph-registry-DL2PX7TF.mjs +21 -0
- package/dist/lib/browser/compute-graph-registry-DL2PX7TF.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +71 -82
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/markdown-BC4KBDUO.mjs +29 -0
- package/dist/lib/browser/markdown-BC4KBDUO.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-FJ4UWZUM.mjs +79 -0
- package/dist/lib/browser/operation-resolver-FJ4UWZUM.mjs.map +7 -0
- package/dist/lib/browser/react-surface-5BXM6TJ3.mjs +51 -0
- package/dist/lib/browser/react-surface-5BXM6TJ3.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +7 -12
- package/dist/lib/node-esm/SheetContainer-YVIDJKP4.mjs +398 -0
- package/dist/lib/node-esm/SheetContainer-YVIDJKP4.mjs.map +7 -0
- package/dist/lib/node-esm/anchor-sort-C3XFPI6S.mjs +24 -0
- package/dist/lib/node-esm/anchor-sort-C3XFPI6S.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IMWGSIDG.mjs +398 -0
- package/dist/lib/node-esm/chunk-IMWGSIDG.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IK4O7FUJ.mjs → chunk-PPOYR7DK.mjs} +9 -9
- package/dist/lib/node-esm/chunk-PPOYR7DK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-S7RYX7DG.mjs +1471 -0
- package/dist/lib/node-esm/chunk-S7RYX7DG.mjs.map +7 -0
- package/dist/lib/node-esm/compute-graph-registry-VXH55GDI.mjs +22 -0
- package/dist/lib/node-esm/compute-graph-registry-VXH55GDI.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +71 -82
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/markdown-6DGZCJRM.mjs +30 -0
- package/dist/lib/node-esm/markdown-6DGZCJRM.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-OGXEUWHA.mjs +80 -0
- package/dist/lib/node-esm/operation-resolver-OGXEUWHA.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-RLHC6B77.mjs +52 -0
- package/dist/lib/node-esm/react-surface-RLHC6B77.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +7 -12
- package/dist/types/src/SheetPlugin.d.ts +2 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts +5 -0
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts.map +1 -0
- package/dist/types/src/capabilities/anchor-sort/index.d.ts +3 -0
- package/dist/types/src/capabilities/anchor-sort/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts +5 -0
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-graph-registry/index.d.ts +3 -0
- package/dist/types/src/capabilities/compute-graph-registry/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +5 -9
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
- package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts +0 -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 +4 -3
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +2 -3
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts +2 -2
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +5 -6
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +8 -6
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +2 -2
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +3 -4
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +3 -2
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/align.d.ts +12 -19
- package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/style.d.ts +12 -18
- package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts +14 -1
- package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/extensions/compute.stories.d.ts +2 -3
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts +6 -6
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/model/testing.d.ts +2 -2
- package/dist/types/src/model/testing.d.ts.map +1 -1
- package/dist/types/src/model/useSheetModel.d.ts +2 -2
- package/dist/types/src/model/useSheetModel.d.ts.map +1 -1
- package/dist/types/src/serializer.d.ts +2 -2
- package/dist/types/src/serializer.d.ts.map +1 -1
- package/dist/types/src/testing/data.d.ts +2 -2
- package/dist/types/src/testing/data.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +27 -3
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Sheet.d.ts +76 -0
- package/dist/types/src/types/Sheet.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +6 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/sheet-range-types.d.ts +2 -2
- package/dist/types/src/types/sheet-range-types.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +92 -75
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/types/util.d.ts +9 -10
- package/dist/types/src/types/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +79 -72
- package/src/SheetPlugin.tsx +51 -64
- package/src/capabilities/anchor-sort/anchor-sort.ts +26 -0
- package/src/capabilities/anchor-sort/index.ts +7 -0
- package/src/capabilities/compute-graph-registry/compute-graph-registry.ts +27 -0
- package/src/capabilities/compute-graph-registry/index.ts +7 -0
- package/src/capabilities/index.ts +5 -9
- package/src/capabilities/markdown/index.ts +7 -0
- package/src/capabilities/markdown/markdown.ts +30 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +77 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +43 -0
- package/src/components/ComputeGraph/compute-graph.stories.tsx +10 -12
- package/src/components/FunctionEditor/FunctionEditor.tsx +2 -2
- package/src/components/GridSheet/GridSheet.stories.tsx +14 -11
- package/src/components/GridSheet/GridSheet.tsx +32 -25
- package/src/components/GridSheet/SheetCellEditor.stories.tsx +14 -12
- package/src/components/GridSheet/util.ts +11 -5
- package/src/components/RangeList/RangeList.tsx +13 -10
- package/src/components/SheetContainer/SheetContainer.stories.tsx +68 -47
- package/src/components/SheetContainer/SheetContainer.tsx +30 -18
- package/src/components/SheetContext/SheetContext.tsx +8 -8
- package/src/components/SheetToolbar/SheetToolbar.stories.tsx +9 -6
- package/src/components/SheetToolbar/SheetToolbar.tsx +39 -30
- package/src/components/SheetToolbar/align.ts +44 -19
- package/src/components/SheetToolbar/style.ts +47 -17
- package/src/components/SheetToolbar/useToolbarState.ts +22 -5
- package/src/extensions/compute.stories.tsx +29 -17
- package/src/extensions/compute.ts +1 -1
- package/src/extensions/editor/sheet-extension.ts +7 -4
- package/src/index.ts +1 -1
- package/src/integrations/thread-ranges.ts +40 -49
- package/src/meta.ts +9 -7
- package/src/model/sheet-model.test.ts +4 -4
- package/src/model/sheet-model.ts +78 -48
- package/src/model/testing.ts +4 -4
- package/src/model/useSheetModel.ts +2 -2
- package/src/playwright/playwright.config.ts +1 -1
- package/src/playwright/sheet.spec.ts +1 -0
- package/src/sanity.test.ts +3 -4
- package/src/serializer.ts +4 -4
- package/src/testing/data.ts +2 -2
- package/src/testing/testing.tsx +11 -5
- package/src/translations.ts +3 -2
- package/src/types/Sheet.ts +106 -0
- package/src/types/capabilities.ts +14 -0
- package/src/types/index.ts +2 -1
- package/src/types/sheet-range-types.ts +2 -2
- package/src/types/types.ts +83 -49
- package/src/types/util.ts +10 -38
- package/dist/lib/browser/SheetContainer-OUN6AARA.mjs +0 -350
- package/dist/lib/browser/SheetContainer-OUN6AARA.mjs.map +0 -7
- package/dist/lib/browser/anchor-sort-CAYLDDRF.mjs +0 -24
- package/dist/lib/browser/anchor-sort-CAYLDDRF.mjs.map +0 -7
- package/dist/lib/browser/chunk-6AKBCBL4.mjs +0 -18
- package/dist/lib/browser/chunk-6AKBCBL4.mjs.map +0 -7
- package/dist/lib/browser/chunk-KJWZUQVA.mjs +0 -15
- package/dist/lib/browser/chunk-KJWZUQVA.mjs.map +0 -7
- package/dist/lib/browser/chunk-SSN4HYJL.mjs.map +0 -7
- package/dist/lib/browser/chunk-X4EWLDT3.mjs +0 -851
- package/dist/lib/browser/chunk-X4EWLDT3.mjs.map +0 -7
- package/dist/lib/browser/chunk-XSXUU6FO.mjs +0 -906
- package/dist/lib/browser/chunk-XSXUU6FO.mjs.map +0 -7
- package/dist/lib/browser/compute-graph-registry-WHF3BJTJ.mjs +0 -30
- package/dist/lib/browser/compute-graph-registry-WHF3BJTJ.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-LKZXAJRJ.mjs +0 -56
- package/dist/lib/browser/intent-resolver-LKZXAJRJ.mjs.map +0 -7
- package/dist/lib/browser/markdown-XKFA4Z2M.mjs +0 -26
- package/dist/lib/browser/markdown-XKFA4Z2M.mjs.map +0 -7
- package/dist/lib/browser/react-surface-N6NYHHT3.mjs +0 -53
- package/dist/lib/browser/react-surface-N6NYHHT3.mjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-NFLLTGNV.mjs +0 -351
- package/dist/lib/node-esm/SheetContainer-NFLLTGNV.mjs.map +0 -7
- package/dist/lib/node-esm/anchor-sort-4R2ID6GE.mjs +0 -25
- package/dist/lib/node-esm/anchor-sort-4R2ID6GE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3K5VNYOF.mjs +0 -20
- package/dist/lib/node-esm/chunk-3K5VNYOF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs +0 -16
- package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IK4O7FUJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ODP4L4OV.mjs +0 -907
- package/dist/lib/node-esm/chunk-ODP4L4OV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PYF4ZJXN.mjs +0 -852
- package/dist/lib/node-esm/chunk-PYF4ZJXN.mjs.map +0 -7
- package/dist/lib/node-esm/compute-graph-registry-3IUZXRXJ.mjs +0 -31
- package/dist/lib/node-esm/compute-graph-registry-3IUZXRXJ.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-JHH6ZVJ4.mjs +0 -57
- package/dist/lib/node-esm/intent-resolver-JHH6ZVJ4.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-NOKROLCG.mjs +0 -27
- package/dist/lib/node-esm/markdown-NOKROLCG.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-TYBS4DOF.mjs +0 -54
- package/dist/lib/node-esm/react-surface-TYBS4DOF.mjs.map +0 -7
- package/dist/types/src/capabilities/anchor-sort.d.ts +0 -6
- package/dist/types/src/capabilities/anchor-sort.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -5
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/compute-graph-registry.d.ts +0 -4
- package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown.d.ts +0 -4
- package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -37
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/anchor-sort.ts +0 -22
- package/src/capabilities/capabilities.ts +0 -14
- package/src/capabilities/compute-graph-registry.ts +0 -28
- package/src/capabilities/intent-resolver.ts +0 -38
- package/src/capabilities/markdown.ts +0 -23
- package/src/capabilities/react-surface.tsx +0 -40
- package/src/types/schema.ts +0 -61
package/package.json
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-sheet",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.21d9917",
|
|
4
4
|
"description": "Braneframe sketch plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
11
15
|
"exports": {
|
|
12
16
|
".": {
|
|
13
|
-
"source": "./src/index.ts",
|
|
14
|
-
"types": "./dist/types/src/index.d.ts",
|
|
15
17
|
"browser": "./dist/lib/browser/index.mjs",
|
|
16
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
18
|
+
"node": "./dist/lib/node-esm/index.mjs",
|
|
19
|
+
"source": "./src/index.ts",
|
|
20
|
+
"types": "./dist/types/src/index.d.ts"
|
|
17
21
|
},
|
|
18
22
|
"./types": {
|
|
19
|
-
"source": "./src/types/index.ts",
|
|
20
|
-
"types": "./dist/types/src/types/index.d.ts",
|
|
21
23
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
22
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
24
|
+
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
25
|
+
"source": "./src/types/index.ts",
|
|
26
|
+
"types": "./dist/types/src/types/index.d.ts"
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -35,10 +39,10 @@
|
|
|
35
39
|
"src"
|
|
36
40
|
],
|
|
37
41
|
"dependencies": {
|
|
38
|
-
"@codemirror/autocomplete": "^6.
|
|
42
|
+
"@codemirror/autocomplete": "^6.19.0",
|
|
39
43
|
"@codemirror/language": "^6.11.3",
|
|
40
44
|
"@codemirror/state": "^6.5.2",
|
|
41
|
-
"@codemirror/view": "^6.38.
|
|
45
|
+
"@codemirror/view": "^6.38.4",
|
|
42
46
|
"@dnd-kit/core": "^6.0.5",
|
|
43
47
|
"@dnd-kit/modifiers": "^6.0.0",
|
|
44
48
|
"@dnd-kit/sortable": "^7.0.1",
|
|
@@ -47,82 +51,85 @@
|
|
|
47
51
|
"@lezer/highlight": "^1.2.1",
|
|
48
52
|
"@lezer/lezer": "^1.1.2",
|
|
49
53
|
"@lezer/lr": "^1.4.2",
|
|
50
|
-
"@preact-signals/safe-react": "^0.9.0",
|
|
51
|
-
"@preact/signals-core": "^1.9.0",
|
|
52
54
|
"@radix-ui/react-context": "1.1.1",
|
|
53
55
|
"codemirror-lang-spreadsheet": "^1.3.0",
|
|
54
56
|
"date-fns": "^3.3.1",
|
|
55
57
|
"lodash.defaultsdeep": "^4.6.1",
|
|
56
58
|
"re-resizable": "^6.9.17",
|
|
57
|
-
"react-markdown": "^
|
|
59
|
+
"react-markdown": "^10.1.0",
|
|
58
60
|
"react-resize-detector": "^11.0.1",
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/context": "0.8.4-main.
|
|
64
|
-
"@dxos/crypto": "0.8.4-main.
|
|
65
|
-
"@dxos/debug": "0.8.4-main.
|
|
66
|
-
"@dxos/echo": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/invariant": "0.8.4-main.
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/plugin-attention": "0.8.4-main.
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/plugin-
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/plugin-
|
|
81
|
-
"@dxos/plugin-
|
|
82
|
-
"@dxos/plugin-
|
|
83
|
-
"@dxos/react-
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/react-
|
|
86
|
-
"@dxos/react-ui-
|
|
87
|
-
"@dxos/react-ui-
|
|
88
|
-
"@dxos/react-ui-
|
|
89
|
-
"@dxos/react-ui-
|
|
90
|
-
"@dxos/react-ui-list": "0.8.4-main.
|
|
91
|
-
"@dxos/react-ui-
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
61
|
+
"@dxos/async": "0.8.4-main.21d9917",
|
|
62
|
+
"@dxos/compute": "0.8.4-main.21d9917",
|
|
63
|
+
"@dxos/app-framework": "0.8.4-main.21d9917",
|
|
64
|
+
"@dxos/client": "0.8.4-main.21d9917",
|
|
65
|
+
"@dxos/context": "0.8.4-main.21d9917",
|
|
66
|
+
"@dxos/crypto": "0.8.4-main.21d9917",
|
|
67
|
+
"@dxos/debug": "0.8.4-main.21d9917",
|
|
68
|
+
"@dxos/echo": "0.8.4-main.21d9917",
|
|
69
|
+
"@dxos/functions": "0.8.4-main.21d9917",
|
|
70
|
+
"@dxos/echo-db": "0.8.4-main.21d9917",
|
|
71
|
+
"@dxos/invariant": "0.8.4-main.21d9917",
|
|
72
|
+
"@dxos/keys": "0.8.4-main.21d9917",
|
|
73
|
+
"@dxos/log": "0.8.4-main.21d9917",
|
|
74
|
+
"@dxos/lit-grid": "0.8.4-main.21d9917",
|
|
75
|
+
"@dxos/operation": "0.8.4-main.21d9917",
|
|
76
|
+
"@dxos/plugin-attention": "0.8.4-main.21d9917",
|
|
77
|
+
"@dxos/plugin-automation": "0.8.4-main.21d9917",
|
|
78
|
+
"@dxos/plugin-deck": "0.8.4-main.21d9917",
|
|
79
|
+
"@dxos/plugin-graph": "0.8.4-main.21d9917",
|
|
80
|
+
"@dxos/plugin-client": "0.8.4-main.21d9917",
|
|
81
|
+
"@dxos/plugin-script": "0.8.4-main.21d9917",
|
|
82
|
+
"@dxos/plugin-stack": "0.8.4-main.21d9917",
|
|
83
|
+
"@dxos/plugin-space": "0.8.4-main.21d9917",
|
|
84
|
+
"@dxos/plugin-thread": "0.8.4-main.21d9917",
|
|
85
|
+
"@dxos/react-client": "0.8.4-main.21d9917",
|
|
86
|
+
"@dxos/plugin-markdown": "0.8.4-main.21d9917",
|
|
87
|
+
"@dxos/react-hooks": "0.8.4-main.21d9917",
|
|
88
|
+
"@dxos/react-ui-attention": "0.8.4-main.21d9917",
|
|
89
|
+
"@dxos/react-ui-form": "0.8.4-main.21d9917",
|
|
90
|
+
"@dxos/react-ui-editor": "0.8.4-main.21d9917",
|
|
91
|
+
"@dxos/react-ui-grid": "0.8.4-main.21d9917",
|
|
92
|
+
"@dxos/react-ui-list": "0.8.4-main.21d9917",
|
|
93
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.21d9917",
|
|
94
|
+
"@dxos/react-ui-menu": "0.8.4-main.21d9917",
|
|
95
|
+
"@dxos/react-ui-stack": "0.8.4-main.21d9917",
|
|
96
|
+
"@dxos/schema": "0.8.4-main.21d9917",
|
|
97
|
+
"@dxos/types": "0.8.4-main.21d9917",
|
|
98
|
+
"@dxos/ui-editor": "0.8.4-main.21d9917",
|
|
99
|
+
"@dxos/util": "0.8.4-main.21d9917"
|
|
94
100
|
},
|
|
95
101
|
"devDependencies": {
|
|
96
|
-
"@effect-
|
|
97
|
-
"@effect/platform": "0.
|
|
102
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
103
|
+
"@effect/platform": "0.93.6",
|
|
98
104
|
"@lezer/generator": "^1.7.1",
|
|
99
105
|
"@tldraw/indices": "^2.0.0-alpha.14",
|
|
100
106
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
101
|
-
"@types/react": "~
|
|
102
|
-
"@types/react-dom": "~
|
|
103
|
-
"@types/react-window": "^
|
|
104
|
-
"effect": "3.
|
|
105
|
-
"react": "~
|
|
106
|
-
"react-dom": "~
|
|
107
|
-
"vite": "7.1.
|
|
108
|
-
"@dxos/
|
|
109
|
-
"@dxos/random": "0.8.4-main.
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/react-ui-
|
|
114
|
-
"@dxos/
|
|
115
|
-
"@dxos/test-utils": "0.8.4-main.
|
|
116
|
-
"@dxos/
|
|
107
|
+
"@types/react": "~19.2.7",
|
|
108
|
+
"@types/react-dom": "~19.2.3",
|
|
109
|
+
"@types/react-window": "^2.0.0",
|
|
110
|
+
"effect": "3.19.11",
|
|
111
|
+
"react": "~19.2.3",
|
|
112
|
+
"react-dom": "~19.2.3",
|
|
113
|
+
"vite": "7.1.9",
|
|
114
|
+
"@dxos/lit-grid": "0.8.4-main.21d9917",
|
|
115
|
+
"@dxos/random": "0.8.4-main.21d9917",
|
|
116
|
+
"@dxos/echo-generator": "0.8.4-main.21d9917",
|
|
117
|
+
"@dxos/react-ui": "0.8.4-main.21d9917",
|
|
118
|
+
"@dxos/plugin-testing": "0.8.4-main.21d9917",
|
|
119
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.21d9917",
|
|
120
|
+
"@dxos/storybook-utils": "0.8.4-main.21d9917",
|
|
121
|
+
"@dxos/test-utils": "0.8.4-main.21d9917",
|
|
122
|
+
"@dxos/ui-types": "0.8.4-main.21d9917",
|
|
123
|
+
"@dxos/ui-theme": "0.8.4-main.21d9917"
|
|
117
124
|
},
|
|
118
125
|
"peerDependencies": {
|
|
119
|
-
"@effect-
|
|
120
|
-
"@effect/platform": "
|
|
121
|
-
"effect": "
|
|
122
|
-
"react": "~
|
|
123
|
-
"react-dom": "~
|
|
124
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
125
|
-
"@dxos/
|
|
126
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
127
|
+
"@effect/platform": "0.93.6",
|
|
128
|
+
"effect": "3.19.11",
|
|
129
|
+
"react": "~19.2.3",
|
|
130
|
+
"react-dom": "~19.2.3",
|
|
131
|
+
"@dxos/react-ui": "0.8.4-main.21d9917",
|
|
132
|
+
"@dxos/ui-theme": "0.8.4-main.21d9917"
|
|
126
133
|
},
|
|
127
134
|
"publishConfig": {
|
|
128
135
|
"access": "public"
|
package/src/SheetPlugin.tsx
CHANGED
|
@@ -2,75 +2,62 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { ActivationEvent, Capability, Common, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
import { AutomationEvents } from '@dxos/plugin-automation';
|
|
6
10
|
import { ClientEvents } from '@dxos/plugin-client';
|
|
7
11
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
8
|
-
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
9
|
-
import {
|
|
12
|
+
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
13
|
+
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
10
14
|
|
|
11
|
-
import { AnchorSort, ComputeGraphRegistry,
|
|
15
|
+
import { AnchorSort, ComputeGraphRegistry, Markdown, OperationResolver, ReactSurface } from './capabilities';
|
|
12
16
|
import { meta } from './meta';
|
|
13
17
|
import { serializer } from './serializer';
|
|
14
18
|
import { translations } from './translations';
|
|
15
|
-
import {
|
|
19
|
+
import { Sheet, SheetOperation } from './types';
|
|
16
20
|
|
|
17
|
-
export const SheetPlugin = ()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
id:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
id: `${meta.id}/module/object-form`,
|
|
45
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
46
|
-
activate: () =>
|
|
47
|
-
contributes(
|
|
48
|
-
SpaceCapabilities.ObjectForm,
|
|
49
|
-
defineObjectForm({
|
|
50
|
-
objectSchema: SheetType,
|
|
51
|
-
getIntent: (props, options) => createIntent(SheetAction.Create, { ...props, space: options.space }),
|
|
52
|
-
}),
|
|
21
|
+
export const SheetPlugin = Plugin.define(meta).pipe(
|
|
22
|
+
Plugin.addModule({
|
|
23
|
+
activatesOn: ActivationEvent.allOf(ClientEvents.ClientReady, AutomationEvents.ComputeRuntimeReady),
|
|
24
|
+
activate: ComputeGraphRegistry,
|
|
25
|
+
}),
|
|
26
|
+
Common.Plugin.addTranslationsModule({ translations }),
|
|
27
|
+
Common.Plugin.addMetadataModule({
|
|
28
|
+
metadata: {
|
|
29
|
+
id: Sheet.Sheet.typename,
|
|
30
|
+
metadata: {
|
|
31
|
+
label: (object: Sheet.Sheet) => object.name,
|
|
32
|
+
icon: 'ph--grid-nine--regular',
|
|
33
|
+
iconHue: 'indigo',
|
|
34
|
+
serializer,
|
|
35
|
+
comments: 'anchored',
|
|
36
|
+
createObject: ((props) => Effect.sync(() => Sheet.make(props))) satisfies CreateObject,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
Common.Plugin.addSchemaModule({ schema: [Sheet.Sheet] }),
|
|
41
|
+
Plugin.addModule({
|
|
42
|
+
id: 'on-space-created',
|
|
43
|
+
activatesOn: SpaceEvents.SpaceCreated,
|
|
44
|
+
activate: () =>
|
|
45
|
+
Effect.succeed(
|
|
46
|
+
Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>
|
|
47
|
+
Operation.invoke(SheetOperation.OnCreateSpace, params),
|
|
53
48
|
),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
activate: ReactSurface,
|
|
70
|
-
}),
|
|
71
|
-
defineModule({
|
|
72
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
73
|
-
activatesOn: Events.SetupIntentResolver,
|
|
74
|
-
activate: IntentResolver,
|
|
75
|
-
}),
|
|
76
|
-
]);
|
|
49
|
+
),
|
|
50
|
+
}),
|
|
51
|
+
Plugin.addModule({
|
|
52
|
+
activatesOn: MarkdownEvents.SetupExtensions,
|
|
53
|
+
activate: Markdown,
|
|
54
|
+
}),
|
|
55
|
+
Plugin.addModule({
|
|
56
|
+
// TODO(wittjosiah): More relevant event?
|
|
57
|
+
activatesOn: Common.ActivationEvent.AppGraphReady,
|
|
58
|
+
activate: AnchorSort,
|
|
59
|
+
}),
|
|
60
|
+
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
61
|
+
Common.Plugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
62
|
+
Plugin.make,
|
|
63
|
+
);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
import { Relation } from '@dxos/echo';
|
|
9
|
+
|
|
10
|
+
import { Sheet, compareIndexPositions } from '../../types';
|
|
11
|
+
|
|
12
|
+
export default Capability.makeModule(() =>
|
|
13
|
+
Effect.succeed(
|
|
14
|
+
Capability.contributes(Common.Capability.AnchorSort, {
|
|
15
|
+
key: Sheet.Sheet.typename,
|
|
16
|
+
sort: (anchorA, anchorB) => {
|
|
17
|
+
const sheet = Relation.getTarget(anchorA) as Sheet.Sheet;
|
|
18
|
+
if (sheet !== Relation.getTarget(anchorB)) {
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return !anchorA.anchor || !anchorB.anchor ? 0 : compareIndexPositions(sheet, anchorA.anchor, anchorB.anchor);
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
),
|
|
26
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AutomationCapabilities } from '@dxos/plugin-automation';
|
|
9
|
+
|
|
10
|
+
import { SheetCapabilities } from '../../types';
|
|
11
|
+
|
|
12
|
+
// Locally declare the Automation ComputeRuntime capability by ID to avoid direct import dependency.
|
|
13
|
+
|
|
14
|
+
export default Capability.makeModule(
|
|
15
|
+
Effect.fnUntraced(function* () {
|
|
16
|
+
const computeRuntimeResolver = yield* Capability.get(AutomationCapabilities.ComputeRuntime);
|
|
17
|
+
// TODO(wittjosiah): This can probably be a module level import now due to lazy capability loading.
|
|
18
|
+
// Async import removes direct dependency on hyperformula.
|
|
19
|
+
const { defaultPlugins, ComputeGraphRegistry } = yield* Effect.tryPromise(() => import('@dxos/compute'));
|
|
20
|
+
const computeGraphRegistry = new ComputeGraphRegistry({
|
|
21
|
+
plugins: defaultPlugins,
|
|
22
|
+
computeRuntime: computeRuntimeResolver,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return Capability.contributes(SheetCapabilities.ComputeGraphRegistry, computeGraphRegistry);
|
|
26
|
+
}),
|
|
27
|
+
);
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export const Markdown = lazy(() => import('./markdown'));
|
|
11
|
-
export const ReactSurface = lazy(() => import('./react-surface'));
|
|
12
|
-
|
|
13
|
-
export * from './capabilities';
|
|
5
|
+
export * from './anchor-sort';
|
|
6
|
+
export * from './compute-graph-registry';
|
|
7
|
+
export * from './markdown';
|
|
8
|
+
export * from './operation-resolver';
|
|
9
|
+
export * from './react-surface';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { getSpace } from '@dxos/client/echo';
|
|
9
|
+
import { MarkdownCapabilities } from '@dxos/plugin-markdown';
|
|
10
|
+
|
|
11
|
+
import { computeGraphFacet } from '../../extensions';
|
|
12
|
+
import { SheetCapabilities } from '../../types';
|
|
13
|
+
|
|
14
|
+
export default Capability.makeModule(
|
|
15
|
+
Effect.fnUntraced(function* () {
|
|
16
|
+
// Get context for lazy capability access in callbacks.
|
|
17
|
+
const capabilities = yield* Capability.Service;
|
|
18
|
+
|
|
19
|
+
return Capability.contributes(MarkdownCapabilities.Extensions, [
|
|
20
|
+
({ document: doc }) => {
|
|
21
|
+
const computeGraphRegistry = capabilities.get(SheetCapabilities.ComputeGraphRegistry);
|
|
22
|
+
const space = getSpace(doc);
|
|
23
|
+
if (space) {
|
|
24
|
+
const computeGraph = computeGraphRegistry.getOrCreateGraph(space);
|
|
25
|
+
return computeGraphFacet.of(computeGraph);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
]);
|
|
29
|
+
}),
|
|
30
|
+
);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common, UndoMapping } from '@dxos/app-framework';
|
|
8
|
+
import { Obj, Ref, Type } from '@dxos/echo';
|
|
9
|
+
import { OperationResolver } from '@dxos/operation';
|
|
10
|
+
import { Collection } from '@dxos/schema';
|
|
11
|
+
|
|
12
|
+
import { meta } from '../../meta';
|
|
13
|
+
import { Sheet, SheetOperation } from '../../types';
|
|
14
|
+
|
|
15
|
+
export default Capability.makeModule(() =>
|
|
16
|
+
Effect.succeed([
|
|
17
|
+
Capability.contributes(Common.Capability.UndoMapping, [
|
|
18
|
+
UndoMapping.make({
|
|
19
|
+
operation: SheetOperation.DropAxis,
|
|
20
|
+
inverse: SheetOperation.RestoreAxis,
|
|
21
|
+
deriveContext: (input, output) => ({
|
|
22
|
+
model: input.model,
|
|
23
|
+
axis: output.axis,
|
|
24
|
+
axisIndex: output.axisIndex,
|
|
25
|
+
index: output.index,
|
|
26
|
+
axisMeta: output.axisMeta,
|
|
27
|
+
values: output.values,
|
|
28
|
+
}),
|
|
29
|
+
message: ['axis dropped label', { ns: meta.id }],
|
|
30
|
+
}),
|
|
31
|
+
]),
|
|
32
|
+
Capability.contributes(Common.Capability.OperationResolver, [
|
|
33
|
+
OperationResolver.make({
|
|
34
|
+
operation: SheetOperation.OnCreateSpace,
|
|
35
|
+
handler: Effect.fnUntraced(function* ({ rootCollection }) {
|
|
36
|
+
const collection = Collection.makeManaged({ key: Type.getTypename(Sheet.Sheet) });
|
|
37
|
+
Obj.change(rootCollection, (c) => {
|
|
38
|
+
c.objects.push(Ref.make(collection));
|
|
39
|
+
});
|
|
40
|
+
}),
|
|
41
|
+
}),
|
|
42
|
+
OperationResolver.make({
|
|
43
|
+
operation: SheetOperation.InsertAxis,
|
|
44
|
+
handler: ({ model, axis, index, count }) =>
|
|
45
|
+
Effect.sync(() => {
|
|
46
|
+
model[axis === 'col' ? 'insertColumns' : 'insertRows'](index, count);
|
|
47
|
+
}),
|
|
48
|
+
}),
|
|
49
|
+
OperationResolver.make({
|
|
50
|
+
operation: SheetOperation.DropAxis,
|
|
51
|
+
handler: ({ model, axis, axisIndex }) =>
|
|
52
|
+
Effect.sync(() => {
|
|
53
|
+
const undoData = model[axis === 'col' ? 'dropColumn' : 'dropRow'](axisIndex);
|
|
54
|
+
// Return data needed for undo.
|
|
55
|
+
return {
|
|
56
|
+
axis: undoData.axis,
|
|
57
|
+
axisIndex: undoData.axisIndex,
|
|
58
|
+
index: undoData.index,
|
|
59
|
+
axisMeta: undoData.axisMeta,
|
|
60
|
+
values: undoData.values,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
63
|
+
}),
|
|
64
|
+
|
|
65
|
+
//
|
|
66
|
+
// RestoreAxis (inverse of DropAxis)
|
|
67
|
+
//
|
|
68
|
+
OperationResolver.make({
|
|
69
|
+
operation: SheetOperation.RestoreAxis,
|
|
70
|
+
handler: ({ model, axis, ...restoreData }) =>
|
|
71
|
+
Effect.sync(() => {
|
|
72
|
+
model[axis === 'col' ? 'restoreColumn' : 'restoreRow'](restoreData);
|
|
73
|
+
}),
|
|
74
|
+
}),
|
|
75
|
+
]),
|
|
76
|
+
]),
|
|
77
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
9
|
+
import { useCapability } from '@dxos/app-framework/react';
|
|
10
|
+
import { Obj } from '@dxos/echo';
|
|
11
|
+
import { getSpace } from '@dxos/react-client/echo';
|
|
12
|
+
|
|
13
|
+
import { ComputeGraphContextProvider, RangeList, SheetContainer } from '../../components';
|
|
14
|
+
import { meta } from '../../meta';
|
|
15
|
+
import { Sheet, SheetCapabilities } from '../../types';
|
|
16
|
+
|
|
17
|
+
export default Capability.makeModule(() =>
|
|
18
|
+
Effect.succeed(
|
|
19
|
+
Capability.contributes(Common.Capability.ReactSurface, [
|
|
20
|
+
Common.createSurface({
|
|
21
|
+
id: `${meta.id}/sheet`,
|
|
22
|
+
role: ['article', 'section'],
|
|
23
|
+
filter: (data): data is { subject: Sheet.Sheet } =>
|
|
24
|
+
Obj.instanceOf(Sheet.Sheet, data.subject) && !!getSpace(data.subject),
|
|
25
|
+
component: ({ data, role }) => {
|
|
26
|
+
const computeGraphRegistry = useCapability(SheetCapabilities.ComputeGraphRegistry);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<ComputeGraphContextProvider registry={computeGraphRegistry}>
|
|
30
|
+
<SheetContainer role={role} subject={data.subject} space={getSpace(data.subject)!} />
|
|
31
|
+
</ComputeGraphContextProvider>
|
|
32
|
+
);
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
Common.createSurface({
|
|
36
|
+
id: `${meta.id}/object-settings`,
|
|
37
|
+
role: 'object-settings',
|
|
38
|
+
filter: (data): data is { subject: Sheet.Sheet } => Obj.instanceOf(Sheet.Sheet, data.subject),
|
|
39
|
+
component: ({ data }) => <RangeList sheet={data.subject} />,
|
|
40
|
+
}),
|
|
41
|
+
]),
|
|
42
|
+
),
|
|
43
|
+
);
|