@dxos/plugin-explorer 0.8.1-main.303c73a → 0.8.1-main.81238a8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/lib/browser/{ExplorerContainer-T5CTMBIS.mjs → ExplorerContainer-3FC557MG.mjs} +2 -2
  2. package/dist/lib/browser/{chunk-SU3K2HL7.mjs → chunk-4OFGICWF.mjs} +3 -3
  3. package/dist/lib/browser/{chunk-PMHCTMKT.mjs → chunk-B3EX52V3.mjs} +2 -2
  4. package/dist/lib/browser/{chunk-QOKAZK4V.mjs → chunk-KYB47PZA.mjs} +1 -1
  5. package/dist/lib/browser/chunk-KYB47PZA.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-V23FAKIX.mjs → chunk-X5CI43J6.mjs} +1 -1
  7. package/dist/lib/browser/{chunk-V23FAKIX.mjs.map → chunk-X5CI43J6.mjs.map} +2 -2
  8. package/dist/lib/browser/index.mjs +8 -8
  9. package/dist/lib/browser/index.mjs.map +2 -2
  10. package/dist/lib/browser/{intent-resolver-UJNDAIDZ.mjs → intent-resolver-5UXBTZAM.mjs} +3 -3
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/meta.mjs +1 -1
  13. package/dist/lib/browser/{react-surface-Q7OT6GXC.mjs → react-surface-7HHUAS3J.mjs} +7 -6
  14. package/dist/lib/browser/react-surface-7HHUAS3J.mjs.map +7 -0
  15. package/dist/lib/browser/types/index.mjs +2 -2
  16. package/dist/lib/node/{ExplorerContainer-SO5XAXFS.cjs → ExplorerContainer-2DQFUEG7.cjs} +6 -6
  17. package/dist/lib/node/{chunk-5MTMJYC4.cjs → chunk-6VLMSRD5.cjs} +4 -4
  18. package/dist/lib/node/chunk-6VLMSRD5.cjs.map +7 -0
  19. package/dist/lib/node/{chunk-6GTOKVKH.cjs → chunk-AABHIUUW.cjs} +4 -4
  20. package/dist/lib/node/{chunk-6GTOKVKH.cjs.map → chunk-AABHIUUW.cjs.map} +2 -2
  21. package/dist/lib/node/{chunk-YUY7P7R2.cjs → chunk-C4DXEIBU.cjs} +6 -6
  22. package/dist/lib/node/{chunk-CQYBCGC4.cjs → chunk-ZJL53DLS.cjs} +7 -7
  23. package/dist/lib/node/index.cjs +31 -31
  24. package/dist/lib/node/index.cjs.map +2 -2
  25. package/dist/lib/node/{intent-resolver-XQV24IAA.cjs → intent-resolver-WDMZJTJ5.cjs} +8 -8
  26. package/dist/lib/node/meta.cjs +3 -3
  27. package/dist/lib/node/meta.cjs.map +1 -1
  28. package/dist/lib/node/meta.json +1 -1
  29. package/dist/lib/node/{react-surface-5G52HSJW.cjs → react-surface-UKU6NFBS.cjs} +12 -11
  30. package/dist/lib/node/react-surface-UKU6NFBS.cjs.map +7 -0
  31. package/dist/lib/node/types/index.cjs +4 -4
  32. package/dist/lib/node/types/index.cjs.map +1 -1
  33. package/dist/lib/node-esm/{ExplorerContainer-DTUTEZLK.mjs → ExplorerContainer-RBGUFI5X.mjs} +2 -2
  34. package/dist/lib/node-esm/{chunk-4IST6Y3Z.mjs → chunk-PIOV7IOO.mjs} +3 -3
  35. package/dist/lib/node-esm/{chunk-UHJZUVRI.mjs → chunk-RKQR2GVZ.mjs} +1 -1
  36. package/dist/lib/node-esm/chunk-RKQR2GVZ.mjs.map +7 -0
  37. package/dist/lib/node-esm/{chunk-Q2IQDIKJ.mjs → chunk-TI3P4L2P.mjs} +1 -1
  38. package/dist/lib/node-esm/{chunk-Q2IQDIKJ.mjs.map → chunk-TI3P4L2P.mjs.map} +2 -2
  39. package/dist/lib/node-esm/{chunk-57K7ORAW.mjs → chunk-WJ6AML7W.mjs} +2 -2
  40. package/dist/lib/node-esm/index.mjs +8 -8
  41. package/dist/lib/node-esm/index.mjs.map +2 -2
  42. package/dist/lib/node-esm/{intent-resolver-RZQ3EEOE.mjs → intent-resolver-KBRYGW6I.mjs} +3 -3
  43. package/dist/lib/node-esm/meta.json +1 -1
  44. package/dist/lib/node-esm/meta.mjs +1 -1
  45. package/dist/lib/node-esm/{react-surface-QSQVINGP.mjs → react-surface-UZYRBRXP.mjs} +7 -6
  46. package/dist/lib/node-esm/react-surface-UZYRBRXP.mjs.map +7 -0
  47. package/dist/lib/node-esm/types/index.mjs +2 -2
  48. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  49. package/dist/types/src/components/Graph/Graph.d.ts.map +1 -1
  50. package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
  51. package/dist/types/src/meta.d.ts +2 -9
  52. package/dist/types/src/meta.d.ts.map +1 -1
  53. package/dist/types/src/translations.d.ts +3 -3
  54. package/package.json +26 -25
  55. package/src/ExplorerPlugin.tsx +1 -1
  56. package/src/capabilities/react-surface.tsx +2 -1
  57. package/src/components/Graph/Graph.tsx +1 -0
  58. package/src/components/Tree/Tree.stories.tsx +3 -36
  59. package/src/meta.ts +2 -2
  60. package/src/translations.ts +1 -1
  61. package/dist/lib/browser/chunk-QOKAZK4V.mjs.map +0 -7
  62. package/dist/lib/browser/react-surface-Q7OT6GXC.mjs.map +0 -7
  63. package/dist/lib/node/chunk-5MTMJYC4.cjs.map +0 -7
  64. package/dist/lib/node/react-surface-5G52HSJW.cjs.map +0 -7
  65. package/dist/lib/node-esm/chunk-UHJZUVRI.mjs.map +0 -7
  66. package/dist/lib/node-esm/react-surface-QSQVINGP.mjs.map +0 -7
  67. /package/dist/lib/browser/{ExplorerContainer-T5CTMBIS.mjs.map → ExplorerContainer-3FC557MG.mjs.map} +0 -0
  68. /package/dist/lib/browser/{chunk-SU3K2HL7.mjs.map → chunk-4OFGICWF.mjs.map} +0 -0
  69. /package/dist/lib/browser/{chunk-PMHCTMKT.mjs.map → chunk-B3EX52V3.mjs.map} +0 -0
  70. /package/dist/lib/browser/{intent-resolver-UJNDAIDZ.mjs.map → intent-resolver-5UXBTZAM.mjs.map} +0 -0
  71. /package/dist/lib/node/{ExplorerContainer-SO5XAXFS.cjs.map → ExplorerContainer-2DQFUEG7.cjs.map} +0 -0
  72. /package/dist/lib/node/{chunk-YUY7P7R2.cjs.map → chunk-C4DXEIBU.cjs.map} +0 -0
  73. /package/dist/lib/node/{chunk-CQYBCGC4.cjs.map → chunk-ZJL53DLS.cjs.map} +0 -0
  74. /package/dist/lib/node/{intent-resolver-XQV24IAA.cjs.map → intent-resolver-WDMZJTJ5.cjs.map} +0 -0
  75. /package/dist/lib/node-esm/{ExplorerContainer-DTUTEZLK.mjs.map → ExplorerContainer-RBGUFI5X.mjs.map} +0 -0
  76. /package/dist/lib/node-esm/{chunk-4IST6Y3Z.mjs.map → chunk-PIOV7IOO.mjs.map} +0 -0
  77. /package/dist/lib/node-esm/{chunk-57K7ORAW.mjs.map → chunk-WJ6AML7W.mjs.map} +0 -0
  78. /package/dist/lib/node-esm/{intent-resolver-RZQ3EEOE.mjs.map → intent-resolver-KBRYGW6I.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/Graph/graph-model.ts", "../../../src/components/Graph/Graph.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type UnsubscribeCallback } from '@dxos/async';\nimport {\n getSchema,\n getSchemaDXN,\n AST,\n type EchoSchema,\n ReferenceAnnotationId,\n SchemaValidator,\n StoredSchema,\n} from '@dxos/echo-schema';\nimport { type GraphData, GraphModel } from '@dxos/gem-spore';\nimport { log } from '@dxos/log';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { Filter, type ReactiveEchoObject, type Space, type Subscription } from '@dxos/react-client/echo';\n\nexport type SpaceGraphModelOptions = {\n schema?: boolean;\n};\n\n// TODO(burdon): Convert to common/graph.\n\ntype SchemaGraphNode = {\n id: string;\n type: 'schema';\n data: { typename: string };\n};\n\ntype ObjectGraphNode = {\n id: string;\n type: 'object';\n data: { typename: string; 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 _schema?: EchoSchema[];\n private _schemaSubscription?: UnsubscribeCallback;\n private _objects?: ReactiveEchoObject<any>[];\n private _objectsSubscription?: Subscription;\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 // TODO(burdon): Alternative diagram types:\n // - https://observablehq.com/@d3/radial-tree/2\n // - https://observablehq.com/@d3/disjoint-force-directed-graph/2\n // - https://observablehq.com/@mbostock/tadpoles\n // - https://observablehq.com/@d3/psr-b1919-21\n // - https://vasturiano.github.io/react-force-graph/example/basic (3D)\n\n async open(space: Space, objectId?: string) {\n // TODO(burdon): Factor out graph builder to lib (use common/graph abstraction).\n if (!this._schemaSubscription) {\n // TODO(burdon): Normalize unsubscribe callbacks and merge handlers.\n // TODO(burdon): Trigger initial subscription update.\n // TODO(burdon): Normalize subscription cb for objects, schema, etc.\n\n const schemaaQuery = space.db.schemaRegistry.query({});\n const schemas = await schemaaQuery.run();\n const onSchemaUpdate = ({ results }: { results: EchoSchema[] }) => (this._schema = results);\n this._schemaSubscription = schemaaQuery.subscribe(onSchemaUpdate);\n onSchemaUpdate({ results: schemas });\n\n this._objectsSubscription = space.db\n // TODO(burdon): ERROR: Cannot mix type and or filters.\n .query(Filter.not(Filter.or(Filter.schema(StoredSchema), Filter.schema(CollectionType))))\n .subscribe(\n ({ objects }) => {\n this._objects = objects;\n\n // Merge with current nodes.\n const currentNodes = this._graph.nodes;\n\n this._graph.nodes = [];\n this._graph.links = [];\n\n const addSchema = (typename: string) => {\n const current = currentNodes.find((node) => node.id === typename);\n if (typename) {\n this._graph.nodes.push({\n ...current,\n id: typename,\n type: 'schema',\n data: { typename },\n });\n }\n };\n\n // Runtime schema.\n space.db.graph.schemaRegistry.schemas.forEach((schema) => {\n const typename = getSchemaDXN(schema)?.toTypename();\n if (typename) {\n addSchema(typename);\n }\n });\n\n // Database Schema.\n this._schema?.forEach((schema) => {\n const typename = getSchemaDXN(schema)?.toTypename();\n if (typename) {\n addSchema(typename);\n }\n });\n\n // Database Objects.\n this._objects.forEach((object) => {\n const schema = getSchema(object);\n if (schema) {\n const typename = getSchemaDXN(schema)?.toTypename();\n if (typename) {\n const current = currentNodes.find((node) => node.id === object.id);\n this._graph.nodes.push({ ...current, id: object.id, type: 'object', data: { typename, object } });\n\n // Link to schema.\n const schemaNode = this._graph.nodes.find(\n (node) => node.type === 'schema' && node.data.typename === typename,\n );\n if (schemaNode) {\n this._graph.links.push({\n id: `${object.id}-${schemaNode.id}`,\n source: object.id,\n target: schemaNode.id,\n });\n } else {\n log.info('schema node not found', { typename });\n }\n\n // Link ot refs.\n // TODO(burdon): This isn't working.\n AST.getPropertySignatures(schema.ast).forEach((prop) => {\n if (!SchemaValidator.hasTypeAnnotation(schema, prop.name.toString(), ReferenceAnnotationId)) {\n return;\n }\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 this._graph.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 }\n });\n\n this.triggerUpdate();\n },\n { fire: true },\n );\n }\n\n this.setSelected(objectId);\n return this;\n }\n\n close() {\n this._schemaSubscription?.();\n this._schemaSubscription = undefined;\n this._objectsSubscription?.();\n this._objectsSubscription = undefined;\n\n return this;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { forceLink, forceManyBody } from 'd3';\nimport ForceGraph from 'force-graph';\nimport React, { type FC, useEffect, useRef } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type Space } from '@dxos/client/echo';\nimport { filterObjectsSync, type SearchResult } from '@dxos/plugin-search';\nimport { useAsyncState } from '@dxos/react-ui';\n\nimport { SpaceGraphModel } from './graph-model';\n\nexport type GraphProps = {\n space: Space;\n match?: RegExp;\n};\n\nexport const Graph: FC<GraphProps> = ({ space, match }) => {\n const { ref, width, height } = useResizeDetector({ refreshRate: 200 });\n const rootRef = useRef<HTMLDivElement>(null);\n const forceGraph = useRef<ForceGraph>();\n\n const [model] = useAsyncState(\n async () => (space ? new SpaceGraphModel({ schema: true }).open(space) : undefined),\n [space],\n );\n\n const filteredRef = useRef<SearchResult[]>();\n filteredRef.current = filterObjectsSync(model?.objects ?? [], match);\n\n useEffect(() => {\n if (rootRef.current) {\n // https://github.com/vasturiano/force-graph\n forceGraph.current = new ForceGraph(rootRef.current)\n .nodeRelSize(6)\n .nodeLabel((node: any) => {\n if (node.type === 'schema') {\n return node.data.typename;\n }\n\n return node.id;\n })\n .nodeAutoColorBy((node: any) => (node.type === 'schema' ? 'schema' : node.data.typename))\n .linkColor(() => 'rgba(255,255,255,0.25)');\n }\n\n return () => {\n forceGraph.current?.pauseAnimation().graphData({ nodes: [], links: [] });\n forceGraph.current = undefined;\n };\n }, []);\n\n useEffect(() => {\n if (forceGraph.current && width && height && model) {\n forceGraph.current\n .pauseAnimation()\n .width(width)\n .height(height)\n .onEngineStop(() => {\n handleZoomToFit();\n })\n\n // https://github.com/vasturiano/force-graph?tab=readme-ov-file#force-engine-d3-force-configuration\n // .d3Force('center', forceCenter().strength(0.9))\n .d3Force('link', forceLink().distance(160).strength(0.5))\n .d3Force('charge', forceManyBody().strength(-30))\n // .d3AlphaDecay(0.0228)\n // .d3VelocityDecay(0.4)\n\n .graphData(model.graph)\n .warmupTicks(100)\n .cooldownTime(1000)\n .resumeAnimation();\n }\n }, [model, width, height]);\n\n const handleZoomToFit = () => {\n forceGraph.current?.zoomToFit(400, 40);\n };\n\n return (\n <div ref={ref} className='relative grow' onClick={handleZoomToFit}>\n <div ref={rootRef} className='absolute inset-0' />\n </div>\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;IAAU0C,WAAU;IAAgBC,SAASb;KAChD,6BAAAU,QAAA,cAACC,OAAAA;IAAIzC,KAAKc;IAAS4B,WAAU;;AAGnC;",
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type UnsubscribeCallback } from '@dxos/async';\nimport {\n getSchema,\n getSchemaDXN,\n AST,\n type EchoSchema,\n ReferenceAnnotationId,\n SchemaValidator,\n StoredSchema,\n} from '@dxos/echo-schema';\nimport { type GraphData, GraphModel } from '@dxos/gem-spore';\nimport { log } from '@dxos/log';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { Filter, type ReactiveEchoObject, type Space, type Subscription } from '@dxos/react-client/echo';\n\nexport type SpaceGraphModelOptions = {\n schema?: boolean;\n};\n\n// TODO(burdon): Convert to common/graph.\n\ntype SchemaGraphNode = {\n id: string;\n type: 'schema';\n data: { typename: string };\n};\n\ntype ObjectGraphNode = {\n id: string;\n type: 'object';\n data: { typename: string; 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 _schema?: EchoSchema[];\n private _schemaSubscription?: UnsubscribeCallback;\n private _objects?: ReactiveEchoObject<any>[];\n private _objectsSubscription?: Subscription;\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 // TODO(burdon): Alternative diagram types:\n // - https://observablehq.com/@d3/radial-tree/2\n // - https://observablehq.com/@d3/disjoint-force-directed-graph/2\n // - https://observablehq.com/@mbostock/tadpoles\n // - https://observablehq.com/@d3/psr-b1919-21\n // - https://vasturiano.github.io/react-force-graph/example/basic (3D)\n\n async open(space: Space, objectId?: string) {\n // TODO(burdon): Factor out graph builder to lib (use common/graph abstraction).\n if (!this._schemaSubscription) {\n // TODO(burdon): Normalize unsubscribe callbacks and merge handlers.\n // TODO(burdon): Trigger initial subscription update.\n // TODO(burdon): Normalize subscription cb for objects, schema, etc.\n\n const schemaaQuery = space.db.schemaRegistry.query({});\n const schemas = await schemaaQuery.run();\n const onSchemaUpdate = ({ results }: { results: EchoSchema[] }) => (this._schema = results);\n this._schemaSubscription = schemaaQuery.subscribe(onSchemaUpdate);\n onSchemaUpdate({ results: schemas });\n\n this._objectsSubscription = space.db\n // TODO(burdon): ERROR: Cannot mix type and or filters.\n .query(Filter.not(Filter.or(Filter.schema(StoredSchema), Filter.schema(CollectionType))))\n .subscribe(\n ({ objects }) => {\n this._objects = objects;\n\n // Merge with current nodes.\n const currentNodes = this._graph.nodes;\n\n this._graph.nodes = [];\n this._graph.links = [];\n\n const addSchema = (typename: string) => {\n const current = currentNodes.find((node) => node.id === typename);\n if (typename) {\n this._graph.nodes.push({\n ...current,\n id: typename,\n type: 'schema',\n data: { typename },\n });\n }\n };\n\n // Runtime schema.\n space.db.graph.schemaRegistry.schemas.forEach((schema) => {\n const typename = getSchemaDXN(schema)?.toTypename();\n if (typename) {\n addSchema(typename);\n }\n });\n\n // Database Schema.\n this._schema?.forEach((schema) => {\n const typename = getSchemaDXN(schema)?.toTypename();\n if (typename) {\n addSchema(typename);\n }\n });\n\n // Database Objects.\n this._objects.forEach((object) => {\n const schema = getSchema(object);\n if (schema) {\n const typename = getSchemaDXN(schema)?.toTypename();\n if (typename) {\n const current = currentNodes.find((node) => node.id === object.id);\n this._graph.nodes.push({ ...current, id: object.id, type: 'object', data: { typename, object } });\n\n // Link to schema.\n const schemaNode = this._graph.nodes.find(\n (node) => node.type === 'schema' && node.data.typename === typename,\n );\n if (schemaNode) {\n this._graph.links.push({\n id: `${object.id}-${schemaNode.id}`,\n source: object.id,\n target: schemaNode.id,\n });\n } else {\n log.info('schema node not found', { typename });\n }\n\n // Link ot refs.\n // TODO(burdon): This isn't working.\n AST.getPropertySignatures(schema.ast).forEach((prop) => {\n if (!SchemaValidator.hasTypeAnnotation(schema, prop.name.toString(), ReferenceAnnotationId)) {\n return;\n }\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 this._graph.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 }\n });\n\n this.triggerUpdate();\n },\n { fire: true },\n );\n }\n\n this.setSelected(objectId);\n return this;\n }\n\n close() {\n this._schemaSubscription?.();\n this._schemaSubscription = undefined;\n this._objectsSubscription?.();\n this._objectsSubscription = undefined;\n\n return this;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { forceLink, forceManyBody } from 'd3';\nimport ForceGraph from 'force-graph';\nimport React, { type FC, useEffect, useRef } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type Space } from '@dxos/client/echo';\nimport { filterObjectsSync, type SearchResult } from '@dxos/plugin-search';\nimport { useAsyncState } from '@dxos/react-ui';\n\nimport { SpaceGraphModel } from './graph-model';\n\nexport type GraphProps = {\n space: Space;\n match?: RegExp;\n};\n\nexport const Graph: FC<GraphProps> = ({ space, match }) => {\n const { ref, width, height } = useResizeDetector({ refreshRate: 200 });\n const rootRef = useRef<HTMLDivElement>(null);\n const forceGraph = useRef<ForceGraph>();\n\n const [model] = useAsyncState(\n async () => (space ? new SpaceGraphModel({ schema: true }).open(space) : undefined),\n [space],\n );\n\n const filteredRef = useRef<SearchResult[]>();\n filteredRef.current = filterObjectsSync(model?.objects ?? [], match);\n\n useEffect(() => {\n if (rootRef.current) {\n // https://github.com/vasturiano/force-graph\n // https://github.com/vasturiano/3d-force-graph\n forceGraph.current = new ForceGraph(rootRef.current)\n .nodeRelSize(6)\n .nodeLabel((node: any) => {\n if (node.type === 'schema') {\n return node.data.typename;\n }\n\n return node.id;\n })\n .nodeAutoColorBy((node: any) => (node.type === 'schema' ? 'schema' : node.data.typename))\n .linkColor(() => 'rgba(255,255,255,0.25)');\n }\n\n return () => {\n forceGraph.current?.pauseAnimation().graphData({ nodes: [], links: [] });\n forceGraph.current = undefined;\n };\n }, []);\n\n useEffect(() => {\n if (forceGraph.current && width && height && model) {\n forceGraph.current\n .pauseAnimation()\n .width(width)\n .height(height)\n .onEngineStop(() => {\n handleZoomToFit();\n })\n\n // https://github.com/vasturiano/force-graph?tab=readme-ov-file#force-engine-d3-force-configuration\n // .d3Force('center', forceCenter().strength(0.9))\n .d3Force('link', forceLink().distance(160).strength(0.5))\n .d3Force('charge', forceManyBody().strength(-30))\n // .d3AlphaDecay(0.0228)\n // .d3VelocityDecay(0.4)\n\n .graphData(model.graph)\n .warmupTicks(100)\n .cooldownTime(1000)\n .resumeAnimation();\n }\n }, [model, width, height]);\n\n const handleZoomToFit = () => {\n forceGraph.current?.zoomToFit(400, 40);\n };\n\n return (\n <div ref={ref} className='relative grow' onClick={handleZoomToFit}>\n <div ref={rootRef} className='absolute inset-0' />\n </div>\n );\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,yBAQO;AACP,uBAA2C;AAC3C,iBAAoB;AACpB,mBAA+B;AAC/B,kBAA+E;ACb/E,gBAAyC;AACzC,yBAAuB;AACvB,mBAAkD;AAClD,mCAAkC;AAGlC,2BAAqD;AACrD,sBAA8B;;AD+BvB,IAAMA,kBAAN,cAA8BC,4BAAAA;EAWnCC,YAA6BC,WAAmC,CAAC,GAAG;AAClE,UAAK;SADsBA,WAAAA;SAVZC,SAAmC;MAClDC,OAAO,CAAA;MACPC,OAAO,CAAA;IACT;EASA;EAEA,IAAaC,QAAkC;AAC7C,WAAO,KAAKH;EACd;EAEA,IAAII,UAAqC;AACvC,WAAO,KAAKC,YAAY,CAAA;EAC1B;;;;;;;EASA,MAAMC,KAAKC,OA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,iBAAW/C,SAAS0D,eAAAA,EAAiBC,UAAU;QAAExF,OAAO,CAAA;QAAIC,OAAO,CAAA;MAAG,CAAA;AACtE2E,iBAAW/C,UAAUsC;IACvB;EACF,GAAG,CAAA,CAAE;AAELc,8BAAU,MAAA;AACR,QAAIL,WAAW/C,WAAWyC,SAASC,UAAUM,OAAO;AAClDD,iBAAW/C,QACR0D,eAAc,EACdjB,MAAMA,KAAAA,EACNC,OAAOA,MAAAA,EACPkB,aAAa,MAAA;AACZC,wBAAAA;MACF,CAAA,EAICC,QAAQ,YAAQC,qBAAAA,EAAYC,SAAS,GAAA,EAAKC,SAAS,GAAA,CAAA,EACnDH,QAAQ,cAAUI,yBAAAA,EAAgBD,SAAS,GAAC,CAAA,EAI5CN,UAAUX,MAAM3E,KAAK,EACrB8F,YAAY,GAAA,EACZC,aAAa,GAAA,EACbC,gBAAe;IACpB;EACF,GAAG;IAACrB;IAAOP;IAAOC;GAAO;AAEzB,QAAMmB,kBAAkB,MAAA;AACtBd,eAAW/C,SAASsE,UAAU,KAAK,EAAA;EACrC;AAEA,SACE,6BAAAC,QAAA,cAACC,OAAAA;IAAIzC;IAAU0C,WAAU;IAAgBC,SAASb;KAChD,6BAAAU,QAAA,cAACC,OAAAA;IAAIzC,KAAKc;IAAS4B,WAAU;;AAGnC;",
6
6
  "names": ["SpaceGraphModel", "GraphModel", "constructor", "_options", "_graph", "nodes", "links", "graph", "objects", "_objects", "open", "space", "objectId", "_schemaSubscription", "schemaaQuery", "db", "schemaRegistry", "query", "schemas", "run", "onSchemaUpdate", "results", "_schema", "subscribe", "_objectsSubscription", "Filter", "not", "or", "schema", "StoredSchema", "CollectionType", "currentNodes", "addSchema", "typename", "current", "find", "node", "id", "push", "type", "data", "forEach", "getSchemaDXN", "toTypename", "object", "getSchema", "schemaNode", "source", "target", "log", "info", "AST", "getPropertySignatures", "ast", "prop", "SchemaValidator", "hasTypeAnnotation", "name", "toString", "ReferenceAnnotationId", "value", "String", "refs", "Array", "isArray", "ref", "findIndex", "obj", "triggerUpdate", "fire", "setSelected", "close", "undefined", "Graph", "match", "width", "height", "useResizeDetector", "refreshRate", "rootRef", "useRef", "forceGraph", "model", "useAsyncState", "filteredRef", "filterObjectsSync", "useEffect", "ForceGraph", "nodeRelSize", "nodeLabel", "nodeAutoColorBy", "linkColor", "pauseAnimation", "graphData", "onEngineStop", "handleZoomToFit", "d3Force", "forceLink", "distance", "strength", "forceManyBody", "warmupTicks", "cooldownTime", "resumeAnimation", "zoomToFit", "React", "div", "className", "onClick"]
7
7
  }
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_YUY7P7R2_exports = {};
20
- __export(chunk_YUY7P7R2_exports, {
19
+ var chunk_C4DXEIBU_exports = {};
20
+ __export(chunk_C4DXEIBU_exports, {
21
21
  ExplorerAction: () => ExplorerAction,
22
22
  ViewType: () => ViewType
23
23
  });
24
- module.exports = __toCommonJS(chunk_YUY7P7R2_exports);
25
- var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
24
+ module.exports = __toCommonJS(chunk_C4DXEIBU_exports);
25
+ var import_chunk_6VLMSRD5 = require("./chunk-6VLMSRD5.cjs");
26
26
  var import_echo_schema = require("@dxos/echo-schema");
27
27
  var import_echo_schema2 = require("@dxos/echo-schema");
28
28
  var ViewType = class extends (0, import_echo_schema.TypedObject)({
@@ -35,7 +35,7 @@ var ViewType = class extends (0, import_echo_schema.TypedObject)({
35
35
  };
36
36
  var ExplorerAction;
37
37
  (function(ExplorerAction2) {
38
- const EXPLORER_ACTION = `${import_chunk_5MTMJYC4.EXPLORER_PLUGIN}/action`;
38
+ const EXPLORER_ACTION = `${import_chunk_6VLMSRD5.EXPLORER_PLUGIN}/action`;
39
39
  class Create extends import_echo_schema2.S.TaggedClass()(`${EXPLORER_ACTION}/create`, {
40
40
  input: import_echo_schema2.S.Struct({
41
41
  name: import_echo_schema2.S.optional(import_echo_schema2.S.String)
@@ -52,4 +52,4 @@ var ExplorerAction;
52
52
  ExplorerAction,
53
53
  ViewType
54
54
  });
55
- //# sourceMappingURL=chunk-YUY7P7R2.cjs.map
55
+ //# sourceMappingURL=chunk-C4DXEIBU.cjs.map
@@ -26,16 +26,16 @@ 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 chunk_CQYBCGC4_exports = {};
30
- __export(chunk_CQYBCGC4_exports, {
29
+ var chunk_ZJL53DLS_exports = {};
30
+ __export(chunk_ZJL53DLS_exports, {
31
31
  Chart: () => Chart,
32
32
  ExplorerContainer: () => ExplorerContainer,
33
33
  Globe: () => Globe,
34
34
  Tree: () => Tree,
35
35
  defaultTreeLayoutSlots: () => defaultTreeLayoutSlots
36
36
  });
37
- module.exports = __toCommonJS(chunk_CQYBCGC4_exports);
38
- var import_chunk_6GTOKVKH = require("./chunk-6GTOKVKH.cjs");
37
+ module.exports = __toCommonJS(chunk_ZJL53DLS_exports);
38
+ var import_chunk_AABHIUUW = require("./chunk-AABHIUUW.cjs");
39
39
  var Plot = __toESM(require("@observablehq/plot"));
40
40
  var import_react = __toESM(require("react"));
41
41
  var import_react_resize_detector = require("react-resize-detector");
@@ -11019,7 +11019,7 @@ var renderers = /* @__PURE__ */ new Map([
11019
11019
  ]
11020
11020
  ]);
11021
11021
  var Tree = ({ space, selected, variant = "tidy", onNodeClick }) => {
11022
- const [model] = (0, import_react_ui.useAsyncState)(async () => space ? new import_chunk_6GTOKVKH.SpaceGraphModel().open(space, selected) : void 0, [
11022
+ const [model] = (0, import_react_ui.useAsyncState)(async () => space ? new import_chunk_AABHIUUW.SpaceGraphModel().open(space, selected) : void 0, [
11023
11023
  space,
11024
11024
  selected
11025
11025
  ]);
@@ -11068,7 +11068,7 @@ var Tree = ({ space, selected, variant = "tidy", onNodeClick }) => {
11068
11068
  context
11069
11069
  }, /* @__PURE__ */ import_react3.default.createElement(import_gem_core.SVG, null)));
11070
11070
  };
11071
- var ExplorerContainer = (0, import_react4.lazy)(() => import("./ExplorerContainer-SO5XAXFS.cjs"));
11071
+ var ExplorerContainer = (0, import_react4.lazy)(() => import("./ExplorerContainer-2DQFUEG7.cjs"));
11072
11072
  // Annotate the CommonJS export names for ESM import in node:
11073
11073
  0 && (module.exports = {
11074
11074
  Chart,
@@ -11077,4 +11077,4 @@ var ExplorerContainer = (0, import_react4.lazy)(() => import("./ExplorerContaine
11077
11077
  Tree,
11078
11078
  defaultTreeLayoutSlots
11079
11079
  });
11080
- //# sourceMappingURL=chunk-CQYBCGC4.cjs.map
11080
+ //# sourceMappingURL=chunk-ZJL53DLS.cjs.map
@@ -28,60 +28,60 @@ 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: () => import_chunk_CQYBCGC4.Chart,
32
- EXPLORER_PLUGIN: () => import_chunk_5MTMJYC4.EXPLORER_PLUGIN,
33
- ExplorerContainer: () => import_chunk_CQYBCGC4.ExplorerContainer,
31
+ Chart: () => import_chunk_ZJL53DLS.Chart,
32
+ EXPLORER_PLUGIN: () => import_chunk_6VLMSRD5.EXPLORER_PLUGIN,
33
+ ExplorerContainer: () => import_chunk_ZJL53DLS.ExplorerContainer,
34
34
  ExplorerPlugin: () => ExplorerPlugin,
35
- Globe: () => import_chunk_CQYBCGC4.Globe,
36
- Graph: () => import_chunk_6GTOKVKH.Graph,
37
- SpaceGraphModel: () => import_chunk_6GTOKVKH.SpaceGraphModel,
38
- Tree: () => import_chunk_CQYBCGC4.Tree,
39
- defaultTreeLayoutSlots: () => import_chunk_CQYBCGC4.defaultTreeLayoutSlots,
40
- meta: () => import_chunk_5MTMJYC4.meta
35
+ Globe: () => import_chunk_ZJL53DLS.Globe,
36
+ Graph: () => import_chunk_AABHIUUW.Graph,
37
+ SpaceGraphModel: () => import_chunk_AABHIUUW.SpaceGraphModel,
38
+ Tree: () => import_chunk_ZJL53DLS.Tree,
39
+ defaultTreeLayoutSlots: () => import_chunk_ZJL53DLS.defaultTreeLayoutSlots,
40
+ meta: () => import_chunk_6VLMSRD5.meta
41
41
  });
42
42
  module.exports = __toCommonJS(node_exports);
43
- var import_chunk_CQYBCGC4 = require("./chunk-CQYBCGC4.cjs");
44
- var import_chunk_6GTOKVKH = require("./chunk-6GTOKVKH.cjs");
45
- var import_chunk_YUY7P7R2 = require("./chunk-YUY7P7R2.cjs");
46
- var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
43
+ var import_chunk_ZJL53DLS = require("./chunk-ZJL53DLS.cjs");
44
+ var import_chunk_AABHIUUW = require("./chunk-AABHIUUW.cjs");
45
+ var import_chunk_C4DXEIBU = require("./chunk-C4DXEIBU.cjs");
46
+ var import_chunk_6VLMSRD5 = require("./chunk-6VLMSRD5.cjs");
47
47
  var import_app_framework = require("@dxos/app-framework");
48
48
  var import_plugin_client = require("@dxos/plugin-client");
49
49
  var import_plugin_space = require("@dxos/plugin-space");
50
50
  var import_types = require("@dxos/plugin-space/types");
51
51
  var import_app_framework2 = require("@dxos/app-framework");
52
- var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-XQV24IAA.cjs"));
53
- var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-5G52HSJW.cjs"));
52
+ var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-WDMZJTJ5.cjs"));
53
+ var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-UKU6NFBS.cjs"));
54
54
  var translations_default = [
55
55
  {
56
56
  "en-US": {
57
- [import_chunk_YUY7P7R2.ViewType.typename]: {
57
+ [import_chunk_C4DXEIBU.ViewType.typename]: {
58
58
  "typename label": "Explorer"
59
59
  },
60
- [import_chunk_5MTMJYC4.EXPLORER_PLUGIN]: {
60
+ [import_chunk_6VLMSRD5.EXPLORER_PLUGIN]: {
61
61
  "plugin name": "Explorer",
62
62
  "object title label": "Title",
63
- "object title placeholder": "New explorer",
63
+ "object placeholder": "New explorer",
64
64
  "create object label": "Create explorer"
65
65
  }
66
66
  }
67
67
  }
68
68
  ];
69
- var ExplorerPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_5MTMJYC4.meta, [
69
+ var ExplorerPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_6VLMSRD5.meta, [
70
70
  (0, import_app_framework.defineModule)({
71
- id: `${import_chunk_5MTMJYC4.meta.id}/module/translations`,
71
+ id: `${import_chunk_6VLMSRD5.meta.id}/module/translations`,
72
72
  activatesOn: import_app_framework.Events.SetupTranslations,
73
73
  activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
74
74
  }),
75
75
  (0, import_app_framework.defineModule)({
76
- id: `${import_chunk_5MTMJYC4.meta.id}/module/metadata`,
76
+ id: `${import_chunk_6VLMSRD5.meta.id}/module/metadata`,
77
77
  activatesOn: import_app_framework.Events.SetupMetadata,
78
78
  activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
79
- id: import_chunk_YUY7P7R2.ViewType.typename,
79
+ id: import_chunk_C4DXEIBU.ViewType.typename,
80
80
  metadata: {
81
81
  placeholder: [
82
- "object title placeholder",
82
+ "object placeholder",
83
83
  {
84
- ns: import_chunk_5MTMJYC4.EXPLORER_PLUGIN
84
+ ns: import_chunk_6VLMSRD5.EXPLORER_PLUGIN
85
85
  }
86
86
  ],
87
87
  icon: "ph--graph--regular"
@@ -89,27 +89,27 @@ var ExplorerPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_5
89
89
  })
90
90
  }),
91
91
  (0, import_app_framework.defineModule)({
92
- id: `${import_chunk_5MTMJYC4.meta.id}/module/object-form`,
92
+ id: `${import_chunk_6VLMSRD5.meta.id}/module/object-form`,
93
93
  activatesOn: import_plugin_client.ClientEvents.SetupSchema,
94
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)
95
+ objectSchema: import_chunk_C4DXEIBU.ViewType,
96
+ getIntent: () => (0, import_app_framework.createIntent)(import_chunk_C4DXEIBU.ExplorerAction.Create)
97
97
  }))
98
98
  }),
99
99
  (0, import_app_framework.defineModule)({
100
- id: `${import_chunk_5MTMJYC4.meta.id}/module/schema`,
100
+ id: `${import_chunk_6VLMSRD5.meta.id}/module/schema`,
101
101
  activatesOn: import_plugin_client.ClientEvents.SetupSchema,
102
102
  activate: () => (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
103
- import_chunk_YUY7P7R2.ViewType
103
+ import_chunk_C4DXEIBU.ViewType
104
104
  ])
105
105
  }),
106
106
  (0, import_app_framework.defineModule)({
107
- id: `${import_chunk_5MTMJYC4.meta.id}/module/react-surface`,
107
+ id: `${import_chunk_6VLMSRD5.meta.id}/module/react-surface`,
108
108
  activatesOn: import_app_framework.Events.SetupReactSurface,
109
109
  activate: ReactSurface
110
110
  }),
111
111
  (0, import_app_framework.defineModule)({
112
- id: `${import_chunk_5MTMJYC4.meta.id}/module/intent-resolver`,
112
+ id: `${import_chunk_6VLMSRD5.meta.id}/module/intent-resolver`,
113
113
  activatesOn: import_app_framework.Events.SetupIntentResolver,
114
114
  activate: IntentResolver
115
115
  })
@@ -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';\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;",
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 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 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,sBAAsB;QACtB,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;UAAsB;YAAEC,IAAIlB;UAAgB;;QAC1DmB,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
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
  }
@@ -16,24 +16,24 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var intent_resolver_XQV24IAA_exports = {};
20
- __export(intent_resolver_XQV24IAA_exports, {
19
+ var intent_resolver_WDMZJTJ5_exports = {};
20
+ __export(intent_resolver_WDMZJTJ5_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_XQV24IAA_exports);
24
- var import_chunk_YUY7P7R2 = require("./chunk-YUY7P7R2.cjs");
25
- var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
23
+ module.exports = __toCommonJS(intent_resolver_WDMZJTJ5_exports);
24
+ var import_chunk_C4DXEIBU = require("./chunk-C4DXEIBU.cjs");
25
+ var import_chunk_6VLMSRD5 = require("./chunk-6VLMSRD5.cjs");
26
26
  var import_app_framework = require("@dxos/app-framework");
27
27
  var import_live_object = require("@dxos/live-object");
28
28
  var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)({
29
- intent: import_chunk_YUY7P7R2.ExplorerAction.Create,
29
+ intent: import_chunk_C4DXEIBU.ExplorerAction.Create,
30
30
  resolve: ({ name }) => ({
31
31
  data: {
32
- object: (0, import_live_object.create)(import_chunk_YUY7P7R2.ViewType, {
32
+ object: (0, import_live_object.create)(import_chunk_C4DXEIBU.ViewType, {
33
33
  name,
34
34
  type: ""
35
35
  })
36
36
  }
37
37
  })
38
38
  }));
39
- //# sourceMappingURL=intent-resolver-XQV24IAA.cjs.map
39
+ //# sourceMappingURL=intent-resolver-WDMZJTJ5.cjs.map
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var meta_exports = {};
20
20
  __export(meta_exports, {
21
- EXPLORER_PLUGIN: () => import_chunk_5MTMJYC4.EXPLORER_PLUGIN,
22
- meta: () => import_chunk_5MTMJYC4.meta
21
+ EXPLORER_PLUGIN: () => import_chunk_6VLMSRD5.EXPLORER_PLUGIN,
22
+ meta: () => import_chunk_6VLMSRD5.meta
23
23
  });
24
24
  module.exports = __toCommonJS(meta_exports);
25
- var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
25
+ var import_chunk_6VLMSRD5 = require("./chunk-6VLMSRD5.cjs");
26
26
  // Annotate the CommonJS export names for ESM import in node:
27
27
  0 && (module.exports = {
28
28
  EXPLORER_PLUGIN,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["meta.cjs"],
4
- "sourcesContent": ["import {\n EXPLORER_PLUGIN,\n meta\n} from \"./chunk-5MTMJYC4.cjs\";\nexport {\n EXPLORER_PLUGIN,\n meta\n};\n//# sourceMappingURL=meta.cjs.map\n"],
4
+ "sourcesContent": ["import {\n EXPLORER_PLUGIN,\n meta\n} from \"./chunk-6VLMSRD5.cjs\";\nexport {\n EXPLORER_PLUGIN,\n meta\n};\n//# sourceMappingURL=meta.cjs.map\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;",
6
6
  "names": []
7
7
  }
@@ -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":22182,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":9779,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytes":630,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17760,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8819,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9322,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1156,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytes":3867,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10140,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytes":525,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":2815,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytes":1163,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytes":1436,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytes":1996,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytes":2278,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytes":602,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2247,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2772,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytes":1900,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":8062,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytes":798,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"},{"path":"packages/plugins/experimental/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5036},"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-5G52HSJW.cjs","kind":"dynamic-import"}],"exports":["Chart","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","Globe","Graph","SpaceGraphModel","Tree","defaultTreeLayoutSlots","meta"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/index.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1674},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":346}},"bytes":3008},"packages/plugins/experimental/plugin-explorer/dist/lib/node/meta.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/node/meta.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/meta.ts","inputs":{},"bytes":138},"packages/plugins/experimental/plugin-explorer/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-explorer/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/types/index.ts","inputs":{},"bytes":178},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-SO5XAXFS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-SO5XAXFS.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":610}},"bytes":852},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1089},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-XQV24IAA.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/experimental/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":381}},"bytes":670},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-5G52HSJW.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1318},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-5G52HSJW.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/experimental/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":463}},"bytes":847},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":475536},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-CQYBCGC4.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs","kind":"import-statement"},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-SO5XAXFS.cjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2078},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2134},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1313},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1542},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":200376},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15440},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6GTOKVKH.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":4894},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":2042},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":7186},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1705},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-YUY7P7R2.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytesInOutput":216},"packages/plugins/experimental/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/types/types.ts":{"bytesInOutput":431}},"bytes":930},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":925},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-5MTMJYC4.cjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytesInOutput":448}},"bytes":592}}}
1
+ {"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytes":1465,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":4935,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7523,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytes":527,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytes":22182,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytes":9931,"imports":[{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytes":630,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts","kind":"import-statement","original":"./graph-model"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17760,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8819,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9322,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1156,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytes":3867,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":10140,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"../Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytes":525,"imports":[{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":2815,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytes":1163,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/experimental/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/types/schema.ts":{"bytes":1436,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytes":1984,"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":2970,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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":1886,"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":8048,"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":5024},"packages/plugins/experimental/plugin-explorer/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-ZJL53DLS.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-AABHIUUW.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-C4DXEIBU.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6VLMSRD5.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-WDMZJTJ5.cjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-UKU6NFBS.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":1668},"packages/plugins/experimental/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-explorer/src/translations.ts":{"bytesInOutput":340}},"bytes":2996},"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-6VLMSRD5.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-C4DXEIBU.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6VLMSRD5.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-2DQFUEG7.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-2DQFUEG7.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-AABHIUUW.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-WDMZJTJ5.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1089},"packages/plugins/experimental/plugin-explorer/dist/lib/node/intent-resolver-WDMZJTJ5.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-C4DXEIBU.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6VLMSRD5.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-UKU6NFBS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1433},"packages/plugins/experimental/plugin-explorer/dist/lib/node/react-surface-UKU6NFBS.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-ZJL53DLS.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-AABHIUUW.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-C4DXEIBU.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6VLMSRD5.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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":517}},"bytes":901},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-ZJL53DLS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":475536},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-ZJL53DLS.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-AABHIUUW.cjs","kind":"import-statement"},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/gem-core","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/ExplorerContainer-2DQFUEG7.cjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"packages/plugins/experimental/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/experimental/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"packages/plugins/experimental/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/experimental/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2078},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2134},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1313},"packages/plugins/experimental/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1542},"packages/plugins/experimental/plugin-explorer/src/components/Tree/types.ts":{"bytesInOutput":699},"packages/plugins/experimental/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/experimental/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":200376},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-AABHIUUW.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15495},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-AABHIUUW.cjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/gem-spore","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["Graph","SpaceGraphModel"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/components/Graph/graph-model.ts":{"bytesInOutput":4894},"packages/plugins/experimental/plugin-explorer/src/components/Graph/Graph.tsx":{"bytesInOutput":2042},"packages/plugins/experimental/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":7186},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-C4DXEIBU.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1705},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-C4DXEIBU.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6VLMSRD5.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-6VLMSRD5.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":917},"packages/plugins/experimental/plugin-explorer/dist/lib/node/chunk-6VLMSRD5.cjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/experimental/plugin-explorer/src/meta.ts":{"bytesInOutput":448}},"bytes":592}}}
@@ -26,27 +26,28 @@ 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 react_surface_5G52HSJW_exports = {};
30
- __export(react_surface_5G52HSJW_exports, {
29
+ var react_surface_UKU6NFBS_exports = {};
30
+ __export(react_surface_UKU6NFBS_exports, {
31
31
  default: () => react_surface_default
32
32
  });
33
- module.exports = __toCommonJS(react_surface_5G52HSJW_exports);
34
- var import_chunk_CQYBCGC4 = require("./chunk-CQYBCGC4.cjs");
35
- var import_chunk_6GTOKVKH = require("./chunk-6GTOKVKH.cjs");
36
- var import_chunk_YUY7P7R2 = require("./chunk-YUY7P7R2.cjs");
37
- var import_chunk_5MTMJYC4 = require("./chunk-5MTMJYC4.cjs");
33
+ module.exports = __toCommonJS(react_surface_UKU6NFBS_exports);
34
+ var import_chunk_ZJL53DLS = require("./chunk-ZJL53DLS.cjs");
35
+ var import_chunk_AABHIUUW = require("./chunk-AABHIUUW.cjs");
36
+ var import_chunk_C4DXEIBU = require("./chunk-C4DXEIBU.cjs");
37
+ var import_chunk_6VLMSRD5 = require("./chunk-6VLMSRD5.cjs");
38
38
  var import_react = __toESM(require("react"));
39
39
  var import_app_framework = require("@dxos/app-framework");
40
+ var import_echo_schema = require("@dxos/echo-schema");
40
41
  var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, (0, import_app_framework.createSurface)({
41
- id: `${import_chunk_5MTMJYC4.EXPLORER_PLUGIN}/article`,
42
+ id: `${import_chunk_6VLMSRD5.EXPLORER_PLUGIN}/article`,
42
43
  role: [
43
44
  "article",
44
45
  "section"
45
46
  ],
46
- filter: (data) => data.subject instanceof import_chunk_YUY7P7R2.ViewType,
47
- component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_CQYBCGC4.ExplorerContainer, {
47
+ filter: (data) => (0, import_echo_schema.isInstanceOf)(import_chunk_C4DXEIBU.ViewType, data.subject),
48
+ component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_ZJL53DLS.ExplorerContainer, {
48
49
  view: data.subject,
49
50
  role
50
51
  })
51
52
  }));
52
- //# sourceMappingURL=react-surface-5G52HSJW.cjs.map
53
+ //# sourceMappingURL=react-surface-UKU6NFBS.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\n\nimport { ExplorerContainer } from '../components';\nimport { EXPLORER_PLUGIN } from '../meta';\nimport { ViewType } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: `${EXPLORER_PLUGIN}/article`,\n role: ['article', 'section'],\n filter: (data): data is { subject: ViewType } => isInstanceOf(ViewType, data.subject),\n component: ({ data, role }) => <ExplorerContainer view={data.subject} role={role} />,\n }),\n );\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAyD;AACzD,yBAA6B;AAM7B,IAAA,wBAAe,UACbA,kCACEC,kCAAaC,kBACbC,oCAAc;EACZC,IAAI,GAAGC,qCAAAA;EACPC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,aAAwCC,iCAAaC,gCAAUF,KAAKG,OAAO;EACpFC,WAAW,CAAC,EAAEJ,MAAMF,KAAI,MAAO,6BAAAO,QAAA,cAACC,yCAAAA;IAAkBC,MAAMP,KAAKG;IAASL;;AACxE,CAAA,CAAA;",
6
+ "names": ["contributes", "Capabilities", "ReactSurface", "createSurface", "id", "EXPLORER_PLUGIN", "role", "filter", "data", "isInstanceOf", "ViewType", "subject", "component", "React", "ExplorerContainer", "view"]
7
+ }