@dxos/plugin-debug 0.8.4-main.dedc0f3 → 0.8.4-main.e8ec1fe
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/{DevtoolsOverviewContainer-EPD6EWT5.mjs → DevtoolsOverviewContainer-JXVZVPHN.mjs} +2 -2
- package/dist/lib/browser/{DevtoolsOverviewContainer-EPD6EWT5.mjs.map → DevtoolsOverviewContainer-JXVZVPHN.mjs.map} +1 -1
- package/dist/lib/browser/{SpaceGenerator-DANYBPYZ.mjs → SpaceGenerator-46TAISVE.mjs} +222 -47
- package/dist/lib/browser/SpaceGenerator-46TAISVE.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-JTIEFOWZ.mjs → app-graph-builder-CRH2HJKT.mjs} +60 -59
- package/dist/lib/browser/app-graph-builder-CRH2HJKT.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 +11 -14
- 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-YLOWSIBU.mjs → react-surface-2SNVZDEA.mjs} +85 -84
- package/dist/lib/browser/react-surface-2SNVZDEA.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/DebugSettings.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 +6 -4
- package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
- package/dist/types/src/components/Wireframe.d.ts +1 -1
- package/dist/types/src/components/Wireframe.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 +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 +67 -64
- package/src/DebugPlugin.tsx +5 -6
- package/src/capabilities/app-graph-builder.ts +59 -58
- package/src/capabilities/react-context.tsx +2 -2
- package/src/capabilities/react-surface.tsx +70 -50
- package/src/components/DebugObjectPanel.tsx +2 -4
- package/src/components/DebugSettings.tsx +39 -18
- package/src/components/DebugStatus.tsx +2 -2
- package/src/components/DevtoolsOverviewContainer.tsx +1 -1
- package/src/components/SpaceGenerator/ObjectGenerator.tsx +16 -22
- package/src/components/SpaceGenerator/SchemaTable.tsx +2 -2
- package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +3 -5
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +6 -6
- package/src/components/SpaceGenerator/draw-util.ts +2 -2
- package/src/components/SpaceGenerator/presets.ts +179 -13
- package/src/components/Wireframe.tsx +2 -3
- package/src/meta.ts +6 -5
- package/src/translations.ts +1 -1
- package/src/types.ts +1 -1
- package/dist/lib/browser/SpaceGenerator-DANYBPYZ.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-YLOWSIBU.mjs.map +0 -7
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Devtools
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SRV2AIGJ.mjs";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-WZFZ4ESO.mjs";
|
|
7
7
|
|
|
8
8
|
// src/capabilities/react-surface.tsx
|
|
9
|
-
import
|
|
9
|
+
import * as Function from "effect/Function";
|
|
10
10
|
import React5, { useCallback } from "react";
|
|
11
|
-
import { Capabilities as Capabilities2, LayoutAction, chain, contributes, createIntent, createSurface
|
|
11
|
+
import { Capabilities as Capabilities2, LayoutAction, chain, contributes, createIntent, createSurface } from "@dxos/app-framework";
|
|
12
|
+
import { useCapability, useIntentDispatcher } from "@dxos/app-framework/react";
|
|
12
13
|
import { AutomergePanel, ConfigPanel, CredentialsPanel, DeviceListPanel, DiagnosticsPanel, EdgeDashboardPanel, FeedsPanel, IdentityPanel, InvocationTraceContainer, KeyringPanel, LoggingPanel, MembersPanel, MetadataPanel, NetworkPanel, ObjectsPanel, QueuesPanel, SchemaPanel, SignalPanel, SpaceInfoPanel, SpaceListPanel, StoragePanel, SwarmPanel, TestingPanel, TracingPanel, WorkflowPanel } from "@dxos/devtools";
|
|
13
|
-
import { Obj } from "@dxos/echo";
|
|
14
|
+
import { Obj as Obj2 } from "@dxos/echo";
|
|
14
15
|
import { SettingsStore } from "@dxos/local-storage";
|
|
15
16
|
import { log as log2 } from "@dxos/log";
|
|
16
17
|
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
@@ -19,7 +20,7 @@ import { ScriptAction } from "@dxos/plugin-script/types";
|
|
|
19
20
|
import { SpaceAction } from "@dxos/plugin-space/types";
|
|
20
21
|
import { SpaceState, isSpace, parseId } from "@dxos/react-client/echo";
|
|
21
22
|
import { StackItem as StackItem2 } from "@dxos/react-ui-stack";
|
|
22
|
-
import {
|
|
23
|
+
import { Collection } from "@dxos/schema";
|
|
23
24
|
|
|
24
25
|
// src/components/index.ts
|
|
25
26
|
import { lazy } from "react";
|
|
@@ -29,7 +30,7 @@ import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
|
29
30
|
import React from "react";
|
|
30
31
|
import { Clipboard, Input, Toolbar } from "@dxos/react-ui";
|
|
31
32
|
import { StackItem } from "@dxos/react-ui-stack";
|
|
32
|
-
import {
|
|
33
|
+
import { Json } from "@dxos/react-ui-syntax-highlighter";
|
|
33
34
|
var DebugObjectPanel = ({ object }) => {
|
|
34
35
|
var _effect = _useSignals();
|
|
35
36
|
try {
|
|
@@ -41,10 +42,9 @@ var DebugObjectPanel = ({ object }) => {
|
|
|
41
42
|
value: dxn
|
|
42
43
|
}), /* @__PURE__ */ React.createElement(Clipboard.IconButton, {
|
|
43
44
|
value: dxn
|
|
44
|
-
}))), /* @__PURE__ */ React.createElement(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, JSON.stringify(object, null, 2))));
|
|
45
|
+
}))), /* @__PURE__ */ React.createElement(Json, {
|
|
46
|
+
data: object
|
|
47
|
+
})));
|
|
48
48
|
} finally {
|
|
49
49
|
_effect.f();
|
|
50
50
|
}
|
|
@@ -53,11 +53,12 @@ var DebugObjectPanel = ({ object }) => {
|
|
|
53
53
|
// src/components/DebugSettings.tsx
|
|
54
54
|
import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
|
|
55
55
|
import React2, { useEffect, useState } from "react";
|
|
56
|
-
import { Capabilities
|
|
56
|
+
import { Capabilities } from "@dxos/app-framework";
|
|
57
|
+
import { useCapabilities } from "@dxos/app-framework/react";
|
|
57
58
|
import { SaveConfig, Storage, defs } from "@dxos/config";
|
|
58
59
|
import { log } from "@dxos/log";
|
|
59
60
|
import { useClient } from "@dxos/react-client";
|
|
60
|
-
import {
|
|
61
|
+
import { Icon, IconButton, Input as Input2, Select, Toast, useFileDownload, useTranslation } from "@dxos/react-ui";
|
|
61
62
|
import { ControlGroup, ControlItemInput, ControlPage, ControlSection } from "@dxos/react-ui-form";
|
|
62
63
|
import { setDeep } from "@dxos/util";
|
|
63
64
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-debug/src/components/DebugSettings.tsx";
|
|
@@ -68,7 +69,7 @@ var StorageAdapters = {
|
|
|
68
69
|
var DebugSettings = ({ settings }) => {
|
|
69
70
|
var _effect = _useSignals2();
|
|
70
71
|
try {
|
|
71
|
-
const { t } = useTranslation(
|
|
72
|
+
const { t } = useTranslation(meta.id);
|
|
72
73
|
const [toast, setToast] = useState();
|
|
73
74
|
const client = useClient();
|
|
74
75
|
const download = useFileDownload();
|
|
@@ -92,13 +93,13 @@ var DebugSettings = ({ settings }) => {
|
|
|
92
93
|
const fileName = `composer-${(/* @__PURE__ */ new Date()).toISOString().replace(/\W/g, "-")}.json`;
|
|
93
94
|
download(file, fileName);
|
|
94
95
|
if (upload) {
|
|
95
|
-
const info = await upload(new File([
|
|
96
|
+
const info = await upload(client.spaces.default, new File([
|
|
96
97
|
file
|
|
97
|
-
], fileName)
|
|
98
|
+
], fileName));
|
|
98
99
|
if (!info) {
|
|
99
100
|
log.error("diagnostics failed to upload to IPFS", void 0, {
|
|
100
101
|
F: __dxlog_file,
|
|
101
|
-
L:
|
|
102
|
+
L: 59,
|
|
102
103
|
S: void 0,
|
|
103
104
|
C: (f, a) => f(...a)
|
|
104
105
|
});
|
|
@@ -118,7 +119,7 @@ var DebugSettings = ({ settings }) => {
|
|
|
118
119
|
url
|
|
119
120
|
}, {
|
|
120
121
|
F: __dxlog_file,
|
|
121
|
-
L:
|
|
122
|
+
L: 74,
|
|
122
123
|
S: void 0,
|
|
123
124
|
C: (f, a) => f(...a)
|
|
124
125
|
});
|
|
@@ -141,7 +142,7 @@ var DebugSettings = ({ settings }) => {
|
|
|
141
142
|
};
|
|
142
143
|
return /* @__PURE__ */ React2.createElement(ControlPage, null, /* @__PURE__ */ React2.createElement(ControlSection, {
|
|
143
144
|
title: t("settings title", {
|
|
144
|
-
ns:
|
|
145
|
+
ns: meta.id
|
|
145
146
|
})
|
|
146
147
|
}, /* @__PURE__ */ React2.createElement(ControlGroup, null, /* @__PURE__ */ React2.createElement(ControlItemInput, {
|
|
147
148
|
title: t("settings wireframe")
|
|
@@ -150,26 +151,26 @@ var DebugSettings = ({ settings }) => {
|
|
|
150
151
|
onCheckedChange: (checked) => settings.wireframe = !!checked
|
|
151
152
|
})), /* @__PURE__ */ React2.createElement(ControlItemInput, {
|
|
152
153
|
title: t("settings download diagnostics")
|
|
153
|
-
}, /* @__PURE__ */ React2.createElement(
|
|
154
|
-
onClick: handleDownload
|
|
155
|
-
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
154
|
+
}, /* @__PURE__ */ React2.createElement(IconButton, {
|
|
156
155
|
icon: "ph--download-simple--regular",
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
iconOnly: true,
|
|
157
|
+
label: t("settings download diagnostics"),
|
|
158
|
+
onClick: handleDownload
|
|
159
|
+
})), /* @__PURE__ */ React2.createElement(ControlItemInput, {
|
|
159
160
|
title: t("settings repair")
|
|
160
|
-
}, /* @__PURE__ */ React2.createElement(
|
|
161
|
-
onClick: handleRepair
|
|
162
|
-
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
161
|
+
}, /* @__PURE__ */ React2.createElement(IconButton, {
|
|
163
162
|
icon: "ph--first-aid-kit--regular",
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
iconOnly: true,
|
|
164
|
+
label: t("settings repair"),
|
|
165
|
+
onClick: handleRepair
|
|
166
|
+
})), toast && /* @__PURE__ */ React2.createElement(Toast.Root, null, /* @__PURE__ */ React2.createElement(Toast.Body, null, /* @__PURE__ */ React2.createElement(Toast.Title, null, /* @__PURE__ */ React2.createElement(Icon, {
|
|
166
167
|
icon: "ph--gift--duotone",
|
|
167
168
|
size: 5,
|
|
168
169
|
classNames: "inline mr-1"
|
|
169
170
|
}), /* @__PURE__ */ React2.createElement("span", null, toast.title)), toast.description && /* @__PURE__ */ React2.createElement(Toast.Description, null, toast.description))), /* @__PURE__ */ React2.createElement(ControlItemInput, {
|
|
170
171
|
title: t("settings choose storage adaptor")
|
|
171
172
|
}, /* @__PURE__ */ React2.createElement(Select.Root, {
|
|
172
|
-
value: Object.entries(StorageAdapters).find(([
|
|
173
|
+
value: Object.entries(StorageAdapters).find(([_name, value]) => value === storageConfig?.runtime?.client?.storage?.dataStore)?.[0],
|
|
173
174
|
onValueChange: (value) => {
|
|
174
175
|
if (confirm(t("settings storage adapter changed alert"))) {
|
|
175
176
|
updateConfig(storageConfig, setStorageConfig, [
|
|
@@ -217,7 +218,7 @@ var ErrorIndicator = () => {
|
|
|
217
218
|
var _effect = _useSignals3();
|
|
218
219
|
try {
|
|
219
220
|
const [, forceUpdate] = useState2({});
|
|
220
|
-
const errorRef = useRef();
|
|
221
|
+
const errorRef = useRef(null);
|
|
221
222
|
useEffect2(() => {
|
|
222
223
|
const errorListener = (event) => {
|
|
223
224
|
const error = event.error ?? event.reason;
|
|
@@ -234,7 +235,7 @@ var ErrorIndicator = () => {
|
|
|
234
235
|
};
|
|
235
236
|
}, []);
|
|
236
237
|
const handleReset = () => {
|
|
237
|
-
errorRef.current =
|
|
238
|
+
errorRef.current = null;
|
|
238
239
|
forceUpdate({});
|
|
239
240
|
};
|
|
240
241
|
if (errorRef.current) {
|
|
@@ -343,14 +344,14 @@ var DebugStatus = () => {
|
|
|
343
344
|
import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
|
|
344
345
|
import React4 from "react";
|
|
345
346
|
import { useResizeDetector } from "react-resize-detector";
|
|
346
|
-
import {
|
|
347
|
+
import { Obj } from "@dxos/echo";
|
|
347
348
|
import { useAttentionAttributes } from "@dxos/react-ui-attention";
|
|
348
|
-
import { SyntaxHighlighter
|
|
349
|
+
import { SyntaxHighlighter } from "@dxos/react-ui-syntax-highlighter";
|
|
349
350
|
import { mx } from "@dxos/react-ui-theme";
|
|
350
351
|
var Wireframe = ({ classNames, label, object }) => {
|
|
351
352
|
var _effect = _useSignals4();
|
|
352
353
|
try {
|
|
353
|
-
const attentionAttrs = useAttentionAttributes(
|
|
354
|
+
const attentionAttrs = useAttentionAttributes(Obj.getDXN(object).toString());
|
|
354
355
|
const { width, height, ref } = useResizeDetector();
|
|
355
356
|
return /* @__PURE__ */ React4.createElement("div", {
|
|
356
357
|
ref,
|
|
@@ -360,7 +361,7 @@ var Wireframe = ({ classNames, label, object }) => {
|
|
|
360
361
|
className: "absolute inset-2 flex flex-col gap-2 overflow-hidden font-mono"
|
|
361
362
|
}, /* @__PURE__ */ React4.createElement("div", {
|
|
362
363
|
className: "flex justify-between"
|
|
363
|
-
}, /* @__PURE__ */ React4.createElement("div", null, label), /* @__PURE__ */ React4.createElement("div", null, `[${width}x${height}]`)), object && /* @__PURE__ */ React4.createElement(
|
|
364
|
+
}, /* @__PURE__ */ React4.createElement("div", null, label), /* @__PURE__ */ React4.createElement("div", null, `[${width}x${height}]`)), object && /* @__PURE__ */ React4.createElement(SyntaxHighlighter, {
|
|
364
365
|
language: "json",
|
|
365
366
|
classNames: "text-xs opacity-75 rounded"
|
|
366
367
|
}, JSON.stringify(object, void 0, 2))), /* @__PURE__ */ React4.createElement("svg", {
|
|
@@ -394,12 +395,12 @@ var Wireframe = ({ classNames, label, object }) => {
|
|
|
394
395
|
|
|
395
396
|
// src/components/index.ts
|
|
396
397
|
var DebugGraph = lazy(() => import("./DebugGraph-EDOH6R2G.mjs"));
|
|
397
|
-
var DevtoolsOverviewContainer = lazy(() => import("./DevtoolsOverviewContainer-
|
|
398
|
-
var SpaceGenerator = lazy(() => import("./SpaceGenerator-
|
|
398
|
+
var DevtoolsOverviewContainer = lazy(() => import("./DevtoolsOverviewContainer-JXVZVPHN.mjs"));
|
|
399
|
+
var SpaceGenerator = lazy(() => import("./SpaceGenerator-46TAISVE.mjs"));
|
|
399
400
|
|
|
400
401
|
// src/capabilities/react-surface.tsx
|
|
401
402
|
var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-debug/src/capabilities/react-surface.tsx";
|
|
402
|
-
var isSpaceDebug = (data) => data?.type === `${
|
|
403
|
+
var isSpaceDebug = (data) => data?.type === `${meta.id}/space` && isSpace(data.space);
|
|
403
404
|
var isGraphDebug = (data) => data?.graph instanceof Graph && typeof data?.root === "string";
|
|
404
405
|
var useCurrentSpace = () => {
|
|
405
406
|
const layout = useCapability(Capabilities2.Layout);
|
|
@@ -408,17 +409,17 @@ var useCurrentSpace = () => {
|
|
|
408
409
|
const space = spaceId ? client.spaces.get(spaceId) : void 0;
|
|
409
410
|
return space;
|
|
410
411
|
};
|
|
411
|
-
var react_surface_default = (context) => contributes(Capabilities2.ReactSurface, [
|
|
412
|
+
var react_surface_default = ((context) => contributes(Capabilities2.ReactSurface, [
|
|
412
413
|
createSurface({
|
|
413
|
-
id: `${
|
|
414
|
+
id: `${meta.id}/plugin-settings`,
|
|
414
415
|
role: "article",
|
|
415
|
-
filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix ===
|
|
416
|
+
filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix === meta.id,
|
|
416
417
|
component: ({ data: { subject } }) => /* @__PURE__ */ React5.createElement(DebugSettings, {
|
|
417
418
|
settings: subject.value
|
|
418
419
|
})
|
|
419
420
|
}),
|
|
420
421
|
createSurface({
|
|
421
|
-
id: `${
|
|
422
|
+
id: `${meta.id}/space`,
|
|
422
423
|
role: "article",
|
|
423
424
|
filter: (data) => isSpaceDebug(data.subject),
|
|
424
425
|
component: ({ data }) => {
|
|
@@ -427,8 +428,8 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
427
428
|
if (!isSpace(data.subject.space)) {
|
|
428
429
|
return;
|
|
429
430
|
}
|
|
430
|
-
const collection = data.subject.space.state.get() === SpaceState.SPACE_READY && data.subject.space.properties[
|
|
431
|
-
if (!
|
|
431
|
+
const collection = data.subject.space.state.get() === SpaceState.SPACE_READY && data.subject.space.properties[Collection.Collection.typename]?.target;
|
|
432
|
+
if (!Obj2.instanceOf(Collection.Collection, collection)) {
|
|
432
433
|
return;
|
|
433
434
|
}
|
|
434
435
|
objects.forEach((object) => {
|
|
@@ -447,7 +448,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
447
448
|
}
|
|
448
449
|
}),
|
|
449
450
|
createSurface({
|
|
450
|
-
id: `${
|
|
451
|
+
id: `${meta.id}/app-graph`,
|
|
451
452
|
role: "article",
|
|
452
453
|
filter: (data) => isGraphDebug(data.subject),
|
|
453
454
|
component: ({ data }) => /* @__PURE__ */ React5.createElement(DebugGraph, {
|
|
@@ -456,15 +457,15 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
456
457
|
})
|
|
457
458
|
}),
|
|
458
459
|
createSurface({
|
|
459
|
-
id: `${
|
|
460
|
+
id: `${meta.id}/wireframe`,
|
|
460
461
|
role: [
|
|
461
462
|
"article",
|
|
462
463
|
"section"
|
|
463
464
|
],
|
|
464
465
|
position: "hoist",
|
|
465
466
|
filter: (data) => {
|
|
466
|
-
const settings = context.getCapability(Capabilities2.SettingsStore).getStore(
|
|
467
|
-
return
|
|
467
|
+
const settings = context.getCapability(Capabilities2.SettingsStore).getStore(meta.id).value;
|
|
468
|
+
return Obj2.isObject(data.subject) && !!settings.wireframe;
|
|
468
469
|
},
|
|
469
470
|
component: ({ data, role }) => /* @__PURE__ */ React5.createElement(Wireframe, {
|
|
470
471
|
label: `${role}:${name}`,
|
|
@@ -473,20 +474,20 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
473
474
|
})
|
|
474
475
|
}),
|
|
475
476
|
createSurface({
|
|
476
|
-
id: `${
|
|
477
|
+
id: `${meta.id}/object-debug`,
|
|
477
478
|
role: "article",
|
|
478
|
-
filter: (data) => data.subject === "debug" &&
|
|
479
|
+
filter: (data) => data.subject === "debug" && Obj2.isObject(data.companionTo),
|
|
479
480
|
component: ({ data }) => /* @__PURE__ */ React5.createElement(DebugObjectPanel, {
|
|
480
481
|
object: data.companionTo
|
|
481
482
|
})
|
|
482
483
|
}),
|
|
483
484
|
createSurface({
|
|
484
|
-
id: `${
|
|
485
|
+
id: `${meta.id}/devtools-overview`,
|
|
485
486
|
role: "deck-companion--devtools",
|
|
486
487
|
component: () => /* @__PURE__ */ React5.createElement(DevtoolsOverviewContainer, null)
|
|
487
488
|
}),
|
|
488
489
|
createSurface({
|
|
489
|
-
id: `${
|
|
490
|
+
id: `${meta.id}/status`,
|
|
490
491
|
role: "status",
|
|
491
492
|
component: () => /* @__PURE__ */ React5.createElement(DebugStatus, null)
|
|
492
493
|
}),
|
|
@@ -494,7 +495,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
494
495
|
// Devtools
|
|
495
496
|
//
|
|
496
497
|
createSurface({
|
|
497
|
-
id: `${
|
|
498
|
+
id: `${meta.id}/client/config`,
|
|
498
499
|
role: "article",
|
|
499
500
|
filter: (data) => data.subject === Devtools.Client.Config,
|
|
500
501
|
component: () => /* @__PURE__ */ React5.createElement(ConfigPanel, {
|
|
@@ -502,49 +503,49 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
502
503
|
})
|
|
503
504
|
}),
|
|
504
505
|
createSurface({
|
|
505
|
-
id: `${
|
|
506
|
+
id: `${meta.id}/client/storage`,
|
|
506
507
|
role: "article",
|
|
507
508
|
filter: (data) => data.subject === Devtools.Client.Storage,
|
|
508
509
|
component: () => /* @__PURE__ */ React5.createElement(StoragePanel, null)
|
|
509
510
|
}),
|
|
510
511
|
createSurface({
|
|
511
|
-
id: `${
|
|
512
|
+
id: `${meta.id}/client/logs`,
|
|
512
513
|
role: "article",
|
|
513
514
|
filter: (data) => data.subject === Devtools.Client.Logs,
|
|
514
515
|
component: () => /* @__PURE__ */ React5.createElement(LoggingPanel, null)
|
|
515
516
|
}),
|
|
516
517
|
createSurface({
|
|
517
|
-
id: `${
|
|
518
|
+
id: `${meta.id}/client/diagnostics`,
|
|
518
519
|
role: "article",
|
|
519
520
|
filter: (data) => data.subject === Devtools.Client.Diagnostics,
|
|
520
521
|
component: () => /* @__PURE__ */ React5.createElement(DiagnosticsPanel, null)
|
|
521
522
|
}),
|
|
522
523
|
createSurface({
|
|
523
|
-
id: `${
|
|
524
|
+
id: `${meta.id}/client/tracing`,
|
|
524
525
|
role: "article",
|
|
525
526
|
filter: (data) => data.subject === Devtools.Client.Tracing,
|
|
526
527
|
component: () => /* @__PURE__ */ React5.createElement(TracingPanel, null)
|
|
527
528
|
}),
|
|
528
529
|
createSurface({
|
|
529
|
-
id: `${
|
|
530
|
+
id: `${meta.id}/halo/identity`,
|
|
530
531
|
role: "article",
|
|
531
532
|
filter: (data) => data.subject === Devtools.Halo.Identity,
|
|
532
533
|
component: () => /* @__PURE__ */ React5.createElement(IdentityPanel, null)
|
|
533
534
|
}),
|
|
534
535
|
createSurface({
|
|
535
|
-
id: `${
|
|
536
|
+
id: `${meta.id}/halo/devices`,
|
|
536
537
|
role: "article",
|
|
537
538
|
filter: (data) => data.subject === Devtools.Halo.Devices,
|
|
538
539
|
component: () => /* @__PURE__ */ React5.createElement(DeviceListPanel, null)
|
|
539
540
|
}),
|
|
540
541
|
createSurface({
|
|
541
|
-
id: `${
|
|
542
|
+
id: `${meta.id}/halo/keyring`,
|
|
542
543
|
role: "article",
|
|
543
544
|
filter: (data) => data.subject === Devtools.Halo.Keyring,
|
|
544
545
|
component: () => /* @__PURE__ */ React5.createElement(KeyringPanel, null)
|
|
545
546
|
}),
|
|
546
547
|
createSurface({
|
|
547
|
-
id: `${
|
|
548
|
+
id: `${meta.id}/halo/credentials`,
|
|
548
549
|
role: "article",
|
|
549
550
|
filter: (data) => data.subject === Devtools.Halo.Credentials,
|
|
550
551
|
component: () => {
|
|
@@ -555,7 +556,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
555
556
|
}
|
|
556
557
|
}),
|
|
557
558
|
createSurface({
|
|
558
|
-
id: `${
|
|
559
|
+
id: `${meta.id}/echo/spaces`,
|
|
559
560
|
role: "article",
|
|
560
561
|
filter: (data) => data.subject === Devtools.Echo.Spaces,
|
|
561
562
|
component: () => {
|
|
@@ -574,7 +575,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
574
575
|
}
|
|
575
576
|
}),
|
|
576
577
|
createSurface({
|
|
577
|
-
id: `${
|
|
578
|
+
id: `${meta.id}/echo/space`,
|
|
578
579
|
role: "article",
|
|
579
580
|
filter: (data) => data.subject === Devtools.Echo.Space,
|
|
580
581
|
component: () => {
|
|
@@ -596,7 +597,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
596
597
|
}
|
|
597
598
|
}),
|
|
598
599
|
createSurface({
|
|
599
|
-
id: `${
|
|
600
|
+
id: `${meta.id}/echo/feeds`,
|
|
600
601
|
role: "article",
|
|
601
602
|
filter: (data) => data.subject === Devtools.Echo.Feeds,
|
|
602
603
|
component: () => {
|
|
@@ -607,7 +608,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
607
608
|
}
|
|
608
609
|
}),
|
|
609
610
|
createSurface({
|
|
610
|
-
id: `${
|
|
611
|
+
id: `${meta.id}/echo/objects`,
|
|
611
612
|
role: "article",
|
|
612
613
|
filter: (data) => data.subject === Devtools.Echo.Objects,
|
|
613
614
|
component: () => {
|
|
@@ -618,7 +619,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
618
619
|
}
|
|
619
620
|
}),
|
|
620
621
|
createSurface({
|
|
621
|
-
id: `${
|
|
622
|
+
id: `${meta.id}/echo/schema`,
|
|
622
623
|
role: "article",
|
|
623
624
|
filter: (data) => data.subject === Devtools.Echo.Schema,
|
|
624
625
|
component: () => {
|
|
@@ -629,7 +630,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
629
630
|
}
|
|
630
631
|
}),
|
|
631
632
|
createSurface({
|
|
632
|
-
id: `${
|
|
633
|
+
id: `${meta.id}/echo/automerge`,
|
|
633
634
|
role: "article",
|
|
634
635
|
filter: (data) => data.subject === Devtools.Echo.Automerge,
|
|
635
636
|
component: () => {
|
|
@@ -640,13 +641,13 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
640
641
|
}
|
|
641
642
|
}),
|
|
642
643
|
createSurface({
|
|
643
|
-
id: `${
|
|
644
|
+
id: `${meta.id}/echo/queues`,
|
|
644
645
|
role: "article",
|
|
645
646
|
filter: (data) => data.subject === Devtools.Echo.Queues,
|
|
646
647
|
component: () => /* @__PURE__ */ React5.createElement(QueuesPanel, null)
|
|
647
648
|
}),
|
|
648
649
|
createSurface({
|
|
649
|
-
id: `${
|
|
650
|
+
id: `${meta.id}/echo/members`,
|
|
650
651
|
role: "article",
|
|
651
652
|
filter: (data) => data.subject === Devtools.Echo.Members,
|
|
652
653
|
component: () => {
|
|
@@ -657,25 +658,25 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
657
658
|
}
|
|
658
659
|
}),
|
|
659
660
|
createSurface({
|
|
660
|
-
id: `${
|
|
661
|
+
id: `${meta.id}/echo/metadata`,
|
|
661
662
|
role: "article",
|
|
662
663
|
filter: (data) => data.subject === Devtools.Echo.Metadata,
|
|
663
664
|
component: () => /* @__PURE__ */ React5.createElement(MetadataPanel, null)
|
|
664
665
|
}),
|
|
665
666
|
createSurface({
|
|
666
|
-
id: `${
|
|
667
|
+
id: `${meta.id}/mesh/signal`,
|
|
667
668
|
role: "article",
|
|
668
669
|
filter: (data) => data.subject === Devtools.Mesh.Signal,
|
|
669
670
|
component: () => /* @__PURE__ */ React5.createElement(SignalPanel, null)
|
|
670
671
|
}),
|
|
671
672
|
createSurface({
|
|
672
|
-
id: `${
|
|
673
|
+
id: `${meta.id}/mesh/swarm`,
|
|
673
674
|
role: "article",
|
|
674
675
|
filter: (data) => data.subject === Devtools.Mesh.Swarm,
|
|
675
676
|
component: () => /* @__PURE__ */ React5.createElement(SwarmPanel, null)
|
|
676
677
|
}),
|
|
677
678
|
createSurface({
|
|
678
|
-
id: `${
|
|
679
|
+
id: `${meta.id}/mesh/network`,
|
|
679
680
|
role: "article",
|
|
680
681
|
filter: (data) => data.subject === Devtools.Mesh.Network,
|
|
681
682
|
component: () => {
|
|
@@ -687,19 +688,19 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
687
688
|
}),
|
|
688
689
|
// TODO(wittjosiah): Remove?
|
|
689
690
|
// createSurface({
|
|
690
|
-
// id: `${
|
|
691
|
+
// id: `${meta.id}/agent/dashboard`,
|
|
691
692
|
// role: 'article',
|
|
692
693
|
// filter: (data): data is any => data.subject === Devtools.Agent.Dashboard,
|
|
693
694
|
// component: () => <DashboardPanel />,
|
|
694
695
|
// }),
|
|
695
696
|
createSurface({
|
|
696
|
-
id: `${
|
|
697
|
+
id: `${meta.id}/edge/dashboard`,
|
|
697
698
|
role: "article",
|
|
698
699
|
filter: (data) => data.subject === Devtools.Edge.Dashboard,
|
|
699
700
|
component: () => /* @__PURE__ */ React5.createElement(EdgeDashboardPanel, null)
|
|
700
701
|
}),
|
|
701
702
|
createSurface({
|
|
702
|
-
id: `${
|
|
703
|
+
id: `${meta.id}/edge/workflows`,
|
|
703
704
|
role: "article",
|
|
704
705
|
filter: (data) => data.subject === Devtools.Edge.Workflows,
|
|
705
706
|
component: () => {
|
|
@@ -710,7 +711,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
710
711
|
}
|
|
711
712
|
}),
|
|
712
713
|
createSurface({
|
|
713
|
-
id: `${
|
|
714
|
+
id: `${meta.id}/edge/traces`,
|
|
714
715
|
role: "article",
|
|
715
716
|
filter: (data) => data.subject === Devtools.Edge.Traces,
|
|
716
717
|
component: () => {
|
|
@@ -722,7 +723,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
722
723
|
}
|
|
723
724
|
}),
|
|
724
725
|
createSurface({
|
|
725
|
-
id: `${
|
|
726
|
+
id: `${meta.id}/edge/testing`,
|
|
726
727
|
role: "article",
|
|
727
728
|
filter: (data) => data.subject === Devtools.Edge.Testing,
|
|
728
729
|
component: () => {
|
|
@@ -738,7 +739,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
738
739
|
]);
|
|
739
740
|
const onScriptPluginOpen = useCallback(async (space) => {
|
|
740
741
|
await space.waitUntilReady();
|
|
741
|
-
const result = await dispatch(pipe(createIntent(ScriptAction.
|
|
742
|
+
const result = await dispatch(Function.pipe(createIntent(ScriptAction.CreateScript, {
|
|
742
743
|
space
|
|
743
744
|
}), chain(SpaceAction.AddObject, {
|
|
744
745
|
target: space
|
|
@@ -747,7 +748,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
747
748
|
result
|
|
748
749
|
}, {
|
|
749
750
|
F: __dxlog_file2,
|
|
750
|
-
L:
|
|
751
|
+
L: 405,
|
|
751
752
|
S: void 0,
|
|
752
753
|
C: (f, a) => f(...a)
|
|
753
754
|
});
|
|
@@ -766,8 +767,8 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
|
|
|
766
767
|
});
|
|
767
768
|
}
|
|
768
769
|
})
|
|
769
|
-
]);
|
|
770
|
+
]));
|
|
770
771
|
export {
|
|
771
772
|
react_surface_default as default
|
|
772
773
|
};
|
|
773
|
-
//# sourceMappingURL=react-surface-
|
|
774
|
+
//# sourceMappingURL=react-surface-2SNVZDEA.mjs.map
|