@dxos/plugin-explorer 0.8.3 → 0.8.4-main.1c7ec43d41

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 (201) hide show
  1. package/dist/lib/browser/chunk-HPIS2WXY.mjs +24 -0
  2. package/dist/lib/browser/chunk-HPIS2WXY.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-JRKQNHS6.mjs → components/index.mjs} +357 -412
  6. package/dist/lib/{node-esm/chunk-IUFYOE44.mjs.map → browser/components/index.mjs.map} +4 -4
  7. package/dist/lib/browser/hooks/index.mjs +40 -0
  8. package/dist/lib/browser/hooks/index.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +6 -104
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/meta.mjs +2 -3
  13. package/dist/lib/browser/types/index.mjs +68 -6
  14. package/dist/lib/browser/types/index.mjs.map +4 -4
  15. package/dist/lib/node-esm/{chunk-3CMBLK6W.mjs → chunk-6EUBRHHX.mjs} +9 -6
  16. package/dist/lib/node-esm/chunk-6EUBRHHX.mjs.map +7 -0
  17. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  18. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  19. package/dist/lib/node-esm/{chunk-IUFYOE44.mjs → components/index.mjs} +356 -412
  20. package/dist/lib/{browser/chunk-JRKQNHS6.mjs.map → node-esm/components/index.mjs.map} +4 -4
  21. package/dist/lib/node-esm/hooks/index.mjs +41 -0
  22. package/dist/lib/node-esm/hooks/index.mjs.map +7 -0
  23. package/dist/lib/node-esm/index.mjs +6 -104
  24. package/dist/lib/node-esm/index.mjs.map +4 -4
  25. package/dist/lib/node-esm/meta.json +1 -1
  26. package/dist/lib/node-esm/meta.mjs +2 -3
  27. package/dist/lib/node-esm/types/index.mjs +68 -6
  28. package/dist/lib/node-esm/types/index.mjs.map +4 -4
  29. package/dist/types/data/cities.d.ts +4 -4
  30. package/dist/types/data/cities.d.ts.map +1 -1
  31. package/dist/types/data/countries-110m.d.ts +19 -22
  32. package/dist/types/data/countries-110m.d.ts.map +1 -1
  33. package/dist/types/src/ExplorerPlugin.d.ts +3 -1
  34. package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
  35. package/dist/types/src/ExplorerPlugin.test.d.ts +2 -0
  36. package/dist/types/src/ExplorerPlugin.test.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  38. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  39. package/dist/types/src/capabilities/index.d.ts +8 -2
  40. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  41. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  42. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  43. package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
  44. package/dist/types/src/components/Chart/Chart.stories.d.ts +12 -5
  45. package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
  46. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  47. package/dist/types/src/components/Globe/Globe.stories.d.ts +12 -5
  48. package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
  49. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts +13 -0
  50. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts.map +1 -0
  51. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts +17 -0
  52. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts.map +1 -0
  53. package/dist/types/src/components/Graph/ForceGraph.d.ts +12 -5
  54. package/dist/types/src/components/Graph/ForceGraph.d.ts.map +1 -1
  55. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts +15 -4
  56. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
  57. package/dist/types/src/components/Graph/{adapter.d.ts → graph-adapter.d.ts} +2 -2
  58. package/dist/types/src/components/Graph/graph-adapter.d.ts.map +1 -0
  59. package/dist/types/src/components/Graph/index.d.ts +1 -1
  60. package/dist/types/src/components/Graph/index.d.ts.map +1 -1
  61. package/dist/types/src/components/Graph/testing.d.ts +1 -1
  62. package/dist/types/src/components/Graph/testing.d.ts.map +1 -1
  63. package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
  64. package/dist/types/src/components/Tree/Tree.stories.d.ts +16 -15
  65. package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts.map +1 -1
  67. package/dist/types/src/components/Tree/layout/RadialTree.d.ts.map +1 -1
  68. package/dist/types/src/components/Tree/layout/TidyTree.d.ts.map +1 -1
  69. package/dist/types/src/components/Tree/testing/generator.d.ts.map +1 -1
  70. package/dist/types/src/components/Tree/types/tree.d.ts +19 -17
  71. package/dist/types/src/components/Tree/types/tree.d.ts.map +1 -1
  72. package/dist/types/src/components/Tree/types/types.d.ts +1 -1
  73. package/dist/types/src/components/Tree/types/types.d.ts.map +1 -1
  74. package/dist/types/src/components/index.d.ts +0 -4
  75. package/dist/types/src/components/index.d.ts.map +1 -1
  76. package/dist/types/src/components/plot.d.ts.map +1 -1
  77. package/dist/types/src/containers/ExplorerContainer/ExplorerContainer.d.ts +6 -0
  78. package/dist/types/src/containers/ExplorerContainer/ExplorerContainer.d.ts.map +1 -0
  79. package/dist/types/src/containers/ExplorerContainer/index.d.ts +2 -0
  80. package/dist/types/src/containers/ExplorerContainer/index.d.ts.map +1 -0
  81. package/dist/types/src/containers/index.d.ts +3 -0
  82. package/dist/types/src/containers/index.d.ts.map +1 -0
  83. package/dist/types/src/hooks/useGraphModel.d.ts +2 -2
  84. package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
  85. package/dist/types/src/index.d.ts +2 -3
  86. package/dist/types/src/index.d.ts.map +1 -1
  87. package/dist/types/src/meta.d.ts +2 -3
  88. package/dist/types/src/meta.d.ts.map +1 -1
  89. package/dist/types/src/translations.d.ts +36 -22
  90. package/dist/types/src/translations.d.ts.map +1 -1
  91. package/dist/types/src/types/ExplorerAction.d.ts +6 -0
  92. package/dist/types/src/types/ExplorerAction.d.ts.map +1 -0
  93. package/dist/types/src/types/Graph.d.ts +23 -0
  94. package/dist/types/src/types/Graph.d.ts.map +1 -0
  95. package/dist/types/src/types/index.d.ts +2 -2
  96. package/dist/types/src/types/index.d.ts.map +1 -1
  97. package/dist/types/tsconfig.tsbuildinfo +1 -1
  98. package/package.json +88 -51
  99. package/src/ExplorerPlugin.test.ts +26 -0
  100. package/src/ExplorerPlugin.tsx +15 -54
  101. package/src/capabilities/create-object.ts +36 -0
  102. package/src/capabilities/index.ts +3 -3
  103. package/src/capabilities/react-surface.tsx +24 -15
  104. package/src/components/Chart/Chart.stories.tsx +22 -27
  105. package/src/components/Chart/Chart.tsx +1 -1
  106. package/src/components/Globe/Globe.stories.tsx +25 -26
  107. package/src/components/Globe/Globe.tsx +1 -1
  108. package/src/components/Graph/CanvasForceGraph.stories.tsx +83 -0
  109. package/src/components/Graph/CanvasForceGraph.tsx +124 -0
  110. package/src/components/Graph/ForceGraph.stories.tsx +90 -39
  111. package/src/components/Graph/ForceGraph.tsx +104 -85
  112. package/src/components/Graph/{adapter.ts → graph-adapter.ts} +14 -8
  113. package/src/components/Graph/index.ts +1 -1
  114. package/src/components/Graph/testing.ts +13 -10
  115. package/src/components/Tree/Tree.stories.tsx +57 -43
  116. package/src/components/Tree/Tree.tsx +11 -6
  117. package/src/components/Tree/testing/generator.ts +4 -2
  118. package/src/components/Tree/types/tree.test.ts +9 -7
  119. package/src/components/Tree/types/tree.ts +42 -21
  120. package/src/components/Tree/types/types.ts +1 -1
  121. package/src/components/index.ts +0 -4
  122. package/src/containers/ExplorerContainer/ExplorerContainer.tsx +51 -0
  123. package/src/containers/ExplorerContainer/index.ts +5 -0
  124. package/src/containers/index.ts +7 -0
  125. package/src/hooks/useGraphModel.ts +19 -11
  126. package/src/index.ts +5 -3
  127. package/src/meta.ts +9 -6
  128. package/src/translations.ts +20 -13
  129. package/src/types/ExplorerAction.ts +20 -0
  130. package/src/types/Graph.ts +49 -0
  131. package/src/types/index.ts +2 -2
  132. package/src/typings.d.ts +8 -0
  133. package/dist/lib/browser/ExplorerContainer-DXL34I3F.mjs +0 -37
  134. package/dist/lib/browser/ExplorerContainer-DXL34I3F.mjs.map +0 -7
  135. package/dist/lib/browser/chunk-73YTQHOT.mjs +0 -38
  136. package/dist/lib/browser/chunk-73YTQHOT.mjs.map +0 -7
  137. package/dist/lib/browser/chunk-OBAFAA5V.mjs +0 -21
  138. package/dist/lib/browser/chunk-OBAFAA5V.mjs.map +0 -7
  139. package/dist/lib/browser/chunk-SLB2F5AO.mjs +0 -30
  140. package/dist/lib/browser/chunk-SLB2F5AO.mjs.map +0 -7
  141. package/dist/lib/browser/chunk-Z5BGAHLD.mjs +0 -187
  142. package/dist/lib/browser/chunk-Z5BGAHLD.mjs.map +0 -7
  143. package/dist/lib/browser/intent-resolver-JZKYVFQJ.mjs +0 -24
  144. package/dist/lib/browser/intent-resolver-JZKYVFQJ.mjs.map +0 -7
  145. package/dist/lib/browser/react-surface-IAEP2GBT.mjs +0 -31
  146. package/dist/lib/browser/react-surface-IAEP2GBT.mjs.map +0 -7
  147. package/dist/lib/node/ExplorerContainer-VUXH55VV.cjs +0 -61
  148. package/dist/lib/node/ExplorerContainer-VUXH55VV.cjs.map +0 -7
  149. package/dist/lib/node/chunk-4T4LCT5R.cjs +0 -52
  150. package/dist/lib/node/chunk-4T4LCT5R.cjs.map +0 -7
  151. package/dist/lib/node/chunk-BCDVG2CH.cjs +0 -44
  152. package/dist/lib/node/chunk-BCDVG2CH.cjs.map +0 -7
  153. package/dist/lib/node/chunk-MLRYW4WQ.cjs +0 -56
  154. package/dist/lib/node/chunk-MLRYW4WQ.cjs.map +0 -7
  155. package/dist/lib/node/chunk-SVU4VMYX.cjs +0 -11339
  156. package/dist/lib/node/chunk-SVU4VMYX.cjs.map +0 -7
  157. package/dist/lib/node/chunk-TY543HPV.cjs +0 -214
  158. package/dist/lib/node/chunk-TY543HPV.cjs.map +0 -7
  159. package/dist/lib/node/index.cjs +0 -130
  160. package/dist/lib/node/index.cjs.map +0 -7
  161. package/dist/lib/node/intent-resolver-G2MFNIXA.cjs +0 -39
  162. package/dist/lib/node/intent-resolver-G2MFNIXA.cjs.map +0 -7
  163. package/dist/lib/node/meta.cjs +0 -31
  164. package/dist/lib/node/meta.cjs.map +0 -7
  165. package/dist/lib/node/meta.json +0 -1
  166. package/dist/lib/node/react-surface-UJD5RGRZ.cjs +0 -53
  167. package/dist/lib/node/react-surface-UJD5RGRZ.cjs.map +0 -7
  168. package/dist/lib/node/types/index.cjs +0 -32
  169. package/dist/lib/node/types/index.cjs.map +0 -7
  170. package/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs +0 -38
  171. package/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs.map +0 -7
  172. package/dist/lib/node-esm/chunk-3CMBLK6W.mjs.map +0 -7
  173. package/dist/lib/node-esm/chunk-AE7VHUJM.mjs +0 -189
  174. package/dist/lib/node-esm/chunk-AE7VHUJM.mjs.map +0 -7
  175. package/dist/lib/node-esm/chunk-N6VEANUZ.mjs +0 -39
  176. package/dist/lib/node-esm/chunk-N6VEANUZ.mjs.map +0 -7
  177. package/dist/lib/node-esm/chunk-VSORIAHH.mjs +0 -32
  178. package/dist/lib/node-esm/chunk-VSORIAHH.mjs.map +0 -7
  179. package/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs +0 -25
  180. package/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs.map +0 -7
  181. package/dist/lib/node-esm/react-surface-XBH3WZDL.mjs +0 -32
  182. package/dist/lib/node-esm/react-surface-XBH3WZDL.mjs.map +0 -7
  183. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  184. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  185. package/dist/types/src/components/ExplorerContainer.d.ts +0 -9
  186. package/dist/types/src/components/ExplorerContainer.d.ts.map +0 -1
  187. package/dist/types/src/components/Graph/D3ForceGraph.d.ts +0 -14
  188. package/dist/types/src/components/Graph/D3ForceGraph.d.ts.map +0 -1
  189. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +0 -6
  190. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +0 -1
  191. package/dist/types/src/components/Graph/adapter.d.ts.map +0 -1
  192. package/dist/types/src/types/schema.d.ts +0 -12
  193. package/dist/types/src/types/schema.d.ts.map +0 -1
  194. package/dist/types/src/types/types.d.ts +0 -18
  195. package/dist/types/src/types/types.d.ts.map +0 -1
  196. package/src/capabilities/intent-resolver.ts +0 -19
  197. package/src/components/ExplorerContainer.tsx +0 -36
  198. package/src/components/Graph/D3ForceGraph.stories.tsx +0 -64
  199. package/src/components/Graph/D3ForceGraph.tsx +0 -101
  200. package/src/types/schema.ts +0 -16
  201. package/src/types/types.ts +0 -21
@@ -0,0 +1,41 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import "../chunk-HSLMI22Q.mjs";
3
+
4
+ // src/hooks/useGraphModel.ts
5
+ import { useEffect, useState } from "react";
6
+ import { Capabilities } from "@dxos/app-framework";
7
+ import { useCapability } from "@dxos/app-framework/ui";
8
+ import { SpaceGraphModel } from "@dxos/schema";
9
+ var useGraphModel = (space, filter, options, queue) => {
10
+ const registry = useCapability(Capabilities.AtomRegistry);
11
+ const [model, setModel] = useState(void 0);
12
+ useEffect(() => {
13
+ if (!space) {
14
+ setModel(void 0);
15
+ return;
16
+ }
17
+ const newModel = new SpaceGraphModel(registry);
18
+ void newModel.open(space.db, queue);
19
+ setModel(newModel);
20
+ return () => {
21
+ setModel(void 0);
22
+ void newModel.close();
23
+ };
24
+ }, [
25
+ space,
26
+ registry,
27
+ queue
28
+ ]);
29
+ useEffect(() => {
30
+ model?.setFilter(filter).setOptions(options);
31
+ }, [
32
+ model,
33
+ filter,
34
+ options
35
+ ]);
36
+ return model;
37
+ };
38
+ export {
39
+ useGraphModel
40
+ };
41
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/hooks/useGraphModel.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { useEffect, useState } from 'react';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { type Filter, type Queue, type Space } from '@dxos/client/echo';\nimport { SpaceGraphModel, type SpaceGraphModelOptions } from '@dxos/schema';\n\n// TODO(burdon): Factor out.\nexport const useGraphModel = (\n space: Space | undefined,\n filter?: Filter.Any | undefined,\n options?: SpaceGraphModelOptions,\n queue?: Queue,\n): SpaceGraphModel | undefined => {\n const registry = useCapability(Capabilities.AtomRegistry);\n const [model, setModel] = useState<SpaceGraphModel | undefined>(undefined);\n\n useEffect(() => {\n if (!space) {\n setModel(undefined);\n return;\n }\n\n const newModel = new SpaceGraphModel(registry);\n void newModel.open(space.db, queue);\n setModel(newModel);\n\n return () => {\n setModel(undefined);\n void newModel.close();\n };\n }, [space, registry, queue]);\n\n useEffect(() => {\n model?.setFilter(filter).setOptions(options);\n }, [model, filter, options]);\n\n return model;\n};\n"],
5
+ "mappings": ";;;;AAIA,SAASA,WAAWC,gBAAgB;AAEpC,SAASC,oBAAoB;AAC7B,SAASC,qBAAqB;AAE9B,SAASC,uBAAoD;AAGtD,IAAMC,gBAAgB,CAC3BC,OACAC,QACAC,SACAC,UAAAA;AAEA,QAAMC,WAAWP,cAAcD,aAAaS,YAAY;AACxD,QAAM,CAACC,OAAOC,QAAAA,IAAYZ,SAAsCa,MAAAA;AAEhEd,YAAU,MAAA;AACR,QAAI,CAACM,OAAO;AACVO,eAASC,MAAAA;AACT;IACF;AAEA,UAAMC,WAAW,IAAIX,gBAAgBM,QAAAA;AACrC,SAAKK,SAASC,KAAKV,MAAMW,IAAIR,KAAAA;AAC7BI,aAASE,QAAAA;AAET,WAAO,MAAA;AACLF,eAASC,MAAAA;AACT,WAAKC,SAASG,MAAK;IACrB;EACF,GAAG;IAACZ;IAAOI;IAAUD;GAAM;AAE3BT,YAAU,MAAA;AACRY,WAAOO,UAAUZ,MAAAA,EAAQa,WAAWZ,OAAAA;EACtC,GAAG;IAACI;IAAOL;IAAQC;GAAQ;AAE3B,SAAOI;AACT;",
6
+ "names": ["useEffect", "useState", "Capabilities", "useCapability", "SpaceGraphModel", "useGraphModel", "space", "filter", "options", "queue", "registry", "AtomRegistry", "model", "setModel", "undefined", "newModel", "open", "db", "close", "setFilter", "setOptions"]
7
+ }
@@ -1,112 +1,14 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- useGraphModel
4
- } from "./chunk-VSORIAHH.mjs";
5
- import {
6
- Chart,
7
- ExplorerContainer,
8
- Globe,
9
- Tree,
10
- defaultTreeLayoutSlots
11
- } from "./chunk-IUFYOE44.mjs";
12
- import {
13
- D3ForceGraph,
14
- ForceGraph
15
- } from "./chunk-AE7VHUJM.mjs";
16
- import {
17
- ExplorerAction,
18
- ViewType
19
- } from "./chunk-N6VEANUZ.mjs";
20
- import {
21
- EXPLORER_PLUGIN,
22
3
  meta
23
- } from "./chunk-3CMBLK6W.mjs";
4
+ } from "./chunk-6EUBRHHX.mjs";
5
+ import "./chunk-HSLMI22Q.mjs";
24
6
 
25
- // packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx
26
- import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from "@dxos/app-framework";
27
- import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
28
- import { SpaceCapabilities } from "@dxos/plugin-space";
29
- import { defineObjectForm } from "@dxos/plugin-space/types";
30
-
31
- // packages/plugins/plugin-explorer/src/capabilities/index.ts
32
- import { lazy } from "@dxos/app-framework";
33
- var IntentResolver = lazy(() => import("./intent-resolver-7G6ZKM6E.mjs"));
34
- var ReactSurface = lazy(() => import("./react-surface-XBH3WZDL.mjs"));
35
-
36
- // packages/plugins/plugin-explorer/src/translations.ts
37
- import { Type } from "@dxos/echo";
38
- var translations_default = [
39
- {
40
- "en-US": {
41
- [Type.getTypename(ViewType)]: {
42
- "typename label": "Explorer",
43
- "typename label_zero": "Explorers",
44
- "typename label_one": "Explorer",
45
- "typename label_other": "Explorers",
46
- "object name placeholder": "New explorer"
47
- },
48
- [EXPLORER_PLUGIN]: {
49
- "plugin name": "Explorer",
50
- "object title label": "Title"
51
- }
52
- }
53
- }
54
- ];
55
-
56
- // packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx
57
- var ExplorerPlugin = () => definePlugin(meta, [
58
- defineModule({
59
- id: `${meta.id}/module/translations`,
60
- activatesOn: Events.SetupTranslations,
61
- activate: () => contributes(Capabilities.Translations, translations_default)
62
- }),
63
- defineModule({
64
- id: `${meta.id}/module/metadata`,
65
- activatesOn: Events.SetupMetadata,
66
- activate: () => contributes(Capabilities.Metadata, {
67
- id: ViewType.typename,
68
- metadata: {
69
- icon: "ph--graph--regular"
70
- }
71
- })
72
- }),
73
- defineModule({
74
- id: `${meta.id}/module/object-form`,
75
- activatesOn: ClientEvents.SetupSchema,
76
- activate: () => contributes(SpaceCapabilities.ObjectForm, defineObjectForm({
77
- objectSchema: ViewType,
78
- getIntent: () => createIntent(ExplorerAction.Create)
79
- }))
80
- }),
81
- defineModule({
82
- id: `${meta.id}/module/schema`,
83
- activatesOn: ClientEvents.SetupSchema,
84
- activate: () => contributes(ClientCapabilities.Schema, [
85
- ViewType
86
- ])
87
- }),
88
- defineModule({
89
- id: `${meta.id}/module/react-surface`,
90
- activatesOn: Events.SetupReactSurface,
91
- activate: ReactSurface
92
- }),
93
- defineModule({
94
- id: `${meta.id}/module/intent-resolver`,
95
- activatesOn: Events.SetupIntentResolver,
96
- activate: IntentResolver
97
- })
98
- ]);
7
+ // src/index.ts
8
+ import { Plugin } from "@dxos/app-framework";
9
+ var ExplorerPlugin = Plugin.lazy(meta, () => import("#plugin"));
99
10
  export {
100
- Chart,
101
- D3ForceGraph,
102
- EXPLORER_PLUGIN,
103
- ExplorerContainer,
104
11
  ExplorerPlugin,
105
- ForceGraph,
106
- Globe,
107
- Tree,
108
- defaultTreeLayoutSlots,
109
- meta,
110
- useGraphModel
12
+ meta
111
13
  };
112
14
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/ExplorerPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ViewType, ExplorerAction } from './types';\n\nexport const ExplorerPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ViewType.typename,\n metadata: {\n icon: 'ph--graph--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: ViewType,\n getIntent: () => createIntent(ExplorerAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ViewType]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\n\nimport { EXPLORER_PLUGIN } from './meta';\nimport { ViewType } from './types';\n\nexport default [\n {\n 'en-US': {\n [Type.getTypename(ViewType)]: {\n 'typename label': 'Explorer',\n 'typename label_zero': 'Explorers',\n 'typename label_one': 'Explorer',\n 'typename label_other': 'Explorers',\n 'object name placeholder': 'New explorer',\n },\n [EXPLORER_PLUGIN]: {\n 'plugin name': 'Explorer',\n 'object title label': 'Title',\n },\n },\n },\n];\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;;;ACHjC,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACH9C,SAASE,YAAY;AAKrB,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,KAAKC,YAAYC,QAAAA,CAAAA,GAAY;QAC5B,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;MAC7B;MACA,CAACC,eAAAA,GAAkB;QACjB,eAAe;QACf,sBAAsB;MACxB;IACF;EACF;;;;AFVK,IAAMC,iBAAiB,MAC5BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MACRC,YAAYC,aAAaI,UAAU;MACjCV,IAAIW,SAASC;MACbC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MACRC,YACEY,kBAAkBC,YAClBC,iBAAiB;MACfC,cAAcT;MACdU,WAAW,MAAMC,aAAaC,eAAeC,MAAM;IACrD,CAAA,CAAA;EAEN,CAAA;EACAzB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MAAMC,YAAYoB,mBAAmBC,QAAQ;MAACf;KAAS;EACnE,CAAA;EACAZ,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOyB;IACpBvB,UAAUwB;EACZ,CAAA;EACA7B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO2B;IACpBzB,UAAU0B;EACZ,CAAA;CACD;",
6
- "names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "lazy", "IntentResolver", "lazy", "ReactSurface", "Type", "Type", "getTypename", "ViewType", "EXPLORER_PLUGIN", "ExplorerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "ViewType", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ExplorerAction", "Create", "ClientCapabilities", "Schema", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver"]
3
+ "sources": ["../../../src/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport * from './meta';\n\nexport const ExplorerPlugin = Plugin.lazy(meta, () => import('#plugin'));\n"],
5
+ "mappings": ";;;;;;;AAIA,SAASA,cAAc;AAMhB,IAAMC,iBAAiBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
+ "names": ["Plugin", "ExplorerPlugin", "Plugin", "lazy", "meta"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytes":1420,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytes":5152,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytes":482,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytes":7796,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"packages/plugins/plugin-explorer/src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytes":482,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/D3ForceGraph.tsx":{"bytes":10402,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/adapter.ts":{"bytes":3210,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/ForceGraph.tsx":{"bytes":11059,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Graph/adapter.ts","kind":"import-statement","original":"./adapter"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytes":595,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Graph/D3ForceGraph.tsx","kind":"import-statement","original":"./D3ForceGraph"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/ForceGraph.tsx","kind":"import-statement","original":"./ForceGraph"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17492,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytes":8718,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytes":9220,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts":{"bytes":1107,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts":{"bytes":26074,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types/types.ts":{"bytes":3316,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/types/index.ts":{"bytes":567,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts","kind":"import-statement","original":"./tree"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytes":9679,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytes":480,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts":{"bytes":3269,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/hooks/index.ts":{"bytes":495,"imports":[{"path":"packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts","kind":"import-statement","original":"./useGraphModel"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytes":3354,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/plugin-explorer/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytes":1110,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"packages/plugins/plugin-explorer/src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"packages/plugins/plugin-explorer/src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"packages/plugins/plugin-explorer/src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"},{"path":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","kind":"dynamic-import","original":"./ExplorerContainer"}],"format":"esm"},"packages/plugins/plugin-explorer/src/meta.ts":{"bytes":1874,"imports":[],"format":"esm"},"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytes":1516,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytes":2252,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytes":557,"imports":[{"path":"packages/plugins/plugin-explorer/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-explorer/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytes":2182,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytes":2879,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytes":1051,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-explorer/src/translations.ts":{"bytes":2243,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytes":7382,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-explorer/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-explorer/src/index.ts":{"bytes":745,"imports":[{"path":"packages/plugins/plugin-explorer/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-explorer/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/plugins/plugin-explorer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx","kind":"import-statement","original":"./ExplorerPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5060},"packages/plugins/plugin-explorer/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-XBH3WZDL.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["Chart","D3ForceGraph","EXPLORER_PLUGIN","ExplorerContainer","ExplorerPlugin","ForceGraph","Globe","Tree","defaultTreeLayoutSlots","meta","useGraphModel"],"entryPoint":"packages/plugins/plugin-explorer/src/index.ts","inputs":{"packages/plugins/plugin-explorer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx":{"bytesInOutput":1546},"packages/plugins/plugin-explorer/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-explorer/src/translations.ts":{"bytesInOutput":470}},"bytes":3121},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"}],"exports":["EXPLORER_PLUGIN","meta"],"entryPoint":"packages/plugins/plugin-explorer/src/meta.ts","inputs":{},"bytes":230},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-explorer/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"}],"exports":["ExplorerAction","ViewType"],"entryPoint":"packages/plugins/plugin-explorer/src/types/index.ts","inputs":{},"bytes":270},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1638},"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx","inputs":{"packages/plugins/plugin-explorer/src/components/ExplorerContainer.tsx":{"bytesInOutput":824}},"bytes":1208},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1783},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-VSORIAHH.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["useGraphModel"],"inputs":{"packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts":{"bytesInOutput":590},"packages/plugins/plugin-explorer/src/hooks/index.ts":{"bytesInOutput":0}},"bytes":819},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1090},"packages/plugins/plugin-explorer/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts":{"bytesInOutput":373}},"bytes":741},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-XBH3WZDL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1420},"packages/plugins/plugin-explorer/dist/lib/node-esm/react-surface-XBH3WZDL.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx":{"bytesInOutput":503}},"bytes":966},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":487537},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-IUFYOE44.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs","kind":"dynamic-import"}],"exports":["Chart","ExplorerContainer","Globe","Tree","defaultTreeLayoutSlots"],"inputs":{"packages/plugins/plugin-explorer/src/components/Chart/Chart.tsx":{"bytesInOutput":1254},"packages/plugins/plugin-explorer/src/components/plot.ts":{"bytesInOutput":133},"packages/plugins/plugin-explorer/src/components/Globe/Globe.tsx":{"bytesInOutput":1968},"packages/plugins/plugin-explorer/data/countries-110m.js":{"bytesInOutput":188376},"packages/plugins/plugin-explorer/src/components/Tree/Tree.tsx":{"bytesInOutput":2157},"packages/plugins/plugin-explorer/src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2167},"packages/plugins/plugin-explorer/src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1355},"packages/plugins/plugin-explorer/src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1596},"packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts":{"bytesInOutput":6323},"packages/plugins/plugin-explorer/src/components/Tree/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Tree/types/types.ts":{"bytesInOutput":82},"packages/plugins/plugin-explorer/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/plugin-explorer/src/components/Chart/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Globe/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":206725},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12519},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-AE7VHUJM.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"force-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/plugin-search","kind":"import-statement","external":true}],"exports":["D3ForceGraph","ForceGraph"],"inputs":{"packages/plugins/plugin-explorer/src/components/Graph/D3ForceGraph.tsx":{"bytesInOutput":2402},"packages/plugins/plugin-explorer/src/components/Graph/ForceGraph.tsx":{"bytesInOutput":2413},"packages/plugins/plugin-explorer/src/components/Graph/adapter.ts":{"bytesInOutput":488},"packages/plugins/plugin-explorer/src/components/Graph/index.ts":{"bytesInOutput":0}},"bytes":5771},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1806},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-N6VEANUZ.mjs":{"imports":[{"path":"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true}],"exports":["ExplorerAction","ViewType"],"inputs":{"packages/plugins/plugin-explorer/src/types/schema.ts":{"bytesInOutput":261},"packages/plugins/plugin-explorer/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-explorer/src/types/types.ts":{"bytesInOutput":455}},"bytes":1065},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":898},"packages/plugins/plugin-explorer/dist/lib/node-esm/chunk-3CMBLK6W.mjs":{"imports":[],"exports":["EXPLORER_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-explorer/src/meta.ts":{"bytesInOutput":427}},"bytes":651}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":2127,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":945,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/components/plot.ts":{"bytes":1310,"imports":[],"format":"esm"},"src/components/Chart/Chart.tsx":{"bytes":4712,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"src/components/Chart/index.ts":{"bytes":369,"imports":[{"path":"src/components/Chart/Chart.tsx","kind":"import-statement","original":"./Chart"}],"format":"esm"},"data/countries-110m.js":{"bytes":187226,"imports":[],"format":"esm"},"src/components/Globe/Globe.tsx":{"bytes":7276,"imports":[{"path":"@observablehq/plot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"topojson-client","kind":"import-statement","external":true},{"path":"data/countries-110m.js","kind":"import-statement","original":"../../../data/countries-110m.js"},{"path":"src/components/plot.ts","kind":"import-statement","original":"../plot"}],"format":"esm"},"src/components/Globe/index.ts":{"bytes":369,"imports":[{"path":"src/components/Globe/Globe.tsx","kind":"import-statement","original":"./Globe"}],"format":"esm"},"src/components/Graph/graph-adapter.ts":{"bytes":4073,"imports":[],"format":"esm"},"src/components/Graph/CanvasForceGraph.tsx":{"bytes":12816,"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/ui-theme","kind":"import-statement","external":true},{"path":"src/components/Graph/graph-adapter.ts","kind":"import-statement","original":"./graph-adapter"}],"format":"esm"},"src/components/Graph/ForceGraph.tsx":{"bytes":12056,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true}],"format":"esm"},"src/components/Graph/index.ts":{"bytes":490,"imports":[{"path":"src/components/Graph/CanvasForceGraph.tsx","kind":"import-statement","original":"./CanvasForceGraph"},{"path":"src/components/Graph/ForceGraph.tsx","kind":"import-statement","original":"./ForceGraph"}],"format":"esm"},"src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytes":17350,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/layout/RadialTree.ts":{"bytes":8590,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/layout/TidyTree.ts":{"bytes":9094,"imports":[{"path":"d3","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/layout/index.ts":{"bytes":988,"imports":[{"path":"src/components/Tree/layout/HierarchicalEdgeBundling.ts","kind":"import-statement","original":"./HierarchicalEdgeBundling"},{"path":"src/components/Tree/layout/RadialTree.ts","kind":"import-statement","original":"./RadialTree"},{"path":"src/components/Tree/layout/TidyTree.ts","kind":"import-statement","original":"./TidyTree"}],"format":"esm"},"src/components/Tree/types/tree.ts":{"bytes":27886,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/testing","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/components/Tree/types/types.ts":{"bytes":3210,"imports":[],"format":"esm"},"src/components/Tree/types/index.ts":{"bytes":449,"imports":[{"path":"src/components/Tree/types/tree.ts","kind":"import-statement","original":"./tree"},{"path":"src/components/Tree/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Tree/Tree.tsx":{"bytes":9848,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/components/Tree/layout/index.ts","kind":"import-statement","original":"./layout"},{"path":"src/components/Tree/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/components/Tree/index.ts":{"bytes":368,"imports":[{"path":"src/components/Tree/Tree.tsx","kind":"import-statement","original":"./Tree"}],"format":"esm"},"src/components/index.ts":{"bytes":611,"imports":[{"path":"src/components/Chart/index.ts","kind":"import-statement","original":"./Chart"},{"path":"src/components/Globe/index.ts","kind":"import-statement","original":"./Globe"},{"path":"src/components/Graph/index.ts","kind":"import-statement","original":"./Graph"},{"path":"src/components/Tree/index.ts","kind":"import-statement","original":"./Tree"}],"format":"esm"},"src/hooks/useGraphModel.ts":{"bytes":3873,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":389,"imports":[{"path":"src/hooks/useGraphModel.ts","kind":"import-statement","original":"./useGraphModel"}],"format":"esm"},"src/types/ExplorerAction.ts":{"bytes":2130,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"format":"esm"},"src/types/Graph.ts":{"bytes":4888,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":610,"imports":[{"path":"src/types/ExplorerAction.ts","kind":"import-statement","original":"./ExplorerAction"},{"path":"src/types/Graph.ts","kind":"import-statement","original":"./Graph"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":473},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-6EUBRHHX.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["ExplorerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":111}},"bytes":370},"dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/meta.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-6EUBRHHX.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":223},"dist/lib/node-esm/chunk-6EUBRHHX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1042},"dist/lib/node-esm/chunk-6EUBRHHX.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":570}},"bytes":742},"dist/lib/node-esm/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":498786},"dist/lib/node-esm/components/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","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":"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/ui-theme","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph/styles/graph.css","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-graph","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"d3","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/testing","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"exports":["CanvasForceGraph","Chart","ForceGraph","Globe","Tree","defaultTreeLayoutSlots"],"entryPoint":"src/components/index.ts","inputs":{"src/components/Chart/Chart.tsx":{"bytesInOutput":1031},"src/components/plot.ts":{"bytesInOutput":133},"src/components/Chart/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0},"src/components/Globe/Globe.tsx":{"bytesInOutput":1707},"data/countries-110m.js":{"bytesInOutput":188376},"src/components/Globe/index.ts":{"bytesInOutput":0},"src/components/Graph/CanvasForceGraph.tsx":{"bytesInOutput":2570},"src/components/Graph/graph-adapter.ts":{"bytesInOutput":619},"src/components/Graph/index.ts":{"bytesInOutput":0},"src/components/Graph/ForceGraph.tsx":{"bytesInOutput":2755},"src/components/Tree/Tree.tsx":{"bytesInOutput":2117},"src/components/Tree/layout/HierarchicalEdgeBundling.ts":{"bytesInOutput":2167},"src/components/Tree/layout/RadialTree.ts":{"bytesInOutput":1355},"src/components/Tree/layout/TidyTree.ts":{"bytesInOutput":1596},"src/components/Tree/types/tree.ts":{"bytesInOutput":699},"src/components/Tree/types/index.ts":{"bytesInOutput":0},"src/components/Tree/types/types.ts":{"bytesInOutput":82},"src/components/Tree/index.ts":{"bytesInOutput":0}},"bytes":206121},"dist/lib/node-esm/hooks/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2149},"dist/lib/node-esm/hooks/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["useGraphModel"],"entryPoint":"src/hooks/index.ts","inputs":{"src/hooks/useGraphModel.ts":{"bytesInOutput":828},"src/hooks/index.ts":{"bytesInOutput":0}},"bytes":1046},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3623},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HSLMI22Q.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["ExplorerAction","Graph"],"entryPoint":"src/types/index.ts","inputs":{"src/types/ExplorerAction.ts":{"bytesInOutput":580},"src/types/index.ts":{"bytesInOutput":0},"src/types/Graph.ts":{"bytesInOutput":1091}},"bytes":1986},"dist/lib/node-esm/chunk-HSLMI22Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-HSLMI22Q.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":327}}}
@@ -1,10 +1,9 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- EXPLORER_PLUGIN,
4
3
  meta
5
- } from "./chunk-3CMBLK6W.mjs";
4
+ } from "./chunk-6EUBRHHX.mjs";
5
+ import "./chunk-HSLMI22Q.mjs";
6
6
  export {
7
- EXPLORER_PLUGIN,
8
7
  meta
9
8
  };
10
9
  //# sourceMappingURL=meta.mjs.map
@@ -1,11 +1,73 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- ExplorerAction,
4
- ViewType
5
- } from "../chunk-N6VEANUZ.mjs";
6
- import "../chunk-3CMBLK6W.mjs";
3
+ __export
4
+ } from "../chunk-HSLMI22Q.mjs";
5
+
6
+ // src/types/ExplorerAction.ts
7
+ var ExplorerAction_exports = {};
8
+ __export(ExplorerAction_exports, {
9
+ GraphProps: () => GraphProps
10
+ });
11
+ import * as Schema from "effect/Schema";
12
+ import { TypeInputOptionsAnnotation } from "@dxos/plugin-space/types";
13
+ var GraphProps = Schema.Struct({
14
+ name: Schema.optional(Schema.String),
15
+ // TODO(wittjosiah): This should be a query input instead.
16
+ typename: Schema.String.pipe(Schema.annotations({
17
+ title: "Select type"
18
+ }), TypeInputOptionsAnnotation.set({
19
+ location: [
20
+ "database",
21
+ "runtime"
22
+ ],
23
+ kind: [
24
+ "user"
25
+ ]
26
+ }), Schema.optional)
27
+ });
28
+
29
+ // src/types/Graph.ts
30
+ var Graph_exports = {};
31
+ __export(Graph_exports, {
32
+ Graph: () => Graph,
33
+ make: () => make
34
+ });
35
+ import * as Schema2 from "effect/Schema";
36
+ import { Annotation, Filter, Obj, Query, QueryAST, Ref, Type } from "@dxos/echo";
37
+ import { View } from "@dxos/echo";
38
+ import { FormInputAnnotation, LabelAnnotation } from "@dxos/echo/internal";
39
+ import { ViewAnnotation } from "@dxos/schema";
40
+ var GraphSchema = Schema2.Struct({
41
+ name: Schema2.optional(Schema2.String),
42
+ view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),
43
+ query: Schema2.Struct({
44
+ raw: Schema2.optional(Schema2.String),
45
+ ast: QueryAST.Query
46
+ }).pipe(FormInputAnnotation.set(false))
47
+ }).pipe(Type.object({
48
+ typename: "org.dxos.type.graph",
49
+ version: "0.1.0"
50
+ }), LabelAnnotation.set([
51
+ "name"
52
+ ]), ViewAnnotation.set([
53
+ "view"
54
+ ]), Annotation.IconAnnotation.set({
55
+ icon: "ph--graph--regular",
56
+ hue: "green"
57
+ }));
58
+ var Graph = GraphSchema;
59
+ var make = ({ name, query = {
60
+ raw: "",
61
+ ast: Query.select(Filter.nothing()).ast
62
+ }, view }) => {
63
+ return Obj.make(Graph, {
64
+ name,
65
+ view: Ref.make(view),
66
+ query
67
+ });
68
+ };
7
69
  export {
8
- ExplorerAction,
9
- ViewType
70
+ ExplorerAction_exports as ExplorerAction,
71
+ Graph_exports as Graph
10
72
  };
11
73
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
3
+ "sources": ["../../../../src/types/ExplorerAction.ts", "../../../../src/types/Graph.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { TypeInputOptionsAnnotation } from '@dxos/plugin-space/types';\n\nexport const GraphProps = Schema.Struct({\n name: Schema.optional(Schema.String),\n // TODO(wittjosiah): This should be a query input instead.\n typename: Schema.String.pipe(\n Schema.annotations({ title: 'Select type' }),\n TypeInputOptionsAnnotation.set({\n location: ['database', 'runtime'],\n kind: ['user'],\n }),\n Schema.optional,\n ),\n});\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Filter, Obj, Query, QueryAST, Ref, Type } from '@dxos/echo';\nimport { View } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';\nimport { ViewAnnotation } from '@dxos/schema';\n\nconst GraphSchema = Schema.Struct({\n name: Schema.optional(Schema.String),\n\n view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),\n\n query: Schema.Struct({\n raw: Schema.optional(Schema.String),\n ast: QueryAST.Query,\n }).pipe(FormInputAnnotation.set(false)),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.graph',\n version: '0.1.0',\n }),\n LabelAnnotation.set(['name']),\n ViewAnnotation.set(['view']),\n Annotation.IconAnnotation.set({\n icon: 'ph--graph--regular',\n hue: 'green',\n }),\n);\nexport interface Graph extends Schema.Schema.Type<typeof GraphSchema> {}\nexport const Graph: Type.Obj<Graph> = GraphSchema as any;\n\ntype MakeProps = Omit<Partial<Obj.MakeProps<typeof Graph>>, 'view'> & {\n view: View.View;\n};\n\n/**\n * Make a graph as a view of a data set.\n */\nexport const make = ({\n name,\n query = { raw: '', ast: Query.select(Filter.nothing()).ast },\n view,\n}: MakeProps): Graph => {\n return Obj.make(Graph, { name, view: Ref.make(view), query });\n};\n"],
5
+ "mappings": ";;;;;;AAAA;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kCAAkC;AAEpC,IAAMC,aAAoBC,cAAO;EACtCC,MAAaC,gBAAgBC,aAAM;;EAEnCC,UAAiBD,cAAOE,KACfC,mBAAY;IAAEC,OAAO;EAAc,CAAA,GAC1CT,2BAA2BU,IAAI;IAC7BC,UAAU;MAAC;MAAY;;IACvBC,MAAM;MAAC;;EACT,CAAA,GACOR,eAAQ;AAEnB,CAAA;;;ACnBA;;;;;AAIA,YAAYS,aAAY;AAExB,SAASC,YAAYC,QAAQC,KAAKC,OAAOC,UAAUC,KAAKC,YAAY;AACpE,SAASC,YAAY;AACrB,SAASC,qBAAqBC,uBAAuB;AACrD,SAASC,sBAAsB;AAE/B,IAAMC,cAAqBC,eAAO;EAChCC,MAAaC,iBAAgBC,cAAM;EAEnCC,MAAMX,IAAIA,IAAIE,KAAKA,IAAI,EAAEU,KAAKT,oBAAoBU,IAAI,KAAA,CAAA;EAEtDC,OAAcP,eAAO;IACnBQ,KAAYN,iBAAgBC,cAAM;IAClCM,KAAKjB,SAASD;EAChB,CAAA,EAAGc,KAAKT,oBAAoBU,IAAI,KAAA,CAAA;AAClC,CAAA,EAAGD,KACDX,KAAKgB,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAf,gBAAgBS,IAAI;EAAC;CAAO,GAC5BR,eAAeQ,IAAI;EAAC;CAAO,GAC3BlB,WAAWyB,eAAeP,IAAI;EAC5BQ,MAAM;EACNC,KAAK;AACP,CAAA,CAAA;AAGK,IAAMC,QAAyBjB;AAS/B,IAAMkB,OAAO,CAAC,EACnBhB,MACAM,QAAQ;EAAEC,KAAK;EAAIC,KAAKlB,MAAM2B,OAAO7B,OAAO8B,QAAO,CAAA,EAAIV;AAAI,GAC3DL,KAAI,MACM;AACV,SAAOd,IAAI2B,KAAKD,OAAO;IAAEf;IAAMG,MAAMX,IAAIwB,KAAKb,IAAAA;IAAOG;EAAM,CAAA;AAC7D;",
6
+ "names": ["Schema", "TypeInputOptionsAnnotation", "GraphProps", "Struct", "name", "optional", "String", "typename", "pipe", "annotations", "title", "set", "location", "kind", "Schema", "Annotation", "Filter", "Obj", "Query", "QueryAST", "Ref", "Type", "View", "FormInputAnnotation", "LabelAnnotation", "ViewAnnotation", "GraphSchema", "Struct", "name", "optional", "String", "view", "pipe", "set", "query", "raw", "ast", "object", "typename", "version", "IconAnnotation", "icon", "hue", "Graph", "make", "select", "nothing"]
7
7
  }
@@ -1,6 +1,6 @@
1
- declare namespace _default {
2
- let type: string;
3
- let features: {
1
+ declare const _default: {
2
+ type: string;
3
+ features: {
4
4
  type: string;
5
5
  properties: {
6
6
  pop_max: number;
@@ -12,6 +12,6 @@ declare namespace _default {
12
12
  coordinates: number[];
13
13
  };
14
14
  }[];
15
- }
15
+ };
16
16
  export default _default;
17
17
  //# sourceMappingURL=cities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cities.d.ts","sourceRoot":"","sources":["../../../data/cities.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"cities.d.ts","sourceRoot":"","sources":["../../../data/cities.js"],"names":[],"mappings":";;;;;YAUQ,OAAO;YACP,IAAI;YACJ,QAAQ;;;YAGR,IAAI;YACJ,WAAW"}
@@ -1,10 +1,9 @@
1
- declare namespace _default {
2
- let type: string;
3
- namespace objects {
4
- namespace countries {
5
- let type_1: string;
6
- export { type_1 as type };
7
- export let geometries: ({
1
+ declare const _default: {
2
+ type: string;
3
+ objects: {
4
+ countries: {
5
+ type: string;
6
+ geometries: ({
8
7
  type: string;
9
8
  arcs: number[][];
10
9
  id: string;
@@ -13,23 +12,21 @@ declare namespace _default {
13
12
  arcs: number[][][];
14
13
  id: string;
15
14
  })[];
16
- }
17
- namespace land {
18
- let type_2: string;
19
- export { type_2 as type };
20
- let geometries_1: {
15
+ };
16
+ land: {
17
+ type: string;
18
+ geometries: {
21
19
  type: string;
22
20
  arcs: number[][][];
23
21
  }[];
24
- export { geometries_1 as geometries };
25
- }
26
- }
27
- let arcs: number[][][];
28
- let bbox: number[];
29
- namespace transform {
30
- let scale: number[];
31
- let translate: number[];
32
- }
33
- }
22
+ };
23
+ };
24
+ arcs: number[][][];
25
+ bbox: number[];
26
+ transform: {
27
+ scale: number[];
28
+ translate: number[];
29
+ };
30
+ };
34
31
  export default _default;
35
32
  //# sourceMappingURL=countries-110m.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"countries-110m.d.ts","sourceRoot":"","sources":["../../../data/countries-110m.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"countries-110m.d.ts","sourceRoot":"","sources":["../../../data/countries-110m.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;QAi1UI,KAAK;QACL,SAAS"}
@@ -1,2 +1,4 @@
1
- export declare const ExplorerPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const ExplorerPlugin: Plugin.PluginFactory<void>;
3
+ export default ExplorerPlugin;
2
4
  //# sourceMappingURL=ExplorerPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExplorerPlugin.d.ts","sourceRoot":"","sources":["../../../src/ExplorerPlugin.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,4CA6CvB,CAAC"}
1
+ {"version":3,"file":"ExplorerPlugin.d.ts","sourceRoot":"","sources":["../../../src/ExplorerPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ7C,eAAO,MAAM,cAAc,4BAM1B,CAAC;eAEa,cAAc"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ExplorerPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExplorerPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/ExplorerPlugin.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { SpaceCapabilities } from '@dxos/plugin-space/types';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
+ id: string;
6
+ createObject: import("@dxos/plugin-space/types").CreateObject;
7
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
8
+ customPanel?: import("react").ComponentType<SpaceCapabilities.CreateObjectCustomPanelProps>;
9
+ }>>>, never, never>;
10
+ export default _default;
11
+ //# sourceMappingURL=create-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,3 +1,9 @@
1
- export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
3
+ id: string;
4
+ createObject: import("@dxos/plugin-space/types").CreateObject;
5
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
6
+ customPanel?: import("react").ComponentType<import("@dxos/plugin-space/types").SpaceCapabilities.CreateObjectCustomPanelProps>;
7
+ }>>>, Error>;
8
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
3
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kMAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAO/E,wBASI"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}