@dxos/plugin-debug 0.8.4-main.9735255 → 0.8.4-main.abd8ff62ef
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/index.mjs +19 -118
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +81 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/types/src/DebugPlugin.d.ts +3 -1
- package/dist/types/src/DebugPlugin.d.ts.map +1 -1
- package/dist/types/src/DebugPlugin.node.d.ts +5 -0
- package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
- package/dist/types/src/DebugPlugin.test.d.ts +2 -0
- package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +11 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +7 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +97 -0
- package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
- package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
- 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 +2 -2
- package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/draw-util.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 +4 -10
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
- package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts +2 -0
- package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +6 -0
- package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts +2 -0
- package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +5 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
- package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +2 -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 +2 -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 +2 -0
- package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +11 -0
- package/dist/types/src/{components → containers}/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceGenerator/index.d.ts +2 -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 +2 -0
- package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +9 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +78 -59
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +8 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +69 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +89 -70
- package/src/DebugPlugin.node.ts +18 -0
- package/src/DebugPlugin.test.ts +29 -0
- package/src/DebugPlugin.tsx +20 -11
- package/src/capabilities/app-graph-builder.ts +405 -0
- package/src/capabilities/index.ts +6 -4
- package/src/capabilities/react-context.tsx +25 -0
- package/src/capabilities/react-surface.tsx +439 -0
- package/src/capabilities/{settings/settings.ts → settings.ts} +7 -6
- package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
- package/src/components/DebugSettings/DebugSettings.tsx +262 -0
- package/src/components/DebugSettings/index.ts +5 -0
- package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +2 -2
- package/src/components/SchemaTable/index.ts +5 -0
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +14 -15
- package/src/components/SpaceGenerator/draw-util.ts +8 -8
- package/src/components/SpaceGenerator/index.ts +2 -3
- package/src/components/SpaceGenerator/presets.ts +53 -73
- package/src/components/index.ts +4 -11
- package/src/{components → containers/DebugGraph}/DebugGraph.tsx +3 -4
- package/src/containers/DebugGraph/index.ts +5 -0
- package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +76 -0
- package/src/containers/DebugObjectPanel/index.ts +5 -0
- package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +47 -0
- package/src/containers/DebugSpaceObjectsPanel/index.ts +5 -0
- package/src/{components → containers/DebugStatus}/DebugStatus.tsx +41 -19
- package/src/containers/DebugStatus/index.ts +5 -0
- package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
- package/src/containers/DevtoolsOverviewContainer/index.ts +5 -0
- package/src/containers/SpaceGenerator/SpaceGenerator.tsx +126 -0
- package/src/containers/SpaceGenerator/index.ts +5 -0
- package/src/{components → containers/Wireframe}/Wireframe.tsx +3 -7
- package/src/containers/Wireframe/index.ts +5 -0
- package/src/containers/index.ts +13 -0
- package/src/index.ts +7 -1
- package/src/meta.ts +1 -1
- package/src/translations.ts +75 -58
- package/src/types/Settings.ts +16 -0
- package/src/{types.ts → types/index.ts} +15 -14
- package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs +0 -15
- package/dist/lib/browser/DebugGraph-6VMEOKEV.mjs.map +0 -7
- package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs +0 -19
- package/dist/lib/browser/DevtoolsOverviewContainer-77PKFLYV.mjs.map +0 -7
- package/dist/lib/browser/SpaceGenerator-H33AEFGC.mjs +0 -1152
- package/dist/lib/browser/SpaceGenerator-H33AEFGC.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-LV73R7HR.mjs +0 -598
- package/dist/lib/browser/app-graph-builder-LV73R7HR.mjs.map +0 -7
- package/dist/lib/browser/chunk-4UFQXPP7.mjs +0 -78
- package/dist/lib/browser/chunk-4UFQXPP7.mjs.map +0 -7
- package/dist/lib/browser/chunk-A5H5GRV6.mjs +0 -20
- package/dist/lib/browser/chunk-A5H5GRV6.mjs.map +0 -7
- package/dist/lib/browser/react-context-FSWBT3MH.mjs +0 -17
- 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 +0 -31
- package/dist/lib/browser/settings-KA4GN73K.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
- package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -3
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +0 -5
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- 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 +0 -9
- package/dist/types/src/components/DebugGraph.d.ts.map +0 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts +0 -7
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
- package/dist/types/src/components/DebugSettings.d.ts +0 -8
- 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.d.ts +0 -9
- 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/dist/types/src/types.d.ts +0 -68
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -420
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/react-context/index.ts +0 -7
- package/src/capabilities/react-context/react-context.tsx +0 -20
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -409
- package/src/capabilities/settings/index.ts +0 -7
- package/src/components/Container.tsx +0 -15
- package/src/components/DebugObjectPanel.tsx +0 -33
- package/src/components/DebugSettings.tsx +0 -185
- package/src/components/DevtoolsOverviewContainer.tsx +0 -20
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -54
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -127
- /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/Wireframe}/Wireframe.d.ts +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.abd8ff62ef",
|
|
4
4
|
"description": "DXOS Surface plugin for testing.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -12,17 +12,33 @@
|
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#capabilities": "./src/capabilities/index.ts",
|
|
17
|
+
"#components": "./src/components/index.ts",
|
|
18
|
+
"#containers": "./src/containers/index.ts",
|
|
19
|
+
"#meta": "./src/meta.ts",
|
|
20
|
+
"#plugin": {
|
|
21
|
+
"browser": "./src/DebugPlugin.tsx",
|
|
22
|
+
"node": "./src/DebugPlugin.node.ts",
|
|
23
|
+
"default": "./src/DebugPlugin.tsx"
|
|
24
|
+
},
|
|
25
|
+
"#translations": "./src/translations.ts",
|
|
26
|
+
"#types": "./src/types/index.ts"
|
|
27
|
+
},
|
|
15
28
|
"exports": {
|
|
16
29
|
".": {
|
|
17
|
-
"browser": "./dist/lib/browser/index.mjs",
|
|
18
30
|
"source": "./src/index.ts",
|
|
19
|
-
"types": "./dist/types/src/index.d.ts"
|
|
31
|
+
"types": "./dist/types/src/index.d.ts",
|
|
32
|
+
"browser": "./dist/lib/browser/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./translations": {
|
|
35
|
+
"source": "./src/translations.ts",
|
|
36
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
37
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
38
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
20
39
|
}
|
|
21
40
|
},
|
|
22
41
|
"types": "dist/types/src/index.d.ts",
|
|
23
|
-
"typesVersions": {
|
|
24
|
-
"*": {}
|
|
25
|
-
},
|
|
26
42
|
"files": [
|
|
27
43
|
"dist",
|
|
28
44
|
"src"
|
|
@@ -31,84 +47,87 @@
|
|
|
31
47
|
"@antv/graphlib": "^2.0.4",
|
|
32
48
|
"@antv/layout": "^1.2.13",
|
|
33
49
|
"@automerge/automerge": "3.2.3",
|
|
34
|
-
"@effect-atom/atom": "^0.
|
|
35
|
-
"@effect-atom/atom-react": "^0.
|
|
50
|
+
"@effect-atom/atom": "^0.5.1",
|
|
51
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
36
52
|
"@tldraw/tldraw": "^3.0.0",
|
|
37
|
-
"date-fns": "^3.
|
|
53
|
+
"date-fns": "^3.6.0",
|
|
38
54
|
"react-json-tree": "^0.18.0",
|
|
39
55
|
"react-resize-detector": "^11.0.1",
|
|
40
56
|
"workerize-loader": "^2.0.2",
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/echo": "0.8.4-main.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/log": "0.8.4-main.
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/plugin-
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/plugin-script": "0.8.4-main.
|
|
67
|
-
"@dxos/plugin-sheet": "0.8.4-main.
|
|
68
|
-
"@dxos/plugin-
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/plugin-
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/protocols": "0.8.4-main.
|
|
74
|
-
"@dxos/random": "0.8.4-main.
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/react-
|
|
77
|
-
"@dxos/react-
|
|
78
|
-
"@dxos/react-ui-canvas-compute": "0.8.4-main.
|
|
79
|
-
"@dxos/react-ui-canvas-editor": "0.8.4-main.
|
|
80
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/react-ui-table": "0.8.4-main.
|
|
88
|
-
"@dxos/
|
|
57
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
58
|
+
"@dxos/assistant-toolkit": "0.8.4-main.abd8ff62ef",
|
|
59
|
+
"@dxos/client-services": "0.8.4-main.abd8ff62ef",
|
|
60
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
61
|
+
"@dxos/compute": "0.8.4-main.abd8ff62ef",
|
|
62
|
+
"@dxos/compute-hyperformula": "0.8.4-main.abd8ff62ef",
|
|
63
|
+
"@dxos/conductor": "0.8.4-main.abd8ff62ef",
|
|
64
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
|
|
65
|
+
"@dxos/config": "0.8.4-main.abd8ff62ef",
|
|
66
|
+
"@dxos/context": "0.8.4-main.abd8ff62ef",
|
|
67
|
+
"@dxos/devtools": "0.8.4-main.abd8ff62ef",
|
|
68
|
+
"@dxos/echo-generator": "0.8.4-main.abd8ff62ef",
|
|
69
|
+
"@dxos/effect": "0.8.4-main.abd8ff62ef",
|
|
70
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
71
|
+
"@dxos/echo-pipeline": "0.8.4-main.abd8ff62ef",
|
|
72
|
+
"@dxos/invariant": "0.8.4-main.abd8ff62ef",
|
|
73
|
+
"@dxos/keys": "0.8.4-main.abd8ff62ef",
|
|
74
|
+
"@dxos/log-store-idb": "0.8.4-main.abd8ff62ef",
|
|
75
|
+
"@dxos/log": "0.8.4-main.abd8ff62ef",
|
|
76
|
+
"@dxos/operation": "0.8.4-main.abd8ff62ef",
|
|
77
|
+
"@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
|
|
78
|
+
"@dxos/plugin-deck": "0.8.4-main.abd8ff62ef",
|
|
79
|
+
"@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
|
|
80
|
+
"@dxos/plugin-inbox": "0.8.4-main.abd8ff62ef",
|
|
81
|
+
"@dxos/plugin-markdown": "0.8.4-main.abd8ff62ef",
|
|
82
|
+
"@dxos/plugin-script": "0.8.4-main.abd8ff62ef",
|
|
83
|
+
"@dxos/plugin-sheet": "0.8.4-main.abd8ff62ef",
|
|
84
|
+
"@dxos/plugin-meeting": "0.8.4-main.abd8ff62ef",
|
|
85
|
+
"@dxos/plugin-sketch": "0.8.4-main.abd8ff62ef",
|
|
86
|
+
"@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
|
|
87
|
+
"@dxos/plugin-status-bar": "0.8.4-main.abd8ff62ef",
|
|
88
|
+
"@dxos/plugin-table": "0.8.4-main.abd8ff62ef",
|
|
89
|
+
"@dxos/protocols": "0.8.4-main.abd8ff62ef",
|
|
90
|
+
"@dxos/random": "0.8.4-main.abd8ff62ef",
|
|
91
|
+
"@dxos/plugin-theme": "0.8.4-main.abd8ff62ef",
|
|
92
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
93
|
+
"@dxos/react-hooks": "0.8.4-main.abd8ff62ef",
|
|
94
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.abd8ff62ef",
|
|
95
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.abd8ff62ef",
|
|
96
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
97
|
+
"@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
|
|
98
|
+
"@dxos/react-ui-introspect": "0.8.4-main.abd8ff62ef",
|
|
99
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef",
|
|
100
|
+
"@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
|
|
101
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.abd8ff62ef",
|
|
102
|
+
"@dxos/schema": "0.8.4-main.abd8ff62ef",
|
|
103
|
+
"@dxos/react-ui-table": "0.8.4-main.abd8ff62ef",
|
|
104
|
+
"@dxos/types": "0.8.4-main.abd8ff62ef",
|
|
105
|
+
"@dxos/tracing": "0.8.4-main.abd8ff62ef",
|
|
106
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef"
|
|
89
107
|
},
|
|
90
108
|
"devDependencies": {
|
|
91
|
-
"@effect-atom/atom-react": "^0.
|
|
92
|
-
"@effect/platform": "0.
|
|
109
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
110
|
+
"@effect/platform": "0.94.4",
|
|
93
111
|
"@types/react": "~19.2.7",
|
|
94
112
|
"@types/react-dom": "~19.2.3",
|
|
95
|
-
"effect": "3.
|
|
113
|
+
"effect": "3.20.0",
|
|
96
114
|
"react": "~19.2.3",
|
|
97
115
|
"react-dom": "~19.2.3",
|
|
98
|
-
"vite": "
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
101
|
-
"@dxos/ui
|
|
116
|
+
"vite": "^8.0.10",
|
|
117
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
|
|
118
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
|
|
119
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
120
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
102
121
|
},
|
|
103
122
|
"peerDependencies": {
|
|
104
|
-
"@effect-atom/atom-react": "^0.
|
|
105
|
-
"@effect/platform": "0.
|
|
106
|
-
"effect": "3.
|
|
123
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
124
|
+
"@effect/platform": "0.94.4",
|
|
125
|
+
"effect": "3.20.0",
|
|
107
126
|
"react": "~19.2.3",
|
|
108
127
|
"react-dom": "~19.2.3",
|
|
109
|
-
"@dxos/
|
|
110
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
111
|
-
"@dxos/
|
|
128
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
|
|
129
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
130
|
+
"@dxos/random": "0.8.4-main.abd8ff62ef"
|
|
112
131
|
},
|
|
113
132
|
"publishConfig": {
|
|
114
133
|
"access": "public"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
|
|
8
|
+
import { AppGraphBuilder, DebugSettings } from '#capabilities';
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
import { type DebugPluginOptions } from '#types';
|
|
11
|
+
|
|
12
|
+
export const DebugPlugin = Plugin.define<DebugPluginOptions>(meta).pipe(
|
|
13
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
14
|
+
AppPlugin.addSettingsModule({ activate: DebugSettings }),
|
|
15
|
+
Plugin.make,
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export default DebugPlugin;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { AppActivationEvents } from '@dxos/app-toolkit';
|
|
8
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
9
|
+
|
|
10
|
+
import { DebugPlugin } from '#plugin';
|
|
11
|
+
|
|
12
|
+
import { meta } from './meta';
|
|
13
|
+
|
|
14
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
15
|
+
|
|
16
|
+
describe('DebugPlugin', () => {
|
|
17
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
18
|
+
await using harness = await createComposerTestApp({
|
|
19
|
+
plugins: [DebugPlugin({})],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// AppGraphBuilder auto-cascades from Startup (SetupAppGraph).
|
|
23
|
+
expect(harness.manager.getActive()).toContain(moduleId('AppGraphBuilder'));
|
|
24
|
+
|
|
25
|
+
// DebugSettings still needs manual SetupSettings fire (not auto-cascaded).
|
|
26
|
+
await harness.fire(AppActivationEvents.SetupSettings);
|
|
27
|
+
expect(harness.manager.getActive()).toContain(moduleId('DebugSettings'));
|
|
28
|
+
});
|
|
29
|
+
});
|
package/src/DebugPlugin.tsx
CHANGED
|
@@ -4,25 +4,32 @@
|
|
|
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';
|
|
8
9
|
import { type Client } from '@dxos/react-client';
|
|
9
10
|
|
|
10
|
-
import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from '
|
|
11
|
-
import { meta } from '
|
|
12
|
-
import { translations } from '
|
|
11
|
+
import { AppGraphBuilder, DebugSettings, ReactContext, ReactSurface } from '#capabilities';
|
|
12
|
+
import { meta } from '#meta';
|
|
13
|
+
import { translations } from '#translations';
|
|
14
|
+
import { type DebugPluginOptions } from '#types';
|
|
13
15
|
|
|
14
16
|
// TODO(wittjosiah): Factor out DevtoolsPlugin?
|
|
15
|
-
|
|
17
|
+
|
|
18
|
+
export const DebugPlugin = Plugin.define<DebugPluginOptions>(meta).pipe(
|
|
19
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
20
|
+
AppPlugin.addReactContextModule({ activate: ReactContext }),
|
|
21
|
+
AppPlugin.addSettingsModule({ activate: DebugSettings }),
|
|
22
|
+
Plugin.addModule(({ logStore }) => ({
|
|
23
|
+
id: Capability.getModuleTag(ReactSurface) ?? 'surfaces',
|
|
24
|
+
activatesOn: ActivationEvents.SetupReactSurface,
|
|
25
|
+
activate: () => ReactSurface({ logStore }),
|
|
26
|
+
})),
|
|
27
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
16
28
|
Plugin.addModule({
|
|
17
29
|
id: 'setup-devtools',
|
|
18
|
-
activatesOn:
|
|
30
|
+
activatesOn: ActivationEvents.Startup,
|
|
19
31
|
activate: () => Effect.sync(() => setupDevtools()),
|
|
20
32
|
}),
|
|
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
33
|
Plugin.make,
|
|
27
34
|
);
|
|
28
35
|
|
|
@@ -41,3 +48,5 @@ const setupDevtools = () => {
|
|
|
41
48
|
location.pathname = '/';
|
|
42
49
|
};
|
|
43
50
|
};
|
|
51
|
+
|
|
52
|
+
export default DebugPlugin;
|