@dxos/plugin-sheet 0.8.4-main.67995b8 → 0.8.4-main.c4373fc
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-KDGD4AVG.mjs → SheetContainer-VL34UND4.mjs} +29 -29
- package/dist/lib/browser/SheetContainer-VL34UND4.mjs.map +7 -0
- package/dist/lib/browser/{anchor-sort-VHURGBOY.mjs → anchor-sort-3N44DS5F.mjs} +5 -5
- package/dist/lib/browser/{anchor-sort-VHURGBOY.mjs.map → anchor-sort-3N44DS5F.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-SI4X5GUR.mjs → chunk-ADK2HW4A.mjs} +25 -11
- package/dist/lib/browser/chunk-ADK2HW4A.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6AKBCBL4.mjs → chunk-CSBSADPQ.mjs} +2 -4
- package/dist/lib/browser/chunk-CSBSADPQ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7HQX4NQP.mjs → chunk-SSN4HYJL.mjs} +6 -6
- package/dist/lib/browser/chunk-SSN4HYJL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-JUOVL3LE.mjs → chunk-ZJWJMX4E.mjs} +208 -203
- package/dist/lib/browser/chunk-ZJWJMX4E.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KJWZUQVA.mjs → chunk-ZMPNHFIP.mjs} +4 -4
- package/dist/lib/browser/chunk-ZMPNHFIP.mjs.map +7 -0
- package/dist/lib/browser/compute-graph-registry-MF65HGGM.mjs +21 -0
- package/dist/lib/browser/compute-graph-registry-MF65HGGM.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +12 -13
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-WOJGZMSV.mjs → intent-resolver-BQLV6IAA.mjs} +8 -8
- package/dist/lib/browser/intent-resolver-BQLV6IAA.mjs.map +7 -0
- package/dist/lib/browser/{markdown-VXMIPUQC.mjs → markdown-RMTMI237.mjs} +6 -6
- package/dist/lib/browser/markdown-RMTMI237.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-SE4HGAEH.mjs → react-surface-7ZDMQDCT.mjs} +11 -11
- package/dist/lib/browser/react-surface-7ZDMQDCT.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node-esm/{SheetContainer-RMG24NZC.mjs → SheetContainer-NWJ7L6FC.mjs} +29 -29
- package/dist/lib/node-esm/SheetContainer-NWJ7L6FC.mjs.map +7 -0
- package/dist/lib/node-esm/{anchor-sort-CTJGOPET.mjs → anchor-sort-YL2OZHYM.mjs} +5 -5
- package/dist/lib/node-esm/{anchor-sort-CTJGOPET.mjs.map → anchor-sort-YL2OZHYM.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-CADTJFAS.mjs → chunk-BZAPYBSH.mjs} +25 -11
- package/dist/lib/node-esm/chunk-BZAPYBSH.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-3K5VNYOF.mjs → chunk-H3GSD33H.mjs} +2 -4
- package/dist/lib/node-esm/chunk-H3GSD33H.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Q6UYC4G5.mjs → chunk-IK4O7FUJ.mjs} +6 -6
- package/dist/lib/node-esm/chunk-IK4O7FUJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6SK5LJ5S.mjs → chunk-LN6ZSAII.mjs} +4 -4
- package/dist/lib/node-esm/chunk-LN6ZSAII.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IFMIRCZH.mjs → chunk-YL7BVJPC.mjs} +208 -203
- package/dist/lib/node-esm/chunk-YL7BVJPC.mjs.map +7 -0
- package/dist/lib/node-esm/compute-graph-registry-P2O5LDFZ.mjs +22 -0
- package/dist/lib/node-esm/compute-graph-registry-P2O5LDFZ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +12 -13
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-PZRXBNIJ.mjs → intent-resolver-MV5ZFXAQ.mjs} +8 -8
- package/dist/lib/node-esm/intent-resolver-MV5ZFXAQ.mjs.map +7 -0
- package/dist/lib/node-esm/{markdown-4VPQJZNZ.mjs → markdown-EDIWHA3P.mjs} +6 -6
- package/dist/lib/node-esm/markdown-EDIWHA3P.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-LAU23XBH.mjs → react-surface-TUME5MM2.mjs} +11 -11
- package/dist/lib/node-esm/react-surface-TUME5MM2.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/SheetPlugin.d.ts +1 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/anchor-sort.d.ts +2 -2
- package/dist/types/src/capabilities/compute-graph-registry.d.ts +1 -1
- package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +6 -8
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.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 -3
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +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 +9 -4
- 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 +50 -3
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +11 -20
- 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 +52 -5
- 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 +86 -4
- 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 +1 -1
- package/dist/types/src/extensions/compute.d.ts.map +1 -1
- package/dist/types/src/extensions/compute.stories.d.ts +10 -13
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/index.d.ts +1 -1
- package/dist/types/src/extensions/editor/index.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/{extension.d.ts → sheet-extension.d.ts} +1 -1
- package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -0
- package/dist/types/src/extensions/editor/sheet-extension.test.d.ts +2 -0
- package/dist/types/src/extensions/editor/sheet-extension.test.d.ts.map +1 -0
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts +2 -2
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/playwright/sheet-manager.d.ts +1 -1
- package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +1 -1
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +1 -1
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +8 -8
- 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 +67 -67
- package/src/SheetPlugin.tsx +69 -61
- package/src/capabilities/anchor-sort.ts +1 -1
- package/src/capabilities/capabilities.ts +2 -2
- package/src/capabilities/compute-graph-registry.ts +9 -14
- package/src/capabilities/intent-resolver.ts +4 -4
- package/src/capabilities/markdown.ts +3 -2
- package/src/capabilities/react-surface.tsx +5 -4
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -1
- package/src/components/ComputeGraph/compute-graph.stories.tsx +15 -14
- package/src/components/GridSheet/GridSheet.stories.tsx +18 -12
- package/src/components/GridSheet/GridSheet.tsx +23 -22
- package/src/components/GridSheet/SheetCellEditor.stories.tsx +39 -41
- package/src/components/GridSheet/util.ts +6 -6
- package/src/components/RangeList/RangeList.tsx +3 -3
- package/src/components/SheetContainer/SheetContainer.stories.tsx +40 -39
- package/src/components/SheetContainer/SheetContainer.tsx +6 -2
- package/src/components/SheetContext/SheetContext.tsx +1 -1
- package/src/components/SheetToolbar/SheetToolbar.stories.tsx +19 -13
- package/src/components/SheetToolbar/SheetToolbar.tsx +16 -15
- package/src/components/SheetToolbar/align.ts +7 -6
- package/src/components/SheetToolbar/style.ts +4 -4
- package/src/extensions/compute.stories.tsx +28 -24
- package/src/extensions/compute.ts +2 -3
- package/src/extensions/editor/index.ts +1 -1
- package/src/extensions/editor/{extension.test.ts → sheet-extension.test.ts} +1 -1
- package/src/integrations/thread-ranges.ts +9 -8
- package/src/meta.ts +1 -3
- package/src/model/sheet-model.test.ts +2 -1
- package/src/model/sheet-model.ts +7 -7
- package/src/playwright/sheet-manager.ts +1 -1
- package/src/playwright/sheet.spec.ts +1 -1
- package/src/sanity.test.ts +1 -1
- package/src/testing/testing.tsx +9 -3
- package/src/types/schema.ts +1 -1
- package/src/types/types.ts +5 -4
- package/src/types/util.ts +3 -3
- package/dist/lib/browser/SheetContainer-KDGD4AVG.mjs.map +0 -7
- package/dist/lib/browser/chunk-6AKBCBL4.mjs.map +0 -7
- package/dist/lib/browser/chunk-7HQX4NQP.mjs.map +0 -7
- package/dist/lib/browser/chunk-JUOVL3LE.mjs.map +0 -7
- package/dist/lib/browser/chunk-KJWZUQVA.mjs.map +0 -7
- package/dist/lib/browser/chunk-SI4X5GUR.mjs.map +0 -7
- package/dist/lib/browser/compute-graph-registry-VG7VP7IV.mjs +0 -30
- package/dist/lib/browser/compute-graph-registry-VG7VP7IV.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-WOJGZMSV.mjs.map +0 -7
- package/dist/lib/browser/markdown-VXMIPUQC.mjs.map +0 -7
- package/dist/lib/browser/react-surface-SE4HGAEH.mjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-RMG24NZC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3K5VNYOF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CADTJFAS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IFMIRCZH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q6UYC4G5.mjs.map +0 -7
- package/dist/lib/node-esm/compute-graph-registry-3K3Q2A5T.mjs +0 -31
- package/dist/lib/node-esm/compute-graph-registry-3K3Q2A5T.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-PZRXBNIJ.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-4VPQJZNZ.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-LAU23XBH.mjs.map +0 -7
- package/dist/types/src/extensions/editor/extension.d.ts.map +0 -1
- package/dist/types/src/extensions/editor/extension.test.d.ts +0 -2
- package/dist/types/src/extensions/editor/extension.test.d.ts.map +0 -1
- /package/src/extensions/editor/{extension.ts → sheet-extension.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-sheet",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.c4373fc",
|
|
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",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"src"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@codemirror/autocomplete": "^6.
|
|
39
|
-
"@codemirror/language": "^6.
|
|
40
|
-
"@codemirror/state": "^6.
|
|
41
|
-
"@codemirror/view": "^6.
|
|
38
|
+
"@codemirror/autocomplete": "^6.19.0",
|
|
39
|
+
"@codemirror/language": "^6.11.3",
|
|
40
|
+
"@codemirror/state": "^6.5.2",
|
|
41
|
+
"@codemirror/view": "^6.38.4",
|
|
42
42
|
"@dnd-kit/core": "^6.0.5",
|
|
43
43
|
"@dnd-kit/modifiers": "^6.0.0",
|
|
44
44
|
"@dnd-kit/sortable": "^7.0.1",
|
|
@@ -48,81 +48,81 @@
|
|
|
48
48
|
"@lezer/lezer": "^1.1.2",
|
|
49
49
|
"@lezer/lr": "^1.4.2",
|
|
50
50
|
"@preact-signals/safe-react": "^0.9.0",
|
|
51
|
-
"@preact/signals-core": "^1.
|
|
51
|
+
"@preact/signals-core": "^1.12.1",
|
|
52
52
|
"@radix-ui/react-context": "1.1.1",
|
|
53
53
|
"codemirror-lang-spreadsheet": "^1.3.0",
|
|
54
54
|
"date-fns": "^3.3.1",
|
|
55
55
|
"lodash.defaultsdeep": "^4.6.1",
|
|
56
56
|
"re-resizable": "^6.9.17",
|
|
57
|
-
"react-markdown": "^
|
|
57
|
+
"react-markdown": "^10.1.0",
|
|
58
58
|
"react-resize-detector": "^11.0.1",
|
|
59
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/compute": "0.8.4-main.
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/echo": "0.8.4-main.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/lit-grid": "0.8.4-main.
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/plugin-
|
|
79
|
-
"@dxos/plugin-
|
|
80
|
-
"@dxos/plugin-
|
|
81
|
-
"@dxos/plugin-
|
|
82
|
-
"@dxos/plugin-
|
|
83
|
-
"@dxos/react-
|
|
84
|
-
"@dxos/react-
|
|
85
|
-
"@dxos/react-ui-
|
|
86
|
-
"@dxos/react-ui-
|
|
87
|
-
"@dxos/react-ui-
|
|
88
|
-
"@dxos/react-
|
|
89
|
-
"@dxos/react-
|
|
90
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
91
|
-
"@dxos/react-ui-stack": "0.8.4-main.
|
|
92
|
-
"@dxos/schema": "0.8.4-main.
|
|
93
|
-
"@dxos/util": "0.8.4-main.
|
|
59
|
+
"@dxos/app-framework": "0.8.4-main.c4373fc",
|
|
60
|
+
"@dxos/client": "0.8.4-main.c4373fc",
|
|
61
|
+
"@dxos/async": "0.8.4-main.c4373fc",
|
|
62
|
+
"@dxos/compute": "0.8.4-main.c4373fc",
|
|
63
|
+
"@dxos/crypto": "0.8.4-main.c4373fc",
|
|
64
|
+
"@dxos/context": "0.8.4-main.c4373fc",
|
|
65
|
+
"@dxos/echo": "0.8.4-main.c4373fc",
|
|
66
|
+
"@dxos/debug": "0.8.4-main.c4373fc",
|
|
67
|
+
"@dxos/functions": "0.8.4-main.c4373fc",
|
|
68
|
+
"@dxos/invariant": "0.8.4-main.c4373fc",
|
|
69
|
+
"@dxos/keys": "0.8.4-main.c4373fc",
|
|
70
|
+
"@dxos/live-object": "0.8.4-main.c4373fc",
|
|
71
|
+
"@dxos/lit-grid": "0.8.4-main.c4373fc",
|
|
72
|
+
"@dxos/log": "0.8.4-main.c4373fc",
|
|
73
|
+
"@dxos/plugin-attention": "0.8.4-main.c4373fc",
|
|
74
|
+
"@dxos/plugin-client": "0.8.4-main.c4373fc",
|
|
75
|
+
"@dxos/plugin-automation": "0.8.4-main.c4373fc",
|
|
76
|
+
"@dxos/plugin-script": "0.8.4-main.c4373fc",
|
|
77
|
+
"@dxos/plugin-markdown": "0.8.4-main.c4373fc",
|
|
78
|
+
"@dxos/plugin-space": "0.8.4-main.c4373fc",
|
|
79
|
+
"@dxos/plugin-stack": "0.8.4-main.c4373fc",
|
|
80
|
+
"@dxos/plugin-thread": "0.8.4-main.c4373fc",
|
|
81
|
+
"@dxos/plugin-deck": "0.8.4-main.c4373fc",
|
|
82
|
+
"@dxos/plugin-graph": "0.8.4-main.c4373fc",
|
|
83
|
+
"@dxos/react-ui-attention": "0.8.4-main.c4373fc",
|
|
84
|
+
"@dxos/react-ui-editor": "0.8.4-main.c4373fc",
|
|
85
|
+
"@dxos/react-ui-form": "0.8.4-main.c4373fc",
|
|
86
|
+
"@dxos/react-ui-grid": "0.8.4-main.c4373fc",
|
|
87
|
+
"@dxos/react-ui-list": "0.8.4-main.c4373fc",
|
|
88
|
+
"@dxos/react-hooks": "0.8.4-main.c4373fc",
|
|
89
|
+
"@dxos/react-client": "0.8.4-main.c4373fc",
|
|
90
|
+
"@dxos/react-ui-menu": "0.8.4-main.c4373fc",
|
|
91
|
+
"@dxos/react-ui-stack": "0.8.4-main.c4373fc",
|
|
92
|
+
"@dxos/schema": "0.8.4-main.c4373fc",
|
|
93
|
+
"@dxos/util": "0.8.4-main.c4373fc"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@effect-rx/rx-react": "0.
|
|
97
|
-
"@effect/platform": "0.
|
|
96
|
+
"@effect-rx/rx-react": "0.42.4",
|
|
97
|
+
"@effect/platform": "0.92.1",
|
|
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
|
-
"@types/react": "~
|
|
102
|
-
"@types/react-dom": "~
|
|
101
|
+
"@types/react": "~19.2.2",
|
|
102
|
+
"@types/react-dom": "~19.2.1",
|
|
103
103
|
"@types/react-window": "^1.8.8",
|
|
104
|
-
"effect": "3.
|
|
105
|
-
"react": "~
|
|
106
|
-
"react-dom": "~
|
|
107
|
-
"vite": "
|
|
108
|
-
"@dxos/echo-generator": "0.8.4-main.
|
|
109
|
-
"@dxos/lit-grid": "0.8.4-main.
|
|
110
|
-
"@dxos/random": "0.8.4-main.
|
|
111
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
112
|
-
"@dxos/react-ui
|
|
113
|
-
"@dxos/react-ui-
|
|
114
|
-
"@dxos/
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/
|
|
104
|
+
"effect": "3.18.3",
|
|
105
|
+
"react": "~19.2.0",
|
|
106
|
+
"react-dom": "~19.2.0",
|
|
107
|
+
"vite": "7.1.9",
|
|
108
|
+
"@dxos/echo-generator": "0.8.4-main.c4373fc",
|
|
109
|
+
"@dxos/lit-grid": "0.8.4-main.c4373fc",
|
|
110
|
+
"@dxos/random": "0.8.4-main.c4373fc",
|
|
111
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.c4373fc",
|
|
112
|
+
"@dxos/react-ui": "0.8.4-main.c4373fc",
|
|
113
|
+
"@dxos/react-ui-theme": "0.8.4-main.c4373fc",
|
|
114
|
+
"@dxos/storybook-utils": "0.8.4-main.c4373fc",
|
|
115
|
+
"@dxos/test-utils": "0.8.4-main.c4373fc",
|
|
116
|
+
"@dxos/react-ui-types": "0.8.4-main.c4373fc"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"@effect-rx/rx-react": "^0.34.1",
|
|
120
120
|
"@effect/platform": "^0.80.12",
|
|
121
121
|
"effect": "^3.13.3",
|
|
122
|
-
"react": "
|
|
123
|
-
"react-dom": "
|
|
124
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
125
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
122
|
+
"react": "^19.0.0",
|
|
123
|
+
"react-dom": "^19.0.0",
|
|
124
|
+
"@dxos/react-ui": "0.8.4-main.c4373fc",
|
|
125
|
+
"@dxos/react-ui-theme": "0.8.4-main.c4373fc"
|
|
126
126
|
},
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
package/src/SheetPlugin.tsx
CHANGED
|
@@ -2,75 +2,83 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Capabilities,
|
|
7
|
+
Events,
|
|
8
|
+
allOf,
|
|
9
|
+
contributes,
|
|
10
|
+
createIntent,
|
|
11
|
+
defineModule,
|
|
12
|
+
definePlugin,
|
|
13
|
+
} from '@dxos/app-framework';
|
|
14
|
+
import { AutomationEvents } from '@dxos/plugin-automation';
|
|
6
15
|
import { ClientEvents } from '@dxos/plugin-client';
|
|
7
16
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
8
17
|
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
9
18
|
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
10
19
|
|
|
11
|
-
import { AnchorSort,
|
|
20
|
+
import { AnchorSort, ComputeGraphRegistry, IntentResolver, Markdown, ReactSurface } from './capabilities';
|
|
12
21
|
import { meta } from './meta';
|
|
13
22
|
import { serializer } from './serializer';
|
|
14
23
|
import { translations } from './translations';
|
|
15
24
|
import { SheetAction, SheetType } from './types';
|
|
16
25
|
|
|
17
|
-
export const SheetPlugin = () =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
26
|
+
export const SheetPlugin = definePlugin(meta, () => [
|
|
27
|
+
defineModule({
|
|
28
|
+
id: `${meta.id}/module/compute-graph-registry`,
|
|
29
|
+
activatesOn: allOf(ClientEvents.ClientReady, AutomationEvents.ComputeRuntimeReady),
|
|
30
|
+
activate: ComputeGraphRegistry,
|
|
31
|
+
}),
|
|
32
|
+
defineModule({
|
|
33
|
+
id: `${meta.id}/module/translations`,
|
|
34
|
+
activatesOn: Events.SetupTranslations,
|
|
35
|
+
activate: () => contributes(Capabilities.Translations, translations),
|
|
36
|
+
}),
|
|
37
|
+
defineModule({
|
|
38
|
+
id: `${meta.id}/module/metadata`,
|
|
39
|
+
activatesOn: Events.SetupMetadata,
|
|
40
|
+
activate: () =>
|
|
41
|
+
contributes(Capabilities.Metadata, {
|
|
42
|
+
id: SheetType.typename,
|
|
43
|
+
metadata: {
|
|
44
|
+
label: (object: SheetType) => object.name,
|
|
45
|
+
icon: 'ph--grid-nine--regular',
|
|
46
|
+
serializer,
|
|
47
|
+
comments: 'anchored',
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
50
|
+
}),
|
|
51
|
+
defineModule({
|
|
52
|
+
id: `${meta.id}/module/object-form`,
|
|
53
|
+
activatesOn: ClientEvents.SetupSchema,
|
|
54
|
+
activate: () =>
|
|
55
|
+
contributes(
|
|
56
|
+
SpaceCapabilities.ObjectForm,
|
|
57
|
+
defineObjectForm({
|
|
58
|
+
objectSchema: SheetType,
|
|
59
|
+
getIntent: (props, options) => createIntent(SheetAction.Create, { ...props, space: options.space }),
|
|
41
60
|
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
defineModule({
|
|
67
|
-
id: `${meta.id}/module/react-surface`,
|
|
68
|
-
activatesOn: Events.SetupReactSurface,
|
|
69
|
-
activate: ReactSurface,
|
|
70
|
-
}),
|
|
71
|
-
defineModule({
|
|
72
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
73
|
-
activatesOn: Events.SetupIntentResolver,
|
|
74
|
-
activate: IntentResolver,
|
|
75
|
-
}),
|
|
76
|
-
]);
|
|
61
|
+
),
|
|
62
|
+
}),
|
|
63
|
+
defineModule({
|
|
64
|
+
id: `${meta.id}/module/markdown`,
|
|
65
|
+
activatesOn: MarkdownEvents.SetupExtensions,
|
|
66
|
+
activate: Markdown,
|
|
67
|
+
}),
|
|
68
|
+
defineModule({
|
|
69
|
+
id: `${meta.id}/module/anchor-sort`,
|
|
70
|
+
// TODO(wittjosiah): More relevant event?
|
|
71
|
+
activatesOn: Events.AppGraphReady,
|
|
72
|
+
activate: AnchorSort,
|
|
73
|
+
}),
|
|
74
|
+
defineModule({
|
|
75
|
+
id: `${meta.id}/module/react-surface`,
|
|
76
|
+
activatesOn: Events.SetupReactSurface,
|
|
77
|
+
activate: ReactSurface,
|
|
78
|
+
}),
|
|
79
|
+
defineModule({
|
|
80
|
+
id: `${meta.id}/module/intent-resolver`,
|
|
81
|
+
activatesOn: Events.SetupIntentResolver,
|
|
82
|
+
activate: IntentResolver,
|
|
83
|
+
}),
|
|
84
|
+
]);
|
|
@@ -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, {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { defineCapability } from '@dxos/app-framework';
|
|
6
6
|
import { type ComputeGraphRegistry } from '@dxos/compute';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { meta } from '../meta';
|
|
9
9
|
|
|
10
10
|
export namespace SheetCapabilities {
|
|
11
11
|
export const ComputeGraphRegistry = defineCapability<ComputeGraphRegistry>(
|
|
12
|
-
`${
|
|
12
|
+
`${meta.id}/capability/compute-graph-registry`,
|
|
13
13
|
);
|
|
14
14
|
}
|
|
@@ -2,27 +2,22 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { type PluginContext, contributes } from '@dxos/app-framework';
|
|
6
|
+
import { AutomationCapabilities } from '@dxos/plugin-automation';
|
|
7
7
|
|
|
8
8
|
import { SheetCapabilities } from './capabilities';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
return protocol === 'https:' || protocol === 'wss:';
|
|
12
|
-
};
|
|
10
|
+
// Locally declare the Automation ComputeRuntime capability by ID to avoid direct import dependency.
|
|
13
11
|
|
|
14
12
|
export default async (context: PluginContext) => {
|
|
15
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
16
|
-
let remoteFunctionUrl: string | undefined;
|
|
17
|
-
if (client.config.values.runtime?.services?.edge?.url) {
|
|
18
|
-
const url = new URL('/functions', client.config.values.runtime?.services?.edge?.url);
|
|
19
|
-
url.protocol = isSecure(url.protocol) ? 'https' : 'http';
|
|
20
|
-
remoteFunctionUrl = url.toString();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
13
|
// TODO(wittjosiah): This can probably be a module level import now due to lazy capability loading.
|
|
24
14
|
// Async import removes direct dependency on hyperformula.
|
|
25
15
|
const { defaultPlugins, ComputeGraphRegistry } = await import('@dxos/compute');
|
|
26
|
-
const
|
|
16
|
+
const computeRuntimeResolver = context.getCapability(AutomationCapabilities.ComputeRuntime);
|
|
17
|
+
|
|
18
|
+
const computeGraphRegistry = new ComputeGraphRegistry({
|
|
19
|
+
plugins: defaultPlugins,
|
|
20
|
+
computeRuntime: computeRuntimeResolver,
|
|
21
|
+
});
|
|
27
22
|
return contributes(SheetCapabilities.ComputeGraphRegistry, computeGraphRegistry);
|
|
28
23
|
};
|
|
@@ -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
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { meta } from '../meta';
|
|
8
|
+
import { SheetAction, createSheet } from '../types';
|
|
9
9
|
|
|
10
10
|
export default () =>
|
|
11
11
|
contributes(Capabilities.IntentResolver, [
|
|
@@ -26,7 +26,7 @@ export default () =>
|
|
|
26
26
|
const undoData = model[axis === 'col' ? 'dropColumn' : 'dropRow'](axisIndex);
|
|
27
27
|
return {
|
|
28
28
|
undoable: {
|
|
29
|
-
message: [`${axis} dropped label`, { ns:
|
|
29
|
+
message: [`${axis} dropped label`, { ns: meta.id }],
|
|
30
30
|
data: { ...undoData, model },
|
|
31
31
|
},
|
|
32
32
|
};
|
|
@@ -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,15 +8,16 @@ 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
|
-
import {
|
|
12
|
+
import { meta } 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({
|
|
19
|
-
id: `${
|
|
20
|
+
id: `${meta.id}/sheet`,
|
|
20
21
|
role: ['article', 'section'],
|
|
21
22
|
filter: (data): data is { subject: SheetType } =>
|
|
22
23
|
Obj.instanceOf(SheetType, data.subject) && !!getSpace(data.subject),
|
|
@@ -31,7 +32,7 @@ export default () =>
|
|
|
31
32
|
},
|
|
32
33
|
}),
|
|
33
34
|
createSurface({
|
|
34
|
-
id: `${
|
|
35
|
+
id: `${meta.id}/object-settings`,
|
|
35
36
|
role: 'object-settings',
|
|
36
37
|
filter: (data): data is { subject: SheetType } => Obj.instanceOf(SheetType, data.subject),
|
|
37
38
|
component: ({ data }) => <RangeList sheet={data.subject} />,
|
|
@@ -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';
|
|
@@ -2,28 +2,27 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import '@
|
|
6
|
-
|
|
7
|
-
import { type Meta } from '@storybook/react-vite';
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
8
6
|
import React, { useEffect, useRef, useState } from 'react';
|
|
9
7
|
|
|
10
8
|
import { testFunctionPlugins } from '@dxos/compute/testing';
|
|
11
|
-
import {
|
|
9
|
+
import { Filter, Obj } from '@dxos/echo';
|
|
12
10
|
import { FunctionType } from '@dxos/functions';
|
|
13
11
|
import { useSpace } from '@dxos/react-client/echo';
|
|
14
12
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
15
|
-
import {
|
|
13
|
+
import { Button, Input, Toolbar } from '@dxos/react-ui';
|
|
14
|
+
import { withTheme } from '@dxos/react-ui/testing';
|
|
16
15
|
import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
|
|
17
|
-
import { withTheme } from '@dxos/storybook-utils';
|
|
18
16
|
|
|
19
|
-
import { useComputeGraph } from './ComputeGraphContextProvider';
|
|
20
17
|
import { useSheetModel } from '../../model';
|
|
21
18
|
import { withComputeGraphDecorator } from '../../testing';
|
|
22
|
-
import {
|
|
19
|
+
import { SheetType, createSheet } from '../../types';
|
|
20
|
+
|
|
21
|
+
import { useComputeGraph } from './ComputeGraphContextProvider';
|
|
23
22
|
|
|
24
23
|
const FUNCTION_NAME = 'TEST';
|
|
25
24
|
|
|
26
|
-
const
|
|
25
|
+
const DefaultStory = () => {
|
|
27
26
|
const space = useSpace();
|
|
28
27
|
const graph = useComputeGraph(space);
|
|
29
28
|
const [sheet, setSheet] = useState<SheetType>();
|
|
@@ -82,16 +81,18 @@ const Story = () => {
|
|
|
82
81
|
);
|
|
83
82
|
};
|
|
84
83
|
|
|
85
|
-
export const Default = {};
|
|
84
|
+
export const Default: Story = {};
|
|
86
85
|
|
|
87
|
-
const meta
|
|
86
|
+
const meta = {
|
|
88
87
|
title: 'plugins/plugin-sheet/functions',
|
|
88
|
+
render: DefaultStory,
|
|
89
89
|
decorators: [
|
|
90
|
+
withTheme,
|
|
90
91
|
withClientProvider({ types: [FunctionType, SheetType], createIdentity: true, createSpace: true }),
|
|
91
92
|
withComputeGraphDecorator({ plugins: testFunctionPlugins }),
|
|
92
|
-
withTheme,
|
|
93
93
|
],
|
|
94
|
-
|
|
95
|
-
};
|
|
94
|
+
} satisfies Meta<typeof DefaultStory>;
|
|
96
95
|
|
|
97
96
|
export default meta;
|
|
97
|
+
|
|
98
|
+
type Story = StoryObj<typeof meta>;
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import '@
|
|
6
|
-
|
|
7
|
-
import { type Meta } from '@storybook/react-vite';
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
8
6
|
import React from 'react';
|
|
9
7
|
|
|
10
8
|
import { IntentPlugin } from '@dxos/app-framework';
|
|
11
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
|
+
import { testFunctionPlugins } from '@dxos/compute/testing';
|
|
12
11
|
import { useSpace } from '@dxos/react-client/echo';
|
|
13
12
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
14
|
-
import { withTheme
|
|
13
|
+
import { withTheme } from '@dxos/react-ui/testing';
|
|
15
14
|
|
|
16
|
-
import { GridSheet } from './GridSheet';
|
|
17
15
|
import { createTestCells, useTestSheet, withComputeGraphDecorator } from '../../testing';
|
|
18
16
|
import { translations } from '../../translations';
|
|
19
17
|
import { SheetType } from '../../types';
|
|
20
18
|
import { useComputeGraph } from '../ComputeGraph';
|
|
21
19
|
import { SheetProvider } from '../SheetContext';
|
|
22
20
|
|
|
21
|
+
import { GridSheet } from './GridSheet';
|
|
22
|
+
|
|
23
23
|
export const Basic = () => {
|
|
24
24
|
const space = useSpace();
|
|
25
25
|
const graph = useComputeGraph(space);
|
|
@@ -30,24 +30,30 @@ export const Basic = () => {
|
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<SheetProvider graph={graph} sheet={sheet} ignoreAttention>
|
|
33
|
-
<
|
|
33
|
+
<div role='none' className='grid bs-full is-full'>
|
|
34
|
+
<GridSheet />
|
|
35
|
+
</div>
|
|
34
36
|
</SheetProvider>
|
|
35
37
|
);
|
|
36
38
|
};
|
|
37
39
|
|
|
38
|
-
const meta
|
|
40
|
+
const meta = {
|
|
39
41
|
title: 'plugins/plugin-sheet/GridSheet',
|
|
40
42
|
component: GridSheet,
|
|
41
43
|
decorators: [
|
|
42
|
-
withClientProvider({ types: [SheetType], createSpace: true }),
|
|
43
|
-
withComputeGraphDecorator(),
|
|
44
44
|
withTheme,
|
|
45
|
-
|
|
45
|
+
withClientProvider({ types: [SheetType], createSpace: true }),
|
|
46
|
+
withComputeGraphDecorator({ plugins: testFunctionPlugins }),
|
|
46
47
|
withPluginManager({
|
|
47
48
|
plugins: [IntentPlugin()],
|
|
48
49
|
}),
|
|
49
50
|
],
|
|
50
|
-
parameters: {
|
|
51
|
-
|
|
51
|
+
parameters: {
|
|
52
|
+
layout: 'fullscreen',
|
|
53
|
+
translations,
|
|
54
|
+
},
|
|
55
|
+
} satisfies Meta<typeof GridSheet>;
|
|
52
56
|
|
|
53
57
|
export default meta;
|
|
58
|
+
|
|
59
|
+
type Story = StoryObj<typeof meta>;
|