@dxos/plugin-explorer 0.8.3-staging.0fa589b → 0.8.4-main.03d5cd7b56

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 (221) hide show
  1. package/dist/lib/neutral/ExplorerContainer-5TOK2ZEY.mjs +40 -0
  2. package/dist/lib/neutral/ExplorerContainer-5TOK2ZEY.mjs.map +7 -0
  3. package/dist/lib/neutral/ExplorerPlugin.mjs +26 -0
  4. package/dist/lib/neutral/ExplorerPlugin.mjs.map +7 -0
  5. package/dist/lib/neutral/capabilities/index.mjs +11 -0
  6. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  7. package/dist/lib/neutral/chunk-5X5ATGCS.mjs +73 -0
  8. package/dist/lib/neutral/chunk-5X5ATGCS.mjs.map +7 -0
  9. package/dist/lib/neutral/chunk-HPIS2WXY.mjs +24 -0
  10. package/dist/lib/neutral/chunk-HPIS2WXY.mjs.map +7 -0
  11. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  12. package/dist/lib/{browser/chunk-JRKQNHS6.mjs → neutral/components/index.mjs} +357 -412
  13. package/dist/lib/{node-esm/chunk-IUFYOE44.mjs.map → neutral/components/index.mjs.map} +4 -4
  14. package/dist/lib/neutral/containers/index.mjs +9 -0
  15. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  16. package/dist/lib/neutral/create-object-F6TKVAGV.mjs +39 -0
  17. package/dist/lib/neutral/create-object-F6TKVAGV.mjs.map +7 -0
  18. package/dist/lib/neutral/hooks/index.mjs +40 -0
  19. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  20. package/dist/lib/neutral/index.mjs +14 -0
  21. package/dist/lib/neutral/meta.json +1 -0
  22. package/dist/lib/{browser → neutral}/meta.mjs +2 -3
  23. package/dist/lib/neutral/plugin.mjs +12 -0
  24. package/dist/lib/neutral/plugin.mjs.map +7 -0
  25. package/dist/lib/neutral/react-surface-U3JEY7V7.mjs +26 -0
  26. package/dist/lib/neutral/react-surface-U3JEY7V7.mjs.map +7 -0
  27. package/dist/lib/neutral/translations.mjs +33 -0
  28. package/dist/lib/neutral/translations.mjs.map +7 -0
  29. package/dist/lib/neutral/types/index.mjs +10 -0
  30. package/dist/types/data/cities.d.ts +4 -4
  31. package/dist/types/data/cities.d.ts.map +1 -1
  32. package/dist/types/data/countries-110m.d.ts +19 -22
  33. package/dist/types/data/countries-110m.d.ts.map +1 -1
  34. package/dist/types/src/ExplorerPlugin.d.ts +3 -1
  35. package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
  36. package/dist/types/src/ExplorerPlugin.test.d.ts +2 -0
  37. package/dist/types/src/ExplorerPlugin.test.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  39. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  40. package/dist/types/src/capabilities/index.d.ts +8 -2
  41. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  43. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  44. package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
  45. package/dist/types/src/components/Chart/Chart.stories.d.ts +12 -5
  46. package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
  47. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  48. package/dist/types/src/components/Globe/Globe.stories.d.ts +12 -5
  49. package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
  50. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts +13 -0
  51. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts.map +1 -0
  52. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts +17 -0
  53. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts.map +1 -0
  54. package/dist/types/src/components/Graph/ForceGraph.d.ts +12 -5
  55. package/dist/types/src/components/Graph/ForceGraph.d.ts.map +1 -1
  56. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts +15 -4
  57. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
  58. package/dist/types/src/components/Graph/{adapter.d.ts → graph-adapter.d.ts} +2 -2
  59. package/dist/types/src/components/Graph/graph-adapter.d.ts.map +1 -0
  60. package/dist/types/src/components/Graph/index.d.ts +1 -1
  61. package/dist/types/src/components/Graph/index.d.ts.map +1 -1
  62. package/dist/types/src/components/Graph/testing.d.ts +1 -1
  63. package/dist/types/src/components/Graph/testing.d.ts.map +1 -1
  64. package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
  65. package/dist/types/src/components/Tree/Tree.stories.d.ts +16 -15
  66. package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
  67. package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts.map +1 -1
  68. package/dist/types/src/components/Tree/layout/RadialTree.d.ts.map +1 -1
  69. package/dist/types/src/components/Tree/layout/TidyTree.d.ts.map +1 -1
  70. package/dist/types/src/components/Tree/testing/generator.d.ts.map +1 -1
  71. package/dist/types/src/components/Tree/types/tree.d.ts +19 -17
  72. package/dist/types/src/components/Tree/types/tree.d.ts.map +1 -1
  73. package/dist/types/src/components/Tree/types/types.d.ts +1 -1
  74. package/dist/types/src/components/Tree/types/types.d.ts.map +1 -1
  75. package/dist/types/src/components/index.d.ts +0 -4
  76. package/dist/types/src/components/index.d.ts.map +1 -1
  77. package/dist/types/src/components/plot.d.ts.map +1 -1
  78. package/dist/types/src/containers/ExplorerContainer/ExplorerContainer.d.ts +6 -0
  79. package/dist/types/src/containers/ExplorerContainer/ExplorerContainer.d.ts.map +1 -0
  80. package/dist/types/src/containers/ExplorerContainer/index.d.ts +2 -0
  81. package/dist/types/src/containers/ExplorerContainer/index.d.ts.map +1 -0
  82. package/dist/types/src/containers/index.d.ts +3 -0
  83. package/dist/types/src/containers/index.d.ts.map +1 -0
  84. package/dist/types/src/hooks/useGraphModel.d.ts +2 -2
  85. package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
  86. package/dist/types/src/index.d.ts +1 -3
  87. package/dist/types/src/index.d.ts.map +1 -1
  88. package/dist/types/src/meta.d.ts +2 -3
  89. package/dist/types/src/meta.d.ts.map +1 -1
  90. package/dist/types/src/plugin.d.ts +3 -0
  91. package/dist/types/src/plugin.d.ts.map +1 -0
  92. package/dist/types/src/translations.d.ts +36 -22
  93. package/dist/types/src/translations.d.ts.map +1 -1
  94. package/dist/types/src/types/ExplorerAction.d.ts +6 -0
  95. package/dist/types/src/types/ExplorerAction.d.ts.map +1 -0
  96. package/dist/types/src/types/Graph.d.ts +23 -0
  97. package/dist/types/src/types/Graph.d.ts.map +1 -0
  98. package/dist/types/src/types/index.d.ts +2 -2
  99. package/dist/types/src/types/index.d.ts.map +1 -1
  100. package/dist/types/tsconfig.tsbuildinfo +1 -1
  101. package/package.json +111 -53
  102. package/src/ExplorerPlugin.test.ts +26 -0
  103. package/src/ExplorerPlugin.tsx +15 -54
  104. package/src/capabilities/create-object.ts +36 -0
  105. package/src/capabilities/index.ts +3 -3
  106. package/src/capabilities/react-surface.tsx +24 -15
  107. package/src/components/Chart/Chart.stories.tsx +22 -27
  108. package/src/components/Chart/Chart.tsx +1 -1
  109. package/src/components/Globe/Globe.stories.tsx +25 -26
  110. package/src/components/Globe/Globe.tsx +1 -1
  111. package/src/components/Graph/CanvasForceGraph.stories.tsx +83 -0
  112. package/src/components/Graph/CanvasForceGraph.tsx +124 -0
  113. package/src/components/Graph/ForceGraph.stories.tsx +90 -39
  114. package/src/components/Graph/ForceGraph.tsx +104 -85
  115. package/src/components/Graph/{adapter.ts → graph-adapter.ts} +14 -8
  116. package/src/components/Graph/index.ts +1 -1
  117. package/src/components/Graph/testing.ts +13 -10
  118. package/src/components/Tree/Tree.stories.tsx +57 -43
  119. package/src/components/Tree/Tree.tsx +11 -6
  120. package/src/components/Tree/testing/generator.ts +4 -2
  121. package/src/components/Tree/types/tree.test.ts +9 -7
  122. package/src/components/Tree/types/tree.ts +42 -21
  123. package/src/components/Tree/types/types.ts +1 -1
  124. package/src/components/index.ts +0 -4
  125. package/src/containers/ExplorerContainer/ExplorerContainer.tsx +51 -0
  126. package/src/containers/ExplorerContainer/index.ts +5 -0
  127. package/src/containers/index.ts +7 -0
  128. package/src/hooks/useGraphModel.ts +19 -11
  129. package/src/index.ts +1 -4
  130. package/src/meta.ts +9 -6
  131. package/src/plugin.ts +9 -0
  132. package/src/translations.ts +20 -13
  133. package/src/types/ExplorerAction.ts +20 -0
  134. package/src/types/Graph.ts +49 -0
  135. package/src/types/index.ts +2 -2
  136. package/src/typings.d.ts +8 -0
  137. package/dist/lib/browser/ExplorerContainer-DXL34I3F.mjs +0 -37
  138. package/dist/lib/browser/ExplorerContainer-DXL34I3F.mjs.map +0 -7
  139. package/dist/lib/browser/chunk-73YTQHOT.mjs +0 -38
  140. package/dist/lib/browser/chunk-73YTQHOT.mjs.map +0 -7
  141. package/dist/lib/browser/chunk-JRKQNHS6.mjs.map +0 -7
  142. package/dist/lib/browser/chunk-OBAFAA5V.mjs +0 -21
  143. package/dist/lib/browser/chunk-OBAFAA5V.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-SLB2F5AO.mjs +0 -30
  145. package/dist/lib/browser/chunk-SLB2F5AO.mjs.map +0 -7
  146. package/dist/lib/browser/chunk-Z5BGAHLD.mjs +0 -187
  147. package/dist/lib/browser/chunk-Z5BGAHLD.mjs.map +0 -7
  148. package/dist/lib/browser/index.mjs +0 -111
  149. package/dist/lib/browser/index.mjs.map +0 -7
  150. package/dist/lib/browser/intent-resolver-JZKYVFQJ.mjs +0 -24
  151. package/dist/lib/browser/intent-resolver-JZKYVFQJ.mjs.map +0 -7
  152. package/dist/lib/browser/meta.json +0 -1
  153. package/dist/lib/browser/react-surface-IAEP2GBT.mjs +0 -31
  154. package/dist/lib/browser/react-surface-IAEP2GBT.mjs.map +0 -7
  155. package/dist/lib/browser/types/index.mjs +0 -10
  156. package/dist/lib/node/ExplorerContainer-VUXH55VV.cjs +0 -61
  157. package/dist/lib/node/ExplorerContainer-VUXH55VV.cjs.map +0 -7
  158. package/dist/lib/node/chunk-4T4LCT5R.cjs +0 -52
  159. package/dist/lib/node/chunk-4T4LCT5R.cjs.map +0 -7
  160. package/dist/lib/node/chunk-BCDVG2CH.cjs +0 -44
  161. package/dist/lib/node/chunk-BCDVG2CH.cjs.map +0 -7
  162. package/dist/lib/node/chunk-MLRYW4WQ.cjs +0 -56
  163. package/dist/lib/node/chunk-MLRYW4WQ.cjs.map +0 -7
  164. package/dist/lib/node/chunk-SVU4VMYX.cjs +0 -11339
  165. package/dist/lib/node/chunk-SVU4VMYX.cjs.map +0 -7
  166. package/dist/lib/node/chunk-TY543HPV.cjs +0 -214
  167. package/dist/lib/node/chunk-TY543HPV.cjs.map +0 -7
  168. package/dist/lib/node/index.cjs +0 -130
  169. package/dist/lib/node/index.cjs.map +0 -7
  170. package/dist/lib/node/intent-resolver-G2MFNIXA.cjs +0 -39
  171. package/dist/lib/node/intent-resolver-G2MFNIXA.cjs.map +0 -7
  172. package/dist/lib/node/meta.cjs +0 -31
  173. package/dist/lib/node/meta.cjs.map +0 -7
  174. package/dist/lib/node/meta.json +0 -1
  175. package/dist/lib/node/react-surface-UJD5RGRZ.cjs +0 -53
  176. package/dist/lib/node/react-surface-UJD5RGRZ.cjs.map +0 -7
  177. package/dist/lib/node/types/index.cjs +0 -32
  178. package/dist/lib/node/types/index.cjs.map +0 -7
  179. package/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs +0 -38
  180. package/dist/lib/node-esm/ExplorerContainer-MFE7PXF4.mjs.map +0 -7
  181. package/dist/lib/node-esm/chunk-3CMBLK6W.mjs +0 -23
  182. package/dist/lib/node-esm/chunk-3CMBLK6W.mjs.map +0 -7
  183. package/dist/lib/node-esm/chunk-AE7VHUJM.mjs +0 -189
  184. package/dist/lib/node-esm/chunk-AE7VHUJM.mjs.map +0 -7
  185. package/dist/lib/node-esm/chunk-IUFYOE44.mjs +0 -11331
  186. package/dist/lib/node-esm/chunk-N6VEANUZ.mjs +0 -39
  187. package/dist/lib/node-esm/chunk-N6VEANUZ.mjs.map +0 -7
  188. package/dist/lib/node-esm/chunk-VSORIAHH.mjs +0 -32
  189. package/dist/lib/node-esm/chunk-VSORIAHH.mjs.map +0 -7
  190. package/dist/lib/node-esm/index.mjs +0 -112
  191. package/dist/lib/node-esm/index.mjs.map +0 -7
  192. package/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs +0 -25
  193. package/dist/lib/node-esm/intent-resolver-7G6ZKM6E.mjs.map +0 -7
  194. package/dist/lib/node-esm/meta.json +0 -1
  195. package/dist/lib/node-esm/meta.mjs +0 -10
  196. package/dist/lib/node-esm/react-surface-XBH3WZDL.mjs +0 -32
  197. package/dist/lib/node-esm/react-surface-XBH3WZDL.mjs.map +0 -7
  198. package/dist/lib/node-esm/types/index.mjs +0 -11
  199. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  200. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  201. package/dist/types/src/components/ExplorerContainer.d.ts +0 -9
  202. package/dist/types/src/components/ExplorerContainer.d.ts.map +0 -1
  203. package/dist/types/src/components/Graph/D3ForceGraph.d.ts +0 -14
  204. package/dist/types/src/components/Graph/D3ForceGraph.d.ts.map +0 -1
  205. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +0 -6
  206. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +0 -1
  207. package/dist/types/src/components/Graph/adapter.d.ts.map +0 -1
  208. package/dist/types/src/types/schema.d.ts +0 -12
  209. package/dist/types/src/types/schema.d.ts.map +0 -1
  210. package/dist/types/src/types/types.d.ts +0 -18
  211. package/dist/types/src/types/types.d.ts.map +0 -1
  212. package/src/capabilities/intent-resolver.ts +0 -19
  213. package/src/components/ExplorerContainer.tsx +0 -36
  214. package/src/components/Graph/D3ForceGraph.stories.tsx +0 -64
  215. package/src/components/Graph/D3ForceGraph.tsx +0 -101
  216. package/src/types/schema.ts +0 -16
  217. package/src/types/types.ts +0 -21
  218. /package/dist/lib/{browser/meta.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  219. /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
  220. /package/dist/lib/{node-esm → neutral}/meta.mjs.map +0 -0
  221. /package/dist/lib/{node-esm → neutral}/types/index.mjs.map +0 -0
@@ -1,39 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- EXPLORER_PLUGIN
4
- } from "./chunk-3CMBLK6W.mjs";
5
-
6
- // packages/plugins/plugin-explorer/src/types/schema.ts
7
- import { Schema } from "effect";
8
- import { TypedObject } from "@dxos/echo-schema";
9
- var ViewType = class extends TypedObject({
10
- typename: "dxos.org/type/ExplorerView",
11
- version: "0.1.0"
12
- })({
13
- name: Schema.optional(Schema.String),
14
- type: Schema.String
15
- }) {
16
- };
17
-
18
- // packages/plugins/plugin-explorer/src/types/types.ts
19
- import { Schema as Schema2 } from "effect";
20
- (function(ExplorerAction2) {
21
- const EXPLORER_ACTION = `${EXPLORER_PLUGIN}/action`;
22
- class Create extends Schema2.TaggedClass()(`${EXPLORER_ACTION}/create`, {
23
- input: Schema2.Struct({
24
- name: Schema2.optional(Schema2.String)
25
- }),
26
- output: Schema2.Struct({
27
- object: ViewType
28
- })
29
- }) {
30
- }
31
- ExplorerAction2.Create = Create;
32
- })(ExplorerAction || (ExplorerAction = {}));
33
- var ExplorerAction;
34
-
35
- export {
36
- ViewType,
37
- ExplorerAction
38
- };
39
- //# sourceMappingURL=chunk-N6VEANUZ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/schema.ts", "../../../src/types/types.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { TypedObject } from '@dxos/echo-schema';\n\n// TODO(burdon): Clashes with sdk/view.\nexport class ViewType extends TypedObject({\n typename: 'dxos.org/type/ExplorerView',\n version: '0.1.0',\n})({\n name: Schema.optional(Schema.String),\n type: Schema.String,\n}) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { ViewType } from './schema';\nimport { EXPLORER_PLUGIN } from '../meta';\n\nexport namespace ExplorerAction {\n const EXPLORER_ACTION = `${EXPLORER_PLUGIN}/action`;\n\n export class Create extends Schema.TaggedClass<Create>()(`${EXPLORER_ACTION}/create`, {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: ViewType,\n }),\n }) {}\n}\n"],
5
- "mappings": ";;;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,mBAAmB;AAGrB,IAAMC,WAAN,cAAuBC,YAAY;EACxCC,UAAU;EACVC,SAAS;AACX,CAAA,EAAG;EACDC,MAAMC,OAAOC,SAASD,OAAOE,MAAM;EACnCC,MAAMH,OAAOE;AACf,CAAA,EAAA;AAAI;;;ACXJ,SAASE,UAAAA,eAAc;UAKNC,iBAAAA;AACf,QAAMC,kBAAkB,GAAGC,eAAAA;EAEpB,MAAMC,eAAeC,QAAOC,YAAW,EAAW,GAAGJ,eAAAA,WAA0B;IACpFK,OAAOF,QAAOG,OAAO;MACnBC,MAAMJ,QAAOK,SAASL,QAAOM,MAAM;IACrC,CAAA;IACAC,QAAQP,QAAOG,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;kBAPSV,SAAAA;AAQf,GAXiBH,mBAAAA,iBAAAA,CAAAA,EAAAA;;",
6
- "names": ["Schema", "TypedObject", "ViewType", "TypedObject", "typename", "version", "name", "Schema", "optional", "String", "type", "Schema", "ExplorerAction", "EXPLORER_ACTION", "EXPLORER_PLUGIN", "Create", "Schema", "TaggedClass", "input", "Struct", "name", "optional", "String", "output", "object", "ViewType"]
7
- }
@@ -1,32 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // packages/plugins/plugin-explorer/src/hooks/useGraphModel.ts
4
- import { useEffect, useState } from "react";
5
- import { SpaceGraphModel } from "@dxos/schema";
6
- var useGraphModel = (space, filter, options) => {
7
- const [model, setModel] = useState(void 0);
8
- useEffect(() => {
9
- if (!space) {
10
- void model?.close();
11
- setModel(void 0);
12
- return;
13
- }
14
- if (!model) {
15
- const model2 = new SpaceGraphModel().setFilter(filter).setOptions(options);
16
- void model2.open(space);
17
- setModel(model2);
18
- } else {
19
- model.setFilter(filter).setOptions(options);
20
- }
21
- }, [
22
- space,
23
- filter,
24
- options
25
- ]);
26
- return model;
27
- };
28
-
29
- export {
30
- useGraphModel
31
- };
32
- //# sourceMappingURL=chunk-VSORIAHH.mjs.map
@@ -1,7 +0,0 @@
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 { type Filter, 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): SpaceGraphModel | undefined => {\n const [model, setModel] = useState<SpaceGraphModel | undefined>(undefined);\n useEffect(() => {\n if (!space) {\n void model?.close();\n setModel(undefined);\n return;\n }\n\n // TODO(burdon): Does this need to be a dependency?\n if (!model) {\n const model = new SpaceGraphModel().setFilter(filter).setOptions(options);\n void model.open(space);\n setModel(model);\n } else {\n model.setFilter(filter).setOptions(options);\n }\n }, [space, filter, options]);\n\n return model;\n};\n"],
5
- "mappings": ";;;AAIA,SAASA,WAAWC,gBAAgB;AAGpC,SAASC,uBAAoD;AAGtD,IAAMC,gBAAgB,CAC3BC,OACAC,QACAC,YAAAA;AAEA,QAAM,CAACC,OAAOC,QAAAA,IAAYC,SAAsCC,MAAAA;AAChEC,YAAU,MAAA;AACR,QAAI,CAACP,OAAO;AACV,WAAKG,OAAOK,MAAAA;AACZJ,eAASE,MAAAA;AACT;IACF;AAGA,QAAI,CAACH,OAAO;AACV,YAAMA,SAAQ,IAAIM,gBAAAA,EAAkBC,UAAUT,MAAAA,EAAQU,WAAWT,OAAAA;AACjE,WAAKC,OAAMS,KAAKZ,KAAAA;AAChBI,eAASD,MAAAA;IACX,OAAO;AACLA,YAAMO,UAAUT,MAAAA,EAAQU,WAAWT,OAAAA;IACrC;EACF,GAAG;IAACF;IAAOC;IAAQC;GAAQ;AAE3B,SAAOC;AACT;",
6
- "names": ["useEffect", "useState", "SpaceGraphModel", "useGraphModel", "space", "filter", "options", "model", "setModel", "useState", "undefined", "useEffect", "close", "SpaceGraphModel", "setFilter", "setOptions", "open"]
7
- }
@@ -1,112 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
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
- meta
23
- } from "./chunk-3CMBLK6W.mjs";
24
-
25
- // packages/plugins/plugin-explorer/src/ExplorerPlugin.tsx
26
- import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from "@dxos/app-framework";
27
- import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
28
- import { SpaceCapabilities } from "@dxos/plugin-space";
29
- import { defineObjectForm } from "@dxos/plugin-space/types";
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
- ]);
99
- export {
100
- Chart,
101
- D3ForceGraph,
102
- EXPLORER_PLUGIN,
103
- ExplorerContainer,
104
- ExplorerPlugin,
105
- ForceGraph,
106
- Globe,
107
- Tree,
108
- defaultTreeLayoutSlots,
109
- meta,
110
- useGraphModel
111
- };
112
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
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"]
7
- }
@@ -1,25 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- ExplorerAction,
4
- ViewType
5
- } from "./chunk-N6VEANUZ.mjs";
6
- import "./chunk-3CMBLK6W.mjs";
7
-
8
- // packages/plugins/plugin-explorer/src/capabilities/intent-resolver.ts
9
- import { contributes, Capabilities, createResolver } from "@dxos/app-framework";
10
- import { Obj } from "@dxos/echo";
11
- var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
12
- intent: ExplorerAction.Create,
13
- resolve: ({ name }) => ({
14
- data: {
15
- object: Obj.make(ViewType, {
16
- name,
17
- type: ""
18
- })
19
- }
20
- })
21
- }));
22
- export {
23
- intent_resolver_default as default
24
- };
25
- //# sourceMappingURL=intent-resolver-7G6ZKM6E.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/intent-resolver.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, Capabilities, createResolver } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\n\nimport { ExplorerAction, ViewType } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ExplorerAction.Create,\n resolve: ({ name }) => ({\n data: { object: Obj.make(ViewType, { name, type: '' }) },\n }),\n }),\n );\n"],
5
- "mappings": ";;;;;;;;AAIA,SAASA,aAAaC,cAAcC,sBAAsB;AAC1D,SAASC,WAAW;AAIpB,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,eAAeC;EACvBC,SAAS,CAAC,EAAEC,KAAI,OAAQ;IACtBC,MAAM;MAAEC,QAAQC,IAAIC,KAAKC,UAAU;QAAEL;QAAMM,MAAM;MAAG,CAAA;IAAG;EACzD;AACF,CAAA,CAAA;",
6
- "names": ["contributes", "Capabilities", "createResolver", "Obj", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ExplorerAction", "Create", "resolve", "name", "data", "object", "Obj", "make", "ViewType", "type"]
7
- }
@@ -1 +0,0 @@
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,10 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- EXPLORER_PLUGIN,
4
- meta
5
- } from "./chunk-3CMBLK6W.mjs";
6
- export {
7
- EXPLORER_PLUGIN,
8
- meta
9
- };
10
- //# sourceMappingURL=meta.mjs.map
@@ -1,32 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- ExplorerContainer
4
- } from "./chunk-IUFYOE44.mjs";
5
- import "./chunk-AE7VHUJM.mjs";
6
- import {
7
- ViewType
8
- } from "./chunk-N6VEANUZ.mjs";
9
- import {
10
- EXPLORER_PLUGIN
11
- } from "./chunk-3CMBLK6W.mjs";
12
-
13
- // packages/plugins/plugin-explorer/src/capabilities/react-surface.tsx
14
- import React from "react";
15
- import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
16
- import { Obj } from "@dxos/echo";
17
- var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
18
- id: `${EXPLORER_PLUGIN}/article`,
19
- role: [
20
- "article",
21
- "section"
22
- ],
23
- filter: (data) => Obj.instanceOf(ViewType, data.subject),
24
- component: ({ data, role }) => /* @__PURE__ */ React.createElement(ExplorerContainer, {
25
- view: data.subject,
26
- role
27
- })
28
- }));
29
- export {
30
- react_surface_default as default
31
- };
32
- //# sourceMappingURL=react-surface-XBH3WZDL.mjs.map
@@ -1,7 +0,0 @@
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 { Obj } from '@dxos/echo';\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 } => Obj.instanceOf(ViewType, data.subject),\n component: ({ data, role }) => <ExplorerContainer view={data.subject} role={role} />,\n }),\n );\n"],
5
- "mappings": ";;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,WAAW;AAMpB,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAI,GAAGC,eAAAA;EACPC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAAwCC,IAAIC,WAAWC,UAAUH,KAAKI,OAAO;EACtFC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAO,sBAAA,cAACQ,mBAAAA;IAAkBC,MAAMP,KAAKI;IAASN;;AACxE,CAAA,CAAA;",
6
- "names": ["React", "Capabilities", "contributes", "createSurface", "Obj", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "EXPLORER_PLUGIN", "role", "filter", "data", "Obj", "instanceOf", "ViewType", "subject", "component", "ExplorerContainer", "view"]
7
- }
@@ -1,11 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- ExplorerAction,
4
- ViewType
5
- } from "../chunk-N6VEANUZ.mjs";
6
- import "../chunk-3CMBLK6W.mjs";
7
- export {
8
- ExplorerAction,
9
- ViewType
10
- };
11
- //# sourceMappingURL=index.mjs.map
@@ -1,4 +0,0 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
3
- export default _default;
4
- //# sourceMappingURL=intent-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,YAAY,EAAkB,MAAM,qBAAqB,CAAC;;AAKhF,wBASI"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { type ViewType } from '../types';
3
- type ExplorerContainerProps = {
4
- role: string;
5
- view: ViewType;
6
- };
7
- declare const ExplorerContainer: ({ role, view }: ExplorerContainerProps) => React.JSX.Element | null;
8
- export default ExplorerContainer;
9
- //# sourceMappingURL=ExplorerContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExplorerContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ExplorerContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,gBAAgB,sBAAsB,6BAchE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,14 +0,0 @@
1
- import { type FC } from 'react';
2
- import { SelectionModel } from '@dxos/graph';
3
- import { type ThemedClassName } from '@dxos/react-ui';
4
- import { type GraphProps } from '@dxos/react-ui-graph';
5
- import { type SpaceGraphModel } from '@dxos/schema';
6
- import '@dxos/react-ui-graph/styles/graph.css';
7
- export type D3ForceGraphProps = ThemedClassName<{
8
- model?: SpaceGraphModel;
9
- match?: RegExp;
10
- selection?: SelectionModel;
11
- grid?: boolean;
12
- } & Pick<GraphProps, 'drag'>>;
13
- export declare const D3ForceGraph: FC<D3ForceGraphProps>;
14
- //# sourceMappingURL=D3ForceGraph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"D3ForceGraph.d.ts","sourceRoot":"","sources":["../../../../../src/components/Graph/D3ForceGraph.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAA2C,MAAM,OAAO,CAAC;AAGhF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAIL,KAAK,UAAU,EAGhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAuB,KAAK,eAAe,EAAuB,MAAM,cAAc,CAAC;AAE9F,OAAO,uCAAuC,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAC7C;IACE,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAC7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAqE9C,CAAC"}
@@ -1,6 +0,0 @@
1
- import '@dxos-theme';
2
- import { type Meta } from '@storybook/react';
3
- declare const meta: Meta;
4
- export default meta;
5
- export declare const Default: {};
6
- //# sourceMappingURL=D3ForceGraph.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"D3ForceGraph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Graph/D3ForceGraph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAyC7C,QAAA,MAAM,IAAI,EAAE,IAYX,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../src/components/Graph/adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,qBAAa,YAAa,YAAW,SAAS;IAIhC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;gBAEb,KAAK,EAAE,KAAK;IAezC,IAAI,KAAK,gBAER;IAED,IAAI,KAAK,gBAER;CACF"}
@@ -1,12 +0,0 @@
1
- import { Schema } from 'effect';
2
- declare const ViewType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
3
- name: Schema.optional<typeof Schema.String>;
4
- type: typeof Schema.String;
5
- }, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<{
6
- name: Schema.optional<typeof Schema.String>;
7
- type: typeof Schema.String;
8
- }>>;
9
- export declare class ViewType extends ViewType_base {
10
- }
11
- export {};
12
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;AAKhC,qBAAa,QAAS,SAAQ,aAM5B;CAAG"}
@@ -1,18 +0,0 @@
1
- import { Schema } from 'effect';
2
- import { ViewType } from './schema';
3
- export declare namespace ExplorerAction {
4
- const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/explorer/action/create", {
5
- readonly _tag: Schema.tag<"dxos.org/plugin/explorer/action/create">;
6
- } & {
7
- input: Schema.Struct<{
8
- name: Schema.optional<typeof Schema.String>;
9
- }>;
10
- output: Schema.Struct<{
11
- object: typeof ViewType;
12
- }>;
13
- }>;
14
- export class Create extends Create_base {
15
- }
16
- export {};
17
- }
18
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,yBAAiB,cAAc,CAAC;;;;;;;;;;;IAG9B,MAAM,OAAO,MAAO,SAAQ,WAO1B;KAAG;;CACN"}
@@ -1,19 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { contributes, Capabilities, createResolver } from '@dxos/app-framework';
6
- import { Obj } from '@dxos/echo';
7
-
8
- import { ExplorerAction, ViewType } from '../types';
9
-
10
- export default () =>
11
- contributes(
12
- Capabilities.IntentResolver,
13
- createResolver({
14
- intent: ExplorerAction.Create,
15
- resolve: ({ name }) => ({
16
- data: { object: Obj.make(ViewType, { name, type: '' }) },
17
- }),
18
- }),
19
- );
@@ -1,36 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import React from 'react';
6
-
7
- import { useGlobalSearch } from '@dxos/plugin-search';
8
- import { getSpace } from '@dxos/react-client/echo';
9
- import { StackItem } from '@dxos/react-ui-stack';
10
-
11
- import { D3ForceGraph } from './Graph';
12
- import { useGraphModel } from '../hooks';
13
- import { type ViewType } from '../types';
14
-
15
- type ExplorerContainerProps = {
16
- role: string;
17
- view: ViewType;
18
- };
19
-
20
- const ExplorerContainer = ({ role, view }: ExplorerContainerProps) => {
21
- const space = getSpace(view);
22
- const model = useGraphModel(space);
23
- const { match } = useGlobalSearch();
24
-
25
- if (!space || !model) {
26
- return null;
27
- }
28
-
29
- return (
30
- <StackItem.Content size={role === 'section' ? 'square' : 'intrinsic'}>
31
- <D3ForceGraph model={model} match={match} />
32
- </StackItem.Content>
33
- );
34
- };
35
-
36
- export default ExplorerContainer;