@dxos/plugin-navtree 0.8.4-main.d05673bc65 → 0.8.4-main.d9fc60f731

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 (243) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +376 -0
  3. package/README.md +1 -1
  4. package/dist/lib/{browser/CommandsDialogContent-2DKIOLJL.mjs → neutral/CommandsDialogContent-UBGIQ5FI.mjs} +19 -20
  5. package/dist/lib/neutral/CommandsDialogContent-UBGIQ5FI.mjs.map +7 -0
  6. package/dist/lib/{browser/CommandsTrigger-ABODVVMP.mjs → neutral/CommandsTrigger-BH5WLMHK.mjs} +8 -14
  7. package/dist/lib/neutral/CommandsTrigger-BH5WLMHK.mjs.map +7 -0
  8. package/dist/lib/neutral/NavTreeContainer-6AR4BFDD.mjs +12 -0
  9. package/dist/lib/{browser/NavTreeDocumentTitle-L6NLLWLD.mjs → neutral/NavTreeDocumentTitle-H3E6ZLYE.mjs} +5 -9
  10. package/dist/lib/neutral/NavTreeDocumentTitle-H3E6ZLYE.mjs.map +7 -0
  11. package/dist/lib/neutral/NavTreePlugin.mjs +68 -0
  12. package/dist/lib/neutral/NavTreePlugin.mjs.map +7 -0
  13. package/dist/lib/neutral/NavTreePlugin.node.mjs +18 -0
  14. package/dist/lib/neutral/NavTreePlugin.node.mjs.map +7 -0
  15. package/dist/lib/neutral/NavTreePlugin.workerd.mjs +16 -0
  16. package/dist/lib/neutral/NavTreePlugin.workerd.mjs.map +7 -0
  17. package/dist/lib/{browser/app-graph-builder-Z43OTNI2.mjs → neutral/app-graph-builder-Z347LKSF.mjs} +10 -12
  18. package/dist/lib/neutral/app-graph-builder-Z347LKSF.mjs.map +7 -0
  19. package/dist/lib/neutral/capabilities/index.mjs +17 -0
  20. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  21. package/dist/lib/neutral/chunk-5OPDKH6B.mjs +273 -0
  22. package/dist/lib/neutral/chunk-5OPDKH6B.mjs.map +7 -0
  23. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  24. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  25. package/dist/lib/neutral/chunk-JOSNCOV4.mjs +79 -0
  26. package/dist/lib/neutral/chunk-JOSNCOV4.mjs.map +7 -0
  27. package/dist/lib/neutral/chunk-MDGKDQMZ.mjs +37 -0
  28. package/dist/lib/neutral/chunk-MDGKDQMZ.mjs.map +7 -0
  29. package/dist/lib/neutral/chunk-T7QS2EFI.mjs +8 -0
  30. package/dist/lib/neutral/chunk-T7QS2EFI.mjs.map +7 -0
  31. package/dist/lib/neutral/chunk-ZSWYB7JW.mjs +27 -0
  32. package/dist/lib/neutral/chunk-ZSWYB7JW.mjs.map +7 -0
  33. package/dist/lib/neutral/components/index.mjs +807 -0
  34. package/dist/lib/neutral/components/index.mjs.map +7 -0
  35. package/dist/lib/neutral/containers/index.mjs +20 -0
  36. package/dist/lib/{browser/chunk-AYF2TX65.mjs.map → neutral/containers/index.mjs.map} +3 -3
  37. package/dist/lib/neutral/expose-26FV4W5D.mjs +38 -0
  38. package/dist/lib/neutral/expose-26FV4W5D.mjs.map +7 -0
  39. package/dist/lib/neutral/hooks/index.mjs +178 -0
  40. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  41. package/dist/lib/neutral/index.mjs +34 -0
  42. package/dist/lib/neutral/index.mjs.map +7 -0
  43. package/dist/lib/{browser/keyboard-HYGFQO7T.mjs → neutral/keyboard-EJ65BVTC.mjs} +4 -5
  44. package/dist/lib/neutral/keyboard-EJ65BVTC.mjs.map +7 -0
  45. package/dist/lib/neutral/meta.json +1 -0
  46. package/dist/lib/neutral/meta.mjs +12 -0
  47. package/dist/lib/neutral/meta.mjs.map +7 -0
  48. package/dist/lib/neutral/operation-handler-ORDOJUL2.mjs +13 -0
  49. package/dist/lib/neutral/operation-handler-ORDOJUL2.mjs.map +7 -0
  50. package/dist/lib/neutral/operations/index.mjs +8 -0
  51. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  52. package/dist/lib/neutral/plugin.mjs +16 -0
  53. package/dist/lib/neutral/plugin.mjs.map +7 -0
  54. package/dist/lib/{browser/react-surface-D2RLMV4Z.mjs → neutral/react-surface-Q5XMAG7Z.mjs} +11 -20
  55. package/dist/lib/neutral/react-surface-Q5XMAG7Z.mjs.map +7 -0
  56. package/dist/lib/{browser/state-CWMNNF7K.mjs → neutral/state-VVITVXWM.mjs} +6 -10
  57. package/dist/lib/neutral/state-VVITVXWM.mjs.map +7 -0
  58. package/dist/lib/neutral/testing/index.mjs +439 -0
  59. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  60. package/dist/lib/neutral/translations.mjs +23 -0
  61. package/dist/lib/neutral/translations.mjs.map +7 -0
  62. package/dist/lib/neutral/types/index.mjs +10 -0
  63. package/dist/lib/neutral/types/index.mjs.map +7 -0
  64. package/dist/types/src/NavTreePlugin.d.ts +1 -0
  65. package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
  66. package/dist/types/src/NavTreePlugin.node.d.ts +4 -0
  67. package/dist/types/src/NavTreePlugin.node.d.ts.map +1 -0
  68. package/dist/types/src/NavTreePlugin.test.d.ts +2 -0
  69. package/dist/types/src/NavTreePlugin.test.d.ts.map +1 -0
  70. package/dist/types/src/NavTreePlugin.workerd.d.ts +4 -0
  71. package/dist/types/src/NavTreePlugin.workerd.d.ts.map +1 -0
  72. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  73. package/dist/types/src/capabilities/index.d.ts +7 -5
  74. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  75. package/dist/types/src/capabilities/keyboard.d.ts.map +1 -0
  76. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  77. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  78. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  79. package/dist/types/src/capabilities/state.d.ts +6 -0
  80. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  81. package/dist/types/src/components/NavTree/NavTree.d.ts.map +1 -1
  82. package/dist/types/src/components/NavTree/NavTree.stories.d.ts +9 -11
  83. package/dist/types/src/components/NavTree/NavTree.stories.d.ts.map +1 -1
  84. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts +5 -3
  85. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.d.ts.map +1 -1
  86. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts +1 -1
  87. package/dist/types/src/components/NavTreeItem/NavTreeItemAction.stories.d.ts.map +1 -1
  88. package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts.map +1 -1
  89. package/dist/types/src/components/Sidebar/L0Menu.d.ts.map +1 -1
  90. package/dist/types/src/components/Sidebar/L1Panel.d.ts.map +1 -1
  91. package/dist/types/src/components/Sidebar/L1Tabs.d.ts.map +1 -1
  92. package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.d.ts.map +1 -1
  93. package/dist/types/src/components/UserAccountAvatar/UserAccountAvatar.stories.d.ts.map +1 -1
  94. package/dist/types/src/components/types.d.ts +1 -2
  95. package/dist/types/src/components/types.d.ts.map +1 -1
  96. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.d.ts.map +1 -1
  97. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.stories.d.ts +28 -0
  98. package/dist/types/src/containers/CommandsDialogContent/CommandsDialogContent.stories.d.ts.map +1 -0
  99. package/dist/types/src/containers/CommandsDialogContent/index.d.ts +1 -2
  100. package/dist/types/src/containers/CommandsDialogContent/index.d.ts.map +1 -1
  101. package/dist/types/src/containers/CommandsTrigger/CommandsTrigger.d.ts.map +1 -1
  102. package/dist/types/src/containers/CommandsTrigger/index.d.ts +1 -2
  103. package/dist/types/src/containers/CommandsTrigger/index.d.ts.map +1 -1
  104. package/dist/types/src/containers/NavTreeContainer/NavTreeContainer.d.ts.map +1 -1
  105. package/dist/types/src/containers/NavTreeDocumentTitle/NavTreeDocumentTitle.d.ts.map +1 -1
  106. package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts +1 -2
  107. package/dist/types/src/containers/NavTreeDocumentTitle/index.d.ts.map +1 -1
  108. package/dist/types/src/experimental/Tree.d.ts +2 -2
  109. package/dist/types/src/experimental/Tree.d.ts.map +1 -1
  110. package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
  111. package/dist/types/src/hooks/useActions.d.ts +7 -1
  112. package/dist/types/src/hooks/useActions.d.ts.map +1 -1
  113. package/dist/types/src/hooks/useLoadDescendents.d.ts.map +1 -1
  114. package/dist/types/src/hooks/useNavTreeModel.d.ts +1 -1
  115. package/dist/types/src/hooks/useNavTreeModel.d.ts.map +1 -1
  116. package/dist/types/src/hooks/useNavTreeState.d.ts +2 -6
  117. package/dist/types/src/hooks/useNavTreeState.d.ts.map +1 -1
  118. package/dist/types/src/index.d.ts +1 -2
  119. package/dist/types/src/index.d.ts.map +1 -1
  120. package/dist/types/src/meta.d.ts +3 -2
  121. package/dist/types/src/meta.d.ts.map +1 -1
  122. package/dist/types/src/operations/expose.d.ts +5 -0
  123. package/dist/types/src/operations/expose.d.ts.map +1 -0
  124. package/dist/types/src/operations/index.d.ts +3 -0
  125. package/dist/types/src/operations/index.d.ts.map +1 -0
  126. package/dist/types/src/plugin.d.ts +4 -0
  127. package/dist/types/src/plugin.d.ts.map +1 -0
  128. package/dist/types/src/testing/app-graph-builder.d.ts.map +1 -1
  129. package/dist/types/src/testing/generator.d.ts.map +1 -1
  130. package/dist/types/src/testing/update-state.d.ts.map +1 -1
  131. package/dist/types/src/translations.d.ts +8 -11
  132. package/dist/types/src/translations.d.ts.map +1 -1
  133. package/dist/types/src/types/NavTreeCapabilities.d.ts +13 -0
  134. package/dist/types/src/types/NavTreeCapabilities.d.ts.map +1 -0
  135. package/dist/types/src/types/NavTreeEvents.d.ts +3 -0
  136. package/dist/types/src/types/NavTreeEvents.d.ts.map +1 -0
  137. package/dist/types/src/types/index.d.ts +2 -2
  138. package/dist/types/src/types/index.d.ts.map +1 -1
  139. package/dist/types/src/types/schema.d.ts +4 -0
  140. package/dist/types/src/types/schema.d.ts.map +1 -1
  141. package/dist/types/src/util.d.ts +2 -2
  142. package/dist/types/src/util.d.ts.map +1 -1
  143. package/dist/types/tsconfig.tsbuildinfo +1 -1
  144. package/package.json +110 -50
  145. package/src/NavTreePlugin.node.ts +17 -0
  146. package/src/NavTreePlugin.test.ts +27 -0
  147. package/src/NavTreePlugin.tsx +16 -27
  148. package/src/NavTreePlugin.workerd.ts +16 -0
  149. package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +7 -7
  150. package/src/capabilities/index.ts +11 -5
  151. package/src/capabilities/{keyboard/keyboard.ts → keyboard.ts} +1 -1
  152. package/src/capabilities/operation-handler.ts +16 -0
  153. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +9 -9
  154. package/src/capabilities/{state/state.ts → state.ts} +13 -9
  155. package/src/components/NavTree/NavTree.stories.tsx +22 -23
  156. package/src/components/NavTree/NavTree.tsx +5 -4
  157. package/src/components/NavTreeItem/NavTreeItemAction.stories.tsx +8 -10
  158. package/src/components/NavTreeItem/NavTreeItemAction.tsx +50 -50
  159. package/src/components/NavTreeItem/NavTreeItemColumns.tsx +20 -63
  160. package/src/components/Sidebar/L0Menu.tsx +61 -80
  161. package/src/components/Sidebar/L1Panel.tsx +98 -174
  162. package/src/components/Sidebar/L1Tabs.tsx +0 -1
  163. package/src/components/types.ts +1 -2
  164. package/src/containers/CommandsDialogContent/CommandsDialogContent.stories.tsx +46 -0
  165. package/src/containers/CommandsDialogContent/CommandsDialogContent.tsx +51 -59
  166. package/src/containers/CommandsDialogContent/index.ts +1 -3
  167. package/src/containers/CommandsTrigger/CommandsTrigger.tsx +7 -5
  168. package/src/containers/CommandsTrigger/index.ts +1 -3
  169. package/src/containers/NavTreeContainer/NavTreeContainer.tsx +24 -24
  170. package/src/containers/NavTreeDocumentTitle/NavTreeDocumentTitle.tsx +2 -2
  171. package/src/containers/NavTreeDocumentTitle/index.ts +1 -3
  172. package/src/experimental/Tree.stories.tsx +27 -27
  173. package/src/experimental/Tree.tsx +2 -2
  174. package/src/hooks/useActions.ts +11 -1
  175. package/src/hooks/useNavTreeModel.ts +5 -3
  176. package/src/hooks/useNavTreeState.ts +2 -9
  177. package/src/index.ts +1 -2
  178. package/src/meta.ts +22 -7
  179. package/src/operations/expose.ts +42 -0
  180. package/src/operations/index.ts +7 -0
  181. package/src/plugin.ts +11 -0
  182. package/src/testing/app-graph-builder.ts +42 -36
  183. package/src/testing/generator.ts +23 -28
  184. package/src/translations.ts +8 -10
  185. package/src/types/NavTreeCapabilities.ts +21 -0
  186. package/src/types/NavTreeEvents.ts +12 -0
  187. package/src/types/index.ts +3 -2
  188. package/src/types/schema.ts +4 -0
  189. package/src/util.ts +2 -2
  190. package/src/vite-env.d.ts +10 -0
  191. package/dist/lib/browser/CommandsDialogContent-2DKIOLJL.mjs.map +0 -7
  192. package/dist/lib/browser/CommandsTrigger-ABODVVMP.mjs.map +0 -7
  193. package/dist/lib/browser/NavTreeContainer-TLSYS4KK.mjs +0 -12
  194. package/dist/lib/browser/NavTreeDocumentTitle-L6NLLWLD.mjs.map +0 -7
  195. package/dist/lib/browser/app-graph-builder-Z43OTNI2.mjs.map +0 -7
  196. package/dist/lib/browser/chunk-A4VDCIJC.mjs +0 -19
  197. package/dist/lib/browser/chunk-A4VDCIJC.mjs.map +0 -7
  198. package/dist/lib/browser/chunk-AYF2TX65.mjs +0 -14
  199. package/dist/lib/browser/chunk-JT37R5HS.mjs +0 -1468
  200. package/dist/lib/browser/chunk-JT37R5HS.mjs.map +0 -7
  201. package/dist/lib/browser/chunk-KF26WA4O.mjs +0 -23
  202. package/dist/lib/browser/chunk-KF26WA4O.mjs.map +0 -7
  203. package/dist/lib/browser/index.mjs +0 -141
  204. package/dist/lib/browser/index.mjs.map +0 -7
  205. package/dist/lib/browser/keyboard-HYGFQO7T.mjs.map +0 -7
  206. package/dist/lib/browser/meta.json +0 -1
  207. package/dist/lib/browser/operation-resolver-VDWVUII5.mjs +0 -49
  208. package/dist/lib/browser/operation-resolver-VDWVUII5.mjs.map +0 -7
  209. package/dist/lib/browser/react-surface-D2RLMV4Z.mjs.map +0 -7
  210. package/dist/lib/browser/state-CWMNNF7K.mjs.map +0 -7
  211. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  212. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  213. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  214. package/dist/types/src/capabilities/keyboard/index.d.ts +0 -3
  215. package/dist/types/src/capabilities/keyboard/index.d.ts.map +0 -1
  216. package/dist/types/src/capabilities/keyboard/keyboard.d.ts.map +0 -1
  217. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  218. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  219. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  220. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  221. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  222. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  223. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  224. package/dist/types/src/capabilities/state/index.d.ts +0 -3
  225. package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
  226. package/dist/types/src/capabilities/state/state.d.ts +0 -6
  227. package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
  228. package/dist/types/src/types/capabilities.d.ts +0 -16
  229. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  230. package/dist/types/src/types/events.d.ts +0 -5
  231. package/dist/types/src/types/events.d.ts.map +0 -1
  232. package/src/capabilities/app-graph-builder/index.ts +0 -7
  233. package/src/capabilities/keyboard/index.ts +0 -7
  234. package/src/capabilities/operation-resolver/index.ts +0 -7
  235. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -45
  236. package/src/capabilities/react-surface/index.ts +0 -7
  237. package/src/capabilities/state/index.ts +0 -7
  238. package/src/types/capabilities.ts +0 -21
  239. package/src/types/events.ts +0 -12
  240. /package/dist/lib/{browser/NavTreeContainer-TLSYS4KK.mjs.map → neutral/NavTreeContainer-6AR4BFDD.mjs.map} +0 -0
  241. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  242. /package/dist/types/src/capabilities/{keyboard/keyboard.d.ts → keyboard.d.ts} +0 -0
  243. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-navtree",
3
- "version": "0.8.4-main.d05673bc65",
3
+ "version": "0.8.4-main.d9fc60f731",
4
4
  "description": "DXOS Surface plugin for a tree view visualization of the graph.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -8,83 +8,143 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/dxos/dxos"
10
10
  },
11
- "license": "MIT",
11
+ "license": "FSL-1.1-Apache-2.0",
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": true,
14
14
  "type": "module",
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"
25
+ },
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": {
37
+ "source": "./src/meta.ts",
38
+ "types": "./dist/types/src/meta.d.ts",
39
+ "default": "./dist/lib/neutral/meta.mjs"
40
+ },
41
+ "#operations": {
42
+ "source": "./src/operations/index.ts",
43
+ "types": "./dist/types/src/operations/index.d.ts",
44
+ "default": "./dist/lib/neutral/operations/index.mjs"
45
+ },
46
+ "#plugin": {
47
+ "source": {
48
+ "workerd": "./src/NavTreePlugin.workerd.ts",
49
+ "node": "./src/NavTreePlugin.node.ts",
50
+ "default": "./src/NavTreePlugin.tsx"
51
+ },
52
+ "types": "./dist/types/src/NavTreePlugin.d.ts",
53
+ "workerd": "./dist/lib/neutral/NavTreePlugin.workerd.mjs",
54
+ "node": "./dist/lib/neutral/NavTreePlugin.node.mjs",
55
+ "default": "./dist/lib/neutral/NavTreePlugin.mjs"
56
+ },
57
+ "#testing": {
58
+ "source": "./src/testing/index.ts",
59
+ "types": "./dist/types/src/testing/index.d.ts",
60
+ "default": "./dist/lib/neutral/testing/index.mjs"
61
+ },
62
+ "#translations": {
63
+ "source": "./src/translations.ts",
64
+ "types": "./dist/types/src/translations.d.ts",
65
+ "default": "./dist/lib/neutral/translations.mjs"
66
+ },
67
+ "#types": {
68
+ "source": "./src/types/index.ts",
69
+ "types": "./dist/types/src/types/index.d.ts",
70
+ "default": "./dist/lib/neutral/types/index.mjs"
71
+ }
72
+ },
15
73
  "exports": {
16
74
  ".": {
17
75
  "source": "./src/index.ts",
18
76
  "types": "./dist/types/src/index.d.ts",
19
- "browser": "./dist/lib/browser/index.mjs"
77
+ "default": "./dist/lib/neutral/index.mjs"
78
+ },
79
+ "./assets/PLUGIN.mdl": "./PLUGIN.mdl",
80
+ "./plugin": {
81
+ "source": "./src/plugin.ts",
82
+ "types": "./dist/types/src/plugin.d.ts",
83
+ "default": "./dist/lib/neutral/plugin.mjs"
84
+ },
85
+ "./translations": {
86
+ "source": "./src/translations.ts",
87
+ "types": "./dist/types/src/translations.d.ts",
88
+ "default": "./dist/lib/neutral/translations.mjs"
20
89
  }
21
90
  },
22
91
  "types": "dist/types/src/index.d.ts",
23
- "typesVersions": {
24
- "*": {}
25
- },
26
92
  "files": [
27
93
  "dist",
28
- "src"
94
+ "src",
95
+ "PLUGIN.mdl"
29
96
  ],
30
97
  "dependencies": {
31
98
  "@atlaskit/pragmatic-drag-and-drop": "1.7.7",
32
99
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "1.1.0",
33
- "@radix-ui/react-dismissable-layer": "1.1.5",
34
- "@radix-ui/react-use-controllable-state": "1.1.0",
35
- "date-fns": "^3.3.1",
36
- "@dxos/app-framework": "0.8.4-main.d05673bc65",
37
- "@dxos/app-graph": "0.8.4-main.d05673bc65",
38
- "@dxos/async": "0.8.4-main.d05673bc65",
39
- "@dxos/echo": "0.8.4-main.d05673bc65",
40
- "@dxos/debug": "0.8.4-main.d05673bc65",
41
- "@dxos/app-toolkit": "0.8.4-main.d05673bc65",
42
- "@dxos/invariant": "0.8.4-main.d05673bc65",
43
- "@dxos/keyboard": "0.8.4-main.d05673bc65",
44
- "@dxos/lit-ui": "0.8.4-main.d05673bc65",
45
- "@dxos/log": "0.8.4-main.d05673bc65",
46
- "@dxos/operation": "0.8.4-main.d05673bc65",
47
- "@dxos/plugin-deck": "0.8.4-main.d05673bc65",
48
- "@dxos/plugin-graph": "0.8.4-main.d05673bc65",
49
- "@dxos/plugin-observability": "0.8.4-main.d05673bc65",
50
- "@dxos/protocols": "0.8.4-main.d05673bc65",
51
- "@dxos/react-client": "0.8.4-main.d05673bc65",
52
- "@dxos/react-ui-attention": "0.8.4-main.d05673bc65",
53
- "@dxos/react-ui-list": "0.8.4-main.d05673bc65",
54
- "@dxos/react-ui-menu": "0.8.4-main.d05673bc65",
55
- "@dxos/react-ui-mosaic": "0.8.4-main.d05673bc65",
56
- "@dxos/react-ui-searchlist": "0.8.4-main.d05673bc65",
57
- "@dxos/react-ui-stack": "0.8.4-main.d05673bc65",
58
- "@dxos/util": "0.8.4-main.d05673bc65",
59
- "@dxos/react-ui-tabs": "0.8.4-main.d05673bc65"
100
+ "@dxos/app-framework": "0.8.4-main.d9fc60f731",
101
+ "@dxos/async": "0.8.4-main.d9fc60f731",
102
+ "@dxos/app-graph": "0.8.4-main.d9fc60f731",
103
+ "@dxos/app-toolkit": "0.8.4-main.d9fc60f731",
104
+ "@dxos/compute": "0.8.4-main.d9fc60f731",
105
+ "@dxos/debug": "0.8.4-main.d9fc60f731",
106
+ "@dxos/keyboard": "0.8.4-main.d9fc60f731",
107
+ "@dxos/lit-ui": "0.8.4-main.d9fc60f731",
108
+ "@dxos/echo": "0.8.4-main.d9fc60f731",
109
+ "@dxos/keys": "0.8.4-main.d9fc60f731",
110
+ "@dxos/plugin-graph": "0.8.4-main.d9fc60f731",
111
+ "@dxos/plugin-deck": "0.8.4-main.d9fc60f731",
112
+ "@dxos/log": "0.8.4-main.d9fc60f731",
113
+ "@dxos/random": "0.8.4-main.d9fc60f731",
114
+ "@dxos/react-ui-attention": "0.8.4-main.d9fc60f731",
115
+ "@dxos/react-ui-list": "0.8.4-main.d9fc60f731",
116
+ "@dxos/react-ui-menu": "0.8.4-main.d9fc60f731",
117
+ "@dxos/react-ui-stack": "0.8.4-main.d9fc60f731",
118
+ "@dxos/react-ui-search": "0.8.4-main.d9fc60f731",
119
+ "@dxos/react-ui-tabs": "0.8.4-main.d9fc60f731",
120
+ "@dxos/util": "0.8.4-main.d9fc60f731"
60
121
  },
61
122
  "devDependencies": {
62
123
  "@effect-atom/atom-react": "^0.5.0",
63
- "@effect/platform": "0.94.4",
124
+ "@effect/platform": "0.96.1",
64
125
  "@types/react": "~19.2.7",
65
126
  "@types/react-dom": "~19.2.3",
66
- "effect": "3.19.16",
127
+ "effect": "3.21.2",
67
128
  "react": "~19.2.3",
68
129
  "react-dom": "~19.2.3",
69
- "vite": "^7.1.11",
70
- "@dxos/plugin-attention": "0.8.4-main.d05673bc65",
71
- "@dxos/plugin-client": "0.8.4-main.d05673bc65",
72
- "@dxos/plugin-space": "0.8.4-main.d05673bc65",
73
- "@dxos/plugin-testing": "0.8.4-main.d05673bc65",
74
- "@dxos/plugin-theme": "0.8.4-main.d05673bc65",
75
- "@dxos/random": "0.8.4-main.d05673bc65",
76
- "@dxos/storybook-utils": "0.8.4-main.d05673bc65",
77
- "@dxos/ui-theme": "0.8.4-main.d05673bc65",
78
- "@dxos/react-ui": "0.8.4-main.d05673bc65"
130
+ "vite": "^8.0.14",
131
+ "@dxos/plugin-attention": "0.8.4-main.d9fc60f731",
132
+ "@dxos/plugin-client": "0.8.4-main.d9fc60f731",
133
+ "@dxos/plugin-space": "0.8.4-main.d9fc60f731",
134
+ "@dxos/plugin-testing": "0.8.4-main.d9fc60f731",
135
+ "@dxos/plugin-theme": "0.8.4-main.d9fc60f731",
136
+ "@dxos/react-ui": "0.8.4-main.d9fc60f731",
137
+ "@dxos/storybook-utils": "0.8.4-main.d9fc60f731",
138
+ "@dxos/ui-theme": "0.8.4-main.d9fc60f731"
79
139
  },
80
140
  "peerDependencies": {
81
141
  "@effect-atom/atom-react": "^0.5.0",
82
- "@effect/platform": "0.94.4",
83
- "effect": "3.19.16",
142
+ "@effect/platform": "0.96.1",
143
+ "effect": "3.21.2",
84
144
  "react": "~19.2.3",
85
145
  "react-dom": "~19.2.3",
86
- "@dxos/react-ui": "0.8.4-main.d05673bc65",
87
- "@dxos/ui-theme": "0.8.4-main.d05673bc65"
146
+ "@dxos/react-ui": "0.8.4-main.d9fc60f731",
147
+ "@dxos/ui-theme": "0.8.4-main.d9fc60f731"
88
148
  },
89
149
  "publishConfig": {
90
150
  "access": "public"
@@ -0,0 +1,17 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+ import { AppPlugin } from '@dxos/app-toolkit';
7
+
8
+ import { AppGraphBuilder, OperationHandler } from '#capabilities';
9
+ import { meta } from '#meta';
10
+
11
+ export const NavTreePlugin = Plugin.define(meta).pipe(
12
+ AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
13
+ AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
14
+ Plugin.make,
15
+ );
16
+
17
+ export default NavTreePlugin;
@@ -0,0 +1,27 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { ActivationEvents } from '@dxos/app-framework';
8
+ import { createComposerTestApp } from '@dxos/plugin-testing/harness';
9
+
10
+ import { NavTreePlugin } from '#plugin';
11
+
12
+ import { meta } from './meta';
13
+
14
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
15
+
16
+ describe('NavTreePlugin', () => {
17
+ test('modules activate on the expected events', async ({ expect }) => {
18
+ await using harness = await createComposerTestApp({
19
+ plugins: [NavTreePlugin()],
20
+ });
21
+
22
+ expect(harness.manager.getActive()).toEqual(expect.arrayContaining([moduleId('AppGraphBuilder')]));
23
+
24
+ await harness.fire(ActivationEvents.SetupProcessManager);
25
+ expect(harness.manager.getActive()).toContain(moduleId('OperationHandler'));
26
+ });
27
+ });
@@ -7,46 +7,30 @@ import * as Effect from 'effect/Effect';
7
7
  import { ActivationEvent, ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';
8
8
  import { AppActivationEvents, AppCapabilities, AppPlugin, LayoutOperation } from '@dxos/app-toolkit';
9
9
  import { Graph } from '@dxos/plugin-graph';
10
- import { type TreeData } from '@dxos/react-ui-list';
11
10
 
12
- import { AppGraphBuilder, Keyboard, OperationResolver, ReactSurface, State } from './capabilities';
13
- import { NODE_TYPE } from './containers';
14
- import { meta } from './meta';
15
- import { translations } from './translations';
16
- import { NavTreeEvents } from './types';
11
+ import { AppGraphBuilder, Keyboard, OperationHandler, ReactSurface, State } from '#capabilities';
12
+ import { meta } from '#meta';
13
+ import { translations } from '#translations';
14
+ import { NavTreeEvents } from '#types';
15
+
16
+ // eslint-disable-next-line import/no-relative-packages
17
+ import pluginSpec from '../PLUGIN.mdl?raw';
17
18
 
18
19
  export const NavTreePlugin = Plugin.define(meta).pipe(
19
20
  AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
20
- AppPlugin.addMetadataModule({
21
- metadata: {
22
- id: NODE_TYPE,
23
- metadata: {
24
- parse: ({ item }: TreeData, type: string) => {
25
- switch (type) {
26
- case 'node':
27
- return item;
28
- case 'object':
29
- return item.data;
30
- case 'view-object':
31
- return { id: `${item.id}-view`, object: item.data };
32
- }
33
- },
34
- },
35
- },
36
- }),
37
- AppPlugin.addOperationResolverModule({ activate: OperationResolver }),
21
+ AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
38
22
  AppPlugin.addSurfaceModule({ activate: ReactSurface }),
39
23
  AppPlugin.addTranslationsModule({ translations }),
40
24
  Plugin.addModule({
41
25
  id: 'state',
42
26
  activatesOn: AppActivationEvents.LayoutReady,
43
- activatesAfter: [NavTreeEvents.StateReady],
27
+ firesAfterActivation: [NavTreeEvents.StateReady],
44
28
  activate: State,
45
29
  }),
46
30
  Plugin.addModule({
47
31
  id: 'expose',
48
32
  activatesOn: ActivationEvent.allOf(
49
- ActivationEvents.OperationInvokerReady,
33
+ ActivationEvents.ProcessManagerReady,
50
34
  AppActivationEvents.AppGraphReady,
51
35
  AppActivationEvents.LayoutReady,
52
36
  NavTreeEvents.StateReady,
@@ -68,8 +52,13 @@ export const NavTreePlugin = Plugin.define(meta).pipe(
68
52
  }),
69
53
  Plugin.addModule({
70
54
  id: 'keyboard',
71
- activatesOn: ActivationEvent.allOf(AppActivationEvents.AppGraphReady, ActivationEvents.OperationInvokerReady),
55
+ activatesOn: ActivationEvent.allOf(AppActivationEvents.AppGraphReady, ActivationEvents.ProcessManagerReady),
72
56
  activate: Keyboard,
73
57
  }),
58
+ AppPlugin.addPluginAssetModule({
59
+ asset: { pluginId: meta.id, path: 'PLUGIN.mdl', content: pluginSpec, mimeType: 'application/x-mdl' },
60
+ }),
74
61
  Plugin.make,
75
62
  );
63
+
64
+ export default NavTreePlugin;
@@ -0,0 +1,16 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+ import { AppPlugin } from '@dxos/app-toolkit';
7
+
8
+ import { OperationHandler } from '#capabilities';
9
+ import { meta } from '#meta';
10
+
11
+ export const NavTreePlugin = Plugin.define(meta).pipe(
12
+ AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
13
+ Plugin.make,
14
+ );
15
+
16
+ export default NavTreePlugin;
@@ -6,19 +6,19 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capability } from '@dxos/app-framework';
8
8
  import { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';
9
- import { Operation } from '@dxos/operation';
10
- import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
9
+ import { Operation } from '@dxos/compute';
10
+ import { GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
11
11
 
12
- import { COMMANDS_DIALOG, meta } from '../../meta';
12
+ import { COMMANDS_DIALOG, meta } from '#meta';
13
13
 
14
14
  export default Capability.makeModule(
15
15
  Effect.fnUntraced(function* () {
16
16
  const extensions = yield* GraphBuilder.createExtension({
17
- id: meta.id,
17
+ id: 'root',
18
18
  match: NodeMatcher.whenRoot,
19
19
  actions: () =>
20
20
  Effect.succeed([
21
- {
21
+ Node.makeAction({
22
22
  id: COMMANDS_DIALOG,
23
23
  data: () =>
24
24
  Operation.invoke(LayoutOperation.UpdateDialog, {
@@ -26,14 +26,14 @@ export default Capability.makeModule(
26
26
  blockAlign: 'start',
27
27
  }),
28
28
  properties: {
29
- label: ['open commands label', { ns: meta.id }],
29
+ label: ['open-commands.label', { ns: meta.id }],
30
30
  icon: 'ph--magnifying-glass--regular',
31
31
  keyBinding: {
32
32
  macos: 'meta+k',
33
33
  windows: 'ctrl+k',
34
34
  },
35
35
  },
36
- },
36
+ }),
37
37
  ]),
38
38
  });
39
39
 
@@ -2,8 +2,14 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './app-graph-builder';
6
- export * from './keyboard';
7
- export * from './operation-resolver';
8
- export * from './react-surface';
9
- export * from './state';
5
+ import { Capability } from '@dxos/app-framework';
6
+ import { OperationHandlerSet } from '@dxos/compute';
7
+
8
+ export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
9
+ export const Keyboard = Capability.lazy('Keyboard', () => import('./keyboard'));
10
+ export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
11
+ 'OperationHandler',
12
+ () => import('./operation-handler'),
13
+ );
14
+ export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
15
+ export const State = Capability.lazy('State', () => import('./state'));
@@ -11,7 +11,7 @@ import { Keyboard } from '@dxos/keyboard';
11
11
  import { Graph, Node, runAction } from '@dxos/plugin-graph';
12
12
  import { getHostPlatform } from '@dxos/util';
13
13
 
14
- import { KEY_BINDING } from '../../meta';
14
+ import { KEY_BINDING } from '#meta';
15
15
 
16
16
  export default Capability.makeModule(
17
17
  Effect.fnUntraced(function* () {
@@ -0,0 +1,16 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capabilities, Capability } from '@dxos/app-framework';
8
+ import type { OperationHandlerSet } from '@dxos/compute';
9
+
10
+ import { NavTreeOperationHandlerSet } from '#operations';
11
+
12
+ export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
13
+ Effect.fnUntraced(function* () {
14
+ return Capability.contributes(Capabilities.OperationHandler, NavTreeOperationHandlerSet);
15
+ }),
16
+ );
@@ -3,26 +3,26 @@
3
3
  //
4
4
 
5
5
  import * as Effect from 'effect/Effect';
6
- import React from 'react';
6
+ import React, { type ComponentProps } from 'react';
7
7
 
8
8
  import { Capabilities, Capability } from '@dxos/app-framework';
9
9
  import { Surface } from '@dxos/app-framework/ui';
10
+ import { AppSurface } from '@dxos/app-toolkit/ui';
10
11
  import { Node } from '@dxos/plugin-graph';
11
12
 
12
- import { CommandsDialogContent, CommandsTrigger, NavTreeContainer, NavTreeDocumentTitle } from '../../containers';
13
- import { COMMANDS_DIALOG, meta } from '../../meta';
13
+ import { CommandsDialogContent, CommandsTrigger, NavTreeContainer, NavTreeDocumentTitle } from '#containers';
14
+ import { COMMANDS_DIALOG } from '#meta';
14
15
 
15
16
  export default Capability.makeModule(() =>
16
17
  Effect.succeed(
17
18
  Capability.contributes(Capabilities.ReactSurface, [
18
19
  Surface.create({
19
20
  id: COMMANDS_DIALOG,
20
- role: 'dialog',
21
- filter: (data): data is { props: { selected?: string } } => data.component === COMMANDS_DIALOG,
21
+ filter: AppSurface.component<ComponentProps<typeof CommandsDialogContent>>(AppSurface.Dialog, COMMANDS_DIALOG),
22
22
  component: ({ data, ref }) => <CommandsDialogContent {...data.props} ref={ref} />,
23
23
  }),
24
24
  Surface.create({
25
- id: `${meta.id}.navigation`,
25
+ id: 'navigation',
26
26
  role: 'navigation',
27
27
  filter: (data): data is { popoverAnchorId?: string; current: string } => typeof data.current === 'string',
28
28
  component: ({ data, ref }) => {
@@ -36,16 +36,16 @@ export default Capability.makeModule(() =>
36
36
  },
37
37
  }),
38
38
  Surface.create({
39
- id: `${meta.id}.document-title`,
39
+ id: 'documentTitle',
40
40
  role: 'document-title',
41
41
  component: ({ data }) => (
42
42
  <NavTreeDocumentTitle node={Node.isGraphNode(data.subject) ? data.subject : undefined} />
43
43
  ),
44
44
  }),
45
45
  Surface.create({
46
- id: `${meta.id}.search-input`,
46
+ id: 'searchInput',
47
47
  role: 'search-input',
48
- position: 'fallback',
48
+ position: 'last',
49
49
  component: () => <CommandsTrigger />,
50
50
  }),
51
51
  ]),
@@ -10,22 +10,24 @@ import { AppCapabilities } from '@dxos/app-toolkit';
10
10
  import { Graph, Node } from '@dxos/plugin-graph';
11
11
  import { Path } from '@dxos/react-ui-list';
12
12
 
13
- import { meta } from '../../meta';
14
- import { type NavTreeCapabilities as NC, NavTreeCapabilities } from '../../types';
13
+ import { meta } from '#meta';
14
+ import { NavTreeCapabilities } from '#types';
15
15
 
16
16
  const KEY = `${meta.id}.state.v1`;
17
17
 
18
18
  /** Default item state for new entries. */
19
- const defaultItemState: NC.NavTreeItemState = { open: false, current: false, alternateTree: false };
19
+ const defaultItemState: NavTreeCapabilities.NavTreeItemState = { open: false, current: false };
20
20
 
21
21
  /** L0 (top-level workspace) paths are direct children of root — not part of the expandable tree model. */
22
22
  const isTopLevelPath = (path: string[]): boolean => path.length === 2 && path[0] === Node.RootId;
23
23
 
24
24
  /** Default state entries for initial tree structure. */
25
25
  // TODO(thure): Initialize these dynamically.
26
- const defaultStateEntries: [string, NC.NavTreeItemState][] = [['root', { open: true, current: false }]];
26
+ const defaultStateEntries: [string, NavTreeCapabilities.NavTreeItemState][] = [
27
+ ['root', { open: true, current: false }],
28
+ ];
27
29
 
28
- const getInitialState = (): Map<string, NC.NavTreeItemState> => {
30
+ const getInitialState = (): Map<string, NavTreeCapabilities.NavTreeItemState> => {
29
31
  const stringified = localStorage.getItem(KEY);
30
32
  if (!stringified) {
31
33
  return new Map(defaultStateEntries);
@@ -51,10 +53,12 @@ export default Capability.makeModule(
51
53
  // keepAlive prevents atoms from being garbage collected when components unmount,
52
54
  // ensuring state is preserved across deletion/restoration cycles.
53
55
  const itemAtomFamily = Atom.family((pathString: string) =>
54
- Atom.make<NC.NavTreeItemState>(backingState.get(pathString) ?? { ...defaultItemState }).pipe(Atom.keepAlive),
56
+ Atom.make<NavTreeCapabilities.NavTreeItemState>(backingState.get(pathString) ?? { ...defaultItemState }).pipe(
57
+ Atom.keepAlive,
58
+ ),
55
59
  );
56
60
 
57
- const getItemAtom = (path: string[]): Atom.Atom<NC.NavTreeItemState> => {
61
+ const getItemAtom = (path: string[]): Atom.Atom<NavTreeCapabilities.NavTreeItemState> => {
58
62
  const pathString = Path.create(...path);
59
63
  if (!backingState.has(pathString)) {
60
64
  backingState.set(pathString, { ...defaultItemState });
@@ -62,11 +66,11 @@ export default Capability.makeModule(
62
66
  return itemAtomFamily(pathString);
63
67
  };
64
68
 
65
- const getItem = (path: string[]): NC.NavTreeItemState => {
69
+ const getItem = (path: string[]): NavTreeCapabilities.NavTreeItemState => {
66
70
  return registry.get(getItemAtom(path));
67
71
  };
68
72
 
69
- const setItem = (path: string[], key: 'open' | 'current' | 'alternateTree', next: boolean) => {
73
+ const setItem = (path: string[], key: 'open' | 'current', next: boolean) => {
70
74
  const pathString = Path.create(...path);
71
75
  const atom = itemAtomFamily(pathString);
72
76
  const currentValue = registry.get(atom);
@@ -12,38 +12,35 @@ import { Capabilities, Capability } from '@dxos/app-framework';
12
12
  import { withPluginManager } from '@dxos/app-framework/testing';
13
13
  import { useAtomCapability } from '@dxos/app-framework/ui';
14
14
  import { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';
15
- import { OperationResolver } from '@dxos/operation';
15
+ import { Operation, OperationHandlerSet } from '@dxos/compute';
16
16
  import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
17
- import { faker } from '@dxos/random';
17
+ import { random } from '@dxos/random';
18
18
  import { IconButton, Input, Main, Toolbar } from '@dxos/react-ui';
19
- import { withLayout, withTheme } from '@dxos/react-ui/testing';
20
19
  import { useAttention, useAttentionAttributes } from '@dxos/react-ui-attention';
21
20
  import { Stack, StackItem } from '@dxos/react-ui-stack';
21
+ import { withLayout } from '@dxos/react-ui/testing';
22
22
  import { mx } from '@dxos/ui-theme';
23
23
 
24
- import { NavTreeContainer } from '../../containers';
24
+ import { NavTreeContainer } from '#containers';
25
+ import { storybookGraphBuilders } from '#testing';
26
+ import { translations } from '#translations';
27
+
25
28
  import { NavTreePlugin } from '../../NavTreePlugin';
26
- import { storybookGraphBuilders } from '../../testing';
27
- import { translations } from '../../translations';
28
29
 
29
- faker.seed(1234);
30
+ random.seed(1234);
30
31
 
31
32
  const StoryState = Capability.make<Atom.Atom<{ tab: string }>>('story-state');
32
33
 
33
- // TODO(burdon): Fix outline (e.g., button in sidebar nav is clipped when focused).
34
- // TODO(burdon): Consider similar containment of: Table, Sheet, Kanban Column, Form, etc.
35
-
36
34
  const container = 'flex flex-col grow gap-2 p-4 rounded-md';
37
35
 
38
- // TODO(burdon): Factor out PlankHeader.
39
36
  const StoryPlankHeading = ({ attendableId }: { attendableId: string }) => {
40
37
  const { hasAttention } = useAttention(attendableId);
41
38
  console.log('hasAttention', hasAttention);
42
39
  return (
43
40
  <div className='flex p-1 items-center border-b border-separator'>
44
41
  <IconButton
45
- density='coarse'
46
- icon='ph--atom--regular'
42
+ density='lg'
43
+ icon='ph--circle--regular'
47
44
  label='Test'
48
45
  iconOnly
49
46
  variant={hasAttention ? 'primary' : 'ghost'}
@@ -81,7 +78,7 @@ const StoryPlank = ({ attendableId }: { attendableId: string }) => {
81
78
  <Toolbar.Button>Test</Toolbar.Button>
82
79
  </Toolbar.Root>
83
80
 
84
- <div className={mx(container, 'm-2 bg-active-surface')}>
81
+ <div className={mx(container, 'm-2 bg-current-surface')}>
85
82
  <Input.Root>
86
83
  <Input.Label>Level 1 (group)</Input.Label>
87
84
  </Input.Root>
@@ -120,7 +117,6 @@ const meta = {
120
117
  component: NavTreeContainer,
121
118
  render: DefaultStory,
122
119
  decorators: [
123
- withTheme(),
124
120
  withLayout({ layout: 'fullscreen' }),
125
121
  withPluginManager({
126
122
  plugins: [
@@ -136,16 +132,17 @@ const meta = {
136
132
  return [
137
133
  Capability.contributes(StoryState, storyStateAtom),
138
134
  Capability.contributes(AppCapabilities.AppGraphBuilder, storybookGraphBuilders()),
139
- Capability.contributes(Capabilities.OperationResolver, [
140
- OperationResolver.make({
141
- operation: LayoutOperation.SwitchWorkspace,
142
- handler: ({ subject }) =>
135
+ Capability.contributes(
136
+ Capabilities.OperationHandler,
137
+ OperationHandlerSet.make(
138
+ Operation.withHandler(LayoutOperation.SwitchWorkspace, ({ subject }) =>
143
139
  Effect.gen(function* () {
144
140
  const registry: Registry.Registry = yield* Capability.get(Capabilities.AtomRegistry);
145
141
  registry.set(storyStateAtom, { tab: subject });
146
142
  }),
147
- }),
148
- ]),
143
+ ),
144
+ ),
145
+ ),
149
146
  ];
150
147
  },
151
148
  }),
@@ -164,8 +161,10 @@ export const Default: Story = {
164
161
  play: async ({ canvasElement }: { canvasElement: HTMLElement }) => {
165
162
  const canvas = within(canvasElement);
166
163
 
167
- // Find the element with treegrid role and click on its parent
168
- const treegridElement = await canvas.findByRole('treegrid');
164
+ // Plugin startup is async; the treegrid only appears after the Startup event
165
+ // fires and the graph is built. Use a generous timeout so slower CI runners
166
+ // don't race the default 1 s limit.
167
+ const treegridElement = await canvas.findByRole('treegrid', {}, { timeout: 10000 });
169
168
  const treegridParent = treegridElement.parentElement;
170
169
  if (treegridParent) {
171
170
  await userEvent.click(treegridParent);