@dxos/app-framework 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb

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 (327) hide show
  1. package/dist/lib/browser/{capability-7PCNSWBT.mjs → capability-7LE5X2NH.mjs} +14 -10
  2. package/dist/lib/browser/capability-7LE5X2NH.mjs.map +7 -0
  3. package/dist/lib/browser/capability-DU35RXMD.mjs +34 -0
  4. package/dist/lib/browser/capability-DU35RXMD.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-4DQMLMGU.mjs +44 -0
  6. package/dist/lib/browser/chunk-4DQMLMGU.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-XYNO72GQ.mjs → chunk-C46IKYBD.mjs} +626 -591
  8. package/dist/lib/browser/chunk-C46IKYBD.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-7IQHKD4U.mjs → chunk-EIFGKQSA.mjs} +2 -2
  10. package/dist/lib/browser/chunk-EIFGKQSA.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-IGRQWMWW.mjs +80 -0
  12. package/dist/lib/browser/chunk-IGRQWMWW.mjs.map +7 -0
  13. package/dist/lib/browser/{chunk-TCLLRCS3.mjs → chunk-KWP6PKIU.mjs} +2 -2
  14. package/dist/lib/browser/chunk-NPUEVX42.mjs +34 -0
  15. package/dist/lib/browser/chunk-NPUEVX42.mjs.map +7 -0
  16. package/dist/lib/browser/{chunk-FMZN33N4.mjs → chunk-WGWEEBUV.mjs} +3 -3
  17. package/dist/lib/browser/chunk-YAFEA4GV.mjs +1 -0
  18. package/dist/lib/browser/{chunk-6Y7PZV72.mjs → chunk-ZQO3UZ4R.mjs} +1 -1
  19. package/dist/lib/browser/{chunk-6Y7PZV72.mjs.map → chunk-ZQO3UZ4R.mjs.map} +1 -1
  20. package/dist/lib/browser/cli/index.mjs +89 -0
  21. package/dist/lib/browser/cli/index.mjs.map +7 -0
  22. package/dist/lib/browser/common/activation-events.mjs +23 -0
  23. package/dist/lib/browser/common/capabilities.mjs +45 -0
  24. package/dist/lib/browser/core/capability.mjs +1 -1
  25. package/dist/lib/browser/core/plugin-manager.mjs +3 -3
  26. package/dist/lib/browser/core/plugin.mjs +2 -2
  27. package/dist/lib/browser/index.mjs +34 -129
  28. package/dist/lib/browser/index.mjs.map +4 -4
  29. package/dist/lib/browser/{invoker-capability-SZRSTHEH.mjs → invoker-capability-7QW56NOM.mjs} +15 -11
  30. package/dist/lib/browser/invoker-capability-7QW56NOM.mjs.map +7 -0
  31. package/dist/lib/browser/meta.json +1 -1
  32. package/dist/lib/browser/testing/index.mjs +16 -12
  33. package/dist/lib/browser/testing/index.mjs.map +3 -3
  34. package/dist/lib/browser/{react → ui}/index.mjs +20 -17
  35. package/dist/lib/node-esm/{capability-CFLQ2QQU.mjs → capability-OSVYGK4X.mjs} +14 -10
  36. package/dist/lib/node-esm/capability-OSVYGK4X.mjs.map +7 -0
  37. package/dist/lib/node-esm/{capability-RCUNM2M7.mjs → capability-SR2EIZFP.mjs} +14 -11
  38. package/dist/lib/node-esm/capability-SR2EIZFP.mjs.map +7 -0
  39. package/dist/lib/node-esm/{chunk-STMXUEPO.mjs → chunk-64IMLAS2.mjs} +1 -1
  40. package/dist/lib/node-esm/{chunk-STMXUEPO.mjs.map → chunk-64IMLAS2.mjs.map} +1 -1
  41. package/dist/lib/node-esm/{chunk-663A54LQ.mjs → chunk-DHSHRYIB.mjs} +2 -2
  42. package/dist/lib/node-esm/chunk-DHSHRYIB.mjs.map +7 -0
  43. package/dist/lib/node-esm/{chunk-GT6OKM5I.mjs → chunk-DZ2XLAGI.mjs} +2 -2
  44. package/dist/lib/node-esm/chunk-J2PHTRHC.mjs +45 -0
  45. package/dist/lib/node-esm/chunk-J2PHTRHC.mjs.map +7 -0
  46. package/dist/lib/node-esm/chunk-JAZVHID3.mjs +35 -0
  47. package/dist/lib/node-esm/chunk-JAZVHID3.mjs.map +7 -0
  48. package/dist/lib/node-esm/chunk-OQYHRZYF.mjs +81 -0
  49. package/dist/lib/node-esm/chunk-OQYHRZYF.mjs.map +7 -0
  50. package/dist/lib/node-esm/{chunk-6WXBT3EC.mjs → chunk-PQOJE7NA.mjs} +626 -591
  51. package/dist/lib/node-esm/chunk-PQOJE7NA.mjs.map +7 -0
  52. package/dist/lib/node-esm/{chunk-XYQTBFPA.mjs → chunk-XHAKT6UD.mjs} +3 -3
  53. package/dist/lib/node-esm/chunk-Z4TJPSMP.mjs +2 -0
  54. package/dist/lib/node-esm/chunk-Z4TJPSMP.mjs.map +7 -0
  55. package/dist/lib/node-esm/cli/index.mjs +90 -0
  56. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  57. package/dist/lib/node-esm/common/activation-events.mjs +24 -0
  58. package/dist/lib/node-esm/common/activation-events.mjs.map +7 -0
  59. package/dist/lib/node-esm/common/capabilities.mjs +46 -0
  60. package/dist/lib/node-esm/common/capabilities.mjs.map +7 -0
  61. package/dist/lib/node-esm/core/capability.mjs +1 -1
  62. package/dist/lib/node-esm/core/plugin-manager.mjs +3 -3
  63. package/dist/lib/node-esm/core/plugin.mjs +2 -2
  64. package/dist/lib/node-esm/index.mjs +34 -129
  65. package/dist/lib/node-esm/index.mjs.map +4 -4
  66. package/dist/lib/node-esm/{invoker-capability-PNMA5JOS.mjs → invoker-capability-CK4AMF2R.mjs} +15 -11
  67. package/dist/lib/node-esm/invoker-capability-CK4AMF2R.mjs.map +7 -0
  68. package/dist/lib/node-esm/meta.json +1 -1
  69. package/dist/lib/node-esm/testing/index.mjs +16 -12
  70. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  71. package/dist/lib/node-esm/{react → ui}/index.mjs +20 -17
  72. package/dist/lib/node-esm/ui/index.mjs.map +7 -0
  73. package/dist/types/src/{cli.d.ts → cli/cli.d.ts} +2 -2
  74. package/dist/types/src/cli/cli.d.ts.map +1 -0
  75. package/dist/types/src/cli/index.d.ts +2 -0
  76. package/dist/types/src/cli/index.d.ts.map +1 -0
  77. package/dist/types/src/common/activation-events.d.ts +27 -0
  78. package/dist/types/src/common/activation-events.d.ts.map +1 -0
  79. package/dist/types/src/common/capabilities.d.ts +115 -0
  80. package/dist/types/src/common/capabilities.d.ts.map +1 -0
  81. package/dist/types/src/common/index.d.ts +4 -9
  82. package/dist/types/src/common/index.d.ts.map +1 -1
  83. package/dist/types/src/common/operations.d.ts +0 -347
  84. package/dist/types/src/common/operations.d.ts.map +1 -1
  85. package/dist/types/src/common/translations.d.ts +0 -9
  86. package/dist/types/src/common/translations.d.ts.map +1 -1
  87. package/dist/types/src/core/capability.d.ts +1 -1
  88. package/dist/types/src/index.d.ts +1 -3
  89. package/dist/types/src/index.d.ts.map +1 -1
  90. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts +11 -3
  91. package/dist/types/src/plugin-operation/history/undo-mapping.d.ts.map +1 -1
  92. package/dist/types/src/plugin-runtime/capability.d.ts +2 -2
  93. package/dist/types/src/plugin-runtime/capability.d.ts.map +1 -1
  94. package/dist/types/src/testing/withPluginManager.d.ts +1 -1
  95. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  96. package/dist/types/src/{react → ui/components}/App.d.ts +1 -1
  97. package/dist/types/src/ui/components/App.d.ts.map +1 -0
  98. package/dist/types/src/ui/components/App.stories.d.ts.map +1 -0
  99. package/dist/types/src/ui/components/DefaultFallback.d.ts.map +1 -0
  100. package/dist/types/src/ui/components/ErrorBoundary.d.ts.map +1 -0
  101. package/dist/types/src/ui/components/PluginManagerContext.stories.d.ts.map +1 -0
  102. package/dist/types/src/{react → ui/components}/PluginManagerProvider.d.ts +1 -1
  103. package/dist/types/src/ui/components/PluginManagerProvider.d.ts.map +1 -0
  104. package/dist/types/src/ui/components/index.d.ts +5 -0
  105. package/dist/types/src/ui/components/index.d.ts.map +1 -0
  106. package/dist/types/src/ui/components/surface/SurfaceComponent.d.ts +12 -0
  107. package/dist/types/src/ui/components/surface/SurfaceComponent.d.ts.map +1 -0
  108. package/dist/types/src/{react/Surface.stories.d.ts → ui/components/surface/SurfaceComponent.stories.d.ts} +1 -1
  109. package/dist/types/src/ui/components/surface/SurfaceComponent.stories.d.ts.map +1 -0
  110. package/dist/types/src/ui/components/surface/SurfaceInfo.d.ts.map +1 -0
  111. package/dist/types/src/ui/components/surface/context.d.ts +5 -0
  112. package/dist/types/src/ui/components/surface/context.d.ts.map +1 -0
  113. package/dist/types/src/ui/components/surface/index.d.ts +5 -0
  114. package/dist/types/src/ui/components/surface/index.d.ts.map +1 -0
  115. package/dist/types/src/{common/surface.d.ts → ui/components/surface/types.d.ts} +16 -16
  116. package/dist/types/src/ui/components/surface/types.d.ts.map +1 -0
  117. package/dist/types/src/ui/hooks/index.d.ts +7 -0
  118. package/dist/types/src/ui/hooks/index.d.ts.map +1 -0
  119. package/dist/types/src/{react → ui/hooks}/useApp.d.ts +8 -3
  120. package/dist/types/src/ui/hooks/useApp.d.ts.map +1 -0
  121. package/dist/types/src/{react → ui/hooks}/useCapabilities.d.ts +6 -1
  122. package/dist/types/src/ui/hooks/useCapabilities.d.ts.map +1 -0
  123. package/dist/types/src/ui/hooks/useLoading.d.ts.map +1 -0
  124. package/dist/types/src/{react → ui/hooks}/useOperationResolver.d.ts +2 -2
  125. package/dist/types/src/ui/hooks/useOperationResolver.d.ts.map +1 -0
  126. package/dist/types/src/{react/common.d.ts → ui/hooks/useSettingsState.d.ts} +1 -5
  127. package/dist/types/src/ui/hooks/useSettingsState.d.ts.map +1 -0
  128. package/dist/types/src/ui/hooks/useSurface.d.ts +3 -0
  129. package/dist/types/src/ui/hooks/useSurface.d.ts.map +1 -0
  130. package/dist/types/src/ui/index.d.ts +4 -0
  131. package/dist/types/src/ui/index.d.ts.map +1 -0
  132. package/dist/types/tsconfig.tsbuildinfo +1 -1
  133. package/moon.yml +6 -3
  134. package/package.json +77 -70
  135. package/src/{cli.ts → cli/cli.ts} +8 -8
  136. package/src/{playground/debug → cli}/index.ts +1 -1
  137. package/src/common/activation-events.ts +44 -0
  138. package/src/common/capabilities.ts +178 -0
  139. package/src/common/index.ts +4 -9
  140. package/src/common/operations.ts +0 -374
  141. package/src/common/translations.ts +0 -12
  142. package/src/core/capability.ts +1 -1
  143. package/src/core/plugin-manager.test.ts +22 -22
  144. package/src/index.ts +1 -3
  145. package/src/plugin-operation/OperationPlugin.ts +5 -5
  146. package/src/plugin-operation/history/capability.ts +5 -5
  147. package/src/plugin-operation/history/undo-mapping.ts +6 -3
  148. package/src/plugin-operation/invoker-capability.ts +5 -5
  149. package/src/plugin-runtime/RuntimePlugin.ts +4 -4
  150. package/src/plugin-runtime/capability.ts +5 -5
  151. package/src/testing/service.ts +4 -4
  152. package/src/testing/withPluginManager.stories.tsx +6 -6
  153. package/src/testing/withPluginManager.tsx +4 -4
  154. package/src/{react → ui/components}/App.stories.tsx +6 -7
  155. package/src/{react → ui/components}/App.tsx +6 -9
  156. package/src/{react → ui/components}/PluginManagerContext.stories.tsx +7 -8
  157. package/src/{react → ui/components}/PluginManagerProvider.ts +1 -1
  158. package/src/ui/components/index.ts +8 -0
  159. package/src/{react/Surface.stories.tsx → ui/components/surface/SurfaceComponent.stories.tsx} +10 -9
  160. package/src/{react/Surface.tsx → ui/components/surface/SurfaceComponent.tsx} +34 -39
  161. package/src/{react → ui/components/surface}/SurfaceInfo.tsx +1 -1
  162. package/src/ui/components/surface/context.ts +12 -0
  163. package/src/ui/components/surface/index.ts +8 -0
  164. package/src/{common/surface.ts → ui/components/surface/types.ts} +21 -22
  165. package/src/ui/hooks/index.ts +10 -0
  166. package/src/{react → ui/hooks}/useApp.tsx +22 -16
  167. package/src/{react → ui/hooks}/useCapabilities.ts +9 -5
  168. package/src/{react → ui/hooks}/useOperationResolver.ts +5 -5
  169. package/src/{react/common.ts → ui/hooks/useSettingsState.ts} +0 -11
  170. package/src/ui/hooks/useSurface.ts +13 -0
  171. package/src/ui/index.ts +7 -0
  172. package/tsconfig.json +0 -30
  173. package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs +0 -149
  174. package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs.map +0 -7
  175. package/dist/lib/browser/capability-7PCNSWBT.mjs.map +0 -7
  176. package/dist/lib/browser/capability-KP3PFEXD.mjs +0 -31
  177. package/dist/lib/browser/capability-KP3PFEXD.mjs.map +0 -7
  178. package/dist/lib/browser/chunk-7IQHKD4U.mjs.map +0 -7
  179. package/dist/lib/browser/chunk-BLQJSGL3.mjs +0 -732
  180. package/dist/lib/browser/chunk-BLQJSGL3.mjs.map +0 -7
  181. package/dist/lib/browser/chunk-H4WPA7U7.mjs +0 -77
  182. package/dist/lib/browser/chunk-H4WPA7U7.mjs.map +0 -7
  183. package/dist/lib/browser/chunk-XYNO72GQ.mjs.map +0 -7
  184. package/dist/lib/browser/common/index.mjs +0 -38
  185. package/dist/lib/browser/invoker-capability-SZRSTHEH.mjs.map +0 -7
  186. package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs +0 -64
  187. package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs.map +0 -7
  188. package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs +0 -150
  189. package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs.map +0 -7
  190. package/dist/lib/node-esm/capability-CFLQ2QQU.mjs.map +0 -7
  191. package/dist/lib/node-esm/capability-RCUNM2M7.mjs.map +0 -7
  192. package/dist/lib/node-esm/chunk-663A54LQ.mjs.map +0 -7
  193. package/dist/lib/node-esm/chunk-6WXBT3EC.mjs.map +0 -7
  194. package/dist/lib/node-esm/chunk-GQEBIGKD.mjs +0 -733
  195. package/dist/lib/node-esm/chunk-GQEBIGKD.mjs.map +0 -7
  196. package/dist/lib/node-esm/chunk-XR6NMKEP.mjs +0 -78
  197. package/dist/lib/node-esm/chunk-XR6NMKEP.mjs.map +0 -7
  198. package/dist/lib/node-esm/common/index.mjs +0 -39
  199. package/dist/lib/node-esm/invoker-capability-PNMA5JOS.mjs.map +0 -7
  200. package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs +0 -65
  201. package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs.map +0 -7
  202. package/dist/types/src/cli.d.ts.map +0 -1
  203. package/dist/types/src/common/activation-event.d.ts +0 -66
  204. package/dist/types/src/common/activation-event.d.ts.map +0 -1
  205. package/dist/types/src/common/capability.d.ts +0 -265
  206. package/dist/types/src/common/capability.d.ts.map +0 -1
  207. package/dist/types/src/common/collaboration.d.ts +0 -26
  208. package/dist/types/src/common/collaboration.d.ts.map +0 -1
  209. package/dist/types/src/common/file.d.ts +0 -14
  210. package/dist/types/src/common/file.d.ts.map +0 -1
  211. package/dist/types/src/common/graph.d.ts +0 -21
  212. package/dist/types/src/common/graph.d.ts.map +0 -1
  213. package/dist/types/src/common/plugin.d.ts +0 -201
  214. package/dist/types/src/common/plugin.d.ts.map +0 -1
  215. package/dist/types/src/common/surface.d.ts.map +0 -1
  216. package/dist/types/src/playground/debug/Debug.d.ts +0 -8
  217. package/dist/types/src/playground/debug/Debug.d.ts.map +0 -1
  218. package/dist/types/src/playground/debug/index.d.ts +0 -2
  219. package/dist/types/src/playground/debug/index.d.ts.map +0 -1
  220. package/dist/types/src/playground/debug/plugin.d.ts +0 -3
  221. package/dist/types/src/playground/debug/plugin.d.ts.map +0 -1
  222. package/dist/types/src/playground/generator/Main.d.ts +0 -8
  223. package/dist/types/src/playground/generator/Main.d.ts.map +0 -1
  224. package/dist/types/src/playground/generator/Toolbar.d.ts +0 -8
  225. package/dist/types/src/playground/generator/Toolbar.d.ts.map +0 -1
  226. package/dist/types/src/playground/generator/generator.d.ts +0 -19
  227. package/dist/types/src/playground/generator/generator.d.ts.map +0 -1
  228. package/dist/types/src/playground/generator/index.d.ts +0 -3
  229. package/dist/types/src/playground/generator/index.d.ts.map +0 -1
  230. package/dist/types/src/playground/generator/plugin.d.ts +0 -3
  231. package/dist/types/src/playground/generator/plugin.d.ts.map +0 -1
  232. package/dist/types/src/playground/layout/Layout.d.ts +0 -10
  233. package/dist/types/src/playground/layout/Layout.d.ts.map +0 -1
  234. package/dist/types/src/playground/layout/index.d.ts +0 -2
  235. package/dist/types/src/playground/layout/index.d.ts.map +0 -1
  236. package/dist/types/src/playground/layout/plugin.d.ts +0 -3
  237. package/dist/types/src/playground/layout/plugin.d.ts.map +0 -1
  238. package/dist/types/src/playground/logger/Toolbar.d.ts +0 -8
  239. package/dist/types/src/playground/logger/Toolbar.d.ts.map +0 -1
  240. package/dist/types/src/playground/logger/index.d.ts +0 -2
  241. package/dist/types/src/playground/logger/index.d.ts.map +0 -1
  242. package/dist/types/src/playground/logger/plugin.d.ts +0 -3
  243. package/dist/types/src/playground/logger/plugin.d.ts.map +0 -1
  244. package/dist/types/src/playground/logger/schema.d.ts +0 -27
  245. package/dist/types/src/playground/logger/schema.d.ts.map +0 -1
  246. package/dist/types/src/playground/playground.stories.d.ts +0 -11
  247. package/dist/types/src/playground/playground.stories.d.ts.map +0 -1
  248. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +0 -3
  249. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +0 -1
  250. package/dist/types/src/plugin-settings/actions.d.ts +0 -61
  251. package/dist/types/src/plugin-settings/actions.d.ts.map +0 -1
  252. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +0 -6
  253. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +0 -1
  254. package/dist/types/src/plugin-settings/index.d.ts +0 -3
  255. package/dist/types/src/plugin-settings/index.d.ts.map +0 -1
  256. package/dist/types/src/plugin-settings/meta.d.ts +0 -3
  257. package/dist/types/src/plugin-settings/meta.d.ts.map +0 -1
  258. package/dist/types/src/plugin-settings/operation-resolver.d.ts +0 -6
  259. package/dist/types/src/plugin-settings/operation-resolver.d.ts.map +0 -1
  260. package/dist/types/src/plugin-settings/translations.d.ts +0 -11
  261. package/dist/types/src/plugin-settings/translations.d.ts.map +0 -1
  262. package/dist/types/src/react/App.d.ts.map +0 -1
  263. package/dist/types/src/react/App.stories.d.ts.map +0 -1
  264. package/dist/types/src/react/DefaultFallback.d.ts.map +0 -1
  265. package/dist/types/src/react/ErrorBoundary.d.ts.map +0 -1
  266. package/dist/types/src/react/PluginManagerContext.stories.d.ts.map +0 -1
  267. package/dist/types/src/react/PluginManagerProvider.d.ts.map +0 -1
  268. package/dist/types/src/react/Surface.d.ts +0 -14
  269. package/dist/types/src/react/Surface.d.ts.map +0 -1
  270. package/dist/types/src/react/Surface.stories.d.ts.map +0 -1
  271. package/dist/types/src/react/SurfaceInfo.d.ts.map +0 -1
  272. package/dist/types/src/react/common.d.ts.map +0 -1
  273. package/dist/types/src/react/index.d.ts +0 -9
  274. package/dist/types/src/react/index.d.ts.map +0 -1
  275. package/dist/types/src/react/types.d.ts +0 -12
  276. package/dist/types/src/react/types.d.ts.map +0 -1
  277. package/dist/types/src/react/useApp.d.ts.map +0 -1
  278. package/dist/types/src/react/useCapabilities.d.ts.map +0 -1
  279. package/dist/types/src/react/useLoading.d.ts.map +0 -1
  280. package/dist/types/src/react/useOperationResolver.d.ts.map +0 -1
  281. package/src/common/activation-event.ts +0 -99
  282. package/src/common/capability.ts +0 -343
  283. package/src/common/collaboration.ts +0 -31
  284. package/src/common/file.ts +0 -22
  285. package/src/common/graph.ts +0 -30
  286. package/src/common/plugin.ts +0 -364
  287. package/src/playground/debug/Debug.tsx +0 -49
  288. package/src/playground/debug/plugin.ts +0 -16
  289. package/src/playground/generator/Main.tsx +0 -80
  290. package/src/playground/generator/Toolbar.tsx +0 -57
  291. package/src/playground/generator/generator.ts +0 -48
  292. package/src/playground/generator/index.ts +0 -6
  293. package/src/playground/generator/plugin.ts +0 -21
  294. package/src/playground/layout/Layout.tsx +0 -37
  295. package/src/playground/layout/index.ts +0 -5
  296. package/src/playground/layout/plugin.ts +0 -18
  297. package/src/playground/logger/Toolbar.tsx +0 -33
  298. package/src/playground/logger/index.ts +0 -5
  299. package/src/playground/logger/plugin.ts +0 -42
  300. package/src/playground/logger/schema.ts +0 -22
  301. package/src/playground/playground.stories.tsx +0 -54
  302. package/src/plugin-settings/SettingsPlugin.ts +0 -19
  303. package/src/plugin-settings/actions.ts +0 -64
  304. package/src/plugin-settings/app-graph-builder.ts +0 -140
  305. package/src/plugin-settings/index.ts +0 -6
  306. package/src/plugin-settings/meta.ts +0 -10
  307. package/src/plugin-settings/operation-resolver.ts +0 -55
  308. package/src/plugin-settings/translations.ts +0 -19
  309. package/src/react/index.ts +0 -14
  310. package/src/react/types.ts +0 -27
  311. /package/dist/lib/browser/{chunk-TCLLRCS3.mjs.map → chunk-KWP6PKIU.mjs.map} +0 -0
  312. /package/dist/lib/browser/{chunk-FMZN33N4.mjs.map → chunk-WGWEEBUV.mjs.map} +0 -0
  313. /package/dist/lib/browser/{common/index.mjs.map → chunk-YAFEA4GV.mjs.map} +0 -0
  314. /package/dist/lib/browser/{react/index.mjs.map → common/activation-events.mjs.map} +0 -0
  315. /package/dist/lib/{node-esm/common/index.mjs.map → browser/common/capabilities.mjs.map} +0 -0
  316. /package/dist/lib/{node-esm/react → browser/ui}/index.mjs.map +0 -0
  317. /package/dist/lib/node-esm/{chunk-GT6OKM5I.mjs.map → chunk-DZ2XLAGI.mjs.map} +0 -0
  318. /package/dist/lib/node-esm/{chunk-XYQTBFPA.mjs.map → chunk-XHAKT6UD.mjs.map} +0 -0
  319. /package/dist/types/src/{react → ui/components}/App.stories.d.ts +0 -0
  320. /package/dist/types/src/{react → ui/components}/DefaultFallback.d.ts +0 -0
  321. /package/dist/types/src/{react → ui/components}/ErrorBoundary.d.ts +0 -0
  322. /package/dist/types/src/{react → ui/components}/PluginManagerContext.stories.d.ts +0 -0
  323. /package/dist/types/src/{react → ui/components/surface}/SurfaceInfo.d.ts +0 -0
  324. /package/dist/types/src/{react → ui/hooks}/useLoading.d.ts +0 -0
  325. /package/src/{react → ui/components}/DefaultFallback.tsx +0 -0
  326. /package/src/{react → ui/components}/ErrorBoundary.tsx +0 -0
  327. /package/src/{react → ui/hooks}/useLoading.tsx +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../../../src/plugin-runtime/capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;;AAM7C,wBAqCE"}
1
+ {"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../../../src/plugin-runtime/capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAoB,YAAY,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;;AAM7C,wBAqCE"}
@@ -1,7 +1,7 @@
1
1
  import { type Decorator, type StoryContext } from '@storybook/react';
2
2
  import { type MaybeProvider } from '@dxos/util';
3
3
  import { type ActivationEvent, Capability, type CapabilityManager } from '../core';
4
- import { type UseAppOptions } from '../react';
4
+ import { type UseAppOptions } from '../ui';
5
5
  export type WithPluginManagerOptions = UseAppOptions & {
6
6
  /** @deprecated */
7
7
  capabilities?: MaybeProvider<Capability.Any[], CapabilityManager.CapabilityManager>;
@@ -1 +1 @@
1
- {"version":3,"file":"withPluginManager.d.ts","sourceRoot":"","sources":["../../../../src/testing/withPluginManager.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMrE,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,YAAY,CAAC;AAGlE,OAAO,EAAE,KAAK,eAAe,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAyB,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAE,KAAK,aAAa,EAAU,MAAM,UAAU,CAAC;AA+BtD,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG;IACrD,kBAAkB;IAClB,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpF,kBAAkB;IAClB,UAAU,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,GAAG,MAAM,CAAC,EAAE,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,4BAA4B,CAAC,IAAI,GAAG,IAAI,IAChD,wBAAwB,GACxB,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,KAAK,wBAAwB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,EAAG,OAAM,4BAA4B,CAAC,IAAI,CAAM,KAAG,SAgCxF,CAAC"}
1
+ {"version":3,"file":"withPluginManager.d.ts","sourceRoot":"","sources":["../../../../src/testing/withPluginManager.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMrE,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,YAAY,CAAC;AAGlE,OAAO,EAAE,KAAK,eAAe,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAyB,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAE,KAAK,aAAa,EAAU,MAAM,OAAO,CAAC;AA+BnD,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG;IACrD,kBAAkB;IAClB,YAAY,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpF,kBAAkB;IAClB,UAAU,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,GAAG,MAAM,CAAC,EAAE,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,4BAA4B,CAAC,IAAI,GAAG,IAAI,IAChD,wBAAwB,GACxB,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,KAAK,wBAAwB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,EAAG,OAAM,4BAA4B,CAAC,IAAI,CAAM,KAAG,SAgCxF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type UseAppOptions } from './useApp';
2
+ import { type UseAppOptions } from '../hooks';
3
3
  export type AppProps = Pick<UseAppOptions, 'placeholder' | 'debounce'> & {
4
4
  ready: boolean;
5
5
  error: unknown;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/App.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAItD,OAAO,EAAgB,KAAK,aAAa,EAA+B,MAAM,UAAU,CAAC;AAEzF,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG;IACvE,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,sDAAsD,QAAQ,6BA2BjF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/App.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AA0C1B,QAAA,MAAM,IAAI;;;;;;;CAOM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultFallback.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/DefaultFallback.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,sBAgB1D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ErrorBoundary.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1F,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IACjD,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CAC7C,CAAC,CAAC;AAEH;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC;IACrE,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE;IAItD,KAAK;;MAAwB;IAE7B,kBAAkB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAMvD,MAAM,IAAI,SAAS;IAS5B,OAAO,CAAC,UAAU;CAGnB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginManagerContext.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/PluginManagerContext.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAoK5D,QAAA,MAAM,IAAI;;;;;;;CAOM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,CAAM,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type PluginManager } from '../core';
1
+ import { type PluginManager } from '../../core';
2
2
  /**
3
3
  * Get the plugin manager.
4
4
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginManagerProvider.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/PluginManagerProvider.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAAa,CAAC,aACoC,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,qBAAqB,mEAAgC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './App';
2
+ export * from './DefaultFallback';
3
+ export * from './ErrorBoundary';
4
+ export * from './PluginManagerProvider';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type NamedExoticComponent, type RefAttributes } from 'react';
2
+ import { type CapabilityManager } from '../../../core';
3
+ import { type Props } from './types';
4
+ /**
5
+ * A surface is a named region of the screen that can be populated by plugins.
6
+ */
7
+ export declare const Surface: NamedExoticComponent<Props & RefAttributes<HTMLElement>>;
8
+ /**
9
+ * @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.
10
+ */
11
+ export declare const isSurfaceAvailable: (capabilityManager: CapabilityManager.CapabilityManager, { role, data }: Pick<Props, "role" | "data">) => boolean;
12
+ //# sourceMappingURL=SurfaceComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurfaceComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/surface/SurfaceComponent.tsx"],"names":[],"mappings":"AAIA,OAAc,EAEZ,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAOnB,MAAM,OAAO,CAAC;AAQf,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMvD,OAAO,EAAmB,KAAK,KAAK,EAA+B,MAAM,SAAS,CAAC;AAyInF;;GAEG;AAEH,eAAO,MAAM,OAAO,EAAE,oBAAoB,CAAC,KAAK,GAAG,aAAa,CAAC,WAAW,CAAC,CAoC5E,CAAC;AA8CF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,mBAAmB,iBAAiB,CAAC,iBAAiB,EACtD,gBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,YAK7C,CAAC"}
@@ -11,4 +11,4 @@ declare const meta: {
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
  export declare const Default: Story;
14
- //# sourceMappingURL=Surface.stories.d.ts.map
14
+ //# sourceMappingURL=SurfaceComponent.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurfaceComponent.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/surface/SurfaceComponent.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA+D,MAAM,OAAO,CAAC;AA2HpF,QAAA,MAAM,IAAI;;;;;;;CAO2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurfaceInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/surface/SurfaceInfo.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EACZ,KAAK,YAAY,EACjB,KAAK,GAAG,EAMT,MAAM,OAAO,CAAC;AAQf,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,YAAY,CAAC;QAAE,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC,CAAC;CACpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,sFA+EtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type Context } from 'react';
2
+ import { type Props } from './types';
3
+ export type SurfaceContext = Pick<Props, 'id' | 'role' | 'data'>;
4
+ export declare const SurfaceContext: Context<SurfaceContext | undefined>;
5
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/surface/context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAGjE,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,cAAc,GAAG,SAAS,CAAwD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export { Surface } from './SurfaceComponent';
3
+ export { isSurfaceAvailable as isAvailable } from './SurfaceComponent';
4
+ export type { SurfaceContext as Root } from './context';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/surface/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,YAAY,EAAE,cAAc,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import type { PropsWithChildren, ReactNode, RefCallback } from 'react';
2
2
  import type { MakeOptional, Position } from '@dxos/util';
3
- import type { ErrorBoundary } from '../react';
3
+ import type { ErrorBoundary } from '../index';
4
4
  /**
5
- * SurfaceProps are the props that are passed to the Surface component.
5
+ * Props that are passed to the Surface component.
6
6
  */
7
- export type SurfaceProps<T extends Record<string, any> = Record<string, unknown>> = {
7
+ export type Props<T extends Record<string, any> = Record<string, unknown>> = {
8
8
  /**
9
9
  * If specified, the Surface will be wrapped in an error boundary.
10
10
  * The fallback component will be rendered if an error occurs.
@@ -15,19 +15,19 @@ export type SurfaceProps<T extends Record<string, any> = Record<string, unknown>
15
15
  * The placeholder component will be rendered while the surface component is loading.
16
16
  */
17
17
  placeholder?: ReactNode;
18
- } & MakeOptional<CoreSurfaceProps<T>, 'id' | 'data'> &
18
+ } & MakeOptional<CoreProps<T>, 'id' | 'data'> &
19
19
  /**
20
20
  * Additional props to pass to the component.
21
21
  * These props are not used by Surface itself but may be used by components which resolve the surface.
22
22
  * Exclude known prop names to prevent overriding well-defined props.
23
23
  */
24
24
  {
25
- [K in keyof Record<string, any>]: K extends keyof CoreSurfaceProps<T> | 'fallback' | 'placeholder' ? never : any;
25
+ [K in keyof Record<string, any>]: K extends keyof CoreProps<T> | 'fallback' | 'placeholder' ? never : any;
26
26
  };
27
27
  /**
28
28
  * NOTE: If `[key: string]: unknown` is included in shared types, when re-used other fields become unknown as well.
29
29
  */
30
- export type CoreSurfaceProps<T extends Record<string, any> = Record<string, unknown>> = PropsWithChildren<{
30
+ export type CoreProps<T extends Record<string, any> = Record<string, unknown>> = PropsWithChildren<{
31
31
  /**
32
32
  * ID for debugging.
33
33
  */
@@ -46,28 +46,28 @@ export type CoreSurfaceProps<T extends Record<string, any> = Record<string, unkn
46
46
  */
47
47
  limit?: number | undefined;
48
48
  }>;
49
- export type SurfaceComponentProps<T extends Record<string, any> = Record<string, any>> = CoreSurfaceProps<T> & {
49
+ export type ComponentProps<T extends Record<string, any> = Record<string, any>> = CoreProps<T> & {
50
50
  ref?: RefCallback<HTMLElement>;
51
51
  } & Record<string, any>;
52
52
  /**
53
53
  * React component used to render a surface once is has matched.
54
54
  */
55
- export type SurfaceComponent<T extends Record<string, any> = Record<string, any>> = (props: SurfaceComponentProps<T>) => ReactNode;
55
+ export type ComponentFunction<T extends Record<string, any> = Record<string, any>> = (props: ComponentProps<T>) => ReactNode;
56
56
  /**
57
- * Definition of when a React SurfaceComponent should be rendered.
57
+ * Definition of when a React component surface should be rendered.
58
58
  */
59
- export type ReactSurfaceDefinition<T extends Record<string, any> = any> = Readonly<{
59
+ export type ReactDefinition<T extends Record<string, any> = any> = Readonly<{
60
60
  kind: 'react';
61
61
  id: string;
62
62
  role: string | string[];
63
63
  position?: Position;
64
- component: SurfaceComponent<T>;
64
+ component: ComponentFunction<T>;
65
65
  filter?: (data: Record<string, unknown>) => data is T;
66
66
  }>;
67
67
  /**
68
68
  * Definition of when a Web Component surface should be rendered.
69
69
  */
70
- export type WebComponentSurfaceDefinition<T extends Record<string, any> = any> = Readonly<{
70
+ export type WebComponentDefinition<T extends Record<string, any> = any> = Readonly<{
71
71
  kind: 'web-component';
72
72
  id: string;
73
73
  role: string | string[];
@@ -82,13 +82,13 @@ export type WebComponentSurfaceDefinition<T extends Record<string, any> = any> =
82
82
  /**
83
83
  * Definition of when a surface (React or Web Component) should be rendered.
84
84
  */
85
- export type SurfaceDefinition<T extends Record<string, any> = any> = ReactSurfaceDefinition<T> | WebComponentSurfaceDefinition<T>;
85
+ export type Definition<T extends Record<string, any> = any> = ReactDefinition<T> | WebComponentDefinition<T>;
86
86
  /**
87
87
  * Creates a React surface definition.
88
88
  */
89
- export declare const createSurface: <T extends Record<string, any> = any>(definition: Omit<ReactSurfaceDefinition<T>, "kind">) => ReactSurfaceDefinition<T>;
89
+ export declare const create: <T extends Record<string, any> = any>(definition: Omit<ReactDefinition<T>, "kind">) => ReactDefinition<T>;
90
90
  /**
91
91
  * Creates a Web Component surface definition.
92
92
  */
93
- export declare const createWebSurface: <T extends Record<string, any> = any>(definition: Omit<WebComponentSurfaceDefinition<T>, "kind">) => WebComponentSurfaceDefinition<T>;
94
- //# sourceMappingURL=surface.d.ts.map
93
+ export declare const createWeb: <T extends Record<string, any> = any>(definition: Omit<WebComponentDefinition<T>, "kind">) => WebComponentDefinition<T>;
94
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/surface/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ export * from './useApp';
2
+ export * from './useCapabilities';
3
+ export * from './useLoading';
4
+ export * from './useOperationResolver';
5
+ export * from './useSettingsState';
6
+ export * from './useSurface';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
@@ -1,12 +1,17 @@
1
1
  import React, { type FC } from 'react';
2
- import { type Plugin, PluginManager } from '../core';
3
- import { ErrorBoundary } from './ErrorBoundary';
2
+ import { type ActivationEvent, type Plugin, PluginManager } from '../../core';
3
+ import { ErrorBoundary } from '../components/ErrorBoundary';
4
4
  export type UseAppOptions = {
5
5
  pluginManager?: PluginManager.PluginManager;
6
6
  pluginLoader?: PluginManager.ManagerOptions['pluginLoader'];
7
7
  plugins?: Plugin.Plugin[];
8
8
  core?: string[];
9
9
  defaults?: string[];
10
+ /**
11
+ * Additional activation events to fire before startup.
12
+ * These are fired alongside SetupReactSurface before the Startup event.
13
+ */
14
+ setupEvents?: ActivationEvent.ActivationEvent[];
10
15
  placeholder?: FC<{
11
16
  stage: number;
12
17
  }>;
@@ -41,5 +46,5 @@ export type UseAppOptions = {
41
46
  * @param params.cacheEnabled Whether to cache enabled plugins in localStorage.
42
47
  * @param params.safeMode Whether to enable safe mode, which disables optional plugins.
43
48
  */
44
- export declare const useApp: ({ pluginManager, pluginLoader: pluginLoaderProp, plugins: pluginsProp, core: coreProp, defaults: defaultsProp, placeholder, fallback, cacheEnabled, safeMode, debounce, timeout, }: UseAppOptions) => () => React.JSX.Element;
49
+ export declare const useApp: ({ pluginManager, pluginLoader: pluginLoaderProp, plugins: pluginsProp, core: coreProp, defaults: defaultsProp, setupEvents: setupEventsProp, placeholder, fallback, cacheEnabled, safeMode, debounce, timeout, }: UseAppOptions) => () => React.JSX.Element;
45
50
  //# sourceMappingURL=useApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApp.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useApp.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAqD,MAAM,OAAO,CAAC;AAU1F,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG9E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,MAAM,MAAM,aAAa,GAAG;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,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,eAAe,EAAE,CAAC;IAChD,WAAW,CAAC,EAAE,EAAE,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM,GAAI,kNAapB,aAAa,4BA6Hf,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { type Atom } from '@effect-atom/atom-react';
2
- import { type Capability } from '../core';
2
+ import { Capabilities } from '../../common';
3
+ import { type Capability } from '../../core';
3
4
  /**
4
5
  * Hook to request capabilities from the plugin context.
5
6
  * @returns An array of capabilities.
@@ -23,4 +24,8 @@ export declare const useAtomCapability: <T>(atomCapability: Capability.Interface
23
24
  * @example const [settings, updateSettings] = useAtomCapabilityState(ThreadCapabilities.Settings);
24
25
  */
25
26
  export declare const useAtomCapabilityState: <T>(atomCapability: Capability.InterfaceDef<Atom.Writable<T>>) => [T, (fn: (current: T) => T) => void];
27
+ /**
28
+ * Hook to get the operation invoker capability.
29
+ */
30
+ export declare const useOperationInvoker: () => Capabilities.OperationInvoker;
26
31
  //# sourceMappingURL=useCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCapabilities.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useCapabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAgB,MAAM,yBAAyB,CAAC;AAKlE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,cAAc,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,QAG1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,cAAc,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAIxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,gBAAgB,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAG,CAG5F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,EACtC,gBAAgB,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KACxD,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,CAWrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,YAAY,CAAC,gBAAgE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLoading.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useLoading.tsx"],"names":[],"mappings":"AAMA,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,EAAE,iBAAY,iBA4CtD,CAAC"}
@@ -1,4 +1,4 @@
1
- import * as Common from '../common';
1
+ import { Capabilities } from '../../common';
2
2
  /**
3
3
  * Hook to dynamically register an operation resolver (handler) within a React component.
4
4
  * The resolver is added when the component mounts and removed when it unmounts.
@@ -15,5 +15,5 @@ import * as Common from '../common';
15
15
  * useOperationResolver(meta.id, scrollHandler);
16
16
  * ```
17
17
  */
18
- export declare const useOperationResolver: (module: string, resolver: Common.Capability.OperationResolver) => void;
18
+ export declare const useOperationResolver: (module: string, resolver: Capabilities.OperationResolver) => void;
19
19
  //# sourceMappingURL=useOperationResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOperationResolver.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useOperationResolver.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,EAAE,UAAU,YAAY,CAAC,iBAAiB,SAc5F,CAAC"}
@@ -1,8 +1,4 @@
1
1
  import { type Atom } from '@effect-atom/atom-react';
2
- import * as Common from '../common';
3
- export declare const useOperationInvoker: () => Common.Capability.OperationInvoker;
4
- export declare const useAppGraph: () => Common.Capability.AppGraph;
5
- export declare const useLayout: () => Common.Capability.Layout;
6
2
  /**
7
3
  * Hook to read and update a settings atom.
8
4
  * Returns the current value and an update function.
@@ -11,4 +7,4 @@ export declare const useSettingsState: <T>(atom: Atom.Writable<T>) => {
11
7
  settings: T;
12
8
  updateSettings: (fn: (current: T) => T) => void;
13
9
  };
14
- //# sourceMappingURL=common.d.ts.map
10
+ //# sourceMappingURL=useSettingsState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSettingsState.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useSettingsState.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAiC,MAAM,yBAAyB,CAAC;AAGnF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAChC,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KACrB;IAAE,QAAQ,EAAE,CAAC,CAAC;IAAC,cAAc,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,CAAA;CAYhE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SurfaceContext } from '../components/surface/context';
2
+ export declare const useSurface: () => SurfaceContext;
3
+ //# sourceMappingURL=useSurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSurface.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useSurface.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,eAAO,MAAM,UAAU,QAAO,cAE7B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './components';
2
+ export * from './hooks';
3
+ export * as Surface from './components/surface';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC"}