@dxos/plugin-debug 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8
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/{DebugGraph-6VMEOKEV.mjs → DebugGraph-7HXJ2PS2.mjs} +4 -3
- package/dist/lib/browser/{DebugGraph-6VMEOKEV.mjs.map → DebugGraph-7HXJ2PS2.mjs.map} +4 -4
- package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs +35 -0
- package/dist/lib/browser/DebugObjectPanel-KXVFOGU6.mjs.map +7 -0
- package/dist/lib/browser/DebugSettings-XNAKCV2F.mjs +174 -0
- package/dist/lib/browser/DebugSettings-XNAKCV2F.mjs.map +7 -0
- package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs +45 -0
- package/dist/lib/browser/DebugSpaceObjectsPanel-SIK72DXV.mjs.map +7 -0
- package/dist/lib/browser/DebugStatus-COQGH37G.mjs +125 -0
- package/dist/lib/browser/DebugStatus-COQGH37G.mjs.map +7 -0
- package/dist/lib/browser/{DevtoolsOverviewContainer-77PKFLYV.mjs → DevtoolsOverviewContainer-C75NFVER.mjs} +6 -5
- package/dist/lib/browser/DevtoolsOverviewContainer-C75NFVER.mjs.map +7 -0
- package/dist/lib/browser/{SpaceGenerator-H33AEFGC.mjs → SpaceGenerator-Q2GH6S6D.mjs} +313 -287
- package/dist/lib/browser/SpaceGenerator-Q2GH6S6D.mjs.map +7 -0
- package/dist/lib/browser/Wireframe-KAGOKEFW.mjs +53 -0
- package/dist/lib/browser/Wireframe-KAGOKEFW.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-LV73R7HR.mjs → app-graph-builder-FU4BCDDC.mjs} +80 -85
- package/dist/lib/browser/app-graph-builder-FU4BCDDC.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4UFQXPP7.mjs → chunk-Q37TZWW5.mjs} +4 -4
- package/dist/lib/browser/chunk-Q37TZWW5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-A5H5GRV6.mjs → chunk-ZOM2FBHQ.mjs} +2 -2
- package/dist/lib/browser/{chunk-A5H5GRV6.mjs.map → chunk-ZOM2FBHQ.mjs.map} +1 -1
- package/dist/lib/browser/index.mjs +25 -18
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-FSWBT3MH.mjs → react-context-5ENRJEB2.mjs} +4 -4
- package/dist/lib/browser/react-context-5ENRJEB2.mjs.map +7 -0
- package/dist/lib/browser/react-surface-VD6RD6PL.mjs +427 -0
- package/dist/lib/browser/react-surface-VD6RD6PL.mjs.map +7 -0
- package/dist/lib/browser/{settings-KA4GN73K.mjs → settings-XXFUM3QJ.mjs} +6 -5
- package/dist/lib/browser/settings-XXFUM3QJ.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +6 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts +1 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +6 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +3 -2
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
- package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
- package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
- package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +1 -1
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
- package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -10
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components → containers/DebugGraph}/DebugGraph.d.ts +0 -1
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts +3 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DebugObjectPanel}/DebugObjectPanel.d.ts +1 -1
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +3 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DebugSettings}/DebugSettings.d.ts +4 -2
- package/dist/types/src/containers/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSettings/index.d.ts +3 -0
- package/dist/types/src/containers/DebugSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +3 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +3 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
- package/dist/types/src/containers/DebugStatus/index.d.ts +3 -0
- package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
- package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +3 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +3 -0
- package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
- package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
- package/dist/types/src/containers/Wireframe/index.d.ts +3 -0
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +34 -34
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +66 -66
- package/src/DebugPlugin.tsx +19 -8
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +74 -75
- package/src/capabilities/react-context/react-context.tsx +2 -2
- package/src/capabilities/react-surface/react-surface.tsx +106 -102
- package/src/capabilities/settings/settings.ts +3 -2
- package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +2 -2
- package/src/components/SchemaTable/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +6 -7
- package/src/components/SpaceGenerator/index.ts +2 -3
- package/src/components/SpaceGenerator/presets.ts +41 -37
- package/src/components/index.ts +2 -13
- package/src/{components → containers/DebugGraph}/DebugGraph.tsx +0 -2
- package/src/containers/DebugGraph/index.ts +7 -0
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +47 -0
- package/src/containers/DebugObjectPanel/index.ts +7 -0
- package/src/{components → containers/DebugSettings}/DebugSettings.tsx +38 -22
- package/src/containers/DebugSettings/index.ts +7 -0
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +55 -0
- package/src/containers/DebugSpaceObjectsPanel/index.ts +7 -0
- package/src/containers/DebugStatus/index.ts +7 -0
- package/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.tsx +2 -4
- package/src/containers/DevtoolsOverviewContainer/index.ts +7 -0
- package/src/{components → containers}/SpaceGenerator/SpaceGenerator.tsx +38 -38
- package/src/containers/SpaceGenerator/index.ts +7 -0
- package/src/{components → containers/Wireframe}/Wireframe.tsx +2 -2
- package/src/containers/Wireframe/index.ts +7 -0
- package/src/containers/index.ts +14 -0
- package/src/meta.ts +1 -1
- package/src/translations.ts +2 -0
- package/src/types.ts +2 -3
- package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-H33AEFGC.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-LV73R7HR.mjs.map +0 -7
- package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
- package/dist/lib/browser/react-context-FSWBT3MH.mjs.map +0 -7
- package/dist/lib/browser/react-surface-2N6CPSHR.mjs +0 -757
- package/dist/lib/browser/react-surface-2N6CPSHR.mjs.map +0 -7
- package/dist/lib/browser/settings-KA4GN73K.mjs.map +0 -7
- package/dist/types/src/components/Container.d.ts +0 -5
- package/dist/types/src/components/Container.d.ts.map +0 -1
- package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
- package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
- package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
- package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -15
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
- package/dist/types/src/components/Wireframe.d.ts.map +0 -1
- package/src/components/Container.tsx +0 -15
- package/src/components/DebugObjectPanel.tsx +0 -33
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -54
- /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
- /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
- /package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts +0 -0
- /package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +0 -0
- /package/src/{components → containers/DebugStatus}/DebugStatus.tsx +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-debug",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.c351d160a8",
|
|
4
4
|
"description": "DXOS Surface plugin for testing.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"browser": "./dist/lib/browser/index.mjs",
|
|
18
17
|
"source": "./src/index.ts",
|
|
19
|
-
"types": "./dist/types/src/index.d.ts"
|
|
18
|
+
"types": "./dist/types/src/index.d.ts",
|
|
19
|
+
"browser": "./dist/lib/browser/index.mjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -31,84 +31,84 @@
|
|
|
31
31
|
"@antv/graphlib": "^2.0.4",
|
|
32
32
|
"@antv/layout": "^1.2.13",
|
|
33
33
|
"@automerge/automerge": "3.2.3",
|
|
34
|
-
"@effect-atom/atom": "^0.
|
|
35
|
-
"@effect-atom/atom-react": "^0.
|
|
34
|
+
"@effect-atom/atom": "^0.5.1",
|
|
35
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
36
36
|
"@tldraw/tldraw": "^3.0.0",
|
|
37
37
|
"date-fns": "^3.3.1",
|
|
38
38
|
"react-json-tree": "^0.18.0",
|
|
39
39
|
"react-resize-detector": "^11.0.1",
|
|
40
40
|
"workerize-loader": "^2.0.2",
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/app-
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/config": "0.8.4-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/echo-generator": "0.8.4-main.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/keys": "0.8.4-main.
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/operation": "0.8.4-main.
|
|
60
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
61
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
62
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/plugin-markdown": "0.8.4-main.
|
|
67
|
-
"@dxos/plugin-sheet": "0.8.4-main.
|
|
68
|
-
"@dxos/plugin-sketch": "0.8.4-main.
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/plugin-
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/react-hooks": "0.8.4-main.
|
|
77
|
-
"@dxos/react-ui-
|
|
78
|
-
"@dxos/react-ui-
|
|
79
|
-
"@dxos/react-ui-canvas-
|
|
80
|
-
"@dxos/react-ui-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/react-ui-table": "0.8.4-main.
|
|
86
|
-
"@dxos/types": "0.8.4-main.
|
|
87
|
-
"@dxos/util": "0.8.4-main.
|
|
88
|
-
"@dxos/
|
|
41
|
+
"@dxos/app-framework": "0.8.4-main.c351d160a8",
|
|
42
|
+
"@dxos/app-toolkit": "0.8.4-main.c351d160a8",
|
|
43
|
+
"@dxos/async": "0.8.4-main.c351d160a8",
|
|
44
|
+
"@dxos/conductor": "0.8.4-main.c351d160a8",
|
|
45
|
+
"@dxos/blueprints": "0.8.4-main.c351d160a8",
|
|
46
|
+
"@dxos/client-services": "0.8.4-main.c351d160a8",
|
|
47
|
+
"@dxos/compute": "0.8.4-main.c351d160a8",
|
|
48
|
+
"@dxos/config": "0.8.4-main.c351d160a8",
|
|
49
|
+
"@dxos/devtools": "0.8.4-main.c351d160a8",
|
|
50
|
+
"@dxos/echo": "0.8.4-main.c351d160a8",
|
|
51
|
+
"@dxos/echo-generator": "0.8.4-main.c351d160a8",
|
|
52
|
+
"@dxos/context": "0.8.4-main.c351d160a8",
|
|
53
|
+
"@dxos/assistant-toolkit": "0.8.4-main.c351d160a8",
|
|
54
|
+
"@dxos/effect": "0.8.4-main.c351d160a8",
|
|
55
|
+
"@dxos/echo-pipeline": "0.8.4-main.c351d160a8",
|
|
56
|
+
"@dxos/keys": "0.8.4-main.c351d160a8",
|
|
57
|
+
"@dxos/invariant": "0.8.4-main.c351d160a8",
|
|
58
|
+
"@dxos/log": "0.8.4-main.c351d160a8",
|
|
59
|
+
"@dxos/operation": "0.8.4-main.c351d160a8",
|
|
60
|
+
"@dxos/plugin-client": "0.8.4-main.c351d160a8",
|
|
61
|
+
"@dxos/plugin-deck": "0.8.4-main.c351d160a8",
|
|
62
|
+
"@dxos/plugin-graph": "0.8.4-main.c351d160a8",
|
|
63
|
+
"@dxos/plugin-inbox": "0.8.4-main.c351d160a8",
|
|
64
|
+
"@dxos/plugin-script": "0.8.4-main.c351d160a8",
|
|
65
|
+
"@dxos/plugin-meeting": "0.8.4-main.c351d160a8",
|
|
66
|
+
"@dxos/plugin-markdown": "0.8.4-main.c351d160a8",
|
|
67
|
+
"@dxos/plugin-sheet": "0.8.4-main.c351d160a8",
|
|
68
|
+
"@dxos/plugin-sketch": "0.8.4-main.c351d160a8",
|
|
69
|
+
"@dxos/plugin-space": "0.8.4-main.c351d160a8",
|
|
70
|
+
"@dxos/plugin-table": "0.8.4-main.c351d160a8",
|
|
71
|
+
"@dxos/plugin-status-bar": "0.8.4-main.c351d160a8",
|
|
72
|
+
"@dxos/protocols": "0.8.4-main.c351d160a8",
|
|
73
|
+
"@dxos/plugin-theme": "0.8.4-main.c351d160a8",
|
|
74
|
+
"@dxos/random": "0.8.4-main.c351d160a8",
|
|
75
|
+
"@dxos/react-client": "0.8.4-main.c351d160a8",
|
|
76
|
+
"@dxos/react-hooks": "0.8.4-main.c351d160a8",
|
|
77
|
+
"@dxos/react-ui-attention": "0.8.4-main.c351d160a8",
|
|
78
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.c351d160a8",
|
|
79
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.c351d160a8",
|
|
80
|
+
"@dxos/react-ui-form": "0.8.4-main.c351d160a8",
|
|
81
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.c351d160a8",
|
|
82
|
+
"@dxos/react-ui-stack": "0.8.4-main.c351d160a8",
|
|
83
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.c351d160a8",
|
|
84
|
+
"@dxos/schema": "0.8.4-main.c351d160a8",
|
|
85
|
+
"@dxos/react-ui-table": "0.8.4-main.c351d160a8",
|
|
86
|
+
"@dxos/types": "0.8.4-main.c351d160a8",
|
|
87
|
+
"@dxos/util": "0.8.4-main.c351d160a8",
|
|
88
|
+
"@dxos/functions": "0.8.4-main.c351d160a8"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@effect-atom/atom-react": "^0.
|
|
92
|
-
"@effect/platform": "0.
|
|
91
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
92
|
+
"@effect/platform": "0.94.4",
|
|
93
93
|
"@types/react": "~19.2.7",
|
|
94
94
|
"@types/react-dom": "~19.2.3",
|
|
95
|
-
"effect": "3.19.
|
|
95
|
+
"effect": "3.19.16",
|
|
96
96
|
"react": "~19.2.3",
|
|
97
97
|
"react-dom": "~19.2.3",
|
|
98
|
-
"vite": "7.1.
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
101
|
-
"@dxos/
|
|
98
|
+
"vite": "^7.1.11",
|
|
99
|
+
"@dxos/storybook-utils": "0.8.4-main.c351d160a8",
|
|
100
|
+
"@dxos/ui-theme": "0.8.4-main.c351d160a8",
|
|
101
|
+
"@dxos/react-ui": "0.8.4-main.c351d160a8"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@effect-atom/atom-react": "^0.
|
|
105
|
-
"@effect/platform": "0.
|
|
106
|
-
"effect": "3.19.
|
|
104
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
105
|
+
"@effect/platform": "0.94.4",
|
|
106
|
+
"effect": "3.19.16",
|
|
107
107
|
"react": "~19.2.3",
|
|
108
108
|
"react-dom": "~19.2.3",
|
|
109
|
-
"@dxos/ui
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/
|
|
109
|
+
"@dxos/react-ui": "0.8.4-main.c351d160a8",
|
|
110
|
+
"@dxos/random": "0.8.4-main.c351d160a8",
|
|
111
|
+
"@dxos/ui-theme": "0.8.4-main.c351d160a8"
|
|
112
112
|
},
|
|
113
113
|
"publishConfig": {
|
|
114
114
|
"access": "public"
|
package/src/DebugPlugin.tsx
CHANGED
|
@@ -4,25 +4,36 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
9
|
+
import { type LogBuffer } from '@dxos/log';
|
|
8
10
|
import { type Client } from '@dxos/react-client';
|
|
9
11
|
|
|
10
12
|
import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';
|
|
11
13
|
import { meta } from './meta';
|
|
12
14
|
import { translations } from './translations';
|
|
13
15
|
|
|
16
|
+
export type DebugPluginOptions = {
|
|
17
|
+
/** Shared log buffer for capturing and downloading logs. */
|
|
18
|
+
logBuffer: LogBuffer;
|
|
19
|
+
};
|
|
20
|
+
|
|
14
21
|
// TODO(wittjosiah): Factor out DevtoolsPlugin?
|
|
15
|
-
export const DebugPlugin = Plugin.define(meta).pipe(
|
|
22
|
+
export const DebugPlugin = Plugin.define<DebugPluginOptions>(meta).pipe(
|
|
23
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
24
|
+
AppPlugin.addReactContextModule({ activate: ReactContext }),
|
|
25
|
+
AppPlugin.addSettingsModule({ activate: DebugSettings }),
|
|
26
|
+
Plugin.addModule(({ logBuffer }) => ({
|
|
27
|
+
id: Capability.getModuleTag(ReactSurface) ?? 'surfaces',
|
|
28
|
+
activatesOn: ActivationEvents.SetupReactSurface,
|
|
29
|
+
activate: () => ReactSurface({ logBuffer }),
|
|
30
|
+
})),
|
|
31
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
16
32
|
Plugin.addModule({
|
|
17
33
|
id: 'setup-devtools',
|
|
18
|
-
activatesOn:
|
|
34
|
+
activatesOn: ActivationEvents.Startup,
|
|
19
35
|
activate: () => Effect.sync(() => setupDevtools()),
|
|
20
36
|
}),
|
|
21
|
-
Common.Plugin.addSettingsModule({ activate: DebugSettings }),
|
|
22
|
-
Common.Plugin.addTranslationsModule({ translations }),
|
|
23
|
-
Common.Plugin.addReactContextModule({ activate: ReactContext }),
|
|
24
|
-
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
25
|
-
Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
26
37
|
Plugin.make,
|
|
27
38
|
);
|
|
28
39
|
|
|
@@ -4,38 +4,38 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities, getSpaceIdFromPath } from '@dxos/app-toolkit';
|
|
8
9
|
import { Obj } from '@dxos/echo';
|
|
9
10
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
10
|
-
import {
|
|
11
|
+
import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
11
12
|
import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
12
13
|
import { meta as spaceMeta } from '@dxos/plugin-space';
|
|
13
|
-
import { parseId } from '@dxos/react-client/echo';
|
|
14
14
|
|
|
15
15
|
import { meta } from '../../meta';
|
|
16
16
|
import { Devtools } from '../../types';
|
|
17
17
|
|
|
18
|
-
const DEVTOOLS_TYPE = `${meta.id}
|
|
18
|
+
const DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
19
19
|
|
|
20
20
|
export default Capability.makeModule(
|
|
21
21
|
Effect.fnUntraced(function* () {
|
|
22
22
|
const extensions = yield* Effect.all([
|
|
23
23
|
// Devtools node.
|
|
24
24
|
GraphBuilder.createExtension({
|
|
25
|
-
id: `${meta.id}
|
|
26
|
-
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}
|
|
25
|
+
id: `${meta.id}.devtools`,
|
|
26
|
+
match: NodeMatcher.whenAny(NodeMatcher.whenRoot, NodeMatcher.whenNodeType(`${spaceMeta.id}.settings`)),
|
|
27
27
|
connector: (node, get) =>
|
|
28
28
|
Effect.gen(function* () {
|
|
29
29
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
30
|
-
const layoutAtom = get(yield* Capability.atom(
|
|
30
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
31
31
|
const layout = layoutAtom ? get(layoutAtom) : undefined;
|
|
32
|
-
const
|
|
32
|
+
const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;
|
|
33
33
|
const space = spaceId ? client.spaces.get(spaceId) : undefined;
|
|
34
|
-
const [graph] = get(yield* Capability.atom(
|
|
34
|
+
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
35
35
|
|
|
36
36
|
return [
|
|
37
37
|
{
|
|
38
|
-
id:
|
|
38
|
+
id: Devtools.id,
|
|
39
39
|
data: null,
|
|
40
40
|
type: DEVTOOLS_TYPE,
|
|
41
41
|
properties: {
|
|
@@ -45,12 +45,12 @@ export default Capability.makeModule(
|
|
|
45
45
|
position: 'fallback',
|
|
46
46
|
},
|
|
47
47
|
nodes: [
|
|
48
|
-
...(space && node.type === `${spaceMeta.id}
|
|
48
|
+
...(space && node.type === `${spaceMeta.id}.settings`
|
|
49
49
|
? [
|
|
50
50
|
{
|
|
51
|
-
id:
|
|
52
|
-
type: `${meta.id}
|
|
53
|
-
data: { space, type: `${meta.id}
|
|
51
|
+
id: 'debug',
|
|
52
|
+
type: `${meta.id}.space`,
|
|
53
|
+
data: { space, type: `${meta.id}.space` },
|
|
54
54
|
properties: {
|
|
55
55
|
label: ['debug label', { ns: meta.id }],
|
|
56
56
|
icon: 'ph--bug--regular',
|
|
@@ -59,8 +59,8 @@ export default Capability.makeModule(
|
|
|
59
59
|
]
|
|
60
60
|
: []),
|
|
61
61
|
{
|
|
62
|
-
id:
|
|
63
|
-
type: `${meta.id}
|
|
62
|
+
id: 'app-graph',
|
|
63
|
+
type: `${meta.id}.app-graph`,
|
|
64
64
|
data: { graph: graph?.graph, root: space ? space.id : Node.RootId },
|
|
65
65
|
properties: {
|
|
66
66
|
label: ['debug app graph label', { ns: meta.id }],
|
|
@@ -68,7 +68,7 @@ export default Capability.makeModule(
|
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
id:
|
|
71
|
+
id: Devtools.Client.id,
|
|
72
72
|
data: null,
|
|
73
73
|
type: DEVTOOLS_TYPE,
|
|
74
74
|
properties: {
|
|
@@ -77,7 +77,7 @@ export default Capability.makeModule(
|
|
|
77
77
|
},
|
|
78
78
|
nodes: [
|
|
79
79
|
{
|
|
80
|
-
id:
|
|
80
|
+
id: Devtools.Client.Config,
|
|
81
81
|
data: Devtools.Client.Config,
|
|
82
82
|
type: DEVTOOLS_TYPE,
|
|
83
83
|
properties: {
|
|
@@ -86,7 +86,7 @@ export default Capability.makeModule(
|
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
id:
|
|
89
|
+
id: Devtools.Client.Storage,
|
|
90
90
|
data: Devtools.Client.Storage,
|
|
91
91
|
type: DEVTOOLS_TYPE,
|
|
92
92
|
properties: {
|
|
@@ -95,7 +95,7 @@ export default Capability.makeModule(
|
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
id:
|
|
98
|
+
id: Devtools.Client.Logs,
|
|
99
99
|
data: Devtools.Client.Logs,
|
|
100
100
|
type: DEVTOOLS_TYPE,
|
|
101
101
|
properties: {
|
|
@@ -104,7 +104,7 @@ export default Capability.makeModule(
|
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
id:
|
|
107
|
+
id: Devtools.Client.Diagnostics,
|
|
108
108
|
data: Devtools.Client.Diagnostics,
|
|
109
109
|
type: DEVTOOLS_TYPE,
|
|
110
110
|
properties: {
|
|
@@ -113,7 +113,7 @@ export default Capability.makeModule(
|
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
id:
|
|
116
|
+
id: Devtools.Client.Tracing,
|
|
117
117
|
data: Devtools.Client.Tracing,
|
|
118
118
|
type: DEVTOOLS_TYPE,
|
|
119
119
|
properties: {
|
|
@@ -124,7 +124,7 @@ export default Capability.makeModule(
|
|
|
124
124
|
],
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
id:
|
|
127
|
+
id: Devtools.Halo.id,
|
|
128
128
|
data: null,
|
|
129
129
|
type: DEVTOOLS_TYPE,
|
|
130
130
|
properties: {
|
|
@@ -133,7 +133,7 @@ export default Capability.makeModule(
|
|
|
133
133
|
},
|
|
134
134
|
nodes: [
|
|
135
135
|
{
|
|
136
|
-
id:
|
|
136
|
+
id: Devtools.Halo.Identity,
|
|
137
137
|
data: Devtools.Halo.Identity,
|
|
138
138
|
type: DEVTOOLS_TYPE,
|
|
139
139
|
properties: {
|
|
@@ -142,7 +142,7 @@ export default Capability.makeModule(
|
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
id:
|
|
145
|
+
id: Devtools.Halo.Devices,
|
|
146
146
|
data: Devtools.Halo.Devices,
|
|
147
147
|
type: DEVTOOLS_TYPE,
|
|
148
148
|
properties: {
|
|
@@ -151,7 +151,7 @@ export default Capability.makeModule(
|
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
id:
|
|
154
|
+
id: Devtools.Halo.Keyring,
|
|
155
155
|
data: Devtools.Halo.Keyring,
|
|
156
156
|
type: DEVTOOLS_TYPE,
|
|
157
157
|
properties: {
|
|
@@ -160,7 +160,7 @@ export default Capability.makeModule(
|
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
id:
|
|
163
|
+
id: Devtools.Halo.Credentials,
|
|
164
164
|
data: Devtools.Halo.Credentials,
|
|
165
165
|
type: DEVTOOLS_TYPE,
|
|
166
166
|
properties: {
|
|
@@ -171,7 +171,7 @@ export default Capability.makeModule(
|
|
|
171
171
|
],
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
id:
|
|
174
|
+
id: Devtools.Echo.id,
|
|
175
175
|
data: null,
|
|
176
176
|
type: DEVTOOLS_TYPE,
|
|
177
177
|
properties: {
|
|
@@ -180,7 +180,7 @@ export default Capability.makeModule(
|
|
|
180
180
|
},
|
|
181
181
|
nodes: [
|
|
182
182
|
{
|
|
183
|
-
id:
|
|
183
|
+
id: Devtools.Echo.Spaces,
|
|
184
184
|
data: Devtools.Echo.Spaces,
|
|
185
185
|
type: DEVTOOLS_TYPE,
|
|
186
186
|
properties: {
|
|
@@ -189,7 +189,7 @@ export default Capability.makeModule(
|
|
|
189
189
|
},
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
id:
|
|
192
|
+
id: Devtools.Echo.Space,
|
|
193
193
|
data: Devtools.Echo.Space,
|
|
194
194
|
type: DEVTOOLS_TYPE,
|
|
195
195
|
properties: {
|
|
@@ -198,7 +198,7 @@ export default Capability.makeModule(
|
|
|
198
198
|
},
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
id:
|
|
201
|
+
id: Devtools.Echo.Feeds,
|
|
202
202
|
data: Devtools.Echo.Feeds,
|
|
203
203
|
type: DEVTOOLS_TYPE,
|
|
204
204
|
properties: {
|
|
@@ -207,7 +207,7 @@ export default Capability.makeModule(
|
|
|
207
207
|
},
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
id:
|
|
210
|
+
id: Devtools.Echo.Objects,
|
|
211
211
|
data: Devtools.Echo.Objects,
|
|
212
212
|
type: DEVTOOLS_TYPE,
|
|
213
213
|
properties: {
|
|
@@ -216,7 +216,7 @@ export default Capability.makeModule(
|
|
|
216
216
|
},
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
|
-
id:
|
|
219
|
+
id: Devtools.Echo.Schema,
|
|
220
220
|
data: Devtools.Echo.Schema,
|
|
221
221
|
type: DEVTOOLS_TYPE,
|
|
222
222
|
properties: {
|
|
@@ -225,7 +225,7 @@ export default Capability.makeModule(
|
|
|
225
225
|
},
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
id:
|
|
228
|
+
id: Devtools.Echo.Automerge,
|
|
229
229
|
data: Devtools.Echo.Automerge,
|
|
230
230
|
type: DEVTOOLS_TYPE,
|
|
231
231
|
properties: {
|
|
@@ -234,7 +234,7 @@ export default Capability.makeModule(
|
|
|
234
234
|
},
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
|
-
id:
|
|
237
|
+
id: Devtools.Echo.Queues,
|
|
238
238
|
data: Devtools.Echo.Queues,
|
|
239
239
|
type: DEVTOOLS_TYPE,
|
|
240
240
|
properties: {
|
|
@@ -243,7 +243,7 @@ export default Capability.makeModule(
|
|
|
243
243
|
},
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
id:
|
|
246
|
+
id: Devtools.Echo.Members,
|
|
247
247
|
data: Devtools.Echo.Members,
|
|
248
248
|
type: DEVTOOLS_TYPE,
|
|
249
249
|
properties: {
|
|
@@ -252,7 +252,7 @@ export default Capability.makeModule(
|
|
|
252
252
|
},
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
id:
|
|
255
|
+
id: Devtools.Echo.Metadata,
|
|
256
256
|
data: Devtools.Echo.Metadata,
|
|
257
257
|
type: DEVTOOLS_TYPE,
|
|
258
258
|
properties: {
|
|
@@ -263,7 +263,7 @@ export default Capability.makeModule(
|
|
|
263
263
|
],
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
id:
|
|
266
|
+
id: Devtools.Mesh.id,
|
|
267
267
|
data: null,
|
|
268
268
|
type: DEVTOOLS_TYPE,
|
|
269
269
|
properties: {
|
|
@@ -272,7 +272,7 @@ export default Capability.makeModule(
|
|
|
272
272
|
},
|
|
273
273
|
nodes: [
|
|
274
274
|
{
|
|
275
|
-
id:
|
|
275
|
+
id: Devtools.Mesh.Signal,
|
|
276
276
|
data: Devtools.Mesh.Signal,
|
|
277
277
|
type: DEVTOOLS_TYPE,
|
|
278
278
|
properties: {
|
|
@@ -281,7 +281,7 @@ export default Capability.makeModule(
|
|
|
281
281
|
},
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
|
-
id:
|
|
284
|
+
id: Devtools.Mesh.Swarm,
|
|
285
285
|
data: Devtools.Mesh.Swarm,
|
|
286
286
|
type: DEVTOOLS_TYPE,
|
|
287
287
|
properties: {
|
|
@@ -290,7 +290,7 @@ export default Capability.makeModule(
|
|
|
290
290
|
},
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
|
-
id:
|
|
293
|
+
id: Devtools.Mesh.Network,
|
|
294
294
|
data: Devtools.Mesh.Network,
|
|
295
295
|
type: DEVTOOLS_TYPE,
|
|
296
296
|
properties: {
|
|
@@ -300,29 +300,8 @@ export default Capability.makeModule(
|
|
|
300
300
|
},
|
|
301
301
|
],
|
|
302
302
|
},
|
|
303
|
-
// TODO(wittjosiah): Remove?
|
|
304
|
-
// {
|
|
305
|
-
// id: `${prefix}-${Devtools.Agent.id}`,
|
|
306
|
-
// data: null,
|
|
307
|
-
// type: DEVTOOLS_TYPE,
|
|
308
|
-
// properties: {
|
|
309
|
-
// label: ['agent label', { ns: meta.id }],
|
|
310
|
-
// icon: 'ph--robot--regular',
|
|
311
|
-
// },
|
|
312
|
-
// nodes: [
|
|
313
|
-
// {
|
|
314
|
-
// id: `${prefix}-${Devtools.Agent.Dashboard}`,
|
|
315
|
-
// data: Devtools.Agent.Dashboard,
|
|
316
|
-
// type: DEVTOOLS_TYPE,
|
|
317
|
-
// properties: {
|
|
318
|
-
// label: ['dashboard label', { ns: meta.id }],
|
|
319
|
-
// icon: 'ph--computer-tower--regular',
|
|
320
|
-
// },
|
|
321
|
-
// },
|
|
322
|
-
// ],
|
|
323
|
-
// },
|
|
324
303
|
{
|
|
325
|
-
id:
|
|
304
|
+
id: Devtools.Edge.id,
|
|
326
305
|
data: null,
|
|
327
306
|
type: DEVTOOLS_TYPE,
|
|
328
307
|
properties: {
|
|
@@ -331,7 +310,7 @@ export default Capability.makeModule(
|
|
|
331
310
|
},
|
|
332
311
|
nodes: [
|
|
333
312
|
{
|
|
334
|
-
id:
|
|
313
|
+
id: Devtools.Edge.Dashboard,
|
|
335
314
|
data: Devtools.Edge.Dashboard,
|
|
336
315
|
type: DEVTOOLS_TYPE,
|
|
337
316
|
properties: {
|
|
@@ -340,7 +319,7 @@ export default Capability.makeModule(
|
|
|
340
319
|
},
|
|
341
320
|
},
|
|
342
321
|
{
|
|
343
|
-
id:
|
|
322
|
+
id: Devtools.Edge.Workflows,
|
|
344
323
|
data: Devtools.Edge.Workflows,
|
|
345
324
|
type: DEVTOOLS_TYPE,
|
|
346
325
|
properties: {
|
|
@@ -349,7 +328,7 @@ export default Capability.makeModule(
|
|
|
349
328
|
},
|
|
350
329
|
},
|
|
351
330
|
{
|
|
352
|
-
id:
|
|
331
|
+
id: Devtools.Edge.Traces,
|
|
353
332
|
data: Devtools.Edge.Traces,
|
|
354
333
|
type: DEVTOOLS_TYPE,
|
|
355
334
|
properties: {
|
|
@@ -358,7 +337,7 @@ export default Capability.makeModule(
|
|
|
358
337
|
},
|
|
359
338
|
},
|
|
360
339
|
{
|
|
361
|
-
id:
|
|
340
|
+
id: Devtools.Edge.Testing,
|
|
362
341
|
data: Devtools.Edge.Testing,
|
|
363
342
|
type: DEVTOOLS_TYPE,
|
|
364
343
|
properties: {
|
|
@@ -376,12 +355,12 @@ export default Capability.makeModule(
|
|
|
376
355
|
|
|
377
356
|
// Debug object companion.
|
|
378
357
|
GraphBuilder.createExtension({
|
|
379
|
-
id: `${meta.id}
|
|
358
|
+
id: `${meta.id}.debug-object`,
|
|
380
359
|
match: NodeMatcher.whenEchoObject,
|
|
381
|
-
connector: (
|
|
360
|
+
connector: () =>
|
|
382
361
|
Effect.succeed([
|
|
383
362
|
{
|
|
384
|
-
id:
|
|
363
|
+
id: 'debug',
|
|
385
364
|
type: PLANK_COMPANION_TYPE,
|
|
386
365
|
data: 'debug',
|
|
387
366
|
properties: {
|
|
@@ -396,14 +375,14 @@ export default Capability.makeModule(
|
|
|
396
375
|
|
|
397
376
|
// Devtools deck companion.
|
|
398
377
|
GraphBuilder.createExtension({
|
|
399
|
-
id: `${meta.id}
|
|
378
|
+
id: `${meta.id}.devtools-overview`,
|
|
400
379
|
match: NodeMatcher.whenRoot,
|
|
401
|
-
connector: (
|
|
380
|
+
connector: () =>
|
|
402
381
|
Effect.succeed([
|
|
403
382
|
{
|
|
404
|
-
id:
|
|
383
|
+
id: 'devtools',
|
|
405
384
|
type: DECK_COMPANION_TYPE,
|
|
406
|
-
data:
|
|
385
|
+
data: 'devtools' as const,
|
|
407
386
|
properties: {
|
|
408
387
|
label: ['devtools overview label', { ns: meta.id }],
|
|
409
388
|
icon: 'ph--equalizer--regular',
|
|
@@ -413,8 +392,28 @@ export default Capability.makeModule(
|
|
|
413
392
|
},
|
|
414
393
|
]),
|
|
415
394
|
}),
|
|
395
|
+
|
|
396
|
+
// Object explorer.
|
|
397
|
+
GraphBuilder.createExtension({
|
|
398
|
+
id: `${meta.id}.space-objects`,
|
|
399
|
+
match: NodeMatcher.whenRoot,
|
|
400
|
+
connector: () =>
|
|
401
|
+
Effect.succeed([
|
|
402
|
+
{
|
|
403
|
+
id: 'space-objects',
|
|
404
|
+
type: DECK_COMPANION_TYPE,
|
|
405
|
+
data: 'space-objects' as const,
|
|
406
|
+
properties: {
|
|
407
|
+
label: ['space objects label', { ns: meta.id }],
|
|
408
|
+
icon: 'ph--cube--regular',
|
|
409
|
+
disposition: 'hidden',
|
|
410
|
+
position: 'fallback',
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
]),
|
|
414
|
+
}),
|
|
416
415
|
]);
|
|
417
416
|
|
|
418
|
-
return Capability.contributes(
|
|
417
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
419
418
|
}),
|
|
420
419
|
);
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { DevtoolsContextProvider } from '@dxos/devtools';
|
|
10
10
|
|
|
11
11
|
import { meta } from '../../meta';
|
|
12
12
|
|
|
13
13
|
export default Capability.makeModule(() =>
|
|
14
14
|
Effect.succeed(
|
|
15
|
-
Capability.contributes(
|
|
15
|
+
Capability.contributes(Capabilities.ReactContext, {
|
|
16
16
|
id: meta.id,
|
|
17
17
|
context: ({ children }) => <DevtoolsContextProvider>{children}</DevtoolsContextProvider>,
|
|
18
18
|
}),
|