@dxos/plugin-explorer 0.7.5-labs.ff2ff30 → 0.7.5-main.5ae2ba8
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-A7UBZ3QP.mjs → ExplorerContainer-THLT3CQZ.mjs} +2 -2
- package/dist/lib/browser/{chunk-5GTLMW4Q.mjs → chunk-TDUEJNAN.mjs} +21 -22
- package/dist/lib/browser/chunk-TDUEJNAN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DTAFIUA7.mjs → chunk-YN4YVXVL.mjs} +2 -2
- package/dist/lib/browser/index.mjs +15 -6
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-EGSBRYNS.mjs → react-surface-UMUN6CTH.mjs} +3 -3
- package/dist/lib/node/{ExplorerContainer-ZV2YKOUE.cjs → ExplorerContainer-EJPGD4WR.cjs} +6 -6
- package/dist/lib/node/{chunk-4H2Y5RER.cjs → chunk-H5CHI722.cjs} +5 -5
- package/dist/lib/node/{chunk-WHMJ2VQ2.cjs → chunk-QASZ24JS.cjs} +23 -24
- package/dist/lib/node/chunk-QASZ24JS.cjs.map +7 -0
- package/dist/lib/node/index.cjs +22 -13
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-6B67W6YP.cjs → react-surface-UVMGNAA6.cjs} +7 -7
- package/dist/lib/node-esm/{ExplorerContainer-JXY6XN2D.mjs → ExplorerContainer-MEZP34AY.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-WTGQFG6L.mjs → chunk-45DTVHHL.mjs} +21 -22
- package/dist/lib/node-esm/chunk-45DTVHHL.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HIMBUOZ3.mjs → chunk-JYW3CDBT.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +15 -6
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-72EIBLSU.mjs → react-surface-5BTZOU3H.mjs} +3 -3
- package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.d.ts +1 -2
- package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.stories.d.ts +1 -2
- package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
- package/dist/types/src/components/ExplorerContainer.d.ts +1 -2
- package/dist/types/src/components/ExplorerContainer.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.d.ts +1 -2
- package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts +2 -3
- package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/Graph.d.ts +1 -0
- package/dist/types/src/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/src/components/Graph/graph-model.d.ts +6 -6
- package/dist/types/src/components/Graph/graph-model.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.d.ts +1 -2
- package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +2 -2
- package/package.json +25 -24
- package/src/ExplorerPlugin.tsx +16 -3
- package/src/components/Graph/Graph.tsx +19 -20
- package/src/components/Graph/graph-model.ts +13 -9
- package/dist/lib/browser/chunk-5GTLMW4Q.mjs.map +0 -7
- package/dist/lib/node/chunk-WHMJ2VQ2.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-WTGQFG6L.mjs.map +0 -7
- /package/dist/lib/browser/{ExplorerContainer-A7UBZ3QP.mjs.map → ExplorerContainer-THLT3CQZ.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-DTAFIUA7.mjs.map → chunk-YN4YVXVL.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-EGSBRYNS.mjs.map → react-surface-UMUN6CTH.mjs.map} +0 -0
- /package/dist/lib/node/{ExplorerContainer-ZV2YKOUE.cjs.map → ExplorerContainer-EJPGD4WR.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-4H2Y5RER.cjs.map → chunk-H5CHI722.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-6B67W6YP.cjs.map → react-surface-UVMGNAA6.cjs.map} +0 -0
- /package/dist/lib/node-esm/{ExplorerContainer-JXY6XN2D.mjs.map → ExplorerContainer-MEZP34AY.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-HIMBUOZ3.mjs.map → chunk-JYW3CDBT.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-72EIBLSU.mjs.map → react-surface-5BTZOU3H.mjs.map} +0 -0
|
@@ -26,14 +26,14 @@ 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 chunk_QASZ24JS_exports = {};
|
|
30
|
+
__export(chunk_QASZ24JS_exports, {
|
|
31
31
|
Graph: () => Graph,
|
|
32
32
|
SpaceGraphModel: () => SpaceGraphModel,
|
|
33
33
|
Tree: () => Tree,
|
|
34
34
|
defaultTreeLayoutSlots: () => defaultTreeLayoutSlots
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_QASZ24JS_exports);
|
|
37
37
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
38
38
|
var import_gem_spore = require("@dxos/gem-spore");
|
|
39
39
|
var import_log = require("@dxos/log");
|
|
@@ -84,7 +84,7 @@ var SpaceGraphModel = class extends import_gem_spore.GraphModel {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
|
-
type: "
|
|
87
|
+
type: "object",
|
|
88
88
|
id: object.id,
|
|
89
89
|
object
|
|
90
90
|
};
|
|
@@ -97,7 +97,7 @@ var SpaceGraphModel = class extends import_gem_spore.GraphModel {
|
|
|
97
97
|
id: object.id.slice(0, 8)
|
|
98
98
|
}, {
|
|
99
99
|
F: __dxlog_file,
|
|
100
|
-
L:
|
|
100
|
+
L: 76,
|
|
101
101
|
S: this,
|
|
102
102
|
C: (f, a) => f(...a)
|
|
103
103
|
});
|
|
@@ -316,7 +316,7 @@ var colors = [
|
|
|
316
316
|
"[&>circle]:!fill-teal-300 [&>circle]:!stroke-teal-600",
|
|
317
317
|
"[&>circle]:!fill-indigo-300 [&>circle]:!stroke-indigo-600"
|
|
318
318
|
];
|
|
319
|
-
var Graph = ({ space, match }) => {
|
|
319
|
+
var Graph = ({ space, match, grid }) => {
|
|
320
320
|
const model = (0, import_react2.useMemo)(() => space ? new SpaceGraphModel({
|
|
321
321
|
schema: true
|
|
322
322
|
}).open(space) : void 0, [
|
|
@@ -331,15 +331,15 @@ var Graph = ({ space, match }) => {
|
|
|
331
331
|
strength: -100
|
|
332
332
|
},
|
|
333
333
|
link: {
|
|
334
|
-
distance:
|
|
334
|
+
distance: 120
|
|
335
335
|
},
|
|
336
336
|
radial: {
|
|
337
|
-
radius:
|
|
337
|
+
radius: 150,
|
|
338
338
|
strength: 0.05
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
341
|
attributes: {
|
|
342
|
-
radius: (node) => node.data?.type === "schema" ?
|
|
342
|
+
radius: (node) => node.data?.type === "schema" ? 12 : 8
|
|
343
343
|
}
|
|
344
344
|
}), []);
|
|
345
345
|
const filteredRef = (0, import_react2.useRef)();
|
|
@@ -367,7 +367,7 @@ var Graph = ({ space, match }) => {
|
|
|
367
367
|
className: (0, import_react_ui_theme.mx)(import_gem_spore2.defaultStyles, slots?.root?.className)
|
|
368
368
|
}, /* @__PURE__ */ import_react2.default.createElement(import_gem_spore2.Markers, {
|
|
369
369
|
arrowSize: 6
|
|
370
|
-
}), /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.Grid, {
|
|
370
|
+
}), grid && /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.Grid, {
|
|
371
371
|
className: slots?.grid?.className ?? (0, import_gem_core2.defaultGridStyles)(themeMode)
|
|
372
372
|
}), /* @__PURE__ */ import_react2.default.createElement(import_gem_core2.Zoom, {
|
|
373
373
|
extent: [
|
|
@@ -392,27 +392,26 @@ var Graph = ({ space, match }) => {
|
|
|
392
392
|
node: (node) => {
|
|
393
393
|
let className;
|
|
394
394
|
if (node.data) {
|
|
395
|
-
const
|
|
396
|
-
if (
|
|
397
|
-
|
|
398
|
-
if (
|
|
399
|
-
className =
|
|
400
|
-
|
|
395
|
+
const { object } = node.data;
|
|
396
|
+
if (object) {
|
|
397
|
+
const typename = (0, import_echo2.getTypename)(object);
|
|
398
|
+
if (typename) {
|
|
399
|
+
className = colorMap.get(typename);
|
|
400
|
+
if (!className) {
|
|
401
|
+
className = colors[colorMap.size % colors.length];
|
|
402
|
+
colorMap.set(typename, className);
|
|
403
|
+
}
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
}
|
|
404
407
|
const selected2 = filteredRef.current?.some((object) => object.id === node.data?.id);
|
|
408
|
+
const blur = !selected2 && !!filteredRef.current?.length;
|
|
405
409
|
return {
|
|
406
|
-
class: (0, import_react_ui_theme.mx)(
|
|
407
|
-
className
|
|
408
|
-
] : "[&>text]:!fill-neutral-300" : [
|
|
409
|
-
"[&>text]:!fill-neutral-700",
|
|
410
|
-
className
|
|
411
|
-
])
|
|
410
|
+
class: (0, import_react_ui_theme.mx)(className, blur && "opacity-70")
|
|
412
411
|
};
|
|
413
412
|
},
|
|
414
413
|
link: () => ({
|
|
415
|
-
class: "[&>path]:!stroke-neutral-300"
|
|
414
|
+
class: "[&>path]:!stroke-neutral-300 dark:[&>path]:!stroke-neutral-700"
|
|
416
415
|
})
|
|
417
416
|
}
|
|
418
417
|
}))));
|
|
@@ -493,4 +492,4 @@ var Tree = ({ space, selected, variant = "tidy", onNodeClick }) => {
|
|
|
493
492
|
Tree,
|
|
494
493
|
defaultTreeLayoutSlots
|
|
495
494
|
});
|
|
496
|
-
//# sourceMappingURL=chunk-
|
|
495
|
+
//# sourceMappingURL=chunk-QASZ24JS.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/Graph/graph-model.ts", "../../../src/components/Tree/Tree.tsx", "../../../src/components/Tree/layout/HierarchicalEdgeBundling.ts", "../../../src/components/Tree/layout/RadialTree.ts", "../../../src/components/Tree/layout/TidyTree.ts", "../../../src/components/Tree/types.ts", "../../../src/components/Graph/Graph.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { AST, EchoSchema, ReferenceAnnotationId, type S, SchemaValidator, StoredSchema } from '@dxos/echo-schema';\nimport { type GraphData, type GraphLink, GraphModel } from '@dxos/gem-spore';\nimport { log } from '@dxos/log';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { type ReactiveEchoObject, type Space, type Subscription, getSchema, getType } from '@dxos/react-client/echo';\n\nexport type SpaceGraphModelOptions = {\n schema?: boolean;\n};\n\ntype SchemaGraphNode = {\n id: string;\n type: 'schema';\n schema: S.Schema<any>;\n};\n\ntype ObjectGraphNode = {\n id: string;\n type: 'object';\n object: ReactiveEchoObject<any>;\n};\n\nexport type EchoGraphNode = SchemaGraphNode | ObjectGraphNode;\n\n/**\n * Converts ECHO objects to a graph.\n */\nexport class SpaceGraphModel extends GraphModel<EchoGraphNode> {\n private readonly _graph: GraphData<EchoGraphNode> = {\n nodes: [],\n links: [],\n };\n\n private _subscription?: Subscription;\n private _objects?: ReactiveEchoObject<any>[];\n\n constructor(private readonly _options: SpaceGraphModelOptions = {}) {\n super();\n }\n\n override get graph(): GraphData<EchoGraphNode> {\n return this._graph;\n }\n\n get objects(): ReactiveEchoObject<any>[] {\n return this._objects ?? [];\n }\n\n open(space: Space, objectId?: string) {\n if (!this._subscription) {\n // TODO(burdon): Filter.\n const query = space.db.query((object: ReactiveEchoObject<any>) => !(object instanceof CollectionType));\n\n this._subscription = query.subscribe(\n ({ objects }) => {\n this._objects = objects;\n\n // TODO(burdon): Normalize schema.\n this._graph.nodes = objects.map((object) => {\n if (object instanceof StoredSchema) {\n const effectSchema = space.db.schemaRegistry.getSchemaById(object.id)!;\n return { type: 'schema', id: object.id, schema: effectSchema.schema };\n }\n\n return { type: 'object', id: object.id, object };\n });\n\n this._graph.links = objects.reduce<GraphLink[]>((links, object) => {\n const objectSchema = getSchema(object);\n const typename = getType(object)?.objectId;\n if (objectSchema == null || typename == null) {\n log.info('no schema for object:', { id: object.id.slice(0, 8) });\n return links;\n }\n\n if (!(objectSchema instanceof EchoSchema)) {\n const idx = objects.findIndex((obj) => obj.id === typename);\n if (idx === -1) {\n this._graph.nodes.push({\n id: typename,\n type: 'schema',\n schema: objectSchema,\n });\n }\n }\n\n // Link to schema.\n if (this._options.schema) {\n links.push({\n id: `${object.id}-${typename}`,\n source: object.id,\n target: typename,\n });\n }\n\n // Parse schema to follow referenced objects.\n AST.getPropertySignatures(objectSchema.ast).forEach((prop) => {\n if (!SchemaValidator.hasTypeAnnotation(objectSchema, prop.name.toString(), ReferenceAnnotationId)) {\n return;\n }\n const value = object[String(prop.name)];\n if (value) {\n const refs = Array.isArray(value) ? value : [value];\n for (const ref of refs) {\n if (objects.findIndex((obj) => obj.id === ref.id) !== -1) {\n links.push({\n id: `${object.id}-${String(prop.name)}-${ref.id}`,\n source: object.id,\n target: ref.id,\n });\n }\n }\n }\n });\n\n return links;\n }, []);\n\n this.triggerUpdate();\n },\n { fire: true },\n );\n }\n\n this.setSelected(objectId);\n return this;\n }\n\n close() {\n if (this._subscription) {\n this._subscription();\n this._subscription = undefined;\n }\n\n return this;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type Space } from '@dxos/client/echo';\nimport { createSvgContext, SVG, SVGRoot } from '@dxos/gem-core';\n\nimport { HierarchicalEdgeBundling, RadialTree, TidyTree } from './layout';\nimport { mapGraphToTreeData, type TreeNode } from './types';\nimport { SpaceGraphModel } from '../Graph';\n\n// TODO(burdon): Create dge bundling graph using d3.hierarchy.\n// https://observablehq.com/@d3/hierarchical-edge-bundling?intent=fork\n\ntype Renderer = (svg: SVGSVGElement, data: any, options: any) => void;\n\nexport type LayoutVariant = 'tidy' | 'radial' | 'edge';\n\n// TODO(burdon): Remove slots?\nexport type TreeLayoutSlots = {\n node?: string;\n path?: string;\n text?: string;\n};\n\nexport type TreeOptions = {\n label: (d: any) => string;\n\n slots?: TreeLayoutSlots;\n radius?: number;\n\n width: number;\n height: number;\n margin?: number;\n\n padding?: number;\n // Radius of nodes.\n r?: number;\n};\n\nexport const defaultTreeLayoutSlots: TreeLayoutSlots = {\n node: 'fill-blue-600',\n path: 'fill-none stroke-blue-400 stroke-[0.5px]',\n text: 'stroke-[0.5px] stroke-neutral-700 text-xs', // TODO(burdon): Create box instead of halo.\n};\n\nconst renderers = new Map<LayoutVariant, Renderer>([\n ['tidy', TidyTree],\n ['radial', RadialTree],\n ['edge', HierarchicalEdgeBundling],\n]);\n\nexport type TreeComponentProps<N = unknown> = {\n space: Space;\n selected?: string;\n variant?: LayoutVariant;\n onNodeClick?: (node?: N) => void;\n};\n\n// TODO(burdon): Label accessor.\nexport const Tree = <N,>({ space, selected, variant = 'tidy', onNodeClick }: TreeComponentProps<N>) => {\n const model = useMemo(() => (space ? new SpaceGraphModel().open(space, selected) : undefined), [space, selected]);\n const [tree, setTree] = useState<TreeNode>();\n useEffect(() => {\n return model?.subscribe(() => {\n const tree = mapGraphToTreeData(model);\n setTree(tree);\n }, true);\n }, [model]);\n\n const context = createSvgContext();\n const { ref, width = 0, height = 0 } = useResizeDetector();\n\n useEffect(() => {\n if (width && height) {\n const size = Math.min(width, height);\n const radius = size * 0.4;\n const options = {\n // TODO(burdon): Type.\n label: (d: any) => d.label ?? d.id,\n width,\n height,\n radius,\n marginLeft: (width - radius * 2) / 2,\n marginRight: (width - radius * 2) / 2,\n marginTop: (height - radius * 2) / 2,\n marginBottom: (height - radius * 2) / 2,\n slots: defaultTreeLayoutSlots,\n };\n\n if (tree) {\n const renderer = renderers.get(variant);\n renderer?.(context.ref.current!, tree, options);\n }\n }\n }, [tree, width, height]);\n\n // TODO(burdon): Provider should expand.\n return (\n <div ref={ref} className='flex grow overflow-hidden' onClick={() => onNodeClick?.()}>\n <SVGRoot context={context}>\n <SVG />\n </SVGRoot>\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n// Copyright 2022 Observable, Inc.\n//\n\nimport * as d3 from 'd3';\nimport { type HierarchyNode } from 'd3-hierarchy';\n\nimport { type TreeOptions } from '../Tree';\nimport { type TreeNode } from '../types';\n\n// Create hierarchical ID.\n// eslint-disable-next-line unused-imports/no-unused-vars\nconst getId = (node: HierarchyNode<TreeNode>): string =>\n `${node.parent ? getId(node.parent) + '/' : ''}${node.data.id.slice(0, 4)}`;\n\n// https://github.com/d3/d3-hierarchy\n// https://observablehq.com/@d3/hierarchical-edge-bundling?intent=fork\nconst HierarchicalEdgeBundling = (s: SVGSVGElement, data: TreeNode, options: TreeOptions) => {\n const svg = d3.select(s);\n svg.selectAll('*').remove();\n\n const { radius = 600, padding = 100, slots } = options;\n\n // https://d3js.org/d3-hierarchy/hierarchy\n const root = d3.hierarchy(flatten(data));\n // .sort((a, b) => d3.ascending(a.height, b.height) || d3.ascending(getName(a.data), getName(b.data)));\n\n const tree = d3.cluster<TreeNode>().size([2 * Math.PI, radius - padding]);\n const layout = tree(addLinks(root));\n\n // eslint-disable-next-line unused-imports/no-unused-vars\n const node = svg\n .append('g')\n .selectAll()\n .data(layout.leaves())\n .join('g')\n .attr('transform', (d) => `rotate(${d.x * (180 / Math.PI) - 90}) translate(${d.y},0)`)\n .append('text')\n .attr('class', slots?.text ?? '')\n .attr('dy', '0.31em') // TODO(burdon): Based on font size.\n .attr('x', (d) => (d.x < Math.PI ? 6 : -6))\n .attr('text-anchor', (d) => (d.x < Math.PI ? 'start' : 'end'))\n .attr('transform', (d) => (d.x >= Math.PI ? 'rotate(180)' : null))\n // .text((d: any) => d.data.id)\n // .each(function (d: any) {\n // d.text = this;\n // })\n // .on('mouseover', overed)\n // .on('mouseout', outed)\n .call(\n (text) => text.text((d: any) => d.data.id.slice(0, 8)),\n // .text((d: any) => `${getId(d)} [${[(d as any).outgoing?.length ?? 0]}]`),\n );\n\n // https://d3js.org/d3-shape/radial-line\n const line = d3\n .lineRadial()\n .curve(d3.curveBundle.beta(0.85))\n .radius((d: any) => d.y)\n .angle((d: any) => d.x);\n\n // eslint-disable-next-line unused-imports/no-unused-vars\n const links = svg\n .append('g')\n .selectAll()\n .data(layout.leaves().flatMap((leaf: any) => leaf.outgoing))\n .join('path')\n .style('mix-blend-mode', 'multiply')\n .attr('class', slots?.path ?? '')\n .attr('d', ([i, o]) => {\n return line(i.path(o));\n })\n .each(function (d) {\n d.path = this;\n });\n\n // function overed(event: any, d: X) {\n // link.style('mix-blend-mode', null);\n // d3.select(this).attr('font-weight', 'bold');\n // d3.selectAll(d.incoming.map((d) => d.path))\n // .attr('stroke', color.in)\n // .raise();\n // d3.selectAll((d as any).incoming.map(([d]) => d.text))\n // .attr('fill', color.in)\n // .attr('font-weight', 'bold');\n // d3.selectAll(d.outgoing.map((d) => d.path))\n // .attr('stroke', color.out)\n // .raise();\n // d3.selectAll(d.outgoing.map(([, d]) => d.text))\n // .attr('fill', color.out)\n // .attr('font-weight', 'bold');\n // }\n\n // function outed(event: any, d: HierarchyNode<Datum>) {\n // // @ts-ignore\n // d3.select(this).attr('font-weight', null);\n // d3.selectAll(d.incoming.map((d) => d.path)).attr('stroke', null);\n // d3.selectAll(d.incoming.map(([d]) => d.text))\n // .attr('fill', null)\n // .attr('font-weight', null);\n // d3.selectAll(d.outgoing.map((d) => d.path)).attr('stroke', null);\n // d3.selectAll(d.outgoing.map(([, d]) => d.text))\n // .attr('fill', null)\n // .attr('font-weight', null);\n // }\n};\n\n// Monkey-patch with incoming/outgoing nodes.\nconst addLinks = (root: HierarchyNode<TreeNode>) => {\n // Map of nodes indexed by ID.\n const nodes = new Map(root.descendants().map((d) => [d.data.id, d]));\n const parents = root.descendants().reduce((map, d) => {\n if (d.children?.length) {\n map.set(d.data.id, d);\n }\n return map;\n }, new Map<string, HierarchyNode<TreeNode>>());\n\n for (const d of root.leaves()) {\n // (d as any).incoming = [];\n\n const parent = parents.get(d.data.id);\n if (parent) {\n // Skip the first node which is a placeholder created by flatten().\n (d as any).outgoing =\n parent.data.children?.slice(1).map((child) => {\n return [d, nodes.get(child.id)!];\n }) ?? [];\n } else {\n (d as any).outgoing = [];\n }\n }\n\n // for (const d of root.leaves()) {\n // for (const [_, o] of (d as any).outgoing) {\n // o.incoming.push(o);\n // }\n // }\n\n return root;\n};\n\n/**\n * We are using a hierarchy in order to group nodes by parent, but we want the parent\n * nodes to be positioned at the first level along with all descendents.\n * So we add a placeholder for all parents at the head of each group.\n * @param node\n */\nconst flatten = (node: TreeNode) => {\n const clone: TreeNode = {\n id: node.id,\n };\n\n // TODO(burdon): NOTE: Should exclude schema (since requires a tree).\n if (node.children?.length) {\n const children = node.children.map((child) => flatten(child));\n clone.children = [{ id: node.id }, ...children];\n }\n\n return clone;\n};\n\nexport default HierarchicalEdgeBundling;\n", "//\n// Copyright 2023 DXOS.org\n// Copyright 2022 Observable, Inc.\n//\n\nimport * as d3 from 'd3';\n\nimport { type TreeOptions } from '../Tree';\n\n// Released under the ISC license.\n// https://observablehq.com/@d3/radial-tree\n// https://observablehq.com/@d3/tree\nconst RadialTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {\n const svg = d3.select(s);\n svg.selectAll('*').remove();\n\n const {\n label, // given a node d, returns the display name\n radius = 400,\n r = 4, // radius of nodes\n slots,\n } = options;\n\n const arc = 2 * Math.PI;\n\n const root = d3.hierarchy(data);\n\n // Sort the nodes.\n // if (sort) {\n // root.sort(sort);\n // }\n\n // Compute labels and titles.\n const descendants = root.descendants();\n const getLabel = label === null ? null : descendants.map((d) => label(d.data));\n\n // Compute the layout.\n const layout = d3\n .tree()\n .size([arc, radius])\n .separation((a: any, b: any) => (a.parent === b.parent ? 1 : 2) / a.depth);\n layout(root);\n\n // Links.\n svg\n .append('g')\n .selectAll('path')\n .data(root.links())\n .join('path')\n .attr('class', slots?.path ?? '')\n .attr(\n 'd',\n d3\n .linkRadial()\n .angle((d: any) => d.x + Math.PI / 2)\n .radius((d: any) => d.y) as any,\n );\n\n // Nodes.\n const node = svg\n .append('g')\n .selectAll('a')\n .data(root.descendants())\n .join('a')\n // .attr('xlink:href', link == null ? null : (d) => link(d.data, d))\n // .attr('target', link == null ? null : linkTarget)\n .attr('transform', (d: any) => `rotate(${(d.x * 180) / Math.PI}) translate(${d.y},0)`);\n\n node\n .append('circle')\n .attr('class', slots?.node ?? '')\n .attr('r', r);\n\n // if (title != null) {\n // node.append('title').text((d) => title(d.data, d));\n // }\n\n // Text.\n if (getLabel) {\n node\n .append('text')\n .attr('transform', (d: any) => `rotate(${d.x >= Math.PI ? 180 : 0})`)\n .attr('dy', '0.32em')\n // eslint-disable-next-line no-mixed-operators\n .attr('x', (d: any) => (d.x < Math.PI === !d.children ? 6 : -6))\n // eslint-disable-next-line no-mixed-operators\n .attr('text-anchor', (d: any) => (d.x < Math.PI === !d.children ? 'start' : 'end'))\n // .attr('paint-order', 'stroke')\n .attr('class', slots?.text ?? '')\n .text((d, i) => getLabel[i]);\n }\n\n return svg.node();\n};\n\nexport default RadialTree;\n", "//\n// Copyright 2023 DXOS.org\n// Copyright 2021 Observable, Inc.\n//\n\nimport * as d3 from 'd3';\n\nimport { type TreeOptions } from '../Tree';\n\n// Released under the ISC license.\n// https://observablehq.com/@d3/tree\nconst TidyTree = (s: SVGSVGElement, data: any, options: TreeOptions) => {\n const svg = d3.select(s);\n svg.selectAll('*').remove();\n\n const { label, width, height, r = 4, padding = 4, margin = 60, slots } = options;\n\n const root = d3.hierarchy(data);\n\n // Compute labels and titles.\n const descendants = root.descendants();\n const getLabel = label == null ? null : descendants.map((d) => label(d.data));\n\n // Compute the layout.\n const dx = 16;\n const dy = width / (root.height + padding);\n const layout = d3.tree().nodeSize([dx, dy]);\n layout(root);\n\n // Center the tree.\n let x0 = Infinity;\n let x1 = -x0;\n let y0 = Infinity;\n let y1 = -y0;\n root.each((d: any) => {\n if (d.x > x1) {\n x1 = d.x;\n }\n if (d.x < x0) {\n x0 = d.x;\n }\n if (d.y > y1) {\n y1 = d.y;\n }\n if (d.y < y0) {\n y0 = d.y;\n }\n });\n\n // TODO(burdon): Option to expand.\n // NOTE: x and y are flipped.\n const sx = Math.min(2, Math.max(1, (height - margin * 2) / (x1 - x0)));\n const oy = -(width - (y1 - y0)) / 2;\n\n // Links.\n svg\n .append('g')\n .selectAll('path')\n .data(root.links())\n .join('path')\n .attr('class', slots?.path ?? '')\n .attr(\n 'd',\n d3\n .link(d3.curveBumpX)\n .x((d: any) => d.y + oy)\n .y((d: any) => d.x * sx) as any,\n );\n\n // Nodes.\n const node = svg\n .append('g')\n .selectAll('a')\n .data(root.descendants())\n .join('a')\n // .attr('xlink:href', link == null ? null : (d) => link(d.data, d))\n // .attr('target', link == null ? null : linkTarget)\n .attr('transform', (d: any) => `translate(${d.y + oy},${d.x * sx})`);\n\n node\n .append('circle')\n .attr('class', slots?.node ?? '')\n .attr('r', r);\n\n // if (title != null) {\n // node.append('title').text((d) => title(d.data, d));\n // }\n\n if (getLabel) {\n node\n .append('text')\n\n .attr('dy', '0.32em')\n .attr('x', (d) => (d.children ? -6 : 6))\n .attr('text-anchor', (d) => (d.children ? 'end' : 'start'))\n // .attr('paint-order', 'stroke')\n .attr('class', slots?.text ?? '')\n .text((d, i) => getLabel[i]);\n }\n};\n\nexport default TidyTree;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { GraphModel } from '@dxos/gem-spore';\n\nexport type TreeNode = {\n id: string;\n label?: string;\n children?: TreeNode[];\n};\n\nexport const mapGraphToTreeData = <N>(model: GraphModel<N>, maxDepth = 8): TreeNode | undefined => {\n const mapNode = (node: N, depth = 0): TreeNode => {\n const treeNode: TreeNode = {\n id: model.idAccessor(node),\n label: model.idAccessor(node).slice(0, 8),\n };\n\n const links = model.graph.links.filter((link) => link.source === treeNode.id);\n if (depth < maxDepth) {\n treeNode.children = links.map((link) =>\n mapNode(model.graph.nodes.find((node) => model.idAccessor(node) === link.target)!, depth + 1),\n );\n }\n\n return treeNode;\n };\n\n let data: TreeNode | undefined;\n if (model.selected) {\n const node = model.graph.nodes.find((node) => model.idAccessor(node) === model.selected);\n if (node) {\n data = mapNode(node);\n }\n }\n\n return data;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type FC, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { getTypename, type ReactiveEchoObject, type Space } from '@dxos/client/echo';\nimport { createSvgContext, defaultGridStyles, Grid, SVG, SVGRoot, Zoom } from '@dxos/gem-core';\nimport {\n defaultStyles,\n Graph as GraphComponent,\n GraphForceProjector,\n type GraphLayoutNode,\n Markers,\n} from '@dxos/gem-spore';\nimport { filterObjectsSync, type SearchResult } from '@dxos/plugin-search';\nimport { useThemeContext } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-ui-theme';\n\nimport '@dxos/gem-spore/styles';\n\nimport { type EchoGraphNode, SpaceGraphModel } from './graph-model';\nimport { Tree } from '../Tree';\n\ntype Slots = {\n root?: { className?: string };\n grid?: { className?: string };\n};\n\nconst slots: Slots = {};\n\nconst colors = [\n '[&>circle]:!fill-black-300 [&>circle]:!stroke-black-600',\n '[&>circle]:!fill-slate-300 [&>circle]:!stroke-slate-600',\n '[&>circle]:!fill-green-300 [&>circle]:!stroke-green-600',\n '[&>circle]:!fill-sky-300 [&>circle]:!stroke-sky-600',\n '[&>circle]:!fill-cyan-300 [&>circle]:!stroke-cyan-600',\n '[&>circle]:!fill-rose-300 [&>circle]:!stroke-rose-600',\n '[&>circle]:!fill-purple-300 [&>circle]:!stroke-purple-600',\n '[&>circle]:!fill-orange-300 [&>circle]:!stroke-orange-600',\n '[&>circle]:!fill-teal-300 [&>circle]:!stroke-teal-600',\n '[&>circle]:!fill-indigo-300 [&>circle]:!stroke-indigo-600',\n];\n\nexport type GraphProps = {\n space: Space;\n match?: RegExp;\n grid?: boolean;\n};\n\nexport const Graph: FC<GraphProps> = ({ space, match, grid }) => {\n const model = useMemo(() => (space ? new SpaceGraphModel({ schema: true }).open(space) : undefined), [space]);\n const [selected, setSelected] = useState<string>();\n const { themeMode } = useThemeContext();\n\n const context = createSvgContext();\n const projector = useMemo(\n () =>\n new GraphForceProjector<EchoGraphNode>(context, {\n forces: {\n manyBody: {\n strength: -100,\n },\n link: {\n distance: 120,\n },\n radial: {\n radius: 150,\n strength: 0.05,\n },\n },\n attributes: {\n radius: (node: GraphLayoutNode<EchoGraphNode>) => (node.data?.type === 'schema' ? 12 : 8),\n },\n }),\n [],\n );\n\n const filteredRef = useRef<SearchResult[]>();\n filteredRef.current = filterObjectsSync(model?.objects ?? [], match);\n useEffect(() => {\n void projector.start();\n }, [match]);\n\n const [colorMap] = useState(new Map<string, string>());\n\n if (!model) {\n return null;\n }\n\n if (selected) {\n return <Tree space={space} selected={selected} variant='tidy' onNodeClick={() => setSelected(undefined)} />;\n }\n\n return (\n <SVGRoot context={context}>\n <SVG className={mx(defaultStyles, slots?.root?.className)}>\n <Markers arrowSize={6} />\n {grid && <Grid className={slots?.grid?.className ?? defaultGridStyles(themeMode)} />}\n <Zoom extent={[1 / 2, 4]}>\n <GraphComponent\n model={model}\n projector={projector}\n drag\n arrows\n onSelect={(node) => setSelected(node?.data?.id)}\n labels={{\n text: (node: GraphLayoutNode<ReactiveEchoObject<any>>) => {\n if (filteredRef.current?.length && !filteredRef.current.some((object) => object.id === node.data?.id)) {\n return undefined;\n }\n\n // TODO(burdon): Use schema.\n return node.data?.label ?? node.data?.title ?? node.data?.name ?? node.data?.id.slice(0, 8);\n },\n }}\n attributes={{\n node: (node: GraphLayoutNode<ReactiveEchoObject<any>>) => {\n let className: string | undefined;\n if (node.data) {\n const { object } = node.data;\n if (object) {\n const typename = getTypename(object);\n if (typename) {\n className = colorMap.get(typename);\n if (!className) {\n className = colors[colorMap.size % colors.length];\n colorMap.set(typename, className);\n }\n }\n }\n }\n\n const selected = filteredRef.current?.some((object) => object.id === node.data?.id);\n const blur = !selected && !!filteredRef.current?.length;\n return {\n class: mx(className, blur && 'opacity-70'),\n };\n },\n link: () => ({\n class: '[&>path]:!stroke-neutral-300 dark:[&>path]:!stroke-neutral-700',\n }),\n }}\n />\n </Zoom>\n </SVG>\n </SVGRoot>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAA8F;AAC9F,uBAA2D;AAC3D,iBAAoB;AACpB,mBAA+B;AAC/B,kBAA2F;ACJ3F,mBAAoD;AACpD,mCAAkC;AAGlC,sBAA+C;ACH/C,SAAoB;ACApB,UAAoB;ACApB,UAAoB;AEDpB,IAAAA,gBAAqE;AAErE,IAAAC,eAAiE;AACjE,IAAAC,mBAA8E;AAC9E,IAAAC,oBAMO;AACP,2BAAqD;AACrD,sBAAgC;AAChC,4BAAmB;AAEnB,oBAAO;;ANYA,IAAMC,kBAAN,cAA8BC,4BAAAA;EASnCC,YAA6BC,WAAmC,CAAC,GAAG;AAClE,UAAK;SADsBA,WAAAA;SARZC,SAAmC;MAClDC,OAAO,CAAA;MACPC,OAAO,CAAA;IACT;EAOA;EAEA,IAAaC,QAAkC;AAC7C,WAAO,KAAKH;EACd;EAEA,IAAII,UAAqC;AACvC,WAAO,KAAKC,YAAY,CAAA;EAC1B;EAEAC,KAAKC,OAAcC,UAAmB;AACpC,QAAI,CAAC,KAAKC,eAAe;AAEvB,YAA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7E,OAAMkI,OAAAA,QAAW/C,aAAAA,UAAAA;AACxBiB,mBAAAA,WAAU,MAAA;AACR,WAAO9B,OAAOjI,UAAU,MAAA;AACtB,YAAM2D,QAAOqE,mBAAmBC,KAAAA;AAChC4D,cAAQlI,KAAAA;IACV,GAAG,IAAA;EACL,GAAG;IAACsE;GAAM;AAEV,QAAMgB,cAAUC,gBAAAA,kBAAAA;AAChB,QAAM,EAAE3G,KAAKwE,QAAQ,GAAGC,SAAS,EAAC,QAAK8E,gDAAAA;AAEvC/B,mBAAAA,WAAU,MAAA;AACR,QAAIhD,SAASC,QAAQ;AACnB,YAAMnD,OAAOC,KAAK6D,IAAIZ,OAAOC,MAAAA;AAC7B,YAAM3D,SAASQ,OAAO;AACtB,YAAMb,UAAU;;QAEdqD,OAAO,CAAC9B,MAAWA,EAAE8B,SAAS9B,EAAEjE;QAChCyG;QACAC;QACA3D;QACA0I,aAAahF,QAAQ1D,SAAS,KAAK;QACnC2I,cAAcjF,QAAQ1D,SAAS,KAAK;QACpC4I,YAAYjF,SAAS3D,SAAS,KAAK;QACnC6I,eAAelF,SAAS3D,SAAS,KAAK;QACtCE,OAAOoI;MACT;AAEA,UAAIhI,OAAM;AACR,cAAMwI,WAAWP,UAAU3F,IAAImE,OAAAA;AAC/B+B,mBAAWlD,QAAQ1G,IAAIsH,SAAUlG,OAAMX,OAAAA;MACzC;IACF;EACF,GAAG;IAACW;IAAMoD;IAAOC;GAAO;AAGxB,SACEkD,6BAAAA,QAAA,cAACkC,OAAAA;IAAI7J;IAAUiI,WAAU;IAA4B6B,SAAS,MAAMhC,cAAAA;KAClEH,6BAAAA,QAAA,cAACI,gBAAAA,SAAAA;IAAQrB;KACPiB,6BAAAA,QAAA,cAACK,gBAAAA,KAAAA,IAAAA,CAAAA,CAAAA;AAIT;",
|
|
6
|
+
"names": ["import_react", "import_echo", "import_gem_core", "import_gem_spore", "SpaceGraphModel", "GraphModel", "constructor", "_options", "_graph", "nodes", "links", "graph", "objects", "_objects", "open", "space", "objectId", "_subscription", "query", "db", "object", "CollectionType", "subscribe", "map", "StoredSchema", "effectSchema", "schemaRegistry", "getSchemaById", "id", "type", "schema", "reduce", "objectSchema", "getSchema", "typename", "getType", "log", "info", "slice", "EchoSchema", "idx", "findIndex", "obj", "push", "source", "target", "AST", "getPropertySignatures", "ast", "forEach", "prop", "SchemaValidator", "hasTypeAnnotation", "name", "toString", "ReferenceAnnotationId", "value", "String", "refs", "Array", "isArray", "ref", "triggerUpdate", "fire", "setSelected", "close", "undefined", "HierarchicalEdgeBundling", "s", "data", "options", "svg", "select", "selectAll", "remove", "radius", "padding", "slots", "root", "hierarchy", "flatten", "tree", "cluster", "size", "Math", "PI", "layout", "addLinks", "node", "append", "leaves", "join", "attr", "d", "x", "y", "text", "call", "line", "lineRadial", "curve", "curveBundle", "beta", "angle", "flatMap", "leaf", "outgoing", "style", "path", "i", "o", "each", "Map", "descendants", "parents", "children", "length", "set", "parent", "get", "child", "clone", "RadialTree", "label", "r", "arc", "getLabel", "separation", "a", "b", "depth", "linkRadial", "TidyTree", "width", "height", "margin", "dx", "dy", "nodeSize", "x0", "Infinity", "x1", "y0", "y1", "sx", "min", "max", "oy", "link", "curveBumpX", "mapGraphToTreeData", "model", "maxDepth", "mapNode", "treeNode", "idAccessor", "filter", "find", "selected", "colors", "Graph", "match", "grid", "useMemo", "useState", "themeMode", "useThemeContext", "context", "createSvgContext", "projector", "GraphForceProjector", "forces", "manyBody", "strength", "distance", "radial", "attributes", "filteredRef", "useRef", "current", "filterObjectsSync", "useEffect", "start", "colorMap", "React", "Tree", "variant", "onNodeClick", "SVGRoot", "SVG", "className", "mx", "defaultStyles", "Markers", "arrowSize", "Grid", "defaultGridStyles", "Zoom", "extent", "GraphComponent", "drag", "arrows", "onSelect", "labels", "some", "title", "getTypename", "blur", "class", "defaultTreeLayoutSlots", "renderers", "setTree", "useResizeDetector", "marginLeft", "marginRight", "marginTop", "marginBottom", "renderer", "div", "onClick"]
|
|
7
|
+
}
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,27 +28,29 @@ 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_H5CHI722.Chart,
|
|
32
32
|
EXPLORER_PLUGIN: () => import_chunk_5MTMJYC4.EXPLORER_PLUGIN,
|
|
33
|
-
ExplorerContainer: () =>
|
|
33
|
+
ExplorerContainer: () => import_chunk_H5CHI722.ExplorerContainer,
|
|
34
34
|
ExplorerPlugin: () => ExplorerPlugin,
|
|
35
|
-
Globe: () =>
|
|
36
|
-
Graph: () =>
|
|
37
|
-
SpaceGraphModel: () =>
|
|
38
|
-
Tree: () =>
|
|
39
|
-
defaultTreeLayoutSlots: () =>
|
|
35
|
+
Globe: () => import_chunk_H5CHI722.Globe,
|
|
36
|
+
Graph: () => import_chunk_QASZ24JS.Graph,
|
|
37
|
+
SpaceGraphModel: () => import_chunk_QASZ24JS.SpaceGraphModel,
|
|
38
|
+
Tree: () => import_chunk_QASZ24JS.Tree,
|
|
39
|
+
defaultTreeLayoutSlots: () => import_chunk_QASZ24JS.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_H5CHI722 = require("./chunk-H5CHI722.cjs");
|
|
44
|
+
var import_chunk_QASZ24JS = require("./chunk-QASZ24JS.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");
|
|
48
48
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
49
|
+
var import_plugin_space = require("@dxos/plugin-space");
|
|
50
|
+
var import_types = require("@dxos/plugin-space/types");
|
|
49
51
|
var import_app_framework2 = require("@dxos/app-framework");
|
|
50
52
|
var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-XQV24IAA.cjs"));
|
|
51
|
-
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-
|
|
53
|
+
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-UVMGNAA6.cjs"));
|
|
52
54
|
var translations_default = [
|
|
53
55
|
{
|
|
54
56
|
"en-US": {
|
|
@@ -76,7 +78,6 @@ var ExplorerPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_5
|
|
|
76
78
|
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
77
79
|
id: import_chunk_YUY7P7R2.ViewType.typename,
|
|
78
80
|
metadata: {
|
|
79
|
-
createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_YUY7P7R2.ExplorerAction.Create, props),
|
|
80
81
|
placeholder: [
|
|
81
82
|
"object title placeholder",
|
|
82
83
|
{
|
|
@@ -87,6 +88,14 @@ var ExplorerPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_5
|
|
|
87
88
|
}
|
|
88
89
|
})
|
|
89
90
|
}),
|
|
91
|
+
(0, import_app_framework.defineModule)({
|
|
92
|
+
id: `${import_chunk_5MTMJYC4.meta.id}/module/object-form`,
|
|
93
|
+
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
94
|
+
activate: () => (0, import_app_framework.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types.defineObjectForm)({
|
|
95
|
+
objectSchema: import_chunk_YUY7P7R2.ViewType,
|
|
96
|
+
getIntent: () => (0, import_app_framework.createIntent)(import_chunk_YUY7P7R2.ExplorerAction.Create)
|
|
97
|
+
}))
|
|
98
|
+
}),
|
|
90
99
|
(0, import_app_framework.defineModule)({
|
|
91
100
|
id: `${import_chunk_5MTMJYC4.meta.id}/module/schema`,
|
|
92
101
|
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
@@ -96,12 +105,12 @@ var ExplorerPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_5
|
|
|
96
105
|
}),
|
|
97
106
|
(0, import_app_framework.defineModule)({
|
|
98
107
|
id: `${import_chunk_5MTMJYC4.meta.id}/module/react-surface`,
|
|
99
|
-
activatesOn: import_app_framework.Events.
|
|
108
|
+
activatesOn: import_app_framework.Events.SetupReactSurface,
|
|
100
109
|
activate: ReactSurface
|
|
101
110
|
}),
|
|
102
111
|
(0, import_app_framework.defineModule)({
|
|
103
112
|
id: `${import_chunk_5MTMJYC4.meta.id}/module/intent-resolver`,
|
|
104
|
-
activatesOn: import_app_framework.Events.
|
|
113
|
+
activatesOn: import_app_framework.Events.SetupIntentResolver,
|
|
105
114
|
activate: IntentResolver
|
|
106
115
|
})
|
|
107
116
|
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { EXPLORER_PLUGIN, 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
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA4F;AAC5F,2BAAiD;
|
|
6
|
-
"names": ["import_app_framework", "IntentResolver", "lazy", "ReactSurface", "ViewType", "typename", "EXPLORER_PLUGIN", "ExplorerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "
|
|
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 { EXPLORER_PLUGIN, 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 placeholder: ['object title placeholder', { ns: EXPLORER_PLUGIN }],\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 { EXPLORER_PLUGIN } from './meta';\nimport { ViewType } from './types';\n\nexport default [\n {\n 'en-US': {\n [ViewType.typename]: {\n 'typename label': 'Explorer',\n },\n [EXPLORER_PLUGIN]: {\n 'plugin name': 'Explorer',\n 'object title label': 'Title',\n 'object title placeholder': 'New explorer',\n 'create object label': 'Create explorer',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA4F;AAC5F,2BAAiD;AACjD,0BAAkC;AAClC,mBAAiC;ACHjC,IAAAA,wBAAqB;AAEd,IAAMC,qBAAiBC,4BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,mBAAeD,4BAAK,MAAM,OAAO,8BAAA,CAAA;ACA9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACE,+BAASC,QAAQ,GAAG;QACnB,kBAAkB;MACpB;MACA,CAACC,qCAAAA,GAAkB;QACjB,eAAe;QACf,sBAAsB;QACtB,4BAA4B;QAC5B,uBAAuB;MACzB;IACF;EACF;;AFNK,IAAMC,iBAAiB,UAC5BC,mCAAaC,4BAAM;MACjBC,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOC;IACpBC,UAAU,UAAMC,kCAAYC,kCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOO;IACpBL,UAAU,UACRC,kCAAYC,kCAAaI,UAAU;MACjCV,IAAIP,+BAASC;MACbiB,UAAU;QACRC,aAAa;UAAC;UAA4B;YAAEC,IAAIlB;UAAgB;;QAChEmB,MAAM;MACR;IACF,CAAA;EACJ,CAAA;MACAf,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAac,kCAAaC;IAC1BZ,UAAU,UACRC,kCACEY,sCAAkBC,gBAClBC,+BAAiB;MACfC,cAAc3B;MACd4B,WAAW,UAAMC,mCAAaC,qCAAeC,MAAM;IACrD,CAAA,CAAA;EAEN,CAAA;MACAzB,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAac,kCAAaC;IAC1BZ,UAAU,UAAMC,kCAAYoB,wCAAmBC,QAAQ;MAACjC;KAAS;EACnE,CAAA;MACAM,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOyB;IACpBvB,UAAUZ;EACZ,CAAA;MACAO,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAO0B;IACpBxB,UAAUd;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["import_app_framework", "IntentResolver", "lazy", "ReactSurface", "ViewType", "typename", "EXPLORER_PLUGIN", "ExplorerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "placeholder", "ns", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ExplorerAction", "Create", "ClientCapabilities", "Schema", "SetupReactSurface", "SetupIntentResolver"]
|
|
7
7
|
}
|
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":15383,"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":9943,"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":"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":16522,"imports":[{"path":"react","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":6740,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","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":4364},"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-4H2Y5RER.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-WHMJ2VQ2.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/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-6B67W6YP.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":1338},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":346}},"bytes":2672},"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-ZV2YKOUE.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-ZV2YKOUE.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-WHMJ2VQ2.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-6B67W6YP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1318},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-6B67W6YP.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-4H2Y5RER.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-WHMJ2VQ2.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-4H2Y5RER.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":450879},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-4H2Y5RER.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-ZV2YKOUE.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-WHMJ2VQ2.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":40400},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-WHMJ2VQ2.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":"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":"@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":3534},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2073},"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":4022},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":16155},"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":15493,"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":9943,"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":"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":16679,"imports":[{"path":"react","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-H5CHI722.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-QASZ24JS.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-UVMGNAA6.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-EJPGD4WR.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-EJPGD4WR.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-QASZ24JS.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-UVMGNAA6.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1318},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-UVMGNAA6.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-H5CHI722.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-QASZ24JS.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-H5CHI722.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":450879},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-H5CHI722.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-EJPGD4WR.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-QASZ24JS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":40522},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-QASZ24JS.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":"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":"@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":3529},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2073},"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":4052},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":16180},"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_UVMGNAA6_exports = {};
|
|
30
|
+
__export(react_surface_UVMGNAA6_exports, {
|
|
31
31
|
default: () => react_surface_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(react_surface_UVMGNAA6_exports);
|
|
34
|
+
var import_chunk_H5CHI722 = require("./chunk-H5CHI722.cjs");
|
|
35
|
+
var import_chunk_QASZ24JS = require("./chunk-QASZ24JS.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_H5CHI722.ExplorerContainer, {
|
|
48
48
|
view: data.subject,
|
|
49
49
|
role
|
|
50
50
|
})
|
|
51
51
|
}));
|
|
52
|
-
//# sourceMappingURL=react-surface-
|
|
52
|
+
//# sourceMappingURL=react-surface-UVMGNAA6.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-45DTVHHL.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-MEZP34AY.mjs.map
|