@dxos/plugin-explorer 0.8.0 → 0.8.1-main.ae460ac
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/{ExplorerContainer-GJTCBEM4.mjs → ExplorerContainer-T5CTMBIS.mjs} +2 -2
- package/dist/lib/{node-esm/chunk-BRJI3QC2.mjs → browser/chunk-SU3K2HL7.mjs} +240 -3
- package/dist/lib/{node-esm/chunk-BRJI3QC2.mjs.map → browser/chunk-SU3K2HL7.mjs.map} +4 -4
- package/dist/lib/browser/chunk-V23FAKIX.mjs +205 -0
- package/dist/lib/browser/chunk-V23FAKIX.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +7 -7
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-3X2V3VPN.mjs → react-surface-Q7OT6GXC.mjs} +3 -3
- package/dist/lib/node/{ExplorerContainer-RJT54IOS.cjs → ExplorerContainer-SO5XAXFS.cjs} +6 -6
- package/dist/lib/node/chunk-6GTOKVKH.cjs +236 -0
- package/dist/lib/node/chunk-6GTOKVKH.cjs.map +7 -0
- package/dist/lib/node/{chunk-VSACDC6F.cjs → chunk-CQYBCGC4.cjs} +234 -8
- package/dist/lib/node/chunk-CQYBCGC4.cjs.map +7 -0
- package/dist/lib/node/index.cjs +10 -10
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-36YIY7NA.cjs → react-surface-5G52HSJW.cjs} +7 -7
- package/dist/lib/node-esm/{ExplorerContainer-TM3VIXVK.mjs → ExplorerContainer-DTUTEZLK.mjs} +2 -2
- package/dist/lib/{browser/chunk-S3QNIEBS.mjs → node-esm/chunk-4IST6Y3Z.mjs} +242 -2
- package/dist/lib/{browser/chunk-S3QNIEBS.mjs.map → node-esm/chunk-4IST6Y3Z.mjs.map} +4 -4
- package/dist/lib/node-esm/chunk-Q2IQDIKJ.mjs +207 -0
- package/dist/lib/node-esm/chunk-Q2IQDIKJ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +7 -7
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-YDY7IBMY.mjs → react-surface-QSQVINGP.mjs} +3 -3
- package/dist/types/src/components/Graph/Graph.d.ts +0 -3
- package/dist/types/src/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/src/components/Graph/Graph.stories.d.ts +1 -1
- package/dist/types/src/components/Graph/Graph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/graph-model.d.ts.map +1 -1
- package/dist/types/src/components/Tree/types.d.ts +1 -1
- package/dist/types/src/components/Tree/types.d.ts.map +1 -1
- package/package.json +24 -25
- package/src/components/Graph/Graph.stories.tsx +2 -2
- package/src/components/Graph/Graph.tsx +15 -142
- package/src/components/Graph/graph-model.ts +2 -0
- package/src/components/Tree/types.ts +2 -1
- package/dist/lib/browser/chunk-YQL7YE6N.mjs +0 -546
- package/dist/lib/browser/chunk-YQL7YE6N.mjs.map +0 -7
- package/dist/lib/node/chunk-VSACDC6F.cjs.map +0 -7
- package/dist/lib/node/chunk-YH4QYCZH.cjs +0 -567
- package/dist/lib/node/chunk-YH4QYCZH.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-3KRWHGBM.mjs +0 -548
- package/dist/lib/node-esm/chunk-3KRWHGBM.mjs.map +0 -7
- /package/dist/lib/browser/{ExplorerContainer-GJTCBEM4.mjs.map → ExplorerContainer-T5CTMBIS.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-3X2V3VPN.mjs.map → react-surface-Q7OT6GXC.mjs.map} +0 -0
- /package/dist/lib/node/{ExplorerContainer-RJT54IOS.cjs.map → ExplorerContainer-SO5XAXFS.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-36YIY7NA.cjs.map → react-surface-5G52HSJW.cjs.map} +0 -0
- /package/dist/lib/node-esm/{ExplorerContainer-TM3VIXVK.mjs.map → ExplorerContainer-DTUTEZLK.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-YDY7IBMY.mjs.map → react-surface-QSQVINGP.mjs.map} +0 -0
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,20 +28,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var node_exports = {};
|
|
30
30
|
__export(node_exports, {
|
|
31
|
-
Chart: () =>
|
|
31
|
+
Chart: () => import_chunk_CQYBCGC4.Chart,
|
|
32
32
|
EXPLORER_PLUGIN: () => import_chunk_5MTMJYC4.EXPLORER_PLUGIN,
|
|
33
|
-
ExplorerContainer: () =>
|
|
33
|
+
ExplorerContainer: () => import_chunk_CQYBCGC4.ExplorerContainer,
|
|
34
34
|
ExplorerPlugin: () => ExplorerPlugin,
|
|
35
|
-
Globe: () =>
|
|
36
|
-
Graph: () =>
|
|
37
|
-
SpaceGraphModel: () =>
|
|
38
|
-
Tree: () =>
|
|
39
|
-
defaultTreeLayoutSlots: () =>
|
|
35
|
+
Globe: () => import_chunk_CQYBCGC4.Globe,
|
|
36
|
+
Graph: () => import_chunk_6GTOKVKH.Graph,
|
|
37
|
+
SpaceGraphModel: () => import_chunk_6GTOKVKH.SpaceGraphModel,
|
|
38
|
+
Tree: () => import_chunk_CQYBCGC4.Tree,
|
|
39
|
+
defaultTreeLayoutSlots: () => import_chunk_CQYBCGC4.defaultTreeLayoutSlots,
|
|
40
40
|
meta: () => import_chunk_5MTMJYC4.meta
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(node_exports);
|
|
43
|
-
var
|
|
44
|
-
var
|
|
43
|
+
var import_chunk_CQYBCGC4 = require("./chunk-CQYBCGC4.cjs");
|
|
44
|
+
var import_chunk_6GTOKVKH = require("./chunk-6GTOKVKH.cjs");
|
|
45
45
|
var import_chunk_YUY7P7R2 = require("./chunk-YUY7P7R2.cjs");
|
|
46
46
|
var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
|
|
47
47
|
var import_app_framework = require("@dxos/app-framework");
|
|
@@ -50,7 +50,7 @@ var import_plugin_space = require("@dxos/plugin-space");
|
|
|
50
50
|
var import_types = require("@dxos/plugin-space/types");
|
|
51
51
|
var import_app_framework2 = require("@dxos/app-framework");
|
|
52
52
|
var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-XQV24IAA.cjs"));
|
|
53
|
-
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-
|
|
53
|
+
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-5G52HSJW.cjs"));
|
|
54
54
|
var translations_default = [
|
|
55
55
|
{
|
|
56
56
|
"en-US": {
|
package/dist/lib/node/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytes":1465,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4935,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7523,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":22122,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17760,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8819,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9322,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1156,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytes":3749,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10140,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytes":525,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":23972,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/gem-spore/styles","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"../Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytes":630,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":2815,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytes":1163,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytes":1436,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytes":1996,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytes":2278,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytes":602,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2247,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2772,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytes":1900,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":8062,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytes":798,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5036},"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-VSACDC6F.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YH4QYCZH.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-36YIY7NA.cjs","kind":"dynamic-import"}],"exports":["Chart","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots","meta"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/index.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1674},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":346}},"bytes":3008},"packages/plugins/experimental/plugin-explorer/dist/lib/node/meta.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/node/meta.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/meta.ts","inputs":{},"bytes":138},"packages/plugins/experimental/plugin-explorer/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","inputs":{},"bytes":178},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-RJT54IOS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-RJT54IOS.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YH4QYCZH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":610}},"bytes":852},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1089},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":381}},"bytes":670},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-36YIY7NA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1318},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-36YIY7NA.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-VSACDC6F.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YH4QYCZH.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":463}},"bytes":847},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-VSACDC6F.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":450879},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-VSACDC6F.cjs":{"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-RJT54IOS.cjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0}},"bytes":191995},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YH4QYCZH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":47356},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YH4QYCZH.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/gem-spore/styles","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":4894},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2155},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2144},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1324},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1553},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":5668},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":19243},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1705},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytesInOutput":216},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytesInOutput":431}},"bytes":930},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":925},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytesInOutput":448}},"bytes":592}}}
|
|
1
|
+
{"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytes":1465,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4935,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7523,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":22182,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":9779,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytes":630,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17760,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8819,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9322,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1156,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytes":3867,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10140,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytes":525,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":2815,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytes":1163,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytes":1436,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytes":1996,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytes":2278,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytes":602,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2247,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2772,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytes":1900,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":8062,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytes":798,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5036},"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-5G52HSJW.cjs","kind":"dynamic-import"}],"exports":["Chart","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots","meta"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/index.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1674},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":346}},"bytes":3008},"packages/plugins/experimental/plugin-explorer/dist/lib/node/meta.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/node/meta.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/meta.ts","inputs":{},"bytes":138},"packages/plugins/experimental/plugin-explorer/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","inputs":{},"bytes":178},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-SO5XAXFS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-SO5XAXFS.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":610}},"bytes":852},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1089},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":381}},"bytes":670},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-5G52HSJW.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1318},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-5G52HSJW.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":463}},"bytes":847},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":475536},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-SO5XAXFS.cjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2078},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2134},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1313},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1542},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":200376},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15440},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":4894},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":2042},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":7186},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1705},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytesInOutput":216},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytesInOutput":431}},"bytes":930},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":925},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytesInOutput":448}},"bytes":592}}}
|
|
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var react_surface_5G52HSJW_exports = {};
|
|
30
|
+
__export(react_surface_5G52HSJW_exports, {
|
|
31
31
|
default: () => react_surface_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(react_surface_5G52HSJW_exports);
|
|
34
|
+
var import_chunk_CQYBCGC4 = require("./chunk-CQYBCGC4.cjs");
|
|
35
|
+
var import_chunk_6GTOKVKH = require("./chunk-6GTOKVKH.cjs");
|
|
36
36
|
var import_chunk_YUY7P7R2 = require("./chunk-YUY7P7R2.cjs");
|
|
37
37
|
var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
@@ -44,9 +44,9 @@ var react_surface_default = () => (0, import_app_framework.contributes)(import_a
|
|
|
44
44
|
"section"
|
|
45
45
|
],
|
|
46
46
|
filter: (data) => data.subject instanceof import_chunk_YUY7P7R2.ViewType,
|
|
47
|
-
component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(
|
|
47
|
+
component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_CQYBCGC4.ExplorerContainer, {
|
|
48
48
|
view: data.subject,
|
|
49
49
|
role
|
|
50
50
|
})
|
|
51
51
|
}));
|
|
52
|
-
//# sourceMappingURL=react-surface-
|
|
52
|
+
//# sourceMappingURL=react-surface-5G52HSJW.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
Graph
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q2IQDIKJ.mjs";
|
|
5
5
|
|
|
6
6
|
// packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx
|
|
7
7
|
import React from "react";
|
|
@@ -26,4 +26,4 @@ var ExplorerContainer_default = ExplorerContainer;
|
|
|
26
26
|
export {
|
|
27
27
|
ExplorerContainer_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=ExplorerContainer-
|
|
29
|
+
//# sourceMappingURL=ExplorerContainer-DTUTEZLK.mjs.map
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
SpaceGraphModel
|
|
4
|
+
} from "./chunk-Q2IQDIKJ.mjs";
|
|
5
|
+
|
|
1
6
|
// packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx
|
|
2
7
|
import * as Plot from "@observablehq/plot";
|
|
3
8
|
import React, { useEffect } from "react";
|
|
@@ -10820,13 +10825,248 @@ var Globe = ({ items = [], accessor, projection = "orthographic", options = defa
|
|
|
10820
10825
|
});
|
|
10821
10826
|
};
|
|
10822
10827
|
|
|
10828
|
+
// packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx
|
|
10829
|
+
import React3, { useEffect as useEffect3, useState } from "react";
|
|
10830
|
+
import { useResizeDetector as useResizeDetector3 } from "react-resize-detector";
|
|
10831
|
+
import { createSvgContext, SVG, SVGRoot } from "@dxos/gem-core";
|
|
10832
|
+
import { useAsyncState } from "@dxos/react-ui";
|
|
10833
|
+
|
|
10834
|
+
// packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts
|
|
10835
|
+
import * as d3 from "d3";
|
|
10836
|
+
var HierarchicalEdgeBundling = (s, data, options) => {
|
|
10837
|
+
const svg = d3.select(s);
|
|
10838
|
+
svg.selectAll("*").remove();
|
|
10839
|
+
const { radius = 600, padding = 100, slots } = options;
|
|
10840
|
+
const root = d3.hierarchy(flatten(data));
|
|
10841
|
+
const tree3 = d3.cluster().size([
|
|
10842
|
+
2 * Math.PI,
|
|
10843
|
+
radius - padding
|
|
10844
|
+
]);
|
|
10845
|
+
const layout = tree3(addLinks(root));
|
|
10846
|
+
const node = svg.append("g").selectAll().data(layout.leaves()).join("g").attr("transform", (d) => `rotate(${d.x * (180 / Math.PI) - 90}) translate(${d.y},0)`).append("text").attr("class", slots?.text ?? "").attr("dy", "0.31em").attr("x", (d) => d.x < Math.PI ? 6 : -6).attr("text-anchor", (d) => d.x < Math.PI ? "start" : "end").attr("transform", (d) => d.x >= Math.PI ? "rotate(180)" : null).call((text) => text.text((d) => d.data.id.slice(0, 8)));
|
|
10847
|
+
const line = d3.lineRadial().curve(d3.curveBundle.beta(0.85)).radius((d) => d.y).angle((d) => d.x);
|
|
10848
|
+
const links = svg.append("g").selectAll().data(layout.leaves().flatMap((leaf) => leaf.outgoing)).join("path").style("mix-blend-mode", "multiply").attr("class", slots?.path ?? "").attr("d", ([i, o]) => {
|
|
10849
|
+
return line(i.path(o));
|
|
10850
|
+
}).each(function(d) {
|
|
10851
|
+
d.path = this;
|
|
10852
|
+
});
|
|
10853
|
+
};
|
|
10854
|
+
var addLinks = (root) => {
|
|
10855
|
+
const nodes = new Map(root.descendants().map((d) => [
|
|
10856
|
+
d.data.id,
|
|
10857
|
+
d
|
|
10858
|
+
]));
|
|
10859
|
+
const parents = root.descendants().reduce((map, d) => {
|
|
10860
|
+
if (d.children?.length) {
|
|
10861
|
+
map.set(d.data.id, d);
|
|
10862
|
+
}
|
|
10863
|
+
return map;
|
|
10864
|
+
}, /* @__PURE__ */ new Map());
|
|
10865
|
+
for (const d of root.leaves()) {
|
|
10866
|
+
const parent = parents.get(d.data.id);
|
|
10867
|
+
if (parent) {
|
|
10868
|
+
d.outgoing = parent.data.children?.slice(1).map((child) => {
|
|
10869
|
+
return [
|
|
10870
|
+
d,
|
|
10871
|
+
nodes.get(child.id)
|
|
10872
|
+
];
|
|
10873
|
+
}) ?? [];
|
|
10874
|
+
} else {
|
|
10875
|
+
d.outgoing = [];
|
|
10876
|
+
}
|
|
10877
|
+
}
|
|
10878
|
+
return root;
|
|
10879
|
+
};
|
|
10880
|
+
var flatten = (node) => {
|
|
10881
|
+
const clone = {
|
|
10882
|
+
id: node.id
|
|
10883
|
+
};
|
|
10884
|
+
if (node.children?.length) {
|
|
10885
|
+
const children = node.children.map((child) => flatten(child));
|
|
10886
|
+
clone.children = [
|
|
10887
|
+
{
|
|
10888
|
+
id: node.id
|
|
10889
|
+
},
|
|
10890
|
+
...children
|
|
10891
|
+
];
|
|
10892
|
+
}
|
|
10893
|
+
return clone;
|
|
10894
|
+
};
|
|
10895
|
+
var HierarchicalEdgeBundling_default = HierarchicalEdgeBundling;
|
|
10896
|
+
|
|
10897
|
+
// packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts
|
|
10898
|
+
import * as d32 from "d3";
|
|
10899
|
+
var RadialTree = (s, data, options) => {
|
|
10900
|
+
const svg = d32.select(s);
|
|
10901
|
+
svg.selectAll("*").remove();
|
|
10902
|
+
const { label, radius = 400, r = 4, slots } = options;
|
|
10903
|
+
const arc = 2 * Math.PI;
|
|
10904
|
+
const root = d32.hierarchy(data);
|
|
10905
|
+
const descendants = root.descendants();
|
|
10906
|
+
const getLabel = label === null ? null : descendants.map((d) => label(d.data));
|
|
10907
|
+
const layout = d32.tree().size([
|
|
10908
|
+
arc,
|
|
10909
|
+
radius
|
|
10910
|
+
]).separation((a, b) => (a.parent === b.parent ? 1 : 2) / a.depth);
|
|
10911
|
+
layout(root);
|
|
10912
|
+
svg.append("g").selectAll("path").data(root.links()).join("path").attr("class", slots?.path ?? "").attr("d", d32.linkRadial().angle((d) => d.x + Math.PI / 2).radius((d) => d.y));
|
|
10913
|
+
const node = svg.append("g").selectAll("a").data(root.descendants()).join("a").attr("transform", (d) => `rotate(${d.x * 180 / Math.PI}) translate(${d.y},0)`);
|
|
10914
|
+
node.append("circle").attr("class", slots?.node ?? "").attr("r", r);
|
|
10915
|
+
if (getLabel) {
|
|
10916
|
+
node.append("text").attr("transform", (d) => `rotate(${d.x >= Math.PI ? 180 : 0})`).attr("dy", "0.32em").attr("x", (d) => d.x < Math.PI === !d.children ? 6 : -6).attr("text-anchor", (d) => d.x < Math.PI === !d.children ? "start" : "end").attr("class", slots?.text ?? "").text((d, i) => getLabel[i]);
|
|
10917
|
+
}
|
|
10918
|
+
return svg.node();
|
|
10919
|
+
};
|
|
10920
|
+
var RadialTree_default = RadialTree;
|
|
10921
|
+
|
|
10922
|
+
// packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts
|
|
10923
|
+
import * as d33 from "d3";
|
|
10924
|
+
var TidyTree = (s, data, options) => {
|
|
10925
|
+
const svg = d33.select(s);
|
|
10926
|
+
svg.selectAll("*").remove();
|
|
10927
|
+
const { label, width, height, r = 4, padding = 4, margin = 60, slots } = options;
|
|
10928
|
+
const root = d33.hierarchy(data);
|
|
10929
|
+
const descendants = root.descendants();
|
|
10930
|
+
const getLabel = label == null ? null : descendants.map((d) => label(d.data));
|
|
10931
|
+
const dx = 16;
|
|
10932
|
+
const dy = width / (root.height + padding);
|
|
10933
|
+
const layout = d33.tree().nodeSize([
|
|
10934
|
+
dx,
|
|
10935
|
+
dy
|
|
10936
|
+
]);
|
|
10937
|
+
layout(root);
|
|
10938
|
+
let x0 = Infinity;
|
|
10939
|
+
let x1 = -x0;
|
|
10940
|
+
let y0 = Infinity;
|
|
10941
|
+
let y1 = -y0;
|
|
10942
|
+
root.each((d) => {
|
|
10943
|
+
if (d.x > x1) {
|
|
10944
|
+
x1 = d.x;
|
|
10945
|
+
}
|
|
10946
|
+
if (d.x < x0) {
|
|
10947
|
+
x0 = d.x;
|
|
10948
|
+
}
|
|
10949
|
+
if (d.y > y1) {
|
|
10950
|
+
y1 = d.y;
|
|
10951
|
+
}
|
|
10952
|
+
if (d.y < y0) {
|
|
10953
|
+
y0 = d.y;
|
|
10954
|
+
}
|
|
10955
|
+
});
|
|
10956
|
+
const sx = Math.min(2, Math.max(1, (height - margin * 2) / (x1 - x0)));
|
|
10957
|
+
const oy = -(width - (y1 - y0)) / 2;
|
|
10958
|
+
svg.append("g").selectAll("path").data(root.links()).join("path").attr("class", slots?.path ?? "").attr("d", d33.link(d33.curveBumpX).x((d) => d.y + oy).y((d) => d.x * sx));
|
|
10959
|
+
const node = svg.append("g").selectAll("a").data(root.descendants()).join("a").attr("transform", (d) => `translate(${d.y + oy},${d.x * sx})`);
|
|
10960
|
+
node.append("circle").attr("class", slots?.node ?? "").attr("r", r);
|
|
10961
|
+
if (getLabel) {
|
|
10962
|
+
node.append("text").attr("dy", "0.32em").attr("x", (d) => d.children ? -6 : 6).attr("text-anchor", (d) => d.children ? "end" : "start").attr("class", slots?.text ?? "").text((d, i) => getLabel[i]);
|
|
10963
|
+
}
|
|
10964
|
+
};
|
|
10965
|
+
var TidyTree_default = TidyTree;
|
|
10966
|
+
|
|
10967
|
+
// packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts
|
|
10968
|
+
var mapGraphToTreeData = (model, maxDepth = 8) => {
|
|
10969
|
+
const mapNode = (node, depth = 0) => {
|
|
10970
|
+
const treeNode = {
|
|
10971
|
+
id: model.idAccessor(node),
|
|
10972
|
+
label: model.idAccessor(node).slice(0, 8)
|
|
10973
|
+
};
|
|
10974
|
+
const links = model.graph.links.filter((link2) => link2.source === treeNode.id);
|
|
10975
|
+
if (depth < maxDepth) {
|
|
10976
|
+
treeNode.children = links.map((link2) => mapNode(model.graph.nodes.find((node2) => model.idAccessor(node2) === link2.target), depth + 1));
|
|
10977
|
+
}
|
|
10978
|
+
return treeNode;
|
|
10979
|
+
};
|
|
10980
|
+
let data;
|
|
10981
|
+
if (model.selected) {
|
|
10982
|
+
const node = model.graph.nodes.find((node2) => model.idAccessor(node2) === model.selected);
|
|
10983
|
+
if (node) {
|
|
10984
|
+
data = mapNode(node);
|
|
10985
|
+
}
|
|
10986
|
+
}
|
|
10987
|
+
return data;
|
|
10988
|
+
};
|
|
10989
|
+
|
|
10990
|
+
// packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx
|
|
10991
|
+
var defaultTreeLayoutSlots = {
|
|
10992
|
+
node: "fill-blue-600",
|
|
10993
|
+
path: "fill-none stroke-blue-400 stroke-[0.5px]",
|
|
10994
|
+
text: "stroke-[0.5px] stroke-neutral-700 text-xs"
|
|
10995
|
+
};
|
|
10996
|
+
var renderers = /* @__PURE__ */ new Map([
|
|
10997
|
+
[
|
|
10998
|
+
"tidy",
|
|
10999
|
+
TidyTree_default
|
|
11000
|
+
],
|
|
11001
|
+
[
|
|
11002
|
+
"radial",
|
|
11003
|
+
RadialTree_default
|
|
11004
|
+
],
|
|
11005
|
+
[
|
|
11006
|
+
"edge",
|
|
11007
|
+
HierarchicalEdgeBundling_default
|
|
11008
|
+
]
|
|
11009
|
+
]);
|
|
11010
|
+
var Tree = ({ space, selected, variant = "tidy", onNodeClick }) => {
|
|
11011
|
+
const [model] = useAsyncState(async () => space ? new SpaceGraphModel().open(space, selected) : void 0, [
|
|
11012
|
+
space,
|
|
11013
|
+
selected
|
|
11014
|
+
]);
|
|
11015
|
+
const [tree3, setTree] = useState();
|
|
11016
|
+
useEffect3(() => {
|
|
11017
|
+
return model?.subscribe(() => {
|
|
11018
|
+
const tree4 = mapGraphToTreeData(model);
|
|
11019
|
+
setTree(tree4);
|
|
11020
|
+
}, true);
|
|
11021
|
+
}, [
|
|
11022
|
+
model
|
|
11023
|
+
]);
|
|
11024
|
+
const context = createSvgContext();
|
|
11025
|
+
const { ref, width = 0, height = 0 } = useResizeDetector3();
|
|
11026
|
+
useEffect3(() => {
|
|
11027
|
+
if (width && height) {
|
|
11028
|
+
const size = Math.min(width, height);
|
|
11029
|
+
const radius = size * 0.4;
|
|
11030
|
+
const options = {
|
|
11031
|
+
// TODO(burdon): Type.
|
|
11032
|
+
label: (d) => d.label ?? d.id,
|
|
11033
|
+
width,
|
|
11034
|
+
height,
|
|
11035
|
+
radius,
|
|
11036
|
+
marginLeft: (width - radius * 2) / 2,
|
|
11037
|
+
marginRight: (width - radius * 2) / 2,
|
|
11038
|
+
marginTop: (height - radius * 2) / 2,
|
|
11039
|
+
marginBottom: (height - radius * 2) / 2,
|
|
11040
|
+
slots: defaultTreeLayoutSlots
|
|
11041
|
+
};
|
|
11042
|
+
if (tree3) {
|
|
11043
|
+
const renderer = renderers.get(variant);
|
|
11044
|
+
renderer?.(context.ref.current, tree3, options);
|
|
11045
|
+
}
|
|
11046
|
+
}
|
|
11047
|
+
}, [
|
|
11048
|
+
tree3,
|
|
11049
|
+
width,
|
|
11050
|
+
height
|
|
11051
|
+
]);
|
|
11052
|
+
return /* @__PURE__ */ React3.createElement("div", {
|
|
11053
|
+
ref,
|
|
11054
|
+
className: "flex grow overflow-hidden",
|
|
11055
|
+
onClick: () => onNodeClick?.()
|
|
11056
|
+
}, /* @__PURE__ */ React3.createElement(SVGRoot, {
|
|
11057
|
+
context
|
|
11058
|
+
}, /* @__PURE__ */ React3.createElement(SVG, null)));
|
|
11059
|
+
};
|
|
11060
|
+
|
|
10823
11061
|
// packages/plugins/experimental/plugin-explorer/src/components/index.ts
|
|
10824
11062
|
import { lazy } from "react";
|
|
10825
|
-
var ExplorerContainer = lazy(() => import("./ExplorerContainer-
|
|
11063
|
+
var ExplorerContainer = lazy(() => import("./ExplorerContainer-DTUTEZLK.mjs"));
|
|
10826
11064
|
|
|
10827
11065
|
export {
|
|
10828
11066
|
Chart,
|
|
10829
11067
|
Globe,
|
|
11068
|
+
defaultTreeLayoutSlots,
|
|
11069
|
+
Tree,
|
|
10830
11070
|
ExplorerContainer
|
|
10831
11071
|
};
|
|
10832
|
-
//# sourceMappingURL=chunk-
|
|
11072
|
+
//# sourceMappingURL=chunk-4IST6Y3Z.mjs.map
|