@dxos/plugin-debug 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7
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-3TCDNUNW.mjs +33 -0
- package/dist/lib/browser/DebugObjectPanel-3TCDNUNW.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-FBDRMMYF.mjs → app-graph-builder-FU4BCDDC.mjs} +80 -84
- 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-5QQRQ2DT.mjs +427 -0
- package/dist/lib/browser/react-surface-5QQRQ2DT.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 +75 -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 +45 -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-FBDRMMYF.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.6fa680abb7",
|
|
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/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/compute": "0.8.4-main.
|
|
47
|
-
"@dxos/conductor": "0.8.4-main.
|
|
48
|
-
"@dxos/config": "0.8.4-main.
|
|
49
|
-
"@dxos/context": "0.8.4-main.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/echo-generator": "0.8.4-main.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/echo-pipeline": "0.8.4-main.
|
|
55
|
-
"@dxos/invariant": "0.8.4-main.
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/log": "0.8.4-main.
|
|
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-
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-markdown": "0.8.4-main.
|
|
65
|
-
"@dxos/plugin-meeting": "0.8.4-main.
|
|
66
|
-
"@dxos/plugin-
|
|
67
|
-
"@dxos/plugin-
|
|
68
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/plugin-
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/react-
|
|
77
|
-
"@dxos/react-ui-canvas-compute": "0.8.4-main.
|
|
78
|
-
"@dxos/react-
|
|
79
|
-
"@dxos/react-ui-
|
|
80
|
-
"@dxos/react-ui-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
41
|
+
"@dxos/async": "0.8.4-main.6fa680abb7",
|
|
42
|
+
"@dxos/app-framework": "0.8.4-main.6fa680abb7",
|
|
43
|
+
"@dxos/assistant-toolkit": "0.8.4-main.6fa680abb7",
|
|
44
|
+
"@dxos/app-toolkit": "0.8.4-main.6fa680abb7",
|
|
45
|
+
"@dxos/client-services": "0.8.4-main.6fa680abb7",
|
|
46
|
+
"@dxos/compute": "0.8.4-main.6fa680abb7",
|
|
47
|
+
"@dxos/conductor": "0.8.4-main.6fa680abb7",
|
|
48
|
+
"@dxos/config": "0.8.4-main.6fa680abb7",
|
|
49
|
+
"@dxos/context": "0.8.4-main.6fa680abb7",
|
|
50
|
+
"@dxos/devtools": "0.8.4-main.6fa680abb7",
|
|
51
|
+
"@dxos/echo": "0.8.4-main.6fa680abb7",
|
|
52
|
+
"@dxos/echo-generator": "0.8.4-main.6fa680abb7",
|
|
53
|
+
"@dxos/effect": "0.8.4-main.6fa680abb7",
|
|
54
|
+
"@dxos/echo-pipeline": "0.8.4-main.6fa680abb7",
|
|
55
|
+
"@dxos/invariant": "0.8.4-main.6fa680abb7",
|
|
56
|
+
"@dxos/keys": "0.8.4-main.6fa680abb7",
|
|
57
|
+
"@dxos/functions": "0.8.4-main.6fa680abb7",
|
|
58
|
+
"@dxos/log": "0.8.4-main.6fa680abb7",
|
|
59
|
+
"@dxos/operation": "0.8.4-main.6fa680abb7",
|
|
60
|
+
"@dxos/plugin-client": "0.8.4-main.6fa680abb7",
|
|
61
|
+
"@dxos/plugin-deck": "0.8.4-main.6fa680abb7",
|
|
62
|
+
"@dxos/plugin-inbox": "0.8.4-main.6fa680abb7",
|
|
63
|
+
"@dxos/plugin-graph": "0.8.4-main.6fa680abb7",
|
|
64
|
+
"@dxos/plugin-markdown": "0.8.4-main.6fa680abb7",
|
|
65
|
+
"@dxos/plugin-meeting": "0.8.4-main.6fa680abb7",
|
|
66
|
+
"@dxos/plugin-script": "0.8.4-main.6fa680abb7",
|
|
67
|
+
"@dxos/plugin-sketch": "0.8.4-main.6fa680abb7",
|
|
68
|
+
"@dxos/plugin-space": "0.8.4-main.6fa680abb7",
|
|
69
|
+
"@dxos/plugin-sheet": "0.8.4-main.6fa680abb7",
|
|
70
|
+
"@dxos/plugin-status-bar": "0.8.4-main.6fa680abb7",
|
|
71
|
+
"@dxos/plugin-table": "0.8.4-main.6fa680abb7",
|
|
72
|
+
"@dxos/plugin-theme": "0.8.4-main.6fa680abb7",
|
|
73
|
+
"@dxos/protocols": "0.8.4-main.6fa680abb7",
|
|
74
|
+
"@dxos/react-client": "0.8.4-main.6fa680abb7",
|
|
75
|
+
"@dxos/random": "0.8.4-main.6fa680abb7",
|
|
76
|
+
"@dxos/react-hooks": "0.8.4-main.6fa680abb7",
|
|
77
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.6fa680abb7",
|
|
78
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.6fa680abb7",
|
|
79
|
+
"@dxos/react-ui-form": "0.8.4-main.6fa680abb7",
|
|
80
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.6fa680abb7",
|
|
81
|
+
"@dxos/react-ui-stack": "0.8.4-main.6fa680abb7",
|
|
82
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.6fa680abb7",
|
|
83
|
+
"@dxos/react-ui-attention": "0.8.4-main.6fa680abb7",
|
|
84
|
+
"@dxos/schema": "0.8.4-main.6fa680abb7",
|
|
85
|
+
"@dxos/react-ui-table": "0.8.4-main.6fa680abb7",
|
|
86
|
+
"@dxos/types": "0.8.4-main.6fa680abb7",
|
|
87
|
+
"@dxos/util": "0.8.4-main.6fa680abb7",
|
|
88
|
+
"@dxos/blueprints": "0.8.4-main.6fa680abb7"
|
|
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/storybook-utils": "0.8.4-main.
|
|
100
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
101
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
98
|
+
"vite": "^7.1.11",
|
|
99
|
+
"@dxos/storybook-utils": "0.8.4-main.6fa680abb7",
|
|
100
|
+
"@dxos/react-ui": "0.8.4-main.6fa680abb7",
|
|
101
|
+
"@dxos/ui-theme": "0.8.4-main.6fa680abb7"
|
|
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/
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/
|
|
109
|
+
"@dxos/react-ui": "0.8.4-main.6fa680abb7",
|
|
110
|
+
"@dxos/random": "0.8.4-main.6fa680abb7",
|
|
111
|
+
"@dxos/ui-theme": "0.8.4-main.6fa680abb7"
|
|
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,37 +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';
|
|
9
|
+
import { Obj } from '@dxos/echo';
|
|
8
10
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
|
-
import {
|
|
11
|
+
import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
10
12
|
import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
13
|
import { meta as spaceMeta } from '@dxos/plugin-space';
|
|
12
|
-
import { parseId } from '@dxos/react-client/echo';
|
|
13
14
|
|
|
14
15
|
import { meta } from '../../meta';
|
|
15
16
|
import { Devtools } from '../../types';
|
|
16
17
|
|
|
17
|
-
const DEVTOOLS_TYPE = `${meta.id}
|
|
18
|
+
const DEVTOOLS_TYPE = `${meta.id}.devtools`;
|
|
18
19
|
|
|
19
20
|
export default Capability.makeModule(
|
|
20
21
|
Effect.fnUntraced(function* () {
|
|
21
22
|
const extensions = yield* Effect.all([
|
|
22
23
|
// Devtools node.
|
|
23
24
|
GraphBuilder.createExtension({
|
|
24
|
-
id: `${meta.id}
|
|
25
|
-
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`)),
|
|
26
27
|
connector: (node, get) =>
|
|
27
28
|
Effect.gen(function* () {
|
|
28
29
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
29
|
-
const layoutAtom = get(yield* Capability.atom(
|
|
30
|
+
const layoutAtom = get(yield* Capability.atom(AppCapabilities.Layout))[0];
|
|
30
31
|
const layout = layoutAtom ? get(layoutAtom) : undefined;
|
|
31
|
-
const
|
|
32
|
+
const spaceId = layout?.workspace ? getSpaceIdFromPath(layout.workspace) : undefined;
|
|
32
33
|
const space = spaceId ? client.spaces.get(spaceId) : undefined;
|
|
33
|
-
const [graph] = get(yield* Capability.atom(
|
|
34
|
+
const [graph] = get(yield* Capability.atom(AppCapabilities.AppGraph));
|
|
34
35
|
|
|
35
36
|
return [
|
|
36
37
|
{
|
|
37
|
-
id:
|
|
38
|
+
id: Devtools.id,
|
|
38
39
|
data: null,
|
|
39
40
|
type: DEVTOOLS_TYPE,
|
|
40
41
|
properties: {
|
|
@@ -44,12 +45,12 @@ export default Capability.makeModule(
|
|
|
44
45
|
position: 'fallback',
|
|
45
46
|
},
|
|
46
47
|
nodes: [
|
|
47
|
-
...(space && node.type === `${spaceMeta.id}
|
|
48
|
+
...(space && node.type === `${spaceMeta.id}.settings`
|
|
48
49
|
? [
|
|
49
50
|
{
|
|
50
|
-
id:
|
|
51
|
-
type: `${meta.id}
|
|
52
|
-
data: { space, type: `${meta.id}
|
|
51
|
+
id: 'debug',
|
|
52
|
+
type: `${meta.id}.space`,
|
|
53
|
+
data: { space, type: `${meta.id}.space` },
|
|
53
54
|
properties: {
|
|
54
55
|
label: ['debug label', { ns: meta.id }],
|
|
55
56
|
icon: 'ph--bug--regular',
|
|
@@ -58,8 +59,8 @@ export default Capability.makeModule(
|
|
|
58
59
|
]
|
|
59
60
|
: []),
|
|
60
61
|
{
|
|
61
|
-
id:
|
|
62
|
-
type: `${meta.id}
|
|
62
|
+
id: 'app-graph',
|
|
63
|
+
type: `${meta.id}.app-graph`,
|
|
63
64
|
data: { graph: graph?.graph, root: space ? space.id : Node.RootId },
|
|
64
65
|
properties: {
|
|
65
66
|
label: ['debug app graph label', { ns: meta.id }],
|
|
@@ -67,7 +68,7 @@ export default Capability.makeModule(
|
|
|
67
68
|
},
|
|
68
69
|
},
|
|
69
70
|
{
|
|
70
|
-
id:
|
|
71
|
+
id: Devtools.Client.id,
|
|
71
72
|
data: null,
|
|
72
73
|
type: DEVTOOLS_TYPE,
|
|
73
74
|
properties: {
|
|
@@ -76,7 +77,7 @@ export default Capability.makeModule(
|
|
|
76
77
|
},
|
|
77
78
|
nodes: [
|
|
78
79
|
{
|
|
79
|
-
id:
|
|
80
|
+
id: Devtools.Client.Config,
|
|
80
81
|
data: Devtools.Client.Config,
|
|
81
82
|
type: DEVTOOLS_TYPE,
|
|
82
83
|
properties: {
|
|
@@ -85,7 +86,7 @@ export default Capability.makeModule(
|
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
88
|
{
|
|
88
|
-
id:
|
|
89
|
+
id: Devtools.Client.Storage,
|
|
89
90
|
data: Devtools.Client.Storage,
|
|
90
91
|
type: DEVTOOLS_TYPE,
|
|
91
92
|
properties: {
|
|
@@ -94,7 +95,7 @@ export default Capability.makeModule(
|
|
|
94
95
|
},
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
|
-
id:
|
|
98
|
+
id: Devtools.Client.Logs,
|
|
98
99
|
data: Devtools.Client.Logs,
|
|
99
100
|
type: DEVTOOLS_TYPE,
|
|
100
101
|
properties: {
|
|
@@ -103,7 +104,7 @@ export default Capability.makeModule(
|
|
|
103
104
|
},
|
|
104
105
|
},
|
|
105
106
|
{
|
|
106
|
-
id:
|
|
107
|
+
id: Devtools.Client.Diagnostics,
|
|
107
108
|
data: Devtools.Client.Diagnostics,
|
|
108
109
|
type: DEVTOOLS_TYPE,
|
|
109
110
|
properties: {
|
|
@@ -112,7 +113,7 @@ export default Capability.makeModule(
|
|
|
112
113
|
},
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
|
-
id:
|
|
116
|
+
id: Devtools.Client.Tracing,
|
|
116
117
|
data: Devtools.Client.Tracing,
|
|
117
118
|
type: DEVTOOLS_TYPE,
|
|
118
119
|
properties: {
|
|
@@ -123,7 +124,7 @@ export default Capability.makeModule(
|
|
|
123
124
|
],
|
|
124
125
|
},
|
|
125
126
|
{
|
|
126
|
-
id:
|
|
127
|
+
id: Devtools.Halo.id,
|
|
127
128
|
data: null,
|
|
128
129
|
type: DEVTOOLS_TYPE,
|
|
129
130
|
properties: {
|
|
@@ -132,7 +133,7 @@ export default Capability.makeModule(
|
|
|
132
133
|
},
|
|
133
134
|
nodes: [
|
|
134
135
|
{
|
|
135
|
-
id:
|
|
136
|
+
id: Devtools.Halo.Identity,
|
|
136
137
|
data: Devtools.Halo.Identity,
|
|
137
138
|
type: DEVTOOLS_TYPE,
|
|
138
139
|
properties: {
|
|
@@ -141,7 +142,7 @@ export default Capability.makeModule(
|
|
|
141
142
|
},
|
|
142
143
|
},
|
|
143
144
|
{
|
|
144
|
-
id:
|
|
145
|
+
id: Devtools.Halo.Devices,
|
|
145
146
|
data: Devtools.Halo.Devices,
|
|
146
147
|
type: DEVTOOLS_TYPE,
|
|
147
148
|
properties: {
|
|
@@ -150,7 +151,7 @@ export default Capability.makeModule(
|
|
|
150
151
|
},
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
|
-
id:
|
|
154
|
+
id: Devtools.Halo.Keyring,
|
|
154
155
|
data: Devtools.Halo.Keyring,
|
|
155
156
|
type: DEVTOOLS_TYPE,
|
|
156
157
|
properties: {
|
|
@@ -159,7 +160,7 @@ export default Capability.makeModule(
|
|
|
159
160
|
},
|
|
160
161
|
},
|
|
161
162
|
{
|
|
162
|
-
id:
|
|
163
|
+
id: Devtools.Halo.Credentials,
|
|
163
164
|
data: Devtools.Halo.Credentials,
|
|
164
165
|
type: DEVTOOLS_TYPE,
|
|
165
166
|
properties: {
|
|
@@ -170,7 +171,7 @@ export default Capability.makeModule(
|
|
|
170
171
|
],
|
|
171
172
|
},
|
|
172
173
|
{
|
|
173
|
-
id:
|
|
174
|
+
id: Devtools.Echo.id,
|
|
174
175
|
data: null,
|
|
175
176
|
type: DEVTOOLS_TYPE,
|
|
176
177
|
properties: {
|
|
@@ -179,7 +180,7 @@ export default Capability.makeModule(
|
|
|
179
180
|
},
|
|
180
181
|
nodes: [
|
|
181
182
|
{
|
|
182
|
-
id:
|
|
183
|
+
id: Devtools.Echo.Spaces,
|
|
183
184
|
data: Devtools.Echo.Spaces,
|
|
184
185
|
type: DEVTOOLS_TYPE,
|
|
185
186
|
properties: {
|
|
@@ -188,7 +189,7 @@ export default Capability.makeModule(
|
|
|
188
189
|
},
|
|
189
190
|
},
|
|
190
191
|
{
|
|
191
|
-
id:
|
|
192
|
+
id: Devtools.Echo.Space,
|
|
192
193
|
data: Devtools.Echo.Space,
|
|
193
194
|
type: DEVTOOLS_TYPE,
|
|
194
195
|
properties: {
|
|
@@ -197,7 +198,7 @@ export default Capability.makeModule(
|
|
|
197
198
|
},
|
|
198
199
|
},
|
|
199
200
|
{
|
|
200
|
-
id:
|
|
201
|
+
id: Devtools.Echo.Feeds,
|
|
201
202
|
data: Devtools.Echo.Feeds,
|
|
202
203
|
type: DEVTOOLS_TYPE,
|
|
203
204
|
properties: {
|
|
@@ -206,7 +207,7 @@ export default Capability.makeModule(
|
|
|
206
207
|
},
|
|
207
208
|
},
|
|
208
209
|
{
|
|
209
|
-
id:
|
|
210
|
+
id: Devtools.Echo.Objects,
|
|
210
211
|
data: Devtools.Echo.Objects,
|
|
211
212
|
type: DEVTOOLS_TYPE,
|
|
212
213
|
properties: {
|
|
@@ -215,7 +216,7 @@ export default Capability.makeModule(
|
|
|
215
216
|
},
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
|
-
id:
|
|
219
|
+
id: Devtools.Echo.Schema,
|
|
219
220
|
data: Devtools.Echo.Schema,
|
|
220
221
|
type: DEVTOOLS_TYPE,
|
|
221
222
|
properties: {
|
|
@@ -224,7 +225,7 @@ export default Capability.makeModule(
|
|
|
224
225
|
},
|
|
225
226
|
},
|
|
226
227
|
{
|
|
227
|
-
id:
|
|
228
|
+
id: Devtools.Echo.Automerge,
|
|
228
229
|
data: Devtools.Echo.Automerge,
|
|
229
230
|
type: DEVTOOLS_TYPE,
|
|
230
231
|
properties: {
|
|
@@ -233,7 +234,7 @@ export default Capability.makeModule(
|
|
|
233
234
|
},
|
|
234
235
|
},
|
|
235
236
|
{
|
|
236
|
-
id:
|
|
237
|
+
id: Devtools.Echo.Queues,
|
|
237
238
|
data: Devtools.Echo.Queues,
|
|
238
239
|
type: DEVTOOLS_TYPE,
|
|
239
240
|
properties: {
|
|
@@ -242,7 +243,7 @@ export default Capability.makeModule(
|
|
|
242
243
|
},
|
|
243
244
|
},
|
|
244
245
|
{
|
|
245
|
-
id:
|
|
246
|
+
id: Devtools.Echo.Members,
|
|
246
247
|
data: Devtools.Echo.Members,
|
|
247
248
|
type: DEVTOOLS_TYPE,
|
|
248
249
|
properties: {
|
|
@@ -251,7 +252,7 @@ export default Capability.makeModule(
|
|
|
251
252
|
},
|
|
252
253
|
},
|
|
253
254
|
{
|
|
254
|
-
id:
|
|
255
|
+
id: Devtools.Echo.Metadata,
|
|
255
256
|
data: Devtools.Echo.Metadata,
|
|
256
257
|
type: DEVTOOLS_TYPE,
|
|
257
258
|
properties: {
|
|
@@ -262,7 +263,7 @@ export default Capability.makeModule(
|
|
|
262
263
|
],
|
|
263
264
|
},
|
|
264
265
|
{
|
|
265
|
-
id:
|
|
266
|
+
id: Devtools.Mesh.id,
|
|
266
267
|
data: null,
|
|
267
268
|
type: DEVTOOLS_TYPE,
|
|
268
269
|
properties: {
|
|
@@ -271,7 +272,7 @@ export default Capability.makeModule(
|
|
|
271
272
|
},
|
|
272
273
|
nodes: [
|
|
273
274
|
{
|
|
274
|
-
id:
|
|
275
|
+
id: Devtools.Mesh.Signal,
|
|
275
276
|
data: Devtools.Mesh.Signal,
|
|
276
277
|
type: DEVTOOLS_TYPE,
|
|
277
278
|
properties: {
|
|
@@ -280,7 +281,7 @@ export default Capability.makeModule(
|
|
|
280
281
|
},
|
|
281
282
|
},
|
|
282
283
|
{
|
|
283
|
-
id:
|
|
284
|
+
id: Devtools.Mesh.Swarm,
|
|
284
285
|
data: Devtools.Mesh.Swarm,
|
|
285
286
|
type: DEVTOOLS_TYPE,
|
|
286
287
|
properties: {
|
|
@@ -289,7 +290,7 @@ export default Capability.makeModule(
|
|
|
289
290
|
},
|
|
290
291
|
},
|
|
291
292
|
{
|
|
292
|
-
id:
|
|
293
|
+
id: Devtools.Mesh.Network,
|
|
293
294
|
data: Devtools.Mesh.Network,
|
|
294
295
|
type: DEVTOOLS_TYPE,
|
|
295
296
|
properties: {
|
|
@@ -299,29 +300,8 @@ export default Capability.makeModule(
|
|
|
299
300
|
},
|
|
300
301
|
],
|
|
301
302
|
},
|
|
302
|
-
// TODO(wittjosiah): Remove?
|
|
303
|
-
// {
|
|
304
|
-
// id: `${prefix}-${Devtools.Agent.id}`,
|
|
305
|
-
// data: null,
|
|
306
|
-
// type: DEVTOOLS_TYPE,
|
|
307
|
-
// properties: {
|
|
308
|
-
// label: ['agent label', { ns: meta.id }],
|
|
309
|
-
// icon: 'ph--robot--regular',
|
|
310
|
-
// },
|
|
311
|
-
// nodes: [
|
|
312
|
-
// {
|
|
313
|
-
// id: `${prefix}-${Devtools.Agent.Dashboard}`,
|
|
314
|
-
// data: Devtools.Agent.Dashboard,
|
|
315
|
-
// type: DEVTOOLS_TYPE,
|
|
316
|
-
// properties: {
|
|
317
|
-
// label: ['dashboard label', { ns: meta.id }],
|
|
318
|
-
// icon: 'ph--computer-tower--regular',
|
|
319
|
-
// },
|
|
320
|
-
// },
|
|
321
|
-
// ],
|
|
322
|
-
// },
|
|
323
303
|
{
|
|
324
|
-
id:
|
|
304
|
+
id: Devtools.Edge.id,
|
|
325
305
|
data: null,
|
|
326
306
|
type: DEVTOOLS_TYPE,
|
|
327
307
|
properties: {
|
|
@@ -330,7 +310,7 @@ export default Capability.makeModule(
|
|
|
330
310
|
},
|
|
331
311
|
nodes: [
|
|
332
312
|
{
|
|
333
|
-
id:
|
|
313
|
+
id: Devtools.Edge.Dashboard,
|
|
334
314
|
data: Devtools.Edge.Dashboard,
|
|
335
315
|
type: DEVTOOLS_TYPE,
|
|
336
316
|
properties: {
|
|
@@ -339,7 +319,7 @@ export default Capability.makeModule(
|
|
|
339
319
|
},
|
|
340
320
|
},
|
|
341
321
|
{
|
|
342
|
-
id:
|
|
322
|
+
id: Devtools.Edge.Workflows,
|
|
343
323
|
data: Devtools.Edge.Workflows,
|
|
344
324
|
type: DEVTOOLS_TYPE,
|
|
345
325
|
properties: {
|
|
@@ -348,7 +328,7 @@ export default Capability.makeModule(
|
|
|
348
328
|
},
|
|
349
329
|
},
|
|
350
330
|
{
|
|
351
|
-
id:
|
|
331
|
+
id: Devtools.Edge.Traces,
|
|
352
332
|
data: Devtools.Edge.Traces,
|
|
353
333
|
type: DEVTOOLS_TYPE,
|
|
354
334
|
properties: {
|
|
@@ -357,7 +337,7 @@ export default Capability.makeModule(
|
|
|
357
337
|
},
|
|
358
338
|
},
|
|
359
339
|
{
|
|
360
|
-
id:
|
|
340
|
+
id: Devtools.Edge.Testing,
|
|
361
341
|
data: Devtools.Edge.Testing,
|
|
362
342
|
type: DEVTOOLS_TYPE,
|
|
363
343
|
properties: {
|
|
@@ -375,12 +355,12 @@ export default Capability.makeModule(
|
|
|
375
355
|
|
|
376
356
|
// Debug object companion.
|
|
377
357
|
GraphBuilder.createExtension({
|
|
378
|
-
id: `${meta.id}
|
|
358
|
+
id: `${meta.id}.debug-object`,
|
|
379
359
|
match: NodeMatcher.whenEchoObject,
|
|
380
|
-
connector: (
|
|
360
|
+
connector: () =>
|
|
381
361
|
Effect.succeed([
|
|
382
362
|
{
|
|
383
|
-
id:
|
|
363
|
+
id: 'debug',
|
|
384
364
|
type: PLANK_COMPANION_TYPE,
|
|
385
365
|
data: 'debug',
|
|
386
366
|
properties: {
|
|
@@ -395,14 +375,14 @@ export default Capability.makeModule(
|
|
|
395
375
|
|
|
396
376
|
// Devtools deck companion.
|
|
397
377
|
GraphBuilder.createExtension({
|
|
398
|
-
id: `${meta.id}
|
|
378
|
+
id: `${meta.id}.devtools-overview`,
|
|
399
379
|
match: NodeMatcher.whenRoot,
|
|
400
|
-
connector: (
|
|
380
|
+
connector: () =>
|
|
401
381
|
Effect.succeed([
|
|
402
382
|
{
|
|
403
|
-
id:
|
|
383
|
+
id: 'devtools',
|
|
404
384
|
type: DECK_COMPANION_TYPE,
|
|
405
|
-
data:
|
|
385
|
+
data: 'devtools' as const,
|
|
406
386
|
properties: {
|
|
407
387
|
label: ['devtools overview label', { ns: meta.id }],
|
|
408
388
|
icon: 'ph--equalizer--regular',
|
|
@@ -412,8 +392,28 @@ export default Capability.makeModule(
|
|
|
412
392
|
},
|
|
413
393
|
]),
|
|
414
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
|
+
}),
|
|
415
415
|
]);
|
|
416
416
|
|
|
417
|
-
return Capability.contributes(
|
|
417
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
418
418
|
}),
|
|
419
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
|
}),
|