@dxos/plugin-explorer 0.8.4-main.406dc2a → 0.8.4-main.4668b7de9b

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 (270) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +340 -0
  3. package/dist/lib/neutral/ExplorerArticle-4I7PNGDC.mjs +459 -0
  4. package/dist/lib/neutral/ExplorerArticle-4I7PNGDC.mjs.map +7 -0
  5. package/dist/lib/neutral/ExplorerPlugin.mjs +10 -0
  6. package/dist/lib/neutral/capabilities/index.mjs +11 -0
  7. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  8. package/dist/lib/neutral/chunk-3D7BYXOR.mjs +37 -0
  9. package/dist/lib/neutral/chunk-3D7BYXOR.mjs.map +7 -0
  10. package/dist/lib/neutral/chunk-42BYLQQA.mjs +42 -0
  11. package/dist/lib/neutral/chunk-42BYLQQA.mjs.map +7 -0
  12. package/dist/lib/neutral/chunk-7XUDLV6E.mjs +287 -0
  13. package/dist/lib/neutral/chunk-7XUDLV6E.mjs.map +7 -0
  14. package/dist/lib/neutral/chunk-HI324IB4.mjs +69 -0
  15. package/dist/lib/neutral/chunk-HI324IB4.mjs.map +7 -0
  16. package/dist/lib/neutral/chunk-IKHJV3Q4.mjs +20 -0
  17. package/dist/lib/neutral/chunk-IKHJV3Q4.mjs.map +7 -0
  18. package/dist/lib/{browser/chunk-MOM5KCKC.mjs → neutral/components/index.mjs} +882 -556
  19. package/dist/lib/neutral/components/index.mjs.map +7 -0
  20. package/dist/lib/neutral/containers/index.mjs +9 -0
  21. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  22. package/dist/lib/neutral/create-object-F6TKVAGV.mjs +39 -0
  23. package/dist/lib/neutral/create-object-F6TKVAGV.mjs.map +7 -0
  24. package/dist/lib/neutral/hooks/index.mjs +45 -0
  25. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  26. package/dist/lib/neutral/index.mjs +14 -0
  27. package/dist/lib/neutral/meta.json +1 -0
  28. package/dist/lib/{browser → neutral}/meta.mjs +1 -1
  29. package/dist/lib/neutral/plugin.mjs +12 -0
  30. package/dist/lib/neutral/plugin.mjs.map +7 -0
  31. package/dist/lib/neutral/react-surface-APBW2VQG.mjs +26 -0
  32. package/dist/lib/neutral/react-surface-APBW2VQG.mjs.map +7 -0
  33. package/dist/lib/neutral/testing/index.mjs +139 -0
  34. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  35. package/dist/lib/neutral/translations.mjs +33 -0
  36. package/dist/lib/neutral/translations.mjs.map +7 -0
  37. package/dist/lib/{browser → neutral}/types/index.mjs +1 -2
  38. package/dist/types/data/cities.d.ts +4 -4
  39. package/dist/types/data/cities.d.ts.map +1 -1
  40. package/dist/types/data/countries-110m.d.ts +19 -22
  41. package/dist/types/data/countries-110m.d.ts.map +1 -1
  42. package/dist/types/src/ExplorerPlugin.d.ts +3 -1
  43. package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
  44. package/dist/types/src/ExplorerPlugin.test.d.ts +2 -0
  45. package/dist/types/src/ExplorerPlugin.test.d.ts.map +1 -0
  46. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  47. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/index.d.ts +8 -2
  49. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  50. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  51. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  52. package/dist/types/src/components/Chart/Chart.d.ts +1 -1
  53. package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
  54. package/dist/types/src/components/Chart/Chart.stories.d.ts +4 -1
  55. package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
  56. package/dist/types/src/components/Globe/Globe.d.ts +1 -1
  57. package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
  58. package/dist/types/src/components/Globe/Globe.stories.d.ts +5 -2
  59. package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts +13 -0
  61. package/dist/types/src/components/Graph/CanvasForceGraph.d.ts.map +1 -0
  62. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts +17 -0
  63. package/dist/types/src/components/Graph/CanvasForceGraph.stories.d.ts.map +1 -0
  64. package/dist/types/src/components/Graph/ForceGraph.d.ts +12 -5
  65. package/dist/types/src/components/Graph/ForceGraph.d.ts.map +1 -1
  66. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts +4 -2
  67. package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
  68. package/dist/types/src/components/Graph/{adapter.d.ts → graph-adapter.d.ts} +2 -2
  69. package/dist/types/src/components/Graph/graph-adapter.d.ts.map +1 -0
  70. package/dist/types/src/components/Graph/index.d.ts +1 -1
  71. package/dist/types/src/components/Graph/index.d.ts.map +1 -1
  72. package/dist/types/src/components/Lattice/Lattice.d.ts +20 -0
  73. package/dist/types/src/components/Lattice/Lattice.d.ts.map +1 -0
  74. package/dist/types/src/components/Lattice/Lattice.stories.d.ts +8 -0
  75. package/dist/types/src/components/Lattice/Lattice.stories.d.ts.map +1 -0
  76. package/dist/types/src/components/Lattice/index.d.ts +2 -0
  77. package/dist/types/src/components/Lattice/index.d.ts.map +1 -0
  78. package/dist/types/src/components/Tree/EdgeBundling.stories.d.ts +21 -0
  79. package/dist/types/src/components/Tree/EdgeBundling.stories.d.ts.map +1 -0
  80. package/dist/types/src/components/Tree/Tree.d.ts +20 -23
  81. package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
  82. package/dist/types/src/components/Tree/Tree.stories.d.ts +5 -12
  83. package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
  84. package/dist/types/src/components/Tree/index.d.ts +2 -0
  85. package/dist/types/src/components/Tree/index.d.ts.map +1 -1
  86. package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts +37 -2
  87. package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts.map +1 -1
  88. package/dist/types/src/components/Tree/layout/RadialTree.d.ts +35 -2
  89. package/dist/types/src/components/Tree/layout/RadialTree.d.ts.map +1 -1
  90. package/dist/types/src/components/Tree/layout/TidyTree.d.ts +24 -2
  91. package/dist/types/src/components/Tree/layout/TidyTree.d.ts.map +1 -1
  92. package/dist/types/src/components/Tree/layout/hierarchy.d.ts +17 -0
  93. package/dist/types/src/components/Tree/layout/hierarchy.d.ts.map +1 -0
  94. package/dist/types/src/components/Tree/layout/index.d.ts +5 -4
  95. package/dist/types/src/components/Tree/layout/index.d.ts.map +1 -1
  96. package/dist/types/src/components/Tree/layout/slots.d.ts +7 -0
  97. package/dist/types/src/components/Tree/layout/slots.d.ts.map +1 -0
  98. package/dist/types/src/components/Tree/layout/useContainerSize.d.ts +15 -0
  99. package/dist/types/src/components/Tree/layout/useContainerSize.d.ts.map +1 -0
  100. package/dist/types/src/components/Tree/types/tree.d.ts +50 -27
  101. package/dist/types/src/components/Tree/types/tree.d.ts.map +1 -1
  102. package/dist/types/src/components/Tree/types/types.d.ts +14 -4
  103. package/dist/types/src/components/Tree/types/types.d.ts.map +1 -1
  104. package/dist/types/src/components/index.d.ts +1 -4
  105. package/dist/types/src/components/index.d.ts.map +1 -1
  106. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.d.ts +8 -0
  107. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.d.ts.map +1 -0
  108. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.stories.d.ts +15 -0
  109. package/dist/types/src/containers/ExplorerArticle/ExplorerArticle.stories.d.ts.map +1 -0
  110. package/dist/types/src/containers/ExplorerArticle/Visualization.d.ts +18 -0
  111. package/dist/types/src/containers/ExplorerArticle/Visualization.d.ts.map +1 -0
  112. package/dist/types/src/containers/ExplorerArticle/index.d.ts +2 -0
  113. package/dist/types/src/containers/ExplorerArticle/index.d.ts.map +1 -0
  114. package/dist/types/src/containers/ExplorerArticle/variants.d.ts +9 -0
  115. package/dist/types/src/containers/ExplorerArticle/variants.d.ts.map +1 -0
  116. package/dist/types/src/containers/index.d.ts +3 -0
  117. package/dist/types/src/containers/index.d.ts.map +1 -0
  118. package/dist/types/src/hooks/useGraphModel.d.ts +2 -2
  119. package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
  120. package/dist/types/src/index.d.ts +1 -3
  121. package/dist/types/src/index.d.ts.map +1 -1
  122. package/dist/types/src/meta.d.ts +2 -2
  123. package/dist/types/src/meta.d.ts.map +1 -1
  124. package/dist/types/src/plugin.d.ts +3 -0
  125. package/dist/types/src/plugin.d.ts.map +1 -0
  126. package/dist/types/src/{components/Tree/testing → testing}/generator.d.ts +1 -1
  127. package/dist/types/src/testing/generator.d.ts.map +1 -0
  128. package/dist/types/src/testing/index.d.ts +4 -0
  129. package/dist/types/src/testing/index.d.ts.map +1 -0
  130. package/dist/types/src/testing/relations.d.ts +32 -0
  131. package/dist/types/src/testing/relations.d.ts.map +1 -0
  132. package/dist/types/src/translations.d.ts +31 -22
  133. package/dist/types/src/translations.d.ts.map +1 -1
  134. package/dist/types/src/types/ExplorerAction.d.ts +1 -18
  135. package/dist/types/src/types/ExplorerAction.d.ts.map +1 -1
  136. package/dist/types/src/types/Graph.d.ts +14 -25
  137. package/dist/types/src/types/Graph.d.ts.map +1 -1
  138. package/dist/types/src/util/index.d.ts +3 -0
  139. package/dist/types/src/util/index.d.ts.map +1 -0
  140. package/dist/types/src/util/node-color.d.ts +13 -0
  141. package/dist/types/src/util/node-color.d.ts.map +1 -0
  142. package/dist/types/src/{components → util}/plot.d.ts +1 -1
  143. package/dist/types/src/util/plot.d.ts.map +1 -0
  144. package/dist/types/tsconfig.tsbuildinfo +1 -1
  145. package/package.json +113 -65
  146. package/src/ExplorerPlugin.test.ts +26 -0
  147. package/src/ExplorerPlugin.tsx +20 -54
  148. package/src/capabilities/create-object.ts +36 -0
  149. package/src/capabilities/index.ts +3 -3
  150. package/src/capabilities/react-surface.tsx +24 -19
  151. package/src/components/Chart/Chart.stories.tsx +16 -23
  152. package/src/components/Chart/Chart.tsx +1 -1
  153. package/src/components/Globe/Globe.stories.tsx +19 -22
  154. package/src/components/Globe/Globe.tsx +1 -1
  155. package/src/components/Graph/CanvasForceGraph.stories.tsx +97 -0
  156. package/src/components/Graph/CanvasForceGraph.tsx +124 -0
  157. package/src/components/Graph/ForceGraph.stories.tsx +98 -42
  158. package/src/components/Graph/ForceGraph.tsx +105 -85
  159. package/src/components/Graph/{adapter.ts → graph-adapter.ts} +14 -8
  160. package/src/components/Graph/index.ts +1 -1
  161. package/src/components/Lattice/Lattice.stories.tsx +104 -0
  162. package/src/components/Lattice/Lattice.tsx +182 -0
  163. package/src/components/Lattice/index.ts +5 -0
  164. package/src/components/Tree/EdgeBundling.stories.tsx +144 -0
  165. package/src/components/Tree/Tree.stories.tsx +20 -38
  166. package/src/components/Tree/Tree.tsx +69 -95
  167. package/src/components/Tree/index.ts +2 -0
  168. package/src/components/Tree/layout/HierarchicalEdgeBundling.tsx +335 -0
  169. package/src/components/Tree/layout/RadialTree.tsx +242 -0
  170. package/src/components/Tree/layout/TidyTree.tsx +246 -0
  171. package/src/components/Tree/layout/hierarchy.ts +32 -0
  172. package/src/components/Tree/layout/index.ts +5 -5
  173. package/src/components/Tree/layout/slots.ts +19 -0
  174. package/src/components/Tree/layout/useContainerSize.ts +43 -0
  175. package/src/components/Tree/types/tree.test.ts +8 -7
  176. package/src/components/Tree/types/tree.ts +51 -35
  177. package/src/components/Tree/types/types.ts +38 -29
  178. package/src/components/index.ts +1 -4
  179. package/src/containers/ExplorerArticle/ExplorerArticle.stories.tsx +152 -0
  180. package/src/containers/ExplorerArticle/ExplorerArticle.tsx +120 -0
  181. package/src/containers/ExplorerArticle/Visualization.tsx +523 -0
  182. package/src/containers/ExplorerArticle/index.ts +5 -0
  183. package/src/containers/ExplorerArticle/variants.ts +47 -0
  184. package/src/containers/index.ts +7 -0
  185. package/src/hooks/useGraphModel.ts +25 -14
  186. package/src/index.ts +1 -4
  187. package/src/meta.ts +30 -6
  188. package/src/plugin.ts +9 -0
  189. package/src/{components/Tree/testing → testing}/generator.ts +6 -4
  190. package/src/testing/index.ts +9 -0
  191. package/src/testing/relations.ts +117 -0
  192. package/src/translations.ts +16 -13
  193. package/src/types/ExplorerAction.ts +10 -19
  194. package/src/types/Graph.ts +20 -24
  195. package/src/typings.d.ts +8 -0
  196. package/src/util/index.ts +6 -0
  197. package/src/util/node-color.ts +23 -0
  198. package/src/{components → util}/plot.ts +16 -4
  199. package/src/vite-env.d.ts +10 -0
  200. package/dist/lib/browser/ExplorerContainer-6SHZJ6AK.mjs +0 -50
  201. package/dist/lib/browser/ExplorerContainer-6SHZJ6AK.mjs.map +0 -7
  202. package/dist/lib/browser/chunk-2DGFNLRO.mjs +0 -19
  203. package/dist/lib/browser/chunk-2DGFNLRO.mjs.map +0 -7
  204. package/dist/lib/browser/chunk-2MKBRIUT.mjs +0 -31
  205. package/dist/lib/browser/chunk-2MKBRIUT.mjs.map +0 -7
  206. package/dist/lib/browser/chunk-BZ65T5M3.mjs +0 -79
  207. package/dist/lib/browser/chunk-BZ65T5M3.mjs.map +0 -7
  208. package/dist/lib/browser/chunk-MOM5KCKC.mjs.map +0 -7
  209. package/dist/lib/browser/chunk-NXGP6NTP.mjs +0 -203
  210. package/dist/lib/browser/chunk-NXGP6NTP.mjs.map +0 -7
  211. package/dist/lib/browser/index.mjs +0 -118
  212. package/dist/lib/browser/index.mjs.map +0 -7
  213. package/dist/lib/browser/intent-resolver-K57C3LIX.mjs +0 -31
  214. package/dist/lib/browser/intent-resolver-K57C3LIX.mjs.map +0 -7
  215. package/dist/lib/browser/meta.json +0 -1
  216. package/dist/lib/browser/react-surface-OPBND5W3.mjs +0 -35
  217. package/dist/lib/browser/react-surface-OPBND5W3.mjs.map +0 -7
  218. package/dist/lib/node-esm/ExplorerContainer-FRTDXZI5.mjs +0 -51
  219. package/dist/lib/node-esm/ExplorerContainer-FRTDXZI5.mjs.map +0 -7
  220. package/dist/lib/node-esm/chunk-3ODK27PU.mjs +0 -33
  221. package/dist/lib/node-esm/chunk-3ODK27PU.mjs.map +0 -7
  222. package/dist/lib/node-esm/chunk-6JACZE7E.mjs +0 -205
  223. package/dist/lib/node-esm/chunk-6JACZE7E.mjs.map +0 -7
  224. package/dist/lib/node-esm/chunk-ES6AOMCY.mjs +0 -80
  225. package/dist/lib/node-esm/chunk-ES6AOMCY.mjs.map +0 -7
  226. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  227. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
  228. package/dist/lib/node-esm/chunk-PX6LHR2N.mjs +0 -21
  229. package/dist/lib/node-esm/chunk-PX6LHR2N.mjs.map +0 -7
  230. package/dist/lib/node-esm/chunk-ZCV4U7LT.mjs +0 -11343
  231. package/dist/lib/node-esm/chunk-ZCV4U7LT.mjs.map +0 -7
  232. package/dist/lib/node-esm/index.mjs +0 -119
  233. package/dist/lib/node-esm/index.mjs.map +0 -7
  234. package/dist/lib/node-esm/intent-resolver-BLPPTTEY.mjs +0 -32
  235. package/dist/lib/node-esm/intent-resolver-BLPPTTEY.mjs.map +0 -7
  236. package/dist/lib/node-esm/meta.json +0 -1
  237. package/dist/lib/node-esm/meta.mjs +0 -9
  238. package/dist/lib/node-esm/react-surface-HCKQSHKJ.mjs +0 -36
  239. package/dist/lib/node-esm/react-surface-HCKQSHKJ.mjs.map +0 -7
  240. package/dist/lib/node-esm/types/index.mjs +0 -12
  241. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  242. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  243. package/dist/types/src/components/ExplorerContainer.d.ts +0 -9
  244. package/dist/types/src/components/ExplorerContainer.d.ts.map +0 -1
  245. package/dist/types/src/components/Graph/D3ForceGraph.d.ts +0 -14
  246. package/dist/types/src/components/Graph/D3ForceGraph.d.ts.map +0 -1
  247. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +0 -15
  248. package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +0 -1
  249. package/dist/types/src/components/Graph/adapter.d.ts.map +0 -1
  250. package/dist/types/src/components/Graph/testing.d.ts +0 -14
  251. package/dist/types/src/components/Graph/testing.d.ts.map +0 -1
  252. package/dist/types/src/components/Tree/testing/generator.d.ts.map +0 -1
  253. package/dist/types/src/components/Tree/testing/index.d.ts +0 -2
  254. package/dist/types/src/components/Tree/testing/index.d.ts.map +0 -1
  255. package/dist/types/src/components/plot.d.ts.map +0 -1
  256. package/src/capabilities/intent-resolver.ts +0 -21
  257. package/src/components/ExplorerContainer.tsx +0 -54
  258. package/src/components/Graph/D3ForceGraph.stories.tsx +0 -77
  259. package/src/components/Graph/D3ForceGraph.tsx +0 -101
  260. package/src/components/Graph/testing.ts +0 -55
  261. package/src/components/Tree/layout/HierarchicalEdgeBundling.ts +0 -162
  262. package/src/components/Tree/layout/RadialTree.ts +0 -94
  263. package/src/components/Tree/layout/TidyTree.ts +0 -101
  264. package/src/components/Tree/testing/index.ts +0 -5
  265. /package/dist/lib/{browser/chunk-J5LGTIGS.mjs.map → neutral/ExplorerPlugin.mjs.map} +0 -0
  266. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  267. /package/dist/lib/{browser/meta.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  268. /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
  269. /package/dist/lib/{node-esm → neutral}/meta.mjs.map +0 -0
  270. /package/dist/lib/{node-esm → neutral}/types/index.mjs.map +0 -0
package/package.json CHANGED
@@ -1,104 +1,152 @@
1
1
  {
2
2
  "name": "@dxos/plugin-explorer",
3
- "version": "0.8.4-main.406dc2a",
3
+ "version": "0.8.4-main.4668b7de9b",
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
+ "./assets/PLUGIN.mdl": "./PLUGIN.mdl",
64
+ "./components": {
65
+ "source": "./src/components/index.ts",
66
+ "types": "./dist/types/src/components/index.d.ts",
67
+ "default": "./dist/lib/neutral/components/index.mjs"
68
+ },
69
+ "./hooks": {
70
+ "source": "./src/hooks/index.ts",
71
+ "types": "./dist/types/src/hooks/index.d.ts",
72
+ "default": "./dist/lib/neutral/hooks/index.mjs"
73
+ },
74
+ "./plugin": {
75
+ "source": "./src/plugin.ts",
76
+ "types": "./dist/types/src/plugin.d.ts",
77
+ "default": "./dist/lib/neutral/plugin.mjs"
78
+ },
79
+ "./testing": {
80
+ "source": "./src/testing/index.ts",
81
+ "types": "./dist/types/src/testing/index.d.ts",
82
+ "default": "./dist/lib/neutral/testing/index.mjs"
83
+ },
84
+ "./translations": {
85
+ "source": "./src/translations.ts",
86
+ "types": "./dist/types/src/translations.d.ts",
87
+ "default": "./dist/lib/neutral/translations.mjs"
40
88
  }
41
89
  },
90
+ "types": "dist/types/src/index.d.ts",
42
91
  "files": [
43
92
  "dist",
44
- "src"
93
+ "src",
94
+ "PLUGIN.mdl"
45
95
  ],
46
96
  "dependencies": {
47
- "3d-force-graph": "^1.76.1",
97
+ "@effect-atom/atom-react": "^0.5.0",
48
98
  "@observablehq/plot": "^0.6.11",
49
- "@preact-signals/safe-react": "^0.9.0",
50
- "@preact/signals-core": "^1.12.1",
51
99
  "d3": "^7.9.0",
52
- "effect": "3.18.3",
100
+ "effect": "3.20.0",
53
101
  "force-graph": "^1.49.4",
54
- "lodash.defaultsdeep": "^4.6.1",
55
102
  "react-resize-detector": "^11.0.1",
56
- "three": "^0.178.0",
57
103
  "topojson-client": "^3.1.0",
58
- "@dxos/app-framework": "0.8.4-main.406dc2a",
59
- "@dxos/client": "0.8.4-main.406dc2a",
60
- "@dxos/async": "0.8.4-main.406dc2a",
61
- "@dxos/echo": "0.8.4-main.406dc2a",
62
- "@dxos/echo-query": "0.8.4-main.406dc2a",
63
- "@dxos/graph": "0.8.4-main.406dc2a",
64
- "@dxos/invariant": "0.8.4-main.406dc2a",
65
- "@dxos/live-object": "0.8.4-main.406dc2a",
66
- "@dxos/log": "0.8.4-main.406dc2a",
67
- "@dxos/plugin-client": "0.8.4-main.406dc2a",
68
- "@dxos/plugin-graph": "0.8.4-main.406dc2a",
69
- "@dxos/plugin-search": "0.8.4-main.406dc2a",
70
- "@dxos/react-client": "0.8.4-main.406dc2a",
71
- "@dxos/plugin-space": "0.8.4-main.406dc2a",
72
- "@dxos/react-ui-attention": "0.8.4-main.406dc2a",
73
- "@dxos/react-ui-components": "0.8.4-main.406dc2a",
74
- "@dxos/react-ui-graph": "0.8.4-main.406dc2a",
75
- "@dxos/react-ui-stack": "0.8.4-main.406dc2a",
76
- "@dxos/schema": "0.8.4-main.406dc2a",
77
- "@dxos/util": "0.8.4-main.406dc2a"
104
+ "@dxos/client": "0.8.4-main.4668b7de9b",
105
+ "@dxos/app-framework": "0.8.4-main.4668b7de9b",
106
+ "@dxos/app-toolkit": "0.8.4-main.4668b7de9b",
107
+ "@dxos/compute": "0.8.4-main.4668b7de9b",
108
+ "@dxos/echo": "0.8.4-main.4668b7de9b",
109
+ "@dxos/graph": "0.8.4-main.4668b7de9b",
110
+ "@dxos/echo-query": "0.8.4-main.4668b7de9b",
111
+ "@dxos/invariant": "0.8.4-main.4668b7de9b",
112
+ "@dxos/keys": "0.8.4-main.4668b7de9b",
113
+ "@dxos/log": "0.8.4-main.4668b7de9b",
114
+ "@dxos/plugin-client": "0.8.4-main.4668b7de9b",
115
+ "@dxos/plugin-space": "0.8.4-main.4668b7de9b",
116
+ "@dxos/react-ui-components": "0.8.4-main.4668b7de9b",
117
+ "@dxos/react-client": "0.8.4-main.4668b7de9b",
118
+ "@dxos/react-ui-graph": "0.8.4-main.4668b7de9b",
119
+ "@dxos/react-ui-mosaic": "0.8.4-main.4668b7de9b",
120
+ "@dxos/types": "0.8.4-main.4668b7de9b",
121
+ "@dxos/schema": "0.8.4-main.4668b7de9b",
122
+ "@dxos/react-ui-stack": "0.8.4-main.4668b7de9b",
123
+ "@dxos/util": "0.8.4-main.4668b7de9b"
78
124
  },
79
125
  "devDependencies": {
80
126
  "@types/d3": "^7.4.3",
81
127
  "@types/d3-hierarchy": "^3.1.6",
82
128
  "@types/lodash.defaultsdeep": "^4.6.6",
83
- "@types/react": "~19.2.2",
84
- "@types/react-dom": "~19.2.1",
129
+ "@types/react": "~19.2.7",
130
+ "@types/react-dom": "~19.2.3",
85
131
  "@types/topojson-client": "^3.1.4",
86
132
  "@types/topojson-specification": "^1.0.5",
87
- "react": "~19.2.0",
88
- "react-dom": "~19.2.0",
89
- "vite": "7.1.9",
90
- "@dxos/react-ui": "0.8.4-main.406dc2a",
91
- "@dxos/random": "0.8.4-main.406dc2a",
92
- "@dxos/echo-generator": "0.8.4-main.406dc2a",
93
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a",
94
- "@dxos/storybook-utils": "0.8.4-main.406dc2a"
133
+ "react": "~19.2.3",
134
+ "react-dom": "~19.2.3",
135
+ "vite": "^8.0.14",
136
+ "@dxos/echo-generator": "0.8.4-main.4668b7de9b",
137
+ "@dxos/plugin-preview": "0.8.4-main.4668b7de9b",
138
+ "@dxos/random": "0.8.4-main.4668b7de9b",
139
+ "@dxos/react-ui": "0.8.4-main.4668b7de9b",
140
+ "@dxos/plugin-testing": "0.8.4-main.4668b7de9b",
141
+ "@dxos/storybook-utils": "0.8.4-main.4668b7de9b",
142
+ "@dxos/ui-theme": "0.8.4-main.4668b7de9b"
95
143
  },
96
144
  "peerDependencies": {
97
- "effect": "^3.13.3",
98
- "react": "^19.0.0",
99
- "react-dom": "^19.0.0",
100
- "@dxos/react-ui": "0.8.4-main.406dc2a",
101
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a"
145
+ "effect": "3.20.0",
146
+ "react": "~19.2.3",
147
+ "react-dom": "~19.2.3",
148
+ "@dxos/react-ui": "0.8.4-main.4668b7de9b",
149
+ "@dxos/ui-theme": "0.8.4-main.4668b7de9b"
102
150
  },
103
151
  "publishConfig": {
104
152
  "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,60 +2,26 @@
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
- },
30
- }),
31
- }),
32
- defineModule({
33
- id: `${meta.id}/module/object-form`,
34
- activatesOn: ClientEvents.SetupSchema,
35
- activate: () =>
36
- contributes(
37
- SpaceCapabilities.ObjectForm,
38
- defineObjectForm({
39
- objectSchema: Graph.Graph,
40
- formSchema: ExplorerAction.GraphProps,
41
- hidden: true,
42
- getIntent: (props, options) => createIntent(ExplorerAction.CreateGraph, { ...props, space: options.space }),
43
- }),
44
- ),
45
- }),
46
- defineModule({
47
- id: `${meta.id}/module/schema`,
48
- activatesOn: ClientEvents.SetupSchema,
49
- activate: () => contributes(ClientCapabilities.Schema, [Graph.Graph]),
50
- }),
51
- defineModule({
52
- id: `${meta.id}/module/react-surface`,
53
- activatesOn: Events.SetupReactSurface,
54
- activate: ReactSurface,
55
- }),
56
- defineModule({
57
- id: `${meta.id}/module/intent-resolver`,
58
- activatesOn: Events.SetupIntentResolver,
59
- activate: IntentResolver,
13
+ // eslint-disable-next-line import/no-relative-packages
14
+ import pluginSpec from '../PLUGIN.mdl?raw';
15
+
16
+ export const ExplorerPlugin = Plugin.define(meta).pipe(
17
+ AppPlugin.addCreateObjectModule({ activate: CreateObject }),
18
+ AppPlugin.addSchemaModule({ schema: [Graph.Graph] }),
19
+ AppPlugin.addSurfaceModule({ activate: ReactSurface }),
20
+ AppPlugin.addTranslationsModule({ translations }),
21
+ AppPlugin.addPluginAssetModule({
22
+ asset: { pluginId: meta.id, path: 'PLUGIN.mdl', content: pluginSpec, mimeType: 'application/x-mdl' },
60
23
  }),
61
- ]);
24
+ Plugin.make,
25
+ );
26
+
27
+ 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 { DataType } 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: DataType.View } =>
22
- Obj.instanceOf(DataType.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 = {};
@@ -7,7 +7,7 @@ import { type DotOptions } from '@observablehq/plot';
7
7
  import React, { useEffect } from 'react';
8
8
  import { useResizeDetector } from 'react-resize-detector';
9
9
 
10
- import { type Accessor, type Point, createAdapter } from '../plot';
10
+ import { type Accessor, type Point, createAdapter } from '../../util';
11
11
 
12
12
  const defaultOptions: DotOptions = {
13
13
  r: 4,
@@ -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
+ };
@@ -9,7 +9,7 @@ import { useResizeDetector } from 'react-resize-detector';
9
9
  import * as topojson from 'topojson-client';
10
10
 
11
11
  import CountriesData from '../../../data/countries-110m.js';
12
- import { type Accessor, type GeoLocation, createAdapter } from '../plot';
12
+ import { type Accessor, type GeoLocation, createAdapter } from '../../util';
13
13
 
14
14
  const defaultOptions: DotOptions = {
15
15
  r: 4,