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