@dxos/plugin-debug 0.8.4-main.2e9d522 → 0.8.4-main.406dc2a
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-EDOH6R2G.mjs +20 -0
- package/dist/lib/browser/DebugGraph-EDOH6R2G.mjs.map +7 -0
- package/dist/lib/browser/{SpaceGenerator-AG3XGNMV.mjs → SpaceGenerator-VMWHGAJZ.mjs} +245 -69
- package/dist/lib/browser/SpaceGenerator-VMWHGAJZ.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-SQXFD2BL.mjs → app-graph-builder-I4IHBKKN.mjs} +75 -84
- package/dist/lib/browser/app-graph-builder-I4IHBKKN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-AJA6RYN3.mjs → chunk-SRV2AIGJ.mjs} +2 -2
- package/dist/lib/browser/chunk-SRV2AIGJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5XPIRNQS.mjs → chunk-SVCKCXCL.mjs} +2 -4
- package/dist/lib/browser/chunk-SVCKCXCL.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +14 -13
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-NVAGLAJD.mjs → react-context-QLZE7VSQ.mjs} +6 -6
- package/dist/lib/browser/react-context-QLZE7VSQ.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-3GD2OWCA.mjs → react-surface-GFORPA3A.mjs} +78 -74
- package/dist/lib/browser/react-surface-GFORPA3A.mjs.map +7 -0
- package/dist/lib/browser/{settings-LSSWLM5I.mjs → settings-EBVICEEW.mjs} +5 -5
- package/dist/lib/browser/{settings-LSSWLM5I.mjs.map → settings-EBVICEEW.mjs.map} +1 -1
- package/dist/types/src/DebugPlugin.d.ts +1 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +5 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts +2 -2
- 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/capabilities/settings.d.ts +1 -1
- package/dist/types/src/components/DebugGraph.d.ts +8 -0
- package/dist/types/src/components/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
- 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/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +13 -4
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts +4 -1
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/Wireframe.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/components/index.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/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +1 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +66 -63
- package/src/DebugPlugin.tsx +6 -7
- package/src/capabilities/app-graph-builder.ts +63 -89
- package/src/capabilities/react-context.tsx +2 -2
- package/src/capabilities/react-surface.tsx +49 -47
- package/src/components/DebugGraph.tsx +14 -0
- package/src/components/DebugObjectPanel.tsx +2 -4
- package/src/components/DebugSettings.tsx +74 -66
- package/src/components/DebugStatus.tsx +2 -2
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +15 -15
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +11 -11
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +7 -7
- package/src/components/SpaceGenerator/draw-util.ts +5 -5
- package/src/components/SpaceGenerator/presets.ts +173 -12
- package/src/components/Wireframe.tsx +2 -1
- package/src/components/index.ts +1 -1
- package/src/meta.ts +1 -3
- package/src/translations.ts +2 -0
- package/src/types.ts +1 -1
- package/dist/lib/browser/DebugApp-ZDL4CPY5.mjs +0 -228
- package/dist/lib/browser/DebugApp-ZDL4CPY5.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-AG3XGNMV.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-SQXFD2BL.mjs.map +0 -7
- package/dist/lib/browser/chunk-5XPIRNQS.mjs.map +0 -7
- package/dist/lib/browser/chunk-AJA6RYN3.mjs.map +0 -7
- package/dist/lib/browser/react-context-NVAGLAJD.mjs.map +0 -7
- package/dist/lib/browser/react-surface-3GD2OWCA.mjs.map +0 -7
- package/dist/types/src/components/DebugApp/DebugApp.d.ts +0 -6
- package/dist/types/src/components/DebugApp/DebugApp.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/Tree.d.ts +0 -18
- package/dist/types/src/components/DebugApp/Tree.d.ts.map +0 -1
- package/dist/types/src/components/DebugApp/index.d.ts +0 -3
- package/dist/types/src/components/DebugApp/index.d.ts.map +0 -1
- package/src/components/DebugApp/DebugApp.tsx +0 -84
- package/src/components/DebugApp/Tree.tsx +0 -103
- package/src/components/DebugApp/index.ts +0 -7
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.406dc2a",
|
|
4
4
|
"description": "DXOS Surface plugin for testing.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs"
|
|
15
16
|
}
|
|
@@ -25,81 +26,83 @@
|
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@antv/graphlib": "^2.0.4",
|
|
27
28
|
"@antv/layout": "^1.2.13",
|
|
28
|
-
"@automerge/automerge": "3.1.
|
|
29
|
+
"@automerge/automerge": "3.1.2",
|
|
29
30
|
"@preact-signals/safe-react": "^0.9.0",
|
|
30
|
-
"@preact/signals-core": "^1.
|
|
31
|
+
"@preact/signals-core": "^1.12.1",
|
|
31
32
|
"@tldraw/tldraw": "^3.0.0",
|
|
32
33
|
"date-fns": "^3.3.1",
|
|
33
34
|
"react-json-tree": "^0.18.0",
|
|
34
35
|
"react-resize-detector": "^11.0.1",
|
|
35
36
|
"workerize-loader": "^2.0.2",
|
|
36
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/echo-generator": "0.8.4-main.
|
|
46
|
-
"@dxos/echo-
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
55
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
56
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/plugin-
|
|
59
|
-
"@dxos/plugin-
|
|
60
|
-
"@dxos/plugin-sheet": "0.8.4-main.
|
|
61
|
-
"@dxos/plugin-
|
|
62
|
-
"@dxos/plugin-
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/react-
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/react-
|
|
72
|
-
"@dxos/react-ui-
|
|
73
|
-
"@dxos/react-ui-canvas-editor": "0.8.4-main.
|
|
74
|
-
"@dxos/react-ui-
|
|
75
|
-
"@dxos/react-ui-
|
|
76
|
-
"@dxos/react-ui-
|
|
77
|
-
"@dxos/react-ui-
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
37
|
+
"@dxos/app-framework": "0.8.4-main.406dc2a",
|
|
38
|
+
"@dxos/assistant-testing": "0.8.4-main.406dc2a",
|
|
39
|
+
"@dxos/async": "0.8.4-main.406dc2a",
|
|
40
|
+
"@dxos/blueprints": "0.8.4-main.406dc2a",
|
|
41
|
+
"@dxos/client-services": "0.8.4-main.406dc2a",
|
|
42
|
+
"@dxos/compute": "0.8.4-main.406dc2a",
|
|
43
|
+
"@dxos/conductor": "0.8.4-main.406dc2a",
|
|
44
|
+
"@dxos/config": "0.8.4-main.406dc2a",
|
|
45
|
+
"@dxos/devtools": "0.8.4-main.406dc2a",
|
|
46
|
+
"@dxos/echo-generator": "0.8.4-main.406dc2a",
|
|
47
|
+
"@dxos/echo-pipeline": "0.8.4-main.406dc2a",
|
|
48
|
+
"@dxos/context": "0.8.4-main.406dc2a",
|
|
49
|
+
"@dxos/echo": "0.8.4-main.406dc2a",
|
|
50
|
+
"@dxos/functions": "0.8.4-main.406dc2a",
|
|
51
|
+
"@dxos/invariant": "0.8.4-main.406dc2a",
|
|
52
|
+
"@dxos/live-object": "0.8.4-main.406dc2a",
|
|
53
|
+
"@dxos/log": "0.8.4-main.406dc2a",
|
|
54
|
+
"@dxos/keys": "0.8.4-main.406dc2a",
|
|
55
|
+
"@dxos/plugin-client": "0.8.4-main.406dc2a",
|
|
56
|
+
"@dxos/plugin-deck": "0.8.4-main.406dc2a",
|
|
57
|
+
"@dxos/plugin-graph": "0.8.4-main.406dc2a",
|
|
58
|
+
"@dxos/local-storage": "0.8.4-main.406dc2a",
|
|
59
|
+
"@dxos/plugin-inbox": "0.8.4-main.406dc2a",
|
|
60
|
+
"@dxos/plugin-markdown": "0.8.4-main.406dc2a",
|
|
61
|
+
"@dxos/plugin-sheet": "0.8.4-main.406dc2a",
|
|
62
|
+
"@dxos/plugin-sketch": "0.8.4-main.406dc2a",
|
|
63
|
+
"@dxos/plugin-meeting": "0.8.4-main.406dc2a",
|
|
64
|
+
"@dxos/plugin-script": "0.8.4-main.406dc2a",
|
|
65
|
+
"@dxos/plugin-status-bar": "0.8.4-main.406dc2a",
|
|
66
|
+
"@dxos/plugin-space": "0.8.4-main.406dc2a",
|
|
67
|
+
"@dxos/plugin-table": "0.8.4-main.406dc2a",
|
|
68
|
+
"@dxos/plugin-theme": "0.8.4-main.406dc2a",
|
|
69
|
+
"@dxos/protocols": "0.8.4-main.406dc2a",
|
|
70
|
+
"@dxos/react-client": "0.8.4-main.406dc2a",
|
|
71
|
+
"@dxos/random": "0.8.4-main.406dc2a",
|
|
72
|
+
"@dxos/react-hooks": "0.8.4-main.406dc2a",
|
|
73
|
+
"@dxos/react-ui-attention": "0.8.4-main.406dc2a",
|
|
74
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.406dc2a",
|
|
75
|
+
"@dxos/react-ui-form": "0.8.4-main.406dc2a",
|
|
76
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.406dc2a",
|
|
77
|
+
"@dxos/react-ui-kanban": "0.8.4-main.406dc2a",
|
|
78
|
+
"@dxos/react-ui-stack": "0.8.4-main.406dc2a",
|
|
79
|
+
"@dxos/react-ui-table": "0.8.4-main.406dc2a",
|
|
80
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.406dc2a",
|
|
81
|
+
"@dxos/util": "0.8.4-main.406dc2a",
|
|
82
|
+
"@dxos/schema": "0.8.4-main.406dc2a"
|
|
80
83
|
},
|
|
81
84
|
"devDependencies": {
|
|
82
|
-
"@effect-rx/rx-react": "0.
|
|
83
|
-
"@effect/platform": "0.
|
|
84
|
-
"@types/react": "~
|
|
85
|
-
"@types/react-dom": "~
|
|
86
|
-
"effect": "3.
|
|
87
|
-
"react": "~
|
|
88
|
-
"react-dom": "~
|
|
89
|
-
"vite": "
|
|
90
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
85
|
+
"@effect-rx/rx-react": "0.42.4",
|
|
86
|
+
"@effect/platform": "0.92.1",
|
|
87
|
+
"@types/react": "~19.2.2",
|
|
88
|
+
"@types/react-dom": "~19.2.1",
|
|
89
|
+
"effect": "3.18.3",
|
|
90
|
+
"react": "~19.2.0",
|
|
91
|
+
"react-dom": "~19.2.0",
|
|
92
|
+
"vite": "7.1.9",
|
|
93
|
+
"@dxos/react-ui": "0.8.4-main.406dc2a",
|
|
94
|
+
"@dxos/react-ui-theme": "0.8.4-main.406dc2a",
|
|
95
|
+
"@dxos/storybook-utils": "0.8.4-main.406dc2a"
|
|
93
96
|
},
|
|
94
97
|
"peerDependencies": {
|
|
95
98
|
"@effect-rx/rx-react": "^0.34.1",
|
|
96
99
|
"@effect/platform": "^0.80.12",
|
|
97
100
|
"effect": "^3.13.3",
|
|
98
|
-
"react": "~
|
|
99
|
-
"react-dom": "~
|
|
100
|
-
"@dxos/random": "0.8.4-main.
|
|
101
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
102
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
101
|
+
"react": "~19.2.0",
|
|
102
|
+
"react-dom": "~19.2.0",
|
|
103
|
+
"@dxos/random": "0.8.4-main.406dc2a",
|
|
104
|
+
"@dxos/react-ui-theme": "0.8.4-main.406dc2a",
|
|
105
|
+
"@dxos/react-ui": "0.8.4-main.406dc2a"
|
|
103
106
|
},
|
|
104
107
|
"publishConfig": {
|
|
105
108
|
"access": "public"
|
package/src/DebugPlugin.tsx
CHANGED
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, defineModule, definePlugin
|
|
5
|
+
import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
|
|
6
6
|
import { type Client } from '@dxos/react-client';
|
|
7
7
|
|
|
8
8
|
import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from './capabilities';
|
|
9
9
|
import { meta } from './meta';
|
|
10
10
|
import { translations } from './translations';
|
|
11
11
|
|
|
12
|
-
// TODO(wittjosiah):
|
|
13
|
-
export const DebugPlugin = () => {
|
|
12
|
+
// TODO(wittjosiah): Factor out DevtoolsPlugin?
|
|
13
|
+
export const DebugPlugin = definePlugin(meta, () => {
|
|
14
14
|
setupDevtools();
|
|
15
|
-
|
|
16
|
-
return definePlugin(meta, [
|
|
15
|
+
return [
|
|
17
16
|
defineModule({
|
|
18
17
|
id: `${meta.id}/module/settings`,
|
|
19
18
|
activatesOn: Events.SetupSettings,
|
|
@@ -39,8 +38,8 @@ export const DebugPlugin = () => {
|
|
|
39
38
|
activatesOn: Events.SetupAppGraph,
|
|
40
39
|
activate: AppGraphBuilder,
|
|
41
40
|
}),
|
|
42
|
-
]
|
|
43
|
-
};
|
|
41
|
+
];
|
|
42
|
+
});
|
|
44
43
|
|
|
45
44
|
const setupDevtools = () => {
|
|
46
45
|
(globalThis as any).composer ??= {};
|
|
@@ -3,33 +3,35 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
-
import
|
|
6
|
+
import * as Function from 'effect/Function';
|
|
7
|
+
import * as Option from 'effect/Option';
|
|
7
8
|
|
|
8
|
-
import {
|
|
9
|
+
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
9
10
|
import { Obj } from '@dxos/echo';
|
|
10
11
|
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
11
|
-
import {
|
|
12
|
-
import { getActiveSpace,
|
|
12
|
+
import { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';
|
|
13
|
+
import { getActiveSpace, meta as spaceMeta } from '@dxos/plugin-space';
|
|
13
14
|
|
|
14
|
-
import {
|
|
15
|
+
import { meta } from '../meta';
|
|
15
16
|
import { Devtools } from '../types';
|
|
16
17
|
|
|
17
|
-
const DEVTOOLS_TYPE =
|
|
18
|
+
const DEVTOOLS_TYPE = `${meta.id}/devtools`;
|
|
18
19
|
|
|
19
20
|
export default (context: PluginContext) =>
|
|
20
21
|
contributes(Capabilities.AppGraphBuilder, [
|
|
21
22
|
// Devtools node.
|
|
22
23
|
createExtension({
|
|
23
|
-
id:
|
|
24
|
+
id: `${meta.id}/devtools`,
|
|
24
25
|
connector: (node) =>
|
|
25
26
|
Rx.make((get) =>
|
|
26
|
-
pipe(
|
|
27
|
+
Function.pipe(
|
|
27
28
|
get(node),
|
|
28
29
|
Option.flatMap((node) =>
|
|
29
|
-
node.id === ROOT_ID || node.type === `${
|
|
30
|
+
node.id === ROOT_ID || node.type === `${spaceMeta.id}/settings` ? Option.some(node) : Option.none(),
|
|
30
31
|
),
|
|
31
32
|
Option.map((node) => {
|
|
32
33
|
const space = get(rxFromSignal(() => getActiveSpace(context)));
|
|
34
|
+
const [graph] = get(context.capabilities(Capabilities.AppGraph));
|
|
33
35
|
|
|
34
36
|
return [
|
|
35
37
|
{
|
|
@@ -37,31 +39,40 @@ export default (context: PluginContext) =>
|
|
|
37
39
|
data: null,
|
|
38
40
|
type: DEVTOOLS_TYPE,
|
|
39
41
|
properties: {
|
|
40
|
-
label: ['devtools label', { ns:
|
|
42
|
+
label: ['devtools label', { ns: meta.id }],
|
|
41
43
|
icon: 'ph--hammer--regular',
|
|
42
44
|
disposition: 'pin-end',
|
|
43
45
|
position: 'fallback',
|
|
44
46
|
},
|
|
45
47
|
nodes: [
|
|
46
|
-
...(space && node.type === `${
|
|
48
|
+
...(space && node.type === `${spaceMeta.id}/settings`
|
|
47
49
|
? [
|
|
48
50
|
{
|
|
49
51
|
id: `debug-${node.id}`,
|
|
50
|
-
type:
|
|
51
|
-
data: { space, type:
|
|
52
|
+
type: `${meta.id}/space`,
|
|
53
|
+
data: { space, type: `${meta.id}/space` },
|
|
52
54
|
properties: {
|
|
53
|
-
label: ['debug label', { ns:
|
|
55
|
+
label: ['debug label', { ns: meta.id }],
|
|
54
56
|
icon: 'ph--bug--regular',
|
|
55
57
|
},
|
|
56
58
|
},
|
|
57
59
|
]
|
|
58
60
|
: []),
|
|
61
|
+
{
|
|
62
|
+
id: `app-graph-${node.id}`,
|
|
63
|
+
type: `${meta.id}/app-graph`,
|
|
64
|
+
data: { graph: graph?.graph, root: space ? space.id : ROOT_ID },
|
|
65
|
+
properties: {
|
|
66
|
+
label: ['debug app graph label', { ns: meta.id }],
|
|
67
|
+
icon: 'ph--graph--regular',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
59
70
|
{
|
|
60
71
|
id: `${Devtools.Client.id}-${node.id}`,
|
|
61
72
|
data: null,
|
|
62
73
|
type: DEVTOOLS_TYPE,
|
|
63
74
|
properties: {
|
|
64
|
-
label: ['client label', { ns:
|
|
75
|
+
label: ['client label', { ns: meta.id }],
|
|
65
76
|
icon: 'ph--users--regular',
|
|
66
77
|
},
|
|
67
78
|
nodes: [
|
|
@@ -70,7 +81,7 @@ export default (context: PluginContext) =>
|
|
|
70
81
|
data: Devtools.Client.Config,
|
|
71
82
|
type: DEVTOOLS_TYPE,
|
|
72
83
|
properties: {
|
|
73
|
-
label: ['config label', { ns:
|
|
84
|
+
label: ['config label', { ns: meta.id }],
|
|
74
85
|
icon: 'ph--gear--regular',
|
|
75
86
|
},
|
|
76
87
|
},
|
|
@@ -79,7 +90,7 @@ export default (context: PluginContext) =>
|
|
|
79
90
|
data: Devtools.Client.Storage,
|
|
80
91
|
type: DEVTOOLS_TYPE,
|
|
81
92
|
properties: {
|
|
82
|
-
label: ['storage label', { ns:
|
|
93
|
+
label: ['storage label', { ns: meta.id }],
|
|
83
94
|
icon: 'ph--hard-drives--regular',
|
|
84
95
|
},
|
|
85
96
|
},
|
|
@@ -88,7 +99,7 @@ export default (context: PluginContext) =>
|
|
|
88
99
|
data: Devtools.Client.Logs,
|
|
89
100
|
type: DEVTOOLS_TYPE,
|
|
90
101
|
properties: {
|
|
91
|
-
label: ['logs label', { ns:
|
|
102
|
+
label: ['logs label', { ns: meta.id }],
|
|
92
103
|
icon: 'ph--file-text--regular',
|
|
93
104
|
},
|
|
94
105
|
},
|
|
@@ -97,7 +108,7 @@ export default (context: PluginContext) =>
|
|
|
97
108
|
data: Devtools.Client.Diagnostics,
|
|
98
109
|
type: DEVTOOLS_TYPE,
|
|
99
110
|
properties: {
|
|
100
|
-
label: ['diagnostics label', { ns:
|
|
111
|
+
label: ['diagnostics label', { ns: meta.id }],
|
|
101
112
|
icon: 'ph--chart-line--regular',
|
|
102
113
|
},
|
|
103
114
|
},
|
|
@@ -106,7 +117,7 @@ export default (context: PluginContext) =>
|
|
|
106
117
|
data: Devtools.Client.Tracing,
|
|
107
118
|
type: DEVTOOLS_TYPE,
|
|
108
119
|
properties: {
|
|
109
|
-
label: ['tracing label', { ns:
|
|
120
|
+
label: ['tracing label', { ns: meta.id }],
|
|
110
121
|
icon: 'ph--fire--regular',
|
|
111
122
|
},
|
|
112
123
|
},
|
|
@@ -117,7 +128,7 @@ export default (context: PluginContext) =>
|
|
|
117
128
|
data: null,
|
|
118
129
|
type: DEVTOOLS_TYPE,
|
|
119
130
|
properties: {
|
|
120
|
-
label: ['halo label', { ns:
|
|
131
|
+
label: ['halo label', { ns: meta.id }],
|
|
121
132
|
icon: 'ph--identification-badge--regular',
|
|
122
133
|
},
|
|
123
134
|
nodes: [
|
|
@@ -126,7 +137,7 @@ export default (context: PluginContext) =>
|
|
|
126
137
|
data: Devtools.Halo.Identity,
|
|
127
138
|
type: DEVTOOLS_TYPE,
|
|
128
139
|
properties: {
|
|
129
|
-
label: ['identity label', { ns:
|
|
140
|
+
label: ['identity label', { ns: meta.id }],
|
|
130
141
|
icon: 'ph--identification-badge--regular',
|
|
131
142
|
},
|
|
132
143
|
},
|
|
@@ -135,7 +146,7 @@ export default (context: PluginContext) =>
|
|
|
135
146
|
data: Devtools.Halo.Devices,
|
|
136
147
|
type: DEVTOOLS_TYPE,
|
|
137
148
|
properties: {
|
|
138
|
-
label: ['devices label', { ns:
|
|
149
|
+
label: ['devices label', { ns: meta.id }],
|
|
139
150
|
icon: 'ph--devices--regular',
|
|
140
151
|
},
|
|
141
152
|
},
|
|
@@ -144,7 +155,7 @@ export default (context: PluginContext) =>
|
|
|
144
155
|
data: Devtools.Halo.Keyring,
|
|
145
156
|
type: DEVTOOLS_TYPE,
|
|
146
157
|
properties: {
|
|
147
|
-
label: ['keyring label', { ns:
|
|
158
|
+
label: ['keyring label', { ns: meta.id }],
|
|
148
159
|
icon: 'ph--key--regular',
|
|
149
160
|
},
|
|
150
161
|
},
|
|
@@ -153,7 +164,7 @@ export default (context: PluginContext) =>
|
|
|
153
164
|
data: Devtools.Halo.Credentials,
|
|
154
165
|
type: DEVTOOLS_TYPE,
|
|
155
166
|
properties: {
|
|
156
|
-
label: ['credentials label', { ns:
|
|
167
|
+
label: ['credentials label', { ns: meta.id }],
|
|
157
168
|
icon: 'ph--credit-card--regular',
|
|
158
169
|
},
|
|
159
170
|
},
|
|
@@ -164,7 +175,7 @@ export default (context: PluginContext) =>
|
|
|
164
175
|
data: null,
|
|
165
176
|
type: DEVTOOLS_TYPE,
|
|
166
177
|
properties: {
|
|
167
|
-
label: ['echo label', { ns:
|
|
178
|
+
label: ['echo label', { ns: meta.id }],
|
|
168
179
|
icon: 'ph--database--regular',
|
|
169
180
|
},
|
|
170
181
|
nodes: [
|
|
@@ -173,7 +184,7 @@ export default (context: PluginContext) =>
|
|
|
173
184
|
data: Devtools.Echo.Spaces,
|
|
174
185
|
type: DEVTOOLS_TYPE,
|
|
175
186
|
properties: {
|
|
176
|
-
label: ['spaces label', { ns:
|
|
187
|
+
label: ['spaces label', { ns: meta.id }],
|
|
177
188
|
icon: 'ph--graph--regular',
|
|
178
189
|
},
|
|
179
190
|
},
|
|
@@ -182,7 +193,7 @@ export default (context: PluginContext) =>
|
|
|
182
193
|
data: Devtools.Echo.Space,
|
|
183
194
|
type: DEVTOOLS_TYPE,
|
|
184
195
|
properties: {
|
|
185
|
-
label: ['space label', { ns:
|
|
196
|
+
label: ['space label', { ns: meta.id }],
|
|
186
197
|
icon: 'ph--planet--regular',
|
|
187
198
|
},
|
|
188
199
|
},
|
|
@@ -191,7 +202,7 @@ export default (context: PluginContext) =>
|
|
|
191
202
|
data: Devtools.Echo.Feeds,
|
|
192
203
|
type: DEVTOOLS_TYPE,
|
|
193
204
|
properties: {
|
|
194
|
-
label: ['feeds label', { ns:
|
|
205
|
+
label: ['feeds label', { ns: meta.id }],
|
|
195
206
|
icon: 'ph--list-bullets--regular',
|
|
196
207
|
},
|
|
197
208
|
},
|
|
@@ -200,7 +211,7 @@ export default (context: PluginContext) =>
|
|
|
200
211
|
data: Devtools.Echo.Objects,
|
|
201
212
|
type: DEVTOOLS_TYPE,
|
|
202
213
|
properties: {
|
|
203
|
-
label: ['objects label', { ns:
|
|
214
|
+
label: ['objects label', { ns: meta.id }],
|
|
204
215
|
icon: 'ph--cube--regular',
|
|
205
216
|
},
|
|
206
217
|
},
|
|
@@ -209,7 +220,7 @@ export default (context: PluginContext) =>
|
|
|
209
220
|
data: Devtools.Echo.Schema,
|
|
210
221
|
type: DEVTOOLS_TYPE,
|
|
211
222
|
properties: {
|
|
212
|
-
label: ['schema label', { ns:
|
|
223
|
+
label: ['schema label', { ns: meta.id }],
|
|
213
224
|
icon: 'ph--database--regular',
|
|
214
225
|
},
|
|
215
226
|
},
|
|
@@ -218,7 +229,7 @@ export default (context: PluginContext) =>
|
|
|
218
229
|
data: Devtools.Echo.Automerge,
|
|
219
230
|
type: DEVTOOLS_TYPE,
|
|
220
231
|
properties: {
|
|
221
|
-
label: ['automerge label', { ns:
|
|
232
|
+
label: ['automerge label', { ns: meta.id }],
|
|
222
233
|
icon: 'ph--gear-six--regular',
|
|
223
234
|
},
|
|
224
235
|
},
|
|
@@ -227,7 +238,7 @@ export default (context: PluginContext) =>
|
|
|
227
238
|
data: Devtools.Echo.Queues,
|
|
228
239
|
type: DEVTOOLS_TYPE,
|
|
229
240
|
properties: {
|
|
230
|
-
label: ['queues label', { ns:
|
|
241
|
+
label: ['queues label', { ns: meta.id }],
|
|
231
242
|
icon: 'ph--queue--regular',
|
|
232
243
|
},
|
|
233
244
|
},
|
|
@@ -236,7 +247,7 @@ export default (context: PluginContext) =>
|
|
|
236
247
|
data: Devtools.Echo.Members,
|
|
237
248
|
type: DEVTOOLS_TYPE,
|
|
238
249
|
properties: {
|
|
239
|
-
label: ['members label', { ns:
|
|
250
|
+
label: ['members label', { ns: meta.id }],
|
|
240
251
|
icon: 'ph--users--regular',
|
|
241
252
|
},
|
|
242
253
|
},
|
|
@@ -245,7 +256,7 @@ export default (context: PluginContext) =>
|
|
|
245
256
|
data: Devtools.Echo.Metadata,
|
|
246
257
|
type: DEVTOOLS_TYPE,
|
|
247
258
|
properties: {
|
|
248
|
-
label: ['metadata label', { ns:
|
|
259
|
+
label: ['metadata label', { ns: meta.id }],
|
|
249
260
|
icon: 'ph--hard-drive--regular',
|
|
250
261
|
},
|
|
251
262
|
},
|
|
@@ -256,7 +267,7 @@ export default (context: PluginContext) =>
|
|
|
256
267
|
data: null,
|
|
257
268
|
type: DEVTOOLS_TYPE,
|
|
258
269
|
properties: {
|
|
259
|
-
label: ['mesh label', { ns:
|
|
270
|
+
label: ['mesh label', { ns: meta.id }],
|
|
260
271
|
icon: 'ph--graph--regular',
|
|
261
272
|
},
|
|
262
273
|
nodes: [
|
|
@@ -265,7 +276,7 @@ export default (context: PluginContext) =>
|
|
|
265
276
|
data: Devtools.Mesh.Signal,
|
|
266
277
|
type: DEVTOOLS_TYPE,
|
|
267
278
|
properties: {
|
|
268
|
-
label: ['signal label', { ns:
|
|
279
|
+
label: ['signal label', { ns: meta.id }],
|
|
269
280
|
icon: 'ph--wifi-high--regular',
|
|
270
281
|
},
|
|
271
282
|
},
|
|
@@ -274,7 +285,7 @@ export default (context: PluginContext) =>
|
|
|
274
285
|
data: Devtools.Mesh.Swarm,
|
|
275
286
|
type: DEVTOOLS_TYPE,
|
|
276
287
|
properties: {
|
|
277
|
-
label: ['swarm label', { ns:
|
|
288
|
+
label: ['swarm label', { ns: meta.id }],
|
|
278
289
|
icon: 'ph--users-three--regular',
|
|
279
290
|
},
|
|
280
291
|
},
|
|
@@ -283,7 +294,7 @@ export default (context: PluginContext) =>
|
|
|
283
294
|
data: Devtools.Mesh.Network,
|
|
284
295
|
type: DEVTOOLS_TYPE,
|
|
285
296
|
properties: {
|
|
286
|
-
label: ['network label', { ns:
|
|
297
|
+
label: ['network label', { ns: meta.id }],
|
|
287
298
|
icon: 'ph--polygon--regular',
|
|
288
299
|
},
|
|
289
300
|
},
|
|
@@ -295,7 +306,7 @@ export default (context: PluginContext) =>
|
|
|
295
306
|
// data: null,
|
|
296
307
|
// type: DEVTOOLS_TYPE,
|
|
297
308
|
// properties: {
|
|
298
|
-
// label: ['agent label', { ns:
|
|
309
|
+
// label: ['agent label', { ns: meta.id }],
|
|
299
310
|
// icon: 'ph--robot--regular',
|
|
300
311
|
// },
|
|
301
312
|
// nodes: [
|
|
@@ -304,7 +315,7 @@ export default (context: PluginContext) =>
|
|
|
304
315
|
// data: Devtools.Agent.Dashboard,
|
|
305
316
|
// type: DEVTOOLS_TYPE,
|
|
306
317
|
// properties: {
|
|
307
|
-
// label: ['dashboard label', { ns:
|
|
318
|
+
// label: ['dashboard label', { ns: meta.id }],
|
|
308
319
|
// icon: 'ph--computer-tower--regular',
|
|
309
320
|
// },
|
|
310
321
|
// },
|
|
@@ -315,7 +326,7 @@ export default (context: PluginContext) =>
|
|
|
315
326
|
data: null,
|
|
316
327
|
type: DEVTOOLS_TYPE,
|
|
317
328
|
properties: {
|
|
318
|
-
label: ['edge label', { ns:
|
|
329
|
+
label: ['edge label', { ns: meta.id }],
|
|
319
330
|
icon: 'ph--cloud--regular',
|
|
320
331
|
},
|
|
321
332
|
nodes: [
|
|
@@ -324,7 +335,7 @@ export default (context: PluginContext) =>
|
|
|
324
335
|
data: Devtools.Edge.Dashboard,
|
|
325
336
|
type: DEVTOOLS_TYPE,
|
|
326
337
|
properties: {
|
|
327
|
-
label: ['dashboard label', { ns:
|
|
338
|
+
label: ['dashboard label', { ns: meta.id }],
|
|
328
339
|
icon: 'ph--computer-tower--regular',
|
|
329
340
|
},
|
|
330
341
|
},
|
|
@@ -333,7 +344,7 @@ export default (context: PluginContext) =>
|
|
|
333
344
|
data: Devtools.Edge.Workflows,
|
|
334
345
|
type: DEVTOOLS_TYPE,
|
|
335
346
|
properties: {
|
|
336
|
-
label: ['workflows label', { ns:
|
|
347
|
+
label: ['workflows label', { ns: meta.id }],
|
|
337
348
|
icon: 'ph--function--regular',
|
|
338
349
|
},
|
|
339
350
|
},
|
|
@@ -342,7 +353,7 @@ export default (context: PluginContext) =>
|
|
|
342
353
|
data: Devtools.Edge.Traces,
|
|
343
354
|
type: DEVTOOLS_TYPE,
|
|
344
355
|
properties: {
|
|
345
|
-
label: ['traces label', { ns:
|
|
356
|
+
label: ['traces label', { ns: meta.id }],
|
|
346
357
|
icon: 'ph--line-segments--regular',
|
|
347
358
|
},
|
|
348
359
|
},
|
|
@@ -351,7 +362,7 @@ export default (context: PluginContext) =>
|
|
|
351
362
|
data: Devtools.Edge.Testing,
|
|
352
363
|
type: DEVTOOLS_TYPE,
|
|
353
364
|
properties: {
|
|
354
|
-
label: ['testing label', { ns:
|
|
365
|
+
label: ['testing label', { ns: meta.id }],
|
|
355
366
|
icon: 'ph--flask--regular',
|
|
356
367
|
},
|
|
357
368
|
},
|
|
@@ -366,49 +377,12 @@ export default (context: PluginContext) =>
|
|
|
366
377
|
),
|
|
367
378
|
}),
|
|
368
379
|
|
|
369
|
-
// Debug node.
|
|
370
|
-
createExtension({
|
|
371
|
-
id: 'dxos.org/plugin/debug/debug',
|
|
372
|
-
connector: (node) =>
|
|
373
|
-
Rx.make((get) =>
|
|
374
|
-
pipe(
|
|
375
|
-
get(node),
|
|
376
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
377
|
-
Option.flatMap(() => {
|
|
378
|
-
const [graph] = get(context.capabilities(Capabilities.AppGraph));
|
|
379
|
-
return graph ? Option.some(graph) : Option.none();
|
|
380
|
-
}),
|
|
381
|
-
Option.flatMap((graph) => {
|
|
382
|
-
// TODO(wittjosiah): Plank is currently blank. Remove?
|
|
383
|
-
// const settings = context
|
|
384
|
-
// .requestCapabilities(Capabilities.SettingsStore)[0]
|
|
385
|
-
// ?.getStore<DebugSettingsProps>(DEBUG_PLUGIN)?.value;
|
|
386
|
-
// return !!settings?.debug && node.id === 'root';
|
|
387
|
-
return Option.none();
|
|
388
|
-
}),
|
|
389
|
-
Option.map((graph) => [
|
|
390
|
-
{
|
|
391
|
-
id: 'dxos.org/plugin/debug/debug',
|
|
392
|
-
type: 'dxos.org/plugin/debug/debug',
|
|
393
|
-
data: { graph },
|
|
394
|
-
properties: {
|
|
395
|
-
label: ['debug label', { ns: DEBUG_PLUGIN }],
|
|
396
|
-
disposition: 'navigation',
|
|
397
|
-
icon: 'ph--bug--regular',
|
|
398
|
-
},
|
|
399
|
-
},
|
|
400
|
-
]),
|
|
401
|
-
Option.getOrElse(() => []),
|
|
402
|
-
),
|
|
403
|
-
),
|
|
404
|
-
}),
|
|
405
|
-
|
|
406
380
|
// Debug object companion.
|
|
407
381
|
createExtension({
|
|
408
|
-
id: `${
|
|
382
|
+
id: `${meta.id}/debug-object`,
|
|
409
383
|
connector: (node) =>
|
|
410
384
|
Rx.make((get) =>
|
|
411
|
-
pipe(
|
|
385
|
+
Function.pipe(
|
|
412
386
|
get(node),
|
|
413
387
|
Option.flatMap((node) => (Obj.isObject(node.data) ? Option.some(node) : Option.none())),
|
|
414
388
|
Option.map((node) => [
|
|
@@ -417,7 +391,7 @@ export default (context: PluginContext) =>
|
|
|
417
391
|
type: PLANK_COMPANION_TYPE,
|
|
418
392
|
data: 'debug',
|
|
419
393
|
properties: {
|
|
420
|
-
label: ['debug label', { ns:
|
|
394
|
+
label: ['debug label', { ns: meta.id }],
|
|
421
395
|
icon: 'ph--bug--regular',
|
|
422
396
|
disposition: 'hidden',
|
|
423
397
|
position: 'fallback',
|
|
@@ -431,10 +405,10 @@ export default (context: PluginContext) =>
|
|
|
431
405
|
|
|
432
406
|
// Devtools deck companion.
|
|
433
407
|
createExtension({
|
|
434
|
-
id: `${
|
|
408
|
+
id: `${meta.id}/devtools-overview`,
|
|
435
409
|
connector: (node) =>
|
|
436
410
|
Rx.make((get) =>
|
|
437
|
-
pipe(
|
|
411
|
+
Function.pipe(
|
|
438
412
|
get(node),
|
|
439
413
|
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
440
414
|
Option.map((node) => [
|
|
@@ -443,7 +417,7 @@ export default (context: PluginContext) =>
|
|
|
443
417
|
type: DECK_COMPANION_TYPE,
|
|
444
418
|
data: null,
|
|
445
419
|
properties: {
|
|
446
|
-
label: ['devtools overview label', { ns:
|
|
420
|
+
label: ['devtools overview label', { ns: meta.id }],
|
|
447
421
|
icon: 'ph--equalizer--regular',
|
|
448
422
|
disposition: 'hidden',
|
|
449
423
|
position: 'fallback',
|
|
@@ -7,10 +7,10 @@ import React from 'react';
|
|
|
7
7
|
import { Capabilities, contributes } from '@dxos/app-framework';
|
|
8
8
|
import { DevtoolsContextProvider } from '@dxos/devtools';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { meta } from '../meta';
|
|
11
11
|
|
|
12
12
|
export default () =>
|
|
13
13
|
contributes(Capabilities.ReactContext, {
|
|
14
|
-
id:
|
|
14
|
+
id: meta.id,
|
|
15
15
|
context: ({ children }) => <DevtoolsContextProvider>{children}</DevtoolsContextProvider>,
|
|
16
16
|
});
|