@dxos/app-framework 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7

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 (363) hide show
  1. package/.storybook/main.mts +1 -3
  2. package/dist/lib/browser/{capability-7PCNSWBT.mjs → capability-6YMUBS54.mjs} +15 -11
  3. package/dist/lib/browser/capability-6YMUBS54.mjs.map +7 -0
  4. package/dist/lib/browser/capability-LF3OXSCV.mjs +34 -0
  5. package/dist/lib/browser/capability-LF3OXSCV.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-PKQT6C53.mjs → chunk-272IPLHQ.mjs} +1 -1
  7. package/dist/lib/browser/{chunk-PKQT6C53.mjs.map → chunk-272IPLHQ.mjs.map} +1 -1
  8. package/dist/lib/browser/{chunk-FMZN33N4.mjs → chunk-2UI6ACB5.mjs} +48 -31
  9. package/dist/lib/browser/chunk-2UI6ACB5.mjs.map +7 -0
  10. package/dist/lib/browser/{chunk-TCLLRCS3.mjs → chunk-7M4467QR.mjs} +6 -6
  11. package/dist/lib/browser/chunk-7M4467QR.mjs.map +7 -0
  12. package/dist/lib/browser/{chunk-7IQHKD4U.mjs → chunk-JGWCBVKJ.mjs} +2 -2
  13. package/dist/lib/browser/chunk-JGWCBVKJ.mjs.map +7 -0
  14. package/dist/lib/browser/chunk-M5IC326L.mjs +34 -0
  15. package/dist/lib/browser/chunk-M5IC326L.mjs.map +7 -0
  16. package/dist/lib/browser/{chunk-XYNO72GQ.mjs → chunk-NQPYE365.mjs} +435 -478
  17. package/dist/lib/browser/chunk-NQPYE365.mjs.map +7 -0
  18. package/dist/lib/browser/chunk-TGX63LTL.mjs +8 -0
  19. package/dist/lib/browser/{chunk-FHQTHCX7.mjs.map → chunk-TGX63LTL.mjs.map} +1 -1
  20. package/dist/lib/browser/chunk-TIEBZMTF.mjs +44 -0
  21. package/dist/lib/browser/chunk-TIEBZMTF.mjs.map +7 -0
  22. package/dist/lib/browser/chunk-WEBSGU5L.mjs +80 -0
  23. package/dist/lib/browser/chunk-WEBSGU5L.mjs.map +7 -0
  24. package/dist/lib/browser/chunk-YAFEA4GV.mjs +1 -0
  25. package/dist/lib/browser/{chunk-6Y7PZV72.mjs → chunk-YNFPIQGB.mjs} +2 -3
  26. package/dist/lib/browser/{chunk-6Y7PZV72.mjs.map → chunk-YNFPIQGB.mjs.map} +3 -3
  27. package/dist/lib/browser/cli/index.mjs +89 -0
  28. package/dist/lib/browser/cli/index.mjs.map +7 -0
  29. package/dist/lib/browser/common/activation-events.mjs +23 -0
  30. package/dist/lib/browser/common/capabilities.mjs +45 -0
  31. package/dist/lib/browser/core/activation-event.mjs +1 -1
  32. package/dist/lib/browser/core/capability.mjs +1 -1
  33. package/dist/lib/browser/core/plugin-manager.mjs +4 -4
  34. package/dist/lib/browser/core/plugin.mjs +2 -2
  35. package/dist/lib/browser/index.mjs +37 -132
  36. package/dist/lib/browser/index.mjs.map +4 -4
  37. package/dist/lib/browser/{invoker-capability-SZRSTHEH.mjs → invoker-capability-4AUGUMM5.mjs} +16 -12
  38. package/dist/lib/browser/invoker-capability-4AUGUMM5.mjs.map +7 -0
  39. package/dist/lib/browser/meta.json +1 -1
  40. package/dist/lib/browser/testing/index.mjs +28 -20
  41. package/dist/lib/browser/testing/index.mjs.map +3 -3
  42. package/dist/lib/browser/{react → ui}/index.mjs +18 -19
  43. package/dist/lib/node-esm/{capability-CFLQ2QQU.mjs → capability-R5O2OYX4.mjs} +15 -11
  44. package/dist/lib/node-esm/capability-R5O2OYX4.mjs.map +7 -0
  45. package/dist/lib/node-esm/capability-SA6LPYGL.mjs +35 -0
  46. package/dist/lib/node-esm/capability-SA6LPYGL.mjs.map +7 -0
  47. package/dist/lib/node-esm/{chunk-663A54LQ.mjs → chunk-3D66SZHP.mjs} +2 -2
  48. package/dist/lib/node-esm/chunk-3D66SZHP.mjs.map +7 -0
  49. package/dist/lib/node-esm/{chunk-7OWSHPYK.mjs → chunk-6REV5DE7.mjs} +1 -1
  50. package/dist/lib/node-esm/{chunk-7OWSHPYK.mjs.map → chunk-6REV5DE7.mjs.map} +1 -1
  51. package/dist/lib/node-esm/{chunk-6WXBT3EC.mjs → chunk-FHWPWQRJ.mjs} +435 -478
  52. package/dist/lib/node-esm/chunk-FHWPWQRJ.mjs.map +7 -0
  53. package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs → chunk-FKE4Z3D6.mjs} +2 -2
  54. package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs.map → chunk-FKE4Z3D6.mjs.map} +1 -1
  55. package/dist/lib/node-esm/{chunk-GT6OKM5I.mjs → chunk-JHFY3HTS.mjs} +6 -6
  56. package/dist/lib/node-esm/chunk-JHFY3HTS.mjs.map +7 -0
  57. package/dist/lib/node-esm/{chunk-XYQTBFPA.mjs → chunk-JIVXIJ2T.mjs} +48 -31
  58. package/dist/lib/node-esm/chunk-JIVXIJ2T.mjs.map +7 -0
  59. package/dist/lib/node-esm/chunk-NHXBSAQR.mjs +35 -0
  60. package/dist/lib/node-esm/chunk-NHXBSAQR.mjs.map +7 -0
  61. package/dist/lib/node-esm/{chunk-STMXUEPO.mjs → chunk-SB5ODNPX.mjs} +2 -3
  62. package/dist/lib/node-esm/{chunk-STMXUEPO.mjs.map → chunk-SB5ODNPX.mjs.map} +3 -3
  63. package/dist/lib/node-esm/chunk-SCDGIGGU.mjs +45 -0
  64. package/dist/lib/node-esm/chunk-SCDGIGGU.mjs.map +7 -0
  65. package/dist/lib/node-esm/chunk-SQICGJBW.mjs +81 -0
  66. package/dist/lib/node-esm/chunk-SQICGJBW.mjs.map +7 -0
  67. package/dist/lib/node-esm/chunk-Z4TJPSMP.mjs +2 -0
  68. package/dist/lib/node-esm/chunk-Z4TJPSMP.mjs.map +7 -0
  69. package/dist/lib/node-esm/cli/index.mjs +90 -0
  70. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  71. package/dist/lib/node-esm/common/activation-events.mjs +24 -0
  72. package/dist/lib/node-esm/common/activation-events.mjs.map +7 -0
  73. package/dist/lib/node-esm/common/capabilities.mjs +46 -0
  74. package/dist/lib/node-esm/common/capabilities.mjs.map +7 -0
  75. package/dist/lib/node-esm/core/activation-event.mjs +1 -1
  76. package/dist/lib/node-esm/core/capability.mjs +1 -1
  77. package/dist/lib/node-esm/core/plugin-manager.mjs +4 -4
  78. package/dist/lib/node-esm/core/plugin.mjs +2 -2
  79. package/dist/lib/node-esm/index.mjs +37 -132
  80. package/dist/lib/node-esm/index.mjs.map +4 -4
  81. package/dist/lib/node-esm/{invoker-capability-PNMA5JOS.mjs → invoker-capability-3YDIVDWV.mjs} +16 -12
  82. package/dist/lib/node-esm/invoker-capability-3YDIVDWV.mjs.map +7 -0
  83. package/dist/lib/node-esm/meta.json +1 -1
  84. package/dist/lib/node-esm/testing/index.mjs +28 -20
  85. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  86. package/dist/lib/node-esm/{react → ui}/index.mjs +18 -19
  87. package/dist/lib/node-esm/ui/index.mjs.map +7 -0
  88. package/dist/types/src/{cli.d.ts → cli/cli.d.ts} +2 -2
  89. package/dist/types/src/cli/cli.d.ts.map +1 -0
  90. package/dist/types/src/cli/index.d.ts +2 -0
  91. package/dist/types/src/cli/index.d.ts.map +1 -0
  92. package/dist/types/src/common/activation-events.d.ts +27 -0
  93. package/dist/types/src/common/activation-events.d.ts.map +1 -0
  94. package/dist/types/src/common/capabilities.d.ts +115 -0
  95. package/dist/types/src/common/capabilities.d.ts.map +1 -0
  96. package/dist/types/src/common/index.d.ts +4 -9
  97. package/dist/types/src/common/index.d.ts.map +1 -1
  98. package/dist/types/src/common/operations.d.ts +1 -348
  99. package/dist/types/src/common/operations.d.ts.map +1 -1
  100. package/dist/types/src/common/translations.d.ts +0 -9
  101. package/dist/types/src/common/translations.d.ts.map +1 -1
  102. package/dist/types/src/core/activation-event.d.ts +1 -1
  103. package/dist/types/src/core/capability.d.ts +7 -7
  104. package/dist/types/src/core/capability.d.ts.map +1 -1
  105. package/dist/types/src/core/plugin-manager.d.ts.map +1 -1
  106. package/dist/types/src/core/plugin.d.ts +1 -1
  107. package/dist/types/src/core/plugin.d.ts.map +1 -1
  108. package/dist/types/src/index.d.ts +1 -3
  109. package/dist/types/src/index.d.ts.map +1 -1
  110. package/dist/types/src/plugin-operation/history/capability.d.ts +1 -1
  111. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts +11 -3
  112. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts.map +1 -1
  113. package/dist/types/src/plugin-operation/invoker-capability.d.ts +1 -1
  114. package/dist/types/src/plugin-runtime/capability.d.ts +2 -2
  115. package/dist/types/src/plugin-runtime/capability.d.ts.map +1 -1
  116. package/dist/types/src/testing/withPluginManager.d.ts +1 -1
  117. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  118. package/dist/types/src/{react → ui/components/App}/App.d.ts +1 -1
  119. package/dist/types/src/ui/components/App/App.d.ts.map +1 -0
  120. package/dist/types/src/{react/Surface.stories.d.ts → ui/components/App/App.stories.d.ts} +7 -2
  121. package/dist/types/src/ui/components/App/App.stories.d.ts.map +1 -0
  122. package/dist/types/src/ui/components/App/index.d.ts +2 -0
  123. package/dist/types/src/ui/components/App/index.d.ts.map +1 -0
  124. package/dist/types/src/ui/components/PluginManager/PluginManagerContext.stories.d.ts.map +1 -0
  125. package/dist/types/src/{react → ui/components/PluginManager}/PluginManagerProvider.d.ts +1 -1
  126. package/dist/types/src/ui/components/PluginManager/PluginManagerProvider.d.ts.map +1 -0
  127. package/dist/types/src/ui/components/PluginManager/index.d.ts +2 -0
  128. package/dist/types/src/ui/components/PluginManager/index.d.ts.map +1 -0
  129. package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts +12 -0
  130. package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts.map +1 -0
  131. package/dist/types/src/{react/App.stories.d.ts → ui/components/Surface/SurfaceComponent.stories.d.ts} +1 -1
  132. package/dist/types/src/ui/components/Surface/SurfaceComponent.stories.d.ts.map +1 -0
  133. package/dist/types/src/ui/components/Surface/SurfaceInfo.d.ts.map +1 -0
  134. package/dist/types/src/ui/components/Surface/context.d.ts +5 -0
  135. package/dist/types/src/ui/components/Surface/context.d.ts.map +1 -0
  136. package/dist/types/src/ui/components/Surface/index.d.ts +20 -0
  137. package/dist/types/src/ui/components/Surface/index.d.ts.map +1 -0
  138. package/dist/types/src/{common/surface.d.ts → ui/components/Surface/types.d.ts} +20 -18
  139. package/dist/types/src/ui/components/Surface/types.d.ts.map +1 -0
  140. package/dist/types/src/ui/components/index.d.ts +4 -0
  141. package/dist/types/src/ui/components/index.d.ts.map +1 -0
  142. package/dist/types/src/ui/hooks/index.d.ts +7 -0
  143. package/dist/types/src/ui/hooks/index.d.ts.map +1 -0
  144. package/dist/types/src/{react → ui/hooks}/useApp.d.ts +14 -9
  145. package/dist/types/src/ui/hooks/useApp.d.ts.map +1 -0
  146. package/dist/types/src/{react → ui/hooks}/useCapabilities.d.ts +6 -1
  147. package/dist/types/src/ui/hooks/useCapabilities.d.ts.map +1 -0
  148. package/dist/types/src/ui/hooks/useLoading.d.ts.map +1 -0
  149. package/dist/types/src/{react → ui/hooks}/useOperationResolver.d.ts +2 -2
  150. package/dist/types/src/ui/hooks/useOperationResolver.d.ts.map +1 -0
  151. package/dist/types/src/{react/common.d.ts → ui/hooks/useSettingsState.d.ts} +1 -5
  152. package/dist/types/src/ui/hooks/useSettingsState.d.ts.map +1 -0
  153. package/dist/types/src/ui/hooks/useSurface.d.ts +3 -0
  154. package/dist/types/src/ui/hooks/useSurface.d.ts.map +1 -0
  155. package/dist/types/src/ui/index.d.ts +3 -0
  156. package/dist/types/src/ui/index.d.ts.map +1 -0
  157. package/dist/types/tsconfig.tsbuildinfo +1 -1
  158. package/moon.yml +6 -6
  159. package/package.json +72 -64
  160. package/src/{cli.ts → cli/cli.ts} +10 -10
  161. package/src/{playground/debug → cli}/index.ts +1 -1
  162. package/src/common/activation-events.ts +44 -0
  163. package/src/common/capabilities.ts +178 -0
  164. package/src/common/index.ts +4 -9
  165. package/src/common/operations.ts +2 -376
  166. package/src/common/translations.ts +0 -12
  167. package/src/context.ts +1 -1
  168. package/src/core/activation-event.ts +1 -1
  169. package/src/core/capability.ts +9 -9
  170. package/src/core/plugin-manager.test.ts +44 -44
  171. package/src/core/plugin-manager.ts +19 -0
  172. package/src/core/plugin.ts +3 -2
  173. package/src/index.ts +1 -3
  174. package/src/plugin-operation/OperationPlugin.ts +5 -5
  175. package/src/plugin-operation/history/capability.ts +5 -5
  176. package/src/plugin-operation/history/undo-mapping.ts +6 -3
  177. package/src/plugin-operation/invoker-capability.ts +5 -5
  178. package/src/plugin-operation/meta.ts +1 -1
  179. package/src/plugin-runtime/RuntimePlugin.ts +4 -4
  180. package/src/plugin-runtime/capability.ts +5 -5
  181. package/src/plugin-runtime/meta.ts +1 -1
  182. package/src/testing/service.ts +6 -6
  183. package/src/testing/withPluginManager.stories.tsx +6 -6
  184. package/src/testing/withPluginManager.tsx +11 -8
  185. package/src/ui/components/App/App.stories.tsx +92 -0
  186. package/src/{react → ui/components/App}/App.tsx +6 -9
  187. package/src/{playground/layout → ui/components/App}/index.ts +1 -1
  188. package/src/{react → ui/components/PluginManager}/PluginManagerContext.stories.tsx +13 -14
  189. package/src/{react → ui/components/PluginManager}/PluginManagerProvider.ts +1 -1
  190. package/src/ui/components/PluginManager/index.ts +5 -0
  191. package/src/{react/Surface.stories.tsx → ui/components/Surface/SurfaceComponent.stories.tsx} +18 -16
  192. package/src/{react/Surface.tsx → ui/components/Surface/SurfaceComponent.tsx} +36 -56
  193. package/src/{react → ui/components/Surface}/SurfaceInfo.tsx +2 -2
  194. package/src/ui/components/Surface/context.ts +12 -0
  195. package/src/ui/components/Surface/index.ts +20 -0
  196. package/src/{common/surface.ts → ui/components/Surface/types.ts} +22 -25
  197. package/src/ui/components/index.ts +7 -0
  198. package/src/ui/hooks/index.ts +10 -0
  199. package/src/{react → ui/hooks}/useApp.tsx +29 -25
  200. package/src/{react → ui/hooks}/useCapabilities.ts +9 -5
  201. package/src/{react → ui/hooks}/useOperationResolver.ts +5 -5
  202. package/src/{react/common.ts → ui/hooks/useSettingsState.ts} +0 -11
  203. package/src/ui/hooks/useSurface.ts +13 -0
  204. package/src/ui/index.ts +6 -0
  205. package/tsconfig.json +2 -29
  206. package/tsconfig.node.json +1 -3
  207. package/typedoc.json +2 -4
  208. package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs +0 -149
  209. package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs.map +0 -7
  210. package/dist/lib/browser/capability-7PCNSWBT.mjs.map +0 -7
  211. package/dist/lib/browser/capability-KP3PFEXD.mjs +0 -31
  212. package/dist/lib/browser/capability-KP3PFEXD.mjs.map +0 -7
  213. package/dist/lib/browser/chunk-7IQHKD4U.mjs.map +0 -7
  214. package/dist/lib/browser/chunk-BLQJSGL3.mjs +0 -732
  215. package/dist/lib/browser/chunk-BLQJSGL3.mjs.map +0 -7
  216. package/dist/lib/browser/chunk-FHQTHCX7.mjs +0 -8
  217. package/dist/lib/browser/chunk-FMZN33N4.mjs.map +0 -7
  218. package/dist/lib/browser/chunk-H4WPA7U7.mjs +0 -77
  219. package/dist/lib/browser/chunk-H4WPA7U7.mjs.map +0 -7
  220. package/dist/lib/browser/chunk-TCLLRCS3.mjs.map +0 -7
  221. package/dist/lib/browser/chunk-XYNO72GQ.mjs.map +0 -7
  222. package/dist/lib/browser/common/index.mjs +0 -38
  223. package/dist/lib/browser/invoker-capability-SZRSTHEH.mjs.map +0 -7
  224. package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs +0 -64
  225. package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs.map +0 -7
  226. package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs +0 -150
  227. package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs.map +0 -7
  228. package/dist/lib/node-esm/capability-CFLQ2QQU.mjs.map +0 -7
  229. package/dist/lib/node-esm/capability-RCUNM2M7.mjs +0 -32
  230. package/dist/lib/node-esm/capability-RCUNM2M7.mjs.map +0 -7
  231. package/dist/lib/node-esm/chunk-663A54LQ.mjs.map +0 -7
  232. package/dist/lib/node-esm/chunk-6WXBT3EC.mjs.map +0 -7
  233. package/dist/lib/node-esm/chunk-GQEBIGKD.mjs +0 -733
  234. package/dist/lib/node-esm/chunk-GQEBIGKD.mjs.map +0 -7
  235. package/dist/lib/node-esm/chunk-GT6OKM5I.mjs.map +0 -7
  236. package/dist/lib/node-esm/chunk-XR6NMKEP.mjs +0 -78
  237. package/dist/lib/node-esm/chunk-XR6NMKEP.mjs.map +0 -7
  238. package/dist/lib/node-esm/chunk-XYQTBFPA.mjs.map +0 -7
  239. package/dist/lib/node-esm/common/index.mjs +0 -39
  240. package/dist/lib/node-esm/invoker-capability-PNMA5JOS.mjs.map +0 -7
  241. package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs +0 -65
  242. package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs.map +0 -7
  243. package/dist/types/src/cli.d.ts.map +0 -1
  244. package/dist/types/src/common/activation-event.d.ts +0 -66
  245. package/dist/types/src/common/activation-event.d.ts.map +0 -1
  246. package/dist/types/src/common/capability.d.ts +0 -265
  247. package/dist/types/src/common/capability.d.ts.map +0 -1
  248. package/dist/types/src/common/collaboration.d.ts +0 -26
  249. package/dist/types/src/common/collaboration.d.ts.map +0 -1
  250. package/dist/types/src/common/file.d.ts +0 -14
  251. package/dist/types/src/common/file.d.ts.map +0 -1
  252. package/dist/types/src/common/graph.d.ts +0 -21
  253. package/dist/types/src/common/graph.d.ts.map +0 -1
  254. package/dist/types/src/common/plugin.d.ts +0 -201
  255. package/dist/types/src/common/plugin.d.ts.map +0 -1
  256. package/dist/types/src/common/surface.d.ts.map +0 -1
  257. package/dist/types/src/playground/debug/Debug.d.ts +0 -8
  258. package/dist/types/src/playground/debug/Debug.d.ts.map +0 -1
  259. package/dist/types/src/playground/debug/index.d.ts +0 -2
  260. package/dist/types/src/playground/debug/index.d.ts.map +0 -1
  261. package/dist/types/src/playground/debug/plugin.d.ts +0 -3
  262. package/dist/types/src/playground/debug/plugin.d.ts.map +0 -1
  263. package/dist/types/src/playground/generator/Main.d.ts +0 -8
  264. package/dist/types/src/playground/generator/Main.d.ts.map +0 -1
  265. package/dist/types/src/playground/generator/Toolbar.d.ts +0 -8
  266. package/dist/types/src/playground/generator/Toolbar.d.ts.map +0 -1
  267. package/dist/types/src/playground/generator/generator.d.ts +0 -19
  268. package/dist/types/src/playground/generator/generator.d.ts.map +0 -1
  269. package/dist/types/src/playground/generator/index.d.ts +0 -3
  270. package/dist/types/src/playground/generator/index.d.ts.map +0 -1
  271. package/dist/types/src/playground/generator/plugin.d.ts +0 -3
  272. package/dist/types/src/playground/generator/plugin.d.ts.map +0 -1
  273. package/dist/types/src/playground/layout/Layout.d.ts +0 -10
  274. package/dist/types/src/playground/layout/Layout.d.ts.map +0 -1
  275. package/dist/types/src/playground/layout/index.d.ts +0 -2
  276. package/dist/types/src/playground/layout/index.d.ts.map +0 -1
  277. package/dist/types/src/playground/layout/plugin.d.ts +0 -3
  278. package/dist/types/src/playground/layout/plugin.d.ts.map +0 -1
  279. package/dist/types/src/playground/logger/Toolbar.d.ts +0 -8
  280. package/dist/types/src/playground/logger/Toolbar.d.ts.map +0 -1
  281. package/dist/types/src/playground/logger/index.d.ts +0 -2
  282. package/dist/types/src/playground/logger/index.d.ts.map +0 -1
  283. package/dist/types/src/playground/logger/plugin.d.ts +0 -3
  284. package/dist/types/src/playground/logger/plugin.d.ts.map +0 -1
  285. package/dist/types/src/playground/logger/schema.d.ts +0 -27
  286. package/dist/types/src/playground/logger/schema.d.ts.map +0 -1
  287. package/dist/types/src/playground/playground.stories.d.ts +0 -11
  288. package/dist/types/src/playground/playground.stories.d.ts.map +0 -1
  289. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +0 -3
  290. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +0 -1
  291. package/dist/types/src/plugin-settings/actions.d.ts +0 -61
  292. package/dist/types/src/plugin-settings/actions.d.ts.map +0 -1
  293. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +0 -6
  294. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +0 -1
  295. package/dist/types/src/plugin-settings/index.d.ts +0 -3
  296. package/dist/types/src/plugin-settings/index.d.ts.map +0 -1
  297. package/dist/types/src/plugin-settings/meta.d.ts +0 -3
  298. package/dist/types/src/plugin-settings/meta.d.ts.map +0 -1
  299. package/dist/types/src/plugin-settings/operation-resolver.d.ts +0 -6
  300. package/dist/types/src/plugin-settings/operation-resolver.d.ts.map +0 -1
  301. package/dist/types/src/plugin-settings/translations.d.ts +0 -11
  302. package/dist/types/src/plugin-settings/translations.d.ts.map +0 -1
  303. package/dist/types/src/react/App.d.ts.map +0 -1
  304. package/dist/types/src/react/App.stories.d.ts.map +0 -1
  305. package/dist/types/src/react/DefaultFallback.d.ts +0 -8
  306. package/dist/types/src/react/DefaultFallback.d.ts.map +0 -1
  307. package/dist/types/src/react/ErrorBoundary.d.ts +0 -30
  308. package/dist/types/src/react/ErrorBoundary.d.ts.map +0 -1
  309. package/dist/types/src/react/PluginManagerContext.stories.d.ts.map +0 -1
  310. package/dist/types/src/react/PluginManagerProvider.d.ts.map +0 -1
  311. package/dist/types/src/react/Surface.d.ts +0 -14
  312. package/dist/types/src/react/Surface.d.ts.map +0 -1
  313. package/dist/types/src/react/Surface.stories.d.ts.map +0 -1
  314. package/dist/types/src/react/SurfaceInfo.d.ts.map +0 -1
  315. package/dist/types/src/react/common.d.ts.map +0 -1
  316. package/dist/types/src/react/index.d.ts +0 -9
  317. package/dist/types/src/react/index.d.ts.map +0 -1
  318. package/dist/types/src/react/types.d.ts +0 -12
  319. package/dist/types/src/react/types.d.ts.map +0 -1
  320. package/dist/types/src/react/useApp.d.ts.map +0 -1
  321. package/dist/types/src/react/useCapabilities.d.ts.map +0 -1
  322. package/dist/types/src/react/useLoading.d.ts.map +0 -1
  323. package/dist/types/src/react/useOperationResolver.d.ts.map +0 -1
  324. package/src/common/activation-event.ts +0 -99
  325. package/src/common/capability.ts +0 -343
  326. package/src/common/collaboration.ts +0 -31
  327. package/src/common/file.ts +0 -22
  328. package/src/common/graph.ts +0 -30
  329. package/src/common/plugin.ts +0 -364
  330. package/src/playground/debug/Debug.tsx +0 -49
  331. package/src/playground/debug/plugin.ts +0 -16
  332. package/src/playground/generator/Main.tsx +0 -80
  333. package/src/playground/generator/Toolbar.tsx +0 -57
  334. package/src/playground/generator/generator.ts +0 -48
  335. package/src/playground/generator/index.ts +0 -6
  336. package/src/playground/generator/plugin.ts +0 -21
  337. package/src/playground/layout/Layout.tsx +0 -37
  338. package/src/playground/layout/plugin.ts +0 -18
  339. package/src/playground/logger/Toolbar.tsx +0 -33
  340. package/src/playground/logger/index.ts +0 -5
  341. package/src/playground/logger/plugin.ts +0 -42
  342. package/src/playground/logger/schema.ts +0 -22
  343. package/src/playground/playground.stories.tsx +0 -54
  344. package/src/plugin-settings/SettingsPlugin.ts +0 -19
  345. package/src/plugin-settings/actions.ts +0 -64
  346. package/src/plugin-settings/app-graph-builder.ts +0 -140
  347. package/src/plugin-settings/index.ts +0 -6
  348. package/src/plugin-settings/meta.ts +0 -10
  349. package/src/plugin-settings/operation-resolver.ts +0 -55
  350. package/src/plugin-settings/translations.ts +0 -19
  351. package/src/react/App.stories.tsx +0 -63
  352. package/src/react/DefaultFallback.tsx +0 -26
  353. package/src/react/ErrorBoundary.tsx +0 -56
  354. package/src/react/index.ts +0 -14
  355. package/src/react/types.ts +0 -27
  356. /package/dist/lib/{node-esm/react/index.mjs.map → browser/chunk-YAFEA4GV.mjs.map} +0 -0
  357. /package/dist/lib/{node-esm/common/index.mjs.map → browser/common/activation-events.mjs.map} +0 -0
  358. /package/dist/lib/browser/{react/index.mjs.map → common/capabilities.mjs.map} +0 -0
  359. /package/dist/lib/browser/{common → ui}/index.mjs.map +0 -0
  360. /package/dist/types/src/{react → ui/components/PluginManager}/PluginManagerContext.stories.d.ts +0 -0
  361. /package/dist/types/src/{react → ui/components/Surface}/SurfaceInfo.d.ts +0 -0
  362. /package/dist/types/src/{react → ui/hooks}/useLoading.d.ts +0 -0
  363. /package/src/{react → ui/hooks}/useLoading.tsx +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as Command from '@effect/cli/Command';
2
2
  import * as Effect from 'effect/Effect';
3
3
  import * as Layer from 'effect/Layer';
4
- import { Plugin, PluginManager } from './core';
4
+ import { Plugin, PluginManager } from '../core';
5
5
  type SubCommands = [Command.Command<any, any, any, any>, ...Array<Command.Command<any, any, any, any>>];
6
6
  export type CreateCliAppOptions = {
7
7
  rootCommand: Command.Command<any, any, any, any>;
@@ -20,7 +20,7 @@ export type CreateCliAppOptions = {
20
20
  * @example
21
21
  * const plugins = [ClientPluginCLI()];
22
22
  * const manager = await createCliApp({ plugins });
23
- * const commands = manager.capabilities.getAll(Common.Capability.Command);
23
+ * const commands = manager.capabilities.getAll(Capabilities.Command);
24
24
  *
25
25
  * @param options.pluginManager Optional existing PluginManager instance.
26
26
  * @param options.pluginLoader Function to load plugins by ID.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/cli/cli.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAKtC,OAAO,EAAc,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAW5D,KAAK,WAAW,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAExG,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC;IAC5C,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY;;;;;gBAuDvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './cli';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/index.ts"],"names":[],"mappings":"AAIA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { ActivationEvent as ActivationEvent$ } from '../core';
2
+ /**
3
+ * Fired when the app is started.
4
+ */
5
+ export declare const Startup: ActivationEvent$.ActivationEvent;
6
+ /**
7
+ * Fired to load any newly available surfaces.
8
+ */
9
+ export declare const SetupReactSurface: ActivationEvent$.ActivationEvent;
10
+ /**
11
+ * Fired before the operation invoker is activated.
12
+ */
13
+ export declare const SetupOperationResolver: ActivationEvent$.ActivationEvent;
14
+ /**
15
+ * Fired before the managed runtime is created.
16
+ * Plugins should contribute their Layer capabilities before this event.
17
+ */
18
+ export declare const SetupLayer: ActivationEvent$.ActivationEvent;
19
+ /**
20
+ * Fired after the operation invoker is ready.
21
+ */
22
+ export declare const OperationInvokerReady: ActivationEvent$.ActivationEvent;
23
+ /**
24
+ * Fired after the managed runtime is ready.
25
+ */
26
+ export declare const ManagedRuntimeReady: ActivationEvent$.ActivationEvent;
27
+ //# sourceMappingURL=activation-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activation-events.d.ts","sourceRoot":"","sources":["../../../../src/common/activation-events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,OAAO,kCAAgE,CAAC;AAMrF;;GAEG;AACH,eAAO,MAAM,iBAAiB,kCAA4E,CAAC;AAE3G;;GAEG;AACH,eAAO,MAAM,sBAAsB,kCAAiF,CAAC;AAErH;;;GAGG;AACH,eAAO,MAAM,UAAU,kCAAoE,CAAC;AAM5F;;GAEG;AACH,eAAO,MAAM,qBAAqB,kCAAgF,CAAC;AAEnH;;GAEG;AACH,eAAO,MAAM,mBAAmB,kCAA8E,CAAC"}
@@ -0,0 +1,115 @@
1
+ import type * as Command$ from '@effect/cli/Command';
2
+ import { type Atom, type Registry } from '@effect-atom/atom-react';
3
+ import * as Effect from 'effect/Effect';
4
+ import type * as Layer$ from 'effect/Layer';
5
+ import type * as ManagedRuntime$ from 'effect/ManagedRuntime';
6
+ import type { FC, PropsWithChildren } from 'react';
7
+ import type { OperationInvoker as OperationInvoker$, OperationResolver as OperationResolver$ } from '@dxos/operation';
8
+ import { Capability as Capability$, type PluginManager as PluginManager$ } from '../core';
9
+ import type { HistoryTracker as HistoryTracker$, UndoMapping as UndoMapping$, UndoRegistry as UndoRegistry$ } from '../plugin-operation';
10
+ import type { Surface } from '../ui';
11
+ /**
12
+ * Null capability.
13
+ * @category Capability
14
+ */
15
+ export declare const Null: Capability$.InterfaceDef<null>;
16
+ /**
17
+ * @category Capability
18
+ */
19
+ export declare const PluginManager: Capability$.InterfaceDef<PluginManager$.PluginManager>;
20
+ /**
21
+ * @category Capability
22
+ */
23
+ export declare const AtomRegistry: Capability$.InterfaceDef<Registry.Registry>;
24
+ export type ReactContext = Readonly<{
25
+ id: string;
26
+ dependsOn?: string[];
27
+ context: FC<PropsWithChildren>;
28
+ }>;
29
+ /**
30
+ * @category Capability
31
+ */
32
+ export declare const ReactContext: Capability$.InterfaceDef<Readonly<{
33
+ id: string;
34
+ dependsOn?: string[];
35
+ context: FC<PropsWithChildren>;
36
+ }>>;
37
+ export type ReactRoot = Readonly<{
38
+ id: string;
39
+ root: FC<PropsWithChildren>;
40
+ }>;
41
+ /**
42
+ * @category Capability
43
+ */
44
+ export declare const ReactRoot: Capability$.InterfaceDef<Readonly<{
45
+ id: string;
46
+ root: FC<PropsWithChildren>;
47
+ }>>;
48
+ /**
49
+ * Surface definitions that can be either React components or Web Components.
50
+ */
51
+ export type ReactSurface = Surface.Definition | readonly Surface.Definition[];
52
+ /**
53
+ * @category Capability
54
+ */
55
+ export declare const ReactSurface: Capability$.InterfaceDef<ReactSurface>;
56
+ export type AnyCommand = Command$.Command<any, any, any, any>;
57
+ /**
58
+ * @category Capability
59
+ */
60
+ export declare const Command: Capability$.InterfaceDef<AnyCommand>;
61
+ /**
62
+ * @category Capability
63
+ */
64
+ export declare const Layer: Capability$.InterfaceDef<Layer$.Layer<any, any, any>>;
65
+ export type ManagedRuntime = ManagedRuntime$.ManagedRuntime<any, any>;
66
+ /**
67
+ * @category Capability
68
+ */
69
+ export declare const ManagedRuntime: Capability$.InterfaceDef<ManagedRuntime>;
70
+ export type OperationResolver = OperationResolver$.OperationResolver<any, any, any, any>;
71
+ /**
72
+ * Handler registration for operations - contributed by plugins.
73
+ * @category Capability
74
+ */
75
+ export declare const OperationResolver: Capability$.InterfaceDef<OperationResolver[]>;
76
+ export type UndoMapping = UndoMapping$.UndoMapping;
77
+ /**
78
+ * Undo mapping registration - contributed by plugins.
79
+ * @category Capability
80
+ */
81
+ export declare const UndoMapping: Capability$.InterfaceDef<UndoMapping[]>;
82
+ export type OperationInvoker = OperationInvoker$.OperationInvoker;
83
+ /**
84
+ * Operation invoker - provided by OperationPlugin.
85
+ * @category Capability
86
+ */
87
+ export declare const OperationInvoker: Capability$.InterfaceDef<OperationInvoker$.OperationInvoker>;
88
+ export type UndoRegistry = UndoRegistry$.UndoRegistry;
89
+ /**
90
+ * Undo registry - provided by OperationPlugin.
91
+ * @category Capability
92
+ */
93
+ export declare const UndoRegistry: Capability$.InterfaceDef<UndoRegistry$.UndoRegistry>;
94
+ export type HistoryTracker = HistoryTracker$.HistoryTracker;
95
+ /**
96
+ * History tracker - provided by OperationPlugin.
97
+ * @category Capability
98
+ */
99
+ export declare const HistoryTracker: Capability$.InterfaceDef<HistoryTracker$.HistoryTracker>;
100
+ /**
101
+ * Get the current value of an atom capability.
102
+ * @example const settings = yield* Capabilities.getAtomValue(ThreadCapabilities.Settings);
103
+ */
104
+ export declare const getAtomValue: <T>(atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>) => Effect.Effect<T, Error, Capability$.Service>;
105
+ /**
106
+ * Update an atom capability value (requires writable atom).
107
+ * @example yield* Capabilities.updateAtomValue(ThreadCapabilities.Settings, (s) => ({ ...s, foo: true }));
108
+ */
109
+ export declare const updateAtomValue: <T>(atomCapability: Capability$.InterfaceDef<Atom.Writable<T>>, fn: (current: T) => T) => Effect.Effect<void, Error, Capability$.Service>;
110
+ /**
111
+ * Subscribe to an atom capability.
112
+ * @example const unsubscribe = yield* Capabilities.subscribeAtom(ThreadCapabilities.Settings, (value) => ...);
113
+ */
114
+ export declare const subscribeAtom: <T>(atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>, callback: (value: T) => void) => Effect.Effect<() => void, Error, Capability$.Service>;
115
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"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"}
@@ -1,10 +1,5 @@
1
- export * from './activation-event';
2
- export * from './capability';
3
- export * from './collaboration';
4
- export * from './file';
5
- export * from './graph';
6
- export * from './operations';
7
- export * from './plugin';
8
- export * from './surface';
9
- export * from './translations';
1
+ export * as Capabilities from './capabilities';
2
+ export * as ActivationEvents from './activation-events';
3
+ export { UndoOperation } from './operations';
4
+ export { Label } from './translations';
10
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,352 +1,5 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import { Capability } from '../core';
3
- /**
4
- * Layout operations - Operation-based equivalents of LayoutAction intents.
5
- * These mirror the LayoutAction namespace but use the Operation pattern.
6
- */
7
- export declare namespace LayoutOperation {
8
- const UpdateSidebar: Omit<{
9
- readonly meta: {
10
- readonly key: "dxos.org/plugin/layout/operation/update-sidebar";
11
- readonly name: "Update Sidebar";
12
- readonly description: "Update the sidebar state.";
13
- };
14
- readonly executionMode: "sync";
15
- readonly services: readonly [typeof Capability.Service];
16
- readonly schema: {
17
- readonly input: Schema.Struct<{
18
- subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
19
- state: Schema.optional<Schema.Literal<["closed", "collapsed", "expanded"]>>;
20
- }>;
21
- readonly output: typeof Schema.Void;
22
- };
23
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
24
- readonly executionMode: "sync" | "async";
25
- };
26
- const UpdateComplementary: Omit<{
27
- readonly meta: {
28
- readonly key: "dxos.org/plugin/layout/operation/update-complementary";
29
- readonly name: "Update Complementary Sidebar";
30
- readonly description: "Update the complementary sidebar state.";
31
- };
32
- readonly executionMode: "sync";
33
- readonly services: readonly [typeof Capability.Service];
34
- readonly schema: {
35
- readonly input: Schema.Struct<{
36
- subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
37
- state: Schema.optional<Schema.Literal<["closed", "collapsed", "expanded"]>>;
38
- }>;
39
- readonly output: typeof Schema.Void;
40
- };
41
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
42
- readonly executionMode: "sync" | "async";
43
- };
44
- const UpdateDialog: Omit<{
45
- readonly meta: {
46
- readonly key: "dxos.org/plugin/layout/operation/update-dialog";
47
- readonly name: "Update Dialog";
48
- readonly description: "Open, close, or update the dialog.";
49
- };
50
- readonly executionMode: "sync";
51
- readonly services: readonly [typeof Capability.Service];
52
- readonly schema: {
53
- readonly input: Schema.Struct<{
54
- subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
55
- state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
56
- type: Schema.optional<Schema.Literal<["default", "alert"]>>;
57
- blockAlign: Schema.optional<Schema.Literal<["start", "center", "end"]>>;
58
- overlayClasses: Schema.optional<Schema.SchemaClass<string, string, never>>;
59
- overlayStyle: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
60
- props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
61
- }>;
62
- readonly output: typeof Schema.Void;
63
- };
64
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
65
- readonly executionMode: "sync" | "async";
66
- };
67
- const UpdatePopover: Omit<{
68
- readonly meta: {
69
- readonly key: "dxos.org/plugin/layout/operation/update-popover";
70
- readonly name: "Update Popover";
71
- readonly description: "Open, close, or update a popover.";
72
- };
73
- readonly executionMode: "sync";
74
- readonly services: readonly [typeof Capability.Service];
75
- readonly schema: {
76
- readonly input: Schema.Union<[Schema.extend<Schema.Union<[Schema.extend<Schema.Struct<{
77
- subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
78
- side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
79
- state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
80
- props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
81
- }>, Schema.Struct<{
82
- kind: Schema.optional<Schema.Literal<["base"]>>;
83
- }>>, Schema.extend<Schema.Struct<{
84
- subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
85
- side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
86
- state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
87
- props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
88
- }>, Schema.Struct<{
89
- kind: Schema.Literal<["card"]>;
90
- title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
91
- ns: typeof Schema.String;
92
- count: Schema.optional<typeof Schema.Number>;
93
- defaultValue: Schema.optional<typeof Schema.String>;
94
- }>>>>]>>;
95
- }>>]>, Schema.Struct<{
96
- variant: Schema.Literal<["virtual"]>;
97
- anchor: Schema.SchemaClass<any, any, never>;
98
- }>>, Schema.extend<Schema.Union<[Schema.extend<Schema.Struct<{
99
- subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
100
- side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
101
- state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
102
- props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
103
- }>, Schema.Struct<{
104
- kind: Schema.optional<Schema.Literal<["base"]>>;
105
- }>>, Schema.extend<Schema.Struct<{
106
- subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
107
- side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
108
- state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
109
- props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
110
- }>, Schema.Struct<{
111
- kind: Schema.Literal<["card"]>;
112
- title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
113
- ns: typeof Schema.String;
114
- count: Schema.optional<typeof Schema.Number>;
115
- defaultValue: Schema.optional<typeof Schema.String>;
116
- }>>>>]>>;
117
- }>>]>, Schema.Struct<{
118
- variant: Schema.optional<Schema.Literal<["react"]>>;
119
- anchorId: Schema.SchemaClass<string, string, never>;
120
- }>>]>;
121
- readonly output: typeof Schema.Void;
122
- };
123
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
124
- readonly executionMode: "sync" | "async";
125
- };
126
- const Toast: Schema.Struct<{
127
- id: Schema.SchemaClass<string, string, never>;
128
- title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
129
- ns: typeof Schema.String;
130
- count: Schema.optional<typeof Schema.Number>;
131
- defaultValue: Schema.optional<typeof Schema.String>;
132
- }>>>>]>>;
133
- description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
134
- ns: typeof Schema.String;
135
- count: Schema.optional<typeof Schema.Number>;
136
- defaultValue: Schema.optional<typeof Schema.String>;
137
- }>>>>]>>;
138
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
139
- duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
140
- closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
141
- ns: typeof Schema.String;
142
- count: Schema.optional<typeof Schema.Number>;
143
- defaultValue: Schema.optional<typeof Schema.String>;
144
- }>>>>]>>;
145
- actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
146
- ns: typeof Schema.String;
147
- count: Schema.optional<typeof Schema.Number>;
148
- defaultValue: Schema.optional<typeof Schema.String>;
149
- }>>>>]>>;
150
- actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
151
- ns: typeof Schema.String;
152
- count: Schema.optional<typeof Schema.Number>;
153
- defaultValue: Schema.optional<typeof Schema.String>;
154
- }>>>>]>>;
155
- onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
156
- }>;
157
- interface Toast extends Omit<Schema.Schema.Type<typeof Toast>, 'onAction'> {
158
- onAction?: () => void;
159
- }
160
- const AddToast: Omit<{
161
- readonly meta: {
162
- readonly key: "dxos.org/plugin/layout/operation/add-toast";
163
- readonly name: "Add Toast";
164
- readonly description: "Add a toast notification.";
165
- };
166
- readonly executionMode: "sync";
167
- readonly services: readonly [typeof Capability.Service];
168
- readonly schema: {
169
- readonly input: Schema.Struct<{
170
- id: Schema.SchemaClass<string, string, never>;
171
- title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
172
- ns: typeof Schema.String;
173
- count: Schema.optional<typeof Schema.Number>;
174
- defaultValue: Schema.optional<typeof Schema.String>;
175
- }>>>>]>>;
176
- description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
177
- ns: typeof Schema.String;
178
- count: Schema.optional<typeof Schema.Number>;
179
- defaultValue: Schema.optional<typeof Schema.String>;
180
- }>>>>]>>;
181
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
182
- duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
183
- closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
184
- ns: typeof Schema.String;
185
- count: Schema.optional<typeof Schema.Number>;
186
- defaultValue: Schema.optional<typeof Schema.String>;
187
- }>>>>]>>;
188
- actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
189
- ns: typeof Schema.String;
190
- count: Schema.optional<typeof Schema.Number>;
191
- defaultValue: Schema.optional<typeof Schema.String>;
192
- }>>>>]>>;
193
- actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
194
- ns: typeof Schema.String;
195
- count: Schema.optional<typeof Schema.Number>;
196
- defaultValue: Schema.optional<typeof Schema.String>;
197
- }>>>>]>>;
198
- onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
199
- }>;
200
- readonly output: typeof Schema.Void;
201
- };
202
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
203
- readonly executionMode: "sync" | "async";
204
- };
205
- const SetLayoutMode: Omit<{
206
- readonly meta: {
207
- readonly key: "dxos.org/plugin/layout/operation/set-layout-mode";
208
- readonly name: "Set Layout Mode";
209
- readonly description: "Set the layout mode (solo, deck, fullscreen, etc.).";
210
- };
211
- readonly executionMode: "sync";
212
- readonly services: readonly [typeof Capability.Service];
213
- readonly schema: {
214
- readonly input: Schema.Union<[Schema.Struct<{
215
- subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
216
- mode: Schema.SchemaClass<string, string, never>;
217
- }>, Schema.Struct<{
218
- revert: Schema.SchemaClass<boolean, boolean, never>;
219
- }>]>;
220
- readonly output: typeof Schema.Void;
221
- };
222
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
223
- readonly executionMode: "sync" | "async";
224
- };
225
- const SwitchWorkspace: Omit<{
226
- readonly meta: {
227
- readonly key: "dxos.org/plugin/layout/operation/switch-workspace";
228
- readonly name: "Switch Workspace";
229
- readonly description: "Switch to a different workspace.";
230
- };
231
- readonly executionMode: "sync";
232
- readonly services: readonly [typeof Capability.Service];
233
- readonly schema: {
234
- readonly input: Schema.Struct<{
235
- subject: Schema.SchemaClass<string, string, never>;
236
- }>;
237
- readonly output: typeof Schema.Void;
238
- };
239
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
240
- readonly executionMode: "sync" | "async";
241
- };
242
- const RevertWorkspace: Omit<{
243
- readonly meta: {
244
- readonly key: "dxos.org/plugin/layout/operation/revert-workspace";
245
- readonly name: "Revert Workspace";
246
- readonly description: "Revert to the previous workspace.";
247
- };
248
- readonly executionMode: "sync";
249
- readonly services: readonly [typeof Capability.Service];
250
- readonly schema: {
251
- readonly input: typeof Schema.Void;
252
- readonly output: typeof Schema.Void;
253
- };
254
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
255
- readonly executionMode: "sync" | "async";
256
- };
257
- const Open: Omit<{
258
- readonly meta: {
259
- readonly key: "dxos.org/plugin/layout/operation/open";
260
- readonly name: "Open";
261
- readonly description: "Open items in the main content area.";
262
- };
263
- readonly executionMode: "sync";
264
- readonly services: readonly [typeof Capability.Service];
265
- readonly schema: {
266
- readonly input: Schema.Struct<{
267
- subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
268
- state: Schema.optional<Schema.Literal<[true]>>;
269
- variant: Schema.optional<Schema.SchemaClass<string, string, never>>;
270
- key: Schema.optional<Schema.SchemaClass<string, string, never>>;
271
- workspace: Schema.optional<Schema.SchemaClass<string, string, never>>;
272
- scrollIntoView: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
273
- pivotId: Schema.optional<Schema.SchemaClass<string, string, never>>;
274
- positioning: Schema.optional<Schema.Union<[Schema.Literal<["start"]>, Schema.Literal<["end"]>]>>;
275
- }>;
276
- readonly output: typeof Schema.Void;
277
- };
278
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
279
- readonly executionMode: "sync" | "async";
280
- };
281
- const Close: Omit<{
282
- readonly meta: {
283
- readonly key: "dxos.org/plugin/layout/operation/close";
284
- readonly name: "Close";
285
- readonly description: "Close items in the main content area.";
286
- };
287
- readonly executionMode: "sync";
288
- readonly services: readonly [typeof Capability.Service];
289
- readonly schema: {
290
- readonly input: Schema.Struct<{
291
- subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
292
- }>;
293
- readonly output: typeof Schema.Void;
294
- };
295
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
296
- readonly executionMode: "sync" | "async";
297
- };
298
- const Set: Omit<{
299
- readonly meta: {
300
- readonly key: "dxos.org/plugin/layout/operation/set";
301
- readonly name: "Set";
302
- readonly description: "Override items in the main content area.";
303
- };
304
- readonly executionMode: "sync";
305
- readonly services: readonly [typeof Capability.Service];
306
- readonly schema: {
307
- readonly input: Schema.Struct<{
308
- subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
309
- }>;
310
- readonly output: typeof Schema.Void;
311
- };
312
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
313
- readonly executionMode: "sync" | "async";
314
- };
315
- const ScrollIntoView: Omit<{
316
- readonly meta: {
317
- readonly key: "dxos.org/plugin/layout/operation/scroll-into-view";
318
- readonly name: "Scroll Into View";
319
- readonly description: "Scroll an item into view.";
320
- };
321
- readonly services: readonly [typeof Capability.Service];
322
- readonly schema: {
323
- readonly input: Schema.Struct<{
324
- subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
325
- cursor: Schema.optional<Schema.SchemaClass<string, string, never>>;
326
- ref: Schema.optional<Schema.SchemaClass<string, string, never>>;
327
- }>;
328
- readonly output: typeof Schema.Void;
329
- };
330
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
331
- readonly executionMode: "sync" | "async";
332
- };
333
- const Expose: Omit<{
334
- readonly meta: {
335
- readonly key: "dxos.org/plugin/layout/operation/expose";
336
- readonly name: "Expose";
337
- readonly description: "Expose an item in the navigation area.";
338
- };
339
- readonly services: readonly [typeof Capability.Service];
340
- readonly schema: {
341
- readonly input: Schema.Struct<{
342
- subject: Schema.SchemaClass<string, string, never>;
343
- }>;
344
- readonly output: typeof Schema.Void;
345
- };
346
- }, "executionMode"> & import("effect/Pipeable").Pipeable & {
347
- readonly executionMode: "sync" | "async";
348
- };
349
- }
350
3
  /**
351
4
  * Operations related to undo/history functionality.
352
5
  */
@@ -357,7 +10,7 @@ export declare namespace UndoOperation {
357
10
  */
358
11
  const ShowUndo: Omit<{
359
12
  readonly meta: {
360
- readonly key: "dxos.org/app-framework/undo/operation/show-undo";
13
+ readonly key: "org.dxos.app-framework.undo.operation.show-undo";
361
14
  readonly name: "Show Undo";
362
15
  readonly description: "Show an undo toast notification.";
363
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/common/operations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMrC;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAKxB,MAAM,aAAa;;;;;;;;;;;;;;;;;KAqBxB,CAAC;IAEI,MAAM,mBAAmB;;;;;;;;;;;;;;;;;KAqB9B,CAAC;IAMI,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;KAkCvB,CAAC;IAyCI,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+BxB,CAAC;IAMI,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYhB,CAAC;IAEH,UAAiB,KAAM,SAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE,UAAU,CAAC;QAC/E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB;IAEM,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAYnB,CAAC;IAMI,MAAM,aAAa;;;;;;;;;;;;;;;;;;;KAsBxB,CAAC;IAMI,MAAM,eAAe;;;;;;;;;;;;;;;;KAc1B,CAAC;IAEI,MAAM,eAAe;;;;;;;;;;;;;;KAY1B,CAAC;IAMI,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;KAgCf,CAAC;IAEI,MAAM,KAAK;;;;;;;;;;;;;;;;KAchB,CAAC;IAEI,MAAM,GAAG;;;;;;;;;;;;;;;;KAcd,CAAC;IAMI,MAAM,cAAc;;;;;;;;;;;;;;;;;KAezB,CAAC;IAEI,MAAM,MAAM;;;;;;;;;;;;;;;KAajB,CAAC;CACJ;AAID;;GAEG;AACH,yBAAiB,aAAa,CAAC;IAC7B;;;OAGG;IACI,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;KAcnB,CAAC;CACJ"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/common/operations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMrC;;GAEG;AACH,yBAAiB,aAAa,CAAC;IAC7B;;;OAGG;IACI,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;KAcnB,CAAC;CACJ"}
@@ -8,13 +8,4 @@ export declare const Label: Schema.Union<[typeof Schema.String, Schema.mutable<S
8
8
  defaultValue: Schema.optional<typeof Schema.String>;
9
9
  }>>>>]>;
10
10
  export type Label = Schema.Schema.Type<typeof Label>;
11
- export declare const ResourceKey: Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>;
12
- export type ResourceKey = Schema.Schema.Type<typeof ResourceKey>;
13
- export declare const ResourceLanguage: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>;
14
- export type ResourceLanguage = Schema.Schema.Type<typeof ResourceLanguage>;
15
- /**
16
- * A resource is a collection of translations for a language.
17
- */
18
- export declare const Resource: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>>;
19
- export type Resource = Schema.Schema.Type<typeof Resource>;
20
11
  //# sourceMappingURL=translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;OAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD,eAAO,MAAM,WAAW,+FAAwF,CAAC;AACjH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,qIAA4D,CAAC;AAC1F,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,QAAQ,2KAAiE,CAAC;AACvF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;OAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * A unique string identifier representing an event.
3
3
  * This is expected to be a URI, where initial parts are often the id of the plugin whose package defines the event.
4
4
  *
5
- * @example dxos.org/plugin/example/event/ready
5
+ * @example org.dxos.plugin.example.event.ready
6
6
  */
7
7
  export type ActivationEvent = {
8
8
  id: string;
@@ -83,13 +83,13 @@ export type ModuleReturn = void | Any | Any[] | readonly Any[] | [Any, ...Any[]]
83
83
  */
84
84
  export declare const contributes: <I extends InterfaceDef<any>>(interfaceDef: I, implementation: Capability<InterfaceDef.Implementation<I>>["implementation"], deactivate?: Capability<InterfaceDef.Implementation<I>>["deactivate"]) => Capability<I>;
85
85
  type LoadCapability<Props, Capabilities extends ModuleReturn = ModuleReturn> = () => Promise<{
86
- default: (props?: Props) => Effect.Effect<Capabilities, Error, Service | Plugin.Service | never>;
86
+ default: (props: Props) => Effect.Effect<Capabilities, Error, Service | Plugin.Service | never>;
87
87
  }>;
88
88
  type LoadCapabilities<Props, Capabilities extends ModuleReturn = ModuleReturn> = () => Promise<{
89
- default: (props?: Props) => Effect.Effect<Capabilities, Error, Service | Plugin.Service | never>;
89
+ default: (props: Props) => Effect.Effect<Capabilities, Error, Service | Plugin.Service | never>;
90
90
  }>;
91
91
  type NormalizeReturn<R> = R extends readonly (infer A)[] ? A[] : R extends (infer A)[] ? A[] : R extends Any ? [R] : Any[];
92
- export type LazyCapability<Props = void, Capabilities extends ModuleReturn = ModuleReturn, E extends Error = Error> = (props?: Props) => Effect.Effect<NormalizeReturn<Capabilities>, E, Service | Plugin.Service | never>;
92
+ export type LazyCapability<Props = void, Capabilities extends ModuleReturn = ModuleReturn, E extends Error = Error> = (props: Props) => Effect.Effect<NormalizeReturn<Capabilities>, E, Service | Plugin.Service | never>;
93
93
  /**
94
94
  * Helper to define a lazily loaded implementation of a capability.
95
95
  * Supports single capabilities, arrays, and tuples of different capability types.
@@ -136,15 +136,15 @@ export declare const getModuleTag: (capability: unknown) => string | undefined;
136
136
  * })
137
137
  * );
138
138
  *
139
- * // Module with additional options (context accessed via layer)
139
+ * // Module with required options (context accessed via layer)
140
140
  * export default Capability.makeModule(
141
- * Effect.fnUntraced(function* ({ observability }: { observability?: boolean }) {
142
- * const invoker = yield* Capability.get(Common.Capability.OperationInvoker);
141
+ * Effect.fnUntraced(function* (props: { observability: boolean }) {
142
+ * const invoker = yield* Capability.get(Capabilities.OperationInvoker);
143
143
  * return contributes(Capabilities.IntentResolver, ...);
144
144
  * })
145
145
  * );
146
146
  * ```
147
147
  */
148
- export declare const makeModule: <TProps = void, TReturn extends ModuleReturn = ModuleReturn, E extends Error = Error, R extends Service | Plugin.Service | never = Service>(fn: (props?: TProps) => Effect.Effect<TReturn, E, R>) => ((props?: TProps) => Effect.Effect<TReturn, E, R>);
148
+ export declare const makeModule: <TProps = void, TReturn extends ModuleReturn = ModuleReturn, E extends Error = Error, R extends Service | Plugin.Service | never = Service>(fn: (props: TProps) => Effect.Effect<TReturn, E, R>) => ((props: TProps) => Effect.Effect<TReturn, E, R>);
149
149
  export {};
150
150
  //# sourceMappingURL=capability.d.ts.map