@dxos/plugin-explorer 0.8.3 → 0.8.4-main.1068cf700f

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.
Files changed (181) hide show
  1. package/dist/lib/browser/ExplorerContainer-46BHUF6R.mjs +45 -0
  2. package/dist/lib/browser/ExplorerContainer-46BHUF6R.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-HIFLWHXR.mjs +83 -0
  4. package/dist/lib/browser/chunk-HIFLWHXR.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  6. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-JRKQNHS6.mjs → chunk-JZSBQYJQ.mjs} +152 -405
  8. package/dist/lib/{node-esm/chunk-IUFYOE44.mjs.map → browser/chunk-JZSBQYJQ.mjs.map} +3 -3
  9. package/dist/lib/browser/chunk-KIXHZZ2C.mjs +35 -0
  10. package/dist/lib/browser/chunk-KIXHZZ2C.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-MGBT2ZFU.mjs +177 -0
  12. package/dist/lib/browser/chunk-MGBT2ZFU.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-YNQF4CPY.mjs +24 -0
  14. package/dist/lib/browser/chunk-YNQF4CPY.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +60 -70
  16. package/dist/lib/browser/index.mjs.map +4 -4
  17. package/dist/lib/browser/meta.json +1 -1
  18. package/dist/lib/browser/meta.mjs +2 -3
  19. package/dist/lib/browser/react-surface-TPQAT5EI.mjs +36 -0
  20. package/dist/lib/browser/react-surface-TPQAT5EI.mjs.map +7 -0
  21. package/dist/lib/browser/types/index.mjs +6 -6
  22. package/dist/lib/node-esm/ExplorerContainer-OZNG47QB.mjs +46 -0
  23. package/dist/lib/node-esm/ExplorerContainer-OZNG47QB.mjs.map +7 -0
  24. package/dist/lib/node-esm/chunk-3OE6TBJI.mjs +84 -0
  25. package/dist/lib/node-esm/chunk-3OE6TBJI.mjs.map +7 -0
  26. package/dist/lib/node-esm/{chunk-VSORIAHH.mjs → chunk-ASRWO2N5.mjs} +12 -7
  27. package/dist/lib/node-esm/chunk-ASRWO2N5.mjs.map +7 -0
  28. package/dist/lib/node-esm/{chunk-3CMBLK6W.mjs → chunk-DK77RB6M.mjs} +9 -6
  29. package/dist/lib/node-esm/chunk-DK77RB6M.mjs.map +7 -0
  30. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  31. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  32. package/dist/lib/node-esm/{chunk-IUFYOE44.mjs → chunk-K5BYG7BW.mjs} +152 -405
  33. package/dist/lib/{browser/chunk-JRKQNHS6.mjs.map → node-esm/chunk-K5BYG7BW.mjs.map} +3 -3
  34. package/dist/lib/node-esm/chunk-YWJBDETV.mjs +179 -0
  35. package/dist/lib/node-esm/chunk-YWJBDETV.mjs.map +7 -0
  36. package/dist/lib/node-esm/index.mjs +60 -70
  37. package/dist/lib/node-esm/index.mjs.map +4 -4
  38. package/dist/lib/node-esm/meta.json +1 -1
  39. package/dist/lib/node-esm/meta.mjs +2 -3
  40. package/dist/lib/node-esm/react-surface-CYHGJJDU.mjs +37 -0
  41. package/dist/lib/node-esm/react-surface-CYHGJJDU.mjs.map +7 -0
  42. package/dist/lib/node-esm/types/index.mjs +6 -6
  43. package/dist/types/src/ExplorerPlugin.d.ts +2 -1
  44. package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
  45. package/dist/types/src/capabilities/index.d.ts +1 -2
  46. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  48. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  50. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  51. package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
  52. package/dist/types/src/components/Chart/Chart.stories.d.ts +8 -4
  53. package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/ExplorerContainer.d.ts +4 -6
  55. package/dist/types/src/components/ExplorerContainer.d.ts.map +1 -1
  56. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  57. package/dist/types/src/components/Globe/Globe.stories.d.ts +8 -4
  58. package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
  59. package/dist/types/src/components/Graph/D3ForceGraph.d.ts +2 -2
  60. package/dist/types/src/components/Graph/D3ForceGraph.d.ts.map +1 -1
  61. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +13 -4
  62. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts +13 -4
  64. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
  65. package/dist/types/src/components/Graph/adapter.d.ts +1 -1
  66. package/dist/types/src/components/Graph/adapter.d.ts.map +1 -1
  67. package/dist/types/src/components/Graph/testing.d.ts +1 -1
  68. package/dist/types/src/components/Graph/testing.d.ts.map +1 -1
  69. package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
  70. package/dist/types/src/components/Tree/Tree.stories.d.ts +13 -16
  71. package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
  72. package/dist/types/src/components/Tree/testing/generator.d.ts.map +1 -1
  73. package/dist/types/src/components/Tree/types/tree.d.ts +18 -16
  74. package/dist/types/src/components/Tree/types/tree.d.ts.map +1 -1
  75. package/dist/types/src/components/Tree/types/types.d.ts +1 -1
  76. package/dist/types/src/components/Tree/types/types.d.ts.map +1 -1
  77. package/dist/types/src/components/index.d.ts +2 -4
  78. package/dist/types/src/components/index.d.ts.map +1 -1
  79. package/dist/types/src/hooks/useGraphModel.d.ts +2 -2
  80. package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
  81. package/dist/types/src/meta.d.ts +2 -3
  82. package/dist/types/src/meta.d.ts.map +1 -1
  83. package/dist/types/src/translations.d.ts +34 -22
  84. package/dist/types/src/translations.d.ts.map +1 -1
  85. package/dist/types/src/types/ExplorerAction.d.ts +6 -0
  86. package/dist/types/src/types/ExplorerAction.d.ts.map +1 -0
  87. package/dist/types/src/types/Graph.d.ts +30 -0
  88. package/dist/types/src/types/Graph.d.ts.map +1 -0
  89. package/dist/types/src/types/index.d.ts +2 -2
  90. package/dist/types/src/types/index.d.ts.map +1 -1
  91. package/dist/types/tsconfig.tsbuildinfo +1 -1
  92. package/package.json +61 -44
  93. package/src/ExplorerPlugin.tsx +31 -53
  94. package/src/capabilities/index.ts +1 -4
  95. package/src/capabilities/react-surface/index.ts +7 -0
  96. package/src/capabilities/react-surface/react-surface.tsx +31 -0
  97. package/src/components/Chart/Chart.stories.tsx +10 -8
  98. package/src/components/Chart/Chart.tsx +1 -1
  99. package/src/components/ExplorerContainer.tsx +30 -14
  100. package/src/components/Globe/Globe.stories.tsx +15 -13
  101. package/src/components/Globe/Globe.tsx +1 -1
  102. package/src/components/Graph/D3ForceGraph.stories.tsx +40 -21
  103. package/src/components/Graph/D3ForceGraph.tsx +6 -6
  104. package/src/components/Graph/ForceGraph.stories.tsx +40 -21
  105. package/src/components/Graph/ForceGraph.tsx +5 -5
  106. package/src/components/Graph/adapter.ts +14 -8
  107. package/src/components/Graph/testing.ts +13 -10
  108. package/src/components/Tree/Tree.stories.tsx +29 -22
  109. package/src/components/Tree/Tree.tsx +11 -6
  110. package/src/components/Tree/testing/generator.ts +4 -2
  111. package/src/components/Tree/types/tree.test.ts +8 -5
  112. package/src/components/Tree/types/tree.ts +40 -19
  113. package/src/components/Tree/types/types.ts +1 -1
  114. package/src/components/index.ts +3 -3
  115. package/src/hooks/useGraphModel.ts +9 -5
  116. package/src/meta.ts +9 -6
  117. package/src/translations.ts +12 -6
  118. package/src/types/ExplorerAction.ts +21 -0
  119. package/src/types/Graph.ts +62 -0
  120. package/src/types/index.ts +2 -2
  121. package/dist/lib/browser/ExplorerContainer-DXL34I3F.mjs +0 -37
  122. package/dist/lib/browser/ExplorerContainer-DXL34I3F.mjs.map +0 -7
  123. package/dist/lib/browser/chunk-73YTQHOT.mjs +0 -38
  124. package/dist/lib/browser/chunk-73YTQHOT.mjs.map +0 -7
  125. package/dist/lib/browser/chunk-OBAFAA5V.mjs +0 -21
  126. package/dist/lib/browser/chunk-OBAFAA5V.mjs.map +0 -7
  127. package/dist/lib/browser/chunk-SLB2F5AO.mjs +0 -30
  128. package/dist/lib/browser/chunk-SLB2F5AO.mjs.map +0 -7
  129. package/dist/lib/browser/chunk-Z5BGAHLD.mjs +0 -187
  130. package/dist/lib/browser/chunk-Z5BGAHLD.mjs.map +0 -7
  131. package/dist/lib/browser/intent-resolver-JZKYVFQJ.mjs +0 -24
  132. package/dist/lib/browser/intent-resolver-JZKYVFQJ.mjs.map +0 -7
  133. package/dist/lib/browser/react-surface-IAEP2GBT.mjs +0 -31
  134. package/dist/lib/browser/react-surface-IAEP2GBT.mjs.map +0 -7
  135. package/dist/lib/node/ExplorerContainer-VUXH55VV.cjs +0 -61
  136. package/dist/lib/node/ExplorerContainer-VUXH55VV.cjs.map +0 -7
  137. package/dist/lib/node/chunk-4T4LCT5R.cjs +0 -52
  138. package/dist/lib/node/chunk-4T4LCT5R.cjs.map +0 -7
  139. package/dist/lib/node/chunk-BCDVG2CH.cjs +0 -44
  140. package/dist/lib/node/chunk-BCDVG2CH.cjs.map +0 -7
  141. package/dist/lib/node/chunk-MLRYW4WQ.cjs +0 -56
  142. package/dist/lib/node/chunk-MLRYW4WQ.cjs.map +0 -7
  143. package/dist/lib/node/chunk-SVU4VMYX.cjs +0 -11339
  144. package/dist/lib/node/chunk-SVU4VMYX.cjs.map +0 -7
  145. package/dist/lib/node/chunk-TY543HPV.cjs +0 -214
  146. package/dist/lib/node/chunk-TY543HPV.cjs.map +0 -7
  147. package/dist/lib/node/index.cjs +0 -130
  148. package/dist/lib/node/index.cjs.map +0 -7
  149. package/dist/lib/node/intent-resolver-G2MFNIXA.cjs +0 -39
  150. package/dist/lib/node/intent-resolver-G2MFNIXA.cjs.map +0 -7
  151. package/dist/lib/node/meta.cjs +0 -31
  152. package/dist/lib/node/meta.cjs.map +0 -7
  153. package/dist/lib/node/meta.json +0 -1
  154. package/dist/lib/node/react-surface-UJD5RGRZ.cjs +0 -53
  155. package/dist/lib/node/react-surface-UJD5RGRZ.cjs.map +0 -7
  156. package/dist/lib/node/types/index.cjs +0 -32
  157. package/dist/lib/node/types/index.cjs.map +0 -7
  158. package/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs +0 -38
  159. package/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs.map +0 -7
  160. package/dist/lib/node-esm/chunk-3CMBLK6W.mjs.map +0 -7
  161. package/dist/lib/node-esm/chunk-AE7VHUJM.mjs +0 -189
  162. package/dist/lib/node-esm/chunk-AE7VHUJM.mjs.map +0 -7
  163. package/dist/lib/node-esm/chunk-N6VEANUZ.mjs +0 -39
  164. package/dist/lib/node-esm/chunk-N6VEANUZ.mjs.map +0 -7
  165. package/dist/lib/node-esm/chunk-VSORIAHH.mjs.map +0 -7
  166. package/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs +0 -25
  167. package/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs.map +0 -7
  168. package/dist/lib/node-esm/react-surface-XBH3WZDL.mjs +0 -32
  169. package/dist/lib/node-esm/react-surface-XBH3WZDL.mjs.map +0 -7
  170. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  171. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  172. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  173. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  174. package/dist/types/src/types/schema.d.ts +0 -12
  175. package/dist/types/src/types/schema.d.ts.map +0 -1
  176. package/dist/types/src/types/types.d.ts +0 -18
  177. package/dist/types/src/types/types.d.ts.map +0 -1
  178. package/src/capabilities/intent-resolver.ts +0 -19
  179. package/src/capabilities/react-surface.tsx +0 -23
  180. package/src/types/schema.ts +0 -16
  181. package/src/types/types.ts +0 -21
@@ -0,0 +1,179 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/components/Graph/D3ForceGraph.tsx
4
+ import React, { useCallback, useEffect, useMemo, useRef } from "react";
5
+ import { Obj } from "@dxos/echo";
6
+ import { SelectionModel } from "@dxos/graph";
7
+ import { GraphForceProjector, SVG } from "@dxos/react-ui-graph";
8
+ import { getHashStyles } from "@dxos/ui-theme";
9
+ import "@dxos/react-ui-graph/styles/graph.css";
10
+ var D3ForceGraph = ({ classNames, model, selection: _selection, grid, ...props }) => {
11
+ const context = useRef(null);
12
+ const projector = useMemo(() => {
13
+ if (context.current) {
14
+ return new GraphForceProjector(context.current, {
15
+ attributes: {
16
+ linkForce: (edge) => {
17
+ return edge.data?.object?.active !== false;
18
+ }
19
+ },
20
+ forces: {
21
+ point: {
22
+ strength: 0.01
23
+ }
24
+ }
25
+ });
26
+ }
27
+ }, [
28
+ context.current
29
+ ]);
30
+ const graph = useRef(null);
31
+ const selection = useMemo(() => _selection ?? new SelectionModel(), [
32
+ _selection
33
+ ]);
34
+ useEffect(() => selection.subscribe(() => graph.current?.repaint()), [
35
+ selection
36
+ ]);
37
+ const handleSelect = useCallback((node) => {
38
+ if (selection.contains(node.id)) {
39
+ selection.remove(node.id);
40
+ } else {
41
+ selection.add(node.id);
42
+ }
43
+ }, [
44
+ selection
45
+ ]);
46
+ return /* @__PURE__ */ React.createElement(SVG.Root, {
47
+ ref: context,
48
+ classNames
49
+ }, /* @__PURE__ */ React.createElement(SVG.Markers, null), grid && /* @__PURE__ */ React.createElement(SVG.Grid, {
50
+ axis: true
51
+ }), /* @__PURE__ */ React.createElement(SVG.Zoom, {
52
+ extent: [
53
+ 1 / 2,
54
+ 2
55
+ ]
56
+ }, /* @__PURE__ */ React.createElement(SVG.Graph, {
57
+ ...props,
58
+ ref: graph,
59
+ model,
60
+ projector,
61
+ labels: {
62
+ text: (node) => {
63
+ return node.data?.data.label ?? node.id;
64
+ }
65
+ },
66
+ attributes: {
67
+ node: (node) => {
68
+ const obj = node.data?.data.object;
69
+ return {
70
+ data: {
71
+ color: getHashStyles(obj && Obj.getTypename(obj))?.hue
72
+ },
73
+ classes: {
74
+ "dx-selected": selection.contains(node.id)
75
+ }
76
+ };
77
+ }
78
+ },
79
+ onSelect: handleSelect
80
+ })));
81
+ };
82
+
83
+ // src/components/Graph/ForceGraph.tsx
84
+ import { forceLink, forceManyBody } from "d3";
85
+ import NativeForceGraph from "force-graph";
86
+ import React2, { useEffect as useEffect2, useRef as useRef2, useState } from "react";
87
+ import { useResizeDetector } from "react-resize-detector";
88
+ import { filterObjectsSync } from "@dxos/plugin-search";
89
+
90
+ // src/components/Graph/adapter.ts
91
+ var GraphAdapter = class {
92
+ graph;
93
+ _nodes = [];
94
+ _links = [];
95
+ constructor(graph) {
96
+ this.graph = graph;
97
+ this._nodes = graph.nodes.map((node) => ({
98
+ id: node.id,
99
+ type: node.type,
100
+ data: node.data
101
+ }));
102
+ const nodeIds = new Set(this._nodes.map((node) => node.id));
103
+ this._links = graph.edges.filter((edge) => nodeIds.has(edge.source) && nodeIds.has(edge.target)).map((edge) => ({
104
+ type: edge.type,
105
+ source: edge.source,
106
+ target: edge.target,
107
+ data: edge.data
108
+ }));
109
+ }
110
+ get nodes() {
111
+ return this._nodes;
112
+ }
113
+ get links() {
114
+ return this._links;
115
+ }
116
+ };
117
+
118
+ // src/components/Graph/ForceGraph.tsx
119
+ var ForceGraph = ({ model, match }) => {
120
+ const { ref, width, height } = useResizeDetector({
121
+ refreshRate: 200
122
+ });
123
+ const rootRef = useRef2(null);
124
+ const forceGraph = useRef2(null);
125
+ const filteredRef = useRef2([]);
126
+ filteredRef.current = filterObjectsSync(model?.objects ?? [], match);
127
+ const [data, setData] = useState();
128
+ useEffect2(() => {
129
+ return model?.subscribe((model2) => {
130
+ setData(new GraphAdapter(model2.graph));
131
+ });
132
+ }, [
133
+ model
134
+ ]);
135
+ useEffect2(() => {
136
+ if (rootRef.current) {
137
+ forceGraph.current = new NativeForceGraph(rootRef.current).nodeRelSize(6).nodeLabel((node) => node.type === "schema" ? node.data.typename : node.data.label ?? node.id).nodeAutoColorBy((node) => node.type === "schema" ? "schema" : node.data.typename).linkAutoColorBy((link) => link.type);
138
+ }
139
+ return () => {
140
+ forceGraph.current?.pauseAnimation().graphData({
141
+ nodes: [],
142
+ links: []
143
+ });
144
+ forceGraph.current = null;
145
+ };
146
+ }, []);
147
+ useEffect2(() => {
148
+ if (!data || !width || !height || !forceGraph.current) {
149
+ return;
150
+ }
151
+ forceGraph.current.pauseAnimation().width(width).height(height).onEngineStop(() => {
152
+ handleZoomToFit();
153
+ }).onNodeClick((node) => {
154
+ forceGraph.current?.emitParticle(node);
155
+ }).d3Force("link", forceLink().distance(160).strength(0.5)).d3Force("charge", forceManyBody().strength(-30)).graphData(data).warmupTicks(100).cooldownTime(1e3).resumeAnimation();
156
+ }, [
157
+ data,
158
+ width,
159
+ height,
160
+ forceGraph.current
161
+ ]);
162
+ const handleZoomToFit = () => {
163
+ forceGraph.current?.zoomToFit(400, 40);
164
+ };
165
+ return /* @__PURE__ */ React2.createElement("div", {
166
+ ref,
167
+ className: "relative grow",
168
+ onClick: handleZoomToFit
169
+ }, /* @__PURE__ */ React2.createElement("div", {
170
+ ref: rootRef,
171
+ className: "absolute inset-0"
172
+ }));
173
+ };
174
+
175
+ export {
176
+ D3ForceGraph,
177
+ ForceGraph
178
+ };
179
+ //# sourceMappingURL=chunk-YWJBDETV.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Graph/D3ForceGraph.tsx", "../../../src/components/Graph/ForceGraph.tsx", "../../../src/components/Graph/adapter.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { Obj } from '@dxos/echo';\nimport { SelectionModel } from '@dxos/graph';\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport {\n type GraphController,\n GraphForceProjector,\n type GraphLayoutNode,\n type GraphProps,\n SVG,\n type SVGContext,\n} from '@dxos/react-ui-graph';\nimport { type SpaceGraphEdge, type SpaceGraphModel, type SpaceGraphNode } from '@dxos/schema';\nimport { getHashStyles } from '@dxos/ui-theme';\n\nimport '@dxos/react-ui-graph/styles/graph.css';\n\nexport type D3ForceGraphProps = ThemedClassName<\n {\n model?: SpaceGraphModel;\n match?: RegExp;\n selection?: SelectionModel;\n grid?: boolean;\n } & Pick<GraphProps, 'drag'>\n>;\n\nexport const D3ForceGraph = ({ classNames, model, selection: _selection, grid, ...props }: D3ForceGraphProps) => {\n const context = useRef<SVGContext>(null);\n const projector = useMemo<GraphForceProjector | undefined>(() => {\n if (context.current) {\n return new GraphForceProjector(context.current, {\n attributes: {\n linkForce: (edge) => {\n // TODO(burdon): Check type (currently assumes Employee property).\n // Edge shouldn't contribute to force if it's not active.\n return edge.data?.object?.active !== false;\n },\n },\n forces: {\n point: {\n strength: 0.01,\n },\n },\n });\n }\n }, [context.current]);\n\n const graph = useRef<GraphController>(null);\n const selection = useMemo(() => _selection ?? new SelectionModel(), [_selection]);\n useEffect(() => selection.subscribe(() => graph.current?.repaint()), [selection]);\n\n const handleSelect = useCallback<NonNullable<GraphProps['onSelect']>>(\n (node) => {\n if (selection.contains(node.id)) {\n selection.remove(node.id);\n } else {\n selection.add(node.id);\n }\n },\n [selection],\n );\n\n return (\n <SVG.Root ref={context} classNames={classNames}>\n <SVG.Markers />\n {grid && <SVG.Grid axis />}\n <SVG.Zoom extent={[1 / 2, 2]}>\n <SVG.Graph<SpaceGraphNode, SpaceGraphEdge>\n {...props}\n ref={graph}\n model={model}\n projector={projector}\n labels={{\n text: (node) => {\n return node.data?.data.label ?? node.id;\n },\n }}\n attributes={{\n node: (node: GraphLayoutNode<SpaceGraphNode>) => {\n const obj = node.data?.data.object;\n return {\n data: {\n color: getHashStyles(obj && Obj.getTypename(obj))?.hue,\n },\n classes: {\n 'dx-selected': selection.contains(node.id),\n },\n };\n },\n }}\n onSelect={handleSelect}\n />\n </SVG.Zoom>\n </SVG.Root>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { forceLink, forceManyBody } from 'd3';\nimport NativeForceGraph from 'force-graph';\nimport React, { type FC, useEffect, useRef, useState } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type SearchResult, filterObjectsSync } from '@dxos/plugin-search';\nimport { type SpaceGraphModel } from '@dxos/schema';\n\nimport { GraphAdapter } from './adapter';\n\nexport type ForceGraphProps = {\n model?: SpaceGraphModel;\n match?: RegExp;\n};\n\nexport const ForceGraph: FC<ForceGraphProps> = ({ model, match }) => {\n const { ref, width, height } = useResizeDetector({ refreshRate: 200 });\n const rootRef = useRef<HTMLDivElement>(null);\n const forceGraph = useRef<NativeForceGraph>(null);\n\n const filteredRef = useRef<SearchResult[]>([]);\n filteredRef.current = filterObjectsSync(model?.objects ?? [], match);\n\n const [data, setData] = useState<GraphAdapter>();\n useEffect(() => {\n return model?.subscribe((model) => {\n setData(new GraphAdapter(model.graph));\n });\n }, [model]);\n\n useEffect(() => {\n if (rootRef.current) {\n // https://github.com/vasturiano/force-graph\n // https://github.com/vasturiano/3d-force-graph\n forceGraph.current = new NativeForceGraph(rootRef.current)\n // https://github.com/vasturiano/force-graph?tab=readme-ov-file#node-styling\n .nodeRelSize(6)\n .nodeLabel((node: any) => (node.type === 'schema' ? node.data.typename : (node.data.label ?? node.id)))\n .nodeAutoColorBy((node: any) => (node.type === 'schema' ? 'schema' : node.data.typename))\n\n // https://github.com/vasturiano/force-graph?tab=readme-ov-file#link-styling\n .linkAutoColorBy((link: any) => link.type);\n }\n\n return () => {\n forceGraph.current?.pauseAnimation().graphData({ nodes: [], links: [] });\n forceGraph.current = null;\n };\n }, []);\n\n useEffect(() => {\n if (!data || !width || !height || !forceGraph.current) {\n return;\n }\n\n // https://github.com/vasturiano/force-graph?tab=readme-ov-file#container-layout\n forceGraph.current\n .pauseAnimation()\n .width(width)\n .height(height)\n .onEngineStop(() => {\n handleZoomToFit();\n })\n .onNodeClick((node: any) => {\n forceGraph.current?.emitParticle(node);\n })\n\n // https://github.com/vasturiano/force-graph?tab=readme-ov-file#force-engine-d3-force-configuration\n // .d3Force('center', forceCenter().strength(0.9))\n .d3Force('link', forceLink().distance(160).strength(0.5))\n .d3Force('charge', forceManyBody().strength(-30))\n\n .graphData(data)\n .warmupTicks(100)\n .cooldownTime(1_000)\n .resumeAnimation();\n }, [data, width, height, forceGraph.current]);\n\n const handleZoomToFit = () => {\n forceGraph.current?.zoomToFit(400, 40);\n };\n\n return (\n <div ref={ref} className='relative grow' onClick={handleZoomToFit}>\n <div ref={rootRef} className='absolute inset-0' />\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Graph } from '@dxos/graph';\n\nexport type GraphNode = {\n id?: string;\n};\n\nexport type GraphLink = {\n source?: string;\n target?: string;\n};\n\nexport type GraphData = {\n nodes: GraphNode[];\n links: GraphLink[];\n};\n\n/**\n * Map common graph to force-graph format.\n */\nexport class GraphAdapter implements GraphData {\n private readonly _nodes: GraphNode[] = [];\n private readonly _links: GraphLink[] = [];\n\n constructor(private readonly graph: Graph.Any) {\n this._nodes = graph.nodes.map((node: Graph.Node.Any) => ({\n id: node.id,\n type: node.type,\n data: node.data,\n }));\n\n // Build a set of node IDs for efficient lookup.\n const nodeIds = new Set(this._nodes.map((node) => node.id));\n\n // Filter out edges where source or target node doesn't exist.\n this._links = graph.edges\n .filter((edge: Graph.Edge.Any) => nodeIds.has(edge.source) && nodeIds.has(edge.target))\n .map((edge: Graph.Edge.Any) => ({\n type: edge.type,\n source: edge.source,\n target: edge.target,\n data: edge.data,\n }));\n }\n\n get nodes() {\n return this._nodes;\n }\n\n get links() {\n return this._links;\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": ["React", "useCallback", "useEffect", "useMemo", "useRef", "Obj", "SelectionModel", "GraphForceProjector", "SVG", "getHashStyles", "D3ForceGraph", "classNames", "model", "selection", "_selection", "grid", "props", "context", "useRef", "projector", "useMemo", "current", "GraphForceProjector", "attributes", "linkForce", "edge", "data", "object", "active", "forces", "point", "strength", "graph", "SelectionModel", "useEffect", "subscribe", "repaint", "handleSelect", "useCallback", "node", "contains", "id", "remove", "add", "SVG", "Root", "ref", "Markers", "Grid", "axis", "Zoom", "extent", "Graph", "labels", "text", "label", "obj", "color", "getHashStyles", "Obj", "getTypename", "hue", "classes", "onSelect", "forceLink", "forceManyBody", "NativeForceGraph", "React", "useEffect", "useRef", "useState", "useResizeDetector", "filterObjectsSync", "GraphAdapter", "_nodes", "_links", "graph", "nodes", "map", "node", "id", "type", "data", "nodeIds", "Set", "edges", "filter", "edge", "has", "source", "target", "links", "ForceGraph", "model", "match", "ref", "width", "height", "useResizeDetector", "refreshRate", "rootRef", "useRef", "forceGraph", "filteredRef", "current", "filterObjectsSync", "objects", "data", "setData", "useState", "useEffect", "subscribe", "GraphAdapter", "graph", "NativeForceGraph", "nodeRelSize", "nodeLabel", "node", "type", "typename", "label", "id", "nodeAutoColorBy", "linkAutoColorBy", "link", "pauseAnimation", "graphData", "nodes", "links", "onEngineStop", "handleZoomToFit", "onNodeClick", "emitParticle", "d3Force", "forceLink", "distance", "strength", "forceManyBody", "warmupTicks", "cooldownTime", "resumeAnimation", "zoomToFit", "React", "div", "className", "onClick"]
7
+ }
@@ -1,105 +1,95 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  useGraphModel
4
- } from "./chunk-VSORIAHH.mjs";
4
+ } from "./chunk-ASRWO2N5.mjs";
5
5
  import {
6
6
  Chart,
7
7
  ExplorerContainer,
8
8
  Globe,
9
9
  Tree,
10
10
  defaultTreeLayoutSlots
11
- } from "./chunk-IUFYOE44.mjs";
11
+ } from "./chunk-K5BYG7BW.mjs";
12
12
  import {
13
- D3ForceGraph,
14
- ForceGraph
15
- } from "./chunk-AE7VHUJM.mjs";
13
+ meta
14
+ } from "./chunk-DK77RB6M.mjs";
16
15
  import {
17
- ExplorerAction,
18
- ViewType
19
- } from "./chunk-N6VEANUZ.mjs";
16
+ ExplorerAction_exports,
17
+ Graph_exports
18
+ } from "./chunk-3OE6TBJI.mjs";
20
19
  import {
21
- EXPLORER_PLUGIN,
22
- meta
23
- } from "./chunk-3CMBLK6W.mjs";
20
+ D3ForceGraph,
21
+ ForceGraph
22
+ } from "./chunk-YWJBDETV.mjs";
23
+ import "./chunk-HSLMI22Q.mjs";
24
24
 
25
- // packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx
26
- import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from "@dxos/app-framework";
27
- import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
28
- import { SpaceCapabilities } from "@dxos/plugin-space";
29
- import { defineObjectForm } from "@dxos/plugin-space/types";
25
+ // src/ExplorerPlugin.tsx
26
+ import * as Effect from "effect/Effect";
27
+ import { Plugin } from "@dxos/app-framework";
28
+ import { AppPlugin } from "@dxos/app-toolkit";
29
+ import { Type as Type2 } from "@dxos/echo";
30
+ import { View } from "@dxos/schema";
30
31
 
31
- // packages/plugins/plugin-explorer/src/capabilities/index.ts
32
- import { lazy } from "@dxos/app-framework";
33
- var IntentResolver = lazy(() => import("./intent-resolver-7G6ZKM6E.mjs"));
34
- var ReactSurface = lazy(() => import("./react-surface-XBH3WZDL.mjs"));
32
+ // src/capabilities/react-surface/index.ts
33
+ import { Capability } from "@dxos/app-framework";
34
+ var ReactSurface = Capability.lazy("ReactSurface", () => import("./react-surface-CYHGJJDU.mjs"));
35
35
 
36
- // packages/plugins/plugin-explorer/src/translations.ts
36
+ // src/translations.ts
37
37
  import { Type } from "@dxos/echo";
38
- var translations_default = [
38
+ import { translations as componentsTranslations } from "@dxos/react-ui-components";
39
+ var translations = [
39
40
  {
40
41
  "en-US": {
41
- [Type.getTypename(ViewType)]: {
42
+ [Type.getTypename(Graph_exports.Graph)]: {
42
43
  "typename label": "Explorer",
43
44
  "typename label_zero": "Explorers",
44
45
  "typename label_one": "Explorer",
45
46
  "typename label_other": "Explorers",
46
- "object name placeholder": "New explorer"
47
+ "object name placeholder": "New explorer",
48
+ "rename object label": "Rename explorer",
49
+ "delete object label": "Delete explorer",
50
+ "object deleted label": "Explorer deleted"
47
51
  },
48
- [EXPLORER_PLUGIN]: {
52
+ [meta.id]: {
49
53
  "plugin name": "Explorer",
50
54
  "object title label": "Title"
51
55
  }
52
56
  }
53
- }
57
+ },
58
+ ...componentsTranslations
54
59
  ];
55
60
 
56
- // packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx
57
- var ExplorerPlugin = () => definePlugin(meta, [
58
- defineModule({
59
- id: `${meta.id}/module/translations`,
60
- activatesOn: Events.SetupTranslations,
61
- activate: () => contributes(Capabilities.Translations, translations_default)
62
- }),
63
- defineModule({
64
- id: `${meta.id}/module/metadata`,
65
- activatesOn: Events.SetupMetadata,
66
- activate: () => contributes(Capabilities.Metadata, {
67
- id: ViewType.typename,
68
- metadata: {
69
- icon: "ph--graph--regular"
70
- }
71
- })
72
- }),
73
- defineModule({
74
- id: `${meta.id}/module/object-form`,
75
- activatesOn: ClientEvents.SetupSchema,
76
- activate: () => contributes(SpaceCapabilities.ObjectForm, defineObjectForm({
77
- objectSchema: ViewType,
78
- getIntent: () => createIntent(ExplorerAction.Create)
79
- }))
80
- }),
81
- defineModule({
82
- id: `${meta.id}/module/schema`,
83
- activatesOn: ClientEvents.SetupSchema,
84
- activate: () => contributes(ClientCapabilities.Schema, [
85
- ViewType
86
- ])
87
- }),
88
- defineModule({
89
- id: `${meta.id}/module/react-surface`,
90
- activatesOn: Events.SetupReactSurface,
91
- activate: ReactSurface
92
- }),
93
- defineModule({
94
- id: `${meta.id}/module/intent-resolver`,
95
- activatesOn: Events.SetupIntentResolver,
96
- activate: IntentResolver
97
- })
98
- ]);
61
+ // src/ExplorerPlugin.tsx
62
+ var ExplorerPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
63
+ metadata: {
64
+ id: Type2.getTypename(Graph_exports.Graph),
65
+ metadata: {
66
+ icon: "ph--graph--regular",
67
+ iconHue: "green",
68
+ inputSchema: ExplorerAction_exports.GraphProps,
69
+ createObject: (props, { db }) => Effect.promise(async () => {
70
+ const { view } = await View.makeFromDatabase({
71
+ db,
72
+ typename: props.typename
73
+ });
74
+ return Graph_exports.make({
75
+ name: props.name,
76
+ view
77
+ });
78
+ })
79
+ }
80
+ }
81
+ }), AppPlugin.addSchemaModule({
82
+ schema: [
83
+ Graph_exports.Graph
84
+ ]
85
+ }), AppPlugin.addSurfaceModule({
86
+ activate: ReactSurface
87
+ }), AppPlugin.addTranslationsModule({
88
+ translations
89
+ }), Plugin.make);
99
90
  export {
100
91
  Chart,
101
92
  D3ForceGraph,
102
- EXPLORER_PLUGIN,
103
93
  ExplorerContainer,
104
94
  ExplorerPlugin,
105
95
  ForceGraph,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/ExplorerPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ViewType, ExplorerAction } from './types';\n\nexport const ExplorerPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ViewType.typename,\n metadata: {\n icon: 'ph--graph--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ViewType,\n getIntent: () => createIntent(ExplorerAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ViewType]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\n\nimport { EXPLORER_PLUGIN } from './meta';\nimport { ViewType } from './types';\n\nexport default [\n {\n 'en-US': {\n [Type.getTypename(ViewType)]: {\n 'typename label': 'Explorer',\n 'typename label_zero': 'Explorers',\n 'typename label_one': 'Explorer',\n 'typename label_other': 'Explorers',\n 'object name placeholder': 'New explorer',\n },\n [EXPLORER_PLUGIN]: {\n 'plugin name': 'Explorer',\n 'object title label': 'Title',\n },\n },\n },\n];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;;;ACHjC,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACH9C,SAASE,YAAY;AAKrB,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,KAAKC,YAAYC,QAAAA,CAAAA,GAAY;QAC5B,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;MAC7B;MACA,CAACC,eAAAA,GAAkB;QACjB,eAAe;QACf,sBAAsB;MACxB;IACF;EACF;;;;AFVK,IAAMC,iBAAiB,MAC5BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MACRC,YAAYC,aAAaI,UAAU;MACjCV,IAAIW,SAASC;MACbC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MACRC,YACEY,kBAAkBC,YAClBC,iBAAiB;MACfC,cAAcT;MACdU,WAAW,MAAMC,aAAaC,eAAeC,MAAM;IACrD,CAAA,CAAA;EAEN,CAAA;EACAzB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MAAMC,YAAYoB,mBAAmBC,QAAQ;MAACf;KAAS;EACnE,CAAA;EACAZ,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOyB;IACpBvB,UAAUwB;EACZ,CAAA;EACA7B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO2B;IACpBzB,UAAU0B;EACZ,CAAA;CACD;",
6
- "names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "lazy", "IntentResolver", "lazy", "ReactSurface", "Type", "Type", "getTypename", "ViewType", "EXPLORER_PLUGIN", "ExplorerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "ViewType", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ExplorerAction", "Create", "ClientCapabilities", "Schema", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver"]
3
+ "sources": ["../../../src/ExplorerPlugin.tsx", "../../../src/capabilities/react-surface/index.ts", "../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Type } from '@dxos/echo';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { View } from '@dxos/schema';\n\nimport { ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\nimport { ExplorerAction, Graph } from './types';\n\nexport const ExplorerPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Type.getTypename(Graph.Graph),\n metadata: {\n icon: 'ph--graph--regular',\n iconHue: 'green',\n inputSchema: ExplorerAction.GraphProps,\n createObject: ((props, { db }) =>\n Effect.promise(async () => {\n const { view } = await View.makeFromDatabase({ db, typename: props.typename });\n return Graph.make({ name: props.name, view });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Graph.Graph] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as componentsTranslations } from '@dxos/react-ui-components';\n\nimport { meta } from './meta';\nimport { Graph } from './types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Graph.Graph)]: {\n 'typename label': 'Explorer',\n 'typename label_zero': 'Explorers',\n 'typename label_one': 'Explorer',\n 'typename label_other': 'Explorers',\n 'object name placeholder': 'New explorer',\n 'rename object label': 'Rename explorer',\n 'delete object label': 'Delete explorer',\n 'object deleted label': 'Explorer deleted',\n },\n [meta.id]: {\n 'plugin name': 'Explorer',\n 'object title label': 'Title',\n },\n },\n },\n ...componentsTranslations,\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,QAAAA,aAAY;AAErB,SAASC,YAAY;;;ACNrB,SAASC,kBAAkB;AAEpB,IAAMC,eAAeC,WAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,SAASC,YAAY;AAErB,SAASC,gBAAgBC,8BAA8B;AAKhD,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,YAAYC,cAAMA,KAAK,CAAA,GAAI;QAC/B,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,sBAAsB;MACxB;IACF;EACF;KACGC;;;;AFbE,IAAMC,iBAAiBC,OAAOC,OAAOC,IAAAA,EAAMC,KAChDC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,MAAKC,YAAYC,cAAMA,KAAK;IAChCJ,UAAU;MACRK,MAAM;MACNC,SAAS;MACTC,aAAaC,uBAAeC;MAC5BC,cAAe,CAACC,OAAO,EAAEC,GAAE,MAClBC,eAAQ,YAAA;AACb,cAAM,EAAEC,KAAI,IAAK,MAAMC,KAAKC,iBAAiB;UAAEJ;UAAIK,UAAUN,MAAMM;QAAS,CAAA;AAC5E,eAAOb,cAAMc,KAAK;UAAEC,MAAMR,MAAMQ;UAAML;QAAK,CAAA;MAC7C,CAAA;IACJ;EACF;AACF,CAAA,GACAhB,UAAUsB,gBAAgB;EAAEC,QAAQ;IAACjB,cAAMA;;AAAO,CAAA,GAClDN,UAAUwB,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpD1B,UAAU2B,sBAAsB;EAAEC;AAAa,CAAA,GAC/ChC,OAAOwB,IAAI;",
6
+ "names": ["Effect", "Plugin", "AppPlugin", "Type", "View", "Capability", "ReactSurface", "Capability", "lazy", "Type", "translations", "componentsTranslations", "translations", "Type", "getTypename", "Graph", "meta", "id", "componentsTranslations", "ExplorerPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Type", "getTypename", "Graph", "icon", "iconHue", "inputSchema", "ExplorerAction", "GraphProps", "createObject", "props", "db", "promise", "view", "View", "makeFromDatabase", "typename", "make", "name", "addSchemaModule", "schema", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytes":1420,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":5152,"imports":[{"path":"@preact-signals/safe-react/tracking","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":"packages/plugins/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytes":482,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7796,"imports":[{"path":"@preact-signals/safe-react/tracking","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":"packages/plugins/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytes":482,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/D3ForceGraph.tsx":{"bytes":10402,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/adapter.ts":{"bytes":3210,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/ForceGraph.tsx":{"bytes":11059,"imports":[{"path":"@preact-signals/safe-react/tracking","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":"packages/plugins/plugin-explorer/src/components/Graph/adapter.ts","kind":"import-statement","original":"./adapter"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytes":595,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Graph/D3ForceGraph.tsx","kind":"import-statement","original":"./D3ForceGraph"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/ForceGraph.tsx","kind":"import-statement","original":"./ForceGraph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17492,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8718,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9220,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1107,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts":{"bytes":26074,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types/types.ts":{"bytes":3316,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types/index.ts":{"bytes":567,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts","kind":"import-statement","original":"./tree"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":9679,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytes":480,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts":{"bytes":3269,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/hooks/index.ts":{"bytes":495,"imports":[{"path":"packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts","kind":"import-statement","original":"./useGraphModel"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":3354,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"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/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/plugin-explorer/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytes":1110,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/plugin-explorer/src/meta.ts":{"bytes":1874,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytes":1516,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytes":2252,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytes":557,"imports":[{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2182,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2879,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytes":1051,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-explorer/src/translations.ts":{"bytes":2243,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":7382,"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/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/index.ts":{"bytes":745,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-explorer/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5060},"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","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/plugin-explorer/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-XBH3WZDL.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["Chart","D3ForceGraph","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","ForceGraph","Globe","Tree","defaultTreeLayoutSlots","meta","useGraphModel"],"entryPoint":"packages/plugins/plugin-explorer/src/index.ts","inputs":{"packages/plugins/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1546},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-explorer/src/translations.ts":{"bytesInOutput":470}},"bytes":3121},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/plugin-explorer/src/meta.ts","inputs":{},"bytes":230},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/plugin-explorer/src/types/index.ts","inputs":{},"bytes":270},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1638},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"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/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":824}},"bytes":1208},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1783},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["useGraphModel"],"inputs":{"packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts":{"bytesInOutput":590},"packages/plugins/plugin-explorer/src/hooks/index.ts":{"bytesInOutput":0}},"bytes":819},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1090},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":373}},"bytes":741},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-XBH3WZDL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-XBH3WZDL.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":503}},"bytes":966},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":487537},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","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":"@preact-signals/safe-react/tracking","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":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","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":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1254},"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1968},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2157},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2167},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1355},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1596},"packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts":{"bytesInOutput":6323},"packages/plugins/plugin-explorer/src/components/Tree/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Tree/types/types.ts":{"bytesInOutput":82},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":206725},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12519},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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}],"exports":["D3ForceGraph","ForceGraph"],"inputs":{"packages/plugins/plugin-explorer/src/components/Graph/D3ForceGraph.tsx":{"bytesInOutput":2402},"packages/plugins/plugin-explorer/src/components/Graph/ForceGraph.tsx":{"bytesInOutput":2413},"packages/plugins/plugin-explorer/src/components/Graph/adapter.ts":{"bytesInOutput":488},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":5771},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1806},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytesInOutput":261},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytesInOutput":455}},"bytes":1065},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":898},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-explorer/src/meta.ts":{"bytesInOutput":427}},"bytes":651}}}
1
+ {"inputs":{"src/components/plot.ts":{"bytes":1407,"imports":[],"format":"esm"},"src/components/Chart/Chart.tsx":{"bytes":4817,"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":"src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"src/components/Chart/index.ts":{"bytes":469,"imports":[{"path":"src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"src/components/Globe/Globe.tsx":{"bytes":7377,"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":"data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"src/components/Globe/index.ts":{"bytes":469,"imports":[{"path":"src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"src/components/Graph/D3ForceGraph.tsx":{"bytes":9907,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true}],"format":"esm"},"src/components/Graph/adapter.ts":{"bytes":4167,"imports":[],"format":"esm"},"src/components/Graph/ForceGraph.tsx":{"bytes":10625,"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":"src/components/Graph/adapter.ts","kind":"import-statement","original":"./adapter"}],"format":"esm"},"src/components/Graph/index.ts":{"bytes":582,"imports":[{"path":"src/components/Graph/D3ForceGraph.tsx","kind":"import-statement","original":"./D3ForceGraph"},{"path":"src/components/Graph/ForceGraph.tsx","kind":"import-statement","original":"./ForceGraph"}],"format":"esm"},"src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17479,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/layout/RadialTree.ts":{"bytes":8705,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/layout/TidyTree.ts":{"bytes":9207,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/layout/index.ts":{"bytes":1094,"imports":[{"path":"src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"src/components/Tree/types/tree.ts":{"bytes":28143,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/testing","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/types/types.ts":{"bytes":3319,"imports":[],"format":"esm"},"src/components/Tree/types/index.ts":{"bytes":554,"imports":[{"path":"src/components/Tree/types/tree.ts","kind":"import-statement","original":"./tree"},{"path":"src/components/Tree/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Tree/Tree.tsx":{"bytes":9947,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"src/components/Tree/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Tree/index.ts":{"bytes":467,"imports":[{"path":"src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"src/hooks/useGraphModel.ts":{"bytes":4162,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":482,"imports":[{"path":"src/hooks/useGraphModel.ts","kind":"import-statement","original":"./useGraphModel"}],"format":"esm"},"src/components/ExplorerContainer.tsx":{"bytes":5572,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-query","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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-components","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"src/components/index.ts":{"bytes":1153,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"src/meta.ts":{"bytes":2213,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/ExplorerAction.ts":{"bytes":2382,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"format":"esm"},"src/types/Graph.ts":{"bytes":5668,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":703,"imports":[{"path":"src/types/ExplorerAction.ts","kind":"import-statement","original":"./ExplorerAction"},{"path":"src/types/Graph.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":3529,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":912,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":489,"imports":[{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":3171,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-components","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/ExplorerPlugin.tsx":{"bytes":5000,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":732,"imports":[{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4324},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-ASRWO2N5.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-K5BYG7BW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-DK77RB6M.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-3OE6TBJI.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-YWJBDETV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-CYHGJJDU.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-components","kind":"import-statement","external":true}],"exports":["Chart","D3ForceGraph","ExplorerContainer","ExplorerPlugin","ForceGraph","Globe","Tree","defaultTreeLayoutSlots","meta","useGraphModel"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/ExplorerPlugin.tsx":{"bytesInOutput":976},"src/capabilities/react-surface/index.ts":{"bytesInOutput":148},"src/capabilities/index.ts":{"bytesInOutput":0},"src/translations.ts":{"bytesInOutput":730}},"bytes":2657},"dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/meta.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-DK77RB6M.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":223},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-3OE6TBJI.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["ExplorerAction","Graph"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":323},"dist/lib/node-esm/ExplorerContainer-OZNG47QB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3103},"dist/lib/node-esm/ExplorerContainer-OZNG47QB.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-ASRWO2N5.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-YWJBDETV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-query","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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-components","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/components/ExplorerContainer.tsx","inputs":{"src/components/ExplorerContainer.tsx":{"bytesInOutput":1234}},"bytes":1616},"dist/lib/node-esm/chunk-ASRWO2N5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2284},"dist/lib/node-esm/chunk-ASRWO2N5.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["useGraphModel"],"inputs":{"src/hooks/useGraphModel.ts":{"bytesInOutput":834},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":1030},"dist/lib/node-esm/react-surface-CYHGJJDU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1782},"dist/lib/node-esm/react-surface-CYHGJJDU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-K5BYG7BW.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-DK77RB6M.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-3OE6TBJI.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-YWJBDETV.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":659}},"bytes":1128},"dist/lib/node-esm/chunk-K5BYG7BW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":483775},"dist/lib/node-esm/chunk-K5BYG7BW.mjs":{"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":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","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":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/testing","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/ExplorerContainer-OZNG47QB.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"src/components/plot.ts":{"bytesInOutput":133},"src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"data/countries-110m.js":{"bytesInOutput":188376},"src/components/Tree/Tree.tsx":{"bytesInOutput":2082},"src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2167},"src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1355},"src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1596},"src/components/Tree/types/tree.ts":{"bytesInOutput":687},"src/components/Tree/types/index.ts":{"bytesInOutput":0},"src/components/Tree/types/types.ts":{"bytesInOutput":82},"src/components/index.ts":{"bytesInOutput":110},"src/components/Chart/index.ts":{"bytesInOutput":0},"src/components/Globe/index.ts":{"bytesInOutput":0},"src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":200059},"dist/lib/node-esm/chunk-DK77RB6M.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1050},"dist/lib/node-esm/chunk-DK77RB6M.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":570}},"bytes":742},"dist/lib/node-esm/chunk-3OE6TBJI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4133},"dist/lib/node-esm/chunk-3OE6TBJI.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["ExplorerAction_exports","Graph_exports"],"inputs":{"src/types/ExplorerAction.ts":{"bytesInOutput":624},"src/types/index.ts":{"bytesInOutput":0},"src/types/Graph.ts":{"bytesInOutput":1275}},"bytes":2196},"dist/lib/node-esm/chunk-YWJBDETV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13047},"dist/lib/node-esm/chunk-YWJBDETV.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","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}],"exports":["D3ForceGraph","ForceGraph"],"inputs":{"src/components/Graph/D3ForceGraph.tsx":{"bytesInOutput":2113},"src/components/Graph/ForceGraph.tsx":{"bytesInOutput":2154},"src/components/Graph/adapter.ts":{"bytesInOutput":619},"src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":5222},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
@@ -1,10 +1,9 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- EXPLORER_PLUGIN,
4
3
  meta
5
- } from "./chunk-3CMBLK6W.mjs";
4
+ } from "./chunk-DK77RB6M.mjs";
5
+ import "./chunk-HSLMI22Q.mjs";
6
6
  export {
7
- EXPLORER_PLUGIN,
8
7
  meta
9
8
  };
10
9
  //# sourceMappingURL=meta.mjs.map