@dxos/plugin-explorer 0.8.4-main.72ec0f3 → 0.8.4-main.765dc60934

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 (234) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/ExplorerArticle-EW2MBCRK.mjs +141 -0
  3. package/dist/lib/neutral/ExplorerArticle-EW2MBCRK.mjs.map +7 -0
  4. package/dist/lib/neutral/ExplorerPlugin.mjs +10 -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-7SPMPHRS.mjs +72 -0
  8. package/dist/lib/neutral/chunk-7SPMPHRS.mjs.map +7 -0
  9. package/dist/lib/neutral/chunk-GRJXLL4Z.mjs +25 -0
  10. package/dist/lib/neutral/chunk-GRJXLL4Z.mjs.map +7 -0
  11. package/dist/lib/{browser/chunk-UBHZGWZQ.mjs → neutral/chunk-HPIS2WXY.mjs} +2 -2
  12. package/dist/lib/neutral/chunk-HPIS2WXY.mjs.map +7 -0
  13. package/dist/lib/{browser/chunk-ARBGXQFH.mjs → neutral/components/index.mjs} +817 -288
  14. package/dist/lib/{node-esm/chunk-NPIP4VEH.mjs.map → neutral/components/index.mjs.map} +4 -4
  15. package/dist/lib/neutral/containers/index.mjs +9 -0
  16. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  17. package/dist/lib/neutral/create-object-F6TKVAGV.mjs +39 -0
  18. package/dist/lib/neutral/create-object-F6TKVAGV.mjs.map +7 -0
  19. package/dist/lib/neutral/hooks/index.mjs +45 -0
  20. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  21. package/dist/lib/neutral/index.mjs +14 -0
  22. package/dist/lib/neutral/meta.json +1 -0
  23. package/dist/lib/{browser → neutral}/meta.mjs +1 -1
  24. package/dist/lib/neutral/plugin.mjs +12 -0
  25. package/dist/lib/neutral/plugin.mjs.map +7 -0
  26. package/dist/lib/neutral/react-surface-APBW2VQG.mjs +26 -0
  27. package/dist/lib/neutral/react-surface-APBW2VQG.mjs.map +7 -0
  28. package/dist/lib/neutral/testing.mjs +8 -0
  29. package/dist/lib/neutral/translations.mjs +33 -0
  30. package/dist/lib/neutral/translations.mjs.map +7 -0
  31. package/dist/lib/{browser → neutral}/types/index.mjs +1 -2
  32. package/dist/types/data/cities.d.ts +4 -4
  33. package/dist/types/data/cities.d.ts.map +1 -1
  34. package/dist/types/data/countries-110m.d.ts +19 -22
  35. package/dist/types/data/countries-110m.d.ts.map +1 -1
  36. package/dist/types/src/ExplorerPlugin.d.ts +3 -1
  37. package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
  38. package/dist/types/src/ExplorerPlugin.test.d.ts +2 -0
  39. package/dist/types/src/ExplorerPlugin.test.d.ts.map +1 -0
  40. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  41. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  42. package/dist/types/src/capabilities/index.d.ts +8 -2
  43. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  44. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  45. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  46. package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
  47. package/dist/types/src/components/Chart/Chart.stories.d.ts +4 -1
  48. package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
  49. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  50. package/dist/types/src/components/Globe/Globe.stories.d.ts +5 -2
  51. package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
  52. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts +13 -0
  53. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts.map +1 -0
  54. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts +17 -0
  55. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts.map +1 -0
  56. package/dist/types/src/components/Graph/ForceGraph.d.ts +12 -5
  57. package/dist/types/src/components/Graph/ForceGraph.d.ts.map +1 -1
  58. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts +4 -2
  59. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/Graph/{adapter.d.ts → graph-adapter.d.ts} +2 -2
  61. package/dist/types/src/components/Graph/graph-adapter.d.ts.map +1 -0
  62. package/dist/types/src/components/Graph/index.d.ts +1 -1
  63. package/dist/types/src/components/Graph/index.d.ts.map +1 -1
  64. package/dist/types/src/components/Tree/EdgeBundling.stories.d.ts +21 -0
  65. package/dist/types/src/components/Tree/EdgeBundling.stories.d.ts.map +1 -0
  66. package/dist/types/src/components/Tree/Tree.d.ts +20 -23
  67. package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
  68. package/dist/types/src/components/Tree/Tree.stories.d.ts +5 -12
  69. package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
  70. package/dist/types/src/components/Tree/index.d.ts +3 -0
  71. package/dist/types/src/components/Tree/index.d.ts.map +1 -1
  72. package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts +35 -2
  73. package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts.map +1 -1
  74. package/dist/types/src/components/Tree/layout/RadialTree.d.ts +35 -2
  75. package/dist/types/src/components/Tree/layout/RadialTree.d.ts.map +1 -1
  76. package/dist/types/src/components/Tree/layout/TidyTree.d.ts +24 -2
  77. package/dist/types/src/components/Tree/layout/TidyTree.d.ts.map +1 -1
  78. package/dist/types/src/components/Tree/layout/hierarchy.d.ts +17 -0
  79. package/dist/types/src/components/Tree/layout/hierarchy.d.ts.map +1 -0
  80. package/dist/types/src/components/Tree/layout/index.d.ts +5 -4
  81. package/dist/types/src/components/Tree/layout/index.d.ts.map +1 -1
  82. package/dist/types/src/components/Tree/layout/slots.d.ts +7 -0
  83. package/dist/types/src/components/Tree/layout/slots.d.ts.map +1 -0
  84. package/dist/types/src/components/Tree/layout/useContainerSize.d.ts +15 -0
  85. package/dist/types/src/components/Tree/layout/useContainerSize.d.ts.map +1 -0
  86. package/dist/types/src/components/Tree/space-graph-adapter.d.ts +32 -0
  87. package/dist/types/src/components/Tree/space-graph-adapter.d.ts.map +1 -0
  88. package/dist/types/src/components/Tree/testing/generator.d.ts.map +1 -1
  89. package/dist/types/src/components/Tree/testing/index.d.ts +1 -0
  90. package/dist/types/src/components/Tree/testing/index.d.ts.map +1 -1
  91. package/dist/types/src/components/Tree/testing/relations.d.ts +47 -0
  92. package/dist/types/src/components/Tree/testing/relations.d.ts.map +1 -0
  93. package/dist/types/src/components/Tree/types/tree.d.ts +18 -16
  94. package/dist/types/src/components/Tree/types/tree.d.ts.map +1 -1
  95. package/dist/types/src/components/Tree/types/types.d.ts +14 -4
  96. package/dist/types/src/components/Tree/types/types.d.ts.map +1 -1
  97. package/dist/types/src/components/index.d.ts +0 -2
  98. package/dist/types/src/components/index.d.ts.map +1 -1
  99. package/dist/types/src/components/plot.d.ts.map +1 -1
  100. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.d.ts +8 -0
  101. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.d.ts.map +1 -0
  102. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.stories.d.ts +24 -0
  103. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.stories.d.ts.map +1 -0
  104. package/dist/types/src/containers/ExplorerArticle/index.d.ts +2 -0
  105. package/dist/types/src/containers/ExplorerArticle/index.d.ts.map +1 -0
  106. package/dist/types/src/containers/index.d.ts +3 -0
  107. package/dist/types/src/containers/index.d.ts.map +1 -0
  108. package/dist/types/src/hooks/useGraphModel.d.ts +2 -2
  109. package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
  110. package/dist/types/src/index.d.ts +1 -3
  111. package/dist/types/src/index.d.ts.map +1 -1
  112. package/dist/types/src/meta.d.ts +2 -2
  113. package/dist/types/src/meta.d.ts.map +1 -1
  114. package/dist/types/src/plugin.d.ts +3 -0
  115. package/dist/types/src/plugin.d.ts.map +1 -0
  116. package/dist/types/src/testing.d.ts +2 -0
  117. package/dist/types/src/testing.d.ts.map +1 -0
  118. package/dist/types/src/translations.d.ts +31 -22
  119. package/dist/types/src/translations.d.ts.map +1 -1
  120. package/dist/types/src/types/ExplorerAction.d.ts +1 -18
  121. package/dist/types/src/types/ExplorerAction.d.ts.map +1 -1
  122. package/dist/types/src/types/Graph.d.ts +14 -25
  123. package/dist/types/src/types/Graph.d.ts.map +1 -1
  124. package/dist/types/tsconfig.tsbuildinfo +1 -1
  125. package/package.json +113 -62
  126. package/src/ExplorerPlugin.test.ts +26 -0
  127. package/src/ExplorerPlugin.tsx +15 -56
  128. package/src/capabilities/create-object.ts +36 -0
  129. package/src/capabilities/index.ts +3 -3
  130. package/src/capabilities/react-surface.tsx +24 -19
  131. package/src/components/Chart/Chart.stories.tsx +16 -23
  132. package/src/components/Globe/Globe.stories.tsx +19 -22
  133. package/src/components/Graph/CanvasForceGraph.stories.tsx +83 -0
  134. package/src/components/Graph/CanvasForceGraph.tsx +124 -0
  135. package/src/components/Graph/ForceGraph.stories.tsx +79 -42
  136. package/src/components/Graph/ForceGraph.tsx +104 -85
  137. package/src/components/Graph/{adapter.ts → graph-adapter.ts} +14 -8
  138. package/src/components/Graph/index.ts +1 -1
  139. package/src/components/Tree/EdgeBundling.stories.tsx +144 -0
  140. package/src/components/Tree/Tree.stories.tsx +20 -38
  141. package/src/components/Tree/Tree.tsx +69 -95
  142. package/src/components/Tree/index.ts +3 -0
  143. package/src/components/Tree/layout/HierarchicalEdgeBundling.tsx +277 -0
  144. package/src/components/Tree/layout/RadialTree.tsx +237 -0
  145. package/src/components/Tree/layout/TidyTree.tsx +246 -0
  146. package/src/components/Tree/layout/hierarchy.ts +32 -0
  147. package/src/components/Tree/layout/index.ts +5 -5
  148. package/src/components/Tree/layout/slots.ts +19 -0
  149. package/src/components/Tree/layout/useContainerSize.ts +43 -0
  150. package/src/components/Tree/space-graph-adapter.ts +96 -0
  151. package/src/components/Tree/testing/generator.ts +4 -2
  152. package/src/components/Tree/testing/index.ts +1 -0
  153. package/src/components/Tree/testing/relations.ts +182 -0
  154. package/src/components/Tree/types/tree.test.ts +5 -4
  155. package/src/components/Tree/types/tree.ts +41 -20
  156. package/src/components/Tree/types/types.ts +38 -29
  157. package/src/components/index.ts +0 -4
  158. package/src/containers/ExplorerArticle/ExplorerArticle.stories.tsx +119 -0
  159. package/src/containers/ExplorerArticle/ExplorerArticle.tsx +153 -0
  160. package/src/containers/ExplorerArticle/index.ts +5 -0
  161. package/src/containers/index.ts +7 -0
  162. package/src/hooks/useGraphModel.ts +25 -14
  163. package/src/index.ts +1 -4
  164. package/src/meta.ts +3 -3
  165. package/src/plugin.ts +9 -0
  166. package/src/testing.ts +7 -0
  167. package/src/translations.ts +16 -13
  168. package/src/types/ExplorerAction.ts +9 -19
  169. package/src/types/Graph.ts +25 -23
  170. package/src/typings.d.ts +8 -0
  171. package/dist/lib/browser/ExplorerContainer-NOLLVUTE.mjs +0 -50
  172. package/dist/lib/browser/ExplorerContainer-NOLLVUTE.mjs.map +0 -7
  173. package/dist/lib/browser/chunk-2MKBRIUT.mjs +0 -31
  174. package/dist/lib/browser/chunk-2MKBRIUT.mjs.map +0 -7
  175. package/dist/lib/browser/chunk-6BVXZQPP.mjs +0 -188
  176. package/dist/lib/browser/chunk-6BVXZQPP.mjs.map +0 -7
  177. package/dist/lib/browser/chunk-ARBGXQFH.mjs.map +0 -7
  178. package/dist/lib/browser/chunk-JDSUIUNR.mjs +0 -80
  179. package/dist/lib/browser/chunk-JDSUIUNR.mjs.map +0 -7
  180. package/dist/lib/browser/chunk-UBHZGWZQ.mjs.map +0 -7
  181. package/dist/lib/browser/index.mjs +0 -119
  182. package/dist/lib/browser/index.mjs.map +0 -7
  183. package/dist/lib/browser/intent-resolver-YS5LZC3A.mjs +0 -31
  184. package/dist/lib/browser/intent-resolver-YS5LZC3A.mjs.map +0 -7
  185. package/dist/lib/browser/meta.json +0 -1
  186. package/dist/lib/browser/react-surface-BVTCOVLK.mjs +0 -35
  187. package/dist/lib/browser/react-surface-BVTCOVLK.mjs.map +0 -7
  188. package/dist/lib/node-esm/ExplorerContainer-N3S5KSUX.mjs +0 -51
  189. package/dist/lib/node-esm/ExplorerContainer-N3S5KSUX.mjs.map +0 -7
  190. package/dist/lib/node-esm/chunk-3ODK27PU.mjs +0 -33
  191. package/dist/lib/node-esm/chunk-3ODK27PU.mjs.map +0 -7
  192. package/dist/lib/node-esm/chunk-CRSVAZNA.mjs +0 -190
  193. package/dist/lib/node-esm/chunk-CRSVAZNA.mjs.map +0 -7
  194. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  195. package/dist/lib/node-esm/chunk-MS72BATS.mjs +0 -81
  196. package/dist/lib/node-esm/chunk-MS72BATS.mjs.map +0 -7
  197. package/dist/lib/node-esm/chunk-NPIP4VEH.mjs +0 -11091
  198. package/dist/lib/node-esm/chunk-UXZM5VJB.mjs +0 -26
  199. package/dist/lib/node-esm/chunk-UXZM5VJB.mjs.map +0 -7
  200. package/dist/lib/node-esm/index.mjs +0 -120
  201. package/dist/lib/node-esm/index.mjs.map +0 -7
  202. package/dist/lib/node-esm/intent-resolver-VCEC67WX.mjs +0 -32
  203. package/dist/lib/node-esm/intent-resolver-VCEC67WX.mjs.map +0 -7
  204. package/dist/lib/node-esm/meta.json +0 -1
  205. package/dist/lib/node-esm/meta.mjs +0 -9
  206. package/dist/lib/node-esm/react-surface-4HFEX52O.mjs +0 -36
  207. package/dist/lib/node-esm/react-surface-4HFEX52O.mjs.map +0 -7
  208. package/dist/lib/node-esm/types/index.mjs +0 -12
  209. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  210. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  211. package/dist/types/src/components/ExplorerContainer.d.ts +0 -9
  212. package/dist/types/src/components/ExplorerContainer.d.ts.map +0 -1
  213. package/dist/types/src/components/Graph/D3ForceGraph.d.ts +0 -14
  214. package/dist/types/src/components/Graph/D3ForceGraph.d.ts.map +0 -1
  215. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +0 -15
  216. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +0 -1
  217. package/dist/types/src/components/Graph/adapter.d.ts.map +0 -1
  218. package/dist/types/src/components/Graph/testing.d.ts +0 -14
  219. package/dist/types/src/components/Graph/testing.d.ts.map +0 -1
  220. package/src/capabilities/intent-resolver.ts +0 -21
  221. package/src/components/ExplorerContainer.tsx +0 -54
  222. package/src/components/Graph/D3ForceGraph.stories.tsx +0 -78
  223. package/src/components/Graph/D3ForceGraph.tsx +0 -101
  224. package/src/components/Graph/testing.ts +0 -55
  225. package/src/components/Tree/layout/HierarchicalEdgeBundling.ts +0 -162
  226. package/src/components/Tree/layout/RadialTree.ts +0 -94
  227. package/src/components/Tree/layout/TidyTree.ts +0 -101
  228. /package/dist/lib/{browser/chunk-J5LGTIGS.mjs.map → neutral/ExplorerPlugin.mjs.map} +0 -0
  229. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  230. /package/dist/lib/{browser/meta.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  231. /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
  232. /package/dist/lib/{node-esm → neutral}/meta.mjs.map +0 -0
  233. /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/testing.mjs.map} +0 -0
  234. /package/dist/lib/{node-esm → neutral}/types/index.mjs.map +0 -0
package/package.json CHANGED
@@ -1,105 +1,156 @@
1
1
  {
2
2
  "name": "@dxos/plugin-explorer",
3
- "version": "0.8.4-main.72ec0f3",
3
+ "version": "0.8.4-main.765dc60934",
4
4
  "description": "Braneframe data visualization plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
- "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
11
+ "license": "FSL-1.1-Apache-2.0",
8
12
  "author": "DXOS.org",
9
13
  "sideEffects": true,
10
14
  "type": "module",
11
- "exports": {
12
- ".": {
13
- "source": "./src/index.ts",
14
- "types": "./dist/types/src/index.d.ts",
15
- "browser": "./dist/lib/browser/index.mjs",
16
- "node": "./dist/lib/node-esm/index.mjs"
15
+ "imports": {
16
+ "#capabilities": {
17
+ "source": "./src/capabilities/index.ts",
18
+ "types": "./dist/types/src/capabilities/index.d.ts",
19
+ "default": "./dist/lib/neutral/capabilities/index.mjs"
20
+ },
21
+ "#components": {
22
+ "source": "./src/components/index.ts",
23
+ "types": "./dist/types/src/components/index.d.ts",
24
+ "default": "./dist/lib/neutral/components/index.mjs"
17
25
  },
18
- "./meta": {
26
+ "#containers": {
27
+ "source": "./src/containers/index.ts",
28
+ "types": "./dist/types/src/containers/index.d.ts",
29
+ "default": "./dist/lib/neutral/containers/index.mjs"
30
+ },
31
+ "#hooks": {
32
+ "source": "./src/hooks/index.ts",
33
+ "types": "./dist/types/src/hooks/index.d.ts",
34
+ "default": "./dist/lib/neutral/hooks/index.mjs"
35
+ },
36
+ "#meta": {
19
37
  "source": "./src/meta.ts",
20
38
  "types": "./dist/types/src/meta.d.ts",
21
- "browser": "./dist/lib/browser/meta.mjs",
22
- "node": "./dist/lib/node-esm/meta.mjs"
39
+ "default": "./dist/lib/neutral/meta.mjs"
40
+ },
41
+ "#plugin": {
42
+ "source": "./src/ExplorerPlugin.tsx",
43
+ "types": "./dist/types/src/ExplorerPlugin.d.ts",
44
+ "default": "./dist/lib/neutral/ExplorerPlugin.mjs"
23
45
  },
24
- "./types": {
46
+ "#translations": {
47
+ "source": "./src/translations.ts",
48
+ "types": "./dist/types/src/translations.d.ts",
49
+ "default": "./dist/lib/neutral/translations.mjs"
50
+ },
51
+ "#types": {
25
52
  "source": "./src/types/index.ts",
26
53
  "types": "./dist/types/src/types/index.d.ts",
27
- "browser": "./dist/lib/browser/types/index.mjs",
28
- "node": "./dist/lib/node-esm/types/index.mjs"
54
+ "default": "./dist/lib/neutral/types/index.mjs"
29
55
  }
30
56
  },
31
- "types": "dist/types/src/index.d.ts",
32
- "typesVersions": {
33
- "*": {
34
- "meta": [
35
- "dist/types/src/meta.d.ts"
36
- ],
37
- "types": [
38
- "dist/types/src/types/index.d.ts"
39
- ]
57
+ "exports": {
58
+ ".": {
59
+ "source": "./src/index.ts",
60
+ "types": "./dist/types/src/index.d.ts",
61
+ "default": "./dist/lib/neutral/index.mjs"
62
+ },
63
+ "./components": {
64
+ "source": "./src/components/index.ts",
65
+ "types": "./dist/types/src/components/index.d.ts",
66
+ "default": "./dist/lib/neutral/components/index.mjs"
67
+ },
68
+ "./hooks": {
69
+ "source": "./src/hooks/index.ts",
70
+ "types": "./dist/types/src/hooks/index.d.ts",
71
+ "default": "./dist/lib/neutral/hooks/index.mjs"
72
+ },
73
+ "./plugin": {
74
+ "source": "./src/plugin.ts",
75
+ "types": "./dist/types/src/plugin.d.ts",
76
+ "default": "./dist/lib/neutral/plugin.mjs"
77
+ },
78
+ "./testing": {
79
+ "source": "./src/testing.ts",
80
+ "types": "./dist/types/src/testing.d.ts",
81
+ "default": "./dist/lib/neutral/testing.mjs"
82
+ },
83
+ "./translations": {
84
+ "source": "./src/translations.ts",
85
+ "types": "./dist/types/src/translations.d.ts",
86
+ "default": "./dist/lib/neutral/translations.mjs"
40
87
  }
41
88
  },
89
+ "types": "dist/types/src/index.d.ts",
42
90
  "files": [
43
91
  "dist",
44
92
  "src"
45
93
  ],
46
94
  "dependencies": {
47
95
  "3d-force-graph": "^1.76.1",
96
+ "@effect-atom/atom-react": "^0.5.0",
48
97
  "@observablehq/plot": "^0.6.11",
49
- "@preact-signals/safe-react": "^0.9.0",
50
- "@preact/signals-core": "^1.12.1",
51
98
  "d3": "^7.9.0",
52
- "effect": "3.18.3",
99
+ "effect": "3.20.0",
53
100
  "force-graph": "^1.49.4",
54
101
  "lodash.defaultsdeep": "^4.6.1",
55
102
  "react-resize-detector": "^11.0.1",
56
103
  "three": "^0.178.0",
57
104
  "topojson-client": "^3.1.0",
58
- "@dxos/app-framework": "0.8.4-main.72ec0f3",
59
- "@dxos/async": "0.8.4-main.72ec0f3",
60
- "@dxos/client": "0.8.4-main.72ec0f3",
61
- "@dxos/echo": "0.8.4-main.72ec0f3",
62
- "@dxos/echo-query": "0.8.4-main.72ec0f3",
63
- "@dxos/graph": "0.8.4-main.72ec0f3",
64
- "@dxos/invariant": "0.8.4-main.72ec0f3",
65
- "@dxos/live-object": "0.8.4-main.72ec0f3",
66
- "@dxos/log": "0.8.4-main.72ec0f3",
67
- "@dxos/plugin-graph": "0.8.4-main.72ec0f3",
68
- "@dxos/plugin-client": "0.8.4-main.72ec0f3",
69
- "@dxos/plugin-search": "0.8.4-main.72ec0f3",
70
- "@dxos/plugin-space": "0.8.4-main.72ec0f3",
71
- "@dxos/react-ui-attention": "0.8.4-main.72ec0f3",
72
- "@dxos/react-client": "0.8.4-main.72ec0f3",
73
- "@dxos/react-ui-components": "0.8.4-main.72ec0f3",
74
- "@dxos/react-ui-stack": "0.8.4-main.72ec0f3",
75
- "@dxos/react-ui-graph": "0.8.4-main.72ec0f3",
76
- "@dxos/types": "0.8.4-main.72ec0f3",
77
- "@dxos/schema": "0.8.4-main.72ec0f3",
78
- "@dxos/util": "0.8.4-main.72ec0f3"
105
+ "@dxos/app-toolkit": "0.8.4-main.765dc60934",
106
+ "@dxos/async": "0.8.4-main.765dc60934",
107
+ "@dxos/app-framework": "0.8.4-main.765dc60934",
108
+ "@dxos/client": "0.8.4-main.765dc60934",
109
+ "@dxos/compute": "0.8.4-main.765dc60934",
110
+ "@dxos/echo-query": "0.8.4-main.765dc60934",
111
+ "@dxos/echo": "0.8.4-main.765dc60934",
112
+ "@dxos/plugin-client": "0.8.4-main.765dc60934",
113
+ "@dxos/invariant": "0.8.4-main.765dc60934",
114
+ "@dxos/log": "0.8.4-main.765dc60934",
115
+ "@dxos/plugin-search": "0.8.4-main.765dc60934",
116
+ "@dxos/plugin-graph": "0.8.4-main.765dc60934",
117
+ "@dxos/plugin-space": "0.8.4-main.765dc60934",
118
+ "@dxos/graph": "0.8.4-main.765dc60934",
119
+ "@dxos/react-client": "0.8.4-main.765dc60934",
120
+ "@dxos/react-ui-attention": "0.8.4-main.765dc60934",
121
+ "@dxos/react-ui-components": "0.8.4-main.765dc60934",
122
+ "@dxos/react-ui-graph": "0.8.4-main.765dc60934",
123
+ "@dxos/react-ui-mosaic": "0.8.4-main.765dc60934",
124
+ "@dxos/schema": "0.8.4-main.765dc60934",
125
+ "@dxos/util": "0.8.4-main.765dc60934",
126
+ "@dxos/types": "0.8.4-main.765dc60934",
127
+ "@dxos/react-ui-stack": "0.8.4-main.765dc60934"
79
128
  },
80
129
  "devDependencies": {
81
130
  "@types/d3": "^7.4.3",
82
131
  "@types/d3-hierarchy": "^3.1.6",
83
132
  "@types/lodash.defaultsdeep": "^4.6.6",
84
- "@types/react": "~19.2.2",
85
- "@types/react-dom": "~19.2.2",
133
+ "@types/react": "~19.2.7",
134
+ "@types/react-dom": "~19.2.3",
86
135
  "@types/topojson-client": "^3.1.4",
87
136
  "@types/topojson-specification": "^1.0.5",
88
- "react": "~19.2.0",
89
- "react-dom": "~19.2.0",
90
- "vite": "7.1.9",
91
- "@dxos/echo-generator": "0.8.4-main.72ec0f3",
92
- "@dxos/random": "0.8.4-main.72ec0f3",
93
- "@dxos/react-ui-theme": "0.8.4-main.72ec0f3",
94
- "@dxos/react-ui": "0.8.4-main.72ec0f3",
95
- "@dxos/storybook-utils": "0.8.4-main.72ec0f3"
137
+ "react": "~19.2.3",
138
+ "react-dom": "~19.2.3",
139
+ "vite": "^8.0.13",
140
+ "@dxos/echo-generator": "0.8.4-main.765dc60934",
141
+ "@dxos/plugin-preview": "0.8.4-main.765dc60934",
142
+ "@dxos/plugin-testing": "0.8.4-main.765dc60934",
143
+ "@dxos/random": "0.8.4-main.765dc60934",
144
+ "@dxos/storybook-utils": "0.8.4-main.765dc60934",
145
+ "@dxos/react-ui": "0.8.4-main.765dc60934",
146
+ "@dxos/ui-theme": "0.8.4-main.765dc60934"
96
147
  },
97
148
  "peerDependencies": {
98
- "effect": "^3.13.3",
99
- "react": "^19.0.0",
100
- "react-dom": "^19.0.0",
101
- "@dxos/react-ui": "0.8.4-main.72ec0f3",
102
- "@dxos/react-ui-theme": "0.8.4-main.72ec0f3"
149
+ "effect": "3.20.0",
150
+ "react": "~19.2.3",
151
+ "react-dom": "~19.2.3",
152
+ "@dxos/react-ui": "0.8.4-main.765dc60934",
153
+ "@dxos/ui-theme": "0.8.4-main.765dc60934"
103
154
  },
104
155
  "publishConfig": {
105
156
  "access": "public"
@@ -0,0 +1,26 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { ClientPlugin } from '@dxos/plugin-client/plugin';
8
+ import { createComposerTestApp } from '@dxos/plugin-testing/harness';
9
+
10
+ import { ExplorerPlugin } from '#plugin';
11
+
12
+ import { meta } from './meta';
13
+
14
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
15
+
16
+ describe('ExplorerPlugin', () => {
17
+ test('modules activate on the expected events', async ({ expect }) => {
18
+ await using harness = await createComposerTestApp({
19
+ plugins: [ClientPlugin({}), ExplorerPlugin()],
20
+ });
21
+
22
+ expect(harness.manager.getActive()).toEqual(
23
+ expect.arrayContaining([moduleId('CreateObject'), moduleId('schema'), moduleId('ReactSurface')]),
24
+ );
25
+ });
26
+ });
@@ -2,61 +2,20 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
6
- import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
7
- import { SpaceCapabilities } from '@dxos/plugin-space';
8
- import { defineObjectForm } from '@dxos/plugin-space/types';
5
+ import { Plugin } from '@dxos/app-framework';
6
+ import { AppPlugin } from '@dxos/app-toolkit';
9
7
 
10
- import { IntentResolver, ReactSurface } from './capabilities';
11
- import { meta } from './meta';
12
- import { translations } from './translations';
13
- import { ExplorerAction, Graph } from './types';
8
+ import { CreateObject, ReactSurface } from '#capabilities';
9
+ import { meta } from '#meta';
10
+ import { translations } from '#translations';
11
+ import { Graph } from '#types';
14
12
 
15
- export const ExplorerPlugin = definePlugin(meta, () => [
16
- defineModule({
17
- id: `${meta.id}/module/translations`,
18
- activatesOn: Events.SetupTranslations,
19
- activate: () => contributes(Capabilities.Translations, translations),
20
- }),
21
- defineModule({
22
- id: `${meta.id}/module/metadata`,
23
- activatesOn: Events.SetupMetadata,
24
- activate: () =>
25
- contributes(Capabilities.Metadata, {
26
- id: Graph.Graph.typename,
27
- metadata: {
28
- icon: 'ph--graph--regular',
29
- iconHue: 'green',
30
- },
31
- }),
32
- }),
33
- defineModule({
34
- id: `${meta.id}/module/object-form`,
35
- activatesOn: ClientEvents.SetupSchema,
36
- activate: () =>
37
- contributes(
38
- SpaceCapabilities.ObjectForm,
39
- defineObjectForm({
40
- objectSchema: Graph.Graph,
41
- formSchema: ExplorerAction.GraphProps,
42
- hidden: true,
43
- getIntent: (props, options) => createIntent(ExplorerAction.CreateGraph, { ...props, space: options.space }),
44
- }),
45
- ),
46
- }),
47
- defineModule({
48
- id: `${meta.id}/module/schema`,
49
- activatesOn: ClientEvents.SetupSchema,
50
- activate: () => contributes(ClientCapabilities.Schema, [Graph.Graph]),
51
- }),
52
- defineModule({
53
- id: `${meta.id}/module/react-surface`,
54
- activatesOn: Events.SetupReactSurface,
55
- activate: ReactSurface,
56
- }),
57
- defineModule({
58
- id: `${meta.id}/module/intent-resolver`,
59
- activatesOn: Events.SetupIntentResolver,
60
- activate: IntentResolver,
61
- }),
62
- ]);
13
+ export const ExplorerPlugin = Plugin.define(meta).pipe(
14
+ AppPlugin.addCreateObjectModule({ activate: CreateObject }),
15
+ AppPlugin.addSchemaModule({ schema: [Graph.Graph] }),
16
+ AppPlugin.addSurfaceModule({ activate: ReactSurface }),
17
+ AppPlugin.addTranslationsModule({ translations }),
18
+ Plugin.make,
19
+ );
20
+
21
+ export default ExplorerPlugin;
@@ -0,0 +1,36 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { Operation } from '@dxos/compute';
9
+ import { Type } from '@dxos/echo';
10
+ import { SpaceOperation } from '@dxos/plugin-space';
11
+ import { SpaceCapabilities } from '@dxos/plugin-space';
12
+ import { ViewModel } from '@dxos/schema';
13
+
14
+ import { ExplorerAction, Graph } from '#types';
15
+
16
+ export default Capability.makeModule(
17
+ Effect.fnUntraced(function* () {
18
+ return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {
19
+ id: Type.getTypename(Graph.Graph),
20
+ inputSchema: ExplorerAction.GraphProps,
21
+ createObject: (props, options) =>
22
+ Effect.gen(function* () {
23
+ const object = yield* Effect.promise(async () => {
24
+ const { view } = await ViewModel.makeFromDatabase({ db: options.db, typename: props.typename });
25
+ return Graph.make({ name: props.name, view });
26
+ });
27
+ return yield* Operation.invoke(SpaceOperation.AddObject, {
28
+ object,
29
+ target: options.target,
30
+ hidden: true,
31
+ targetNodeId: options.targetNodeId,
32
+ });
33
+ }),
34
+ });
35
+ }),
36
+ );
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { lazy } from '@dxos/app-framework';
5
+ import { Capability } from '@dxos/app-framework';
6
6
 
7
- export const IntentResolver = lazy(() => import('./intent-resolver'));
8
- export const ReactSurface = lazy(() => import('./react-surface'));
7
+ export const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));
8
+ export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
@@ -2,26 +2,31 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
+ import * as Effect from 'effect/Effect';
5
6
  import React from 'react';
6
7
 
7
- import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
8
- import { Obj } from '@dxos/echo';
9
- import { View } from '@dxos/schema';
8
+ import { Capabilities, Capability } from '@dxos/app-framework';
9
+ import { Surface } from '@dxos/app-framework/ui';
10
+ import { AppSurface } from '@dxos/app-toolkit/ui';
10
11
 
11
- import { ExplorerContainer } from '../components';
12
- import { meta } from '../meta';
13
- import { Graph } from '../types';
12
+ import { ExplorerArticle } from '#containers';
13
+ import { Graph } from '#types';
14
14
 
15
- export default () =>
16
- contributes(
17
- Capabilities.ReactSurface,
18
- createSurface({
19
- id: `${meta.id}/article`,
20
- role: ['article', 'section'],
21
- filter: (data): data is { subject: View.View } =>
22
- Obj.instanceOf(View.View, data.subject) && Obj.instanceOf(Graph.Graph, data.subject.presentation.target),
23
- component: ({ data, role }) => {
24
- return <ExplorerContainer view={data.subject} role={role} />;
25
- },
26
- }),
27
- );
15
+ export default Capability.makeModule(() =>
16
+ Effect.succeed(
17
+ Capability.contributes(
18
+ Capabilities.ReactSurface,
19
+ Surface.create({
20
+ id: 'article',
21
+ // TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.
22
+ filter: AppSurface.oneOf(
23
+ AppSurface.object(AppSurface.Article, Graph.Graph),
24
+ AppSurface.object(AppSurface.Section, Graph.Graph),
25
+ ),
26
+ component: ({ data, role }) => {
27
+ return <ExplorerArticle role={role} subject={data.subject} attendableId={data.attendableId} />;
28
+ },
29
+ }),
30
+ ),
31
+ ),
32
+ );
@@ -2,42 +2,35 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { type Meta } from '@storybook/react-vite';
5
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
  import React from 'react';
7
7
 
8
- import { ClientRepeater } from '@dxos/react-client/testing';
9
- import { withTheme } from '@dxos/react-ui/testing';
8
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
10
9
 
11
10
  import CitiesData from '../../../data/cities.js';
12
-
13
11
  import { Chart } from './Chart';
14
12
 
15
- // TODO(burdon): Generate data with geo lat/lng.
16
- // TODO(burdon): How to provide geo service via agent?
17
-
18
- const Story = () => {
19
- if (!CitiesData) {
20
- return null;
21
- }
22
-
23
- const items = CitiesData.features.map((feature: any) => ({
24
- x: feature.geometry.coordinates[0],
25
- y: feature.geometry.coordinates[1],
26
- }));
13
+ const items = CitiesData.features.map((feature: any) => ({
14
+ x: feature.geometry.coordinates[0],
15
+ y: feature.geometry.coordinates[1],
16
+ }));
27
17
 
28
- return <Chart items={items} accessor={(obj) => ({ x: obj.x, y: obj.y })} options={{ stroke: 'blue' }} />;
29
- };
30
-
31
- // TODO(burdon): Change to decorator.
32
- export const Default = () => <ClientRepeater component={Story} />;
18
+ const DefaultStory = () => (
19
+ <Chart items={items} accessor={(obj) => ({ x: obj.x, y: obj.y })} options={{ stroke: 'blue' }} />
20
+ );
33
21
 
34
22
  const meta = {
35
- title: 'plugins/plugin-explorer/Chart',
23
+ title: 'plugins/plugin-explorer/components/Chart',
36
24
  component: Chart,
37
- decorators: [withTheme],
25
+ render: DefaultStory,
26
+ decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
38
27
  parameters: {
39
28
  layout: 'fullscreen',
40
29
  },
41
30
  } satisfies Meta<typeof Chart>;
42
31
 
43
32
  export default meta;
33
+
34
+ type Story = StoryObj<typeof meta>;
35
+
36
+ export const Default: Story = {};
@@ -3,31 +3,27 @@
3
3
  //
4
4
 
5
5
  import { dot, geo, graticule, plot, sphere } from '@observablehq/plot';
6
- import { type Meta } from '@storybook/react-vite';
6
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
7
7
  import { geoCircle } from 'd3';
8
8
  import React, { useEffect } from 'react';
9
9
  import { useResizeDetector } from 'react-resize-detector';
10
10
  import { feature } from 'topojson-client';
11
11
 
12
- import { ClientRepeater } from '@dxos/react-client/testing';
13
- import { withTheme } from '@dxos/react-ui/testing';
12
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
14
13
 
15
14
  import CitiesData from '../../../data/cities.js';
16
15
  import CountriesData from '../../../data/countries-110m.js';
17
-
18
16
  import { Globe } from './Globe';
19
17
 
20
18
  // TODO(burdon): Generate data with geo lat/lng.
21
19
  // TODO(burdon): How to provide geo service via agent?
22
20
 
23
- const DefaultStory = () => {
24
- const items = CitiesData.features.map((feature: any) => ({
25
- lat: feature.geometry.coordinates[0],
26
- lng: feature.geometry.coordinates[1],
27
- }));
21
+ const items = CitiesData.features.map((feature: any) => ({
22
+ lat: feature.geometry.coordinates[0],
23
+ lng: feature.geometry.coordinates[1],
24
+ }));
28
25
 
29
- return <Globe items={items} />;
30
- };
26
+ const DefaultStory = () => <Globe items={items} />;
31
27
 
32
28
  const ExtendedStory = () => {
33
29
  const { ref: containerRef, width = 0, height = 0 } = useResizeDetector({ refreshRate: 200 });
@@ -37,11 +33,6 @@ const ExtendedStory = () => {
37
33
  }
38
34
 
39
35
  const land = feature(CountriesData as any, CountriesData.objects.land as any);
40
- const items = CitiesData.features.map((feature: any) => ({
41
- lat: feature.geometry.coordinates[0],
42
- lng: feature.geometry.coordinates[1],
43
- }));
44
-
45
36
  const city = items[0];
46
37
  const circle = geoCircle().center([city.lat, city.lng]).radius(16)();
47
38
 
@@ -50,7 +41,6 @@ const ExtendedStory = () => {
50
41
  const drawing = plot({
51
42
  // https://observablehq.com/plot/features/projections
52
43
  projection: { type: 'orthographic', rotate: [-city.lat + 30, -30] },
53
- // projection: { type: 'equirectangular', rotate: [-140, -30] },
54
44
  width,
55
45
  height,
56
46
  style: {
@@ -80,15 +70,22 @@ const ExtendedStory = () => {
80
70
  };
81
71
 
82
72
  const meta = {
83
- title: 'plugins/plugin-explorer/Globe',
84
- decorators: [withTheme],
73
+ title: 'plugins/plugin-explorer/components/Globe',
74
+ component: Globe,
75
+ decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
85
76
  parameters: {
86
77
  layout: 'fullscreen',
87
78
  },
88
- } satisfies Meta;
79
+ } satisfies Meta<typeof Globe>;
89
80
 
90
81
  export default meta;
91
82
 
92
- export const Default = () => <ClientRepeater component={DefaultStory} createSpace />;
83
+ type Story = StoryObj<typeof meta>;
93
84
 
94
- export const Extended = () => <ClientRepeater component={ExtendedStory} createSpace />;
85
+ export const Default: Story = {
86
+ render: DefaultStory,
87
+ };
88
+
89
+ export const Extended: Story = {
90
+ render: ExtendedStory,
91
+ };
@@ -0,0 +1,83 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
6
+ import * as Effect from 'effect/Effect';
7
+ import React from 'react';
8
+
9
+ import { withPluginManager } from '@dxos/app-framework/testing';
10
+ import { Type, View } from '@dxos/echo';
11
+ import { ClientPlugin } from '@dxos/plugin-client/testing';
12
+ import { initializeIdentity } from '@dxos/plugin-client/testing';
13
+ import { corePlugins } from '@dxos/plugin-testing';
14
+ import { random } from '@dxos/random';
15
+ import { useSpaces } from '@dxos/react-client/echo';
16
+ import { Loading, withLayout, withTheme } from '@dxos/react-ui/testing';
17
+ import { ViewModel } from '@dxos/schema';
18
+ import { type ValueGenerator } from '@dxos/schema/testing';
19
+ import { HasRelationship, Organization, Person, Pipeline } from '@dxos/types';
20
+
21
+ import { useGraphModel } from '#hooks';
22
+ import { Graph } from '#types';
23
+
24
+ import { generate } from '../Tree/testing';
25
+ import { CanvasForceGraph } from './CanvasForceGraph';
26
+
27
+ const generator = random as any as ValueGenerator;
28
+
29
+ random.seed(1);
30
+
31
+ const DefaultStory = () => {
32
+ const [space] = useSpaces();
33
+ const model = useGraphModel(space?.db);
34
+ if (!space || !model) {
35
+ return <Loading data={{ space: !!space, model: !!model }} />;
36
+ }
37
+
38
+ return <CanvasForceGraph model={model} />;
39
+ };
40
+
41
+ const meta = {
42
+ title: 'plugins/plugin-explorer/components/CanvasForceGraph',
43
+ component: CanvasForceGraph,
44
+ render: DefaultStory,
45
+ decorators: [
46
+ withTheme(),
47
+ withLayout({ layout: 'fullscreen' }),
48
+ withPluginManager({
49
+ plugins: [
50
+ ...corePlugins(),
51
+ ClientPlugin({
52
+ types: [
53
+ Graph.Graph,
54
+ View.View,
55
+ HasRelationship.HasRelationship,
56
+ Organization.Organization,
57
+ Pipeline.Pipeline,
58
+ Person.Person,
59
+ ],
60
+ onClientInitialized: ({ client }) =>
61
+ Effect.gen(function* () {
62
+ const { personalSpace } = yield* initializeIdentity(client);
63
+ yield* Effect.promise(() => generate(personalSpace, generator));
64
+ const { view } = yield* Effect.promise(() =>
65
+ ViewModel.makeFromDatabase({ db: personalSpace.db, typename: Type.getTypename(Graph.Graph) }),
66
+ );
67
+ personalSpace.db.add(Graph.make({ name: 'Test', view }));
68
+ yield* Effect.promise(() => personalSpace.db.flush({ indexes: true }));
69
+ }),
70
+ }),
71
+ ],
72
+ }),
73
+ ],
74
+ parameters: {
75
+ layout: 'fullscreen',
76
+ },
77
+ } satisfies Meta<typeof CanvasForceGraph>;
78
+
79
+ export default meta;
80
+
81
+ type Story = StoryObj<typeof meta>;
82
+
83
+ export const Default: Story = {};